/* The Likely: "Number Line" design (Direction A) with the Ledger from Direction B. Blue and cream. */
:root {
  --cream: #F3ECDC;
  --cream-2: #E8DFC8;
  --paper: #FBF7EE;
  --ink: #13213F;
  --ink-2: #2E3A55;
  --muted: #555C6B;
  --rule: #CDC2A8;
  --blue: #2443D6;
  --blue-dark: #182F9C;
  --blue-band: rgba(36, 67, 214, 0.16);
  --ok: #1D6B45;
  --warn: #8A5A0B;
  --bad: #A3241A;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
.page { display: flex; flex-direction: column; min-height: 100vh; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; width: 100%; }
@media (max-width: 640px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.mono { font-family: var(--mono); }
.kicker { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--ink); background: var(--cream); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.glyph { position: relative; display: inline-block; width: 44px; height: 16px; }
.glyph .l { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); }
.glyph .d { position: absolute; left: 8px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.glyph .r { position: absolute; left: 24px; top: 2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); }
.primary-nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.primary-nav a:hover { border-bottom-color: var(--rule); }
.primary-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--blue); }
.primary-nav a.cta { background: var(--ink); color: var(--cream); font-weight: 700; padding: 0 16px; margin-left: 6px; border-bottom: 0; }
.notice { background: var(--cream-2); border-bottom: 1px solid var(--rule); }
.notice p { margin: 0 auto; padding: 9px 32px; font-size: 13px; color: var(--ink-2); max-width: 1240px; font-family: var(--mono); }

/* Main */
main.wrap { flex: 1; padding-top: 48px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 72px; }
main.wrap.tight { padding-top: 32px; gap: 56px; }
section { display: flex; flex-direction: column; gap: 20px; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: 72px; line-height: 0.96; letter-spacing: -0.045em; text-wrap: balance; }
h1.big { font-size: 60px; line-height: 1; }
h2 { font-size: 34px; line-height: 1.1; }
h3 { margin: 0; font-size: 18px; font-weight: 700; }
@media (max-width: 640px) { h1 { font-size: 44px; } h1.big { font-size: 40px; } h2 { font-size: 26px; } }
p { margin: 0; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.body { font-size: 17px; color: var(--ink-2); text-wrap: pretty; max-width: 46em; }
.small { font-size: 14px; color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.ours { color: var(--blue); }
.market { color: var(--ink); }
.strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 32px 64px; align-items: end; }
.hero-text { display: flex; flex-direction: column; gap: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.key-ours { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); display: inline-block; }
.key-mkt { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); display: inline-block; }
.key-fin { width: 4px; height: 18px; background: var(--ink); display: inline-block; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 15px; border-top: 2px solid var(--ink); padding-top: 16px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
.facts a { color: var(--ink); text-decoration: none; }
.facts a:hover { text-decoration: underline; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 22px; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--cream); }

/* Number line, large (feature and game page) */
.feature { background: var(--paper); border: 1px solid var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) { .feature { padding: 20px; } }
.nl-big { position: relative; height: 150px; margin: 0 4px; }
.nl-big .axis { position: absolute; left: 0; right: 0; top: 74px; height: 2px; background: var(--ink); }
.nl-big .tick { position: absolute; top: 68px; width: 1px; height: 14px; background: var(--ink); }
.nl-big .mid { position: absolute; left: 50%; top: 62px; width: 2px; height: 26px; margin-left: -1px; background: var(--ink); }
.nl-big .band { position: absolute; top: 66px; height: 18px; background: var(--blue-band); }
.nl-big .dot { position: absolute; top: 60px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--blue); z-index: 2; }
.nl-big .ring { position: absolute; top: 60px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; border: 5px solid var(--ink); background: var(--paper); z-index: 1; }
.nl-big .fin { position: absolute; top: 50px; width: 5px; height: 50px; margin-left: -2px; background: var(--ink); z-index: 3; }
.nl-big .lab { position: absolute; margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }
.nl-big .lab.top { top: 18px; }
.nl-big .lab.al { transform: translateX(-15px); } .nl-big .lab.ar { transform: translateX(calc(-100% + 15px)); }
@media (max-width: 640px) { .nl-big .lab { font-size: 12px; } .nl-big .end { font-size: 10px; } }
.nl-big .lab.bot { top: 100px; }
.nl-big .end { position: absolute; top: 128px; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.feature-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px 48px; border-top: 1px solid var(--rule); padding-top: 24px; }
.feature-facts .big { margin: 0; font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.feature-facts .big small { font-size: 20px; font-weight: 600; letter-spacing: 0; }

/* Number line rows (boards) */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) 84px; gap: 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.rows .row:first-child { border-top: 1px solid var(--ink); }
.rows .row:last-child { border-bottom: 1px solid var(--ink); }
.row .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row .who a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.row .who a:hover { color: var(--blue); text-decoration: underline; }
.row .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.row .flag { font-family: var(--mono); font-size: 12px; color: var(--warn); font-weight: 600; }
.row .gapnum { margin: 0; text-align: right; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.row .gapnum.hot { color: var(--blue); }
.row .gapnum small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.nl { position: relative; height: 34px; }
.nl .axis { position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--rule); }
.nl .mid { position: absolute; left: 50%; top: 9px; width: 2px; height: 16px; margin-left: -1px; background: var(--ink); }
.nl .band { position: absolute; top: 11px; height: 12px; background: var(--blue-band); }
.nl .dot { position: absolute; top: 7px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--blue); z-index: 2; }
.nl .ring { position: absolute; top: 7px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 4px solid var(--ink); background: var(--cream); z-index: 1; }
.nl .fin { position: absolute; top: 3px; width: 4px; height: 28px; margin-left: -2px; background: var(--ink); z-index: 3; }
.nl-cap { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.nl-cap .o { color: var(--blue); font-weight: 600; }
@media (max-width: 720px) {
  .row { grid-template-columns: minmax(0, 1fr) 64px; gap: 8px 16px; }
  .row .linecell { grid-column: 1 / -1; grid-row: 2; }
}

/* Ratings strip */
.strip { position: relative; height: 200px; background: var(--paper); border: 1px solid var(--ink); }
.strip .axis { position: absolute; left: 4%; right: 4%; top: 98px; height: 2px; background: var(--ink); }
.strip .zero { position: absolute; top: 86px; width: 2px; height: 26px; margin-left: -1px; background: var(--ink); }
.strip .zl { position: absolute; top: 118px; margin: 0 0 0 -40px; width: 80px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.strip .t { position: absolute; width: 3px; height: 20px; margin-left: -1px; background: var(--muted); opacity: 0.55; }
.strip .t.up { top: 77px; } .strip .t.dn { top: 101px; }
.strip .t.top { background: var(--blue); opacity: 1; }
.strip .t.bottom { background: var(--ink); opacity: 1; }
.strip .lb { position: absolute; margin: 0; transform: translateX(-50%); white-space: nowrap; font-size: 14px; }
.strip .lb.al { transform: none; } .strip .lb.ar { transform: translateX(-100%); }
.strip .lb a { color: var(--ink); text-decoration: none; font-weight: 700; }
.strip .lb a:hover { color: var(--blue); text-decoration: underline; }
.strip .lb span { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 4px; }
.strip .lane0 { top: 48px; } .strip .lane1 { top: 20px; } .strip .lane2 { top: 128px; } .strip .lane3 { top: 156px; }
.strip .ends { position: absolute; bottom: 4px; left: 4%; right: 4%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .strip .lb span { display: none; } .strip .lb { font-size: 12px; } }

/* Tables */
.table-box { overflow-x: auto; background: var(--paper); border: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--rule); font-size: 15px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td.team, td.matchup { font-weight: 700; white-space: nowrap; }
td.matchup { white-space: normal; min-width: 200px; }
td.gapcell { min-width: 120px; }
td.matchup a, td.team a { color: var(--ink); text-decoration: none; }
td.matchup a:hover, td.team a:hover { color: var(--blue); text-decoration: underline; }
tr.summary td { font-weight: 700; background: var(--cream-2); }
.table-box.scroll { max-height: 720px; overflow-y: auto; }
.table-box.scroll thead th { position: sticky; top: 0; background: var(--paper); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px 64px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 48px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.featurette { display: flex; flex-direction: column; gap: 8px; }
.featurette p { font-size: 15px; color: var(--muted); }
.ruled { border-top: 2px solid var(--ink); padding-top: 32px; }

/* Ledger (from Direction B) */
.ledger { background: var(--ink); color: var(--cream); padding: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 28px 40px; }
.ledger .kicker { color: #C9D3F2; }
.ledger h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.1; letter-spacing: -0.01em; }
.ledger .n { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 64px; line-height: 1; font-variant-numeric: lining-nums; }
.ledger p { color: #E6E0D0; font-size: 15px; }
.ledger a { color: #C9D3F2; }
@media (max-width: 640px) { .ledger { padding: 22px; } }

/* Cards on team and game pages */
.stat { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.stat h2, .card h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.card { display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--ink); padding-top: 16px; }
.card.ours-top { border-top-color: var(--blue); }
.card .value { font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kv { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; font-size: 15px; font-variant-numeric: tabular-nums; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.title-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; }
.title-block { display: flex; flex-direction: column; gap: 6px; }
.title-block p { font-size: 17px; color: var(--muted); }
@media (max-width: 640px) { .title-row .right { text-align: left; } }

.trail { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--ink); }
.trail li { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 16px; border-bottom: 1px solid var(--rule); }
.trail li:last-child { border-bottom: 0; }
.trail .when { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.trail .what { display: flex; flex-direction: column; gap: 2px; }
.trail .what span:first-child { font-weight: 700; }
@media (max-width: 640px) { .trail li { grid-template-columns: 104px 1fr; } }
.panel { display: flex; flex-direction: column; gap: 12px; background: var(--cream-2); border: 1px solid var(--rule); padding: 24px; }
.panel h2 { font-size: 22px; }
.avail { background: var(--paper); border: 1px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 640px) { .avail { padding: 18px; } }
.avail .yes { color: var(--blue); }
.avail dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.avail dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 2px; }
.avail dd { margin: 0; }
.scen { display: flex; flex-direction: column; }
.scen div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--rule); font-size: 15px; }
.scen div:last-child { border-bottom: 0; }
.scen .mv { font-family: var(--mono); font-weight: 600; }

.use { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px 48px; font-size: 15px; }
.use > div { display: flex; flex-direction: column; gap: 4px; }
.use dt { font-weight: 700; }
.use dd { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }

.chart-box { background: var(--paper); border: 1px solid var(--ink); padding: 16px; }
.chart-box svg { display: block; width: 100%; height: auto; }
.swatch { display: inline-block; width: 24px; height: 3px; background: var(--blue); }
.swatch.dash { height: 0; background: none; border-top: 3px dashed var(--muted); }

pre.code { margin: 0; background: var(--ink); color: var(--cream); padding: 20px; font-family: var(--mono); font-size: 14px; line-height: 1.6; overflow-x: auto; }
code { font-family: var(--mono); font-size: 0.9em; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.plan { background: var(--paper); border: 1px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan.dark { background: var(--ink); color: var(--cream); }
.plan .price { font-weight: 800; font-size: 36px; }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

.site-footer { border-top: 1px solid var(--ink); background: var(--cream-2); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 48px; font-size: 13px; color: var(--ink-2); }
.site-footer p { max-width: 44em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--cream); color: var(--ink); padding: 8px 12px; z-index: 10; }
.st-ok { color: var(--ok); } .st-warn { color: var(--warn); } .st-fail { color: var(--bad); }
