/* The Over ons title is a page link; its existing dropdown controller owns
   the separate arrow. All other desktop navigation remains unchanged. */
body.ds-choice .site-header #main-nav > .ds039-about-menu {
    display: grid;
    grid-template-columns: auto auto;
    align-items: stretch;
    column-gap: 2px;
}
body.ds-choice .site-header #main-nav .ds039-about-link {
    display: flex;
    align-items: center;
    padding: 18px 0;
    color: inherit;
    font: inherit;
    text-decoration: none;
}
body.ds-choice .site-header #main-nav .ds039-about-link:hover,
body.ds-choice .site-header #main-nav .ds039-about-link[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}
body.ds-choice .site-header #main-nav > .ds039-about-menu > .ds039-about-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
body.ds-choice .site-header #main-nav .ds039-about-toggle > span {
    display: block;
    transition: transform .15s ease;
}
body.ds-choice .site-header #main-nav .ds039-about-toggle[aria-expanded="true"] > span {
    transform: rotate(180deg);
}
body.ds-choice .site-header #main-nav .ds039-about-menu > .af-menu-panel {
    grid-column: 1 / -1;
}

@media (max-width: 980px) {
    /* Overflow belongs to the whole menu. Direct items must not compress down
       to 44px while the two-line choice link or an open submenu needs more. */
    body.ds-choice .site-header #main-nav.is-open > * {
        flex: 0 0 auto;
    }
    body.ds-choice .site-header #main-nav.is-open {
        background: rgba(48, 51, 49, .96) !important;
        color: #fff !important;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        isolation: isolate;
    }
    body.ds-choice .site-header #main-nav .af-menu-panel {
        background: rgba(48, 51, 49, .96) !important;
        color: #fff !important;
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
    }
    body.ds-choice .site-header #main-nav > .ds036-choice-link {
        display: block;
        height: auto !important;
        min-height: 0;
        padding-block: 12px !important;
        white-space: normal;
        overflow: visible;
        text-decoration: none;
    }
    body.ds-choice .site-header #main-nav .ds036-choice-hint {
        position: static;
        display: block;
        margin: 4px 0 0;
        padding: 0;
        line-height: 1.4;
        text-decoration: none;
    }
    body.ds-choice .site-header #main-nav > .ds039-about-menu {
        grid-template-columns: minmax(0, 1fr) 44px;
        column-gap: 0;
    }
    body.ds-choice .site-header #main-nav .ds039-about-link {
        min-height: 44px;
        box-sizing: border-box;
        padding: 10px 0;
        border-bottom: 1px solid var(--line, #c5bbab);
        color: #fff !important;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;
    }
    body.ds-choice .site-header #main-nav > .ds039-about-menu > .ds039-about-toggle {
        width: 44px;
        height: auto;
        min-height: 44px;
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--line, #c5bbab);
        color: #fff !important;
    }
    /* Dots and indentation distinguish links inside a submenu from the
       top-level destinations, without changing their labels or destinations. */
    body.ds-choice .site-header #main-nav .af-menu-panel .team-menu-all,
    body.ds-choice .site-header #main-nav .af-menu-panel .af-menu-group > summary,
    body.ds-choice .site-header #main-nav .af-menu-panel .af-menu-items > a {
        position: relative;
        padding-left: 20px !important;
    }
    body.ds-choice .site-header #main-nav .af-menu-panel .team-menu-all::before,
    body.ds-choice .site-header #main-nav .af-menu-panel .af-menu-group > summary::before,
    body.ds-choice .site-header #main-nav .af-menu-panel .af-menu-items > a::before {
        content: "\2022";
        position: absolute;
        left: 2px;
        top: 9px;
        color: currentColor;
        font-size: 1em;
        line-height: 1.5;
    }
    body.ds-choice .site-header #main-nav .af-menu-panel .af-menu-items {
        margin-left: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ds-choice .site-header #main-nav .ds039-about-toggle > span {
        transition: none;
    }
}
