:root {
  /* FigureQuick brand: deep navy #0F2A44 dominant, gold #F2C14E accent.
     Dark theme: deep navy surfaces, bright gold accents. */
  --bg: #0b1526;
  --bg-elevated: #0f1e33;
  --card: #12263f;
  --card-alt: #182c49;
  --border: #2c3f5c;
  --border-strong: #46587c;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --text: #f8fafc;
  --text-secondary: #dbe4f0;
  --muted: #a8b4c8;
  --input-bg: #0d1a2e;
  --primary: #f2c14e;
  --primary-hover: #f6d47c;
  --primary-btn: #f2c14e;
  --primary-btn-hover: #e0b23e;
  --primary-soft: rgba(242, 193, 78, 0.16);
  --on-accent: #0f2a44;
  --gold: #f2c14e;
  --gold-bright: #f2c14e;
  --gold-deep: #c98a00;
  --gold-soft: rgba(242, 193, 78, 0.14);
  --amber: #f2c14e;
  --danger: #fb7185;
  --focus-ring: #f2c14e;
  --radius: 16px;
  --shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
}

/* FigureQuick Light Theme — clean white, dark navy text, gold accents.
   Gold text uses #8a6100 (5.5:1 on white, WCAG AA); #c98a00 is decorative only
   (2.9:1 — fails AA for text) and is never used for text on light backgrounds. */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-alt: #f1f5f9;
  --border: #cbd5e1;
  --border-strong: #94a3b8;
  --border-subtle: #e2e8f0;
  --text: #0f2a44;
  --text-secondary: #2f3f56;
  --muted: #475569;
  --input-bg: #f8fafc;
  --primary: #8a6100;
  --primary-hover: #6b4a00;
  --primary-btn: #f2c14e;
  --primary-btn-hover: #e0b23e;
  --primary-soft: rgba(138, 97, 0, 0.10);
  --on-accent: #0f2a44;
  --gold: #8a6100;
  --gold-bright: #f2c14e;
  --gold-deep: #c98a00;
  --gold-soft: rgba(242, 193, 78, 0.16);
  --amber: #8a6100;
  --danger: #be123c;
  --focus-ring: #8a6100;
  --shadow: 0 10px 25px -5px rgba(15, 42, 68, 0.08), 0 4px 10px -4px rgba(15, 42, 68, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Sticky Enterprise Header */
.navbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}
.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0f2a44;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #f2c14e;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(15, 42, 68, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* 11-Niche Horizontal Ribbon */
.niche-ribbon-wrap {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.niche-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}
.niche-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.79rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.niche-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.niche-pill.active {
  background: var(--primary-btn);
  border-color: var(--primary-btn);
  color: var(--on-accent);
  box-shadow: 0 4px 12px rgba(242, 193, 78, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--primary-btn); color: var(--on-accent); }
.btn-primary:hover { background: var(--primary-btn-hover); transform: translateY(-1px); }
.btn-emerald { background: #f2c14e; color: #0f2a44; font-weight: 700; }
.btn-emerald:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); background: var(--card-alt); }
.btn-icon { padding: 8px 11px; font-size: 0.95rem; }

/* Breadcrumb & Hero */
.hero { padding: 28px 0 22px; }
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.utility-bar { display: flex; align-items: center; gap: 8px; }
.hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero p {
  color: var(--muted);
  max-width: 820px;
  font-size: 0.98rem;
}

/* Main Calculator Grid */
.calc-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 700;
  background: var(--gold-soft);
  padding: 3px 9px;
  border-radius: 99px;
}
.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Preset Quick-Fill Bar */
.preset-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.preset-label { font-size: 0.73rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; }
.preset-btn {
  background: var(--card-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}
.preset-btn:hover, .preset-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
}

/* Form Controls & Synchronized Sliders */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.form-group small.hint {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 3px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix, .input-suffix {
  position: absolute;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  pointer-events: none;
}
.input-prefix { left: 12px; }
.input-suffix { right: 12px; }
input[type="number"], input[type="text"], input[type="search"], select {
  width: 100%;
  padding: 10px 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input.has-prefix { padding-left: 28px; }
input.has-suffix { padding-right: 40px; }
input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
input[type="range"].sync-slider {
  width: 100%;
  height: 5px;
  margin-top: 7px;
  accent-color: var(--primary);
  cursor: pointer;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 8px;
  cursor: pointer;
}
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--primary); }

/* Summary KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.kpi-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.kpi-box::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0.65;
}
.kpi-label { font-size: 0.74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-val { font-size: 1.4rem; font-weight: 800; margin-top: 5px; letter-spacing: -0.02em; }
.kpi-sub { font-size: 0.76rem; color: var(--muted); margin-top: 3px; }
.text-emerald { color: var(--gold); }
.text-danger { color: var(--danger); }
.text-amber { color: var(--amber); }

/* Visual Breakdown Bar Card */
.visual-bar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.visual-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.stacked-bar {
  height: 14px;
  width: 100%;
  background: var(--card-alt);
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  gap: 2px;
}
.stacked-seg {
  height: 100%;
  transition: width 0.25s ease;
}
.stacked-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Insight / Reverse Fee Banner */
.reverse-banner {
  background: var(--primary-soft);
  border: 1px solid rgba(138, 97, 0, 0.35);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Affiliate Savings Recommendation Box */
.affiliate-card {
  background: linear-gradient(135deg, var(--gold-soft), var(--primary-soft));
  border: 1px solid rgba(138, 97, 0, 0.45);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.aff-badge {
  display: inline-block;
  background: #f2c14e;
  color: #0f2a44;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 5px;
}
.aff-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 3px; }
.aff-desc { font-size: 0.85rem; color: var(--text-secondary); max-width: 580px; }

/* Comparison Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--card-alt); }
tr.active-row { background: var(--primary-soft); }
tr:hover { background: var(--border-subtle); }
.plat-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }

/* Directory Filter & Instant Search Bar */
.directory-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.dir-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.dir-search-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}
.dir-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dir-filter-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-alt);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.dir-filter-btn:hover, .dir-filter-btn.active {
  background: var(--primary-btn);
  border-color: var(--primary-btn);
  color: var(--on-accent);
}

.niche-section { margin-bottom: 30px; }
.niche-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.niche-count-badge {
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--card-alt);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.seo-link-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.seo-link-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.seo-link-card h3 { font-size: 0.94rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.seo-link-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* Content, FAQ Accordion & Embed Backlink Widget */
.seo-article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.seo-article h2 { font-size: 1.25rem; margin-bottom: 10px; }
.seo-article h3 { font-size: 1.05rem; margin: 18px 0 8px; color: var(--text); }
.seo-article p, .seo-article li { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 10px; }
.seo-article ul, .seo-article ol { padding-left: 20px; margin-bottom: 12px; }
.seo-article code {
  background: var(--card-alt);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-alt);
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.1rem; color: var(--primary); font-weight: 800; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-ans {
  padding: 0 16px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

/* Backlink Embed & Viral Share Card */
.viral-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow);
}
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.embed-drawer {
  width: 100%;
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.embed-drawer.open { display: block; }
.embed-code-box {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: monospace;
  font-size: 0.78rem;
  padding: 10px;
  margin: 8px 0;
}

/* Top 3 Provider Comparison Matrix, ZIP Lead Widget, Email Capture & Sponsor Slot */
.provider-matrix-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.sponsor-badge-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px dashed rgba(138, 97, 0, 0.45);
  padding: 4px 10px;
  border-radius: 99px;
}
.sponsor-badge-link:hover { background: var(--primary-btn); color: var(--on-accent); }
.provider-list { display: flex; flex-direction: column; gap: 10px; }
.provider-row {
  display: grid;
  grid-template-columns: 165px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}
.provider-row:hover { border-color: var(--primary); }
@media (max-width: 720px) {
  .provider-row { grid-template-columns: 1fr; }
}
.provider-rank {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}
.provider-name { font-weight: 800; font-size: 0.96rem; }
.provider-rating { font-size: 0.78rem; color: var(--amber); font-weight: 700; }
.provider-highlight { font-size: 0.85rem; color: var(--text-secondary); }

.zip-lead-box {
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.16), rgba(242, 193, 78, 0.10));
  border: 1px solid var(--primary);
  border-radius: 13px;
  padding: 15px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.zip-form { display: flex; gap: 8px; align-items: center; }
.zip-form input { width: 135px; padding: 9px 12px; }

.email-capture-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow);
}
.email-form { display: flex; gap: 8px; flex: 1; max-width: 420px; }

/* Enterprise Legal, Federal/State Regulatory Compliance, Cookie Bar & Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary-btn);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.ftc-inline-notice {
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 9px;
  padding: 8px 13px;
  margin-bottom: 14px;
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.ftc-inline-notice a { color: var(--primary); font-weight: 600; text-decoration: underline; }

.regulatory-disclaimer-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}
.regulatory-disclaimer-box strong { color: var(--text-secondary); }

/* Enterprise Legal & Compliance Hub Layout */
.legal-hero {
  padding: 36px 0 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.legal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 700;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(138, 97, 0, 0.35);
}
.legal-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
}
.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow);
}
.legal-toc h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 12px; }
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); display: block; padding: 5px 8px; border-radius: 7px; }
.legal-toc a:hover { background: var(--primary-soft); color: var(--primary); }
.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.legal-content h2 { font-size: 1.3rem; margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.02rem; margin: 18px 0 6px; color: var(--text); }
.legal-content p, .legal-content li { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 10px; line-height: 1.65; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.compliance-callout {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 15px 18px;
  margin: 16px 0;
  font-size: 0.88rem;
}

/* CCPA / GDPR / AdSense Consent Banner */
.cookie-consent-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-consent-bar.show { display: flex; }

/* Pro Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow);
}

footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 48px;
}

@media print {
  .navbar, .niche-ribbon-wrap, .utility-bar, .affiliate-card, #all-calculators, footer, .preset-bar, input[type="range"] {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; }
  .card, .kpi-box, .visual-bar-card { border: 1px solid #cbd5e1 !important; box-shadow: none !important; }
  .calc-grid { grid-template-columns: 320px 1fr !important; }
}

/* ==========================================================================
   FIGUREQUICK UI SIMPLIFICATION — ACCESSIBILITY, NEXT-STEP GUIDE,
   POPULAR CARDS, CATEGORY CARDS & GUIDE BOT
   (WCAG AA contrast, 44px tap targets, visible focus, layout stability)
   ========================================================================== */

/* --- Visible keyboard focus (WCAG 2.4.7) --- */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* --- 44px minimum tap targets (mobile / Lighthouse) --- */
.btn, .preset-btn, .dir-filter-btn, .niche-pill,
input[type="number"], input[type="text"], input[type="search"],
input[type="email"], select, .faq-item summary {
  min-height: 44px;
}
.btn { padding: 11px 18px; }
.preset-btn { padding: 9px 14px; }
.niche-pill { padding: 10px 15px; }
.dir-filter-btn { padding: 10px 14px; }
input[type="number"], input[type="text"], input[type="search"],
input[type="email"], select { padding: 11px 12px; }
/* Stronger form-field borders so inputs are clearly visible (WCAG 1.4.11) */
input[type="number"], input[type="text"], input[type="search"],
input[type="email"], select { border: 1.5px solid var(--border-strong); }

/* --- Layout stability: reserve space for JS-populated content (no CLS) --- */
.kpi-val { min-height: 1.9rem; }
.stacked-bar { min-height: 14px; }
#visualLegend { min-height: 1.4rem; }
#comparisonBody { min-height: 48px; }
#top3ProviderList { min-height: 64px; }

/* --- Next-step guide bar (injected by app.js; always tells the user what to do) --- */
.next-step-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--primary-soft);
  border: 1.5px solid var(--primary);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0 22px;
  box-shadow: var(--shadow);
}
.next-step-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  white-space: nowrap;
}
.next-step-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.next-step-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 99px;
  min-height: 44px;
}
.next-step-list li .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--card-alt);
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.next-step-list li[aria-current="step"] {
  background: var(--card);
  border: 1.5px solid var(--primary);
  color: var(--text);
  box-shadow: var(--shadow);
}
.next-step-list li[aria-current="step"] .step-num {
  background: var(--primary-btn);
  border-color: var(--primary-btn);
  color: var(--on-accent);
}
.next-step-list li.done .step-num {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #0f2a44;
}
.next-step-sep { color: var(--muted); font-weight: 700; }

/* --- Popular calculator cards (homepage) --- */
.popular-section { margin: 8px 0 34px; }
.popular-section h2, .category-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.popular-section > p, .category-section > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  max-width: 720px;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.popular-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.popular-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.popular-icon {
  font-size: 2rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: 14px;
}
.popular-card h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.popular-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.popular-card .btn { width: 100%; min-height: 48px; font-size: 0.95rem; }

/* --- Category cards with alphabetical dropdowns (homepage) --- */
.category-section { margin: 8px 0 38px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.cat-card:hover, .cat-card[open] { border-color: var(--primary); }
.cat-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  min-height: 88px;
}
.cat-card summary::-webkit-details-marker { display: none; }
.cat-icon {
  font-size: 2.4rem;
  line-height: 1;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: 16px;
}
.cat-info { flex: 1; min-width: 0; }
.cat-info h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.cat-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 3px;
}
.cat-chevron {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.cat-card[open ] .cat-chevron, .cat-card[open] .cat-chevron { transform: rotate(180deg); }
.cat-list {
  list-style: none;
  margin: 0;
  padding: 6px 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  min-height: 44px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.cat-list li a:hover { background: var(--primary-soft); color: var(--primary); }
.cat-list li a::after { content: "→"; color: var(--primary); font-weight: 800; }

/* --- Simplified homepage hero --- */
.hero-simple { padding: 34px 0 10px; text-align: left; }
.hero-simple h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero-simple p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.55;
}
.hero-simple .hero-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Guide bot (floating helper; injected by guide.js) --- */
.guide-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 10px 18px 10px 12px;
  border-radius: 99px;
  border: 1.5px solid var(--primary-btn);
  background: var(--primary-btn);
  color: var(--on-accent);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.guide-fab:hover { background: var(--primary-btn-hover); transform: translateY(-2px); }
.guide-fab .guide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2c14e;
  box-shadow: 0 0 0 0 rgba(242, 193, 78, 0.6);
  animation: guide-pulse 2.4s infinite;
}
@keyframes guide-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 193, 78, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(242, 193, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 193, 78, 0); }
}
.guide-tip {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 90;
  max-width: 280px;
  background: var(--card);
  border: 1.5px solid var(--primary);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}
.guide-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 91;
  width: min(340px, calc(100vw - 36px));
  max-height: min(480px, calc(100vh - 120px));
  overflow-y: auto;
  background: var(--card);
  border: 1.5px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: none;
}
.guide-panel.open { display: block; }
.guide-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px 11px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}
.guide-panel-head strong { font-size: 0.98rem; font-weight: 800; }
.guide-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card-alt);
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}
.guide-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.guide-msg {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.guide-msg strong { color: var(--text); }
.guide-next {
  background: var(--primary-soft);
  border: 1.5px solid var(--primary);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.guide-tips { display: flex; flex-direction: column; gap: 8px; }
.guide-tip-btn {
  text-align: left;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card-alt);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.guide-tip-btn:hover { border-color: var(--primary); color: var(--primary); }
.guide-answer {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
}
.guide-answer:empty { display: none; }

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

/* --- Print: hide the guide bot and next-step bar --- */
@media print {
  .guide-fab, .guide-tip, .guide-panel, .next-step-bar { display: none !important; }
}

/* ==========================================================================
   FIGUREQUICK FORMAT — nichecalculators.app STRUCTURE, FIGUREQUICK NAVY/GOLD
   Deep navy #0F2A44 dominant, gold #F2C14E accent (sparingly).
   Gold text on light = #8a6100 (AA 5.5:1); bright gold #F2C14E for large
   accents on dark navy and for button backgrounds with navy text.
   ========================================================================== */
:root {
  --font-display: Georgia, 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
  --navy: #0f2a44;
  --navy-deep: #0b1526;
  --gold: #8a6100;
  --gold-bright: #f2c14e;
}

/* --- Serif display headings --- */
h1, h2, .hero-simple h1, .section-heading, .calc-hero h1 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
h1 { font-weight: 700; }
h2 { font-weight: 700; }

/* --- Slim header: logo left, hamburger + theme toggle right --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 42, 68, 0.04);
}
.navbar .nav-inner { min-height: 60px; }
.brand { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.brand-badge {
  background: var(--navy);
  color: var(--gold-bright);
}
/* Category pill ribbon: replaced by hamburger menu + category cards + sidebar */
.niche-ribbon-wrap { display: none; }
/* Desktop nav links live inside the hamburger panel now */
.navbar .nav-links { display: none; }
.hamburger-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}
.hamburger-btn:hover { border-color: var(--primary); color: var(--primary); }
.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--bg-elevated);
  border-bottom: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px 0 22px;
  z-index: 79;
}
.nav-panel.open { display: block; }
.nav-panel-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.nav-panel h3 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.nav-panel a {
  display: block;
  padding: 9px 0;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.nav-panel a:hover { color: var(--primary); }
.nav-panel .nav-panel-cta { margin-top: 6px; }

/* --- Eyebrow (// MOST POPULAR, // START HERE) --- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.eyebrow::before { content: "// "; color: var(--primary); }

/* --- Section headings: dark serif, gold italic accent phrase --- */
.section-heading {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 8px;
}
.section-heading em {
  font-style: italic;
  color: var(--primary);
}
.section-sub {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 680px;
  margin-bottom: 20px;
  line-height: 1.55;
}

/* --- Homepage hero: clean light background, serif H1, gold italic accent --- */
.hero-simple {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
  margin: 0 0 34px;
}
.hero-simple .container { max-width: 1180px; }
.hero-simple h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 780px;
  margin-bottom: 14px;
}
.hero-simple h1 em {
  font-style: italic;
  color: var(--primary);
}
.hero-simple p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 22px;
}
.hero-simple .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-simple .hero-cta .btn { min-height: 50px; padding: 13px 22px; font-size: 0.98rem; }
.hero-trust {
  margin-top: 20px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-trust span + span::before { content: "·"; margin-right: 8px; color: var(--primary); }

/* --- Closing CTA band: navy, gold button --- */
.closing-cta {
  background: var(--navy);
  border-radius: 18px;
  padding: 44px 28px;
  text-align: center;
  margin: 44px 0 40px;
  box-shadow: var(--shadow);
}
.closing-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.closing-cta p { color: #dbe4f0; font-size: 0.98rem; margin-bottom: 20px; }
.closing-cta .btn-primary {
  background: var(--gold-bright);
  color: var(--navy);
  min-height: 50px;
  padding: 13px 26px;
  font-size: 1rem;
}
.closing-cta .btn-primary:hover { background: #e0b23e; }

/* --- Footer: white, copyright left, small grey links right --- */
footer.site-footer, footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 26px 0;
  margin-top: 20px;
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--muted);
}
.site-footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer-inner nav a { color: var(--muted); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer-inner nav a:hover { color: var(--primary); }

/* --- Calculator hero: deep navy, gold pill, white serif H1, gold stats --- */
.hero.calc-hero, section.hero {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  border: 1px solid #1e3a5c;
  border-radius: 18px;
  padding: 30px 28px 26px;
  margin-bottom: 24px;
  color: #f8fafc;
}
.hero.calc-hero h1, section.hero h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.18;
  margin-bottom: 10px;
}
.hero.calc-hero p, section.hero p { color: #c7d3e2; font-size: 1rem; line-height: 1.6; max-width: 760px; }
.hero.calc-hero .breadcrumb, section.hero .breadcrumb { color: #a8b4c8; font-size: 0.85rem; }
.hero.calc-hero .breadcrumb a, section.hero .breadcrumb a { color: var(--gold-bright); font-weight: 700; }
.hero.calc-hero .breadcrumb a:hover, section.hero .breadcrumb a:hover { text-decoration: underline; }
.hero.calc-hero .breadcrumb span, section.hero .breadcrumb span { color: #a8b4c8; }
.cat-pill {
  display: inline-block;
  background: var(--gold-bright);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 7px 13px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.hero-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 193, 78, 0.25);
}
.hero-stat { min-width: 120px; }
.hero-stat b {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1.25;
}
.hero-stat span { font-size: 0.8rem; color: #a8b4c8; font-weight: 600; }

/* --- Calculator two-column layout + sidebar --- */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}
.calc-sidebar { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 18px; }
.sidebar-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.sidebar-card p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 12px; }
.sidebar-card .btn { width: 100%; min-height: 48px; }
.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li a {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links li a:hover { color: var(--primary); }
.sidebar-facts { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.sidebar-facts li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.sidebar-facts li:last-child { border-bottom: none; }
.sidebar-facts li b { color: var(--text); font-weight: 700; }
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-sidebar { position: static; }
}

/* --- Guidance sections (What Is / Formula / Example / Good Result / FAQ) --- */
.seo-article h2, .seo-article h3 {
  font-family: var(--font-display);
  color: var(--text);
}
.seo-article h2 { font-size: 1.5rem; margin: 26px 0 10px; }
.seo-article h3 { font-size: 1.18rem; margin: 22px 0 8px; }
.faq-item summary { font-weight: 700; color: var(--text); }
.faq-item summary::marker { color: var(--primary); }

/* --- "Use the Calculator" group headings: small-caps --- */
.card-title, .calc-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.field-help { font-size: 0.8rem; color: var(--muted); }
