/* ══════════════════════════════════════════════════════════════
   ELT Classroom Tools Directory — Main Stylesheet
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:          #f5f6f8;
  --surface:     #ffffff;
  --surface-2:   #f0f2f5;
  --border:      #dde1e9;
  --border-soft: #eaecf0;

  --text:        #0f172a;
  --text-2:      #374151;
  --muted:       #6b7280;
  --muted-light: #9ca3af;

  --accent:      #1d4ed8;
  --accent-hover:#1e40af;
  --accent-light:#eff6ff;
  --accent-mid:  #bfdbfe;

  --green:       #059669;
  --green-light: #ecfdf5;
  --amber:       #d97706;
  --amber-light: #fffbeb;
  --red:         #dc2626;
  --red-light:   #fef2f2;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);

  --max-w:       1120px;
  --nav-h:       60px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-2); }
.lead { font-size: 1.125rem; color: var(--text-2); line-height: 1.7; text-wrap: balance; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
strong { font-weight: 600; color: var(--text); }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-body {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text) !important;
  text-decoration: none !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); background: var(--accent-light); }
.nav-cta {
  margin-left: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent) !important;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  padding: 6px 14px;
  border-radius: var(--r-md);
  transition: background .15s;
}
.nav-cta:hover { background: var(--accent-mid) !important; text-decoration: none !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  color: var(--text);
}
.nav-toggle-icon { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform .2s;
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.footer-tagline { font-size: 0.85rem; color: var(--muted); max-width: 360px; }
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--muted-light);
}

/* ── Chips / Labels ─────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 4px 9px;
  border-radius: var(--r-pill, 999px);
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border-soft);
  letter-spacing: 0.01em;
}
.chip-blue   { background: var(--accent-light); color: var(--accent);  border-color: var(--accent-mid); }
.chip-green  { background: var(--green-light);  color: var(--green);   border-color: #a7f3d0; }
.chip-amber  { background: var(--amber-light);  color: var(--amber);   border-color: #fde68a; }
.chip-red    { background: var(--red-light);    color: var(--red);     border-color: #fecaca; }
.chip-slate  { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.chip-pill   { border-radius: 999px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #c7d2e0; }
.card-body  { padding: 20px 24px 24px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border-soft); background: var(--surface-2); }

/* ── Tool Card ───────────────────────────────────────────────── */
.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.tool-card .card-body { flex: 1; }
.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.tool-logo-placeholder {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.tool-logo-img {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
}
.tool-card-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: 2px; }
.tool-card-name a { color: var(--text); text-decoration: none; }
.tool-card-name a:hover { color: var(--accent); }
.tool-card-esl { font-size: 0.75rem; color: var(--muted); }
.tool-card-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.tool-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.tool-card-best {
  font-size: 0.8125rem;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding-left: 10px;
  margin-bottom: 0;
  line-height: 1.5;
}
.tool-card-best strong { color: var(--text-2); font-weight: 600; }
.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.tool-card-cta:hover { text-decoration: underline; }
.tool-card-cta svg { width: 14px; height: 14px; }
.tool-card-featured {
  position: absolute;
  top: -1px; right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-top: none;
  padding: 3px 10px 4px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

/* ── Tool Grid ───────────────────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Key Facts Grid ─────────────────────────────────────────── */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.facts-cell {
  background: var(--surface);
  padding: 14px 18px;
}
.facts-cell-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 5px;
}
.facts-cell-value { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.facts-cell-chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── Comparison Table ────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 0.9rem;
}
.compare-table th {
  background: var(--surface-2);
  padding: 12px 18px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.compare-table th.col-tool {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.compare-table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  color: var(--text-2);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--surface-2); }
.compare-table td:first-child { font-weight: 600; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.filter-bar-top {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}
.filter-search-wrap {
  flex: 1;
  position: relative;
}
.filter-search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 18px; height: 18px;
  pointer-events: none;
}
.filter-search {
  width: 100%;
  padding: 9px 12px 9px 38px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.filter-search:focus { border-color: var(--accent); }
.filter-sort {
  padding: 9px 32px 9px 12px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.filter-sort:focus { border-color: var(--accent); }
.filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  row-gap: 12px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.filter-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.filter-select {
  font-size: 0.8375rem;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.filter-select:focus { border-color: var(--accent); }
.filter-reset {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.filter-reset:hover { color: var(--text); background: var(--surface-2); }

/* ── Directory Header ────────────────────────────────────────── */
.dir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.dir-count { font-size: 0.875rem; color: var(--muted); }
.dir-count strong { color: var(--text); }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  display: none;
}
.empty-state.visible { display: block; }
.empty-state svg { margin: 0 auto 16px; opacity: .35; }
.empty-state h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.empty-state p  { font-size: 0.875rem; }
.empty-state a  { font-size: 0.875rem; font-weight: 600; }

/* ── Hero / Page Header ──────────────────────────────────────── */
.hero {
  padding: 56px 0 48px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 16px; }
.hero .lead { max-width: 600px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  text-decoration: none !important;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--surface-2); border-color: #bac5d3; }
.btn-sm { font-size: 0.8125rem; padding: 7px 15px; }

/* ── Section ─────────────────────────────────────────────────── */
.section { margin-bottom: 56px; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header h2 { margin-bottom: 0; }
.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ── Category Tiles ──────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.category-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
  display: block;
}
.category-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-mid);
  text-decoration: none;
}
.category-tile-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1;
}
.category-tile-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.category-tile-desc { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }

/* ── Comparison links strip ──────────────────────────────────── */
.compare-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8375rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.compare-pill:hover { border-color: var(--accent-mid); box-shadow: var(--shadow-sm); text-decoration: none; }
.compare-pill-vs { font-size: 0.7rem; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Methodology summary strip ───────────────────────────────── */
.method-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.method-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 18px;
}
.method-item-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 6px;
}
.method-item p { font-size: 0.8375rem; line-height: 1.55; }

/* ── Tool Detail Page ────────────────────────────────────────── */
.tool-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tool-detail-logo {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}
.tool-detail-meta { flex: 1; min-width: 240px; }
.tool-detail-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin-bottom: 6px; }
.tool-detail-summary { font-size: 1.0625rem; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.tool-official-link {
  font-size: 0.875rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tool-official-link:hover { text-decoration: underline; }
.tool-official-link svg { width: 14px; height: 14px; }

.prose { max-width: 700px; }
.prose p { margin-bottom: 14px; font-size: 0.9375rem; line-height: 1.75; }
.prose h3 { margin: 24px 0 10px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose li { margin-bottom: 5px; font-size: 0.9375rem; }

/* Strength / Weakness / Editorial blocks */
.insight-block {
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.insight-block-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.insight-strength { background: var(--green-light); border: 1px solid #a7f3d0; }
.insight-strength .insight-block-label { color: var(--green); }
.insight-weakness { background: var(--amber-light); border: 1px solid #fde68a; }
.insight-weakness .insight-block-label { color: var(--amber); }
.insight-note { background: var(--accent-light); border: 1px solid var(--accent-mid); }
.insight-note .insight-block-label { color: var(--accent); }
.insight-block p { font-size: 0.9rem; margin-bottom: 0; color: var(--text-2); }

/* Alternatives section */
.alt-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.alt-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 7px 14px;
  text-decoration: none;
  transition: border-color .15s;
}
.alt-link:hover { border-color: var(--accent-mid); color: var(--accent); text-decoration: none; }

/* ── Comparison Page ─────────────────────────────────────────── */
.compare-header { margin-bottom: 36px; }
.compare-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.compare-tools-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.compare-tool-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 18px;
}
.compare-vs-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.verdict-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.verdict-context {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
}
.verdict-winner {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.verdict-item p { font-size: 0.85rem; color: var(--text-2); line-height: 1.55; margin: 0; }

/* ── Info page (methodology, about) ─────────────────────────── */
.info-page { max-width: 740px; margin: 0 auto; }
.info-page h1 { margin-bottom: 14px; }
.info-page .lead { margin-bottom: 40px; }
.info-section { margin-bottom: 40px; }
.info-section h2 { font-size: 1.25rem; margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.info-section p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; margin-bottom: 12px; }
.info-section ul { padding-left: 20px; margin-bottom: 12px; }
.info-section li { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; margin-bottom: 5px; }

.disclosure-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.disclosure-box p { font-size: 0.9rem; color: var(--text-2); margin: 0; }
.disclosure-box strong { color: var(--accent); }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--muted-light); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }
  .page-body { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 56px; }

  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px 16px; z-index: 99; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: 0.9375rem; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: block; }

  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: 1.75rem; }

  .tool-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .method-strip { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .verdict-grid { grid-template-columns: 1fr; }

  .filter-bar-top { flex-direction: column; align-items: stretch; }
  .filter-groups { flex-direction: column; }
  .filter-group { min-width: 100%; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }

  .compare-table { font-size: 0.8125rem; }
  .compare-table th, .compare-table td { padding: 9px 12px; }

  .tool-detail-header { gap: 14px; }
  .compare-tools-preview { gap: 10px; }

  .dir-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .method-strip { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .compare-strip { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ── Utilities ───────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }