/* ==========================================================================
   8.6a. Design Tokens (Theming Engine)
   ========================================================================== */
:root {
  --bg: #060810;
  --surface: #0e1420;
  --surface-raised: #141c2e;
  --border: #2e3d55;
  --text: #dce6f5;
  --muted: #6e87a8;
  --faint: #8fa3c0;
  --accent: #4f8ef7;
  --accent-soft: rgba(79, 142, 247, 0.16);

  --color-success: #91f0c0;
  --bg-success-soft: rgba(145, 240, 192, 0.08);
  --color-warning: #ffbe5c;
  --bg-warning-soft: rgba(255, 190, 92, 0.08);

  --max-width: 1180px;
  --radius: 24px;
  --radius-sm: 14px;

  --space-sm: 0.85rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-raised: #eaeef6;
    --border: #cbd5e1;
    --text: #0f172a;
    --muted: #475569;
    --faint: #64748b;
    --accent: #1e6091;
    --accent-soft: rgba(30, 96, 145, 0.1);
  }
}

/* ==========================================================================
   8.6b. Global Reset & Base Utilities
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { width: min(100% - 2rem, var(--max-width)); margin: 0 auto; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; background: transparent; border: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.d-flex { display: flex; }
.fd-column { flex-direction: column; }
.ai-center { align-items: center; }
.jc-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ==========================================================================
   8.6c. Typography System
   ========================================================================== */
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: 0.95; letter-spacing: -0.07em; margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; margin: 0; }
h3 { font-size: 1.15rem; line-height: 1.2; margin: 0; }
p { color: var(--muted); max-width: 68ch; margin: 0; }
.eyebrow { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.hero-copy { max-width: 660px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }

/* ==========================================================================
   8.6d. Layout Elements & Structure
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; padding: 1rem 2rem; background: rgba(6, 8, 16, 0.86); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.logo { font-weight: 700; letter-spacing: -0.03em; }
.main-nav { display: flex; gap: 1rem; color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.header-cta { padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--accent-soft); }
.nav-toggle { display: none; cursor: pointer; padding: 0.5rem; }

.content-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); gap: var(--space-lg); align-items: start; margin-bottom: var(--space-xl); }
.main-panel, .side-panel, .card, .validation-block, .feedback, .form-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: var(--space-lg); }
.side-panel { position: sticky; top: 6rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin-bottom: var(--space-xl); }
.page-hero { padding: var(--space-xxl) 0 var(--space-xl); max-width: 820px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

/* ==========================================================================
   8.6e. Interactive Components & Forms
   ========================================================================== */
.chapter-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-lg); }
.pill { padding: 0.55rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.pill.active, .pill:hover { color: var(--text); background: var(--accent-soft); border-color: rgba(79, 142, 247, 0.5); }

.tabs { display: flex; gap: 0.5rem; padding: 0.4rem; width: fit-content; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); margin-bottom: var(--space-xl); }
.tab { border: 0; border-radius: 999px; padding: 0.65rem 1rem; background: transparent; color: var(--muted); cursor: pointer; }
.tab.active, .tab[aria-selected="true"] { background: var(--surface-raised); color: var(--text); }
.tab-panel[hidden] { display: none !important; }

.card-label { color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.card h3 { margin-bottom: 0.5rem; }
.card.warning { background: linear-gradient(135deg, var(--surface), var(--bg-warning-soft)); }

.status-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-md); }
.status-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0.35rem 0.65rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; background: rgba(255, 255, 255, 0.03); }

.form-panel { display: grid; gap: var(--space-md); }
.form-field { display: grid; gap: 0.35rem; }
label { color: var(--text); font-weight: 600; }
input { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); color: var(--text); padding: 0.8rem 0.9rem; }
input:focus { border-color: var(--accent); outline: none; }
.helper-text { color: var(--muted); font-size: 0.9rem; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; line-height: 1; transition: opacity 0.2s ease, transform 0.1s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #06101f; border-color: var(--accent); }
.btn-secondary { background: var(--accent-soft); color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.feedback { margin-bottom: var(--space-md); }
.feedback-success { background: linear-gradient(135deg, var(--surface), var(--bg-success-soft)); }
.validation-block { margin: var(--space-xl) 0; background: linear-gradient(135deg, var(--surface), var(--accent-soft)); }
.checklist { padding-left: 1.2rem; color: var(--muted); }
.checklist li { margin-bottom: 0.5rem; }

/* Pricing page ribbon marker for featured tier */
.ribbon-marker {
  position: absolute;
  top: 0;
  right: var(--space-md);
  transform: translateY(-50%);
  background: var(--accent);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.pricing-tier {
  position: relative;
}

.site-footer { margin-top: var(--space-xxl); padding: var(--space-xl) 2rem; border-top: 1px solid var(--border); color: var(--muted); }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   8.6f. Accessibility Core Utilities
   ========================================================================== */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: 0.75rem 1rem; background: var(--accent); color: #06101f; border-radius: var(--radius-sm); transition: top 0.2s ease; }
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   8.6g. Responsive Breakdown Adaptability
   ========================================================================== */
@media (max-width: 820px) {
  .site-header { flex-direction: row; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; padding: var(--space-md) 0; order: 3; }
  .main-nav.is-active { display: flex; }
  .content-grid, .card-grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 540px) {
  main { width: min(100% - 1rem, var(--max-width)); }
  .page-hero { padding: var(--space-xl) 0; }
  .site-header { padding: 1rem; }
  .main-panel, .side-panel, .card, .validation-block, .feedback, .form-panel { padding: var(--space-md); border-radius: var(--radius-sm); }
  .chapter-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .pill { flex: 0 0 auto; }
}

/* ==========================================================================
   CSS Additions — Ch15 Supplement
   Required by all HTML templates; not in base stylesheet.
   ========================================================================== */

/* 1. Content width constraint — used by all page layouts */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

/* 2. Pricing ribbon — "Most Popular" badge */
.ribbon-marker {
  position: absolute;
  top: 0;
  right: var(--space-md);
  transform: translateY(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.pricing-tier {
  position: relative;
}

/* 3. Contact page 50/50 split */
.split-focus-layout {
  grid-template-columns: 1fr 1fr !important;
}

@media (max-width: 768px) {
  .split-focus-layout {
    grid-template-columns: 1fr !important;
  }
}

/* 4. Product page alternating reverse layout */
.alternating-reverse .content-grid {
  direction: rtl;
}

.alternating-reverse .content-grid > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .alternating-reverse .content-grid {
    direction: ltr;
  }
}

/* ==========================================================================
   Hub Page — Search, Filter, Grid, Sidebar, Cards
   ========================================================================== */

/* Search bar */
.hub-search { margin-top: var(--space-lg); max-width: 560px; }
.hub-search input { width: 100%; padding: 0.9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 1rem; }
.hub-search input:focus { border-color: var(--accent); outline: none; }

/* Filter pill bar */
.hub-filter-bar { padding: 0 0 var(--space-lg); }
.hub-filter-bar .container { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-pill { padding: 0.45rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.85rem; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.filter-pill:hover, .filter-pill.is-active { color: var(--text); background: var(--accent-soft); border-color: rgba(79,142,247,0.5); }

/* Asymmetric hub grid: sidebar left 22%, cards right */
.hub-grid { display: grid; grid-template-columns: minmax(200px, 22%) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }

/* Sidebar */
.hub-sidebar { position: sticky; top: 5rem; }
.hub-nav { margin-bottom: var(--space-lg); }
.hub-nav-section { margin-bottom: var(--space-md); }
.hub-nav-top { display: block; color: var(--text); font-size: 0.85rem; font-weight: 600; padding: 0.3rem 0; letter-spacing: 0.01em; }
.hub-nav-top:hover { color: var(--accent); }
.hub-nav-section ul { list-style: none; padding: 0 0 0 0.75rem; margin: 0.3rem 0 0; border-left: 1px solid var(--border); }
.hub-nav-section li { margin: 0.2rem 0; }
.hub-nav-section li a { color: var(--muted); font-size: 0.8rem; display: block; padding: 0.15rem 0; transition: color 0.15s; }
.hub-nav-section li a:hover { color: var(--text); }

/* Sidebar CTA boxes */
.hub-cta-box { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: var(--space-md); margin-bottom: var(--space-md); }
.hub-cta-heading { color: var(--text); font-weight: 600; font-size: 0.9rem; margin: 0 0 0.5rem; max-width: 100%; }
.hub-cta-body { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.75rem; max-width: 100%; }
.hub-cta-link { color: var(--accent); font-size: 0.85rem; font-weight: 600; transition: opacity 0.15s; }
.hub-cta-link:hover { opacity: 0.75; }
.hub-cta-box--secondary { background: var(--accent-soft); border-color: rgba(79,142,247,0.25); }

/* Section headings */
.hub-section { margin-bottom: var(--space-xl); }
.hub-section-heading { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; margin: 0 0 var(--space-md); padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }

/* Resource cards grid */
.hub-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-md); }

/* Resource card */
.resource-card { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: var(--space-md); transition: border-color 0.15s, background 0.15s; }
.resource-card:hover { border-color: var(--accent); background: var(--surface-raised); }
.resource-card h3 { font-size: 0.95rem; font-weight: 600; margin: 0.4rem 0 0.3rem; line-height: 1.3; }
.resource-card h3 a { color: var(--text); transition: color 0.15s; }
.resource-card h3 a:hover { color: var(--accent); }
.card-meta { color: var(--muted); font-size: 0.75rem; margin: 0 0 0.4rem; max-width: 100%; }
.card-snippet { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin: 0; max-width: 100%; }

/* Tracking status */
.tracking-status { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: var(--space-md); margin-top: var(--space-lg); }
.tracking-status h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; }
.tracking-status ul { padding-left: 1.2rem; color: var(--muted); font-size: 0.85rem; margin: 0 0 0.75rem; }
.compliance-notice { color: var(--muted); font-size: 0.8rem; max-width: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-sidebar { position: static; }
  .hub-nav-section ul { display: none; }
}

/* Hub cards area */
.hub-cards-area {
  flex: 1;
  min-width: 0;
}

/* ── Contact page ────────────────────────────────────────────────── */

/* Success / error state panels */
.contact-state-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.contact-state-panel h2 {
  font-size: 1.4rem;
  color: var(--text);
}

.contact-state-panel p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.state-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-icon--success {
  background: rgba(145, 240, 192, 0.12);
  color: var(--color-success);
}

.state-icon--error {
  background: rgba(255, 190, 92, 0.12);
  color: var(--color-warning);
}

/* Inline form validation feedback */
.form-feedback-anchor {
  font-size: 0.875rem;
  color: var(--color-warning);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 190, 92, 0.08);
  border: 0.5px solid rgba(255, 190, 92, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

/* Direct email block in side panel */
.contact-direct-block {
  background: var(--surface-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: var(--space-md);
}

.contact-email-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.contact-email-link:hover {
  text-decoration: underline;
}

.contact-email-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Pricing page ───────────────────────────────────────────── */

.pricing-matrix-section {
  padding: var(--space-xl) 0;
}

.pricing-matrix {
  align-items: stretch;
}

.tier-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  min-height: 2.5rem;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: var(--space-md) 0 0.25rem;
}

.currency-token {
  font-size: 1.25rem;
  color: var(--text);
}

.price-value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
}

.duration-token {
  font-size: 0.875rem;
  color: var(--muted);
  align-self: flex-end;
  padding-bottom: 0.35rem;
}

.price-annual {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 var(--space-sm);
}

.tier-trial {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 var(--space-md);
  font-weight: 500;
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 0.5px solid var(--border);
}

.pricing-features .feature-header {
  font-weight: 500;
  color: var(--text);
  font-size: 0.85rem;
}

.pricing-features .feature-note {
  font-size: 0.78rem;
  color: var(--faint);
  font-style: italic;
}

.pricing-tier {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-tier .btn {
  margin-top: auto;
  text-align: center;
  justify-content: center;
  width: 100%;
}

/* FAQ */
.faq-section {
  padding: var(--space-xl) 0;
}

.faq-heading {
  font-size: 1.5rem;
  margin-bottom: var(--space-xl);
  color: var(--text);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
}

.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.image-memory-note {
  font-size: 0.8rem;
  color: var(--faint);
  border-top: 0.5px solid var(--border);
  padding-top: var(--space-md);
  margin-top: var(--space-xl);
  text-align: center;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Contact page — subject drawer and FAQ tabs ─────────────────── */

/* Subject picker — the container */
.subject-field {
  position: relative;
}

.subject-picker {
  position: relative;
}

.subject-picker-input-row {
  display: flex;
  align-items: stretch;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.15s;
  overflow: hidden;
}

.subject-picker-input-row:focus-within,
.subject-picker.is-open .subject-picker-input-row {
  border-color: var(--accent);
}

.subject-picker-input-row input {
  flex: 1;
  padding: var(--space-sm);
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  outline: none;
}

.subject-picker-input-row input::placeholder {
  color: var(--muted);
}

.subject-picker-chevron {
  padding: 0 var(--space-sm);
  background: transparent;
  border: none;
  border-left: 0.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}

.subject-picker-chevron:hover {
  color: var(--text);
  background: var(--surface-raised);
}

.subject-picker.is-open .subject-picker-chevron svg {
  transform: rotate(180deg);
}

/* The drawer itself */
.subject-drawer {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 0.5px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 100;
  overflow: hidden;
  animation: drawerOpen 0.15s ease;
}

@keyframes drawerOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.subject-option {
  display: block;
  width: 100%;
  padding: 0.65rem var(--space-md);
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.subject-option:last-child {
  border-bottom: none;
}

.subject-option:hover,
.subject-option:focus {
  background: var(--surface-raised);
  color: var(--text);
  outline: none;
}

.subject-option.selected {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Form utilities */
.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.3rem 0 0 0;
  line-height: 1.5;
}

/* FAQ tabs */
.contact-faq-block {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-faq-block > .card-label {
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
}

.faq-tab {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.faq-tab:hover,
.faq-tab.active,
.faq-tab[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.faq-panels h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 var(--space-xs) 0;
  line-height: 1.4;
}

.faq-panels p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.secondary-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

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

@media (max-width: 700px) {
  .contact-faq-tabs { gap: 0.25rem; }
  .faq-tab { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
  .subject-drawer { position: fixed; left: 1rem; right: 1rem; top: auto; }
}

