/* ==========================================================================
   Gridmash design system
   Light-first for data legibility; dark theme available. WCAG 2.1 AA.
   ========================================================================== */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3f0ea;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e5e0d8;
  --line-strong: #d6cfc4;
  --accent: #1b5e43;
  --accent-strong: #144632;
  --on-accent: #ffffff;
  --yes: #15703f;
  --no: #6f6a63;
  --error: #b3261e;
  --focus: #1b5e43;
  --shadow: 0 1px 3px rgba(28, 25, 23, 0.07), 0 8px 24px rgba(28, 25, 23, 0.06);
  --radius: 14px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #131110;
  --surface: #1d1a17;
  --surface-2: #26221e;
  --ink: #f3efe8;
  --muted: #b0a99f;
  --line: #332e28;
  --line-strong: #463f37;
  --accent: #7fcaa6;
  --accent-strong: #9ddbbd;
  --on-accent: #0d2a1d;
  --yes: #86d3ab;
  --no: #948d83;
  --error: #ffb4ab;
  --focus: #7fcaa6;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ---- Base ---------------------------------------------------------------- */

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { max-width: 65ch; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header --------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--accent); }

.site-nav { margin-left: auto; overflow-x: auto; }
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--surface-2);
  font-weight: 600;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--ink); }

/* ---- Hero ------------------------------------------------------------------ */

.hero { padding: 5.5rem 0 4.5rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  max-width: 16ch;
}
.hero .lede {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 52ch;
}
.hero .actions { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---- Category cards ---------------------------------------------------------- */

.section-title { font-size: 1.9rem; margin-bottom: 0.5rem; }
.section-sub { color: var(--muted); margin-bottom: 2rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 1.75rem;
  border-radius: var(--radius);
  color: #f7f4ee;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); color: #ffffff; }
@media (prefers-reduced-motion: reduce) { .cat-card:hover { transform: none; } }

.cat-card .card-icon {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  opacity: 0.85;
}
.cat-card .card-icon svg { width: 56px; height: 56px; }

.cat-card h3 { font-size: 1.55rem; color: inherit; }
.cat-card p { margin-top: 0.4rem; font-size: 0.95rem; color: rgba(247, 244, 238, 0.85); }
.cat-card .card-cta {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.card--grills   { background: linear-gradient(150deg, #3a160a 0%, #6b2a10 55%, #8a3a12 100%); }
.card--bikes    { background: linear-gradient(150deg, #0c2233 0%, #14405e 55%, #1a5378 100%); }
.card--gym      { background: linear-gradient(150deg, #1f1d24 0%, #3a3544 55%, #4d4660 100%); }
.card--espresso { background: linear-gradient(150deg, #2b1a10 0%, #54331c 55%, #6e4423 100%); }
.card--paddle   { background: linear-gradient(150deg, #0a2b2b 0%, #155050 55%, #1d6a66 100%); }

/* ---- How it works -------------------------------------------------------------- */

.how { padding: 3.5rem 0 4rem; border-top: 1px solid var(--line); }
.how ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  list-style: none;
  counter-reset: step;
  margin-top: 2rem;
}
.how li { counter-increment: step; }
.how li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.how h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.how p { color: var(--muted); font-size: 0.95rem; }

/* ---- Category page header -------------------------------------------------------- */

.page-head { padding: 3rem 0 1.5rem; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head .tagline { margin-top: 0.75rem; font-size: 1.1rem; color: var(--muted); }
.page-head .sourcing {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Table toolbar ------------------------------------------------------------------ */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  padding: 1rem 0 1.25rem;
}

.toolbar .control { display: flex; align-items: center; gap: 0.5rem; }
.toolbar label { font-size: 0.9rem; font-weight: 500; }

.toolbar select {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.switch { display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer; }
.switch input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); cursor: pointer; }
.switch span { font-size: 0.9rem; font-weight: 500; }

.compare-controls { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.compare-hint { font-size: 0.85rem; color: var(--muted); }

.btn-compare {
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-compare:not([disabled]):hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-compare[disabled] { color: var(--muted); background: var(--surface-2); border-color: var(--line-strong); opacity: 1; cursor: not-allowed; }
.btn-compare.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-compare.active:hover { background: var(--accent-strong); color: var(--on-accent); }

/* ---- Comparison table ----------------------------------------------------------------- */

.table-region {
  overflow: auto;
  max-height: 78vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.table-region:focus-visible { outline-offset: -3px; }

table.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

table.compare th,
table.compare td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 11rem;
  background: var(--surface);
}

table.compare thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
  border-bottom: 2px solid var(--line-strong);
  vertical-align: bottom;
}

table.compare thead th.spec-col,
table.compare tbody th[scope="row"] {
  position: sticky;
  left: 0;
  min-width: 12rem;
  max-width: 14rem;
  border-right: 1px solid var(--line-strong);
}
table.compare thead th.spec-col { z-index: 3; background: var(--surface-2); }
table.compare tbody th[scope="row"] {
  z-index: 1;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}

table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: none; }

.product-head { font-weight: 400; }
.product-head .brand {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-head .pname {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.compare-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.compare-pick input { width: 1rem; height: 1rem; accent-color: var(--accent); cursor: pointer; }

td.price-cell { font-weight: 600; color: var(--accent-strong); font-variant-numeric: tabular-nums; }

.val-yes { color: var(--yes); font-weight: 600; }
.val-no { color: var(--no); }
.claim-link { display: inline-block; margin-top: 0.45rem; font-size: 0.8rem; font-weight: 600; }
.cell-full { margin-top: 0.4rem; font-size: 0.85rem; }
.cell-full summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.cell-full p { margin-top: 0.45rem; overflow-wrap: anywhere; }

/* Glossary link on spec labels */
.gloss-link {
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 0.4rem;
  margin-left: 0.4rem;
  color: var(--muted);
  white-space: nowrap;
}
.gloss-link:hover { color: var(--accent-strong); border-color: var(--accent); }

/* Differences mode: dim rows where all visible products match */
.diffs-on tr.uniform th[scope="row"],
.diffs-on tr.uniform td { color: var(--muted); opacity: 0.55; }
.diffs-on tbody tr:not(.uniform) th[scope="row"] {
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Hidden columns (compare mode) and hidden rows (extra specs) */
.col-hidden { display: none; }
tr.extra-spec[hidden] { display: none; }

/* Shadow hint on the frozen column while scrolling */
table.compare tbody th[scope="row"]::after,
table.compare thead th.spec-col::after {
  content: "";
  position: absolute;
  top: 0; right: -8px; bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(28, 25, 23, 0.08), transparent);
  pointer-events: none;
}

.table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 0;
}

.btn-showall {
  padding: 0.55rem 1.2rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.btn-showall:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---- Product picker ------------------------------------------------------ */
.product-picker { margin: 0.5rem 0 1.5rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-picker h2 { font-size: 1.45rem; }
.product-picker > p { margin-top: 0.45rem; color: var(--muted); }
.picker-controls { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.picker-controls label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; }
.picker-controls input, .picker-controls select { min-height: 44px; padding: 0.55rem 0.7rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; }
.picker-count { font-size: 0.9rem; }
.picker-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-height: 1.5rem; margin: 0.75rem 0; }
.picker-remove, .picker-clear { min-height: 36px; padding: 0.35rem 0.55rem; font: inherit; font-size: 0.82rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 7px; cursor: pointer; }
.product-options { display: grid; gap: 0.5rem; }
.product-option { display: grid; grid-template-columns: auto minmax(10rem, 1fr) minmax(7rem, auto) auto; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.product-option:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
.product-option input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.product-option-name { font-weight: 600; }
.product-option-type, .product-option-price { font-size: 0.82rem; color: var(--muted); }
.picker-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* ---- Grills navigation and smokers detail dial -------------------------- */
.grill-navigation { margin: 1.5rem 0 2rem; }
.grill-navigation h2, .smoker-intro h1 { font-family: var(--font-sans); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -0.03em; }
.grill-nav-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.grill-nav-card { display: grid; gap: 0.35rem; min-height: 9rem; padding: 1.15rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; box-shadow: var(--shadow); }
.grill-nav-card:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.grill-nav-card strong { font-size: 1.04rem; }
.grill-nav-card span { color: var(--accent-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.grill-nav-card small { color: var(--muted); line-height: 1.4; }
.smoker-intro { margin: 1.25rem 0 1rem; }
.is-smokers {
  --smoker-accent: #0068d9;
  --smoker-accent-strong: #004fa8;
  --smoker-on-accent: #fff;
}
[data-theme="dark"] .is-smokers { --smoker-accent: #69adff; --smoker-accent-strong: #9bc8ff; --smoker-on-accent: #061a33; }
.smoker-backlink { display: none; width: fit-content; margin-bottom: 0.7rem; font-size: 0.9rem; font-weight: 600; color: var(--smoker-accent, var(--accent)); }
.eyebrow { margin-bottom: 0.45rem; color: var(--accent-strong); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-controls { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; align-items: center; margin-top: 0.9rem; }
.detail-levels, .unit-controls { display: flex; gap: 0; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.detail-level, .unit-controls button { min-height: 44px; padding: 0.45rem 0.8rem; border: 0; border-right: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); font: 600 0.88rem var(--font-sans); cursor: pointer; }
.detail-level:last-child { border-right: 0; }
.unit-controls button:last-child { border-right: 0; }
.detail-level[aria-pressed="true"], .unit-controls button[aria-pressed="true"] { color: var(--smoker-on-accent, var(--on-accent)); background: var(--smoker-accent, var(--accent)); }
.topic-disclosure { position: relative; }
.topic-disclosure > summary { min-height: 44px; padding: 0.55rem 0.2rem; color: var(--ink); font: 600 0.88rem var(--font-sans); cursor: pointer; }
.topic-controls { display: grid; gap: 0.35rem; min-width: 15rem; margin: 0.3rem 0 0; padding: 0.6rem; list-style: none; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.topic-controls li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topic-button { min-height: 44px; padding: 0.35rem 0.55rem; border: 0; color: var(--smoker-accent-strong, var(--accent-strong)); background: transparent; font: 600 0.84rem var(--font-sans); cursor: pointer; }
.topic-button:disabled { color: var(--muted); cursor: default; }
.smoker-data-notes { max-width: 44rem; margin-top: 0.7rem; color: var(--muted); font-size: 0.82rem; }
.smoker-data-notes > summary { cursor: pointer; }
.smoker-data-notes > p { margin-top: 0.45rem; }
.smoker-nojs { margin: 0.75rem 0; color: var(--muted); font-size: 0.9rem; }
.is-grill-initialized .smoker-nojs { display: none; }
.is-smokers .page-head, .is-smokers .grill-navigation { display: none; }
.is-smokers .smoker-intro { margin-top: 1rem; }
.is-smokers .smoker-backlink { display: block; }
.smoker-change, .smoker-pair-controls button, .dialog-close { min-height: 44px; padding: 0.45rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--smoker-accent-strong, var(--accent-strong)); background: var(--surface); font: 600 0.84rem var(--font-sans); cursor: pointer; }
.smoker-change { display: block; width: 100%; margin-top: 0.7rem; overflow-wrap: anywhere; }
.smoker-pair-controls { display: none; align-items: center; justify-content: space-between; gap: 0.55rem; margin: 0.7rem 0; font-size: 0.84rem; color: var(--muted); }
.smoker-pair-controls button { width: 44px; padding: 0; font-size: 1.15rem; }
.smoker-source-link { display: inline-grid; width: 44px; height: 44px; place-items: center; margin: 0 0 0 0.15rem; padding: 0; vertical-align: middle; color: var(--smoker-accent, var(--accent)); border-radius: 50%; }
.smoker-source-link svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.price-note { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.72rem; font-weight: 500; line-height: 1.25; }
.smoker-hidden { display: none !important; }
.smoker-evidence td { min-width: 18rem; }
.smoker-evidence .product-claims { margin-top: 0; }
.is-grill-landing .smoker-table-region, .is-grill-landing .glossary { display: none; }
[data-grill-experience]:not(.is-smokers) .smoker-change { display: none; }
.is-smokers .smoker-table-region { max-height: min(68vh, 44rem); border-color: var(--line-strong); border-radius: 10px; box-shadow: none; }
.is-smokers .smoker-compare { font-family: var(--font-sans); }
.is-smokers .smoker-compare th, .is-smokers .smoker-compare td { background: #fff; border-color: #e5e5ea; }
.is-smokers .smoker-compare thead th, .is-smokers .smoker-compare thead th.spec-col { background: #f5f5f7; }
.is-smokers .smoker-compare .pname { font-family: var(--font-sans); font-weight: 700; }
.is-smokers .smoker-compare .price-cell { color: var(--smoker-accent, var(--accent)); }
.is-smokers .glossary h2 { font-family: var(--font-sans); font-weight: 700; }
.is-smokers :focus-visible { outline-color: var(--smoker-accent, var(--focus)); }
[data-theme="dark"] .detail-levels { border-color: var(--line-strong); }
[data-theme="dark"] .detail-level { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
[data-theme="dark"] .detail-level[aria-pressed="true"] { color: var(--smoker-on-accent); background: var(--smoker-accent); }
[data-theme="dark"] .topic-controls { border-color: var(--line-strong); background: var(--surface); }
[data-theme="dark"] .topic-button { color: var(--smoker-accent); }
[data-theme="dark"] .topic-button:disabled { color: var(--muted); }
.smoker-different th, .smoker-different td { background: color-mix(in srgb, var(--smoker-accent, var(--accent)) 7%, var(--surface)) !important; }
.smoker-difference-label { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.72rem; font-weight: 500; }
.smoker-dialog { width: min(42rem, calc(100% - 2rem)); max-height: min(80vh, 48rem); margin: auto; padding: 1.25rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); font-family: var(--font-sans); }
.smoker-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.smoker-dialog form { display: flex; justify-content: flex-end; margin-bottom: 0.5rem; }
.smoker-dialog h2 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; }
.smoker-dialog-context { margin: 0.2rem 0 0.8rem; color: var(--muted); font-size: 0.9rem; }
.smoker-dialog input { width: 100%; min-height: 44px; margin: 0.35rem 0 0.6rem; padding: 0.55rem 0.7rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; font: inherit; }
#smoker-picker-results { display: grid; gap: 0.85rem; }
#smoker-picker-results h3 { margin-bottom: 0.35rem; font-family: var(--font-sans); font-size: 0.9rem; }
.smoker-picker-choice { display: block; width: 100%; min-height: 44px; margin-top: 0.3rem; padding: 0.45rem 0.65rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 7px; text-align: left; font: inherit; cursor: pointer; }
.smoker-picker-choice:disabled { color: var(--muted); cursor: not-allowed; }
.smoker-picker-empty { color: var(--muted); }
[data-theme="dark"] .is-smokers .smoker-table-region { border-color: #424245; }
[data-theme="dark"] .is-smokers .smoker-compare th, [data-theme="dark"] .is-smokers .smoker-compare td { background: #1d1d1f; border-color: #38383a; }
[data-theme="dark"] .is-smokers .smoker-compare thead th, [data-theme="dark"] .is-smokers .smoker-compare thead th.spec-col { background: #2c2c2e; }

/* ---- Recorded source claims ---------------------------------------------- */
.catalog-evidence { padding: 2.5rem 0 0; }
.catalog-evidence h2 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.catalog-evidence > p { margin-top: 0.6rem; color: var(--muted); }
.product-claims, .attribute-claims { margin-top: 0.85rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.product-claims > summary, .attribute-claims > summary { cursor: pointer; font-weight: 600; }
.product-claims > p, .attribute-claims > p { margin-top: 0.7rem; }
.attribute-claims { margin-top: 0.7rem; background: var(--surface-2); }
.claim-list { margin: 0.75rem 0 0 1.25rem; }
.claim-list li { padding: 0.7rem 0; overflow-wrap: anywhere; }
.claim-source { margin-top: 0.45rem; font-size: 0.9rem; color: var(--muted); }
.recorded-value { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.4rem 1rem; margin: 0.45rem 0; }
.recorded-value div { min-width: 0; }
.recorded-value dt { font-weight: 600; }
.recorded-value dd { overflow-wrap: anywhere; }
.exact-value, .source-unavailable { font-size: 0.85rem; color: var(--muted); }

/* ---- Glossary ---------------------------------------------------------------------------- */

.glossary { padding: 3rem 0 1rem; }
.glossary h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.glossary dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.glossary dt {
  font-weight: 600;
  scroll-margin-top: 6rem;
}
.glossary dd { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }

/* ---- Subscribe ------------------------------------------------------------------------------ */

.subscribe {
  margin: 3.5rem 0;
  padding: 2.75rem 2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.subscribe h2 { font-size: 1.6rem; }
.subscribe .sub-lede { color: var(--muted); margin: 0.5rem auto 1.5rem; }

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
.subscribe-form .field { flex: 1; }
.subscribe-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.subscribe-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.subscribe-form input[type="email"]:focus-visible { outline-offset: 0; }
.subscribe-form button { align-self: flex-end; }

.subscribe-msg { margin-top: 1rem; font-size: 0.9rem; font-weight: 500; min-height: 1.4em; }
.subscribe-msg.success { color: var(--yes); }
.subscribe-msg.error { color: var(--error); }

@media (max-width: 600px) {
  .subscribe-form { flex-direction: column; }
  .subscribe-form button { align-self: stretch; }
}

/* ---- Footer ----------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
}
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-strong); }

/* ---- Small screens -------------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .hero { padding: 3.5rem 0 3rem; }
  .toolbar { gap: 0.75rem 1.25rem; }
  .compare-controls { margin-left: 0; width: 100%; justify-content: space-between; }
  table.compare th, table.compare td { min-width: 9.5rem; padding: 0.7rem 0.85rem; font-size: 0.875rem; }
  table.compare thead th.spec-col, table.compare tbody th[scope="row"] { min-width: 8.5rem; max-width: 9.5rem; }
  .site-header .container { flex-wrap: wrap; gap: 0.65rem; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow: visible; }
  .site-nav ul { min-width: 0; flex-wrap: wrap; }
  .theme-toggle { margin-left: auto; min-height: 44px; }
  .toolbar { align-items: stretch; }
  .toolbar .control, .switch { min-height: 44px; }
  .compare-controls { align-items: stretch; flex-direction: column; }
  .btn-compare, .btn-showall { min-height: 44px; }
  .product-option { grid-template-columns: auto 1fr; gap: 0.25rem 0.65rem; }
  .product-option-type, .product-option-price { grid-column: 2; }
  .picker-controls { flex-direction: column; }
  .picker-controls label { width: 100%; }
  .grill-nav-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grill-nav-card { min-height: 7.5rem; }
  .detail-controls { align-items: center; gap: 0.4rem 0.55rem; }
  .detail-levels { width: 100%; }
  .detail-level { flex: 1 1 0; }
  .topic-disclosure { width: auto; }
  .topic-disclosure > summary { width: fit-content; }
  .topic-controls { width: 100%; }
  .unit-controls { margin-left: auto; }
  .unit-controls button { min-width: 3.25rem; }
  .smoker-data-notes { margin-top: 0.35rem; }
  .is-smokers .smoker-pair-controls { display: flex; }
  .is-smokers .smoker-compare { width: 100%; table-layout: fixed; }
  .is-smokers .smoker-compare th, .is-smokers .smoker-compare td { min-width: 0; padding: 0.65rem 0.55rem; overflow-wrap: anywhere; }
  .is-smokers .smoker-compare thead th.spec-col, .is-smokers .smoker-compare tbody th[scope="row"] { min-width: 0; width: 32%; max-width: none; }
  .is-smokers .smoker-compare .product-head { width: 34%; }
  .is-smokers .smoker-compare .pname { overflow-wrap: normal; word-break: normal; }
  .is-smokers .smoker-mobile-hidden { display: none !important; }
}

@media (max-width: 420px) {
  .grill-nav-cards { grid-template-columns: 1fr; }
}
