/* yourbitcoinbasics.com: the white "built to sell" design (v2). One typeface, near-black ink, Bitcoin orange used sparingly.
   Layout: a 1200px column; white bands alternate with a pale mist band; cards only where a thing is a separate object. */
:root {
  --ink: #0F161F;        /* text, dark buttons */
  --muted: #4A5361;      /* secondary text */
  --line: #E7E0D4;       /* rules and card borders, warm */
  --paper: #FFFFFF;      /* page */
  --mist: #F3EDE3;       /* alternate band, warm sand */
  --bg: #FBF8F3;         /* page: warm off-white, softer than pure white */
  --orange: #F7931A;     /* Bitcoin orange: buttons, the B, one word per headline */
  --orange-hi: #FFAA45;
  --link: #B35C00;       /* orange dark enough to read as text */
  --soft: #FFF4E6;       /* pale orange wash for notes */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --r: 14px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.band { padding-block: 72px; }
.band.tight { padding-block: 48px; }
.band.mist { background: var(--mist); }
.band.ink { background: var(--ink); color: var(--paper); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.lg { gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid > * { min-width: 0; }

/* type */
.disp { font-stretch: 78%; font-weight: 850; letter-spacing: -0.01em; line-height: 1.03; }
h1.disp { font-size: clamp(42px, 7vw, 76px); }
h2.disp { font-size: clamp(32px, 4.6vw, 48px); }
h3 { font-size: 21px; line-height: 1.3; font-weight: 800; }
.hi { color: var(--orange); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--link); }
.lede { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.5; }
.measure { max-width: 680px; }
.ph { background: var(--soft); border-bottom: 2px dashed var(--orange); padding: 0 4px; border-radius: 3px; font-style: normal; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; }
.btn-o { background: var(--orange); color: var(--ink); }
.btn-o:hover { background: var(--orange-hi); color: var(--ink); }
.btn-l { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.btn-l:hover { background: var(--ink); color: var(--paper); }
.btn-d { background: var(--ink); color: var(--paper); }
.btn-d:hover { background: #2A3442; color: var(--paper); }
.btn-g { background: var(--mist); color: var(--ink); }
.btn-g:hover { background: var(--line); color: var(--ink); }
.btn svg { flex: none; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--soft); color: var(--link); padding: 4px 10px; border-radius: 999px; }

/* header */
.topbar { background: var(--ink); color: var(--paper); font-size: 15px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; min-height: 44px; padding-block: 8px; text-align: center; }
.topbar a { color: var(--orange); font-weight: 700; text-decoration: none; }
.topbar .wrap { justify-content: space-between; }
.ticker { display: inline-flex; align-items: baseline; gap: 6px; color: var(--paper) !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-b { color: var(--orange); font-weight: 800; }
.tk-price { font-weight: 800; }
.tk-chg { font-size: 13px; color: #C9CED6; }
.tk-chg.up { color: #7ED7A2; } .tk-chg.down { color: #FFA19A; }
@media (max-width: 600px) { .topbar .wrap { justify-content: center; } .tb-msg { display: none; } }
.newslist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.newslist.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.news-item a { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); height: 100%; }
.news-item a:hover { border-color: var(--orange); }
.news-item .nt { font-weight: 700; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.news-item .nm { font-size: 14px; color: var(--muted); }
.news-item.example .nt { color: var(--muted); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 22px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--link); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.site-head .nav-sub { display: none; }
.nav-sub a { text-decoration: none; }
@media (max-width: 1279px) {
  .nav a:not(.btn) { display: none; }
  .site-head .nav-sub { display: flex; gap: 18px; overflow-x: auto; border-top: 1px solid var(--line); padding-block: 10px; white-space: nowrap; scrollbar-width: none; }
  .nav-sub a { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
  .nav-sub a[aria-current="page"] { color: var(--link); }
}

/* hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 64px 72px; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.coverwrap { position: relative; width: min(400px, 100%); max-width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.coverwrap::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: var(--orange); }
.coverwrap img { position: relative; width: 62%; border-radius: 4px; box-shadow: 0 30px 60px rgba(15,22,31,.35); transform: rotate(-4deg); }
.coverwrap .badge { position: absolute; right: 0; bottom: 8%; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.35; box-shadow: 0 10px 24px rgba(15,22,31,.25); }
.coverwrap .badge strong { color: var(--orange); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--mist); border: 1px dashed var(--orange); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); flex: none; }

.outcome { display: flex; gap: 14px; align-items: flex-start; padding-block: 16px; border-top: 2px solid var(--ink); font-size: 18px; line-height: 1.45; }
.outcome b { color: var(--link); font-weight: 800; font-variant-numeric: tabular-nums; }
.inside img { border-radius: 6px; border: 1px solid var(--line); background: var(--paper); }
.inside figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.inside figcaption { font-size: 15px; color: var(--muted); }
.parts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border-top: 1px solid var(--line); padding-top: 28px; }
.parts div { display: flex; flex-direction: column; gap: 4px; }
.parts .p { color: var(--link); font-weight: 800; }
.parts .t { font-weight: 700; }

.quote { margin: 0; font-size: 19px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--mist); border: 1px solid var(--line); color: var(--ink); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; }
a.chip:hover { border-color: var(--orange); color: var(--ink); }
.chip.ph { border-style: dashed; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.form label { font-weight: 700; font-size: 15px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row .input { flex: 1 1 220px; width: auto; }
.input { width: 100%; min-width: 0; min-height: 52px; border: 2px solid var(--line); border-radius: 12px; padding: 0 16px; font: inherit; font-size: 17px; background: var(--paper); color: var(--ink); }
.input:focus { border-color: var(--orange); outline: none; }
.note { background: var(--soft); border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }

/* footer */
.site-foot { background: var(--mist); border-top: 1px solid var(--line); font-size: 15px; }
.site-foot .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-block: 48px 120px; }
.site-foot .col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.site-foot strong { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--link); }
@media (min-width: 900px) { .site-foot .wrap { padding-block: 56px; } }

/* phone buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,22,31,.10);
  padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); display: flex; gap: 10px; }
.buybar .btn { flex: 1; min-height: 48px; font-size: 16px; padding: 0 12px; }
@media (min-width: 900px) { .buybar { display: none; } }

/* start page */
.steps a { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); }
.steps .n { font-size: 44px; color: var(--orange); width: 40px; flex: none; text-align: center; }
.qa { display: grid; grid-template-columns: 36px 1fr; gap: 6px 12px; align-items: start; }
.qa .n { font-weight: 800; color: var(--link); font-variant-numeric: tabular-nums; }
.qa .q { font-weight: 800; font-size: 19px; line-height: 1.3; }
.qa .a, .qa .c { grid-column: 2; }
.qa .a { color: var(--muted); font-size: 16px; line-height: 1.55; }
.qa .c { font-size: 15px; font-weight: 700; }
.grp { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.grp .disp { font-size: 28px; }
.answer60 { font-size: 22px; line-height: 1.55; background: var(--paper); border-left: 6px solid var(--orange); padding: 20px 24px; border-radius: 0 12px 12px 0; }
.answer60 p + p { margin-top: 12px; }
.word { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.word b { font-size: 19px; }

/* chapter pages */
.chapnav { border-bottom: 1px solid var(--line); background: var(--paper); }
.chapnav .wrap { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: thin; }
.chapnav span { font-size: 14px; color: var(--muted); margin-right: 6px; white-space: nowrap; }
.pill { min-width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--mist); flex: none; font-variant-numeric: tabular-nums; }
.pill:hover { background: var(--line); color: var(--ink); }
.pill[aria-current="page"] { background: var(--orange); color: var(--ink); }
.chap-head .wrap { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; padding-block: 48px; }
.chap-head .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.chap-head .side { flex: 1 1 300px; }
.epi { margin: 0; border-left: 4px solid var(--orange); padding-left: 18px; font-style: italic; font-size: 19px; line-height: 1.5; }
.epi cite { display: block; font-style: normal; font-size: 15px; color: var(--muted); margin-top: 6px; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-block: 24px 72px; }
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.toc a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.toc a:hover { background: var(--mist); color: var(--ink); }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .toc { position: static; flex-direction: row; flex-wrap: wrap; } .toc .eyebrow { width: 100%; } }
.sec { display: flex; flex-direction: column; gap: 18px; padding-block: 36px; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; padding-top: 12px; }
.sec > h2.disp { font-size: clamp(28px, 3.6vw, 38px); }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { padding-left: 4px; }
.check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check li { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.check li > span { flex: 1 1 260px; min-width: 0; }
.rate { display: inline-flex; gap: 6px; }
.rate button { font: inherit; font-size: 14px; font-weight: 700; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.rate button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper); }
details > summary { cursor: pointer; font-weight: 700; }
details[open] > summary { margin-bottom: 10px; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-size: 34px; font-variant-numeric: tabular-nums; }
.res { text-decoration: none; color: var(--ink); }
.res:hover { border-color: var(--orange); color: var(--ink); }
.res .src { font-size: 14px; color: var(--muted); }
.pairs { display: grid; gap: 12px; }
.pair { border-left: 4px solid var(--orange); padding: 4px 0 4px 16px; }
.pair b { display: block; }
.notes { margin: 0; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.notes li { overflow-wrap: anywhere; }
.reader { font-size: 19px; line-height: 1.7; max-width: 700px; display: flex; flex-direction: column; gap: 16px; }
.reader h3 { font-size: 26px; margin-top: 18px; }
.reader h4 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 12px; }
.reader figure { margin: 8px 0; }
.reader figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.reader .dlg { padding-left: 18px; border-left: 3px solid var(--line); }
.reader .decide { background: var(--soft); border-radius: 12px; padding: 14px 16px; font-size: 17px; }
.reader .term { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.reader sup { font-size: 12px; color: var(--muted); }
.tool { background: var(--mist); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tool .out { font-size: 34px; font-variant-numeric: tabular-nums; }
.prevnext { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); padding-block: 0 72px; }
.prevnext a { text-decoration: none; color: var(--ink); }
.prevnext a:hover { border-color: var(--orange); }

/* glossary */
.gl-tools { position: sticky; top: 73px; z-index: 5; background: var(--paper); padding-block: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--mist); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.entry { border-top: 1px solid var(--line); padding-block: 18px; display: grid; gap: 6px; }
.entry h3 { font-size: 22px; }
.entry .lbl { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin-right: 6px; }
.entry .say { font-style: italic; }
.letter-h { font-size: 40px; color: var(--orange); padding-top: 24px; }

/* buy, groups */
.price { font-size: 44px; }
.tick { display: flex; gap: 10px; font-size: 16px; line-height: 1.45; }
.tick::before { content: "✓"; color: var(--link); font-weight: 800; }
.badge-top { align-self: flex-start; background: var(--orange); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.copybox { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; background: var(--mist); border-radius: 10px; padding: 14px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.bignum { font-size: 52px; color: var(--orange); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-head, .buybar, .topbar, .chapnav, .toc, .site-foot { display: none; } body { font-size: 12pt; } }

/* ---------- header extras: search and larger text ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; }
.nav a.iconbtn { display: inline-flex; }
.iconbtn:hover { border-color: var(--orange); color: var(--ink); }
.tsize span:first-child { font-size: 13px; } .tsize span:nth-child(2) { font-size: 19px; }
.tsize[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav { gap: 18px; }
@media (max-width: 900px) { .nav { gap: 8px; } }
@media (max-width: 420px) { .brand span { font-size: 18px; } .nav .btn { padding: 0 12px; } .iconbtn { min-width: 40px; height: 40px; } }
html.big { zoom: 1.15; }
@supports not (zoom: 1) { html.big { font-size: 115%; } }

/* ---------- tools ---------- */
.lbl-strong { font-weight: 700; font-size: 16px; }
.input.area { min-height: 120px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
select.input { appearance: auto; padding-right: 10px; }
.chartbox { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; overflow-x: auto; }
.chartbox svg { display: block; width: 100%; min-width: 420px; height: auto; font-family: var(--font); }
.yrs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.yr, .dca-in label, .formgrid label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 15px; min-width: 0; }
.adopt-out { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }
.dca-in { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.dca-in label { flex: 1 1 180px; }
.dca-in .btn { flex: 0 0 auto; }
#dca:not(.ready) .dca-live { display: none; }
#dca.ready .dca-fallback { display: none; }
.dca-fallback { display: flex; flex-direction: column; gap: 8px; }
.worst { background: #FFF0EE; border-left: 5px solid #C2410C; border-radius: 0 12px 12px 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; color: var(--muted); }
.legend .k { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: -8px; }
.k-in { border-top: 2px dashed var(--ink); } .k-val { border-top: 3px solid var(--orange); } .k-worst { height: 12px !important; background: #FFE3E0; border-radius: 3px; }
.tablewrap { overflow-x: auto; max-height: 420px; overflow-y: auto; margin-top: 10px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { position: sticky; top: 0; background: var(--paper); }
.formgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.formgrid .wide { grid-column: 1 / -1; }
.contract, .cert, .fridge { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.6; }
.contract h3 { font-size: 30px; }
.contract ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.fill { font-weight: 700; color: var(--link); border-bottom: 1px solid var(--ink); padding: 0 2px; overflow-wrap: anywhere; }
.contract .back { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sig { margin-top: 6px; }
.prog { height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.prog span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.flags { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: f; }
.flags li { counter-increment: f; }
.flags label { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 16px; line-height: 1.45; }
.flags label::before { content: counter(f); font-weight: 800; color: var(--link); min-width: 18px; font-variant-numeric: tabular-nums; }
.flags input { width: 22px; height: 22px; flex: none; accent-color: #C2410C; margin-top: 1px; }
.flags li.auto label { border-color: #C2410C; background: #FFF0EE; }
.flags input:checked + span { font-weight: 700; }
.sc-result:empty { display: none; }
.sc-result { display: flex; flex-direction: column; gap: 12px; }
.sc-box { border-radius: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sc-box.warn { background: var(--soft); border-color: var(--orange); }
.sc-box.stop { background: #FFF0EE; border: 2px solid #C2410C; }
.sc-box strong { font-size: 20px; }
.sc-box ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.sc-next { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.sc-next ol { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.stopcard { border: 2px solid #C2410C; background: #FFF0EE; }
.stopcard strong { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9A3412; }
.fridge ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.objq { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 600; border-left: 5px solid var(--orange); padding: 4px 0 4px 18px; }
.objlist { list-style: none; margin: 0; padding: 0; }
.objlist .card { gap: 10px; }
.res.feat { border: 2px solid var(--orange); }
.res .go { margin-top: auto; font-weight: 800; color: var(--link); }
.res .go::after { content: " →"; }
.sessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sess { display: grid; grid-template-columns: 44px minmax(0, 1fr) 170px; gap: 12px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sess .sn { font-size: 34px; color: var(--orange); text-align: center; }
.sess .sb { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.45; }
.sess .sd { display: flex; flex-direction: column; gap: 2px; }
.sess .sd .input { min-height: 44px; padding: 0 10px; }
@media (max-width: 640px) { .sess { grid-template-columns: 36px minmax(0, 1fr); } .sess .sd { grid-column: 2; } }
.cert { text-align: center; align-items: center; border-width: 3px; padding: 36px 24px; gap: 10px; }
.cert img { width: 64px; }
.cert-h { font-size: 44px; }
.cert-name { font-size: clamp(30px, 6vw, 48px); color: var(--link); border-bottom: 2px solid var(--ink); padding: 0 12px 4px; overflow-wrap: anywhere; }
.cert-l { max-width: 520px; }
.cert-sig { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 14px; }

/* flashcards */
.fc { display: flex; flex-direction: column; gap: 14px; }
.fc-card { width: 100%; min-height: 220px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); color: var(--ink); cursor: pointer; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; font: inherit; }
.fc-card:hover { border-color: var(--orange); }
.fc-front { font-size: clamp(30px, 5vw, 44px); }
.fc-back { display: none; flex-direction: column; gap: 10px; max-width: 640px; font-size: 18px; line-height: 1.5; }
.fc-p { display: block; }
.fc-back .say { font-style: italic; color: var(--muted); }
.fc-card.flipped .fc-front { font-size: 22px; color: var(--link); }
.fc-card.flipped .fc-back { display: flex; }
.fc-card.flipped .fc-hint { display: none; }
.fc-ctl { justify-content: center; }
.fc-filter { display: flex; align-items: center; gap: 8px; }
.fc-filter select { min-height: 44px; width: auto; }

/* search */
.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.search-form .input { flex: 1 1 260px; width: auto; }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.results li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 800; font-size: 19px; text-decoration: none; }
.results a:hover { text-decoration: underline; }

/* print just one block (contract, plan, milestone page, fridge card) on the published site */
@media print {
  body.printing * { visibility: hidden !important; }
  body.printing .print-target, body.printing .print-target * { visibility: visible !important; }
  body.printing .print-target { position: absolute; left: 0; top: 0; width: 100%; border-color: #000; box-shadow: none; }
  body.printing .print-target .fill { color: #000; }
  body.printing .print-target.blank .fill { color: transparent !important; display: inline-block; min-width: 120px; border-bottom: 1px solid #000; }
  body.printing .buybar, body.printing .site-head, body.printing .topbar { display: none !important; }
}
.nav .btn { white-space: nowrap; }
@media (max-width: 600px) { .nav .btn { display: none; } }

/* ---------- second audit ---------- */
.buybar { transform: translateY(110%); transition: transform .25s ease; }
.buybar.show { transform: none; }
@media (max-width: 899px) { body.has-buybar { padding-bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { .buybar { transition: none; } }
.tick { display: block; position: relative; padding-left: 24px; }
.tick::before { position: absolute; left: 0; top: 0; }
.addr { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-card { max-width: 760px; margin: 0 auto; min-height: 260px; }
.fc { align-items: stretch; }
.res .go { font-size: 15px; }
@media (max-width: 900px) {
  .site-head .nav-sub { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
  .chap-head .wrap { padding-block: 28px 20px; gap: 18px; }
  .chap-head .side .card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; }
  .chap-head .side .card > span { display: none; }
  .chap-head .side .card strong:first-child { display: none; }
  .chap-head .side .card .row { gap: 8px; }
  .chap-head .side .card .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
}
.quizform { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.qq { border: 0; margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qq legend { font-weight: 700; font-size: 17px; line-height: 1.4; padding: 0; margin-bottom: 8px; }
.qq legend b { color: var(--link); margin-right: 4px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 16px; line-height: 1.45; }
.opt:hover { background: var(--mist); }
.opt input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--orange); }
.qq.ok .why { background: #EAF7EF; border-left: 4px solid #2E7D4F; }
.qq.no .why { background: #FFF0EE; border-left: 4px solid #C2410C; }
.why { margin: 4px 0 0; padding: 10px 12px; border-radius: 0 10px 10px 0; }
.why .verdict { font-weight: 800; }
.qscore { font-weight: 700; }
.wplist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wp { display: flex; flex-direction: column; gap: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.45; }
.clause summary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.clause p + p { margin-top: 6px; }
.audlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.aud label { display: flex; flex-direction: column; gap: 4px; }
.aud .area { min-height: 56px; }
.shots { display: grid; gap: 18px; }
.shot { display: flex; flex-direction: column; gap: 8px; }
.shot img { border: 1px solid var(--line); border-radius: 10px; width: 100%; height: auto; }
.shot figcaption { font-size: 15px; line-height: 1.5; color: var(--ink); }
.wptext { max-width: 720px; font-size: 18px; line-height: 1.7; display: flex; flex-direction: column; gap: 28px; padding-bottom: 72px; }
.wpsec { display: flex; flex-direction: column; gap: 14px; }
.wpsec h2.disp { font-size: clamp(26px, 3.4vw, 34px); padding-top: 12px; border-top: 1px solid var(--line); }
.wpsec ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.wpnote { background: var(--soft); border-radius: 12px; padding: 12px 16px; font-size: 16px; line-height: 1.5; }
.wpfig { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.wpfig svg { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.wpfig figcaption { font-size: 15px; color: var(--muted); line-height: 1.5; }
.math { background: var(--mist); border-radius: 12px; padding: 12px 16px; font-size: 17px; display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.wptbl caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
mark.wpmark { background: #FFE08A; color: var(--ink); padding: 0 2px; border-radius: 3px; }
.wptext pre { white-space: pre; overflow-x: auto; }
.wptext .grid.two > * { min-width: 0; }
.wptext { min-width: 0; }
.takeaways { background: var(--soft); border-left: 5px solid var(--orange); border-radius: 0 14px 14px 0; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.takeaways ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.5; }
.takeaways ol li::marker { font-weight: 800; color: var(--link); }
.quizform .takeaways { font-size: 15px; }
.quizform .takeaways ol { font-size: 15px; }
/* no author photo: the B mark and a line from class stand in */
.byline .mark { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.teacher-card { margin: 0; flex: 0 1 280px; min-width: 0; max-width: 100%; background: var(--soft); border-radius: 18px; padding: 32px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border-left: 6px solid var(--orange); }
.teacher-card img { width: 88px; height: 88px; }
.teacher-card blockquote { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 800; font-stretch: 85%; color: var(--ink); text-wrap: balance; }
.teacher-card figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .teacher-card { flex-basis: 100%; } }

/* ---------------------------------------------------------------- footer: made with love */
.site-foot .wrap:first-child { padding-bottom: 24px; }
.site-foot .wrap.made { display: flex; align-items: center; justify-content: center; gap: 8px; padding-block: 0 120px; font-weight: 700; color: var(--ink); }
.site-foot .made .heart { flex: none; }
@media (min-width: 900px) { .site-foot .wrap:first-child { padding-bottom: 24px; } .site-foot .wrap.made { padding-block: 0 56px; } }

/* ---------------------------------------------------------------- the Orange Pages */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.osecs { gap: 28px; min-width: 0; }
.osec { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; min-width: 0; scroll-margin-top: 96px; }
.osec h2.disp { font-size: clamp(28px, 3.6vw, 38px); }
.osub { font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }
.olist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.orow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ohead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.ohead a { font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--orange); }
.ohead a:hover { color: var(--link); }
.ohead a::after { content: " ↗"; font-size: 13px; color: var(--link); }
.otag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--mist); color: var(--muted); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.otag.lv-start { background: var(--orange); color: var(--ink); }
.otag.lv-next { background: var(--soft); color: var(--link); }
.otag.lv-deep { background: var(--ink); color: var(--paper); }
.otag.lv-kids { background: #E8F3EC; color: #1F6B3A; }
.books { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.bookcard { border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bookcard[hidden] { display: none; }
.bookcard h3 { font-size: 20px; line-height: 1.2; }
.bookcard cite { font-style: normal; }
.bsub { font-size: 14px; line-height: 1.35; color: var(--muted); font-style: italic; }
.bgo { margin-top: auto; padding-top: 6px; font-weight: 800; font-size: 15px; text-decoration: none; }
.bgo::after { content: " ↗"; }
.chip[aria-pressed] { cursor: pointer; font-family: inherit; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.otbl th, .otbl td { text-align: left; white-space: normal; }
.otbl td:last-child, .otbl th:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.nav a { white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1360px) { .nav { gap: 16px; } .nav a { font-size: 14.5px; } }
.bookcard .otag { align-self: flex-start; }
.bgo::after, .ohead a::after { content: "\00a0↗"; }
ol.xtop { counter-reset: x; }
ol.xtop > li { counter-increment: x; position: relative; padding-left: 34px; }
ol.xtop > li::before { content: counter(x); position: absolute; left: 0; top: 1px; font-weight: 800; color: var(--link); font-variant-numeric: tabular-nums; width: 26px; text-align: right; }
.ctable { max-height: 560px; }
.otbl td { vertical-align: top; }
.otbl .cwhen { white-space: nowrap; font-weight: 700; }
.otbl td a { font-weight: 700; }
.cnote { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); max-width: 46ch; }
.otbl tr[hidden] { display: none; }
.otag.st-confirmed { background: #E8F3EC; color: #1F6B3A; }
.otag.st-expected { background: var(--mist); color: var(--muted); }
.otag.st-tba { background: var(--mist); color: var(--muted); border: 1px dashed var(--line); }
.ohead .ph { font-weight: 800; }
@media (max-width: 640px) {
  .ctable { max-height: 640px; }
  .ctable table, .ctable tbody, .ctable tr, .ctable td { display: block; width: 100%; }
  .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ctable tr { padding: 10px 2px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  .ctable td { border: 0; padding: 0; text-align: left !important; white-space: normal !important; }
  .ctable td:nth-child(2), .ctable td:nth-child(3) { grid-column: 1 / -1; }
  .ctable td:nth-child(4) { grid-row: 1; grid-column: 2; }
  .ctable tr[hidden] { display: none; }
}

/* ---------------------------------------------------------------- Today's numbers, chapter pages */
.numbers { background: var(--ink); color: var(--paper); padding-block: 40px; }
.numbers .eyebrow { color: var(--orange); }
.numbers h2.disp { font-size: clamp(28px, 3.6vw, 40px); }
.numbers .muted { color: #C9CED6; }
.nums { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.num { background: #182230; border: 1px solid #2A3646; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.num .nl { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.num .nv { font-size: clamp(30px, 3.2vw, 40px); font-variant-numeric: tabular-nums; color: var(--paper); }
.num .small { color: #E4E7EB; }
.num .small.muted { color: #AEB5C0; }
.meter { position: relative; height: 16px; border-radius: 999px; background: #2A3646; overflow: hidden; margin-block: 8px 2px; }
.meter span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #B35C00, var(--orange)); border-radius: 999px; transition: width .8s ease; }
.meter b { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--paper); font-weight: 800; letter-spacing: .05em; }
.meter.alt span { background: linear-gradient(90deg, #4A5361, #C9CED6); }
.chain { display: flex; gap: 5px; align-items: center; margin-block: 8px 2px; }
.chain i { width: 18px; height: 18px; border-radius: 4px; background: #3A4656; position: relative; }
.chain i + i::before { content: ""; position: absolute; left: -5px; top: 8px; width: 5px; height: 2px; background: #3A4656; }
.chain i.new { background: var(--orange); animation: blk 2.4s ease-in-out infinite; }
@keyframes blk { 0%, 100% { box-shadow: 0 0 0 0 rgba(247,147,26,.6); } 50% { box-shadow: 0 0 0 7px rgba(247,147,26,0); } }
@media (prefers-reduced-motion: reduce) { .chain i.new { animation: none; } .meter span { transition: none; } }
.satsrow { display: flex; gap: 8px; margin-block: 8px 2px; }
.satsrow span { flex: 1; background: #2A3646; border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; min-width: 0; }
.satsrow b { color: var(--orange); font-size: 14px; }
.satsrow i { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--paper); font-size: 15px; }

/* ---------------------------------------------------------------- News page price ticker */
.pricebar { background: var(--ink); color: var(--paper); padding-block: 26px 10px; border-top: 1px solid #2A3646; }
.pb-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.pb-price { display: flex; flex-direction: column; gap: 0; flex: none; }
.pb-l { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.pb-v { font-size: clamp(36px, 5vw, 54px); font-variant-numeric: tabular-nums; line-height: 1.05; }
.pb-c { font-size: 15px; color: #C9CED6; }
.pb-c.up { color: #7ED7A2; } .pb-c.down { color: #FFA19A; }
.pb-tape { flex: 1 1 320px; min-width: 0; overflow: hidden; border-left: 1px solid #2A3646; padding-left: 20px; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.pb-track { display: flex; width: max-content; animation: tape 40s linear infinite; }
.pb-tape:hover .pb-track, .pb-tape:focus-within .pb-track { animation-play-state: paused; }
.pb-set { display: flex; gap: 32px; padding-right: 32px; }
.pb-i { white-space: nowrap; font-size: 17px; color: #E4E7EB; font-variant-numeric: tabular-nums; }
.pb-il { color: #AEB5C0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pb-i b { color: var(--paper); font-weight: 800; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pb-link { color: var(--orange); font-weight: 700; font-size: 15px; flex: none; }
.pb-link:hover { color: var(--paper); }
.pb-src { color: #8A93A0; font-size: 13px; padding-block: 6px 0; margin: 0 auto; }
.pb-src:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .pb-track { animation: none; flex-wrap: wrap; width: auto; } .pb-set[aria-hidden="true"] { display: none; } .pb-set { flex-wrap: wrap; gap: 8px 28px; } .pb-tape { mask-image: none; -webkit-mask-image: none; } }
@media (max-width: 700px) { .pb-tape { border-left: 0; padding-left: 0; flex-basis: 100%; } }
.ansbody { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; }
.objlist .ansbody { border-top: 1px solid var(--line); padding-top: 10px; }
details.ans { border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; }
details.ans > summary { color: var(--link); }
.evans { border: 2px solid var(--orange); }
.evans h3 { font-size: 19px; }

/* ---------------------------------------------------------------- home: the Mallers line */
.quoteband { background: var(--ink); color: var(--paper); }
.qb-wrap { padding-block: 56px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.qb-q { margin: 0; flex: 1 1 560px; min-width: 0; }
.qb-q p { font-size: clamp(32px, 5.2vw, 60px); line-height: 1.08; font-weight: 850; font-stretch: 80%; letter-spacing: -0.01em; text-wrap: balance; }
.qb-q footer { margin-top: 14px; font-size: 16px; color: #C9CED6; }

.qb-link { color: var(--orange); font-weight: 700; flex: 0 1 auto; min-width: 0; }
.qb-link:hover { color: var(--paper); }

/* ---------------------------------------------------------------- pictures: the book's own figures */
.chapfig { margin: 0 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 10px 28px rgba(15,22,31,.08); }
.chapfig img { width: 100%; height: auto; border-radius: 8px; }
.chapfig figcaption { font-size: 14px; color: var(--muted); padding: 8px 4px 0; }
.chapfig figcaption span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.mosaic { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mtile { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.mtile img { width: 100%; height: 190px; object-fit: contain; background: var(--paper); padding: 10px; }
.mtile .mcap { padding: 12px 16px 14px; border-top: 1px solid var(--line); font-size: 15px; background: var(--paper); }
.mtile .mcap b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.mtile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,22,31,.12); color: var(--ink); border-color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .mtile { transition: none; } .mtile:hover { transform: none; } }

/* ---------------------------------------------------------------- the supply chart */
.supply-wrap { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; }
@media (max-width: 900px) { .supply-wrap { grid-template-columns: minmax(0, 1fr); } }
.chartcard { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sc-box { position: relative; }
.supplychart { width: 100%; height: auto; display: block; font-family: var(--font); touch-action: pan-y; }
.sc-grid { stroke: #ECE5D9; stroke-width: 1; }
.sc-grid.sc-cap { stroke: var(--ink); stroke-dasharray: 4 4; }
.sc-ax { font-size: 12px; fill: var(--muted); }
.sc-halv { stroke: #D8CFC0; stroke-width: 1; }
.sc-area { fill: rgba(247,147,26,.16); }
.sc-line { fill: none; stroke: #B35C00; stroke-width: 2.5; stroke-linejoin: round; }
.sc-line.sc-fut { stroke-dasharray: 6 5; stroke-width: 2; }
.sc-dot { fill: var(--orange); stroke: var(--paper); stroke-width: 2; }
.sc-lab { font-size: 13px; font-weight: 700; fill: var(--ink); }
.sc-lab.sc-soft { font-weight: 600; fill: var(--muted); }
.sc-cross { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.sc-tip { position: absolute; top: 6px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.35; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; transform: translateX(-50%); }
.chartcard details summary { font-weight: 700; }
.chartcard .tbl { margin-top: 8px; }

/* ---------------------------------------------------------------- Orange Pages icons */
.ohd { display: flex; align-items: center; gap: 10px; }
.secico { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--link); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.toc a { display: flex; align-items: center; gap: 8px; }
.toc .oico { color: var(--link); flex: none; }
.sc-box.sc-compact { display: none; }
.sc-compact .sc-ax { font-size: 14px; }
.sc-compact .sc-lab { font-size: 15px; }
@media (max-width: 600px) { .sc-box.sc-wide { display: none; } .sc-box.sc-compact { display: block; } }
/* the cover badge sits under the cover, never on it */
.hero-art { flex-direction: column; align-items: center; gap: 14px; }
.hero-art > .badge { position: static; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 10px 18px; font-size: 14px; line-height: 1.35; text-align: center; max-width: 100%; box-shadow: 0 8px 20px rgba(15,22,31,.18); }
.hero-art > .badge strong { color: var(--orange); }

/* ---------------------------------------------------------------- tool icons */
.toolhd { display: flex; align-items: center; gap: 10px; }
.toolhd .tag { align-self: center; }
.toolico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--link); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.res.feat .toolico { background: var(--orange); color: var(--ink); }

/* ---------------------------------------------------------------- how Bitcoin works, four steps */
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: hs; }
.hsteps li { min-width: 0; display: flex; }
.hstep { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 18px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.hstep:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,22,31,.10); border-color: var(--orange); color: var(--ink); }
.hstep h3 { font-size: 20px; }
.hnum { position: absolute; top: -14px; left: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.hpic { width: 100%; max-width: 220px; height: auto; margin: 4px auto 6px; display: block; }
.hch { margin-top: auto; font-weight: 800; color: var(--link); }
.hch::after { content: " →"; }
@media (min-width: 1000px) { .hsteps li:not(:last-child) .hstep::after { content: ""; position: absolute; right: -14px; top: 50%; width: 12px; height: 2px; background: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .hstep { transition: none; } .hstep:hover { transform: none; } }
.getlisted { display: grid; gap: 8px; max-width: 65ch; } .getlisted strong { overflow-wrap: anywhere; }

/* footer: disclaimer row, on every page */
.site-foot .wrap.legal { display: flex; flex-direction: column; gap: 6px; padding-block: 20px 20px; border-top: 1px solid var(--line); text-align: center; color: var(--ink); }
.site-foot .legal p { margin: 0; max-width: 72ch; margin-inline: auto; font-size: 15px; line-height: 1.55; }
.site-foot .legal strong { font-size: inherit; letter-spacing: 0; text-transform: none; }
.site-foot .legal .copy { font-size: 14px; color: var(--muted, inherit); }
@media (min-width: 900px) { .site-foot .wrap.legal { padding-block: 20px; } }
