[hidden] { display: none !important; }
@font-face { font-family: "Newsreader"; src: url("/files/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/files/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/files/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/files/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f5f1e8;
  --paper-2: #ece5d6;
  --card: #fbf8f1;
  --ink: #121212;
  --ink-2: #4a463f;
  --ink-3: #7a7468;
  --rule: #d8d0bf;
  --orange: #f7931a;
  --burnt: #b4540a;
  --up: #1f7a4d;
  --down: #b42318;
  --serif: "Newsreader", "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gut: 32px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--burnt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.nw { white-space: nowrap; }
.price, .val, .meter-v, .sec-note .mono, .expl .mono, .mast-right .mono, .chart-ch { font-family: var(--sans); font-feature-settings: "tnum" 1; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.label { font: 600 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.kicker { font: 600 11.5px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--burnt); margin-bottom: 12px; }
.kicker span { color: var(--ink-3); padding: 0 2px; }
.h-sec { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.h-sm { font: 700 12px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.dek { font: italic 400 clamp(18px, 1.7vw, 21px)/1.45 var(--serif); color: var(--ink-2); margin-top: 14px; }
.fine { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.empty { font-style: italic; color: var(--ink-3); padding: 24px 0; }

/* sample strip */
.sample { background: var(--ink); color: #f5f1e8; font: 500 12.5px/1.4 var(--sans); text-align: center; padding: 8px 0; }

/* masthead */
.mast { padding: 22px 0 18px; text-align: center; }
.mast-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.mast-right { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.mast-right b { color: var(--ink); font-weight: 600; }
.mast-manage { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px 0 5px; align-self: center; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.mast-manage svg { width: 14px; height: 14px; fill: var(--paper); stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mast-manage:hover { color: var(--burnt); border-color: var(--burnt); }
.wordmark { display: block; margin: 18px 0 6px; font: 700 clamp(40px, 8.4vw, 108px)/0.95 var(--serif); letter-spacing: -0.035em; color: var(--ink); text-decoration: none; font-optical-sizing: auto; }
.wordmark i { font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.wordmark:hover { color: var(--ink); }
.tagline { font: italic 400 18px/1.3 var(--serif); color: var(--ink-2); }

/* section bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.bar-in { display: flex; align-items: center; gap: 20px; height: 48px; }
.bar-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: var(--orange); color: var(--ink); font: 700 13px/1 var(--serif); text-decoration: none; letter-spacing: -0.02em; }
.bar-links { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.bar-links::-webkit-scrollbar { display: none; }
.bar-links a { flex: none; color: var(--ink); text-decoration: none; font: 500 14px/48px var(--sans); white-space: nowrap; border-bottom: 2px solid transparent; }
.bar-links a:hover { border-bottom-color: var(--orange); }

/* ticker tape */
.tape { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.tape-in { display: flex; overflow-x: auto; scrollbar-width: none; }
.tape-in::-webkit-scrollbar { display: none; }
.t { flex: 1 0 auto; display: flex; align-items: baseline; gap: 8px; padding: 11px 22px; border-left: 1px solid var(--rule); white-space: nowrap; font-size: 14px; }
.t:first-child { border-left: 0; padding-left: 0; }
.t em { font: 600 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-style: normal; }
.t b { font-weight: 600; }
.t i { font-style: normal; font-size: 13px; }
.up { color: var(--up); }
.dn { color: var(--down); }

/* front page */
.front { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; padding-top: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.lead { padding-right: 40px; }
.lead-h { font-size: clamp(34px, 4.3vw, 58px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 650; }
.lead-body { margin-top: 22px; font: 400 18px/1.65 var(--serif); color: var(--ink); max-width: 62ch; }
.lead-body::first-letter { float: left; font: 700 4.1em/0.82 var(--serif); margin: 6px 10px 0 0; color: var(--ink); }
.why { margin-top: 22px; padding: 14px 16px 14px 18px; background: var(--card); border-left: 3px solid var(--orange); }
.why b { display: block; font: 700 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--burnt); margin-bottom: 4px; }
.why p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.src { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.src a { font-weight: 500; }
.side { padding-left: 40px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 32px; }
.pb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.price { font-size: clamp(34px, 3.4vw, 44px); line-height: 1.1; font-weight: 600; margin-top: 6px; letter-spacing: -0.04em; }
.ranges { display: flex; border: 1px solid var(--ink); flex: none; }
.ranges button { background: none; border: 0; padding: 6px 11px; font: 600 12px/1.2 var(--mono); }
.ranges button + button { border-left: 1px solid var(--ink); }
.ranges button.is-on { background: var(--ink); color: var(--paper); }
.chart { margin: 14px 0 0; display: none; }
.chart.is-on { display: block; }
.chart-ch { font-size: 13px; color: var(--up); font-weight: 600; }
.chart.is-down .chart-ch { color: var(--down); }
.chart-ch span { color: var(--ink-3); font-weight: 400; font-family: var(--sans); letter-spacing: 0; }
.plot { position: relative; height: 230px; margin-top: 10px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ink); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), var(--rule) calc(25% - 1px), var(--rule) 25%); }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.plot .area { fill: rgba(247, 147, 26, 0.16); stroke: none; }
.plot .line { fill: none; stroke: var(--burnt); stroke-width: 2; stroke-linejoin: round; }
.ylab { position: absolute; right: 0; font-size: 11px; color: var(--ink-3); background: var(--paper); padding: 0 0 0 6px; line-height: 1.2; }
.y-hi { top: 4px; }
.y-lo { bottom: 4px; }
.dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--burnt); box-shadow: 0 0 0 3px var(--paper); opacity: 0; pointer-events: none; }
.tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: var(--paper); font-size: 12px; padding: 5px 8px; white-space: nowrap; opacity: 0; pointer-events: none; }
.plot.is-hover .dot, .plot.is-hover .tip { opacity: 1; }
.xlab { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.brief { border-top: 2px solid var(--ink); padding-top: 14px; }
.brief ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: b; }
.brief li { counter-increment: b; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 11px 0; border-top: 1px solid var(--rule); font: 400 16.5px/1.45 var(--serif); }
.brief li:first-child { border-top: 0; }
.brief li::before { content: counter(b, decimal-leading-zero); font: 600 12px/1.9 var(--mono); color: var(--burnt); }

/* sections */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-note { font-size: 14px; color: var(--ink-3); }
.news, .network, .gloss, .history { padding-top: 56px; padding-bottom: 56px; }
.front, .news, .network, .gloss, .history { border-bottom: 0 !important; background: linear-gradient(var(--rule), var(--rule)) center bottom / calc(100% - 2 * var(--gut)) 1px no-repeat; }
.history { background: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: none; border: 1px solid var(--rule); padding: 6px 13px; font: 500 13px/1.2 var(--sans); white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.story { padding: 20px 22px 24px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.story:first-child { border-left: 0; padding-left: 0; }
.story-h { font-size: 22px; line-height: 1.18; font-weight: 600; letter-spacing: -0.015em; }
.story-dek { font: italic 400 16px/1.45 var(--serif); color: var(--ink-2); margin-top: 8px; }
.story-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin-top: 12px; }
.story .why { margin-top: 16px; }
.why-sm { padding: 10px 12px 10px 14px; }
.why-sm p { font-size: 13.5px; }
.story .src { margin-top: auto; padding-top: 14px; }
/* Cards in one row share row tracks, so each part (and the Why it matters box) lines up across the row. A missing part leaves its row empty. */
@supports (grid-template-rows: subgrid) {
  .story { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .story > .kicker { grid-row: 1; }
  .story > .story-h { grid-row: 2; }
  .story > .story-dek { grid-row: 3; }
  .story > .story-body { grid-row: 4; align-self: start; }
  .story > .why { grid-row: 5; }
  .story > .src { grid-row: 6; align-self: end; margin-top: 0; }
}
.cards.is-filtered { column-gap: 32px; }
.cards.is-filtered .story { border-left: 0; padding-left: 0; padding-right: 0; border-top: 0; }
.earlier-h { margin-top: 48px; }
.earlier { margin-top: 12px; border-top: 2px solid var(--ink); }
.day { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.day:last-child { border-bottom: 0; }
.day-h { padding: 16px 0; font: 600 20px/1.2 var(--serif); }
.day-h .mono { display: block; font: 500 12px/1.6 var(--mono); color: var(--ink-3); }
.day-list { list-style: none; margin: 0; padding: 0; }
.brief-row { border-top: 1px solid var(--rule); }
.brief-row:first-child { border-top: 0; }
.brief-row summary { list-style: none; display: grid; grid-template-columns: 96px minmax(0, 1fr) 24px; gap: 16px; align-items: baseline; padding: 16px 0; cursor: pointer; }
.brief-row summary::-webkit-details-marker { display: none; }
.cat { font: 600 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--burnt); white-space: nowrap; }
.row-h { font: 500 19px/1.3 var(--serif); }
.brief-row summary:hover .row-h { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.plus { position: relative; width: 14px; height: 14px; justify-self: end; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink); transition: transform .2s; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.row-body { padding: 0 40px 20px 112px; font-size: 15px; color: var(--ink-2); max-width: 900px; }
.row-body > * + * { margin-top: 10px; }

/* explainer */
.explain { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.explain-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); padding-top: 56px; padding-bottom: 64px; }
.lib { padding-right: 32px; }
.lib-sub { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.lib-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.lib-list li { border-bottom: 1px solid var(--rule); }
.lib-btn { width: 100%; text-align: left; background: none; border: 0; padding: 12px 0 12px 14px; display: grid; gap: 2px; position: relative; }
.lib-btn::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: transparent; }
.lib-btn.is-on::before { background: var(--orange); }
.lib-t { font: 600 17px/1.3 var(--serif); }
.lib-m { font-size: 11.5px; color: var(--ink-3); }
.lib-btn:hover .lib-t { color: var(--burnt); }
.xp-stage { padding-left: 40px; border-left: 1px solid var(--rule); }
.xp { display: none; }
.xp.is-on { display: block; }
.xp-h { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.05; letter-spacing: -0.025em; }
.xp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; margin-top: 28px; align-items: start; }
.xp-body p { font: 400 17.5px/1.65 var(--serif); }
.xp-body p + p { margin-top: 14px; }
.dia { margin: 0; background: var(--card); border: 1px solid var(--rule); padding: 24px; }
.dia figcaption { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
/* diagrams */
.d-chain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; max-width: 360px; margin: 0 auto; }
.d-chain .blk:nth-child(3)::before { display: none; }
.blk { position: relative; border: 1px solid var(--ink); background: var(--paper); padding: 8px; display: grid; gap: 3px; min-width: 0; }
.blk + .blk::before { content: ""; position: absolute; left: -19px; top: 50%; width: 18px; height: 2px; background: var(--ink); }
.blk.is-new { border-color: var(--burnt); box-shadow: 3px 3px 0 var(--orange); }
.blk-n { font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.blk-l { font: 600 8.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.blk-h { font-size: 10px; color: var(--burnt); white-space: nowrap; overflow: hidden; }
.blk-tx { display: grid; gap: 3px; }
.blk-tx i { height: 4px; background: var(--rule); }
.blk-tx i:nth-child(2) { width: 75%; }
.blk-tx i:nth-child(3) { width: 55%; }
.d-halving { display: grid; gap: 9px; }
.hv { display: grid; grid-template-columns: 52px minmax(0, 1fr) 64px; align-items: center; gap: 12px; font-size: 13px; }
.hv-y { color: var(--ink-3); }
.hv-bar { height: 16px; background: var(--paper-2); }
.hv-bar span { display: block; height: 100%; background: var(--ink); }
.hv.is-now .hv-bar span { background: var(--orange); }
.hv.is-now .hv-v, .hv.is-now .hv-y { color: var(--burnt); font-weight: 600; }
.hv-v { text-align: right; }
.d-keys { display: grid; justify-items: stretch; gap: 6px; }
.key { border: 1px solid var(--ink); background: var(--paper); padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.k-t { font: 600 17px/1.2 var(--serif); }
.k-s { font: 600 10px/1.8 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: right; white-space: nowrap; }
.k-v { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.k-priv { border-color: var(--down); }
.k-priv .k-s { color: var(--down); }
.k-addr { border-color: var(--up); }
.k-addr .k-s { color: var(--up); }
.k-arrow { font: 500 11px/1 var(--mono); color: var(--ink-3); text-align: center; }
.d-mempool { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.mp-l { display: block; font: 600 10px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.mp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mp-block .mp-grid { grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); padding: 5px; background: var(--paper); }
.mp-grid i { aspect-ratio: 1; background: #e9dcc4; }
.mp-grid i.f1 { background: #f2c48a; }
.mp-grid i.f2 { background: #f5a94e; }
.mp-grid i.f3 { background: var(--orange); }
.mp-grid i.f4 { background: var(--burnt); }
.mp-arrow { font: 500 11px/1.3 var(--mono); color: var(--ink-3); text-align: center; max-width: 76px; }
.d-mining { display: grid; gap: 6px; font-size: 13px; }
.d-mining p { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20px; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule); background: var(--paper); white-space: nowrap; }
.d-mining .no { color: var(--down); }
.d-mining .ok { color: var(--up); }
.d-mining .win { border-color: var(--up); background: #e6efe5; font-weight: 600; }
.sp-bar { height: 28px; background: var(--paper-2); border: 1px solid var(--ink); }
.sp-bar span { display: block; height: 100%; background: var(--orange); }
.sp-lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.d-none { font: 700 64px/1 var(--serif); color: var(--orange); text-align: center; }

/* network */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stat { padding: 20px 24px 24px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.val { font-size: clamp(30px, 3vw, 40px); font-weight: 600; line-height: 1.15; margin-top: 8px; white-space: nowrap; letter-spacing: -0.04em; }
.val small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.expl { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.meter { padding: 24px 24px 4px 0; }
.meter + .meter { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--rule); }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.meter-v { font-size: 15px; font-weight: 600; }
.track { height: 12px; background: var(--paper-2); margin-top: 12px; border: 1px solid var(--ink); }
.track span { display: block; height: 100%; background: var(--orange); }

/* glossary */
.search input { width: 300px; max-width: 100%; height: 42px; border: 1px solid var(--ink); background: var(--card); padding: 0 14px; font: 400 15px var(--sans); color: var(--ink); border-radius: 0; }
.search input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.search { min-width: 0; max-width: 100%; }
.gloss-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0; border-top: 2px solid var(--ink); }
.tod { padding: 24px 32px 24px 0; position: sticky; top: 64px; align-self: start; }
.tod-t { font: 650 clamp(34px, 3.6vw, 46px)/1.05 var(--serif); letter-spacing: -0.025em; margin-top: 12px; }
.tod-t::after { content: ""; display: block; width: 48px; height: 4px; background: var(--orange); margin-top: 16px; }
.tod-d { margin-top: 16px; font: 400 18px/1.55 var(--serif); }
.tod-e { margin-top: 12px; font-size: 14px; color: var(--ink-2); font-style: italic; }
.terms { margin: 0; padding-left: 32px; border-left: 1px solid var(--rule); columns: 2; column-gap: 40px; column-rule: 1px solid var(--rule); }
.term { break-inside: avoid; padding: 16px 0 14px; border-bottom: 1px solid var(--rule); }
.term dt { font: 650 17px/1.25 var(--serif); }
.term dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.term .ex { color: var(--ink-3); font-style: italic; }

/* history */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ev { padding: 20px 24px 24px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-content: start; }
.ev:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.ev-d { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ev-d em { font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; font-style: normal; background: var(--orange); color: var(--ink); padding: 4px 6px; }
.ev-y { font: 650 38px/1 var(--serif); letter-spacing: -0.03em; color: var(--burnt); margin-top: 8px; }
.ev-t { grid-column: 1 / -1; margin-top: 10px; }
.ev-t b { font: 650 19px/1.25 var(--serif); display: block; }
.ev-t p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }

/* footer */
.foot { background: var(--ink); color: #d9d3c6; padding: 48px 0 56px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 40px; }
.foot-mark { font: 700 34px/1 var(--serif); letter-spacing: -0.03em; color: #f5f1e8; }
.foot-mark i { font-weight: 400; }
.foot-tag { font: italic 16px/1.4 var(--serif); margin-top: 8px; color: #b8b1a3; }
.foot .label { color: var(--orange); margin-bottom: 10px; }
.foot-col p:not(.label) { font-size: 14px; line-height: 1.6; }
.foot-up { margin-top: 14px; font-size: 12px; color: #9a9384; }

/* responsive */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story:nth-child(odd) { border-left: 0; padding-left: 0; }
  .story:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .xp-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dia { max-width: 560px; }
}
@media (max-width: 980px) {
  :root { --gut: 24px; }
  .front { grid-template-columns: minmax(0, 1fr); }
  .lead { padding-right: 0; }
  .side { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 36px; }
  .explain-in { grid-template-columns: minmax(0, 1fr); }
  .lib { padding-right: 0; }
  .lib-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .xp-stage { padding-left: 0; border-left: 0; margin-top: 36px; }
  .gloss-in { grid-template-columns: minmax(0, 1fr); }
  .tod { padding-right: 0; border-bottom: 1px solid var(--rule); position: static; }
  .terms { padding-left: 0; border-left: 0; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev:nth-child(3n+1) { border-left: 1px solid var(--rule); padding-left: 24px; }
  .ev:nth-child(odd) { border-left: 0; padding-left: 0; }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3n+1) { border-left: 1px solid var(--rule); padding-left: 24px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .meters { grid-template-columns: minmax(0, 1fr); }
  .meter, .meter + .meter { padding: 24px 0 4px; border-left: 0; }
  .meter + .meter { border-top: 1px solid var(--rule); margin-top: 20px; }
  .day { grid-template-columns: minmax(0, 1fr); }
  .day-h { padding: 16px 0 4px; }
  .day-h .mono { display: inline; margin-left: 6px; }
  .brief-row summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; }
  .brief-row .cat { grid-column: 1 / -1; }
  .brief-row .plus { grid-row: 2; grid-column: 2; }
  .row-body { padding: 0 0 20px; }
  .terms { columns: 1; }
  .search, .search input { width: 100%; }
  .sec-head .search { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  :root { --gut: 18px; }
  .mast-top { justify-content: center; text-align: center; }
  .mast-right { justify-content: center; }
  .chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; width: calc(100% + 2 * var(--gut)); max-width: calc(100% + 2 * var(--gut)); margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .story { border-left: 0 !important; padding-left: 0; padding-right: 0; }
  .story:nth-child(n+2) { border-top: 1px solid var(--rule); }
  .lib-list { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .ev, .ev:nth-child(3n+1) { border-left: 0; padding-left: 0; padding-right: 0; }
  .stat { padding: 18px 14px 20px; }
  .stat:nth-child(even) { padding-right: 0; }
  .val { font-size: 27px; }
  .val small { font-size: 12px; margin-left: 4px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pb-head { flex-wrap: wrap; }
  .d-mempool { grid-template-columns: minmax(0, 1fr); }
  .mp-arrow { max-width: none; }
  .dia { padding: 18px; }
  .mp-pool .mp-grid { max-width: 260px; }
  .mp-block { max-width: 130px; }
  .t { padding: 10px 16px; }
}
/* Pagehive ad + powered by (Pagehive brand: honey #F6B93B, ink #17140F, Bricolage 800, Instrument Sans, Sora 700 wordmark) */
@font-face { font-family: "PH Bricolage"; src: url("/files/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "PH Sora"; src: url("/files/sora-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PH Instrument"; src: url("/files/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
.ph-ad { padding-top: 40px; padding-bottom: 48px; background: linear-gradient(var(--rule), var(--rule)) center bottom / calc(100% - 2 * var(--gut)) 1px no-repeat; }
.ad-label { font: 600 10.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-bottom: 12px; }
.ph-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; background: #F6B93B; color: #17140F; text-decoration: none; padding: 32px 40px; }
.ph-card:hover { color: #17140F; }
.ph-lockup { display: inline-flex; align-items: center; gap: 0.36em; font: 700 22px/1 "PH Sora", "Sora", var(--sans); color: #17140F; letter-spacing: -0.02em; }
.ph-mark { width: 1.15em; height: 1.15em; flex: none; display: block; }
.ph-h { font: 800 clamp(28px, 3vw, 40px)/1.05 "PH Bricolage", "Bricolage Grotesque", var(--sans); letter-spacing: -0.045em; margin-top: 18px; text-wrap: balance; }
.ph-p { font: 400 16px/1.55 "PH Instrument", "Instrument Sans", var(--sans); color: #17140F; margin-top: 10px; max-width: 60ch; }
.ph-side { display: grid; justify-items: end; gap: 14px; }
.ph-comb { display: block; width: 104px; }
.ph-comb svg { display: block; width: 100%; height: auto; fill: none; stroke: #E2A12A; stroke-width: 1.4; }
.ph-addr { font: 500 13px/1 "Geist Mono", var(--mono); color: #6B4A00; white-space: nowrap; }
.ph-btn { display: inline-block; background: #17140F; color: #FFFDF7; font: 600 15px/1 "PH Instrument", "Instrument Sans", var(--sans); padding: 14px 22px; white-space: nowrap; }
.ph-card:hover .ph-btn { background: #2A251C; }
.foot-pw { margin-top: 40px; padding-top: 28px; background: linear-gradient(#2A251C, #2A251C) center top / calc(100% - 2 * var(--gut)) 1px no-repeat; display: flex; justify-content: center; }
.ph-pw { display: inline-flex; align-items: center; gap: 12px; background: #F6B93B; color: #17140F; text-decoration: none; padding: 10px 16px; }
.ph-pw:hover { color: #17140F; background: #F6B93B; }
.ph-pw-t { font: 400 13px/1 "PH Instrument", "Instrument Sans", var(--sans); }
.ph-pw .ph-lockup { font-size: 18px; }
@media (max-width: 720px) {
  .ph-card { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 22px; }
  .ph-side { justify-items: start; grid-template-columns: auto auto; align-items: center; justify-content: space-between; }
  .ph-comb { display: none; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.foot-by { margin-top: 10px; font-size: 13px; opacity: .75; }
.foot-by a { white-space: nowrap; }

/* ===== featured article ===== */
.feature { padding-top: 8px; padding-bottom: 56px; }
.ft-in { padding: 24px 0 8px; display: grid; gap: 12px; max-width: 920px; margin: 0 auto; text-align: center; }
.ft-in .kicker { justify-self: center; }
.ft-h { font: 650 clamp(30px, 3.6vw, 46px)/1.08 var(--serif); letter-spacing: -0.025em; }
.ft-h a { color: inherit; text-decoration: none; }
.ft-h a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ft-in .dek { max-width: 46ch; margin: 0 auto; }
.ft-body { font: 400 18px/1.65 var(--serif); color: var(--ink-2); max-width: 62ch; margin: 4px auto 0; text-align: left; }
.ft-in .src { justify-self: center; }
.owner-warn { margin-top: 18px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--down); background: #fbeceb; color: var(--ink); font-size: 14px; }
.owner-warn b { color: var(--down); margin-right: 6px; }
.lead-tag.is-sched { background: var(--paper-2); }
.lead-tag.is-private { background: none; color: var(--down); box-shadow: inset 0 0 0 1px var(--down); }
.res-list.feat-list { margin-top: 0; border-top: 0; }
.ft-in.has-img { max-width: none; text-align: left; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 44px; align-items: center; }
.ft-in.has-img .ft-text { display: grid; gap: 12px; align-content: center; }
.ft-in.has-img .kicker, .ft-in.has-img .src { justify-self: start; }
.ft-in.has-img .dek { margin: 0; max-width: none; }
.ft-in.has-img .ft-body { margin: 4px 0 0; }
.ft-img { display: block; border: 1px solid var(--rule); }
.feature.is-next { padding-top: 0; }
.feature.is-next .ft-in { border-top: 1px solid var(--rule); padding-top: 48px; }
.feature.is-flip .ft-in.has-img { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature.is-flip .ft-img { order: -1; }
@media (max-width: 980px) { .feature.is-flip .ft-in.has-img { grid-template-columns: minmax(0, 1fr); } }
.ft-img img, .art-fig img { display: block; width: 100%; height: auto; }
.art-fig { margin: 26px 0 0; }
.art-body .art-fig { margin: 26px 0; }
.art-body + .art-fig { margin-top: 26px; }
.fig-credit { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fig-credit a { color: inherit; }
.art-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.art-sources { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.art-sources ol { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.art-sources a { color: var(--burnt); }
@media (max-width: 980px) { .ft-in.has-img { grid-template-columns: minmax(0, 1fr); gap: 20px; } .ft-img { order: -1; } }
@media (max-width: 720px) { .ft-in { text-align: left; } .ft-in .kicker, .ft-in .src { justify-self: start; } .ft-in .dek { margin: 0; } }

/* ===== front page: Background list under the lead ===== */
/* The block takes no height of its own: it fills whatever space the sidebar leaves and shows only whole items (overflowing items wrap into a hidden second column). */
.front .lead { display: flex; flex-direction: column; }
.lead-more { flex: 1 1 0; min-height: 0; position: relative; }
.lm-in { position: absolute; inset: 0; display: flex; flex-direction: column; }
.lm-list { flex: 1 1 0; min-height: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; overflow: hidden; }
.lm-item { width: 100%; flex: none; }
.lm-item:first-child { padding-top: 40px; }
.lm-title { border-top: 2px solid var(--ink); padding: 14px 0 4px; }
.lm-title span { color: var(--ink-3); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 13px; }
.lm-link { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.lm-item:first-child .lm-link { border-top: 0; }
.lm-d { font-size: 12px; color: var(--burnt); font-weight: 600; white-space: nowrap; }
.lm-h { font: 400 17px/1.4 var(--serif); }
.lm-link:hover .lm-h { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 980px) { .lead-more { display: none; } }

/* ===== multi-page additions ===== */
.is-hidden { display: none !important; }
.lead-h a, .story-h a { color: inherit; text-decoration: none; }
.lead-h a:hover, .story-h a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more { font-weight: 600; text-decoration: none; }
.src-sep { padding: 0 8px; color: var(--rule); }
.btn-line { display: inline-block; font: 600 14px/1.2 var(--sans); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 3px; white-space: nowrap; }
.btn-line:hover { color: var(--burnt); }
.more-line { margin-top: 24px; }
.lib-all { margin-top: 18px; font-size: 14px; }
.chart-empty { margin-top: 14px; padding: 28px 16px; border: 1px dashed var(--rule); color: var(--ink-3); font-size: 14px; text-align: center; }

.mast.is-small { padding: 14px 0 12px; }
.mast.is-small .mast-top { padding-bottom: 8px; }
.mast.is-small .wordmark { font-size: clamp(30px, 4.2vw, 50px); margin: 10px 0 0; }

.bar-links a.is-on { border-bottom-color: var(--ink); }
.bar-search { margin-left: auto; flex: none; display: flex; align-items: center; border: 1px solid var(--rule); background: var(--card); height: 34px; }
.bar-search input { width: 170px; border: 0; background: none; height: 100%; padding: 0 10px; font: 400 14px var(--sans); color: var(--ink); outline: none; min-width: 0; }
.bar-search button { width: 34px; height: 100%; border: 0; border-left: 1px solid var(--rule); background: none; display: grid; place-items: center; }
.bar-search svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.bar-search:focus-within { border-color: var(--ink); }

.cards-1 { grid-template-columns: minmax(0, 1fr); }
.cards-1 .story { max-width: 760px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-0 { display: none; }

.row-link { display: grid; grid-template-columns: 96px minmax(0, 1fr) 24px; gap: 16px; align-items: baseline; padding: 15px 0; color: var(--ink); text-decoration: none; }
.row-link:hover .row-h { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.row-link .arrow { justify-self: end; color: var(--ink-3); }
.row-link:hover .arrow { color: var(--burnt); }
.row-main { display: grid; gap: 4px; min-width: 0; }
.row-dek { font: italic 400 15px/1.4 var(--serif); color: var(--ink-2); }
.lead-tag { font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--orange); color: var(--ink); padding: 3px 5px; margin-right: 8px; vertical-align: 3px; }
.day-h a { color: inherit; text-decoration: none; }
.day-h a:hover { color: var(--burnt); }

.page { padding-top: 40px; padding-bottom: 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); }
.page-h { font: 650 clamp(36px, 4.6vw, 60px)/1.02 var(--serif); letter-spacing: -0.03em; }
.page-sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.chips-links .chip { text-decoration: none; color: var(--ink); }
.chips-links .chip.is-on { color: var(--paper); }
.chips-links .chip .mono { font-size: 11px; opacity: .7; margin-left: 4px; }

.archive .day { border-bottom: 1px solid var(--rule); }
.archive .day:first-child .day-h { padding-top: 6px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; }
.pager a { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); }
.pager .is-off { color: var(--rule); }
.months { margin-top: 48px; }
.months ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.months li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; white-space: nowrap; }
.months .mono { color: var(--ink-3); }

.edition-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.ed-title { font: 400 17px/1.3 var(--serif); text-align: center; }
.ed-title b { font-weight: 600; }
.ed-prev, .ed-next { font: 600 14px/1.2 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; }
.ed-next { justify-self: end; }
.ed-prev:hover, .ed-next:hover { color: var(--burnt); }
.chg-day { font: 600 14px/1.3 var(--sans); text-align: right; }
.chg-day span { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.explain-one { padding-top: 40px; padding-bottom: 48px; }
.explain-one .xp { display: block; margin-top: 14px; }
.ed-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.ed-month { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ed-month ul { list-style: none; margin: 10px 0 0; padding: 0; }
.ed-month a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--paper-2); }
.ed-month a:hover { color: var(--burnt); }
.ed-count { color: var(--ink-3); font-size: 12px; white-space: nowrap; }

.article-page { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0 48px; }
.article { max-width: 720px; }
.crumbs { font: 600 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--burnt); text-decoration: none; }
.crumbs span { color: var(--rule); }
.art-h { margin-top: 14px; font: 650 clamp(34px, 4.4vw, 56px)/1.05 var(--serif); letter-spacing: -0.03em; }
.art-dek { font-size: clamp(19px, 1.9vw, 23px); }
.art-body { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.art-body p { font: 400 19px/1.7 var(--serif); }
.art-body p + p { margin-top: 18px; }
.art-body p:first-child::first-letter { float: left; font: 700 4.2em/0.8 var(--serif); margin: 6px 10px 0 0; }
.art-src { margin-top: 20px; }
.art-side { border-left: 1px solid var(--rule); padding-left: 32px; align-self: start; position: sticky; top: 70px; }
.art-side .h-sm + .side-list { margin-top: 10px; }
.side-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--ink); }
.side-list li { border-bottom: 1px solid var(--rule); }
.side-list a { display: grid; gap: 3px; padding: 11px 0; color: var(--ink); text-decoration: none; font: 500 16px/1.35 var(--serif); }
.side-list a:hover { color: var(--burnt); }
.side-list .mono { font: 600 11px/1.3 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.side-list .muted { padding: 11px 0; color: var(--ink-3); font-size: 14px; }

.pb-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.logbtn { background: none; border: 1px solid var(--ink); padding: 6px 11px; font: 600 12px/1.2 var(--mono); white-space: nowrap; }
.logbtn.is-on { background: var(--ink); color: var(--paper); }
.mk-chart .plot { height: 340px; }
.mk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-top: 2px solid var(--ink); }
.mk-stats > div { padding: 18px 20px 20px; border-left: 1px solid var(--rule); }
.mk-stats > div:first-child { border-left: 0; padding-left: 0; }
.mk-stats .val { font-size: clamp(24px, 2.4vw, 32px); }
.mk-network, .mk-years, .mk-table { margin-top: 56px; }
.mk-network .h-sec, .mk-years .h-sec, .mk-table .h-sec { margin-bottom: 18px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.mk-card { padding: 18px 22px 8px; border-left: 1px solid var(--rule); min-width: 0; }
.mk-card:first-child { border-left: 0; padding-left: 0; }
.mk-card .plot { height: 180px; }
.tbl-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font: 600 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 12px 12px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl .r { text-align: right; }
.tbl-link { font-size: 13px; font-weight: 600; text-decoration: none; }

.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-bottom: 40px; }
.toc a { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font: 600 17px/1.3 var(--serif); }
.toc a:hover { color: var(--burnt); }
.toc .mono { font: 600 12px/1 var(--mono); color: var(--burnt); }
.learn-list .xp { display: block; padding: 40px 0; border-top: 2px solid var(--ink); scroll-margin-top: 70px; }

.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; }
.letters a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font: 600 15px/1 var(--serif); }
.letters a:hover { border-color: var(--ink); }
.gloss-full .letter { display: grid; grid-template-columns: 80px minmax(0, 1fr); border-top: 2px solid var(--ink); scroll-margin-top: 70px; }
.letter-h { font: 650 40px/1 var(--serif); color: var(--burnt); padding-top: 14px; }
.gloss-full dl { margin: 0; columns: 2; column-gap: 40px; column-rule: 1px solid var(--rule); }
.terms-mini { columns: 2; }
.gloss-home .tod { position: static; }

.tl-full { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.tl-y { font: 650 44px/1 var(--serif); letter-spacing: -0.03em; color: var(--burnt); }
.tl-d { font-size: 12px; color: var(--ink-3); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.tl-d em { font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; font-style: normal; background: var(--orange); color: var(--ink); padding: 4px 6px; }
.tl-t b { display: block; font: 650 22px/1.25 var(--serif); margin-top: 4px; }
.tl-t p:last-child { margin-top: 6px; color: var(--ink-2); max-width: 70ch; }

.big-search { display: flex; margin: 22px 0 6px; max-width: 720px; border: 2px solid var(--ink); background: var(--card); }
.big-search input { flex: 1; min-width: 0; border: 0; background: none; height: 54px; padding: 0 16px; font: 400 19px var(--serif); color: var(--ink); outline: none; }
.big-search button { border: 0; background: var(--ink); color: var(--paper); padding: 0 22px; font: 600 15px var(--sans); }
.res { margin-top: 36px; }
.res .h-sm .mono { color: var(--ink-3); margin-left: 6px; }
.res-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.res-list li { border-bottom: 1px solid var(--rule); }
.res-list a { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 14px 0; color: var(--ink); text-decoration: none; align-items: baseline; }
.res-list a:hover .row-h { text-decoration: underline; }
.res-list .row-h { font: 500 19px/1.3 var(--serif); }
.res-terms { margin: 12px 0 0; columns: 2; column-gap: 40px; border-top: 2px solid var(--ink); }

@media (max-width: 1180px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-search input { width: 120px; }
}
@media (max-width: 980px) {
  .article-page { grid-template-columns: minmax(0, 1fr); }
  .art-side { border-left: 0; padding-left: 0; position: static; margin-top: 40px; }
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-card, .mk-card:first-child { border-left: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--rule); }
  .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .months ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-in { gap: 14px; }
}
@media (max-width: 720px) {
  .bar-links { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 24px; }
  .bar-links::-webkit-scrollbar { display: none; }
  .bar-search input { width: 0; padding: 0; }
  .bar-search:focus-within input { width: 130px; padding: 0 10px; }
  .row-link { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; }
  .row-link .cat { grid-column: 1 / -1; }
  .row-link .arrow { grid-row: 2; grid-column: 2; }
  .gloss-full .letter { grid-template-columns: minmax(0, 1fr); }
  .gloss-full dl, .terms-mini, .res-terms { columns: 1; }
  .letter-h { font-size: 30px; padding-bottom: 4px; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tl-y { font-size: 34px; }
  .res-list a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .edition-nav { grid-template-columns: 1fr 1fr; }
  .ed-title { grid-column: 1 / -1; grid-row: 1; }
  .mk-chart .plot { height: 240px; }
}
@media (max-width: 600px) {
  .cards-2, .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .toc, .ed-index { grid-template-columns: minmax(0, 1fr); }
  .mk-stats > div { padding: 14px 12px 16px; }
  .mk-stats > div:nth-child(even) { padding-right: 0; }
  .pb-tools { justify-content: flex-start; }
  .page-h { font-size: 36px; }
}

/* ===== newspaper justification ===== */
/* Running prose only (summaries, article and feature bodies, explainers, Why it matters, definitions). Headlines, deks, lists, briefs, captions and interface text stay ragged. Hyphenation (html lang="en") keeps word gaps even in narrow columns. */
.lead-body, .story-body, .ft-body, .art-body p, .xp-body p, .why p, .tod-d, .term dd, .ev-t p, .tl-t p:last-child, .row-body {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 6 3 3;
}
.lead-body { max-width: none; }

/* ===== front page: current features, two columns ===== */
/* Each .fcol spans 6 row tracks (kicker, title, dek, first paragraph, image, link) so both columns line up. An odd last feature (.is-wide) spans the row: text left, image right. */
.feats { padding-top: 56px; padding-bottom: 56px; background: linear-gradient(var(--rule), var(--rule)) center bottom / calc(100% - 2 * var(--gut)) 1px no-repeat; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.fcol { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 24px 32px 8px 0; min-width: 0; }
.fcol:nth-child(even) { padding: 24px 0 8px 32px; border-left: 1px solid var(--rule); }
.fcol:nth-child(n+3) { border-top: 1px solid var(--rule); padding-top: 32px; }
.fcol > .kicker { grid-row: 1; }
.fcol > .ft-h { grid-row: 2; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; }
.fcol > .dek { grid-row: 3; margin-top: 10px; font-size: clamp(17px, 1.5vw, 19px); }
.fcol > .ft-body { grid-row: 4; margin: 14px 0 0; max-width: none; font-size: 17px; align-self: start; }
.fcol > .ft-img { grid-row: 5; margin-top: 22px; align-self: start; }
.fcol > .src { grid-row: 6; margin-top: 16px; }
.fcol.is-wide { grid-column: 1 / -1; grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 44px; align-content: center; padding-left: 0; padding-right: 0; border-left: 0; }
.fcol.is-wide > .ft-img { grid-column: 2; grid-row: 1 / span 6; align-self: center; margin: 0; }
.fcol.is-wide > :not(.ft-img) { grid-column: 1; }
@media (max-width: 980px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .fcol, .fcol:nth-child(even) { padding: 24px 0 8px; border-left: 0; }
  .fcol:nth-child(n+2) { border-top: 1px solid var(--rule); padding-top: 32px; }
  .fcol.is-wide { grid-template-columns: minmax(0, 1fr); }
  .fcol.is-wide > .ft-img { grid-column: 1; grid-row: 5; margin: 22px 0 0; }
}

/* ===== edit icons + edit modal (only rendered for canedit: owner and members with role edit or higher; partials roles, edbtn, foot; /scripts/edit.js) ===== */
.ed-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 8px; padding: 0; vertical-align: middle; border: 1px solid var(--rule); border-radius: 50%; background: var(--card); color: var(--ink-3); cursor: pointer; opacity: .75; transition: opacity .15s, color .15s, border-color .15s; }
.ed-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ed-btn:hover, .ed-btn:focus-visible { opacity: 1; color: var(--burnt); border-color: var(--burnt); outline: none; }
/* The pencil sits in the top-right corner of its block (Ben, Nov 24). In the HTML it stays inside the heading; the block is the positioning box. .tod keeps its own sticky/static position except on the front page. */
.story, .lead, .fcol, .article, .xp, .term, .tl-item, .ev, .brief, .gloss-home .tod { position: relative; }
.story .ed-btn, .lead .ed-btn, .fcol .ed-btn, .article .ed-btn, .xp .ed-btn, .term .ed-btn, .tod .ed-btn, .tl-item .ed-btn, .ev .ed-btn, .brief .ed-btn { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 2; }
.term .ed-btn, .tl-item .ed-btn, .ev .ed-btn, .brief .ed-btn { width: 22px; height: 22px; }
.term .ed-btn svg, .tl-item .ed-btn svg, .ev .ed-btn svg, .brief .ed-btn svg { width: 12px; height: 12px; }
.brief .ed-btn { top: 18px; }
.ed-dlg { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(18,18,18,.25); }
.ed-dlg::backdrop { background: rgba(18,18,18,.45); }
.ed-in { padding: 20px 24px 16px; }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 16px; }
.ed-title { font: 600 22px/1.2 var(--serif); }
.ed-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.ed-x:hover { color: var(--ink); }
.ed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ed-f { grid-column: 1 / -1; display: grid; gap: 5px; align-content: start; }
.ed-f.is-half { grid-column: auto; }
.ed-f.is-check { display: flex; align-items: center; gap: 8px; }
.ed-l { font: 500 12px/1.4 var(--sans); color: var(--ink-2); }
.ed-f input:not([type=checkbox]):not([type=file]), .ed-f textarea, .ed-f select { width: 100%; box-sizing: border-box; font: 400 15px/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 8px 10px; }
.ed-f textarea { font-family: var(--serif); font-size: 16px; resize: vertical; text-align: left; hyphens: manual; }
.ed-f input:focus, .ed-f textarea:focus, .ed-f select:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.ed-f input[type=file] { font: 400 13px/1.4 var(--sans); }
.ed-thumb { width: 100%; max-width: 220px; border: 1px solid var(--rule); border-radius: 3px; }
.ed-note { font-size: 12px; color: var(--ink-3); }
.ed-loading { grid-column: 1 / -1; color: var(--ink-3); margin: 0; }
.ed-imgs { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 4px; }
.ed-imgs-h { font: 600 18px/1.3 var(--serif); margin: 0 0 4px; }
.ed-img { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 12px 0 0; padding: 12px 14px 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); }
.ed-img.is-new { border-style: dashed; }
.ed-img-h { grid-column: 1 / -1; margin: 0; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--burnt); }
.ed-img-acts { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.ed-img-acts .ed-b { padding: 8px 14px; font-size: 13px; }
.ed-b.is-del { background: transparent; color: var(--down); border-color: var(--down); }
.ed-b.is-del:hover { background: var(--down); color: var(--paper); border-color: var(--down); }
@media (max-width: 640px) { .ed-img { grid-template-columns: 1fr; } }
.ed-msg { min-height: 1.4em; margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.ed-msg.is-bad { color: var(--down); }
.ed-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; position: sticky; bottom: 0; background: var(--paper); padding: 10px 0 4px; }
.ed-sp { flex: 1; }
.ed-b { font: 600 14px/1 var(--sans); padding: 10px 18px; border-radius: 3px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.ed-b:hover { background: var(--burnt); border-color: var(--burnt); }
.ed-b.is-line { background: transparent; color: var(--ink); }
.ed-b.is-line:hover { background: transparent; color: var(--burnt); }
.ed-b.is-pub { background: var(--burnt); border-color: var(--burnt); }
.ed-b.is-pub:hover { background: var(--ink); border-color: var(--ink); }
.ed-b:disabled { opacity: .55; cursor: progress; }
.ed-who { margin: 10px 0 0; font: 400 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
@media (max-width: 640px) { .ed-fields { grid-template-columns: 1fr; } .ed-in { padding: 16px; } }

/* live price (scripts/live.js) */
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f7931a; margin: 0 0 1px 6px; vertical-align: middle; animation: lv-pulse 2s ease-in-out infinite; }
.live-dot[hidden], .live-tag[hidden] { display: none; }
.live-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #b4540a; }
.live-tag .live-dot { margin: 0; }
#tk-price, #price-now { transition: color .6s ease; }
.lv-up { color: #1f7a4d !important; transition: none !important; }
.lv-dn { color: #b42318 !important; transition: none !important; }
#tk-price:not(.lv-up):not(.lv-dn), #price-now:not(.lv-up):not(.lv-dn) { transition: color .6s ease; }
@keyframes lv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ===== manage area (/manage, /manage/log; partials mgnav, wlrow) ===== */
.mg-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--rule); margin: 4px 0 28px; }
.mg-tabs a { font: 500 15px/44px var(--sans); color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mg-tabs a:hover { color: var(--ink); }
.mg-tabs a.is-on { color: var(--ink); border-bottom-color: var(--orange); font-weight: 600; }
.st-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 14px; }
.st-none { font-size: 13.5px; font-style: italic; color: var(--ink-3); padding: 12px 0; }
.mg-more { font: 500 13px/1 var(--sans); text-decoration: none; }
.wl-filter { margin: 0 0 18px; }
.wl-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.wl-list.is-compact { border-top: 0; }
.wl-item { border-bottom: 1px solid var(--rule); }
.wl-item summary { list-style: none; display: grid; grid-template-columns: 110px 112px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 0; cursor: pointer; }
.wl-item summary::-webkit-details-marker { display: none; }
.wl-item .no-more summary { cursor: default; }
.wl-when { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.wl-kind { font: 600 10.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--burnt); white-space: nowrap; }
.wl-kind.k-mistake, .wl-kind.k-correction { color: var(--down); }
.wl-title { font: 500 17px/1.35 var(--serif); color: var(--ink); }
.wl-item summary:hover .wl-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wl-item .no-more summary:hover .wl-title { text-decoration: none; }
.wl-st { font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; font-style: normal; padding: 3px 5px; margin-left: 6px; vertical-align: 2px; background: var(--paper-2); color: var(--ink-2); }
.wl-item.is-failed .wl-st { background: var(--down); color: var(--paper); }
.wl-who { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.wl-more { padding: 0 0 16px 250px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 980px; }
.wl-more p + p { margin-top: 8px; }
.wl-ref a { font: 500 13px/1 var(--mono); }
@media (max-width: 720px) {
  .wl-item summary { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .wl-title { grid-column: 1 / -1; grid-row: 2; }
  .wl-who { grid-column: 1 / -1; grid-row: 3; }
  .wl-more { padding-left: 0; }
}
