/* Cactus EV — one stylesheet, one system.
   Two typefaces: Newsreader (everything you read), IBM Plex Mono (everything you measure).
   Four colors of meaning: ink = what the site does, rust = the answer (chosen rate, battery, saving),
   blue = a comparison, green = the one action. Grey is context only. */

:root {
  color-scheme: light;

  --paper: #f4f3ee;
  --paper-deep: #ebe9e1;
  --field: #fbfaf7;

  --ink: #1b1f24;
  --ink-2: #4f5864;   /* secondary text, 6.5:1 */
  --ink-3: #66635b;   /* meta text, 5.4:1 */
  --grey: #8a877e;    /* lines and fills only, never small text */
  --rule: #d5d2c9;
  --rule-field: #b5b1a6;

  --rust: #c4572a;      /* marks: lines, fills, dots */
  --rust-ink: #a8461f;  /* rust as text, 5.3:1 */
  --rust-wash: rgba(196, 87, 42, 0.15);
  --blue: #2a62b0;
  --action: #2a5e45;
  --action-hover: #1f4a36;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;   /* explanatory text: captions, notes, chart annotations */

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 36em;

  --step--1: 15px;
  --step-0: 19px;
  --step-1: 22px;
  --step-2: clamp(26px, 2.6vw, 32px);
  --step-3: clamp(32px, 3.8vw, 44px);
  --step-4: clamp(38px, 5.4vw, 66px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
::selection { background: var(--rust-wash); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--rust); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 1px; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.022em; }
h2 { font-size: var(--step-3); line-height: 1.1; }
h3 { font-size: var(--step-2); line-height: 1.16; }
h4 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 0.9em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

/* ---------- small text roles ---------- */
.meta, .label, .num {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.num { color: var(--ink); font-size: inherit; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.small { font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; }
.answer { color: var(--rust-ink); }

/* ---------- masthead (no nav, by design) ---------- */
.masthead { padding: 28px 0 0; }
.masthead .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
/* the wordmark: the green cactus, then "cactus ev" in the mono, lowercase, with "ev" a step quieter */
.wordmark {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: 0.02em; line-height: 1;
  text-transform: lowercase; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark .mark { display: block; height: 22px; width: auto; margin-right: 0.5em; }
.wordmark .ev { color: var(--ink-3); }
.masthead .meta { text-align: right; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section-head {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px 40px;
  align-items: baseline;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head .meta { justify-self: end; text-align: right; max-width: 28em; }

/* ---------- buttons: exactly one style ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.2;   /* the action speaks in the reading voice */
  color: #fff; background: var(--action);
  border: 0; border-radius: 2px; padding: 13px 22px 13px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--action-hover); }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.textlink {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule-field);
}
.textlink:hover { text-decoration-color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 { max-width: 11.5em; font-size: clamp(38px, 4.7vw, 60px); }
.hero .lede { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero-fig { padding-bottom: 6px; }


/* ---------- figures ---------- */
figure { margin: 0; }
.plot { position: relative; width: 100%; }
.plot svg { overflow: visible; }
.fig-cap {
  display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule);
}
.fig-cap p { font-size: var(--step--1); line-height: 1.5; color: var(--ink-2); max-width: 46em; margin: 0; }
.fig-cap b { color: var(--ink); font-weight: 600; }
.fig-cap .meta { white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 14.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid currentColor; vertical-align: middle; margin-right: 7px; transform: translateY(-2px); }
.legend i.dash { border-top-style: dashed; }
.legend i.fill { height: 10px; border: 0; background: var(--rust-wash); transform: translateY(-1px); }

/* svg text roles */
.plot text { font-family: var(--serif); }
.plot .tick { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.plot .axl { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.plot .ann { font-family: var(--sans); font-size: 13px; font-style: normal; }
.plot .ann .m { font-family: var(--mono); font-style: normal; font-size: 11.5px; letter-spacing: 0.01em; }   /* the measurement inside an annotation */
.plot .lab { font-size: 14.5px; }
.plot .lab.b { font-weight: 600; }
.plot .halo { stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; }
.plot .anim { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.plot.in .anim { transition: stroke-dashoffset 1.6s cubic-bezier(.3,.1,.2,1); stroke-dashoffset: 0; }
.plot .readout {
  position: absolute; top: 0; pointer-events: none;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  padding: 6px 8px; border: 1px solid var(--rule); border-radius: 2px;
  white-space: nowrap; opacity: 0; transition: opacity 0.12s;
}
.plot .readout.on { opacity: 1; }
.plot .readout b { font-weight: 500; }

/* ---------- worked examples list (home) ---------- */
.examples { list-style: none; margin: 0; padding: 0; counter-reset: ex; }
.ex {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 18px 36px;
  padding: 30px 0 32px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
}
.ex:first-child { border-top: 0; padding-top: 0; }
.ex .n { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 6px; }
.ex h3 { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.18; }
.ex .meta { margin-top: 10px; }
.ex p { margin-top: 12px; font-size: 17.5px; color: var(--ink-2); line-height: 1.5; max-width: 32em; }
.ex .result { margin-top: 16px; display: flex; gap: 6px 28px; flex-wrap: wrap; align-items: baseline; }
.ex .result .big { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--rust-ink); letter-spacing: -0.01em; }
.ex .go { font-family: var(--mono); font-size: 13px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-field); text-underline-offset: 0.25em; }
.ex:hover .go { text-decoration-color: var(--ink); }
.ex:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; text-decoration-color: var(--rust); }
.ex .thumb { align-self: center; }
.ex .thumb .plot { height: 120px; }

.ex.lead { grid-template-columns: 56px minmax(0, 1fr); padding-bottom: 40px; }
.ex.wide { grid-template-columns: 56px minmax(0, 1fr); }
.ex.lead .body, .ex.wide .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 24px 48px; align-items: start; }
.ex.lead h3 { font-size: var(--step-3); line-height: 1.08; }

/* ---------- process ---------- */
.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; counter-reset: st; }
.steps li { list-style: none; border-top: 1px solid var(--rule); padding-top: 16px; }
.steps ol { margin: 0; padding: 0; }
.steps .label { display: block; margin-bottom: 8px; }
.steps p { font-size: 17.5px; color: var(--ink-2); }
.steps h4 { margin-bottom: 8px; font-size: 20px; }

/* ---------- request form ---------- */
.request { margin-top: clamp(64px, 9vw, 120px); background: var(--paper-deep); padding: clamp(48px, 7vw, 88px) 0; }
.request-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 88px); }
.request h2 { margin-bottom: 20px; }
.request .lede { font-size: 19px; }
.request .getlist { margin: 28px 0 0; padding: 0; list-style: none; }
.request .getlist li { border-top: 1px solid var(--rule-field); padding: 10px 0; font-size: 17px; display: grid; grid-template-columns: 26px 1fr; color: var(--ink-2); }
.request .getlist li::before { content: "—"; color: var(--rust); }
.request-pricing { margin-top: 28px; color: var(--ink-2); font: 15px/1.5 var(--sans); }
.request-pricing strong { display: block; margin-bottom: 6px; color: var(--action); font-size: 18px; font-weight: 500; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-bottom: 7px; letter-spacing: 0.01em; }
.field label .opt { color: var(--ink-3); }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%;
  font: 17px/1.4 var(--serif); color: var(--ink);
  background: var(--field);
  border: 1px solid var(--rule-field); border-radius: 2px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}
.field textarea { min-height: 104px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #8f8b81; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.form .submit { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: 6px; }
.form .submit .meta { max-width: 30em; }
.form-done { display: none; border-top: 1px solid var(--ink); padding-top: 18px; }
.form-done h3 { margin-bottom: 10px; }
.request.sent .form { display: none; }
.request.sent .form-done { display: block; }
.form-error { color: var(--rust-ink); font-family: var(--mono); font-size: 12.5px; }

/* ---------- footer ---------- */
.foot { padding: 28px 0 40px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }

/* ---------- exhibit page ---------- */
.ex-head { padding: clamp(40px, 7vw, 80px) 0 0; }
.ex-head .meta.crumb { margin-bottom: 22px; }
.ex-head .meta.crumb a { color: var(--ink); }
.ex-head h1 { font-size: clamp(36px, 4.8vw, 58px); max-width: 15em; }
.ex-head .lede { margin-top: 22px; max-width: 34em; }
/* headline beside the territory map: the map says where before the lede says what */
.ex-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 250px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.head-map { padding-top: 10px; }
.head-map > svg { display: block; width: 100%; }
.head-map .map-cap { display: block; margin: 12px 0 0; }
@media (max-width: 760px) {
  .ex-head-grid { grid-template-columns: 1fr; gap: 24px; }
  .head-map { display: flex; align-items: center; gap: 16px; padding-top: 0; }
  .head-map > svg { width: 150px; flex: none; }
  .head-map .map-cap { margin: 0; }
}

.strip {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.strip > div { padding: 12px 16px 14px 0; }
.strip dt { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.strip dd { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.strip dd.answer { color: var(--rust-ink); font-weight: 500; }

.main-fig { margin-top: clamp(32px, 5vw, 56px); }

.two-col {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px clamp(32px, 5vw, 64px);
  margin-top: clamp(48px, 6vw, 72px);
}
.prose h2 { font-size: var(--step-2); margin: 0 0 18px; }
.prose h2:not(:first-child) { margin-top: 44px; }
.prose p { max-width: var(--measure); }
.prose .clause { font-family: var(--mono); font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--rust); padding: 2px 0 2px 14px; margin: 18px 0; max-width: 40em; line-height: 1.6; }
.aside { display: grid; gap: 32px; align-content: start; }
.aside .note { font-size: 16px; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 12px; line-height: 1.5; }
.aside .note b { color: var(--ink); font-weight: 600; }
.keynums { border-top: 1px solid var(--ink); margin: 0; }
.keynums > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.keynums dt { font-size: 16px; color: var(--ink-2); }
.keynums dd { margin: 0; font-family: var(--mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.keynums dd.answer { color: var(--rust-ink); font-weight: 500; }

/* tariff cards */
.tariffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(28px, 4vw, 48px); }
.tcard { border-top: 1px solid var(--ink); }
.tcard-h { padding: 12px 0 12px; border-bottom: 1px solid var(--rule); }
.tcard-h h4 { font-size: 21px; }
.tcard-h h4 small { font-weight: 400; color: var(--ink-2); font-size: inherit; }
.tcard-h .chosen { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust-ink); margin-left: 8px; white-space: nowrap; }
.tcard-h .meta { margin-top: 4px; }
.slot { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; }
.slot > span { font-style: italic; color: var(--ink-3); }
.slot .none { color: var(--ink-3); }
.slot .plot { height: 96px; margin-top: 2px; }

/* component bars: without (grey) and with (rust), on one shared scale */
.cbars { margin: 0; border-top: 1px solid var(--ink); }
.cbars > div { padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.cbars dt { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; color: var(--ink); }
.cbars dt .num { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.cbars dt .num b { font-weight: 500; color: var(--rust-ink); }
.cbars dd { margin: 7px 0 0; height: 7px; position: relative; background: transparent; }
.cbars dd i, .cbars dd b { position: absolute; left: 0; top: 0; height: 7px; border-radius: 1px; }
.cbars dd i { background: #cfccc2; }
.cbars dd b { background: var(--rust); top: 2px; height: 3px; }

/* tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; }
.tbl caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; }
.tbl caption b { color: var(--ink); font-weight: 600; }
.tbl th { font-family: var(--mono); font-size: 11.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); text-align: left; padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.tbl td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.45; }
.tbl td small { display: block; color: var(--ink-3); font-size: 14.5px; }
.tbl .r { text-align: right; }
.tbl th.r { text-align: right; }
.tbl td.n { font-family: var(--mono); font-size: 15px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td.n small { font-family: var(--mono); font-size: 12px; }
.tbl td.best { color: var(--rust-ink); font-weight: 500; }
.tbl td.na { color: var(--ink-3); font-size: 13px; }
.tbl tr:last-child td { border-bottom-color: var(--ink); }

.next {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 24px 48px; align-items: center;
  border-top: 1px solid var(--rule); padding: 28px 0; text-decoration: none;
}
.next h3 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 8px; }
.next:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; text-decoration-color: var(--rust); }
.next .thumb .plot { height: 110px; }

.cta-band { border-top: 1px solid var(--ink); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta-band h3 { max-width: 20em; }

/* ---------- load-in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(10px); animation: rise 0.8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .plot .anim { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13em; }
  .ex.lead .body, .ex.wide .body { grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --step-0: 18px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .meta { justify-self: start; text-align: left; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .ex, .ex.lead, .ex.wide { grid-template-columns: 1fr; gap: 12px; }
  .ex .n { padding-top: 0; }
  .ex .thumb { order: 3; }
  .tariffs { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr; }
  .masthead .meta { display: none; }
  .slot { grid-template-columns: 1fr; gap: 4px; }
  .fig-cap .meta { white-space: normal; }
}

/* =====================================================================
   Worked-example elements (exhibit.js)
   ===================================================================== */
.ex-section { padding-top: clamp(48px, 7vw, 88px); }
.ex-section.ex-next { padding-top: clamp(40px, 5vw, 56px); }
@media (max-width: 640px) { .cta-band .btn { width: 100%; justify-content: center; } }
.ex-section > .section-head h2 .no { font-family: var(--mono); font-size: 0.42em; font-weight: 400; color: var(--ink-3); vertical-align: 0.5em; margin-right: 12px; letter-spacing: 0; }
.reading { max-width: 40em; color: var(--ink-2); margin: -12px 0 28px; }

/* 1 · site */
.el-site { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3.4fr); gap: 24px clamp(24px, 4vw, 56px); align-items: end; }
.site-map svg { max-width: 360px; margin-left: auto; }
.map-cap { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.map-cap svg { flex: none; }
.map-cap .meta { text-align: left; margin: 0; }

/* segmented control, play */
.lx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule-field); border-radius: 2px; background: var(--field); }
.seg button { font: 500 12.5px/1 var(--mono); color: var(--ink-2); background: transparent; border: 0; border-left: 1px solid var(--rule-field); padding: 9px 12px; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.lx-play { font: 500 12.5px/1 var(--mono); color: var(--ink); background: none; border: 0; padding: 9px 2px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-field); text-underline-offset: 0.3em; margin-left: auto; }
.lx-play:hover { text-decoration-color: var(--ink); }
.lx-soc { margin-top: 2px; }
.lx-hint { margin: 14px 0 2px; }
.lx-weeks:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.lx-stats { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.lx-stats b { font-weight: 500; color: var(--ink); }

/* 3 · results */
.matrix tbody tr { cursor: pointer; }
.matrix tbody tr:hover td { background: rgba(27, 31, 36, 0.025); }
.matrix tbody tr.sel td { background: rgba(27, 31, 36, 0.055); }
.matrix tbody tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--ink); }
.matrix td:first-child { padding-left: 10px; }
.matrix th:first-child { padding-left: 10px; }
.matrix .rate { font-weight: 500; }
.matrix td.idle { color: var(--ink-3); }
.matrix td.na small, .matrix td.idle small { font-family: var(--mono); font-size: 11.5px; }
.tcard-wrap { margin-top: 28px; max-width: 760px; }
.tcard .li { margin: 2px 0 6px; }
.tcard .li .num { font-size: 13.5px; }
.tcard .ratchet { font-size: 15px; color: var(--ink-2); border-left: 2px solid var(--ink); padding-left: 10px; margin-top: 6px; }
.tcard .win { margin-top: 8px; }
.tcard .tnote { margin: 10px 0 0; }
.tou { margin-bottom: 12px; }
.tou-band { display: grid; grid-template-columns: repeat(24, 1fr); height: 16px; border: 1px solid var(--rule-field); margin-top: 4px; }
.tou-band i { display: block; border-left: 1px solid rgba(244, 243, 238, 0.35); }
.tou-x { display: flex; justify-content: space-between; font-size: 10.5px; margin-top: 2px; }
.tou-k { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.billslot { border-bottom: 0; }
.billbar { margin-bottom: 12px; }
.bb-h { display: flex; justify-content: space-between; font-size: 15px; }
.bb { display: flex; height: 10px; margin: 5px 0 4px; background: transparent; }
.bb i { display: block; height: 100%; }
.bb i.e { background: var(--ink); }
.bb i.d { background: #8a877e; }
.bb i.f { background: #cfccc2; }
.bb-k { font-size: 11.5px; }

/* 4 · deep dives */
.dd-h { font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 0 0 8px; }
.dd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(24px, 4vw, 48px); margin-top: 32px; }
.sbs { border-top: 1px solid var(--ink); margin-bottom: 36px; }
.sbs-row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 0 28px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.sbs-head { align-items: end; }
.sbs-head h4 { font-size: 21px; }
.sbs-head .chosen { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust-ink); margin-left: 6px; }
.sbs-k { font-style: italic; color: var(--ink-3); font-size: 16px; }
.sbs-c { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sbs-bar { height: 12px; flex: none; }
.sbs-bar.blue { background: var(--blue); }
.sbs-bar.rust { background: var(--rust); }
.sbs-c .num { font-size: 14px; white-space: nowrap; }
.sbs-total { border-bottom: 1px solid var(--ink); }
.sbs-total .num { font-size: 16px; font-weight: 500; }
.dd-ex1 .tariffs { margin-top: 40px; }
.temps { margin-bottom: 18px; }
.temps-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.tday { display: flex; flex-direction: column; gap: 1px; padding: 8px 8px 6px; border-top: 2px solid var(--ink); background: rgba(196, 87, 42, 0.04); }
.tday .num { font-size: 15px; }
.tday.t1 { background: rgba(196, 87, 42, 0.10); }
.tday.t2 { background: rgba(196, 87, 42, 0.18); }
.tday.t3 { background: rgba(196, 87, 42, 0.30); }
.tday.t4 { background: rgba(196, 87, 42, 0.45); border-top-color: var(--rust); }
.dd-ex5 figure + figure { margin-top: 36px; }

@media (max-width: 860px) {
  .el-site { grid-template-columns: 1fr; }
  .site-map svg { margin: 0; max-width: 320px; }
  .map-cap { justify-content: flex-start; }
  .dd-two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sbs-row { grid-template-columns: 70px 1fr 1fr; gap: 0 12px; }
  .sbs-c { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lx-play { margin-left: 0; }
  .tday { padding: 6px 4px; }
  .tday .meta { font-size: 10px; }
}
.dd-ex4 figure + figure { margin-top: 36px; }
.cpcal { display: grid; gap: 6px; }
.cpm { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; }
.cpd { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: 3px; }
.cpd i, .cpkey i { display: block; aspect-ratio: 1; min-height: 9px; max-height: 22px; background: #e2dfd6; border-radius: 1px; position: relative; }
.cpd i.we, .cpkey i.we { background: #ece9e1; }
.cpd i.cap, .cpkey i.cap { background: var(--rust); }
.cpd i.tx, .cpkey i.tx { box-shadow: inset 0 0 0 2px var(--ink); }
.cpd i.cap.tx { box-shadow: inset 0 0 0 2px var(--ink); }
.cpkey { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
.cpkey span { display: inline-flex; align-items: center; gap: 8px; }
.cpkey i { width: 14px; height: 14px; min-height: 0; }

.dd-prose { margin-bottom: 36px; }
.site-diagram { overflow: visible; }

@media (max-width: 560px) {
  .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .seg button { border-left: 0; border-top: 1px solid var(--rule-field); }
  .seg button:nth-child(-n+2) { border-top: 0; }
  .seg button:nth-child(even) { border-left: 1px solid var(--rule-field); }
  .seg button:first-child:nth-last-child(odd) ~ button:last-child { grid-column: 1 / -1; }
}

/* =====================================================================
   Home hero: the ridgeline leads; the ledger beneath is the control and the result
   ===================================================================== */
.hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.hero-fig { padding-top: 6px; }
.hero-fig, .hero-fig .plot { min-width: 0; }   /* the column never grows to fit the chart, so the page never shifts */
.ridges { overflow: hidden; }
.ridges svg { cursor: pointer; }
.ridges .ridge { transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }

.ledger-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-bottom: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ledger-h b { font-weight: 500; color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; font-size: 10.5px; }
.ledger { border-top: 1px solid var(--ink); }
.ledger .row {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; grid-template-columns: 22px minmax(0, 19.5em) minmax(0, 1fr) 6.8em; align-items: center; gap: 0 14px;
  width: 100%; height: 30px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  transition: opacity 0.5s ease, color 0.3s ease;
}
.ledger .row:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.ledger .row:hover { background: rgba(27, 31, 36, 0.035); color: var(--ink-2); }
.ledger .row.hidden { opacity: 0; pointer-events: none; }
.ledger .n { width: 17px; height: 17px; border-radius: 50%; border: 1px solid #b5b1a6; display: grid; place-items: center; font-size: 10px; line-height: 1; color: var(--ink-3); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.ledger .row:hover .n { border-color: var(--ink); color: var(--ink); }
.ledger .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .lbl em { font-style: normal; opacity: 0.8; }
.ledger .row:hover .t1 { text-decoration: underline; text-decoration-color: var(--rule-field); text-underline-offset: 3px; }
.ledger .val { text-align: right; font-variant-numeric: tabular-nums; }
.ledger .track { position: relative; height: 6px; }
.ledger .segs { position: absolute; inset: 0 auto 0 0; display: flex; opacity: 0.32; transition: opacity 0.4s ease, width 0.9s cubic-bezier(.4,.1,.2,1); }
.ledger .segs i { display: block; height: 100%; }
.ledger .segs .e, .ledger-foot .e { background: var(--ink); }
.ledger .segs .d, .ledger-foot .d { background: #8a877e; }
.ledger .segs .f, .ledger-foot .f { background: #cfccc2; }
.ledger .row:hover .segs { opacity: 0.55; }
.ledger .row[aria-checked="true"] { color: var(--ink); }
.ledger .row[aria-checked="true"] .n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ledger .row[aria-checked="true"] .segs { opacity: 1; }
.ledger .row[aria-checked="true"] .val { font-weight: 500; }
.ledger .row[aria-checked="true"].gain .val { color: var(--rust-ink); }
/* the saving against the step you came from, shown briefly */
.ledger .gap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--rust) 0 1.5px, rgba(196,87,42,.18) 1.5px 4px); opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.ledger .gapl { position: absolute; bottom: 8px; font-size: 10px; line-height: 1; color: var(--rust-ink); white-space: nowrap; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.ledger .gap.on, .ledger .gapl.on { opacity: 1; }
.ledger-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; height: 34px; padding-top: 9px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.ledger-foot .key span { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.ledger-foot .key i { width: 8px; height: 8px; display: inline-block; }
.ledger-foot .sum { color: var(--rust-ink); overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 960px) {
  /* keep the ridgeline above the fold: headline, figure, then the rest */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-grid > div:first-child { display: contents; }
  .hero h1 { order: 1; }
  .hero-fig { order: 2; }
  .hero .lede { order: 3; margin-top: 4px; }
  .hero-actions { order: 4; margin-top: 4px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 34px; }
  .ledger .row { grid-template-columns: 17px minmax(0, 6.5em) minmax(0, 1fr) 6.6em; gap: 0 8px; font-size: 11.5px; }
  .ledger .lbl em { display: none; }
  .ledger-foot .key { display: none; }
}

/* hero copy: swapped words are set in italic (emphasis, not a link) and crossfade */
.swap { display: inline-block; position: relative; white-space: nowrap; vertical-align: bottom; transition: width 0.45s cubic-bezier(.4,.1,.2,1); }
.swap .w { display: inline-block; font-style: italic; transition: opacity 0.26s ease; }
.swap .w.out { opacity: 0; }
.swap .swap-meas { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
.hero h1 .swap .w { font-weight: 400; }
.lede .swap .w { color: var(--ink); }
/* wide screens: the short text block sits centred against the figure, not stranded at the top */
@media (min-width: 961px) { .hero-grid { align-items: center; } }

/* hero: the two checks the button runs */
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; font-size: 18px; line-height: 1.35; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 3px; top: 0.32em; width: 6px; height: 11px; border: solid var(--action); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.hero .checks + .hero-actions { margin-top: 26px; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-actions .meta { max-width: 30em; }
@media (max-width: 960px) { .hero .checks { order: 4; margin-top: 0; } .hero-actions { order: 5; } }

/* =====================================================================
   Request form
   ===================================================================== */
/* fields sized for the serif: room above and below the glyphs so nothing is clipped */
/* Chromium clips a field's text to its inner box, and on Linux at 1x-1.25x that shaves the top row of pixels off the
   serif's digits and capitals (8, 3, 5, C) depending on where the field falls on the page. overflow: visible lifts
   that clip; text still scrolls inside the field. Height comes from padding. */
.field input[type=text], .field input[type=email], .field select { font-size: 17px; line-height: 1.2; height: auto; padding: 14px 14px; box-sizing: border-box; overflow: visible; }
.field textarea { font-size: 17px; line-height: 1.6; padding: 12px 14px; }
.field input::placeholder, .field textarea::placeholder { line-height: 1.2; overflow: visible; }   /* the placeholder is its own inner box, with its own clip */
.field textarea { min-height: 96px; }
.field label .opt, .flabel .opt { color: var(--ink-3); margin-left: 6px; }
.flabel { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-bottom: 7px; letter-spacing: 0.01em; }
.field .hint { display: block; margin-top: 7px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }

/* the form's one action, full width and unmistakable */
.btn-xl { width: 100%; justify-content: center; font-size: 20px; padding: 19px 24px; }
.btn-xl .arr { font-size: 1.1em; }
.form .submit { margin-top: 14px; }

/* the hero's action spans its text column, matching the form's */
.hero-actions .btn-xl { align-self: stretch; }
.hero .checks + .hero-actions { align-items: stretch; }


/* a section head whose subtitle is a lede, set under the title rather than as a note beside it */
.section-head-lede { grid-template-columns: 1fr; gap: 14px; }
.section-head-lede .lede { max-width: 38em; margin: 0; }

/* claims in a lede that link to the case study proving them */
.lede a.claim { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.lede a.claim:hover { text-decoration-thickness: 2px; }

/* build-time text for readers and crawlers without JavaScript; the interactive table replaces it */
.tsums { margin-top: 28px; display: grid; gap: 22px; max-width: 760px; }
.tsum h4 { font-size: 19px; } .tsum h4 small { font-weight: 400; color: var(--ink-2); font-size: inherit; }
.tsum dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px; margin: 8px 0 0; font-size: 16px; }
.tsum dt { font-style: italic; color: var(--ink-3); } .tsum dd { margin: 0; }
/* the numbers behind a deep-dive chart */
.dd-data { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 12px; }
.dd-data summary { cursor: pointer; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); list-style: none; }
.dd-data summary::before { content: "+ "; color: var(--ink-3); }
.dd-data[open] summary::before { content: "− "; }
.dd-data summary:hover { color: var(--ink); }
.dd-data .tbl-wrap { margin-top: 14px; }

/* =====================================================================
   Case-study layout (case study 1 first): plain section heads, the answer up front
   ===================================================================== */
.cs-section { padding-top: clamp(44px, 6vw, 72px); }
.cs-section > h2 { font-size: var(--step-2); border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: 22px; }
.cs-section.first { padding-top: clamp(36px, 5vw, 56px); }
.answer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; }
.answer-grid .prose p { max-width: 30em; }
.rule { font-size: var(--step-1); line-height: 1.4; color: var(--ink); border-left: 2px solid var(--rust); padding: 2px 0 2px 16px; margin-top: 22px !important; }
.why-prose { margin-bottom: 30px; }
.why-prose p { max-width: 38em; }
.cs-sub { font-size: 18px; font-weight: 600; letter-spacing: 0; margin: 40px 0 10px; }
.site-row { margin: 8px 0 34px; }
.tariffs.pair { margin-top: 36px; }
details.fine { margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 10px; }
details.fine summary { cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--ink-3); list-style: none; }
details.fine summary::before { content: "+ "; } details.fine[open] summary::before { content: "− "; }
details.fine summary:hover { color: var(--ink); }
details.fine p { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-2); margin: 8px 0 0; }
@media (max-width: 860px) { .answer-grid { grid-template-columns: 1fr; } }

/* "what changes the answer" on phones: each input becomes a small block instead of four squeezed columns */
@media (max-width: 640px) {
  .tbl.changes thead { display: none; }
  .tbl.changes, .tbl.changes tbody, .tbl.changes tr, .tbl.changes td { display: block; width: auto; }
  .tbl.changes tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .tbl.changes td { border: 0; padding: 2px 0; text-align: left; }
  .tbl.changes td:first-child { font-weight: 600; }
  .tbl.changes td.n { display: inline-block; margin-right: 14px; font-size: 13px; }
  .tbl.changes td.n:nth-child(2)::before { content: "modeled "; color: var(--ink-3); }
  .tbl.changes td.n:nth-child(3)::before { content: "changes at "; color: var(--ink-3); }
  .tbl.changes tr:last-child { border-bottom: 1px solid var(--ink); }
}

.contrast { font-size: 16.5px; color: var(--ink-2); margin-top: 16px !important; }
.contrast a { color: var(--ink); text-decoration-color: var(--rule-field); white-space: nowrap; }
.contrast a:hover { text-decoration-color: var(--ink); }

.cs-section.cs-method { padding-top: 32px; }   /* a footnote to the method, so it sits close under the table with no rule of its own */
.cs-method .assumptions { max-width: 52em; margin: 0; }

/* why: the explanation beside the bill breakdown */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; }
.why-grid .why-prose { margin: 0; }
.why-grid .why-prose p { max-width: 30em; }
.why-grid .sbs { margin: 6px 0 0; }
.why-grid .sbs-row { grid-template-columns: 76px 1fr 1fr; gap: 0 18px; }
.why-grid .sbs-head h4 { font-size: 19px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* how we worked it out: one section, numbered steps in order */
.cs-steps .cs-step { margin-top: clamp(28px, 4vw, 44px); }
.cs-steps .cs-step:first-of-type { margin-top: 6px; }
.cs-step > h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cs-step > h3 .no { font-family: var(--mono); font-size: 12px; font-weight: 500; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink); display: inline-grid; place-items: center; transform: translateY(-2px); flex: none; }
.cs-step .tbl-wrap + .tariffs.pair { margin-top: 30px; }
.matrix tr.na-row td { color: var(--ink-3); }
.matrix tr.na-row .rate { color: var(--ink-2); }

/* case study 1: the answer in text, then one interactive figure */
.answer-text { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px clamp(28px, 4vw, 56px); align-items: start; }
.answer-text .prose p { max-width: 34em; }
.answer-text .rule { margin-top: 0 !important; }
.explorer-fig { margin-top: 34px; }
.explorer { border-top: 1px solid var(--ink); padding-top: 14px; }
.xp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 10px; }
.xp-now { font-size: var(--step-1); } .xp-now b { font-family: var(--mono); font-weight: 500; font-size: 0.95em; }
.xp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(28px, 4vw, 48px); align-items: start; }
.xp-label { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin: 0 0 6px; }
.xp-right .xp-label + .xp-bills { margin-bottom: 22px; }
.xp-chart:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
.xp-bill { padding: 10px 0 12px; border-top: 1px solid var(--rule); }
.xp-bill-h { display: flex; justify-content: space-between; gap: 12px; font-size: 16.5px; }
.xp-bill-h .num { font-size: 15px; } .xp-bill-h small { font-size: 11.5px; color: var(--ink-3); }
.xp-bill.cheap .xp-bill-h .num { color: var(--rust-ink); font-weight: 500; }
.xp-bar { display: flex; height: 12px; margin: 7px 0 5px; }
.xp-bar i { display: block; height: 100%; transition: width 0.25s ease; }
.xp-bar i.d { background: repeating-linear-gradient(135deg, var(--c) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--c); }
.xp-bar i.f { background: #cfccc2; }
.xp-verdict { font-size: 16px; color: var(--ink-2); border-top: 1px solid var(--ink); padding-top: 10px; margin: 0; }
.xp-verdict b { font-family: var(--mono); font-weight: 500; color: var(--rust-ink); font-size: 14.5px; }
@media (max-width: 860px) { .answer-text, .xp-grid { grid-template-columns: 1fr; } }

.xp-key { display: flex; gap: 14px; margin: 0 0 10px; font-size: 11.5px; }
.xp-key span { display: inline-flex; align-items: center; gap: 6px; }
.xp-key i { width: 14px; height: 9px; display: inline-block; }
.xp-key i.e { background: var(--ink-2); }
.xp-key i.d { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--ink-2); }
.xp-key i.f { background: #cfccc2; }

/* how we worked it out: one control, pinned while you read the steps */
.wk-intro { margin-bottom: 14px; }
.wk-control { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 14px 0 12px; border-bottom: 1px solid var(--rule); margin: 0 0 4px;
  display: grid; grid-template-columns: minmax(15em, auto) minmax(0, 1fr); gap: 4px 36px; align-items: end; }
.wk-read { display: flex; flex-direction: column; gap: 2px; }
.wk-val { font-size: var(--step-1); line-height: 1.2; white-space: nowrap; } .wk-val b { font-family: var(--mono); font-weight: 500; font-size: 0.95em; }
.wk-sub { font-size: 12px; }
.wk-slide { display: flex; align-items: center; gap: 12px; }
.wk-end { font-size: 11px; flex: none; padding-top: 8px; }
.wk-track { position: relative; flex: 1; height: 34px; margin: 0 4px; cursor: pointer; touch-action: none; }
.wk-track:focus-visible { outline: 2px solid var(--action); outline-offset: 6px; border-radius: 2px; }
.wk-rail { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--rule-field); }
.wk-fill { position: absolute; left: 0; top: 22px; height: 2px; background: var(--ink); }
.wk-tick { position: absolute; top: 20px; width: 1px; height: 6px; background: var(--ink-3); opacity: 0.6; transform: translateX(-0.5px); }
.wk-knob { position: absolute; top: 13px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 1px 2px rgba(27,31,36,.15); transition: left 0.12s ease; pointer-events: none; }
.wk-track.drag .wk-knob { transition: none; }
.wk-mark { all: unset; position: absolute; top: -4px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.wk-mark::after { content: ""; position: absolute; left: 50%; top: 15px; width: 1px; height: 8px; background: var(--ink-3); }
button.wk-mark.site { color: var(--rust-ink); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
button.wk-mark.site:hover { text-decoration-color: currentColor; }
button.wk-mark.site:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.wk-mark.site::after { background: var(--rust); }
@media (max-width: 640px) {
  .wk-control { grid-template-columns: 1fr; gap: 10px; }
}
.wk-control + .cs-step { margin-top: 20px; }
.wk-control + .cs-step > h3 { border-top: 0; padding-top: 0; }
.cs-steps .num[data-wk-sessions], .cs-steps .num[data-wk-peak], .cs-steps .num[data-wk-avg] { font-weight: 500; font-size: 0.9em; }
.cs-steps.wk-off .num[data-wk-sessions], .cs-steps.wk-off .num[data-wk-peak], .cs-steps.wk-off .num[data-wk-avg] { color: var(--rust-ink); }
.wk-table td.bill { min-width: 8em; }
.wk-table td { padding-top: 11px; padding-bottom: 11px; }
.wk-table td.best { font-weight: 400; }
.wk-table tr.na-row td { color: var(--ink-3); }
.wk-table td.na { font-size: 15px; font-style: italic; }
/* what each rate charges: a plain reference table, no chart furniture */
.rate-compare-h { margin: 48px 0 14px; font-size: 17px; font-weight: 600; }
.rate-compare tr:last-child th[scope="row"] { border-bottom-color: var(--ink); }
.rate-compare th[scope="row"] { font-family: var(--serif); font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink-2); font-style: italic; border-bottom: 1px solid var(--rule); padding: 11px 16px 11px 0; vertical-align: top; width: 9em; font-weight: 400; }
.rate-compare thead th { color: var(--ink); }
.rate-compare td { font-size: 16px; width: calc(50% - 4.5em); }
.wk-table td.cmp.none { color: var(--ink-3); }
.wk-table td.na { text-align: left; }
.wk-table .cmp-m { display: none; }
@media (max-width: 640px) {
  .wk-table .cmp { display: none; }
  .wk-table .cmp-m { display: block; margin-top: 2px; }
  .wk-table td.n, .wk-table td.bill { white-space: normal; min-width: 0; }
  .wk-table td:first-child { width: 42%; }
}

.wk-offnote { display: none; margin-bottom: 12px !important; color: var(--rust-ink); }
.cs-steps.wk-off .wk-offnote { display: block; }
.cs-steps.wk-off .why-prose p:not(.wk-offnote) { opacity: 0.45; transition: opacity 0.2s; }

@media (max-width: 640px) {
  /* phone: each row's label sits above its two values */
  .rate-compare tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; border-bottom: 1px solid var(--rule); }
  .rate-compare thead tr { border-bottom: 1px solid var(--ink); }
  .rate-compare thead th:first-child { display: none; }
  .rate-compare thead th { border: 0; }
  .rate-compare th[scope="row"] { grid-column: 1 / -1; width: auto; border: 0; padding: 10px 0 0; font-size: 14.5px; }
  .rate-compare td { width: auto; border: 0; padding: 4px 0 10px; font-size: 15.5px; }
  .rate-compare tbody tr:last-child { border-bottom-color: var(--ink); }
}

/* =====================================================================================================================
   Case study layout (case study 1 first): result strip, result band, one slider over load + bill, notes, CTA, next row
   ===================================================================================================================== */
.result-strip { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 20px clamp(28px, 4vw, 56px); align-items: end;
  margin-top: clamp(28px, 4vw, 40px); padding: 22px 0 0; border-top: 1px solid var(--rule); }
.rs { display: flex; flex-direction: column; gap: 6px; }
.rs + .rs { padding-left: clamp(28px, 4vw, 56px); border-left: 1px solid var(--rule); }
.rs-num { font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.rs-main .rs-num { color: var(--rust-ink); }
.rs-sec .rs-num { font-size: clamp(28px, 3.4vw, 38px); }
.rs-site { font-size: var(--step-0); line-height: 1.25; }
.rs-lab { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.cs-band { margin-top: clamp(44px, 6vw, 72px); padding-top: 18px; border-top: 1px solid var(--ink); }
.cs-band h2 { font-size: var(--step-2); line-height: 1.15; }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin: 0 0 10px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 64px); align-items: start; }
.result-text h2 { margin-bottom: 16px; }
.result-text p { max-width: 26em; }
.result-text .rule { margin-top: 22px !important; font-size: var(--step-0); }
.cs-result .cs-fig { margin: 0; }
.cs-result .fig-cap { margin-top: 6px; }
.cs-result .dd-data { margin-top: 16px; }

.cs-explore .explore-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 20px clamp(32px, 5vw, 64px); align-items: center;
  padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.cs-explore .ex-sub { color: var(--ink-2); margin: 6px 0 0; font-size: var(--step--1); }
.cs-explore .wk-control { position: static; display: block; padding: 0; border: 0; margin: 0; background: none; }
.cs-explore .wk-val { font-size: var(--step-0); margin-bottom: 4px; } .cs-explore .wk-val b { font-family: var(--mono); font-weight: 500; }
.cs-explore .wk-track { margin: 0 12px 0 52px; }   /* the result chart's plot margins (exhibit.js ML, MR): the track sits over its x axis */
.cs-explore .wk-scale { position: relative; height: 16px; margin: 0 12px 0 52px; font-size: 11px; }
.cs-explore .wk-scale span { position: absolute; transform: translateX(-50%); }
.cs-explore.wk-off .wk-val b { color: var(--rust-ink); }

.evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; padding-top: 24px; }
.ev-col { min-width: 0; }
.ev-col + .ev-col { padding-left: clamp(28px, 4vw, 48px); border-left: 1px solid var(--rule); }
.ev-col:first-child { padding-right: clamp(28px, 4vw, 48px); }
.ev-col h3 { font-size: var(--step-1); font-weight: 600; }
.ev-sub { margin: 4px 0 14px; }
.cs-explore.wk-off .ev-sub .num, .cs-explore.wk-off .ev-sub [data-wk-sessions], .cs-explore.wk-off .ev-sub [data-wk-mwh] { color: var(--rust-ink); }
.ev-col figure { margin: 0; }
.ev-col .fig-cap { margin-top: 4px; }

.bill-t th[scope="row"] { font-family: var(--serif); font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-2);
  border-bottom: 1px solid var(--rule); padding: 10px 16px 10px 0; vertical-align: baseline; }
.bill-t td { padding: 10px 0 10px 16px; }
.bill-t thead th { color: var(--ink); padding-left: 16px; }
.bill-t thead th.c38 { box-shadow: inset 0 -2px 0 var(--blue); }
.bill-t thead th.c85 { box-shadow: inset 0 -2px 0 var(--rust); }
.bill-t tr.tot th, .bill-t tr.tot td { border-bottom: 1px solid var(--ink); font-weight: 600; color: var(--ink); }
.bill-t tr.tot td.win { color: var(--rust-ink); }
.bill-t tr.tot td.win:first-of-type { color: var(--blue); }
.verdict { margin: 14px 0 0; font-size: var(--step-0); line-height: 1.35; }
.verdict .c85 { color: var(--rust-ink); font-weight: 600; } .verdict .c38 { color: var(--blue); font-weight: 600; }
.verdict .num { font-family: var(--mono); font-weight: 500; font-size: 0.92em; }

.tdetails { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 12px; }
.tdetails summary { cursor: pointer; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); list-style: none; }
.tdetails summary::-webkit-details-marker { display: none; }
.tdetails summary::before { content: "+ "; color: var(--ink-3); }
.tdetails[open] summary::before { content: "− "; }
.tdetails summary:hover { color: var(--ink); }
.tdetails-body .rate-compare-h:first-child { margin-top: 18px; }
.wk-table td.el { color: var(--ink-3); font-size: 15px; font-style: italic; }

.cs-notes { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 24px; align-items: baseline;
  margin-top: clamp(40px, 5vw, 56px); padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cs-notes summary { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 24px; flex-wrap: wrap; cursor: pointer; list-style: none;
  font-size: var(--step--1); color: var(--ink-2); }
.cs-notes summary::-webkit-details-marker { display: none; }
.cs-notes .more { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.cs-notes .more::after { content: " +"; color: var(--ink-3); }
.cs-notes details[open] .more::after { content: " −"; }
.cs-notes summary:hover .more { color: var(--ink); }
.cs-notes details > p { max-width: 52em; margin: 10px 0 0; color: var(--ink-2); }

.cs-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px 48px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 56px); }
.cs-cta h2 { font-size: var(--step-2); line-height: 1.15; }
.cs-cta p { margin: 6px 0 0; color: var(--ink-2); font-size: var(--step--1); }

.next-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; margin-top: clamp(40px, 5vw, 56px);
  padding: 18px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.next-row .nr-t { font-size: var(--step-1); }
.next-row .arr { font-size: var(--step-1); transition: transform 0.2s ease; }
.next-row:hover .nr-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; text-decoration-color: var(--rust); }
.next-row:hover .arr { transform: translateX(3px); }

@media (max-width: 860px) {
  .result-grid, .cs-explore .explore-head { grid-template-columns: 1fr; }
  .evidence { grid-template-columns: 1fr; }
  .ev-col:first-child { padding-right: 0; }
  .ev-col + .ev-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
}
@media (max-width: 640px) {
  .result-strip { grid-template-columns: auto minmax(0, 1fr); }
  .rs-spec { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; padding-top: 16px; border-top: 1px solid var(--rule); }
  .cs-notes { grid-template-columns: 1fr; }
  .cs-cta .btn { width: 100%; justify-content: center; }
  .next-row { grid-template-columns: minmax(0, 1fr) auto; }
  .next-row .meta { grid-column: 1 / -1; }
}

/* ---------- case study pass 2: bigger headline, wider chart, a real conclusion row, sans explanatory text ---------- */
.ex-head-grid { grid-template-columns: minmax(0, 1fr) minmax(150px, 200px); align-items: end; }
.ex-head-grid h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 0.98; letter-spacing: -0.025em; max-width: 11em; }
.ex-head-grid .lede { font-family: var(--sans); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 36em; margin-top: 20px; }
.ex-head-grid .head-map { padding-top: 0; }
.ex-head-grid .head-map .map-cap { font-size: 11px; margin-top: 8px; }
.result-strip { border-top: 0; padding-top: 0; margin-top: clamp(28px, 3.6vw, 40px); gap: 16px clamp(36px, 5vw, 72px); }
.rs + .rs { padding-left: 0; border-left: 0; }
.rs-lab { font-family: var(--sans); font-size: 13px; }
.rs-site { font-family: var(--sans); font-size: 17px; font-weight: 500; }

.result-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 7.4fr); }
.result-text p { font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.result-text .rule { font-family: var(--serif); font-size: var(--step-0); color: var(--ink); }
.cs-result .fig-cap { border: 0; padding: 0; margin-top: 2px; }
.cs-band .fig-cap p, .ev-col .fig-cap p { font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); }
.cs-result .dd-data { border: 0; padding: 0; margin-top: 8px; }
.ev-col .fig-cap { border: 0; padding: 0; }
.plot text.gapnote { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--ink); }
.plot text.gapsub { font-family: var(--sans); font-size: 12.5px; fill: var(--ink-2); }
.plot text.ptlab { font-family: var(--mono); font-size: 13px; font-weight: 500; }

.cs-explore .ex-sub, .cs-cta p, .cs-notes summary, .cs-notes details > p { font-family: var(--sans); }
.cs-explore .ex-sub { font-size: 14.5px; }

.bill-t tfoot th, .bill-t tfoot td { border-bottom: 0; padding-top: 18px; vertical-align: baseline; }
.bill-t .verdict-row th { font-family: var(--serif); font-size: var(--step-0); color: var(--ink); font-weight: 400; text-transform: none; letter-spacing: 0; }
.bill-t .verdict-row th small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.bill-t .verdict-row b.c85 { color: var(--rust-ink); font-weight: 600; } .bill-t .verdict-row b.c38 { color: var(--blue); font-weight: 600; }
.bill-t td.big { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.015em; font-variant-numeric: lining-nums tabular-nums; }
.bill-t td.big.c85 { color: var(--rust-ink); } .bill-t td.big.c38 { color: var(--blue); }
.bill-t td.big small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-3); letter-spacing: 0; margin-top: 6px; }
.verdict { display: none; }

/* the bottom: one rhythm, not three empty bands */
.tdetails { margin-top: 22px; }
.cs-notes { margin-top: 28px; }
.cs-cta { margin-top: 48px; }
.next-row { margin-top: 44px; }
.result-text p.kicker { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.bill-t tfoot th[scope="row"] { border-bottom: 0; padding-top: 18px; }
@media (max-width: 860px) { .result-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ex-head-grid { grid-template-columns: 1fr; align-items: start; } .ex-head-grid .head-map .map-cap { margin: 0; } }

/* result strip: three figures on one size and one baseline; only colour says which is the answer */
.result-strip { grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: start; align-items: start; gap: 16px clamp(40px, 6vw, 88px); }
.result-strip .rs-num, .result-strip .rs-sec .rs-num { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); line-height: 1; font-weight: 400; letter-spacing: -0.015em; color: var(--ink); }
.result-strip .rs-main .rs-num { color: var(--rust-ink); }
.result-strip .rs-lab { font-family: var(--sans); font-size: 13.5px; line-height: 1.35; color: var(--ink-3); margin-top: 4px; max-width: 16em; }
@media (max-width: 640px) {
  .result-strip { grid-template-columns: 1fr 1fr; }
  .result-strip .rs-spec { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
}
.result-strip .rs-spec .rs-lab { max-width: 22em; }
@media (max-width: 640px) { .result-strip { gap: 22px 24px; } .result-strip .rs-lab { max-width: none; } }

/* ---------- case study opening, pass 3: the page's own grid instead of a hero ----------
   A margin column (case number, territory) beside the headline and a standfirst that states the result in a sentence.
   The margin column is the same 3 : 7.4 split the result and the calculation use below, so the page reads as one grid. */
.head-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7.4fr); gap: 24px clamp(32px, 5vw, 64px); align-items: start; }
.head-margin { padding-top: 14px; }
.head-margin .crumb { margin: 0 0 18px; }
.head-margin .head-map { max-width: 190px; }
.head-margin .head-map > svg { display: block; width: 100%; }
.head-margin .map-cap { display: block; margin: 8px 0 0; font-size: 11px; }
.head-main h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.012em; font-weight: 500; max-width: 12em; }
.standfirst { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 32em; margin: 22px 0 0; }
.standfirst .fig { color: var(--rust-ink); font-weight: 600; font-variant-numeric: lining-nums; }
@media (max-width: 860px) {
  .head-2 { grid-template-columns: 1fr; }
  .head-margin { display: flex; align-items: center; gap: 18px; padding-top: 0; flex-wrap: wrap; }
  .head-margin .crumb { margin: 0; flex-basis: 100%; }
  .head-margin .head-map { display: flex; align-items: center; gap: 14px; max-width: none; }
  .head-margin .head-map > svg { width: 110px; }
  .head-margin .map-cap { margin: 0; }
}
.cs-explore .explore-head { grid-template-columns: minmax(0, 3fr) minmax(0, 7.4fr); }   /* same columns as the opening and the result */
@media (max-width: 860px) { .cs-explore .explore-head { grid-template-columns: 1fr; } }

/* ---------- case study opening, pass 4: a dated report ---------- */
.ex-head:has(.dateline) { padding-top: 8px; }
.dateline { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 14px; margin-bottom: clamp(24px, 3vw, 36px); }
.dateline p { margin: 0; } .dateline a { color: var(--ink); }
.head-3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 170px); gap: 20px clamp(32px, 5vw, 64px); align-items: start; }
.head-3 h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.012em; font-weight: 500; max-width: 15em; }
.head-3 .standfirst { font-family: var(--serif); color: var(--ink); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; max-width: 31em; margin: 18px 0 0; }
.head-3 .standfirst b { font-weight: 600; }
.head-3 .spec { margin: 16px 0 0; font-size: 13px; }
.head-3 .head-map { padding-top: 10px; }
.head-3 .head-map > svg { display: block; width: 100%; }
.head-3 .map-cap { display: block; margin: 6px 0 0; font-size: 11px; text-align: right; }
.cs-band.cs-result { margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 760px) {
  .head-3 { grid-template-columns: 1fr; }
  .head-3 .head-map { display: none; }
}
/* the bill's conclusion: one plain row, totals a step up */
.bill-t tr.tot th, .bill-t tr.tot td { font-size: 19px; }
.bill-t tr.tot td.n { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.bill-t tr.tot td.win, .bill-t tr.tot td.win:first-of-type { color: var(--ink); }
.bill-t .verdict-row th { font-size: 17px; }
.bill-t td.big { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 24px); font-weight: 600; color: var(--ink); text-align: right; letter-spacing: 0; }
.cs-band h2 { font-size: clamp(24px, 2.3vw, 28px); }   /* modest section heads: the page headline leads */
.head-3 { grid-template-columns: minmax(0, 1fr) minmax(200px, 270px); }   /* a larger territory map beside the headline */

/* the annual bill as a plain ledger, after the Markets site pages: sans, tabular figures, hairline rows,
   a double-ruled total, no colour */
.billtab { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; font-variant-numeric: tabular-nums; }
.billtab th, .billtab td { padding: 8px 0 8px 16px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule); font-weight: 400; }
.billtab th:first-child { padding-left: 0; text-align: left; }
.billtab thead th { font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--ink); padding-top: 0; }
.billtab tbody th { color: var(--ink-2); }
.billtab tr.tot th, .billtab tr.tot td { font-weight: 600; color: var(--ink); border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
.billtab tr.per th, .billtab tr.per td { color: var(--ink-2); }
.billtab tfoot th, .billtab tfoot td { border-bottom: 0; padding-top: 14px; color: var(--ink); font-weight: 500; }
.billtab tfoot td { font-weight: 600; }
@media (max-width: 640px) {
  .billtab { font-size: 14px; }
  .billtab th, .billtab td { padding-left: 10px; }
  .billtab thead th { font-size: 12px; white-space: normal; }
  .billtab tfoot th, .billtab tfoot td { white-space: normal; }
}
@media (max-width: 760px) { .head-3 { grid-template-columns: 1fr; } }

/* ledger, rates down the side: the cheapest row's total in weight; the comparison as one sentence under it */
.billtab { font-size: 14.5px; }
.billtab th, .billtab td { padding-left: 12px; }
.billtab tbody th { color: var(--ink); white-space: normal; }
.billtab td.tot { color: var(--ink); }
.billtab tr.best th, .billtab tr.best td.tot { font-weight: 600; }
.billtab tbody tr:last-child th, .billtab tbody tr:last-child td { border-bottom: 1px solid var(--ink); }
.billtab .cmp-m { display: none; }
.billtab-note { font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--ink-2); margin: 14px 0 0; }
.billtab-note b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .billtab .cmp { display: none; }
  .billtab .cmp-m { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
}

/* bill table, pass 3: components quiet, total set apart by a hairline, and each rate's bill drawn beneath it on one scale */
.billtab { border-top: 0; }
.billtab thead th { border-top: 0; vertical-align: bottom; }
.billtab .sw { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: 0; }
.billtab .sw.e, .billtab .bb .e { background: var(--ink); }
.billtab .sw.d, .billtab .bb .d { background: var(--grey); }
.billtab .sw.f, .billtab .bb .f { background: var(--rule-field); }
.billtab tr.fig th, .billtab tr.fig td { border-bottom: 0; padding-top: 12px; padding-bottom: 4px; vertical-align: top; }
.billtab tr.fig td.cmp { color: var(--ink-2); }
.billtab .tot { border-left: 1px solid var(--rule); padding-left: 14px; }
.billtab thead th.tot { border-left: 1px solid var(--rule); }
.billtab td.tot small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 1px; }
.billtab tr.bar td { padding: 2px 0 12px; border-bottom: 1px solid var(--rule); text-align: left; }
.billtab tbody tr.bar:last-child td { border-bottom: 1px solid var(--ink); }
.billtab tbody tr:last-child th, .billtab tbody tr.fig:nth-last-child(2) td { border-bottom: 0; }
.billtab .bb { display: flex; height: 6px; transition: width 0.25s ease; }
.billtab .bb i { display: block; height: 100%; transition: width 0.25s ease; }
.billtab .bb i + i { box-shadow: inset 1px 0 0 var(--paper); }
@media (prefers-reduced-motion: reduce) { .billtab .bb, .billtab .bb i { transition: none; } }
.billtab .tot, .billtab thead th.tot { border-left: 0; padding-left: 22px; }
.billtab .cmp-m .sw { width: 7px; height: 7px; margin-right: 4px; }

/* the result's lead sentence stands in for a section heading: it is the chart's title */
.result-text h2.result-lead { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 23px); line-height: 1.35; font-weight: 400; color: var(--ink); margin: 0 0 18px; max-width: 18em; }


/* result chart: two views, cost per kWh and the annual bill as paired stacked bars */
.xo-bar { margin-bottom: 8px; justify-content: space-between; }
.xo-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-family: var(--sans); font-size: 12.5px; }
.xo-key[hidden] { display: none; }
.xo-key .sw { display: inline-block; width: 9px; height: 9px; margin: 0 5px 0 0; vertical-align: -1px; background: var(--ink); }
.xo-key .xo-shade .sw { margin-left: 6px; }
@media (max-width: 640px) { .xo-bar .seg { width: auto; display: inline-flex; } .xo-bar .seg button:nth-child(even) { border-left: 1px solid var(--rule-field); } }

/* result chart, pass 2: quiet text tabs, and the page's one bill encoding everywhere:
   the rate is its colour (blue comparison, rust answer); energy solid, demand hatched, fixed grey */
.xo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin: 0 0 6px; }
.xo-tabs { display: flex; gap: 18px; }
.xo-tabs button { all: unset; cursor: pointer; font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); padding: 2px 0;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.xo-tabs button:hover { color: var(--ink); }
.xo-tabs button[aria-selected="true"] { color: var(--ink); text-decoration-color: var(--ink); }
.xo-tabs button:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.xo-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); }
.xo-key[hidden] { display: none; }
.xo-key span { display: inline-flex; align-items: center; gap: 5px; }
.xo-key .sw { display: inline-block; width: 9px; height: 9px; }
i.k { display: inline-block; width: 12px; height: 8px; margin-right: 5px; vertical-align: 0; }
i.k.e { background: var(--ink-2); }
i.k.d { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--ink-2); }
i.k.f { background: #cfccc2; }
.billtab .bb { height: 8px; }
.billtab .bb .e { background: var(--c, var(--ink-2)); opacity: 1; }
.billtab .bb .d { background: repeating-linear-gradient(135deg, var(--c, var(--ink-2)) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--c, var(--ink-2)); opacity: 1; }
.billtab .bb .f { background: #cfccc2; opacity: 1; }

/* bill table without bars: each rate is one row again */
.billtab tr.fig th, .billtab tr.fig td { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.billtab tbody tr.fig:last-child th, .billtab tbody tr.fig:last-child td { border-bottom: 1px solid var(--ink); }
.billtab tbody tr.fig:not(:last-child) td, .billtab tbody tr.fig:not(:last-child) th { border-bottom: 1px solid var(--rule); }

/* chart key in two groups: what the colour means, then what the fill means */
.xo-key { gap: 4px 22px; }
.xo-key .grp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.xo-key .grp b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); margin-right: 2px; }
.xo-key .grp + .grp { padding-left: 22px; border-left: 1px solid var(--rule); }
i.k.d { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1px, transparent 1px 5px); }
.xo-key.off { visibility: hidden; }

/* bill panel, pass 4: mono figures, quiet components, strong totals with their cost per kWh, one live conclusion */
.billtab { font-family: var(--sans); }
.billtab th, .billtab td { white-space: nowrap; }
.billtab thead th { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.billtab tbody th { font-family: var(--sans); font-size: 15.5px; font-weight: 400; color: var(--ink); vertical-align: top; }
.billtab tr.best th { font-weight: 600; }
.billtab td { font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); vertical-align: top; font-variant-numeric: tabular-nums; }
.billtab td.tot { font-size: 17px; font-weight: 600; color: var(--ink); padding-left: 18px; }
.billtab tr.best td.tot { font-weight: 600; }
.billtab td.tot small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); margin-top: 3px; }
.billtab tr.fig th, .billtab tr.fig td { padding-top: 12px; padding-bottom: 12px; }
.bill-verdict { padding: 16px 0 4px; }
.bill-verdict .bv-num { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: var(--ink); }
.bill-verdict.answer .bv-num { color: var(--rust-ink); }
.bill-verdict .bv-sub { margin: 6px 0 0; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.billtab-note { display: none; }
.more-btn { all: unset; cursor: pointer; display: block; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); width: 100%;
  font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.more-btn::before { content: "+ "; color: var(--ink-3); }
.more-btn[aria-expanded="true"]::before { content: "− "; }
.more-btn:hover { color: var(--ink); }
.more-btn:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.cs-explore #tariff-details { margin-top: 28px; }
.cs-explore #tariff-details[hidden] { display: none; }
@media (max-width: 640px) { .billtab td.tot { font-size: 16px; } }
.billtab th, .billtab td { padding-left: 10px; }
.billtab td.tot { padding-left: 14px; font-size: 16px; }
.billtab td { font-size: 13px; }
.billtab tbody th, .billtab thead th:first-child { padding-left: 0; }
/* the tables inside "Other tariffs and eligibility" take the same sentence-case headings as the bill */
#tariff-details .tbl th, #tariff-details .rate-compare thead th { font-family: var(--sans); font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--ink-3); }

/* bill panel, restrained: one face (Plex Sans, tabular figures), two sizes, two weights, one accent (the saving) */
.billtab td, .billtab td.tot { font-family: var(--sans); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.billtab td.cmp { color: var(--ink-3); }
.billtab td.tot { font-weight: 400; color: var(--ink); }
.billtab tr.best th, .billtab tr.best td.tot { font-weight: 600; }
.billtab tbody th { font-size: 14.5px; }
.billtab td.tot small { font-family: var(--sans); font-size: 12.5px; }
.bill-verdict { padding: 12px 0 0; }
.bill-verdict p { display: inline; margin: 0; }
.bill-verdict .bv-num { font-family: var(--sans); font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.bill-verdict.answer .bv-num { color: var(--rust-ink); }
.bill-verdict .bv-sub { font-size: 14.5px; color: var(--ink-2); margin-left: 4px; }
.cs-explore .wk-mark.below { top: 30px; } .cs-explore .wk-mark.below::after { top: -9px; }
.cs-explore .wk-track:has(.wk-mark.below) + .wk-scale { margin-top: 14px; }
.xo-key.kwh .chg { visibility: hidden; }
.xo-key .ln { display: inline-block; width: 14px; height: 1.5px; opacity: 0.45; vertical-align: 3px; }
.xo-key:not(.kwh) .ctx { visibility: hidden; }   /* the without-rider lines are on the cost-per-kWh chart only; kept in place so the chart never moves */
.xo-key svg.ln { display: inline-block; width: 18px; height: 10px; margin-right: 5px; vertical-align: -1px; opacity: 1; background: none; }

/* five-year totals in the result band (a growing site's case study): two rows, hairline rules, the cheaper in the answer colour */
.result-text table.totals { width: 100%; max-width: 22em; border-collapse: collapse; margin: 4px 0 0; font-family: var(--sans); font-size: 15px; }
.result-text table.totals caption { caption-side: top; text-align: left; font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.result-text table.totals th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--rule); }
.result-text table.totals td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--rule); }
.result-text table.totals tr.best th, .result-text table.totals tr.best td { color: var(--rust-ink); font-weight: 600; }
.result-text p.totals-diff { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.result-text p.totals-diff b { color: var(--ink); font-weight: 600; }
/* a year slider's scale: the end labels sit inside the track's ends */
.wk-control.yr .wk-scale span { white-space: nowrap; }

/* the lead case study's thumbnail is its full result chart: the chart's own height and key size, not the thumbnail's */
.ex .lead-thumb .plot, .ex .full-thumb .plot { height: auto; }
.ex .lead-thumb .xo-key, .ex .lead-thumb .xo-key span, .ex .full-thumb .xo-key, .ex .full-thumb .xo-key span { font-family: var(--sans); font-size: 12.5px; }
/* a rider billed by year of enrollment: its credit this year, under the rate's name */
.billtab th small.rider { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }

/* footnotes: a marker in the copy, the note set small at the end of the case study */
sup.fn { font-size: 0.7em; line-height: 0; vertical-align: super; }
sup.fn a { color: inherit; text-decoration: none; padding: 0 1px; }
.cs-footnote { margin: 16px 0 0; max-width: 46em; }
.cs-footnote p { margin: 0; font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.cs-footnote a { color: var(--ink-2); text-decoration: none; margin-right: 4px; }
.nw { white-space: nowrap; }
/* the load panel's own view switch (fleet cases): the same quiet text tabs as the result chart */
.ld-tabs { margin: 2px 0 6px; }
/* the load panel's controls: view tabs (fleet cases) on the left, Week and the days on the right */
.ld-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; margin: 2px 0 6px; }
.ld-bar .ld-tabs { margin: 0; }
.ld-days { gap: 12px; }
.ld-days button { font-family: var(--mono); font-size: 12px; }
.ld-bar .ld-days:only-child { margin-left: auto; }

/* a longer explanation in the result band (owner's copy), set as body text; its worked example sits under the chart */
.result-text p.result-long { font-family: var(--serif); font-size: 17.5px; line-height: 1.55; color: var(--ink); max-width: 30em; margin: 0 0 18px; }
.cs-worked { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); max-width: 46em; }
.cs-worked p, .cs-worked li { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--ink-3); margin: 0 0 6px; }
.cs-worked ul { margin: 0 0 6px; padding-left: 18px; }
.cs-worked a { color: var(--ink-2); text-decoration: none; font-family: var(--sans); font-size: 13.5px; }

/* the address field's autofill wrapper takes the field's full width, like the input it wraps */
mapbox-address-autofill { display: block; }

/* home rows with a full chart (cases 1-3): the chart starts level with the row's headline, not floated to the row's middle */
.ex.lead .body > .thumb, .ex.wide .body > .thumb { align-self: start; margin-top: 4px; }

/* battery case studies: the load and the bill each full width; under the load, the shown rate's energy price and demand charge
   (dancingwolf's savings map); the bill in three panels, without the battery, with it and the saving (cactuspublic's tariff table) */
.evidence.stack { grid-template-columns: 1fr; }
.evidence.stack .ev-col:first-child { padding-right: 0; }
.evidence.stack .ev-col + .ev-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
.ev-col .strips { margin-top: 2px; }
.ev-col .strip-key { margin-top: 6px; color: var(--ink-3); }
.ld-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 4px; font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
.ld-key .k { display: inline-block; width: 12px; height: 9px; margin-right: 6px; vertical-align: 0; }
.ld-key .k.grid { background: linear-gradient(var(--ink), #a9aaa8); opacity: .55; }
.ld-key .k.site { border: 1px solid var(--ink-3); height: 8px; }
.ld-key .k.chg { background: var(--rust); }
.ld-key .k.dis { background: repeating-linear-gradient(45deg, var(--rust) 0 1px, transparent 1px 4px); outline: 1px solid rgba(196,87,42,.35); }

/* the battery bill, pass 2: a statement table. Spanner heads centred over each panel with a rule under their own columns; panels set
   apart by space, not rules; components quiet, totals in ink, savings in rust (the best row in bold); a dagger and note for a rate the
   site would leave, so every row is one line */
.bill3 { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14.5px; font-variant-numeric: tabular-nums lining-nums; }
.bill3 th, .bill3 td { padding: 9px 0 9px 14px; text-align: right; white-space: nowrap; font-weight: 400; }
.bill3 th:first-child { padding-left: 0; text-align: left; }
.bill3 .g0 { padding-left: 36px; }
.bill3 thead tr.span th { padding-top: 0; padding-bottom: 0; }
.bill3 thead tr.span th span { display: block; padding-bottom: 6px; border-bottom: 1px solid var(--rule-field); text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--ink-2); white-space: normal; }
.bill3 thead tr.cols th { padding-top: 8px; padding-bottom: 7px; font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.bill3 thead tr.cols th.tot, .bill3 thead tr.cols th:first-child { color: var(--ink-2); }
.bill3 thead th .m { display: none; }
.bill3 tbody th { color: var(--ink); font-weight: 400; white-space: normal; }
.bill3 tbody tr + tr > * { border-top: 1px solid var(--rule); }
.bill3 tbody tr:last-child > * { border-bottom: 1px solid var(--ink); }
.bill3 td.cmp { color: var(--ink-3); font-size: 13.5px; }
.bill3 td.tot { color: var(--ink); }
.bill3 td.tot.low { font-weight: 600; }
.bill3 td.tot.sv { color: var(--rust-ink); }
.bill3 tr.best td.tot.sv, .bill3 tr.best th { font-weight: 600; }
.bill3 td.na { text-align: center; color: var(--ink-3); font-style: italic; font-size: 13px; }
.bill3 sup, .bill3-note sup { font-size: 10px; margin-left: 1px; color: var(--ink-3); }
.bill3-note { margin: 10px 0 0; font-family: var(--sans); font-size: 13px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 720px) {
  .bill3 .cmp, .bill3 thead tr.span { display: none; }
  .bill3 .g0, .bill3 td.tot { padding-left: 12px; }
  .bill3 thead th .d { display: none; }
  .bill3 thead th .m { display: inline; white-space: normal; }
  .bill3 thead tr.cols th.tot { white-space: normal; max-width: 80px; }
}
.bill3 td.tot.na { font-style: normal; color: var(--ink-3); text-align: right; }
@media (max-width: 720px) { .bill3 tbody th { white-space: nowrap; } }
.plot .strip-lab { font-family: var(--mono); font-size: 10px; fill: var(--ink); }
.plot .strip-lab.dark { fill: var(--paper); }
.ld-weeks button { white-space: nowrap; }
@media (max-width: 640px) { .ld-weeks .wk-of { display: none; } }
.bill3 td.tot.sv.neg { color: var(--ink-3); font-weight: 400; }
.ev-col .grid-head { margin: 18px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ev-col .grid-head span { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.ev-col .grid-past { margin-top: 2px; }
.ev-col .grid-past .plot + .plot { margin-top: 2px; }
.ev-col .grid-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 4px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); }
.ev-col .grid-key .lk { display: inline-flex; align-items: center; gap: 6px; }
.ev-col .grid-key .note { flex-basis: 100%; color: var(--ink-3); }

/* =====================================================================
   Shared engineering editorial treatment.
   One palette and typographic system for the homepage and case studies.
   Presentation only: data, geometry, copy and controls are unchanged.
   ===================================================================== */
body {
  --paper: #fdfdfb;
  --paper-deep: #f1f3ef;
  --field: #ffffff;
  --ink: #202722;
  --ink-2: #444e47;
  --ink-3: #59635b;
  --rule: #ced5ce;
  --rule-field: #a4afa5;
  --action: #24553e;
  --action-hover: #193e2d;
}
body .masthead { padding-top: 28px; }
body .masthead .wrap { align-items: center; }
body h1,
body h2,
body h3,
body h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.035em;
}
body .hero { padding-top: clamp(40px, 5.5vw, 72px); }
body .hero-grid { align-items: start; }
body .hero h1 {
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.02;
  max-width: 10.5em;
  text-wrap: balance;
}
body .hero .lede {
  font-size: 21px;
  line-height: 1.5;
  margin-top: 24px;
}
body .checks { margin-top: 22px; gap: 10px; }
body .checks li { font-family: var(--sans); font-size: 16px; }
body .hero .checks + .hero-actions { margin-top: 24px; gap: 12px; }
body .btn {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  border-radius: 0;
  min-height: 52px;
}
body .btn-xl { padding: 17px 22px; justify-content: space-between; }
body .hero-actions .meta { font-size: 13px; line-height: 1.6; }
body .hero-fig { padding-top: 0; }
body .ridges .ridge path[stroke="none"] { fill: var(--paper); }
body .ridges .ridge path[stroke="#6f6c64"] { stroke: #58655b; stroke-width: 1; }
body .ledger-h { font-size: 12px; padding-bottom: 10px; }
body .ledger-h b { font-size: 12px; }
body .ledger .row { height: 38px; gap: 0 10px; }
body .ledger .row[aria-checked="true"] { background: #edf2ed; }
body .ledger-foot { height: auto; min-height: 38px; flex-wrap: wrap; gap: 6px 12px; }
body .section { padding-top: clamp(48px, 6vw, 76px); }
body .section-head { padding-top: 20px; margin-bottom: 32px; }
body .section-head h2,
body .request h2 { font-size: clamp(30px, 3.3vw, 42px); line-height: 1.12; }
body .section-head-lede {
  grid-template-columns: 1fr;
  gap: 16px;
}
body .section-head-lede .lede { font-size: 20px; line-height: 1.5; }
body .examples > li + li { border-top: 1px solid var(--rule); }
body .ex { padding-top: 32px; padding-bottom: 36px; }
/* Each link is its li's first child; override the legacy first-child reset. */
body .examples > li + li > .ex { padding-top: 32px; }
body .ex.lead { padding-top: 0; }
body .ex .n { color: var(--action); font-size: 14px; font-weight: 500; }
body .ex h3 { font-size: clamp(25px, 2.3vw, 30px); line-height: 1.14; }
body .ex.lead h3 { font-size: clamp(30px, 3vw, 38px); line-height: 1.08; }
body .ex .meta { font-size: 13px; line-height: 1.65; margin-top: 16px; }
body .ex p { font-size: 18px; line-height: 1.55; }
body .ex .result .big {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
}
body .ex .go { font-family: var(--sans); font-size: 15px; font-weight: 500; }
body .plot .tick,
body .plot .axl { fill: #505b53; }
body .steps h4 { font-size: 21px; line-height: 1.2; }
body .steps .label { font-size: 12px; color: var(--action); }
body .request { margin-top: 72px; padding: 56px 0; border-top: 1px solid var(--rule); }
body .field label,
body .field legend { font-size: 13px; }
body .field input,
body .field select,
body .field textarea,

@media (max-width: 960px) {
  body .hero-grid { gap: 24px; }
  body .hero h1 { max-width: 12em; font-size: clamp(40px, 6.4vw, 60px); }
  body .section-head-lede { grid-template-columns: 1fr; gap: 16px; }
  body .hero .lede { margin-top: 0; }
  body .hero .checks + .hero-actions { margin-top: 0; }
}
@media (max-width: 560px) {
  body .masthead { padding-top: 22px; }
  body .hero { padding-top: 36px; }
  body .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  body .hero .lede { font-size: 20px; }
  body .ledger-h { font-size: 11px; }
  body .ledger .row { gap: 0 8px; }
  body .ex h3 { font-size: 26px; }
  body .ex.lead h3 { font-size: 30px; }
  body .request { margin-top: 48px; padding: 40px 0; }
}

/* Case studies: carry the shared system into the analytical page template. */
body[data-exhibit] .ex-head:has(.dateline) { padding-top: 20px; }
body[data-exhibit] .dateline .meta { font-size: 13px; }
body[data-exhibit] .head-3 h1 {
  font-family: var(--sans);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
body[data-exhibit] .head-3 .standfirst {
  font-size: clamp(19px, 1.65vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 22px;
}
body[data-exhibit] .head-3 .map-cap { font-size: 12px; color: var(--ink-3); }
body[data-exhibit] .cs-band { margin-top: clamp(36px, 4.5vw, 56px); padding-top: 22px; }
body[data-exhibit] .cs-band.cs-result { margin-top: clamp(32px, 4vw, 48px); }
body[data-exhibit] .cs-band h2,
body[data-exhibit] .cs-cta h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
body[data-exhibit] .result-text h2.result-lead {
  font-family: var(--sans);
  font-size: clamp(22px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
body[data-exhibit] .ev-col h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
body[data-exhibit] .ev-sub { font-size: 13px; line-height: 1.6; }
body[data-exhibit] .cs-explore .ex-sub,
body[data-exhibit] .cs-cta p { font-size: 16px; line-height: 1.5; }
body[data-exhibit] .rate-compare-h { font-family: var(--sans); font-size: 18px; letter-spacing: -0.015em; }
body[data-exhibit] .cs-cta {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  margin-top: 48px;
}
body[data-exhibit] .next-row .nr-t {
  font-family: var(--sans); font-weight: 500; font-size: 20px; line-height: 1.35; letter-spacing: -0.02em;
}
/* Existing SVG paper masks and marker outlines use literal colors.
   Restyle only those surfaces, preserving every analytical mark and path. */
body svg [fill="#f4f3ee"] { fill: var(--paper); }
body svg [stroke="#f4f3ee"] { stroke: var(--paper); }
body svg [fill="#fbfaf7"] { fill: var(--field); }
@media (max-width: 560px) {
  body[data-exhibit] .ex-head:has(.dateline) { padding-top: 12px; }
  body[data-exhibit] .head-3 h1 { font-size: 34px; }
  body[data-exhibit] .head-3 .standfirst { font-size: 19px; margin-top: 18px; }
  body[data-exhibit] .cs-band { margin-top: 36px; padding-top: 18px; }
  body[data-exhibit] .cs-cta { margin-top: 36px; padding-top: 24px; }
}

/* Long utilization/charger labels must wrap inside the mobile grid. */
body[data-exhibit] .explore-head > * { min-width: 0; }
body[data-exhibit] .cs-explore .wk-val {
  font-family: var(--sans); font-size: 18px; line-height: 1.4; white-space: normal;
}


/* Shared site navigation and footer. Keep page-specific layouts in info.css. */
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 20; padding: 12px 16px; background: var(--action); color: #fff; font: 16px var(--sans); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
body .site-masthead .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 32px; align-items: center; }
.site-nav { display: flex; gap: 28px; align-items: center; justify-content: flex-end; font-family: var(--sans); font-size: 15px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--action); text-decoration: underline; }
.site-nav a[aria-current] { color: var(--action); text-decoration: underline; text-underline-offset: 7px; }
.site-nav-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 10px 16px; background: var(--action); color: #fff; font: 500 15px/1.3 var(--sans); text-decoration: none; white-space: nowrap; }
.site-nav-cta:hover { background: var(--action-hover); }
.site-nav-cta:focus-visible { outline-offset: 4px; }
body .site-footer { padding: 0 0 32px; }
body .site-footer .wrap { display: block; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0 20px; border-top: 1px solid var(--rule); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font: 15px/1.5 var(--sans); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-2); }
.footer-nav a:hover { color: var(--action); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font: 13px/1.6 var(--sans); color: var(--ink-3); }
.footer-bottom a { display: inline-block; padding: 8px 0; }
.footer-bottom > span:last-child { padding-top: 8px; }
@media (max-width: 720px) {
  body .site-masthead .wrap { grid-template-columns: 1fr auto; gap: 12px 16px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 28px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; font-size: 14px; }
  .site-nav-cta { grid-column: 2; grid-row: 1; gap: 14px; padding: 10px 13px; font-size: 14px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-nav { gap: 4px 24px; font-size: 14px; }
}
@media (max-width: 380px) {
  .site-nav { gap: 22px; }
  .site-nav-cta { padding: 10px; gap: 8px; }
  .footer-nav { column-gap: 18px; }
}

.link-arrow { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; vertical-align: middle; }
