/*
 * Site styles. Layered on top of vendor/tokens.css, which is the widget's own
 * token file vendored verbatim — the site and the app must not drift apart on
 * palette, and the palette is the reference data-viz set on its documented
 * surfaces (#fcfcfb / #1a1a19).
 *
 * Series slots beyond the widget's single --series-1 are added here for the
 * energy breakdown, which needs five. Slots 1-5 in both modes were run through
 * the palette validator: every hard gate passes. Light mode returns a contrast
 * WARN on aqua/yellow/magenta, which is not dismissable — the relief is shipped
 * as visible direct labels on every segment plus a full table view twin.
 */

:root {
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --status-serious: #ec835a;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
  }
}
:root[data-theme="dark"] {
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { line-height: 1.55; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 650; }
h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 620; }
h3 { font-size: 17px; font-weight: 620; }
p { margin: 0 0 14px; }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: var(--hover-wash);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface-1); padding: 10px 16px; z-index: 50;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--plane) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 58px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 620; color: var(--text-primary); text-decoration: none;
  font-size: 15px;
}
.brand__ring { width: 22px; height: 22px; flex: none; }
.head-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.head-nav > a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; padding: 6px 10px; border-radius: 7px;
}
.head-nav > a:hover { background: var(--hover-wash); color: var(--text-primary); }
.head-nav > a.btn { color: var(--text-primary); }

.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); line-height: 1;
  color: var(--text-secondary);
}
.icon-btn:hover { background: var(--hover-wash); color: var(--text-primary); }

/* ----------------------------------------------------------------- atoms */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-1); color: var(--text-primary);
  font-size: 15px; font-weight: 520; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--hover-wash); }
.btn--sm { padding: 6px 12px; font-size: 14px; }
.btn--primary {
  background: var(--series-1); border-color: var(--series-1); color: #fff;
}
.btn--primary:hover { filter: brightness(1.07); background: var(--series-1); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link-btn {
  color: var(--series-1); font-size: 12px; text-decoration: underline;
  text-underline-offset: 2px; padding: 0;
}

.eyebrow {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}

.band { padding: 68px 0; border-top: 1px solid var(--border); }
.band--alt { background: var(--surface-1); }
.band--demo { background: var(--surface-1); }

.sec-head { max-width: var(--measure); margin-bottom: 30px; }
.sec-sub { color: var(--text-secondary); font-size: 15px; margin: 0; }

.fine { font-size: 12px; color: var(--text-muted); margin-top: 22px; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 74px 0 60px; }
.hero-inner { max-width: 880px; }
.lede {
  font-size: clamp(16px, 1.6vw, 18px); color: var(--text-secondary);
  max-width: var(--measure); margin-top: 18px;
}
.lede strong, .lede em { color: var(--text-primary); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 34px; }

.hero-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.hero-facts li {
  border-left: 2px solid var(--series-1); padding: 2px 0 2px 14px;
}
.hero-facts strong { display: block; font-size: 14px; }
.hero-facts span { font-size: 13px; color: var(--text-secondary); }

/* --------------------------------------------------------------- columns */

.two-up {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.two-up--tight { margin-top: 42px; }
.principle h2 { font-size: 19px; }
.principle p, .prose p { color: var(--text-secondary); font-size: 15px; }
.principle p strong, .prose p strong { color: var(--text-primary); }

.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.band--alt .card, .band--demo .card { background: var(--plane); }
.card__tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.card p { font-size: 14px; color: var(--text-secondary); }
.card__note, .card p.card__note {
  font-size: 13px; border-top: 1px solid var(--border);
  padding-top: 10px; margin-bottom: 0;
}

.refuse { margin: 0; }
.refuse dt { font-weight: 620; font-size: 14px; margin-top: 14px; }
.refuse dd { margin: 4px 0 0; font-size: 14px; color: var(--text-secondary); }

.weakest {
  margin-top: 44px; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; background: var(--plane);
}
.weakest h3 { font-size: 15px; }
.weakest__list { display: grid; gap: 10px; margin-top: 14px; }
.weak {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
  align-items: baseline; font-size: 14px;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.weak:first-child { border-top: 0; padding-top: 0; }
.weak__factor {
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px;
  color: var(--text-primary);
}
.weak__why { grid-column: 1 / -1; color: var(--text-secondary); font-size: 13px; }

.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.limits > li {
  border-left: 2px solid var(--status-serious); padding-left: 16px;
}
.limits p { font-size: 14px; color: var(--text-secondary); margin: 0; max-width: var(--measure); }

/* ------------------------------------------------------------------ demo */

.demo { display: grid; gap: 26px; }

.controls {
  background: var(--plane); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.controls__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.controls__label { font-size: 13px; color: var(--text-muted); }
.controls .hairline { margin: 16px 0; }
.controls__grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 13px; color: var(--text-secondary); }
.field__hint { font-size: 12px; color: var(--text-muted); }
.field input[type="number"],
.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  font: inherit; font-size: 15px;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--baseline); background: var(--surface-1);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.field textarea { font-variant-numeric: normal; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--series-1); outline-offset: 1px;
}
.field input[type="range"] { accent-color: var(--series-1); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-secondary);
  background: var(--surface-1);
}
.chip-btn:hover { background: var(--hover-wash); color: var(--text-primary); }
.chip-btn[aria-pressed="true"] {
  border-color: var(--series-1); color: var(--series-1);
  box-shadow: inset 0 0 0 1px var(--series-1);
}

.result { display: grid; gap: 26px; }

/* hero figure — proportional figures, per the type rule */
.hero-figure { text-align: center; padding: 6px 0 2px; }
.hero-figure__label {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero-figure__value {
  font-size: clamp(30px, 5.5vw, 52px); font-weight: 620;
  letter-spacing: -0.02em; margin: 4px 0 6px;
}
.hero-figure__sub { font-size: 13px; color: var(--text-secondary); }
.hero-figure__sub strong { color: var(--text-primary); }

/* charts */
.chart { margin: 0; }
.chart figcaption {
  font-size: 13px; color: var(--text-primary); margin-bottom: 14px;
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
}
.figcaption-note { color: var(--text-muted); font-weight: 400; }

.range-bars { display: grid; gap: 18px; }
.range-row { display: grid; gap: 6px; }
.range-row__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 13px;
}
.range-row__name { color: var(--text-primary); }
.range-row__mult { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.range-track {
  position: relative; height: 26px;
  border-bottom: 1px solid var(--baseline);
}
.range-track__grid {
  position: absolute; inset: 0 0 0 0; pointer-events: none;
}
.range-track__gridline {
  position: absolute; top: 0; bottom: 0; width: 1px; background: var(--gridline);
}
.range-fill {
  position: absolute; top: 7px; height: 12px; border-radius: 4px;
  background: color-mix(in srgb, var(--series-1) 30%, transparent);
  border: 1px solid var(--series-1);
}
.range-mid {
  position: absolute; top: 3px; height: 20px; width: 2px;
  background: var(--series-1); border-radius: 1px;
  box-shadow: 0 0 0 2px var(--surface-1);
}
.range-labels {
  position: relative;
  display: flex; justify-content: space-between;
  padding-bottom: 19px;
  font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.range-labels b { color: var(--text-secondary); font-weight: 500; }
/* The mid marker's own label, positioned under the marker rather than in the
   flex row — a mid printed midway between the bounds would misread on a log
   axis, where the mid is usually nowhere near the middle. */
.range-mid-label {
  position: absolute; top: 17px; transform: translateX(-50%);
  white-space: nowrap; color: var(--series-1);
}
.range-mid-label b { color: var(--series-1); font-weight: 600; }

/* tiles */
.tiles {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.tile {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; background: var(--plane);
}
.tile__label { font-size: 12px; color: var(--text-muted); }
.tile__value {
  font-size: 22px; font-weight: 600; margin: 6px 0 2px; letter-spacing: -0.01em;
}
.tile__range { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.tile__split {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); display: grid; gap: 3px;
}
.tile__split span { display: flex; justify-content: space-between; gap: 10px; }

/* stacked breakdown — 2px surface gaps between fills */
.breakdown {
  display: flex; height: 34px; border-radius: 6px; overflow: hidden;
  background: var(--gridline);
}
.breakdown__seg {
  position: relative; min-width: 2px;
  box-shadow: 2px 0 0 0 var(--surface-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-variant-numeric: tabular-nums;
  overflow: hidden; white-space: nowrap;
}
.band--demo .breakdown { background: var(--gridline); }
.breakdown__seg:last-child { box-shadow: none; }

/* Ink per slot, fixed with the slot. Slots 3-5 are light enough that white
   would be unreadable on them in either mode; slots 1-2 are dark enough that
   black would be. Neither choice varies with the theme, because the underlying
   fills are steps chosen for their own surface. */
.breakdown__seg[data-slot="1"], .breakdown__seg[data-slot="2"] { color: #fff; }
.breakdown__seg[data-slot="3"],
.breakdown__seg[data-slot="4"],
.breakdown__seg[data-slot="5"] { color: #0b0b0b; }

.legend {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px;
  font-size: 12.5px; color: var(--text-secondary);
}
.legend__item { display: inline-flex; align-items: center; gap: 7px; }
.legend__swatch {
  width: 10px; height: 10px; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 1px var(--border);
}
.legend__val { color: var(--text-muted); font-variant-numeric: tabular-nums; }

.table-wrap { margin-top: 16px; overflow-x: auto; }
table.data {
  border-collapse: collapse; width: 100%; font-size: 13px;
  font-variant-numeric: tabular-nums;
}
table.data th, table.data td {
  text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { color: var(--text-muted); font-weight: 500; font-size: 12px; }
table.data tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--baseline); }

/* tooltip */
.tip {
  position: fixed; z-index: 40; pointer-events: none;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font-size: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.16); max-width: 260px;
}
.tip b { display: block; margin-bottom: 3px; }
.tip .tip__num { font-variant-numeric: tabular-nums; color: var(--text-secondary); }

/* confidence panel */
.confidence {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--plane); padding: 18px; display: grid; gap: 12px;
}
.conf-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conf-head .status { font-size: 13px; }
.conf-line { font-size: 13px; color: var(--text-secondary); margin: 0; }
.conf-line strong { color: var(--text-primary); }
.conf-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-secondary);
}
.flag__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.flag--none .flag__dot { background: var(--status-critical); }
.flag--guess .flag__dot { background: var(--status-warning); }
.flag--info .flag__dot { background: var(--text-muted); }

.anchor-note {
  font-size: 13px; color: var(--text-secondary);
  border-left: 2px solid var(--series-4); padding-left: 14px;
}
.anchor-note strong { color: var(--text-primary); }

/* non-text */
.nontext {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border);
}
.nontext h3 { font-size: 18px; }
.nontext .sec-sub { max-width: var(--measure); margin-bottom: 20px; }
.nontext__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.nt-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; background: var(--plane); display: grid; gap: 8px;
}
.nt-card__unit { font-size: 12px; color: var(--text-muted); }
.nt-card__value { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nt-card input {
  font: inherit; padding: 6px 8px; border-radius: 7px; width: 100%;
  border: 1px solid var(--baseline); background: var(--surface-1);
  color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.nontext__unknown {
  margin-top: 16px; font-size: 13px; color: var(--text-secondary);
  border-left: 2px solid var(--status-critical); padding-left: 14px;
}

/* alerts */
.alert {
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
  border: 1px solid var(--border); font-size: 14px;
}
.alert--critical { border-left: 3px solid var(--status-critical); background: var(--plane); }
.alert pre {
  white-space: pre-wrap; font-size: 12px; color: var(--text-secondary);
  margin: 8px 0 0;
}

/* ----------------------------------------------------------------- forms */

.request { margin-bottom: 34px; }
.request .controls__grid { margin-bottom: 16px; }
.request__disclosure {
  font-size: 13px; color: var(--text-secondary);
  border-left: 2px solid var(--series-1); padding-left: 14px; margin-bottom: 16px;
}
.request__status { font-size: 13px; margin: 12px 0 0; min-height: 1.2em; }
.request__status[data-tone="err"] { color: var(--status-critical); }

.reqs {
  border-top: 1px solid var(--border); padding-top: 22px;
}
.reqs ul { margin: 0; padding-left: 20px; }
.reqs li { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.reqs strong { color: var(--text-primary); }

/* --------------------------------------------------- hero with a shot --- */

.hero-grid {
  display: grid; gap: 44px; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.hero-copy { min-width: 0; }
.hero-micro { font-size: 13px; color: var(--text-muted); margin: 0; }

.hero-shot { margin: 0; text-align: center; }
.hero-shot img {
  max-width: 100%; max-height: 620px; width: auto; height: auto;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.hero-shot figcaption,
.shot figcaption {
  font-size: 12px; color: var(--text-muted); margin-top: 12px;
  max-width: 44ch; margin-left: auto; margin-right: auto;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot img { max-height: 480px; }
}

/* ------------------------------------------------------------- the steps */

.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.steps {
  list-style: none; margin: 0 0 44px; padding: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  counter-reset: step;
}
.steps > li {
  background: var(--plane); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.steps__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--series-1); color: #fff;
  font-size: 14px; font-weight: 620; margin-bottom: 12px;
}
.steps h3 { font-size: 17px; }
.steps p { font-size: 14.5px; color: var(--text-secondary); margin: 0; }
.steps p strong { color: var(--text-primary); }

.shots {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.shot { margin: 0; text-align: center; }
.shot img {
  max-width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.shot--sm img { max-height: 340px; width: auto; }

/* --------------------------------------------------------- pay it forward */

.fwd-grid {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: start;
}
.fwd-grid .prose h3 { margin-top: 24px; }
.fwd-grid .prose h3:first-child { margin-top: 0; }
.fwd-grid .shot img { max-height: 620px; }
@media (max-width: 900px) { .fwd-grid { grid-template-columns: 1fr; } }

.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--series-1);
  border-radius: 8px; padding: 14px 16px; margin-top: 22px;
  font-size: 13.5px; color: var(--text-secondary); background: var(--plane);
}
.callout strong { color: var(--text-primary); }
.callout--warn { border-left-color: var(--status-serious); }
.band--alt .callout, .band--demo .callout { background: var(--surface-1); }

/* ------------------------------------------------ candidate recipients --- */

.recipients { display: grid; gap: 10px; }
.recipients__head { margin-top: 26px; }
.recipients__head:first-child { margin-top: 0; }
.recipients__head h3 { font-size: 18px; margin-bottom: 6px; }
.recipients__head p {
  font-size: 14px; color: var(--text-secondary); max-width: var(--measure); margin: 0;
}
.recipients__grid {
  display: grid; gap: 16px; margin: 16px 0 8px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.rec {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; background: var(--surface-1);
  display: flex; flex-direction: column; gap: 12px;
}
.band--alt .rec { background: var(--plane); }
.rec__name { font-size: 16px; font-weight: 620; margin: 0; }

.rec__meta {
  margin: 0; display: grid; gap: 4px;
  font-size: 12.5px; color: var(--text-muted);
}
.rec__meta > div { display: flex; gap: 8px; }
.rec__meta dt { flex: none; min-width: 74px; }
.rec__meta dd { margin: 0; color: var(--text-secondary); }

/* The case for it and the case against it are the SAME size and the same
   colour. The weakness is not fine print — it is the reason this list can be
   published at all. */
.rec__why, .rec__weak {
  margin: 0; font-size: 14px; color: var(--text-secondary);
  padding-left: 12px; border-left: 2px solid var(--gridline);
}
.rec__weak { border-left-color: var(--status-serious); }
.rec__label {
  display: block; font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px;
}
.rec__link {
  margin-top: auto; align-self: flex-start;
  font-size: 13.5px; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.rec__link:hover { opacity: 0.75; }

/* -------------------------------------------------------------- the badge */

.badge-tool { display: grid; gap: 24px; }

.check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer;
}
.check input { accent-color: var(--series-1); }

.badge-status { font-size: 12.5px; color: var(--text-muted); margin: 14px 0 0; }
.badge-status[data-tone="ok"] { color: var(--status-good); }
.badge-status[data-tone="err"] { color: var(--status-critical); }

.badge-preview {
  border: 1px dashed var(--baseline); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 14px; justify-items: center;
  background:
    repeating-linear-gradient(45deg, var(--hover-wash) 0 8px, transparent 8px 16px);
}
.badge-preview__label {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.badge-render svg { display: block; max-width: 100%; height: auto; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab {
  font-size: 13px; padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text-secondary);
  background: var(--surface-1);
}
.band--alt .tab { background: var(--plane); }
.tab:hover { color: var(--text-primary); background: var(--hover-wash); }
.tab[aria-selected="true"] {
  border-color: var(--series-1); color: var(--series-1);
  box-shadow: inset 0 0 0 1px var(--series-1);
}
.badge-note {
  font-size: 13px; color: var(--text-secondary); margin: 0 0 12px; max-width: var(--measure);
}

.snippet { display: grid; gap: 10px; }
.snippet textarea {
  width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  line-height: 1.5; padding: 12px; border-radius: 8px; resize: vertical;
  border: 1px solid var(--baseline); background: var(--surface-1);
  color: var(--text-primary); white-space: pre; overflow-x: auto;
}
.band--alt .snippet textarea { background: var(--plane); }
.snippet__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge-copied { font-size: 12.5px; color: var(--text-muted); }

/* ------------------------------------------------- "more from" band ----- */

.oa-band { border-top: 1px solid var(--border); padding: 38px 0; }
.oa-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 11.5px; color: var(--text-muted); margin: 0 0 16px;
}
.oa-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.oa-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface-1);
  transition: border-color 0.15s, background 0.15s;
}
.oa-card:hover { border-color: var(--series-1); background: var(--hover-wash); }
.oa-name { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.oa-desc { font-size: 12.5px; color: var(--text-secondary); }

/* ---------------------------------------------------------------- footer */

.site-foot { border-top: 1px solid var(--border); padding: 30px 0 44px; }
.foot-inner p { font-size: 13px; margin: 0 0 6px; max-width: var(--measure); }

@media (max-width: 620px) {
  .band { padding: 48px 0; }
  .head-nav > a:not(.btn) { display: none; }
  .range-labels { font-size: 11px; }
}

@media print {
  .site-head, .hero-cta, .controls, #get { display: none; }
}

/* The site's own badge, in the footer. Two SVGs because the badge is a
   static image and the page follows the OS theme and its own toggle. */
.foot-badge { display: flex; justify-content: center; padding-bottom: 10px; }
.cm-selfbadge { display: inline-block; }
.cm-selfbadge--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .cm-selfbadge--light { display: none; }
  :root:where(:not([data-theme="light"])) .cm-selfbadge--dark { display: inline-block; }
}
:root[data-theme="dark"] .cm-selfbadge--light { display: none; }
:root[data-theme="dark"] .cm-selfbadge--dark { display: inline-block; }
:root[data-theme="light"] .cm-selfbadge--light { display: inline-block; }
:root[data-theme="light"] .cm-selfbadge--dark { display: none; }
