/* AffiliateEngine base design system. Sites override the custom properties in their theme. Each block of light
   colours (here, the charts' below and the theme's, engine/build.mjs) also names :root.embed: embeds (layout 'embed',
   shown inside other sites' pages) keep them over the dark-mode colours, which name :root alone. */
/* Plus Jakarta Sans (SIL Open Font License 1.1, engine/assets/fonts/OFL.txt), served from our own domain */
@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/plus-jakarta-sans-latin.153fc85b70.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root, :root.embed {
  --accent: #0b6e4f;
  --accent-2: #0d9488;
  --hero-1: color-mix(in srgb, var(--accent) 75%, #000); --hero-2: var(--accent); --hero-3: color-mix(in srgb, var(--accent) 60%, #fff);
  --accent-ink: #ffffff;
  --accent-soft: #e3f3ec;
  --cta: #d9480f;
  --cta-ink: #ffffff;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f2f3f0;
  --text: #1c2321;
  --muted: #5b6662;
  --border: #dde1dc;
  --good: #1e7b34;
  --warn: #9a6100;
  --bad: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.07);
  /* illustration palette (.art-*, engine/lib/icons.mjs and each site's lib/art.mjs) */
  --art-ink: #2a323b; --art-key: #d8dee4; --art-glow: #f6b52e; --art-screen: #63d6aa; --art-cloud: #c3ccd5;
  --art-paper: #ffffff; --art-line: #c6ced6; --art-coin: #f3c552; --art-coin-edge: #c8962c; --art-good: #1f9d5b;
  --max: 1120px;
  --prose: 720px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --link: var(--accent);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615; --surface: #1a1f1e; --surface-2: #222827; --text: #e7ecea; --muted: #a2aeaa;
    --border: #313937; --accent-soft: #17332a; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
    --good: #5cc278; --warn: #e0a84a; --bad: #f07a6e; --link: #6fd3ad;
    --art-ink: #3a4550; --art-key: #5a6672; --art-cloud: #4c5763; --art-paper: #222a29; --art-line: #46524f;
  }
}
:root.embed { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); overflow-x: clip; word-spacing: .04em; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
[hidden] { display: none !important; } /* also over a class's own display (a .btn shown only once a script runs) */
.skip { position: absolute; left: -999px; }
.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; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--prose); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(16,24,40,.04); position: relative; z-index: 2; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 78%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, #000)); color: var(--accent-ink); display: grid; place-items: center; font-size: .95rem; box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 35%, transparent); }
.site-nav { display: flex; gap: 4px 6px; flex-wrap: wrap; font-size: .95rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 99px; }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--link); font-weight: 600; }
main { padding: 0 0 56px; }

/* Page head: the colour band behind every page's title (theme.hero gradient, white text, a wave at its foot), with an
   optional picture (layout.mjs page.art). The home page's band is taller, with a bigger title. */
.page-head { position: relative; isolation: isolate; color: #fff; padding: 6px 0 50px; margin-bottom: 12px; }
.page-head.is-home { padding: 18px 0 64px; margin-bottom: 8px; }
.page-head::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1.2px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(ellipse at 85% 20%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(100deg, var(--hero-1) 0%, var(--hero-2) 62%, var(--hero-3) 100%); }
.page-head::after { content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); bottom: -1px; height: 40px; background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C200 4 420 0 720 22s560 30 720 2V48H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C200 4 420 0 720 22s560 30 720 2V48H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.page-head.is-home::after { height: 48px; }
.page-head h1 { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.page-head.is-home h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.015em; word-spacing: .06em; }
.page-head .lede { color: rgba(255,255,255,.93); margin-bottom: .6em; }
.page-head.is-home .lede { font-size: 1.2rem; }
.page-head .updated { color: rgba(255,255,255,.85); margin-bottom: 0; }
.page-head a, .page-head .crumbs, .page-head .crumbs a { color: rgba(255,255,255,.88); }
.page-head .crumbs [aria-current] { color: #fff; }
.page-head.has-art { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 8px 32px; align-items: center; }
.page-head.has-art.is-home { grid-template-columns: minmax(0, 1fr) 320px; }
.page-head-art .art { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }
.page-head-art img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; border-radius: var(--radius); background: #fff; padding: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.page-head .art .art-soft { fill: rgba(255,255,255,.16); }
.page-head .art .art-dot { fill: rgba(255,255,255,.55); }
.page-head .art .art-ground { stroke: rgba(255,255,255,.45); }
.page-head .art .art-cable { stroke: #fff; }
.page-head .art .art-icon { color: #fff; }
.page-head .art .art-roof, .page-head .art .art-accent { fill: var(--hero-1); }
@media (max-width: 760px) {
  .page-head.has-art, .page-head.has-art.is-home { grid-template-columns: 1fr; }
  .page-head-art { display: none; }
  .page-head.is-home .page-head-art, .page-head-art:has(img) { display: block; max-width: 240px; margin: 4px auto 0; }
}

/* "How it works": three steps under the home band (page.steps) */
.steps { list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.step-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--hero-2), var(--hero-1)); box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 30%, transparent); }
.steps li:nth-child(2) .step-ico { background: linear-gradient(140deg, color-mix(in srgb, var(--accent-2) 80%, #fff), var(--accent-2)); box-shadow: 0 4px 10px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.steps li:nth-child(3) .step-ico { background: linear-gradient(140deg, #fbbf24, #f59e0b); box-shadow: 0 4px 10px rgba(245,158,11,.3); color: #422006; }
.step-ico .icon { width: 24px; height: 24px; }
.steps b { display: block; font-size: 1rem; }
.steps b::before { content: counter(step) ". "; color: var(--muted); font-weight: 600; }
.steps .step-text { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }

main h2:not(.tool h2, .card h2, .match h2)::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 10px; opacity: .85; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; }

/* Illustration palette */
.art .art-soft { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.art .art-dot { fill: color-mix(in srgb, var(--accent) 40%, transparent); }
.art .art-icon { color: var(--accent); }
.art .art-ink { fill: var(--art-ink); }
.art .art-handle { fill: none; stroke: var(--art-ink); stroke-width: 7; stroke-linecap: round; }
.art .art-screen { fill: var(--art-screen); }
.art .art-screen-ink { fill: var(--art-ink); }
.art .art-screen-ink.faint { opacity: .3; }
.art .art-glow { fill: var(--art-glow); }
.art .art-outlet, .art .art-key { fill: var(--art-key); }
.art .art-outlet-ink { stroke: var(--art-ink); stroke-width: 2.4; stroke-linecap: round; }
.art .art-cable { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.art .art-ground { fill: none; stroke: var(--border); stroke-width: 3; stroke-linecap: round; }
.art .art-house { fill: var(--art-paper); stroke: var(--art-line); stroke-width: 2; }
.art .art-roof, .art .art-accent { fill: var(--accent); }
.art .art-door { fill: color-mix(in srgb, var(--accent) 70%, var(--art-ink)); }
.art .art-frame { fill: none; stroke: var(--art-paper); stroke-width: 3; }
.art .art-cloud { fill: var(--art-cloud); }
.art .art-rain { fill: none; stroke: var(--art-cloud); stroke-width: 3; stroke-linecap: round; }
.art .art-paper { fill: var(--art-paper); stroke: var(--art-line); stroke-width: 2; }
.art .art-lines { fill: none; stroke: var(--art-line); stroke-width: 6; stroke-linecap: round; }
.art .art-coin { fill: var(--art-coin); stroke: var(--art-coin-edge); stroke-width: 2; }
.art .art-trend { fill: none; stroke: var(--art-good); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.art .art-dollar { fill: none; stroke: var(--art-ink); stroke-width: 3; stroke-linecap: round; }
.art .art-good { fill: var(--art-good); }
.art .art-tick { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: var(--prose); }
.updated { font-size: .85rem; color: var(--muted); }

.page-head h1 { margin-top: .8em; }
.page-head .crumbs + h1 { margin-top: .45em; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: .9rem; color: var(--muted); padding: 32px 0 40px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--link); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; color: var(--text); }
.footer-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: .8rem; }
.footer-tagline { color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 12px; }
.site-footer .disclosure { font-size: .72rem; margin: 0; }

/* Buttons & calls to action */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, filter .12s ease; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-cta { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); box-shadow: 0 2px 8px color-mix(in srgb, var(--cta) 30%, transparent); }
.btn-cta:hover { filter: brightness(1.08); border-color: var(--cta); transform: translateY(-1px); box-shadow: 0 6px 14px color-mix(in srgb, var(--cta) 30%, transparent); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-cta:hover { transform: none; } }
.btn-sm { padding: 6px 10px; min-height: 36px; font-size: .9rem; }
.btn-block { width: 100%; }
.ext::after { content: "↗"; font-size: .8em; opacity: .8; }

/* Cards & grids */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link { transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.card-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 14px 28px rgba(16,24,40,.09); }
@media (prefers-reduced-motion: reduce) { .card-link, .card-link:hover { transition: none; transform: none; } }
.kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: var(--link); }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; max-width: var(--prose); }
.callout.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge.good { color: var(--good); }
.badge.warn { color: var(--warn); }
.badge.bad { color: var(--bad); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 12px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
table.sticky-first tbody th, table.sticky-first thead th:first-child { position: sticky; left: 0; z-index: 1; }
table.sticky-first tbody th { background: var(--surface); }
table.sticky-first thead th:first-child { background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); z-index: 2; }
.table-wrap caption { caption-side: bottom; padding: 8px 12px; text-align: left; font-size: .82rem; color: var(--muted); }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: " ↕"; opacity: .35; }
th[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
th[aria-sort="descending"]::after { content: " ↓"; opacity: 1; }
tr[hidden] { display: none; }
tbody tr:target, table.sticky-first tbody tr:target th { background: var(--accent-soft); }

/* Tools / forms */
.tool { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 18px 0; }
.tool-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label, .field .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
input[type="number"], input[type="text"], input[type="search"], select { font: inherit; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); min-height: 44px; width: 100%; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.inline-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; align-items: end; }
.result-big { font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; min-width: 120px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.stat b { display: block; font-size: 1.35rem; color: var(--link); font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; color: var(--muted); }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.pill-list button { font: inherit; font-size: .88rem; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; min-height: 36px; }
.pill-list button:hover { border-color: var(--accent); }
.pill-list button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Product rows (tool results) */
.match { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.match:last-child { border-bottom: 0; }
.match h3 { margin: 0; font-size: 1rem; }
.match .meta { font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .match { grid-template-columns: 1fr; } }

/* FAQ: tap-to-open questions (owner, 2026-11-04), each a small card with a plus that turns into a minus */
.faq-list { max-width: var(--prose); }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.faq > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: var(--link); background: var(--accent-soft); }
.faq[open] > summary::after { content: "−"; }
.faq > summary:hover h3 { color: var(--link); }
.faq h3 { margin: 0; font-size: 1rem; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
@media print { .faq > summary::after { display: none; } .faq p { padding: 0; } .faq { border: 0; box-shadow: none; } }

.sources { font-size: .82rem; color: var(--muted); }
.sources a { color: var(--muted); overflow-wrap: anywhere; }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.two-col { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.hero { padding: 28px 0 8px; }
.hero .lede { font-size: 1.2rem; }
.noscript { background: color-mix(in srgb, var(--warn) 14%, transparent); padding: 10px 14px; border-radius: 8px; }
textarea { font: .85rem/1.45 var(--mono); padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; resize: vertical; }

/* Printing: the page's own content on light paper, with the site's name and plain address (the header's brand and
   .print-host), the disclosure line, the dates and the footer's notes. Navigation, buttons (every call to action,
   including the A/B-tested ones), embed code boxes and anything marked .no-print stay off the paper; .print-only
   elements appear only there. (html:root outranks the theme's dark-mode colours, which come later.) */
.print-only { display: none; }
@media print {
  html:root { --bg: #fff; --surface: #fff; --surface-2: #f2f2f2; --text: #111; --muted: #444; --border: #bbb; --link: #111; --accent-soft: #fff; --shadow: none; color-scheme: light; }
  @page { margin: 10mm; }
  html { font-size: 12px; } /* rem-sized text (.small, .meta, .disclosure) shrinks with it */
  body { font-size: 9.5pt; line-height: 1.35; }
  .print-only { display: revert; }
  .skip, .site-nav, .crumbs, .footer-links, .btn, button, .no-print, .embed-box, .ae-table-view, .page-head-art, .footer-brand { display: none !important; }
  .page-head { display: block !important; padding: 0; margin: 0 0 8px; }
  .page-head::before, .page-head::after, main h2::before { display: none !important; }
  .page-head, .page-head h1, .page-head .lede, .page-head .updated { color: var(--text) !important; text-shadow: none; }
  .steps { display: none !important; }
  .tool { border-top-width: 1px; }
  .site-header, .site-footer { background: none; border: 0; padding: 0; }
  .site-header .wrap { padding: 0 0 4px; border-bottom: 1px solid var(--border); justify-content: space-between; }
  .brand-mark { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-host { font-weight: 600; }
  .wrap { max-width: none; padding: 0; }
  main { padding: 0; }
  .site-footer { font-size: 8pt; padding-top: 6px; }
  .site-footer p { margin: 0 0 2px; }
  h1 { font-size: 15pt; margin: 6px 0 4px; }
  .tool, .card, .callout { box-shadow: none; }
  .disclosure { margin-bottom: 6px; }
  a { text-decoration: none; }
}

/* Embeds (layout 'embed'): a page shown inside another site's iframe, so no page chrome: a plain surface, small
   margins, and a one-line disclosure with a Privacy link at the bottom */
body.embed { background: var(--surface); }
body.embed main { padding: 12px 14px 10px; }
body.embed h1 { font-size: 1.35rem; margin: 0 0 6px; }
.embed-foot { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 8px; margin: 12px 0 0; }
.embed-foot a { color: var(--muted); }

/* Charts (engine/assets/charts.js). Categorical slots validated with the dataviz
   validator against the site surfaces (#ffffff light, #1a1f1e dark): all checks pass;
   light slots 3-4 are under 3:1 contrast, so charts always ship direct labels or a table view. */
:root, :root.embed { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --chart-grid: #e1e0d9; --chart-base: #c3c2b7; --chart-muted: #6b6a65; }
@media (prefers-color-scheme: dark) {
  :root { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --chart-grid: #2c2c2a; --chart-base: #383835; --chart-muted: #a19f97; }
}
.ae-chart { margin: 12px 0 20px; }
.ae-plot { position: relative; }
.ae-plot svg { display: block; overflow: visible; }
.ae-grid { stroke: var(--chart-grid); stroke-width: 1; }
.ae-base { stroke: var(--chart-base); stroke-width: 1; }
.ae-tick { fill: var(--chart-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ae-axis-label { fill: var(--chart-muted); font-size: 12px; }
.ae-end-label { fill: var(--text); font-size: 12px; font-weight: 600; }
.ae-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ae-dot { stroke: var(--surface); stroke-width: 2; }
.ae-line.s1 { stroke: var(--series-1); } .ae-dot.s1 { fill: var(--series-1); }
.ae-line.s2 { stroke: var(--series-2); } .ae-dot.s2 { fill: var(--series-2); }
.ae-line.s3 { stroke: var(--series-3); } .ae-dot.s3 { fill: var(--series-3); }
.ae-line.s4 { stroke: var(--series-4); } .ae-dot.s4 { fill: var(--series-4); }
.ae-cross { stroke: var(--chart-base); stroke-width: 1; }
.ae-legend { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); }
.ae-legend li { display: flex; align-items: center; gap: 6px; }
.ae-key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; vertical-align: middle; }
.ae-key.s1 { background: var(--series-1); } .ae-key.s2 { background: var(--series-2); }
.ae-key.s3 { background: var(--series-3); } .ae-key.s4 { background: var(--series-4); }
.ae-tip { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); padding: 8px 10px; font-size: .85rem; pointer-events: none; min-width: 150px; z-index: 3; }
.ae-tip-head { color: var(--muted); margin-bottom: 4px; }
.ae-tip-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ae-tip-row strong { font-variant-numeric: tabular-nums; }
.ae-table-view summary { cursor: pointer; font-size: .88rem; color: var(--muted); }
.table-wrap .btn { white-space: nowrap; }

/* "At a glance" cards (big number, who, a bar), the fine print under them, and tap-to-open "more" sections (owner,
   2026-11-04: lead with visuals, no walls of text) */
.size-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 8px 0 10px; }
.size-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease; }
.size-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.size-n { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.size-price { font-size: 2rem; font-weight: 800; color: var(--link); line-height: 1.1; font-variant-numeric: tabular-nums; }
.size-price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.size-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 6px 0 4px; }
.size-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.size-who { font-weight: 700; line-height: 1.35; }
.size-names { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.size-go { margin-top: auto; padding-top: 8px; font-size: .85rem; font-weight: 600; color: var(--link); }
.size-go::after { content: " →"; }
@media (prefers-reduced-motion: reduce) { .size-card, .size-card:hover { transition: none; transform: none; } }
.fine-print { font-size: .78rem; line-height: 1.5; color: var(--muted); max-width: var(--prose); }
.more-facts { margin: 12px 0 22px; max-width: var(--prose); }
.more-facts > summary { cursor: pointer; font-weight: 600; color: var(--link); padding: 6px 0; }
.more-facts[open] > summary { margin-bottom: 8px; }
.sources-box { margin: 18px 0; }
.sources-box > summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--muted); }
.sources-box[open] > summary { margin-bottom: 6px; }
.steps li:nth-child(4) .step-ico { background: linear-gradient(140deg, #a78bfa, #7c3aed); box-shadow: 0 4px 10px rgba(124,58,237,.3); }

:root,:root.embed{--accent:#c2410c;--accent-soft:#fff1e7;--accent-2:#0d9488;--cta:#1d4ed8;--hero-1:#7c2d12;--hero-2:#c2410c;--hero-3:#f59e0b}
@media (prefers-color-scheme: dark){:root{--accent:#f97316;--accent-soft:#3b1f10;--accent-2:#2dd4bf;--cta:#3b6fe0;--link:#fb923c}}

/* Backup Power Check: the planner's form and results (engine/assets/base.css does the rest) */
.planner-form { display: grid; gap: 14px; }
.pl-group { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px 6px; margin: 0; }
.pl-group legend { font-weight: 700; padding: 0 6px; }
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 7.5rem; gap: 4px 12px; align-items: end; padding: 6px 0; border-top: 1px solid var(--border); }
.pl-group legend + .pl-row, .pl-group .pl-row:first-of-type { border-top: 0; }
.pl-row .check { align-items: flex-start; }
.pl-row .check input { margin-top: 4px; flex: none; }
.pl-row .hint, .pl-custom .hint, .planner .hint { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.pl-row .field, .pl-custom .field { margin-bottom: 0; font-size: .85rem; }
.pl-row .pl-cycle { align-self: center; grid-column: span 1; }
.field.sm input { width: 100%; }
.pl-options { max-width: 34rem; }
.planner-results { margin-top: 18px; }
.planner-results h3 { margin-top: 22px; }
.planner-results details { margin: 14px 0; }
.planner-results summary { cursor: pointer; font-weight: 600; }
.planner-results td .hint { display: block; }
a.src { font-size: .75rem; color: var(--muted); margin-left: 4px; }
@media (max-width: 640px) {
  .pl-row { grid-template-columns: 1fr 1fr; }
  .pl-row .check { grid-column: 1 / -1; }
  .result-big { font-size: 1.5rem; }
}
@media print {
  .planner-form, .btn-cta { display: none !important; }
}
.pl-more > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.pl-more[open] > summary { margin-bottom: 10px; }
.pl-more .pl-group + .pl-group { margin-top: 12px; }
/* how many / hours only for ticked appliances (browsers without :has show them all) */
.pl-row:not(:has(> .check input:checked)) > .field, .pl-row:not(:has(> .check input:checked)) > .pl-cycle { display: none; }
.pl-row:not(:has(> .check input:checked)) { padding: 2px 0; }
/* drawn appliance icons in the planner (engine/lib/icons.mjs) */
.pl-row .pl-ico { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.pl-group { background: var(--surface); }
.pl-group legend { color: var(--text); }
/* Colour in the results (2026-11-04): green when power stations can run the list, amber for "needs batteries" and
   "runs out sooner", grey for "no surge figure", red for "can't run it" */
.planner-results .result-big { padding: 12px 16px 12px 52px; border-radius: 12px; position: relative; font-size: 1.5rem; }
.planner-results .result-big::before { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: #fff; }
.planner-results .res-yes { background: color-mix(in srgb, var(--good) 11%, var(--surface)); }
.planner-results .res-yes::before { content: "✓"; background: var(--good); }
.planner-results .res-no { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
.planner-results .res-no::before { content: "!"; background: var(--bad); }
.planner-results details > summary::before, .res-batt::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.res-batt::before, .res-short > summary::before { background: var(--warn); }
.res-unknown > summary::before { background: var(--muted); }
.res-small > summary::before { background: var(--bad); }
.planner-results tbody tr:first-child th a { font-weight: 700; }
@media print { .planner-results .result-big { padding-left: 0; background: none; } .planner-results .result-big::before { display: none; } }
/* product photos (data/images.json): a small picture beside each model in the results tables */
.model-cell { display: inline-flex; align-items: center; gap: 10px; }
.thumb { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 2px; flex: none; }
@media print { .thumb { display: none; } }
/* Photo cards on appliance pages: three picks, each by one objective measure (lib/pages.mjs pickCards) */
.pick-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 14px 0 8px; }
.pick-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.pick-img { align-self: stretch; display: block; background: #fff; border-radius: 10px; }
.pick-img img { display: block; width: 100%; height: 150px; object-fit: contain; }
.pick-label { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #0f766e; padding: 3px 9px; border-radius: 99px; }
.pick-card:nth-child(2) .pick-label { background: var(--accent); }
.pick-card:nth-child(3) .pick-label { background: #1d4ed8; }
.pick-name { font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--text); text-decoration: none; }
.pick-name:hover { color: var(--link); text-decoration: underline; }
.pick-facts { font-size: .9rem; color: var(--muted); }
.pick-facts b { color: var(--text); font-size: 1.1rem; }
.pick-card .btn { margin-top: auto; }
@media print { .pick-img, .pick-card .btn { display: none; } }
.pick-labels { display: flex; flex-wrap: wrap; gap: 4px; }
/* Runtime bars on a model's page (lib/pages.mjs runChart): a bar up to 2 days, the figure at the end */
.run-chart { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 1px 2px rgba(16,24,40,.04); margin: 8px 0 16px; }
.run-row { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 3fr) 7.5rem; gap: 12px; align-items: center; }
.run-name { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.run-ico { color: var(--accent); width: 20px; height: 20px; }
.run-bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.run-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), color-mix(in srgb, var(--accent-2) 55%, var(--good))); }
.run-val { font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.run-row.no .run-val { color: var(--bad); font-weight: 600; }
.run-row.no .run-name { color: var(--muted); }
@media (max-width: 560px) { .run-row { grid-template-columns: 1fr 6.5rem; } .run-bar { grid-column: 1 / -1; grid-row: 2; } }

