/* "Charger types, mapped": the seven charger type pages. Built on the design
   system in /assets/ds/styles.css, in the language of the new homepage and
   installer pages: left-aligned hero with a labelled 3D scene, band heads with
   an eyebrow, hairline readings, night bands for tools and results. Every colour,
   size, space and easing is a token or a color-mix() of tokens (no hex values).
   Mobile first; the site's one breakpoint is 980px, with fine-tuning at 768px.
   Every class is prefixed ct- (page) or g- (explainer graphics); the mockup's
   view switcher is mk-. Motion runs only under prefers-reduced-motion:
   no-preference. */

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-padding-top: 72px; }

/* ── Shared band furniture ──────────────────────────────────────────────── */
.ct-band-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); max-width: 66ch; }
.ct-band-head h2 { max-width: 24ch; text-wrap: balance; }
.ct-band-lead { font-size: var(--text-lead); line-height: 1.55; color: var(--color-muted); max-width: 62ch; }
.ct-band-lead strong { color: var(--color-text); }
.night .ct-band-lead { color: var(--color-on-night-muted); }
.night .ct-band-lead strong { color: var(--color-surface); }
.ct-mini-h { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; color: var(--color-text); }
.night .ct-mini-h { color: var(--color-surface); }
.ct-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-surface-2); font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.link-arrow { min-height: var(--target); }
.ct-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent-100); color: var(--color-accent-ink); }
.ct-dash { color: var(--color-muted); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.ct-hero .ai-btn { min-height: var(--target); }
.ct-hero { padding-block: var(--space-6) var(--space-10); overflow: hidden; }
.ct-hero--day {
  background:
    radial-gradient(120% 80% at 80% 10%, color-mix(in oklch, var(--color-sun-100) 85%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-accent-100) 0%, var(--color-bg) 70%);
  border-bottom: 1px solid var(--color-divider);
}
.ct-hero-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "more" "ai"; }
.ct-hero-head { grid-area: head; display: grid; gap: var(--space-3); }
.ct-hero-head h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem); max-width: 15ch; text-wrap: balance; }
.ct-hero--day .eyebrow { color: var(--color-accent-ink); }
.ct-hero--day .highlight { color: var(--color-accent); }
.ct-crumbs ol { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); list-style: none; font-size: var(--text-xs); }
.ct-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-muted); }
.ct-crumbs li + li::before { content: "/"; color: var(--color-divider-strong); }
.ct-crumbs a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--color-accent-ink); }
.night .ct-crumbs li { color: var(--color-on-night-muted); }
.night .ct-crumbs a { color: var(--color-on-night); }
.night .ct-crumbs li + li::before { color: var(--color-night-line); }
.ct-hero-more { grid-area: more; display: grid; gap: var(--space-6); justify-items: start; }
.ct-hero-ai { grid-area: ai; min-width: 0; }
.ct-answer { font-size: var(--text-lead); line-height: 1.6; color: var(--color-text-2); max-width: 60ch; }
.ct-answer strong { color: var(--color-text); }
.night .ct-answer { color: var(--color-on-night); }
.night .ct-answer strong { color: var(--color-surface); }
.ct-hero-more .btn-row { gap: var(--space-2) var(--space-6); }
.ct-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.ct-readings > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: var(--space-4) var(--space-3) var(--space-4) 0; min-width: 0; }
.ct-readings > div + div { padding-left: var(--space-4); border-left: 1px solid var(--color-divider); }
.ct-readings dt { font-size: var(--text-xs); line-height: 1.4; color: var(--color-muted); }
.ct-readings .reading { color: var(--color-accent-ink); }
.night .ct-readings { border-color: var(--color-night-line); }
.night .ct-readings > div + div { border-color: var(--color-night-line); }
.night .ct-readings dt { color: var(--color-on-night-muted); }
.night .ct-readings .reading { color: var(--color-accent-2); }

/* The stage: the 3D render with pins, labels on the scene when it is wide. */
.ct-stage { grid-area: stage; position: relative; container: stage / inline-size; }
.ct-scene { position: relative; aspect-ratio: 5 / 3; }
.ct-scene picture, .ct-scene img { display: block; width: 100%; height: 100%; }
.ct-scene img { object-fit: cover; }
@media (max-width: 980px) { .ct-scene { margin-inline: calc(var(--gutter) * -1); } }
.ct-pin {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-accent-2); color: var(--color-night);
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-night-deep) 60%, transparent);
  transition: scale var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out);
}
.ct-hero--day .ct-pin { background: var(--color-accent); color: var(--color-surface); box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-surface) 80%, transparent); }
.ct-leaders { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; overflow: visible; }
.ct-leader { stroke: color-mix(in oklch, var(--color-on-night) 50%, transparent); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; transition: stroke var(--dur-state) var(--ease-out); }
.ct-hero--day .ct-leader { stroke: color-mix(in oklch, var(--color-accent-ink) 55%, transparent); }
.ct-routes { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
@container stage (min-width: 520px) { .ct-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-route a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3);
  min-height: 58px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-night-line); border-radius: var(--radius-md);
  background: color-mix(in oklch, var(--color-night-2) 88%, transparent);
  color: var(--color-on-night); text-decoration: none;
  transition: border-color var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out);
}
.ct-route a:hover { border-color: var(--color-glow); background: var(--color-night-raise); color: var(--color-on-night); }
.ct-hero--day .ct-route a { border-color: var(--color-divider-strong); background: color-mix(in oklch, var(--color-surface) 92%, transparent); color: var(--color-text); }
.ct-hero--day .ct-route a:hover { border-color: var(--color-accent-ink); background: var(--color-surface); }
.ct-route-art { position: relative; width: 40px; height: 40px; }
.ct-route-art img { width: 40px; height: 40px; object-fit: contain; }
.ct-route-n { position: absolute; top: -6px; left: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent-2); color: var(--color-night); font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; line-height: 1; }
.ct-hero--day .ct-route-n { background: var(--color-accent); color: var(--color-surface); }
.ct-route-text { display: grid; gap: 1px; min-width: 0; }
.ct-route-name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; line-height: 1.2; color: var(--color-surface); }
.ct-route-fig { font-size: var(--text-xs); line-height: 1.35; color: var(--color-on-night-muted); }
.ct-hero--day .ct-route-name { color: var(--color-text); }
.ct-hero--day .ct-route-fig { color: var(--color-muted); }
.ct-route-go { width: 16px; height: 16px; color: var(--color-accent-2); }
.ct-hero--day .ct-route-go { color: var(--color-accent-ink); }
@container stage (min-width: 600px) {
  .ct-scene { margin-inline: 0; }
  .ct-leaders { display: block; }
  .ct-pin { width: 12px; height: 12px; font-size: 0; color: transparent; box-shadow: 0 0 0 4px color-mix(in oklch, var(--color-accent-2) 30%, transparent), 0 0 12px color-mix(in oklch, var(--color-glow) 55%, transparent); }
  .ct-hero--day .ct-pin { box-shadow: 0 0 0 4px color-mix(in oklch, var(--color-accent) 25%, transparent); }
  .ct-routes { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
  .ct-route { position: absolute; left: var(--lx); top: var(--ly); pointer-events: auto; max-width: 30%; }
  .ct-route a {
    grid-template-columns: minmax(0, 1fr); min-height: var(--target); gap: 0; padding: 7px var(--space-4) 8px;
    border-radius: 12px; border-color: color-mix(in oklch, var(--color-on-night) 22%, transparent);
    background: color-mix(in oklch, var(--color-night-deep) 82%, transparent);
    box-shadow: 0 10px 24px -14px var(--color-night-deep);
  }
  .ct-hero--day .ct-route a { background: color-mix(in oklch, var(--color-surface) 90%, transparent); box-shadow: 0 10px 24px -16px color-mix(in oklch, var(--color-night) 50%, transparent); }
  .ct-route-art, .ct-route-go { display: none; }
  .ct-route-fig { font-size: 0.8125rem; white-space: nowrap; }
}
@container stage (min-width: 600px) and (max-width: 720px) { .ct-route-fig { font-size: 0.75rem; } .ct-route a { padding: 6px var(--space-3) 7px; } }
@media (prefers-reduced-motion: no-preference) {
  @container stage (min-width: 600px) {
    .ct-pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--color-glow); opacity: 0; animation: ct-ping 3.2s var(--ease-out) infinite; }
    .ct-hero--day .ct-pin::after { border-color: var(--color-accent); }
  }
  .ct-scene img { animation: ct-rise 900ms var(--ease-out) both; }
}
@keyframes ct-ping { 0% { scale: 0.6; opacity: 0.8; } 70%, 100% { scale: 2.4; opacity: 0; } }
@keyframes ct-rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 981px) {
  .ct-hero { padding-block: var(--space-8) var(--space-14, var(--space-12)); }
  .ct-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; grid-template-areas: "head stage" "more stage" "more ai"; column-gap: var(--space-10); row-gap: var(--space-6); align-items: start; }
  .ct-stage { margin-right: calc(var(--space-6) * -1); }
  .ct-hero-ai { justify-self: center; }
}

/* ── On this page: sticky pills ─────────────────────────────────────────── */
.ct-pills { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--color-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-divider); }
.ct-pills ul { display: flex; gap: var(--space-2); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-block: var(--space-2); }
.ct-pills ul::-webkit-scrollbar { display: none; }
.ct-pills a { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 var(--space-4); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-2); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out); }
.ct-pills a:hover { background: var(--color-accent-100); color: var(--color-accent-ink); }
.ct-pills a[aria-current="true"] { background: var(--color-night); color: var(--color-on-night); }

/* ── Chargers: the finder and the wall ──────────────────────────────────── */
.ct-finder { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); padding: var(--space-5); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); }
.ct-finder-h { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-heading); font-weight: 800; color: var(--color-text); }
.ct-finder-h .i { width: 18px; height: 18px; color: var(--color-accent); }
.ct-finder-group { border: 0; display: grid; gap: var(--space-2); min-width: 0; }
.ct-finder-group legend { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-2); }
.ct-musts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ct-must { position: relative; }
.ct-must input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ct-must > span { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target); padding: 0 var(--space-2) 0 var(--space-4); border: 1px solid var(--color-divider-strong); border-radius: var(--radius-pill); background: var(--color-surface); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-2); transition: background-color var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out); }
.ct-must:hover > span { border-color: var(--color-accent-ink); }
.ct-must input:checked + span { background: var(--color-night); border-color: var(--color-night); color: var(--color-on-night); }
.ct-must input:checked + span .ct-count { background: color-mix(in oklch, var(--color-accent-2) 22%, transparent); color: var(--color-accent-2); }
.ct-must input:focus-visible + span { outline: 2px solid var(--color-accent-ink); outline-offset: 3px; }
.ct-must input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.ct-dock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-divider); }
.ct-dock p { font-size: var(--text-sm); color: var(--color-text-2); }
.ct-dock strong { font-family: var(--font-figure); font-size: 1.25rem; color: var(--color-accent-ink); }

.ct-wall { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.ct-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); align-items: start;
  padding: var(--space-4); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface);
  transition: border-color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out), opacity var(--dur-state) var(--ease-out);
}
.ct-card:hover { border-color: var(--color-accent-300); box-shadow: var(--shadow-md); }
.ct-card-plate { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--plate); overflow: hidden; }
.ct-card-plate img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 10px 8px color-mix(in oklch, var(--color-night) 20%, transparent)); transition: translate var(--dur-state) var(--ease-out); }
.ct-card:hover .ct-card-plate img { translate: 0 -3px; }
.ct-card-body { display: grid; gap: var(--space-2); min-width: 0; }
.ct-card-brand { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.ct-card-name { font-size: 1.0625rem; line-height: 1.25; }
.ct-card-name a { color: var(--color-text); text-decoration: none; }
.ct-card-name a:hover { color: var(--color-accent-ink); text-decoration: underline; }
.ct-card-name a::after { content: " \2192"; color: var(--color-accent); }
.ct-lines { list-style: none; display: grid; gap: var(--space-2); }
.ct-line { display: grid; gap: 4px; justify-items: start; }
.ct-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 6px; font-size: var(--text-xs); font-weight: 700; line-height: 1.3; }
.ct-line--yes .ct-tag { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.ct-line--acc .ct-tag { background: var(--color-sun-100); color: var(--color-sun-800); }
.ct-line--unk .ct-tag { background: var(--color-surface-2); color: var(--color-text-2); }
.ct-line--no .ct-tag { background: var(--color-rose-100); color: var(--color-rose-700); }
.ct-line-text { font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-2); }
.ct-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 4px var(--space-3); }
.ct-chips li { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.ct-chips .i { width: 14px; height: 14px; color: var(--color-accent); }
.ct-quote { margin-top: var(--space-1); border-top: 1px dashed var(--color-divider); }
.ct-quote > summary { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--target); list-style: none; cursor: pointer; font-size: var(--text-sm); font-weight: 700; color: var(--color-accent-ink); }
.ct-quote > summary::-webkit-details-marker { display: none; }
.ct-quote > summary .i, .ct-more > summary .i, .ct-notlisted > summary .i, .ct-doclist > summary .i { width: 16px; height: 16px; transition: rotate var(--dur-state) var(--ease-out); }
.ct-quote[open] > summary .i, .ct-more[open] > summary .i, .ct-notlisted[open] > summary .i, .ct-doclist[open] > summary .i { rotate: 180deg; }
.ct-quote blockquote { margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); border-left: 3px solid var(--color-accent-300); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--color-bg); }
.ct-quote blockquote p { font-family: var(--font-reading, inherit); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); }
.ct-quote footer { display: flex; flex-wrap: wrap; gap: 2px var(--space-2); margin-top: var(--space-1); font-size: var(--text-xs); color: var(--color-muted); }
.ct-quote footer a { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; font-weight: 600; }
/* Chargers that miss a ticked must-have fold away, in A to Z order. */
.ct-card[data-miss] { display: none; }
.ct-wall.is-showing-misses .ct-card[data-miss] { display: grid; opacity: 0.62; border-style: dashed; }
.ct-wall.is-showing-misses .ct-card[data-miss]:hover { opacity: 1; }
.ct-misses { margin-top: var(--space-4); }
@media (prefers-reduced-motion: no-preference) {
  .ct-card.is-in { animation: ct-in 360ms var(--ease-out) both; }
}
@keyframes ct-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 768px) {
  .ct-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .ct-card { grid-template-columns: 120px minmax(0, 1fr); padding: var(--space-5); }
}
@media (min-width: 1200px) { .ct-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ct-card { grid-template-columns: 100px minmax(0, 1fr); } }

.ct-notlisted { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--color-divider); }
.ct-notlisted > summary, .ct-doclist > summary { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target); list-style: none; cursor: pointer; font-weight: 700; color: var(--color-text); }
.ct-notlisted > summary::-webkit-details-marker, .ct-doclist > summary::-webkit-details-marker, .ct-more > summary::-webkit-details-marker { display: none; }
.ct-notlisted ul { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.ct-notlisted li { display: grid; gap: 2px; font-size: var(--text-sm); }
.ct-notlisted li a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; }
.ct-notlisted li span { color: var(--color-muted); }
@media (min-width: 768px) { .ct-notlisted ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); } }

/* ── How it works ───────────────────────────────────────────────────────── */
.ct-how-grid { display: grid; gap: var(--space-8); align-items: center; }
.ct-how-copy { display: grid; gap: var(--space-3); align-content: start; }
.ct-steps { list-style: none; display: grid; gap: var(--space-5); margin-top: var(--space-4); }
.ct-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); }
.ct-step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent-100); color: var(--color-accent-ink); font-family: var(--font-heading); font-weight: 800; }
.night .ct-step-n { background: color-mix(in oklch, var(--color-accent-2) 18%, transparent); color: var(--color-accent-2); }
.ct-steps h3 { font-size: 1.0625rem; margin-bottom: 2px; }
.night .ct-steps h3 { color: var(--color-surface); }
.ct-steps p { color: var(--color-text-2); line-height: 1.55; max-width: 62ch; }
.night .ct-steps p { color: var(--color-on-night); }
.ct-how-art { min-width: 0; }
@media (min-width: 981px) { .ct-how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-12); } .ct-how-grid--solo { grid-template-columns: minmax(0, 1fr); } }
.ct-day-wrap { margin-top: var(--space-10); }
.ct-days-h { margin-bottom: var(--space-4); }
.ct-days { display: grid; gap: var(--space-6); }
.ct-day { display: grid; gap: var(--space-2); margin: 0; padding: var(--space-4); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); }
.ct-day figcaption { display: grid; gap: 2px; }
.ct-days .ct-key { grid-column: 1 / -1; }
@media (min-width: 768px) { .ct-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sd { width: 100%; height: auto; }
.sd-grid { stroke: var(--color-divider); stroke-width: 1; }
.sd-y, .sd-x, .sd-unit { font-family: var(--font-body); font-size: 11px; fill: var(--color-muted); }
.sd-y, .sd-unit { text-anchor: end; }
.sd-x { text-anchor: middle; }
.sd-bar { fill: var(--color-accent-200); }
.sd-bar.is-on { fill: var(--color-accent-2); }
.sd-top { fill: color-mix(in oklch, var(--color-rose-500) 45%, transparent); }
.sd-min { stroke: var(--color-accent-ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
.sd-min-t { font-family: var(--font-body); font-size: 11px; font-weight: 700; fill: var(--color-accent-ink); text-anchor: end; }
.sd-zero { stroke: var(--color-text-2); stroke-width: 1; }

/* ── Explainer graphics ─────────────────────────────────────────────────── */
.g-fig { margin: 0; display: grid; gap: var(--space-3); }
.g-fig svg { width: 100%; height: auto; overflow: hidden; }
.g-fig figcaption { font-size: var(--text-sm); line-height: 1.55; color: var(--color-muted); max-width: 64ch; }
.night .g-fig figcaption { color: var(--color-on-night-muted); }
.g-label { font-family: var(--font-body); font-size: 14px; font-weight: 600; fill: var(--color-text-2); }
.night .g-label { fill: var(--color-on-night); }
.g-l-mid { text-anchor: middle; }
.g-l-start { text-anchor: start; }
.g-l-strong { font-weight: 800; font-family: var(--font-heading); }
.g-roof { fill: var(--color-accent); }
.g-wall { fill: var(--color-accent-100); stroke: var(--color-accent-300); }
.g-door { fill: var(--color-accent-700); }
.g-win { fill: var(--color-surface); stroke: var(--color-accent-300); }
.night .g-roof { fill: var(--color-accent-700); }
.night .g-wall { fill: var(--color-night-raise); stroke: var(--color-night-line); }
.night .g-win { fill: color-mix(in oklch, var(--color-sun-300) 70%, transparent); stroke: none; }
.g-unit, .g-unit-lg { fill: var(--color-accent); }
.g-led { fill: var(--color-glow); }
.g-holster, .g-socket { fill: var(--color-night); }
.g-body { fill: var(--color-surface); stroke: var(--color-divider-strong); }
.night .g-body { fill: var(--color-on-night); stroke: none; }
.g-wheel { fill: var(--color-night); }
.g-port { fill: var(--color-accent-2); }
.g-flow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 3 9; }
.g-flow-sun { stroke: var(--color-sun-400); }
.g-flow-car, .g-flow-in, .g-flow-ph, .g-flow-sig { stroke: var(--color-accent-2); }
.night .g-flow-car, .night .g-flow-in, .night .g-flow-ph, .night .g-flow-sig { stroke: var(--color-glow); }
.g-flow-grid { stroke: var(--color-rose-500); opacity: 0; transition: opacity var(--dur-state) var(--ease-out); }
.g-flow-out { stroke: var(--color-accent-2); }
.g-d12 { animation-duration: 1.2s; } .g-d13 { animation-duration: 1.35s; } .g-d14 { animation-duration: 1.4s; } .g-d15 { animation-duration: 1.5s; } .g-d16 { animation-duration: 1.6s; }
.g-sun-disc { fill: var(--color-sun-300); }
.g-ray { stroke: var(--color-sun-400); stroke-width: 3; stroke-linecap: round; }
.g-cloud ellipse { fill: var(--color-surface); stroke: var(--color-divider-strong); }
.g-cloud { transform: translate(-80px, 64px); }
.g-panel { fill: var(--color-night); stroke: var(--color-accent-300); stroke-width: 1.5; stroke-linejoin: round; }
.g-panel-line { stroke: var(--color-accent-300); stroke-width: 1; }
.g-meter rect { fill: var(--color-surface); stroke: var(--color-divider-strong); }
.g-meter-t { font: 700 10px var(--font-body); fill: var(--color-muted); text-anchor: middle; }
.g-clamp { fill: none; stroke: var(--color-accent-2); stroke-width: 4; }
.g-pylon path, .g-mast path { fill: none; stroke: var(--color-text-2); stroke-width: 3; stroke-linecap: round; }
.night .g-pylon path, .night .g-mast path { stroke: var(--color-on-night-muted); }
.g-badge rect { fill: var(--color-night); }
.g-badge text { font: 700 13px var(--font-body); fill: var(--color-on-night); text-anchor: middle; }
.g-badge-mixed rect { fill: var(--color-rose-700); }
.g-badge-mixed, .g-cap-mixed { display: none; }
.g-solar[data-mode="mixed"] .g-badge-mixed, .g-solar[data-mode="mixed"] .g-cap-mixed { display: inline; }
.g-solar[data-mode="mixed"] .g-badge-solar, .g-solar[data-mode="mixed"] .g-cap-solar { display: none; }
.g-solar[data-mode="mixed"] .g-flow-grid { opacity: 1; }
.g-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--color-surface-2); justify-self: start; }
.g-switch-btn { min-height: var(--target); padding: 0 var(--space-4); border: 0; border-radius: var(--radius-pill); background: transparent; font: 700 var(--text-sm) var(--font-body); color: var(--color-text-2); cursor: pointer; }
.g-switch-btn[aria-pressed="true"] { background: var(--color-night); color: var(--color-on-night); }
.g-switch-btn:focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: 2px; }
/* Ports (tethered) */
.g-wallbar { fill: var(--color-text-2); }
.night .g-wallbar { fill: var(--color-on-night-muted); }
.g-plan-car rect { fill: var(--color-surface); stroke: var(--color-divider-strong); stroke-width: 2; }
.night .g-plan-car rect { fill: var(--color-on-night); stroke: none; }
.g-plan-car .g-plan-glass { fill: var(--color-night-2); }
.g-portspot circle { fill: var(--color-accent-2); stroke: var(--color-night); stroke-width: 2; }
.g-drive { fill: color-mix(in oklch, var(--color-night-raise) 60%, transparent); stroke: var(--color-night-line); }
.g-ring { fill: none; stroke: color-mix(in oklch, var(--color-on-night) 14%, transparent); stroke-width: 1.5; stroke-dasharray: 3 5; transition: stroke var(--dur-state) var(--ease-out); }
.g-ring.is-reach { stroke: color-mix(in oklch, var(--color-glow) 35%, transparent); }
.g-ring.is-first { stroke: var(--color-glow); stroke-dasharray: none; stroke-width: 2.5; }
.g-ring-t { font: 700 12px var(--font-body); fill: var(--color-on-night-muted); }
.g-run { stroke: var(--color-accent-2); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 6; }
.g-plan-port { fill: var(--color-accent-2); }
.g-reach .g-plan-car rect { fill: var(--color-on-night); }
.g-reach .g-label { fill: var(--color-on-night-muted); }
.g-reach { width: 100%; height: auto; overflow: hidden; }
/* Socket (untethered) */
.g-socket-rim { fill: var(--color-night); }
.g-socket-face { fill: var(--color-night-raise); stroke: var(--color-accent-300); stroke-width: 2; }
.g-pin { fill: var(--color-night-deep); stroke: var(--color-accent-300); stroke-width: 2; }
.g-pin-t { font: 700 9px var(--font-body); fill: var(--color-on-night); text-anchor: middle; }
.g-lock { fill: var(--color-sun-400); }
.g-plug-body { fill: var(--color-text-2); }
.g-plug-cable { fill: none; stroke: var(--color-text-2); stroke-width: 14; stroke-linecap: round; }
.g-plug-notch { fill: var(--color-sun-300); }
/* Phases */
.g-cabinet { fill: var(--color-accent-700); }
.g-line { stroke: var(--color-divider-strong); stroke-width: 6; stroke-linecap: round; }
.night .g-line { stroke: var(--color-night-line); }
.g-gate { fill: var(--color-surface); stroke: var(--color-accent-ink); stroke-width: 2; }
.g-gate-t { font: 800 16px var(--font-heading); fill: var(--color-accent-ink); text-anchor: middle; }
.g-batt { fill: none; stroke: var(--color-text-2); stroke-width: 3; }
.night .g-batt { stroke: var(--color-on-night); }
.g-batt-fill { fill: var(--color-accent-2); }
.g-kw { font: 800 14px var(--font-heading); fill: var(--color-accent-ink); text-anchor: middle; }
.night .g-kw { fill: var(--color-accent-2); }
/* Smart clock */
.g-dial { fill: var(--color-surface); stroke: var(--color-divider-strong); stroke-width: 2; }
.g-tick { stroke: var(--color-muted); stroke-width: 1.5; }
.g-hour { font: 600 10px var(--font-body); fill: var(--color-muted); text-anchor: middle; }
.g-window { fill: none; stroke: var(--color-accent-2); stroke-width: 14; stroke-linecap: round; }
.g-slot { fill: none; stroke: var(--color-accent-2); stroke-width: 14; stroke-linecap: round; opacity: 0.55; }
.g-cloudsrv ellipse { fill: var(--color-surface); stroke: var(--color-divider-strong); }
.g-cloud-t { font: 800 14px var(--font-heading); fill: var(--color-accent-ink); text-anchor: middle; }
/* Connectivity */
.g-wifi { fill: none; stroke: var(--color-accent-500); stroke-width: 3; }
.g-wifi-1 { opacity: 0.6; } .g-wifi-2 { opacity: 0.3; } .g-wifi-3 { opacity: 0.1; }
.g-4g { fill: none; stroke: var(--color-accent-2); stroke-width: 3; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  .g-flow { animation-name: g-dash; animation-timing-function: linear; animation-iteration-count: infinite; }
  .g-flow-out { animation-direction: reverse; }
  .g-cloud { animation: g-cloud 9s ease-in-out infinite; }
  .g-solar[data-mode="solar"] .g-flow-car { animation-name: g-dash, g-pause; animation-duration: 1.6s, 9s; animation-iteration-count: infinite, infinite; animation-timing-function: linear, ease-in-out; }
  .g-slot { animation: g-blink 3s ease-in-out infinite; }
  .g-slot-2 { animation-delay: 1.5s; }
  .g-4g { animation: g-blink 2.4s ease-in-out infinite; }
  .g-4g-1 { animation-delay: 0.3s; } .g-4g-2 { animation-delay: 0.6s; } .g-4g-3 { animation-delay: 0.9s; } .g-4g-4 { animation-delay: 1.2s; }
  .g-plug { animation: g-plug 6s var(--ease-out) infinite; }
  .g-lock { animation: g-lock 6s var(--ease-out) infinite; }
  .g-portspot circle { animation: g-blink 4s ease-in-out infinite; }
  .g-portspot-1 circle { animation-delay: 1s; } .g-portspot-2 circle { animation-delay: 2s; } .g-portspot-3 circle { animation-delay: 3s; }
}
@keyframes g-dash { to { stroke-dashoffset: -100; } }
@keyframes g-cloud { 0%, 100% { transform: translate(-80px, 64px); } 45%, 60% { transform: translate(250px, 64px); } }
@keyframes g-pause { 0%, 40%, 70%, 100% { opacity: 1; } 48%, 62% { opacity: 0.08; } }
@keyframes g-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes g-plug { 0%, 15% { transform: translate(470px, 150px); } 45%, 80% { transform: translate(340px, 150px); } 100% { transform: translate(470px, 150px); } }
@keyframes g-lock { 0%, 45% { transform: translateY(0); } 55%, 80% { transform: translateY(14px); } 90%, 100% { transform: translateY(0); } }

/* ── Tools ──────────────────────────────────────────────────────────────── */
.ct-range-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.ct-range-row label { font-size: var(--text-sm); font-weight: 600; }
.ct-range-row output { font-family: var(--font-figure); font-weight: 800; color: var(--color-accent-ink); font-variant-numeric: tabular-nums; }
.night .ct-range-row output { color: var(--color-accent-2); }
.night .field > label, .night .ct-range-row label, .night .field-help { color: var(--color-on-night); }
.night .field-help { color: var(--color-on-night-muted); }
.ct-seg-field { border: 0; display: grid; gap: var(--space-2); min-width: 0; }
.ct-seg-field legend { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.night .ct-seg-field legend { color: var(--color-on-night); }
.ct-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--color-surface-2); }
.night .ct-seg { background: var(--color-night-raise); }
.ct-seg label { position: relative; }
.ct-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ct-seg span { display: grid; place-items: center; min-height: var(--target); padding: 0 var(--space-2); border-radius: 9px; font-size: var(--text-sm); font-weight: 700; text-align: center; color: var(--color-text-2); }
.night .ct-seg span { color: var(--color-on-night); }
.ct-seg input:checked + span { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
.night .ct-seg input:checked + span { background: var(--color-accent-2); color: var(--color-night); }
.ct-seg input:focus-visible + span { outline: 2px solid var(--color-accent-ink); outline-offset: 2px; }
.night .ct-seg input:focus-visible + span { outline-color: var(--color-glow); }
.ct-more { border-top: 1px solid var(--color-divider); }
.night .ct-more { border-color: var(--color-night-line); }
.ct-more > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; list-style: none; cursor: pointer; font-weight: 700; }
.night .ct-more > summary { color: var(--color-surface); }
.ct-more-body { display: grid; gap: var(--space-3); padding-bottom: var(--space-4); font-size: var(--text-sm); line-height: 1.6; }
.night .ct-more-body { color: var(--color-on-night); }
.ct-key { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-xs); color: var(--color-muted); }
.night .ct-key { color: var(--color-on-night-muted); }
.ct-key span { display: inline-flex; align-items: center; gap: 6px; }
.ct-key i { display: inline-block; width: 18px; height: 8px; border-radius: 2px; }
.ct-key .k-car { background: var(--color-accent-2); }
.ct-key .k-export { background: var(--color-accent-200); box-shadow: inset 0 0 0 1px var(--color-accent-300); }
.ct-key .k-grid { background: color-mix(in oklch, var(--color-rose-500) 60%, transparent); }
.ct-key .k-need { height: 0; border-top: 2px dashed currentColor; }

/* Solar calculator */
.ct-sun { display: grid; gap: var(--space-6); padding: var(--space-5); border: 1px solid var(--color-night-line); border-radius: var(--radius-xl); background: color-mix(in oklch, var(--color-night-deep) 55%, transparent); }
.ct-sun-form { display: grid; gap: var(--space-5); align-content: start; }
.ct-sun-out { display: grid; gap: var(--space-5); min-width: 0; }
.ct-sun-result { display: grid; gap: var(--space-2); }
.ct-sun-result .stat-label { color: var(--color-on-night-muted); }
.ct-sun-result .reading { color: var(--color-accent-2); }
.ct-sun-sentence { color: var(--color-on-night); line-height: 1.55; max-width: 60ch; }
.ct-sun-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-night-line); }
.ct-sun-readings > div { display: grid; gap: 2px; padding: var(--space-3) var(--space-3) 0 0; }
.ct-sun-readings > div + div { padding-left: var(--space-3); border-left: 1px solid var(--color-night-line); }
.ct-sun-readings dt { font-size: var(--text-xs); color: var(--color-on-night-muted); }
.ct-sun-readings dd { font-family: var(--font-figure); font-weight: 800; color: var(--color-surface); }
.ct-sun-chart { margin: 0; display: grid; gap: var(--space-3); }
.ct-sun-chart .sb { width: 100%; height: auto; }
.sb-grid-line { stroke: var(--color-night-line); stroke-width: 1; }
.sb-y, .sb-m, .sb-ms, .sb-unit { font-family: var(--font-body); font-size: 12px; fill: var(--color-on-night-muted); }
.sb-y, .sb-unit { text-anchor: end; }
.sb-m, .sb-ms { text-anchor: middle; }
.sb-ms { display: none; }
.sb-car { fill: var(--color-accent-2); }
.sb-export { fill: color-mix(in oklch, var(--color-accent-200) 25%, transparent); stroke: var(--color-accent-300); stroke-width: 1; }
.sb-gridbar { fill: color-mix(in oklch, var(--color-rose-500) 70%, transparent); }
.sb-need { stroke: var(--color-surface); stroke-width: 2; stroke-dasharray: 4 3; }
.sb-zero { stroke: var(--color-on-night-muted); }
@media (max-width: 599px) { .sb-m { display: none; } .sb-ms { display: inline; } }
.ct-examples { display: grid; gap: var(--space-3); margin-top: var(--space-8); }
/* Tables keep their paper surface inside night bands, so their text stays ink. */
.night .table-wrap { border-color: var(--color-night-line); color: var(--color-text-2); }
.night .table-wrap th, .night .table-wrap td { color: var(--color-text-2); }
.night .table-wrap th[scope="row"] { color: var(--color-text); }
.night .table-wrap caption { color: var(--color-muted); }
.night .ct-examples .fine { color: var(--color-on-night-muted); }
@media (min-width: 981px) { .ct-sun { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--space-10); padding: var(--space-8); } }

/* Cable reach */
.ct-reach { display: grid; gap: var(--space-6); padding: var(--space-5); border: 1px solid var(--color-night-line); border-radius: var(--radius-xl); background: color-mix(in oklch, var(--color-night-deep) 55%, transparent); }
.ct-reach-form { display: grid; gap: var(--space-5); align-content: start; }
.ct-reach-plan { max-width: 420px; justify-self: center; width: 100%; }
.ct-reach-out { display: grid; gap: var(--space-3); align-content: start; }
.ct-reach-out .stat-label { color: var(--color-on-night-muted); }
.ct-reach-out .reading { color: var(--color-accent-2); }
.ct-reach-out .reading .unit { color: var(--color-on-night-muted); }
.ct-reach-list { list-style: none; display: grid; border-top: 1px solid var(--color-night-line); }
.ct-reach-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px var(--space-3); padding-block: 6px; border-bottom: 1px solid var(--color-night-line); }
.ct-reach-list a { display: inline-flex; align-items: center; min-height: 32px; color: var(--color-surface); font-weight: 600; }
.ct-reach-len { font-size: var(--text-xs); font-weight: 700; color: var(--color-accent-2); }
.ct-reach-list li[data-short] a { color: var(--color-on-night-muted); font-weight: 400; }
.ct-reach-list li[data-short] .ct-reach-len { color: var(--color-on-night-muted); font-weight: 600; }
.ct-reach-out .fine { color: var(--color-on-night-muted); }
@media (min-width: 981px) { .ct-reach { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); column-gap: var(--space-8); padding: var(--space-8); align-items: start; } }

/* Charging speed */
.ct-speed { display: grid; gap: var(--space-6); padding: var(--space-5); border: 1px solid var(--color-night-line); border-radius: var(--radius-xl); background: color-mix(in oklch, var(--color-night-deep) 55%, transparent); }
.ct-speed-out { display: grid; gap: var(--space-5); }
.ct-speed-row { display: grid; gap: var(--space-2); }
.ct-speed-title { font-family: var(--font-heading); font-weight: 800; color: var(--color-surface); }
.ct-speed-bar { width: 100%; height: 14px; }
.ct-bar-track { fill: var(--color-night-raise); }
.ct-bar-fill { fill: var(--color-accent-2); transition: width var(--dur-reveal) var(--ease-out); }
.ct-speed-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-speed-dl > div { display: grid; gap: 2px; }
.ct-speed-dl dt { font-size: var(--text-xs); color: var(--color-on-night-muted); }
.ct-speed-dl dd { font-family: var(--font-figure); font-weight: 800; color: var(--color-surface); }
.ct-speed-sum { color: var(--color-on-night); line-height: 1.55; max-width: 60ch; }
.ct-speed .fine { color: var(--color-on-night-muted); }
@media (min-width: 981px) { .ct-speed { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--space-10); padding: var(--space-8); } }

/* Matrices and the compare table */
/* A scrolling table must contain its absolutely positioned bits (the screen-reader "Yes" in each tick), or they widen the page. */
.table-wrap { position: relative; }
.ct-table th[scope="row"] { text-align: left; font-weight: 700; }
.ct-table th[scope="row"] a { display: inline-flex; align-items: center; min-height: 32px; }
.ct-table td { vertical-align: top; }
.ct-matrix .ct-table td, .ct-compare .ct-table td { font-size: var(--text-sm); }
.ct-cell-src { display: block; margin-top: 4px; font-size: var(--text-xs); color: var(--color-muted); }
.ct-cell-note { font-size: var(--text-xs); color: var(--color-muted); max-width: 40ch; }
.ct-word { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 6px; font-size: var(--text-xs); font-weight: 700; background: var(--color-surface-2); color: var(--color-text-2); white-space: nowrap; }
.ct-word--standard { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.ct-word--optional, .ct-word--model-only, .ct-word--subscription { background: var(--color-sun-100); color: var(--color-sun-800); }
.ct-lists th[scope="col"] { vertical-align: bottom; }
.ct-th-sup { display: block; font-size: var(--text-xs); color: var(--color-muted); }
.ct-th-t { display: inline-flex; align-items: center; min-height: 28px; font-weight: 800; }
.ct-th-rate { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--color-accent-ink); }
.ct-lists td { text-align: center; }
.ct-lists tfoot td { font-family: var(--font-figure); font-weight: 800; }
.ct-compare .ct-table th[scope="row"], .ct-matrix .ct-table th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--color-surface); box-shadow: 1px 0 0 var(--color-divider); min-width: 10rem; }
.ct-compare-more { margin-top: var(--space-4); }

/* Two-way */
.ct-ready { display: grid; gap: var(--space-8); }
.ct-need { list-style: none; display: grid; gap: var(--space-3); }
.ct-need-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); }
.ct-need-item.is-gap { border-color: var(--color-sun-300); background: var(--color-sun-100); }
.ct-need-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent-100); color: var(--color-accent-ink); font-family: var(--font-heading); font-weight: 800; }
.ct-need-item.is-gap .ct-need-n { background: var(--color-sun-200); color: var(--color-sun-800); }
.ct-need-h { font-size: 1rem; margin-bottom: 2px; }
.ct-need-item p { font-size: var(--text-sm); color: var(--color-text-2); }
.ct-board { list-style: none; display: grid; gap: var(--space-3); }
.ct-status { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-night); color: var(--color-on-night); }
.ct-status-tag { justify-self: start; display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 6px; background: var(--color-accent-2); color: var(--color-night); font-size: var(--text-xs); font-weight: 800; }
.ct-status--hardware-ready .ct-status-tag { background: var(--color-sun-300); color: var(--color-sun-900); }
.ct-status--draft { background: var(--color-surface); color: var(--color-text-2); border: 1px dashed var(--color-divider-strong); }
.ct-status--draft .ct-status-tag { background: var(--color-surface-2); color: var(--color-text-2); }
.ct-status-name { font-size: 1.125rem; }
.ct-status-name a { color: var(--color-surface); }
.ct-status-conn { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--color-accent-2); }
.ct-status-q { margin: 0; padding-left: var(--space-3); border-left: 2px solid var(--color-night-line); font-size: var(--text-sm); color: var(--color-on-night-muted); }
.ct-status-q cite { display: block; font-style: normal; font-size: var(--text-xs); }
@media (min-width: 768px) { .ct-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .ct-ready { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-10); align-items: start; } }

/* ── Installing ─────────────────────────────────────────────────────────── */
.ct-install-grid { display: grid; gap: var(--space-8); }
.ct-install-copy { display: grid; gap: var(--space-4); align-content: start; }
.ct-install-list { list-style: none; display: grid; gap: var(--space-5); }
.ct-install-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); }
.ct-install-i { width: 24px; height: 24px; margin-top: 2px; color: var(--color-glow); }
.ct-install-list h3 { font-size: 1.0625rem; color: var(--color-surface); margin-bottom: 2px; }
.ct-install-list p { color: var(--color-on-night); line-height: 1.55; max-width: 62ch; }
.ct-grant { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-2); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--color-night-raise); color: var(--color-on-night); font-size: var(--text-sm); line-height: 1.55; max-width: 64ch; }
.ct-grant .i { color: var(--color-glow); margin-top: 3px; }
.ct-grant a { color: var(--color-accent-2); }
.ct-install-side { display: grid; gap: var(--space-5); align-content: start; }
.ct-postcode { display: grid; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); }
.ct-postcode label { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 800; }
.ct-postcode-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.ct-postcode .fine { color: var(--color-muted); }
.ct-postcode .fine a { color: var(--color-accent-ink); }
.ct-grant a .i, .ct-quote footer a .i, .ct-doclist a .i { display: inline-block; flex-shrink: 0; vertical-align: -2px; margin-left: 2px; }
.ct-grant a { white-space: nowrap; }
@media (min-width: 600px) { .ct-postcode-row { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 981px) { .ct-install-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-12); } }

/* ── Questions and terms ────────────────────────────────────────────────── */
.ct-qa { display: grid; }
.ct-qa-item { display: grid; gap: var(--space-2); align-content: start; padding-block: var(--space-5); border-top: 1px solid var(--color-divider); }
.ct-qa dt { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--color-text); }
.ct-qa dd p { color: var(--color-text-2); line-height: 1.6; max-width: 66ch; }
@media (min-width: 981px) { .ct-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); } }
.ct-terms-h { margin-top: var(--space-10); margin-bottom: var(--space-3); }
.ct-terms { display: grid; gap: var(--space-3); }
.ct-terms > div { display: grid; gap: 2px; }
.ct-terms dt { font-weight: 800; color: var(--color-text); }
.ct-terms dd { font-size: var(--text-sm); color: var(--color-text-2); max-width: 66ch; }
@media (min-width: 768px) { .ct-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-10); } }

/* ── Guides and other types ─────────────────────────────────────────────── */
.ct-guides-grid { display: grid; gap: var(--space-10); }
.ct-guide-list { list-style: none; display: grid; margin-top: var(--space-6); border-top: 1px solid var(--color-divider); }
.ct-guide-list li { border-bottom: 1px solid var(--color-divider); }
.ct-guide-list a { display: flex; align-items: center; min-height: 56px; padding-block: var(--space-2); font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--color-text); text-decoration: none; }
.ct-guide-list a:hover { color: var(--color-accent-ink); text-decoration: underline; }
.ct-types-h { margin-bottom: var(--space-4); }
.ct-typelinks { list-style: none; display: grid; gap: var(--space-2); }
.ct-typelink { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); min-height: 52px; padding: 0 var(--space-4); border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); font-weight: 700; text-decoration: none; transition: border-color var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out); }
.ct-typelink .i { width: 20px; height: 20px; color: var(--color-accent); }
.ct-typelink:hover { border-color: var(--color-accent-ink); background: var(--color-accent-100); color: var(--color-accent-ink); }
.ct-all { margin-top: var(--space-3); }
@media (min-width: 981px) { .ct-guides-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-12); } }

/* ── Sources ────────────────────────────────────────────────────────────── */
.ct-sources { background: var(--color-bg); border-top: 1px solid var(--color-divider); }
.ct-sources-h { font-size: var(--text-h3); margin-bottom: var(--space-6); }
.ct-trust { list-style: none; display: grid; gap: var(--space-6); }
.ct-trust li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); }
.ct-trust-i { width: 24px; height: 24px; margin-top: 2px; color: var(--color-accent); }
.ct-trust h3 { font-size: 1.0625rem; margin-bottom: var(--space-1); }
.ct-trust p { font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.55; max-width: 70ch; }
@media (min-width: 981px) { .ct-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-10); } }
.ct-doclist { margin-block: var(--space-6) var(--space-3); border-top: 1px solid var(--color-divider); }
.ct-doclist ul { list-style: none; display: grid; gap: var(--space-3); padding-block: var(--space-3); }
.ct-doclist li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-4); font-size: var(--text-sm); }
.ct-doc-c { flex-basis: 100%; font-weight: 800; color: var(--color-text); }
.ct-doclist a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }

/* ── Brand positions ────────────────────────────────────────────────────── */
.ct-ad { margin-bottom: var(--space-6); }
.ct-ad-wrap .ct-ad { margin-block: var(--space-8); }
.ct-ad-frame { display: grid; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--color-divider-strong); border-radius: var(--radius-lg); background: var(--color-surface-2); }
.ct-ad-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.ct-ad-label { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--color-divider-strong); border-radius: 6px; background: var(--color-surface); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-2); }
.ct-ad-from { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 800; color: var(--color-text); }
.ct-ad-pkg { font-size: var(--text-xs); color: var(--color-muted); }
.ct-ad-example { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--color-sun-100); color: var(--color-sun-800); font-size: var(--text-xs); font-weight: 700; }
.ct-ad-body { display: grid; gap: var(--space-5); }
.ct-ad-plate { display: grid; place-items: center; aspect-ratio: 1; max-width: 160px; border-radius: var(--radius-md); background: var(--plate); }
.ct-ad-plate img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 16px 14px color-mix(in oklch, var(--color-night) 22%, transparent)); }
.ct-ad-panel { display: grid; gap: var(--space-2); align-content: start; }
.ct-ad-kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.ct-ad-headline { font-family: var(--font-heading); font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; color: var(--color-text); }
.ct-ad-line { color: var(--color-text-2); }
.ct-ad-facts { list-style: none; display: grid; gap: 6px; }
.ct-ad-facts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-2); }
.ct-ad-facts .i { margin-top: 3px; color: var(--color-accent-ink); }
.ct-ad-act { margin-top: var(--space-2); display: grid; gap: 6px; justify-items: start; }
.ct-ad-aff, .ct-ad-small { font-size: var(--text-xs); line-height: 1.45; color: var(--color-muted); }
@media (min-width: 768px) { .ct-ad-body { grid-template-columns: 160px minmax(0, 1fr); column-gap: var(--space-8); } }
.ct-slot { display: grid; gap: var(--space-4); padding: var(--space-5); border: 2px dashed var(--color-accent-ink); border-radius: var(--radius-lg); background: var(--color-accent-100); color: var(--color-text); }
.ct-slot-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; }
.ct-slot-price { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--color-night); color: var(--color-on-night); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; }
.ct-slot-facts { display: grid; gap: var(--space-2); }
.ct-slot-facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.ct-slot-facts dt { font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ct-slot-facts dd { font-size: var(--text-sm); color: var(--color-text-2); max-width: 74ch; }
@media (min-width: 768px) { .ct-slot-facts > div { grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-4); } }

/* ── The mockup's view switcher (not part of the design) ────────────────── */
.mk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: 6px var(--gutter); border-bottom: 1px solid var(--color-sun-300); background: var(--color-sun-100); color: var(--color-sun-800); font-size: var(--text-xs); }
.mk-title { font-weight: 800; }
.mk-bar nav { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); }
.mk-bar a { color: var(--color-sun-800); font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.mk-bar a[aria-current] { background: var(--color-sun-200); text-decoration: none; }
