/* ============================================
   Nurses, Unplugged — design system
   ============================================ */

:root {
  --teal-900: #0b3d3a;
  --teal-700: #0f6f68;
  --teal-600: #128077;
  --teal-500: #16998e;
  --teal-100: #e3f3f1;
  --navy-900: #0b2036;
  --ink: #16262c;
  --ink-soft: #4a5c62;
  --paper: #f7faf9;
  --paper-raised: #ffffff;
  --line: #dbe6e4;
  --coral: #e0674a;
  --coral-dark: #c14f36;
  --gold: #d9a441;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(11, 32, 54, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 32, 54, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 32, 54, 0.16);

  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-w: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal-100: #12302d;
    --paper: #0d1a1d;
    --paper-raised: #142a2d;
    --line: #234240;
    --ink: #eaf2f1;
    --ink-soft: #a9bdbc;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.22;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

@media (prefers-color-scheme: dark) {
  h1, h2, h3, h4 { color: var(--ink); }
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; color: var(--ink); }
a { color: var(--teal-700); }
@media (prefers-color-scheme: dark) { a { color: #5fd4c6; } }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar (campaign ribbon) ---------- */
.topbar {
  background: var(--navy-900);
  color: #dce8e6;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: #cdeae5; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-links { display: flex; gap: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy-900);
}
@media (prefers-color-scheme: dark) { .brand { color: var(--ink); } }
.brand svg { flex: none; }
.brand-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--teal-100); color: var(--teal-700); }
.main-nav a[aria-current="page"] {
  color: var(--teal-700);
  background: var(--teal-100);
}

/* ---------- Nav dropdowns ---------- */
.has-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav-dropdown-toggle:hover { background: var(--teal-100); color: var(--teal-700); }
.nav-dropdown-toggle svg { transition: transform 0.15s ease; }
.has-dropdown.open .nav-dropdown-toggle svg,
.has-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 60;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown.open .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--teal-100); color: var(--teal-700); }
.nav-dropdown a[aria-current="page"] { background: var(--teal-100); color: var(--teal-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
.btn-coral:hover { background: var(--coral-dark); }
.btn-outline { border-color: var(--paper-raised); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--teal-900); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--teal-900) 0%, var(--teal-700) 55%, var(--teal-500) 100%);
  color: #eafaf7;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.14), transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(224,103,74,0.25), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: #fff; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #bfe9e2;
  margin-bottom: 1rem;
}
.hero p.lede { font-size: 1.15rem; color: #dff2ef; max-width: 46ch; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.75rem; }

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.hero-card h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;}
.hero-stat { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.hero-stat:last-child { border-bottom: none; }
.hero-stat .num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; }
.hero-stat .label { font-size: 0.85rem; color: #cfe9e4; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--teal-100);
  border-bottom: 1px solid var(--line);
}
.page-header .container { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.page-header .eyebrow { color: var(--teal-700); }
.page-header p.lede { color: var(--ink-soft); max-width: 62ch; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.section-tight { padding: 2rem 0; }
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 68ch; margin-bottom: 2.25rem; }
.section-head .kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-600);
  margin-bottom: 0.5rem;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
a.card { display: block; text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease; }
a.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.6rem; }
.card .icon-wrap {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--teal-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-700);
  margin-bottom: 1rem;
}
.card p:last-child { margin-bottom: 0; }
.card p, .card li { color: var(--ink-soft); font-size: 0.96rem; }

.tab-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.tab-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--teal-500); }
.tab-card .icon-wrap { width: 48px; height: 48px; border-radius: 14px; }
.tab-card h3 { color: var(--navy-900); }
@media (prefers-color-scheme: dark) { .tab-card h3 { color: var(--ink); } }
.tab-card .go { color: var(--teal-700); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.75rem; }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat-block {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
}
.stat-block .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--teal-700); display: block; }
.stat-block .desc { color: var(--ink-soft); font-size: 0.9rem; }
.stat-source { font-size: 0.78rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Pull quote / evidence callouts ---------- */
blockquote.evidence {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--teal-100);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--navy-900);
}
@media (prefers-color-scheme: dark) { blockquote.evidence { color: var(--ink); } }
blockquote.evidence cite { display: block; margin-top: 0.6rem; font-family: var(--font-body); font-size: 0.82rem; font-style: normal; color: var(--ink-soft); }

/* ---------- Prose blocks (issue / learnings pages) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Timeline (Kotter / change model) ---------- */
.timeline { display: grid; gap: 1rem; counter-reset: step; }
.timeline-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}
.timeline-step .bullet {
  counter-increment: step;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  position: relative;
}
.timeline-step .bullet::before { content: counter(step); }
.timeline-step:not(:last-child) .bullet::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 50%;
  width: 2px;
  height: calc(100% + 1rem - 44px + 1rem);
  background: var(--line);
  transform: translateX(-50%);
}
.timeline-step .body { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem 1.3rem; }

/* ---------- Platform cards ---------- */
.platform-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.platform-card:hover { box-shadow: var(--shadow-md); }
.platform-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.platform-icon.tiktok { background: #101010; }
.platform-icon.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.platform-icon.substack { background: var(--coral); }
.platform-icon.linktree { background: var(--teal-700); }
.platform-card h3 { margin-bottom: 0.15rem; font-size: 1.05rem; }
.platform-card .handle { color: var(--teal-700); font-size: 0.85rem; font-weight: 600; }
.platform-card p { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Hashtag pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  background: var(--teal-100);
  color: var(--teal-700);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Table ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--navy-900); font-family: var(--font-head); }
@media (prefers-color-scheme: dark) { .data-table th { color: var(--ink); } }

/* ---------- Sources: filter + hover-preview blob cloud ---------- */
.ref-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.ref-filter button {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.ref-filter button[aria-pressed="true"] { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

.source-cloud { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.source-item { position: relative; }

.source-blob {
  font: inherit;
  border: 1px solid transparent;
  background: var(--teal-100);
  color: var(--teal-700);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.source-blob:hover,
.source-blob:focus-visible,
.source-item.active .source-blob {
  background: var(--teal-700);
  color: #fff;
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.source-preview {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  width: 300px;
  max-width: min(300px, 82vw);
  transform: translate(calc(-50% + var(--dx, 0px)), 6px);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
  text-align: left;
}
.source-preview h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy-900);
  margin: 0 0 0.55rem;
  line-height: 1.35;
}
@media (prefers-color-scheme: dark) { .source-preview h4 { color: var(--ink); } }
.source-preview .cite { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.source-preview .read-link { font-size: 0.82rem; font-weight: 700; color: var(--teal-700); text-decoration: none; }
.source-preview .read-link:hover { text-decoration: underline; }

.source-item:hover .source-preview,
.source-item:focus-within .source-preview,
.source-item.active .source-preview {
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-50% + var(--dx, 0px)), 0);
  pointer-events: auto;
}

@media (max-width: 680px) {
  .source-preview {
    position: fixed;
    left: 50%;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -45%) scale(0.98);
    width: min(320px, 88vw);
  }
  .source-item:hover .source-preview,
  .source-item:focus-within .source-preview,
  .source-item.active .source-preview {
    transform: translate(-50%, -50%) scale(1);
  }
  .source-item.active::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(4, 20, 22, 0.55);
    z-index: 25;
  }
}

/* ---------- Inline source links (used instead of dry in-text citations) ---------- */
.src-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.src-link:hover { text-decoration-style: solid; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: #eaf2f1;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-band p { color: #bcd4d1; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #b8cbc8;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr 0.8fr 0.8fr; gap: 1.75rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer a { color: #b8cbc8; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; color: #8fa9a6; }

/* ---------- Self-check quiz ---------- */
.quiz-list { display: flex; flex-direction: column; gap: 1.5rem; }
.quiz-item { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.4rem 1.5rem; }
.quiz-item .q-text { font-family: var(--font-head); font-size: 1.02rem; color: var(--navy-900); margin-bottom: 1rem; }
@media (prefers-color-scheme: dark) { .quiz-item .q-text { color: var(--ink); } }
.quiz-scale { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.quiz-option { flex: 1 1 110px; }
.quiz-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz-option label {
  display: block;
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.quiz-option label:hover { border-color: var(--teal-500); }
.quiz-option input:checked + label { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.quiz-option input:focus-visible + label { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.quiz-result { display: none; }
.quiz-result.show { display: block; }

/* ---------- Flashcards ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.flip-card { perspective: 1000px; height: 220px; cursor: pointer; }
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.flip-card-front { background: var(--teal-700); color: #fff; }
.flip-card-front h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.flip-card-front span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #bfe9e2; margin-top: 0.5rem; }
.flip-card-back { background: var(--paper-raised); transform: rotateY(180deg); overflow-y: auto; }
.flip-card-back p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Status badges (staffing map, policy tracker) ---------- */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.status-mandated { background: #d7f0e3; color: #0b6e3e; }
.status-progress { background: #fbe8c6; color: #8a5a10; }
.status-none { background: #fbdcd4; color: #9c3a24; }
.status-federal { background: var(--teal-100); color: var(--teal-700); }
@media (prefers-color-scheme: dark) {
  .status-mandated { background: #103322; color: #6fe0a8; }
  .status-progress { background: #3a2c10; color: #f0c169; }
  .status-none { background: #3a1c16; color: #f2a58f; }
}
.region-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.region-filter button {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink-soft);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.region-filter button[aria-pressed="true"] { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

/* ---------- Dashboard metric meters ---------- */
.metric-block { margin-bottom: 1.75rem; }
.metric-block:last-child { margin-bottom: 0; }
.metric-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.metric-label span { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.metric-label strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--teal-700); }
.meter { background: var(--teal-100); border-radius: 999px; height: 12px; overflow: hidden; }
.meter-fill { background: var(--teal-700); height: 100%; border-radius: 999px; }
.meter-fill.coral { background: var(--coral); }

/* ---------- Letter templates ---------- */
.template-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.template-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
  margin: 1rem 0;
  max-height: 340px;
  overflow-y: auto;
}
.copy-btn {
  border: 1px solid var(--teal-700);
  background: none;
  color: var(--teal-700);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.copy-btn:hover { background: var(--teal-100); }
.copy-btn.copied { background: var(--teal-700); color: #fff; }

/* ---------- Rep-finder links ---------- */
.rep-link-row { display: flex; flex-direction: column; gap: 0.75rem; }

/* ---------- Interactive region map ---------- */
.map-layout { display: grid; grid-template-columns: 2.3fr 1fr; gap: 2rem; align-items: start; }
.map-wrap { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-sm); }
.map-object { width: 100%; height: auto; display: block; }
.map-detail-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  min-height: 240px;
}
.map-detail-panel h3 { margin-bottom: 0.6rem; }
.map-detail-panel p { color: var(--ink-soft); font-size: 0.92rem; }
.map-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; font-size: 0.85rem; color: var(--ink-soft); }
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-detail-panel { position: static; min-height: 0; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flow > * + * { margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; padding: 0.75rem 1.5rem 1.25rem; }
  .main-nav a { display: block; padding: 0.7rem 0.5rem; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 0.7rem 0.5rem; }
  .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--teal-100);
    margin: 0.25rem 0 0.4rem;
  }
  .has-dropdown.open .nav-dropdown { display: block; }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .topbar-links { gap: 0.75rem; }
}
