/* ==========================================================================
   KitPlus Auctions — 2025 Market Report
   Production Stylesheet
   Executive Intelligence + Broadcast Editorial Warmth
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --lime: #a3c42e;
  --lime-dark: #7a9422;
  --lime-soft: #c5d96e;
  --lime-bg: #f4f7e8;
  --tangerine: #ff9902;
  --tangerine-soft: #ffb84d;
  --tangerine-bg: #fff5e6;
  --walnut: #333132;
  --walnut-light: #4a4849;
  --walnut-muted: #6b696a;
  --white: #ffffff;
  --off-white: #fafaf8;
  --warm-grey-1: #f5f4f2;
  --warm-grey-2: #eae8e5;
  --warm-grey-3: #d4d0cc;
  --warm-grey-4: #9e9a96;
  --text-primary: #333132;
  --text-secondary: #524f50;
  --text-tertiary: #8a8685;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1080px;
  --nav-height: 52px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-height);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--walnut);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; outline: 2px solid var(--tangerine); outline-offset: 2px; }

/* --- Typography --- */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-dark);
}

h1, .h1 { font-size: 2.625rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h2, .h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }

.subtitle { font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); }
.datestamp { font-size: 0.8125rem; color: var(--text-tertiary); }
.label-sm { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--warm-grey-2); }
.section--tinted { background: var(--warm-grey-1); }

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(51, 49, 50, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: box-shadow 300ms ease;
}
.site-nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.18); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 28px; height: 28px;
  background: var(--lime);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--walnut);
}

.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links a {
  display: block;
  padding: 0 0.8rem;
  height: var(--nav-height);
  line-height: var(--nav-height);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  position: relative;
  transition: color 150ms;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.8rem; right: 0.8rem;
  height: 2px;
  background: var(--tangerine);
  border-radius: 1px 1px 0 0;
}
.nav-links a:focus-visible { outline: 2px solid var(--tangerine); outline-offset: -2px; border-radius: 2px; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 3.5px solid currentColor;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #2a2829;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 0.375rem 0;
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  height: auto;
  line-height: 1.4;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}
.nav-dropdown-menu a::after { display: none; }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--white); cursor: pointer;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  padding: 10px;
}
.nav-toggle-bar {
  display: block; width: 20px; height: 2px;
  background: currentColor; position: relative;
}
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: '';
  position: absolute;
  width: 20px; height: 2px;
  background: currentColor; left: 0;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--lime);
  width: 0%;
  transition: width 100ms linear;
}

/* --- Hero: Light-Background Treatment --- */
.hero {
  padding: 3rem 0 2.5rem;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

/* Very subtle horizontal rule texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--warm-grey-2) 1px, transparent 1px);
  background-size: 100% 72px;
  opacity: 0.35;
  pointer-events: none;
}

/* Faint lime green masthead rule */
.hero-masthead-rule {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--lime);
  margin-bottom: var(--space-lg, 1.5rem);
}

.hero-content { position: relative; z-index: 1; }

.hero .eyebrow {
  color: var(--lime-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero .eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 60px;
  background: var(--lime);
  opacity: 0.6;
}

.hero h1 { color: var(--walnut); max-width: 700px; margin-bottom: 0.875rem; }
.hero .subtitle { color: var(--text-secondary); max-width: 580px; margin-bottom: 0.5rem; }
.hero .datestamp { margin-bottom: 2.5rem; color: var(--text-tertiary); }

/* KPI Strip — light treatment */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.kpi-strip--secondary {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}

.kpi-card {
  background: var(--white);
  border: 1px solid var(--warm-grey-2);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
  transition: border-color 150ms, box-shadow 150ms;
}
.kpi-card:hover { border-color: var(--warm-grey-3); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.kpi-card--primary { border-top: 3px solid var(--lime); padding-top: calc(1.25rem - 2px); }

.kpi-value {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--walnut);
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.kpi-card--primary .kpi-value { font-size: 2.125rem; }
.kpi-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.hero-context {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
  padding-top: 0.5rem;
  border-top: 1px solid var(--warm-grey-2);
}

/* --- Section Header --- */
.section-header { margin-bottom: 1.5rem; }
.section-header .eyebrow {
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-header .eyebrow::after {
  content: '';
  display: block; height: 1px; width: 48px;
  background: var(--lime); opacity: 0.6;
}
.section-title { margin-bottom: 0.375rem; }
.section-desc { font-size: 0.9375rem; color: var(--text-tertiary); }

/* --- Insight Strip --- */
.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--warm-grey-2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.insight-metric {
  background: var(--warm-grey-1);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.insight-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--walnut);
  line-height: 1.1;
  margin-bottom: 4px;
}
.insight-desc {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-tertiary);
}

/* --- Findings List --- */
.findings-list { list-style: none; margin-bottom: 1.25rem; }
.findings-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.findings-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.findings-list li strong { color: var(--text-primary); font-weight: 600; }

/* --- Insight Panels (What It Indicates / Why It Matters) --- */
.insight-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.insight-panel {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid;
  background: var(--warm-grey-1);
  border-radius: 0 4px 4px 0;
}
.insight-panel--indicates { border-color: var(--lime); }
.insight-panel--matters { border-color: var(--tangerine); }
.insight-panel h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
}
.insight-panel--indicates h3 { color: var(--lime-dark); }
.insight-panel--matters h3 { color: #c87a02; }
.insight-panel ul { list-style: none; }
.insight-panel li {
  position: relative;
  padding-left: 0.875rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.insight-panel li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.68em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--warm-grey-3);
}

/* --- Callout Boxes --- */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: 5px;
  margin-bottom: 1.25rem;
}
.callout--insight { background: var(--warm-grey-1); border: 1px solid var(--warm-grey-2); }
.callout--highlight { background: var(--tangerine-bg); border-left: 3px solid var(--tangerine); }
.callout--data { background: var(--lime-bg); border-left: 3px solid var(--lime); }
.callout p { font-size: 0.9375rem; line-height: 1.65; color: var(--text-secondary); }
.callout p strong { color: var(--text-primary); font-weight: 600; }

/* --- Data Tables --- */
.data-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--warm-grey-2);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.data-table caption {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--warm-grey-1);
  border-bottom: 1px solid var(--warm-grey-2);
}
.data-table thead th {
  padding: 0.625rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  background: var(--off-white);
  border-bottom: 2px solid var(--warm-grey-2);
  white-space: nowrap;
}
.data-table thead th.num { text-align: right; }
.data-table tbody td {
  padding: 0.6875rem 1rem;
  border-bottom: 1px solid var(--warm-grey-1);
  color: var(--text-primary);
  line-height: 1.45;
}
.data-table tbody td.num { text-align: right; }
.data-table tbody td.bold { font-weight: 600; }
.data-table tbody tr:hover { background: var(--warm-grey-1); }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr.clickable:hover { background: var(--lime-bg); }
.data-table tbody tr.clickable:focus-visible { outline: 2px solid var(--tangerine); outline-offset: -2px; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tfoot td {
  padding: 0.6875rem 1rem;
  font-weight: 600;
  background: var(--warm-grey-1);
  border-top: 2px solid var(--warm-grey-2);
}
.data-table tfoot td.num { text-align: right; }

/* Export badge in table */
.export-high { color: var(--tangerine); font-weight: 600; }
.export-low { color: var(--text-tertiary); }

/* --- Chart Containers --- */
.chart-container { margin-bottom: 1.5rem; }
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.chart-title { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); }
.chart-note { font-size: 0.8125rem; color: var(--text-tertiary); }

.chart-canvas-wrap {
  position: relative;
  border-radius: 4px;
}
.chart-canvas-wrap--brands { height: 320px; }

/* Toggle buttons */
.chart-toggles {
  display: flex;
  background: var(--warm-grey-1);
  border-radius: 6px;
  padding: 3px;
  border: 1px solid var(--warm-grey-2);
}
.chart-toggle {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 150ms;
  white-space: nowrap;
  font-family: var(--font-body);
}
.chart-toggle:hover { color: var(--text-primary); }
.chart-toggle.active {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.chart-toggle:focus-visible { outline: 2px solid var(--tangerine); outline-offset: 1px; }

/* --- CSS Sell-Through Bars --- */
.sellthrough-chart { margin-bottom: 1.5rem; }
.sellthrough-row {
  display: grid;
  grid-template-columns: 175px 1fr 60px;
  align-items: center;
  gap: 1rem;
  margin-bottom: 10px;
}
.sellthrough-label { font-size: 0.8125rem; font-weight: 500; text-align: right; color: var(--text-primary); }
.sellthrough-track {
  height: 24px;
  background: var(--warm-grey-2);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.sellthrough-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 3px;
  transition: width 0.7s var(--ease-out);
  position: relative;
}
.sellthrough-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 0 3px 3px 0;
}
.sellthrough-pct {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.sellthrough-pct--top { color: var(--lime-dark); }

/* --- Progressive Disclosure --- */
.disclosure { margin-bottom: 1.5rem; }
.disclosure summary {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lime-dark);
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 150ms;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 150ms;
  flex-shrink: 0;
}
.disclosure[open] summary::before { transform: rotate(90deg); }
.disclosure summary:hover { color: var(--lime); }
.disclosure summary:focus-visible { outline: 2px solid var(--tangerine); outline-offset: 2px; border-radius: 2px; }
.disclosure-content { padding-top: 0.875rem; }

/* Chart annotation for reference line label */
.chart-ref-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.chart-ref-line { display: inline-block; width: 20px; height: 1px; background: var(--tangerine); border-top: 1px dashed var(--tangerine); }
.chart-ref-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chart-ref-dot--lime { background: var(--lime); }
.chart-ref-dot--tangerine { background: var(--tangerine); }

/* --- Brand Section Specifics --- */
.brand-insight {
  background: var(--walnut);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--lime);
}
.brand-insight p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}
.brand-insight p strong {
  color: var(--lime-soft);
}

/* --- Methodology Section --- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.method-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--warm-grey-2);
  border-radius: 6px;
  background: var(--white);
}
.method-card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--walnut);
  margin-bottom: 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--warm-grey-2);
}
.method-card ul { list-style: none; }
.method-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.method-card li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--warm-grey-3);
}

.limitations-box {
  padding: 1rem 1.25rem;
  background: var(--tangerine-bg);
  border-left: 3px solid var(--tangerine);
  border-radius: 0 4px 4px 0;
  margin-bottom: 1rem;
}
.limitations-box h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c87a02;
  margin-bottom: 0.625rem;
}
.limitations-box ul { list-style: none; }
.limitations-box li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}
.limitations-box li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--tangerine-soft);
}

/* --- Outlook Section --- */
.outlook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.outlook-tile {
  background: var(--white);
  border: 1px solid var(--warm-grey-2);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.outlook-icon {
  color: var(--lime);
  flex-shrink: 0;
  margin-bottom: 0.125rem;
}
.outlook-tile h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.outlook-tile p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Structural Themes --- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.theme-card {
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--warm-grey-2);
  background: var(--white);
  position: relative;
}
.theme-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--lime);
  border-radius: 6px 6px 0 0;
}
.theme-card--domestic::before { background: var(--tangerine); }
.theme-card--transition::before { background: var(--walnut); }
.theme-number {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}
.theme-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.theme-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* --- CTA Section --- */
.cta-section {
  padding: 4rem 0;
  background: var(--walnut);
  color: var(--white);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.cta-text h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
}
.cta-text p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
}
.cta-action { flex-shrink: 0; }
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--walnut);
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  background: var(--lime);
  border-radius: 6px;
  transition: background 150ms, transform 150ms;
  white-space: nowrap;
}
.cta-link:hover { background: var(--lime-soft); transform: translateY(-1px); }
.cta-link:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.cta-note {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  text-align: right;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 0;
  background: #27262550;
  background: #252424;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo { color: rgba(255,255,255,0.7); font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.footer-copyright { color: rgba(255,255,255,0.4); font-size: 0.8125rem; line-height: 1.6; }
.footer-legal { font-size: 0.8125rem; color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 420px; text-align: right; }

/* --- Scroll-reveal utility --- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.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;
}
.text-lime { color: var(--lime-dark); }
.text-tangerine { color: #c87a02; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1100px) {
  :root { --max-width: 960px; }
  h1, .h1 { font-size: 2.25rem; }
}

@media (max-width: 900px) {
  .themes-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-note { text-align: left; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { padding: 0 1.25rem; }
  .section { padding: 2.5rem 0; }

  h1, .h1, .hero h1 { font-size: 1.875rem; }
  h2, .h2 { font-size: 1.4375rem; }

  /* Nav mobile */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: rgba(51,49,50,0.98);
    overflow-y: auto;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open > li { list-style: none; }
  .nav-links.open > li > a { height: 48px; line-height: 48px; padding: 0 2rem; font-size: 1rem; }
  .nav-links.open > li > a::after { display: none; }
  .nav-dropdown-menu { position: static; border: none; box-shadow: none; padding-left: 1.5rem; background: transparent; }
  .nav-dropdown-menu a { color: rgba(255,255,255,0.5); }
  .nav-dropdown-trigger::after { display: none; }

  /* Hero KPI */
  .kpi-strip { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .kpi-card { padding: 1rem; }
  .kpi-value { font-size: 1.5rem; }
  .kpi-card--primary .kpi-value { font-size: 1.75rem; }
  /* Insight strip */
  .insight-strip { grid-template-columns: repeat(3, 1fr); }
  .insight-metric { padding: 1rem; }
  .insight-value { font-size: 1.375rem; }

  /* Panels */
  .insight-panels { grid-template-columns: 1fr; gap: 1rem; }

  /* Sell-through chart */
  .sellthrough-row { grid-template-columns: 120px 1fr 52px; gap: 0.625rem; }

  /* Themes grid */
  .themes-grid { grid-template-columns: 1fr; }

  /* Method grid */
  .method-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section { padding: 3.5rem 0; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-link { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .footer-legal { text-align: left; }
}

@media (max-width: 480px) {
  .insight-strip { grid-template-columns: 1fr; }
  .chart-header { flex-direction: column; align-items: flex-start; }
}

/* --- Print --- */
@media print {
  .site-nav, .cta-section { display: none; }
  .section { padding: 2rem 0; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* =========================================================================
   New Components — added in this revision
   ========================================================================= */

/* --- Nav logo image --- */
.nav-logo-img {
  height: 24px;
  width: auto;
  display: block;
  /* Ensure PNG renders crisply at small size */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* --- Nav CTA button --- */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  height: 32px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--walnut);
  background: var(--lime);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 150ms;
  font-family: var(--font-body);
}
.nav-cta-btn:hover { background: var(--lime-soft); }
.nav-cta-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 4px; }

/* --- Footer logo image --- */
.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
  margin-bottom: 0.625rem;
  opacity: 0.85;
}

/* --- Hero: finding + meta --- */
.hero-finding {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 0.625rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

/* Override: the base .hero .datestamp rule adds margin-bottom: 2.5rem
   which bloats the flex container height. Zero it out here. */
.hero-meta .datestamp { margin-bottom: 0; }

.datestamp-dot {
  color: var(--warm-grey-3);
  font-size: 0.875rem;
  line-height: 1;
}

/* --- Featured Insights Strip --- */
.featured-insights {
  background: var(--walnut);
  padding: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.featured-tile {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: var(--walnut);
}
.featured-tile:last-child { border-right: none; }

.featured-tile--accent { background: #3a3838; }
.featured-tile--dark   { background: #2a2829; }
.featured-tile--muted  { background: #3f3d3e; }

.featured-cat {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.625rem;
}

.featured-stat {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.featured-tile--accent .featured-stat { color: var(--tangerine); }
.featured-tile--dark   .featured-stat { color: var(--lime-soft); }

.featured-label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
}

/* --- Category Tabs --- */
.cat-tabs {
  margin-top: 0;
}

.cat-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--warm-grey-2);
  padding-bottom: 0;
}

.cat-tab {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; /* sit on the border-bottom of the list */
  cursor: pointer;
  border-radius: 3px 3px 0 0;
  transition: color 150ms, border-color 150ms, background 150ms;
  font-family: var(--font-body);
  white-space: nowrap;
  line-height: 1.5;
}
.cat-tab:hover { color: var(--text-primary); background: var(--warm-grey-1); }
.cat-tab.is-active {
  color: var(--walnut);
  font-weight: 600;
  border-bottom-color: var(--tangerine);
  background: transparent;
}
.cat-tab:focus-visible { outline: 2px solid var(--tangerine); outline-offset: 2px; border-radius: 3px; }

/* Fixed-height panel container — height never shifts on tab switch.
   All panels are absolutely positioned and fill the container.
   Content that exceeds the height scrolls internally. */
.cat-tab-body {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--warm-grey-2);
  border-top: none;
  border-radius: 0 0 5px 5px;
}

.cat-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--white);
  padding: 1.5rem 1.5rem 2rem;
  transition: opacity 200ms ease, visibility 0ms linear 200ms;
  scrollbar-width: thin;
  scrollbar-color: var(--warm-grey-3) transparent;
}

.cat-panel::-webkit-scrollbar { width: 4px; }
.cat-panel::-webkit-scrollbar-track { background: transparent; }
.cat-panel::-webkit-scrollbar-thumb { background: var(--warm-grey-3); border-radius: 2px; }

.cat-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 200ms ease, visibility 0ms linear 0ms;
}

/* --- Category Content: 2-col layout --- */
.cat-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

/* --- Tables inside category panels — compact rows --- */
.cat-content .data-table thead th { padding: 0.4375rem 0.75rem; font-size: 0.625rem; }
.cat-content .data-table tbody td { padding: 0.4375rem 0.75rem; font-size: 0.8125rem; }

/* --- Category table label --- */
.cat-table-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

/* --- Other Categories 3-card grid --- */
.other-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.other-cat-card {
  background: var(--white);
  border: 1px solid var(--warm-grey-2);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}
.other-cat-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.other-cat-stats {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-bottom: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.other-cat-stats strong { color: var(--text-primary); }
.other-cat-card > p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

/* --- Other Categories intro line --- */
.cat-other-intro {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* --- Insight metric variants --- */
.insight-metric--highlight .insight-value { color: var(--lime-dark); }
.insight-metric--warn      .insight-value { color: #c87a02; }

/* --- Insight strip 3-column override (9 cells = 3×3) --- */
.insight-strip--3col {
  grid-template-columns: repeat(3, 1fr);
}
.insight-strip--3col .insight-metric { padding: 1rem; }
.insight-strip--3col .insight-value  { font-size: 1.375rem; }

/* --- Sell-through table cell colours --- */
.sellthrough-high { color: var(--lime-dark); font-weight: 600; }
.sellthrough-low  { color: #c87a02; font-weight: 600; }

/* --- Chart legend row (below chart, replaces built-in legend) --- */
.chart-legend-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

/* --- Table annotation below table --- */
.table-note-below {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* --- Small utility (used inline in HTML) --- */
.small { font-size: 0.8125rem; }

/* --- Hero demand note (replaces secondary KPI strip) --- */
.hero-demand-note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--warm-grey-2);
}
.hero-demand-note strong { color: var(--text-secondary); font-weight: 600; }

/* =========================================================================
   Responsive — new components
   ========================================================================= */

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-tile { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .featured-tile:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .featured-tile:nth-last-child(-n+2) { border-bottom: none; }

  .cat-content { grid-template-columns: 1fr; gap: 1.25rem; }

  /* On narrow viewports switch from fixed-height absolute panels to natural flow */
  .cat-tab-body { height: auto; overflow: visible; }
  .cat-panel { position: static; inset: auto; height: auto; overflow-y: visible; transition: none; }
  .cat-panel:not(.is-active) { display: none; }
  .cat-panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; display: block; }
}

@media (max-width: 768px) {
  /* Featured strip */
  .featured-stat { font-size: 2rem; }

  /* Nav CTA hidden on mobile — nav toggle takes over */
  .nav-cta-btn { display: none; }

  /* Cat tabs: allow horizontal scroll on narrow screens */
  .cat-tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
  }
  .cat-tab-list::-webkit-scrollbar { display: none; }
  .cat-tab { padding: 0.5rem 0.75rem; font-size: 0.75rem; flex-shrink: 0; }

  /* Other categories: stack on mobile */
  .other-cats-grid { grid-template-columns: 1fr; }

  /* Outlook: stack on mobile */
  .outlook-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Featured strip: stack all 4 */
  .featured-grid { grid-template-columns: 1fr; }
  .featured-tile { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .featured-tile:last-child { border-bottom: none; }
}

/* ==========================================================================
   Max-height overrides — must appear AFTER all base styles to win cascade
   Targets short-screen laptops (≤800px viewport height, e.g. 1440×737)
   ========================================================================== */
@media (max-height: 800px) {
  .section { padding: 1.75rem 0; }
  .section-header { margin-bottom: 0.75rem; }
  .section-title { font-size: 1.75rem; }
  .chart-canvas-wrap--brands { height: 230px; }
  #brands .insight-strip { margin-bottom: 0.75rem; }
  #review .chart-container { margin-bottom: 0.875rem; }
  .themes-grid { gap: 0.5rem; }
  .theme-card { padding: 0.625rem 1.25rem; }
  .cat-tab-body { height: 400px; }
  .outlook-grid { gap: 0.75rem; }
  .outlook-tile { padding: 0.875rem 1.25rem; }
  .method-grid { gap: 0.75rem; margin-bottom: 0.75rem; }
  .method-card { padding: 0.875rem 1.25rem; }
}

/* ==========================================================================
   DevTools-verified overrides — applied last to win cascade
   ========================================================================== */

/* Category panel: no internal scroll, stable presentation height */
#cat-tab-body {
  min-height: 450px;
}

/* Section viewport treatment: presentation rhythm, prevents next section
   appearing too early */
section#outlook {
  min-height: calc(100vh - 64px);
  padding-bottom: 6rem;
}

section#categories {
  min-height: calc(100vh - 64px);
  padding-bottom: 6rem;
}

section#methodology {
  min-height: calc(100vh - 64px);
  padding-bottom: 6rem;
}

section#brands {
  min-height: calc(100vh - 64px);
  padding-bottom: 6rem;
}
