/* iterate compare · solar
   Built on the Iterate design system tokens (tokens.css, canonical copy from
   iterate-design/). Dark-first aubergine; light is a theme (data-theme="light").
   Components below touch semantic tokens only. */
@import url("tokens.css?v=202610181016");
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/Geist-Variable.woff2") format("woff2")}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/GeistMono-Variable.woff2") format("woff2")}

*, *::before, *::after { box-sizing:border-box; }
:root {
  color-scheme: dark;
  /* local aliases onto the design tokens, so the old vocabulary keeps working */
  --ground:var(--bg); --ink:var(--text); --line-soft:var(--line); --line-2x:var(--line-2);
  --accent-soft:rgba(230,161,92,.14); --seg-on:var(--on-accent);
  --good:var(--success); --crit:var(--danger);
  --shadow:0 1px 2px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.35);
  --r:16px; --r-sm:10px;
}
:root[data-theme="light"] { color-scheme:light; --accent-soft:rgba(230,161,92,.18); --shadow:0 1px 2px rgba(36,26,40,.08), 0 10px 28px rgba(36,26,40,.10); }

html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--text); font-family:var(--sans); font-size:15px; line-height:1.55; }
.wrap { max-width:1180px; margin:0 auto; padding:28px 22px 80px; }
h1,h2,h3 { font-family:var(--sans); font-weight:650; text-wrap:balance; margin:0; letter-spacing:-0.02em; }
h1 { font-size:clamp(28px,4.2vw,42px); line-height:1.08; }
h2 { font-size:21px; margin-top:34px; }
h3 { font-size:16.5px; margin-top:22px; }
p { margin:10px 0; }
a { color:var(--accent-text); }
a:hover { color:var(--accent); }
.mono { font-family:var(--mono); font-variant-numeric:tabular-nums; }
.eyebrow { font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.eyebrow a { color:var(--muted); text-decoration:none; } .eyebrow a:hover { color:var(--text); }

/* header */
.brand { display:flex; align-items:center; gap:11px; flex-wrap:wrap; }
.brand svg { width:30px; height:30px; flex:none; color:var(--accent); }
.brand .name { font-size:18px; font-weight:650; letter-spacing:-0.01em; }
.brand .name a { text-decoration:none; color:var(--text); }
.brand .rule { flex:1; height:1px; background:var(--line); min-width:20px; }
.brand .eyebrow { color:var(--muted); }
nav.top { display:flex; flex-wrap:wrap; gap:4px 16px; font-size:13.5px; margin-top:12px; }
nav.top a { text-decoration:none; color:var(--muted); padding:4px 0; border-bottom:2px solid transparent; }
nav.top a:hover, nav.top a[aria-current] { color:var(--text); border-bottom-color:var(--accent); }
header { display:flex; flex-direction:column; gap:12px; padding-bottom:20px; border-bottom:1px solid var(--line); }

.lede { max-width:68ch; color:var(--muted); font-size:16px; margin:0; }
.lede strong { color:var(--text); font-weight:600; }
.meta { display:flex; flex-wrap:wrap; gap:8px 20px; font-size:12.5px; color:var(--muted); }
.meta b { color:var(--text); font-weight:600; }

/* cards */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; margin-top:18px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:16px 18px; box-shadow:var(--shadow); text-decoration:none; display:flex; flex-direction:column; gap:4px; color:var(--text); transition:border-color .15s, transform .15s; }
a.card:hover { border-color:var(--accent); color:var(--text); transform:translateY(-1px); }
.card .k { font-weight:600; font-size:15px; }
.card .v { font-size:12.5px; color:var(--muted); }
.card .p { font-size:18px; font-weight:650; margin-top:4px; color:var(--accent-text); }
.callout { margin:18px 0 0; padding:12px 16px; border-left:3px solid var(--accent); background:var(--surface); border-radius:0 var(--r-sm) var(--r-sm) 0; font-size:14px; }
.callout b { color:var(--accent-text); }

/* controls */
.controls { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:24px 0 12px; position:sticky; top:0; z-index:5; background:var(--bg); padding:10px 0; border-bottom:1px solid var(--line); }
.controls input[type=search], .controls select, .field input, .field select, .controls .f input[type=number] { font:inherit; font-size:14px; padding:8px 11px; border:1px solid var(--line-2); border-radius:var(--r-sm); background:var(--surface); color:var(--text); }
.controls input:focus, .controls select:focus, .field input:focus, .field select:focus { outline:2px solid var(--focus, var(--accent)); outline-offset:1px; border-color:var(--accent); }
.controls input[type=search] { min-width:220px; }
.controls select { max-width:260px; }
.chk { display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--muted); border:1px solid var(--line-2); background:var(--surface); padding:7px 12px; border-radius:var(--r-sm); cursor:pointer; user-select:none; }
.chk input { accent-color:var(--accent); margin:0; }
.chk:has(input:checked) { color:var(--text); border-color:var(--accent); background:var(--accent-soft); }
.controls .f { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); }
.controls .f input[type=number] { width:88px; font-size:13.5px; padding:7px 9px; }
.count { margin-left:auto; font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.reset { font:inherit; font-size:13px; padding:7px 12px; border:1px solid var(--line-2); border-radius:var(--r-sm); background:var(--surface); color:var(--text); cursor:pointer; }
.reset:hover { border-color:var(--accent); }
.note { font-size:13px; color:var(--muted); max-width:72ch; margin:0 0 6px; line-height:1.55; }
.empty { padding:22px 16px; margin:0; font-size:14px; color:var(--muted); }

/* tables */
.tablewrap { overflow-x:auto; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); box-shadow:var(--shadow); }
table { width:100%; border-collapse:collapse; font-size:14px; min-width:760px; }
thead th { text-align:left; font-size:11px; letter-spacing:.11em; text-transform:uppercase; color:var(--muted); font-weight:600; padding:12px 13px; border-bottom:1px solid var(--line-2); background:var(--surface-2); white-space:nowrap; position:sticky; top:0; z-index:1; }
thead th.num { text-align:right; }
thead th.sortable { cursor:pointer; user-select:none; }
thead th.sortable:hover { color:var(--text); }
thead th.sortable.on { color:var(--accent-text); }
thead th.sortable.on::after { content:' ▲'; font-size:9px; opacity:.9; }
thead th.sortable.on[data-dir=desc]::after { content:' ▼'; }
tbody td { padding:11px 13px; border-bottom:1px solid var(--line); vertical-align:top; }
tbody tr:last-child td { border-bottom:0; }
tr.prod { cursor:pointer; }
tr.prod:hover td { background:var(--surface-2); }
tr.prod:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
tr.prod[aria-expanded=true] td { background:var(--surface-2); }
tr.prod .chev { display:inline-block; margin-left:6px; font-size:11px; color:var(--muted); transition:transform .15s; }
tr.prod[aria-expanded=true] .chev { transform:rotate(90deg); }
tbody tr.offers td { background:var(--surface-2); padding:6px 13px 12px 30px; }
.offers table { min-width:0; font-size:13px; }
.offers td { padding:6px 10px; border-bottom:1px solid var(--line); background:transparent; }
.offers tr:last-child td { border-bottom:0; }
.offers a { color:var(--text); text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
.offers a:hover { color:var(--accent); text-decoration-color:var(--accent); }
.num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.price { font-weight:650; font-size:15px; }
.sub { display:block; font-size:11.5px; color:var(--muted); font-weight:400; white-space:normal; }
.unit { color:var(--muted); font-size:12.5px; }
.dim { opacity:.45; }
.tag { display:inline-block; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; font-weight:600; padding:2px 7px; border-radius:6px; border:1px solid var(--line-2); color:var(--muted); white-space:nowrap; vertical-align:middle; }
.tag.good { color:var(--success); border-color:currentColor; }
.tag.warn { color:var(--warn); border-color:currentColor; }
.tag.crit { color:var(--danger); border-color:currentColor; }
.tag.os { color:var(--accent-text); border-color:var(--accent-text); background:var(--accent-soft); margin-left:6px; }
tbody.nzonly .p-all { display:none } tbody.nzonly .p-nz { display:inline }
tbody.nzonly tr.offers tr.osrow { display:none }

/* prose (guide, method, glossary) */
.prose { max-width:74ch; }
.prose h2 { margin-top:38px; padding-top:6px; } .prose h3 { margin-top:24px; }
.prose ul, .prose ol { padding-left:22px; } .prose li { margin:5px 0; }
.prose table { min-width:0; font-size:13.5px; display:block; overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-sm); }
.prose table th, .prose table td { padding:9px 11px; }
.prose code { font-family:var(--mono); font-size:.92em; background:var(--surface-2); padding:1px 5px; border-radius:4px; }
.prose blockquote { margin:14px 0; padding:10px 14px; border-left:3px solid var(--line-2); color:var(--muted); }
.prose strong { color:var(--text); }

/* builder */
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:18px 20px; box-shadow:var(--shadow); margin-top:16px; }
.fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px 16px; }
.field label { display:block; font-size:11.5px; color:var(--muted); font-weight:600; letter-spacing:.08em; text-transform:uppercase; margin-bottom:5px; }
.field input, .field select { width:100%; }
.field .hint { font-size:12px; color:var(--muted); margin-top:4px; }
button.primary { font:inherit; font-size:14px; font-weight:600; padding:10px 18px; border-radius:var(--r-sm); border:1px solid var(--accent); background:var(--accent); color:var(--on-accent); cursor:pointer; }
button.primary:hover { background:var(--accent-deep); border-color:var(--accent-deep); }
button.ghost { font:inherit; font-size:13px; padding:7px 12px; border-radius:var(--r-sm); border:1px solid var(--line-2); background:var(--surface); color:var(--text); cursor:pointer; }
button.ghost:hover { border-color:var(--accent); }
.seg { display:inline-flex; border:1px solid var(--line-2); border-radius:var(--r-sm); overflow:hidden; background:var(--surface); flex-wrap:wrap; }
.seg button { appearance:none; border:0; background:transparent; color:var(--muted); font:inherit; font-size:13px; padding:8px 14px; cursor:pointer; border-right:1px solid var(--line); }
.seg button:last-child { border-right:0; }
.seg button[aria-pressed="true"] { background:var(--primary); color:var(--paper); font-weight:600; }
.bom .line { display:grid; grid-template-columns:1fr auto; gap:6px 14px; padding:12px 0; border-bottom:1px solid var(--line); cursor:pointer; }
.bom .line:last-child { border-bottom:0; }
.bom .what { font-weight:600; } .bom .why { font-size:12.5px; color:var(--muted); }
.bom .pick { font-size:13.5px; margin-top:3px; } .bom .pick a { color:var(--text); text-decoration:underline; text-decoration-color:var(--line-2); text-underline-offset:3px; }
.bom .pick a:hover { color:var(--accent); }
.bom .alts { margin-top:6px; padding-left:10px; border-left:2px solid var(--line-2); }
.bom .total { display:flex; justify-content:space-between; font-size:18px; font-weight:650; padding-top:14px; }
.bom .price { color:var(--accent-text); }

footer { margin-top:56px; padding-top:18px; border-top:1px solid var(--line); font-size:12.5px; color:var(--muted); display:flex; flex-wrap:wrap; gap:8px 22px; }
footer a { color:var(--muted); }
footer a:hover { color:var(--accent); }

/* small screens */
@media (max-width:760px){
  .wrap { padding:20px 14px 60px; }
  .controls { position:static; }
  .controls input[type=search] { min-width:0; flex:1 1 100%; }
  .controls select { max-width:100%; flex:1 1 46%; }
  .count { flex-basis:100%; margin-left:0; text-align:right; }
  .note { max-width:none; }
  .bom .line { grid-template-columns:1fr; }
  #t th, #t td { padding:8px 5px; font-size:12px; }
  #t td:first-child { min-width:120px; word-break:normal; overflow-wrap:anywhere; }
  #t td:first-child b { font-size:12.5px; }
  #t .price { font-size:13px; white-space:normal; max-width:118px; }
  #t .price .tag { display:inline-block; margin:2px 0 0; }
  .paneltable { min-width:0; width:100%; }
  .paneltable td:first-child { width:auto; }
  .paneltable td:nth-child(3) { white-space:normal; }
  .paneltable th:nth-child(3), .paneltable td:nth-child(3),
  .paneltable th:nth-child(4), .paneltable td:nth-child(4),
  .paneltable th:nth-child(8), .paneltable td:nth-child(8),
  .paneltable th:nth-child(9), .paneltable td:nth-child(9) { display:none; }
  .paneltable tr.offers td { display:table-cell; }
  .prose table { font-size:12.5px; }
}
.paneltable td:nth-child(3){white-space:nowrap}
.paneltable td:nth-child(3) .sub{white-space:nowrap}
@media (max-width:760px){ .paneltable td:nth-child(3){white-space:normal} }
details.note { margin:6px 0 0; }
details.note summary { cursor:pointer; color:var(--accent-text); font-size:13px; list-style:none; }
details.note summary::before { content:'▸ '; font-size:11px; }
details.note[open] summary::before { content:'▾ '; }
details.note p { margin:8px 0 0; }
.small{font-size:12px;color:var(--muted)}
.prose{max-width:86ch}
.prose table{width:100%}
.prose table td{min-width:150px; vertical-align:top; line-height:1.5}
.prose table td:first-child{min-width:130px}
nav.subnav { display:flex; gap:2px; flex-wrap:wrap; margin:12px 0 0; padding:4px; background:var(--surface); border:1px solid var(--line); border-radius:10px; width:fit-content; max-width:100%; }
nav.subnav a { font-size:13px; padding:6px 11px; border-radius:7px; text-decoration:none; color:var(--muted); }
nav.subnav a:hover { color:var(--text); background:var(--surface-2); }
nav.subnav a[aria-current] { color:var(--seg-on, var(--bg)); background:var(--accent); font-weight:600; }
@media (max-width:760px){ nav.subnav { flex-wrap:nowrap; overflow-x:auto; width:auto; } nav.subnav a { white-space:nowrap; } }

/* category pages: paged rows, a per-row correction link, no sideways scroll on a phone */
.pager { display:flex; gap:10px; justify-content:center; margin:14px 0 0; }
.pager button { font:inherit; font-size:14px; padding:9px 16px; border-radius:var(--r-sm, 10px); border:1px solid var(--line-2); background:var(--surface); color:var(--text); cursor:pointer; }
.pager button:hover { border-color:var(--accent); }
.pager button.quiet { color:var(--muted); }
a.wrong { display:block; margin-top:2px; font-size:11px; color:var(--muted) !important; text-decoration:none !important; white-space:nowrap; }
a.wrong:hover { color:var(--accent-text) !important; text-decoration:underline !important; }
.sm-only { display:none !important; }
@media (max-width:760px){
  .cattable { min-width:0; }
  .cattable th.spec, .cattable td.spec { display:none; }
  .cattable .sm-only { display:block !important; }
  .cattable tr.offers td { padding:6px 6px 10px 10px; }
  .offers table td:nth-child(3) { display:none; }
}
@media (max-width:760px){
  #t .offers .price { white-space:nowrap; max-width:none; font-size:13px; }
  #t .offers td.small { font-size:11px; }
}
