/* WEB-01: a readable disclosure, with the same action on the word and chevron. */
.desktop-nav {
    gap: 10px;
    min-width: 0;
}
.desktop-nav > a,
.nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
.nav-disclosure {
    display: flex;
    align-items: center;
}
.nav-trigger {
    gap: 7px;
    background: transparent;
    transition: color .18s, background .18s, border-color .18s;
}
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
    background: var(--surface);
    border-color: var(--line);
}
.nav-trigger.is-current,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
    color: var(--accent-deep);
}
.nav-trigger[aria-expanded="true"] {
    --nav-chevron-angle: 180deg;
}
.nav-trigger > .icon:last-child,
.nav-trigger:hover > .icon:last-child {
    width: 14px;
    height: 14px;
    transform: rotate(var(--nav-chevron-angle, 0deg));
    transition: transform .18s;
}
.nav-panel {
    display: grid;
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    width: min(1050px, calc(100vw - 80px));
    padding: 28px;
    grid-template-columns: .85fr 2fr;
    gap: 28px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
    background: #fff;
    box-shadow: 0 25px 60px #10253616;
}
.nav-panel .mega-intro {
    padding: 24px;
}
.nav-panel .eyebrow {
    font-size: 11px;
}
.nav-panel .mega-intro strong {
    font-size: 27px;
}
.nav-panel .text-link,
.nav-panel .mega-links a {
    font-size: 14px;
    min-height: 48px;
}
.nav-panel .mega-links a {
    padding: 12px;
    line-height: 1.5;
}
.nav-panel a[aria-current="page"] {
    color: var(--accent-deep);
    background: var(--warm);
}
@media (min-width: 1281px) {
    .header-inner { gap: 16px; }
    .header-actions { gap: 16px; }
    .header-actions .btn { min-height: 44px; font-size: 12px; }
    .header-actions .login-link { font-size: 13px; }
}
@media (min-width: 1281px) and (max-width: 1500px) {
    .header-inner { gap: 12px; }
    .desktop-nav { gap: 4px; }
    .header-actions .login-link { display: none; }
}
@media (max-width: 1280px) {
    .site-header { height: 70px; }
    .header-inner { justify-content: space-between; gap: 12px; }
    .desktop-nav,
    .header-actions { display: none; }
    .language-switch { margin-left: auto; }
    .mobile-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }
    .mobile-toggle > .icon,
    .mobile-toggle:hover > .icon { width: 20px; transform: none; }
    .mobile-menu:not([hidden]) {
        display: flex;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        height: calc(100dvh - 70px);
        padding: 14px 25px max(32px, env(safe-area-inset-bottom));
        flex-direction: column;
        gap: 0;
        overflow: auto;
        overscroll-behavior: contain;
        border-top: 1px solid var(--line);
        background: #fff;
    }
    .mobile-menu > a:not(.btn),
    .mobile-menu summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-height: 54px;
        border-bottom: 1px solid var(--line);
        font-size: 17px;
        list-style: none;
        cursor: pointer;
    }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu summary > .icon { width: 16px; transform: none; }
    .mobile-menu details[open] > summary > .icon { transform: rotate(180deg); }
    .mobile-menu details > a {
        display: block;
        min-height: 44px;
        padding: 12px 18px;
        border-bottom: 1px solid var(--line);
        color: var(--muted);
        font-size: 14px;
    }
    .mobile-menu > .btn { margin-top: 25px; min-height: 52px; flex-shrink: 0; }
    .mobile-menu .mobile-login {
        display: flex !important;
        justify-content: center !important;
        min-height: 48px !important;
        border: 0 !important;
        font-size: 14px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .nav-trigger,
    .nav-trigger > .icon:last-child { transition: none; }
}

/* Room for News without compressing the site navigation or touch targets. */
@media (min-width: 1281px) {
    .site-header .header-inner { max-width: 1600px; gap: 16px; }
    .site-header .desktop-nav { gap: 4px; }
    .site-header .header-actions .login-link { display: none; }
}
@media (min-width: 1600px) {
    .site-header .header-actions .login-link { display: inline-flex; }
    .site-header .desktop-nav { gap: 10px; }
}
