/* ── Shared nav sidebar ───────────────────────────────────────────────────── */

/* ── Page layout ──────────────────────────────────────────────────────────── */
.site-layout {
    display: block;
    min-height: 100vh;
}

.site-content {
    margin-left: 280px;
    min-height: 100vh;
}

/* ── Backdrop ─────────────────────────────────────────────────────────────── */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 190;
    display: none;
}
.nav-backdrop.visible { display: block; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.nav-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: rgba(0,0,0,0.25);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
}

.nav-sidebar-inner {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 24px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.nav-sidebar-inner::-webkit-scrollbar { width: 4px; }
.nav-sidebar-inner::-webkit-scrollbar-track { background: transparent; }
.nav-sidebar-inner::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}
.nav-sidebar-inner::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

/* Logo */
.nav-logo {
    display: block;
    text-align: center;
    padding: 8px 0 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
    flex-shrink: 0;
}
.nav-logo img {
    width: 240px;
    height: auto;
    display: inline-block;
}

/* Clock */
.nav-clock {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0.6;
    text-align: right;
    margin-bottom: 4px;
    flex-shrink: 0;
}

/* ── Section buttons ─────────────────────────────────────────────────────── */
.nav-section {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.nav-section-btn {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    padding: 12px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.nav-section-btn:hover { opacity: 1; }
.nav-section-btn.open  { opacity: 1; }

.nav-section-btn--link {
    text-decoration: none;
}

.nav-section-icon  { font-size: 15px; flex-shrink: 0; }
.nav-section-label { flex: 1; }

.nav-chevron {
    font-size: 10px;
    transition: transform 0.2s;
    flex-shrink: 0;
    opacity: 0.5;
}
.nav-section-btn.open .nav-chevron { transform: rotate(180deg); }

.nav-section-body {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    background: none;
    border: none;
    border-left: none;
    border-radius: 0;
    z-index: auto;
    padding: 0 2px 12px;
    box-shadow: none;
    flex-direction: column;
    gap: 10px;
    display: none;
}
.nav-section-body.open { display: flex; }

/* ── Fields ──────────────────────────────────────────────────────────────── */
.nav-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#nav-board-form,
#nav-srch-form,
#mobile-board-form,
#mobile-search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#nav-board-form .nav-field,
#nav-srch-form .nav-field,
#mobile-board-form .nav-field,
#mobile-search-form .nav-field {
    gap: 5px;
    margin: 0;
}

.nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.4);
}

.nav-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.nav-ac-wrap { position: relative; }

.nav-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    padding: 8px 11px;
    outline: none;
    font-family: inherit;
    height: 36px;
}
.nav-input:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(0,0,0,0.4);
}
.nav-input::placeholder { color: rgba(255,255,255,0.27); }

input[type="date"].nav-input,
input[type="time"].nav-input { color-scheme: dark; }

select.nav-input {
    color-scheme: dark;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

/* ── Autocomplete dropdown — position:fixed, coords set by JS ────────────── */
.nav-dropdown {
    position: fixed;
    background: #001845;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 6px;
    z-index: 600;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}
.nav-dropdown[hidden] { display: none !important; }

.nav-dropdown.nav-dropdown-local {
    position: absolute;
    z-index: 900;
}

.nav-drop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 11px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 13px;
    gap: 8px;
}
.nav-drop-item:last-child { border-bottom: none; }
.nav-drop-item:hover,
.nav-drop-item.active { background: rgba(255,255,255,0.1); }
.nav-drop-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-drop-crs  { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: rgba(255,255,255,0.32); flex-shrink: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.nav-btn {
    background: linear-gradient(180deg, #1466d6 0%, #0c56bf 100%);
    border: none;
    min-height: 42px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 14px;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: filter 0.15s;
}
.nav-btn:hover  { filter: brightness(1.1); }
.nav-btn:active { filter: brightness(0.92); }

#nav-journey-form .nav-btn,
#mobile-journey-form .nav-btn {
    margin-top: 6px;
}

#ds-form .nav-btn,
#mobile-delays-form .nav-btn {
    margin-top: 6px;
}

/* ── Filter toggles ──────────────────────────────────────────────────────── */
.nav-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav-filters-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.35);
}
.nav-filter-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-family: inherit;
    padding: 7px 10px;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.nav-filter-btn::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
    transition: background 0.12s, border-color 0.12s;
}
.nav-filter-btn.active {
    color: #fff;
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.1);
}
.nav-filter-btn.active::before {
    background: #1466d6;
    border-color: #1466d6;
}
.nav-filter-btn:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

/* ── Site content ─────────────────────────────────────────────────────────── */
.site-content { flex: 1; min-width: 0; }

/* ── Mobile top bar ──────────────────────────────────────────────────────── */
.nav-topbar {
    display: none;
    position: sticky;
    top: 0;
    height: 64px;
    background: rgba(0,10,40,0.94);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-items: center;
    padding: 0 14px;
    z-index: 300;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.nav-topbar-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.nav-mobile-tabs {
    display: none;
}
.nav-mobile-head {
    display: none;
}
.nav-topbar-clock {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.55;
    margin-left: auto;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
}
.nav-hamburger {
    background: none;
    border: none;
    color: #fff;
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: 4px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-native-app .nav-sidebar {
    display: none !important;
}

.nav-native-app .site-content {
    margin-left: 0 !important;
}

.nav-native-app .site-footer {
    display: none !important;
}

.nav-native-app .nav-hamburger {
    display: none !important;
}

.nav-native-app .nav-topbar {
    justify-content: space-between;
    padding-top: max(env(safe-area-inset-top, 0px), 14px);
    min-height: calc(58px + max(env(safe-area-inset-top, 0px), 14px));
    height: auto;
}

.nav-native-app .nav-topbar-logo {
    display: inline-flex;
    align-items: center;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
    .nav-topbar { display: flex; }

    .nav-mobile-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        background: rgba(0, 15, 46, 0.96);
        border-top: 1px solid rgba(255,255,255,0.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 520;
    }

    .nav-mobile-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 56px;
        border-radius: 16px;
        color: rgba(255,255,255,0.62);
        text-decoration: none;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.01em;
        appearance: none;
        border: none;
        background: transparent;
        font-family: inherit;
        cursor: pointer;
        padding: 4px 2px;
        box-sizing: border-box;
    }

    .nav-mobile-tab.active {
        color: #fff;
        background: linear-gradient(180deg, rgba(20,102,214,0.28) 0%, rgba(12,86,191,0.18) 100%);
    }

    .nav-mobile-tab-icon {
        font-size: 18px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 20px;
        flex: 0 0 20px;
    }

    .nav-mobile-tab-label {
        line-height: 1.1;
        text-align: center;
        white-space: normal;
        max-width: 72px;
        min-height: 22px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .nav-mobile-tab-label--wide {
        font-size: 10px;
        letter-spacing: 0;
    }

    .nav-mobile-sheet-wrap {
        position: fixed;
        inset: 0;
        z-index: 510;
        pointer-events: none;
    }

    .nav-mobile-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(0,22,61,0.98) 0%, rgba(0,16,46,0.99) 100%);
        border-top-left-radius: 22px;
        border-top-right-radius: 22px;
        border: 1px solid rgba(255,255,255,0.1);
        border-bottom: none;
        box-shadow: 0 -20px 60px rgba(0,0,0,0.32);
        transform: translateY(110%);
        transition: transform 0.22s ease;
        max-height: min(64dvh, 500px);
        overflow: hidden;
        pointer-events: auto;
    }

    .nav-mobile-sheet.open {
        transform: translateY(0);
    }

    .nav-mobile-sheet-head {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-mobile-sheet-grab {
        position: absolute;
        left: 50%;
        top: 8px;
        transform: translateX(-50%);
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255,255,255,0.24);
    }

    .nav-mobile-sheet-title {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
    }

    .nav-mobile-sheet-close {
        appearance: none;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.12);
        color: #fff;
        width: 36px;
        height: 36px;
        border-radius: 999px;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
    }

    .nav-mobile-sheet-body {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 14px 14px calc(96px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        max-height: calc(min(64dvh, 500px) - 60px);
        -webkit-overflow-scrolling: touch;
    }

    .nav-mobile-sheet-link {
        display: block;
        color: rgba(255,255,255,0.82);
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        padding: 2px 2px 6px;
    }

    .nav-mobile-sheet-toggle,
    .nav-mobile-delay-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        appearance: none;
        -webkit-appearance: none;
        background: linear-gradient(180deg, rgba(12,28,72,0.96) 0%, rgba(7,20,54,0.98) 100%);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 14px;
        color: #fff;
        font: inherit;
        font-size: 14px;
        font-weight: 700;
        padding: 12px 14px;
        cursor: pointer;
        text-align: left;
        transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    .nav-mobile-sheet-toggle .nav-sub-expand-copy,
    .nav-mobile-delay-toggle .nav-sub-expand-copy {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }
    .nav-mobile-sheet-toggle .nav-sub-expand-title,
    .nav-mobile-delay-toggle .nav-sub-expand-title {
        color: #fff;
    }
    .nav-mobile-sheet-toggle .nav-sub-expand-text,
    .nav-mobile-delay-toggle .nav-sub-expand-text {
        color: rgba(255,255,255,0.68);
        margin-top: 1px;
    }
    .nav-mobile-sheet-toggle .nav-sub-chevron,
    .nav-mobile-delay-toggle .nav-sub-chevron {
        color: rgba(255,255,255,0.74);
        flex-shrink: 0;
    }
    .nav-mobile-sheet-toggle.open,
    .nav-mobile-delay-toggle.open {
        background: linear-gradient(180deg, rgba(20,102,214,0.16) 0%, rgba(12,86,191,0.10) 100%);
        border-color: rgba(74,158,255,0.28);
        box-shadow: 0 10px 24px rgba(0,0,0,0.16);
    }

    .nav-mobile-sheet-toggle.open .nav-sub-chevron,
    .nav-mobile-delay-toggle.open .nav-sub-chevron {
        transform: rotate(180deg);
    }

    .nav-mobile-sheet-panel,
    .nav-mobile-delay-body {
        display: none;
        flex-direction: column;
        gap: 14px;
    }

    .nav-mobile-sheet-panel.open,
    .nav-mobile-delay-body.open {
        display: flex;
        padding: 14px;
        margin-top: -4px;
        border-radius: 16px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
    }

    .nav-mobile-sheet-feature {
        display: block;
        text-decoration: none;
        padding: 14px 14px 13px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(20,102,214,0.18) 0%, rgba(12,86,191,0.12) 100%);
        border: 1px solid rgba(74,158,255,0.28);
        color: #fff;
        box-shadow: 0 10px 24px rgba(0,0,0,0.14);
    }

    .nav-mobile-sheet-feature-title {
        display: block;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .nav-mobile-sheet-feature-copy {
        display: block;
        font-size: 12px;
        line-height: 1.45;
        color: rgba(255,255,255,0.72);
    }

    .site-content,
    .srch-main { margin-left: 0; }

    .site-content {
        padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }

    /* Sidebar becomes a slide-in drawer */
    .nav-sidebar {
        left: -100%;
        top: 58px;
        height: calc(100dvh - 58px - 74px - env(safe-area-inset-bottom, 0px));
        width: min(88vw, 340px);
        max-width: 100vw;
        background: #001840;
        overflow-y: auto;
        overflow-x: hidden;
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 500;
        box-shadow: 24px 0 60px rgba(0,0,0,0.35);
    }
    .nav-sidebar.mobile-open { left: 0; }

    .nav-sidebar-inner {
        height: auto;
        min-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding:
            10px
            14px
            calc(32px + env(safe-area-inset-bottom, 0px));
    }

    .nav-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: -2px 0 8px;
        padding: 0 0 10px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-mobile-title {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.55);
    }

    .nav-mobile-close {
        appearance: none;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.12);
        color: #fff;
        width: 36px;
        height: 36px;
        border-radius: 999px;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
    }

    .nav-topbar {
        height: 58px;
        padding: 0 10px 0 12px;
        gap: 8px;
    }

    .nav-topbar-logo img {
        height: 42px;
    }

    .nav-topbar-clock {
        font-size: 12px;
    }

    .nav-native-app .nav-topbar {
        padding-right: 12px;
        padding-top: max(env(safe-area-inset-top, 0px), 12px);
        min-height: calc(58px + max(env(safe-area-inset-top, 0px), 12px));
    }

    .nav-logo {
        padding: 4px 0 12px;
    }

    .nav-logo img {
        width: min(220px, 72vw);
    }

    .nav-section-btn {
        padding: 14px 2px;
        align-items: flex-start;
    }

    .nav-section-label {
        line-height: 1.25;
    }

    .nav-input,
    .nav-btn {
        min-height: 42px;
    }

    .nav-account {
        position: static;
        margin-top: 12px;
        padding:
            12px 0
            calc(12px + env(safe-area-inset-bottom, 0px));
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: auto;
    }

    /* All section bodies are inline inside the drawer */
    .nav-section-body {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        background: none !important;
        border: none !important;
        border-left: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 2px 12px !important;
        display: none !important;
    }
    .nav-section-body.open { display: flex !important; }

}

@media (max-width: 520px) {
    .nav-topbar-clock {
        display: none;
    }

    .nav-topbar {
        justify-content: space-between;
    }

    .nav-topbar-logo {
        min-width: 0;
    }

    .nav-sidebar-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav-mobile-tab {
        min-height: 54px;
    }

    .nav-mobile-tab-icon {
        font-size: 17px;
    }

    .nav-mobile-sheet {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── Account area (bottom of sidebar) ────────────────────────────────────── */
.nav-account {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.nav-account-email {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}

.nav-account-btn {
    display: block;
    text-align: center;
    padding: 8px 10px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(180deg, #1466d6 0%, #0c56bf 100%);
    color: #fff;
    transition: filter 0.15s;
}
.nav-account-btn:hover { filter: brightness(1.1); }

.nav-account-btn--admin {
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.3);
    color: #fbbf24;
}
.nav-account-btn--admin:hover {
    background: rgba(251,191,36,0.25);
    filter: none;
}

.nav-account-btn--secondary {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.7);
}
.nav-account-btn--secondary:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    filter: none;
}

/* ── Nav pill filter buttons (delay station Show options) ────────────────── */
.nav-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nav-filter-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.5);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 11px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nav-filter-pill:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}
.nav-filter-pill.active {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* ── Delay-station filter buttons in nav form ────────────────────────────── */
.nav-ds-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.nav-ds-filter-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 5px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    padding: 6px 4px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nav-ds-filter-btn:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}
.nav-ds-filter-btn.active {
    background: rgba(20,102,214,0.35);
    border-color: rgba(74,158,255,0.55);
    color: #fff;
}

/* ── Nested sub-expandable (e.g. Delays by station) ──────────────────────── */
.nav-sub-section {
    display: flex;
    flex-direction: column;
}

.nav-sub-expand-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    appearance: none;
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: 2px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-family: inherit;
    padding: 7px 4px 7px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.nav-sub-expand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.nav-sub-expand-title {
    display: block;
}
.nav-sub-expand-text {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255,255,255,0.52);
    font-weight: 500;
    white-space: normal;
}
.nav-sub-expand-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-left-color: rgba(255,255,255,0.4);
}
.nav-sub-expand-btn.open {
    color: #fff;
    border-left-color: #4a9eff;
}
.nav-sub-expand-btn:hover .nav-sub-expand-text,
.nav-sub-expand-btn.open .nav-sub-expand-text {
    color: rgba(255,255,255,0.78);
}

.nav-sub-link.nav-sub-expand-btn {
    text-decoration: none;
}

.nav-sub-chevron {
    font-size: 9px;
    opacity: 0.5;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.nav-sub-expand-btn.open .nav-sub-chevron { transform: rotate(180deg); }

.nav-sub-expand-body {
    display: none;
    flex-direction: column;
    padding: 6px 0 4px 14px;
}
.nav-sub-expand-body.open { display: flex; }

/* ── Info links (About & Info section) ────────────────────────────────────── */
.nav-sub-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 0 4px;
}

.nav-sub-link {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    padding: 7px 4px 7px 12px;
    border-radius: 4px;
    border-left: 2px solid rgba(255,255,255,0.12);
    transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.nav-sub-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-left-color: rgba(255,255,255,0.4);
}
.nav-sub-link.active {
    color: #fff;
    border-left-color: #4a9eff;
}

.nav-sub-link--highlight {
    margin-top: 6px;
    border-left-color: rgba(74,158,255,0.35);
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}
.nav-sub-link--highlight:hover {
    border-left-color: #4a9eff;
    color: #fff;
}

.nav-info-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 2px 0 4px;
}

.nav-info-links a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 4px;
    transition: color 0.12s, background 0.12s;
}
.nav-info-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

/* ── Site footer (inside .site-content) ──────────────────────────────────── */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 16px 20px 20px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    font-size: 12px;
}

.site-footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.12s;
}
.site-footer-links a:hover { color: rgba(255,255,255,0.85); }

.site-footer-sep { color: rgba(255,255,255,0.2); }

.site-footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
}
.site-footer-copy a { color: rgba(255,255,255,0.35); text-decoration: none; }
.site-footer-copy a:hover { color: rgba(255,255,255,0.6); }

.site-footer-accuracy {
    font-size: 10px;
    color: rgba(255,255,255,0.15);
    margin-top: 4px;
}
.site-footer-accuracy a { color: rgba(255,255,255,0.2); text-decoration: none; }
.site-footer-accuracy a:hover { color: rgba(255,255,255,0.45); }
