.top-bar {
    font-size: 0.6rem;
}
h1 {
    cursor: pointer;
}
h1:hover span::after {
    color: greenyellow;
}
h1 span::after {
    content: " ⇄";  
    color: var(--cool); 
}
h1 span u {
    display: inline-block;
    text-decoration-color: var(--cool);
    text-decoration-style: double;
    text-decoration-thickness: 0.1rem;
    text-underline-offset: 0.2rem;
}
h1 span:first-of-type::before {
    content: "Olet aihealueessa ";
    color: var(--cool);
    font-weight: normal;
    text-decoration: none;
}
.h2-div {
    display: flex;
    white-space: nowrap;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.arrow-down {
    font-size: 1.2rem;
}
#h2_channel {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#h2_channel span {
    display: inline-flex;
    word-break: break-word;
    white-space: wrap;
    line-height: 1.3rem;
}
#h2_channel span:first-child {
    color: var(--c1);
    line-height: 1.3rem;
    font-weight: bold;
    font-size: 0.7rem;
}
#h2_channel span:last-child {
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    color: var(--txt1);
}
/*  */
    #channel_section > div:first-child {
        display: flex;
        gap: 1rem;
        justify-content: space-between;
    }
    .show-all-link {
        background-color: var(--bg3);
        color: var(--txt1);
        font-size: 0.8rem;
        width: fit-content;
        padding: 0.2rem 0.4rem;
        height: fit-content;
        white-space: nowrap;
    }
    .show-all-link::before {
        content: "Oletus: ";
        color: var(--muted);
    }
    #channel_nav {
        display: flex;
        counter-reset: channelIndex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }   
    #channel_nav a {
        border: none;
        height: 1.7rem;
        line-height: 1.7rem;
        gap: 0.5rem;
        padding: 0.5rem;
        flex: auto;
        border: 0.05rem solid var(--border2);
        text-decoration: none;
        background-color: var(--bg3);
        color: var(--txt1);
        font-size: 0.8rem;
        white-space: nowrap;
        border-radius: 999rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    #channel_nav a span:first-child {
        padding-right: 1rem;
        position: relative;
    }
    #channel_nav a span:last-of-type {
        border-left: 0.05rem solid gray;
        padding-left: 0.3rem;
        font-size: 0.7rem;
        border-top-right-radius: inherit;
        border-bottom-right-radius: inherit;
        opacity: 0.6;
    }
    #channel_nav a span:last-child:before {
        content: "★ ";
    }
    .channel-link:active {
        opacity: 0.8;
    }
    #channel_nav a::before {
        counter-increment: channelIndex;
        content: counter(channelIndex) "# ";
        color: gray;
    }
/* ---------- */
    .active-link {
        background: var(--bg2) !important;
        color: var(--cool) !important;
    }
    section {
        border-top: 0.05rem solid var(--border1);
        padding-top: 1rem;
        margin-top: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
/*side slider - START */
    .side-slider {
        max-width: 21rem;
        background: var(--bg3);
    }
    .side-slider > ul:first-of-type {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        border-bottom: 0.05rem solid var(--border1);
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-y;           /* allow vertical scrolling inside */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
    }
    .side-slider ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .side-slider > ul > li {
        margin-bottom: 1rem;
    }
    .side-slider a {
        color: var(--txt1);
    }
    .side-slider > ul > li > a {
        font-weight: 700;
    }
    .side-slider > ul > li > ul {
        margin-top: .45rem;
        margin-left: .25rem;
        padding-left: .85rem;
        border-left: 0.1rem solid var(--border1);
    }
    .side-slider a span:last-child {
        white-space: nowrap;
        font-size: .85rem;
        opacity: .75;
    }
    .current-location {
        pointer-events: none;
        opacity: 0.8;
        background-color: gainsboro;
    }
    .current-location::before {
        content: "🔴 ";
}
/*side slider - END */
    .bottom-bar a,
    .bottom-bar button{
        all: unset;

        flex: 1 1 auto;        /* <-- fills 100% BUT respects content width first */
        white-space: nowrap;
        min-width: max-content; /* <-- never squish text */

        display: flex;
        align-items: center;
        justify-content: center;

        height: 100%;
        padding: 0 0.9rem;

        color: var(--txt2);
        cursor: pointer;
    }
    .bottom-bar a:nth-child(odd) {
        background: var(--bg2);
    }
/*  */
#post_container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
