/* ── shared.css — BI dark theme base ───────────────────────
   Loaded by all pages. Page-specific overrides go in inline <style>.
   ────────────────────────────────────────────────────────── */

/* ── Design tokens ─────────────────────────────────────── */
:root {
    --bg: #0b1120;
    --surface: #141c2e;
    --surface2: #1a2540;
    --border: #1e2d4a;
    --border-hi: #2a3f66;
    --text: #e2e8f0;
    --text-dim: #8b9ab8;
    --text-faint: #7a8ba8;
    --accent: #60a5fa;
    --purple: #a78bfa;
    --green: #34d399;
    --amber: #f59e0b;
    --orange: #fb923c;
    --red: #ef4444;
    --pink: #ec4899;
    --radius: 10px;
    --max-w: 1200px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Typography ────────────────────────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Sticky header (.hdr) ──────────────────────────────── */
.hdr {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,17,32,.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem;
}
.hdr-in {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ── Nav bar ───────────────────────────────────────────── */
.nav { display: flex; gap: .15rem; margin-left: auto; }
.nav a {
    font-size: .7rem; font-weight: 500;
    color: var(--text-dim);
    padding: .45rem .65rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: all .15s;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.nav a:hover { color: var(--text); background: var(--surface2); text-decoration: none; }

/* ── Content containers ────────────────────────────────── */
.main, .wrap, .container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.25rem;
}

/* ── Footer — all 3 class names, same base ─────────────── */
.site-footer, .ftr, .ft {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    font-size: .72rem;
    color: var(--text-faint);
}
.site-footer a, .ftr a, .ft a {
    color: var(--text-dim);
    margin: 0 .4rem;
}
.site-footer a:hover, .ftr a:hover, .ft a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 700px) {
    .nav { display: none; }
}
