/* PropBetEdge Learn V2 — The Sports Intelligence Academy
   PropBetEdge intelligence platform × premium sports editorial × research terminal.
   Network cues: chrome PBE mark, warm black/bronze surfaces, gold, heavy Playfair with italic gold,
   tracked mono kickers. Type: Playfair Display (display) · Inter (UI/body) · JetBrains Mono (data/nav). */

:root {
  --bg: #0a0907;
  --bg-2: #0e0c09;
  --panel: #13110d;
  --panel-2: #1a1611;
  --panel-3: #221d16;
  --line: rgba(233, 199, 90, .09);
  --line-2: rgba(233, 199, 90, .17);
  --text: #f4efe6;
  --text-2: #c7bfb1;
  --text-3: #9a9183;
  --gold: #e0b547;
  --gold-2: #f0cd6c;
  --gold-3: #b8892a;
  --gold-soft: rgba(224, 181, 71, .12);
  --copper: #e07a2c;
  --chrome: #d9dde3;
  --pos: #3fb68b;
  --neg: #ef5b61;
  --warn: #e0a43a;
  --info: #6aa6ff;
  --mlb: #e5484d; --nfl: #4c8dff; --nba: #f08a3e; --wnba: #f0b323; --nhl: #31c8e8; --ufc: #d6343f; --boxing: #c9a227; --tennis: #c6dc4a; --soccer: #36b46e; --golf: #68b77a;
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 10px; --r-lg: 16px;
  --shell-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--shell-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--f-ui); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(212, 175, 55, .45); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 1000; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; color: #111; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }

/* ── Shell / header ─────────────────────────────────────────── */
.shell { position: sticky; top: 0; z-index: 100; background: rgba(7, 9, 14, .88); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.shell-in { height: var(--shell-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.nav { display: none; align-items: center; gap: 2px; margin-left: 8px; }
.nav > a, .nav-sports > button { font: 500 14px/1 var(--f-ui); color: var(--text-2); text-decoration: none; padding: 9px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .nav-sports > button:hover, .nav > a[aria-current="page"], .nav-sports.is-current > button { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav > a[aria-current="page"], .nav-sports.is-current > button { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 2px 2px; }
.nav-sports { position: relative; }
.nav-sports button svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.nav-sports button[aria-expanded="true"] svg { transform: rotate(180deg); }
.sports-menu { position: absolute; top: calc(100% + 8px); left: -8px; width: 440px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 10px; display: none; grid-template-columns: 1fr 1fr; gap: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.sports-menu.open { display: grid; }
.sports-menu a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.sports-menu a:hover, .sports-menu a:focus-visible { background: var(--panel-2); color: var(--text); }
.sports-menu .sm-name { font-weight: 600; font-size: 14px; display: block; }
.sports-menu .sm-desc { font-size: 12.5px; color: var(--text-3); display: block; line-height: 1.4; }
.sports-menu .sm-all { grid-column: 1 / -1; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; font-size: 13px; color: var(--gold-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; background: var(--c, var(--gold)); }
.shell-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text-3); cursor: pointer; font-size: 14px; }
.search-btn:hover { border-color: rgba(212, 175, 55, .5); color: var(--text); }
.search-btn svg { width: 16px; height: 16px; }
.search-btn kbd { font: 500 11px/1 var(--f-mono); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 5px; color: var(--text-3); }
.search-btn .lbl { display: none; }
.pbe-link { display: none; height: 38px; align-items: center; gap: 6px; padding: 0 14px; border-radius: 9px; border: 1px solid rgba(212, 175, 55, .45); color: var(--gold-2); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.pbe-link:hover { background: var(--gold-soft); }
.menu-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

/* Mobile drawer (native dialog) */
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(380px, 88vw); max-width: 100vw; padding: 0; border: 0; border-left: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
.drawer::backdrop { background: rgba(0, 0, 0, .6); }
.drawer[open] { display: flex; flex-direction: column; animation: drawerIn .22s var(--ease); }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: 8px 8px 32px; }
.drawer-body h2 { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 18px 12px 8px; }
.drawer-body a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; text-decoration: none; font-weight: 500; min-height: 44px; }
.drawer-body a:hover, .drawer-body a[aria-current="page"] { background: var(--panel-2); }
.drawer-body a[aria-current="page"] { color: var(--gold-2); }
.drawer-body .dot { margin-top: 0; }
.drawer-sports { display: grid; grid-template-columns: 1fr 1fr; }

@media (min-width: 1000px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .pbe-link { display: inline-flex; }
  .search-btn .lbl { display: inline; }
  .search-btn { min-width: 200px; }
  .search-btn kbd { margin-left: auto; }
}
@media (min-width: 560px) and (max-width: 999px) { .pbe-link { display: inline-flex; } }

/* ── Search dialog ──────────────────────────────────────────── */
.search-dlg { width: min(720px, calc(100vw - 24px)); max-width: none; max-height: min(78dvh, 720px); margin: 8vh auto auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.search-dlg[open] { display: flex; flex-direction: column; }
.search-dlg::backdrop { background: rgba(3, 5, 9, .72); backdrop-filter: blur(3px); }
.search-field { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 17px; padding: 8px 0; }
.search-close { background: var(--panel); border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 8px; cursor: pointer; font: 500 12px var(--f-mono); color: var(--text-3); }
.search-results { overflow-y: auto; padding: 8px; }
.sr-group { padding: 6px 0; }
.sr-group h3 { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 10px 10px 6px; }
.sr-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; }
.sr-item:hover, .sr-item.active { background: var(--panel-2); color: var(--text); }
.sr-kind { flex-shrink: 0; font: 600 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); border: 1px solid rgba(212, 175, 55, .35); border-radius: 5px; padding: 4px 6px; margin-top: 2px; min-width: 64px; text-align: center; }
.sr-kind.net { color: var(--info); border-color: rgba(106, 166, 255, .35); }
.sr-title { font-weight: 600; display: block; }
.sr-sub { font-size: 13px; color: var(--text-3); display: block; line-height: 1.45; }
.sr-empty, .sr-note { padding: 18px 12px; color: var(--text-3); font-size: 14px; }
.sr-foot { border-top: 1px solid var(--line); padding: 10px 14px; font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Type & sections ────────────────────────────────────────── */
.eyebrow { font: 600 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.display { font-family: var(--f-display); font-weight: 700; letter-spacing: -.015em; }
.h-xl { font-family: var(--f-display); font-size: clamp(40px, 7.4vw, 88px); line-height: 1.0; letter-spacing: -.02em; }
.h-lg { font-family: var(--f-display); font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; }
.h-md { font-family: var(--f-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 680px; line-height: 1.6; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head p { margin: 10px 0 0; color: var(--text-2); max-width: 620px; }
.link-arrow { font-weight: 600; font-size: 14px; color: var(--gold-2); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--gold); color: #14110d; }
.btn-primary:hover { background: var(--gold-2); color: #14110d; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(212, 175, 55, .55); color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.badge.lv-beginner { color: #8fdcb9; border-color: rgba(63, 182, 139, .4); }
.badge.lv-intermediate { color: #9cc3ff; border-color: rgba(106, 166, 255, .4); }
.badge.lv-advanced { color: #f2c47a; border-color: rgba(224, 164, 58, .45); }
.badge.lv-product { color: var(--gold-2); border-color: rgba(212, 175, 55, .45); }
.badge.done { color: var(--pos); border-color: rgba(63, 182, 139, .45); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px,
  linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { margin: 22px 0 30px; }
.hero-panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; font-family: var(--f-mono); font-size: 13px; }
.hp-head { display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.hp-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hp-row:last-of-type { border-bottom: 0; }
.hp-row b { color: var(--text); font-weight: 600; }
.hp-row .v { color: var(--gold-2); }
.hp-note { margin-top: 14px; color: var(--text-3); font-family: var(--f-ui); font-size: 12.5px; line-height: 1.5; }
.hp-chart { margin: 14px 0 6px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr .9fr; gap: 64px; } }

/* ── Cards & grids ──────────────────────────────────────────── */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr; }
.g3, .g4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: border-color .18s, background .18s; min-width: 0; }
a.card { display: block; text-decoration: none; color: var(--text); }
a.card:hover { border-color: rgba(212, 175, 55, .4); background: var(--panel-2); color: var(--text); }
.card h3 { font-size: 18px; margin: 10px 0 8px; }
.card p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-3); }

/* Learning path cards */
.paths { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; text-decoration: none; color: var(--text); position: relative; overflow: hidden; }
.path:hover { border-color: rgba(212, 175, 55, .45); color: var(--text); }
.path-num { font: 600 12px/1 var(--f-mono); color: var(--gold); letter-spacing: .1em; }
.path h3 { font-family: var(--f-display); font-size: 26px; }
.path p { color: var(--text-2); margin: 0; font-size: 15px; }
.path ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.path li { font-size: 12.5px; color: var(--text-2); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.path-prog { display: flex; align-items: center; gap: 12px; font: 500 12px var(--f-mono); color: var(--text-3); margin-top: auto; }
.bar { flex: 1; height: 4px; background: rgba(255, 255, 255, .07); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 99px; transition: width .6s var(--ease); }

/* Academy cards */
.academy { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--c, var(--gold)); }
.academy .sport-tag { font: 700 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--c); }
.academy ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }
.academy li { padding: 3px 0 3px 14px; position: relative; }
.academy li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 1px; background: var(--c); }

/* Bento (home) */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } .b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; } .b-4 { grid-column: span 4; } .b-6 { grid-column: span 6; } }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats > div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats b { display: block; font: 600 28px/1.1 var(--f-mono); color: var(--text); }
.stats span { font-size: 13px; color: var(--text-3); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats > div { border-bottom: 0; } .stats > div:last-child { border-right: 0; } }

/* ── Page header / breadcrumbs ─────────────────────────────── */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); position: relative; }
.page-head .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.page-head.sport { border-top: 3px solid var(--c); }
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-3); opacity: .6; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }

/* ── Lesson / article layout ───────────────────────────────── */
.article-grid { display: grid; gap: 40px; padding: clamp(32px, 5vw, 56px) 0 72px; }
@media (min-width: 1080px) { .article-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; } }
.prose { max-width: 760px; min-width: 0; font-size: 17px; line-height: 1.75; color: #dde2ea; }
.prose h2 { font-family: var(--f-display); font-size: clamp(26px, 3vw, 32px); margin: 2.2em 0 .6em; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 1.8em 0 .5em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--text); }
.prose code { font: 500 .88em var(--f-mono); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.prose a { color: var(--gold-2); }
.prose .q { font-family: var(--f-display); font-size: 21px; font-style: italic; color: var(--text); border-left: 2px solid var(--gold); padding-left: 18px; margin: 0 0 1.4em; line-height: 1.5; }
.formula { font: 500 14.5px/1.75 var(--f-mono); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; margin: 0 0 1.4em; overflow-x: auto; white-space: pre; color: #e8ecf3; }
.formula .c { color: var(--text-3); }
.formula .k { color: var(--gold-2); }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--gold); background: rgba(212, 175, 55, .05); border-radius: 0 var(--r) var(--r) 0; padding: 14px 18px; margin: 0 0 1.4em; font-size: 15.5px; }
.callout.limit { border-left-color: var(--warn); background: rgba(224, 164, 58, .06); }
.callout.info { border-left-color: var(--info); background: rgba(106, 166, 255, .05); }
.callout b.t { display: block; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--gold-2); }
.callout.limit b.t { color: var(--warn); }
.callout.info b.t { color: var(--info); }
.callout p:last-child { margin-bottom: 0; }
.worked { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; margin: 0 0 1.6em; }
.worked > header { background: var(--panel-2); padding: 10px 16px; font: 600 11.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.worked ol { margin: 0; padding: 14px 16px 14px 40px; font-size: 15.5px; }
.worked .ans { border-top: 1px solid var(--line); padding: 12px 16px; font-weight: 600; background: rgba(63, 182, 139, .05); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 11px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
figure { margin: 0 0 1.6em; }
figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.viz { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.viz svg { display: block; width: 100%; height: auto; }

/* Sidebar */
.aside { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1080px) { .aside { position: sticky; top: calc(var(--shell-h) + 24px); align-self: start; max-height: calc(100vh - var(--shell-h) - 48px); overflow-y: auto; } }
.aside-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--panel); }
.aside-box h2 { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.aside-box li a { display: block; padding: 6px 0; color: var(--text-2); text-decoration: none; line-height: 1.4; }
.aside-box li a:hover { color: var(--gold-2); }
.toc li a { border-left: 2px solid var(--line); padding-left: 12px; }
.toc li a.on { border-left-color: var(--gold); color: var(--text); }
.cta-list a { display: flex; justify-content: space-between; gap: 8px; }
.cta-list a::after { content: "↗"; color: var(--text-3); }
.complete-box { display: flex; flex-direction: column; gap: 10px; }
.complete-btn[aria-pressed="true"] { background: rgba(63, 182, 139, .12); border-color: rgba(63, 182, 139, .5); color: #9be3c4; }

/* Lesson footer nav */
.next-prev { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 48px; }
@media (min-width: 640px) { .next-prev { grid-template-columns: 1fr 1fr; } }
.next-prev a { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; text-decoration: none; background: var(--panel); }
.next-prev a:hover { border-color: rgba(212, 175, 55, .4); color: var(--text); }
.next-prev small { display: block; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.next-prev .nx { text-align: right; }
.related { margin-top: 40px; }
.related h2 { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); text-decoration: none; color: var(--text-2); background: rgba(255, 255, 255, .02); cursor: pointer; min-height: 36px; }
.chip:hover, .chip[aria-pressed="true"] { border-color: rgba(212, 175, 55, .55); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold-soft); }

/* ── Model Lab ──────────────────────────────────────────────── */
.lab-nav { position: sticky; top: var(--shell-h); z-index: 50; background: rgba(7, 9, 14, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lab-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.lab-nav .wrap::-webkit-scrollbar { display: none; }
.lab-nav a { flex-shrink: 0; font-size: 13.5px; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.lab-nav a:hover, .lab-nav a.on { color: var(--text); background: rgba(255, 255, 255, .05); }
.tool { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.tool-head { display: grid; gap: 14px; margin-bottom: 28px; }
@media (min-width: 900px) { .tool-head { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; } }
.tool-head .kv { display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.tool-head .kv b { display: block; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.tool-body { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tool-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.panel > h3 { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; }
.fields { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 5px; line-height: 1.45; }
.input, .select { width: 100%; height: 46px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 0 12px; font: 500 15px var(--f-mono); color: var(--text); outline: none; -webkit-appearance: none; appearance: none; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; font-family: var(--f-ui); }
.input:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); }
.input[aria-invalid="true"] { border-color: var(--neg); }
.err { color: #ff9ea2; font-size: 13px; margin-top: 6px; min-height: 0; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { font: 600 14px var(--f-mono); min-width: 64px; text-align: right; color: var(--gold-2); }
input[type=range] { flex: 1; accent-color: var(--gold); height: 28px; min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 7px; padding: 8px 12px; font-size: 13.5px; color: var(--text-2); cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); }
.result-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.result-main .big { font: 600 clamp(34px, 5vw, 46px)/1 var(--f-mono); letter-spacing: -.02em; }
.result-main .lbl { font-size: 13px; color: var(--text-3); }
.pos { color: var(--pos); } .neg { color: var(--neg); } .warn { color: var(--warn); }
.rows { display: grid; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.rows > div:last-child { border-bottom: 0; }
.rows dt, .rows .k { color: var(--text-2); }
.rows dd, .rows .v { margin: 0; font: 600 14px var(--f-mono); text-align: right; }
.interpret { margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.interpret strong { color: var(--text); }
.limits { margin-top: 16px; font-size: 13.5px; color: var(--text-3); }
.limits summary { cursor: pointer; font-weight: 600; color: var(--text-2); padding: 6px 0; }
.limits ul { margin: 6px 0 0; padding-left: 1.2em; }
.legs { display: grid; gap: 10px; }
.leg { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.leg .n { grid-column: 1 / -1; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--text-3); }
.icon-btn { width: 46px; height: 46px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 18px; color: var(--text-2); }
.icon-btn:hover { border-color: var(--neg); color: var(--neg); }
.mc-canvas { position: relative; width: 100%; height: clamp(240px, 38vw, 380px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.mc-canvas canvas { width: 100%; height: 100%; display: block; }
.mc-tip { position: absolute; pointer-events: none; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font: 500 12px/1.5 var(--f-mono); display: none; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-3); margin: 10px 0 0; }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 14px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpis > div { background: var(--panel); padding: 12px 14px; }
.kpis b { display: block; font: 600 20px/1.2 var(--f-mono); }
.kpis span { font-size: 12px; color: var(--text-3); }

/* ── Glossary ──────────────────────────────────────────────── */
.gloss-tools { position: sticky; top: var(--shell-h); z-index: 40; background: rgba(7, 9, 14, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.gloss-tools .wrap { display: grid; gap: 10px; }
.gloss-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gloss-filter::-webkit-scrollbar { display: none; }
.gloss-filter .chip { flex-shrink: 0; }
.gloss-search { height: 44px; }
.terms { display: grid; gap: 12px; padding: 28px 0 72px; }
.term { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; scroll-margin-top: calc(var(--shell-h) + 130px); }
.term:target { border-color: rgba(212, 175, 55, .6); box-shadow: 0 0 0 3px rgba(212, 175, 55, .12); }
.term h2 { font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.term h2 a.anchor { color: var(--text-3); text-decoration: none; font-size: 15px; opacity: 0; }
.term:hover h2 a.anchor, .term h2 a.anchor:focus { opacity: 1; }
.term .def { font-size: 16px; color: var(--text); margin: 10px 0 8px; font-weight: 500; }
.term .plain { color: var(--text-2); font-size: 15px; }
.term .ex { font-size: 14.5px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin: 10px 0; }
.term .ex b { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 6px; }
.term .rel { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; margin-top: 10px; color: var(--text-3); }
.term .rel a { color: var(--gold-2); }
.term[hidden] { display: none; }

/* ── Quiz ──────────────────────────────────────────────────── */
.quiz { max-width: 760px; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 13px var(--f-mono); color: var(--text-3); margin-bottom: 10px; }
.q-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 30px); }
.q-text { font-family: var(--f-display); font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; margin: 12px 0 18px; }
.answers { display: grid; gap: 10px; }
.ans { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.ans:hover:not(:disabled) { border-color: rgba(212, 175, 55, .55); }
.ans .l { font: 600 12px/1 var(--f-mono); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 7px; color: var(--text-3); flex-shrink: 0; }
.ans.right { border-color: rgba(63, 182, 139, .7); background: rgba(63, 182, 139, .08); }
.ans.wrong { border-color: rgba(239, 91, 97, .7); background: rgba(239, 91, 97, .07); }
.ans:disabled { cursor: default; }
.explain { margin-top: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 15px; color: var(--text-2); }
.explain .formula { margin: 10px 0 0; }
.explain a { color: var(--gold-2); }
.tier-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Progress page ─────────────────────────────────────────── */
.prog-row { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prog-row:last-child { border-bottom: 0; }
.prog-row .top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.prog-row .top span { font: 500 13px var(--f-mono); color: var(--text-3); }

/* ── Footer ────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 36px; margin-top: auto; font-size: 14px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-brand p { color: var(--text-3); max-width: 320px; margin-top: 12px; font-size: 13.5px; }
.foot h2 { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot a { color: var(--text-2); text-decoration: none; display: inline-block; padding: 3px 0; }
.foot a:hover { color: var(--gold-2); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; line-height: 1.7; display: grid; gap: 6px; }

/* Utilities */
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.hide-sm { display: none; }
@media (min-width: 760px) { .hide-sm { display: initial; } }
.noscript-note { padding: 12px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--text-3); font-size: 14px; }

/* ══════════════════════════════════════════════════════════════════════
   BRAND LAYER — PropBetEdge identity (real PBE mark, warm network surfaces,
   heavy editorial display, tracked mono kickers, intelligence modules).
   ══════════════════════════════════════════════════════════════════════ */

/* Display weight: network heroes use heavy Playfair with italic gold. */
.h-xl, .h-lg, .h-md, .path h3, .prose h2, .q-text { font-weight: 800; }
.h-xl { font-weight: 900; letter-spacing: -.025em; }
.gold-text, .h-xl em, .h-lg em {
  font-style: italic; color: var(--gold-2);
  background: linear-gradient(180deg, #f7dc8c 0%, #e0b547 55%, #b8892a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Header ─────────────────────────────────────────────── */
:root { --shell-h: 72px; }
.shell { background: linear-gradient(180deg, rgba(16, 13, 9, .97), rgba(10, 9, 7, .92)); border-bottom: 1px solid rgba(233, 199, 90, .10); }
.shell::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(224, 181, 71, .55) 30%, rgba(224, 122, 44, .45) 55%, transparent); }
.brand { gap: 12px; min-width: 0; }
.pbe-mark { display: block; flex-shrink: 0; line-height: 0; }
.pbe-mark img { display: block; height: 40px; width: auto; filter: drop-shadow(0 3px 12px rgba(224, 122, 44, .22)); }
.lockup { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wordmark { font: 800 19px/1 var(--f-ui); letter-spacing: -.015em; color: var(--text); white-space: nowrap; }
.wordmark b { font-weight: 800; background: linear-gradient(180deg, #f7dc8c, #e0b547 60%, #c9912e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lockup-sub { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.chip-learn { font: 700 9.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #1a1408; background: linear-gradient(180deg, #f3d27a, #d9a93d); border-radius: 4px; padding: 3px 6px 2px; }
.lockup-cap { font: 600 9.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.nav > a, .nav-sports > button { font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); padding: 10px 11px; }
.nav > a[aria-current="page"], .nav-sports.is-current > button { color: var(--gold-2); background: rgba(224, 181, 71, .07); box-shadow: inset 0 -2px 0 var(--gold); }
.pbe-link { background: linear-gradient(180deg, #f3d27a, #d9a93d); color: #1a1408; border: 0; font: 700 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 22px rgba(224, 181, 71, .18); }
.pbe-link:hover { background: linear-gradient(180deg, #f7dc8c, #e0b547); color: #1a1408; }
.search-btn { background: rgba(255, 255, 255, .03); }
.sports-menu { background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
@media (max-width: 1239px) { .lockup-cap { display: none; } }
@media (max-width: 999px) { .lockup-cap { display: inline; } }
@media (max-width: 559px) { .lockup-cap { display: none; } }
@media (max-width: 999px) {
  :root { --shell-h: 64px; }
  .pbe-mark img { height: 34px; }
  .wordmark { font-size: 17px; }
}
@media (max-width: 379px) {
  .pbe-mark img { height: 28px; }
  .wordmark { font-size: 15px; }
  .brand { gap: 8px; }
}
.drawer .brand { gap: 10px; }
.drawer .lockup-cap { display: none; }
.drawer-head { background: linear-gradient(180deg, rgba(224, 181, 71, .06), transparent); }

/* ── Section kickers & heads ─────────────────────────────── */
.eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); display: inline-block; }
.hero .eyebrow::before { display: none; }
.sec-num { font: 600 11.5px/1 var(--f-mono); color: var(--text-3); letter-spacing: .14em; }
.card, .path, .panel, .aside-box, .term, .q-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
a.card:hover { box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(224, 181, 71, .18); transform: translateY(-2px); }
a.card { transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn-primary { background: linear-gradient(180deg, #f3d27a, #d9a93d); color: #1a1408; box-shadow: 0 10px 30px rgba(224, 181, 71, .20), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { background: linear-gradient(180deg, #f7dc8c, #e0b547); color: #1a1408; }
.btn-ghost { background: rgba(255, 255, 255, .025); border-color: rgba(233, 199, 90, .22); }
.page-head { background: radial-gradient(ellipse 60% 120% at 85% -20%, rgba(224, 181, 71, .08), transparent 60%); }

/* ── Hero ────────────────────────────────────────────────── */
.hero-x { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 84px) 0 clamp(44px, 6vw, 80px);
  background:
    radial-gradient(ellipse 55% 60% at 22% 18%, rgba(224, 181, 71, .16), transparent 62%),
    radial-gradient(ellipse 45% 55% at 88% 30%, rgba(224, 122, 44, .09), transparent 60%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(0, 0, 0, .7), transparent 60%),
    linear-gradient(180deg, #0f0c08 0%, #0a0907 70%); }
.hero-x::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 58%; pointer-events: none; opacity: .55;
  background: linear-gradient(to right, rgba(233, 199, 90, .10) 1px, transparent 1px) 0 0 / 72px 72px, linear-gradient(to bottom, rgba(233, 199, 90, .10) 1px, transparent 1px) 0 0 / 72px 72px;
  transform: perspective(700px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); }
.hero-x::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 110% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55)); }
.hero-x .wrap { position: relative; z-index: 1; }
.hero-x-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1000px) { .hero-x-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr); gap: 56px; } }
.hero-logo-wrap { position: relative; width: clamp(220px, 34vw, 400px); margin: 0 0 22px -6px; }
.hero-logo-wrap::before { content: ""; position: absolute; inset: -18% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(224, 181, 71, .30), rgba(224, 122, 44, .10) 45%, transparent 70%); filter: blur(8px); }
.hero-logo { display: block; line-height: 0; }
.hero-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .65)) drop-shadow(0 0 1px rgba(255, 255, 255, .25)); }
.academy-mark { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.academy-mark .chip-learn { font-size: 11px; padding: 5px 9px 4px; }
.academy-mark .cap { font: 600 12px/1.2 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.academy-mark .rule { flex: 1 1 40px; min-width: 24px; max-width: 120px; height: 1px; background: linear-gradient(90deg, rgba(224, 181, 71, .6), transparent); }
.hero-x h1 { font-size: clamp(46px, 8.2vw, 104px); line-height: .95; text-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.hero-x .tagline { font: 700 clamp(18px, 2vw, 22px)/1.35 var(--f-ui); color: var(--text); margin: 22px 0 10px; letter-spacing: -.01em; }
.hero-x .lede { margin: 0 0 30px; }
.hero-x .btn { min-height: 50px; padding: 0 22px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo img { animation: logoIn .9s var(--ease) both; }
  .hero-logo-wrap::before { animation: glowIn 1.6s ease-out both; }
  .hero-x h1, .hero-x .tagline, .hero-x .lede, .hero-x .btn-row, .intel { animation: riseIn .7s var(--ease) both; }
  .hero-x .tagline { animation-delay: .08s; } .hero-x .lede { animation-delay: .14s; } .hero-x .btn-row { animation-delay: .2s; } .intel { animation-delay: .25s; }
}
@keyframes logoIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes glowIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Intelligence module (worked example) ────────────────── */
.intel { position: relative; margin: 0; border-radius: 18px; padding: 1px; background: linear-gradient(160deg, rgba(240, 205, 108, .55), rgba(224, 122, 44, .25) 40%, rgba(233, 199, 90, .08) 70%); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.intel-in { border-radius: 17px; background: linear-gradient(180deg, #16120c, #0f0d09); padding: 20px 22px 18px; }
.intel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.intel-tag { display: inline-flex; align-items: center; gap: 8px; font: 700 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.intel-tag img { height: 16px; width: auto; }
.intel-prov { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 6px; }
.intel-title { font: 800 21px/1.2 var(--f-display); margin: 16px 0 4px; }
.intel-market { font: 600 12.5px/1.4 var(--f-mono); color: var(--text-3); margin-bottom: 16px; }
.intel-market b { color: var(--text); font-weight: 600; }
.step { margin: 0 0 16px; }
.step-l { display: flex; justify-content: space-between; gap: 10px; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.step-l b { color: var(--text-2); font-weight: 600; letter-spacing: .04em; }
.imp-stack { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .04); display: flex; overflow: visible; }
.imp-stack > span { height: 100%; display: flex; align-items: center; padding-left: 7px; font: 600 10.5px/1 var(--f-mono); color: #1a1408; white-space: nowrap; overflow: hidden; }
.imp-stack .sa { background: linear-gradient(180deg, #e9ecf0, #b9bfc8); border-radius: 6px 0 0 6px; }
.imp-stack .sb { background: linear-gradient(180deg, #c9cdd3, #9aa1ab); color: #1a1d22; }
.imp-stack .over { background: repeating-linear-gradient(135deg, rgba(224, 122, 44, .95) 0 5px, rgba(224, 122, 44, .55) 5px 10px); border-radius: 0 6px 6px 0; padding: 0; }
.imp-stack .tick { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--text); border-radius: 2px; }
.imp-stack .tick-l { position: absolute; top: -17px; transform: translateX(-50%); font: 600 9.5px/1 var(--f-mono); color: var(--text-2); }
.cmp { display: grid; gap: 9px; }
.cmp-row { display: grid; grid-template-columns: 92px 1fr 52px; gap: 10px; align-items: center; font: 600 11.5px/1 var(--f-mono); }
.cmp-row .k { color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.cmp-row .v { text-align: right; color: var(--text); }
.cmp-bar { position: relative; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.cmp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.cmp-bar .mkt { background: linear-gradient(90deg, #7d848e, #c6cbd2); }
.cmp-bar .mdl { background: linear-gradient(90deg, #b8892a, #f0cd6c); box-shadow: 0 0 14px rgba(224, 181, 71, .45); }
.cmp-bar .half { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .25); }
.verdict { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(224, 181, 71, .07); border: 1px solid rgba(224, 181, 71, .22); flex-wrap: wrap; }
.verdict .num { font: 700 26px/1 var(--f-mono); color: var(--gold-2); letter-spacing: -.02em; }
.verdict .num small { font-size: 13px; color: var(--gold); margin-left: 4px; }
.verdict .what { font-size: 12.5px; color: var(--text-2); line-height: 1.45; max-width: 250px; }
.verdict .what b { color: var(--text); }
.intel-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--text-3); }
.intel-foot a { color: var(--gold-2); }

/* ── Stat modules ───────────────────────────────────────── */
.statmods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .statmods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.statmod { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); min-width: 0; }
.statmod .ico { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid rgba(224, 181, 71, .28); background: rgba(224, 181, 71, .07); color: var(--gold-2); }
.statmod .ico svg { width: 18px; height: 18px; }
.statmod .k { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 7px; }
.statmod b { font: 700 26px/1 var(--f-mono); color: var(--text); letter-spacing: -.02em; }
.statmod b small { font-size: 11px; color: var(--text-3); letter-spacing: .1em; margin-left: 6px; text-transform: uppercase; }
.statmod .s { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

/* ── Curriculum tracks (learning paths) ─────────────────── */
.tracks { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.track { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; text-decoration: none; color: var(--text); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; padding: 24px 24px 20px;
  background: radial-gradient(ellipse 70% 90% at 100% 0%, color-mix(in srgb, var(--pc) 13%, transparent), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel)); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; min-width: 0; }
.track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--pc), transparent); }
.track:hover { color: var(--text); border-color: color-mix(in srgb, var(--pc) 45%, transparent); transform: translateY(-2px); box-shadow: 0 22px 60px rgba(0, 0, 0, .5); }
.track-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.track-num { font: 900 58px/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--pc) 70%, transparent); letter-spacing: -.02em; }
.track-meta { text-align: right; font: 600 10.5px/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.track-meta b { display: block; color: var(--pc); letter-spacing: .14em; }
.track h3 { font: 800 clamp(24px, 2.4vw, 30px)/1.1 var(--f-display); margin: 0; }
.track p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; }
.track-motif { height: 64px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); padding: 6px 10px; }
.track-motif svg { width: 100%; height: 100%; display: block; }
.track ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; counter-reset: l; }
.track li { counter-increment: l; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track li::before { content: counter(l, decimal-leading-zero); font: 600 10.5px var(--f-mono); color: var(--pc); margin-right: 8px; }
.track li.more { color: var(--text-3); }
.track li.more::before { content: "+"; }
.track .path-prog { margin-top: 2px; }
.track .bar > i { background: linear-gradient(90deg, var(--pc), color-mix(in srgb, var(--pc) 60%, #fff)); }
@media (max-width: 420px) { .track ol { grid-template-columns: 1fr; } .track-num { font-size: 46px; } }

/* ── Academy destinations ────────────────────────────────── */
.dest-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1099px) { .dest-grid > .dest:last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 1100px) { .dest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dest { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 212px; padding: 20px; border-radius: 16px; text-decoration: none; color: var(--text); border: 1px solid var(--line);
  background: radial-gradient(ellipse 90% 70% at 100% 100%, color-mix(in srgb, var(--c) 10%, transparent), transparent 65%), linear-gradient(180deg, var(--panel-2), var(--panel)); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.dest::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 85%, transparent), transparent 75%); }
.dest:hover { color: var(--text); transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 20px 55px rgba(0, 0, 0, .5); }
.dest .wm { position: absolute; right: -6px; bottom: -14px; font: 900 76px/1 var(--f-display); letter-spacing: -.04em; color: color-mix(in srgb, var(--c) 9%, transparent); pointer-events: none; user-select: none; }
.dest-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dest .glyph { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); color: color-mix(in srgb, var(--c) 80%, #fff); }
.dest .glyph svg { width: 22px; height: 22px; }
.dest .code { font: 700 11px/1 var(--f-mono); letter-spacing: .16em; color: color-mix(in srgb, var(--c) 75%, #fff); }
.dest h3 { font: 800 22px/1.15 var(--f-display); margin: 4px 0 0; }
.dest p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.dest .tools { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; position: relative; }
.dest .tools span { font: 600 10.5px/1 var(--f-mono); letter-spacing: .04em; color: var(--text-2); border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); border-radius: 5px; padding: 5px 6px; }

/* ── Quant lab console ──────────────────────────────────── */
.lab-console { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .lab-console { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.console { border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #13100b, #0d0b08); overflow: hidden; }
.console-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font: 700 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); background: rgba(224, 181, 71, .04); }
.console-head span:last-child { color: var(--text-3); }
.console a.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid rgba(233, 199, 90, .06); text-decoration: none; color: var(--text); transition: background .15s; }
.console a.row:last-child { border-bottom: 0; }
.console a.row:hover { background: rgba(224, 181, 71, .05); color: var(--text); }
.console .ix { font: 600 11px/1 var(--f-mono); color: var(--gold); }
.console .nm { font-weight: 700; font-size: 15px; display: block; }
.console .fx { font: 500 12px/1.4 var(--f-mono); color: var(--text-3); display: block; margin-top: 3px; overflow-wrap: anywhere; }
.console .go { font: 600 11px/1 var(--f-mono); color: var(--gold-2); letter-spacing: .08em; white-space: nowrap; }
.fan-card { border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #13100b, #0d0b08); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.fan-card .viz { background: rgba(0, 0, 0, .3); }
.fan-card figcaption { margin: 0; }

/* ── Product modules (Inside PropBetEdge) ────────────────── */
.prod-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prod { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden; min-width: 0; }
.prod-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 700 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; background: rgba(0, 0, 0, .2); }
.prod-head .who { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.prod-head .who .dot { margin-top: 0; }
.prod-head a { color: var(--gold-2); text-decoration: none; letter-spacing: .1em; white-space: nowrap; }
.prod-head a:hover { text-decoration: underline; }
.prod-viz { height: 118px; padding: 12px 16px 6px; border-bottom: 1px solid rgba(233, 199, 90, .06); background: radial-gradient(ellipse 80% 90% at 50% 100%, color-mix(in srgb, var(--c) 7%, transparent), transparent 70%); }
.prod-viz svg { width: 100%; height: 100%; display: block; }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body h3 { font: 800 19px/1.2 var(--f-display); margin: 0; }
.prod-body h3 a { text-decoration: none; }
.prod-body p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.prod-body .meta { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.illus { font: 600 9px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--text-3); }

/* ── Footer brand ───────────────────────────────────────── */
.foot { background: radial-gradient(ellipse 60% 100% at 0% 0%, rgba(224, 181, 71, .06), transparent 60%), var(--bg-2); }
.foot-logo-link { display: inline-block; line-height: 0; }
.foot-logo img { width: 180px; height: auto; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .6)); }
.foot-academy { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font: 600 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .shell, .foot, .aside, .lab-nav, .gloss-tools { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Narrow phones (≤ 379px): keep the header inside 320px. */
@media (max-width: 379px) {
  .shell-in { gap: 10px; }
  .shell-actions { gap: 6px; }
  .search-btn { padding: 0 10px; }
  .search-btn kbd { display: none; }
}

.imp-stack .tick-l { font-style: normal; }

/* Header density + hero fold tuning (brand pass QA). */
.nav > a, .nav-sports > button { white-space: nowrap; }
.search-btn { white-space: nowrap; }
@media (min-width: 1000px) { .search-btn { min-width: 0; } }
@media (max-width: 1379px) { .lockup-cap { display: none; } }
@media (min-width: 1000px) and (max-width: 1379px) { .lockup-sub .chip-learn::after { content: " · Academy"; } }
.hero-logo-wrap { width: clamp(210px, 24vw, 330px); margin-bottom: 18px; }
.hero-x h1 { font-size: clamp(44px, 6.3vw, 88px); }
@media (min-width: 1000px) { .hero-x h1 { white-space: nowrap; } }
.hero-x .tagline { margin-top: 18px; }
.imp-stack { margin-top: 18px; }
.prose .viz svg { max-width: 620px; margin: 0 auto; }

/* Nine-academy network pass (Tennis + Soccer): grouped sports menu, grouped drawer, product rail, footer sport grid. */
.sports-menu { width: min(620px, calc(100vw - 32px)); grid-template-columns: 1.15fr 1fr; gap: 2px 8px; padding: 12px; }
.sports-menu .sm-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sports-menu .sm-group { font: 600 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 6px 12px 6px; }
.sports-menu .sm-col .sm-group ~ .sm-group { margin-top: 14px; }
.sports-menu a { padding: 8px 12px; }
.sports-menu .sm-desc { font-size: 12px; }
.sports-menu .sm-all { padding-top: 12px; }
.drawer-body .drawer-group { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 10px 12px 2px; }
.drawer-sports a { min-height: 44px; padding: 10px 12px; }
.prod-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .015); }
.prod-rail-k { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-right: 6px; }
.prod-rail a { font-size: 13.5px; color: var(--text-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.prod-rail a:hover, .prod-rail a:focus-visible { color: var(--gold-2); border-color: rgba(224, 181, 71, .45); }
.foot ul.foot-sports { grid-template-columns: repeat(3, minmax(0, auto)); gap: 0 14px; justify-content: start; padding: 2px 0; }
.foot ul.foot-sports a { font: 600 12.5px/1.6 var(--f-mono); letter-spacing: .02em; }
@media (min-width: 900px) and (max-width: 1099px) { .foot ul.foot-sports { grid-template-columns: repeat(2, minmax(0, auto)); } }
.dest .wm { font-size: clamp(56px, 6vw, 76px); }
/* Layout-shift fixes (QA 2026-10-01): the hero academy mark and the stat strip must lay out the same
   with fallback and web fonts, so the font swap cannot move the hero. */
.academy-mark .rule { flex: 1 1 0; min-width: 0; }
@media (max-width: 479px) { .academy-mark { row-gap: 8px; } .academy-mark .cap { flex-basis: 100%; font-size: 11px; letter-spacing: .14em; } .academy-mark .rule { display: none; } }
.statmod > span:last-child { min-width: 0; }
.statmod .s { overflow-wrap: anywhere; }
@media (max-width: 400px) { .statmod { padding: 14px; gap: 10px; } .statmod .ico { display: none; } .statmod b { font-size: 23px; } }
@media (max-width: 479px) { .hero-x h1 em { display: block; } }
@media (min-width: 1000px) { .hero-x-grid { align-items: start; } .hero-x-grid > .intel { margin-top: 8px; } }
.foot ul.foot-sports { display: flex; flex-wrap: wrap; gap: 0 14px; max-width: 220px; }
.foot ul.foot-sports a { white-space: nowrap; }

/* ── Market Intelligence Playbook (/predictions/market-playbook) ───────────────
   Financial-data education: warm black panels, gold for the market price, info-blue for forecasts, mono figures.
   Mobile-first; every diagram either fits or scrolls inside its own frame (never the page). */
.pb-hero .crumbs { margin-bottom: 26px; }
.pb-hero h1 { max-width: 13ch; }
.pb-hero h1 em { font-style: italic; color: var(--gold); }
.pb-facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12.5px/1.4 var(--f-mono); color: var(--text-3); letter-spacing: .04em; }
.pb-facts b { color: var(--gold-2); font-weight: 600; }
.pb-illus { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(224, 164, 58, .4); border-radius: 5px; padding: 4px 6px; white-space: nowrap; }
.pb-reader { margin: 0; }
.pb-q { font-family: var(--f-ui); color: var(--text-2); font-size: 14px; margin: 0 0 10px; }
.pb-q b { color: var(--text); }
.pb-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 14px; }
.pb-readout > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; display: grid; gap: 3px; }
.pb-readout span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.pb-readout b { font: 600 20px/1.1 var(--f-mono); color: var(--text); }
.pb-readout > div:first-child b { color: var(--gold-2); }
.pb-dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.pb-dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .07); transition: background .2s var(--ease); }
.pb-dots i.on { background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .pb-dots i { transition: none; } }

.pb-map { position: sticky; top: var(--shell-h); z-index: 20; background: rgba(10, 9, 7, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pb-map ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pb-map ol::-webkit-scrollbar { display: none; }
.pb-map a { display: flex; align-items: center; gap: 8px; padding: 12px 10px; text-decoration: none; white-space: nowrap; color: var(--text-2); font-size: 13.5px; border-bottom: 2px solid transparent; min-height: 44px; }
.pb-map a:hover { color: var(--text); border-bottom-color: var(--gold-3); }
.pb-n { font: 600 11px/1 var(--f-mono); color: var(--gold); letter-spacing: .08em; }

.pb-prose { padding-top: clamp(28px, 4vw, 48px); }
.pb-notice { font-size: 14px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; background: var(--panel); }
.pb-ch { padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--shell-h) + 56px); }
.pb-ch:last-child { border-bottom: 0; }
.pb-ch > h2 { font-family: var(--f-display); font-size: clamp(28px, 4vw, 42px); line-height: 1.08; margin: 0 0 18px; }
.pb-ch h3 { margin: 28px 0 12px; font-size: 20px; }
.pb-kicker { font: 600 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }

.pb-figure { margin: 22px 0 26px; }
.pb-figure figcaption { font-size: 13px; color: var(--text-3); margin-top: 10px; line-height: 1.5; }
.pb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel), var(--bg-2)); padding: 14px; }
.pb-scroll .pb-svg { min-width: 640px; display: block; }
.pb-svg { width: 100%; height: auto; font-family: var(--f-ui); }
.pb-svg-box { fill: var(--panel-2); stroke: var(--line-2); }
.pb-svg-box.gold { fill: rgba(224, 181, 71, .12); stroke: var(--gold); }
.pb-svg-t { fill: var(--text); font: 700 15px var(--f-ui); }
.pb-svg-s { fill: var(--text-2); font: 500 12.5px var(--f-ui); }
.pb-svg-xs { fill: var(--text-3); font: 500 11px var(--f-mono); }
.pb-svg-arrow { fill: none; stroke: var(--gold-3); stroke-width: 2; }
.pb-svg-axis, .pb-svg-grid { stroke: var(--line-2); stroke-width: 1.5; }
.pb-svg-grid { stroke-dasharray: 3 4; }
.pb-svg-lock { stroke: var(--neg); stroke-width: 1.5; stroke-dasharray: 5 4; }
.pb-svg-ok { fill: var(--pos); font: 600 12px var(--f-mono); }
.pb-svg-no { fill: var(--neg); font: 600 12px var(--f-mono); }
.pb-svg-diag { stroke: var(--text-3); stroke-dasharray: 4 4; }
.pb-svg-good { fill: none; stroke: var(--info); stroke-width: 2.5; }
.pb-svg-over { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.pb-f { fill: var(--info); }
.pb-m { fill: var(--gold); }

.pb-rule, .pb-decoder { margin: 20px 0 26px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--panel); padding: clamp(16px, 3vw, 24px); }
.pb-rule h3, .pb-panel h3 { margin: 10px 0 12px; font-size: 18px; line-height: 1.3; }
.pb-rule-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pb-rule-head code { font: 500 12px var(--f-mono); color: var(--text-3); overflow-wrap: anywhere; }
.pb-rule-text { margin: 0 0 16px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--bg-2); border-radius: 0 var(--r) var(--r) 0; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.pb-rule-text mark { background: rgba(224, 181, 71, .16); color: var(--text); border-bottom: 2px solid var(--gold); padding: 0 2px; border-radius: 2px; }
.pb-rule-text mark::after { content: attr(data-k); font: 600 9.5px/1 var(--f-mono); color: var(--gold); vertical-align: super; margin-left: 2px; }
.pb-rule-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.pb-rule-key b { color: var(--gold-2); font: 600 12px var(--f-mono); letter-spacing: .04em; margin-right: 4px; }
.pb-rule figcaption, .pb-verified { font-size: 12.5px; color: var(--text-3); margin: 14px 0 0; }
@media (min-width: 760px) { .pb-rule-key { grid-template-columns: 1fr 1fr; } }

.pb-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pb-tab { flex: 0 0 auto; display: grid; gap: 2px; text-align: left; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; cursor: pointer; min-height: 44px; color: var(--text-2); }
.pb-tab span { font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tc, var(--gold)); }
.pb-tab small { font-size: 13px; color: var(--text-2); }
.pb-tab[aria-selected="true"] { border-color: var(--tc, var(--gold)); background: var(--panel-3); }
.pb-tab[aria-selected="true"] small { color: var(--text); }
.pb-c-info { --tc: var(--info); } .pb-c-pos { --tc: var(--pos); } .pb-c-gold { --tc: var(--gold); } .pb-c-copper { --tc: var(--copper); }
.pb-panel + .pb-panel { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.pb-decoder.pb-js .pb-panel[data-hide] { display: none; }
.pb-decoder.pb-js .pb-panel + .pb-panel { border-top: 0; margin-top: 0; padding-top: 0; }
.pb-panel .callout { margin: 16px 0 0; }

.pb-tool { margin: 22px 0 26px; }
.pb-tool .hp-head { font-family: var(--f-mono); gap: 10px; flex-wrap: wrap; }
.pb-tool .rows b { font-family: var(--f-mono); }
.pb-book-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .pb-book-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.pb-book table { font-family: var(--f-mono); font-size: 13.5px; }
.pb-book td, .pb-book th { padding: 7px 10px; }
.pb-book .pb-px { font-weight: 600; text-align: center; }
.pb-book .pb-ask .pb-px { color: #ff9ea2; } .pb-book .pb-bid .pb-px { color: #8fdcb9; }
.pb-bar-cell { width: 28%; }
.pb-bar-cell i { display: block; height: 8px; border-radius: 4px; }
.pb-ask .pb-bar-cell i { background: rgba(239, 91, 97, .45); } .pb-bid .pb-bar-cell i { background: rgba(63, 182, 139, .45); }
.pb-mid td { text-align: center; color: var(--gold-2); font-size: 12px; background: var(--gold-soft); }
.pb-warn { color: var(--warn); font-size: 13.5px; margin: 10px 0 0; }
.pb-verdict { margin: 14px 0 0; padding: 11px 14px; border-radius: var(--r); font-size: 14.5px; background: var(--bg-2); border: 1px solid var(--line-2); }
.pb-verdict[data-v="investigate"], .pb-verdict[data-v="ok"] { border-color: rgba(63, 182, 139, .45); }
.pb-verdict[data-v="within-error"] { border-color: rgba(224, 164, 58, .5); }
.pb-verdict[data-v="none"], .pb-verdict[data-v="over"], .pb-verdict[data-v="bad"] { border-color: rgba(239, 91, 97, .5); }

.pb-gapbar { position: relative; height: 36px; margin: 18px 0 8px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .06)); border: 1px solid var(--line); }
.pb-gb-band { position: absolute; top: 6px; bottom: 6px; background: rgba(106, 166, 255, .22); border: 1px solid rgba(106, 166, 255, .55); border-radius: 6px; }
.pb-gb-model, .pb-gb-cost { position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -1.5px; border-radius: 2px; }
.pb-gb-model { background: var(--info); } .pb-gb-cost { background: var(--gold); }
.pb-gb-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.pb-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 6px 0 2px; vertical-align: middle; }
.pb-key-f { background: var(--info); } .pb-key-m, .pb-key-c { background: var(--gold); }

.pb-steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.pb-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--text-2); font-size: 15px; }
.pb-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 15px; font: 600 13px var(--f-mono); color: var(--gold); }
.pb-steps b { color: var(--text); }

.pb-rules4 { margin: 18px 0 8px; }
.pb-rules4 .card h3 { margin: 8px 0 6px; font-size: 17px; }
.pb-ladder { list-style: none; margin: 16px 0 26px; padding: 0; display: grid; gap: 6px; }
.pb-ladder li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid color-mix(in srgb, var(--gold) calc(var(--i) * 18%), var(--line-2)); }
.pb-ladder b { font: 600 12.5px var(--f-mono); letter-spacing: .08em; color: var(--text); min-width: 112px; }
.pb-ladder span { font-size: 14px; color: var(--text-2); }
@media (min-width: 900px) { .pb-ladder { grid-template-columns: repeat(6, 1fr); } .pb-ladder li { flex-direction: column; gap: 6px; } .pb-ladder b { min-width: 0; } }
.pb-split { display: grid; gap: 20px; align-items: center; margin: 10px 0; }
.pb-split h3 { margin-top: 0; }
@media (min-width: 760px) { .pb-split { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; } }
.pb-cal { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 12px; }
.pb-cal figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pb-avail { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--gold-soft); }
.pb-avail h3 { margin: 0 0 8px; font-size: 16px; }
.pb-avail ul { margin: 0; padding-left: 18px; font-size: 15px; }

.pb-domains { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .pb-domains { grid-template-columns: 1fr 1fr; } }
.pb-domain-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-domain h3 { margin: 0; font-family: var(--f-display); font-size: 24px; }
.pb-chip { font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-2); border: 1px solid rgba(224, 181, 71, .4); border-radius: 99px; padding: 8px 11px; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.pb-domain dl { margin: 14px 0 0; display: grid; gap: 4px; }
.pb-domain dt { font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 10px; }
.pb-domain dd { margin: 0; font-size: 14.5px; color: var(--text-2); }
.pb-domain dd ul { margin: 2px 0 0; padding-left: 18px; }

.pb-checkup { margin: 18px 0 22px; }
.pb-checkup .hp-head { font-family: var(--f-mono); }
.pb-checklist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.pb-checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; font-size: 15px; color: var(--text-2); min-height: 44px; }
.pb-checklist input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--gold); }
.pb-checklist input:checked + span { color: var(--text); }
.pb-checkup .hint { font-size: 12.5px; color: var(--text-3); margin: 10px 0 0; }
.pb-quiz-intro .btn { margin-top: 4px; }
.pb-quiz .quiz { margin-top: 0; }
.pb-toc { list-style: none; margin: 0; padding: 0; }
.pb-toc a { display: flex; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--text-2); font-size: 14px; }
.pb-toc a span { font: 600 11px/1.9 var(--f-mono); color: var(--gold); }
.pb-toc a:hover { color: var(--text); }
.pb-feature { border-color: rgba(224, 181, 71, .45); background: linear-gradient(135deg, rgba(224, 181, 71, .10), var(--panel) 60%); }
.pb-feature h3 { font-family: var(--f-display); font-size: 24px; }
.pb-verdict[data-v="partial"] { border-color: rgba(224, 164, 58, .5); }
.pb-toc a span { flex: 0 0 22px; }
.pb-book td { vertical-align: middle; }
.pb-rules4 .pb-n { font-size: 13px; }
.prose .pb-steps, .prose .pb-ladder, .prose .pb-rule-key, .prose .pb-checklist { padding-left: 0; }
.prose .pb-steps li, .prose .pb-ladder li, .prose .pb-rule-key li, .prose .pb-checklist li { margin: 0; }
