/* Article: what a grinding throughput model learned. Shared tokens and the header, footer, contents row, chips and buttons come from /site.css. */

/* cover: the article's core in its tray */
.tray { margin-top: clamp(8px, 2vw, 20px); }
.tray .ticks {
  height: 12px;
  background:
    repeating-linear-gradient(to right, rgb(var(--ink) / .55) 0 1px, transparent 1px 60px) left bottom / 100% 12px no-repeat,
    repeating-linear-gradient(to right, rgb(var(--ink) / .28) 0 1px, transparent 1px 12px) left bottom / 100% 6px no-repeat;
}
.tray .cover { display: block; width: 100%; height: clamp(84px, 15vw, 150px); object-fit: cover; background: rgb(var(--sand-light)); }
.traymeta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 10px 0 0; }
.traymeta b { color: rgb(var(--brand)); font-weight: 600; }
.tagrow { margin-top: 12px; }

.opening { padding: clamp(28px, 6vw, 60px) 0 clamp(8px, 2vw, 20px); }
.opening h1 { margin: 0; max-width: 21ch; font-size: clamp(31px, 5.8vw, 62px); line-height: 1.02; letter-spacing: -.038em; font-weight: 700; text-wrap: balance; }
.intro { margin: 10px 0 0; max-width: 40ch; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.34; letter-spacing: -.012em; font-weight: 500; }
.intro mark { background: none; color: rgb(var(--brand)); white-space: nowrap; }
.facts { list-style: none; margin: clamp(26px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 28px; border-top: 1px solid rgb(var(--ink)); }
.facts li { padding: 14px 0 16px; border-bottom: 1px solid rgb(var(--ink) / .14); font-size: 15px; line-height: 1.45; }
.facts li span { display: block; margin-bottom: 4px; }

section.block > h2 { max-width: 22ch; }
.lede, .intro, .facts li, .says, .pair p, .checks li, .plotcap { text-wrap: pretty; }   /* no lone last word on a phone */
.says { margin: 18px 0 0; max-width: 62ch; padding-left: 14px; border-left: 3px solid rgb(var(--brand)); font-size: clamp(15.5px, 1.9vw, 17.5px); line-height: 1.5; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px 44px; margin-top: clamp(22px, 4vw, 36px); }
.pair h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.pair p { margin: 0 0 12px; max-width: 46ch; color: rgb(var(--ink) / .78); font-size: 15.5px; }


/* the figure panels */
.plot picture, .plot img, .plot svg { display: block; width: 100%; height: auto; }
.plotcap { max-width: 62ch; font-size: 13.5px; line-height: 1.45; color: rgb(var(--ink) / .68); }
.trend { margin-top: clamp(22px, 4vw, 36px); border: 1px solid rgb(var(--ink) / .16); background: #fff; }
.trend-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 11px clamp(12px, 2.4vw, 20px); background: rgb(var(--ink)); color: rgb(var(--paper)); }
.tagname, .readout { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tagname { color: rgb(var(--paper) / .72); }
.readout { color: rgb(var(--coral)); }
.plot { padding: clamp(6px, 1.6vw, 14px); }
.trend .plotcap { margin: 0; padding: 0 clamp(12px, 2.4vw, 20px) 14px; }

.controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 28px; padding: 14px clamp(12px, 2.4vw, 20px) 4px; }
.controls[hidden] { display: none; }
.ctl { display: grid; gap: 8px; }
.ctl.wide { flex: 1 1 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 9px 15px; border: 1px solid rgb(var(--ink) / .25); border-radius: 999px; background: transparent; color: inherit; font: 600 13px/1 var(--mono); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chips button:hover { border-color: rgb(var(--ink)); }
.chips button[aria-pressed="true"] { background: rgb(var(--brand)); border-color: rgb(var(--brand)); color: #fff; }
.chips button:focus-visible, input[type="range"]:focus-visible { outline: 2px solid rgb(var(--brand)); outline-offset: 3px; }
.ctl output { color: rgb(var(--brand)); font-weight: 600; }
input[type="range"] { width: 100%; height: 34px; margin: 0; accent-color: rgb(var(--brand)); cursor: pointer; }

/* 04: the checks */
.checks { list-style: none; counter-reset: c; margin: clamp(20px, 4vw, 34px) 0 0; padding: 0; border-top: 1px solid rgb(var(--ink)); }
.checks li { counter-increment: c; display: grid; grid-template-columns: clamp(44px, 8vw, 76px) 1fr; padding: 16px 0; border-bottom: 1px solid rgb(var(--ink) / .14); color: rgb(var(--ink) / .76); font-size: 15.5px; }
.checks li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font: 500 13px/1.7 var(--mono); color: rgb(var(--brand)); }
.checks b { display: block; color: rgb(var(--ink)); font-size: clamp(17px, 2.4vw, 21px); letter-spacing: -.012em; font-weight: 600; }

/* method and sources */
.method .pair p b { color: rgb(var(--ink)); }
.refs { margin: 18px 0 0; padding-left: 1.4em; max-width: 72ch; font-size: 14px; line-height: 1.5; color: rgb(var(--ink) / .74); }
.refs li { margin-bottom: 8px; padding-left: 4px; }
.refs a { color: rgb(var(--brand)); overflow-wrap: anywhere; }

.cta { margin-top: clamp(44px, 9vw, 96px); padding: clamp(24px, 5vw, 52px); background: rgb(var(--ink)); color: rgb(var(--paper)); }
.cta .label { color: rgb(var(--paper) / .72); }
.cta h2 { margin: 8px 0 0; max-width: 20ch; font-size: clamp(26px, 4.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.cta p { margin: 14px 0 22px; max-width: 44ch; color: rgb(var(--paper) / .72); }
.cta .btn { background: rgb(var(--brand)); color: #fff; }
.cta .btn:hover { background: rgb(var(--coral)); color: rgb(var(--ink)); }

/* between phone and desktop the phone figures are used, kept to a size where their text reads at 12 px or more */
@media (min-width: 601px) and (max-width: 760px) { .plot picture, .plot svg { max-width: 460px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .chips button { transition: none; } }

/* 01: the six steps that rebuild the file */
.recipe { margin-top: clamp(22px, 4vw, 36px); padding: clamp(16px, 3.4vw, 28px) clamp(16px, 3.4vw, 32px) 12px; background: rgb(var(--ink)); color: rgb(var(--paper)); }
.recipe ol { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.recipe li { counter-increment: s; display: grid; grid-template-columns: 2.4em minmax(6.5em, 9em) 1fr; gap: 0 12px; padding: 7px 0; border-bottom: 1px solid rgb(var(--paper) / .12); font: 500 14px/1.45 var(--mono); }
.recipe li::before { content: counter(s, decimal-leading-zero); color: rgb(var(--coral)); }
.recipe b { color: rgb(var(--coral)); font-weight: 600; }
.recipe span { color: rgb(var(--paper) / .86); }
.recipe > p { margin: 12px 0 0; color: rgb(var(--paper) / .62); }

/* 05: what this file shows against each piece of evidence */
.evidence .verdict { grid-column: 2; display: block; margin-top: 6px; font: 600 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--brand)); }
.evidence .verdict::before { content: "✗ "; }
.repo { margin: 18px 0 0; max-width: 62ch; font-size: 14.5px; color: rgb(var(--ink) / .7); }
.repo a { color: rgb(var(--brand)); }

@media (max-width: 600px) {
  .recipe li { grid-template-columns: 2.2em 1fr; font-size: 13.5px; }
  .recipe li span { grid-column: 2; }
}
