/* CuredDisease.com v1.0.1: "archive drawer". Ibarra Real Nova + Ysabeau Office (SIL OFL 1.1, self-hosted). */
@font-face { font-family: "Ibarra Real Nova"; src: url(/assets/fonts/ibarra-real-nova.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Ibarra Real Nova"; src: url(/assets/fonts/ibarra-real-nova-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url(/assets/fonts/ysabeau-office.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url(/assets/fonts/ysabeau-office-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #15182b; --ink-2: #23284a; --ink-3: #343a63;
  --bone: #f5f1e8; --paper: #fbf9f4; --card: #fffdf8;
  --brass: #c99a2e; --brass-d: #7d5e12; --brass-l: #e9d29a;
  --verd: #24695f; --verd-l: #dcefe9; --verm: #a63b25; --verm-l: #f6e1db;
  --text: #1f2233; --muted: #545a6e; --line: #ddd5c4; --line-2: #cfc6b2;
  --k-discovery: #2c5a86; --k-vaccine: #24695f; --k-treatment: #6e4590; --k-elimination: #9a5d1c; --k-eradication: #7d5e12; --k-campaign: #4f566b;
  --serif: "Ibarra Real Nova", "Iowan Old Style", Georgia, serif;
  --sans: "Ysabeau Office", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 3px; --shadow: 0 1px 0 rgba(21, 24, 43, .06), 0 10px 30px -18px rgba(21, 24, 43, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bone); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); font-feature-settings: "lnum" 1; overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brass-d); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.thin { width: min(820px, 100%); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bone); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.small { font-size: .9rem; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- type scale ---------- */
.display { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 600; }
.display em { font-style: italic; color: var(--brass); font-weight: 500; }
.h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.h3 { font-size: 1.3rem; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 46em; }
.kicker { font: 700 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.kicker-dark { color: var(--brass-d); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .6em 1.35em; border: 1.5px solid transparent; border-radius: var(--r); font: 700 1rem/1.1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #dcae43; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: var(--ink-3); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bone); }
.btn-ghost { background: transparent; color: var(--bone); border-color: rgba(245, 241, 232, .55); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(245, 241, 232, .08); color: #fff; }
.btn-danger { background: var(--verm); color: #fff; }
.btn-small { min-height: 38px; padding: .45em 1em; font-size: .92rem; }
.btn-wide { min-width: min(100%, 320px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--brass); }
.link-arrow::after { content: " \2192"; }
.link-plain { font-weight: 600; }
.link-plain.danger { color: var(--verm); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(245, 241, 232, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.mark { width: 38px; height: 38px; display: block; }
.brand-word { font: 600 1.42rem/1 var(--serif); letter-spacing: -.01em; }
.brand-word small { font: 600 .82rem/1 var(--sans); color: var(--brass-d); margin-left: 1px; letter-spacing: .02em; }
.mainnav { flex: 1; }
.mainnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.mainnav a { display: block; padding: 10px 12px; font-weight: 600; font-size: .98rem; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.mainnav a[aria-current] { color: var(--ink); border-bottom-color: var(--brass); }
.top-end { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.pricechip { display: grid; text-decoration: none; color: var(--ink); line-height: 1.1; padding: 4px 12px; border-left: 1px solid var(--line-2); }
.pc-price { font: 700 1.05rem/1.1 var(--serif); }
.pc-price span { font: 600 .78rem var(--sans); color: var(--muted); }
.pc-note { font-size: .74rem; font-weight: 700; color: var(--verd); letter-spacing: .02em; }
.bookbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: var(--r); color: var(--ink); font-weight: 700; font-size: .94rem; text-decoration: none; }
.bookbtn:hover, .bookbtn[aria-current] { background: var(--ink); color: var(--bone); }

/* ---------- phone tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 1080px) { .mainnav a { padding: 10px 8px; font-size: .92rem; } }
@media (max-width: 960px) { .mainnav { display: none; } }
@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .top-in { min-height: 60px; gap: 10px; }
  .brand-word { font-size: 1.22rem; }
  .mark { width: 32px; height: 32px; }
  .bookbtn { display: none; }
  .pricechip { padding: 2px 0 2px 10px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: var(--bone); border-top: 2px solid var(--brass); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar > a, .tabbar summary { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 8px; color: rgba(245, 241, 232, .78); text-decoration: none; font-size: .74rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; list-style: none; min-height: 58px; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar > a[aria-current], .tb-more[open] summary { color: var(--brass); }
  .tb-g { width: 24px; height: 24px; }
  .tb-more { position: relative; }
  .tb-sheet { position: absolute; right: 8px; bottom: calc(100% + 10px); width: min(300px, calc(100vw - 16px)); background: var(--paper); color: var(--text); border: 1px solid var(--line-2); border-top: 3px solid var(--brass); border-radius: var(--r); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); padding: 10px 0; }
  .tb-sheet ul { list-style: none; margin: 0; padding: 0; }
  .tb-sheet a { display: block; padding: 11px 18px; color: var(--ink); font-weight: 700; text-decoration: none; }
  .tb-sheet a[aria-current] { color: var(--brass-d); }
  .tb-price { font-size: .8rem; color: var(--muted); padding: 4px 18px 8px; margin: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 500px at 85% 110%, rgba(201, 154, 46, .16), transparent 60%), radial-gradient(700px 400px at 0% 0%, rgba(52, 58, 99, .7), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero .display { color: var(--bone); }
.hero-mark { display: block; width: fit-content; margin-top: .4em; padding-bottom: 16px; font: 800 .56em/1.15 var(--sans); letter-spacing: .005em; color: var(--brass-l);
  background: repeating-linear-gradient(90deg, var(--brass) 0 2px, transparent 2px 16px) left bottom / 100% 9px no-repeat, linear-gradient(var(--brass), var(--brass)) left bottom / 100% 2px no-repeat; }
.hero .lede { color: rgba(245, 241, 232, .82); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 2rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(245, 241, 232, .18); font-size: .95rem; color: rgba(245, 241, 232, .75); }
.hero-proof b { font: 600 1.2rem var(--serif); color: var(--bone); margin-right: 4px; }
.ruler { margin: 0; }
.ruler-svg { width: 100%; height: auto; display: block; overflow: visible; }
.r-base { stroke: rgba(245, 241, 232, .7); stroke-width: 1.5; }
.r-tick { stroke: rgba(245, 241, 232, .4); stroke-width: 1; }
.r-major { stroke: rgba(245, 241, 232, .85); stroke-width: 1.5; }
.r-num { fill: rgba(245, 241, 232, .75); font: 500 15px var(--serif); text-anchor: middle; }
.r-pin { stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 3 3; }
.r-dot { fill: var(--brass); }
.r-label rect { fill: var(--card); }
.r-label-rule { stroke: var(--brass); stroke-width: 4; }
.r-label-year { fill: var(--brass-d); font: 700 20px var(--serif); }
.r-label-t { fill: var(--ink); font: 700 13.5px var(--sans); }

/* ---------- home sections ---------- */
.today { background: var(--paper); border-bottom: 1px solid var(--line); }
.today-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.today-done { font-weight: 600; color: var(--verd); }
.stack { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.stack li { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass); padding: 14px 18px; margin-bottom: 10px; font: 600 1.08rem/1.3 var(--serif); color: var(--ink); box-shadow: var(--shadow); }
.stack li:nth-child(2n) { margin-left: 18px; }
.stack li:nth-child(3n) { margin-left: 36px; }
.stack-kind { flex: none; display: inline-grid; place-items: center; width: 28px; }
.stack-kind .glyph { width: 26px; height: 26px; }
.how { padding: clamp(48px, 7vw, 96px) 0; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { border-top: 1px solid var(--line-2); padding-top: 18px; }
.step-n { display: block; font: 500 4rem/1 var(--serif); color: var(--brass); margin-bottom: 8px; font-variant-numeric: oldstyle-nums; }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--muted); }
.gone { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0; }
.gone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); margin-top: 2.4rem; }
.gone-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brass); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.gone-year { font: 600 clamp(3.4rem, 7vw, 5.6rem)/.9 var(--serif); color: var(--ink); margin: 0 0 .2em; font-variant-numeric: oldstyle-nums; }
.gone-name { font: 700 1.25rem var(--sans); margin-bottom: 1rem; }
.gone-name span { display: block; font-weight: 500; font-size: .95rem; color: var(--muted); }
.gone-card blockquote { margin: 0 0 1rem; font: italic 500 1.12rem/1.5 var(--serif); color: var(--text); }
.wordsband { padding: clamp(48px, 7vw, 96px) 0; }
.wordsband-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.ladder li:first-child { border-top: 1px solid var(--line-2); }
.ladder b { font: 600 1.3rem var(--serif); color: var(--ink); }
.ladder span { color: var(--muted); }
.ladder li:nth-child(3) b { color: var(--brass-d); }
.notyet-band { background: var(--ink-2); color: var(--bone); padding: clamp(48px, 7vw, 88px) 0; }
.notyet-in { max-width: 900px; }
.big-quote { margin: 0 0 1.4rem; }
.big-quote p { font: italic 500 clamp(1.9rem, 4.4vw, 3.3rem)/1.15 var(--serif); margin-bottom: .6em; }
.big-quote footer .cite { font: 400 .95rem/1.5 var(--sans); }
.notyet-band .cite, .notyet-band .cite a, .notyet-band .cite-org { color: rgba(245, 241, 232, .85); }
.notyet-more { color: rgba(245, 241, 232, .85); font-size: 1.08rem; }
.notyet-band a { color: var(--bone); }
.price-band { padding: clamp(48px, 7vw, 96px) 0; }

/* ---------- inner pages ---------- */
.plate { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.pagehead { margin-bottom: clamp(24px, 4vw, 44px); }
.pagehead.center .lede { margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 2rem; }
.prose p { max-width: 42em; }
.notice { background: var(--paper); border-left: 4px solid var(--verd); padding: 12px 16px; font-weight: 600; }
.notice-bad { border-left-color: var(--verm); }
.passnote { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--verd); margin: 0 0 1rem; }
.passnote span { background: var(--ink); color: var(--brass-l); padding: 3px 9px; border-radius: 2px; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 1.4rem; }
.form { display: grid; gap: 14px; justify-items: start; }
.form label { display: grid; gap: 6px; font-weight: 700; width: 100%; max-width: 520px; }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
input[type=text], select, textarea { font: inherit; color: var(--text); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; min-height: 44px; width: 100%; }
select { width: auto; min-width: 8em; }
input[type=text]:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid var(--brass-l); }

/* ---------- labels (milestone cards) ---------- */
.label { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 1px; padding: 14px 18px 16px; position: relative; }
.label-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-bottom: 6px; }
.label-kind { display: inline-flex; align-items: center; gap: 6px; font: 800 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.label-kind .glyph { width: 18px; height: 18px; }
.label-disease { font: italic 400 .92rem var(--serif); color: var(--muted); }
.label-year { font: 600 2.6rem/1 var(--serif); color: var(--brass-d); margin: 4px 0 6px; font-variant-numeric: oldstyle-nums; }
.label-title { font: 600 1.18rem/1.3 var(--serif); color: var(--ink); margin: 0; }
.label-quote { margin: 12px 0 8px; padding-left: 14px; border-left: 2px solid var(--brass-l); font: italic 400 1.02rem/1.55 var(--serif); color: var(--text); }
.label-quote p { margin: 0; }
.k-discovery .label-kind, .k-discovery .glyph { color: var(--k-discovery); }
.k-vaccine .label-kind, .k-vaccine .glyph { color: var(--k-vaccine); }
.k-treatment .label-kind, .k-treatment .glyph { color: var(--k-treatment); }
.k-elimination .label-kind, .k-elimination .glyph { color: var(--k-elimination); }
.k-eradication .label-kind, .k-eradication .glyph { color: var(--k-eradication); }
.k-campaign .label-kind, .k-campaign .glyph { color: var(--k-campaign); }
.g-discovery { color: var(--k-discovery); } .g-vaccine { color: var(--k-vaccine); } .g-treatment { color: var(--k-treatment); }
.g-elimination { color: var(--k-elimination); } .g-eradication { color: var(--k-eradication); } .g-campaign { color: var(--k-campaign); }
.tabbar .tb-g { color: currentColor; }
.cite { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.45; }
.cite-org { font-weight: 800; color: var(--ink); letter-spacing: .03em; }
.cite a { color: var(--muted); }
.cite a:hover { color: var(--ink); }
.q { margin: 0 0 1.4rem; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 16px 20px; }
.q p { font: italic 400 1.1rem/1.55 var(--serif); margin: 0 0 .6em; }

/* ---------- the sorter ---------- */
.line-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.line-head { grid-column: 1 / -1; margin-bottom: 0; }
.sorter { min-width: 0; }
.end { font: 800 .74rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-d); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.end::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.end-bottom { margin: 8px 0 0; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: 2.4rem auto minmax(0, 1fr) auto; gap: 10px; align-items: center; background: transparent; border-radius: var(--r); transition: transform .12s ease; touch-action: pan-y; }
.slot .label { box-shadow: var(--shadow); }
.slot-n { font: 600 2rem/1 var(--serif); color: var(--ink); text-align: center; font-variant-numeric: lining-nums; }
.grip { display: none; width: 30px; height: 48px; border: 0; background: transparent; color: var(--muted); cursor: grab; padding: 6px 8px; border-radius: var(--r); touch-action: none; }
.grip svg { width: 12px; height: 20px; fill: currentColor; }
.grip:hover { background: rgba(21, 24, 43, .06); color: var(--ink); }
.slot-ctl { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.mv { display: none; width: 40px; height: 40px; border: 1.5px solid var(--line-2); background: var(--card); border-radius: var(--r); cursor: pointer; color: var(--ink); padding: 0; }
.mv svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mv:hover { border-color: var(--ink); }
.mv:disabled { opacity: .35; cursor: default; }
.pos { display: grid; gap: 2px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pos select { min-width: 4em; min-height: 40px; padding: 6px 8px; }
.js .grip, .js .mv { display: inline-grid; place-items: center; }
.js .pos { display: none; }
.slot.is-dragging { z-index: 5; position: relative; }
.slot.is-dragging .label { box-shadow: 0 18px 40px -12px rgba(21, 24, 43, .5); border-color: var(--brass); }
.slot.is-dragging .grip { cursor: grabbing; }
.slot.just-moved .label { animation: nudge .35s ease; }
@keyframes nudge { from { background: #fbf0d2; } to { background: var(--card); } }
.sorter-go { margin-top: 22px; }
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.line-aside { background: var(--paper); border: 1px solid var(--line); padding: 22px; position: sticky; top: 96px; }
.line-aside h2 { font-size: 1.25rem; }
.line-aside p { font-size: .95rem; }
.aside-price { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.aside-price-h { font: 600 1.08rem var(--serif); color: var(--ink); }

/* ---------- result ---------- */
.result-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.score { position: sticky; top: 96px; background: var(--ink); color: var(--bone); padding: 28px; border-top: 4px solid var(--brass); }
.score .kicker { color: var(--brass-l); }
.score-big { font: 600 6.2rem/.9 var(--serif); margin: 0; color: var(--bone); }
.score-big small { font-size: 2.4rem; color: rgba(245, 241, 232, .6); }
.score-sub { color: rgba(245, 241, 232, .85); margin: .5rem 0; }
.score-sub b { color: var(--bone); }
.score-verdict { font: italic 500 1.35rem var(--serif); color: var(--brass); }
.share { display: grid; gap: 8px; margin: 1.2rem 0; }
.share label { font-size: .82rem; color: rgba(245, 241, 232, .75); }
.share textarea { background: var(--ink-2); color: var(--bone); border-color: var(--ink-3); font-size: .9rem; resize: none; min-height: 0; }
.share .btn-line { color: var(--bone); border-color: rgba(245, 241, 232, .6); justify-self: start; }
.share .btn-line:hover { background: var(--bone); color: var(--ink); }
.kept { font-weight: 600; margin: 0; }
.score a { color: var(--brass-l); }
.keep { border-top: 1px solid var(--ink-3); padding-top: 1rem; }
.keep p { font-size: .95rem; color: rgba(245, 241, 232, .85); }
.keep .btn-ink { background: var(--brass); color: var(--ink); }
.answer-list { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: a; display: grid; gap: 16px; }
.answer-row { position: relative; padding-left: 52px; }
.answer-row::before { counter-increment: a; content: counter(a); position: absolute; left: 0; top: 18px; font: 600 2rem/1 var(--serif); color: var(--ink); width: 40px; text-align: center; }
.answer-mark { margin: 0 0 6px; font-size: .84rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.answer-mark .ok { color: var(--verd); }
.answer-mark .no { color: var(--verm); }
.is-right .label { border-top-color: var(--verd); }
.is-wrong .label { border-top-color: var(--verm); }
.next { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 1rem; }
.next-card { display: grid; gap: 4px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); border-top: 3px solid var(--ink); }
.next-card b { font: 600 1.15rem var(--serif); color: var(--ink); }
.next-card span { font-size: .9rem; color: var(--muted); }
.next-card:hover { border-color: var(--ink); }
.next-pass { border-top-color: var(--brass); }

/* ---------- archive ---------- */
.month { margin-bottom: 2.2rem; }
.month-h { font-size: 1.5rem; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.day { display: grid; gap: 0; padding: 8px 10px; min-height: 64px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); border-top: 3px solid var(--line-2); }
.day:hover { border-color: var(--ink); }
.day-n { font: 600 1.45rem/1 var(--serif); }
.day-w { font-size: .74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.day-s { font-size: .8rem; font-weight: 800; color: var(--verd); }
.day.is-played { border-top-color: var(--verd); }
.day.is-pass:not(.is-played) { border-top-color: var(--brass); }

/* ---------- practice tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: grid; gap: 6px; align-content: start; min-height: 168px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.tile-pass { border-top-color: var(--brass); }
.tile-close { background: var(--ink); color: var(--bone); border-color: var(--ink); border-top-color: var(--brass); }
.tile-close .tile-name { color: var(--bone); }
.tile-close .tile-line { color: rgba(245, 241, 232, .8); }
.tile-tag { font: 800 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-d); }
.tile-close .tile-tag { color: var(--brass-l); }
.tile-name { font: 600 1.55rem/1.15 var(--serif); color: var(--ink); }
.tile-line { color: var(--muted); font-size: .95rem; }

/* ---------- record ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 1rem; }
.filters label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.filters-count { margin: 0 0 0 auto; color: var(--muted); font-weight: 600; align-self: center; }
.legend { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .glyph { width: 18px; height: 18px; }
.legend b { color: var(--ink); }
.rail { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line-2); display: grid; gap: 14px; }
.rail-era { margin: 18px 0 2px -28px; }
.rail-era span { display: inline-block; background: var(--ink); color: var(--bone); font: 600 1.05rem var(--serif); padding: 4px 14px; }
.rail-item { position: relative; }
.rail-item::before { content: ""; position: absolute; left: -35px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--bone); border: 2px solid var(--brass); }
.rail .label { max-width: 820px; }

/* ---------- words / not yet ---------- */
.defs { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 4px; }
.defs li { display: grid; grid-template-columns: 3rem 1fr; gap: 12px; align-items: start; }
.def-n { font: 500 2.6rem/1 var(--serif); color: var(--brass); padding-top: 10px; font-variant-numeric: oldstyle-nums; }
.ny { padding: 28px 0; border-top: 1px solid var(--line-2); }
.ny-h { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .2em; }
.ny-line { font-size: 1.12rem; color: var(--muted); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; max-width: 980px; margin: 2rem auto 0; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px); }
.plan-pass { background: var(--ink); color: var(--bone); border-color: var(--ink); border-top: 4px solid var(--brass); box-shadow: 0 30px 60px -30px rgba(21, 24, 43, .7); }
.plan-name { font: 800 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-d); margin-bottom: .4rem; }
.plan-pass .plan-name { color: var(--brass-l); }
.plan-price { font: 600 3.4rem/1 var(--serif); margin: 0 0 .3rem; color: var(--ink); }
.plan-pass .plan-price { color: var(--bone); }
.plan-price span { font: 600 1rem var(--sans); color: var(--muted); margin-left: 4px; }
.plan-pass .plan-price span { color: rgba(245, 241, 232, .7); }
.plan-alt { color: var(--brass-l); font-weight: 700; margin-bottom: 1rem; }
.plan ul { margin: 1rem 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--verd); border-bottom: 2px solid var(--verd); transform: rotate(-45deg); }
.plan-pass li::before { border-color: var(--brass); }
.plan-preview { font-size: .95rem; background: var(--ink-2); border-left: 3px solid var(--brass); padding: 12px 14px; margin: 1rem 0 0; color: rgba(245, 241, 232, .9); }
.plan-preview strong { color: var(--brass-l); }
.plans-honest { text-align: center; color: var(--muted); margin-top: 1.2rem; }
.plans-compact { margin-top: 1.6rem; }
.faq { max-width: 820px; margin: clamp(40px, 6vw, 72px) auto 0; }
.faq details { border-top: 1px solid var(--line-2); padding: 14px 0; }
.faq summary { font: 600 1.18rem var(--serif); cursor: pointer; color: var(--ink); }
.faq details p { margin: .7rem 0 0; color: var(--muted); }
.locked .plans { margin-left: 0; }

/* ---------- sources ---------- */
.sourcelist { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0; }
.sourcelist li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.src-org { font: 800 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-d); margin: 0; }
.src-t { font: 600 1.15rem var(--serif); margin: 2px 0; }
.src-d { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- score book ---------- */
.newlink { background: #fdf6e3; border: 1px solid var(--brass); border-left: 5px solid var(--brass); padding: 18px 20px; margin-bottom: 1.6rem; }
.newlink-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.newlink-row input { flex: 1 1 280px; font-family: var(--sans); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0 0 2rem; background: var(--card); border: 1px solid var(--line); }
.stats div { padding: 18px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 600 2.4rem/1 var(--serif); color: var(--ink); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.history { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: .95rem; }
.history th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line-2); }
.history td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.history th.num, .history td.num { text-align: right; }
.misses { padding-left: 1.2em; }
.misses li { margin-bottom: 8px; }
.misses span { color: var(--muted); font-size: .9rem; }

/* ---------- classroom print ---------- */
.cutcards { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1.5px dashed var(--muted); }
.cutcard { display: grid; gap: 6px; padding: 22px 22px 26px; min-height: 150px; border: 1.5px dashed var(--muted); margin: -0.75px; background: #fff; }
.cut-letter { font: 600 1.8rem/1 var(--serif); color: var(--brass-d); }
.cut-kind { display: inline-flex; align-items: center; gap: 6px; font: 800 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cut-kind .glyph { width: 18px; height: 18px; }
.cut-t { font: 600 1.2rem/1.3 var(--serif); color: var(--ink); }
.keytable { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.keytable th, .keytable td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.keytable td.num { text-align: right; font: 600 1.1rem var(--serif); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(245, 241, 232, .82); padding: clamp(40px, 6vw, 72px) 0 32px; font-size: .95rem; }
.foot a { color: var(--bone); text-decoration-color: rgba(201, 154, 46, .7); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--ink-3); }
.foot h2 { font: 800 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 6px 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.brand-foot { color: var(--bone); margin-bottom: 12px; }
.brand-foot .brand-word small { color: var(--brass-l); }
.foot-price { color: var(--brass-l); }
.foot-price strong { color: var(--bone); }
.foot-honest { padding: 20px 0 0; font-size: .88rem; color: rgba(245, 241, 232, .7); }
.foot-honest p { margin: 0 0 6px; }
.powered { margin: 14px 0 0; font-weight: 700; color: var(--bone); }
.ver { font-weight: 400; color: rgba(245, 241, 232, .45); font-size: .8rem; margin-left: 6px; }
.is-error .foot { padding-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; }
  .ruler { max-width: 640px; }
  .line-wrap, .result-wrap { grid-template-columns: 1fr; }
  .line-aside, .score { position: static; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(3) { border-right: 0; }
  .stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .today-in, .wordsband-in, .gone-grid, .twoup, .book-grid, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stack li:nth-child(n) { margin-left: 0; }
  .next { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .ladder li { grid-template-columns: 1fr; gap: 2px; }
  .cutcards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stats div:nth-child(2n) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-top: 0; }
  .stats dd { font-size: 2rem; }
  .history { font-size: .88rem; }
  .history th, .history td { padding: 8px 6px; }
}
@media (max-width: 560px) {
  .slot { grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: 8px; }
  .slot .grip { display: none; }
  .slot-n { font-size: 1.5rem; }
  .label { padding: 12px 14px 14px; }
  .label-title { font-size: 1.08rem; }
  .label-year { font-size: 2.2rem; }
  .answer-row { padding-left: 34px; }
  .answer-row::before { width: 26px; font-size: 1.6rem; }
  .rail { padding-left: 20px; }
  .rail-era { margin-left: -20px; }
  .rail-item::before { left: -27px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .defs li { grid-template-columns: 2rem 1fr; }
  .score-big { font-size: 5rem; }
  .filters-count { margin-left: 0; }
  .ruler { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media print {
  .top, .tabbar, .foot, .noprint, .skip { display: none !important; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  .plate { padding: 0; }
  .cutcards { break-inside: auto; }
  .cutcard { break-inside: avoid; }
  .key { break-before: page; }
  a { color: inherit; text-decoration: none; }
}
