/* About Us only: a compact, persistent guide in Cylingo's teal and warm paper. */
#about-page-nav {
    --guide-ink: #0f4c5c;
    --guide-teal: #00796b;
    position: sticky;
    top: 12px;
    z-index: 20;
    box-sizing: border-box;
    max-width: 1120px;
    margin: 18px auto 28px;
    padding: 12px 18px;
    border: 1px solid #c5ddd5;
    border-radius: 20px;
    background: #fbfcf5;
    box-shadow: 0 6px 22px rgba(15, 76, 92, .12);
    color: var(--guide-ink);
}

#about-page-nav .about-guide-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 6px 9px;
    border-bottom: 1px solid #dce7dd;
}

#about-page-nav .about-guide-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

#about-page-nav .about-guide-position {
    color: #57736c;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

#about-page-nav .about-guide-toggle { display: none; }

#about-page-nav ul {
    display: flex;
    position: static;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    width: auto;
    height: auto;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
    text-align: left;
}

#about-page-nav ul li { width: auto; margin: 0; }

#about-page-nav ul li a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: none;
    background-image: none;
    box-shadow: none;
    color: var(--guide-ink);
    font-size: .83rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    transform: none;
    transition: transform .16s ease;
}

#about-page-nav a::after { content: none; }
#about-page-nav ul li a:hover { background: #e5efe7; transform: translateY(-1px); }
#about-page-nav ul li a[aria-current="location"] {
    background: var(--guide-teal);
    color: #fffaf0;
    border-color: var(--guide-teal);
}

#about-page-nav .about-guide-event a {
    gap: 7px;
    color: #596f67;
    font-size: .78rem;
}

#about-page-nav .about-guide-event a::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

#about-page-nav a:focus-visible,
#about-page-nav button:focus-visible {
    outline: 3px solid #b15a38;
    outline-offset: 2px;
}

#about-page-nav ~ main :is(
    #our-story-section, #our-mission-section, #wsa-2026, #team-section,
    #events-section, #event-youth-2026, #event-ledra-palace-2026,
    #event-language-meetup-2026-01, .event-archive [data-event-article],
    #event-archive, #media-section, #television-section,
    #collaborators-section
) {
    scroll-margin-top: var(--about-guide-offset, 190px);
}

body.about-guide-page main [data-about-destination]:focus { outline: none; }

@media (max-width: 768px) {
    #about-page-nav {
        /* Leave the fixed site hamburger and language controls their own lane. */
        top: 88px;
        margin: 12px 10px 24px;
        padding: 10px 12px;
        border-radius: 15px;
    }
    #about-page-nav .about-guide-heading { padding: 0 3px 7px; gap: 8px; }
    #about-page-nav .about-guide-title { font-size: .65rem; }
    #about-page-nav .about-guide-position { font-size: .72rem; }
    #about-page-nav.about-guide-ready .about-guide-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 44px;
        padding: 9px 5px 2px;
        border: 0;
        border-radius: 6px;
        background: none;
        color: var(--guide-teal);
        font: inherit;
        font-size: .9rem;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
    }
    #about-page-nav .about-guide-chevron {
        width: 8px;
        height: 8px;
        margin-right: 5px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .16s ease;
    }
    #about-page-nav [aria-expanded="true"] .about-guide-chevron { transform: rotate(225deg); }
    #about-page-nav.about-guide-ready:not(.about-guide-open) ul { display: none; }
    #about-page-nav ul {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        max-height: calc(100dvh - 210px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 4px;
        scrollbar-width: thin;
    }
    #about-page-nav ul li a { min-height: 44px; font-size: .88rem; }
    #about-page-nav .about-guide-event a { padding-left: 25px; font-size: .83rem; }
}

@media (prefers-reduced-motion: reduce) {
    #about-page-nav *, #about-page-nav *::before { transition: none !important; }
}
