/* SecureSetups — Hugo theme */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --accent-green: #10b981;
  --accent-violet: #7c3aed;
  --navy: #0a1628;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #f1f5f9;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --max-w: 76rem;
  --page-gutter: 1.5rem;
  --radius: 1.25rem;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --topic-icon-size: 1.3125rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.06), transparent);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

@media (max-width: 639px) {
  :root {
    --page-gutter: 1.75rem;
    --card-gutter: 0.5rem;
  }

  body {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Full-bleed bands: background edge-to-edge */
  .site-header,
  .page-header,
  .site-footer,
  .topic-header {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .hero,
  .section,
  .cta-band {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
  }

  .reading-progress--blog {
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
  }
}

main { flex: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 0; gap: 1rem;
}
.header-right {
  display: flex; align-items: center; gap: 0.75rem; flex: 1; justify-content: flex-end;
}
@media (min-width: 768px) {
  .header-right { gap: 1.25rem; }
}
.logo { display: flex; align-items: center; gap: 0.625rem; transition: opacity 0.15s; }
.logo:hover { opacity: 0.85; }
.logo-icon {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 0.625rem; color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.logo-text { font-size: 1.125rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.nav-desktop { display: none; gap: 0.25rem; }
.nav-desktop a {
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  padding: 0.5rem 0.875rem; border-radius: 0.5rem;
  transition: all 0.15s;
}
.nav-desktop a:hover { color: var(--primary); background: rgba(37, 99, 235, 0.08); }
.nav-desktop a.is-active { color: var(--primary); background: rgba(37, 99, 235, 0.1); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  padding: 0.5rem 0.875rem; border-radius: 0.5rem;
  border: none; background: none; cursor: pointer;
  font-family: var(--font-sans); transition: all 0.15s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.is-active {
  color: var(--primary); background: rgba(37, 99, 235, 0.08);
}
.nav-dropdown-chevron {
  width: 0.875rem; height: 0.875rem;
  transition: transform 0.2s;
}
.nav-dropdown.open .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 0.375rem); left: 0;
  min-width: 15rem; z-index: 60;
  background: white; border: 1px solid var(--border);
  border-radius: 0.75rem; box-shadow: var(--shadow-lg);
  padding: 0.375rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; color: var(--navy);
  transition: background 0.1s;
}
.nav-dropdown-item:hover { background: var(--surface); color: var(--primary); }
.nav-dropdown-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.375rem;
  flex-shrink: 0;
}
.nav-dropdown-icon--blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.nav-dropdown-icon--rose { background: rgba(225, 29, 72, 0.1); color: #e11d48; }
.nav-dropdown-icon--green { background: rgba(5, 150, 105, 0.1); color: #059669; }
.nav-dropdown-icon--violet { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.nav-dropdown-icon--cyan { background: rgba(8, 145, 178, 0.1); color: #0891b2; }
.nav-dropdown-icon--amber { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.nav-dropdown-icon--slate { background: rgba(71, 85, 105, 0.1); color: #475569; }
.nav-dropdown-icon--fuchsia { background: rgba(192, 38, 211, 0.1); color: #c026d3; }
.nav-dropdown-icon--indigo { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.nav-dropdown-item--all {
  justify-content: space-between;
  font-weight: 600; color: var(--primary);
}
.nav-dropdown-footer {
  border-top: 1px solid var(--border);
  margin-top: 0.25rem; padding-top: 0.25rem;
}
.menu-toggle { background: none; border: none; cursor: pointer; padding: 0.25rem; }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  visibility: hidden;
}
.nav-mobile.open {
  pointer-events: auto;
  visibility: visible;
}
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 301;
  background: rgba(10, 22, 40, 0.38);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.nav-mobile.open .nav-mobile-overlay { opacity: 1; }
.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 302;
  width: max-content;
  min-width: 9.25rem;
  max-width: min(13.5rem, calc(100vw - 1.25rem));
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0.375rem 0.375rem 0.625rem;
  background: #fff;
  border-radius: 1.25rem 0 0 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-right: none;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.nav-mobile.open .nav-mobile-drawer { transform: translateX(0); }
.nav-mobile-close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0.125rem 0.125rem 0.25rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-close:hover {
  background: var(--surface);
  color: var(--navy);
}
.nav-mobile-close svg {
  width: 1.125rem;
  height: 1.125rem;
}
.nav-mobile-nav {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.25rem;
}
.nav-mobile-menu,
.nav-mobile-subnav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5625rem 0.625rem;
  border: none;
  border-radius: 0.5rem;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
a.nav-mobile-link:hover,
button.nav-mobile-link:hover {
  background: var(--surface);
  color: var(--primary);
}
.nav-mobile-link.is-active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}
.nav-mobile-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.22s ease;
}
.nav-mobile-group.open .nav-mobile-chevron { transform: rotate(180deg); }
.nav-mobile-group.open .nav-mobile-link--toggle {
  background: var(--surface);
  color: var(--navy);
}
.nav-mobile-subnav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding-left: 0.375rem;
}
.nav-mobile-group.open .nav-mobile-subnav {
  max-height: 16rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-sublink {
  display: block;
  padding: 0.4375rem 0.625rem;
  border-radius: 0.4375rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-sublink:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary);
}
.nav-mobile-sublink--all {
  margin-top: 0.125rem;
  padding-top: 0.625rem;
  font-weight: 600;
  color: var(--primary);
}
body.mobile-nav-open { overflow: hidden; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* Site search */
.site-search { position: relative; flex: 1; max-width: 14rem; }
@media (min-width: 768px) { .site-search { max-width: 16rem; } }
.search-input-wrap {
  position: relative; display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 0.75rem; color: var(--muted); pointer-events: none;
}
.search-input {
  width: 100%; padding: 0.5rem 2.25rem 0.5rem 2.25rem;
  border: 1px solid var(--border); border-radius: 0.625rem;
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500;
  background: var(--surface); color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input::placeholder { color: #94a3b8; }
.search-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); background: white;
}
.search-kbd {
  position: absolute; right: 0.5rem;
  display: none; font-size: 0.625rem; font-family: var(--font-sans);
  color: var(--muted); background: white; border: 1px solid var(--border);
  border-radius: 0.25rem; padding: 0.125rem 0.375rem;
}
@media (min-width: 1024px) { .search-kbd { display: inline; } }
.search-results {
  position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
  min-width: 18rem; z-index: 100;
  background: white; border: 1px solid var(--border);
  border-radius: 0.75rem; box-shadow: var(--shadow-lg);
  padding: 0.5rem; max-height: 24rem; overflow-y: auto;
}
@media (min-width: 768px) {
  .search-results { right: auto; width: 22rem; }
}
.search-results-list { list-style: none; }
.search-results-empty {
  padding: 1rem; text-align: center; font-size: 0.8125rem; color: var(--muted);
}
.search-result-item {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.625rem 0.75rem; border-radius: 0.5rem;
  transition: background 0.1s;
}
.search-result-item:hover { background: var(--surface); }
.search-result-title { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.search-result-summary {
  font-size: 0.75rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, #0a1628 0%, #030712 100%);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
  padding: 3.5rem 0 2.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(12rem, 1.25fr) repeat(4, 1fr);
    gap: 2rem 2.5rem;
    align-items: start;
  }
}
.footer-brand { max-width: 20rem; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  transition: opacity 0.15s;
}
.footer-logo:hover { opacity: 0.9; }
.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
}
.footer-col { min-width: 0; }
.footer-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-links a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}
.footer-copy {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.footer-legal a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.15s;
}
.footer-legal a:hover { color: #cbd5e1; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border-radius: 9999px; padding: 0.125rem 0.625rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-review { background: rgba(0,102,255,0.1); color: var(--primary); }
.badge-guide { background: rgba(16,185,129,0.1); color: var(--accent-green); }
.badge-article { background: rgba(124, 58, 237, 0.14); color: #6d28d9; }
.badge-comparison { background: rgba(0,194,255,0.1); color: var(--primary-dark); }

/* Stars */
.stars { display: flex; align-items: center; gap: 0.125rem; }
.star { width: 1rem; height: 1rem; color: #e2e8f0; }
.star.filled { color: #fbbf24; fill: #fbbf24; }
.star.half { color: #fbbf24; }
.stars .rating-text { margin-left: 0.25rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); }

/* Score */
.score-badge {
  display: flex; flex-direction: column; align-items: center;
  border-radius: 0.75rem; padding: 0.75rem 1rem; color: white;
}
.score-badge.high { background: var(--accent-green); }
.score-badge.mid { background: var(--primary); }
.score-badge.low { background: #f59e0b; }
.score-badge .score { font-size: 1.875rem; font-weight: 700; line-height: 1; }
.score-badge .max { font-size: 0.75rem; opacity: 0.9; margin-top: 0.125rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.625rem; padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 700; transition: all 0.2s; cursor: pointer; border: none;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.btn-glow { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45); }
.btn-glass {
  border: 1px solid rgba(255,255,255,0.25); color: white;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.btn-outline { border: 2px solid white; color: white; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }
.btn-ghost { border: 1px solid var(--border); color: var(--navy); background: white; }
.btn-ghost:hover { background: var(--surface); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: #030712;
  color: white;
  min-height: auto;
  display: flex; flex-direction: column;
}
.hero--home {
  background: #f8fafc;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.hero--home > .container {
  max-width: 100%;
  overflow: visible;
}
.hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(16, 185, 129, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(37, 99, 235, 0.2), transparent),
    radial-gradient(ellipse 50% 50% at 60% 80%, rgba(124, 58, 237, 0.12), transparent);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-orb--1 { width: 20rem; height: 20rem; background: rgba(6, 182, 212, 0.2); top: 10%; right: 5%; }
.hero-orb--2 { width: 16rem; height: 16rem; background: rgba(16, 185, 129, 0.15); bottom: 20%; left: 10%; animation-delay: -3s; }
.hero-orb--3 { width: 12rem; height: 12rem; background: rgba(124, 58, 237, 0.15); top: 50%; left: 45%; animation-delay: -5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
.hero-layout {
  position: relative; width: 100%;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}
.hero--home .hero-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 1rem;
  padding-bottom: 1.75rem;
}
.hero--home .hero-content {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Homepage topic buttons */
.hero-topic-list--desktop {
  display: none;
  flex: 0 0 auto;
  min-width: 0;
}
.hero-topic-list--mobile {
  display: block;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
@media (min-width: 900px) {
  .hero--home .hero-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    width: fit-content;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }
  .hero--home .hero-content {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 32rem;
    overflow: visible;
  }
  .hero-topic-list--desktop { display: block; }
  .hero-topic-list--mobile { display: none; }
}
.topic-picker--stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-topic-list--desktop .topic-picker--stack {
  align-items: flex-end;
}
.hero-topic-list--mobile .topic-picker--stack {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  padding: 0.125rem 0.5rem 0.25rem 0;
}
.hero-topic-list--mobile::-webkit-scrollbar {
  display: none;
}
.hero-topic-list--mobile::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2rem;
  background: linear-gradient(to right, transparent, #f8fafc);
  pointer-events: none;
}
.hero--home .topic-btn--stack {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: 2px solid var(--border);
  background: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.05);
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border-radius: 0.625rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.hero-topic-list--desktop .topic-btn--stack {
  --topic-offset: 0.75rem;
  margin-right: calc((var(--topic-step) - 1) * var(--topic-offset));
  margin-left: 0;
  width: max-content;
  min-width: 10.5rem;
  transform: rotate(calc((var(--topic-step) - 1) * -0.35deg));
}
.hero-topic-list--mobile .topic-btn--stack {
  margin: 0;
  width: max-content;
  min-width: 0;
  max-width: none;
  transform: none;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem 0.4375rem 0.4375rem;
  border-width: 1px;
  border-radius: 0.625rem;
  min-height: auto;
  scroll-snap-stop: normal;
}
.hero-topic-list--mobile .topic-btn--stack .topic-btn-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  color: var(--navy);
}
.hero-topic-list--mobile .topic-btn--stack .topic-btn-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4375rem;
  flex-shrink: 0;
}
.hero-topic-list--mobile .topic-btn--stack .topic-icon {
  --topic-icon-size: 1.0625rem;
}
.hero-topic-list--desktop .topic-btn--stack:hover {
  background: white;
  transform: translateY(-2px) rotate(0deg);
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.08), 0 8px 16px rgba(15, 23, 42, 0.08);
}
.hero-topic-list--mobile .topic-btn--stack:active {
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}
.hero--home .topic-btn--stack.is-active {
  background: #f8fafc;
  border-color: var(--navy);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.hero-topic-list--desktop .topic-btn--stack.is-active {
  transform: rotate(0deg);
}
.hero--home .topic-btn--stack .topic-btn-icon {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: var(--navy);
}
.hero--home .topic-btn--stack .topic-btn-label {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--navy);
}
.hero--home .topic-btn--stack .topic-icon {
  --topic-icon-size: 1.25rem;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 0.625rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 9999px; padding: 0.375rem 1rem 0.375rem 0.75rem;
  font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 1.5rem; backdrop-filter: blur(8px);
}
.hero--home .hero-pill {
  border-color: var(--border);
  background: white;
  color: var(--muted);
  backdrop-filter: none;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.hero--home .hero-sections { margin-top: 1.25rem; }
.hero--home .hero-actions { margin-top: 1.25rem; }
.hero--home p { color: var(--muted); max-width: 100%; }
@media (max-width: 639px) {
  .hero--home h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    overflow-wrap: break-word;
  }
  .hero--home p {
    font-size: 1rem;
    line-height: 1.65;
  }
}
.pulse-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero h1 {
  font-size: 2.75rem; font-weight: 800; line-height: 1.05;
  letter-spacing: -0.04em; text-wrap: balance;
}
@media (min-width: 640px) { .hero h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.text-gradient {
  background: linear-gradient(135deg, #059669 0%, #0891b2 50%, #4f46e5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { margin-top: 1.25rem; font-size: 1.125rem; color: #94a3b8; line-height: 1.7; max-width: 36rem; }

.hero-sections {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.375rem 0;
  margin-top: 1.75rem;
}
.hero-sections a {
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.hero-sections a:hover { color: var(--primary); }
.hero-sections a:not(:last-child)::after {
  content: "·";
  margin: 0 0.75rem;
  color: var(--border);
  font-weight: 400;
  pointer-events: none;
}
.topic-picker {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.topic-picker--strip {
  flex-wrap: nowrap;
  gap: 0.625rem;
  min-width: min-content;
}
@media (min-width: 1200px) {
  .topic-picker--strip {
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    min-width: 0;
  }
}
.topic-btn {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.4375rem 0.875rem 0.4375rem 0.4375rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  flex-shrink: 0;
  min-width: 0;
}
.topic-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--topic-accent) 30%, var(--border));
}
.topic-btn.is-active {
  border-color: color-mix(in srgb, var(--topic-accent) 45%, var(--border));
  background: var(--topic-tint);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--topic-accent) 20%, transparent);
}
.topic-btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.375rem; height: 2.375rem; border-radius: 0.5rem;
  background: var(--topic-tint);
  color: var(--topic-accent);
  flex-shrink: 0;
}
.topic-icon { width: var(--topic-icon-size); height: var(--topic-icon-size); flex-shrink: 0; }
.topic-btn-label {
  font-size: 0.8125rem; font-weight: 600; color: var(--navy);
  line-height: 1.2; white-space: nowrap;
}
@media (max-width: 639px) {
  .topic-btn { padding: 0.375rem 0.75rem 0.375rem 0.375rem; }
  .topic-btn-icon { width: 2.125rem; height: 2.125rem; }
  .topic-btn-label { font-size: 0.75rem; }
}
.topic-btn--blue { --topic-accent: #2563eb; --topic-tint: rgba(37, 99, 235, 0.1); }
.topic-btn--rose { --topic-accent: #e11d48; --topic-tint: rgba(225, 29, 72, 0.1); }
.topic-btn--green { --topic-accent: #059669; --topic-tint: rgba(5, 150, 105, 0.1); }
.topic-btn--violet { --topic-accent: #7c3aed; --topic-tint: rgba(124, 58, 237, 0.1); }
.topic-btn--cyan { --topic-accent: #0891b2; --topic-tint: rgba(8, 145, 178, 0.1); }
.topic-btn--amber { --topic-accent: #d97706; --topic-tint: rgba(217, 119, 6, 0.1); }
.topic-btn--slate { --topic-accent: #475569; --topic-tint: rgba(71, 85, 105, 0.1); }
.topic-btn--fuchsia { --topic-accent: #c026d3; --topic-tint: rgba(192, 38, 211, 0.1); }
.topic-btn--indigo { --topic-accent: #4f46e5; --topic-tint: rgba(79, 70, 229, 0.1); }
.topic-picker--inline { margin-top: 1.25rem; }
.topic-chip {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.875rem; border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 600;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  transition: all 0.15s;
  white-space: nowrap;
}
.topic-picker--grid .topic-chip,
.topic-picker--inline .topic-chip,
.topic-hub .topic-card {
  color: var(--navy);
  background: white;
  border-color: var(--border);
}
.topic-chip:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary);
  background: white;
}
.topic-picker--grid .topic-chip:hover,
.topic-picker--inline .topic-chip:hover,
.topic-hub .topic-card:hover {
  border-color: var(--primary);
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.topic-chip.is-active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}
.topic-picker--grid .topic-chip.is-active,
.topic-picker--inline .topic-chip.is-active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}
.topic-chip-dot,
.topic-card-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; flex-shrink: 0;
}
.topic-chip--rose .topic-chip-dot, .topic-card--rose .topic-card-dot { background: #f43f5e; }
.topic-chip--blue .topic-chip-dot, .topic-card--blue .topic-card-dot { background: #3b82f6; }
.topic-chip--green .topic-chip-dot, .topic-card--green .topic-card-dot { background: #10b981; }
.topic-chip--violet .topic-chip-dot, .topic-card--violet .topic-card-dot { background: #8b5cf6; }
.topic-chip--cyan .topic-chip-dot, .topic-card--cyan .topic-card-dot { background: #06b6d4; }
.topic-chip--amber .topic-chip-dot, .topic-card--amber .topic-card-dot { background: #f59e0b; }
.topic-chip--slate .topic-chip-dot, .topic-card--slate .topic-card-dot { background: #64748b; }
.topic-chip--fuchsia .topic-chip-dot, .topic-card--fuchsia .topic-card-dot { background: #d946ef; }
.topic-chip--indigo .topic-chip-dot, .topic-card--indigo .topic-card-dot { background: #6366f1; }
.topic-hub-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px) { .topic-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .topic-hub-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.topic-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.25rem 1.5rem; border-radius: 1rem;
  border: 1px solid var(--border);
  background: white;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}
.topic-card h2 { font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.topic-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; flex: 1; }
.topic-card-meta { font-size: 0.75rem; font-weight: 600; color: var(--primary); margin-top: 0.25rem; }
.topic-header { position: relative; overflow: hidden; }
.topic-back {
  display: inline-block; font-size: 0.875rem; font-weight: 600;
  color: var(--muted); margin-bottom: 1rem;
}
.topic-back:hover { color: var(--primary); }
.topic-header--rose { background: linear-gradient(180deg, rgba(244,63,94,0.08), transparent); }
.topic-header--blue { background: linear-gradient(180deg, rgba(59,130,246,0.08), transparent); }
.topic-header--green { background: linear-gradient(180deg, rgba(16,185,129,0.08), transparent); }
.topic-header--violet { background: linear-gradient(180deg, rgba(139,92,246,0.08), transparent); }
.topic-header--cyan { background: linear-gradient(180deg, rgba(6,182,212,0.08), transparent); }
.topic-header--amber { background: linear-gradient(180deg, rgba(245,158,11,0.08), transparent); }
.topic-header--slate { background: linear-gradient(180deg, rgba(100,116,139,0.08), transparent); }
.topic-header--fuchsia { background: linear-gradient(180deg, rgba(217,70,239,0.08), transparent); }
.topic-header--indigo { background: linear-gradient(180deg, rgba(99,102,241,0.08), transparent); }
.topic-section { margin-bottom: 3rem; }
.topic-section:last-child { margin-bottom: 0; }
.topic-section-title {
  font-size: 1.25rem; font-weight: 700; color: var(--navy);
  margin-bottom: 1.25rem;
}
.topic-empty {
  text-align: center; max-width: 36rem; margin: 0 auto;
  padding: 2rem 0;
}
.topic-empty p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.topic-empty .topic-picker { justify-content: center; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.875rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.5rem;
}
.hero-stat {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem; padding: 1rem 1.25rem;
  backdrop-filter: blur(8px); min-width: 6rem;
}
.hero-stat strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: white; }
.hero-stat span { font-size: 0.75rem; color: #64748b; margin-top: 0.125rem; }

/* Hero tiles */
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.hero-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.875rem; padding: 1.75rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.hero-tile:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.hero-tile-icon {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.875rem;
  background: var(--hero-accent-tint);
  color: var(--hero-accent);
}
.hero-tile-icon svg { width: 1.375rem; height: 1.375rem; }
.hero-tile-label {
  font-size: 0.875rem; font-weight: 700; color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}
.hero-tile--guide { --hero-accent: #34d399; --hero-accent-tint: rgba(52, 211, 153, 0.14); }
.hero-tile--compare { --hero-accent: #60a5fa; --hero-accent-tint: rgba(96, 165, 250, 0.14); }
.hero-tile--review { --hero-accent: #fbbf24; --hero-accent-tint: rgba(251, 191, 36, 0.14); }
.hero-tile--blog { --hero-accent: #a78bfa; --hero-accent-tint: rgba(167, 139, 250, 0.14); }

/* Topic strip (non-home) */
.topic-strip {
  border-bottom: 1px solid var(--border);
  background: white;
}
.topic-strip-inner {
  padding: 0.625rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.topic-strip-inner::-webkit-scrollbar { display: none; }

/* Sections */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}
.section--guides { background: #f8fffe; }
.section--comparisons { background: #f5f9ff; }
.section--reviews { background: #fffdf5; }
.section--blog { background: #faf8ff; }
.section-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: 0.5;
}
.section-blob--green { width: 24rem; height: 24rem; background: rgba(16,185,129,0.15); top: -8rem; right: -8rem; }
.section-blob--blue { width: 20rem; height: 20rem; background: rgba(37,99,235,0.12); bottom: -6rem; left: -6rem; }
.section-blob--amber { width: 22rem; height: 22rem; background: rgba(245,158,11,0.12); top: -6rem; left: 20%; }
.section-blob--violet { width: 20rem; height: 20rem; background: rgba(124,58,237,0.12); bottom: -8rem; right: 10%; }
.section-intro { margin-bottom: 2.5rem; max-width: 36rem; }
.section-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 0.75rem;
}
.section-eyebrow--guide { color: #059669; background: rgba(16,185,129,0.12); }
.section-eyebrow--compare { color: var(--primary); background: rgba(37,99,235,0.1); }
.section-eyebrow--review { color: #d97706; background: rgba(245,158,11,0.12); }
.section-eyebrow--blog { color: var(--accent-violet); background: rgba(124,58,237,0.1); }
.section-title { font-size: 2.25rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1.15; }
@media (min-width: 640px) { .section-title { font-size: 2.75rem; } }
.section-subtitle { color: var(--muted); margin-top: 0.75rem; font-size: 1.0625rem; line-height: 1.6; }
.section-footer-link { text-align: center; margin-top: 2rem; }
.section-footer-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin-top: 2rem;
}
.section-footer-actions .btn { text-decoration: none; }
.section-text-link {
  font-size: 0.9375rem; font-weight: 600; color: var(--primary);
  text-decoration: none;
}
.section-text-link:hover { text-decoration: underline; }
.section--compact {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) {
  .section--compact {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}
.section-title--sm {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .section-title--sm { font-size: 1.75rem; } }
.section-intro--row { margin-bottom: 1.5rem; }
@media (max-width: 639px) {
  .hero-content,
  .section-intro,
  .section-footer-actions,
  .cta-band-inner {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  /* Card grids: nearly full-width; titles/headers stay inset above */
  .section > .container > .card-grid {
    padding-left: var(--card-gutter);
    padding-right: var(--card-gutter);
  }

  .archive-card-grid,
  .container.card-grid {
    width: calc(100% + 2 * var(--page-gutter) - 2 * var(--card-gutter));
    max-width: calc(100% + 2 * var(--page-gutter) - 2 * var(--card-gutter));
    margin-left: calc(-1 * var(--page-gutter) + var(--card-gutter));
    margin-right: calc(-1 * var(--page-gutter) + var(--card-gutter));
  }

  .archive-main > .guide-featured:not(.comparison-featured) {
    width: calc(100% + 2 * var(--page-gutter) - 2 * var(--card-gutter));
    max-width: calc(100% + 2 * var(--page-gutter) - 2 * var(--card-gutter));
    margin-left: calc(-1 * var(--page-gutter) + var(--card-gutter));
    margin-right: calc(-1 * var(--page-gutter) + var(--card-gutter));
  }
}

/* Homepage post cards */
.home-post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: white;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s;
}
.home-post-card:hover { border-color: #cbd5e1; }
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  border-radius: 0.625rem;
}
.post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  line-height: 1;
  opacity: 0.4;
}
.post-thumb--blue { background: #eff6ff; }
.post-thumb--rose { background: #fff1f2; }
.post-thumb--green { background: #ecfdf5; }
.post-thumb--violet { background: #f5f3ff; }
.post-thumb--cyan { background: #ecfeff; }
.post-thumb--amber { background: #fffbeb; }
.post-thumb--slate { background: #f8fafc; }
.post-thumb--fuchsia { background: #fdf4ff; }
.home-post-body { padding: 1rem 1.125rem 1.125rem; }
.home-post-title {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  line-height: 1.35; letter-spacing: -0.01em;
}
.home-post-card:hover .home-post-title { color: var(--primary); }
.home-post-meta {
  margin-top: 0.375rem;
  font-size: 0.75rem; color: #94a3b8;
}
.home-post-label { font-weight: 600; color: var(--muted); }
.home-post-meta-sep { margin: 0 0.25rem; }
.home-post-desc {
  margin-top: 0.5rem;
  font-size: 0.8125rem; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Secondary buttons */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 700;
  border: 2px solid transparent; transition: all 0.2s;
}
.btn-secondary--guide { color: #059669; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.25); }
.btn-secondary--guide:hover { background: rgba(16,185,129,0.18); transform: translateY(-2px); }
.btn-secondary--compare { color: var(--primary); background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.2); }
.btn-secondary--compare:hover { background: rgba(37,99,235,0.15); transform: translateY(-2px); }
.btn-secondary--review { color: #d97706; background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); }
.btn-secondary--review:hover { background: rgba(245,158,11,0.18); transform: translateY(-2px); }
.btn-secondary--blog { color: var(--accent-violet); background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); }
.btn-secondary--blog:hover { background: rgba(124,58,237,0.15); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.link-arrow { font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.link-arrow:hover { text-decoration: underline; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Trust grid */
.trust-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; gap: 1rem; }
.trust-icon {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,102,255,0.1); border-radius: 0.75rem; color: var(--primary);
}
.trust-item h3 { font-weight: 600; color: var(--navy); }
.trust-item p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }

/* Product cards */
.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: white; overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 158, 11, 0.35);
}
.product-card--featured .product-card-bg {
  position: absolute; inset: 0; opacity: 0.06;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  pointer-events: none;
}
.product-card--featured:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px rgba(245, 158, 11, 0.15);
}
.product-card-inner { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-rank {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  font-size: 0.75rem; font-weight: 800; color: #d97706;
  background: rgba(245,158,11,0.12); padding: 0.125rem 0.5rem; border-radius: 9999px;
}
.product-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.product-logo {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 0.875rem;
  font-size: 1.125rem; font-weight: 800; color: var(--primary);
}
.product-logo--lg { width: 3.25rem; height: 3.25rem; }
.product-score-ring {
  display: flex; flex-direction: column; align-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white; justify-content: center; line-height: 1;
}
.product-score-ring .score-num { font-size: 1rem; font-weight: 800; }
.product-score-ring .score-label { font-size: 0.5rem; opacity: 0.85; }
.product-category {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.25rem;
}
.product-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.product-card:hover h3 { color: var(--primary); }
.product-card .tagline { font-size: 0.8125rem; color: var(--muted); margin: 0.375rem 0 0.75rem; flex: 1; }
.product-card-footer {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.product-card-footer .price { font-size: 0.8125rem; font-weight: 700; color: var(--navy); }
.product-cta { font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.product-card:hover .product-cta { text-decoration: underline; }
.score-pill {
  background: rgba(37,99,235,0.1); color: var(--primary);
  border-radius: 9999px; padding: 0.125rem 0.625rem;
  font-size: 0.75rem; font-weight: 700;
}

/* Guide cards */
.guide-card {
  position: relative; display: flex; align-items: flex-start; gap: 1rem;
  background: white; border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.guide-card--grid {
  flex-direction: column; align-items: stretch; gap: 0;
  border-radius: 0.75rem; padding: 0;
  overflow: hidden;
  box-shadow: none;
}
.guide-card--grid:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--navy);
}
.guide-card--grid .guide-card-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 1rem 1.125rem 0;
}
.guide-card--grid h3 { margin-top: 0.375rem; font-size: 1rem; }
.guide-card--grid p {
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-card--grid .guide-card-arrow {
  align-self: flex-end; margin-top: 0.75rem;
  padding: 0 1.125rem 1.125rem;
  font-size: 1.125rem;
}
.guide-card--grid:hover .guide-card-arrow { color: var(--primary); transform: translateX(3px); }
.guide-card--grid:hover h3 { color: var(--primary); }
.guide-card-num {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white; font-size: 1rem; font-weight: 800;
  border-radius: 0.75rem;
}
.guide-card-body { flex: 1; min-width: 0; }
.guide-card h3 { font-weight: 700; color: var(--navy); letter-spacing: -0.02em; margin-top: 0.5rem; }
.guide-card:hover h3 { color: var(--accent-green); }
.guide-card p { font-size: 0.875rem; color: var(--muted); margin-top: 0.375rem; line-height: 1.55; }
.guide-meta {
  display: flex; align-items: center; gap: 0.375rem;
  margin-top: 0.875rem; font-size: 0.75rem; font-weight: 600; color: var(--muted);
}
.guide-meta-dot { opacity: 0.5; }
.guide-card-arrow {
  flex-shrink: 0; font-size: 1.25rem; color: var(--border);
  transition: all 0.2s; align-self: center;
}
.guide-card:hover .guide-card-arrow { color: var(--accent-green); transform: translateX(4px); }

.comparison-card:hover .comparison-cta { text-decoration: underline; }

.comparison-card--grid {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: white;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s;
  box-shadow: none;
}
.comparison-card--grid:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--navy);
}
.comparison-card--grid .comparison-card-body {
  padding: 1rem 1.125rem 0;
  display: flex; flex-direction: column; flex: 1;
}
.comparison-card--grid .comparison-card-glow { display: none; }
.comparison-card--grid h3 {
  margin-top: 0.375rem;
  font-size: 1rem; font-weight: 600;
}
.comparison-card--grid p {
  flex: 1;
  margin-top: 0.375rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.comparison-card--grid .comparison-card-meta {
  font-size: 0.6875rem; font-weight: 600; color: var(--muted);
}
.comparison-card--grid .comparison-card-footer {
  margin-top: 0.875rem;
  font-size: 0.75rem; color: #94a3b8;
}
.comparison-card--grid .comparison-card-arrow {
  align-self: flex-end;
  margin-top: 0.75rem;
  padding: 0 1.125rem 1.125rem;
  font-size: 1.125rem; color: #cbd5e1;
  transition: color 0.15s, transform 0.15s;
}
.comparison-card--grid:hover .comparison-card-arrow {
  color: var(--primary); transform: translateX(3px);
}
.comparison-card--grid:hover h3 { color: var(--primary); }

.product-card--grid {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: white;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s;
  box-shadow: none;
}
.product-card--grid:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--navy);
}
.product-card--grid .product-card-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 1rem 1.125rem 0;
}
.product-card--grid .product-card-category {
  font-size: 0.6875rem; font-weight: 600; color: var(--muted);
}
.product-card--grid h3 {
  margin-top: 0.375rem;
  font-size: 1rem; font-weight: 600;
}
.product-card--grid .tagline {
  flex: 1;
  margin: 0.375rem 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card--grid .product-card-footer {
  margin-top: 0.875rem; padding-top: 0;
  border-top: none;
  display: flex; justify-content: space-between; align-items: center;
}
.product-card--grid .product-card-date {
  font-size: 0.75rem; color: #94a3b8;
}
.product-card--grid .product-card-arrow {
  align-self: flex-end;
  margin-top: 0.75rem;
  padding: 0 1.125rem 1.125rem;
  font-size: 1.125rem; color: #cbd5e1;
  transition: color 0.15s, transform 0.15s;
}
.product-card--grid:hover .product-card-arrow {
  color: var(--primary); transform: translateX(3px);
}
.product-card--grid:hover h3 { color: var(--primary); }

/* Comparison link cards */
.comp-link-card {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: all 0.2s;
}
.comp-link-card:hover { border-color: rgba(0,102,255,0.3); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.comp-link-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--navy); }
.comp-link-card:hover h3 { color: var(--primary); }

/* Start Here / section boxes */
.start-box,
.compare-box {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: white; padding: 2rem;
}
@media (min-width: 640px) { .start-box, .compare-box { padding: 2.5rem; } }
.start-box-header,
.compare-box-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.start-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,0.1); border-radius: 0.75rem; color: var(--accent-green);
}
.compare-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,102,255,0.1); border-radius: 0.75rem; color: var(--primary);
}

/* Comparison cards */
.comparison-card {
  position: relative; border-radius: 1.25rem; overflow: hidden;
  background: white; border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.comparison-card-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}
.comparison-card-inner { padding: 1.5rem; }
.comparison-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.comparison-count {
  font-size: 0.6875rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--primary);
  background: rgba(37,99,235,0.1); padding: 0.2rem 0.6rem; border-radius: 9999px;
}
.comparison-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.comparison-card:hover h3 { color: var(--primary); }
.comparison-card p { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.55; }
.comparison-preview { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.comparison-preview-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); border-radius: 0.625rem; padding: 0.5rem 0.75rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--navy);
}
.comparison-preview-rank {
  width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: white; border-radius: 50%;
  font-size: 0.6875rem; font-weight: 800; flex-shrink: 0;
}
.comparison-preview-score {
  margin-left: auto; color: var(--primary); font-weight: 800;
}
.comparison-cta {
  display: inline-block; margin-top: 1.25rem;
  font-size: 0.8125rem; font-weight: 700; color: var(--primary);
}
.comparison-card:hover .comparison-cta { text-decoration: underline; }

/* Trust cards */
.trust-cards { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .trust-cards { grid-template-columns: repeat(3, 1fr); } }
.trust-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all 0.2s;
}
.trust-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.trust-card-icon {
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem; margin-bottom: 1rem;
}
.trust-card-icon--green { background: rgba(16,185,129,0.12); color: var(--accent-green); }
.trust-card-icon--blue { background: rgba(37,99,235,0.12); color: var(--primary); }
.trust-card-icon--cyan { background: rgba(6,182,212,0.12); color: var(--accent); }
.trust-card h3 { font-weight: 700; color: var(--navy); margin-bottom: 0.375rem; }
.trust-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #030712 0%, #0f172a 50%, #1e1b4b 100%);
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.cta-band-pattern {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta-band-inner {
  position: relative;
  display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start;
}
@media (min-width: 768px) {
  .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-band h2 { font-size: 1.75rem; font-weight: 800; color: white; letter-spacing: -0.03em; }
.cta-band p { color: #94a3b8; margin-top: 0.5rem; font-size: 1rem; max-width: 28rem; }

/* Page header */
.page-header {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) {
  .page-header {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
.page-header h1 { font-size: 1.875rem; font-weight: 700; color: var(--navy); margin-top: 0.5rem; }
@media (min-width: 640px) { .page-header h1 { font-size: 2.25rem; } }
.page-header p { margin-top: 0.5rem; color: var(--muted); max-width: 42rem; }
.page-header.surface { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-header--article {
  background: var(--background);
  border-bottom: none;
  padding-bottom: 0;
}
.page-header--article h1 {
  margin-top: 0.75rem;
}
@media (max-width: 639px) {
  .page-header {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }
}
.article-category {
  font-size: 0.875rem;
  font-weight: 500;
  color: #b45309;
  margin-left: 0.5rem;
}
.article-body {
  padding: 2rem 0 4rem;
}
.article-main {
  min-width: 0;
}
.article-hero {
  width: 100%;
  margin: 0 0 2rem;
  padding: 0;
  overflow: hidden;
  border-radius: 0.625rem;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 18rem;
  object-fit: cover;
  display: block;
  border: none;
  box-shadow: none;
}

/* Review single */
.review-header-grid {
  display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem;
}
@media (min-width: 1024px) {
  .review-header-grid { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.review-product-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.review-logo {
  width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  background: white; border-radius: 1rem; font-size: 1.5rem;
  font-weight: 700; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden; flex-shrink: 0;
}
.review-logo-img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  padding: 0.375rem;
}
.review-logo-img--profile {
  object-fit: cover;
  padding: 0;
}
.guide-callout {
  margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(16,185,129,0.3); background: rgba(16,185,129,0.05);
  border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.875rem;
}
.guide-callout a { color: var(--accent-green); font-weight: 500; }
.guide-callout a:hover { text-decoration: underline; }

.content-grid { display: grid; gap: 3rem; padding: 3rem 0; }
@media (min-width: 1024px) { .content-grid { grid-template-columns: 2fr 1fr; } }
.content-grid > .content-main,
.content-grid > aside { min-width: 0; }
@media (max-width: 639px) {
  .content-main .article-content table,
  .content-main .pricing-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.content-main section { margin-bottom: 3rem; }
.content-main h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }

.pros-cons { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-box {
  border: 1px solid rgba(16,185,129,0.2); background: rgba(16,185,129,0.05);
  border-radius: var(--radius); padding: 1.5rem;
}
.cons-box {
  border: 1px solid #fecaca; background: rgba(254,242,242,0.5);
  border-radius: var(--radius); padding: 1.5rem;
}
.pros-cons h3 { font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.pros-cons li {
  display: flex; gap: 0.5rem; font-size: 0.875rem; margin-bottom: 0.75rem;
}
.pros-box li svg { color: var(--accent-green); flex-shrink: 0; margin-top: 0.125rem; }
.cons-box li svg { color: #f87171; flex-shrink: 0; margin-top: 0.125rem; }

.screenshot-grid { display: grid; gap: 1rem; margin: 1rem 0 3rem; }
@media (min-width: 640px) { .screenshot-grid { grid-template-columns: 1fr 1fr; } }
.screenshot-figure {
  margin: 0;
  aspect-ratio: 1024 / 568;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface);
}
.screenshot-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.screenshot-caption {
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.screenshot-placeholder {
  aspect-ratio: 16/9; border: 1px solid var(--border);
  background: var(--surface); border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; color: var(--muted);
}

.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-top: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; }
.pricing-table th { text-align: left; padding: 0.75rem 1rem; background: var(--surface); font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); }
.pricing-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.pricing-table tr:nth-child(even) td { background: rgba(248,250,252,0.5); }
.pricing-table .price-cell { color: var(--primary); font-weight: 600; }

.sidebar-card {
  position: sticky; top: 6rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: white; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sidebar-card .score-badge { margin: 0 auto; }
.sidebar-meta { margin-top: 1.5rem; }
.sidebar-meta div { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.75rem; }
.sidebar-meta .label { color: var(--muted); }
.sidebar-meta .value { font-weight: 600; color: var(--navy); }
.sidebar-cta { margin-top: 1.5rem; width: 100%; }
.sidebar-note { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; color: var(--muted); }

/* Ranked cards */
.ranked-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: white; padding: 1.5rem; transition: box-shadow 0.2s;
}
.ranked-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.ranked-inner { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .ranked-inner { flex-direction: row; align-items: flex-start; } }
.rank-num {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: white; border-radius: 50%;
  font-size: 1.125rem; font-weight: 700;
}
.ranked-body { flex: 1; }
.ranked-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ranked-title-row h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.highlight-pill {
  background: rgba(16,185,129,0.1); color: var(--accent-green);
  border-radius: 9999px; padding: 0.125rem 0.625rem;
  font-size: 0.75rem; font-weight: 600;
}
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.spec-box { background: var(--surface); border-radius: 0.5rem; padding: 0.5rem 0.75rem; }
.spec-box dt { font-size: 0.75rem; color: var(--muted); }
.spec-box dd { font-size: 0.875rem; font-weight: 500; color: var(--navy); }
.ranked-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }
.ranked-score { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* Guide single */
.guide-steps { list-style: none; }
.guide-step { margin-bottom: 3rem; scroll-margin-top: 6rem; }
.guide-step-inner { display: flex; gap: 1rem; }
.step-num {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-green); color: white; border-radius: 50%;
  font-size: 0.875rem; font-weight: 700;
}
.guide-step h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.guide-step p { margin-top: 0.75rem; color: var(--muted); line-height: 1.7; }

.progress-bar { margin-bottom: 1.5rem; }
.progress-bar--sticky,
.reading-progress--blog {
  position: sticky;
  top: var(--site-header-height, 7rem);
  z-index: 40;
}
.progress-bar--sticky {
  background: var(--background);
  padding: 0.75rem 0 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.reading-progress--blog {
  height: 2px;
  background: transparent;
}
.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent));
  transition: width 0.12s ease-out;
}
.progress-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.progress-track { height: 0.375rem; background: var(--border); border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent-green); border-radius: 9999px; transition: width 0.3s; }

.checklist-box {
  margin-top: 4rem; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius);
  padding: 1.5rem;
}
@media (min-width: 640px) { .checklist-box { padding: 2rem; } }
.checklist-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.checklist-items li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; margin-bottom: 0.75rem; }
.checklist-items input { margin-top: 0.125rem; accent-color: var(--accent-green); }

/* TOC sidebar */
.toc-sidebar { position: sticky; top: calc(var(--site-header-height, 6rem) + 1.5rem); display: none; }
@media (min-width: 1024px) { .toc-sidebar { display: block; } }
.toc-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.75rem; }
.toc-list { border-left: 1px solid var(--border); padding-left: 1rem; }
.toc-list a {
  display: block; padding: 0.375rem 0; font-size: 0.875rem;
  color: var(--muted); transition: color 0.15s;
}
.toc-list a:hover, .toc-list a.active { color: var(--primary); font-weight: 500; }
.toc-list a.active { border-left: 2px solid var(--primary); margin-left: -1.0625rem; padding-left: 0.9375rem; }
.article-toc ul { list-style: none; border-left: 1px solid var(--border); padding-left: 1rem; }
.article-toc li { margin-bottom: 0.25rem; }
.article-toc a { display: block; padding: 0.375rem 0; font-size: 0.875rem; color: var(--muted); }
.article-toc a:hover { color: var(--primary); }

.layout-with-toc { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .layout-with-toc { grid-template-columns: 1fr 15rem; } }

/* Blog */
.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 1.25rem;
  background: white; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.blog-card-thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem;
}
.blog-card-thumb--news {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
}
.blog-card-thumb--threat {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #f97316 100%);
}
.blog-card-thumb--opinion {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #a78bfa 100%);
}
.blog-thumb-pattern {
  position: absolute; inset: 0; opacity: 0.15;
  background-image: radial-gradient(circle at 20% 80%, white 1px, transparent 1px);
  background-size: 20px 20px;
}
.blog-thumb-category {
  position: relative; z-index: 1;
  align-self: flex-start;
  font-size: 0.6875rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: white;
  background: rgba(0,0,0,0.25); backdrop-filter: blur(4px);
  padding: 0.25rem 0.625rem; border-radius: 9999px;
}
.blog-thumb-date {
  position: relative; z-index: 1; align-self: flex-end;
  font-size: 2rem; font-weight: 800; color: rgba(255,255,255,0.9);
  line-height: 1; letter-spacing: -0.03em;
}
.blog-card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card h2 { font-size: 1.0625rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.35; }
.blog-card:hover h2 { color: var(--primary); }
.blog-excerpt { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; flex: 1; line-height: 1.55; }
.blog-meta {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center;
  font-size: 0.75rem; color: var(--muted);
}
.blog-label { font-weight: 600; }
.blog-meta-sep { margin: 0 0.25rem; }
.blog-author { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.blog-author-avatar {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; font-size: 0.625rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.article-meta { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.875rem; color: var(--muted); }
.article-content { line-height: 1.7; color: var(--muted); }
.article-content h2 {
  font-size: 1.375rem; font-weight: 700; color: var(--navy);
  margin: 2.75rem 0 1rem; scroll-margin-top: 6rem;
  line-height: 1.35; letter-spacing: -0.02em;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 1.0625rem; font-weight: 700; color: var(--navy);
  margin: 1.75rem 0 0.625rem; line-height: 1.4;
}
.article-content p { margin-bottom: 1.25rem; }
.article-content p:last-child { margin-bottom: 0; }
.article-content ul {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content li:last-child { margin-bottom: 0; }
.article-content strong { color: var(--navy); font-weight: 600; }
.article-content table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}
.article-content th,
.article-content td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-content th {
  background: var(--surface);
  font-weight: 600;
  color: var(--navy);
}
.article-content tr:nth-child(even) td { background: rgba(248, 250, 252, 0.6); }
.article-content tr:last-child td { border-bottom: none; }

.author-box {
  margin-top: 3rem; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
}
.author-box h3 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.author-box .name { font-weight: 600; color: var(--navy); margin-top: 0.5rem; }
.author-box .bio { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.author-box-link {
  display: inline-block; margin-top: 0.75rem; font-size: 0.875rem;
}

.related-list { margin-top: 2rem; }
.related-list h3 { font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.related-list ul { margin-top: 1rem; }
.related-list li { margin-bottom: 0.75rem; }
.related-list a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--primary); }
.related-list a:hover { text-decoration: underline; }

/* Deals */
.deal-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: white; padding: 1.5rem;
}
@media (min-width: 640px) { .deal-card { display: flex; align-items: center; justify-content: space-between; } }
.deal-inner { display: flex; gap: 1rem; }
.deal-discount { font-size: 1.5rem; font-weight: 700; color: var(--accent-green); margin-top: 0.25rem; }
.deal-code { font-size: 0.875rem; margin-top: 0.25rem; }
.deal-code code { background: var(--surface); padding: 0.125rem 0.5rem; border-radius: 0.25rem; font-family: monospace; color: var(--primary); }
.deal-actions { margin-top: 1rem; }
@media (min-width: 640px) { .deal-actions { margin-top: 0; text-align: right; } }

/* About authors */
.author-card {
  display: flex; gap: 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.author-avatar {
  width: 3.5rem; height: 3.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,102,255,0.1); border-radius: 50%;
  font-weight: 700; color: var(--primary);
}
.author-card .role { font-size: 0.875rem; color: var(--primary); }
.author-card .credentials { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.author-card .bio { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }

.content-section { margin-top: 3rem; scroll-margin-top: 6rem; }
.content-section h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.content-section p {
  max-width: 42rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.methodology-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .methodology-grid { grid-template-columns: repeat(3, 1fr); } }
.methodology-card { border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; text-align: center; }
.methodology-card svg { margin: 0 auto; color: var(--primary); }
.methodology-card h3 { margin-top: 0.75rem; font-weight: 600; color: var(--navy); }
.methodology-card p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }

.test-list li {
  display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem;
}
.test-list li::before {
  content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 0.5rem;
}

.info-box {
  margin-top: 3rem; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.filter-pill {
  border: 1px solid var(--border); border-radius: 9999px;
  padding: 0.375rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--muted);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }

.disclaimer {
  margin-top: 2.5rem; background: var(--surface);
  border-radius: 0.5rem; padding: 0.75rem 1rem;
  font-size: 0.75rem; color: var(--muted);
}
.disclaimer a { color: var(--primary); }

.space-y > * + * { margin-top: 1.5rem; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Archive pages */
.archive-page { padding: 3rem 0 4rem; }
@media (min-width: 640px) { .archive-page { padding: 4rem 0 5rem; } }
.archive-container { max-width: 42rem; }
.archive-header { margin-bottom: 1.75rem; }
.archive-title {
  font-size: 1.875rem; font-weight: 700; color: var(--navy);
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .archive-title { font-size: 2.25rem; } }
.archive-description {
  margin-top: 0.625rem; font-size: 1rem; line-height: 1.6;
  color: var(--muted); max-width: 36rem;
}
.topic-filter {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.topic-filter-mobile { margin-bottom: 0; }
.topic-filter-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--muted);
}
.topic-filter-select-wrap {
  position: relative;
}
.topic-filter-select {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  font-size: 0.9375rem; font-family: var(--font-sans); font-weight: 500;
  color: var(--navy);
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.topic-filter-select:hover { border-color: #cbd5e1; }
.topic-filter-select:focus {
  outline: none;
  border-color: var(--navy);
}
.topic-filter-chevron {
  position: absolute; right: 0.75rem; top: 50%;
  width: 1rem; height: 1rem;
  color: var(--muted); pointer-events: none;
  transform: translateY(-50%);
}
.topic-filter-tabs {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.125rem;
}
.topic-filter-tab {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.topic-filter-tab:hover { color: var(--navy); }
.topic-filter-tab.is-active {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--navy);
}
@media (min-width: 640px) {
  .topic-filter-mobile { display: none; }
  .topic-filter-tabs { display: flex; }
}
.editorial-list {
  border-top: 1px solid var(--border);
}
.editorial-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: color 0.15s;
}
.editorial-row-thumb {
  flex-shrink: 0;
  width: 4.5rem;
}
.editorial-row-thumb .post-thumb {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  min-height: 4.5rem;
}
.editorial-row-thumb .post-thumb-placeholder {
  font-size: 1.25rem;
}
@media (min-width: 640px) {
  .editorial-row-thumb {
    width: 6.5rem;
  }
  .editorial-row-thumb .post-thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}
.editorial-row:hover .editorial-row-title { color: var(--primary); }
.editorial-row-body { flex: 1; min-width: 0; }
.editorial-row-title {
  font-size: 1.0625rem; font-weight: 600; color: var(--navy);
  line-height: 1.35; transition: color 0.15s;
}
.editorial-row-desc {
  margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.5;
  color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.editorial-row-meta {
  margin-top: 0.375rem; font-size: 0.75rem; color: #94a3b8;
}
.editorial-row-author {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--muted);
}
.editorial-row-author .blog-author-avatar {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.5625rem;
}
.editorial-row-meta-sep { margin: 0 0.375rem; }
.editorial-row-arrow {
  flex-shrink: 0; width: 1.125rem; height: 1.125rem;
  color: #cbd5e1; transition: color 0.15s, transform 0.15s;
}
.editorial-row:hover .editorial-row-arrow {
  color: var(--primary); transform: translateX(2px);
}
.archive-empty {
  padding: 2rem 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.6;
}
.topic-hub-section { margin-bottom: 3rem; }
.topic-hub-section:last-child { margin-bottom: 0; }
.topic-hub-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 0.5rem;
}
.topic-hub-section-title {
  font-size: 1.125rem; font-weight: 700; color: var(--navy);
}
.topic-hub-see-all {
  flex-shrink: 0; font-size: 0.8125rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
}
.topic-hub-see-all:hover { color: var(--primary); }

/* Archive sidebar layout */
.archive-layout { padding: 2.5rem 0 4rem; }
@media (min-width: 640px) { .archive-layout { padding: 3rem 0 5rem; } }
.archive-layout-container { max-width: var(--max-w); }
.archive-layout--guides .archive-header,
.archive-layout--comparisons .archive-header,
.archive-layout--reviews .archive-header { margin-bottom: 0; }
.archive-layout--guides .archive-description,
.archive-layout--comparisons .archive-description,
.archive-layout--reviews .archive-description { font-size: 0.9375rem; }
.archive-layout-grid {
  display: grid; gap: 2rem;
  margin-top: 1.25rem;
}
@media (min-width: 1024px) {
  .archive-layout-grid {
    grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
    gap: 3rem;
    margin-top: 2rem;
  }
}
.archive-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  .archive-aside {
    position: sticky;
    top: calc(var(--site-header-height, 4rem) + 1.5rem);
    align-self: start;
  }
}
.archive-sidebar {
  display: none;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: white;
}
@media (min-width: 1024px) {
  .archive-sidebar { display: block; }
}
.archive-sidebar-group + .archive-sidebar-group {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.archive-sidebar-heading {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.75rem;
}
.archive-sidebar-list {
  list-style: none; display: grid; gap: 0.125rem;
}
.archive-sidebar-link {
  display: block;
  padding: 0.4375rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.archive-sidebar-link:hover {
  color: var(--navy);
  background: var(--surface);
}
.archive-sidebar-link.is-active {
  color: var(--navy);
  font-weight: 600;
  background: var(--surface);
  box-shadow: inset 2px 0 0 var(--navy);
}
.archive-main { min-width: 0; }
.archive-grid-section { margin-top: 2rem; }
.archive-grid-heading {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: 1.125rem; font-weight: 700; color: var(--navy);
  margin-bottom: 1.25rem;
}
.archive-grid-count {
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
}
.archive-card-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 640px) {
  .archive-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .archive-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.guide-featured {
  display: flex; align-items: stretch; justify-content: space-between; gap: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  text-decoration: none; color: inherit;
  transition: border-color 0.15s;
  overflow: hidden;
}
.guide-featured:hover { border-color: var(--navy); }
.guide-featured-thumb {
  flex: 0 0 11rem;
  max-width: 11rem;
  min-height: 9rem;
}
.guide-featured-thumb .post-thumb {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}
.guide-featured-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guide-featured-label {
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  margin-bottom: 0.5rem;
}
.guide-featured-title {
  font-size: 1.375rem; font-weight: 700; color: var(--navy);
  line-height: 1.3; letter-spacing: -0.02em;
}
.guide-featured:hover .guide-featured-title { color: var(--primary); }
.guide-featured-desc {
  margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.6;
  color: var(--muted); max-width: 36rem;
}
.guide-featured-meta {
  margin-top: 0.875rem; font-size: 0.8125rem; color: #94a3b8;
}
.guide-featured-meta-sep { margin: 0 0.375rem; }
.guide-featured-cta {
  display: inline-block; margin-top: 1rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
}
.guide-featured-arrow {
  flex-shrink: 0; width: 1.25rem; height: 1.25rem;
  align-self: center;
  margin-right: 1.25rem;
  color: #cbd5e1; transition: color 0.15s, transform 0.15s;
}
.guide-featured:hover .guide-featured-arrow {
  color: var(--primary); transform: translateX(3px);
}
/* Wide comparison banners — compact card sized to the banner strip */
.comparison-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  width: calc(9.5rem * 2 + 2px);
  max-width: 100%;
}
.comparison-featured .guide-featured-thumb {
  grid-column: 1 / -1;
  flex: none;
  max-width: none;
  width: 100%;
  min-height: 0;
}
.comparison-featured .guide-featured-thumb .post-thumb {
  aspect-ratio: 2 / 1;
  width: 100%;
  height: auto;
  border-radius: 0;
  min-height: 0;
  background: transparent;
}
.comparison-featured .post-thumb-img {
  object-fit: cover;
  object-position: left center;
  transform: scale(1.06);
  transform-origin: left center;
}
.comparison-featured .guide-featured-content {
  grid-column: 1;
  grid-row: 2;
  padding: 1rem 1.125rem;
}
.comparison-featured .guide-featured-label {
  margin-bottom: 0.375rem;
}
.comparison-featured .guide-featured-title {
  font-size: 1.125rem;
}
.comparison-featured .guide-featured-desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comparison-featured .guide-featured-meta {
  margin-top: 0.5rem;
}
.comparison-featured .guide-featured-cta {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
}
.comparison-featured .guide-featured-arrow {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  margin-right: 1.25rem;
  width: 1.125rem;
  height: 1.125rem;
}
@media (min-width: 640px) {
  .guide-featured:not(.comparison-featured) .guide-featured-thumb {
    flex-basis: 13rem;
    max-width: 13rem;
    min-height: 10rem;
  }
  .guide-featured-content { padding: 1.75rem 1.5rem; }
  .comparison-featured .guide-featured-content { padding: 1.125rem 1.25rem; }
  .comparison-featured {
    width: calc(11rem * 2 + 2px);
  }
  .guide-featured-arrow { margin-right: 1.75rem; }
  .comparison-featured .guide-featured-arrow { margin-right: 1.75rem; }
}
@media (max-width: 479px) {
  .guide-featured:not(.comparison-featured) { flex-wrap: wrap; }
  .guide-featured:not(.comparison-featured) .guide-featured-thumb {
    flex: 0 0 100%;
    max-width: none;
    min-height: 0;
  }
  .guide-featured:not(.comparison-featured) .guide-featured-thumb .post-thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .guide-featured:not(.comparison-featured) .guide-featured-arrow {
    align-self: flex-end;
    margin: 0 1.25rem 1.25rem;
  }
}
.archive-search {
  position: relative; margin-top: 1.5rem;
}
.archive-toolbar {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: white;
}
.archive-toolbar-inner {
  position: relative;
}
.archive-toolbar-row {
  display: flex;
  align-items: stretch;
  min-height: 2.75rem;
}
.archive-toolbar-search {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.archive-toolbar-search-icon {
  position: absolute; left: 0.75rem;
  width: 1rem; height: 1rem;
  color: #94a3b8; pointer-events: none;
}
.archive-toolbar-search-input {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.25rem;
  font-size: 0.875rem; font-family: var(--font-sans);
  color: var(--navy);
  background: transparent;
  border: none;
  border-radius: 0.5rem 0 0 0.5rem;
}
.archive-toolbar-search-input::placeholder { color: #94a3b8; }
.archive-toolbar-search-input:focus { outline: none; }
.archive-toolbar-filter {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 9.5rem;
  border-left: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .archive-toolbar-filter { display: none; }
  .archive-toolbar-search-input { border-radius: 0.5rem; }
}
.archive-toolbar-select-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.archive-toolbar-select {
  width: 100%;
  padding: 0.625rem 1.375rem 0.625rem 0.625rem;
  font-size: 0.8125rem; font-family: var(--font-sans); font-weight: 500;
  color: var(--navy);
  background: transparent;
  border: none;
  border-radius: 0 0.5rem 0.5rem 0;
  appearance: none;
  cursor: pointer;
}
.archive-toolbar-select:focus { outline: none; }
.archive-toolbar-chevron {
  position: absolute; right: 0.5rem; top: 50%;
  width: 0.875rem; height: 0.875rem;
  color: #94a3b8; pointer-events: none;
  transform: translateY(-50%);
}
.archive-toolbar .archive-search-results {
  top: 100%;
  left: 0; right: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  border-top: 1px solid var(--border);
}
.archive-search-wrap { position: relative; }
.archive-search-icon {
  position: absolute; left: 1rem; top: 50%;
  width: 1.125rem; height: 1.125rem;
  color: var(--muted); pointer-events: none;
  transform: translateY(-50%);
}
.archive-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.9375rem; font-family: var(--font-sans);
  color: var(--navy);
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  transition: border-color 0.15s;
}
.archive-search-input::placeholder { color: #94a3b8; }
.archive-search-input:focus {
  outline: none; border-color: var(--navy);
}
.archive-search-results {
  position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
  z-index: 50;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 0.5rem;
  max-height: 18rem; overflow-y: auto;
}
.archive-search-list { list-style: none; }
.archive-search-empty {
  padding: 0.875rem; text-align: center;
  font-size: 0.8125rem; color: var(--muted);
}
.archive-search-item {
  display: block; padding: 0.625rem 0.75rem;
  border-radius: 0.375rem; text-decoration: none;
  transition: background 0.1s;
}
.archive-search-item:hover { background: var(--surface); }
.archive-search-item-title {
  font-size: 0.875rem; font-weight: 600; color: var(--navy);
}
.archive-search-item-summary {
  margin-top: 0.125rem; font-size: 0.75rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Search scope filters */
.search-filters {
  display: flex; flex-wrap: wrap; gap: 0.375rem;
  padding: 0.375rem 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.search-filter-pill {
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid var(--border);
  border-radius: 9999px; cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.search-filter-pill:hover { border-color: #cbd5e1; color: var(--navy); }
.search-filter-pill.is-active {
  border-color: var(--navy); color: var(--navy);
  background: var(--surface);
}
.search-topic-select {
  width: 100%; margin: 0.375rem 0.5rem 0.5rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem; font-family: var(--font-sans);
  color: var(--navy); background: var(--surface);
  border: 1px solid var(--border); border-radius: 0.375rem;
}

/* SVG icons inline sizing */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
