/* The pages built on templates/site/page.html (how it works, the full method, methodology, developers, the case
   studies, test results, the forms and the fallback front page): their own pieces, in the watercolour style.
   Loaded after watercolour.css, which gives the paper, Newsreader, the night band, the bar, the buttons and the
   section headings. Colour carries verdicts only: indigo for what held up, sienna for what did not, stone between.
   Status glyphs: the fill of a circle is the claim's scoring weight. */

:root {
  --kept: #2A3A78;
  --kept-soft: rgba(42, 58, 120, 0.11);
  --missed: #9E3F26;
  --missed-soft: rgba(158, 63, 38, 0.11);
  --mixed: #444B5E;
  --none: #6A7083;
  --none-soft: rgba(29, 34, 50, 0.07);
  --card: rgba(247, 241, 227, 0.72);
  --sunk: rgba(29, 34, 50, 0.05);
  --rule-2: rgba(29, 34, 50, 0.32);
  --solid: #F4EFE4;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --gs: 14px;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
p { text-wrap: pretty; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 21px; }
.h3 { font-size: 23px; line-height: 29px; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.h4 { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-ink); }
.quote { font-style: italic; font-size: 19px; line-height: 29px; text-wrap: pretty; }
.inj { font-family: var(--mono); font-size: 13px; }

/* ---------- the night band on these pages ---------- */
.page-h1 { font-size: clamp(44px, 5.6vw, 68px); line-height: 1.04; max-width: 17ch; text-wrap: balance; }
.night-lede { margin: 20px 0 0; max-width: 640px; font-size: 20px; line-height: 30px; color: var(--cream-2); text-wrap: pretty; }
.crumb a { color: inherit; text-underline-offset: 4px; }
.crumb a:hover { color: var(--cream); }
.crumb span { margin: 0 8px; opacity: 0.7; }

/* ---------- layout ---------- */
.wrap { max-width: calc(1000px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.sec { max-width: none; margin: 0; padding: 72px 0 8px; }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 40px; }
.sec-head .h2 { margin: 0; }
.sec-head .muted { font-size: 19px; line-height: 29px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.list-note { margin-top: 20px; font-size: 15px; line-height: 23px; color: var(--ink-3); }
.list-note a { margin-left: 6px; color: var(--ink-2); }
.list-note .mk-flag { margin: 0 6px 0 2px; }

/* ---------- status glyphs: fill = how much of the claim held up ---------- */
.g {
  --c: var(--ink-3);
  display: inline-block; flex: none; position: relative;
  width: var(--gs); height: var(--gs); border-radius: 50%;
  border: 1.5px solid var(--c); background: transparent; vertical-align: -0.12em;
}
.g-true   { --c: var(--kept); background: var(--c); }
.g-mtrue  { --c: var(--kept); background: conic-gradient(var(--c) 0 75%, transparent 0); }
.g-mixed  { --c: var(--mixed); background: conic-gradient(var(--c) 0 50%, transparent 0); }
.g-mfalse { --c: var(--missed); background: conic-gradient(var(--c) 0 25%, transparent 0); }
.g-false  { --c: var(--missed); }
.g-late   { --c: var(--missed); background: radial-gradient(circle, var(--c) 0 28%, transparent 31%); }
.g-unres  { --c: var(--none); border-style: dashed; }
.g-unres::after { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--c); border-radius: 1px; }
.g-pending { --c: var(--ink-3); border-style: dotted; }
.g-lg { --gs: 22px; border-width: 2px; }
.g-lg.g-unres::after { height: 2px; margin-top: -1px; }
.g-md { --gs: 18px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 3px 12px 3px 8px; border-radius: 9999px;
  font-size: 15px; line-height: 22px; font-weight: 600; background: var(--sunk); color: var(--ink);
}
.chip.k { background: var(--kept-soft); }
.chip.m { background: var(--missed-soft); }
.chip.n { background: var(--none-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { font-size: 14px; font-weight: 500; }

/* ---------- long pages: contents on the left, sections on the right ---------- */
.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px 64px; align-items: start; padding-top: 64px; padding-bottom: 88px; }
.doc-solo { max-width: calc(760px + 2 * var(--gutter)); padding-top: 64px; padding-bottom: 88px; }
.toc { position: sticky; top: 24px; font-size: 15px; line-height: 21px; border-top: 1px solid var(--rule); padding-top: 14px; }
.toc p { margin-bottom: 8px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-ink); }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.dsec { display: grid; gap: 20px; padding: 48px 0; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.dsec:first-child { border-top: 0; padding-top: 0; }
.dsec > .h2 { margin: 0; font-size: 40px; line-height: 1.06; }
.dsec .h3 { margin-top: 4px; }
.prose { display: grid; gap: 14px; max-width: 700px; color: var(--ink-2); font-size: 18px; line-height: 29px; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose .lead { color: var(--ink); font-size: 21px; line-height: 31px; }
.bul { display: grid; gap: 12px; max-width: 700px; color: var(--ink-2); font-size: 18px; line-height: 28px; }
.bul li { position: relative; padding-left: 24px; }
.bul li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-ink); }
.bul b { color: var(--ink); font-weight: 600; }

/* a boxed note: what is not checked, the one statement that verdicts are automated */
.aside-note { display: grid; gap: 10px; max-width: 720px; padding: 20px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); color: var(--ink-2); }
.aside-note b { color: var(--ink); font-weight: 600; }

/* inline code and code blocks */
code { font-family: var(--mono); font-size: 0.82em; background: rgba(29, 34, 50, 0.06); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
pre code, .code code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; color: inherit; }
pre { font-family: var(--mono); font-size: 13.5px; line-height: 22px; }
.formula { font-family: var(--mono); font-size: 15px; line-height: 23px; background: var(--night); color: var(--cream); border-radius: 12px; padding: 12px 16px; overflow-x: auto; }

/* claim types, tools: cards on the paper */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.type, .tool { display: grid; gap: 8px; align-content: start; padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.type h3 { font-size: 23px; line-height: 29px; font-weight: 500; }
.type p, .tool p { color: var(--ink-2); font-size: 16px; line-height: 25px; }
.type b { color: var(--ink); font-weight: 600; }

/* a numbered sequence */
.flow { display: grid; max-width: 720px; }
.flow li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 20px; position: relative; padding-bottom: 28px; }
.flow li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--rule-2); }
.flow li:last-child::before { display: none; }
.flow li:last-child { padding-bottom: 0; }
.flow .fn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative; font-size: 20px; font-weight: 500; color: var(--gold-ink); border: 1px solid var(--rule-2); background: var(--solid); }
.flow h3 { font-size: 22px; line-height: 28px; font-weight: 500; padding-top: 6px; }
.flow p { color: var(--ink-2); margin-top: 4px; }
.flow-code > li > div { display: grid; gap: 12px; align-content: start; min-width: 0; }
.flow-code p { margin-top: 0; }

/* the six answers */
.key { display: grid; gap: 26px; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.key.flat { padding: 28px; }
.key-head { display: grid; gap: 6px; }
.key-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.key-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.key-list li { display: grid; gap: 6px; align-content: start; font-size: 16px; line-height: 23px; }
.key-list .g { margin-bottom: 6px; }
.key-list b { font-weight: 600; }
.key-list span:not(.g) { color: var(--ink-2); }
.key-more { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; font-size: 16px; }
.cases + .key-more { margin-top: 28px; }

/* the worked score */
.worked { display: grid; gap: 18px; max-width: 720px; padding: 28px 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.worked h3 { font-size: 23px; line-height: 29px; font-weight: 500; }
.worked ol { display: grid; gap: 10px; }
.worked ol { counter-reset: w; }
.worked ol li { counter-increment: w; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.worked ol li::before { content: counter(w); font-size: 20px; font-weight: 500; color: var(--gold-ink); }
.worked .sc-row { grid-template-columns: 120px 64px minmax(0, 1fr); }

/* tables on these pages: wrap long cells */
.tbl-wrap { max-width: 820px; }
.tbl caption { text-align: left; caption-side: top; padding-bottom: 10px; font-size: 15px; color: var(--ink-3); }
.tbl tbody th { text-align: left; font-weight: 600; font-size: 15px; color: var(--ink); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl td.num, .tbl th.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- scores: a point on a 0 to 100 line, with its range ---------- */
.sc-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; margin-bottom: 56px; }
.sc-intro li { display: grid; gap: 18px; align-content: start; }
.sc-intro p { font-size: 21px; line-height: 30px; color: var(--ink); }
.sc-demo .sc-scale { width: 100%; max-width: 360px; }
.sc-list { display: grid; border-top: 1.5px solid var(--ink); }
.sc { display: grid; gap: 14px; padding: 22px 0 26px; border-bottom: 1px solid var(--rule); }
.sc-sent { color: var(--ink-2); max-width: 720px; }
.sc-row { display: grid; grid-template-columns: 150px 64px minmax(0, 1fr) 170px; gap: 12px 24px; align-items: center; }
.sc-name { font-weight: 600; }
.sc-num { font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }
.sc-scale { position: relative; display: block; height: 32px; }
.sc-scale::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1.5px; background: var(--rule-2); }
.sc-band { position: absolute; top: 3px; height: 16px; left: var(--a); right: calc(100% - var(--b)); background: rgba(232, 183, 90, 0.3); border: 1px solid rgba(176, 122, 30, 0.45); border-radius: 9999px; }
.sc-pt { position: absolute; top: 3px; left: var(--x); width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--solid); }
.sc-lo, .sc-hi { position: absolute; top: 21px; left: var(--x); transform: translateX(-50%); font-size: 13px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sc-meta { justify-self: start; }

/* ---------- developers ---------- */
.code { max-width: 720px; border-radius: 14px; overflow: hidden; background: var(--night); color: var(--cream); }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px 7px 16px; border-bottom: 1px solid rgba(247, 241, 227, 0.12); font-size: 14px; line-height: 20px; color: var(--cream-2); }
.copy { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--cream); border: 0; border-radius: 9999px; padding: 3px 12px; cursor: pointer; }
.copy:hover { background: #fff; }
.code pre { margin: 0; padding: 14px 18px 16px; border-radius: 0; background: none; overflow-x: auto; tab-size: 2; }
.eps { display: grid; max-width: 820px; border-top: 1.5px solid var(--ink); }
.eps li { display: grid; grid-template-columns: 64px minmax(0, 260px) minmax(0, 1fr); gap: 6px 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.verb { justify-self: start; font-family: var(--mono); font-size: 12px; line-height: 18px; font-weight: 600; padding: 0 8px; border-radius: 9999px; background: var(--night); color: var(--cream); }
.eps code { background: none; padding: 0; font-size: 14px; color: var(--ink); }
.eps span:last-child { color: var(--ink-2); font-size: 16px; line-height: 24px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool code { background: none; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; border-top: 1px solid var(--rule); }
.facts > div { display: grid; gap: 4px; align-content: start; padding: 16px 18px 18px 0; }
.facts > div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.facts dt { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.facts dd { font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; }
.facts dd small { display: block; margin-top: 2px; font-size: 15px; line-height: 22px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }

/* ---------- the full method and methodology: published text as prose ---------- */
.method-body { max-width: 720px; }
.method-body h2 { margin-top: 32px; font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); scroll-margin-top: 16px; }
.method-body h3 { margin-top: 14px; font-size: 22px; line-height: 28px; font-weight: 500; color: var(--ink); }
.method-body ul, .method-body ol { display: grid; gap: 8px; padding-left: 1.3rem; }
.method-body ul { list-style: disc; }
.method-body ol { list-style: decimal; }
.method-body li::marker { color: var(--gold-ink); }
.method-body pre { overflow-x: auto; }
.method-body a { overflow-wrap: anywhere; }
.method-body .tbl-wrap { margin-top: 4px; }
.methodology > h2:first-of-type { margin-top: 24px; }
/* the published release's charts of the method's limits (templates/site/release_limits.html) */
.limits { margin-top: 32px; }
.limits-sec { margin-top: 44px; }
.limits-sec h3 { margin: 6px 0 0; font-size: 26px; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.limits-sec .lede { font-size: 18px; line-height: 27px; }
.limits-sec .callout .big { font-size: 64px; }

/* ---------- case studies: the cards ---------- */
.cases, .cs-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cs-sec { padding-top: 64px; }
.cs-index { padding-bottom: 32px; }
.case { position: relative; display: grid; gap: 10px; align-content: start; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.cs-index .case { border-bottom: 0; padding: 0; }
.case .h3 a { text-decoration: none; }
.case .h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.case .h3 a:hover { text-decoration: underline; }
.case:has(a:hover) .case-go { color: var(--ochre-ink); }
.case:has(a:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 8px; border-radius: 20px; }
.case .h3 a:focus-visible { outline: none; }
.cs-index .h3 { font-size: 26px; line-height: 32px; }
.case-aud { margin-top: 6px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-ink); }
.case-go { margin-top: 4px; font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.strip { position: relative; height: 128px; margin-bottom: 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.cs-index .strip { height: 168px; }
.strip-seoul { display: grid; align-content: center; gap: 9px; padding: 0 28px; }
.cs-index .strip-seoul { gap: 12px; }
.strip-seoul > span { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.strip-years .yline { position: absolute; left: 32px; right: 32px; top: 52px; height: 1.5px; background: var(--rule-2); }
.strip-years .yg, .strip-years .ylab { position: absolute; left: calc(32px + (100% - 64px) * var(--x)); }
.strip-years .yg { top: 52px; }
.yg { transform: translate(-50%, -50%); display: flex; padding: 2px; border-radius: 50%; background: var(--solid); }
.ylab { position: absolute; top: 76px; transform: translateX(-50%); font-size: 13px; color: var(--ink-3); }
.strip-dots .yd { position: absolute; top: 52px; left: calc(32px + (100% - 64px) * var(--x)); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ink-3); }
.cs-index .strip-years .yline, .cs-index .strip-years .yg, .cs-index .strip-dots .yd { top: 70px; }
.cs-index .ylab { top: 96px; }

/* ---------- case studies: the pieces ---------- */
.close { padding-bottom: 72px; }
.close-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 48px; border-top: 1px solid var(--rule); }
.close .h2 { margin: 0; max-width: 18ch; font-size: 44px; }
.close-text { display: grid; gap: 12px; max-width: 640px; }
.close-text .lede { margin: 0; }

.c-hero { padding-top: 64px; }
.c-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.c-text { display: grid; gap: 10px; max-width: 560px; color: var(--ink-2); font-size: 18px; line-height: 28px; }
.c-text p + .c-k { margin-top: 18px; }
.c-k { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-ink); }
.promise { display: grid; gap: 14px; padding: 28px 30px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.promise .quote p { font-size: 22px; line-height: 32px; color: var(--ink); }
.promise figcaption { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.p-track { position: relative; height: 62px; margin-top: 6px; }
.p-line { position: absolute; left: 0; right: 0; top: 10px; height: 1.5px; background: var(--rule-2); }
.p-line::before, .p-line::after { content: ""; position: absolute; top: -8px; width: 2px; height: 18px; background: var(--ink-3); }
.p-line::before { left: 0; }
.p-line::after { right: 0; width: 3px; background: var(--ink); }
.p-a, .p-b { position: absolute; top: 28px; display: grid; font-size: 14px; line-height: 19px; color: var(--ink-2); }
.p-a { left: 0; } .p-b { right: 0; text-align: right; }
.p-track b { color: var(--ink); font-weight: 600; }

.metr-facts { display: grid; gap: 10px; max-width: 720px; margin-bottom: 20px; padding-left: 1.2em; list-style: disc; font-size: 18px; line-height: 28px; color: var(--ink-2); }
.metr-facts li::marker { color: var(--gold-ink); }
.metr-facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* filters: pills driven by radio inputs, no script */
.filters { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters legend { float: left; margin-right: 6px; padding: 0; font-size: 15px; color: var(--ink-3); }
.filters label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 14px; border-radius: 9999px;
  font-size: 15px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--rule-2);
}
.filters label:hover { color: var(--ink); background: rgba(29, 34, 50, 0.04); }
.filters input:checked + label { background: var(--night); color: var(--cream); border-color: var(--night); }
.filters input:checked + label .g { --c: currentColor; }
.filters input:focus-visible + label { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.found:has(#f-true:checked)   .co:not([data-v="true"]),
.found:has(#f-mtrue:checked)  .co:not([data-v="mtrue"]),
.found:has(#f-mfalse:checked) .co:not([data-v="mfalse"]),
.found:has(#f-false:checked)  .co:not([data-v="false"]),
.found:has(#f-unres:checked)  .co:not([data-v="unres"]) { display: none; }

/* rows that open: companies, outcomes, predictions */
.co-list, .oc-list { border-top: 1.5px solid var(--ink); }
.co, .oc, .mk { border-bottom: 1px solid var(--rule); }
.co summary, .oc > details > summary, .mk-sum { list-style: none; cursor: pointer; border-radius: 10px; }
.co summary::-webkit-details-marker, .oc summary::-webkit-details-marker, .mk-sum::-webkit-details-marker { display: none; }
.co summary:hover, .oc > details > summary:hover, .mk-sum:hover { background: rgba(232, 183, 90, 0.12); }
.co summary { display: grid; grid-template-columns: 180px 180px minmax(0, 1fr) 28px; gap: 8px 24px; align-items: center; padding: 14px 8px; }
.co-name { font-weight: 600; font-size: 18px; }
.co-short { color: var(--ink-2); font-size: 16px; line-height: 23px; }
.co-tog { position: relative; justify-self: end; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-2); }
.co-tog::before, .co-tog::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink-2); transform: translate(-50%, -50%); }
.co-tog::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s var(--e); }
details[open] > summary .co-tog::after, .mk[open] .co-tog::after { transform: translate(-50%, -50%) rotate(0deg); }
details[open] > summary .co-tog, .mk[open] .co-tog { background: var(--night); border-color: var(--night); }
details[open] > summary .co-tog::before, details[open] > summary .co-tog::after,
.mk[open] .co-tog::before, .mk[open] .co-tog::after { background: var(--cream); }
.co-body, .oc-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px 48px; padding: 10px 8px 30px 212px; }
.co-body .h4, .oc-body .h4, .mk-body h4 { margin-bottom: 8px; }
.co-why p { max-width: 640px; }
.co-ev { display: grid; gap: 4px; align-content: start; justify-items: start; }
.evid { display: grid; gap: 8px; margin-bottom: 12px; }
.evid li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 21px; }
.ev-n { padding-top: 1px; font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.ev-d { display: block; color: var(--ink-3); }
.evid a { overflow-wrap: anywhere; }
.flag { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.flag-i, .mk-flag { flex: none; width: 9px; height: 9px; border: 1.5px solid var(--gold-ink); transform: rotate(45deg); }
.mk-flag { display: inline-block; margin-left: 2px; }
.more { margin-top: 12px; font-size: 16px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.more p { margin-top: 8px; color: var(--ink-2); }

/* the comparison, read in steps */
.cmp-sec { background: rgba(235, 228, 212, 0.55); padding-bottom: 72px; margin-top: 56px; }
.cmp-steps { display: grid; gap: 48px; max-width: 920px; }
.cmp-steps > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
.step-n { font-size: 40px; line-height: 1; font-weight: 500; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.cs-body { display: grid; gap: 12px; }
.cs-lead { max-width: 680px; font-size: 22px; line-height: 31px; color: var(--ink); text-wrap: pretty; }
.cmp-wrap { overflow-x: auto; margin-top: 6px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 23px; }
.cmp th, .cmp td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cmp thead th { font-size: 13px; font-weight: 600; color: var(--ink-3); border-bottom: 1.5px solid var(--ink); }
.cmp tbody th { width: 26%; padding-top: 12px; font-weight: 600; }
.cmp tbody th a { text-decoration: none; }
.cmp tbody th a:hover { text-decoration: underline; }
.cmp td { width: 30%; }
.cmp td:last-child { width: 44%; }
.cmp.nd th:first-child { width: 96px; }
.cmp.nd td { width: auto; }
.cmp.nd td:nth-child(3), .cmp.nd td:nth-child(4) { width: 170px; }
.cmp.nd .mk-q { display: table-cell; -webkit-line-clamp: unset; }
.mnote { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.runs, .product-run { display: grid; gap: 12px; max-width: 920px; }
.runs { margin-bottom: 48px; }
.product-run { margin-top: 64px; }
.runs p, .product-run p, .shows p { max-width: 700px; }
.shows { display: grid; gap: 12px; max-width: 920px; margin-top: 64px; padding: 28px 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.big-n { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.big-n small { display: block; margin-top: 8px; font-size: 17px; line-height: 24px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }

/* Ørsted: the timeline */
.tl-mob { display: none; }
.tl { position: relative; --lab: 250px; --chip: 160px; }
.tl-axis, .tl-grid { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) calc(var(--chip) + 52px); gap: 0 24px; }
.tl-axis { padding: 0 8px 10px; }
.tl-years { position: relative; height: 20px; font-size: 14px; color: var(--ink-3); }
.tl-years span { position: absolute; left: var(--x); transform: translateX(-50%); }
.tl-grid { position: absolute; inset: 30px 8px 0; pointer-events: none; }
.tl-lines { position: relative; }
.tl-lines i { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--rule); }
.oc-list { position: relative; }
.oc > details > summary { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) var(--chip) 28px; gap: 8px 24px; align-items: center; padding: 16px 8px; }
.oc-title { display: grid; gap: 2px; }
.oc-title b { font-size: 18px; line-height: 24px; font-weight: 600; }
.oc-title > span { font-size: 14px; color: var(--ink-3); }
.oc-track { position: relative; height: 28px; }
.oc-line { position: absolute; top: 50%; left: var(--a); right: calc(100% - var(--b)); height: 1.5px; margin-top: -0.75px; background: var(--ink-3); }
.oc-over { position: absolute; top: 50%; left: var(--a); right: calc(100% - var(--b)); margin-top: -1px; border-top: 2px dashed var(--missed); }
.oc-moved { position: absolute; left: var(--x); top: -12px; transform: translateX(-100%); white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--missed); }
.oc-said { position: absolute; left: var(--x); top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink-3); }
.oc-g { position: absolute; left: var(--x); top: 50%; transform: translate(-50%, -50%); display: flex; padding: 3px; border-radius: 50%; background: var(--solid); }
.oc-v { justify-self: start; }
.oc-body { padding-left: calc(var(--lab) + 32px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.oc-q { grid-column: 1 / -1; max-width: 720px; }
.oc-q p { font-size: 21px; line-height: 31px; }
.oc-q footer, .tc-quote footer { margin-top: 6px; font-style: normal; font-size: 14px; color: var(--ink-3); }
.oc-why p { max-width: 560px; }

/* Musk: the predictions */
.mk-tl { --c1: 84px; --c3: 190px; --c4: 130px; --c5: 130px; }
.mk-head, .mk-sum { display: grid; grid-template-columns: var(--c1) minmax(0, 1fr) var(--c3) var(--c4) var(--c5) 28px; gap: 8px 20px; align-items: center; }
.mk-head { padding: 0 8px 10px; font-size: 14px; color: var(--ink-3); border-bottom: 1.5px solid var(--ink); }
.mk-years { position: relative; height: 18px; }
.mk-years span { position: absolute; left: var(--x); transform: translateX(-50%); }
.mk-list { position: relative; }
.mk-sum { padding: 12px 8px; }
.mk-said { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.mk-q { font-style: italic; font-size: 16px; line-height: 23px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-track { position: relative; height: 24px; }
.mk-track::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--rule); }
.mk-v { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 600; }
.mk-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 48px; padding: 8px 8px 26px calc(var(--c1) + 28px); }
.mk-body .quote { grid-column: 1 / -1; max-width: 760px; font-size: 20px; line-height: 30px; }
.mk-body .mk-more { grid-column: 1 / -1; max-width: 760px; }
.mk-body .mk-more p { margin: 8px 0 12px; color: var(--ink-2); }
.mk-body dl { display: grid; gap: 8px; }
.mk-body dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; font-size: 16px; line-height: 23px; }
.mk-body dt { font-size: 14px; color: var(--ink-3); }

/* ---------- forms ---------- */
.form-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px 96px; align-items: start; padding-top: 64px; padding-bottom: 88px; }
.form-side { display: grid; gap: 16px; max-width: 460px; color: var(--ink-2); font-size: 18px; line-height: 28px; }
.form-card { display: grid; gap: 20px; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.form-card .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.field { display: grid; gap: 6px; }
.field label, .field legend, .choice legend { font-weight: 600; font-size: 16px; }
.field .hint { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.input { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: rgba(255, 252, 244, 0.85); border: 1px solid rgba(29, 34, 50, 0.35); border-radius: 12px; padding: 10px 14px; }
.input:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 1px; }
.input[aria-invalid="true"] { border: 2px solid var(--missed); padding: 9px 13px; }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.5; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.choice legend { margin-bottom: 4px; padding: 0; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; display: grid; gap: 2px; padding: 14px 14px 14px 44px; border: 1px solid rgba(29, 34, 50, 0.35); border-radius: 14px; cursor: pointer; background: rgba(255, 252, 244, 0.6); }
.opt input { position: absolute; left: 14px; top: 17px; width: 18px; height: 18px; margin: 0; accent-color: var(--night); }
.opt b { font-size: 16px; font-weight: 600; }
.opt span { font-size: 14px; color: var(--ink-2); }
.opt:has(input:checked) { border: 2px solid var(--night); padding: 13px 13px 13px 43px; }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.privacy { padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 21px; color: var(--ink-2); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--missed); background: var(--missed-soft); color: var(--ink); font-size: 16px; }
.alert .ai { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--missed); font-size: 12px; font-weight: 600; color: var(--missed); }
.done { display: grid; gap: 18px; justify-items: start; padding-top: 56px; padding-bottom: 96px; }

/* ---------- the fallback front page (front_page: site) ---------- */
.home:has(#aud-fin:checked) .pub { display: none !important; }
.home:not(:has(#aud-fin:checked)) .fin { display: none !important; }
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: start; }
.hero-main, .hero-main .panel { display: grid; gap: 22px; align-content: start; }
.switch { display: inline-flex; width: max-content; max-width: 100%; min-width: 0; margin: 0; padding: 4px; border: 1px solid var(--rule); border-radius: 9999px; }
.switch label { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 18px; border-radius: 9999px; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink-2); }
.switch label small { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.switch label:hover { color: var(--ink); }
.switch input:checked + label { background: var(--night); color: var(--cream); }
.switch input:checked + label small { color: inherit; opacity: 0.78; }
.switch input:focus-visible + label { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.tag { font-size: 23px; line-height: 30px; font-weight: 500; }
.uses { display: grid; max-width: 640px; border-top: 1px solid var(--rule); }
.uses li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.uses strong { margin-right: 0.2em; color: var(--ink); font-weight: 600; }
.scope-mini { font-size: 15px; color: var(--ink-2); }
.tcard { display: grid; gap: 16px; padding: 24px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.tc-kicker { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-ink); }
.tc-org { font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.tc-what { color: var(--ink-2); }
.tc-quote p { font-size: 20px; line-height: 29px; }
.track { padding-top: 26px; }
.track-line { position: relative; height: 22px; }
.track-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--rule-2); }
.tk { position: absolute; top: 2px; bottom: 2px; width: 2px; background: var(--ink-3); }
.tk-start { left: 0; }
.tk-end { right: 0; width: 3px; background: var(--ink); }
.tk-due { left: var(--x); width: 3px; margin-left: -1.5px; background: var(--ink); }
.over { position: absolute; top: 50%; left: var(--a); right: calc(100% - var(--b)); height: 0; margin-top: -1px; border-top: 2px dashed var(--missed); }
.ev { position: absolute; left: var(--x); top: 50%; transform: translate(-50%, -50%); display: flex; padding: 2px; border-radius: 50%; background: var(--solid); }
.ev-note { position: absolute; bottom: calc(100% + 4px); left: var(--x); transform: translateX(-100%); white-space: nowrap; font-size: 14px; font-weight: 600; }
.t-over .ev-note { color: var(--missed); }
.track-ends { position: relative; display: flex; justify-content: space-between; min-height: 2.6em; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.track-ends span { display: grid; line-height: 1.3; }
.track-ends span:last-child { text-align: right; }
.track-ends b { font-weight: 600; color: var(--ink); }
.track-ends.three span:last-child { position: absolute; left: var(--x); transform: translateX(-50%); text-align: center; }
.tc-facts { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.tc-facts > div, .tc-more-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.tc-facts dt, .tc-also { font-size: 14px; color: var(--ink-3); }
.tc-facts dd { font-size: 16px; line-height: 24px; }
.tc-facts dd .chip { vertical-align: middle; }
.tc-more { justify-self: start; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps .muted { font-size: 17px; }
#answers { margin-top: 56px; }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; align-items: start; }
.trust-grid .h2 { margin: 0; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.trust li { color: var(--ink-2); }
.trust b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 21px; line-height: 28px; font-weight: 500; }
.trust b .g { margin-right: 4px; }
.scope { margin-top: 72px; background: rgba(235, 228, 212, 0.55); }
.scope-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 64px; align-items: baseline; padding-block: 40px; }
.scope-h { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-ink); }
.scope-in p { max-width: 640px; font-size: 20px; line-height: 30px; }
.home:has(#aud-fin:checked) .scope-in p { font-size: 18px; color: var(--ink-2); }
.panel { animation: arrive 0.32s var(--e) both; }
.fill { animation: fillin 0.9s 0.45s cubic-bezier(0.3, 0.7, 0.2, 1) both; background-image: radial-gradient(circle, var(--c) 0 70%, var(--c) 0); background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: 100% 100%; }
@keyframes fillin { from { background-size: 0 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }


/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .key-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .co summary { grid-template-columns: 170px 170px minmax(0, 1fr) 28px; }
  .co-body { padding-left: 8px; }
  .tl { --lab: 210px; --chip: 150px; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-side { max-width: 560px; }
}
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .types, .tools, .facts, .cs-index, .form-page { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .c-intro, .sc-intro { grid-template-columns: minmax(0, 1fr); }
  .co summary { grid-template-columns: minmax(0, 1fr) auto 28px; }
  .co-short { grid-column: 1 / 3; grid-row: 2; }
  .co-tog { grid-column: 3; grid-row: 1; }
  .co-body, .oc-body { grid-template-columns: minmax(0, 1fr); padding: 6px 8px 24px; }
  .tl-axis, .tl-grid { display: none; }
  .tl-mob { display: flex; justify-content: space-between; padding: 0 8px 6px; font-size: 13px; color: var(--ink-3); }
  .oc > details > summary { grid-template-columns: minmax(0, 1fr) 28px; }
  .oc-title { grid-column: 1; }
  .oc-track { grid-column: 1 / -1; grid-row: 2; margin-top: 18px; }
  .oc-v { grid-column: 1; grid-row: 3; }
  .oc .co-tog { grid-column: 2; grid-row: 1; }
  .sc-row, .worked .sc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sc-scale { grid-column: 1 / -1; }
  .cmp-steps > li { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .step-n { font-size: 30px; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto !important; }
  .cmp thead { display: none; }
  .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .cmp th, .cmp td { border: 0; padding: 0; }
  .cmp tbody th { grid-column: 1 / -1; }
  .cmp td::before { content: attr(data-h); display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink-3); }
  .cmp tbody tr:first-child { border-top: 1.5px solid var(--ink); }
  .cmp .chip { white-space: normal; }
  .cmp.nd .mk-q { display: block; grid-column: 1 / -1; }
  .shows { padding: 22px 20px; }
  .promise { padding: 22px; }
  .mk-head { display: none; }
  .mk-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 8px 12px; }
  .mk-said { grid-column: 1 / 3; }
  .mk-sum .co-tog { grid-column: 3; grid-row: 1; }
  .mk-q, .mk-track { grid-column: 1 / -1; }
  .mk-v { flex-wrap: wrap; row-gap: 2px; }
  .mk-v::before { content: attr(data-h); display: block; width: 100%; font-size: 12px; font-weight: 400; color: var(--ink-3); }
  .mk-body { grid-template-columns: minmax(0, 1fr); padding: 6px 8px 22px; }
  .mk-body dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .eps li { grid-template-columns: 56px minmax(0, 1fr); }
  .eps span:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .steps, .cases, .trust, .trust-grid, .scope-in { grid-template-columns: minmax(0, 1fr); }
  .key-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .switch { display: flex; width: 100%; }
  .switch label { flex: 1 1 0; flex-direction: column; align-items: center; gap: 0; padding: 8px 10px; text-align: center; line-height: 1.25; font-size: 15px; }
  .tcard { padding: 20px; }
  .tc-facts > div, .tc-more-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 640px) {
  .page-h1 { font-size: 40px; }
  .night-lede { font-size: 17px; line-height: 26px; }
  .dsec > .h2 { font-size: 30px; }
  .close .h2 { font-size: 32px; }
  .method-body h2 { font-size: 26px; }
  .sec { padding-top: 56px; }
  .key, .worked, .form-card { padding: 22px 20px; }
  .opts, .key-list.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .prose, .bul, .form-side { font-size: 17px; line-height: 27px; }
  .prose .lead { font-size: 19px; line-height: 28px; }
  .cs-lead { font-size: 19px; line-height: 28px; }
  .big-n { font-size: 44px; }
  .sc-num { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .panel, .fill, .co-tog::after { animation: none !important; transition: none !important; }
}
@media print {
  .toc { display: none; }
}

/* ---------- 10 Nov 2026: the "what you would do with this" box on case studies; the note under a night lede ---------- */
.use-box { display: grid; gap: 8px; max-width: 920px; margin-top: 40px; padding: 24px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); color: var(--ink-2); font-size: 17px; line-height: 27px; }
.use-box h2 { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-ink); }
.use-box dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.use-box dt { color: var(--ink); font-weight: 600; }
.use-box dd { margin: 0; }
.night-note { margin: 12px 0 0; max-width: 640px; font-size: 15px; line-height: 23px; color: var(--cream-2); }
.top-note { max-width: 920px; margin-top: 20px; color: var(--ink-2); font-size: 16px; line-height: 25px; }
.kpis-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .use-box dl { grid-template-columns: minmax(0, 1fr); } .use-box dt { margin-top: 6px; } .kpis-4 { grid-template-columns: 1fr 1fr; } }
