/* Public reading pages share the premium Vault identity (docs/DESIGN_SYSTEM.md).
   Local fonts swap in progressively; the HTML and navigation work without JavaScript. */
@font-face { font-family: 'Rubik Embedded'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/brand-fonts/rubik-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Rubik Embedded'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/brand-fonts/rubik-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02CE-02CF,U+02D9,U+02DD-02FF,U+0301,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Rubik Embedded'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/brand-fonts/rubik-cyrillic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Rubik Embedded'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/brand-fonts/rubik-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
:root {
  --paper: #0b1412; --sheet: #14201c; --ink: #f2eee3; --ink-2: #b4bcb3; --rule: #2c3932;
  --accent-2: #d8bc79; --chip: #f5c542; --chip-ink: #1a1405; --loss: #ff7a6b;
  --gold: var(--accent-2); --gold-ink: var(--chip-ink); --red: var(--loss);
  --font-body: 'Rubik Embedded', 'Rubik', 'Helvetica', sans-serif;
  --radius-card: 18px; --radius-control: 10px;
  --rule-soft: color-mix(in srgb, var(--rule) 70%, transparent);
  --elevation-card: 0 8px 28px -18px color-mix(in srgb, var(--ink) 22%, transparent);
  --brand-chip: var(--chip); --brand-spot: var(--paper); --brand-ink: var(--paper);
  --btn-bg: color-mix(in srgb, var(--ink) 6%, transparent); --btn-ink: var(--ink);
  --btn-border: color-mix(in srgb, var(--ink) 30%, transparent);
  --btn-hover-bg: color-mix(in srgb, var(--ink) 10%, transparent);
  --btn-hover-border: color-mix(in srgb, var(--ink) 45%, transparent);
  --btn-primary-bg: linear-gradient(180deg, #ffd964, #f5c542 55%, #e3ae2a);
  --btn-primary-ink: var(--chip-ink); --btn-primary-border: #8c6a16;
  --btn-primary-shadow: 0 3px 10px #0002; --btn-primary-hover-shadow: 0 5px 16px #0003;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--font-body); }
:lang(ja), :lang(zh-Hans), :lang(ko) { line-break: strict; }
:lang(ko) { word-break: keep-all; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.top, main, footer { max-width: 760px; margin: 0 auto; padding-inline: 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
.brand .mark { flex: none; }
.brand-mark { display: block; }
.brand-mark .bm-chip { fill: var(--brand-chip); }
.brand-mark .bm-spot { fill: var(--brand-spot); }
.brand-mark .bm-ring { fill: none; stroke: var(--brand-spot); stroke-width: 2.5; stroke-dasharray: 4 3; opacity: .55; }
.brand-mark .bm-spade { fill: var(--brand-ink); }
main { padding-block: 24px 40px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 6px 0 10px; text-wrap: balance; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 22px; line-height: 1.25; margin: 34px 0 8px; text-wrap: balance; }
h3 { font-size: 19px; margin: 26px 0 6px; }
p, li, dd { max-width: 68ch; }
mark { background: none; color: var(--accent-2); }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; margin: 0; }
h2 .kicker, h3 .kicker { display: block; margin-bottom: 2px; }
.lede { font-size: 19px; color: var(--ink); }
.byline, .note, .crumbs { color: var(--ink-2); font-size: 15px; }
.crumbs { margin: 0 0 14px; }
.crumbs a { color: var(--ink-2); }
.btn { display: inline-block; max-width: 100%; min-height: 44px; background: var(--btn-primary-bg); color: var(--btn-primary-ink); border: 1px solid var(--btn-primary-border); box-shadow: var(--btn-primary-shadow); font-weight: 700; text-decoration: none; font-size: 14px; line-height: 1.4; padding: 11px 18px; border-radius: var(--radius-control); margin: 4px 6px 4px 0; }
.btn:hover { color: var(--btn-primary-ink); box-shadow: var(--btn-primary-hover-shadow); }
.btn.small { padding: 8px 13px; min-height: 36px; font-size: 12.5px; margin: 0; white-space: nowrap; }
.btn.ghost { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-border); box-shadow: none; }
.btn.ghost:hover { background: var(--btn-hover-bg); border-color: var(--btn-hover-border); }
.spot { background: var(--sheet); border: 1px solid var(--rule-soft); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--elevation-card); }
.formula { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 15px; white-space: pre-wrap; background: var(--sheet); border: 1px solid var(--rule-soft); border-radius: var(--radius-card); padding: 24px; overflow-wrap: anywhere; }
aside { border-left: 2px solid var(--gold); background: var(--sheet); border-radius: 0 var(--radius-card) var(--radius-card) 0; padding: 8px 24px; margin: 24px 0; }
aside.mistake { border-left-color: var(--red); }
aside h2 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; margin: 10px 0 0; }
.term { color: var(--ink); text-decoration: underline dotted var(--gold); }
.opts { padding-left: 26px; }
.checks > li { margin-bottom: 18px; }
details { margin: 6px 0 14px; }
summary { cursor: pointer; color: var(--gold); font-weight: 650; }
.cta-box { margin: 32px 0 24px; padding: 24px; border: 1px solid var(--rule-soft); border-radius: var(--radius-card); background: var(--sheet); box-shadow: var(--elevation-card); }
.cta-box p { margin: 0 0 8px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin: 18px 0; font-size: 15px; }
.part { border-top: 1px solid var(--rule); margin-top: 22px; }
.part ol { padding-left: 28px; }
.part li { margin: 4px 0; }
.badge { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--gold); color: var(--gold); border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }
.gloss { margin: 0; }
.term-row { padding: 12px 0; border-top: 1px solid var(--rule); scroll-margin-top: 12px; }
.term-row:target { background: var(--sheet); }
dt { font-weight: 750; }
dd { margin: 2px 0 0; color: var(--ink-2); }
.creator { margin-top: 36px; padding-top: 6px; border-top: 1px solid var(--rule); }
footer { border-top: 1px solid var(--rule); padding-block: 18px 36px; color: var(--ink-2); font-size: 14px; }
footer .langs a, footer .langs span { margin-right: 10px; display: inline-block; }
footer [aria-current] { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 2px solid var(--chip); outline-offset: 3px; }
.brand span { white-space: nowrap; }
/* Phones: the page's own button carries the call to open the app, so the header keeps only the name. */
@media (max-width: 460px) { .top .btn.small { display: none; } }
.creator-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); display: block; margin-top: 8px; }

/* Calculators (/tools/…): fields in a row that wraps, results as a definition list. */
.calc { background: var(--sheet); border: 1px solid var(--rule-soft); border-radius: var(--radius-card); padding: 24px; margin: 24px 0 8px; box-shadow: var(--elevation-card); }
.calc .fields { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-2); flex: 1 1 180px; min-width: 0; }
.calc input, .calc select { font: inherit; font-size: 18px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-control); padding: 8px 10px; min-width: 0; min-height: 44px; }
.calc input:focus-visible, .calc select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.calc .results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px 18px; margin: 16px 0 0; }
.calc .results div { border-top: 1px solid var(--rule); padding-top: 8px; }
.calc h2 { font-size: 18px; margin: 0 0 12px; }
.calc .results + h2 { margin-top: 28px; }
.calc dt { font-size: 14px; color: var(--ink-2); }
.calc dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.tools-list { padding-left: 22px; }
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.example-grid .spot { margin: 0; min-width: 0; }
/* The preflop odds chart: 13 × 13 hands, shaded by equity against a random hand; scrolls sideways inside its box on phones. */
.hand-chart-wrap { overflow-x: auto; margin: 24px 0 8px; border: 1px solid var(--rule-soft); border-radius: var(--radius-card); background: var(--sheet); box-shadow: var(--elevation-card); padding: 12px; }
.hand-chart-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hand-chart { border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 520px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.hand-chart caption { text-align: start; color: var(--ink-2); font-size: 14px; padding: 0 2px 8px; }
.hand-chart td { text-align: center; padding: 4px 0; border-radius: 4px; line-height: 1.15; color: var(--ink); }
.hand-chart td b { display: block; font-size: 12px; }
.hand-chart td span { display: block; font-size: 11px; color: var(--ink-2); }
.hand-chart td.pair { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 60%, transparent); }
.hand-chart .e0 { background: color-mix(in srgb, var(--gold) 4%, var(--paper)); }
.hand-chart .e1 { background: color-mix(in srgb, var(--gold) 8%, var(--paper)); }
.hand-chart .e2 { background: color-mix(in srgb, var(--gold) 12%, var(--paper)); }
.hand-chart .e3 { background: color-mix(in srgb, var(--gold) 17%, var(--paper)); }
.hand-chart .e4 { background: color-mix(in srgb, var(--gold) 22%, var(--paper)); }
.hand-chart .e5 { background: color-mix(in srgb, var(--gold) 28%, var(--paper)); }
.hand-chart .e6 { background: color-mix(in srgb, var(--gold) 34%, var(--paper)); }
.hand-chart .e7 { background: color-mix(in srgb, var(--gold) 40%, var(--paper)); }
.hand-chart .e8, .hand-chart .e9 { background: color-mix(in srgb, var(--gold) 46%, var(--paper)); }
.hand-chart .e7 span, .hand-chart .e8 span, .hand-chart .e9 span { color: var(--ink); }
.table-wrap { overflow-x: auto; }
.matchups { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.matchups th, .matchups td { text-align: start; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.matchups th { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.matchups td:nth-child(-n+3) { white-space: nowrap; font-weight: 700; }
.matchups.stacks td:last-child { color: var(--ink); min-width: 0; }
.matchups.icm td { font-weight: 700; }
.hand-chart-wrap + .hand-chart-wrap { margin-top: 16px; }
.matchups td:last-child { color: var(--ink-2); min-width: 12em; }
@media (max-width: 640px) { .matchups:not(.stacks) thead th:last-child { display: none; } .matchups:not(.stacks) tr { display: grid; grid-template-columns: auto auto 1fr; column-gap: 14px; border-bottom: 1px solid var(--rule); } .matchups:not(.stacks) th, .matchups:not(.stacks) td { border: 0; padding: 10px 0 4px; } .matchups:not(.stacks) td:last-child { grid-column: 1 / -1; min-width: 0; padding: 0 0 10px; } }
.example-grid dl { margin: 0; }
.example-grid dt { color: var(--ink-2); font-size: 14px; }
.example-grid dd { margin: 4px 0 16px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.example-grid dd:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .calc, .spot, .formula, .cta-box { padding: 18px; } aside { padding-inline: 18px; } }

/* Public discovery and supporting pages use the same task hierarchy as the app. */
.public-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; margin: 28px 0; }
.plan-card { padding: 24px; border: 1px solid var(--rule); border-radius: var(--radius-card, 18px); background: var(--sheet); }
.plan-card h2 { margin-top: 0; }
.plan-price { font-size: 32px; font-weight: 700; }
.billing-options { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
.billing-options dd { margin: 0; text-align: end; }
.gloss-index { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.gloss-index a { display: inline-flex; min-width: 32px; min-height: 44px; align-items: center; justify-content: center; }
.glossary-search { display: grid; gap: 8px; max-width: 560px; margin: 16px 0; }
.glossary-search input { width: 100%; min-height: 44px; }
.term-row [id] { scroll-margin-top: 24px; }
[hidden] { display: none !important; }
@media (max-width: 640px) { .top { flex-wrap: wrap; gap: 12px; } .public-nav { order: 3; width: 100%; justify-content: space-between; font-size: 14px; } .billing-options { grid-template-columns: 1fr; } .billing-options dd { text-align: start; } }

/* "Guess the Equity", the daily game (public/daily.js): the round, the cards, the slider, the reveal and the score. */
.gte { background: var(--sheet); border: 1px solid var(--rule-soft); border-radius: var(--radius-card); padding: 22px; margin: 24px 0 8px; box-shadow: var(--elevation-card); min-height: 320px; }
.gte-challenge { background: color-mix(in srgb, var(--chip) 14%, transparent); border: 1px solid color-mix(in srgb, var(--chip) 45%, transparent); border-radius: var(--radius-control); padding: 10px 14px; margin: 0 0 16px; }
.gte-round { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; font-size: 15px; }
.gte-round b { color: var(--gold); }
.gte-round span { color: var(--ink-2); }
.gte-table { display: grid; gap: 10px; }
.gte-hand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gte-who { min-width: 76px; color: var(--ink-2); font-size: 14px; }
.gte-vs { color: var(--ink-2); font-size: 13px; margin-left: 84px; }
.gte-card { display: inline-flex; align-items: baseline; justify-content: center; gap: 1px; min-width: 48px; padding: 9px 8px 7px; border-radius: 9px; background: #f6f1e4; color: #1a1405; font-weight: 800; font-size: 22px; line-height: 1; box-shadow: 0 2px 0 #0005; }
.gte-card i { font-style: normal; font-size: 20px; }
.gte-card.h, .gte-card.d { color: #b3261e; }
.gte-ask { margin: 20px 0 4px; font-weight: 600; }
.gte-pick { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0; }
.gte-guess { font-size: 50px; font-weight: 800; min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.btn.small.gte-step { min-width: 48px; min-height: 48px; font-size: 24px; line-height: 1; padding: 0 12px; }
.gte-slider { display: block; width: 100%; min-height: 44px; accent-color: var(--chip); margin: 4px 0; }
.gte-lock { display: block; width: 100%; margin: 10px 0 0; text-align: center; }
.gte-lock:disabled, .gte-step:disabled { opacity: .45; }
.gte-reveal { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 16px; }
.gte-track { position: relative; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 12%, transparent); margin: 8px 0 16px; }
.gte-mark { position: absolute; top: -6px; width: 4px; height: 24px; border-radius: 2px; transform: translateX(-2px); }
.gte-mark.exact { background: var(--chip); }
.gte-mark.yours { background: var(--ink); }
.gte-exact { font-size: 22px; font-weight: 700; margin: 0; color: var(--chip); }
.gte-points { font-weight: 600; }
.gte-reveal .btn { margin-top: 6px; }
.gte-results { text-align: center; }
.gte-results h2 { margin-top: 0; }
.gte-total { margin: 0; line-height: 1; }
.gte-total b { font-size: 68px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gte-total span { font-size: 24px; color: var(--ink-2); margin-left: 4px; }
.gte-marks { font-size: 30px; letter-spacing: 4px; margin: 10px 0 6px; }
.gte-copied { min-height: 1.6em; }
.gte-sharetext { display: block; width: 100%; min-height: 100px; margin: 8px 0; padding: 10px; font: 15px/1.5 var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-control); }
.gte-recap { text-align: start; font-size: 15px; color: var(--ink-2); padding-left: 1.3em; margin: 18px 0 0; }
.gte-recap li { margin: 6px 0; }
.gte-recap span { margin-right: 10px; }
.gte-rh { color: var(--ink); white-space: nowrap; }
.gte-rb { white-space: nowrap; }
@media (max-width: 420px) { .gte { padding: 16px; } .gte-card { min-width: 42px; font-size: 20px; } .gte-who { min-width: 64px; } .gte-vs { margin-left: 72px; } .gte-guess { font-size: 44px; } }

/* Chart downloads (charts.js) and printing a chart page as a clean sheet. */
.chart-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .top, footer, .crumbs, .calc, .chart-actions, .cta-box, .calculator-questions, .pager, .btn { display: none !important; }
  a { color: #111; text-decoration: none; }
  .matchups, .matchups th, .matchups td { color: #111; border-color: #999; background: #fff; }
  main::after { content: "pokermathcoach.com"; display: block; margin-top: 16px; font-weight: 700; }
}

/* Embeds (/embed/…) and the embed code box on calculator pages. */
body.embed main { max-width: 640px; padding: 12px 14px 8px; }
.embed-title { font-size: 20px; margin: 0 0 10px; }
.embed-credit { font-size: 13px; margin: 10px 0 0; }
.embed-code textarea { width: 100%; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-control); padding: 8px; }

/* Poker math quiz (/quiz/, quiz.js). */
.quiz { padding-left: 0; list-style: none; }
.quiz-q { padding: 16px 0; border-top: 1px solid var(--rule); }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.quiz-opts .btn { margin: 0; min-width: 88px; }
.quiz-opts .btn.right { border-color: #5fe09a; color: #5fe09a; }
.quiz-opts .btn.wrong { border-color: var(--loss); color: var(--loss); }
.quiz-opts .btn:disabled { opacity: 1; cursor: default; }

/* Odds answers (/odds/) and hands of the week (/hands/). */
.answer-box .lede { margin: 0 0 6px; }
.hand-cards { font-size: 22px; font-weight: 700; letter-spacing: .02em; margin: 6px 0; }
.hand-cards .kicker { display: inline-block; margin-right: 10px; font-size: 12px; vertical-align: 4px; }
.hand-list { padding-left: 24px; }
.hand-list li { margin: 6px 0; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--rule-soft); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
