/* Shared site chrome: header, navigation drawer, buttons. Page-specific styles live in each template. */
:root {
    --navy: #1E4C8A;
    --gold: #C8A25E;
    --gold-glow: rgba(200, 162, 94, 0.35);
    --cream: #FFFDF7;
    --bg-dark: #0d0f12;
    --panel-bg: rgba(22, 26, 33, 0.85);
    --text-light: #e6e8eb;
    --text-dim: #8b949e;
    --header-h: 60px;
}

[hidden] { display: none !important; }

.skip-link {
    position: absolute;
    left: 8px;
    top: -48px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--gold);
    color: #0d0f12;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: var(--header-h);
    padding: 0 16px;
    background: rgba(13, 15, 18, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(200, 162, 94, 0.18);
    font-family: 'Inter', system-ui, sans-serif;
}
.menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
}
.menu-btn:hover { border-color: var(--gold); color: var(--gold); }
.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    text-decoration: none;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}
.site-brand img { width: 34px; height: 34px; }
.header-spacer { flex: 1; }
.account-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--gold) 0%, #9e7d23 100%);
    color: #0d0f12;
    font: 700 0.88rem 'Inter', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.account-btn:hover { filter: brightness(1.08); }
@media (max-width: 480px) {
    .site-brand span { display: none; }
    .account-btn { padding: 8px 12px; font-size: 0.82rem; }
}

/* Navigation drawer */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, 0.55);
}
.nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: min(300px, 85vw);
    padding: 16px 0;
    background: #11141a;
    border-right: 1px solid rgba(200, 162, 94, 0.25);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.6);
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    visibility: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}
.nav-drawer.open { transform: translateX(0); visibility: visible; }
.nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-drawer ul { list-style: none; margin: 10px 0 0; padding: 0; }
.nav-drawer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
}
.nav-drawer a:hover { background: rgba(200, 162, 94, 0.1); color: var(--gold); }
.nav-drawer a[aria-current="page"] { color: var(--gold); border-left: 3px solid var(--gold); padding-left: 19px; }
.nav-drawer .nav-section {
    margin: 14px 22px 4px;
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) { .nav-drawer { transition: none; } }

.site-footer {
    max-width: 900px;
    margin: 32px auto 24px;
    padding: 0 20px;
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--text-dim);
    text-align: center;
}
.site-footer a { color: var(--gold); }
