/* ===================================================================
   Plain Policies — shared stylesheet
   Design goals: WCAG 2.1 AA contrast, mobile-first, calm trustworthy
   palette (soft blues/greens), generous white space, simple icons.
   =================================================================== */

:root {
  /* ===== Plain Policies design tokens =====
     Every text/background pair below is checked against WCAG 2.1 AA
     (>= 4.5:1 for normal text, >= 3:1 for large text & UI components).
     See design-system.html for the full palette + contrast reference. */

  /* Neutrals (cool, blue-leaning grays) */
  --color-bg: #F7F9FB;
  --color-surface: #FFFFFF;
  --color-surface-alt: #EEF2F6;
  --color-text: #1A2027;          /* 16.4:1 on white */
  --color-text-muted: #4B5563;    /* 7.6:1 on white */
  --color-border: #DCE1E7;        /* decorative dividers, not a contrast-critical border */
  --color-border-strong: #8B96A3; /* 3.0:1 on white — inputs, chip outlines, functional borders */

  /* Primary: trustworthy blue */
  --color-primary: #0A4D8C;       /* 8.6:1 on white */
  --color-primary-dark: #062F57;  /* 13.5:1 on white */
  --color-primary-light: #E1EBF6;

  /* Accent: soft teal */
  --color-accent: #0F766E;        /* 5.5:1 on white, 4.8:1 on --color-accent-light */
  --color-accent-light: #E1F3F0;

  /* Status / warning (disclaimer, callouts) */
  --color-warning-bg: #fff6e0;
  --color-warning-border: #c98a12;
  --color-warning-text: #6b4a04;  /* 7.5:1 on warning-bg */

  --color-link: #0A4D8C;
  --color-focus: #B45309;         /* 5.0:1 on white — visible focus ring */

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(10, 77, 140, 0.08), 0 1px 2px rgba(10, 77, 140, 0.06);
  --shadow-md: 0 4px 14px rgba(10, 77, 140, 0.10);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--color-link);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
a:hover { color: var(--color-primary-dark); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  color: var(--color-primary-dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 2.5rem; }
h3 { font-size: 1.2rem; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  text-decoration: none;
}
.brand:hover { color: var(--color-primary); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}
.brand-tagline {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: var(--color-text-muted, #4B5563);
}
@media (max-width: 560px) {
  .brand-tagline { display: none; }
}

.nav-toggle {
  display: none;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  cursor: pointer;
}

/* ---------- Header search (prioritizes the glossary) ---------- */
.header-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-surface-alt);
  border: 1.5px solid var(--color-border);
  border-radius: 9px;
  padding: 0.35rem 0.5rem 0.35rem 0.8rem;
  flex: 0 1 260px;
}
.header-search:focus-within {
  border-color: var(--color-primary);
}
.header-search svg { color: var(--color-text-muted); flex-shrink: 0; }
.header-search input[type="search"] {
  border: none;
  background: transparent;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  flex: 1;
  min-width: 0;
  color: var(--color-text);
}
.header-search input[type="search"]:focus { outline: none; }
.header-search button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
}
.header-search button:hover { background: var(--color-primary-dark); }
.header-search-wrap { position: relative; flex: 0 1 260px; }
.header-search-wrap .header-search { flex: 1 1 auto; }
.header-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  max-height: 60vh;
  overflow-y: auto;
}
.header-search-results[hidden] { display: none; }
.header-search-results li { margin: 0; }
.header-search-results .hsr-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  color: var(--color-text);
  font: inherit;
}
.header-search-results .hsr-item:hover,
.header-search-results .hsr-item.is-active {
  background: var(--color-primary-light);
}
.header-search-results .hsr-q { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.15rem; }
.header-search-results .hsr-a { display: block; font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.35; }
.header-search-results .hsr-empty { padding: 0.6rem; font-size: 0.85rem; color: var(--color-text-muted); }
.header-search-results .hsr-browse {
  display: block;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-top: 1px solid var(--color-border);
  margin-top: 0.3rem;
  color: var(--color-primary);
}
@media (max-width: 880px) {
  .header-search-wrap { order: 2; flex: 1 1 100%; margin: 0 0 0.6rem; }
  .header-search { width: 100%; }
}

/* ---------- Search & Common Questions page ---------- */
.hsr-q { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--color-text); }
.hsr-a { display: block; font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.4; }
.search-group { margin-bottom: 2rem; }
.search-group h2 { margin-bottom: 0.8rem; }
.search-item-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.9rem; }
.search-item {
  display: block;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-item:hover, .search-item:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.search-item[hidden] { display: none; }
.search-group[hidden] { display: none; }

.main-nav {
  display: flex;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}
.main-nav a:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.main-nav a[aria-current="page"] {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { display: block; padding: 0.7rem 0.5rem; }
}

/* ---------- Disclaimer (sticky bar, present on every page) ---------- */
.disclaimer {
  position: sticky;
  bottom: 0;
  z-index: 90;
  background: var(--color-warning-bg);
  border-top: 2px solid var(--color-warning-border);
  color: var(--color-warning-text);
  font-size: 0.86rem;
  padding: 0.6rem 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.disclaimer .wrap {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.disclaimer strong { color: var(--color-warning-text); }
.disclaimer svg { flex-shrink: 0; margin-top: 0.1rem; }
.disclaimer p { margin: 0; flex: 1; }
.disclaimer-close {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning-text);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}
.disclaimer-close:hover { background: var(--color-warning-border); color: #fff; }
.disclaimer.is-dismissed { display: none; }

/* ---------- Seasonal banner (date-scoped, dismissible per session) ---------- */
.seasonal-banner {
  background: var(--color-accent-light);
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.86rem;
  padding: 0.55rem 0;
}
.seasonal-banner[hidden] { display: none; }
.seasonal-banner.is-dismissed { display: none; }
.seasonal-banner .wrap {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.seasonal-banner-icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--color-accent); }
.seasonal-banner p { margin: 0; flex: 1; }
.seasonal-banner a { color: var(--color-primary-dark); font-weight: 600; }
.seasonal-banner-close {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-primary-dark);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}
.seasonal-banner-close:hover { background: var(--color-accent); color: #fff; }

/* Footer's full disclaimer callout stays visible even if the sticky bar is dismissed */
.footer-disclaimer {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.footer-disclaimer p { margin: 0; color: #e8f2f0; font-size: 0.9rem; }
.footer-disclaimer strong { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}
.hero .eyebrow {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 62ch;
}
.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.hero-ctas .btn { font-size: 0.98rem; padding: 0.7rem 1.25rem; }

/* ---------- 60-second explainer ---------- */
.explainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  counter-reset: xstep;
}
.explainer .xcard {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
}
.explainer .xcard::before {
  counter-increment: xstep;
  content: counter(xstep);
  position: absolute;
  top: -12px;
  left: 1.1rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--color-bg);
}
.explainer .xcard h3 { margin: 0.4rem 0 0.4rem; font-size: 1.05rem; color: var(--color-primary-dark); }
.explainer .xcard p { margin: 0; color: var(--color-text-muted); font-size: 0.93rem; }
.explainer-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* ---------- Key numbers at a glance ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.2;
}
.stat-card .stat-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 0.2rem;
}
.stat-card .stat-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* ---------- Sections ---------- */
main { padding-bottom: 3.5rem; }
.section { padding: 2.5rem 0; }
.section-tight { padding: 1rem 0 2.5rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.8rem;
}
.card h3 { margin: 0 0 0.4rem; color: var(--color-primary-dark); }
.card p { margin: 0; color: var(--color-text-muted); font-size: 0.96rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--color-primary-dark); color: #fff; }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }

/* ---------- Accordion ---------- */
.accordion { margin-top: 1.25rem; }
.accordion details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  padding: 0;
  overflow: hidden;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
/* Allows an FAQ question to be a real heading (for SEO/assistive tech) without changing appearance */
.accordion summary h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
}
.accordion summary .chev {
  flex-shrink: 0;
  transition: transform 0.18s ease;
  color: var(--color-accent);
}
.accordion details[open] summary .chev { transform: rotate(180deg); }
.accordion .accordion-body {
  padding: 0 1.2rem 1.2rem;
  color: var(--color-text-muted);
}
.accordion .accordion-body p { margin: 0 0 0.7rem; }
.accordion .accordion-body ul { margin: 0.3rem 0 0.7rem; padding-left: 1.2rem; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin-top: 1.25rem; border-radius: var(--radius); border: 1px solid var(--color-border); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 0.95rem;
  min-width: 480px;
}
table.compare caption { text-align: left; padding: 0.9rem 1rem 0; font-weight: 700; color: var(--color-primary-dark); }
table.compare th, table.compare td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
table.compare thead th {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  position: sticky;
  top: 0;
}
table.compare tbody tr:hover { background: var(--color-surface-alt); }
table.compare tbody tr:last-child td { border-bottom: none; }

/* ---------- Callout boxes ---------- */
.callout {
  background: var(--color-accent-light);
  border: 1px solid #bfe4e0;
  border-left: 5px solid var(--color-accent);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.callout h3 { margin-top: 0; color: var(--color-accent); }
.callout.info { background: var(--color-primary-light); border-color: #c3d7ec; border-left-color: var(--color-primary); }
.callout.info h3 { color: var(--color-primary-dark); }

/* ---------- Glossary ---------- */
.glossary-search {
  display: flex;
  gap: 0.6rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.glossary-search input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  border: 1.5px solid var(--color-border);
  font-size: 1rem;
}
.glossary-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.glossary-letters button {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 0.3rem 0.6rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-size: 0.85rem;
}
.glossary-letters button:hover,
.glossary-letters button.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.glossary-count { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.glossary-list { display: grid; gap: 0.8rem; }
.glossary-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.glossary-item dt { font-weight: 800; color: var(--color-primary-dark); font-size: 1.02rem; }
.glossary-item dd { margin: 0.35rem 0 0; color: var(--color-text-muted); }
.glossary-item mark { background: #ffe9a8; color: inherit; border-radius: 3px; }
.glossary-embed-btn {
  margin-top: 0.6rem;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 7px;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
}
.glossary-embed-btn:hover { background: var(--color-primary-light); }
.glossary-embed-btn.copied { color: var(--color-accent); border-color: var(--color-accent); }
.glossary-empty { display: none; padding: 1.5rem; text-align: center; color: var(--color-text-muted); }

/* ---------- Claim flow (icon + numbered steps, reused across pages) ---------- */
.claim-flow {
  margin-top: 1.5rem;
}
.claim-flow .cf-step {
  display: flex;
  gap: 1.1rem;
  padding: 1.3rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.claim-flow .cf-step:last-child { border-bottom: none; padding-bottom: 0.3rem; }
.claim-flow .cf-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.claim-flow .cf-icon .cf-num {
  position: absolute;
  top: -7px; right: -7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--color-bg);
}
.claim-flow .cf-body { flex: 1; min-width: 0; }
.claim-flow h3 { margin: 0.1rem 0 0.35rem; font-size: 1.05rem; }
.claim-flow .cf-body > p { margin: 0 0 0.7rem; color: var(--color-text-muted); }

/* "What you usually need to provide" callout, used inside claim-flow steps */
.provide-box {
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-primary);
  border-radius: 6px;
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  color: var(--color-text);
}
.provide-box strong { color: var(--color-primary-dark); }
.provide-box ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.provide-box li { margin-bottom: 0.2rem; }

/* Compact horizontal mini-stepper for the general, type-agnostic overview */
.mini-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
  counter-reset: mstep;
}
.mini-stepper .ms-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 0.9rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.mini-stepper .ms-item .ms-icon {
  counter-increment: mstep;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.6rem;
  position: relative;
}
.mini-stepper .ms-item .ms-icon::after {
  content: counter(mstep);
  position: absolute;
  top: -6px; right: -6px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--color-bg);
}
.mini-stepper .ms-item h3 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.mini-stepper .ms-item p { margin: 0; font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- Mini flow (e.g. Premium -> Coverage -> Claim) ---------- */
.mini-flow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.mini-flow .flow-box {
  flex: 1;
  min-width: 170px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.mini-flow .flow-box .flow-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.7rem;
}
.mini-flow .flow-box h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.mini-flow .flow-box p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.mini-flow .flow-arrow { color: var(--color-accent); flex-shrink: 0; }
@media (max-width: 700px) {
  .mini-flow { flex-direction: column; }
  .mini-flow .flow-arrow { transform: rotate(90deg); }
}

/* ---------- Shared pill filter/tab buttons (life stages, myth filters, decoder, simulator) ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.pill-btn {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pill-btn:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.pill-btn[aria-pressed="true"],
.pill-btn[aria-selected="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Generic single-active-panel switcher, used by life stages & claim simulator */
.panel { display: none; }
.panel.active { display: block; }

/* Generic tool search bar (decoder, myth cards) */
.tool-search { display: flex; gap: 0.6rem; margin: 1.5rem 0; flex-wrap: wrap; }
.tool-search input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  border: 1.5px solid var(--color-border-strong);
  font-size: 1rem;
}

/* ---------- Life-Stage Decision Maps ---------- */
.stage-hub {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  text-align: center;
  max-width: 460px;
  margin: 2rem auto 2rem;
  box-shadow: var(--shadow-md);
}
.stage-hub h3 { color: #fff; margin: 0 0 0.35rem; font-size: 1.1rem; }
.stage-hub p { color: #dcebee; margin: 0; font-size: 0.9rem; }
.stage-hub-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.stage-share-btn, .stage-embed-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 7px;
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.stage-share-btn:hover, .stage-embed-btn:hover { background: rgba(255,255,255,0.25); }
.stage-share-btn.copied, .stage-embed-btn.copied { background: var(--color-accent); border-color: var(--color-accent); }
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}
.node-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  display: block;
}
.node-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.node-card .node-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 0.45rem;
}
.node-card h3 { margin: 0 0 0.4rem; color: var(--color-primary-dark); font-size: 1rem; }
.node-card p { margin: 0; font-size: 0.87rem; color: var(--color-text-muted); }

/* ---------- Myth vs. Data Cards ---------- */
.myth-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.myth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.myth-card .mc-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.myth-card .mc-myth { background: var(--color-warning-bg); border-bottom: 1px solid var(--color-warning-border); padding: 1rem 1.2rem; }
.myth-card .mc-myth .mc-label { color: var(--color-warning-text); }
.myth-card .mc-myth p { margin: 0.3rem 0 0; font-weight: 700; color: var(--color-warning-text); font-size: 0.97rem; }
.myth-card .mc-data { background: var(--color-accent-light); padding: 1rem 1.2rem; flex: 1; }
.myth-card .mc-data .mc-label { color: var(--color-accent); }
.myth-card .mc-data p { margin: 0.3rem 0 0; font-size: 0.89rem; color: var(--color-text); }
.myth-card .mc-actions { padding: 0.6rem 1.2rem; border-top: 1px solid var(--color-border); display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.mc-copy, .mc-embed {
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 7px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mc-copy:hover, .mc-embed:hover { background: var(--color-primary-light); }
.mc-copy.copied, .mc-embed.copied { color: var(--color-accent); border-color: var(--color-accent); }

/* ---------- Policy Language Decoder ---------- */
.decoder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
@media (max-width: 700px) { .decoder-row { grid-template-columns: 1fr; } }
.decoder-row .dr-original { padding: 1.1rem 1.3rem; border-right: 1px solid var(--color-border); background: var(--color-surface-alt); }
@media (max-width: 700px) { .decoder-row .dr-original { border-right: none; border-bottom: 1px solid var(--color-border); } }
.decoder-row .dr-plain { padding: 1.1rem 1.3rem; }
.decoder-row .dr-label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.decoder-row .dr-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; background: var(--color-primary-light); color: var(--color-primary-dark); padding: 0.15rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem; }
.decoder-row .dr-original p { margin: 0; font-style: italic; color: var(--color-text); font-size: 0.92rem; }
.decoder-row .dr-plain p { margin: 0; color: var(--color-text); font-size: 0.92rem; }
.decoder-empty { display: none; padding: 1.5rem; text-align: center; color: var(--color-text-muted); }

/* ---------- Coverage Gap Visualizer ---------- */
.gap-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.gap-control {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.gap-control label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--color-primary-dark); margin-bottom: 0.5rem; }
.gap-control select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1.5px solid var(--color-border-strong);
  font-size: 0.92rem;
  background: var(--color-surface);
  color: var(--color-text);
}
.gap-illustration {
  margin-top: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.gap-bar-row { margin-bottom: 1.4rem; }
.gap-bar-row:last-child { margin-bottom: 0; }
.gap-bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.45rem; }
.gap-bar-track {
  height: 24px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  overflow: hidden;
  display: flex;
  border: 1px solid var(--color-border);
}
.gap-bar-fill { height: 100%; background: var(--color-accent); transition: width 0.25s ease; }
.gap-bar-gap {
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--color-warning-bg), var(--color-warning-bg) 6px, #f5da9e 6px, #f5da9e 12px);
  transition: width 0.25s ease;
}
.gap-bar-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.45rem; }

/* ---------- Claim Path Simulator friction points ---------- */
.friction-box {
  background: var(--color-warning-bg);
  border-left: 3px solid var(--color-warning-border);
  border-radius: 6px;
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
  color: var(--color-warning-text);
  margin-top: 0.6rem;
}
.friction-box strong { color: var(--color-warning-text); }

/* ---------- Learning Pathways: progress, lessons, knowledge checks ---------- */
.pathway-progress { margin: 1.2rem 0 1.6rem; }
.pathway-progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.4rem; }
.pathway-progress-bar-track { height: 12px; border-radius: 999px; background: var(--color-surface-alt); border: 1px solid var(--color-border); overflow: hidden; }
.pathway-progress-bar-fill { height: 100%; background: var(--color-accent); transition: width 0.3s ease; width: 0%; }

.lesson { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-sm); }
.lesson-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.lesson-header h3 { margin: 0; }
.lesson-status { font-size: 0.76rem; font-weight: 800; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--color-surface-alt); color: var(--color-text-muted); white-space: nowrap; }
.lesson-status.is-complete { background: var(--color-accent-light); color: var(--color-accent); }

.knowledge-check { background: var(--color-surface-alt); border-radius: 10px; padding: 1.1rem 1.2rem; margin-top: 1rem; }
.knowledge-check h4 { margin: 0 0 0.8rem; font-size: 0.9rem; color: var(--color-primary-dark); }
.kc-question { margin-bottom: 1rem; }
.kc-question:last-of-type { margin-bottom: 0.4rem; }
.kc-q-text { font-weight: 700; margin: 0 0 0.5rem; font-size: 0.91rem; }
.kc-options { display: grid; gap: 0.4rem; margin: 0 0 0.6rem; padding: 0; list-style: none; }
.kc-option { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.89rem; }
.kc-option input { margin-top: 0.2rem; flex-shrink: 0; }
.kc-check-btn { background: var(--color-surface); border: 1.5px solid var(--color-border-strong); border-radius: 7px; padding: 0.4rem 0.8rem; font-size: 0.8rem; font-weight: 700; color: var(--color-primary-dark); cursor: pointer; }
.kc-check-btn:hover { background: var(--color-primary-light); }
.kc-feedback { font-size: 0.85rem; margin-top: 0.6rem; padding: 0.55rem 0.8rem; border-radius: 6px; display: none; }
.kc-feedback.show.correct { display: block; background: var(--color-accent-light); color: var(--color-accent); }
.kc-feedback.show.incorrect { display: block; background: var(--color-warning-bg); color: var(--color-warning-text); }

.mark-complete-btn { margin-top: 0.7rem; }

.module-complete-banner {
  background: var(--color-accent-light);
  border: 1px solid #bfe4e0;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  display: none;
  align-items: center;
  gap: 0.9rem;
}
.module-complete-banner.show { display: flex; }
.module-complete-banner .icon { color: var(--color-accent); flex-shrink: 0; }
.module-complete-banner h3 { margin: 0 0 0.2rem; color: var(--color-accent); }
.module-complete-banner p { margin: 0; font-size: 0.89rem; color: var(--color-text); }

.reset-progress-btn {
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 7px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
}
.reset-progress-btn:hover { border-color: #a13a3a; color: #a13a3a; }

/* ---------- State Explorer ---------- */
.state-picker fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1.2rem;
  margin: 0 0 1.1rem;
}
.state-picker legend {
  font-weight: 800;
  color: var(--color-primary-dark);
  padding: 0 0.4rem;
  font-size: 0.95rem;
}
.state-picker .state-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.state-chip { position: relative; display: inline-flex; }
.state-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.state-chip label {
  display: inline-block;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
}
.state-chip input:hover + label { border-color: var(--color-primary); }
.state-chip input:checked + label { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.state-chip input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.state-chip .has-data-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-left: 0.4rem;
}
.state-chip input:checked + label .has-data-dot { background: #fff; }

table.compare tr.state-row-hidden { display: none; }
.badge { display: inline-block; font-size: 0.76rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; }
.badge-allowed { background: var(--color-accent-light); color: var(--color-accent); }
.badge-restricted { background: var(--color-warning-bg); color: var(--color-warning-text); }
.badge-nodata { background: var(--color-surface-alt); color: var(--color-text-muted); }

/* ---------- Trend chart (CSS-only bar chart) ---------- */
.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
  height: 170px;
  margin-top: 1.5rem;
  padding: 0 0.5rem;
}
.trend-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; max-width: 110px; }
.trend-bar .bar-value { font-size: 0.8rem; font-weight: 800; color: var(--color-primary-dark); margin-bottom: 0.4rem; }
.trend-bar .bar { width: 100%; max-width: 56px; background: var(--color-primary); border-radius: 6px 6px 0 0; }
.trend-bar.is-flat .bar { background: var(--color-accent); }
.trend-bar .bar-label { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.6rem; font-weight: 700; }

/* ---------- Design-system swatches & demo boxes (design-system.html) ---------- */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.swatch-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.swatch-color { height: 76px; }
.swatch-meta { padding: 0.8rem 1rem; }
.swatch-meta .swatch-name { font-weight: 700; font-size: 0.92rem; color: var(--color-primary-dark); }
.swatch-meta .swatch-hex { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; color: var(--color-text-muted); }
.swatch-meta .swatch-usage { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.4rem; }

.demo-box {
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
  background: var(--color-surface);
}
.demo-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.9rem;
}

.type-sample { border-bottom: 1px solid var(--color-border); padding: 1.1rem 0; }
.type-sample:last-child { border-bottom: none; }
.type-sample .type-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-top: 0.35rem;
}

.stack-table td code, .stack-table th code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--color-surface-alt);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* ---------- Rating-factor chip grid (visual, compact) ---------- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.chip .chip-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Tends to raise / lower rates ---------- */
.raise-lower {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.raise-lower .rl-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.raise-lower .rl-box.raise { border-top: 4px solid var(--color-warning-border); }
.raise-lower .rl-box.lower { border-top: 4px solid var(--color-accent); }
.raise-lower h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  font-size: 1rem;
}
.raise-lower h3.raise-title { color: var(--color-warning-text); }
.raise-lower h3.lower-title { color: var(--color-accent); }
.raise-lower ul { margin: 0; padding-left: 1.2rem; }
.raise-lower li { margin-bottom: 0.5rem; color: var(--color-text-muted); font-size: 0.93rem; }

/* ---------- At-a-glance comparison cards ---------- */
.glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.glance-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  display: block;
}
.glance-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.glance-card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--color-accent-light); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.glance-card h3 { margin: 0 0 0.3rem; color: var(--color-primary-dark); }
.glance-card .glance-value { font-size: 1.7rem; font-weight: 800; color: var(--color-primary-dark); margin: 0.3rem 0; }
.glance-card .glance-range { font-size: 0.88rem; color: var(--color-text-muted); margin: 0 0 0.6rem; }
.glance-card .glance-link { font-size: 0.85rem; font-weight: 700; color: var(--color-primary); }

/* ---------- Repeated data-source disclaimer callout ---------- */
.data-disclaimer {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--color-warning-text);
}
.data-disclaimer strong { color: var(--color-warning-text); }

/* ---------- Example callout (used inside accordions) ---------- */
.example {
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  margin: 0.6rem 0;
}
.example strong { color: var(--color-accent); }

/* ---------- Myth vs Fact ---------- */
.myth-fact p.myth { margin: 0 0 0.4rem; }
.myth-fact p.myth strong { color: #a13a3a; }
.myth-fact p.fact strong { color: var(--color-accent); }

/* ---------- Steps / timeline (claims) ---------- */
.steps { counter-reset: step; margin-top: 1.25rem; }
.step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.step:last-child { border-bottom: none; }
.step .num {
  counter-increment: step;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.step .num::before { content: counter(step); }
.step h3 { margin: 0.15rem 0 0.3rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--color-text-muted); }

/* ---------- Resource list ---------- */
.resource-list { display: grid; gap: 1rem; margin-top: 1.25rem; }
.resource-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.resource-item h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.resource-item p { margin: 0; color: var(--color-text-muted); font-size: 0.94rem; }
.tag {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #dcebee;
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.site-footer a { color: #cfe9ee; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer h3 { color: #fff; font-size: 0.95rem; margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: #a9c6cc;
}
.footer-bottom p { color: inherit; margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 1.2rem 0 0;
}
.breadcrumb a { color: var(--color-text-muted); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ---------- Footer link-styled button (e.g. "Take the site tour") ---------- */
.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #cfe9ee;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}
.link-button:hover { color: #fff; }

/* ---------- Guided onboarding tour ---------- */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 15, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.onboarding-overlay[hidden] { display: none; }
.onboarding-overlay.show { opacity: 1; }
.onboarding-modal {
  position: relative;
  background: var(--color-surface);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(10px);
  transition: transform 0.18s ease;
}
.onboarding-overlay.show .onboarding-modal { transform: translateY(0); }
.onboarding-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}
.onboarding-close:hover { background: var(--color-border); color: var(--color-text); }
.onboarding-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin: 0 1.6rem 0.6rem 0;
}
.onboarding-step { display: none; text-align: left; }
.onboarding-step.active { display: block; }
.onboarding-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}
.onboarding-step h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.onboarding-step p { margin: 0 0 1rem; color: var(--color-text-muted); }
.onboarding-try {
  display: inline-block;
}
.onboarding-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}
.onboarding-dots { display: flex; gap: 0.4rem; }
.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
}
.onboarding-dot.active { background: var(--color-primary); width: 20px; border-radius: 4px; }
.onboarding-buttons { display: flex; gap: 0.6rem; }
.onboarding-buttons #onboarding-back[disabled] { opacity: 0.4; cursor: default; }
@media (max-width: 520px) {
  .onboarding-modal { padding: 1.6rem 1.25rem 1.25rem; }
}

/* ---------- Shareable Literacy Moments ---------- */
.literacy-moment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.9rem;
}
.literacy-moment-status {
  font-size: 0.82rem;
  color: var(--color-accent);
  font-weight: 600;
}
