/* StationVerdict — layout: left-aligned editorial column, calculator-first.
   Signature element: segmented "battery cell" bars that show runtime in hours. */
:root {
  --bg: #f3f5f4;
  --surface: #ffffff;
  --ink: #15232b;
  --muted: #56666b;
  --line: #d6dedc;
  --charge: #f2b01e;
  --charge-soft: #fbe7b3;
  --charge-ink: #7a5300;
  --good: #1d7f55;
  --warn: #b93c10;
  --focus: #1f6fd1;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f171b; --surface: #162127; --ink: #e7eeec; --muted: #94a5a8; --line: #2a3a40;
    --charge: #f5be3d; --charge-soft: #3b3014; --charge-ink: #f5be3d; --good: #4cc38a; --warn: #f7825c; --focus: #6aa8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f171b; --surface: #162127; --ink: #e7eeec; --muted: #94a5a8; --line: #2a3a40;
  --charge: #f5be3d; --charge-soft: #3b3014; --charge-ink: #f5be3d; --good: #4cc38a; --warn: #f7825c; --focus: #6aa8ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
}
img { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--charge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 750; font-stretch: 108%; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 18px; border: 2.5px solid var(--ink); border-radius: 4px; position: relative; display: inline-block; }
.brand-mark::before { content: ""; position: absolute; inset: 2px 9px 2px 2px; background: var(--charge); border-radius: 1px; }
.brand-mark::after { content: ""; position: absolute; right: -6px; top: 4px; width: 3px; height: 6px; background: var(--ink); border-radius: 0 2px 2px 0; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.nav a { text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--charge); }
.lang { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.lang select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }

/* Hero */
.hero { padding-block: 48px 28px; display: grid; gap: 14px; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Calculator */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.calc-controls { padding: 22px; border-right: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.calc-results { padding: 22px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.field-label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 0.88rem var(--font-body); border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.watts-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); max-width: 200px; }
.watts-input input { font: 700 1.4rem var(--font-display); font-variant-numeric: tabular-nums; width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 8px 12px; }
.watts-input span { display: grid; place-items: center; padding: 0 12px; font-weight: 700; color: var(--muted); border-left: 1px solid var(--line); }
.hint { font-size: 0.85rem; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { font: 600 0.88rem var(--font-body); border: 0; background: var(--bg); color: var(--ink); padding: 7px 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.results-head h2 { font-size: 1.3rem; }

.run-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.run-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 92px; gap: 14px; align-items: center; }
.run-name { min-width: 0; line-height: 1.25; }
.run-name a, .run-name strong { font-weight: 700; text-decoration: none; display: block; }
.run-name a:hover { text-decoration: underline; text-decoration-color: var(--charge); }
.run-name small { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.cell-bar { position: relative; height: 22px; border: 2px solid var(--ink); border-radius: 5px; padding: 2px; min-width: 0; }
.cell-bar::after { content: ""; position: absolute; right: -6px; top: 5px; width: 4px; height: 8px; background: var(--ink); border-radius: 0 2px 2px 0; }
.cell-fill { height: 100%; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--charge) 0 14px, transparent 14px 17px); transition: width 0.35s ease; }
.run-row.over .cell-bar { border-style: dashed; border-color: var(--warn); }
.run-row.over .cell-bar::after { background: var(--warn); }
.run-hours { font: 700 1.05rem var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.run-row.over .run-hours { color: var(--warn); font-size: 0.85rem; font-family: var(--font-body); }
.method { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* Sections */
.section { padding-block: 44px; display: grid; gap: 22px; }
.section-intro { display: grid; gap: 8px; max-width: 68ch; }
.section-intro p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; align-content: start; }
.pick .use { font-weight: 700; color: var(--charge-ink); font-size: 0.9rem; }
.pick .specs { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principles div { display: grid; gap: 6px; border-top: 3px solid var(--ink); padding-top: 12px; }
.principles p { color: var(--muted); font-size: 0.95rem; }

/* Review page */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 22px; }
.review-head { padding-block: 16px 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px; align-items: start; }
.review-head .lede { font-size: 1.12rem; color: var(--muted); margin-top: 14px; max-width: 58ch; }
.verdict { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.verdict-score { display: flex; align-items: baseline; gap: 8px; }
.verdict-score b { font: 800 2.6rem var(--font-display); font-stretch: 115%; line-height: 1; }
.verdict-score span { color: var(--muted); font-weight: 600; }
.verdict p { font-size: 0.95rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: 700 1rem var(--font-body); text-decoration: none; background: var(--charge); color: #1d1500; border: 0; border-radius: 8px; padding: 12px 18px; cursor: pointer; }
.btn:hover { filter: brightness(0.95); }
.small { font-size: 0.8rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.spec-table-wrap { overflow-x: auto; }
table.specs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.specs th, table.specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { font-weight: 600; color: var(--muted); width: 42%; }
.pros-cons ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.pros-cons li { padding-left: 26px; position: relative; }
.pros li::before { content: "+"; position: absolute; left: 4px; font-weight: 800; color: var(--good); }
.cons li::before { content: "–"; position: absolute; left: 6px; font-weight: 800; color: var(--warn); }
.prose { max-width: 68ch; display: grid; gap: 14px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; background: var(--surface); }
.site-foot .wrap { padding-block: 28px; display: grid; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; color: var(--ink); }

@media (max-width: 820px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-3, .principles, .two-col, .review-head { grid-template-columns: minmax(0, 1fr); }
  .run-row { grid-template-columns: minmax(0, 1fr) 84px; }
  .run-row .cell-bar { grid-column: 1 / -1; grid-row: 2; }
  .nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .cell-fill { transition: none; } }

/* Home hero band — dark in both themes so the amber cell glows */
:root { --band-bg: #15232b; --band-fg: #f1f5f3; --band-muted: #a9bac0; --band-line: #2e4048; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band-bg: #0a1114; --band-fg: #f1f5f3; --band-muted: #a9bac0; --band-line: #24343a; } }
:root[data-theme="dark"] { --band-bg: #0a1114; --band-fg: #f1f5f3; --band-muted: #a9bac0; --band-line: #24343a; }
.hero-band { background: var(--band-bg); color: var(--band-fg); border-bottom: 1px solid var(--band-line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero-copy { display: grid; gap: 20px; align-content: start; }
.hero-copy h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-stretch: 118%; line-height: 0.98; }
.hero-copy .lede { font-size: 1.15rem; color: var(--band-muted); max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--band-fg); border: 2px solid var(--band-line); }
.btn-ghost:hover { border-color: var(--band-fg); filter: none; }
.hero-facts { color: var(--band-muted); font-size: 0.9rem; }
.big-cell { margin: 0; display: grid; gap: 14px; }
.big-cell-device { font: 700 1.05rem var(--font-body); color: var(--band-muted); display: flex; gap: 10px; }
.big-cell-device span:first-child { color: var(--band-fg); }
.big-cell-body { position: relative; height: clamp(90px, 14vw, 130px); border: 4px solid var(--band-fg); border-radius: 14px; padding: 7px; margin-right: 16px; }
.big-cell-body::after { content: ""; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); width: 10px; height: 38%; background: var(--band-fg); border-radius: 0 5px 5px 0; }
.big-cell-fill { height: 100%; width: 0; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--charge) 0 calc(10% - 6px), transparent calc(10% - 6px) 10%); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.big-cell-readout { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.big-cell-readout b { font: 800 clamp(3rem, 8vw, 4.6rem) var(--font-display); font-stretch: 120%; line-height: 1; color: var(--charge); }
.big-cell-readout span { color: var(--band-muted); font-weight: 600; }
.hero-band + .wrap .calc { margin-top: 40px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 48px; } }
@media (prefers-reduced-motion: reduce) { .big-cell-fill { transition: none; } }

/* Data tables */
table.data thead th { color: var(--muted); font-size: 0.85rem; font-weight: 700; width: auto; white-space: nowrap; border-bottom: 2px solid var(--ink); }
table.data th[scope="row"] { width: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }
table.data td { white-space: nowrap; }
table.data tbody tr:hover { background: var(--charge-soft); }
table.compare thead th { white-space: normal; min-width: 130px; color: var(--ink); }
table.compare th[scope="row"] { color: var(--muted); }
code { font-size: 0.9em; background: var(--charge-soft); padding: 1px 5px; border-radius: 4px; }
.prose h2 { margin-top: 10px; }
