/* ==========================================================================
   CastAndScan Main CSS — v2.0.0
   Deep Water Sonar aesthetic. Mobile-first. Self-hosted fonts. Dark mode.
   ========================================================================== */

/* ── FONTS (self-hosted) ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── DESIGN TOKENS ───────────────────────────────────────────────────────── */
:root {
  /* Brand — Deep Water palette */
  --color-navy:            #0b2233;
  --color-navy-lighter:    #163652;
  --color-navy-deep:       #071729;
  --color-sonar:           #1a7fa8;
  --color-sonar-dark:      #125f7e;
  --color-sonar-light:     #45afd1;
  --color-sonar-lighter:   #e6f4fa;
  --color-signal:          #e8621a;
  --color-signal-light:    #ffaa66;
  --color-signal-dark:     #b84c12;
  --color-uk-green:        #1e7e34;
  --color-phosphor:        #39d353;  /* fish-finder phosphor green */
  --color-amber:           #f59e0b;  /* dawn fishing amber */

  /* Grays */
  --color-gray-950:  #080c10;
  --color-gray-800:  #1a2332;
  --color-gray-700:  #2e3f52;
  --color-gray-500:  #647a8e;
  --color-gray-300:  #c8d4dc;
  --color-gray-200:  #e2eaef;
  --color-gray-100:  #f0f5f8;
  --color-gray-50:   #f7fafb;

  /* Status */
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-error:   #dc2626;

  /* Stars */
  --color-star-filled: #f59e0b;
  --color-star-empty:  #c8d4dc;

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --weight-normal:    400;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  --leading-tight:  1.15;
  --leading-snug:   1.35;
  --leading-normal: 1.5;
  --leading-relaxed:1.68;

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Borders & Radius */
  --border-width:   1px;
  --border-color:   var(--color-gray-200);
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Header */
  --header-height:          68px;
  --header-height-scrolled: 52px;
  --header-bg:              var(--color-navy);

  /* Layout */
  --container-max:    1280px;
  --container-narrow: 760px;
  --container-wide:   1400px;
  --sidebar-width:    300px;
  --content-max:      720px;

  /* Transitions */
  --duration-fast:   140ms;
  --duration-normal: 240ms;
  --duration-slow:   400ms;
  --ease-out:        cubic-bezier(0.0, 0, 0.2, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-sticky:  100;
  --z-modal:   200;
  --z-tooltip: 300;

  /* Light Mode Semantic Tokens */
  --bg-primary:   #ffffff;
  --bg-secondary: var(--color-gray-50);
  --bg-tertiary:  var(--color-gray-100);
  --text-primary:   var(--color-gray-950);
  --text-secondary: var(--color-gray-700);
  --text-muted:     var(--color-gray-500);
  --border:         var(--color-gray-200);

  --toc-bg:               var(--color-sonar-lighter);
  --toc-border:           var(--color-sonar-light);
  --pros-bg:              #f0fdf4;
  --cons-bg:              #fff7f7;
  --pros-icon-color:      var(--color-success);
  --cons-icon-color:      var(--color-error);
  --verdict-bg:           #fffbeb;
  --verdict-border:       var(--color-amber);
  --infobox-tip-bg:       #f0fdf4;
  --infobox-warning-bg:   #fffbeb;
  --infobox-note-bg:      var(--color-sonar-lighter);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(11,34,51,0.08), 0 1px 2px rgba(11,34,51,0.04);
  --shadow-md:   0 4px 16px rgba(11,34,51,0.10), 0 2px 6px rgba(11,34,51,0.06);
  --shadow-lg:   0 12px 40px rgba(11,34,51,0.14), 0 4px 12px rgba(11,34,51,0.06);
  --shadow-sonar: 0 0 0 3px rgba(26,127,168,0.15), 0 4px 16px rgba(26,127,168,0.20);
}

/* ── DARK MODE — Fish Finder Screen ─────────────────────────────────────── */
[data-theme="dark"] {
  --bg-primary:    #080e14;
  --bg-secondary:  #0e1823;
  --bg-tertiary:   #162030;
  --text-primary:  #d8eaf5;
  --text-secondary:#7da3bc;
  --text-muted:    #4d6d82;
  --border:        #1e3044;

  --header-bg:     #060d14;
  --toc-bg:        #0d1f2d;
  --toc-border:    var(--color-sonar-dark);
  --pros-bg:       #061a0f;
  --cons-bg:       #1a0808;
  --pros-icon-color: #4ade80;
  --cons-icon-color: #f87171;
  --verdict-bg:    #130f00;
  --verdict-border: #7c5a00;
  --infobox-tip-bg:     #061a0f;
  --infobox-warning-bg: #130f00;
  --infobox-note-bg:    #0d1f2d;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.6);
  --shadow-sonar: 0 0 0 3px rgba(57,211,83,0.15), 0 4px 16px rgba(57,211,83,0.15);
}

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes sonar-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(26,127,168,0.5); }
  60%  { box-shadow: 0 0 0 10px rgba(26,127,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,127,168,0); }
}

@keyframes sonar-pulse-dark {
  0%   { box-shadow: 0 0 0 0 rgba(57,211,83,0.6); }
  60%  { box-shadow: 0 0 0 12px rgba(57,211,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(57,211,83,0); }
}

@keyframes sonar-wave {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}

@keyframes sonar-wave-2 {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.8); opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float-up {
  0%   { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

@keyframes scan-line {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100vw); }
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-sonar); text-decoration: underline; }
a:hover { color: var(--color-sonar-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.875rem, 4.5vw, 2.75rem); font-weight: var(--weight-extrabold); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin-bottom: var(--space-4); }
ul, ol { padding-left: var(--space-6); }
li { margin-bottom: var(--space-1); }

/* ── SKIP LINK ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-sonar);
  color: white;
  padding: var(--space-3) var(--space-4);
  z-index: 9999;
  font-weight: var(--weight-bold);
  text-decoration: none;
  transition: top var(--duration-fast);
}
.skip-link:focus { top: 0; }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 640px)  { .container { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-8); } }

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

.section { padding-block: var(--space-12); }
@media (min-width: 1024px) { .section { padding-block: var(--space-16); } }

.section--gray { background: var(--bg-secondary); }
.section--dark {
  background: var(--color-navy-deep);
  color: white;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.section__subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}
.section__cta { margin-top: var(--space-8); text-align: center; }

/* Wave separator — fishing aesthetic divider */
.section--wave-top {
  position: relative;
}
.section--wave-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 0%);
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 46px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Ripple layer */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--duration-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active::after { background: rgba(255,255,255,0.15); }

.btn--primary {
  background: var(--color-signal);
  color: white;
  border-color: var(--color-signal);
  box-shadow: 0 2px 8px rgba(232,98,26,0.30);
}
.btn--primary:hover {
  background: var(--color-signal-dark);
  border-color: var(--color-signal-dark);
  color: white;
  box-shadow: 0 4px 16px rgba(232,98,26,0.40);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: var(--color-sonar);
  color: white;
  border-color: var(--color-sonar);
  box-shadow: 0 2px 8px rgba(26,127,168,0.25);
}
.btn--secondary:hover {
  background: var(--color-sonar-dark);
  border-color: var(--color-sonar-dark);
  color: white;
  box-shadow: 0 4px 16px rgba(26,127,168,0.35);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: white;
  color: white;
}

.btn--lg, .btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  min-height: 54px;
  border-radius: var(--radius-lg);
}
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 36px;
}

.cta-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-block: var(--space-6);
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-navy);
  height: var(--header-height);
  transition: height var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  /* Subtle sonar-glow bottom border */
  border-bottom: 1px solid rgba(69,175,209,0.12);
}
.site-header--scrolled {
  height: var(--header-height-scrolled);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  border-bottom-color: rgba(69,175,209,0.20);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

.site-header__logo {
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__logo svg {
  height: 30px;
  width: auto;
  color: white;
  display: block;
  transition: height var(--duration-normal) var(--ease-out);
}
.site-header--scrolled .site-header__logo svg { height: 24px; }

.site-header__nav { display: none; }
@media (min-width: 1024px) { .site-header__nav { display: flex; } }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list__item > a {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: 0.01em;
}
.nav-list__item > a:hover,
.nav-list__item--active > a {
  color: white;
  background: rgba(255,255,255,0.10);
}
.nav-list__item--active > a {
  color: var(--color-sonar-light);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-header__actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.site-header__actions button:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Hamburger */
.site-header__hamburger {
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
@media (min-width: 1024px) { .site-header__hamburger { display: none !important; } }
.site-header__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}
.site-header__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search Bar */
.site-header__search-bar {
  background: var(--color-navy-lighter);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-header__search-bar form {
  display: flex;
  gap: var(--space-3);
  max-width: 600px;
}
.site-header__search-bar input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: white;
  font-family: var(--font-body);
  font-size: var(--text-base);
}
.site-header__search-bar input::placeholder { color: rgba(255,255,255,0.4); }
.site-header__search-bar input:focus { outline: 2px solid var(--color-sonar-light); }
.site-header__search-bar button {
  padding: var(--space-3) var(--space-5);
  background: var(--color-sonar);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── MOBILE MENU ─────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  z-index: calc(var(--z-sticky) + 1);
  padding: 80px var(--space-6) var(--space-6);
  overflow-y: auto;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu nav ul li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin: 0;
}
.mobile-menu nav ul li a {
  display: block;
  padding: var(--space-4) 0;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--duration-fast);
}
.mobile-menu nav ul li a:hover { color: var(--color-sonar-light); }

body.menu-open { overflow: hidden; }

/* ── HERO — Sonar Wave atmosphere ────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  /* Deep underwater gradient */
  background:
    radial-gradient(ellipse at 72% 45%, rgba(26,127,168,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(11,34,51,0.8) 0%, transparent 50%),
    linear-gradient(160deg, var(--color-navy-deep) 0%, #0d2b45 50%, var(--color-navy-lighter) 100%);
  color: white;
  padding: var(--space-20) 0 calc(var(--space-20) + 40px);
}

/* Sonar grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(69,175,209,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,175,209,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 70% 40%, white 0%, transparent 65%);
}

/* Animated sonar ring — origin right side */
.hero::after {
  content: '';
  position: absolute;
  right: 12%;
  top: 45%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1.5px solid rgba(69,175,209,0.25);
  transform: translate(50%, -50%);
  animation: sonar-wave 3.5s ease-out infinite;
  pointer-events: none;
}

/* Second sonar ring */
.hero .hero__sonar-ring {
  position: absolute;
  right: 12%;
  top: 45%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(69,175,209,0.15);
  transform: translate(50%, -50%);
  animation: sonar-wave-2 3.5s ease-out 1.2s infinite;
  pointer-events: none;
}

/* Wave bottom edge */
.hero > .hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 100%);
}
[data-theme="dark"] .hero > .hero__wave {
  background: var(--bg-primary);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: float-up 0.6s var(--ease-out) both;
}

.hero__kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sonar-light);
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.hero__heading {
  font-size: clamp(2.1rem, 5.5vw, 3.75rem);
  font-weight: var(--weight-extrabold);
  color: white;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-5);
  /* Subtle text shadow for depth */
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.hero__subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
}
.hero__trust .icon {
  color: var(--color-sonar-light);
  width: 16px;
  height: 16px;
}
.hero__trust span { display: flex; align-items: center; gap: 6px; }

/* ── HERO LAYOUT — text left, fish finder right ──────────────────────────── */
.hero__layout {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

/* ── FISH FINDER MOCKUP ──────────────────────────────────────────────────── */
.hero__ff {
  display: none;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .hero__ff { display: block; }
  .hero__inner { max-width: 560px; }
}

.hero__ff-device {
  width: 300px;
  background: linear-gradient(160deg, #1e2535 0%, #141a26 100%);
  border-radius: 16px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 0 0 2px rgba(0,0,0,0.4),
    0 24px 64px rgba(0,0,0,0.55),
    0 0 60px rgba(26,127,168,0.12);
  transform: perspective(700px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s var(--ease-out);
}
.hero__ff-device:hover {
  transform: perspective(700px) rotateY(-2deg) rotateX(1deg);
}

/* Chrome top bar */
.hero__ff-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 7px;
}
.hero__ff-brand {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.hero__ff-leds {
  display: flex;
  gap: 5px;
  align-items: center;
}
.hero__ff-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero__ff-led--on {
  background: #39d353;
  border-color: #39d353;
  box-shadow: 0 0 6px rgba(57,211,83,0.8);
  animation: sonar-pulse 2s ease-in-out infinite;
}

/* Screen area */
.hero__ff-screen {
  display: flex;
  background: #030b06;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0,200,80,0.08);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Depth scale column */
.hero__ff-depth {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 4px 4px 5px;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid rgba(0,200,80,0.1);
  min-width: 26px;
}
.hero__ff-depth span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(0,200,80,0.6);
  line-height: 1;
}
.hero__ff-unit {
  color: rgba(0,200,80,0.35) !important;
  font-size: 7px !important;
}

/* Display area */
.hero__ff-display-wrap {
  position: relative;
  flex: 1;
  height: 190px;
  /* CRT scanline effect */
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0.12) 4px
  );
}
.hero__ff-display {
  display: block;
  width: 100%;
  height: 100%;
}

/* Animated sweep column */
.hero__ff-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(0,220,100,0.06) 30%,
    rgba(0,220,100,0.18) 70%,
    rgba(0,220,100,0.08) 100%
  );
  animation: ff-sweep 2.8s linear infinite;
  pointer-events: none;
}
@keyframes ff-sweep {
  0%   { left: -28px; }
  100% { left: 100%;  }
}

/* Status bar */
.hero__ff-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.hero__ff-statusbar strong {
  color: rgba(0,200,80,0.75);
  font-weight: 600;
}

/* Remove old sonar rings from hero since FF mockup replaces them visually */
.hero::after { display: none; }
.hero .hero__sonar-ring { display: none; }

/* ── TRUST SIGNALS BAR ───────────────────────────────────────────────────── */
.trust-signals {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-4);
}
.trust-signals__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-semibold);
}
.trust-signals__list li { display: flex; align-items: center; gap: var(--space-2); }
.trust-signals__list .icon { color: var(--color-sonar); width: 16px; height: 16px; }
.trust-signals__list strong { color: var(--text-primary); }

/* ── CATEGORY CARDS / SILOS GRID ─────────────────────────────────────────── */
.silos__grid,
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px)  {
  .silos__grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .silos__grid, .category-grid { grid-template-columns: repeat(3, 1fr); }
}

.silo-card,
.category-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--bg-primary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Subtle sonar shimmer on hover */
.silo-card::before,
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(69,175,209,0.06), transparent);
  transition: left var(--duration-slow) var(--ease-out);
  pointer-events: none;
}
.silo-card:hover::before,
.category-card:hover::before { left: 150%; }

.silo-card:hover,
.category-card:hover {
  border-color: var(--color-sonar);
  box-shadow: var(--shadow-sonar);
  transform: translateY(-3px);
}

.silo-card--featured {
  border-color: var(--color-signal);
  background: linear-gradient(135deg, rgba(232,98,26,0.03) 0%, var(--bg-primary) 100%);
}

.silo-card__icon,
.category-card__icon {
  margin-bottom: var(--space-3);
  color: var(--color-sonar);
}
.silo-card__icon .icon,
.category-card__icon .icon { width: 36px; height: 36px; }

.silo-card__title,
.category-card__name { font-size: var(--text-xl); margin-bottom: var(--space-2); letter-spacing: -0.01em; }

.silo-card__desc,
.category-card__desc { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-4); flex: 1; }

.silo-card__cta { color: var(--color-sonar); font-weight: var(--weight-semibold); font-size: var(--text-sm); text-decoration: none; }
.silo-card:hover .silo-card__cta { color: var(--color-sonar-dark); }

/* ── POST GRID ───────────────────────────────────────────────────────────── */
.post-grid,
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px)  {
  .post-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .post-grid, .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .posts-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
  background: var(--bg-primary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(26,127,168,0.3);
}
[data-theme="dark"] .post-card:hover {
  border-color: rgba(69,175,209,0.20);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.post-card__image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.post-card:hover .post-card__image img { transform: scale(1.05); }

/* Score badge — sonar style */
.post-card__score {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(11,34,51,0.88);
  backdrop-filter: blur(6px);
  color: white;
  padding: 3px var(--space-2);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  border: 1px solid rgba(69,175,209,0.35);
  letter-spacing: 0.03em;
}
[data-theme="dark"] .post-card__score {
  background: rgba(57,211,83,0.15);
  border-color: rgba(57,211,83,0.4);
  color: var(--color-phosphor);
}

.post-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card__cat    { margin-bottom: var(--space-2); }
.post-card__title  {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}
.post-card__title a { text-decoration: none; color: var(--text-primary); }
.post-card__title a:hover { color: var(--color-sonar); }
.post-card__excerpt { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-4); flex: 1; }
.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}
.post-card__date { font-size: var(--text-xs); color: var(--text-muted); }

/* ── CATEGORY BADGE ──────────────────────────────────────────────────────── */
.category-badge,
.cat-label {
  display: inline-block;
  padding: 3px var(--space-2);
  background: var(--color-sonar-lighter);
  color: var(--color-sonar-dark);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: var(--weight-bold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--duration-fast);
}
.category-badge:hover,
.cat-label:hover {
  background: var(--color-sonar);
  color: white;
}
[data-theme="dark"] .category-badge,
[data-theme="dark"] .cat-label {
  background: rgba(26,127,168,0.2);
  color: var(--color-sonar-light);
}

/* ── ARTICLE HEADER ──────────────────────────────────────────────────────── */
.article-header,
.post-header,
.review-header {
  padding-block: var(--space-8) var(--space-6);
}
.article-header__cats,
.post-header__cats,
.review-header__cats { margin-bottom: var(--space-3); }

.article-header__title,
.post-header__title,
.review-header__title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}
.article-header__verdict {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  font-style: italic;
}
.article-header__meta,
.post-header__meta,
.review-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.article-header__meta a,
.post-header__meta a,
.review-header__meta a { color: var(--color-sonar); text-decoration: none; }

.article-featured-image { margin-bottom: var(--space-8); }
.article-featured-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  max-height: 520px;
  object-fit: cover;
}

/* Overall score bar — fish finder readout style */
.review-header__score-bar,
.overall-score-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.overall-score {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.overall-score__number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: var(--weight-bold);
  color: var(--color-sonar);
  line-height: 1;
  letter-spacing: -0.04em;
  /* Sonar pulse on render */
  animation: sonar-pulse 2s ease-out 0.5s both;
}
[data-theme="dark"] .overall-score__number {
  color: var(--color-phosphor);
  text-shadow: 0 0 16px rgba(57,211,83,0.4);
  animation: sonar-pulse-dark 2s ease-out 0.5s both;
}
.overall-score__max {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--text-muted);
  font-weight: var(--weight-normal);
}
.overall-score__label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: var(--weight-bold);
  margin-top: 2px;
}

.verdict-summary {
  flex: 1;
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  min-width: 200px;
}
.verdict-summary strong { color: var(--text-primary); }

/* ── AFFILIATE DISCLOSURE ────────────────────────────────────────────────── */
.affiliate-disclosure {
  background: var(--color-sonar-lighter);
  border-left: 3px solid var(--color-sonar);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-6);
}
.affiliate-disclosure p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.affiliate-disclosure .icon { flex-shrink: 0; color: var(--color-sonar); margin-top: 2px; }
[data-theme="dark"] .affiliate-disclosure {
  background: rgba(26,127,168,0.08);
  border-left-color: var(--color-sonar-light);
}

/* ── ARTICLE LAYOUT ──────────────────────────────────────────────────────── */
.article-layout { padding-block: var(--space-6) var(--space-12); }
.article-layout__content { min-width: 0; }
.article-layout__sidebar { display: none; }

@media (min-width: 1024px) {
  .article-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-10);
    align-items: start;
  }
  .article-layout__sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

/* Article prose */
.article-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.025em;
}
.article-content h3 { margin-top: var(--space-8); margin-bottom: var(--space-3); }
.article-content h4 { margin-top: var(--space-6); margin-bottom: var(--space-2); }
.article-content p  { margin-bottom: var(--space-4); }
.article-content ul,
.article-content ol { margin-bottom: var(--space-4); }
.article-content li { margin-bottom: var(--space-2); line-height: var(--leading-relaxed); }
.article-content a  { font-weight: var(--weight-semibold); }
.article-content img { border-radius: var(--radius-lg); margin-block: var(--space-6); }
.article-content blockquote {
  border-left: 4px solid var(--color-sonar);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: var(--text-lg);
}
.article-content table { width: 100%; border-collapse: collapse; margin-block: var(--space-6); }
.article-content th { background: var(--color-navy); color: white; padding: var(--space-3) var(--space-4); text-align: left; font-family: var(--font-heading); }
.article-content td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.article-content tr:nth-child(even) td { background: var(--bg-secondary); }

/* ── TABLE OF CONTENTS ───────────────────────────────────────────────────── */
.toc {
  background: var(--toc-bg);
  border: var(--border-width) solid var(--toc-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-8);
}
.toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-primary);
}
.toc__heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}
.toc__chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--text-muted);
}
.toc__toggle[aria-expanded="false"] .toc__chevron { transform: rotate(-90deg); }
.toc__list { margin-top: var(--space-3); padding-left: var(--space-5); }
.toc__list[hidden] { display: none; }
.toc__item { margin-bottom: 2px; }
.toc__link {
  display: inline-block;
  padding: 4px 0 4px var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
}
.toc__link:hover { color: var(--color-sonar); }
.toc__link--active {
  color: var(--color-sonar);
  border-left-color: var(--color-sonar);
  font-weight: var(--weight-semibold);
}
.toc__sublist { padding-left: var(--space-4); margin-top: 2px; }
.toc__item--h3 .toc__link { font-size: var(--text-xs); }

/* ── PRODUCT CARDS ───────────────────────────────────────────────────────── */
.product-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-block: var(--space-8);
}
@media (min-width: 640px)  { .product-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-cards-grid.single { grid-template-columns: 1fr; max-width: 620px; } }

.product-card {
  position: relative;
  background: var(--bg-primary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-spring);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,127,168,0.3);
  transform: translateY(-2px);
}
[data-theme="dark"] .product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border-color: rgba(69,175,209,0.25);
}

/* Product badge — ribbon style */
.product-card__badge {
  position: absolute;
  top: var(--space-4);
  left: 0;
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-4);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  color: white;
  z-index: 1;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}
.product-card__badge--best_overall {
  background: linear-gradient(90deg, var(--color-signal-dark), var(--color-signal));
}
.product-card__badge--budget_pick  { background: var(--color-success); }
.product-card__badge--premium_pick {
  background: linear-gradient(90deg, var(--color-navy), var(--color-navy-lighter));
}
.product-card__badge--runner_up    { background: var(--color-gray-500); }
.product-card__badge--best_value   { background: var(--color-uk-green); }

.product-card__image {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  min-height: 200px;
}
.product-card__image img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  margin: auto;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.product-card:hover .product-card__image img { transform: scale(1.04); }

.product-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.product-card__brand {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  font-weight: var(--weight-bold);
}
.product-card__title {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Score — fish finder readout */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.rating-score {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-sonar-dark);
  letter-spacing: -0.03em;
}
[data-theme="dark"] .rating-score {
  color: var(--color-phosphor);
  text-shadow: 0 0 12px rgba(57,211,83,0.35);
}
.rating-score span { font-size: var(--text-sm); color: var(--text-muted); font-weight: var(--weight-normal); }

.product-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.product-card__description { font-size: var(--text-sm); color: var(--text-secondary); flex: 1; }
.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
}
.product-card__actions .btn { justify-content: center; }

/* Star Rating */
.star-rating {
  position: relative;
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 3px;
}
.star-rating__fill {
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--color-star-filled);
}
.star-rating__empty { color: var(--color-star-empty); }

/* ── PROS / CONS ─────────────────────────────────────────────────────────── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-block: var(--space-6);
}
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }

.pros-cons__column {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}
.pros-cons__column--pros {
  background: var(--pros-bg);
  border-left: 4px solid var(--pros-icon-color);
}
.pros-cons__column--cons {
  background: var(--cons-bg);
  border-left: 4px solid var(--cons-icon-color);
}
.pros-cons__heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}
.pros-cons__column--pros .pros-cons__heading { color: var(--pros-icon-color); }
.pros-cons__column--cons .pros-cons__heading { color: var(--cons-icon-color); }
.pros-cons__list { list-style: none; padding: 0; }
.pros-cons__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}
.pros-cons__list li .icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; }
.pros-cons__column--pros li .icon { color: var(--pros-icon-color); }
.pros-cons__column--cons li .icon { color: var(--cons-icon-color); }

/* ── SPECS TABLE ─────────────────────────────────────────────────────────── */
.specs-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--space-4);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.specs-table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  width: 42%;
}
.specs-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }

/* ── COMPARISON TABLE — Sonar sweep ──────────────────────────────────────── */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--space-6);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-xl);
  /* subtle outer glow */
  box-shadow: 0 0 0 1px rgba(26,127,168,0.08);
}
.comparison-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}
.comparison-table thead {
  background: var(--color-navy);
}
.comparison-table th {
  padding: var(--space-4);
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: white;
  letter-spacing: -0.01em;
}
.comparison-table__feature { text-align: left !important; min-width: 140px; }
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast);
}
.comparison-table__label {
  text-align: left !important;
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}
.comparison-table tbody tr:hover td { background: var(--color-sonar-lighter); }
[data-theme="dark"] .comparison-table tbody tr:hover td { background: rgba(26,127,168,0.12); }

/* Winner cell — sonar ping style */
.comparison-table__winner {
  font-weight: var(--weight-bold);
  color: var(--color-sonar-dark);
  position: relative;
}
.comparison-table__winner::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: var(--radius-sm);
  background: rgba(26,127,168,0.08);
  border: 1px solid rgba(26,127,168,0.20);
  pointer-events: none;
}
[data-theme="dark"] .comparison-table__winner {
  color: var(--color-phosphor);
}
[data-theme="dark"] .comparison-table__winner::before {
  background: rgba(57,211,83,0.08);
  border-color: rgba(57,211,83,0.25);
}
.comparison-table__winner-row { background: rgba(26,127,168,0.03); }

/* Comparison toggle (mobile) */
.comparison-toggle {
  display: none;
  gap: var(--space-2);
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.comparison-toggle::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { .comparison-toggle { display: flex; } }

.comparison-toggle__btn {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.comparison-toggle__btn--active {
  background: var(--color-sonar);
  border-color: var(--color-sonar);
  color: white;
}

/* ── VS HERO — Sonar duel ────────────────────────────────────────────────── */
.vs-hero {
  background: linear-gradient(150deg, var(--color-navy-deep) 0%, var(--color-navy) 50%, var(--color-navy-lighter) 100%);
  color: white;
  padding: var(--space-10) 0 var(--space-12);
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}
.vs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(69,175,209,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,175,209,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.vs-hero__layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.vs-hero__product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  flex: 0 1 220px;
}
.vs-hero__product img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
}
@media (min-width: 768px) { .vs-hero__product img { width: 200px; height: 200px; } }
.vs-hero__product-name { font-size: var(--text-lg); margin: 0; color: white; letter-spacing: -0.02em; }
.vs-hero__price {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-signal-light);
  letter-spacing: -0.02em;
}
.vs-hero__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-signal);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: white;
  /* Sonar pulse on VS badge */
  animation: sonar-pulse 3s ease-out 1s infinite;
  box-shadow: 0 0 0 0 rgba(232,98,26,0.5);
}
.vs-hero__subtitle {
  position: relative;
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-inline: auto;
}

/* ── VERDICT BOX ─────────────────────────────────────────────────────────── */
.verdict-box {
  background: var(--verdict-bg);
  border: 2px solid var(--verdict-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-block: var(--space-6);
  position: relative;
  overflow: hidden;
}
/* Amber shine at top */
.verdict-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-amber), var(--color-signal-light), var(--color-amber));
}
.verdict__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.verdict__score {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-signal);
  letter-spacing: -0.04em;
}
[data-theme="dark"] .verdict__score {
  color: var(--color-amber);
}
.verdict__body { color: var(--text-secondary); }

/* ── INFOBOX ─────────────────────────────────────────────────────────────── */
.infobox {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin-block: var(--space-5);
}
.infobox .icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.infobox--tip     { background: var(--infobox-tip-bg);     border-left: 4px solid var(--color-success); }
.infobox--warning { background: var(--infobox-warning-bg); border-left: 4px solid var(--color-warning); }
.infobox--note    { background: var(--infobox-note-bg);    border-left: 4px solid var(--color-sonar); }
.infobox--tip .icon     { color: var(--color-success); }
.infobox--warning .icon { color: var(--color-warning); }
.infobox--note .icon    { color: var(--color-sonar); }
.infobox__content p:last-child { margin-bottom: 0; }
.infobox__content strong { color: var(--text-primary); }

/* ── YOUTUBE FACADE ──────────────────────────────────────────────────────── */
.youtube-facade {
  position: relative;
  cursor: pointer;
  display: block;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-block: var(--space-6);
}
.youtube-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity var(--duration-normal);
}
.youtube-facade:hover img { opacity: 0.95; }
.youtube-facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.youtube-facade__play .icon {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
  transition: transform var(--duration-normal) var(--ease-spring);
}
.youtube-facade:hover .youtube-facade__play .icon { transform: scale(1.12); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-section { margin-top: var(--space-10); }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.faq-item {
  background: var(--bg-secondary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration-fast);
}
.faq-item:hover { border-color: rgba(26,127,168,0.3); }
.faq-item__question {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.faq-item__answer { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); }
.faq-item__answer p:last-child { margin-bottom: 0; }

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: var(--space-4); }

.widget {
  background: var(--bg-secondary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.widget__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Sidebar CTA widget */
.sidebar-cta {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-lighter));
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  color: white;
}
.sidebar-cta__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: white;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  letter-spacing: -0.02em;
}
.sidebar-cta__title .icon { color: var(--color-sonar-light); }
.sidebar-cta__text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
}

/* Sidebar score display */
.sidebar-widget,
.sidebar-score { text-align: center; }
.sidebar-score__value {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-sonar);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.05em;
  animation: sonar-pulse 3s ease-out 1s infinite;
}
[data-theme="dark"] .sidebar-score__value {
  color: var(--color-phosphor);
  text-shadow: 0 0 20px rgba(57,211,83,0.4);
  animation: sonar-pulse-dark 3s ease-out 1s infinite;
}
.sidebar-score__value span { font-size: var(--text-xl); color: var(--text-muted); font-weight: var(--weight-normal); }
.sidebar-score__verdict { font-size: var(--text-sm); color: var(--text-secondary); margin-top: var(--space-3); font-style: italic; }

/* Sidebar post list */
.widget-post-list { list-style: none; padding: 0; margin: 0; }
.widget-post-list__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.widget-post-list__item:last-child { border-bottom: none; }
.widget-post-list__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 42px;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.widget-post-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-list__text { flex: 1; min-width: 0; }
.widget-post-list__title {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  text-decoration: none;
  line-height: var(--leading-snug);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.widget-post-list__title:hover { color: var(--color-sonar); }
.widget-post-list__score {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-sonar);
}

/* Widget category list */
.widget-category-list { list-style: none; padding: 0; margin: 0; }
.widget-category-list li {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.widget-category-list li:last-child { border-bottom: none; }
.widget-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.widget-category-list a:hover { color: var(--color-sonar); }
.widget-category-list span { color: var(--text-muted); font-size: var(--text-xs); }

/* Widget search form */
.widget-search-form {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.widget-search-form input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: none;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.widget-search-form input:focus { outline: none; }
.widget-search-form button {
  padding: var(--space-2) var(--space-3);
  background: var(--color-sonar);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Sidebar products list */
.related-list,
.sidebar-products-list { list-style: none; padding: 0; }
.related-list li,
.sidebar-products-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.related-list li:last-child,
.sidebar-products-list li:last-child { border-bottom: none; }
.related-list a { text-decoration: none; color: var(--text-secondary); }
.related-list a:hover { color: var(--color-sonar); }
.sidebar-products-list__score {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  color: var(--color-sonar);
  flex-shrink: 0;
  font-size: var(--text-sm);
}

/* ── AUTHOR BOX ──────────────────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--bg-secondary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-top: var(--space-10);
}
.author-box__avatar,
.author-box__img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 3px solid var(--color-sonar-lighter);
}
.author-box__name { font-size: var(--text-lg); margin-bottom: var(--space-2); letter-spacing: -0.02em; }
.author-box__name a { text-decoration: none; color: var(--text-primary); }
.author-box__name a:hover { color: var(--color-sonar); }
.author-box__bio { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; line-height: var(--leading-relaxed); }

/* ── POST NAV ────────────────────────────────────────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.post-nav__prev, .post-nav__next {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--duration-fast);
}
.post-nav__prev:hover, .post-nav__next:hover {
  border-color: var(--color-sonar);
  background: var(--color-sonar-lighter);
  transform: translateY(-1px);
}
.post-nav__next { text-align: right; }
.post-nav__label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.post-nav__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); }

/* ── ARCHIVE / CATEGORY ──────────────────────────────────────────────────── */
.archive-header,
.category-hero {
  background: var(--color-navy);
  color: white;
  padding-block: var(--space-10) var(--space-8);
  position: relative;
  overflow: hidden;
}
.archive-header::before,
.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(69,175,209,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,175,209,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.archive-header__title,
.category-hero__title {
  position: relative;
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
}
.archive-header__desc,
.category-hero__description  { color: rgba(255,255,255,0.72); position: relative; }
.category-hero__count { position: relative; color: rgba(255,255,255,0.5); font-size: var(--text-sm); margin-top: var(--space-3); }

.archive-layout,
.category-layout {
  padding-block: var(--space-8);
}
@media (min-width: 1024px) {
  .archive-layout,
  .category-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-10);
    align-items: start;
  }
  .archive-layout__sidebar,
  .category-layout__sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
  }
}

.sidebar-categories { list-style: none; padding: 0; }
.sidebar-categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.sidebar-categories a { text-decoration: none; color: var(--text-secondary); }
.sidebar-categories a:hover { color: var(--color-sonar); }
.sidebar-categories__count {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* ── QUICK PICKS ─────────────────────────────────────────────────────────── */
.quick-picks__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) { .quick-picks__grid { grid-template-columns: repeat(3, 1fr); } }

.quick-pick-card {
  background: var(--bg-primary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
}
.quick-pick-card:hover {
  border-color: rgba(26,127,168,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.quick-pick-card--popular {
  border-color: var(--color-signal);
  background: linear-gradient(135deg, rgba(232,98,26,0.04) 0%, var(--bg-primary) 100%);
}
.quick-pick-card__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-signal);
  font-weight: var(--weight-extrabold);
  display: block;
  margin-bottom: var(--space-2);
}
.quick-pick-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); letter-spacing: -0.02em; }
.quick-pick-card h3 a { text-decoration: none; color: var(--text-primary); }
.quick-pick-card h3 a:hover { color: var(--color-sonar); }
.quick-pick-card p { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-4); }

/* ── HUB PAGE ────────────────────────────────────────────────────────────── */
.hub-header {
  background: var(--color-navy);
  color: white;
  padding-block: var(--space-12) var(--space-10);
}
.hub-header__title { color: white; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: var(--space-4); letter-spacing: -0.03em; }
.hub-header__intro { color: rgba(255,255,255,0.78); font-size: var(--text-lg); max-width: 650px; }
.hub-intro { margin-block: var(--space-8); }

/* ── PAGINATION ──────────────────────────────────────────────────────────── */
.pagination { margin-top: var(--space-8); display: flex; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
}
.pagination .page-numbers a,
.pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: all var(--duration-fast);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-heading);
}
.pagination .page-numbers a:hover {
  background: var(--color-sonar-lighter);
  border-color: var(--color-sonar);
  color: var(--color-sonar-dark);
}
.pagination .page-numbers .current {
  background: var(--color-sonar);
  border-color: var(--color-sonar);
  color: white;
}

/* ── BREADCRUMBS ─────────────────────────────────────────────────────────── */
.breadcrumbs { margin-bottom: var(--space-4); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin-left: var(--space-1);
  color: var(--text-muted);
  opacity: 0.5;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-sonar); }
.breadcrumbs li:last-child { color: var(--text-secondary); }

.article-header .breadcrumbs a,
.hub-header .breadcrumbs a,
.archive-header .breadcrumbs a,
.category-hero .breadcrumbs a { color: rgba(255,255,255,0.5); }
.article-header .breadcrumbs a:hover,
.hub-header .breadcrumbs a:hover,
.archive-header .breadcrumbs a:hover,
.category-hero .breadcrumbs a:hover { color: white; }
.article-header .breadcrumbs li,
.hub-header .breadcrumbs li,
.archive-header .breadcrumbs li,
.category-hero .breadcrumbs li { color: rgba(255,255,255,0.4); }

/* ── LAST UPDATED BADGE ──────────────────────────────────────────────────── */
.last-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-secondary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}
.last-updated-badge .icon { color: var(--color-sonar); }

/* Update notice */
.update-notice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  font-weight: var(--weight-semibold);
}
.update-notice--fresh { background: #f0fdf4; color: var(--color-success); }
.update-notice--stale { background: #fffbeb; color: var(--color-warning); }
.update-notice .icon { width: 16px; height: 16px; }

/* ── TAG BADGES ──────────────────────────────────────────────────────────── */
.article-tags, .post-footer__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); }
.tag-badge, .tag-link {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-secondary);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast);
  letter-spacing: 0.02em;
}
.tag-badge:hover, .tag-link:hover {
  border-color: var(--color-sonar);
  color: var(--color-sonar);
  background: var(--color-sonar-lighter);
}

/* ── NEWSLETTER CTA ──────────────────────────────────────────────────────── */
.newsletter-cta {
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy-lighter) 100%);
  color: white;
}
.newsletter-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--weight-extrabold);
  color: white;
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.newsletter-cta__title .icon { color: var(--color-sonar-light); }
.newsletter-cta__text { color: rgba(255,255,255,0.72); margin-bottom: var(--space-6); max-width: 480px; margin-inline: auto; }
.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin-inline: auto;
}
.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.10);
  color: white;
  font-family: var(--font-body);
  font-size: var(--text-base);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { outline: 2px solid var(--color-sonar-light); }

/* ── BACK TO TOP ─────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  background: var(--color-sonar);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,127,168,0.4);
  transition: all var(--duration-normal) var(--ease-spring);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}
.back-to-top:not([hidden]) { opacity: 1; pointer-events: auto; }
.back-to-top--visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover {
  background: var(--color-sonar-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(26,127,168,0.5);
}
.back-to-top .icon { width: 20px; height: 20px; }

/* ── ICON STYLES ─────────────────────────────────────────────────────────── */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── POST FOOTER ─────────────────────────────────────────────────────────── */
.post-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}
.post-footer__tags-label { font-size: var(--text-sm); color: var(--text-muted); margin-right: var(--space-2); }
.post-footer__share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.share-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}
.share-link:hover { border-color: var(--color-sonar); color: var(--color-sonar); }

/* ── METHODOLOGY BOX ─────────────────────────────────────────────────────── */
.methodology-box { margin-block: var(--space-6); }

/* ── SEARCH RESULTS ──────────────────────────────────────────────────────── */
.page-header {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-8);
}
.page-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}
.page-header__title em { color: var(--color-sonar); font-style: normal; }
.search-results-count { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-6); }
.search-form {
  display: flex;
  gap: var(--space-3);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.search-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
}
.search-form input:focus { outline: 2px solid var(--color-sonar-light); }
.no-results__categories { margin-top: var(--space-6); }
.no-results__categories h3 { margin-bottom: var(--space-4); }
.no-results__categories ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.no-results__categories a {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast);
}
.no-results__categories a:hover { border-color: var(--color-sonar); color: var(--color-sonar); }

/* ── NO RESULTS ──────────────────────────────────────────────────────────── */
.no-results { text-align: center; padding-block: var(--space-12); }
.no-results h2 { margin-bottom: var(--space-4); }
.no-results p  { margin-bottom: var(--space-6); color: var(--text-secondary); }

/* ── LATEST POSTS HEADER ─────────────────────────────────────────────────── */
.latest-posts__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.see-all-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-sonar);
  text-decoration: none;
}
.see-all-link:hover { color: var(--color-sonar-dark); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-gray-950);
  color: rgba(255,255,255,0.65);
  padding-block: var(--space-12) var(--space-6);
  margin-top: var(--space-16);
  /* Subtle top highlight */
  border-top: 1px solid rgba(69,175,209,0.12);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.site-footer__logo {
  text-decoration: none;
  color: white;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  display: inline-block;
  margin-bottom: var(--space-4);
}
.site-footer__brand p { font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.site-footer__nav h3 {
  color: white;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}
.site-footer__nav ul { list-style: none; padding: 0; }
.site-footer__nav li { margin-bottom: var(--space-2); }
.site-footer__nav a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast);
}
.site-footer__nav a:hover { color: rgba(255,255,255,0.9); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.site-footer__disclosure { font-size: var(--text-xs); color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 800px; }
.site-footer__copyright  { font-size: var(--text-xs); color: rgba(255,255,255,0.25); }

/* ── HUB CTA ─────────────────────────────────────────────────────────────── */
.hub-cta { border-top: 1px solid var(--border); }

/* ── PRINT ───────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .back-to-top, .toc,
  .sidebar-widget, .widget, .article-layout__sidebar { display: none !important; }
  .article-layout { grid-template-columns: 1fr !important; }
  body { font-size: 12pt; color: black; background: white; }
  .hero, .vs-hero, .archive-header, .category-hero { background: white !important; color: black !important; }
}

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

/* ── FOCUS STYLES ────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-sonar-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
