/* Shared by every page bin/pb-pages writes. One stylesheet rather than inline
   CSS in 656 files: it is the difference between a 4KB page and a 12KB one,
   and after the first hit it is not downloaded again. Tokens are copied from
   index.html so the market pages and the board look like one site — the
   venue colours (#3B5BDB Polymarket, #00A67E Kalshi) stay put, they identify
   a brand rather than a state. */
:root{
  --bg:#04050A; --panel:#12141A; --panel-2:#171A21; --rule:#20242D;
  /* --ink-3 is #6B7280 on the board, which measures 3.8:1 on the card
     background — under the 4.5:1 small-text threshold. These pages are prose
     rather than chrome, and the risk disclaimer is set in it, so it is lifted
     to clear AA. */
  --ink:#E7E9ED; --ink-2:#9AA2AF; --ink-3:#949CAA;
  --lo:#E8734A; --hi:#3FBFA8;
  --f:ui-sans-serif,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  --m:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  --n1:#5BE7C4; --n2:#54B7FF; --n3:#FF4FD8;
  --cta:linear-gradient(96deg,var(--n1) 0%,var(--n2) 52%,var(--n3) 100%);
  --cta-ink:#0A0512;
  --glow:0 0 15px rgba(84,183,255,.36),0 0 32px rgba(255,79,216,.18);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--f);
  font-size:15px;line-height:1.6;
  /* the board is a fixed canvas; these pages are documents and scroll */
  min-height:100%}
a{color:var(--n2);text-decoration:none}
a:hover{text-decoration:underline}

/* ---- chrome ---- */
.top{display:flex;align-items:center;gap:20px;flex-wrap:wrap;
  padding:14px 22px;border-bottom:1px solid var(--rule);
  background:rgba(8,9,12,.9);backdrop-filter:blur(8px);
  position:sticky;top:0;z-index:5}
.brand{font-weight:700;letter-spacing:-.02em;font-size:16px;color:var(--ink)}
.brand b{font-weight:700;background:var(--cta);-webkit-background-clip:text;
  background-clip:text;color:transparent}
.brand:hover{text-decoration:none}
.top nav{display:flex;gap:18px;font-size:13.5px}
.top nav a{color:var(--ink-2)}
.top nav a:hover{color:var(--ink);text-decoration:none}

main{max-width:820px;margin:0 auto;padding:26px 22px 60px}
.grid{max-width:none}

footer{border-top:1px solid var(--rule);padding:26px 22px 40px;
  color:var(--ink-3);font-size:12.5px;line-height:1.65}
footer p{max-width:820px;margin:0 auto}
footer p+p{margin-top:9px}
footer .warn{color:var(--ink-3)}

/* ---- breadcrumbs ---- */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  font-size:12px;color:var(--ink-3);margin-bottom:16px}
.crumbs a{color:var(--ink-3)}
.crumbs a:hover{color:var(--ink-2)}
.crumbs i{font-style:normal;color:#2A3038}
.crumbs span{color:var(--ink-2)}

/* ---- head of a market page ---- */
.venue-tag{display:inline-flex;align-items:center;gap:7px;
  font-family:var(--m);font-size:10px;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink-2);
  padding:5px 10px;border-radius:99px;border:1px solid var(--rule);
  background:var(--panel);margin-bottom:14px}
.venue-tag::before{content:"";width:7px;height:7px;border-radius:50%;
  background:var(--vc)}
.venue-tag span{color:var(--ink-3)}

h1{font-size:29px;line-height:1.22;letter-spacing:-.02em;font-weight:660;
  margin-bottom:14px}
.lead{font-size:16.5px;line-height:1.62;color:var(--ink-2);margin-bottom:20px}
.lead b{color:var(--ink);font-weight:640}

/* the sentence that makes each page its own, and the one that stops a market
   months past its resolution date from reading as live */
.stand{font-size:14.5px;color:var(--ink-2);margin-bottom:18px}
.stale{font-size:13.5px;line-height:1.55;color:var(--ink-2);
  border-left:2px solid var(--lo);padding:2px 0 2px 13px;margin-bottom:20px}

.cta{display:inline-block;background:var(--cta);color:var(--cta-ink);
  font-weight:660;font-size:14px;padding:11px 20px;border-radius:10px;
  box-shadow:var(--glow);margin-bottom:26px}
.cta:hover{filter:brightness(1.08) saturate(1.05);text-decoration:none}

/* ---- cards ---- */
.card{background:var(--panel);border:1px solid var(--rule);border-radius:13px;
  padding:18px 19px;margin-bottom:16px}
.card h2{font-family:var(--m);font-size:9.5px;letter-spacing:.17em;
  text-transform:uppercase;color:var(--ink-3);font-weight:600;
  margin-bottom:13px}
.card h2 a{color:var(--ink);font-family:var(--f);font-size:16px;
  letter-spacing:-.01em;text-transform:none;font-weight:640}
.card .muted{color:var(--ink-3);font-family:var(--m);font-size:11px;
  letter-spacing:.06em}
.card p+p{margin-top:11px}
.note{font-size:12.5px;line-height:1.6;color:var(--ink-3);margin-top:12px}

/* ---- odds table ---- */
.odds{width:100%;border-collapse:collapse}
.odds th{text-align:left;font-weight:500;font-size:14px;padding:7px 0;
  display:flex;align-items:center;gap:9px}
.odds i{width:8px;height:8px;border-radius:2px;flex:0 0 8px}
.odds td{padding:7px 0}
.odds .num{font-family:var(--m);font-size:13.5px;text-align:right;
  width:74px;white-space:nowrap}
.odds .bar{width:38%;padding-left:14px}
.odds .bar span{display:block;height:5px;border-radius:99px;
  background:linear-gradient(90deg,#54B7FF,#5BE7C4);min-width:2px}
.odds tr+tr th,.odds tr+tr td{border-top:1px solid var(--rule)}

/* ---- sparkline ---- */
.spark{width:100%;height:120px;display:block}
.axis{display:flex;justify-content:space-between;font-family:var(--m);
  font-size:10.5px;color:var(--ink-3);margin-top:7px}

/* ---- stats ---- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));
  gap:14px 18px}
.stats dt{font-family:var(--m);font-size:9px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-3);margin-bottom:3px}
.stats dd{font-size:14.5px;color:var(--ink)}
.stats .muted{color:var(--ink-3);font-size:12px}

/* ---- related / hub lists ---- */
.rel{list-style:none;display:grid;gap:2px}
.rel a{display:block;padding:9px 10px;border-radius:8px;color:var(--ink);
  font-size:14px;line-height:1.4}
.rel a:hover{background:var(--panel-2);text-decoration:none}
.rel b{font-weight:500;display:block}
.rel em{font-style:normal;font-family:var(--m);font-size:11px;
  color:var(--ink-3);display:block;margin-top:3px}

.grid{display:grid;gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}

/* ---- category listing ---- */
/* the table is wider than a phone; it scrolls inside its own box so the page
   body never scrolls sideways */
.tablewrap{overflow-x:auto;border:1px solid var(--rule);border-radius:13px;
  background:var(--panel)}
.listing{width:100%;border-collapse:collapse;min-width:600px}
.listing th{font-family:var(--m);font-size:9px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-3);font-weight:600;
  text-align:left;padding:12px 14px;border-bottom:1px solid var(--rule)}
.listing td{padding:11px 14px;border-bottom:1px solid var(--rule);
  font-size:13.5px;vertical-align:middle}
.listing tr:last-child td{border-bottom:0}
.listing tbody tr:hover{background:var(--panel-2)}
.listing .q a{color:var(--ink);display:block;max-width:420px}
.listing .num{font-family:var(--m);text-align:right;white-space:nowrap}
.listing .chg.up{color:var(--hi)}
.listing .chg.dn{color:var(--lo)}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;
  color:var(--ink-2);white-space:nowrap}
.pill::before{content:"";width:7px;height:7px;border-radius:50%;
  background:var(--vc)}

@media (max-width:620px){
  main{padding:20px 16px 44px}
  h1{font-size:23px}
  .lead{font-size:15.5px}
  .top{padding:12px 16px;gap:14px}
  .odds .bar{display:none}
  .odds .num{width:auto}
}
