/* ============================================================
   AIToolKits.co — Main Stylesheet v2.0
   Brand: Warm Cream #f5f4ef / Near-Black #1a1a1a / Green #10b981
   Fonts: DM Serif Display (headings) + Inter (UI)
   ============================================================ */

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

:root {
  --navy: #1a1a1a;
  --navy-light: #2d2d2d;
  --green: #10b981;
  --green-light: #d1fae5;
  --green-dark: #059669;
  --gold: #f59e0b;
  --text: #1a1a1a;
  --text-muted: #6b6560;
  --border: #e0dbd2;
  --bg: #f5f4ef;
  --bg-card: #faf9f5;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── SERIF HEADINGS — DM Serif Display for all H1 + H2 headings ── */
h1, h2,
.hero-headline,
.guides-h1,
.bestof-hero-title,
.article-page-title,
.section-title,
.cat-heading,
.guides-section-h2,
.article-hero-title,
.article-page-content h2,
.article-content h2,
.entry-content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400; /* DM Serif Display is inherently bold at 400 */
  letter-spacing: -0.3px;
}

/* Keep UI labels (tabs, sidebar titles, badges) in Inter */
.tab-btn, .sidebar-card-title, .panel-heading,
.score-panel-header, .tag, .btn-try, .btn-cta { font-family: 'Inter', sans-serif; }

img { max-width: 100%; height: auto; }
a { color: var(--green); }

/* ── HEADER ──────────────────────────────────────────────── */
header {
  background: #faf9f5;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(26,26,26,0.08);
  box-shadow: 0 1px 6px rgba(26,26,26,0.04);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}
.logo-main { font-family: 'DM Serif Display', Georgia, serif; font-size: 23px; font-weight: 400; color: var(--navy); letter-spacing: -0.3px; }
.logo-tld  { font-family: 'DM Serif Display', Georgia, serif; font-size: 23px; font-weight: 400; color: var(--green); letter-spacing: -0.3px; }
/* ── NAV ─────────────────────────────────────────────────── */
#site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
}

/* Nav trigger buttons */
.nav-drop-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #3a3530;
  cursor: pointer;
  padding: 7px 11px;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-drop-trigger:hover,
.nav-item-drop.open .nav-drop-trigger {
  background: var(--bg);
  color: var(--navy);
}
.nav-chevron {
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.15s, opacity 0.15s;
}
.nav-item-drop.open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── DROPDOWN BASE ───────────────────────────────────────── */
.nav-item-drop { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(26,26,26,0.13);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
}
.nav-item-drop.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Shared inner labels */
.ndrop-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #b0a89e;
  padding: 14px 16px 6px;
}

/* ── AI TOOLS DROPDOWN ───────────────────────────────────── */
.nav-drop-tools {
  width: 380px;
  padding: 6px 10px 10px;
}
.ndrop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}
.ndrop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.1s;
}
.ndrop-item:hover { background: var(--bg); }
.ndrop-item span { font-size: 15px; }
.ndrop-all {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 4px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  transition: background 0.1s;
}
.ndrop-all:hover { background: var(--green-light); }

/* ── BY INDUSTRY MEGA MENU ───────────────────────────────── */
.nav-mega-wrap .nav-dropdown { left: -80px; }
.nav-mega {
  display: flex;
  width: 680px;
  overflow: hidden;
  padding: 0;
}
.mega-sidebar {
  width: 190px;
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 8px;
}
.mega-sidebar .ndrop-label { padding: 8px 8px 6px; }
.mega-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.mega-tab:hover { background: rgba(255,255,255,0.7); }
.mega-tab.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(26,26,26,0.08);
  font-weight: 700;
  color: var(--green-dark);
}
.mega-tab-icon { font-size: 15px; flex-shrink: 0; }
.mega-tab-name { flex: 1; }
.mega-tab-arrow { font-size: 12px; color: #ccc; }
.mega-tab.active .mega-tab-arrow { color: var(--green); }

/* Panels */
.mega-panels { flex: 1; min-width: 0; }
.mega-panel { display: none; padding: 16px; }
.mega-panel.active { display: block; }
.mega-panel-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-panel-hub-link {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.12s;
}
.mega-panel-hub-link:hover { opacity: 1; }
.mega-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mega-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #faf9f5;
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}
.mega-card:hover { border-color: var(--green); background: #f0fdf8; }
.mega-card-type {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}
.mega-card-icon { font-size: 18px; }
.mega-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

/* ── LEARN DROPDOWN ──────────────────────────────────────── */
.nav-drop-learn { right: 0; left: auto; width: 340px; padding: 6px 10px 10px; }
.ndrop-learn-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.1s;
}
.ndrop-learn-item:hover { background: var(--bg); }
.nli-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.nli-text { display: flex; flex-direction: column; gap: 1px; }
.nli-text strong { font-size: 13px; font-weight: 700; color: var(--navy); }
.nli-text em { font-size: 11px; color: #9a9088; font-style: normal; line-height: 1.4; }
.ndrop-newsletter {
  background: var(--green-light);
  border-radius: 8px;
  margin-top: 4px;
}
.ndrop-newsletter:hover { background: #bbf7d0; }
.ndrop-newsletter .nli-text strong { color: var(--green-dark); }
.ndrop-newsletter .nli-text em { color: #059669; }

/* ── HEADER SEARCH ───────────────────────────────────────── */
.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 20px;
  padding: 5px 14px;
  margin-left: auto;
  transition: background 0.2s, border-color 0.2s;
}
.header-search:focus-within {
  background: rgba(15,23,42,0.08);
  border-color: var(--green);
}
.header-search-input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  color: var(--navy);
  font-size: 13px;
  font-family: inherit;
  width: 150px;
  min-width: 0;
}
.header-search-input::placeholder { color: rgba(15,23,42,0.35); }
.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-cancel-button,
.header-search-input::-webkit-search-results-button,
.header-search-input::-webkit-search-results-decoration { display: none; }
.header-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(15,23,42,0.4);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.15s;
}
.header-search-btn:hover { color: var(--navy); }

/* ── HAMBURGER TOGGLE (hidden on desktop) ────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  order: 3; /* sits after logo and before nav */
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
/* Animate bars to × when open */
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV — ≤900px ─────────────────────────────────── */
@media (max-width: 900px) {
  header { padding: 0; }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0 16px;
    align-items: center;
    gap: 0;
  }

  .logo { height: 56px; flex: 1; order: 1; }

  /* Show hamburger */
  .nav-toggle { display: flex; order: 2; }

  /* Hide desktop search */
  .header-search { display: none; }

  /* Nav panel: hidden until hamburger opens it */
  #site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 4;
    padding: 4px 0 16px;
    border-top: 1px solid var(--border);
    background: #faf9f5;
    gap: 0;
  }
  #site-nav.mobile-open { display: flex; }

  /* Prevent body scroll when nav open */
  body.nav-open { overflow: hidden; }

  /* Each top-level drop */
  .nav-item-drop {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-item-drop:last-of-type { border-bottom: none; }

  /* Trigger full-width */
  .nav-drop-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 13px 4px;
    font-size: 15px;
    border-radius: 0;
  }

  /* All dropdowns: hidden → expand vertically on mobile */
  .nav-dropdown {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 0;
    width: 100%;
    display: none;
    pointer-events: auto !important;
  }
  .nav-item-drop.mobile-expanded .nav-dropdown { display: block; }
  .nav-item-drop.mobile-expanded .nav-chevron  { transform: rotate(180deg); opacity: 1; }

  /* AI Tools grid → single column */
  .nav-drop-tools { width: 100%; }
  .ndrop-label { padding: 8px 4px 4px; }
  .ndrop-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .ndrop-item { padding: 7px 4px; font-size: 14px; }
  .ndrop-all  { margin: 8px 4px 4px; }

  /* Mega menu: stack sidebar above panel */
  .nav-mega { flex-direction: column; width: 100%; }
  .mega-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .mega-sidebar .ndrop-label { grid-column: 1/-1; padding: 6px 6px 4px; }
  .mega-tab { font-size: 12px; padding: 7px 8px; }
  .mega-tab-arrow { display: none; }

  /* Panels */
  .mega-panels { width: 100%; }
  .mega-panel  { padding: 12px 4px 4px; }
  .mega-panel-title { font-size: 15px; margin-bottom: 10px; }
  .mega-panel-grid  { grid-template-columns: 1fr 1fr; gap: 6px; }
  .mega-card { padding: 8px 10px; }
  .mega-card-name { font-size: 11px; }

  /* Learn dropdown */
  .nav-drop-learn { right: auto; left: 0; width: 100%; }
  .ndrop-learn-item { padding: 8px 4px; }
  .nli-text em { display: none; } /* hide subtitles on mobile to save space */

  /* Mobile search at bottom of nav */
  .header-search-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 4px 0;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
  }
  .header-search-mobile input {
    flex: 1; border: none; outline: none;
    font-size: 14px; font-family: inherit; color: var(--navy);
    background: transparent;
  }
  .header-search-mobile button {
    background: none; border: none; cursor: pointer;
    color: #9a9088; display: flex; align-items: center;
  }
}

/* Desktop: hide mobile search */
@media (min-width: 901px) {
  .header-search-mobile { display: none; }
  .nav-toggle { display: none; }
}

/* ── HERO (Homepage) ─────────────────────────────────────── */
.hero-section {
  background: #f0eddf;
  padding: 28px 24px 56px;
  border-bottom: 1px solid var(--border);
  position: relative; /* no overflow:hidden — allows search dropdown to show */
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* LEFT: copy column */
.hero-left { max-width: 540px; }

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16,185,129,0.1);
  border: 1.5px solid rgba(16,185,129,0.32);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 12px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: badge-blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes badge-blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}

.hero-headline {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.hero-accent { color: var(--green); }
.hero-sub {
  font-size: 16.5px;
  color: #6b6560;
  max-width: 450px;
  margin-bottom: 16px;
  line-height: 1.65;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat {
  padding: 0 26px 0 0;
  margin-right: 26px;
  border-right: 1px solid rgba(26,26,26,0.13);
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  margin-bottom: 3px;
}
.hero-stat-label {
  font-size: 10.5px;
  color: #9a9088;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 600;
}
.hero-stat-divider { display: none; } /* no longer used but kept for compat */

/* RIGHT: robot mascot */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}

/* legacy stats (kept for other templates) */
.stat { text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: 800; color: #1a1a1a; }
.stat-label { font-size: 12px; color: #6b6560; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── ARTICLE HERO ────────────────────────────────────────── */
.article-hero {
  background: linear-gradient(160deg, #ede9e0 0%, #f5f4ef 100%);
  padding: 20px 24px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.article-hero .article-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.article-hero .article-cat {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
}
.article-hero .article-date {
  font-size: 13px;
  color: #8a8078;
}
.article-hero h1 {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin: 0 auto 16px;
}
.article-hero .article-intro {
  font-size: 16px;
  color: #6b6560;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── ARTICLE HERO (single.php) ───────────────────────────── */
/* has-thumb: featured image now rendered in the content area, not as hero bg */
.article-hero.has-thumb {
  background-image: none !important;
  background: linear-gradient(160deg, #ede9e0 0%, #f5f4ef 100%);
}
.article-hero.has-thumb::before { display: none; }
.article-hero.has-thumb .article-hero-inner { position: static; z-index: auto; }
/* Centred single-column inner — no broken grid */
.article-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.hero-cat {
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.35);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.hero-rank {
  font-size: 13px;
  color: #6b6560;
  font-weight: 600;
}
.article-hero-title {
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.article-hero-blurb {
  font-size: 14px;
  color: #6b6560;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 12px;
}
.article-hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hero-review-count {
  font-size: 13px;
  color: #6b6560;
}
.hero-cta { display: inline-block; }

/* ── SCORES ROW — Rotten Tomatoes Style ─────────────────── */
.scores-row {
  background: #faf9f5;
  border-bottom: 1.5px solid var(--border);
}
.scores-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.score-panel {
  padding: 28px 32px;
}
.score-panel-editorial {
  border-right: 1.5px solid var(--border);
}
.score-panel-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.score-panel-body {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.score-panel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.score-panel-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.score-panel-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.score-panel-blurb {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}
.score-panel-pros {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.score-panel-pros li {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 5px;
  padding-left: 18px;
  position: relative;
}
.score-panel-pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.score-panel-cons {
  list-style: none;
  padding: 0;
  margin: 0;
}
.score-panel-cons li {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 5px;
  padding-left: 18px;
  position: relative;
}
.score-panel-cons li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
}
/* Community score circle */
.community-avg-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}
.community-avg-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.community-avg-label {
  font-size: 9px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}
/* Larger stars for avg display */
.community-avg-stars .review-star,
.community-avg-stars .review-star.empty {
  font-size: 16px;
}
/* See reviews CTA link */
.see-reviews-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 8px 18px;
  transition: background 0.15s, color 0.15s;
}
.see-reviews-link:hover {
  background: var(--green);
  color: #fff;
}
.no-community-score {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}
/* Mobile: stack panels */
@media (max-width: 640px) {
  .scores-row-inner { grid-template-columns: 1fr; }
  .score-panel-editorial { border-right: none; border-bottom: 1.5px solid var(--border); }
  .score-panel { padding: 20px 18px; }
}

/* ── TL;DR QUICK VERDICT BOX ───────────────────────────── */
.tldr-box {
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 0 0 32px;
}
.tldr-header {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
}
.tldr-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tldr-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}
.tldr-list li strong {
  color: var(--navy);
}

/* ── NOT FOR CALLOUT ────────────────────────────────────── */
.not-for-box {
  background: #fff8f0;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 32px;
}
.not-for-header {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
  margin-bottom: 8px;
}
.not-for-box p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}

/* ── TOOL SCREENSHOT (shown after review text) ─────────── */
.tool-screenshot-wrap {
  margin: 0 0 36px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 20px rgba(26,26,26,0.08);
}
.tool-screenshot-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg);
  padding: 8px 16px;
  margin: 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}
.tool-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* ── SINGLE POST LAYOUT ──────────────────────────────────── */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 48px 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.single-main { min-width: 0; }
.single-sidebar { position: sticky; top: 80px; }
.entry-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.entry-content h2 { font-size: 20px; font-weight: 800; color: var(--text); margin: 32px 0 10px; letter-spacing: -0.2px; }
.entry-content h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 20px; }
.entry-content li { margin-bottom: 6px; }
.entry-content strong { font-weight: 700; }
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.entry-content th { background: var(--navy) !important; color: #fff !important; padding: 10px 14px; text-align: left; font-weight: 600; }
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: #edeae2; }
.content-block { margin-top: 40px; }
.section-heading { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 16px; letter-spacing: -0.2px; }
.cta-box { background: linear-gradient(135deg, var(--navy), #2d2d2d); border-radius: 14px; padding: 32px; text-align: center; }

/* ── Compare Similar Tools block ──────────────────────────────── */
.compare-tools-block { background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px; padding: 28px 32px; }
.compare-tools-heading { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.compare-tools-intro { font-size: 14px; color: var(--text-muted); margin: 0 0 20px; }
.compare-tools-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.compare-tool-item { display: block; }
.compare-tool-link { font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.compare-tool-link:hover { color: var(--green); }
.compare-tool-link:hover .compare-tool-use { color: var(--green); }
.compare-score { height: 22px !important; min-width: 32px !important; font-size: 12px !important; }
.compare-tool-use { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.compare-tools-footer { margin: 0; font-size: 14px; }
.compare-tools-footer a { color: var(--green); font-weight: 600; text-decoration: none; }
.compare-tools-footer a:hover { text-decoration: underline; }
.cta-box-headline { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-box-sub { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.cta-box-btn { display: inline-block; }
.cta-note { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 10px; }

/* ── TABS ────────────────────────────────────────────────── */
.tabs-wrapper, .tab-nav {
  background: #faf9f5;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
  padding: 12px 24px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-wrapper::-webkit-scrollbar,
.tab-nav::-webkit-scrollbar { display: none; }
.tabs {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs-section { padding: 0; }   /* full-width so .tab-nav stretches edge-to-edge */
.cat-section { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.tab-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.tab-btn:hover { border-color: var(--green); color: var(--green); }
.tab-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ── MAIN CONTAINER ──────────────────────────────────────── */
.main { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }

/* Article layout: 2 col (content + sidebar) */
.article-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.article-content { min-width: 0; }
.article-sidebar { position: sticky; top: 100px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.updated-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* ── CATEGORY SECTION HEADING ────────────────────────────── */
.cat-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.cat-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.cat-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.cat-updated {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #faf9f5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

/* ── TOOL LIST ───────────────────────────────────────────── */
.tool-list { display: flex; flex-direction: column; gap: 12px; }

/* ── CARD ────────────────────────────────────────────────── */
.tool-card {
  background: #faf9f5;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-card.top3 { border-color: rgba(16,185,129,0.25); }
.tool-card.rank1 { border-color: rgba(245,158,11,0.35); background: #fdfaf0; }
.tool-card.expanded { border-color: var(--green); box-shadow: 0 4px 20px rgba(16,185,129,0.12); }

/* ── CARD HEADER ─────────────────────────────────────────── */
.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.1s;
}
.card-header:hover { background: rgba(0,0,0,0.015); }
.card-body { flex: 1; min-width: 0; }
.rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-1 { background: #fef3c7; color: #d97706; }
.rank-2 { background: #e8e3da; color: #6b6560; }
.rank-3 { background: #fdf2e3; color: #b45309; }
.rank-other { background: #f5f4ef; color: #8a8078; }
.tool-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tool-name { font-size: 18px; font-weight: 400; font-family: 'DM Serif Display', Georgia, serif; color: var(--text); }
.tool-name a { color: var(--text); text-decoration: none; }
.tool-name a:hover { color: var(--green); text-decoration: underline; }
/* Editor score on homepage cards — clean pill badge */
.card-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  padding: 0 9px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.3px;
  line-height: 1;
}
.card-score-badge.fresh  { background: var(--green-light); color: var(--green-dark); border: 1.5px solid var(--green); }
.card-score-badge.mixed  { background: #fef3c7; color: #92400e; border: 1.5px solid #f59e0b; }
.card-score-badge.rotten { background: #fee2e2; color: #991b1b; border: 1.5px solid #ef4444; }
/* Large pill for scores-row on review pages */
.score-badge-hero {
  height: 60px; min-width: 88px; padding: 0 24px;
  border-radius: 40px; font-size: 32px;
  border-width: 3px !important;
}
/* Medium pill for sidebar score card */
.score-badge-sidebar {
  height: 50px; min-width: 72px; padding: 0 18px;
  border-radius: 34px; font-size: 24px;
  border-width: 2.5px !important;
  display: flex; margin: 0 auto 12px;
}
.stars { display: flex; gap: 1px; align-items: center; }
.star { color: var(--gold); font-size: 13px; }
.star.empty { color: var(--border); }
.rating-num { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-left: 3px; }
.tool-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.3px; }
.tag-cat { background: var(--green-light); color: var(--green-dark); }
.tag-use { background: #e8e3da; color: var(--text); }
.tool-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.btn-try {
  display: inline-block;
  padding: 9px 20px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-try:hover { background: var(--green-dark); color: #fff; }
.btn-try:disabled,
.btn-try[disabled] { background: #94a3b8; cursor: not-allowed; opacity: 0.6; }
.btn-try:disabled:hover,
.btn-try[disabled]:hover { background: #94a3b8; }
.cta-note { font-size: 11px; color: var(--text-muted); text-align: right; }
.aff-label { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 3px; }
.chevron { font-size: 12px; color: var(--text-muted); transition: transform 0.25s; user-select: none; justify-self: center; }
.chevron.open { transform: rotate(180deg); }

/* ── EXPAND PANEL ────────────────────────────────────────── */
.expand-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.expand-panel.open { max-height: 2600px; }
.expand-inner { border-top: 1px solid var(--border); padding: 24px; }

/* ── REVIEW SPLIT ────────────────────────────────────────── */
.review-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }

/* ── SCORE CIRCLE ────────────────────────────────────────── */
.score-block { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.score-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 4px solid;
}
.score-circle.fresh  { border-color: var(--green); background: var(--green-light); }
.score-circle.mixed  { border-color: #f59e0b; background: #fef3c7; }
.score-circle.rotten { border-color: #ef4444; background: #fee2e2; }
.score-num { font-size: 17px; font-weight: 800; line-height: 1; }
.score-circle.fresh  .score-num { color: var(--green-dark); }
.score-circle.mixed  .score-num { color: #b45309; }
.score-circle.rotten .score-num { color: #dc2626; }
.score-icon { font-size: 9px; margin-top: 2px; font-weight: 700; letter-spacing: -0.2px; }
.score-circle.fresh  .score-icon { color: var(--green-dark); }
.score-circle.mixed  .score-icon { color: #b45309; }
.score-circle.rotten .score-icon { color: #dc2626; }
.score-label { font-size: 13px; font-weight: 700; color: var(--text); }
.score-sublabel { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── EDITORIAL SIDE ──────────────────────────────────────── */
.editorial-side { background: #f5f4ef; border-radius: 12px; padding: 20px; border: 1px solid var(--border); }
.panel-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 14px; }
.editorial-blurb { font-size: 14px; color: var(--text); line-height: 1.65; margin-bottom: 16px; }
.pros-cons { display: flex; flex-direction: column; gap: 7px; }
.pro, .con { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; }
.pro { color: #065f46; }
.con { color: #7f1d1d; }
.pro-icon { color: var(--green); font-weight: 800; flex-shrink: 0; }
.con-icon { color: #ef4444; font-weight: 800; flex-shrink: 0; }

/* ── COMMUNITY SIDE ──────────────────────────────────────── */
.community-side { background: #f5f4ef; border-radius: 12px; padding: 20px; border: 1px solid var(--border); }
.community-bar-wrap { margin-bottom: 16px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.bar-track { background: var(--border); border-radius: 999px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--green); transition: width 0.6s ease; }
.community-reviews { display: flex; flex-direction: column; gap: 10px; }
.review-item { background: #faf9f5; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.review-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.review-author { font-size: 12px; font-weight: 700; color: var(--text); }
.review-date { font-size: 11px; color: var(--text-muted); }
.review-stars { display: flex; gap: 1px; margin-bottom: 4px; }
.review-star { font-size: 11px; color: var(--gold); }
.review-star.empty { color: var(--border); }
.review-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── REVIEW FORM ─────────────────────────────────────────── */
.review-form-section { border-top: 1px solid var(--border); padding-top: 20px; }
.form-heading { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.form-group input, .form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
  resize: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { height: 72px; }
.form-stars-wrap { display: flex; align-items: center; gap: 4px; padding-top: 2px; }
.form-star { font-size: 26px; color: #cbd5e1; cursor: pointer; transition: color 0.1s, transform 0.1s; line-height: 1; }
.form-star.lit { color: var(--gold); }
.form-star:hover { transform: scale(1.15); }
.captcha-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.captcha-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: #edeae2;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  white-space: nowrap;
}
.captcha-input {
  width: 72px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}
.captcha-input:focus { border-color: var(--green); }
.captcha-input.error { border-color: #ef4444; }
.captcha-error { font-size: 12px; color: #ef4444; font-weight: 500; }
.captcha-label { font-size: 12px; color: var(--text-muted); }
.form-bottom { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-submit {
  padding: 10px 24px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.btn-submit:hover { background: var(--green-dark); }
.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
}
.form-success.show { display: flex; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.shake { animation: shake 0.35s ease; }

/* ── ARTICLE / POST CONTENT ──────────────────────────────── */
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 14px;
  letter-spacing: -0.3px;
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}
.article-content p { margin-bottom: 18px; line-height: 1.75; font-size: 16px; color: var(--text); }
.article-content ul, .article-content ol { margin: 12px 0 20px 24px; }
.article-content li { margin-bottom: 8px; font-size: 16px; line-height: 1.65; }
.article-content strong { font-weight: 700; color: var(--navy); }
.article-content a { color: var(--green); text-decoration: underline; }
.article-content a:hover { color: var(--green-dark); }
.article-content blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-light);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #065f46;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-content th {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}
.article-content td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.article-content tr:nth-child(even) td { background: #edeae2; }
.article-content img { border-radius: 12px; margin: 20px 0; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar-card {
  background: #faf9f5;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
}
.sidebar-tool-item:last-child { border-bottom: none; }
.sidebar-tool-item:hover { color: var(--green); }
.sidebar-tool-rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-tool-name { font-size: 13px; font-weight: 600; }
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy), #2d2d2d);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.sidebar-cta-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sidebar-cta-desc { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 14px; line-height: 1.5; }
.btn-sidebar { display: block; background: var(--green); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.btn-sidebar:hover { background: var(--green-dark); color: #fff; }

/* ── ARTICLE BOTTOM CTA ──────────────────────────────────── */
.article-cta-box {
  background: linear-gradient(135deg, var(--navy), #2d2d2d);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  margin-top: 48px;
}
.article-cta-box h3 { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.article-cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 20px; font-size: 15px; }
.btn-cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-cta:hover { background: var(--green-dark); color: #fff; }

/* ── GUIDES-STYLE LAYOUT (archive + static pages) ────────── */
.guides-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}
.guides-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.guides-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.75;
}
.guides-section-h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--green);
  padding-bottom: 8px;
  margin-bottom: 6px;
  margin-top: 0;
}
.guides-section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 52px;
}
.search-tools-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

/* ── POST CARD (shared by archive + guides grid) ─────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.post-card {
  background: #faf9f5;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: box-shadow 0.15s;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.post-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-decoration: none;
}
.post-card-link {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-card-link:hover { color: var(--green); }
.post-card-excerpt { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ── 404 PAGE ────────────────────────────────────────────── */
.not-found-wrap {
  text-align: center;
  padding: 80px 24px;
  max-width: 500px;
  margin: 0 auto;
}
.not-found-code { font-size: 96px; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 8px; }
.not-found-title { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.not-found-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--navy); padding: 32px 24px; text-align: center; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 20px; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--green); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.3); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .single-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; }
  .single-sidebar { position: static; }
  .article-hero-blurb { max-width: 100%; }
}
@media (max-width: 700px) {
  .review-split { grid-template-columns: 1fr; }
  .card-header { gap: 10px; padding: 14px 16px; }
  .tool-cta { display: none; }
  .hero-stat { padding: 0 20px; }
  .header-search { display: none; }
  .hero-stat-divider { height: 30px; }
  nav { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  /* ── Mobile hero — much tighter so tool cards show above the fold ── */
  .header-inner { height: 52px; }
  .hero-section { padding: 28px 16px 24px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-left { max-width: 100%; }
  .hero-right { display: none; } /* hide mascot on mobile */
  .hero-badge { margin: 0 auto 18px; }
  .hero-sub { max-width: 100%; margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
  .hero-search { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-headline { font-size: 26px; letter-spacing: -0.5px; margin-bottom: 10px; }
  .hero-stat-num { font-size: 20px; }
  .hero-stat-label { font-size: 10px; }
  .hero-stats { gap: 0; }
}
/* ── Hero: collapse to single column at tablet ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr 400px; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-left { max-width: 100%; }
  .hero-right { display: none; }
  .hero-badge { margin: 0 auto 18px; }
  .hero-sub { max-width: 100%; }
  .hero-search { max-width: 100%; }
  .hero-stats { justify-content: center; }
}

/* ── COMMENT STAR RATING (form) ──────────────────────────── */
.comment-form-rating { margin-bottom: 16px; }
.comment-form-rating label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); margin-bottom: 8px; }
.comment-stars-wrap { display: flex; gap: 6px; }
.star-rating-input { display: flex; gap: 4px; align-items: center; margin-bottom: 6px; }
.comment-star { font-size: 36px; color: #d1d5db; cursor: pointer; transition: color 0.1s, transform 0.1s; line-height: 1; user-select: none; }
.comment-star.lit,
.comment-star.selected { color: var(--gold); }
.comment-star.hover { color: var(--gold); transform: scale(1.1); }
.comment-star:hover { transform: scale(1.15); }
/* Label text showing "Click a star to rate" / "Excellent" etc. */
.rating-hint { display: block; font-size: 13px; font-weight: 600; color: var(--green); margin-top: 4px; min-height: 18px; transition: color 0.15s; }
/* Inline validation error */
.rating-error { font-size: 13px; color: #ef4444; font-weight: 500; margin-top: 4px; padding: 6px 10px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; }
/* Email "not published" note */
.field-note { font-size: 11px; font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; margin-left: 4px; }

/* ── COMMENTS SECTION ────────────────────────────────────── */
.user-reviews { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }
.user-reviews-title { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.user-review-item { background: #faf9f5; border: 1.5px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 16px; }
.user-review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.user-review-author { font-size: 14px; font-weight: 700; color: var(--text); }
.user-review-date { font-size: 12px; color: var(--text-muted); }
.user-review-stars { margin-bottom: 10px; }
.user-review-stars .review-star { font-size: 14px; }
.user-review-text { font-size: 14px; color: var(--text); line-height: 1.65; }
.no-reviews { font-size: 14px; color: var(--text-muted); font-style: italic; padding: 16px 0; }

/* ── COMMENT FORM ────────────────────────────────────────── */
.comment-respond { margin-top: 32px; background: #f5f4ef; border: 1.5px solid var(--border); border-radius: 14px; padding: 28px; }
.comment-respond h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.comment-form label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); display: block; margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 14px; font-family: 'Inter', sans-serif; color: var(--text); outline: none; transition: border-color 0.15s; background: #fff; margin-bottom: 14px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--green); }
.comment-form textarea { height: 100px; resize: vertical; }
.comment-form-author, .comment-form-email { display: inline-block; width: calc(50% - 8px); }
.comment-form-author { margin-right: 16px; }
.form-submit .submit { background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 11px 28px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.15s; }
.form-submit .submit:hover { background: var(--green-dark); }

/* ── TOOL REVIEW HERO ────────────────────────────────────── */
.tool-hero { background: linear-gradient(135deg, var(--navy) 0%, #2d2d2d 100%); padding: 52px 24px 44px; }
.tool-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.tool-hero-cat { display: inline-flex; align-items: center; gap: 6px; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); border-radius: 999px; padding: 4px 14px; font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 14px; }
.tool-hero h1 { font-size: clamp(24px, 4vw, 42px); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px; }
.tool-hero-desc { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.6; max-width: 580px; margin-bottom: 20px; }
.tool-hero-rating { display: flex; align-items: center; gap: 10px; }
.tool-hero-rating .stars .star { font-size: 16px; }
.tool-hero-rating .rating-num { font-size: 16px; color: rgba(255,255,255,0.8); }
.tool-hero-score-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tool-hero-score { width: 88px; height: 88px; border-radius: 50%; border: 5px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tool-hero-score.fresh { border-color: var(--green); background: rgba(16,185,129,0.15); }
.tool-hero-score.mixed { border-color: #f59e0b; background: rgba(245,158,11,0.15); }
.tool-hero-score.rotten { border-color: #ef4444; background: rgba(239,68,68,0.15); }
.tool-hero-score .score-num { font-size: 24px; font-weight: 800; color: #fff; }
.tool-hero-score .score-icon { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.7); }
.tool-hero-score-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.tool-hero-cta { margin-top: 20px; }
.btn-hero-cta { display: inline-block; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; padding: 13px 28px; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.btn-hero-cta:hover { background: var(--green-dark); color: #fff; }
.affiliate-note { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 6px; }

/* ── PRICING TABLE ───────────────────────────────────────── */
.pricing-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14px; }
.pricing-table th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
.pricing-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.pricing-table tr:nth-child(even) td { background: #edeae2; }
.pricing-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pricing-badge.free { background: var(--green-light); color: var(--green-dark); }
.pricing-badge.paid { background: #e2e8f0; color: var(--text); }

/* ── PROS CONS SECTION ───────────────────────────────────── */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 28px; }
.pros-box, .cons-box { background: #f5f4ef; border: 1.5px solid var(--border); border-radius: 12px; padding: 20px; }
.pros-box { border-color: rgba(16,185,129,0.3); }
.cons-box { border-color: rgba(239,68,68,0.2); }
.pros-box-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green-dark); margin-bottom: 12px; }
.cons-box-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #dc2626; margin-bottom: 12px; }
.pros-box ul, .cons-box ul { list-style: none; padding: 0; margin: 0; }
.pros-box li { padding: 6px 0; border-bottom: 1px solid rgba(16,185,129,0.15); font-size: 14px; color: #065f46; display: flex; gap: 8px; align-items: flex-start; }
.cons-box li { padding: 6px 0; border-bottom: 1px solid rgba(239,68,68,0.1); font-size: 14px; color: #7f1d1d; display: flex; gap: 8px; align-items: flex-start; }
.pros-box li:last-child, .cons-box li:last-child { border-bottom: none; }
.pros-box li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.cons-box li::before { content: "✗"; color: #ef4444; font-weight: 800; flex-shrink: 0; }

/* ── QUICK FACTS SIDEBAR CARD ────────────────────────────── */
.quick-facts { list-style: none; padding: 0; margin: 0; }
.quick-facts li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.quick-facts li:last-child { border-bottom: none; }
.quick-facts-label { color: var(--text-muted); font-weight: 500; }
.quick-facts-value { font-weight: 700; color: var(--text); }
.quick-facts-value.green { color: var(--green-dark); }

/* ── SINGLE.PHP CLASS ALIASES ────────────────────────────── */
/* single.php uses slightly different class names — alias them */
.quick-facts-list { list-style: none; padding: 0; margin: 0; }
.quick-fact { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.quick-fact:last-child { border-bottom: none; }
.fact-label { color: var(--text-muted); font-weight: 500; }
.fact-value { font-weight: 700; color: var(--text); }
.fact-free-plan.has-free { color: var(--green-dark); }
.fact-free-plan.no-free  { color: #ef4444; }
.no-reviews-yet { font-size: 14px; color: var(--text-muted); font-style: italic; padding: 16px 0; }
.star-rating-input { display: flex; gap: 6px; }
.community-reviews-list { display: flex; flex-direction: column; gap: 10px; }
.user-reviews-section, .write-review-section { margin-top: 40px; }

/* ── SIDEBAR (single.php) ────────────────────────────────── */
.score-block-centered { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.score-labels { display: flex; flex-direction: column; }
.editorial-blurb { font-size: 13px; color: var(--text); line-height: 1.6; margin-bottom: 12px; }

/* ── RELATED TOOLS SIDEBAR ───────────────────────────────── */
.related-tools-list { list-style: none; padding: 0; margin: 0; }
.related-tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.related-tool-item:last-child { border-bottom: none; }
.related-tool-item.related-tool-current { background: var(--green-light); margin: 0 -16px; padding: 8px 16px; border-radius: 6px; border-bottom: none; }
.related-rank { font-size: 11px; font-weight: 800; color: var(--text-muted); width: 22px; flex-shrink: 0; }
.related-tool-link { color: var(--text); text-decoration: none; font-weight: 600; flex: 1; transition: color 0.15s; }
.related-tool-link:hover { color: var(--green); }
.current-badge { font-size: 10px; font-weight: 700; color: var(--green-dark); background: var(--green-light); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }

/* ── CTA BOX (single.php content area) ──────────────────── */
.cta-box-inner { /* nothing needed — just a wrapper */ }
.cta-note { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 10px; text-align: center; }

/* ── READ FULL REVIEW LINK ───────────────────────────────── */
.read-full-review { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--green); text-decoration: none; }
.read-full-review:hover { color: var(--green-dark); }
.write-review-link { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; transition: all 0.15s; }
.write-review-link:hover { color: var(--green); border-color: var(--green); }

@media (max-width: 700px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
  .tool-hero-inner { grid-template-columns: 1fr; }
  .tool-hero-score-wrap { display: none; }
  .comment-form-author, .comment-form-email { display: block; width: 100%; }
}

/* ================================================================
   BEST OF HUB PAGE
================================================================ */
.bestof-hero {
  background: linear-gradient(160deg, #ede9e0 0%, #f5f4ef 100%);
  padding: 64px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.bestof-hero-inner { max-width: 760px; margin: 0 auto; }
.bestof-hero-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 20px; padding: 4px 14px; margin-bottom: 20px;
}
.bestof-hero-title {
  font-size: clamp(28px, 5vw, 46px); font-weight: 400; color: #1a1a1a;
  line-height: 1.12; letter-spacing: -0.5px; margin-bottom: 16px;
}
.bestof-hero-sub {
  font-size: 17px; color: #6b6560; line-height: 1.65;
  max-width: 580px; margin: 0 auto 32px;
}
.bestof-hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.bestof-stat { display: flex; flex-direction: column; align-items: center; padding: 0 28px; }
.bestof-stat-num { font-size: 28px; font-weight: 800; color: #1a1a1a; line-height: 1; }
.bestof-stat-label { font-size: 12px; color: #8a8078; margin-top: 4px; }
.bestof-stat-div { width: 1px; height: 36px; background: rgba(26,26,26,0.12); }

/* Tier sections */
.bestof-tier { padding: 56px 0; border-bottom: 1px solid var(--border); }
.bestof-tier:last-of-type { border-bottom: none; }
.bestof-tier-heading {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px;
}
.bestof-tier-badge { font-size: 28px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.bestof-tier-title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.bestof-tier-sub { font-size: 14px; color: var(--text-muted); }

/* Article card grid */
.bestof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bestof-card {
  display: flex; flex-direction: column;
  background: #faf9f5; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 22px 20px 20px;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.bestof-card:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,0.1);
  border-color: var(--green);
  transform: translateY(-3px);
}
.bestof-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 14px;
}
.bestof-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid; border-radius: 20px; padding: 3px 9px;
  white-space: nowrap;
}
.bestof-card-time {
  font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.bestof-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 16px; font-weight: 400; color: var(--navy); line-height: 1.4;
  margin-bottom: 10px;
}
.bestof-card-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  flex-grow: 1; margin-bottom: 16px;
}
.bestof-card-cta {
  font-size: 13px; font-weight: 700; color: var(--green);
  margin-top: auto;
}
.bestof-card:hover .bestof-card-cta { text-decoration: underline; }

/* Bottom CTA strip */
.bestof-bottom-cta {
  background: #1a1a1a; padding: 56px 24px; text-align: center;
}
.bestof-cta-title {
  font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px;
}
.bestof-cta-sub {
  font-size: 16px; color: rgba(255,255,255,0.65); max-width: 540px;
  margin: 0 auto 28px; line-height: 1.6;
}

/* ================================================================
   ARTICLE PAGE TEMPLATE
================================================================ */
.article-page-hero {
  background: linear-gradient(160deg, #ede9e0 0%, #f5f4ef 100%); padding: 42px 24px 36px;
  border-bottom: 1px solid var(--border);
}
.article-page-hero-inner { max-width: 860px; margin: 0 auto; }
.article-page-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.article-page-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark); background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.28);
  border-radius: 20px; padding: 3px 12px;
}
.article-page-readtime, .article-page-updated {
  font-size: 12px; color: #8a8078;
}
.article-page-readtime::before, .article-page-updated::before { content: '·'; margin-right: 12px; }
.article-page-title {
  font-size: clamp(22px, 3.5vw, 36px); font-weight: 400; color: #1a1a1a;
  line-height: 1.2; letter-spacing: -0.3px;
}

/* Article layout grid */
.article-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 72px;
  align-items: start;
}
.article-page-body { min-width: 0; }
.article-page-content {
  font-size: 16px; line-height: 1.75; color: var(--text);
}
.article-page-content h2 {
  font-size: 22px; font-weight: 800; color: var(--navy);
  margin: 40px 0 14px; letter-spacing: -0.2px;
}
.article-page-content h3 {
  font-size: 18px; font-weight: 700; color: var(--navy);
  margin: 28px 0 10px;
}
.article-page-content p { margin-bottom: 18px; }
.article-page-content ul, .article-page-content ol {
  padding-left: 22px; margin-bottom: 18px;
}
.article-page-content li { margin-bottom: 6px; }
.article-page-content a { color: var(--green); font-weight: 500; }
.article-page-content a:hover { text-decoration: underline; }
.article-page-content strong { font-weight: 700; color: var(--navy); }
/* ── HUB → SPOKE related guides block ────────────────────── */
.hub-related-guides {
  background: #f0fdf4;
  border: 1.5px solid #10b981;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0 8px;
}
.hub-related-guides h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 12px;
}
.hub-related-guides ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}
.hub-related-guides li { margin-bottom: 2px; }
/* ── SPOKE → HUB CTA block ────────────────────────────────── */
.hub-cta {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #10b981;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.hub-cta-title {
  font-weight: 700;
  font-size: 15px;
  color: #064e3b;
  margin-bottom: 4px;
}
.hub-cta-body { font-size: 14px; color: #374151; }
.hub-cta-btn {
  background: #10b981;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  display: inline-block;
}
.hub-cta-btn:hover { background: #059669; }
/* ── Tables inside article/best-of pages ────────────────── */
.article-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(26,26,26,0.07);
}
.article-page-content thead th {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.article-page-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.article-page-content tbody tr:last-child td { border-bottom: none; }
.article-page-content tbody tr:nth-child(even) td { background: #f5f4ef; }
.article-page-content tbody tr:hover td { background: #edf7f2; }
/* Responsive: allow horizontal scroll on small screens */
.article-page-content .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
}
.article-page-content .table-wrap table { margin: 0; }
/* Inline tool CTA blocks */
.article-tool-cta {
  background: var(--bg); border: 1.5px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 10px; padding: 16px 20px; margin: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.article-tool-cta-text { font-size: 14px; font-weight: 600; color: var(--navy); }
.article-tool-cta a.btn-mini {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 13px; font-weight: 700; padding: 7px 16px;
  border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.article-tool-cta a.btn-mini:hover { background: var(--green-dark); }

/* Bottom CTA + breadcrumb */
.article-page-bottom-cta {
  margin-top: 48px; padding: 32px; background: var(--navy);
  border-radius: 14px; text-align: center;
}
.article-page-bottom-cta p {
  font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 16px;
}
.article-page-breadcrumb {
  margin-top: 20px; font-size: 13px; text-align: center;
}
.article-page-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-page-breadcrumb a:hover { color: var(--green); }

/* Article sidebar */
.article-page-sidebar { position: sticky; top: 84px; }
.article-sidebar-cta { text-align: center; }
.article-sidebar-cta-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px;
}
.article-sidebar-bestof { margin-top: 16px; text-align: center; }
.btn-outline-nav {
  display: inline-block; border: 2px solid var(--border); color: var(--text);
  font-size: 13px; font-weight: 600; padding: 9px 18px;
  border-radius: 10px; text-decoration: none; transition: all 0.15s;
}
.btn-outline-nav:hover { border-color: var(--green); color: var(--green); }

/* ── Share Card ──────────────────────────────────────────────── */
.share-card {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 40px 0;
  text-align: center;
}
.share-card-heading {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.share-card-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 20px;
}
.share-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn-x    { background: #000;    color: #fff; }
.share-btn-li   { background: #0077b5; color: #fff; }
.share-btn-fb   { background: #1877f2; color: #fff; }
.share-btn-copy { background: var(--green); color: #fff; }
.share-btn-copy.copied { background: var(--green-dark); }
@media (max-width: 480px) {
  .share-card { padding: 20px 16px; }
  .share-btn-row { flex-direction: column; align-items: center; }
  .share-btn { width: 100%; justify-content: center; }
}

/* ── Related Guides Block ────────────────────────────────────── */
.related-guides-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 36px 0;
}
.related-guides-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.related-guides-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.related-guides-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-guide-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.related-guide-link:hover {
  border-color: var(--green);
  background: rgba(0, 200, 130, 0.05);
}
.related-guide-arrow {
  color: var(--green);
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .bestof-grid { grid-template-columns: repeat(2, 1fr); }
  .article-page-layout { grid-template-columns: 1fr; }
  .article-page-sidebar { position: static; }
}
@media (max-width: 560px) {
  .bestof-grid { grid-template-columns: 1fr; }
  .bestof-hero-stats { flex-direction: column; gap: 12px; }
  .bestof-stat-div { display: none; }
}

/* ── Better Signal Strip ─────────────────────────────────── */
.better-signal {
  padding: 0 24px;
  margin: 0 auto 0;
}
.bs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  background: #f0fdf9;
  border: 1.5px solid #d1fae5;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 20px 0 0;
}
.bs-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 8px 0;
  flex: 0 0 auto;
}
.bs-item + .bs-item {
  padding-left: 24px;
  border-left: 1.5px solid #d1fae5;
}
.bs-item-usecases {
  flex: 1 1 200px;
}
.bs-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #059669;
}
.bs-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy, #0f172a);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bs-use-case {
  display: inline-block;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 13px;
  color: var(--navy, #0f172a);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .bs-row { flex-direction: column; gap: 0; padding: 14px 16px; }
  .bs-item { padding: 8px 0; border-left: none !important; border-top: 1px solid #d1fae5; }
  .bs-item:first-child { border-top: none; }
  .bs-use-case { white-space: normal; }
}

/* ── Hero Search Bar ─────────────────────────────────────────────────────── */
.hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid rgba(26,26,26,0.14);
  border-radius: 50px;
  padding: 8px 8px 8px 22px;
  max-width: 560px;
  margin: 10px 0 28px;
  box-shadow: 0 4px 20px rgba(26,26,26,0.12);
}
.hero-search-icon {
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--navy);
  background: transparent;
  font-family: inherit;
}
.hero-search-input::placeholder { color: #a09890; }
.hero-search-btn {
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.hero-search-btn:hover { background: #2d2d2d; }
@media (max-width: 480px) {
  .hero-search { padding: 5px 6px 5px 16px; margin: 20px 16px 24px; max-width: 100%; }
  .hero-search-btn { padding: 8px 16px; font-size: 13px; }
}

/* ── Trending Today ───────────────────────────────────────────────────────── */
.trending-section {
  background: #faf9f5;
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
}
.trending-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px;
}
.trending-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trending-card {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 9px 16px;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.trending-card:hover {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(16,185,129,0.15);
  background: #f0fdf9;
  color: var(--navy);
}
.trending-name { font-weight: 700; }
.trending-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}
.trending-star { color: var(--gold); font-size: 13px; }
.trending-cat {
  font-size: 10px;
  font-weight: 700;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .trending-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .trending-card { flex-shrink: 0; }
}

/* ── Browse by Category heading ──────────────────────────────────────────── */
.section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  padding: 24px 0 0;
  margin: 0;
}

/* ── LIVE SEARCH DROPDOWN ────────────────────────────────── */
.search-live-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.12);
  z-index: 9999;
  overflow: hidden;
  min-width: 280px;
  text-align: left;
}

.slr-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 10px 14px 4px;
}

.slr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  color: #1a1a1a;
  transition: background 0.12s;
  border-top: 1px solid #f0ede6;
  outline: none;
}
.slr-item:first-of-type { border-top: none; }
.slr-item:hover,
.slr-item:focus,
.slr-item.slr-focused {
  background: #f0ede6;
  color: #1a1a1a;
}

.slr-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slr-title strong { font-weight: 700; color: #10b981; }

.slr-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.slr-score {
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1;
}

.slr-tag {
  background: #edeae2;
  color: #6b6560;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.slr-empty {
  padding: 14px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

/* Hero search dropdown — wider, stronger shadow against dark background */
.hero-search .search-live-results {
  min-width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
  .search-live-results {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    border-radius: 10px;
  }
}
