/* IndexLark guides and comparisons. Same tokens and voice as the homepage,
   none of its scroll machinery. Grammar: an editorial page on cool fog, white
   sheets for figures and answers, hairlines between sections, citrus as the
   one highlighter. Colours flip with the same dark rules as site.css. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/source-code-pro.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --forest: #173C31; --ink: #0E1A16; --slate: #4A5A53; --fog: #EEF2F0;
  --line: #CFD8D3; --mist: #B9C9C0; --citrus: #D5E86A; --white: #FFFFFF;
  --error: #A3261A; --lark: var(--forest);
  --tint: #E2EAE5;           /* a step darker than fog, for table heads and bars */

  --display: "Bricolage Grotesque", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Source Code Pro", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px; --s8: 64px; --s9: 96px;
  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1200px;
  --prose: 44rem;
  --bar: 64px;
  --r-ctl: 10px; --r-sheet: 14px;
  --e1: 0 1px 2px rgba(14,26,22,.06), 0 3px 10px -3px rgba(14,26,22,.10);
  --e2: 0 2px 4px rgba(14,26,22,.05), 0 14px 30px -10px rgba(14,26,22,.18);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

/* Dark = deep forest, never black. Anything filled with citrus re-pins ink. */
html[data-theme="dark"] {
  color-scheme: dark;
  --fog: #0B1A15; --white: #12271F; --ink: #EEF2F0; --slate: #A9B9B1; --line: #2B463B;
  --forest: #9AD2B7; --error: #FF9C8F; --lark: #EEF2F0; --tint: #10231C; --mist: #3C5A4D;
  --e1: 0 1px 2px rgba(0,0,0,.3), 0 3px 10px -3px rgba(0,0,0,.4);
  --e2: 0 2px 4px rgba(0,0,0,.3), 0 14px 30px -10px rgba(0,0,0,.5);
}
html[data-theme="dark"] :is(.mark, .btn--go, .st--proposed::before, .chip--go, svg .on-citrus, .toc a[aria-current]::before) { --ink: #0E1A16; }
html[data-theme="dark"] ::selection { color: #0E1A16; }
html[data-theme="dark"] .mono { filter: brightness(0) invert(.94); }
html[data-theme="dark"] svg .f-tint { fill: #1C362C; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --fog: #0B1A15; --white: #12271F; --ink: #EEF2F0; --slate: #A9B9B1; --line: #2B463B;
    --forest: #9AD2B7; --error: #FF9C8F; --lark: #EEF2F0; --tint: #10231C; --mist: #3C5A4D;
    --e1: 0 1px 2px rgba(0,0,0,.3), 0 3px 10px -3px rgba(0,0,0,.4);
    --e2: 0 2px 4px rgba(0,0,0,.3), 0 14px 30px -10px rgba(0,0,0,.5);
  }
  html:not([data-theme]) :is(.mark, .btn--go, .st--proposed::before, .chip--go, svg .on-citrus, .toc a[aria-current]::before) { --ink: #0E1A16; }
  html:not([data-theme]) ::selection { color: #0E1A16; }
  html:not([data-theme]) .mono { filter: brightness(0) invert(.94); }
  html:not([data-theme]) svg .f-tint { fill: #1C362C; }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fog); color: var(--ink);
  font: 400 18px/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
::selection { background: var(--citrus); color: var(--ink); }
:root { caret-color: var(--forest); accent-color: var(--forest); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.cta :focus-visible, .foot :focus-visible { outline-color: var(--citrus); }
p, li { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--fog); padding: 12px 16px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, time { font-variant-numeric: tabular-nums; }

/* evidence states, as on the homepage */
.st {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/16px var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap; vertical-align: 0.1em;
}
.st::before { content: ""; width: 10px; height: 10px; flex: none; border: 1.5px solid currentColor; }
.st--observed::before { background: currentColor; }
.st--proposed::before { background: var(--citrus); border-color: var(--ink); }
.st--live::before { border-radius: 50%; }
.st--unmeasured::before { border-style: dashed; }

/* the one highlighter */
.mark {
  background: var(--citrus); color: var(--ink); padding: .04em .28em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ------------------------------------------------------------ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl);
  font: 650 17px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 120ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 16px; }
.btn--ink { background: var(--ink); color: var(--fog); }
.btn--go { background: var(--citrus); color: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.arrow { display: inline-block; transition: transform 180ms var(--ease); }
.link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: var(--forest); border-color: var(--forest); }
  .btn--go:hover { box-shadow: 0 3px 0 var(--ink); transform: translateY(-1px); }
  .btn--line:hover { background: color-mix(in oklab, currentColor 8%, transparent); }
  :is(.link, .btn, .card):hover .arrow { transform: translateX(3px); }
}

/* ---------------------------------------------------------------- bar */
.bar {
  position: sticky; top: 0; z-index: 60; height: var(--bar);
  background: color-mix(in oklab, var(--fog) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__in { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.bar__logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.bar__logo img { width: 140px; height: auto; }
.bar__nav { display: flex; gap: 2px; }
.bar__nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 600; font-size: 16px; text-decoration: none; color: var(--slate); border-radius: var(--r-ctl);
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}
.bar__nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--citrus), inset 0 -4px 0 var(--ink); border-radius: 0; }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { color: var(--ink); background: var(--white); } }
.lamp {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
  background: none; color: var(--ink); border-radius: var(--r-ctl); cursor: pointer;
  transition: background-color 180ms var(--ease), transform 120ms var(--ease);
}
.lamp:active { transform: translateY(1px); }
.lamp__bulb { fill: var(--citrus); transition: fill 300ms var(--ease); }
.lamp__rays { transition: opacity 300ms var(--ease); }
.lamp[aria-pressed="true"] .lamp__bulb { fill: none; }
.lamp[aria-pressed="true"] .lamp__rays { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .lamp:hover { background: var(--white); } }
@media (max-width: 760px) {
  .bar__nav { display: none; }
  .bar__in { gap: var(--s2); }
  .bar__logo img { width: 124px; }
  .bar .btn--sm { padding: 0 12px; font-size: 15px; }
}
@media (max-width: 359px) { .bar .btn--sm .wide { display: none; } }

/* ------------------------------------------------------- article header */
.ah { position: relative; padding-block: clamp(32px, 5vw, 72px) clamp(28px, 3.6vw, 48px); }
.ah::after {           /* the staff: five hairlines the lark sings on */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: 0; top: clamp(40px, 6vw, 84px); width: min(56vw, 760px); height: 57px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
          mask-image: linear-gradient(to right, transparent, #000 45%);
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 15px; color: var(--slate); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--mist); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--slate); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); }
.kicker {
  margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
  font: 600 14px/1.3 var(--mono); letter-spacing: 0.02em; color: var(--slate);
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 10px;
  border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink);
  font: 700 12px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase;
}
.chip--go { background: var(--citrus); }
.ah h1 {
  margin-top: var(--s4); max-width: 17em;
  font-weight: 680; font-size: clamp(2.375rem, 1.35rem + 3.9vw, 4.5rem); line-height: 1.0; letter-spacing: -0.04em;
}
/* the headline accent: a highlighter band under the lower half of the words, one piece per line */
.ah h1 em, .hub-head h1 em, .rail__t em {
  --hl: var(--citrus);
  font-style: normal; padding-inline: .06em; margin-inline: -.06em;
  background: linear-gradient(to bottom, transparent 54%, var(--hl) 54%, var(--hl) 86%, transparent 86%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html[data-theme="dark"] :is(.ah h1, .hub-head h1, .rail__t) em { --hl: #55662F; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) :is(.ah h1, .hub-head h1, .rail__t) em { --hl: #55662F; } }
.stand { margin-top: var(--s5); max-width: 36em; font-size: clamp(1.1875rem, 1.08rem + .45vw, 1.4375rem); line-height: 1.45; color: var(--ink); }
.byline { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.byline__who { display: flex; align-items: center; gap: var(--s3); }
.byline__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--fog), 0 0 0 3.5px var(--citrus); }
.byline__who strong { display: block; font-weight: 700; line-height: 1.2; }
.byline__who span { display: block; font-size: 15px; line-height: 1.3; color: var(--slate); }
.byline__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding-left: var(--s5); border-left: 1px solid var(--line); }
.byline__meta div { display: grid; gap: 2px; }
.byline__meta dt { font: 600 12px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.byline__meta dd { font-size: 15px; font-weight: 600; line-height: 1.3; }
@media (max-width: 640px) { .byline__meta { padding-left: 0; border-left: 0; width: 100%; } }

/* -------------------------------------------------------------- plate */
.plate { margin-bottom: clamp(32px, 4vw, 56px); }
.plate .fig { margin: 0; }

/* sheets: figures, answers, verdicts */
.fig {
  margin-block: var(--s6);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sheet);
  padding: clamp(16px, 2.4vw, 32px); box-shadow: var(--e1);
}
.fig svg { width: 100%; height: auto; overflow: visible; }
.fig figcaption {
  margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.45; color: var(--slate);
}
.fig figcaption b { font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-right: 4px; }
.fig--bleed { margin-inline: calc(-1 * clamp(0px, 4vw, 64px)); }
/* SVG vocabulary: draw with these classes so every figure and thumbnail themes itself */
svg .t { font-family: var(--text); fill: var(--ink); }
svg .t-s { fill: var(--slate); }
svg .t-d { font-family: var(--display); fill: var(--ink); letter-spacing: -0.02em; }
svg .t-m { font-family: var(--mono); fill: var(--slate); }
svg .ln { stroke: var(--line); fill: none; }
svg .ink { stroke: var(--ink); fill: none; }
svg .fo { stroke: var(--forest); fill: none; }
svg .f-ink { fill: var(--ink); }
svg .f-fog { fill: var(--fog); }
svg .f-white { fill: var(--white); }
svg .f-tint { fill: var(--tint); }
svg .f-line { fill: var(--line); }
svg .f-forest { fill: var(--forest); }
svg .f-citrus { fill: var(--citrus); }
svg .f-error { fill: var(--error); }
svg .s-error { stroke: var(--error); fill: none; }
svg .on-citrus { fill: var(--ink); }
svg .dash { stroke-dasharray: 4 4; }
svg .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: 0; }
.js .fig.is-pending .draw { stroke-dashoffset: var(--len, 600); }
.js .fig .draw { transition: stroke-dashoffset 1.1s var(--ease); }
.js .fig.is-pending .pop { opacity: 0; transform: translateY(6px); }
.js .fig .pop { transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 200ms); transform-box: fill-box; }

/* ------------------------------------------------------------ the answer */
.tldr {
  position: relative; margin-bottom: var(--s7);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sheet);
  padding: clamp(20px, 2.6vw, 32px); box-shadow: var(--e1);
}
.prose .tldr h2 { font: 700 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 var(--s4); padding: 0; border: 0; }
.tldr h2 .mark { display: inline-block; padding: 6px 10px; color: #0E1A16; }
.tldr p { font-size: clamp(1.125rem, 1.07rem + .25vw, 1.25rem); line-height: 1.5; }
.tldr p + p, .tldr p + ul, .tldr ul + p { margin-top: var(--s3); }
.tldr ul { margin: var(--s3) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tldr li { position: relative; padding-left: 22px; }
.tldr li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--ink); }

/* ------------------------------------------------------------- layout */
.doc { display: grid; grid-template-columns: minmax(0, 13.5rem) minmax(0, var(--prose)); gap: clamp(40px, 6vw, 96px); justify-content: center; align-items: start; padding-bottom: clamp(56px, 7vw, 112px); }
.doc > .doc__side { position: sticky; top: calc(var(--bar) + 32px); display: grid; gap: var(--s6); }
@media (max-width: 1080px) {
  .doc { grid-template-columns: minmax(0, var(--prose)); }
  .doc > .doc__side { position: static; }
}

/* table of contents: a list on desktop, a disclosure on narrow screens */
.toc { font-size: 15px; }
.toc details { border-block: 1px solid var(--line); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none;
  font: 700 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font: 400 22px/1 var(--text); transition: transform 200ms var(--ease); }
.toc details[open] summary::after { transform: rotate(45deg); }
.toc ol { list-style: none; margin: 0 0 var(--s3); padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  position: relative; display: flex; gap: 10px; align-items: baseline; min-height: 36px; padding: 6px 0 6px 0;
  text-decoration: none; color: var(--slate); line-height: 1.35;
  transition: color 180ms var(--ease);
}
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font: 600 12px/1.35 var(--mono); color: var(--slate); transition: color 180ms var(--ease); }
.toc a:hover, .toc a[aria-current] { color: var(--ink); }
.toc a[aria-current]::before { color: var(--ink); background: var(--citrus); border-radius: 3px; padding: 0 3px; margin-left: -3px; }
@media (min-width: 1081px) {
  .toc details { border: 0; }
  .toc summary { pointer-events: none; min-height: 0; margin-bottom: var(--s3); color: var(--slate); }
  .toc summary::after { content: none; }
}
@media (max-width: 1080px) {
  .toc { margin-bottom: 0; }
  .doc { row-gap: var(--s6); }
  .toc a { min-height: 44px; padding-block: 12px; }
}

/* --------------------------------------------------------------- prose */
.prose { font-size: 19px; line-height: 1.65; min-width: 0; }
@media (max-width: 640px) { .prose { font-size: 18px; } }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  margin-top: 2em; padding-top: .9em; border-top: 1px solid var(--line);
  font-weight: 660; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem); line-height: 1.08; letter-spacing: -0.03em;
}
.prose h2 + * { margin-top: .8em; }
.prose h3 { margin-top: 1.9em; font-weight: 640; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.018em; }
.prose h3 + * { margin-top: .5em; }
.prose a:where(:not(.btn)) { text-decoration-color: var(--forest); text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 600; border-radius: 3px; transition: background-color 180ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .prose a:where(:not(.btn)):hover { background: color-mix(in oklab, var(--citrus) 55%, transparent); }
  html[data-theme="dark"] .prose a:where(:not(.btn)):hover { background: color-mix(in oklab, var(--citrus) 22%, transparent); }
}
@media (hover: hover) and (pointer: fine) and (prefers-color-scheme: dark) { html:not([data-theme]) .prose a:where(:not(.btn)):hover { background: color-mix(in oklab, var(--citrus) 22%, transparent); } }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding: 0; list-style: none; }
.prose :where(li + li) { margin-top: .45em; }
.prose :where(ul > li) { position: relative; padding-left: 1.4em; }
.prose :where(ul > li)::before { content: ""; position: absolute; left: .15em; top: .66em; width: 7px; height: 7px; background: var(--forest); }
.prose ol { counter-reset: ol; }
.prose :where(ol > li) { position: relative; padding-left: 2.2em; counter-increment: ol; }
.prose :where(ol > li)::before { content: counter(ol); position: absolute; left: 0; top: .18em; display: grid; place-items: center; width: 1.45em; height: 1.45em; border: 1.5px solid var(--ink); border-radius: 50%; font: 700 .7em/1 var(--mono); }
.prose code { font: 500 .86em/1.4 var(--mono); background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .08em .34em; overflow-wrap: anywhere; }
.prose pre {
  background: var(--ink); color: var(--fog); border-radius: var(--r-sheet); padding: var(--s5);
  overflow-x: auto; font: 500 15px/1.6 var(--mono); tab-size: 2;
}
@media (max-width: 640px) { .prose pre { padding: 16px 18px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: break-word; } }
html[data-theme="dark"] .prose pre { background: #07120E; color: #EEF2F0; border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .prose pre { background: #07120E; color: #EEF2F0; border: 1px solid var(--line); } }
.prose pre code { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.prose pre .c { color: #9FB2A9; }
.prose pre .k { color: var(--citrus); }
.prose blockquote { margin-inline: 0; padding: .2em 0 .2em 1.1em; border-left: 2px solid var(--forest); font-size: 1.08em; line-height: 1.5; }
.prose blockquote cite { display: block; margin-top: .5em; font: 500 14px/1.4 var(--mono); font-style: normal; color: var(--slate); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.prose sup { line-height: 0; font-size: .72em; vertical-align: .55em; }
.prose sup a { font: 600 1em/1 var(--mono); text-decoration: none; padding: 0 .15em; }
.prose .lead { font-size: 1.12em; line-height: 1.55; }

/* tables: hairlines, mono heads, scroll on phones */
.tbl { margin-block: var(--s6); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--white); -webkit-overflow-scrolling: touch; }
.tbl:focus-visible { outline-offset: 2px; }
.tbl table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.tbl caption { caption-side: bottom; text-align: left; padding: var(--s3) var(--s4); font-size: 14px; color: var(--slate); border-top: 1px solid var(--line); }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl thead th { background: var(--tint); font: 700 12px/1.3 var(--text); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.tbl tbody th { font-weight: 700; min-width: 9rem; }
.tbl td.us, .tbl th.us { background: color-mix(in oklab, var(--citrus) 18%, var(--white)); }
.tbl thead th.us { background: var(--citrus); color: #0E1A16; }
.tbl .yes, .tbl .no, .tbl .part { display: inline-flex; align-items: baseline; gap: 6px; }
.tbl .yes::before { content: "✓"; content: "✓" / ""; font-weight: 800; color: var(--forest); }
.tbl .no::before { content: "–"; content: "–" / ""; font-weight: 800; color: var(--slate); }
.tbl .part::before { content: "◐"; content: "◐" / ""; font-size: .9em; color: var(--forest); }
.tbl small { display: block; margin-top: 2px; font-size: 13px; color: var(--slate); }
.tbl code { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.tbl thead th { text-wrap: balance; }
/* the note under a table sits outside the scroll box so it never gets cut */
.tbl-note { margin-top: calc(-1 * var(--s6) + var(--s3)) !important; margin-bottom: var(--s6); font-size: 14px; line-height: 1.5; color: var(--slate); }
.tbl-hint { margin: var(--s6) 0 calc(-1 * var(--s6) + var(--s2)) !important; font: 600 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.tbl.is-scroll:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0,0,0,.25)); mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0,0,0,.25)); }

/* callouts */
.note, .wins, .check, .facts, .verdict > div {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sheet);
  padding: clamp(18px, 2.2vw, 28px); margin-block: var(--s6);
}
.note > :first-child, .wins > :first-child, .check > :first-child { margin-top: 0; }
.callout__h, .prose .callout__h { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); font: 700 13px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.callout__h svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note p, .wins p { font-size: 17px; line-height: 1.55; }
.note p + p { margin-top: .7em; }
.wins { background: var(--tint); border-color: transparent; }
.wins ol, .wins ul { margin: 0; padding: 0; list-style: none; counter-reset: w; display: grid; gap: var(--s4); }
.wins li { position: relative; padding-left: 2.4em; counter-increment: w; font-size: 17px; line-height: 1.5; }
.wins li::before { content: counter(w); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.7em; height: 1.7em; border: 0; border-radius: 50%; background: var(--ink); color: var(--fog); font: 700 13px/1 var(--mono); }
.wins li strong { display: block; font-family: var(--display); font-weight: 640; font-size: 1.1em; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 2px; }
.check ul, .check ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.check li { position: relative; padding: 12px 0 12px 36px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.check li:first-child { border-top: 0; }
.prose .check li + li { margin-top: 0; }
.check li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 18px; height: 18px; background: none; border: 1.5px solid var(--ink); border-radius: 4px; }
.check li strong { font-weight: 700; }

/* vendor facts with their dated source */
.facts { padding: 0; overflow: hidden; }
.facts h3 { margin: 0; padding: var(--s4) var(--s5); background: var(--tint); font: 700 13px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.facts h3 + dl { margin-top: 0; }
.facts dl { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 2.2fr); }
.facts dt, .facts dd { padding: 12px var(--s5); border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.facts dt { font-weight: 700; }
.facts dd small { display: block; margin-top: 3px; font: 500 12.5px/1.4 var(--mono); color: var(--slate); }
.facts dd small a { color: inherit; }
@media (max-width: 560px) { .facts dl { grid-template-columns: 1fr; } .facts dd { border-top: 0; padding-top: 0; } }

/* choose-this-if: two sheets side by side */
.verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-block: var(--s6); }
.verdict > div { margin: 0; }
.verdict h3 { margin: 0 0 var(--s3); font-size: 1.2rem; line-height: 1.2; }
.verdict ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.verdict li { position: relative; padding-left: 1.5em; font-size: 16.5px; line-height: 1.5; }
.verdict li::before { content: "→"; position: absolute; left: 0; top: 0; width: auto; height: auto; background: none; color: var(--forest); font-weight: 700; }
.verdict .is-us { border: 1.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
@media (max-width: 680px) { .verdict { grid-template-columns: 1fr; } }

/* questions at the end */
.faq { margin-top: var(--s5); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 60px; padding-block: 14px; cursor: pointer; list-style: none;
  font: 640 1.15rem/1.3 var(--display); letter-spacing: -0.012em; text-wrap: balance;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--ink); border-radius: 50%; font: 400 20px/1 var(--text); transition: transform 220ms var(--ease), background-color 220ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--citrus); --ink: #0E1A16; color: #0E1A16; border-color: #0E1A16; }
.faq details > div { padding-bottom: var(--s5); }
.faq details > div p { font-size: 17.5px; line-height: 1.6; }
.faq details > div p + p { margin-top: .7em; }

/* sources, numbered */
.refs { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.refs h2 { margin: 0 0 var(--s4) !important; padding: 0 !important; border: 0 !important; font: 700 13px/1.2 var(--text) !important; letter-spacing: .08em; text-transform: uppercase; }
.refs ol { counter-reset: r; display: grid; gap: 10px; }
.refs ol > li { padding-left: 2.4em; font-size: 15px; line-height: 1.5; counter-increment: r; color: var(--slate); }
.refs ol > li::before { content: counter(r); border: 0; top: .05em; width: auto; height: auto; font: 600 13px/1.5 var(--mono); color: var(--slate); }
.refs a { color: var(--ink); overflow-wrap: anywhere; }
.refs time { white-space: nowrap; }
.faq + .refs { border-top: 0; padding-top: 0; }

/* ------------------------------------------------------------ end matter */
.author {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: start;
  margin-top: var(--s7); padding: var(--s5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sheet);
}
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--citrus); }
.author h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 1.25rem !important; letter-spacing: -0.015em; }
.author p { margin-top: 6px; font-size: 16.5px; line-height: 1.5; color: var(--slate); }
.author nav { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.author nav a { font-size: 15.5px; min-height: 44px; }
@media (max-width: 560px) {
  .author { grid-template-columns: 56px minmax(0, 1fr); align-items: center; row-gap: var(--s3); }
  .author > div { display: contents; }
  .author img { width: 56px; height: 56px; }
  .author h2 { grid-column: 2; }
  .author p, .author nav { grid-column: 1 / -1; margin-top: 0; }
}

.related { padding-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.related__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.related h2 { font-weight: 660; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.cards { margin: var(--s6) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s3); height: 100%;
  padding: var(--s5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sheet);
  text-decoration: none; color: var(--ink);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.card__k { font: 600 12px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.card__t { font: 650 1.3rem/1.15 var(--display); letter-spacing: -0.022em; text-wrap: balance; }
.card__d { font-size: 16px; line-height: 1.5; color: var(--slate); }
.card__go { margin-top: auto; padding-top: var(--s2); font-weight: 650; font-size: 16px; display: inline-flex; gap: 6px; }
.card__art { height: 88px; margin: calc(-1 * var(--s2)) 0 var(--s1); border-radius: 8px; background: var(--fog); overflow: hidden; }
.card__art svg { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-3px); box-shadow: var(--e2); border-color: var(--mist); } }
.card:focus-visible { outline-offset: 4px; }

/* forest band, as on the homepage pilot */
.cta { background: var(--forest); color: #EEF2F0; padding-block: clamp(56px, 7vw, 112px); position: relative; overflow: hidden; }
html[data-theme="dark"] .cta { background: #1F5445; border-block: 1px solid #2F6B58; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .cta { background: #1F5445; border-block: 1px solid #2F6B58; } }
.cta__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6) clamp(32px, 6vw, 96px); align-items: end; }
.cta h2 { font-weight: 680; font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.04em; color: #FFFFFF; }
.cta p { margin-top: var(--s4); font-size: 1.15rem; line-height: 1.5; color: #D9E4DE; max-width: 30em; }
.cta__act { display: grid; gap: var(--s3); justify-items: start; }
.cta__act .btn--go { --ink: #0E1A16; }
.cta__act .link { color: #FFFFFF; }
.cta__fine { font-size: 15px !important; color: #B9C9C0 !important; margin-top: 0 !important; }
.cta__staff { position: absolute; left: 0; right: 0; top: 18px; height: 57px; pointer-events: none; opacity: .22;
  background: repeating-linear-gradient(to bottom, #EEF2F0 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); mask-image: linear-gradient(to right, #000, transparent 70%); }
@media (max-width: 820px) { .cta__in { grid-template-columns: 1fr; align-items: start; } .cta { padding-top: 96px; } }

/* footer, same as the homepage */
.foot { background: var(--ink); color: var(--white); padding-block: var(--s7); }
html[data-theme="dark"] .foot { --ink: #07120E; --white: #EEF2F0; --mist: #B9C9C0; border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .foot { --ink: #07120E; --white: #EEF2F0; --mist: #B9C9C0; border-top: 1px solid var(--line); } }
.foot__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5) var(--s6); align-items: start; }
.foot__text { font-size: 15px; line-height: 1.5; color: var(--mist); max-width: 46em; }
.foot__text p + p { margin-top: 8px; }
.foot__text strong { color: var(--white); font-weight: 600; }
.foot__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0 var(--s5); justify-items: start; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; text-underline-offset: 4px; }
@media (max-width: 860px) { .foot__in { grid-template-columns: auto minmax(0, 1fr); } .foot__nav { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__nav { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- hubs */
.hub-head { padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); position: relative; }
.hub-head::after { content: ""; position: absolute; z-index: -1; right: 0; top: clamp(48px, 7vw, 96px); width: min(60vw, 820px); height: 57px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%); }
.hub-head h1 { margin-top: var(--s4); font-weight: 680; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5rem); line-height: .98; letter-spacing: -0.045em; max-width: 14em; }
.hub-head .stand { max-width: 34em; }
.hub-list { list-style: none; margin: 0; padding: 0 0 clamp(56px, 7vw, 112px); border-top: 1px solid var(--line); }
.hub-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: var(--s3) clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: background-color 220ms var(--ease);
}
.hub-row__art { aspect-ratio: 16 / 9; border-radius: 10px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.hub-row__art svg { width: 100%; height: 100%; }
.hub-row__k, .hub-row__t, .hub-row__d { display: block; }
.hub-row__k { font: 600 12px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.hub-row__t { margin-top: 8px; font: 660 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.08 var(--display); letter-spacing: -0.028em; text-wrap: balance; }
.hub-row__d { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--slate); max-width: 36em; }
.hub-row__go { display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 20px; transition: background-color 220ms var(--ease), transform 220ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .hub-row:hover .hub-row__go { background: var(--citrus); transform: translateX(4px); --ink: #0E1A16; color: #0E1A16; }
  .hub-row:hover .hub-row__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
}
.hub-row:focus-visible { outline-offset: -2px; }
@media (min-width: 761px) and (max-width: 1000px) { .hub-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; } }
@media (max-width: 760px) {
  .hub-row { grid-template-columns: minmax(0, 1fr); }
  .hub-row__go { display: none; }
}

/* ------------------------------------------------------------ motion */
html.theming, html.theming *, html.theming *::before, html.theming *::after { transition: background-color 360ms var(--ease), color 360ms var(--ease), border-color 360ms var(--ease), fill 360ms var(--ease), stroke 360ms var(--ease), box-shadow 360ms var(--ease) !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .fig.is-pending .draw { stroke-dashoffset: 0; }
  .js .fig.is-pending .pop { opacity: 1; transform: none; }
}

@media print {
  .bar, .toc, .cta, .related, .foot, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { display: block; }
  .js .fig.is-pending .draw { stroke-dashoffset: 0; }
  .js .fig.is-pending .pop { opacity: 1; transform: none; }
}

/* how the page was made, under the sources */
/* phones: the staff would run through the breadcrumb, so it sings only in the CTA band */
@media (max-width: 760px) { .ah::after, .hub-head::after { display: none; } }

/* tables on phones: three columns fit; wider tables scroll with the row label pinned */
.tbl table:has(thead th:nth-child(4)) tbody th,
.tbl table:has(thead th:nth-child(4)) thead th:first-child { position: sticky; left: 0; z-index: 1; }
.tbl table:has(thead th:nth-child(4)) tbody th { background: var(--white); box-shadow: 1px 0 0 var(--line); }
.tbl table:has(thead th:nth-child(4)) thead th:first-child { background: var(--tint); box-shadow: 1px 0 0 var(--line); }
@media (max-width: 560px) {
  .tbl table { min-width: 0; font-size: 15px; }
  .tbl th, .tbl td { padding: 10px; }
  .tbl tbody th { min-width: 0; width: 31%; }
  .tbl thead th { white-space: normal; }
  .tbl table:has(thead th:nth-child(4)) { min-width: 34rem; }
  .tbl table:has(td code) { min-width: 38rem; }
  .tbl table:is(:has(thead th:nth-child(4)), :has(td code)) tbody th { width: auto; min-width: 7.5rem; }
}

/* figures: a wide drawing for desktop, a taller and simpler one for phones */
.fig .m-only { display: none; }
@media (max-width: 760px) {
  .fig .d-only { display: none; }
  .fig .m-only { display: block; max-width: 440px; margin-inline: auto; }
}
@media (min-width: 761px) and (max-width: 1120px) {
  .plate .fig .d-only { display: none; }
  .plate .fig .m-only { display: block; max-width: 520px; margin-inline: auto; }
}
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------ offers
   One card inside each article, placed where a reader is most likely to want the work done,
   and a small card under the contents on wide, tall screens. Copy comes from .seo/truth.md. */
.prose > .offer { margin-block: var(--s8); }
.offer {
  position: relative; padding: clamp(24px, 3.4vw, 36px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sheet); box-shadow: var(--e2);
}
.offer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.offer .offer__k, .rail__k { margin: 0; font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.offer__staff { flex: none; width: 132px; height: auto; overflow: visible; }
.offer .offer__t { margin: var(--s4) 0 0; max-width: 19em; font: 660 clamp(1.5rem, 1.2rem + 1vw, 1.875rem)/1.08 var(--display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.offer .offer__d { margin: var(--s3) 0 0; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--slate); text-wrap: pretty; }
.offer .offer__steps { margin: var(--s5) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.offer .offer__steps li { display: grid; grid-template-columns: 8.25rem minmax(0, 1fr); gap: var(--s4); margin: 0; padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.offer .offer__steps li::before { content: none; }
.offer__when { padding-top: 3px; font: 600 12px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.offer .offer__act { margin: var(--s5) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.offer .offer__fine { margin: var(--s4) 0 0; font-size: 14px; line-height: 1.5; color: var(--slate); }
@media (max-width: 560px) {
  .offer .offer__steps li { grid-template-columns: 1fr; gap: 2px; }
  .offer__staff { width: 96px; }
  .offer .offer__act .btn { width: 100%; }
}

.rail { display: none; }
@media (min-width: 1081px) and (min-height: 760px) {
  .rail {
    display: grid; gap: var(--s3); justify-items: start; padding: var(--s5) var(--s5) var(--s4);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sheet); box-shadow: var(--e1);
    transition: opacity 320ms var(--ease), visibility 0s linear 0s;
  }
  /* the storage notice sits in the same bottom-left corner: the rail waits until it is gone */
  .il-notice-open .rail { opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s linear 200ms; }
}
.rail .rail__t { margin: 0; font: 660 1.25rem/1.12 var(--display); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.rail .rail__t em { font-style: normal; }
.rail .rail__d { margin: 0; font-size: 15px; line-height: 1.5; color: var(--slate); }
.rail .btn { width: 100%; margin-top: var(--s1); }
.rail .rail__fine { margin: 0; font-size: 13px; line-height: 1.45; color: var(--slate); }
@media print { .offer, .rail { display: none !important; } }
