/* The Pith (filesunwrapped.com/pith): the journal's landing page and its articles. Pages load
   home.css for the site's layout, menu, Get Peel section and footer, then this file. Rules are
   scoped to .pith-* containers so home.css's large headings and section spacing stay outside. */

/* ---------- Page hero (landing and articles) ---------- */
.pith-hero { padding-bottom: 24px; }
.pith-hero .eyebrow { margin-bottom: 4px; }
.pith-hero h1 { margin: 14px 0 16px; }
.pith-hero .lede { max-width: 34em; }
.pith-head h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; max-width: 16em; }
.pith-head .lede { font-size: clamp(19px, 2.1vw, 23px); color: var(--ink); max-width: 32em; }

/* ---------- Landing: filters and the essay grid ---------- */
.pith-journal { padding: 16px 24px 72px; }
.pith-topics { margin: 0 0 28px; }
.pith-topics ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pith-topics li { margin: 0; }
.pith-topics button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 15px/1 var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.pith-topics button:hover { border-color: var(--accent); }
.pith-topics button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-strong); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.cards li { margin: 0; }
.cards a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .35s var(--spring), box-shadow .3s, border-color .3s; }
.cards a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cards a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.cards img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card-meta { margin: 0; color: var(--muted); font: 700 12.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.card-meta b { color: var(--accent); font-weight: 700; }
.cards h3 { margin: 0; font: 400 22px/1.15 var(--display); }
.cards .card-dek { margin: 0; color: var(--muted); font-size: 16px; }
.cards .card-time { margin: auto 0 0; padding-top: 4px; color: var(--muted); font-size: 14px; }
.cards a:hover h3 { color: var(--accent-strong); }
.cards .lead { grid-column: span 2; }
.cards .lead a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.cards .lead img { height: 100%; aspect-ratio: auto; min-height: 280px; }
.cards .lead .card-body { justify-content: center; padding: 28px; }
.cards .lead h3 { font-size: clamp(28px, 3vw, 38px); }
.cards .lead .card-dek { font-size: 18px; }
.cards .lead .card-time { margin-top: 8px; }
[data-topic][hidden] { display: none; }
.pith-journal .status { margin: 20px 0 0; color: var(--muted); }
.pith-journal .status:empty { display: none; }
/* With the lead card spanning two columns, a count that leaves the last card alone on its row
   makes that card a full-width bookend instead (three-column layout only). */
@media (min-width: 961px) {
  .cards li:last-child:nth-child(3n) { grid-column: 1 / -1; }
  .cards li:last-child:nth-child(3n) a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .cards li:last-child:nth-child(3n) img { height: 100%; aspect-ratio: auto; min-height: 260px; }
  .cards li:last-child:nth-child(3n) .card-body { justify-content: center; padding: 28px; }
  .cards li:last-child:nth-child(3n) h3 { font-size: clamp(26px, 2.6vw, 34px); }
}
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .lead { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards .lead a { grid-template-columns: minmax(0, 1fr); }
  .cards .lead img { min-height: 0; aspect-ratio: 16 / 9; }
  .cards .lead .card-body { padding: 18px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .cards a, .pith-topics button { transition: none; } .cards a:hover { transform: none; } }

/* ---------- Article: a single reading column ---------- */
.pith-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(200px, 250px); grid-template-areas: "body aside"; gap: 0 56px; align-items: start; padding-bottom: 24px; }
.pith-body { grid-area: body; min-width: 0; font-size: 18px; line-height: 1.7; }
.pith-aside { grid-area: aside; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.pith-body section { padding: 0; }
.pith-body h2 { font: 400 clamp(26px, 3vw, 34px)/1.15 var(--display); margin: 48px 0 12px; scroll-margin-top: 24px; }
.pith-body h3 { font: 700 20px/1.3 var(--sans); margin: 28px 0 8px; }
.pith-body p, .pith-body li, .pith-body dd, .pith-body figcaption { text-wrap: pretty; }
.pith-body p { margin: 0 0 18px; }
.pith-body a { color: var(--accent); text-underline-offset: .18em; }
.pith-body ul, .pith-body ol { padding-left: 24px; margin: 0 0 18px; }
.pith-body li { margin: 6px 0; }
.pith-body code { font: 500 .86em/1.4 var(--mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: .08em .35em; overflow-wrap: anywhere; }
.pith-body pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 20px; overflow-x: auto; font-size: 15px; line-height: 1.55; }
.pith-body pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
.pith-body blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font: 400 clamp(22px, 2.4vw, 26px)/1.3 var(--display); color: var(--ink); }
.pith-body blockquote p { margin: 0; }
.pith-meta { margin: 20px 0 0; color: var(--muted); font-size: 15.5px; }
.pith-meta a { color: inherit; font-weight: 700; }
.pith-head .pith-cover { max-width: 760px; margin: 28px 0 8px; }
.pith-aside .toc { margin: 0; padding: 2px 0 2px 18px; border-left: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.pith-aside .toc h2 { margin: 0 0 10px; font: 700 12.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pith-aside .toc ul { list-style: none; margin: 0; padding: 0; }
.pith-aside .toc li { margin: 0; }
.pith-aside .toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; }
.pith-aside .toc a:hover { color: var(--ink); }
.pith-aside .toc a[aria-current="location"] { color: var(--accent); font-weight: 700; }
@media (max-width: 1000px) {
  .pith-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "body"; }
  .pith-aside { position: static; max-height: none; overflow: visible; margin-bottom: 32px; }
  .pith-aside .toc { padding: 16px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .pith-aside .toc ul { columns: 2 230px; column-gap: 28px; }
  .pith-aside .toc li { break-inside: avoid; }
  .pith-aside .toc a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
}
.pith-body dl { margin: 12px 0 0; }
.pith-body dd { margin: 0; }

/* ---------- Figures, tables, maths, code ---------- */
.figure { margin: 28px 0; }
.figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.figure figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; }
.refs { font-size: 16px; }
.pith-body var { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
[data-topic][hidden] { display: none; }
.pith-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.pith-body th, .pith-body td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pith-body th { font-weight: 700; border-bottom-width: 2px; }
.pith-body .table-wrap { overflow-x: auto; }
.pith-body math { font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", math; }
.pith-body math[display="block"] { margin: 18px 0; font-size: 1.15em; overflow-x: auto; overflow-y: hidden; }
.figure.chart svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; color: var(--ink); }
.weights { padding: clamp(18px, 4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.weights-eyebrow { margin: 0; font: 700 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.weights-title { margin: 8px 0 4px; font: 400 clamp(24px, 4vw, 32px)/1.15 var(--display); }
.weights-sub { margin: 0; color: var(--muted); }
.weights-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.weights-presets button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.weights-presets button[aria-pressed="true"] { background: var(--button); border-color: var(--button); color: var(--on-button); }
.weights-control { display: block; margin: 16px 0 0; }
.weights-control > span { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; }
.weights-control output, .weights-result output { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.weights-control input { width: 100%; min-height: 32px; margin: 4px 0 0; accent-color: var(--accent); cursor: pointer; }
.weights-help { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.weights-bar { display: flex; height: 10px; margin-top: 16px; border-radius: 4px; overflow: hidden; }
.weights-bar > div { transition: width .18s ease; }
.weights-bar [data-weight="ratio"], .weights-legend .ratio { background: #d95a23; }
.weights-bar [data-weight="compression"], .weights-legend .compression { background: #8b70bb; }
.weights-bar [data-weight="decompression"], .weights-legend .decompression { background: var(--ink); }
.weights-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.weights-legend span { display: inline-flex; align-items: center; gap: 6px; }
.weights-legend i { width: 9px; height: 9px; border-radius: 2px; }
.weights-results { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.weights-result { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; margin-bottom: 16px; font-weight: 600; }
.weights-result output { font-size: 28px; line-height: 1; }
.weights-track { grid-column: 1 / -1; position: relative; height: 16px; border-radius: 4px; background: var(--line); overflow: hidden; }
.weights-fill { height: 100%; border-radius: 4px; transition: width .2s ease; }
.weights-fill.a { background: #d95a23; }
.weights-fill.b { background: #8b70bb; }
.weights-baseline { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--ink); opacity: .6; }
.weights-axis { display: flex; justify-content: space-between; color: var(--muted); font: 12px var(--mono); }
.weights-outcome { margin: 16px 0 0; font-weight: 600; }
.weights figcaption { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .weights-bar > div, .weights-fill { transition: none; } }
.pith-figure { --pf-orange: #d95a23; --pf-purple: #8b70bb; padding: clamp(18px, 4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font-size: 16px; }
.pf-kicker { margin: 0; font: 700 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.pf-title { margin: 8px 0 12px; font: 400 clamp(24px, 4vw, 32px)/1.15 var(--display); }
.pf-label { margin: 0 0 4px; font-weight: 700; }
.pith-figure label { display: block; margin: 14px 0; font-weight: 600; }
.pith-figure input[type="range"] { display: block; width: 100%; min-height: 32px; accent-color: var(--accent); cursor: pointer; }
.pith-figure input[type="checkbox"] { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; accent-color: var(--accent); }
.pith-figure select { min-height: 40px; margin-left: 6px; padding: 0 10px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.pith-figure output { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pf-big { font: 400 32px/1.2 var(--display); color: var(--accent-strong); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.pf-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; margin-top: 8px; }
.pf-cell { padding: 6px 2px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); font: 13px var(--mono); text-align: center; }
.pf-cell.pf-missing { border: 1px dashed var(--pf-orange); color: var(--accent-strong); }
.pith-figure svg { display: block; width: 100%; max-width: 640px; height: auto; margin: 12px auto; }
.pith-figure svg .pf-grid { stroke: var(--line); stroke-width: 1; }
.pith-figure svg .pf-axis { font-size: 10px; fill: var(--muted); }
.pith-figure svg .pf-curve { fill: none; stroke: var(--pf-orange); stroke-width: 2.5; }
.pith-figure svg .pf-marker { stroke: var(--pf-purple); stroke-dasharray: 4 4; }
.pith-figure svg .pf-dot { fill: var(--pf-purple); }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 16px 0; }
.pf-stats span { display: block; font-size: 14px; color: var(--muted); }
.pf-stats strong { font: 400 26px/1.2 var(--display); }
.pf-bits { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin: 12px 0; }
.pf-bit { padding: 4px 0; border-radius: 3px; color: #fff; font: 13px var(--mono); text-align: center; }
.pf-bit-0, .pf-payload { background: var(--pf-orange); }
.pf-bit-1, .pf-dict { background: var(--pf-purple); }
.pf-original { background: var(--muted); }
.pf-bar { display: flex; height: 20px; margin: 6px 0 14px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pf-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--muted); font-size: 14px; }
.pf-key span { display: inline-block; width: 10px; height: 10px; margin-right: -8px; border-radius: 2px; }
.pith-figure [data-result] { font-weight: 600; }
.pith-figure .pf-caption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 420px) { .pf-bits { grid-template-columns: repeat(8, 1fr); } }
.pf-checks { margin: 8px 0; padding: 0; border: 0; }
.pf-checks label { margin: 6px 0; }
.pf-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pf-buttons button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pf-buttons button[aria-pressed="true"] { background: var(--button); border-color: var(--button); color: var(--on-button); }
.pf-c-init { background: var(--pf-purple); }
.pf-c-prep { background: var(--muted); }
.pf-c-comp { background: var(--pf-orange); }
.pf-c-final { background: #5b8f86; }
.pf-off { background: color-mix(in srgb, var(--muted) 30%, transparent); }
.pf-verdict { margin: 12px 0 0; font-weight: 700; }
.pith-figure svg .pf-ideal { stroke: var(--muted); stroke-dasharray: 4 4; }
.pith-figure svg polyline.pf-curve { fill: none; stroke: var(--pf-orange); stroke-width: 3; }
.pith-figure svg .pf-dot-a { fill: var(--pf-orange); }
.pith-figure svg .pf-dot-b { fill: var(--pf-purple); }
.pith-figure svg .pf-mark-a { stroke: var(--pf-orange); stroke-width: 2; stroke-dasharray: 4 3; }
.pith-figure svg .pf-mark-b { stroke: var(--pf-purple); stroke-width: 2; stroke-dasharray: 4 3; }
.pf-flow { list-style: none; margin: 8px 0 0; padding: 0; }
.pf-flow li { position: relative; margin: 0 0 26px; }
.pf-flow li:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); color: var(--accent-strong); }
.pf-flow span { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); text-align: center; font-size: 15px; color: var(--muted); }
.pf-flow strong { display: block; color: var(--ink); }
.pf-flow-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 420px) { .pf-flow-inputs { grid-template-columns: 1fr; } }
.pith-figure svg .pf-c-comp { fill: var(--pf-orange); }
.pith-figure svg .pf-c-init { fill: var(--pf-purple); }
.pith-figure svg .pf-c-final { fill: #5b8f86; }
.pith-figure svg .pf-c-off { fill: color-mix(in srgb, var(--muted) 55%, transparent); }
.pith-figure svg .pf-point { font-size: 12px; fill: var(--ink); }
.pith-figure svg .pf-front { fill: none; stroke: var(--pf-orange); stroke-dasharray: 5 4; }
.pith-figure svg .pf-budget { fill: var(--pf-orange); opacity: .1; }
.pith-figure svg .pf-solid { stroke-dasharray: none; }
.pf-note { margin: 8px 0; color: var(--muted); font-size: 14px; }
.pith-figure table { margin: 12px 0; font-size: 15px; }
.pf-z-header { background: #dca36d; }
.pith-figure svg .pf-layer-box { fill: color-mix(in srgb, var(--pf-orange) 12%, var(--bg)); stroke: var(--pf-orange); }
.pith-figure svg .pf-layer-text { font-size: 16px; fill: var(--ink); }
.pith-figure svg .pf-layer-on { font-size: 16px; fill: #fff; }
.pith-figure svg .pf-c-comp, .pith-figure svg .pf-c-init { stroke: none; }
.pf-zipbar { height: 32px; }
.pf-zipbar button { height: 100%; min-width: 0; padding: 0; border: 0; border-right: 1px solid var(--bg-2); cursor: pointer; }
.pf-zipbar button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: -3px; }
.pith-figure select { min-width: 220px; }
.pf-hex { max-height: 300px; margin: 8px 0; padding: 14px; overflow: auto; border-radius: 8px; background: #29231e; color: #f8f2e7; font: 12px/1.8 var(--mono); white-space: pre; }
.pf-files { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-bottom: 12px; }
.pf-file { padding: 8px 0; border-radius: 3px; background: var(--line); color: var(--ink); font: 12px var(--mono); text-align: center; }
.pf-file.pf-c-comp, .pf-file.pf-c-init { color: #fff; }

:root { --tk-key: #a63c07; --tk-str: #6b4c8c; --tk-num: #2f6f66; --tk-com: #7a6450; --tk-fn: #2a1a0e; --tk-op: #7a6450; }
@media (prefers-color-scheme: dark) { :root { --tk-key: #ff9f5c; --tk-str: #c9b3ea; --tk-num: #8fcfc3; --tk-com: #b9a28a; --tk-fn: #f7ead9; --tk-op: #b9a28a; } }
pre.sourceCode { position: relative; }
pre.sourceCode:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sourceCode .kw, .sourceCode .cf, .sourceCode .im, .sourceCode .sc { color: var(--tk-key); }
.sourceCode .kw, .sourceCode .cf, .sourceCode .im { font-weight: 600; }
.sourceCode .st, .sourceCode .ss, .sourceCode .ch, .sourceCode .vs { color: var(--tk-str); }
.sourceCode .dv, .sourceCode .fl, .sourceCode .bn, .sourceCode .cn { color: var(--tk-num); }
.sourceCode .co, .sourceCode .do, .sourceCode .cv { color: var(--tk-com); font-style: italic; }
.sourceCode .bu, .sourceCode .fu, .sourceCode .ex { color: var(--tk-fn); font-weight: 600; }
.sourceCode .op, .sourceCode .ot { color: var(--tk-op); }
a.tok-doc { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a.tok-doc:hover, a.tok-doc:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 3px; }
.tok-tip { position: absolute; z-index: 50; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); font-size: 14px; line-height: 1.45; }
.tok-tip code { display: block; margin-bottom: 4px; padding: 0; border: 0; background: none; font-size: 13px; color: var(--tk-key); overflow-wrap: anywhere; }
@media print { .tok-tip { display: none; } a.tok-doc { text-decoration: none; } }
.pf-ops { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 12px 0; padding: 0; }
.pf-ops li { margin: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 15px; }
.pf-ops .pf-op-ok { border-color: #5b8f86; }
.pf-ops .pf-op-no { border-color: var(--pf-orange); }
.ref { font-size: .72em; vertical-align: super; line-height: 0; text-decoration: none; }
.pf-chain { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0; padding: 0; }
.pf-chain li { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.pf-chain li[data-missing] { border: 1px dashed var(--pf-orange); background: none; }
.pf-chain label { display: flex; gap: 8px; margin: 0; padding: 10px; font-weight: 400; font-size: 15px; cursor: pointer; }
.pf-chain strong { display: block; }
.pf-hashes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.pf-hashes div { padding: 10px; border-radius: 8px; background: var(--bg); min-width: 0; }
.pf-hashes dd { margin: 4px 0 0; color: inherit; }
.pf-hashes mark { background: color-mix(in srgb, var(--pf-orange) 35%, transparent); color: inherit; }
.pf-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.pf-progress progress { width: min(100%, 12rem); accent-color: var(--accent); }
.pf-progress button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pith-figure .pf-checks label { font-weight: 400; }
@media (max-width: 530px) { .pf-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-hashes { grid-template-columns: 1fr; } }
.pf-details details { border-top: 1px solid var(--line); }
.pf-details details:last-child { border-bottom: 1px solid var(--line); }
.pf-details summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.pf-details details p { margin: 0 0 12px; }
.pf-lanes { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin: 12px 0; }
.pf-lanes dt { font-weight: 700; }
.pf-lanes dd { margin: 0; color: inherit; }
.pf-lanes code { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 0; border: 0; background: none; }
.pf-lanes code span, .pf-lanes code mark { min-width: 1.6em; padding: 4px 0; border-radius: 3px; background: var(--bg); text-align: center; }
.pf-lanes code mark { background: var(--pf-orange); color: #fff; }
.pf-buttons button:disabled { opacity: .45; cursor: not-allowed; }
.pf-intervals { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin: 14px 0; font-weight: 700; font-size: 15px; }
.pf-interval { position: relative; display: flex; height: 30px; border-radius: 4px; overflow: hidden; }
.pf-interval > div { display: grid; place-items: center; color: #fff; font-size: 14px; transition: width .2s ease; }
.pf-interval i { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .pf-interval > div { transition: none; } }

/* ---------- Read next: a hand-picked essay at the end of each article ---------- */
.pith-next { padding: 8px 24px 72px; }
.pith-next a { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr) auto; align-items: center; gap: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .35s var(--spring), box-shadow .3s, border-color .3s; }
.pith-next a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pith-next a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pith-next img { display: block; width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.pith-next-text { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; }
.pith-next-label { color: var(--muted); font: 700 12.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pith-next-title { font: 400 clamp(26px, 3vw, 36px)/1.1 var(--display); }
.pith-next a:hover .pith-next-title { color: var(--accent-strong); }
.pith-next-why { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 36em; }
.pith-next-arrow { padding-right: 28px; color: var(--accent); font-size: 32px; transition: transform .3s var(--spring); }
.pith-next a:hover .pith-next-arrow { transform: translateX(4px); }
@media (max-width: 760px) {
  .pith-next a { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pith-next img { min-height: 0; aspect-ratio: 16 / 9; }
  .pith-next-text { padding: 20px 22px 24px; }
  .pith-next-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pith-next a, .pith-next-arrow { transition: none; } .pith-next a:hover, .pith-next a:hover .pith-next-arrow { transform: none; } }
