/* Reliability API site. One stylesheet for every page.
   Colour carries status only; everything else is ink on paper.
   Status glyphs: the fill of a circle is the claim's scoring weight. */

:root {
  --paper: #FAFAF8;
  --surface: #FFFFFF;
  --sunk: #F2F1EE;
  --ink: #1B2127;
  --ink-2: #48515A;
  --ink-3: #5F6973;
  --rule: #E0DED8;
  --rule-2: #C4C1B9;
  --kept: #136C8A;
  --kept-soft: #E2EFF3;
  --missed: #9C5D0C;
  --missed-soft: #F6EBDA;
  --none: #5A6672;
  --none-soft: #EAECEE;
  --mixed: #48515A;
  --btn: #1B2127;
  --btn-ink: #FFFFFF;
  --btn-hover: #333C45;
  --focus: #136C8A;
  --label-bg: #EEEFEF;
  --label-ink: #48515A;
  --shadow: 0 1px 0 rgba(27, 33, 39, .04), 0 12px 32px -18px rgba(27, 33, 39, .28);
  color-scheme: light;

  --sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1280px;
  --gs: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15181B;
    --surface: #1C2024;
    --sunk: #111417;
    --ink: #ECEAE5;
    --ink-2: #BAC0C5;
    --ink-3: #9AA2AA;
    --rule: #2D3237;
    --rule-2: #474E55;
    --kept: #6BBAD6;
    --kept-soft: #173039;
    --missed: #E2A653;
    --missed-soft: #352919;
    --none: #A5AFB9;
    --none-soft: #252A2F;
    --mixed: #BAC0C5;
    --btn: #ECEAE5;
    --btn-ink: #15181B;
    --btn-hover: #FFFFFF;
    --focus: #6BBAD6;
    --label-bg: #262B30;
    --label-ink: #BAC0C5;
    --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 16px 40px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15181B;
  --surface: #1C2024;
  --sunk: #111417;
  --ink: #ECEAE5;
  --ink-2: #BAC0C5;
  --ink-3: #9AA2AA;
  --rule: #2D3237;
  --rule-2: #474E55;
  --kept: #6BBAD6;
  --kept-soft: #173039;
  --missed: #E2A653;
  --missed-soft: #352919;
  --none: #A5AFB9;
  --none-soft: #252A2F;
  --mixed: #BAC0C5;
  --btn: #ECEAE5;
  --btn-ink: #15181B;
  --btn-hover: #FFFFFF;
  --focus: #6BBAD6;
  --label-bg: #262B30;
  --label-ink: #BAC0C5;
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 16px 40px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--btn); color: var(--btn-ink); padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- status glyphs: fill = how much of the claim held up ---------- */
.g {
  --c: var(--ink-3);
  display: inline-block; flex: none;
  width: var(--gs); height: var(--gs);
  border-radius: 50%;
  border: 1.5px solid var(--c);
  vertical-align: -0.12em;
  position: relative;
  background: transparent;
}
.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;
  padding: 4px 11px 4px 8px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; line-height: 1.3;
  background: var(--sunk); color: var(--ink);
  white-space: nowrap;
}
.chip.k { background: var(--kept-soft); }
.chip.m { background: var(--missed-soft); }
.chip.n { background: var(--none-soft); }

.label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 500; letter-spacing: .01em;
  color: var(--label-ink); background: var(--label-bg);
  padding: 3px 9px; border-radius: 4px; white-space: nowrap;
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 1px; border: 1.25px solid currentColor; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.mark { display: inline-flex; }
.mark i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); display: block; }
.mark i:first-child { background: var(--ink); }
.mark { gap: 3px; }
.mark i:last-child { border-style: dashed; }
.nav { display: flex; gap: 26px; font-size: .9375rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: underline; }
.top-end { display: flex; align-items: center; gap: 18px; font-size: .9375rem; }
.top-end > a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.top-end > a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
.theme-btn {
  display: none; align-items: center; gap: 6px;
  font: inherit; font-size: .8125rem; color: var(--ink-2);
  background: none; border: 1px solid var(--rule-2); border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.js .theme-btn { display: inline-flex; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-btn .ti { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 0); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 8px;
  background: var(--btn); color: var(--btn-ink);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--btn); cursor: pointer;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); text-decoration: none; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }

/* ---------- type ---------- */
.h1 { font-size: clamp(2.5rem, 1.4rem + 4.1vw, 4.75rem); font-weight: 800; line-height: 1.02; letter-spacing: -.032em; text-wrap: balance; }
.h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 750; line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
.h3 { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.lede { font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.quote { font-family: var(--serif); font-weight: 400; font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
p { text-wrap: pretty; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--rule); }
.sec-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-block: 40px 56px; font-size: .875rem; color: var(--ink-2); background: var(--sunk); }
.foot .wrap { display: grid; gap: 22px; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .lic { display: grid; gap: 4px; max-width: 60rem; }

/* ---------- motion ---------- */
@keyframes fillin { from { background-size: 0 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 900px) {
  .nav { order: 3; width: 100%; gap: 6px 18px; padding-bottom: 12px; font-size: .875rem; flex-wrap: wrap; }
  .top .wrap { gap: 10px 12px; padding-top: 10px; }
  .top-end { gap: 10px; }
  .top-end > a:not(.btn) { display: none; }
  .theme-btn [data-theme-name] { display: none; }
  .theme-btn { padding: 7px; }
  .top-end .btn.sm { padding: 0 12px; min-height: 36px; font-size: .875rem; }
}
/* ================= Front page ================= */

/* audience switch: radio inputs drive everything, no script needed */
.home:has(#aud-fin:checked) .pub { display: none !important; }
.home:not(:has(#aud-fin:checked)) .fin { display: none !important; }

.hero { padding-block: clamp(36px, 4.6vw, 60px) clamp(48px, 5vw, 72px); }
.hero .h1 { max-width: 16ch; }
@media (min-width: 1100px) { .hero .h1 { max-width: none; white-space: nowrap; } }
.hero-grid {
  display: grid; gap: clamp(32px, 4vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: start;
  margin-top: clamp(20px, 2.2vw, 30px);
}
.hero-main { display: grid; gap: 26px; align-content: start; }

.switch {
  border: 0; margin: 0; padding: 4px; min-width: 0;
  display: inline-flex; width: max-content; max-width: 100%;
  background: var(--sunk); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.switch label {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease;
}
.switch label small { font-size: .8125rem; font-weight: 500; color: var(--ink-3); }
.switch label:hover { color: var(--ink); }
.switch input:checked + label { background: var(--btn); color: var(--btn-ink); }
.switch input:checked + label small { color: inherit; opacity: .78; }
.switch input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

.panel { animation: arrive .32s ease both; }
.hero-main .panel { display: grid; gap: 20px; }
.tag { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.uses { display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 40rem; }
.uses li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); line-height: 1.5; }
.uses strong { color: var(--ink); font-weight: 700; margin-right: .2em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
.scope-mini { font-size: .875rem; color: var(--ink-2); }

/* ---------- the tracker card ---------- */
.tcard {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: 22px 26px 22px; box-shadow: var(--shadow);
  display: grid; gap: 16px;
}
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tc-kicker { font-size: .8125rem; color: var(--ink-3); font-weight: 500; }
.tc-org { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tc-what { color: var(--ink-2); font-size: 1rem; }
.tc-quote p { font-size: 1.1875rem; line-height: 1.5; }
.tc-quote footer { margin-top: 6px; font-family: var(--sans); font-size: .8125rem; color: var(--ink-3); }

.track { margin: 4px 0 0; padding-top: 26px; }
.track-line { position: relative; height: 22px; }
.track-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--rule-2); border-radius: 2px;
}
.tk { position: absolute; top: 2px; bottom: 2px; width: 2px; background: var(--ink-3); border-radius: 2px; }
.tk-start { left: 0; }
.tk-end { right: 0; background: var(--ink); width: 3px; }
.tk-due { left: var(--x); background: var(--ink); width: 3px; margin-left: -1.5px; }
.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; background: var(--surface); border-radius: 50%; padding: 2px; }
.ev-note {
  position: absolute; bottom: calc(100% + 4px); left: var(--x); transform: translateX(-100%);
  font-size: .8125rem; font-weight: 600; white-space: nowrap; color: var(--ink);
}
.t-over .ev-note { color: var(--missed); }
.track-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: .8125rem; color: var(--ink-2); position: relative; min-height: 2.6em; }
.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; }

/* the verdict arrives: one orchestrated moment on load */
.fill { animation: fillin .9s .45s cubic-bezier(.3, .7, .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%; }

.tc-facts { display: grid; gap: 10px; border-top: 1px solid var(--rule); padding-top: 14px; }
.tc-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.tc-facts dt { font-size: .8125rem; color: var(--ink-3); font-weight: 500; }
.tc-facts dd { font-size: .9375rem; line-height: 1.5; }
.tc-facts dd .chip { vertical-align: middle; }
.tc-more-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.tc-also { font-size: .8125rem; color: var(--ink-3); font-weight: 500; line-height: 1.35; padding-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { font-size: .8125rem; font-weight: 500; }
.tc-more { font-weight: 600; font-size: .9375rem; justify-self: start; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); counter-reset: s; }
.steps li { display: grid; gap: 10px; align-content: start; max-width: 24rem; }
.step-n { font-size: 2.75rem; font-weight: 300; line-height: 1; color: var(--ink-3); letter-spacing: -.03em; }

.key { margin-top: clamp(56px, 6vw, 88px); padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; display: grid; gap: 26px; }
.key-head { display: grid; gap: 6px; }
.key-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.key-list li { display: grid; gap: 6px; align-content: start; font-size: .9375rem; }
.key-list .g { margin-bottom: 6px; }
.key-list b { font-weight: 700; }
.key-list span:not(.g) { color: var(--ink-2); line-height: 1.45; }

/* ---------- case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.case {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: 0 0 24px; border-bottom: 1px solid var(--rule);
}
.case h3 a { text-decoration: none; }
.case h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.case h3 a:hover { text-decoration: underline; }
.case:has(a:hover) .case-go { text-decoration-thickness: 2px; }
.case:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 8px; border-radius: 10px; }
.case h3 a:focus-visible { outline: none; }
.case-aud { font-size: .8125rem; color: var(--ink-3); font-weight: 500; margin-top: 6px; }
.case-go { font-weight: 600; font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; margin-top: 4px; }
.case-go.is-soon { text-decoration: none; color: var(--ink-3); font-weight: 500; }
.strip {
  height: 128px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule);
  position: relative; margin-bottom: 8px;
}
.strip-seoul { display: grid; align-content: center; gap: 9px; padding: 0 28px; }
.strip-seoul > span { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9375rem; }
.strip-years .yline { position: absolute; left: 32px; right: 32px; top: 52px; height: 2px; background: var(--rule-2); border-radius: 2px; }
.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; background: var(--surface); padding: 2px; border-radius: 50%; }
.ylab { position: absolute; top: 76px; font-size: .8125rem; color: var(--ink-3); transform: translateX(-50%); }

/* ---------- why trust it ---------- */
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.trust li { color: var(--ink-2); max-width: 26rem; }
.trust b { display: block; color: var(--ink); font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.trust b .g { margin-right: 4px; }

/* ---------- scope ---------- */
.scope { background: var(--sunk); border-top: 1px solid var(--rule); }
.scope-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(32px, 5vw, 96px); padding-block: 44px; align-items: baseline; }
.scope-h { font-size: 1.3125rem; font-weight: 700; }
.scope-in p { font-size: 1.1875rem; max-width: 44rem; }
.home:has(#aud-fin:checked) .scope-in p { font-size: 1.0625rem; color: var(--ink-2); }

/* ---------- close ---------- */
.close-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.close .h2 { max-width: 22ch; }

@media (max-width: 1180px) {
  .key-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-side { max-width: 560px; }
}
@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: 9px 10px; font-size: .9375rem; text-align: center; line-height: 1.25; }
  .tcard { padding: 18px 18px 20px; }
  .tc-facts > div, .tc-more-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
/* ================= Case-study pages ================= */
.close-text { display: grid; gap: 12px; max-width: 44rem; }
.cmp-steps .step-n { font-size: 2.25rem; }
.list-note { margin-top: 20px; font-size: .875rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

.c-hero { padding-block: clamp(32px, 4vw, 56px) clamp(48px, 5vw, 80px); }
.crumb { font-size: .875rem; color: var(--ink-3); display: flex; gap: 8px; margin-bottom: 18px; }
.crumb a { color: var(--ink-2); }
.c-h1 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4rem); max-width: 20ch; }
.orsted .c-h1 { max-width: none; }
.c-hero .lede { margin-top: 22px; }
.c-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); margin-top: clamp(28px, 3.4vw, 48px); align-items: start; }
.c-text { display: grid; gap: 10px; max-width: 36rem; color: var(--ink-2); font-size: 1.125rem; }
.c-text p + .c-k { margin-top: 18px; }
.c-k { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.promise { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 26px 28px 24px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.promise .quote p { font-size: 1.3125rem; line-height: 1.5; }
.promise figcaption { font-size: .8125rem; color: var(--ink-3); }
.p-track { position: relative; height: 62px; margin-top: 6px; }
.p-line { position: absolute; left: 0; right: 0; top: 10px; height: 2px; 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; font-size: .8125rem; color: var(--ink-2); display: grid; line-height: 1.3; }
.p-a { left: 0; } .p-b { right: 0; text-align: right; }
.p-track b { color: var(--ink); font-weight: 600; }

/* ---------- filters ---------- */
.filters { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.filters legend { float: left; font-size: .875rem; color: var(--ink-3); margin-right: 6px; padding: 0; }
.filters label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; font-size: .875rem; font-weight: 600;
  border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--surface);
}
.filters label:hover { color: var(--ink); border-color: var(--ink-3); }
.filters input:checked + label { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.filters input:checked + label .g { --c: currentColor; }
.filters input:focus-visible + label { outline: 2px solid var(--focus); 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; }

/* ---------- company rows ---------- */
.co-list, .oc-list { border-top: 1px solid var(--ink); }
.co, .oc { border-bottom: 1px solid var(--rule); }
.co summary, .oc > details > summary { list-style: none; cursor: pointer; }
.co summary::-webkit-details-marker, .oc summary::-webkit-details-marker { display: none; }
.co summary {
  display: grid; grid-template-columns: 210px 190px minmax(0, 1fr) 28px; gap: 8px 24px; align-items: center;
  padding: 14px 8px; border-radius: 6px;
}
.co summary:hover, .oc > details > summary:hover { background: var(--sunk); }
.co-name { font-weight: 700; font-size: 1.0625rem; }
.co-short { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.co-tog { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-2); position: relative; justify-self: end; }
.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 .2s ease; }
details[open] > summary .co-tog::after { transform: translate(-50%, -50%) rotate(0deg); }
details[open] > summary .co-tog { background: var(--btn); border-color: var(--btn); }
details[open] > summary .co-tog::before, details[open] > summary .co-tog::after { background: var(--btn-ink); }
.co-body, .oc-body {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px 48px;
  padding: 10px 8px 30px 242px; animation: arrive .25s ease both;
}
.co-body h4, .oc-body h4 { font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.co-why p { max-width: 42rem; font-size: 1rem; line-height: 1.6; }
.co-ev { display: grid; gap: 4px; align-content: start; justify-items: start; }
.evid { display: grid; gap: 8px; margin-bottom: 12px; counter-reset: e; }
.evid li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; font-size: .875rem; line-height: 1.4; }
.ev-n { font-size: .75rem; font-weight: 600; color: var(--ink-3); padding-top: 1px; }
.ev-d { display: block; color: var(--ink-3); }
.evid a { overflow-wrap: anywhere; }
.flag { margin-top: 12px; font-size: .875rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.flag-i { width: 10px; height: 10px; border: 1.5px solid var(--ink-2); transform: rotate(45deg); flex: none; }

/* ---------- comparison ---------- */
.cmp-sec { background: var(--surface); }
.cmp-steps { display: grid; gap: clamp(36px, 4vw, 56px); max-width: 980px; }
.cmp-steps > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
.cs-body { display: grid; gap: 12px; }
.cs-lead { font-size: 1.3125rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; max-width: 40rem; color: var(--ink); }
.cmp-wrap { overflow-x: auto; margin-top: 6px; }
.cmp { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.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: .8125rem; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.cmp tbody th { font-weight: 700; width: 26%; padding-top: 12px; }
.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%; }
.mnote { display: block; margin-top: 4px; font-size: .8125rem; color: var(--ink-3); }
.shows { margin-top: clamp(48px, 6vw, 80px); max-width: 980px; padding: 28px 32px; border-radius: 14px; background: var(--sunk); display: grid; gap: 12px; }
.shows p { max-width: 46rem; }

/* ---------- Ørsted timeline ---------- */
.tl-mob { display: none; }
.tl { position: relative; --lab: 300px; --chip: 170px; }
.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: .8125rem; color: var(--ink-3); }
.tl-years span { position: absolute; left: var(--x); transform: translateX(-50%); }
.tl-grid { position: absolute; inset: 30px 8px 0; padding: 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; border-radius: 6px;
}
.oc-title { display: grid; gap: 2px; }
.oc-title b { font-size: 1.0625rem; line-height: 1.3; }
.oc-title > span { font-size: .8125rem; 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: 2px; margin-top: -1px; background: var(--ink-3); }
.oc-over { position: absolute; top: 50%; left: var(--a); right: calc(100% - var(--b)); border-top: 2px dashed var(--missed); margin-top: -1px; }
.oc-moved { position: absolute; left: var(--x); top: -12px; transform: translateX(-100%); font-size: .75rem; font-weight: 600; color: var(--missed); white-space: nowrap; }
.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; background: var(--paper); border-radius: 50%; }
.oc > details > summary:hover .oc-g { background: var(--sunk); }
.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: 46rem; }
.oc-q p { font-size: 1.25rem; line-height: 1.5; }
.oc-q footer { font-family: var(--sans); font-size: .8125rem; color: var(--ink-3); margin-top: 6px; }
.oc-why p { max-width: 36rem; }
.more { margin-top: 12px; font-size: .9375rem; }
.more summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.more p { margin-top: 8px; color: var(--ink-2); line-height: 1.6; }

/* ---------- scores ---------- */
.sc-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; max-width: 980px; margin-bottom: clamp(40px, 5vw, 64px); }
.sc-intro li { display: grid; gap: 18px; align-content: start; }
.sc-intro p { font-size: 1.1875rem; font-weight: 600; line-height: 1.4; letter-spacing: -.005em; }
.sc-demo .sc-scale { width: 100%; max-width: 360px; }
.sc-list { display: grid; gap: 0; border-top: 1px solid var(--ink); max-width: 1080px; }
.sc { padding: 22px 0 26px; border-bottom: 1px solid var(--rule); display: grid; gap: 14px; }
.sc-sent { color: var(--ink-2); max-width: 44rem; }
.sc-row { display: grid; grid-template-columns: 160px 64px minmax(0, 1fr) 170px; gap: 12px 24px; align-items: center; }
.sc-name { font-weight: 700; }
.sc-num { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; line-height: 1; text-align: right; }
.sc-scale { position: relative; display: block; height: 30px; }
.sc-scale::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--rule-2); border-radius: 2px; }
.sc-band { position: absolute; top: 3px; height: 16px; left: var(--a); right: calc(100% - var(--b)); background: var(--none-soft); border: 1px solid var(--rule-2); border-radius: 999px; }
.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(--paper); }
.scores .sc-pt { box-shadow: 0 0 0 3px var(--paper); }
.sc-lo, .sc-hi { position: absolute; top: 20px; left: var(--x); transform: translateX(-50%); font-size: .75rem; color: var(--ink-3); }
.sc-meta { justify-self: start; }

@media (max-width: 1100px) {
  .co summary { grid-template-columns: 170px 170px minmax(0, 1fr) 28px; }
  .co-body { padding-left: 8px; }
  .tl { --lab: 220px; --chip: 150px; }
}
@media (max-width: 860px) {
  .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; font-size: .75rem; color: var(--ink-3); padding: 0 8px 6px; }
  .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; }
  .co-tog { grid-row: 1; }
  .oc .co-tog { grid-column: 2; grid-row: 1; }
  .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; }
  .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; padding: 0; }
  .cmp td::before { content: attr(data-h); display: block; font-size: .75rem; color: var(--ink-3); margin-bottom: 4px; }
  .cmp tbody tr:first-child { border-top: 1px solid var(--ink); }
  .cmp .chip { white-space: normal; }
  .shows { padding: 22px 20px; }
  .promise { padding: 20px; }
}
.oc-body { position: relative; background: var(--paper); }
.oc > details[open] > summary { background: var(--paper); }
.oc > details[open] > summary:hover { background: var(--sunk); }

/* ================= Shared page furniture ================= */
:root { --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; }
.phead { padding-block: clamp(32px, 4vw, 56px) clamp(40px, 4.4vw, 64px); }
.phead .lede { margin-top: 20px; }
.phead .h1 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4rem); max-width: 22ch; }
.foot .label-line { color: var(--ink); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.inj { font-family: var(--mono); font-size: .8125rem; }

/* long-form pages: contents on the left, sections on the right */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px clamp(40px, 5vw, 88px); align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.toc { position: sticky; top: 24px; font-size: .9375rem; border-top: 1px solid var(--ink); padding-top: 14px; }
.toc p { font-size: .8125rem; color: var(--ink-3); font-weight: 500; margin-bottom: 8px; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.dsec { padding-block: 40px 48px; border-top: 1px solid var(--rule); display: grid; gap: 18px; scroll-margin-top: 16px; }
.dsec:first-child { border-top-color: var(--ink); padding-top: 28px; }
.dsec > .h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prose { display: grid; gap: 14px; max-width: 42rem; color: var(--ink-2); font-size: 1.0625rem; }
.prose strong, .prose b { color: var(--ink); }
.prose .lead { color: var(--ink); font-size: 1.1875rem; line-height: 1.5; }
.bul { display: grid; gap: 10px; max-width: 42rem; color: var(--ink-2); }
.bul li { position: relative; padding-left: 22px; }
.bul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 1px; background: var(--ink-3); }
.bul b { color: var(--ink); }

/* claim types */
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.type { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; }
.type h3 { font-size: 1.125rem; font-weight: 700; }
.type p { color: var(--ink-2); font-size: .9375rem; }
.type .quote { color: var(--ink); font-size: 1rem; line-height: 1.5; border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 4px; }
.not-type { background: transparent; border-style: dashed; }

/* the report flow: a real sequence */
.flow { display: grid; gap: 0; max-width: 46rem; counter-reset: f; }
.flow li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 18px; position: relative; padding-bottom: 26px; }
.flow li::before { content: ""; position: absolute; left: 19px; top: 34px; bottom: 0; width: 2px; background: var(--rule); }
.flow li:last-child::before { display: none; }
.flow li:last-child { padding-bottom: 0; }
.flow .fn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: .9375rem; background: var(--paper); position: relative; }
.flow h3 { font-size: 1.125rem; font-weight: 700; padding-top: 8px; }
.flow p { color: var(--ink-2); margin-top: 4px; }
.key.flat { margin-top: 0; }
.key-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* worked score example */
.worked { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 18px; max-width: 46rem; }
.worked h3 { font-size: 1.125rem; font-weight: 700; }
.worked ol { display: grid; gap: 10px; counter-reset: w; }
.worked ol li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.worked ol li::before { counter-increment: w; content: counter(w); font-weight: 700; color: var(--ink-3); }
.formula { font-family: var(--mono); font-size: .9375rem; background: var(--sunk); border-radius: 8px; padding: 12px 14px; color: var(--ink); overflow-x: auto; }
.worked .sc-row { grid-template-columns: 120px 64px minmax(0, 1fr); }

/* generic calm table */
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl caption { text-align: left; font-size: .875rem; color: var(--ink-2); padding-bottom: 10px; caption-side: top; }
.tbl th, .tbl td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.tbl tbody th { font-weight: 700; }
.tbl td.num, .tbl th.num { white-space: nowrap; }
.tbl-wrap { overflow-x: auto; max-width: 52rem; }

.note { background: var(--sunk); border-radius: 12px; padding: 18px 22px; max-width: 46rem; color: var(--ink-2); display: grid; gap: 8px; }
.note b { color: var(--ink); }

/* ================= Developers ================= */
.code { margin: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--surface); max-width: 46rem; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px 7px 14px; border-bottom: 1px solid var(--rule); background: var(--sunk); font-size: .8125rem; color: var(--ink-2); }
.copy { font: inherit; font-size: .8125rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--rule-2); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--ink-3); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: .8125rem; line-height: 1.65; color: var(--ink); tab-size: 2; }
.code .c { color: var(--ink-3); }
code { font-family: var(--mono); font-size: .875em; background: var(--sunk); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.code code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.eps { display: grid; border-top: 1px solid var(--ink); max-width: 52rem; }
.eps li { display: grid; grid-template-columns: 64px minmax(0, 260px) minmax(0, 1fr); gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.verb { font-family: var(--mono); font-size: .75rem; font-weight: 700; border: 1px solid var(--ink-3); border-radius: 4px; padding: 1px 6px; justify-self: start; }
.eps code { background: none; padding: 0; font-size: .875rem; color: var(--ink); }
.eps span:last-child { color: var(--ink-2); font-size: .9375rem; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.tool code { background: none; padding: 0; font-size: .875rem; font-weight: 700; color: var(--ink); }
.tool p { color: var(--ink-2); font-size: .9375rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); max-width: 52rem; }
.facts > div { padding: 16px 18px 18px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; }
.facts dt { font-size: .8125rem; color: var(--ink-3); font-weight: 500; }
.facts dd { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.facts dd small { display: block; font-size: .875rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-top: 2px; }

/* ================= Case-study index ================= */
.cs-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); padding-bottom: clamp(64px, 8vw, 112px); }
.cs-index .case { border-bottom: 0; padding: 0; }
.cs-index .strip { height: 168px; }
.cs-index .h3 { font-size: 1.4375rem; }
.cs-meta { font-size: .875rem; 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; }
.cs-index .strip-seoul { gap: 12px; }

/* ================= Musk timeline ================= */
.mk-tl { --c1: 92px; --c3: 300px; --c4: 150px; --c5: 150px; }
.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: .8125rem; color: var(--ink-3); font-weight: 500; border-bottom: 1px 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 { border-bottom: 1px solid var(--rule); }
.mk-sum { padding: 12px 8px; border-radius: 6px; cursor: pointer; list-style: none; }
.mk-sum::-webkit-details-marker { display: none; }
.mk-sum:hover { background: var(--sunk); }
.mk-said { font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.mk-q { font-family: var(--serif); font-size: .9375rem; line-height: 1.45; 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: .875rem; font-weight: 600; line-height: 1.25; }
.mk-v .g { flex: none; }
.mk-flag { display: inline-block; width: 8px; height: 8px; border: 1.5px solid var(--ink-2); transform: rotate(45deg); margin-left: 2px; flex: none; }
.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); animation: arrive .25s ease both; }
.mk-body .quote { grid-column: 1 / -1; max-width: 48rem; font-size: 1.1875rem; }
.mk-body .mk-more { grid-column: 1 / -1; max-width: 48rem; }
.mk-body .mk-more p { margin: 8px 0 12px; color: var(--ink-2); }
.mk-body h4 { font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.mk-body dl { display: grid; gap: 8px; }
.mk-body dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; font-size: .9375rem; }
.mk-body dt { color: var(--ink-3); font-size: .875rem; }
.mk[open] .co-tog::after { transform: translate(-50%, -50%) rotate(0deg); }
.mk[open] .co-tog { background: var(--btn); border-color: var(--btn); }
.mk[open] .co-tog::before, .mk[open] .co-tog::after { background: var(--btn-ink); }
.big-n { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.big-n small { display: block; font-size: 1rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-top: 8px; }

/* ================= Forms ================= */
.form-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px clamp(40px, 6vw, 112px); align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.form-side { display: grid; gap: 16px; max-width: 30rem; color: var(--ink-2); }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .8125rem; color: var(--ink-2); font-weight: 400; }
.input { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-3); border-radius: 8px; padding: 11px 12px; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
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 var(--ink-3); border-radius: 10px; cursor: pointer; background: var(--paper); }
.opt input { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; margin: 0; accent-color: var(--btn); }
.opt b { font-size: .9375rem; }
.opt span { font-size: .8125rem; color: var(--ink-2); }
.opt:has(input:checked) { border: 2px solid var(--ink); padding: 13px 13px 13px 43px; }
.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-card .btn { justify-self: start; }
.privacy { font-size: .875rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 16px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border: 1.5px solid var(--missed); background: var(--missed-soft); color: var(--ink); border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.alert .ai { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--missed); display: grid; place-items: center; font-weight: 800; font-size: .75rem; color: var(--missed); margin-top: 1px; }
.done { display: grid; gap: 18px; justify-items: start; max-width: 36rem; padding-block: clamp(48px, 7vw, 96px) clamp(80px, 10vw, 140px); }
.done .g { --gs: 44px; border-width: 3px; }
.done .h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
.done p { color: var(--ink-2); font-size: 1.125rem; }
.done dl { display: grid; gap: 10px; border-top: 1px solid var(--rule); padding-top: 18px; width: 100%; }
.done dl div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.done dt { font-weight: 700; color: var(--ink-3); }

@media (max-width: 1100px) {
  .mk-tl { --c3: 200px; --c4: 130px; --c5: 130px; }
}
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .types, .tools, .facts, .cs-index { grid-template-columns: minmax(0, 1fr); }
  .form-page { grid-template-columns: minmax(0, 1fr); }
  .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 { grid-column: 1 / -1; }
  .mk-track { grid-column: 1 / -1; }
  .mk-v { grid-column: auto; }
  .mk-v::before { content: attr(data-h); display: block; font-size: .6875rem; color: var(--ink-3); font-weight: 500; }
  .mk-v { flex-wrap: wrap; row-gap: 2px; }
  .mk-v::before { width: 100%; }
  .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; }
  .worked .sc-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 560px) {
  .opts { grid-template-columns: minmax(0, 1fr); }
  .key-list.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.key-more { font-weight: 600; font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.cases + .key-more { margin-top: 28px; }
.co-body .h4, .oc-body .h4 { font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.types.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.type .case-aud { margin-top: 0; }
.form-h1 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
.form-page { padding-top: clamp(32px, 4vw, 64px); }
.done { padding-left: 0; }
@media (max-width: 900px) { .types.two { grid-template-columns: minmax(0, 1fr); } }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
.nw { white-space: nowrap; }
.case .h3 a { text-decoration: none; }
.case .h3 a:hover { text-decoration: underline; }
.key-more { gap: 8px 28px; }
.form-side .h1 { color: var(--ink); }
.choice legend { font-weight: 600; font-size: .9375rem; }
.input[aria-invalid="true"] { border: 2px solid var(--missed); padding: 10px 11px; }
.field-err { font-size: .875rem; color: var(--ink); display: flex; gap: 6px; align-items: baseline; }
.field-err::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--missed); color: var(--missed); font-size: .6875rem; font-weight: 800; display: inline-grid; place-items: center; transform: translateY(2px); }
.flow-code > li > div { display: grid; gap: 12px; align-content: start; min-width: 0; }
.flow-code > li > div > h3 { padding-top: 8px; }
.flow-code p { margin-top: 0; }
.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; }

/* The full method page: METHOD.md rendered as prose. */
.method-body { max-width: 46rem; }
.method-body h2 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); color: var(--ink); margin-top: 28px; scroll-margin-top: 16px; }
.method-body h3 { font-size: 1.125rem; color: var(--ink); margin-top: 12px; }
.method-body ul, .method-body ol { display: grid; gap: 8px; padding-left: 1.25rem; }
.method-body ul { list-style: disc; }
.method-body ol { list-style: decimal; }
.method-body code { font-family: var(--mono); font-size: .875em; }
.method-body pre { overflow-x: auto; padding: 14px 16px; background: var(--sunk); border: 1px solid var(--rule); border-radius: 8px; }
.method-body a { overflow-wrap: anywhere; }
