/* ===============================================================
   Site Header — utility bar, primary nav, dropdowns, drawer, search
   overlay, user menu. Split out of base.css so standalone pages
   (e.g. the sports hub themes) can load the regular header without
   pulling in the whole site bundle. Bundled into site/dashboard
   bundles by build-css.py; also linked directly by
   shared/_site_header.php consumers.
   =============================================================== */
/* ── Utility bar ── */
.site-utility-bar {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(140deg, #0f1620, #172837);
    color: #f4f7fb;
}
.site-utility-inner {
    max-width: var(--site-header-max, 1260px);
    margin: 0 auto;
    padding: .42rem var(--site-header-pad-x, 1.15rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
}
.site-utility-left,
.site-utility-right {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    position: relative;
}
.site-utility-market {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .68rem;
    font-weight: 800;
    color: #9ec3e1;
}
.site-utility-link {
    color: #f2f6fb;
    text-decoration: none;
    font-size: .78rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-family: "Oswald", "Arial Narrow", sans-serif;
}
.site-utility-link:hover,
.site-utility-link:focus {
    color: #ffbf62;
}
.site-utility-now {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #f2f6fb;
    font-size: .8rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-family: "Oswald", "Arial Narrow", sans-serif;
}
.site-utility-now .fa {
    color: #ffbf62;
    font-size: .82rem;
}
.site-utility-time {
    line-height: 1;
}
.site-utility-temp {
    line-height: 1;
    font-weight: 700;
    color: #ffbf62;
    letter-spacing: 0;
}
.site-utility-cta {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 .75rem;
    border-radius: 999px;
    border: 1px solid #f6a03c;
    background: #f6a03c;
    color: #122133;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-size: .76rem;
    font-weight: 700;
}
.site-utility-cta:hover,
.site-utility-cta:focus {
    color: #122133;
    background: #ffc06c;
    border-color: #ffc06c;
}

/* ── User menu trigger ── */
.user-menu-trigger {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .15rem .52rem;
    cursor: pointer;
}
.user-menu-trigger .fa {
    font-size: .82rem;
}
.user-menu-trigger:hover,
.user-menu-trigger:focus {
    border-color: rgba(221, 72, 20, 1);
}
.user-menu-avatar {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #f6a03c;
    color: #0f2134;
    font-size: .7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.user-topbar-greeting {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
}
.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 240px;
    background: #fff;
    border: 1px solid #d6d6d6;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .16);
    z-index: 1200;
    padding: .4rem;
}
.user-menu-meta {
    display: flex;
    flex-direction: column;
    padding: .5rem .55rem;
    color: #1e1e1e;
    border-bottom: 1px solid #ececec;
    margin-bottom: .3rem;
}
.user-menu-meta strong {
    font-size: .86rem;
    line-height: 1.2;
}
.user-menu-meta span {
    font-size: .75rem;
    color: #666;
    margin-top: .12rem;
}
.user-menu-item {
    display: block;
    text-decoration: none;
    color: #111;
    font-size: .84rem;
    padding: .48rem .55rem;
}
.user-menu-item:hover,
.user-menu-item:focus {
    background: #f3f5f7;
    color: #111;
}
.user-menu-divider {
    height: 1px;
    background: #ececec;
    margin: .3rem 0;
}
.user-menu-item--danger {
    color: #b42318;
}

/* ── Site header & navigation ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(14, 36, 55, .12);
    background: var(--header-bg, #ececec);
    backdrop-filter: saturate(165%) blur(10px);
}
.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(10, 28, 42, .14);
}
.site-header-shell {
    max-width: var(--site-header-max, 1260px);
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: .4rem var(--site-header-pad-x, 1.15rem);
}
.site-logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.site-logo img {
    display: block;
    width: auto;
    max-width: 130px;
    max-height: 45px;
    height: auto;
}
.site-primary-nav {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
}
.site-primary-nav a {
    position: relative;
    color: var(--header-nav-color, #1c2f42);
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    letter-spacing: .05em;
    font-size: 1.02rem;
    font-weight: 500;
    padding: .48rem .6rem;
}
.site-primary-nav a::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .18rem;
    height: 2px;
    background: var(--header-accent-color, #f6a03c);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 170ms ease;
}
.site-primary-nav a:hover,
.site-primary-nav a:focus,
.site-primary-nav a.is-active {
    color: #0f4d88;
}
.site-primary-nav a:hover::after,
.site-primary-nav a:focus::after,
.site-primary-nav a.is-active::after {
    transform: scaleX(1);
}
.site-nav-item {
    position: relative;
    display: inline-flex;
}
.site-nav-item--has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.site-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
    padding: .4rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
    z-index: 40;
}
.site-nav-item--has-dropdown:hover .site-nav-dropdown,
.site-nav-item--has-dropdown:focus-within .site-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-nav-dropdown a {
    color: var(--header-nav-color, #1c2f42);
    text-decoration: none;
    text-transform: none;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: normal;
    padding: .5rem .7rem;
    border-radius: 6px;
    white-space: nowrap;
}
.site-nav-dropdown a:hover,
.site-nav-dropdown a:focus {
    background: rgba(15, 77, 136, .08);
    color: #0f4d88;
}
.drawer-subnav {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    margin: -.1rem 0 .15rem;
}
.drawer-subnav a {
    font-size: 1rem;
    letter-spacing: .04em;
    padding: .18rem 0;
    opacity: .78;
}
.site-header-actions {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.site-search-link {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 38px;
    padding: 0 .7rem;
    color: #18334b;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(20, 43, 64, .14);
    background: rgba(255, 255, 255, .72);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: "Oswald", "Arial Narrow", sans-serif;
}
.site-search-link:hover,
.site-search-link:focus {
    color: #0f4d88;
    border-color: rgba(15, 77, 136, .3);
}
/* ── Search overlay ───────────────────────────────────────────── */
.site-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(60px, 12vh, 140px);
    background: rgba(10, 22, 36, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: searchOverlayIn 180ms ease;
}
.site-search-overlay[hidden] { display: none; }
@keyframes searchOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.site-search-overlay-inner {
    position: relative;
    width: min(640px, calc(100vw - 2rem));
}
.site-search-overlay-form {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.site-search-overlay-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.1rem;
    border: none;
    outline: none;
    font-size: 1.15rem;
    color: #1c2f42;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}
.site-search-overlay-form input[type="search"]::placeholder {
    color: #c5c5c5;
}
.site-search-overlay-submit {
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(221, 72, 20, 1);
    color: #fff;
    border: none;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease;
}
.site-search-overlay-submit:hover {
    background: rgba(221, 72, 20, .85);
}
.site-search-overlay-prompts {
    margin-top: .8rem;
    color: rgba(255, 255, 255, .9);
}
.site-search-overlay-prompts-label {
    display: block;
    margin-bottom: .35rem;
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    color: rgba(255, 255, 255, .72);
}
.site-search-overlay-prompt-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.site-search-overlay-prompt {
    display: inline-flex;
    align-items: center;
    padding: .28rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    font-size: .8rem;
    line-height: 1.2;
}
.site-search-overlay-prompt:hover,
.site-search-overlay-prompt:focus {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .16);
    color: #fff;
}
.site-search-overlay-close {
    position: absolute;
    top: -2.6rem;
    right: -2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .75);
    font-size: 1.25rem;
    cursor: pointer;
    padding: .25rem .5rem;
    line-height: 1;
}
.site-search-overlay-close:hover {
    color: #fff;
}
body.search-overlay-open {
    overflow: hidden;
}
.menu-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 38px;
    padding: 0 .35rem;
    color: var(--header-nav-color, #1c2f42);
    text-decoration: none;
    border: none;
    background: none;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    line-height: 1;
    cursor: pointer;
}
.menu-toggle-btn:hover,
.menu-toggle-btn:focus {
    color: #0f4d88;
}
.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}
.dashboard-site-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #111;
    text-decoration: none;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem 0;
}
.dashboard-site-link:hover,
.dashboard-site-link:focus {
    color: rgba(221, 72, 20, 1);
}
.dashboard-site-link .fa {
    font-size: 1rem;
}

body.menu-open {
    overflow: hidden;
}
.site-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1090;
}
.site-menu-overlay[hidden] {
    display: none !important;
}
.site-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(420px, 92vw);
    background: #111214;
    color: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
    transform: translateX(100%);
    transition: transform 280ms ease;
    z-index: 1260;
}
.site-drawer.is-open {
    transform: translateX(0);
}
.site-drawer-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.drawer-brand {
    color: #f3f7fb;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.drawer-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
}
.drawer-close-btn:hover,
.drawer-close-btn:focus {
    background: rgba(221, 72, 20, .18);
    border-color: rgba(221, 72, 20, .5);
    color: #fff;
}
.drawer-top {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1rem;
}
.drawer-search {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}
.drawer-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    font-variant-ligatures: none;
    letter-spacing: normal;
    text-transform: none;
    caret-color: #fff;
    padding: .82rem .3rem .82rem 1.5rem;
    font-size: .95rem;
    min-height: 48px;
    opacity: 1;
    text-shadow: none;
}
.drawer-search-input:focus,
.drawer-search-input:not(:focus) {
    padding-left: 1.5rem;
}
.drawer-search-input:focus,
.drawer-search-input:active,
.drawer-search-input:not(:placeholder-shown) {
    color: #fff;
    -webkit-text-fill-color: #fff;
    opacity: 1;
}
.drawer-search-input::placeholder {
    color: rgba(255, 255, 255, .8);
}
.drawer-search-input:-webkit-autofill,
.drawer-search-input:-webkit-autofill:hover,
.drawer-search-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px rgba(23, 44, 65, 1) inset;
}
.drawer-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    margin: 3px;
    border: none;
    border-radius: 999px;
    background: rgba(221, 72, 20, 1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}
.drawer-search-btn:hover,
.drawer-search-btn:focus {
    background: rgba(190, 60, 15, 1);
}
.drawer-group{
    padding-left: 1rem;
}
/* A <p>, not a heading: the menu label precedes each page's H1. */
.drawer-group-title {
    font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
    margin: 2rem 0 .4rem;
    color: #9ec3e1;
    text-transform: uppercase;
    font-size: .68rem;
    letter-spacing: .12em;
    font-weight: 800;
}
.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.drawer-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    letter-spacing: .06em;
    font-size: 1.3rem;
    padding: .26rem 0;
}
.drawer-nav a:hover,
.drawer-nav a:focus,
.drawer-nav a.active {
    color: rgba(221, 72, 20, 1);
}
.drawer-bottom {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding: 1rem 1rem 1.1rem;
}
.drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .75rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(221, 72, 20, 1);
    margin-top: .95rem;
}
.drawer-btn--primary {
    background: rgba(221, 72, 20, 1);
    color: #fff;
}
.drawer-btn--primary:hover,
.drawer-btn--primary:focus {
    background: rgba(190, 60, 15, 1);
}

@media (max-width: 980px) {
    .site-header.is-scrolled {
        background: #000;
    }
    .site-header.is-scrolled .menu-toggle-btn {
        color: #fff;
    }
    .site-header.is-scrolled .menu-toggle-btn:hover,
    .site-header.is-scrolled .menu-toggle-btn:focus {
        color: rgba(221, 72, 20, 1);
    }
    .site-primary-nav,
    .site-search-link {
        display: none;
    }
    .menu-toggle-btn {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .site-utility-inner {
        padding: .38rem .75rem;
    }
    .site-utility-market {
        display: none;
    }
    .site-utility-right {
        gap: .55rem;
    }
    .site-header-shell {
        min-height: 62px;
        padding-left: .75rem;
        padding-right: .75rem;
    }
    .site-logo img {
        max-width: 135px;
        max-height: 38px;
    }
    .user-menu-panel {
        right: -8px;
        min-width: 220px;
    }
    .user-topbar-greeting {
        display: none;
    }
    .site-drawer {
        width: 100vw;
        max-width: 100vw;
    }
}

@media (max-width: 900px) {
    .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (max-width: 640px) {
    .site-utility-time {
        display: none;
    }
}

/* Standalone pages load this file without base.css, so carry the visually
   hidden helper the header/search labels rely on. */
.site-utility-bar .sr-only,
.site-header .sr-only,
.site-search-overlay .sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* The closed drawer is parked off-canvas to the right; base.css clips that
   for site pages, standalone pages need it here or they side-scroll. */
body {
    overflow-x: clip;
}
