/* ─────────────────────────────────────────────────────────────
   Shared site header — all non-app pages (blog, locations, terms)
   Mirrors the main app's topbar identity exactly.
   Uses absolute font paths so it works from any subdirectory.
   ───────────────────────────────────────────────────────────── */
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:800; font-display:swap; src:url(/css/fonts/barlow-condensed-800.woff2) format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:300; font-display:swap; src:url(/css/fonts/barlow-condensed-300.woff2) format('woff2'); }
@font-face { font-family:'Barlow'; font-style:normal; font-weight:400; font-display:swap; src:url(/css/fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family:'Barlow'; font-style:normal; font-weight:500; font-display:swap; src:url(/css/fonts/barlow-500.woff2) format('woff2'); }

/* ── theme tokens ── */
[data-theme="dark"] {
    --sh-bg:  #0B1E3D;
    --sh-bd:  #1A3A5C;
    --sh-t1:  #F4F8FB;
    --sh-t2:  #8BA0B8;
    --sh-tm:  #4A6A8A;
    --sh-c:   #00C8E8;
    --sh-bgh: #1A3A5C;
    --sh-hole:#0B1E3D;
}
[data-theme="light"] {
    --sh-bg:  #ffffff;
    --sh-bd:  #d0d7e0;
    --sh-t1:  #1a2535;
    --sh-t2:  #556677;
    --sh-tm:  #99aabb;
    --sh-c:   #0099B8;
    --sh-bgh: #eef1f5;
    --sh-hole:#ffffff;
}

/* ── shell ── */
.sh {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 48px;
    background: var(--sh-bg);
    border-bottom: 1px solid var(--sh-bd);
    display: flex;
    align-items: center;
    transition: background .3s, border-color .3s;
}
.sh-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── logo ── */
.sh-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: auto;
    -webkit-tap-highlight-color: transparent;
}
.sh-logo:hover { text-decoration: none; }

/* SVG icon — mirrors main app .sv-* colours */
.sh svg .sv-ring  { fill: none; stroke: var(--sh-c); }
.sh svg .sv-n     { fill: var(--sh-c); }
.sh svg .sv-dim   { fill: var(--sh-t2); }
.sh svg .sv-dot   { fill: var(--sh-c); }
.sh svg .sv-hole  { fill: var(--sh-hole); }
.sh svg .sv-arm   { fill: none; stroke: var(--sh-t2); }
.sh svg .sv-motor { fill: var(--sh-t2); stroke: var(--sh-t2); }

/* wordmark — exact same style as main app .lt / .wm-1 / .wm-2 */
.sh-w1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sh-t1);
    transition: color .3s;
}
.sh-w2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sh-c);
    transition: color .3s;
}

/* ── nav ── */
.sh-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.sh-link {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--sh-t2);
    text-decoration: none;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.sh-link:hover { color: var(--sh-t1); border-color: var(--sh-bd); text-decoration: none; }
.sh-cta {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--sh-c);
    color: #060a10;
    text-decoration: none;
    padding: 5px 13px;
    border-radius: 20px;
    white-space: nowrap;
    transition: opacity .15s;
}
.sh-cta:hover { opacity: .85; text-decoration: none; }

/* ── theme toggle ── */
.sh-theme {
    background: none;
    border: 1px solid var(--sh-bd);
    border-radius: 20px;
    padding: 4px 9px;
    font-size: 13px;
    cursor: pointer;
    color: var(--sh-tm);
    line-height: 1;
    flex-shrink: 0;
    transition: border-color .15s;
    -webkit-tap-highlight-color: transparent;
}
.sh-theme:hover { border-color: var(--sh-t2); }

/* ── responsive ── */
@media (max-width: 480px) {
    .sh-link { display: none; }
    .sh-cta  { font-size: 11px; padding: 5px 11px; }
}
