/* ============================================================
   CompareSauna — Scandinavian editorial design system
   Warm ivory, natural stone, forest green, and cedar copper.
   This is the primary stylesheet served by the Blade layout.
   ============================================================ */

:root {
  color-scheme: light;

  --ivory-050: #fffdf8;
  --ivory-100: #fbf7ef;
  --ivory-200: #f6f0e5;
  --stone-100: #eee6d8;
  --stone-200: #dfd4c3;
  --stone-300: #cbbda9;
  --charcoal-950: #222824;
  --charcoal-800: #353c37;
  --charcoal-650: #555f57;
  --charcoal-500: #727a73;
  --forest-050: #edf3ef;
  --forest-100: #dce9e1;
  --forest-400: #618373;
  --forest-700: #285444;
  --forest-800: #204638;
  --forest-900: #17372d;
  --cedar-050: #f8eee7;
  --cedar-100: #efddd0;
  --cedar-400: #c98963;
  --cedar-600: #a65f3c;
  --cedar-700: #87492f;
  --cedar-800: #6e3b29;

  --bg: var(--ivory-100);
  --bg-elevated: var(--stone-100);
  --bg-card: var(--ivory-050);
  --bg-hover: #f2eadf;
  --surface: var(--ivory-050);
  --border: #d8ccbb;
  --border-light: #c5b6a1;
  --text: var(--charcoal-950);
  --text-dim: #5c655e;
  --text-muted: #747c75;
  --accent: var(--cedar-700);
  --accent-hover: var(--cedar-800);
  --accent-dim: rgba(166, 95, 60, 0.11);
  --accent-glow: rgba(166, 95, 60, 0.2);
  --success: #276047;
  --success-dim: #e2eee7;
  --warning: #8a5b19;
  --warning-dim: #f7ecd8;
  --danger: #93463b;
  --danger-dim: #f7e5e1;
  --info: #35616b;
  --info-dim: #e2edef;

  --gradient-hero: linear-gradient(135deg, #fbf7ef 0%, #f0e7d9 58%, #f7efe5 100%);
  --gradient-accent: linear-gradient(135deg, var(--forest-700), var(--forest-900));
  --gradient-card: linear-gradient(150deg, #fffdf8 0%, #faf5ec 100%);

  --font-sans: InterVariable, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, Cambria, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.05rem, 1.5vw, 1.18rem);
  --fs-xl: clamp(1.25rem, 2.2vw, 1.55rem);
  --fs-2xl: clamp(1.7rem, 3.4vw, 2.25rem);
  --fs-3xl: clamp(2.25rem, 5.2vw, 3.75rem);
  --fs-4xl: clamp(2.65rem, 6.8vw, 5rem);
  --lh-tight: 1.06;
  --lh-snug: 1.28;
  --lh-normal: 1.62;
  --lh-relaxed: 1.78;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;

  --container-max: 73rem;
  --container-narrow: 48rem;
  --container-wide: 82rem;
  --radius-xs: 0.3rem;
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.45rem;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(39, 45, 40, 0.06);
  --shadow-sm: 0 3px 12px rgba(45, 42, 34, 0.07);
  --shadow-md: 0 10px 30px rgba(45, 42, 34, 0.09);
  --shadow-lg: 0 18px 48px rgba(45, 42, 34, 0.12);
  --shadow-xl: 0 28px 72px rgba(45, 42, 34, 0.15);
  --shadow-glow: 0 18px 42px var(--accent-glow);
  --shadow-card: 0 8px 28px rgba(50, 45, 36, 0.07);

  --t-fast: 140ms ease;
  --t-base: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-slow: 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --z-header: 500;
  --z-dropdown: 520;
  --z-overlay: 600;
  --z-toast: 700;
}

/* Reset and document defaults */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  min-width: 20rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(circle at 7% 12%, rgba(166, 95, 60, 0.055), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-width: 0;
  min-height: 50vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select { font: inherit; }

input,
textarea,
select { color: var(--text); }

button {
  border: 0;
  cursor: pointer;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

a:hover { color: var(--accent-hover); }

p { margin: 0 0 var(--s-4); }
ul,
ol { margin: 0 0 var(--s-4); padding-inline-start: var(--s-6); }
li + li { margin-top: var(--s-2); }
hr { border: 0; border-top: 1px solid var(--border); }

[hidden] { display: none !important; }

::selection {
  background: var(--cedar-100);
  color: var(--forest-900);
}

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

/* Accessibility */
.skip-link {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: var(--s-4);
  z-index: var(--z-toast);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--forest-900);
  color: var(--ivory-050);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform var(--t-base);
}

.skip-link:focus { transform: translateY(0); }

.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;
}

/* Layout */
.container {
  width: min(100%, var(--container-max));
  min-width: 0;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: clamp(3.75rem, 8vw, 6.75rem); }
.section-sm { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section-lg { padding-block: clamp(5rem, 10vw, 8rem); }

.section--alt,
.section--articles {
  border-block: 1px solid rgba(216, 204, 187, 0.72);
  background: rgba(238, 230, 216, 0.48);
}

.section--gradient { background: var(--gradient-hero); }

/* Typography */
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-4);
  color: var(--forest-900);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-2xl); line-height: 1.16; }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }

strong { color: var(--charcoal-800); font-weight: 700; }

.lead,
.subtitle {
  color: var(--text-dim);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }

/* Shared controls */
.btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--forest-900);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-base), background var(--t-base), border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.btn-primary {
  border-color: var(--forest-800);
  background: var(--gradient-accent);
  color: var(--ivory-050);
  box-shadow: 0 7px 18px rgba(23, 55, 45, 0.16);
}

.btn-primary:hover {
  border-color: var(--forest-900);
  background: var(--forest-900);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 55, 45, 0.22);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-light);
  background: rgba(255, 253, 248, 0.72);
  color: var(--forest-800);
}

.btn-outline:hover {
  border-color: var(--cedar-400);
  background: var(--cedar-050);
  color: var(--cedar-800);
}

.btn-ghost,
.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-dim);
}

.btn-ghost:hover,
.btn--ghost:hover { background: var(--stone-100); color: var(--forest-800); }

.btn-sm,
.btn--sm { min-height: 2.75rem; padding: 0.58rem 0.95rem; font-size: var(--fs-xs); }
.btn-lg { min-height: 3.15rem; padding: 0.82rem 1.45rem; font-size: var(--fs-base); }
.btn-block { display: flex; width: 100%; }

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
  transform: none;
}

.form-group { margin-bottom: var(--s-5); }

.form-label,
.calc-field label,
.planner-input-group label {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--forest-900);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.form-control,
.form-select,
.form-input,
.email-capture__input,
.calc-select,
.input-with-unit input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 1px rgba(34, 40, 36, 0.025);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.form-select,
.calc-select {
  padding-inline-end: var(--s-10);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23285444' d='M1 1.25 6 6.25l5-5' fill='none' stroke='%23285444' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.form-control:focus,
.form-select:focus,
.form-input:focus,
.email-capture__input:focus,
.calc-select:focus,
.input-with-unit input:focus {
  outline: 0;
  border-color: var(--cedar-600);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

::placeholder { color: var(--text-muted); opacity: 1; }

/* Cards and badges */
.card,
.product-card,
.article-card,
.tool-card,
.result-card,
.planner-card,
.power-card {
  border: 1px solid var(--border);
  background: var(--gradient-card);
  box-shadow: var(--shadow-card);
}

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
}

.card--hover-lift,
.tool-card,
.article-card,
.product-card,
.result-card {
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.card--hover-lift:hover,
.tool-card:hover,
.article-card:hover,
.product-card:hover,
.result-card:hover {
  border-color: var(--cedar-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.badge,
.availability-status,
.confidence-pill,
.confidence-badge,
.avail-badge {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  gap: var(--s-1);
  padding: 0.25rem 0.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: var(--cedar-050);
  color: var(--cedar-800);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.badge--success,
.availability-status--available,
.availability-status--low_stock,
.confidence-pill--high,
.confidence--high,
.avail-badge--in_stock { border-color: #c8ddcf; background: var(--success-dim); color: var(--success); }

.badge--warning,
.confidence-pill--medium,
.confidence--medium,
.avail-badge--backorder { border-color: #ead4ae; background: var(--warning-dim); color: var(--warning); }

.badge--danger,
.availability-status--unavailable,
.availability-status--discontinued,
.confidence-pill--low,
.confidence--low,
.avail-badge--out_of_stock { border-color: #ebc8c1; background: var(--danger-dim); color: var(--danger); }

.badge--info { border-color: #c8dbde; background: var(--info-dim); color: var(--info); }
.badge--solid { border-color: var(--forest-800); background: var(--forest-800); color: #fff; }
.availability-status--unknown,
.confidence-pill--none,
.avail-badge--unknown,
.avail-badge--not_found { border-color: var(--border); background: var(--stone-100); color: var(--text-dim); }

/* Heroes */
.hero,
.hero-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--gradient-hero);
}

.hero::before,
.hero-home::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(125, 97, 72, 0.06) 11% 11.1%, transparent 11.1% 89%, rgba(125, 97, 72, 0.06) 89% 89.1%, transparent 89.1%),
    radial-gradient(circle at 85% 10%, rgba(40, 84, 68, 0.1), transparent 25rem);
  content: "";
}

.hero::after,
.hero-home::after {
  position: absolute;
  inset-block-start: -5rem;
  inset-inline-start: 50%;
  z-index: -1;
  width: min(70vw, 48rem);
  height: 18rem;
  border: 1px solid rgba(166, 95, 60, 0.12);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.hero {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3.25rem, 7vw, 5rem);
  text-align: center;
}

.hero-sm { padding-block: clamp(3rem, 7vw, 5rem); }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { max-width: 52rem; margin-inline: auto; }

.hero .subtitle,
.hero .lead {
  max-width: 42rem;
  margin: var(--s-4) auto 0;
}

/* Tables */
.table-wrap,
.compare-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--stone-300) transparent;
}

.table-wrap:focus-visible { outline-offset: 2px; }

.comparison-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-dim);
  font-size: var(--fs-sm);
}

.comparison-table { min-width: 38rem; }
.compare-table { min-width: 42rem; }

.comparison-table th,
.comparison-table td,
.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

.comparison-table thead th,
.compare-table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--stone-100);
  color: var(--forest-900);
  font-family: var(--font-sans);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.comparison-table tbody tr:last-child > *,
.compare-table tbody tr:last-child > * { border-bottom: 0; }

.comparison-table tbody tr:hover > *,
.compare-table tbody tr:hover > * { background: rgba(166, 95, 60, 0.045); }

.comparison-table__best { background: var(--success-dim); color: var(--success); font-weight: 700; }

/* Prose and trust pages */
.prose {
  width: min(100%, 48rem);
  margin-inline: auto;
  overflow-wrap: anywhere;
}

.section > .container > .prose,
.article .container > .prose {
  padding: clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid rgba(216, 204, 187, 0.8);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.68);
  box-shadow: var(--shadow-sm);
}

.prose h1 { margin-bottom: var(--s-6); }
.prose h2 { margin-top: clamp(2.75rem, 7vw, 4.5rem); }
.prose h3 { margin-top: var(--s-10); }

.prose p,
.prose li {
  color: var(--charcoal-800);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: var(--lh-relaxed);
}

.prose ul,
.prose ol { margin-block: var(--s-5) var(--s-6); }
.prose li::marker { color: var(--cedar-600); font-weight: 700; }
.prose a { font-weight: 600; }
.prose img { margin-block: var(--s-8); border-radius: var(--radius-lg); }
.prose blockquote {
  margin: var(--s-8) 0;
  padding: var(--s-4) var(--s-6);
  border-inline-start: 3px solid var(--cedar-600);
  background: var(--cedar-050);
  color: var(--text-dim);
}

.prose > table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-block: var(--s-6);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-spacing: 0;
  background: var(--surface);
  white-space: normal;
  -webkit-overflow-scrolling: touch;
}

.prose > table th,
.prose > table td {
  min-width: 9rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

.prose > table th { background: var(--stone-100); color: var(--forest-900); }
.article-meta { color: var(--text-muted); font-size: var(--fs-sm); }
.article-divider { margin-block: var(--s-8); }

.affiliate-disclosure,
.trust-note {
  margin-block: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: 1px solid #dfcdbf;
  border-inline-start: 3px solid var(--cedar-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cedar-050);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.affiliate-disclosure strong,
.trust-note strong { color: var(--cedar-800); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
  margin-bottom: var(--s-6);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--cedar-700); text-decoration: underline; }
.breadcrumb .separator { color: var(--stone-300); }

/* Homepage */
.hero-home { padding-block: clamp(3.75rem, 8vw, 7.25rem); }

.hero-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin-bottom: var(--s-5);
  padding: 0.35rem 0.75rem;
  border: 1px solid #d6bea9;
  border-radius: var(--radius-full);
  background: rgba(255, 253, 248, 0.66);
  color: var(--cedar-800);
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-home__text h1 {
  max-width: 43rem;
  margin-bottom: var(--s-5);
  font-size: var(--fs-4xl);
}

.hero-home__subtitle {
  max-width: 38rem;
  margin-bottom: var(--s-8);
  color: var(--text-dim);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

.hero-home__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hero-home__trust { max-width: 38rem; margin: var(--s-5) 0 0; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 650; line-height: var(--lh-normal); }

.hero-home__visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 30rem;
  place-items: end center;
  padding: clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  border-radius: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(180deg, transparent 38%, rgba(15, 35, 29, 0.82)), url('/images/hero/sauna-interior.webp') center / cover;
  box-shadow: 0 2rem 5rem rgba(23, 55, 45, 0.22);
}

.hero-preview-card {
  position: relative;
  z-index: 2;
  width: min(100%, 28rem);
  padding: clamp(1.15rem, 3vw, 1.65rem);
  border: 1px solid rgba(216, 204, 187, 0.94);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.95);
  box-shadow: var(--shadow-xl);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-preview-card__empty { margin: var(--s-5) 0; color: var(--text-dim); font-size: var(--fs-sm); text-align: center; }

.hero-preview-card__footer {
  border-color: var(--border);
}

.hero-preview-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}

.hero-preview-card__label,
.hero-preview-card__count {
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-preview-card__label { color: var(--text-dim); }
.hero-preview-card__count { color: var(--cedar-700); text-align: end; }

.hero-preview-row {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--s-3);
  padding-block: 0.72rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(216, 204, 187, 0.55);
}

.hero-preview-row__rank {
  position: relative;
  z-index: 1;
  width: 2rem;
  flex: 0 0 2rem;
  color: var(--cedar-700);
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
}

.hero-preview-row__info {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.hero-preview-row__brand { min-width: 0; overflow: hidden; font-size: var(--fs-sm); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.hero-preview-row__score { color: var(--text-dim); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }

.hero-preview-row__bar {
  position: absolute;
  inset-block: 0.3rem;
  inset-inline-start: 2.75rem;
  max-width: calc(100% - 2.75rem);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(40, 84, 68, 0.1), rgba(166, 95, 60, 0.09));
}

.hero-preview-card__footer {
  display: block;
  min-height: 2.75rem;
  margin-top: var(--s-2);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--forest-800);
  font-size: var(--fs-sm);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.stats-bar {
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--border);
  background: var(--forest-900);
  color: var(--ivory-100);
}

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.stat-item { min-width: 0; text-align: center; }
.stat-item + .stat-item { border-inline-start: 1px solid rgba(255,255,255,0.14); }

.stat-item__num {
  display: block;
  color: #f2cfb8;
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.1;
}

.stat-item__label {
  display: block;
  margin-top: var(--s-1);
  color: rgba(255, 253, 248, 0.72);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-header { margin-bottom: clamp(2rem, 5vw, 3.25rem); text-align: center; }
.section-header h2 { margin-bottom: var(--s-3); }
.section-header p { max-width: 40rem; margin-inline: auto; color: var(--text-dim); font-size: var(--fs-lg); }

.section-header--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-5);
  text-align: start;
}

.section-header--row p { margin: 0; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}

.tool-card {
  position: relative;
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
}

.tool-card::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0.25rem;
  background: linear-gradient(var(--cedar-400), var(--cedar-700));
  content: "";
  transform: scaleY(0.35);
  transform-origin: bottom;
  transition: transform var(--t-base);
}

.tool-card:hover::before { transform: scaleY(1); }

.tool-card__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--s-6);
  place-items: center;
  border-radius: 50%;
  background: var(--forest-050);
  font-size: 1.35rem;
  filter: saturate(0.75);
}

.tool-card h3 { margin-bottom: var(--s-2); font-size: 1.25rem; }
.tool-card p { margin: 0 0 var(--s-5); color: var(--text-dim); font-size: var(--fs-sm); line-height: var(--lh-normal); }
.tool-card__arrow { margin-top: auto; color: var(--cedar-700); font-weight: 800; transition: transform var(--t-base); }
.tool-card:hover .tool-card__arrow { transform: translateX(0.3rem); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.article-card {
  display: flex;
  min-width: 0;
  min-height: 17rem;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
}

.article-card__category {
  display: inline-flex;
  margin-bottom: var(--s-5);
  color: var(--cedar-700);
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card h3 { margin: 0; font-size: 1.3rem; }
.article-card__excerpt { margin: var(--s-3) 0 var(--s-5); color: var(--text-dim); font-size: var(--fs-sm); }
.article-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--border); }
.article-card__updated { color: var(--text-muted); font-size: var(--fs-xs); }
.article-card__read { color: var(--forest-800); font-size: var(--fs-xs); font-weight: 750; }

.trust-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}

.trust-compact__item {
  display: flex;
  min-width: 0;
  gap: var(--s-4);
  padding: var(--s-6);
}

.trust-compact__item + .trust-compact__item { border-inline-start: 1px solid var(--border); }
.trust-compact__icon { flex: 0 0 auto; font-size: 1.35rem; filter: saturate(0.65); }
.trust-compact__item strong { display: block; margin-bottom: var(--s-1); color: var(--forest-900); font-family: var(--font-serif); font-size: 1rem; }
.trust-compact__item span { display: block; color: var(--text-dim); font-size: var(--fs-xs); line-height: var(--lh-normal); }

.section--trust { background: var(--ivory-050); }
.section--cta { border-top: 1px solid var(--border); background: var(--forest-900); color: rgba(255,253,248,0.76); }
.section--cta .cta-box h2 { color: var(--ivory-050); }
.section--cta .cta-box p { color: rgba(255,253,248,0.72); }
.section--cta .btn-primary { border-color: var(--cedar-400); background: var(--cedar-600); }
.section--cta .affiliate-disclosure { border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: rgba(255,253,248,0.7); }

.cta-box { max-width: 42rem; margin-inline: auto; text-align: center; }
.cta-box p { margin-bottom: var(--s-6); color: var(--text-dim); font-size: var(--fs-lg); }

/* Product families and reusable product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--s-5);
  margin-top: var(--s-8);
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--radius-lg);
  color: var(--text);
}

a.product-card { text-decoration: none; }
.product-card h3 { margin: 0; font-size: 1.18rem; overflow-wrap: anywhere; }
.product-card h3 a { color: var(--forest-900); text-decoration: none; }
.product-card h3 a:hover { color: var(--cedar-700); }
.product-card .brand { margin: 0 0 var(--s-1); color: var(--cedar-700); font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.product-card__header { min-width: 0; }
.product-card__badges { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.product-card__rank { position: absolute; inset-block-start: var(--s-4); inset-inline-end: var(--s-4); }

.product-card__image {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--stone-100);
}

.product-card__image img { width: 100%; height: 100%; object-fit: contain; }

.product-card__image-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.2) 0 1px, transparent 1px 2rem),
    linear-gradient(145deg, #d3a07e, #a96443);
}

.product-card__image-placeholder::before {
  width: 45%;
  height: 65%;
  border: 0.28rem solid var(--forest-900);
  border-radius: 48% 48% 0.35rem 0.35rem;
  background: linear-gradient(rgba(238,245,240,0.72), rgba(40,84,68,0.3));
  box-shadow: 0 12px 22px rgba(55,43,31,0.16);
  content: "";
}

.product-card__image-placeholder::after {
  position: absolute;
  inset-block-end: 17%;
  width: 58%;
  height: 0.3rem;
  border-radius: var(--radius-full);
  background: var(--forest-900);
  box-shadow: 0 -0.9rem 0 rgba(23,55,45,0.6);
  content: "";
}

.product-card__image-placeholder span {
  position: absolute;
  z-index: 1;
  color: var(--ivory-050);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(23,55,45,0.5);
}

.product-card__specs,
.specs-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem var(--s-4);
  margin: var(--s-2) 0;
  padding: var(--s-3) 0;
  border-block: 1px solid var(--border);
  font-size: var(--fs-xs);
}

.product-card__specs dt,
.specs-summary dt { color: var(--text-muted); }
.product-card__specs dd,
.specs-summary dd { margin: 0; color: var(--text); font-weight: 650; text-align: end; overflow-wrap: anywhere; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; }
.product-card__link { color: var(--forest-800); font-size: var(--fs-sm); font-weight: 750; }

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-top: var(--s-5);
}

.product-detail-grid > * { min-width: 0; }

.product-detail__brand { margin-bottom: var(--s-2); color: var(--cedar-700); font-size: var(--fs-sm); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.product-detail__spec-title { margin-top: var(--s-10); }
.product-detail__empty { margin-top: var(--s-8); }
.product-detail__aside-card { position: sticky; inset-block-start: 6rem; }
.marketplace-listing { margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--border); }
.marketplace-listing p { margin-bottom: var(--s-2); font-size: var(--fs-sm); }
.status-supported { color: var(--success); font-weight: 700; }
.status-attributed { color: var(--warning); font-weight: 700; }
.status-pending { color: var(--text-dim); }

.amazon-offer { margin-block: var(--s-4); }
.amazon-offer--card { margin-top: auto; padding-top: var(--s-2); text-align: center; }
.amazon-cta { width: fit-content; }
.amazon-price-note,
.amazon-offer-unavailable p { margin: var(--s-2) 0 0; font-size: var(--fs-xs); }
.availability-status,
.confidence-pill { width: fit-content; }

.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-block: var(--s-8); }
.pros-cons__col { padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.pros-cons__heading { font-size: 1.15rem; }
.pros-cons__list { padding: 0; list-style: none; }
.pros-cons__item { display: flex; gap: var(--s-3); }
.pros-cons__marker--pro { color: var(--success); }
.pros-cons__marker--con { color: var(--danger); }

.source-list { padding: 0; list-style: none; }
.source-list__item { display: flex; min-width: 0; align-items: flex-start; gap: var(--s-3); padding-block: var(--s-4); border-bottom: 1px solid var(--border); }
.source-list__body { display: grid; min-width: 0; flex: 1; }
.source-list__title { overflow-wrap: anywhere; }
.source-list__publisher,
.source-list__date { font-size: var(--fs-xs); }

/* Comparison */
.compare-selector { margin-bottom: var(--s-12); }

.product-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: var(--s-3);
  margin-block: var(--s-5);
}

.picker-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 4.5rem;
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.picker-card:hover { border-color: var(--cedar-400); background: var(--cedar-050); color: var(--text); transform: translateY(-1px); }
.picker-card.selected { border-color: var(--forest-700); background: var(--forest-050); box-shadow: 0 0 0 1px var(--forest-700); }

.picker-card.selected::after {
  position: absolute;
  inset-block-start: var(--s-2);
  inset-inline-end: var(--s-2);
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-700);
  color: #fff;
  content: "✓";
  font-size: 0.7rem;
  font-weight: 800;
}

.picker-card input { position: absolute; opacity: 0; pointer-events: none; }
.picker-card:has(input:focus-visible) { outline: 3px solid var(--cedar-400); outline-offset: 3px; }
.picker-card__body { display: flex; min-width: 0; flex-direction: column; gap: var(--s-1); }
.picker-card__brand { padding-inline-end: var(--s-5); color: var(--forest-900); font-size: var(--fs-sm); font-weight: 700; overflow-wrap: anywhere; }
.picker-card__score,
.picker-card__price { color: var(--text-dim); font-size: var(--fs-xs); }
.picker-card__price--na { font-style: italic; }
.picker-card__avail { width: fit-content; margin-top: var(--s-1); }
.picker-hint { color: var(--text-dim); font-size: var(--fs-sm); }
.compare-actions { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-4); flex-wrap: wrap; }

.compare-results { max-width: 100%; margin-top: var(--s-10); }

.compare-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) repeat(var(--compare-count, 2), minmax(8.5rem, 1fr));
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--border);
}

.compare-row--header { border-top: 1px solid var(--border); border-bottom-width: 2px; }
.compare-row--last { border-bottom: 0; }
.compare-cell { min-width: 0; }
.compare-cell--label { color: var(--text-dim); font-size: var(--fs-sm); font-weight: 650; }
.compare-cell--data { display: flex; align-items: center; }

.score-bar {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 13rem;
  height: 2rem;
  align-items: center;
  padding-inline: var(--s-3);
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--stone-100);
}

.score-bar__fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-400), var(--forest-700));
}

.score-bar__label { position: relative; z-index: 1; color: #fff; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; font-weight: 750; text-shadow: 0 1px 2px rgba(23,55,45,0.32); }
.compare-table-wrapper { margin-top: var(--s-6); }
.compare-table th { white-space: nowrap; }
.compare-table .spec-label { color: var(--forest-900); font-weight: 700; white-space: nowrap; }
.compare-table .spec-yes { color: var(--success); font-weight: 700; }
.compare-table .spec-no,
.compare-table .spec-na { color: var(--text-muted); }
.compare-table__divider td { background: var(--stone-100); color: var(--cedar-800); font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; }
.compare-note { margin-top: var(--s-6); }

/* Finder */
.quiz-container {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.quiz-progress,
.match-bar,
.load-bar {
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--stone-100);
}

.quiz-progress { height: 0.4rem; margin-bottom: var(--s-3); }
.quiz-progress__bar,
.match-bar__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cedar-400), var(--cedar-700)); transition: width var(--t-slow); }
.quiz-step-count { display: block; margin-bottom: var(--s-8); color: var(--text-muted); font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.quiz-question { display: none; }
.quiz-question.active { display: block; animation: rise-in 300ms ease both; }
.quiz-question h2 { margin-bottom: var(--s-6); font-size: var(--fs-xl); }
.quiz-options { display: grid; gap: var(--s-3); }
.quiz-options--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quiz-option { position: relative; cursor: pointer; }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }

.quiz-option__card {
  display: flex;
  min-height: 4.75rem;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory-050);
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.quiz-option:hover .quiz-option__card { border-color: var(--cedar-400); transform: translateY(-1px); }
.quiz-option input:focus-visible + .quiz-option__card { outline: 3px solid var(--cedar-400); outline-offset: 3px; }
.quiz-option input:checked + .quiz-option__card { border-color: var(--forest-700); background: var(--forest-050); box-shadow: inset 0 0 0 1px var(--forest-700); }
.quiz-option__icon { font-size: 1.35rem; filter: saturate(0.7); }
.quiz-option__title { color: var(--forest-900); font-size: var(--fs-sm); font-weight: 750; }
.quiz-option__desc { color: var(--text-dim); font-size: var(--fs-xs); }
.quiz-nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-8); }
.quiz-results { max-width: 58rem; margin-inline: auto; }
.quiz-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--s-4); margin-top: var(--s-6); }

.result-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--s-5);
  border-radius: var(--radius-lg);
}

.result-card--top { border-color: var(--cedar-600); box-shadow: var(--shadow-glow); }
.result-card__badge { position: absolute; inset-block-start: -0.85rem; inset-inline-start: 50%; padding: 0.28rem 0.75rem; border-radius: var(--radius-full); background: var(--cedar-700); color: #fff; font-size: var(--fs-xs); font-weight: 750; transform: translateX(-50%); white-space: nowrap; }
.result-card__match { margin-block: var(--s-2) var(--s-4); }
.match-bar { height: 0.45rem; }
.match-bar__label { display: block; margin-top: var(--s-1); color: var(--text-muted); font-size: var(--fs-xs); font-weight: 650; }
.result-card__specs,
.result-card__confidence { color: var(--text-dim); font-size: var(--fs-xs); }
.result-card .btn { align-self: flex-start; margin-top: auto; }
.feature-tag { display: inline-flex; margin: 0 var(--s-1) var(--s-1) 0; padding: 0.24rem 0.55rem; border-radius: var(--radius-full); background: var(--stone-100); color: var(--text-dim); font-size: var(--fs-xs); font-weight: 650; }

.email-capture {
  margin-top: var(--s-10);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--stone-100);
  text-align: center;
}

.email-capture__form { display: flex; max-width: 29rem; margin: var(--s-4) auto 0; gap: var(--s-2); }
.email-capture__input { flex: 1; }
.email-capture__success { margin: var(--s-4) 0 0; color: var(--success); font-weight: 700; }

/* Power calculator */
.calculator { max-width: 56rem; margin-inline: auto; }

.calc-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: var(--s-4);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.calc-field { display: flex; min-width: 0; flex-direction: column; }
.calc-field label { margin-bottom: var(--s-2); }
.calc-inputs .btn { grid-column: 1 / -1; justify-self: start; margin-top: var(--s-2); }

.calc-disclaimer {
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  border-inline-start: 3px solid var(--cedar-600);
  background: var(--cedar-050);
  color: var(--text-dim);
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
}

.calc-results { margin-top: var(--s-8); }
.power-card { padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--radius-lg); }
.power-card h2,
.power-card h3 { font-size: var(--fs-xl); }
.power-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-block: var(--s-5); }
.power-stat { min-width: 0; padding: var(--s-4); border-radius: var(--radius); background: var(--stone-100); text-align: center; }
.power-stat__value { display: block; color: var(--forest-800); font-family: var(--font-serif); font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.power-stat--highlight { background: var(--forest-800); }
.power-stat--highlight .power-stat__value { color: #fff; }
.power-stat__label { display: block; margin-top: var(--s-1); color: var(--text-dim); font-size: var(--fs-xs); }
.power-stat--highlight .power-stat__label { color: rgba(255,255,255,0.72); }
.power-note { margin: 0; color: var(--text-dim); font-size: var(--fs-sm); }

.calc-status-section { margin-top: var(--s-10); }
.calc-status-heading { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); font-size: var(--fs-xl); }
.calc-status-heading::before { width: 0.72rem; height: 0.72rem; flex: 0 0 auto; border-radius: 50%; background: var(--text-muted); content: ""; box-shadow: 0 0 0 0.3rem var(--stone-100); }
.calc-status-section--compatible .calc-status-heading::before { background: var(--success); box-shadow: 0 0 0 0.3rem var(--success-dim); }
.calc-status-section--unknown_specs .calc-status-heading::before { background: var(--warning); box-shadow: 0 0 0 0.3rem var(--warning-dim); }
.calc-status-section--voltage_mismatch .calc-status-heading::before { background: var(--cedar-600); box-shadow: 0 0 0 0.3rem var(--cedar-100); }
.calc-status-section--over_capacity .calc-status-heading::before { background: var(--danger); box-shadow: 0 0 0 0.3rem var(--danger-dim); }

.calc-product-list { display: grid; gap: var(--s-3); }
.calc-product {
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) minmax(12rem, 1.4fr) auto;
  min-width: 0;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-inline-start-width: 3px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.calc-product--compatible { border-inline-start-color: var(--success); }
.calc-product--unknown_specs { border-inline-start-color: var(--warning); }
.calc-product--voltage_mismatch { border-inline-start-color: var(--cedar-600); }
.calc-product--over_capacity { border-inline-start-color: var(--danger); }
.calc-product__info { min-width: 0; }
.calc-product__info h4 { margin: 0 0 var(--s-1); font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 750; overflow-wrap: anywhere; }
.calc-product__specs,
.calc-product__detail { display: block; color: var(--text-dim); font-size: var(--fs-xs); line-height: var(--lh-normal); overflow-wrap: anywhere; }
.calc-product__bar { min-width: 0; }
.load-bar { height: 0.48rem; }
.load-bar__fill { height: 100%; max-width: 100%; border-radius: inherit; background: var(--success); transition: width var(--t-slow); }
.load-bar__label { display: block; margin-top: var(--s-1); color: var(--text-muted); font-size: var(--fs-xs); }
.calc-empty { padding: var(--s-5); border: 1px dashed var(--border-light); border-radius: var(--radius); color: var(--text-dim); text-align: center; }
.calculator + .prose { margin-top: var(--s-12); }

/* Space planner */
.space-planner-form,
.planner-diagram {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.space-planner-form { margin-bottom: var(--s-6); }
.planner-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: var(--s-4); }
.planner-input-group { display: flex; min-width: 0; flex-direction: column; }
.input-with-unit { position: relative; }
.input-with-unit input { padding-inline-end: var(--s-10); }
.unit-label { position: absolute; inset-block-start: 50%; inset-inline-end: var(--s-3); color: var(--text-muted); font-size: var(--fs-xs); pointer-events: none; transform: translateY(-50%); }
.planner-btn { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0.7rem 1.2rem; border: 1px solid var(--forest-800); border-radius: var(--radius-full); background: var(--gradient-accent); color: #fff; font-size: var(--fs-sm); font-weight: 750; transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base); }
.planner-btn:hover { background: var(--forest-900); box-shadow: 0 8px 20px rgba(23,55,45,0.2); transform: translateY(-1px); }
.unit-toggle { margin-top: var(--s-4); color: var(--text-dim); font-size: var(--fs-sm); }
.unit-toggle__label { display: inline-flex; min-height: 2.75rem; align-items: center; gap: var(--s-2); cursor: pointer; }
.unit-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--forest-700); }
.planner-diagram { margin-bottom: var(--s-8); }
.planner-3d { width: 100%; min-height: 320px; margin-top: var(--s-4); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); touch-action: none; }
.planner-3d canvas { display: block; width: 100%; }
.planner-diagram h2,
.planner-results h2 { font-size: var(--fs-xl); }
.svg-wrapper { margin-top: var(--s-4); overflow-x: auto; }
.svg-wrapper svg { width: min(100%, 42rem); margin-inline: auto; }
.planner-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--s-4); }

.planner-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-inline-start-width: 3px;
  border-radius: var(--radius-lg);
}

.planner-card.status-fits { border-inline-start-color: var(--success); }
.planner-card.status-tight { border-inline-start-color: var(--warning); }
.planner-card.status-no { border-inline-start-color: var(--danger); }
.planner-card__header { display: flex; min-width: 0; align-items: flex-start; gap: var(--s-3); }
.planner-card__header h3 { margin: 0; font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 750; }
.planner-card__model { margin: var(--s-1) 0 0; font-size: var(--fs-xs); overflow-wrap: anywhere; }
.planner-card__dims,
.planner-card__clearance { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.dim-pill,
.clearance-tag { display: inline-flex; padding: 0.3rem 0.65rem; border-radius: var(--radius-full); font-size: var(--fs-xs); font-weight: 650; }
.dim-pill { background: var(--stone-100); color: var(--text-dim); }
.dim-source { color: var(--text-muted); font-size: var(--fs-xs); font-style: italic; }
.clearance-ok { background: var(--success-dim); color: var(--success); }
.clearance-tight { background: var(--warning-dim); color: var(--warning); }
.clearance-bad { background: var(--danger-dim); color: var(--danger); }
.planner-error { padding: var(--s-4); border: 1px solid #ebc8c1; border-radius: var(--radius); background: var(--danger-dim); color: var(--danger); }
.planner-empty { padding: var(--s-8); text-align: center; }
.planner-tips { max-width: 32rem; margin: var(--s-8) auto; text-align: start; }

/* Price tracker */
.price-tracker-selector h2 { margin-bottom: var(--s-4); }
.price-tracker-selector .product-picker { margin-bottom: var(--s-8); }
.avail-badge { width: fit-content; margin-top: var(--s-1); text-transform: capitalize; }
.avail-badge--lg { min-height: 2rem; padding: 0.38rem 0.8rem; font-size: var(--fs-sm); }
.price-detail { margin-top: var(--s-8); }
.price-detail__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.price-detail__meta { display: flex; gap: var(--s-6); margin-top: var(--s-2); color: var(--text-dim); font-size: var(--fs-sm); flex-wrap: wrap; }
.price-current strong { color: var(--forest-900); font-size: var(--fs-lg); }
.price-current--na { color: var(--text-muted); }
.price-best strong { color: var(--success); }

.chart-container {
  position: relative;
  height: clamp(19rem, 50vw, 26rem);
  margin-bottom: var(--s-8);
  padding: clamp(0.75rem, 3vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.price-alert-form { padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.price-alert-form h3 { margin-bottom: var(--s-2); }
.price-alert-form .text-dim { margin-bottom: var(--s-4); font-size: var(--fs-sm); }
#alert-form { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
#alert-form .form-input { width: auto; min-width: min(100%, 16rem); flex: 1; }
#alert-form .form-input--narrow { max-width: 11rem; min-width: 9rem; }
.alert-msg { margin-top: var(--s-4); font-size: var(--fs-sm); }
.alert-msg--ok { color: var(--success); }
.alert-msg--err { color: var(--danger); }
.price-empty { padding-block: var(--s-12); text-align: center; }

/* Lists, cookie banner, footer, and pagination */
.article-list { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.article-list-title { margin-top: var(--s-10); }
.article-list-title--spacious { margin-top: var(--s-12); }
.article-list .card h3 { margin-bottom: var(--s-2); }
.article-list .card h3 a { color: inherit; text-decoration: none; }
.article-list .card p:last-child { margin-bottom: 0; }

.cookie-consent {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: var(--z-overlay);
  max-height: min(80dvh, 28rem);
  padding-block: var(--s-4) max(var(--s-4), env(safe-area-inset-bottom));
  overflow-y: auto;
  border-top: 1px solid var(--border-light);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 -16px 44px rgba(45, 42, 34, 0.13);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.cookie-consent__inner {
  display: flex;
  width: min(100%, var(--container-max));
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.cookie-consent__text { max-width: 45rem; margin: 0; color: var(--text-dim); font-size: var(--fs-sm); line-height: var(--lh-normal); }
.cookie-consent__text a { color: var(--cedar-700); font-weight: 700; }
.cookie-consent__buttons { display: flex; flex: 0 0 auto; gap: var(--s-2); }

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--forest-900);
  color: rgba(255,253,248,0.7);
}

.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(10rem, 1fr)); gap: clamp(2rem, 7vw, 5rem); margin-bottom: var(--s-10); }
.footer-brand { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--ivory-050); font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; text-decoration: none; }
.footer-brand:hover { color: #f2cfb8; }
.footer-intro p { max-width: 23rem; color: rgba(255,253,248,0.64); font-size: var(--fs-sm); }
.footer-column h4 { margin-bottom: var(--s-3); color: #f2cfb8; font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.footer-column ul { display: grid; margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 0; }
.footer-column a { display: inline-flex; min-height: 2.75rem; align-items: center; color: rgba(255,253,248,0.72); font-size: var(--fs-sm); text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-bottom { padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.13); }
.footer-bottom p { margin: 0; color: rgba(255,253,248,0.5); font-size: var(--fs-xs); }

[role="navigation"][aria-label="Pagination Navigation"] { margin-top: var(--s-10); }
[role="navigation"][aria-label="Pagination Navigation"] > div:first-child { display: flex; justify-content: space-between; gap: var(--s-3); }
[role="navigation"][aria-label="Pagination Navigation"] > div:last-child { display: none; }
[role="navigation"][aria-label="Pagination Navigation"] a,
[role="navigation"][aria-label="Pagination Navigation"] span { min-height: 2.75rem; }
[role="navigation"][aria-label="Pagination Navigation"] a { color: var(--forest-800); }
[role="navigation"][aria-label="Pagination Navigation"] svg { width: 1.1rem; height: 1.1rem; }

/* Small shared utilities retained for existing components. */
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s-2); }
.gap-4 { gap: var(--s-4); }
.mt-2 { margin-top: var(--s-2); }
.mt-4 { margin-top: var(--s-4); }
.mt-8 { margin-top: var(--s-8); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-4 { margin-bottom: var(--s-4); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-home__grid { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr); gap: var(--s-8); }
  .hero-home__visual { min-height: 25rem; }
  .tools-grid,
  .trust-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-compact__item:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--border); }
  .trust-compact__item:nth-child(4) { border-top: 1px solid var(--border); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .planner-btn { grid-column: 1 / -1; justify-self: start; }
}

/* Compact tablet and mobile */
@media (max-width: 768px) {
  .section { padding-block: clamp(3.25rem, 10vw, 4.75rem); }
  .hero-home__grid { grid-template-columns: 1fr; }
  .hero-home__visual { min-height: 25rem; width: min(100%, 34rem); margin-inline: auto; }
  .hero-home__text { text-align: center; }
  .hero-home__subtitle { margin-inline: auto; }
  .hero-home__cta { justify-content: center; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 14rem; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail__aside-card { position: static; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-inputs .btn { width: 100%; }
  .calc-product { grid-template-columns: minmax(0, 1fr) auto; }
  .calc-product__bar { grid-column: 1 / -1; grid-row: 2; }
  .planner-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-btn { width: 100%; }
  .footer-grid { grid-template-columns: 1.25fr 1fr 1fr; gap: var(--s-6); }
  .pros-cons { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: repeat(var(--compare-count, 2), minmax(0, 1fr)); gap: var(--s-3); }
  .compare-cell--label { grid-column: 1 / -1; }
}

/* Phone, including the 390px acceptance width. */
@media (max-width: 600px) {
  .container { padding-inline: 1rem; }
  .hero { text-align: start; }
  .hero h1,
  .hero .subtitle,
  .hero .lead { margin-inline: 0; }
  .hero-home { padding-block-start: 3.5rem; }
  .hero-home__visual { min-height: 23rem; padding: var(--s-4); }
  .hero-preview-card { padding: var(--s-4); }
  .hero-preview-row__brand { max-width: 11rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .stat-item { padding: var(--s-3); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.14); }
  .stat-item:nth-child(3) { border-inline-start: 0; }
  .tools-grid,
  .trust-compact,
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .trust-compact__item + .trust-compact__item { border-inline-start: 0; border-top: 1px solid var(--border); }
  .section-header--row { align-items: stretch; flex-direction: column; }
  .section-header--row .btn { align-self: flex-start; }
  .section > .container > .prose,
  .article .container > .prose { margin-inline: -0.25rem; padding: 1.25rem; border-radius: var(--radius-lg); }
  .prose h2 { margin-top: var(--s-10); }
  .comparison-table { min-width: 34rem; }
  .compare-table { min-width: 38rem; }
  .quiz-options--compact { grid-template-columns: 1fr; }
  .quiz-nav .btn { flex: 1; }
  .email-capture__form { flex-direction: column; }
  .power-stats { grid-template-columns: 1fr; }
  .calc-product { grid-template-columns: 1fr; align-items: start; }
  .calc-product__bar { grid-column: 1; grid-row: auto; width: 100%; }
  .calc-product .btn { width: 100%; }
  .planner-inputs { grid-template-columns: 1fr; }
  .planner-btn { grid-column: auto; }
  .price-detail__meta { flex-direction: column; gap: var(--s-2); }
  #alert-form { align-items: stretch; flex-direction: column; }
  #alert-form .form-input,
  #alert-form .form-input--narrow { width: 100%; max-width: none; }
  .cookie-consent__inner { align-items: stretch; flex-direction: column; }
  .cookie-consent__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-intro { grid-column: 1 / -1; }
  .footer-column a { overflow-wrap: anywhere; }
  .source-list__item { flex-wrap: wrap; }
  .source-list__authority { margin-inline-start: 2rem; }
}

@media (max-width: 390px) {
  .hero-home__text h1 { font-size: 2.55rem; }
  .hero-home__cta { align-items: stretch; flex-direction: column; }
  .hero-home__cta .btn { width: 100%; }
  .hero-home__visual { min-height: 21rem; }
  .hero-preview-row__info { align-items: flex-start; flex-direction: column; gap: 0; }
  .hero-preview-row__brand { max-width: 100%; }
  .compare-actions { align-items: stretch; flex-direction: column; }
  .compare-actions .btn { width: 100%; }
  .cookie-consent__buttons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
}

@media (min-width: 640px) {
  [role="navigation"][aria-label="Pagination Navigation"] > div:first-child { display: none; }
  [role="navigation"][aria-label="Pagination Navigation"] > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cookie-consent,
  .btn { display: none !important; }
  body { background: #fff; color: #111; }
  .section { padding-block: 1rem; }
  .section > .container > .prose { padding: 0; border: 0; box-shadow: none; }
}

/* ============================================================
   Compare page — progressive product browser
   ============================================================ */

/* Toolbar */
.browser-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.browser-search { flex: 1 1 200px; min-width: 160px; }
.browser-search input {
  width: 100%;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
}
.browser-search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.browser-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.filter-chip select {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.filter-chip select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.browser-count {
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  white-space: nowrap;
}

/* Card grid */
.browser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.browser-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3);
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  user-select: none;
}
.browser-card:hover {
  border-color: var(--cedar-400);
  box-shadow: var(--shadow-sm);
}
.browser-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.browser-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.browser-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Card image */
.browser-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: var(--s-3);
  background: var(--bg-elevated);
}
.browser-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.browser-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-elevated), var(--stone-100));
}

/* Card body */
.browser-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.browser-card__brand {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 650;
}
.browser-card__model {
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.browser-card__type {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.browser-card__score {
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--success);
  font-variant-numeric: tabular-nums;
}
.browser-card__score--na {
  color: var(--text-muted);
  font-weight: 550;
}

/* Card checkmark indicator */
.browser-card__check {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.browser-card.selected .browser-card__check {
  display: flex;
}

/* Empty state */
.browser-empty {
  text-align: center;
  padding: var(--s-12);
  color: var(--text-dim);
  font-size: var(--fs-lg);
}

/* Sticky selection tray */
.compare-tray {
  position: sticky;
  bottom: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--s-6);
}
.compare-tray__slots {
  display: flex;
  gap: var(--s-2);
  flex: 1 1 auto;
}
.compare-tray__slot {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  min-width: 80px;
  padding: var(--s-1) var(--s-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xs);
  font-size: var(--fs-xs);
}
.compare-tray__slot:has(.compare-tray__slot-label) {
  border-style: solid;
  background: var(--accent-dim);
}
.compare-tray__slot-label {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-tray__slot-empty {
  color: var(--text-muted);
}
.compare-tray__remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 var(--s-1);
  border-radius: var(--radius-xs);
}
.compare-tray__remove:hover {
  color: var(--danger);
}
.compare-tray__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.compare-tray__count {
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

/* Toast notification */
.compare-toast {
  position: fixed;
  bottom: var(--s-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  padding: var(--s-3) var(--s-5);
  background: var(--charcoal-950);
  color: var(--ivory-050);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* Compare results */
.compare-results {
  margin-top: var(--s-8);
}
.compare-results h2 {
  margin-bottom: var(--s-4);
}
.compare-fab { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: var(--z-toast); padding: .8rem 1.2rem; border: 0; border-radius: 999px; background: var(--gradient-accent); color: #141210; font-weight: 800; box-shadow: var(--shadow-lg); cursor: pointer; }
.compare-radar { display: block; width: min(100%, 520px); margin: var(--s-5) auto; color: var(--text-dim); }
.compare-results__header,.compare-results__tools,.diff-toggle { display:flex; align-items:center; gap:var(--s-3); }
.compare-results__header { justify-content:space-between; flex-wrap:wrap; }
@media (prefers-reduced-motion: reduce) { .compare-fab,.load-bar__fill { transition:none !important; animation:none !important; } }

/* Affiliate note */
.compare-affiliate-note {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Badge variants */
.badge--solid { background: var(--accent); color: #fff; }
.badge--success { background: var(--success-dim); color: var(--success); }

/* Spec not-available */
.spec-na { color: var(--text-muted); }
.compare-table__divider td {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding-top: var(--s-4);
}

/* Mobile */
@media (max-width: 640px) {
  .browser-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .browser-search { width: 100%; }
  .browser-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--s-1);
  }
  .filter-chip { flex-shrink: 0; }
  .browser-count { margin-left: 0; text-align: right; }
  .browser-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--s-2);
  }
  .compare-tray {
    flex-wrap: wrap;
    border-radius: var(--radius-sm);
  }
  .compare-tray__slots {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  .compare-tray__actions {
    width: 100%;
    justify-content: flex-end;
  }
  .compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .browser-card,
  .compare-tray {
    transition: none;
  }
}

/* ============================================================
   NORDIC SPA LUX — dark premium redesign layer (2026-08-14)
   Appended: later declarations win. Palette: espresso #141210,
   walnut surfaces, ivory text, amber copper + sage teal accents.
   Fraunces display serif + Inter body. No content/markup changes.
   ============================================================ */

:root {
  color-scheme: dark;

  /* scale remap — roles: ivory=light text, stone=elevated dark bg,
     forest=sage accent / light text, cedar=amber copper */
  --ivory-050: #f5efe6;
  --ivory-100: #ede4d3;
  --ivory-200: #e5dcc9;
  --stone-100: #262019;
  --stone-200: #2c2620;
  --stone-300: #4a4239;
  --charcoal-950: #141210;
  --charcoal-800: #e9e0d1;
  --charcoal-650: #cfc4b2;
  --charcoal-500: #8f8375;
  --forest-050: #2a241d;
  --forest-100: #23201a;
  --forest-400: #7fb5a3;
  --forest-700: #7fb5a3;
  --forest-800: #f0e7da;
  --forest-900: #f5efe6;
  --cedar-050: #2a2118;
  --cedar-100: #3a2c1e;
  --cedar-400: #e8964a;
  --cedar-600: #d97a2b;
  --cedar-700: #e8964a;
  --cedar-800: #f0b078;

  --bg: #141210;
  --bg-elevated: #262019;
  --bg-card: #1e1a17;
  --bg-hover: #2a241d;
  --surface: #1e1a17;
  --border: #3a332c;
  --border-light: #4a4239;
  --text: #f5efe6;
  --text-dim: #b8ab98;
  --text-muted: #8f8375;
  --accent: #e8964a;
  --accent-hover: #f0aa6b;
  --accent-dim: rgba(232, 150, 74, 0.12);
  --accent-glow: rgba(232, 150, 74, 0.22);
  --success: #7fb5a3;
  --success-dim: rgba(127, 181, 163, 0.14);
  --warning: #d9a648;
  --warning-dim: rgba(217, 166, 72, 0.12);
  --danger: #d97b6c;
  --danger-dim: rgba(217, 123, 108, 0.12);
  --info: #8fb8c9;
  --info-dim: rgba(143, 184, 201, 0.12);

  --gradient-hero: linear-gradient(165deg, #141210 0%, #1a1512 55%, #171210 100%);
  --gradient-accent: linear-gradient(135deg, #e8964a, #d97a2b);
  --gradient-card: linear-gradient(150deg, #211c17 0%, #1a1512 100%);

  --font-serif: "Fraunces", Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 28px 72px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 18px 42px var(--accent-glow);
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.3);
}

/* Document */
body {
  background:
    radial-gradient(circle at 12% -8%, rgba(232, 150, 74, 0.07), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(127, 181, 163, 0.045), transparent 30rem),
    var(--bg);
}

/* tactile grain — subtle fractal noise over dark base */
body::after {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
  opacity: 0.035;
  content: "";
}

::selection { background: var(--cedar-100); color: var(--ivory-050); }

.skip-link {
  background: var(--accent);
  color: #141210;
}

/* Controls */
.btn-primary {
  border-color: rgba(217, 122, 43, 0.6);
  background: var(--gradient-accent);
  color: #141210;
  box-shadow: 0 8px 22px rgba(232, 150, 74, 0.28);
}

.btn-primary:hover {
  border-color: #d97a2b;
  background: linear-gradient(135deg, #f0a35e, #e8964a);
  color: #141210;
  box-shadow: 0 12px 30px rgba(232, 150, 74, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border-color: var(--border-light);
  background: rgba(30, 26, 23, 0.6);
  color: var(--ivory-050);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: #f0b078;
}

.btn:disabled { opacity: 0.45; }

.form-control:focus,
.form-select:focus,
.form-input:focus,
.email-capture__input:focus,
.calc-select:focus,
.input-with-unit input:focus {
  background-color: #262019;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-select,
.calc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23b8ab98' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.25 6 6.25l5-5'/%3E%3C/svg%3E");
}

/* Badges */
.badge--success,
.availability-status--available,
.availability-status--low_stock,
.confidence-pill--high,
.confidence--high,
.avail-badge--in_stock { border-color: rgba(127, 181, 163, 0.32); }

.badge--warning,
.confidence-pill--medium,
.confidence--medium,
.avail-badge--backorder { border-color: rgba(217, 166, 72, 0.32); }

.badge--danger,
.availability-status--unavailable,
.availability-status--discontinued,
.confidence-pill--low,
.confidence--low,
.avail-badge--out_of_stock { border-color: rgba(217, 123, 108, 0.32); }

.badge--info { border-color: rgba(143, 184, 201, 0.32); }

.badge--solid {
  border-color: var(--accent);
  background: var(--gradient-accent);
  color: #141210;
}

/* Sections */
.section--alt,
.section--articles {
  border-block: 1px solid rgba(58, 51, 44, 0.9);
  background: rgba(38, 32, 25, 0.45);
}

.section--trust { background: transparent; }

.section--cta {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(232, 150, 74, 0.13), transparent 55%),
    #191512;
}

/* Homepage hero — amber lantern glow + pulse */
.hero-home::before {
  background:
    radial-gradient(ellipse 60% 55% at 78% 12%, rgba(232, 150, 74, 0.14), transparent 65%),
    radial-gradient(ellipse 45% 40% at 8% 85%, rgba(127, 181, 163, 0.07), transparent 60%);
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.hero-home::after {
  inset-block-start: -8rem;
  border: 1px solid rgba(232, 150, 74, 0.16);
  box-shadow: 0 0 14rem 6rem rgba(232, 150, 74, 0.05);
}

.hero-badge {
  border: 1px solid rgba(232, 150, 74, 0.35);
  background: rgba(232, 150, 74, 0.09);
  color: #f0b078;
}

.hero-home__visual {
  background:
    linear-gradient(180deg, rgba(20, 18, 16, 0.32) 0%, rgba(15, 13, 11, 0.88) 78%),
    url('/images/hero/sauna-interior.webp') center / cover;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55), 0 0 6rem rgba(232, 150, 74, 0.07);
}

.hero-preview-card {
  border: 1px solid rgba(74, 66, 57, 0.9);
  background: rgba(30, 26, 23, 0.9);
}

.hero-preview-row { border-bottom: 1px solid rgba(58, 51, 44, 0.6); }

.hero-preview-row__bar {
  background: linear-gradient(90deg, rgba(127, 181, 163, 0.1), rgba(232, 150, 74, 0.14));
}

/* Steam wisps — injected by motion.js into .hero-home__visual */
.steam {
  position: absolute;
  inset-block-end: -3rem;
  width: 9rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(245, 239, 230, 0.5), transparent 65%);
  filter: blur(26px);
  opacity: 0;
  pointer-events: none;
  animation: steam-rise var(--steam-dur, 15s) ease-in-out var(--steam-delay, 0s) infinite;
}

@keyframes steam-rise {
  0% { transform: translateY(30%) translateX(0) scaleY(0.85); opacity: 0; }
  18% { opacity: 0.09; }
  55% { opacity: 0.06; }
  100% { transform: translateY(-78%) translateX(9%) scaleY(1.15); opacity: 0; }
}

/* Hero entrance (elements prepared by motion.js) */
@keyframes word-rise {
  from { opacity: 0; transform: translateY(0.85em); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.motion-hero .hero-badge { animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
.motion-hero .hero-home__text h1 .w {
  display: inline-block;
  animation: word-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.18s + var(--i, 0) * 0.09s);
}
.motion-hero .hero-home__subtitle { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
.motion-hero .hero-home__cta { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }
.motion-hero .hero-home__trust { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both; }
.motion-hero .hero-home__visual { animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

/* Stats bar — amber numerals, count-up via motion.js */
.stats-bar {
  border-bottom: 1px solid var(--border);
  background: #191512;
}

.stat-item__num { color: var(--accent); }

/* Tools */
.tool-card { background: var(--gradient-card); }

.tool-card:hover {
  border-color: rgba(232, 150, 74, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 2.4rem rgba(232, 150, 74, 0.1);
  transform: translateY(-6px);
}

.tool-card__icon { background: rgba(232, 150, 74, 0.1); filter: saturate(0.9); transition: transform var(--t-base); }
.tool-card:hover .tool-card__icon { transform: scale(1.08); }
.tool-card::before { background: linear-gradient(var(--accent), var(--accent-hover)); }

/* Article cards */
.article-card img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.article-card:hover img { transform: scale(1.05); }
.article-card:hover {
  border-color: rgba(232, 150, 74, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

/* Prose / trust pages */
.section > .container > .prose,
.article .container > .prose {
  border: 1px solid rgba(58, 51, 44, 0.9);
  background: rgba(30, 26, 23, 0.62);
}

.affiliate-disclosure,
.trust-note {
  border: 1px solid rgba(232, 150, 74, 0.22);
  border-inline-start: 3px solid var(--accent);
  background: rgba(232, 150, 74, 0.06);
}

.comparison-table tbody tr:hover > *,
.compare-table tbody tr:hover > * { background: rgba(232, 150, 74, 0.05); }

/* Compare page */
.browser-card { transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base); }

.browser-card:hover {
  border-color: rgba(232, 150, 74, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 1.8rem rgba(232, 150, 74, 0.08);
  transform: translateY(-3px);
}

.browser-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 26px rgba(232, 150, 74, 0.16);
}

.browser-card__check {
  background: var(--gradient-accent);
  color: #141210;
  animation: check-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes check-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.browser-grid { content-visibility: auto; contain-intrinsic-size: auto 40rem; }
.article-list { content-visibility: auto; contain-intrinsic-size: auto 30rem; }

/* Score bars — glassy fill keeps label legible on dark track */
.score-bar__fill,
.match-bar__fill {
  opacity: 0.42;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.reveal.on .score-bar__fill,
.score-bar__fill.on { opacity: 0.55; }

.score-bar__label { color: var(--ivory-050); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85); }

.hero-preview-row__bar { transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1); }

/* Picker (price tracker / legacy compare) */
.picker-card.selected {
  border-color: var(--success);
  background: rgba(127, 181, 163, 0.08);
  box-shadow: 0 0 0 1px var(--success);
}

.picker-card.selected::after {
  background: var(--success);
  color: #141210;
  animation: check-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Sticky compare tray — slides up when armed */
.compare-tray {
  border: 1px solid var(--border);
  background: rgba(30, 26, 23, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 150, 74, 0.06);
}

.compare-tray__slot:has(.compare-tray__slot-label) {
  border-color: rgba(232, 150, 74, 0.4);
  animation: slot-fill 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes slot-fill {
  from { transform: scale(0.8); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

/* Finder quiz */
.quiz-question.active { animation: step-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes step-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

.quiz-option__card {
  background: var(--bg-card);
}

.quiz-option:hover .quiz-option__card {
  border-color: rgba(232, 150, 74, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.quiz-option input:checked + .quiz-option__card {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.quiz-option__card::after {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #141210;
  content: "✓";
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-option input:checked + .quiz-option__card::after {
  opacity: 1;
  transform: scale(1);
}

.quiz-option__card { position: relative; padding-inline-end: 3.4rem; }

.result-card__badge {
  background: var(--gradient-accent);
  color: #141210;
  animation: check-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.result-card--top {
  border-color: rgba(232, 150, 74, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4), 0 0 2.2rem rgba(232, 150, 74, 0.1);
}

/* Product detail */
.product-card__image img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.product-card:hover .product-card__image img { transform: scale(1.03); }

/* Power calculator */
.power-stat--highlight {
  background: var(--gradient-accent);
}

.power-stat--highlight .power-stat__value { color: #141210; }
.power-stat--highlight .power-stat__label { color: rgba(20, 18, 16, 0.78); }

.planner-btn {
  border-color: transparent;
  background: var(--gradient-accent);
  color: #141210;
}

.planner-btn:hover {
  background: linear-gradient(135deg, #f0a35e, #e8964a);
  box-shadow: 0 10px 26px rgba(232, 150, 74, 0.35);
}

/* Cookie banner — dark glass, slide-up */
.cookie-consent {
  border-top: 1px solid rgba(58, 51, 44, 0.95);
  background: rgba(20, 18, 16, 0.94);
  box-shadow: 0 -16px 44px rgba(0, 0, 0, 0.5);
  animation: tray-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tray-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Footer — deepest espresso */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0f0d0b;
}

.footer-brand:hover { color: #f0b078; }
.footer-column h4 { color: var(--accent); }

/* Scroll-reveal (classes added by motion.js only — no-JS users unaffected) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

/* Header scrolled state — toggled by motion.js sentinel */
.site-header.scrolled {
  border-bottom-color: rgba(58, 51, 44, 0.9);
  background: rgba(20, 18, 16, 0.88);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

/* Brief fidelity: hero H1 Fraunces 600 clamp(2.5rem, 6vw, 4.5rem) */
.hero-home__text h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 600; font-variation-settings: "opsz" 72; }

/* Compare selection-first workspace */
.selection-workspace[hidden],.compare-results[hidden]{display:none!important}.selection-intro,.compare-results__title{display:flex;align-items:flex-start;gap:1rem}.selection-intro{margin-bottom:1.25rem}.selection-intro h2,.compare-results__title h2{margin:0}.selection-intro p,.compare-results__title p{margin:.25rem 0 0;color:var(--color-text-muted)}.selection-step{display:grid;place-items:center;flex:0 0 2.5rem;height:2.5rem;border-radius:50%;background:var(--color-accent,#d99455);color:#18130f;font-weight:800;letter-spacing:.03em}.browser-toolbar--prominent{position:sticky;top:76px;z-index:12;padding:1rem;border:1px solid rgba(217,148,85,.45);border-radius:16px;background:rgba(31,26,22,.97);box-shadow:0 16px 40px rgba(0,0,0,.22);backdrop-filter:blur(16px)}.browser-filters__label{align-self:center;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--color-accent,#d99455)}.compare-results--focus{margin-top:0}.compare-results__header{align-items:flex-start}.compare-results__title{max-width:42rem}.compare-results__tools{justify-content:flex-end}.compare-tray{z-index:20}
@media(max-width:760px){.browser-toolbar--prominent{top:62px}.browser-filters__label{width:100%}.selection-intro,.compare-results__title{gap:.65rem}.selection-step{flex-basis:2rem;height:2rem;font-size:.8rem}.compare-results__header{gap:1rem}.compare-results__tools{justify-content:flex-start}}

.selection-workspace--results .selection-intro,.selection-workspace--results .browser-toolbar,.selection-workspace--results .browser-grid,.selection-workspace--results .browser-empty,.selection-workspace--results .compare-fab{display:none!important}

/* ============================================================
   COMPARE WAVE 3 — sticky sidebar, 4-way compare, filter UX
   ============================================================ */

.compare-main { min-width: 0; }

/* Desktop: sidebar + main two-column workspace */
@media (min-width: 1024px) {
  .selection-workspace {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
  .compare-sidebar {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 2px;
  }
  .compare-sidebar .browser-toolbar--prominent {
    position: static;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
    padding: .9rem;
  }
  .compare-sidebar .browser-filters { flex-direction: column; gap: .5rem; }
  .compare-sidebar .browser-filters__label { display: flex; align-items: center; gap: .45rem; }
  .compare-sidebar .filter-chip select,
  .compare-sidebar .browser-search input { width: 100%; }
  .compare-sidebar .browser-count { margin-left: 0; }
  .compare-sidebar .compare-clear-btn { align-self: flex-start; }
  .compare-sidebar .compare-tray {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    margin-bottom: 0;
    padding: 1rem;
  }
  .compare-sidebar .compare-tray__slots { flex-direction: column; gap: .5rem; }
  .compare-sidebar .compare-tray__slot { min-width: 0; justify-content: space-between; padding: .5rem .65rem; }
  .compare-sidebar .compare-tray__actions { justify-content: space-between; }
  .compare-sidebar .compare-tray__actions .btn { width: 100%; }
  .compare-fab { display: none !important; }
  /* 4-way summary rows at reduced main width */
  .compare-row { grid-template-columns: minmax(6.5rem, .5fr) repeat(var(--compare-count, 2), minmax(6rem, 1fr)); }
}

/* Mobile/tablet: sidebar dissolves into top flow; toolbar keeps page-wide sticky */
@media (max-width: 1023.98px) {
  .compare-sidebar { display: contents; }
  .compare-main { display: block; }
  .selection-workspace--results .compare-sidebar,
  .selection-workspace--results .compare-tray { display: none !important; }
}

/* Active filter count badge */
.browser-filters__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 .3em;
  border-radius: 999px;
  background: var(--accent);
  color: #141210;
  font-size: .72rem;
  font-weight: 800;
}

/* Radar legend */
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.1rem;
  margin: -0.25rem auto var(--s-4);
  font-size: var(--fs-sm);
  color: var(--text-dim);
}
.radar-legend__item { display: inline-flex; align-items: center; gap: .45rem; }
.radar-legend__swatch { width: .8rem; height: .8rem; border-radius: 3px; display: inline-block; }

/* Mobile spec table: sticky first column + guaranteed scroll room */
@media (max-width: 768px) {
  .compare-table { min-width: 42rem; }
  .compare-table td.spec-label,
  .compare-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
  }
  .compare-table thead th:first-child { z-index: 3; background: var(--stone-100); }
}

/* ============ Category cards (Shop by Category / /products) ============ */
.cat-cards__title { margin-bottom: 0.35rem; }
.cat-cards__subtitle { color: var(--text-dim); margin-top: 0; max-width: 62ch; }
.cat-card-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 960px) { .cat-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-card-grid { grid-template-columns: 1fr; } }
.cat-card-item { display: flex; }
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  padding: 1.25rem 1.25rem 1.1rem;
  background:
    linear-gradient(160deg, var(--card-tint, rgba(166, 95, 60, 0.06)) 0%, transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.cat-card:hover,
.cat-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(34, 40, 36, 0.10);
  border-color: var(--accent);
  color: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .cat-card:hover, .cat-card:focus-visible { transform: none; }
}
.cat-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(150deg, var(--icon-a, var(--cedar-600)), var(--icon-b, var(--forest-700)));
  flex: 0 0 auto;
}
.cat-card__icon svg { width: 26px; height: 26px; }
.cat-card--cabin          { --icon-a: #a65f3c; --icon-b: #6e3b29; --card-tint: rgba(166, 95, 60, 0.07); }
.cat-card--tent           { --icon-a: #618373; --icon-b: #204638; --card-tint: rgba(97, 131, 115, 0.09); }
.cat-card--blanket        { --icon-a: #b0724f; --icon-b: #87492f; --card-tint: rgba(176, 114, 79, 0.08); }
.cat-card--barrel         { --icon-a: #8a5b19; --icon-b: #55350d; --card-tint: rgba(138, 91, 25, 0.08); }
.cat-card--outdoor-cabin  { --icon-a: #285444; --icon-b: #17372d; --card-tint: rgba(40, 84, 68, 0.08); }
.cat-card--steam          { --icon-a: #555f57; --icon-b: #222824; --card-tint: rgba(85, 95, 87, 0.08); }
.cat-card--heater         { --icon-a: #b3543a; --icon-b: #5c2417; --card-tint: rgba(179, 84, 58, 0.08); }
.cat-card__name { margin: 0.2rem 0 0; font-size: 1.05rem; line-height: 1.25; }
.cat-card__count {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.cat-card__count--soon { color: var(--text-dim); font-weight: 500; }
.cat-card__hook {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.cat-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.cat-cards__footer { margin-top: 1.25rem; }

/* ============ DEALS BLOCK (real price drops from price_history) ============ */
.section--deals {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-block: 1px solid rgba(216, 204, 187, 0.72);
  background: var(--cedar-050);
}
.section--deals .section-header { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.section--deals .section-header h2 { margin-bottom: 0.35rem; }
.section--deals .section-header p { max-width: 40rem; margin-inline: auto; color: var(--text-dim); font-size: var(--fs-base); }
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.deal-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  background: #fff;
}
.deal-card__top { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.deal-card__pct {
  font-size: 0.95rem;
  font-weight: 800;
}
.deal-card__name {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}
.deal-card__prices { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.deal-card__was { color: var(--text-dim); }
.deal-card__now { font-size: 1.15rem; color: var(--forest-900); }
.deal-card__save { margin: 0; font-size: 0.85rem; color: var(--success, #2f6b4f); font-weight: 600; }
.deal-card__cta { margin-top: auto; text-align: center; }
.deals-note { margin-top: 1rem; text-align: center; }

/* ---- Category facet rail (slice 3, portable-steam wattage bands) ---- */
.facet-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0 1.25rem;
}
.facet-rail__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-right: 0.25rem;
}
.facet-chip {
  appearance: none;
  border: 1px solid rgba(30, 40, 34, 0.25);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.facet-chip:hover { border-color: var(--forest-700); }
.facet-chip.is-active {
  background: var(--forest-700, #204638);
  border-color: var(--forest-700, #204638);
  color: #fff;
}
.facet-chip__count { opacity: 0.75; font-weight: 500; }
