/* CELPIP — visual language mirrored from the French TCF site.
   Deep-blue gradient body, white floating cards, color-coded skills. */

:root {
  /* Design tokens — 8pt spacing, 1.2 type scale */
  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-md:  1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.35rem;
  --fs-2xl: 1.625rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;

  --lh-tight: 1.25;
  --lh-snug:  1.4;
  --lh-normal: 1.6;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Palette — matches the French site */
  --bg-body: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --bg-card: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-accent: #f0f4ff;
  --text-heading: #1e3c72;
  --text-primary: #333;
  --text-secondary: #555;
  --text-muted: #888;
  --border-color: #e8e8e8;
  --border-light: #f0f0f0;
  --shadow-soft: 0 1px 3px rgba(20, 30, 60, 0.06);
  --shadow-card: 0 5px 15px rgba(20, 30, 60, 0.08);
  --shadow-lift: 0 10px 30px rgba(20, 30, 60, 0.12);
  --shadow-login: 0 10px 30px rgba(0, 0, 0, 0.3);
  --primary: #2a5298;
  --primary-hover: #1e3c72;
  --primary-fg: #ffffff;
  --danger: #c0392b;
  --success: #155724;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-body);
  min-height: 100vh;
  color: var(--text-primary);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient gradients — give the deep-blue body some depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.10), transparent 38%),
    radial-gradient(circle at 92% 82%, rgba(126, 179, 255, 0.14), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.06), transparent 30%);
}

h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); font-weight: 700; color: var(--text-heading); }
h2 { font-size: var(--fs-2xl); line-height: var(--lh-tight); font-weight: 700; color: var(--text-heading); }
h3 { font-size: var(--fs-xl);  line-height: var(--lh-snug);  font-weight: 600; color: var(--text-heading); }
h4 { font-size: var(--fs-lg);  line-height: var(--lh-snug);  font-weight: 600; color: var(--text-heading); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px)  { .container { padding: 24px; } }
@media (min-width: 1200px) { .container { padding: 32px; } }

.muted { color: var(--text-muted); }
.center { text-align: center; }

/* ─────────────────────────── Nav bar ─────────────────────────── */
.site-nav {
  background: var(--bg-card);
  border-radius: var(--r-md);
  margin: 16px auto 0;
  max-width: 1500px;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
@media (min-width: 768px)  { .site-nav { margin: 24px auto 0; width: calc(100% - 48px); } }
@media (min-width: 1200px) { .site-nav { margin: 32px auto 0; width: calc(100% - 64px); } }
.nav-inner {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-heading);
  letter-spacing: 0.5px;
}
.nav-brand:hover { text-decoration: none; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex: 1;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}
.nav-links a:hover {
  background: var(--bg-accent);
  color: var(--text-heading);
  text-decoration: none;
}
.nav-search {
  display: flex;
  flex: 0 1 240px;
}
.nav-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.nav-search input:focus { outline: none; border-color: var(--primary); background: white; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-right a { color: var(--text-primary); }
.nav-user { font-weight: 600; color: var(--text-heading) !important; }

/* ──────────────────────── Page header ──────────────────────── */
.page-header {
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-card);
}
.page-header h1 { margin-bottom: 4px; }
.crumb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--primary); }

/* ──────────────────────── Hero / Home ──────────────────────── */
.hero {
  background: var(--bg-card);
  padding: 40px 32px;
  border-radius: var(--r-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.hero h1 { font-size: var(--fs-3xl); margin-bottom: 12px; }
.hero .lead { color: var(--text-secondary); font-size: 1.1rem; max-width: 720px; margin: 0 auto; }

/* Home skill cards (4-up) */
.skill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px)  { .skill-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .skill-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.skill-card {
  --card-color: var(--primary);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.skill-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: var(--card-color);
  box-shadow: var(--shadow-lift);
}
.skill-card .skill-icon {
  font-size: 2.8rem;
  line-height: 1;
}
.skill-card h2 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 0;
  color: var(--text-heading);
}
.skill-card:hover h2 { color: var(--card-color); }
.skill-card p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

.skill-card.card-reading   { --card-color: #1e88e5; }
.skill-card.card-listening { --card-color: #00897b; }
.skill-card.card-writing   { --card-color: #43a047; }
.skill-card.card-speaking  { --card-color: #7b1fa2; }

/* ──────────────────────── Task info box ──────────────────────── */
.task-info-box {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 24px 28px;
  border-radius: var(--r-lg);
  margin-bottom: 28px;
  box-shadow: var(--shadow-soft);
}
.task-info-box h1 { color: var(--text-heading); margin-bottom: 8px; }
.task-info-box .task-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.task-info-box .stat {
  padding: 6px 14px;
  background: white;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-heading);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

/* ──────────────────────── View / Tool cards ──────────────────────── */
.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.view-card {
  --card-color: var(--primary);
  --card-gradient: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px;
  background: white;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.view-card:hover {
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--card-color);
}
.view-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 14px;
  background: var(--card-gradient);
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.view-card h2, .view-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.view-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.view-card .badge-count {
  margin-top: 12px;
  padding: 4px 12px;
  background: var(--bg-accent);
  color: var(--text-heading);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.view-all       { --card-color: #2a5298; --card-gradient: linear-gradient(135deg, #2a5298, #1e3c72); }
.view-frequency { --card-color: #e74c3c; --card-gradient: linear-gradient(135deg, #e74c3c, #c0392b); }
.view-category  { --card-color: #f39c12; --card-gradient: linear-gradient(135deg, #f39c12, #d68910); }
.view-templates { --card-color: #16a085; --card-gradient: linear-gradient(135deg, #16a085, #1abc9c); }
.view-search    { --card-color: #667eea; --card-gradient: linear-gradient(135deg, #667eea, #764ba2); }
.view-samples   { --card-color: #2ecc71; --card-gradient: linear-gradient(135deg, #2ecc71, #27ae60); }

/* ──────────────────────── Task cards (8 speaking tasks) ──────────────────────── */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.task-card {
  --card-color: var(--primary);
  background: white;
  border-radius: var(--r-lg);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text-primary);
  border: 2px solid transparent;
  border-left: 5px solid var(--card-color);
  box-shadow: var(--shadow-card);
  display: block;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
  position: relative;
}
.task-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--card-color);
  box-shadow: var(--shadow-lift);
}
.task-card .task-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--card-color);
  margin-bottom: 6px;
}
.task-card h2 { font-size: var(--fs-lg); margin-bottom: 8px; color: var(--text-heading); }
.task-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.task-card .task-meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.task-card .task-meta strong { color: var(--text-heading); }

.task-card.t1 { --card-color: #2a5298; }
.task-card.t2 { --card-color: #43a047; }
.task-card.t3 { --card-color: #7b1fa2; }
.task-card.t4 { --card-color: #e65100; }
.task-card.t5 { --card-color: #c62828; }
.task-card.t6 { --card-color: #00897b; }
.task-card.t7 { --card-color: #c2185b; }
.task-card.t8 { --card-color: #f9a825; }

/* ──────────────────────── Subject (frequency) list ──────────────────────── */
.subject-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.subject-item {
  --card-color: var(--primary);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: white;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text-primary);
  border-left: 4px solid var(--card-color);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.25s;
}
.subject-item:hover {
  text-decoration: none;
  transform: translateX(5px);
  box-shadow: var(--shadow-lift);
}
.freq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--card-color), color-mix(in srgb, var(--card-color) 70%, #000));
  color: white;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.subject-body { flex: 1; min-width: 0; }
.subject-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.subject-body .preview {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.task-badge {
  background: var(--bg-accent);
  color: var(--text-heading);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cat-tag {
  background: #fef3c7;
  color: #92400e;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}
.dot {
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ──────────────────────── Cards (generic) ──────────────────────── */
.card {
  background: var(--bg-card);
  padding: 24px 28px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.card h2 { font-size: var(--fs-xl); margin-bottom: 12px; }

/* ──────────────────────── Login box ──────────────────────── */
.auth-card, .login-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-login);
  max-width: 450px;
  margin: 80px auto;
  text-align: center;
}
.auth-card h1 { color: var(--text-heading); font-size: var(--fs-2xl); margin-bottom: 24px; }

/* ──────────────────────── Forms ──────────────────────── */
form label {
  display: block;
  margin: 14px 0;
  text-align: left;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}
form input[type="text"], form input[type="email"], form input[type="password"],
form input[type="search"], form select, form textarea {
  width: 100%;
  padding: 11px 14px;
  margin-top: 6px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-sm);
  background: white;
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
form textarea { font-family: inherit; line-height: 1.6; resize: vertical; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
form label.checkbox { display: flex; align-items: center; gap: 8px; flex-direction: row; }

/* ──────────────────────── Buttons ──────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border: none;
  border-radius: var(--r-sm);
  background: white;
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-back {
  background: #3498db;
  color: white;
  padding: 8px 18px;
  font-size: 0.9rem;
}
.btn-back:hover { background: #2980b9; }
.btn-link {
  background: none;
  box-shadow: none;
  color: var(--text-muted);
  padding: 6px 10px;
}
.btn-link:hover { color: var(--danger); transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ──────────────────────── Alerts / Flashes ──────────────────────── */
.flashes { margin-bottom: 20px; }
.flash, .alert {
  padding: 12px 18px;
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  text-align: left;
}
.flash-error, .alert-error {
  background: #fee;
  color: var(--danger);
  border: 1px solid #f5c6cb;
}
.flash-success, .alert-success {
  background: #d4edda;
  color: var(--success);
  border: 1px solid #c3e6cb;
}

/* ──────────────────────── Speaking prompt detail ──────────────────────── */
.prompt-box {
  background: white;
  padding: 22px 26px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.prompt-box h2 { font-size: var(--fs-xl); margin-bottom: 12px; }
.prompt-text { line-height: 1.75; color: var(--text-primary); }
.prompt-text strong { color: var(--text-heading); }
.options { padding-inline-start: 24px; margin-top: 14px; }
.options li { padding: 4px 0; }
.scene-img { max-width: 100%; border-radius: var(--r-sm); margin-top: 14px; }

/* Recorder */
.recorder {
  background: white;
  border-radius: var(--r-md);
  padding: 28px;
  margin: 16px 0 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.timer-big {
  font-size: 3.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-heading);
  margin: 18px 0;
}
.recorder-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.phase-idle { color: var(--text-muted); }
.phase-prep { color: #d97706; font-weight: 700; }
.phase-record { color: var(--danger); font-weight: 700; }
.phase-done { color: var(--success); font-weight: 700; }
.status {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
}
#preview { width: 100%; margin-top: 16px; }

/* Sample answer panel */
.sample-answer summary { cursor: pointer; font-weight: 600; color: var(--text-heading); padding: 6px 0; }
.sample-body {
  margin-top: 12px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  line-height: 1.75;
  white-space: pre-wrap;
}

/* ──────────────────────── Result / scores ──────────────────────── */
.result h1 { margin-bottom: 8px; }
.score-grid {
  display: flex;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.score-overall { text-align: center; min-width: 110px; }
.score-value { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.score-label { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }
.score-sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; flex: 1; }
.score-sub > div { color: var(--text-secondary); font-size: 0.95rem; }
.score-sub > div span {
  font-weight: 800;
  color: var(--primary);
  margin-inline-end: 6px;
  font-size: 1.05rem;
}
.rewrite, .my-answer, .transcript {
  background: var(--bg-soft);
  padding: 16px;
  border-radius: var(--r-sm);
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.75;
  margin-top: 8px;
}
.errors { padding-inline-start: 22px; }
.errors li { margin-bottom: 10px; }
.errors li q { background: #fee; padding: 1px 6px; border-radius: 4px; }
.errors li em { background: #d4edda; padding: 1px 6px; border-radius: 4px; font-style: normal; font-weight: 600; }

/* ──────────────────────── Categories list ──────────────────────── */
.cat-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.cat-list li {
  background: white;
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.25s;
}
.cat-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.cat-list a {
  color: var(--text-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cat-list a:hover { text-decoration: none; color: var(--primary); }
.cat-list .count {
  background: var(--bg-accent);
  color: var(--text-heading);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ──────────────────────── Templates ──────────────────────── */
.template-list {
  display: grid;
  gap: 18px;
}
.template-card {
  background: white;
  border-radius: var(--r-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid #16a085;
}
.template-card h2 { font-size: var(--fs-lg); margin-bottom: 12px; }
.template-body {
  background: var(--bg-soft);
  padding: 16px;
  border-radius: var(--r-sm);
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.7;
}

/* ──────────────────────── Vocab ──────────────────────── */
.vocab-form {
  background: white;
  border-radius: var(--r-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.vocab-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.vocab-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: white;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-soft);
}
.vocab-list li strong { color: var(--text-heading); }
.vocab-quick { margin-top: 8px; }

/* ──────────────────────── Search ──────────────────────── */
.search-form {
  display: flex;
  gap: 10px;
  background: white;
  padding: 16px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--r-sm);
  font-size: 1rem;
}
.search-form input:focus { border-color: var(--primary); outline: none; }

/* ──────────────────────── Tables ──────────────────────── */
.answers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.answers-table th {
  background: var(--bg-accent);
  color: var(--text-heading);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
}
.answers-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* ──────────────────────── Footer ──────────────────────── */
.site-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 16px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

/* ──────────────────────── Tiny things ──────────────────────── */
details { margin-top: 8px; }
details summary { cursor: pointer; color: var(--text-heading); font-weight: 600; }
pre { white-space: pre-wrap; font-family: inherit; }
code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }
