/* ============================================================================
   Solar Power Auditor — Field Almanac design system
   Written from "BPA - Design Spec.md" §1 tokens. Radius 0 throughout; the only
   curve in the system is the score-bar cap.
   ========================================================================== */

/* --- 1 · Tokens ---------------------------------------------------------- */

:root {
  --surface:      #FBF8EF;
  --surface-2:    #F7F3E7;
  --surface-3:    #EFEADA;
  --card:         #FFFFFF;

  --rule:         #DFD9C6;
  --rule-strong:  #C3BCA5;
  --rule-faint:   #EEE9D9;
  --track:        #E6E0CD;

  --ink:          #1A1D18;
  --ink-2:        #2E3229;
  --ink-muted:    #5F6459;
  --ink-faint:    #63685B;

  --pine:         #1F4D3D;
  --accent:       #E2701E;
  --accent-hover: #F0863A;
  --accent-active:#FFA05A;
  --accent-deep:  #9C4F0A;

  --pass:         #2E6B3E;
  --warn:         #8A5A0F;
  --fail:         #9C3324;

  --tint-accent:  #FDF3E4;
  --tint-warn:    #FDF6E7;

  --slab: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* space scale — 4 8 12 16 20 22 32 44 56 88 */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 22px; --s7: 32px; --s8: 44px; --s9: 56px; --s10: 88px;

  --gutter: 56px;
  --container: 1200px;
  --measure: 68ch;
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
}

/* --- 2 · Reset ----------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* The wrapper scrolls, never the page (spec §3 compare-table). */
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding-left: 0; list-style-position: outside; }

a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Focus is never removed (spec §1 geometry). */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Motion: 120ms linear, colour and border only. */
a, button, .btn, .card-link, summary, .nav__link {
  transition: background-color 120ms linear, border-color 120ms linear, color 120ms linear;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- 3 · Type scale ------------------------------------------------------ */

.t-display, .t-h1, .t-h2 { font-family: var(--slab); font-weight: 600; }

.t-display {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.t-h1 {
  font-size: clamp(31px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: pretty;
}

.t-h2 {
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.t-h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--pine);
}

.t-body { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.t-small { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

.t-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Every measured figure is mono and tabular (spec §1). */
.t-data,
.ctable__table td,
.score__value,
.spec__value,
.stat__value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .t-body { font-size: 16.5px; }
}

/* --- 4 · Layout ---------------------------------------------------------- */

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--s8); }
.band--tint { background: var(--surface-3); border-block: 1px solid var(--rule); }
.band--card { background: var(--card); border-block: 1px solid var(--rule); }

.stack { display: flex; flex-direction: column; }
.stack--2 { gap: var(--s2); }
.stack--3 { gap: var(--s3); }
.stack--4 { gap: var(--s4); }
.stack--5 { gap: var(--s5); }
.stack--7 { gap: var(--s7); }
.stack--8 { gap: var(--s8); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: var(--s3) var(--s5);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --- 5 · Disclosure bar (every page, spec §3) ---------------------------- */

.disclosure {
  background: var(--surface-3);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.disclosure__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 11px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}

.disclosure__link { text-decoration: underline; font-weight: 500; white-space: nowrap; }

@media (max-width: 767px) {
  .disclosure__inner { display: block; padding: 9px var(--gutter); font-size: 11.5px; }
  .disclosure__link { white-space: normal; }
}

/* Inline dashed variant, above the first outbound link in the body. */
.disclosure-inline {
  border: 1px dashed var(--rule-strong);
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.disclosure-inline b { color: var(--ink-2); font-weight: 600; }
.disclosure-inline a { text-decoration: underline; }

/* --- 6 · Nav ------------------------------------------------------------- */

.nav { border-bottom: 1px solid var(--rule); background: var(--surface); }

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--s4) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s7);
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand:hover { text-decoration: none; }

.brand__mark {
  width: 34px; height: 34px; flex: none;
  background: var(--pine);
  color: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--slab);
  font-size: 17px;
  font-weight: 600;
}

.brand__name {
  font-family: var(--slab);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--pine); }

/* The bar never wraps (spec §3 nav). */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s6);
  font-size: 14.5px;
  font-weight: 500;
  flex-wrap: nowrap;
}

.nav__link { color: var(--ink); white-space: nowrap; }
.nav__link[aria-current="page"] {
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.nav__search {
  border: 1px solid var(--rule);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.nav__search:hover { border-color: var(--pine); color: var(--pine); text-decoration: none; }

.nav__toggle { display: none; }

.nav__burger,
.nav__searchicon {
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--pine);
}
.nav__burger { border: 1px solid var(--rule-strong); }
.nav__searchicon { color: var(--ink-muted); font-size: 14px; }

@media (max-width: 1023px) {
  .nav__links {
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s5);
    z-index: 40;
  }
  .nav { position: relative; }
  .nav__toggle:checked ~ .nav__links { display: flex; }
  .nav__links .nav__link,
  .nav__links .nav__search {
    min-height: 48px;
    display: flex;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--rule-faint);
    font-size: 16px;
  }
  .nav__burger, .nav__searchicon { display: flex; }
  .nav__actions { display: flex; gap: 6px; }
  .brand__name { font-size: 16px; }
  .brand__mark { width: 30px; height: 30px; font-size: 15px; }
  .nav__inner { padding: var(--s3) var(--gutter); }
}

@media (min-width: 1024px) {
  .nav__actions { display: none; }
}

/* Reading progress strip under the nav. */
.progress { height: 3px; background: var(--track); }
.progress__fill { display: block; height: 3px; background: var(--accent); width: 0; }

/* --- 7 · Breadcrumb ------------------------------------------------------ */

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.crumb__sep { color: var(--rule-strong); }
.crumb__current { color: var(--ink); }

/* --- 8 · Page header ----------------------------------------------------- */

.phead {
  background: var(--surface-3);
  border-bottom: 1px solid var(--rule);
  padding-block: 26px var(--s8);
}

.phead__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.phead__standfirst {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
}

.phead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  align-items: center;
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-muted);
}
.phead__meta b { color: var(--ink); font-weight: 600; }
.phead__basis { color: var(--pine); font-weight: 700; }

.phead__grid { display: grid; grid-template-columns: 1fr 400px; gap: 52px; align-items: end; }

.byline { display: flex; align-items: center; gap: 9px; }
.byline__avatar {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: var(--ink-2);
}

@media (max-width: 1023px) {
  .phead__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .phead__standfirst { font-size: 16.5px; line-height: 1.6; }
  .phead__meta { gap: var(--s3); font-size: 12.5px; }
}

/* --- 9 · Article grid ---------------------------------------------------- */

.article {
  display: grid;
  gap: 52px;
  align-items: start;
  padding-block: var(--s8) 60px;
}

/* Rail left — roundup, head-to-head, guide. */
.article--railleft { grid-template-columns: 320px 1fr; }
/* Rail right — single review, so the score box sits beside the narrative. */
.article--railright { grid-template-columns: 1fr 360px; }
/* No rail — trust pages, legal, indexes. THIS RULE MUST EXIST. */
.article--norail { grid-template-columns: minmax(0, 1fr); }

.article__body { display: flex; flex-direction: column; gap: 36px; max-width: 820px; min-width: 0; }
.article--norail .article__body { max-width: 820px; }

.article__rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 20px;
  min-width: 0;
}

@media (max-width: 1023px) {
  .article,
  .article--railleft,
  .article--railright,
  .article--norail { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .article__rail { position: static; order: -1; }
  .article__body { max-width: none; }
}

/* --- 10 · Prose ---------------------------------------------------------- */

.prose { display: flex; flex-direction: column; gap: var(--s4); }
.prose p { max-width: var(--measure); font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose ul, .prose ol { max-width: var(--measure); padding-left: var(--s4); line-height: 1.7; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }

@media (max-width: 767px) {
  .prose p { font-size: 16.5px; line-height: 1.7; }
}

/* H2 rhythm: 44px top margin, 2px accent bottom rule (spec §1). */
.section { display: flex; flex-direction: column; gap: var(--s4); }
.section > .t-h2 {
  margin-top: var(--s8);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.section:first-child > .t-h2 { margin-top: 0; }

.section__num {
  font-family: var(--mono);
  font-size: 0.6em;
  font-weight: 500;
  color: var(--accent-deep);
  margin-right: 0.5em;
}

/* --- 11 · Callouts ------------------------------------------------------- */

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule-strong);
  background: var(--card);
  padding: var(--s4) var(--s5);
}
.callout__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-muted);
}
.callout__body { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 64ch; }

.callout--key { border-left-color: var(--accent); background: var(--tint-accent); }
.callout--key .callout__label { color: var(--accent-deep); }

.callout--warn { border-left-color: var(--warn); background: var(--tint-warn); }
.callout--warn .callout__label { color: var(--warn); }

.callout--note { border-left-color: var(--rule-strong); background: var(--card); }
.callout--note .callout__label { color: var(--ink-muted); }

/* --- 12 · Winner / split markers ----------------------------------------- */

.marker {
  display: flex;
  align-items: center;
  gap: var(--s3);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--pine);
  background: var(--card);
  padding: 14px 18px;
}
.marker__chip {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  white-space: nowrap;
  background: var(--pine);
  color: var(--surface);
}
.marker__text { font-size: 15.5px; color: var(--ink-2); }
.marker__text b { color: var(--ink); }

.marker--split { border-left-color: var(--rule-strong); }
.marker--split .marker__chip {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
}

@media (max-width: 639px) {
  .marker { align-items: flex-start; flex-direction: column; gap: var(--s2); }
}

/* --- 13 · Chips ---------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 7px;
  white-space: nowrap;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
}
.chip--win { background: var(--pine); color: var(--surface); border-color: var(--pine); }
.chip--rank { background: var(--pine); color: var(--surface); border-color: var(--pine); }
.chip--alt { background: transparent; }

/* --- 14 · Buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; }

/* Primary is the outbound click-out only. Ramp lightens (spec §1). */
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-active); }

.btn--secondary { border: 1px solid var(--rule-strong); color: var(--pine); padding: 13px 20px; }
.btn--secondary:hover { border-color: var(--pine); }

.btn--block { display: flex; width: 100%; }

.btn__alt {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}

.btn-row { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* --- 15 · Product card --------------------------------------------------- */

.pcard { border: 1px solid var(--rule); background: var(--card); }
.pcard--win { border-color: var(--pine); }

.pcard__head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--rule);
}

.pcard__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s5);
  padding: var(--s5);
}

.pcard__media { min-width: 0; }

.pcard__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.spec { background: var(--card); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.spec__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.spec__value { font-size: 13.5px; color: var(--ink); }

/* The signature strip: runtime in pine, solar in orange. */
.runstrip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.runstrip__cell { background: var(--card); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.runstrip__label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.runstrip__value {
  font-family: var(--slab);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}
.runstrip__cell--solar .runstrip__value { color: var(--accent); }

.plists { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.plist { background: var(--card); padding: 18px 20px; }
.plist__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
}
.plist--pro .plist__label { color: var(--pass); }
.plist--con .plist__label { color: var(--fail); }
.plist ul { margin: 0; padding-left: var(--s4); font-size: 15px; line-height: 1.7; color: var(--ink-2); }

@media (max-width: 639px) {
  /* Image full-width 4:3 above the title; strengths first (spec §3). */
  .pcard__grid { grid-template-columns: minmax(0, 1fr); }
  .pcard__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plists { grid-template-columns: minmax(0, 1fr); }
  .runstrip { grid-template-columns: minmax(0, 1fr); }
}

/* --- 16 · Image slot ----------------------------------------------------- */

.imgslot {
  background: repeating-linear-gradient(135deg, var(--surface-3) 0 8px, #E0DAC7 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s4);
}
.imgslot__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 600;
}
.imgslot--1x1 { aspect-ratio: 1 / 1; }
.imgslot--4x3 { aspect-ratio: 4 / 3; }
.imgslot--4x5 { aspect-ratio: 4 / 5; }
.imgslot--16x9 { aspect-ratio: 16 / 9; }

.figcap { font-size: 12px; color: var(--ink-muted); font-style: italic; margin-top: var(--s2); }

/* --- 17 · Measured-figure card (the no-image fallback) ------------------- */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stat { border: 1px solid var(--rule); background: var(--card); padding: var(--s4); display: flex; flex-direction: column; gap: 5px; }
.stat__value {
  font-family: var(--slab);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--pine);
}
.stat--solar .stat__value { color: var(--accent); }
.stat--big .stat__value { font-size: 44px; }
.stat__label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

@media (max-width: 639px) {
  .stats, .stats--2 { grid-template-columns: minmax(0, 1fr); }
  .stat--big .stat__value { font-size: 32px; }
}

/* --- 18 · Score box ------------------------------------------------------ */

.score { border: 1px solid var(--pine); background: var(--card); }

.score__head {
  display: flex;
  align-items: flex-end;
  gap: var(--s5);
  padding: var(--s6) var(--s5);
  border-bottom: 1px solid var(--rule);
}
.score__numeral {
  font-family: var(--slab);
  font-size: 66px;
  font-weight: 600;
  line-height: 0.85;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}
.score__outof {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 6px;
}
.score__title { font-family: var(--slab); font-size: 19px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.score__verdict { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

.score__row {
  display: grid;
  grid-template-columns: 1fr 40px 34px;
  gap: 10px;
  align-items: center;
  padding: 10px var(--s5);
  border-bottom: 1px solid var(--rule-faint);
  font-size: 13.5px;
}
.score__row:last-of-type { border-bottom: 0; }
.score__bar { height: 6px; background: var(--track); }
.score__fill { display: block; height: 6px; background: var(--pine); border-radius: 0 4px 4px 0; }
.score__fill--warn { background: var(--warn); }
.score__fill--fail { background: var(--fail); }
.score__value { text-align: right; font-weight: 600; font-size: 13.5px; }

.score__sum {
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--rule);
  background: var(--tint-accent);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}
.score__sum a { text-decoration: underline; font-weight: 600; }

@media (max-width: 1023px) {
  .score__numeral { font-size: 56px; }
  .score__row { grid-template-columns: 1fr 58px 32px; padding: 10px var(--s4); }
}

/* --- 19 · Price block ---------------------------------------------------- */

.price {
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); }
.price__value { font-family: var(--slab); font-size: 30px; font-weight: 600; line-height: 1; color: var(--ink); }
.price__meta { font-size: 10.5px; color: var(--ink-muted); line-height: 1.5; }
.price__unit { font-size: 10.5px; color: var(--ink-muted); text-align: right; line-height: 1.5; }
.price__note { text-align: center; font-size: 12px; color: var(--ink-muted); }

.price--stale .price__value { color: var(--warn); }
.price--drop .price__was { text-decoration: line-through; color: var(--ink-muted); }
.price--drop .price__delta { color: var(--pass); font-weight: 600; }

/* --- 20 · Comparison table ----------------------------------------------- */

.ctable { display: flex; flex-direction: column; gap: var(--s3); max-width: 100%; min-width: 0; }

.ctable__scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.ctable__scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.ctable__table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.ctable__table th {
  text-align: right;
  padding: 11px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  white-space: nowrap;
}
.ctable__table th:first-child { text-align: left; padding-left: 0; }
.ctable__table thead tr { border-bottom: 2px solid var(--ink); }

.ctable__table td { padding: 13px 10px; text-align: right; }
.ctable__table td:first-child {
  text-align: left;
  padding-left: 0;
  font-weight: 700;
  font-family: var(--sans);
  font-variant-numeric: normal;
  color: var(--ink);
}
.ctable__table tbody tr { border-bottom: 1px solid var(--rule-faint); }
.ctable__table tbody tr:nth-child(even) { background: var(--surface-2); }
.ctable__table tbody tr:last-child { border-bottom: 2px solid var(--ink); }

.ctable__table .is-pass { color: var(--pass); font-weight: 600; }
.ctable__table .is-warn { color: var(--warn); font-weight: 600; }
.ctable__table .is-fail { color: var(--fail); }

.ctable__hint {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}
.ctable__hint::before { content: ""; flex: 1; height: 1px; background: var(--rule); }

.ctable__cards { display: none; flex-direction: column; gap: 14px; }

.kvcard { border: 1px solid var(--rule); background: var(--card); }
.kvcard--win { border-color: var(--pine); }
.kvcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--slab);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.kvcard--win .kvcard__head { background: var(--pine); color: var(--surface); border-bottom-color: var(--pine); }
.kvcard__chip { font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }

.kvcard__dl { display: grid; grid-template-columns: auto 1fr; gap: 1px; background: var(--rule); margin: 0; }
.kvcard__dl dt {
  background: var(--card);
  padding: 9px 14px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.kvcard__dl dd {
  background: var(--card);
  padding: 9px 14px;
  margin: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  text-align: right;
  color: var(--ink);
}
.kvcard__dl dd.is-pass { color: var(--pass); font-weight: 600; }
.kvcard__dl dd.is-warn { color: var(--warn); font-weight: 600; }
.kvcard__dl dd.is-fail { color: var(--fail); }

/* Fold rules — data-fold is computed at build time from the column count.
   full     (2–3 cols) never folds
   scroll-sm (4–5)     h-scroll + pinned first column below 640
   cards-sm  (6–8)     h-scroll + pinned 640–1023, stacked cards below 640 */

@media (max-width: 1023px) {
  .ctable[data-fold="cards-sm"] .ctable__hint { display: flex; }
  .ctable[data-fold="cards-sm"] .ctable__table th:first-child,
  .ctable[data-fold="cards-sm"] .ctable__table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--tint-accent);
    border-right: 2px solid var(--accent);
    padding-left: 12px;
  }
  .ctable[data-fold="cards-sm"] .ctable__table thead th:first-child { background: var(--pine); color: var(--surface); }
}

@media (max-width: 639px) {
  .ctable[data-fold="cards-sm"] .ctable__scroll,
  .ctable[data-fold="cards-sm"] .ctable__hint { display: none; }
  .ctable[data-fold="cards-sm"] .ctable__cards { display: flex; }

  .ctable[data-fold="scroll-sm"] .ctable__hint { display: flex; }
  .ctable[data-fold="scroll-sm"] .ctable__table th:first-child,
  .ctable[data-fold="scroll-sm"] .ctable__table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--tint-accent);
    border-right: 2px solid var(--accent);
    padding-left: 12px;
  }
  .ctable[data-fold="scroll-sm"] .ctable__table thead th:first-child { background: var(--pine); color: var(--surface); }
}

/* Simple in-prose tables (load tables, spec pairs) */
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptable th {
  text-align: right;
  padding: 10px 12px;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.ptable th:first-child { text-align: left; padding-left: 0; }
.ptable th:last-child { padding-right: 0; }
.ptable thead tr { border-bottom: 1px solid var(--rule-strong); }
.ptable td { padding: 12px; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ptable td:first-child { text-align: left; padding-left: 0; font-family: var(--sans); font-weight: 600; color: var(--ink); }
.ptable td:last-child { padding-right: 0; }
.ptable tbody tr { border-bottom: 1px solid var(--rule-faint); }
.ptable tbody tr:last-child { border-bottom: 0; }

/* --- 21 · Verdict box ---------------------------------------------------- */

.verdict { border: 1px solid var(--pine); background: var(--card); }
.verdict__head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s3) var(--s5);
  background: var(--pine);
  color: var(--surface);
}
.verdict__label { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.verdict__sig { font-family: var(--mono); font-size: 10.5px; }
.verdict__body { padding: var(--s6) var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.verdict__body p { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); max-width: 66ch; }

.buyif { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.buyif__col { background: var(--surface); padding: var(--s4) 18px; }
.buyif__label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--s2); font-weight: 700; color: var(--pine); }
.buyif__col--b .buyif__label { color: var(--ink-muted); }
.buyif ul { margin: 0; padding-left: var(--s4); font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }

@media (max-width: 639px) { .buyif { grid-template-columns: minmax(0, 1fr); } }

/* --- 22 · FAQ ------------------------------------------------------------ */

.faq { border: 1px solid var(--rule); background: var(--card); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  min-height: 48px;
  font-family: var(--slab);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "\FF0B";
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-muted);
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; color: var(--accent); }
.faq p { margin: 0; padding: 0 var(--s5) 18px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); max-width: 66ch; }

@media (max-width: 639px) { .faq summary { font-size: 17px; padding: var(--s3) var(--s4); } .faq p { padding: 0 var(--s4) var(--s4); } }

/* --- 23 · Author box ----------------------------------------------------- */

.author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid var(--rule);
  background: var(--card);
  padding: var(--s5);
}
.author__avatar {
  width: 64px; height: 64px; flex: none;
  background: repeating-linear-gradient(135deg, var(--surface-3) 0 6px, #E0DAC7 6px 12px);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-muted); font-weight: 700;
}
.author__name { font-family: var(--slab); font-size: 20px; font-weight: 600; color: var(--ink); }
.author__bio { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }

/* --- 24 · Cards & related ------------------------------------------------ */

.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cardgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cardgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card-link {
  border: 1px solid var(--rule);
  background: var(--card);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  min-width: 0;
}
.card-link:hover { border-color: var(--pine); text-decoration: none; }
.card-link__kicker { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; }
.card-link__title { font-family: var(--slab); font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.card-link__dek { font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.card-link__score { font-family: var(--slab); font-size: 22px; font-weight: 600; color: var(--pine); line-height: 1; }

@media (max-width: 767px) {
  .cardgrid--2, .cardgrid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* --- 25 · Rail widgets --------------------------------------------------- */

.widget { border: 1px solid var(--rule); background: var(--card); }
.widget__head {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--rule);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.widget__body { padding: var(--s4); }

.toc { margin: 0; padding: var(--s3) var(--s4) 14px var(--s7); font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--pine); }
.toc a.is-current { font-weight: 700; color: var(--ink); border-left: 2px solid var(--accent); padding-left: var(--s2); margin-left: -10px; }

.shortanswer { border: 1px solid var(--pine); background: var(--card); }
.shortanswer__head {
  padding: var(--s3) var(--s4);
  background: var(--pine);
  color: var(--surface);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.shortanswer__body { padding: var(--s4); display: flex; flex-direction: column; gap: 10px; }
.shortanswer__pick { font-family: var(--slab); font-size: 20px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.shortanswer__why { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

.scorecard__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px var(--s4);
  border-bottom: 1px solid var(--rule-faint);
  font-size: 13.5px;
}
.scorecard__row:last-of-type { border-bottom: 0; }
.scorecard__tally {
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--rule);
  background: var(--tint-accent);
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 600;
}

.ataglance { display: grid; grid-template-columns: auto 1fr; gap: 1px; background: var(--rule); margin: 0; }
.ataglance dt {
  background: var(--card);
  padding: 9px var(--s4);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.ataglance dd {
  background: var(--card);
  padding: 9px var(--s4);
  margin: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  text-align: right;
  color: var(--ink);
}
.ataglance dd.is-pass { color: var(--pass); }
.ataglance dd.is-solar { color: var(--accent); }

/* --- 26 · Sources & citations -------------------------------------------- */
/* Not in the original spec: added because every figure on this site comes from
   a third party and must name it. */

.srcref {
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 500;
  vertical-align: super;
  line-height: 0;
  color: var(--pine);
  padding-inline: 1px;
  text-decoration: none;
}
.srcref:hover { text-decoration: underline; }

.srcline {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  padding-top: 2px;
}
.srcline a { color: var(--ink-muted); text-decoration: underline; }
.srcline a:hover { color: var(--pine); }

.sources { border: 1px solid var(--rule); background: var(--surface-2); padding: var(--s5); }
.sources__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: var(--s3);
}
.sources__list { margin: 0; padding-left: var(--s6); font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.sources__list li { margin-bottom: 6px; }
.sources__list li:target { background: var(--tint-accent); }
.sources__list a { text-decoration: underline; word-break: break-word; }
.sources__pub { color: var(--ink); font-weight: 600; }
.sources__date { font-family: var(--mono); font-size: 11.5px; color: var(--ink-muted); }

.basis {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--pine);
  background: var(--surface-2);
  padding: var(--s4) var(--s5);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.basis b { color: var(--ink); font-weight: 600; }
.basis a { text-decoration: underline; }

/* --- 27 · Homepage ------------------------------------------------------- */

.hero { padding-block: var(--s10) var(--s8); }
.hero__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.hero__grid { display: grid; grid-template-columns: 1fr 380px; gap: 52px; align-items: end; }
.hero__dek { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }

.statusbox { border: 1px solid var(--rule); background: var(--card); }
.statusbox__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--rule);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.statusbox__live { color: var(--pass); }
.statusbox__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); }
.statusbox__cell { background: var(--card); padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.statusbox__value { font-family: var(--slab); font-size: 24px; font-weight: 600; line-height: 1; color: var(--pine); }
.statusbox__label { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.statusbox__foot {
  padding: 10px var(--s4);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.rubric__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s3);
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-faint);
  font-size: 14.5px;
  color: var(--ink-2);
}
.rubric__row:last-of-type { border-bottom: 0; }
.rubric__weight { font-family: var(--mono); font-weight: 600; color: var(--pine); }

.usecases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.usecase { background: var(--card); padding: var(--s4); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.usecase:hover { background: var(--tint-accent); text-decoration: none; }
.usecase__name { font-family: var(--slab); font-size: 17px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.usecase__pick { font-size: 12px; line-height: 1.45; color: var(--ink-muted); }

@media (max-width: 1023px) { .usecases { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); } }
@media (max-width: 639px) { .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { padding-block: var(--s7) var(--s6); } .hero__dek { font-size: 16.5px; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 767px) { .feature { grid-template-columns: minmax(0, 1fr); } }

.policy { display: flex; flex-direction: column; gap: var(--s2); }
.policy__item { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.policy__mark { flex: none; font-weight: 700; width: 1.2em; }
.policy__item--do .policy__mark { color: var(--pass); }
.policy__item--dont .policy__mark { color: var(--fail); }

.sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.sectionhead__meta { font-size: 13px; color: var(--ink-muted); }

/* --- 28 · Footer --------------------------------------------------------- */

.footer { border-top: 1px solid var(--rule); background: var(--surface-3); padding-block: 40px 52px; }
.footer__grid { display: grid; grid-template-columns: 1fr 330px; gap: var(--s8); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); font-size: 14px; line-height: 1.95; }
.footer__col { display: flex; flex-direction: column; min-width: 0; }
.footer__label { font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 6px; font-weight: 700; text-transform: uppercase; }
.footer__legal { display: flex; flex-direction: column; gap: var(--s3); border-left: 1px solid var(--rule); padding-left: 30px; font-size: 13px; line-height: 1.6; color: var(--ink-muted); }
.footer__legal b { color: var(--ink-2); font-weight: 600; }
.footer__copy { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .footer__legal { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: var(--s4); }
}
@media (max-width: 639px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- 29 · Search --------------------------------------------------------- */

.search__form { display: flex; gap: var(--s3); flex-wrap: wrap; }
.search__input {
  flex: 1 1 260px;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--rule-strong);
  background: var(--card);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
}
.search__input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.search__empty { font-size: 15px; color: var(--ink-muted); }
.search__result { border-bottom: 1px solid var(--rule); padding-block: var(--s4); }
.search__result:last-child { border-bottom: 0; }

/* --- 30 · Utilities ------------------------------------------------------ */

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.is-pass { color: var(--pass); }
.is-warn { color: var(--warn); }
.is-fail { color: var(--fail); }
.is-solar { color: var(--accent); }

.u-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.u-muted { color: var(--ink-muted); }
.u-nowrap { white-space: nowrap; }

@media print {
  .nav, .disclosure, .progress, .article__rail, .footer { display: none; }
  body { background: #fff; font-size: 11pt; }
  .article, .article--railleft, .article--railright, .article--norail { grid-template-columns: 1fr; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}
