:root {
  --bg: #ffffff; --fg: #1a1d21; --muted: #5c6570; --line: #e3e6ea;
  --accent: #0b6e4f; --accent-fg: #ffffff; --surface: #f6f7f9;
  --atl: #0b6e4f; --good: #1d7a3d; --typical: #6b7280; --elevated: #b45309; --new: #64748b;
  --link: #0b5ed7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a; --fg: #e8eaed; --muted: #9aa4af; --line: #2a2f35;
    --accent: #2fbf8f; --accent-fg: #0c1210; --surface: #1c2126;
    --atl: #2fbf8f; --good: #4ade80; --typical: #94a3b8; --elevated: #fbbf24; --new: #8b98a5;
    --link: #7ab8ff;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0.8em 0 0.4em; }
h2 { font-size: 1.2rem; margin: 1.6em 0 0.4em; }
.note { color: var(--muted); font-size: 0.9rem; margin: 0.2em 0 0.8em; }

.site-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  max-width: 1080px; margin: 0 auto;
}
.logo { font-weight: 700; color: var(--fg); font-size: 1.05rem; }
.site-header nav a { margin-left: 18px; color: var(--fg); font-size: 0.95rem; }
.site-footer {
  max-width: 1080px; margin: 24px auto 0; padding: 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.85rem;
}
.disclosure {
  max-width: 1080px; margin: 0 auto; padding: 6px 16px;
  font-size: 0.8rem; color: var(--muted); background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero p { max-width: 62ch; }

table.data { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
table.data th, table.data td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { position: sticky; top: 0; background: var(--surface); white-space: nowrap; }
table.data tbody tr:hover { background: var(--surface); }
.table-scroll { overflow-x: auto; }
table.sortable thead th { cursor: pointer; user-select: none; }
table.sortable thead th::after { content: " ↕"; color: var(--muted); font-size: 0.75em; }
table.sortable thead th.asc::after { content: " ↑"; color: var(--fg); }
table.sortable thead th.desc::after { content: " ↓"; color: var(--fg); }

.badge {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: 0.76rem; font-weight: 600; white-space: nowrap;
  color: var(--bg);
}
.badge.atl { background: var(--atl); }
.badge.good { background: var(--good); }
.badge.typical { background: var(--typical); }
.badge.elevated { background: var(--elevated); }
.badge.new { background: var(--new); }
.oos { color: var(--elevated); font-size: 0.78rem; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.filters fieldset {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 0;
  font-size: 0.85rem;
}
.filters legend { color: var(--muted); font-size: 0.78rem; padding: 0 4px; }
.filters label { margin-right: 10px; white-space: nowrap; }

.product-head { display: flex; flex-wrap: wrap; gap: 24px; margin: 12px 0; }
.price-block { flex: 1 1 300px; }
.current-price { font-size: 2.2rem; font-weight: 700; }
.deal-explain { max-width: 48ch; color: var(--muted); font-size: 0.92rem; }
.cta {
  display: inline-block; margin-top: 10px; padding: 10px 18px; border-radius: 8px;
  background: var(--accent); color: var(--accent-fg); font-weight: 600;
}
.cta:hover { text-decoration: none; filter: brightness(1.08); }
.spec-block { flex: 1 1 300px; border-collapse: collapse; font-size: 0.92rem; align-self: flex-start; }
.spec-block th, .spec-block td { text-align: left; padding: 5px 12px 5px 0; border-bottom: 1px solid var(--line); }
.spec-block th { color: var(--muted); font-weight: 500; }

.pricechart { width: 100%; height: auto; max-width: 720px; }
.pricechart .grid { stroke: var(--line); stroke-width: 1; }
.pricechart .line { stroke: var(--accent); stroke-width: 2; }
.pricechart .dot { fill: var(--accent); }
.pricechart .ylab, .pricechart .xlab { fill: var(--muted); font-size: 11px; }

.crumbs { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }
.cross-links { margin-top: 2em; }

.guide-list { padding-left: 1.1em; }
.guide-list li { margin: 0.6em 0; }
.guide { max-width: 68ch; }
.guide blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding-left: 14px; color: var(--muted); }

/* multi-series trend chart */
.sline-0 { stroke: #2563eb; stroke-width: 2; } .sline-0-dot { fill: #2563eb; }
.sline-1 { stroke: #d97706; stroke-width: 2; } .sline-1-dot { fill: #d97706; }
.sline-2 { stroke: #059669; stroke-width: 2; } .sline-2-dot { fill: #059669; }

/* side-by-side compare */
.pick-bar {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; margin: 10px 0;
}
.cta.small { padding: 5px 12px; font-size: 0.85rem; margin-top: 0; border: 0; cursor: pointer; }
.ghost {
  background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--fg);
  padding: 5px 12px; font-size: 0.85rem; cursor: pointer;
}
table.side thead th { min-width: 140px; }
table.side tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; }

.amazon-link { display: block; margin-top: 8px; font-size: 0.9rem; }
.vs-mark { color: var(--muted); font-style: italic; font-size: 0.8em; padding: 0 0.2em; }
.verdict { padding-left: 1.1em; }
.verdict li { margin: 0.4em 0; max-width: 75ch; }
