/* Handpicked AI — Design System */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #fafaf9;
  --bg-muted: #f3f3f1;
  --bg-elevated: #ffffff;
  --fg: #141414;
  --fg-muted: #525252;
  --fg-subtle: #737373;
  --border: rgba(20, 20, 20, 0.08);
  --border-strong: rgba(20, 20, 20, 0.14);
  --navy: #1e2a45;
  --navy-deep: #151d30;
  --navy-soft: rgba(30, 42, 69, 0.08);
  --lime: #b4f040;
  --lime-hover: #a2e030;
  --lime-soft: rgba(180, 240, 64, 0.16);
  --lime-muted: rgba(180, 240, 64, 0.08);

  /* Legacy aliases for article pages */
  --bg-wash: var(--bg-muted);
  --muted: var(--fg-muted);
  --muted2: var(--fg-subtle);
  --rule: var(--border);
  --rule-strong: var(--border-strong);
  --accent: var(--navy);
  --accent-fg: var(--navy);
  --accent-soft: var(--navy-soft);
  --accent-brass: var(--lime);
  --score-green: var(--navy);
  --gx-primary: var(--navy);
  --gx-accent: var(--lime);
  --gx-accent-hot: var(--lime-hover);
  --gx-accent-soft: var(--lime-soft);
  --tag-bg: var(--bg-muted);
  --tag-fg: var(--fg-muted);
  --brass-soft: var(--lime-soft);

  --shadow-xs: 0 1px 2px rgba(20, 20, 20, 0.04);
  --shadow-sm: 0 2px 8px rgba(20, 20, 20, 0.05), 0 12px 32px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 20, 20, 0.08), 0 2px 6px rgba(20, 20, 20, 0.04);
  --shadow-lg: 0 20px 48px -12px rgba(20, 20, 20, 0.12);
  --shadow-featured: var(--shadow-lg);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font);
  --font-body: var(--font);

  --max: 1200px;
  --page-max: var(--max);
  --measure: 52rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--fg);
  color: var(--bg-elevated);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip:focus { left: 8px; }

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

/* ——— Logo ——— */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.logo:hover { color: var(--fg); opacity: 0.85; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--fg);
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}

.logo-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--fg-muted);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--lime);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--lime-hover);
  color: var(--fg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--fg-subtle);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  padding: 0.5rem 0.85rem;
}

.btn-ghost:hover { color: var(--fg); }

.btn-dark {
  background: var(--fg);
  color: var(--bg-elevated);
}

.btn-dark:hover {
  background: var(--navy-deep);
  color: var(--bg-elevated);
  transform: translateY(-1px);
}

/* ——— Site Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--border);
}

.header-top {
  border-bottom: 1px solid var(--border);
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
}

.header-top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.45rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.header-trending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
  text-align: center;
}

.header-trending-label {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.header-trending a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-trending a:hover { color: var(--lime); }

.header-main {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-main .logo {
  font-size: 1.25rem;
}

.header-actions {
  display: none;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--fg-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.header-search-btn:hover {
  border-color: var(--border-strong);
  color: var(--fg);
}

.header-search-btn svg { width: 1rem; height: 1rem; }

.site-header--compact .header-main {
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
}

.site-header--compact .header-main .logo {
  margin: 0 auto;
}

.site-header--compact .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  position: absolute;
  right: 1.75rem;
}

.site-header--compact .menu-toggle {
  position: absolute;
  left: 1.75rem;
}

.header-nav-bar {
  border-top: 1px solid var(--border);
}

@media (max-width: 899px) {
  .header-nav-bar { display: none; }
}

.header-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.header-social {
  display: none;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
}

@media (min-width: 900px) {
  .header-social { display: flex; }
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  color: var(--fg-subtle);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.header-social a:hover {
  color: var(--fg);
  background: var(--bg-muted);
}

.header-social svg {
  width: 0.9375rem;
  height: 0.9375rem;
}

.header-nav-spacer {
  justify-self: end;
}

.header-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-self: center;
}

.header-nav::-webkit-scrollbar { display: none; }

.header-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: max-content;
}

.header-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--bg-muted);
}

.header-nav a.nav-cta {
  color: var(--fg);
  background: var(--lime-soft);
}

.header-nav a.nav-cta:hover { background: var(--lime-muted); }

.menu-toggle {
  position: absolute;
  left: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  color: var(--fg);
}

.menu-toggle svg { width: 1.125rem; height: 1.125rem; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1rem 1.75rem 1.25rem;
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a.nav-cta {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-bottom: none;
  border-radius: var(--radius-pill);
  background: var(--lime-soft);
}

.mobile-nav a.nav-cta:hover { background: var(--lime-muted); }

/* Compact header for article pages */
.site-header--compact .header-top,
.site-header--compact .header-nav-bar { display: none; }

/* ——— Search bar ——— */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 36rem;
}

.search-bar input {
  width: 100%;
  padding: 0.9rem 1.15rem 0.9rem 2.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-bar input::placeholder { color: var(--fg-subtle); }

.search-bar input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-soft);
}

.search-bar-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: var(--fg-subtle);
  pointer-events: none;
}

/* ——— Pills / filters ——— */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pill:hover {
  border-color: var(--border-strong);
  color: var(--fg);
}

.pill.is-active,
.pill.active {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg-elevated);
}

.pill-accent {
  background: var(--lime-soft);
  border-color: transparent;
  color: var(--fg);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-top-pick {
  background: var(--lime);
  color: var(--fg);
}

.badge-editor {
  background: var(--navy);
  color: #fff;
}

.badge-verdict {
  background: var(--lime-soft);
  color: var(--fg);
}

/* ——— Section headers ——— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem 4rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  color: var(--fg);
}

.section-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 0.5rem;
}

.section-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover { text-decoration: underline; }

/* ——— Cards ——— */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-thumb {
  height: 10.5rem;
  position: relative;
  background: var(--bg-muted);
}

.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 20, 20, 0.25) 100%);
}

.card-thumb.g1 { background: linear-gradient(145deg, #2d3a5c 0%, #1e2a45 100%); }
.card-thumb.g2 { background: linear-gradient(145deg, #3d4f2e 0%, #1a2e14 100%); }
.card-thumb.g3 { background: linear-gradient(145deg, #4a3d5c 0%, #2a1e45 100%); }
.card-thumb.g4 { background: linear-gradient(145deg, #2e4a4a 0%, #1a3030 100%); }
.card-thumb.g5 { background: linear-gradient(145deg, #5c3d2d 0%, #452a1e 100%); }
.card-thumb.g6 { background: linear-gradient(145deg, #3d5c2d 0%, #2a451e 100%); }
.card-thumb.g7 { background: linear-gradient(145deg, #5c4a2d 0%, #45351e 100%); }
.card-thumb.g8 { background: linear-gradient(145deg, #5c2d4a 0%, #451e35 100%); }
.card-thumb.g9 { background: linear-gradient(145deg, #2d5c4a 0%, #1e4535 100%); }
.card-thumb.g10 { background: linear-gradient(145deg, #4a2d5c 0%, #351e45 100%); }
.card-thumb.g11 { background: linear-gradient(145deg, #5c2d2d 0%, #451e1e 100%); }
.card-thumb.g12 { background: linear-gradient(145deg, #2d4a5c 0%, #1e3545 100%); }

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-subtle);
  margin-bottom: 0.65rem;
}

.card-meta .cat {
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
}

.card-body h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.card-body h3 a:hover { text-decoration: underline; }

.card-deck {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
  flex: 1;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.card-footer strong { color: var(--fg); font-weight: 700; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 800;
  color: var(--fg);
}

.rating-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lime);
}

/* ——— Feature / methodology cards ——— */
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-card.is-accent {
  background: var(--lime);
  border-color: transparent;
}

.feature-card.is-navy {
  background: var(--navy);
  border-color: transparent;
  color: #fff;
}

.feature-card.is-navy .feature-card-text { color: rgba(255, 255, 255, 0.75); }

.feature-card-stat {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.feature-card-title {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.feature-card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* ——— Category cards ——— */
.category-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--lime-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.category-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.category-card-count {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fg-subtle);
}

/* ——— TL;DR box ——— */
.tldr-box {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.tldr-box h2,
.tldr-box h3 {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 0.75rem;
}

.tldr-box p,
.tldr-box li {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ——— Pros / cons ——— */
.pros-cons {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}

.pros-cons-col {
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.pros-cons-col h3 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.pros-cons-col.pros h3 { color: var(--navy); }
.pros-cons-col.cons h3 { color: #a34a1b; }

.pros-cons-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.pros-cons-col li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg-muted);
  padding-left: 1.15rem;
  position: relative;
}

.pros-cons-col.pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--lime-hover);
  font-weight: 800;
}

.pros-cons-col.cons li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: #a34a1b;
  font-weight: 800;
}

/* ——— Comparison table ——— */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  -webkit-overflow-scrolling: touch;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 36rem;
}

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

table.compare th {
  background: var(--bg-muted);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

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

table.compare .winner {
  background: var(--lime-muted);
  font-weight: 700;
}

/* ——— Breadcrumb ——— */
.breadcrumb {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-subtle);
}

.breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ——— Newsletter ——— */
.newsletter {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 1.75rem;
}

.newsletter-inner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.newsletter-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(180, 240, 64, 0.12), transparent 55%);
  pointer-events: none;
}

.newsletter-inner > * { position: relative; z-index: 1; }

.newsletter-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.newsletter-lede {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 12rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }

.newsletter-form input:focus { border-color: var(--lime); }

.newsletter-form button {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--lime);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.newsletter-form button:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
}

.newsletter-note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.newsletter-privacy a { color: rgba(255, 255, 255, 0.75); }

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

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.foot-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.75rem 2rem;
}

.foot-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 720px) {
  .foot-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

.foot-brand-block { max-width: 26rem; }

.foot-tagline {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

.foot-cta {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--lime);
  transition: background 0.15s ease, transform 0.15s ease;
}

.foot-cta:hover {
  background: var(--lime-hover);
  color: var(--fg);
  transform: translateY(-1px);
}

.foot-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1fr;
  padding: 2.5rem 0;
}

@media (min-width: 560px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
}

.foot-heading {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 1rem;
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.foot-list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
}

.foot-list a:hover { color: var(--fg); }

.foot-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .foot-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.copyright {
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  margin: 0;
  line-height: 1.5;
  max-width: 36rem;
}

.foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.foot-social a {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-decoration: none;
}

.foot-social a:hover { color: var(--fg); }

/* Article page footer aliases */
.site-ft {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
  margin-top: 4rem;
}

.site-ft .ft-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.75rem 2rem;
}

.site-ft .ft-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 720px) {
  .site-ft .ft-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

.site-ft .ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-decoration: none;
  margin-bottom: 0.65rem;
}

.site-ft .ft-brand:hover { opacity: 0.85; color: var(--fg); }

.site-ft .ft-tagline {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

.site-ft .ft-cta {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--lime);
}

.site-ft .ft-cta:hover {
  background: var(--lime-hover);
  color: var(--fg);
}

.site-ft .ft-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1fr;
  padding: 2.5rem 0;
}

@media (min-width: 560px) {
  .site-ft .ft-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .site-ft .ft-grid { grid-template-columns: repeat(4, 1fr); }
}

.site-ft .ft-heading {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 1rem;
}

.site-ft .ft-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-ft .ft-list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
}

.site-ft .ft-list a:hover { color: var(--fg); }

.site-ft .ft-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .site-ft .ft-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-ft .ft-copyright {
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  margin: 0;
  line-height: 1.5;
  max-width: 36rem;
}

.site-ft .ft-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.site-ft .ft-social a {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-decoration: none;
}

.site-ft .ft-social a:hover { color: var(--fg); }

/* ——— Author block ——— */
.author-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--lime-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--navy);
}

.author-name {
  font-weight: 800;
  font-size: 0.9375rem;
  margin: 0 0 0.25rem;
}

.author-bio {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ——— Pagination ——— */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.pagination a:hover { border-color: var(--border-strong); color: var(--fg); }

.pagination .is-current {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg-elevated);
}

/* ——— Callout ——— */
.callout {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--lime);
  background: var(--lime-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.callout-navy {
  border-left-color: var(--navy);
  background: var(--navy-soft);
}

/* ——— Meta utility ——— */
.meta {
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.meta strong { color: var(--fg); font-weight: 700; }

.divider {
  border: none;
  height: 1px;
  margin: 2rem 0 3rem;
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary:hover,
  .card:hover,
  .category-card:hover,
  .feature-card:hover,
  .newsletter-form button:hover,
  .foot-cta:hover { transform: none; }
}
