/* ==========================================================================================================
   CritField — Issue 02, "The Update Ledger" — page skin (D-066, owner review 2026-10-03)
   Loaded only by research/steam-updates-audience/ (after styles.css). Generator: scripts/make_ledger_page.py
   (+ ledger_charts.py, ledger_facts.py); behaviour: ledger.js.

   A data terminal with a pixel accent. Three references, one system:
   - Token Terminal: near-black ground, flat panels with hairlines, neon data tones, columns and areas that fade to
     the floor, a legend-table with exact figures beside a chart, KPI tiles joined under the chart, a faint watermark.
   - growthepie: Raleway for headings and Fira Sans for every figure, digits tracked open, the number in colour and
     its unit set smaller.
   - Koyfin: panels with a header bar, heatmap tiles, dense tables with coloured deltas, value tags on the axis.
   The game world stays in the accents: Jersey 10 for small labels, the pixel icons, sprites and the walker, the live
   cover; meters are segmented like a health bar (each block a unit, never decoration).
   Three families on the page: Raleway, Fira Sans, Jersey 10.
   Colour grammar (charts, numbers, chips): gold = headline series or reference; mint = good / strong; cyan = moderate /
   inside the bound; coral = worse / outside; slate = no effect.
   ========================================================================================================== */


/* the two faces are declared site-wide in styles.css (D-067) */
/* ---------- tokens ---------- */
.ld-page {
  --bg: #060708; --bg-2: #0a0c0f;
  --pn: #0c0f12; --pn-2: #11151a; --pn-3: #171c22;
  --ln: #1a1f26; --ln-2: #242a32; --ln-3: #333a44;
  --ink: #f3f5f7; --ink-2: #c8cfd7; --ink-3: #8b949f; --ink-4: #626b76;
  --c-gold: #f6c453; --c-gold-2: #ffe08f; --c-ice: #42c6ff; --c-bad: #ff5c72; --c-good: #22e3a0; --c-dim: #6b7684; --c-violet: #9b8cff;
  --f-head: "Raleway", "Segoe UI", system-ui, sans-serif;
  --f-body: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  /* the shared design system reads these names: point them at the page faces and tones */
  --serif: var(--f-head); --sans: var(--f-body); --mono: var(--f-body); --px: "Jersey 10", var(--f-body);
  --text: var(--ink); --body: var(--ink-2); --muted: var(--ink-3); --muted-2: var(--ink-4);
  --line: var(--ln-2); --line-soft: var(--ln);
  --gold: var(--c-gold); --gold-bright: var(--c-gold-2); --gold-soft: rgba(246, 196, 83, 0.32); --gold-faint: rgba(246, 196, 83, 0.08);
  --ice: var(--c-ice); --ice-bright: #8fdcff; --ice-soft: rgba(66, 198, 255, 0.34);
  --emerald: var(--c-good); --crimson: var(--c-bad); --steel: #9aa6b4; --steel-dim: var(--c-dim);
  --r: 12px; --r-sm: 8px;
  --seg: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);   /* pixel health-bar blocks */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
}
.ld-page::before, .ld-page::after { display: none; }   /* no film grain, no grid: a clean terminal ground */
.ld-page [id] { scroll-margin-top: 24px; }
.ld-page h1, .ld-page h2, .ld-page h3, .ld-page h4 { font-feature-settings: "lnum" 1; }
.ld-page ::selection { background: rgba(246, 196, 83, 0.35); color: #fff; }

/* tones as values, for anything that says "tone-x" */
.tone-gold { --tone: var(--c-gold); --tone-a: rgba(246, 196, 83, 0.14); }
.tone-good { --tone: var(--c-good); --tone-a: rgba(34, 227, 160, 0.13); }
.tone-ice  { --tone: var(--c-ice);  --tone-a: rgba(66, 198, 255, 0.13); }
.tone-bad  { --tone: var(--c-bad);  --tone-a: rgba(255, 92, 114, 0.13); }
.tone-dim  { --tone: #9aa6b4;       --tone-a: rgba(107, 118, 132, 0.18); }
/* tones as fills (bars, swatches, cells) */
.ld-page .t-gold { background: var(--c-gold); } .ld-page .t-ice { background: var(--c-ice); } .ld-page .t-bad { background: var(--c-bad); }
.ld-page .t-good { background: var(--c-good); } .ld-page .t-dim { background: var(--c-dim); }

/* figures: Fira Sans, tracked open, lining tabular digits; the unit smaller and quieter (growthepie) */
.ld-page .nu { text-decoration: none; font-size: 0.6em; font-weight: 500; letter-spacing: 0; opacity: 0.72; margin: 0 0.04em; }
.ld-page .ns { font-style: normal; font-size: max(0.48em, 0.75rem); font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3); vertical-align: 0.3em; }

/* ---------- site bar, footer on this page ---------- */
.ld-page .topnav { background: rgba(6, 7, 8, 0.88); border-bottom: 1px solid var(--ln); backdrop-filter: blur(12px); }
.ld-page .nav-inner { max-width: 1280px; }
.ld-page .nav-brand { font-family: var(--f-head); font-weight: 700; letter-spacing: -0.01em; }
.ld-page .nav-links a { color: var(--ink-3); }
.ld-page .nav-links a:hover, .ld-page .nav-links a[aria-current="page"] { color: var(--ink); }
.ld-page .nav-cta { background: var(--c-gold); color: #17120a; border-radius: var(--r-sm); }
.ld-page .footer { background: var(--bg); border-top: 1px solid var(--ln); }
.ld-page .footer p, .ld-page .footer a { color: var(--ink-3); }
.ld-page .footer b { color: var(--ink); }

/* ---------- shared blocks restyled ---------- */
.ld-page .px-sec { max-width: 1280px; padding-left: 24px; padding-right: 24px; }
.ld-page .px-head { max-width: 860px; }
.ld-page .px-eyebrow { font-family: var(--px); font-size: 1.08rem; letter-spacing: 0.04em; color: var(--c-gold); gap: 8px; }
.ld-page .px-h { font-family: var(--f-head); font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
.ld-page .px-lead { font-family: var(--f-body); font-size: clamp(1.04rem, 1.3vw, 1.14rem); line-height: 1.65; color: var(--ink-2); }
.ld-page .px-lead b, .ld-page strong { color: var(--ink); font-weight: 600; }
.ld-page .ld-h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.ld-page a { text-underline-offset: 3px; }
.ld-page .btn { font-family: var(--f-body); font-weight: 600; font-size: 0.98rem; border-radius: 10px; padding: 12px 20px; letter-spacing: 0.01em; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.ld-page .btn-primary { background: var(--c-gold); color: #17120a; border: 1px solid var(--c-gold); box-shadow: 0 0 0 0 rgba(246, 196, 83, 0); }
.ld-page .btn-primary:hover { background: var(--c-gold-2); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(246, 196, 83, 0.22); }
.ld-page .btn-ghost, .ld-page .btn-secondary { background: var(--pn); color: var(--ink); border: 1px solid var(--ln-3); }
.ld-page .btn-ghost:hover, .ld-page .btn-secondary:hover { border-color: var(--ink-4); background: var(--pn-2); }
.ld-page .crumb, .ld-page .crumb a { color: var(--ink-3); font-size: 0.86rem; }
.ld-page .crumb [aria-current] { color: var(--c-gold); }
.ld-page .px-caveat { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 0.9rem; color: var(--ink-3); }

/* ---------- hero ---------- */
.ld-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--ln);
  background: radial-gradient(820px 420px at 82% 0%, rgba(246, 196, 83, 0.08), transparent 65%),
              radial-gradient(760px 420px at 0% 10%, rgba(34, 227, 160, 0.06), transparent 62%), var(--bg); }
.ld-hero .px-sky { opacity: 0.45; }
.ld-hero-in { position: relative; max-width: 1280px; margin: 0 auto; padding: 22px 24px 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.ld-hero-copy { padding: clamp(10px, 2.4vw, 30px) 0 clamp(8px, 2vw, 20px); }
.ld-hero-copy .crumb { padding: 0; margin: 0 0 clamp(18px, 2.6vw, 28px); }
.ld-hero h1.px-h { font-size: clamp(2.35rem, 4.6vw, 3.9rem); line-height: 1.03; letter-spacing: -0.03em; font-weight: 800; }
.ld-hero .px-lead { max-width: 590px; margin-top: 20px; }
.ld-hero .px-cta { margin-top: 26px; }
.ld-hero-art { min-width: 0; padding: 12px; border-radius: 16px; border: 1px solid var(--ln-2); background: linear-gradient(180deg, var(--pn-2), var(--pn)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.ld-artbar { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; font-size: 0.82rem; color: var(--ink-3); }
.ld-artbar b { font-family: var(--px); font-weight: 400; font-size: 1.08rem; letter-spacing: 0.04em; color: var(--ink); }
.ld-live { flex: none; width: 8px; height: 8px; background: var(--c-good); box-shadow: 0 0 0 3px rgba(34, 227, 160, 0.18); animation: ld-blink 1.6s steps(2) infinite; }
@keyframes ld-blink { 50% { opacity: 0.35; } }
.ld-hero-art .ld-cover { display: block; border-radius: 10px; overflow: hidden; }
.ld-beats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 10px 0 0; padding: 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--ln); }
.ld-beats li { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 8px; border-radius: 7px; font-size: 0.82rem; font-weight: 500; color: var(--ink-3);
  transition: color 0.25s, background 0.25s; white-space: nowrap; }
.ld-beats li b { font-family: var(--px); font-weight: 400; font-size: 1.05rem; color: var(--ink-4); }
.ld-beats li.is-on { color: var(--ink); background: var(--pn-3); box-shadow: inset 0 0 0 1px var(--ln-3); }
.ld-beats li.is-on b { color: var(--c-gold); }

/* KPI band: three headline figures with the picture that proves each, then the proof row */
.ld-kpiband { position: relative; max-width: 1280px; margin: clamp(26px, 3.4vw, 44px) auto 0; padding: 0 24px clamp(30px, 4vw, 48px); }
.ld-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--ln); border: 1px solid var(--ln); }
.ld-kpi { display: flex; flex-direction: column; min-width: 0; padding: 20px 22px 18px; background: var(--pn); }
.ld-kpi-k { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--px); font-size: 1.04rem; letter-spacing: 0.04em; color: var(--ink-3); }
.ld-kpi-k::before { content: ""; width: 8px; height: 8px; background: var(--tone); }
.ld-kpi-n { margin: 8px 0 0; font-family: var(--f-body); font-weight: 600; font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: 0.95; letter-spacing: 0.01em; color: var(--tone);
  font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 40px var(--tone-a); }
.ld-kpi-l { margin: 10px 0 0; max-width: 34ch; font-size: 0.93rem; line-height: 1.5; color: var(--ink-2); }
.ld-kpi > div, .ld-kpi > ul { margin-top: auto; padding-top: 16px; }
/* the three micro-pictures */
.kv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kv-bars li { display: grid; grid-template-columns: 88px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--ink-3); }
.kv-bars i { display: block; height: 10px; width: var(--w); -webkit-mask: var(--seg); mask: var(--seg); }
.kv-bars b { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.kv-cols .kv-plot { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 58px; border-bottom: 1px solid var(--ln-3); }
.kv-cols .kv-plot i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; opacity: 0.9; }
.kv-cols .kv-plot i.t-good { opacity: 1; box-shadow: 0 0 18px rgba(34, 227, 160, 0.35); }
.kv-cols .kv-plot s { position: absolute; left: 0; right: 0; bottom: 22%; border-top: 1px dashed rgba(246, 196, 83, 0.55); text-decoration: none; }
.kv-cols p, .kv-line p { display: flex; justify-content: space-between; gap: 6px; margin: 6px 0 0; font-size: 0.75rem; color: var(--ink-4); }
.kv-cols p span { flex: 1; text-align: center; white-space: nowrap; }
.kv-line svg { display: block; width: 100%; height: 58px; border-bottom: 1px solid var(--ln-3); overflow: visible; }
.ld-proof-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 14px 22px;
  border: 1px solid var(--ln); border-top: 0; border-radius: 0 0 var(--r) var(--r); background: var(--bg-2); }
.ld-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 2.6vw, 38px); }
.ld-proof li { display: flex; align-items: baseline; gap: 8px; }
.ld-proof b { font-weight: 600; font-size: 1.12rem; letter-spacing: 0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ld-proof span { font-size: 0.86rem; color: var(--ink-3); }
.ld-proof .nu { font-size: 0.72em; }
.ld-proof-go { font-family: var(--px); font-size: 1.12rem; letter-spacing: 0.03em; color: var(--c-ice); text-decoration: none; white-space: nowrap; }
.ld-proof-go::after { content: " \2193"; font-family: var(--f-body); }
.ld-proof-go:hover { color: var(--ice-bright); }

/* ---------- contents bar ---------- */
.ld-subnav { position: sticky; top: var(--nav-h, 49px); z-index: 50; background: rgba(6, 7, 8, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ln); }
.ld-subnav-in { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ld-subnav-track { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 12px; }
.ld-subnav-track::-webkit-scrollbar { display: none; }
.ld-subnav a { flex: 1 0 auto; text-align: center; font-family: var(--px); font-size: 1.22rem; letter-spacing: 0.03em; color: var(--ink-3); text-decoration: none;
  padding: 5px 16px 4px; border-radius: 8px; border: 1px solid transparent; transition: color 0.2s, background 0.2s, border-color 0.2s; white-space: nowrap; }
.ld-subnav a:hover { color: var(--ink); background: var(--pn-2); }
.ld-subnav a.is-on { color: var(--c-gold); background: var(--pn-3); border-color: var(--ln-3); }
.ld-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ln); }
.ld-progress i { display: block; height: 100%; width: 0; transition: width 0.12s linear; background: var(--c-gold); -webkit-mask: var(--seg); mask: var(--seg); }
.ld-walker { position: absolute; left: 24px; bottom: 1px; width: 18px; height: 19px; margin-left: -9px; pointer-events: none;
  background: url("/assets/art/sprite-knight.svg") center / contain no-repeat; image-rendering: pixelated; animation: px-bob 0.5s steps(2) infinite; }

/* ---------- parts ---------- */
.ld-block + .ld-block { margin-top: 12px; border-top: 1px solid var(--ln); }
.ld-bhead .px-h { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.ld-bhead .px-lead { max-width: 740px; }
.ld-bchaps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; margin: 26px 0 0; padding: 0;
  background: var(--ln); border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; }
.ld-bchaps li { display: flex; }
.ld-bchaps a { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--pn); color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; line-height: 1.3;
  transition: background 0.2s; }
.ld-bchaps a:hover { background: var(--pn-3); }
.ld-bchaps b { flex: none; min-width: 30px; font-family: var(--px); font-weight: 400; font-size: 1.35rem; color: var(--c-gold); }
.ld-bchaps span { min-width: 0; }

/* ---------- findings: a leaderboard ---------- */
.ld-board { border: 1px solid var(--ln); border-radius: var(--r); background: var(--pn); overflow: hidden; }
.ld-board-head, .ld-find { display: grid; grid-template-columns: 44px minmax(190px, 0.3fr) minmax(0, 1fr) 128px 84px; column-gap: clamp(14px, 2vw, 26px); align-items: center; }
.ld-board-head { padding: 11px 20px; border-bottom: 1px solid var(--ln); background: var(--bg-2); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); }
.ld-board-head span:last-child { text-align: center; }
.ld-find-grid { display: grid; gap: 0; }
.ld-find { position: relative; padding: 20px; text-decoration: none; color: inherit; border-top: 1px solid var(--ln); transition: background 0.18s; }
.ld-find:first-child { border-top: 0; }
.ld-find::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--tone); opacity: 0; transition: opacity 0.18s; }
.ld-find:hover { background: var(--pn-2); }
.ld-find:hover::before, .ld-find:focus-visible::before { opacity: 1; }
.ld-find:focus-visible { outline: 2px solid var(--ice-bright); outline-offset: -2px; }
.ld-find-rank { font-family: var(--px); font-size: 1.4rem; color: var(--ink-4); }
.ld-num { margin: 0; font-family: var(--f-body); font-weight: 600; font-size: clamp(2.1rem, 3.3vw, 2.9rem); line-height: 1; letter-spacing: 0.01em; color: var(--tone, var(--c-gold));
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.ld-find-sub { margin: 8px 0 0; font-size: 0.82rem; line-height: 1.4; color: var(--ink-3); max-width: 28ch; }
.ld-find h3 { margin: 0 0 6px; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.28; letter-spacing: -0.01em; color: var(--ink); }
.ld-find-t p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; }
.ld-find-ev { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ld-ev { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 6px; border-radius: 6px; font-size: 0.78rem; font-weight: 500; line-height: 1.5; color: var(--ink-2); background: var(--pn-3); border: 1px solid var(--ln-2); white-space: nowrap; }
.ld-ev-s { color: #8ef3c9; } .ld-ev-c { color: #9ee0ff; } .ld-ev-m { color: var(--c-gold-2); } .ld-ev-n { color: var(--ink-3); }
.ld-find-go { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--px); font-size: 1.06rem; color: var(--c-ice); white-space: nowrap; }
.ld-find-go .px-icon { width: 24px; height: 24px; image-rendering: pixelated; }
.ld-find-go::after { content: "\2192"; font-family: var(--f-body); font-size: 0.95rem; transition: transform 0.2s; }
.ld-find:hover .ld-find-go::after { transform: translateX(3px); }

/* evidence glyphs */
.ld-b { display: inline-block; width: 9px; height: 9px; vertical-align: 0; position: relative; flex: none; }
.ld-b-s { background: var(--c-good); }
.ld-b-m { background: var(--c-gold); }
.ld-b-n { background: var(--c-dim); }
.ld-b-c { background: var(--c-ice); border-radius: 50%; width: 11px; height: 11px; }
.ld-b-c::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 3px; height: 6px; border: solid #04121b; border-width: 0 1.5px 1.5px 0; transform: rotate(40deg); }
.ld-b-w { width: 0; height: 0; background: transparent; border-left: 5.5px solid transparent; border-right: 5.5px solid transparent; border-bottom: 10px solid var(--c-bad); }

/* ---------- myths: a verdict table ---------- */
.ld-mythtbl { border: 1px solid var(--ln); border-radius: var(--r); background: var(--pn); overflow: hidden; }
.ld-myth-head, .ld-myth { display: grid; grid-template-columns: 116px minmax(0, 0.9fr) minmax(0, 1.25fr) 96px; column-gap: clamp(14px, 2vw, 26px); align-items: center; }
.ld-myth-head { padding: 11px 20px; border-bottom: 1px solid var(--ln); background: var(--bg-2); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); }
.ld-mythgrid { list-style: none; margin: 0; padding: 0; }
.ld-myth { padding: 15px 20px; border-top: 1px solid var(--ln); transition: background 0.18s; }
.ld-myth:first-child { border-top: 0; }
.ld-myth:hover { background: var(--pn-2); }
.ld-myth-v { justify-self: start; padding: 3px 10px 2px; border-radius: 6px; font-family: var(--px); font-size: 1.05rem; letter-spacing: 0.03em; line-height: 1.2;
  color: #ff98a6; background: rgba(255, 92, 114, 0.1); border: 1px solid rgba(255, 92, 114, 0.35); }
.ld-myth.is-open .ld-myth-v { color: var(--c-gold-2); background: rgba(246, 196, 83, 0.1); border-color: rgba(246, 196, 83, 0.35); }
.ld-myth.is-part .ld-myth-v { color: #9ee0ff; background: rgba(66, 198, 255, 0.1); border-color: rgba(66, 198, 255, 0.35); }
.ld-myth-b { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: 1.04rem; line-height: 1.38; color: var(--ink); }
.ld-myth-r { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.ld-myth-go { justify-self: end; font-family: var(--px); font-size: 1.05rem; color: var(--c-ice); text-decoration: none; white-space: nowrap; }
.ld-myth-go::after { content: " \2192"; font-family: var(--f-body); }
.ld-myth-go:hover { color: var(--ice-bright); }

/* ---------- playbook + calculator ---------- */
.ld-playgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.ld-play { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ln); border-radius: var(--r); background: var(--pn); overflow: hidden; }
.ld-play li { display: flex; gap: 16px; padding: 15px 18px; border-top: 1px solid var(--ln); }
.ld-play li:first-child { border-top: 0; }
.ld-play-n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; font-family: var(--px); font-size: 1.2rem; color: #04140d; background: var(--c-good); }
.ld-play h3 { margin: 2px 0 4px; font-family: var(--f-head); font-weight: 700; font-size: 1.08rem; line-height: 1.3; color: var(--ink); }
.ld-play p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.ld-play a, .ld-press .ld-fine a { color: var(--c-ice); white-space: nowrap; }
.ld-play a::after { content: " \2192"; }
.ld-card { padding: 22px 24px; background: var(--pn); border: 1px solid var(--ln); border-radius: var(--r); }
.ld-panel-k { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-family: var(--px); font-size: 1.05rem; letter-spacing: 0.04em; color: var(--ink-3); }
.ld-calc { position: sticky; top: 140px; background: linear-gradient(180deg, var(--pn-2), var(--pn)); border-color: var(--ln-2); }
.ld-calc h3 { margin: 0 0 6px; font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); }
.ld-calc-lead { margin: 0 0 16px; font-size: 0.94rem; line-height: 1.55; color: var(--ink-2); }
.ld-calc-in { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ld-calc-in span { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); }
.ld-calc-in input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--ln-3); background: var(--bg); color: var(--c-gold);
  font-family: var(--f-body); font-size: 2rem; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.ld-calc-in input:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.ld-calc-out { list-style: none; margin: 0; padding: 0; display: grid; }
.ld-calc-out li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 64px; grid-template-rows: auto 6px; align-items: baseline; column-gap: 12px; row-gap: 6px; padding: 10px 0 9px; border-bottom: 1px solid var(--ln); }
.ld-calc-out li:last-child { border-bottom: 0; }
.ld-calc-out span { font-size: 0.92rem; color: var(--ink-2); }
.ld-calc-out b { font-size: 1.18rem; font-weight: 600; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.ld-calc-out em { justify-self: end; font-style: normal; font-size: 0.8rem; font-weight: 600; padding: 1px 7px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.ld-calc-out .is-up em { color: #8ef3c9; background: rgba(34, 227, 160, 0.12); }
.ld-calc-out .is-dn em { color: #ff9eab; background: rgba(255, 92, 114, 0.12); }
.ld-calc-bar { grid-column: 1 / -1; grid-row: 2; display: block; height: 6px; width: var(--w); -webkit-mask: var(--seg); mask: var(--seg); }
.ld-calc-out .is-up .ld-calc-bar { background: var(--c-good); }
.ld-calc-out .is-dn .ld-calc-bar { background: var(--c-bad); }
.ld-calc-out span { grid-row: 1; } .ld-calc-out b { grid-row: 1; } .ld-calc-out em { grid-row: 1; }
.ld-calc-note { margin: 12px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--ink-3); }

/* ---------- press lines ---------- */
.ld-press-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px clamp(20px, 3vw, 44px); padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--r); border: 1px solid var(--ln-2); background: linear-gradient(135deg, rgba(246, 196, 83, 0.07), transparent 46%), var(--pn); }
.ld-press-box > .ld-fine { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--ln); }
.ld-press-list { margin: 0; padding: 0; list-style: none; counter-reset: pl; display: grid; gap: 0; }
.ld-press-list li { counter-increment: pl; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--ln); font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.ld-press-list li:first-child { border-top: 0; padding-top: 0; }
.ld-press-list li::before { content: counter(pl, decimal-leading-zero); font-family: var(--px); font-size: 1.2rem; line-height: 1.3; color: var(--c-gold); }

/* ---------- chapters ---------- */
.ld-ch { padding-top: clamp(56px, 6.4vw, 92px); }
.ld-ch-head { max-width: 900px; margin-bottom: clamp(20px, 2.6vw, 28px); }
.ld-ch-head .px-eyebrow img { width: 22px; height: 22px; }
.ld-brief { margin: 14px 0 0; max-width: 64ch; font-size: clamp(1.06rem, 1.4vw, 1.18rem); line-height: 1.62; color: var(--ink-2); }
.ld-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.ld-bchip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; color: var(--ink-2); background: var(--pn-2); border: 1px solid var(--ln-2); }
.ld-units { margin: 22px 0 0; max-width: 860px; font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
.ld-scope { margin: 14px 0 0; max-width: 960px; padding: 11px 16px; font-size: 0.9rem; line-height: 1.6; color: var(--ink-3); border: 1px solid var(--ln); border-radius: var(--r-sm); background: var(--bg-2); }
.ld-scope strong { color: var(--ink-2); }
.ld-do { display: flex; gap: 16px; align-items: center; margin: 14px 0 0; padding: 14px 18px; border-radius: var(--r); border: 1px solid rgba(34, 227, 160, 0.26);
  background: linear-gradient(90deg, rgba(34, 227, 160, 0.08), transparent 60%), var(--pn); }
.ld-do .sprite { flex: none; }
.ld-do p { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.55; }
.ld-do .ld-do-k { font-family: var(--px); font-size: 1.1rem; letter-spacing: 0.03em; color: var(--c-good); margin-bottom: 2px; }

/* ---------- the chapter dashboard: figure panel + joined fact tiles ---------- */
.ld-dash { border: 1px solid var(--ln-2); border-radius: 14px; background: var(--pn); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.cf { margin: 0; min-width: 0; }
.cf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; padding: 20px clamp(16px, 2.2vw, 26px) 16px; border-bottom: 1px solid var(--ln); }
.cf-hl { min-width: 0; flex: 1 1 520px; }
.cf-kick { margin: 0 0 6px; font-family: var(--px); font-size: 1rem; letter-spacing: 0.05em; color: var(--ink-4); }
.cf-title { margin: 0; max-width: 40ch; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.cf-sub { margin: 8px 0 0; max-width: 80ch; font-size: 0.9rem; line-height: 1.55; color: var(--ink-3); }
.cf-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; max-width: 520px; justify-content: flex-end; }
.cf-legend li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--ln); font-size: 0.8rem; line-height: 1.2; color: var(--ink-2); }
.lg { flex: none; display: inline-block; }
.lg-sw { width: 10px; height: 10px; border-radius: 2px; }
.lg-line { width: 20px; border-top: 2px dashed var(--c-gold); }
.lg-band { width: 18px; height: 11px; border-radius: 3px; background: rgba(34, 227, 160, 0.16); border: 1px solid rgba(34, 227, 160, 0.5); }
.lg-cap { width: 18px; height: 6px; border-radius: 3px; }
.lg-cap.t-ice { background: rgba(66, 198, 255, 0.8); } .lg-cap.t-bad { background: rgba(255, 92, 114, 0.6); }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px rgba(255, 255, 255, 0.35); }
.lg-dia { width: 9px; height: 9px; background: #fff; transform: rotate(45deg); border-radius: 1px; margin: 0 2px; }
.lg-ghost { width: 11px; height: 11px; border-radius: 2px 2px 0 0; border: 1.5px dashed var(--c-bad); background: rgba(255, 92, 114, 0.12); }
.lg-loss { width: 18px; height: 11px; border-radius: 2px; background: linear-gradient(180deg, rgba(255, 92, 114, 0.05), rgba(255, 92, 114, 0.5)); }
.lg-mid { width: 2px; height: 14px; background: var(--c-gold); margin: 0 4px; }
.cf-main { display: grid; grid-template-columns: minmax(0, 1fr); }
.cf-body { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(14px, 2vw, 22px) clamp(12px, 2vw, 24px) clamp(10px, 1.4vw, 16px); }
/* watermark, as on a terminal chart */
.cf-body::after { content: "CritField"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--px); font-size: clamp(3rem, 7vw, 5.6rem); letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.028); pointer-events: none; white-space: nowrap; z-index: 0; }
.cf-body > * { position: relative; z-index: 1; }
.cf-side { min-width: 0; padding: 14px clamp(12px, 2vw, 22px) 18px; border-top: 1px solid var(--ln); background: var(--bg-2); }
.cf-tbl { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.cf-tbl th { padding: 4px 0 9px 12px; text-align: right; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); border-bottom: 1px solid var(--ln); white-space: nowrap; }
.cf-tbl th:first-child { text-align: left; }
.cf-tbl td { padding: 9px 0; border-bottom: 1px solid var(--ln); vertical-align: middle; }
.cf-tbl tr:last-child td { border-bottom: 0; }
.cf-tbl td.k { padding-right: 10px; }
.cf-tbl .kk { display: flex; align-items: center; gap: 9px; }
.cf-tbl .kk > span { display: flex; flex-direction: column; min-width: 0; }
.cf-tbl td.k b { font-weight: 500; color: var(--ink); line-height: 1.3; }
.cf-tbl td.k em { font-style: normal; font-size: 0.76rem; color: var(--ink-4); }
.cf-tbl .sw { flex: none; width: 9px; height: 9px; border-radius: 2px; }
.cf-tbl td.v { padding-left: 12px; text-align: right; white-space: nowrap; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cf-tbl td.v1 { color: var(--ink); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; }
.cf-tbl .cp-chip { margin-left: 6px; vertical-align: 1px; }
@media (min-width: 1180px) {
  .cf-main.has-side { grid-template-columns: minmax(0, 1fr) 300px; }
  .cf-main.has-side .cf-side { border-top: 0; border-left: 1px solid var(--ln); padding-top: 22px; }
}
.cf-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 0; padding: 11px clamp(16px, 2.2vw, 26px); border-top: 1px solid var(--ln); font-size: 0.8rem; line-height: 1.5; color: var(--ink-4); }
.cf-mark { font-family: var(--px); font-weight: 400; font-size: 0.98rem; letter-spacing: 0.05em; color: var(--ink-4); white-space: nowrap; }
.cvw, .cvn { display: flex; flex-direction: column; min-width: 0; }
.cvn { display: none; }

/* the plot: SVG marks + HTML text (ledger_charts.py) */
.cv { position: relative; width: 100%; aspect-ratio: var(--ar); }
.cv svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cp-g { stroke: rgba(160, 175, 195, 0.13); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.cp-ax { stroke: rgba(160, 175, 195, 0.38); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cp-ref { stroke: var(--c-gold); stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.cp-bar { stroke: none; }
.cp-cap { stroke-width: 2; vector-effect: non-scaling-stroke; }
.cp-ci { fill: rgba(6, 7, 8, 0.38); stroke: rgba(255, 255, 255, 0.42); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cp-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cp-rib, .cp-area, .cp-loss { stroke: none; }
.cp-ghost { fill: rgba(255, 92, 114, 0.08); stroke: var(--c-bad); stroke-width: 1.3; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.cp-lead { stroke: rgba(200, 207, 215, 0.45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cp-brk { fill: none; stroke: rgba(160, 175, 195, 0.4); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.cp-t { position: absolute; white-space: nowrap; pointer-events: none; }
.cp-t.a-a { transform: translate(-50%, -100%); } .cp-t.a-b { transform: translate(-50%, 0); } .cp-t.a-c { transform: translate(-50%, -50%); }
.cp-t.a-r { transform: translate(-100%, -50%); } .cp-t.a-l { transform: translate(0, -50%); }
.cp-t.a-ar { transform: translate(-100%, -50%); text-align: right; } .cp-t.a-al { transform: translate(0, -100%); }
.cp-yt { font-size: 0.76rem; font-weight: 500; line-height: 1; color: var(--ink-4); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
/* reference tag on the axis: Koyfin's value flag */
.cp-tag { display: inline-block; padding: 3px 7px 2px; border-radius: 4px; background: var(--c-gold); font-size: 0.75rem; font-weight: 700; line-height: 1.2; color: #17120a; font-variant-numeric: tabular-nums; }
.cp-etag { display: inline-block; padding: 3px 7px 2px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.cp-etag.t-bad { background: var(--c-bad); } .cp-etag.t-ice { background: var(--c-ice); color: #03131c; }
.cp-refnote { font-size: 0.76rem; font-weight: 500; color: var(--c-gold); text-shadow: 0 0 6px var(--pn), 0 0 6px var(--pn); }
.cp-grp { font-family: var(--px); font-size: 1.02rem; letter-spacing: 0.05em; color: var(--ink-3); }
.cp-panel { font-family: var(--px); font-size: 1rem; letter-spacing: 0.05em; color: var(--ink-4); }
.cp-vv { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
.cp-vv b { font-weight: 600; font-size: 1.18rem; letter-spacing: 0.02em; color: var(--ink); font-variant-numeric: tabular-nums; text-shadow: 0 0 6px var(--pn), 0 0 6px var(--pn), 0 0 10px var(--pn); }
.cp-chip { font-style: normal; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; padding: 2px 6px 1px; border-radius: 4px; color: var(--ink-2); background: rgba(160, 175, 195, 0.14); font-variant-numeric: tabular-nums; }
.cp-chip.up { color: #8ef3c9; background: rgba(34, 227, 160, 0.14); }
.cp-chip.dn { color: #ff9eab; background: rgba(255, 92, 114, 0.14); }
.cp-in { white-space: nowrap; }
.cp-in .cp-vv b { text-shadow: none; }
.cp-in.is-dark .cp-vv b { color: #06080a; } .cp-in.is-light .cp-vv b { color: #fff; }
.cp-in.is-dark .cp-chip { background: rgba(6, 8, 10, 0.2); color: #06080a; }
.cp-in.is-light .cp-chip { background: rgba(255, 255, 255, 0.22); color: #fff; }
.cp-bname { font-size: 0.84rem; font-weight: 500; color: var(--ink-2); }
.cp-note { padding: 5px 9px; border-radius: 6px; background: rgba(12, 15, 18, 0.94); border: 1px solid var(--ln-3); font-size: 0.8rem; font-weight: 500; line-height: 1.25; color: var(--ink); white-space: nowrap; }
.cp-note.n-gold { border-color: rgba(246, 196, 83, 0.55); } .cp-note.n-bad { border-color: rgba(255, 92, 114, 0.6); } .cp-note.n-dim { border-color: var(--ln-3); }
.cp-inarea { font-size: 0.78rem; font-style: italic; color: #ffb3bd; text-shadow: 0 0 6px var(--pn), 0 0 6px var(--pn); }
.cp-lend { position: absolute; width: 6px; height: 6px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink-2); pointer-events: none; }
.cp-x { white-space: normal; text-align: center; line-height: 1.25; }
.cp-x b { display: block; font-size: 0.84rem; font-weight: 500; color: var(--ink-2); overflow-wrap: break-word; hyphens: auto; }
.cp-x em { display: block; margin-top: 3px; font-style: normal; font-size: 0.75rem; color: var(--ink-4); }
.cp-s { display: none; }
.cp-dot { position: absolute; width: 11px; height: 11px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--pn); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.cp-dot.is-hi { width: 15px; height: 15px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 0 22px rgba(246, 196, 83, 0.6); }
.cp-hit { position: absolute; display: block; outline: none; border-radius: 4px; }
.cp-hit:hover { background: rgba(255, 255, 255, 0.035); }
.cp-hit:focus-visible { outline: 2px solid var(--ice-bright); outline-offset: 1px; }
.cp-hit::after { content: attr(data-tip); display: none; position: absolute; top: 6px; left: 50%; transform: translate(-50%, -4px); opacity: 0; pointer-events: none; width: max-content; max-width: 250px;
  padding: 8px 11px; border-radius: 8px; background: #0f1317; border: 1px solid var(--ln-3); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6); font-size: 0.82rem; font-weight: 500; line-height: 1.4; color: var(--ink);
  white-space: normal; z-index: 20; transition: opacity 0.15s, transform 0.15s; }
.cp-hit:hover::after, .cp-hit:focus-visible::after { display: block; opacity: 1; transform: translate(-50%, 0); }
.cp-hit.e-l::after { left: 0; transform: translate(0, -4px); } .cp-hit.e-l:hover::after, .cp-hit.e-l:focus-visible::after { display: block; transform: none; }
.cp-hit.e-r::after { left: auto; right: 0; transform: translate(0, -4px); } .cp-hit.e-r:hover::after, .cp-hit.e-r:focus-visible::after { display: block; transform: none; }
.ch-stack { display: flex; flex-direction: column; gap: 14px; }
.ch-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ch-panel { display: flex; flex-direction: column; min-width: 0; padding: 12px 10px 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--ln); }
.ch-ptitle { margin: 0 0 4px; text-align: center; font-family: var(--px); font-size: 1.1rem; letter-spacing: 0.05em; color: var(--ink-3); }

/* row charts: leaderboard bars */
.rc { display: flex; flex-direction: column; min-width: 0; }
.rc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rc-rows li { display: grid; grid-template-columns: minmax(130px, 24%) minmax(0, 1fr) minmax(96px, 16%); align-items: center; gap: clamp(10px, 1.6vw, 22px); min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--ln); }
.rc-rows li:last-child { border-bottom: 0; }
.rc-rows li.rc-grp { display: block; min-height: 0; margin-top: 10px; padding: 6px 0 4px; border-bottom: 1px solid var(--ln); }
.rc-grp b { font-family: var(--px); font-weight: 400; font-size: 1.08rem; letter-spacing: 0.05em; color: var(--ink-3); }
.rc-l { display: flex; flex-direction: column; min-width: 0; }
.rc-l b { font-weight: 500; font-size: 0.95rem; line-height: 1.3; color: var(--ink); }
.rc-l em { font-style: normal; font-size: 0.78rem; color: var(--ink-4); }
.rc-t { position: relative; display: block; height: 22px; }
.rc-t.rc-tall { height: 48px; }
.rc-big .rc-t { height: 64px; }
.rc-gl { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(160, 175, 195, 0.12); }
.rc-zero { position: absolute; top: -6px; bottom: -6px; width: 1px; background: rgba(160, 175, 195, 0.45); }
.rc-mid { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 1.5px dashed var(--c-gold); }
.rc-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 0 3px 3px 0; transform-origin: 0 50%; opacity: 0.92; }
.rc-bar.t-gold { box-shadow: 0 0 18px rgba(246, 196, 83, 0.25); }
.rc-dia { position: absolute; top: 50%; width: 11px; height: 11px; transform: translate(-50%, -50%) rotate(45deg); background: #fff; border-radius: 1px; box-shadow: 0 0 0 2px var(--pn); }
.rc-v { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.rc-v b { font-weight: 600; font-size: 1.15rem; line-height: 1; color: var(--ink); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.rc-tier { font-style: normal; padding: 2px 7px 1px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.ld-page .rc-tier.t-gold { color: var(--c-gold-2); background: rgba(246, 196, 83, 0.13); }
.ld-page .rc-tier.t-ice { color: #9ee0ff; background: rgba(66, 198, 255, 0.13); }
.ld-page .rc-tier.t-bad { color: #ff9eab; background: rgba(255, 92, 114, 0.13); }
.ld-page .rc-tier.t-dim { color: var(--ink-3); background: rgba(107, 118, 132, 0.2); }
.rc-axis { display: grid; grid-template-columns: minmax(130px, 24%) minmax(0, 1fr) minmax(96px, 16%); gap: clamp(10px, 1.6vw, 22px); margin-top: 8px; }
.rc-ticks { position: relative; display: block; height: 20px; }
.rc-ticks i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 0.76rem; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.rc-band { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: rgba(34, 227, 160, 0.08); border: 1px solid rgba(34, 227, 160, 0.32); }
.rc-ci { position: absolute; z-index: 1; top: calc(50% + 6px); height: 5px; transform: translateY(-50%); border-radius: 3px; opacity: 0.85; }
.rc-pt { position: absolute; z-index: 3; top: calc(50% + 6px); width: 13px; height: 13px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--pn); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
.rc-pv { position: absolute; z-index: 3; top: 2px; transform: translateX(-50%); }
.rc-pv b { font-weight: 600; font-size: 0.98rem; line-height: 1; color: var(--ink); text-shadow: 0 0 6px var(--pn), 0 0 8px var(--pn); font-variant-numeric: tabular-nums; }
.rc-ends { position: absolute; z-index: 2; top: calc(50% + 14px); display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-4); pointer-events: none; }
.rc-ends i { font-style: normal; transform: translateY(2px); }
.rc-head { display: grid; grid-template-columns: minmax(130px, 24%) minmax(0, 1fr) minmax(96px, 16%); gap: clamp(10px, 1.6vw, 22px); margin-bottom: 8px; }
.rc-hh { position: relative; display: block; height: 22px; }
.rc-bandlab { position: absolute; top: 0; transform: translateX(-50%); padding: 2px 9px; border-radius: 5px; font-size: 0.76rem; font-weight: 500; white-space: nowrap; color: #8ef3c9; background: rgba(34, 227, 160, 0.1); border: 1px solid rgba(34, 227, 160, 0.32); }
.rc-unit { margin: 12px 0 0; font-size: 0.78rem; color: var(--ink-4); }
.rc-link { position: absolute; top: calc(50% - 2px); height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c-dim), var(--c-bad)); }
.rc-pl { position: absolute; top: -2px; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; line-height: 1.1; white-space: nowrap; }
.rc-pl b { font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rc-pl em { font-style: normal; font-size: 0.75rem; color: var(--ink-4); }
.rc-pl2 b { color: #ff9eab; }
.rc-big .rc-pt { top: 50%; }
.rc-big .rc-pl { top: 50%; transform: translate(-50%, calc(-100% - 10px)); }
.rc-big .rc-t { margin-top: 14px; }

/* growth when the figure scrolls into view (only with scripting) */
.js .cp-bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.07s); }
.js .cp-cap { opacity: 0; transition: opacity 0.4s ease; transition-delay: calc(0.6s + var(--i, 0) * 0.07s); }
.js .cp-bar.down { transform-origin: 50% 0; }
.js .cp-line { transform-box: view-box; transform-origin: 0 0; transform: scaleX(0.02); transition: transform 1.3s var(--ease-out); }
.js .cp-ci, .js .cp-rib, .js .cp-area, .js .cp-loss, .js .cp-ghost, .js .cp-lead { opacity: 0; transition: opacity 0.6s ease 0.6s; }
.js .cp-t, .js .cp-dot, .js .cp-lend, .js .rc-pt, .js .rc-ci, .js .rc-pl, .js .rc-pv, .js .rc-v, .js .rc-dia, .js .rc-ends { opacity: 0; transition: opacity 0.5s ease 0.55s; }
.js .cp-yt, .js .cp-x { opacity: 1; }
.js .rc-bar { transform: scaleX(0); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.07s); }
.js .cf.is-in .cp-bar, .js .cf.is-in .rc-bar { transform: none; }
.js .cf.is-in .cp-cap { opacity: 1; }
.js .cf.is-in .cp-line { transform: none; }
.js .cf.is-in .cp-ci, .js .cf.is-in .cp-rib, .js .cf.is-in .cp-area, .js .cf.is-in .cp-loss, .js .cf.is-in .cp-ghost, .js .cf.is-in .cp-lead,
.js .cf.is-in .cp-t, .js .cf.is-in .cp-dot, .js .cf.is-in .cp-lend, .js .cf.is-in .rc-pt, .js .cf.is-in .rc-ci, .js .cf.is-in .rc-pl, .js .cf.is-in .rc-pv, .js .cf.is-in .rc-v, .js .cf.is-in .rc-dia, .js .cf.is-in .rc-ends { opacity: 1; }
.js .rc-pt { transform: translate(-50%, -50%); }

/* fact tiles, joined under the figure (Token Terminal's KPI row) */
.ld-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ln); border-top: 1px solid var(--ln); }
.fc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 16px; background: var(--pn); }
.fc-k { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--px); font-size: 1.02rem; letter-spacing: 0.05em; color: var(--ink-3); text-transform: uppercase; }
.fc-k::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--tone, var(--c-gold)); }
.fc-fig { margin: 8px 0 0; font-weight: 600; font-size: clamp(1.9rem, 2.5vw, 2.45rem); line-height: 1.02; letter-spacing: 0.01em; color: var(--tone, var(--c-gold)); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.fc-fig.is-long { font-size: clamp(1.5rem, 1.9vw, 1.9rem); }
.fc.tone-dim .fc-fig { color: var(--ink-2); }
.fc-h { margin: 12px 0 0; font-family: var(--f-head); font-weight: 700; font-size: 1.04rem; line-height: 1.32; letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
.fc-b { margin: 8px 0 0; font-size: 0.9rem; line-height: 1.58; color: var(--ink-2); }
.fc-viz { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 0 0; }
.fc-ev { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ln); }
.fc-ev li { padding: 2px 8px; border-radius: 5px; background: var(--pn-3); font-size: 0.76rem; line-height: 1.4; color: var(--ink-3); }
.fc-ev li.is-ok { color: #9ee0ff; background: rgba(66, 198, 255, 0.1); }
/* mini charts: segmented "health bars" */
.fv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fv-bars li { display: grid; grid-template-columns: minmax(70px, 38%) minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.fv-l { font-size: 0.78rem; line-height: 1.2; color: var(--ink-3); }
.fv-t { position: relative; display: block; height: 10px; }
.fv-t::before { content: ""; position: absolute; inset: 0; background: var(--ln-2); -webkit-mask: var(--seg); mask: var(--seg); }
.fv-t > i { position: relative; display: block; height: 100%; -webkit-mask: var(--seg); mask: var(--seg); }
.fv-n { font-weight: 600; font-size: 0.92rem; color: var(--ink); white-space: nowrap; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.fv-prop { display: flex; flex-direction: column; gap: 8px; }
.fv-prop .fv-t { height: 14px; }
.fv-pl { font-size: 0.8rem; color: var(--ink-2); font-weight: 500; }
.fv-band li { grid-template-columns: minmax(70px, 38%) minmax(0, 1fr) auto; }
.fv-tb { height: 16px; }
.fv-tb::before { display: none; }
.fv-tb { background: linear-gradient(var(--ln-2), var(--ln-2)) 0 50% / 100% 1px no-repeat; }
.fv-zone { position: absolute; top: 0; bottom: 0; height: 100%; border-radius: 3px; background: rgba(34, 227, 160, 0.12); border: 1px solid rgba(34, 227, 160, 0.38); -webkit-mask: none !important; mask: none !important; }
.fv-ci { position: absolute; top: 50%; height: 4px !important; transform: translateY(-50%); border-radius: 2px; -webkit-mask: none !important; mask: none !important; }
.fv-dot { position: absolute; top: 50%; width: 11px; height: 11px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--pn); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
.fv-axis { display: grid; grid-template-columns: minmax(70px, 38%) minmax(0, 1fr) auto; gap: 10px; margin-top: 6px; }
.fv-ticks { position: relative; display: block; height: 16px; }
.fv-ticks i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 0.75rem; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.fv-axis > span:last-child { min-width: 38px; }
.fv-one li { grid-template-columns: minmax(0, 1fr) auto; } .fv-one .fv-l { display: none; }
.fv-axis.fv-one { grid-template-columns: minmax(0, 1fr) 56px; } .fv-axis.fv-one > span:first-child { display: none; }
.fv-one .fv-tb { height: 22px; } .fv-one .fv-dot { width: 15px; height: 15px; } .fv-one .fv-ci { height: 6px !important; }
/* the calendar heatmap (Koyfin tiles) */
.fv-strip.fv-heat { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; }
.fv-heat li { display: grid; place-items: center; aspect-ratio: 1.25; border-radius: 3px; }
.fv-heat li b { font-family: var(--px); font-weight: 400; font-size: 0.98rem; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.fv-heat li.is-mark { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75); }
.fv-heat-k { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 0.75rem; color: var(--ink-4); }
.fv-heat-k span { display: inline-flex; align-items: center; gap: 6px; }
.fv-heat-k i { width: 8px; height: 8px; border-radius: 2px; }
.fv-heat-k .k-good { background: var(--c-good); } .fv-heat-k .k-bad { background: var(--c-bad); }

/* ---------- drawer + tabs ---------- */
.ld-drawer { margin-top: 14px; border: 1px solid var(--ln); border-radius: var(--r); background: var(--pn); overflow: hidden; }
.ld-drawer-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; text-align: left; color: var(--ink); background: transparent; border: 0; cursor: pointer; font: inherit; transition: background 0.18s; }
.ld-drawer-btn:hover { background: var(--pn-2); }
.ld-drawer-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ld-drawer-t b { font-family: var(--px); font-weight: 400; font-size: 1.2rem; letter-spacing: 0.03em; color: var(--c-gold); }
.ld-drawer-t em { font-style: normal; font-size: 0.9rem; line-height: 1.45; color: var(--ink-3); }
.ld-pulse { flex: none; width: 8px; height: 8px; background: var(--c-gold); animation: ld-pulse 1.6s steps(2) infinite; }
.ld-drawer.is-open .ld-pulse { animation: none; background: var(--c-good); }
@keyframes ld-pulse { 50% { transform: scale(1.5); opacity: 0.4; } }
.ld-chev { flex: none; width: 9px; height: 9px; border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.25s var(--ease); margin-right: 4px; }
.ld-drawer.is-open .ld-chev { transform: rotate(225deg); }
.ld-panel { padding: 4px 18px 20px; border-top: 1px solid var(--ln); animation: ld-open 0.3s var(--ease-out); }
@keyframes ld-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* tabs: a segmented control */
.ld-tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; margin: 14px 0 18px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--ln); }
.ld-tabs button { font-family: var(--f-body); font-size: 0.88rem; font-weight: 500; color: var(--ink-3); background: transparent; border: 0; border-radius: 7px; padding: 6px 14px; cursor: pointer; transition: color 0.2s, background 0.2s; }
.ld-tabs button:hover { color: var(--ink); }
.ld-tabs button[aria-selected="true"] { color: var(--ink); background: var(--pn-3); box-shadow: inset 0 0 0 1px var(--ln-3); }
.ld-tabs button:focus-visible { outline: 2px solid var(--ice-bright); outline-offset: 1px; }
.ld-tp { animation: ld-open 0.25s var(--ease-out); color: var(--ink-2); font-size: 0.98rem; line-height: 1.68; }
.ld-tp[hidden] { display: none; }
.ld-tp h3, .ld-tp h4 { margin: 0 0 10px; font-family: var(--f-head); font-weight: 700; font-size: 1.18rem; color: var(--ink); }
.ld-tp p { margin: 0 0 12px; }
.ld-tp ul, .ld-tp ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 7px; }
.ld-tp code { font-family: var(--f-body); font-size: 0.9em; font-weight: 600; color: #9ee0ff; background: rgba(66, 198, 255, 0.08); padding: 1px 6px; border-radius: 4px; }
.ld-empty { margin: 0; padding: 14px 16px; border-radius: var(--r-sm); border: 1px dashed var(--ln-3); color: var(--ink-3); }
.ld-fine { margin: 12px 0 0; font-size: 0.82rem; line-height: 1.55; color: var(--ink-3); }
.ld-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 7px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

/* ---------- tables (terminal tables: quiet header, hairlines, figures right-aligned and tabular) ---------- */
.ld-tablewrap { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--ln); border-radius: var(--r); background: var(--pn); }
.ld-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; line-height: 1.55; }
.ld-table thead th { padding: 11px 16px; text-align: left; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-4); background: var(--bg-2); border-bottom: 1px solid var(--ln); white-space: nowrap; }
.ld-table td { padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--ln); color: var(--ink-2); line-height: 1.6; }
.ld-table tbody tr:last-child td { border-bottom: 0; }
.ld-table tbody tr:hover td { background: var(--pn-2); }
.ld-table td.t-key { min-width: 150px; font-weight: 500; color: var(--ink); }
.ld-table td.t-id { width: 84px; font-family: var(--px); font-size: 1.12rem; line-height: 1.3; white-space: nowrap; color: var(--c-gold); }
.ld-table td.t-verdict { min-width: 150px; }
.ld-table .t-note { display: block; margin-top: 4px; font-size: 0.8rem; line-height: 1.4; color: var(--ink-3); }
.ld-table td.t-num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.ld-vchip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 5px; font-size: 0.78rem; font-weight: 500; white-space: nowrap; background: var(--pn-3); }
.ld-v-c { color: #9ee0ff; background: rgba(66, 198, 255, 0.1); }
.ld-v-w { color: #ff9eab; background: rgba(255, 92, 114, 0.1); }
.ld-v-n { color: var(--ink-3); }
.ld-tests { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; }
.ld-test { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px minmax(130px, auto); gap: 6px 18px; align-items: start; padding: 13px 16px; border-top: 1px solid var(--ln); background: var(--pn); }
.ld-test:first-child { border-top: 0; }
.ld-test:hover { background: var(--pn-2); }
.ld-tests-2 .ld-test { grid-template-columns: 96px minmax(0, 1fr) 150px 268px; }
.ld-id { font-family: var(--px); font-size: 1.12rem; line-height: 1.2; color: var(--c-gold); white-space: nowrap; }
.ld-test-main { min-width: 0; }
.ld-test-main b { display: block; font-weight: 500; font-size: 0.96rem; line-height: 1.4; color: var(--ink); }
.ld-test-main p { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.ld-basis { font-size: 0.88rem; font-weight: 600; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; }
.ld-basis i { display: block; font-style: normal; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 2px; }
.ld-vs { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: flex-end; align-items: flex-start; }
.ld-vwrap { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ld-vwrap i { font-style: normal; font-size: 0.75rem; line-height: 1.2; color: var(--ink-4); }
.ld-vwrap em { font-style: normal; max-width: 22ch; font-size: 0.78rem; line-height: 1.35; color: var(--ink-3); }
.ld-chips { display: inline-flex; flex-wrap: wrap; gap: 3px; margin: 0 0 12px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--ln); }
.ld-chips button { font-family: var(--f-body); font-size: 0.86rem; font-weight: 500; color: var(--ink-3); background: transparent; border: 0; border-radius: 7px; padding: 5px 12px; cursor: pointer; }
.ld-chips button[aria-pressed="true"] { color: var(--ink); background: var(--pn-3); box-shadow: inset 0 0 0 1px var(--ln-3); }

/* ---------- how we know: method, null results, gaps, limits, glossary, specialists ---------- */
.ld-card-k { margin: 0 0 10px; font-family: var(--px); font-size: 1.1rem; letter-spacing: 0.04em; color: var(--c-gold); }
.ld-intro { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(14px, 1.8vw, 20px); align-items: stretch; }
.ld-what { display: flex; flex-direction: column; }
.ld-what-p { margin: 0; color: var(--ink); font-size: 1.06rem; line-height: 1.68; }
.ld-card-k2 { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ln); }
.ld-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ld-legend li { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.ld-scale-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1px; background: var(--ln); border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; }
.ld-scale-grid li { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 20px; background: var(--pn); }
.ld-scale-grid li.ld-big, .ld-scale-grid li:last-child:nth-child(even) { grid-column: 1 / -1; }
.ld-scale-grid b { font-weight: 600; font-size: clamp(1.6rem, 2.3vw, 2rem); line-height: 1.05; letter-spacing: 0.01em; color: var(--c-gold); font-variant-numeric: lining-nums tabular-nums; }
.ld-scale-grid li.ld-big b { font-size: clamp(2.4rem, 3.8vw, 3.3rem); }
.ld-scale-grid span { font-size: 0.9rem; line-height: 1.5; color: var(--ink-3); }
.ld-steps-k { margin: clamp(26px, 3vw, 36px) 0 12px; }
.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ln); border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; }
.ld-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--pn); color: var(--ink-2); font-size: 0.97rem; line-height: 1.62; }
.ld-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ld-step-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: rgba(246, 196, 83, 0.12); border: 1px solid rgba(246, 196, 83, 0.4); font-family: var(--px); font-size: 1.3rem; color: var(--c-gold); }
.ld-labels { margin-top: 18px; color: var(--ink-2); }
.ld-gap { margin-top: 12px; }
.ld-gap > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; cursor: pointer; padding: 13px 18px; border: 1px solid var(--ln); border-radius: var(--r); background: var(--pn);
  font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); transition: background 0.18s; }
.ld-gap > summary:hover { background: var(--pn-2); }
.ld-gap > summary::-webkit-details-marker { display: none; }
.ld-gap > summary::after { content: "+"; flex: none; font-family: var(--px); font-size: 1.5rem; line-height: 1; color: var(--c-gold); }
.ld-gap[open] > summary::after { content: "\2212"; }
.ld-gap[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ld-gap > .ld-tablewrap { margin-top: 0; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }

.ld-gap-block { margin-top: clamp(26px, 3vw, 36px); }
.ld-sub { margin: 0 0 14px; font-family: var(--f-head); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.01em; color: var(--ink); }
.ld-gcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ln); border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; }
.ld-gcards > .ld-gc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ld-gc { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; background: var(--pn); min-width: 0; }
.ld-gc-top { order: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ld-gc h4 { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--ink); }
.ld-gc-chip { flex: none; padding: 2px 8px; border-radius: 5px; font-size: 0.76rem; font-weight: 600; line-height: 1.4; white-space: nowrap; color: var(--ink-3); background: var(--pn-3); }
.ld-gc.is-pass .ld-gc-chip { color: #8ef3c9; background: rgba(34, 227, 160, 0.12); }
.ld-gc.is-short .ld-gc-chip { color: var(--c-gold-2); background: rgba(246, 196, 83, 0.12); }
.ld-gc.is-wide .ld-gc-chip { color: #9ee0ff; background: rgba(66, 198, 255, 0.12); }
.ld-gc-text { order: 1; margin: 0; font-size: 0.93rem; line-height: 1.58; color: var(--ink-2); }
.ld-gc .ld-meter, .ld-gc .ld-gc-num, .ld-gc .ld-gc-res { order: 2; }
.ld-gc .ld-meter, .ld-gc.is-wide .ld-gc-res { margin-top: auto; }
.ld-meter { display: block; padding-top: 18px; }
.ld-m-track { position: relative; display: block; height: 10px; }
.ld-m-track::before { content: ""; position: absolute; inset: 0; background: var(--ln-2); -webkit-mask: var(--seg); mask: var(--seg); }
.ld-m-now { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c-gold); -webkit-mask: var(--seg); mask: var(--seg); }
.ld-m-now.is-pass { background: var(--c-good); }
.ld-m-before { position: absolute; left: 0; top: -3px; bottom: -3px; z-index: 2; border-right: 2px solid var(--ink-3); }
.ld-m-bar { position: absolute; top: -6px; bottom: -6px; z-index: 3; width: 2px; margin-left: -1px; background: var(--ink); }
.ld-m-bar u { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 600; text-decoration: none; color: var(--ink-3); }
.ld-gc-num { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; }
.ld-gc-num span { display: flex; flex-direction: column; gap: 1px; }
.ld-gc-num i { font-style: normal; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); }
.ld-gc-num .ld-gc-rest { align-self: flex-end; max-width: 34ch; font-size: 0.86rem; line-height: 1.4; color: var(--ink-3); }
.ld-gc-num b { font-weight: 600; font-size: 1.45rem; line-height: 1.15; letter-spacing: 0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ld-gc-res { margin: 0; font-weight: 600; font-size: 1.4rem; line-height: 1.2; letter-spacing: 0.01em; color: var(--c-gold); font-variant-numeric: tabular-nums; }
.ld-gap-note { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--ln); border-radius: var(--r-sm); background: var(--bg-2); font-size: 0.9rem; color: var(--ink-3); }
.ld-gap-note p { margin: 0; }

.ld-spec-box { padding: clamp(14px, 2vw, 22px); background: var(--pn); border: 1px solid var(--ln); border-radius: var(--r); }
.ld-spec-box .ld-tabs { margin-top: 0; }
.ld-spec .px-lead p { margin: 0 0 8px; }
.ld-term { max-width: 760px; }
.ld-term h4 { font-size: 1.3rem; }
.ld-term p { font-size: 1.08rem; line-height: 1.65; color: var(--ink); }

.ld-lim { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; align-items: stretch; background: var(--ln); border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; }
.ld-lim-col { padding: 20px 22px 22px; background: var(--pn); min-width: 0; }
.ld-lim-col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--px); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.04em; color: var(--c-gold); }
.ld-lim-col h3 img { image-rendering: pixelated; }
.ld-lim-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ld-lim-col li { padding-left: 14px; border-left: 2px solid var(--ln-3); }
.ld-lim-col li h4 { margin: 0 0 4px; font-family: var(--f-head); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.ld-lim-col li p { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--ink-2); }
.ld-terms-sec .px-cta { margin-top: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ld-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-board-head, .ld-find { grid-template-columns: 36px minmax(170px, 0.32fr) minmax(0, 1fr) 84px; }
  .ld-board-head span:nth-child(4), .ld-find-ev { display: none; }
}
@media (max-width: 1040px) {
  .ld-hero-in { grid-template-columns: minmax(0, 1fr); }
  .ld-hero-art { max-width: 680px; }
  .ld-intro, .ld-lim { grid-template-columns: minmax(0, 1fr); }
  .ld-playgrid { grid-template-columns: minmax(0, 1fr); }
  .ld-calc { position: static; }
  .ld-press-box { grid-template-columns: minmax(0, 1fr); }
  .ld-test, .ld-tests-2 .ld-test { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .ld-test .ld-basis { grid-column: 2; grid-row: 2; }
  .ld-test .ld-vs { grid-column: 3; grid-row: 1; }
  .ld-myth-head { display: none; }
  .ld-myth { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .ld-myth-v { grid-column: 1; grid-row: 1; }
  .ld-myth-go { grid-column: 2; grid-row: 1; }
  .ld-myth-b, .ld-myth-r { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .ld-kpis { grid-template-columns: minmax(0, 1fr); }
  .ld-kpi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: end; }
  .ld-kpi > .ld-kpi-k, .ld-kpi > .ld-kpi-n, .ld-kpi > .ld-kpi-l { grid-column: 1; }
  .ld-kpi > div, .ld-kpi > ul { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding-top: 0; }
  .ld-gcards { grid-template-columns: minmax(0, 1fr); }
  .ld-gcards > .ld-gc:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 900px) {
  .cvw { display: none; } .cvn { display: flex; }
  .cp-s { display: inline; } .cp-f { display: none; }
  .cvn .cp-s2, .cvn .cp-refnote, .cvn .cp-note, .cvn .cp-grp, .cvn .cp-etag { display: none; }
  .cvn .cp-vv b { font-size: 0.98rem; } .cvn .cp-chip { font-size: 0.75rem; padding: 1px 4px; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .cvn { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .ld-steps { grid-template-columns: minmax(0, 1fr); }
  .ld-board-head { display: none; }
  .ld-find { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; padding: 18px 16px; }
  .ld-find-rank { grid-column: 1; grid-row: 1; font-size: 1.2rem; }
  .ld-find-go { grid-column: 2; grid-row: 1; flex-direction: row; }
  .ld-find-n, .ld-find-t { grid-column: 1 / -1; }
  .ld-find-ev { display: flex; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .ld-tablewrap { border: 0; background: transparent; }
  .ld-table thead { display: none; }
  .ld-table, .ld-table tbody, .ld-table tr, .ld-table td { display: block; width: 100%; }
  .ld-table tr { margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--ln); border-radius: var(--r-sm); background: var(--pn); }
  .ld-table td { padding: 4px 0; border: 0; min-width: 0; }
  .ld-table tbody tr:hover td { background: none; }
  .ld-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-4); }
  .ld-table td.t-key::before, .ld-table td.t-id::before { display: none; }
  .ld-table td.t-id { width: auto; }
  .ld-table td.t-key { padding-bottom: 6px; font-size: 1rem; }
  .ch-panels { grid-template-columns: minmax(0, 1fr); }
  .cf-legend { justify-content: flex-start; }
  .rc-rows li, .rc-head, .rc-axis { grid-template-columns: minmax(0, 1fr) auto; }
  .rc-rows li .rc-t { grid-column: 1 / -1; grid-row: 2; }
  .rc-rows li .rc-v { grid-column: 2; grid-row: 1; align-items: flex-end; }
  .rc-rows li { row-gap: 6px; padding: 8px 0 12px; }
  .rc-axis > span:first-child, .rc-axis > span:last-child, .rc-head > span:first-child, .rc-head > span:last-child { display: none; }
  .rc-axis, .rc-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ld-page .px-sec, .ld-hero-in, .ld-kpiband, .ld-subnav-in { padding-left: 16px; padding-right: 16px; }
  .ld-facts { grid-template-columns: minmax(0, 1fr); }
  .ld-kpi { display: flex; align-items: stretch; }
  .ld-kpi > div, .ld-kpi > ul { padding-top: 14px; align-self: stretch; }
  .cf-head { padding: 16px 14px 14px; }
  .cf-body { padding: 12px 10px 10px; }
  .cf-title { font-size: 1.22rem; }
  .ld-beats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-subnav a { font-size: 1.15rem; padding: 5px 12px 4px; }
  .ld-do { flex-direction: column; align-items: flex-start; }
  .ld-drawer-btn { padding: 13px 14px; }
  .ld-panel { padding: 2px 12px 16px; }
  .ld-scale-grid { grid-template-columns: minmax(0, 1fr); }
  .ld-scale-grid li:last-child:nth-child(even) { grid-column: auto; }
  .ld-card { padding: 18px 16px; }
  .ld-test, .ld-tests-2 .ld-test { grid-template-columns: minmax(0, 1fr) auto; }
  .ld-test .ld-test-main, .ld-test .ld-basis { grid-column: 1 / -1; grid-row: auto; }
  .ld-test .ld-vs { grid-column: 2; grid-row: 1; }
  .ld-bchaps { grid-template-columns: minmax(0, 1fr); }
  .ld-proof { gap: 8px 16px; }
  .ld-calc-out li { grid-template-columns: minmax(0, 1fr) 60px 56px; }
  .ld-hero-art { padding: 8px; }
  .ld-artbar span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .cp-bar, .js .cp-cap, .js .cp-line, .js .cp-ci, .js .cp-rib, .js .cp-area, .js .cp-loss, .js .cp-ghost, .js .cp-lead, .js .cp-t, .js .cp-dot, .js .cp-lend,
  .js .rc-bar, .js .rc-pt, .js .rc-ci, .js .rc-pl, .js .rc-pv, .js .rc-v, .js .rc-dia, .js .rc-ends { transition: none; }
  .ld-pulse, .ld-walker, .ld-live { animation: none; }
  .ld-panel, .ld-tp { animation: none; }
}
