/* =============================================================================
   bc.ly shared chrome — tokens, fonts, nav and footer.
   COPIED VERBATIM from public/index.html, which stays self-contained on purpose
   (AGENTS.md: inline CSS/JS, renders offline) so the vote page never gains a
   render-blocking request on Libyan mobile. Satellites load this instead of keeping
   their own copies, so they cannot drift from each other.
   `node tools/check-theme.mjs` fails if these tokens diverge from index.html.
   ============================================================================= */
  @font-face{font-family:'Beiruti';src:url('/fonts/Beiruti-ExtraBold.woff2') format('woff2');font-weight:800;font-display:swap}
  @font-face{font-family:'Beiruti';src:url('/fonts/Beiruti-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
  @font-face{font-family:'Zain';src:url('/fonts/Zain-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
  @font-face{font-family:'Zain';src:url('/fonts/Zain-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
  @font-face{font-family:'Zain';src:url('/fonts/Zain-ExtraBold.woff2') format('woff2');font-weight:800;font-display:swap}
  @font-face{font-family:'Zain';src:url('/fonts/Zain-Black.woff2') format('woff2');font-weight:900;font-display:swap}
  :root{
    --bg:#f5f7f3; --surface:#ffffff; --ink:#15251b; --muted:#586b5f; --faint:#8b9a90;
    --green:#0f7a43; --green-deep:#0b5c33; --green-soft:#e4f2ea;
    --gold:#c8991f; --gold-soft:#f8edcd; --gold-line:#e9c86a;
    --silver:#7f8b96; --silver-soft:#eef1f4;
    --bronze:#b06a33; --bronze-soft:#f6e7d8;
    --line:#e5e9e2; --line-2:#d6ddd2;
    --sans:'Zain','Segoe UI',Tahoma,sans-serif; --display:'Beiruti','Zain',sans-serif;
  }
  *{box-sizing:border-box}
  body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased}
  .wrap{max-width:940px;margin:0 auto;padding-inline:18px}
  a{color:inherit;text-decoration:none}
  .num{font-variant-numeric:tabular-nums}

  nav{position:sticky;top:0;z-index:40;background:rgba(245,247,243,0.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
  nav .row{max-width:940px;margin:0 auto;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
  .brand{display:flex;align-items:center;gap:10px}
  .brand .mk{width:38px;height:38px;border-radius:11px;background:var(--green);display:grid;place-items:center;box-shadow:0 6px 16px -6px rgba(15,122,67,.6)}
  .brand .mk svg{width:22px;height:22px}
  .brand b{font-family:var(--display);font-weight:800;font-size:22px;line-height:1}
  .brand small{display:block;color:var(--muted);font-size:12.5px;font-weight:700;margin-top:1px}
  /* Icon navigation, one system across the site. The ACTIVE tab keeps its label in the
     green-soft pill so the current page is obvious without hover — mobile has no hover, so
     meaning must never depend on it. Inactive tabs are icon-only to fit the bar at 320px,
     where the old text tabs overflowed. */
  .navlinks{display:flex;gap:6px;align-items:center;flex:none}
  .navlinks a{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:13.5px;
    color:var(--muted);padding:8px;border-radius:11px;border:1px solid transparent;line-height:1}
  .navlinks a svg{width:21px;height:21px;flex:none}
  .navlinks a > span{display:none;white-space:nowrap}
  .navlinks a.on{color:var(--green-deep);background:var(--green-soft);border-color:#cbe6d6;padding:8px 12px}
  .navlinks a.on > span{display:inline}
  .navlinks a:hover{color:var(--green-deep);background:var(--green-soft)}
  @media(max-width:360px){
    .navlinks{gap:3px}
    .navlinks a{padding:7px}
    .navlinks a.on{padding:7px 9px;font-size:12.5px}
    .navlinks a svg{width:19px;height:19px}
  }

  .brand small{white-space:nowrap}
  /* Measured: the wordmark needs 115px, but after the four-icon bar the brand has 38px at 320
     and 96px at 430 — it only fits from ~520px. Rather than ellipsise it to «المرشّ…», phones
     show the mark alone (the active pill already names the page). Full brand returns on wider
     screens. */
  @media(max-width:519px){ .brand > span:not(.mk){display:none} }   /* keep the mark, drop the wordmark */
  /* brand shrinks so the nav never spills (see the 320px overflow fixed in #85) */
  .brand{min-width:0}
  .brand > span{min-width:0;overflow:hidden}
  .brand b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  footer{border-top:1px solid var(--line);margin-top:28px;padding:22px 0 34px;text-align:center;color:var(--faint);font-size:13px}
  footer .fb{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;
    color:var(--faint);border:1px solid var(--line);margin:0 0 12px;transition:.15s}
  footer .fb:hover{color:var(--green);border-color:#cbe6d6;background:var(--green-soft)}
  footer .fb svg{width:17px;height:17px}

  /* ---- vote sheet ---- */
