/* Employer Childcare ROI Calculator — Design System v2 (IHC 2026 brand)
   Scoped to this app; mirrors tokens from alex-core/design-system/v2/tokens.
   No external CSS deps — this is a standalone Track B Flask app. */

:root {
  --ihc-purple: #413494;
  --ihc-red: #E52823;
  --ihc-blue: #5EAEE0;
  --ihc-gold: #F9C20A;
  --ihc-charcoal: #495965;
  --ihc-green: #82C341;
  --ihc-pink: #CE509D;
  /* Derived semantic tokens (introduced 2026-05-16 per design audit) */
  --color-positive-dark: #387400; /* WCAG-AA accessible dark green for "success" text */
  --color-warm-dark: #7A5A00;
  --color-accent-dark: #8B1F1A;
  --ihc-dark: #1a1a2e;
  --ihc-bg: #fafafa;
  --ihc-surface: #ffffff;
  --ihc-border: #e5e5ea;
  --ihc-muted: #8a94a0;

  --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(26,26,46,.06);
  --shadow-md: 0 2px 8px rgba(26,26,46,.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ihc-bg);
  color: var(--ihc-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, legend, .brand, .btn, .stat .label, .stat .value, th, nav a, .tagline {
  font-family: var(--font-head);
}

h1 { font-size: 2rem; color: var(--ihc-purple); margin: 0 0 .5rem; line-height: 1.2; font-weight: 700; }
h2 { font-size: 1.35rem; color: var(--ihc-purple); margin: 1.5rem 0 .5rem; }
h3 { font-size: 1.05rem; color: var(--ihc-purple); margin: 1rem 0 .5rem; font-weight: 600; }

a { color: var(--ihc-purple); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ihc-red); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 640px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ihc-purple); color: white; padding: .5rem 1rem;
}
.skip-link:focus { left: 0; z-index: 1000; }

/* =========================================================
   Utility strip — sits above the primary nav. The childcare
   dashboard + tools are a self-contained product on a Render
   subdomain; this strip is the always-available, low-emphasis
   handle back to the IHC marketing site so users never feel
   trapped inside the app.
   ========================================================= */
.cc-utility-strip {
  background: var(--ihc-purple, #413494);
  color: rgba(255,255,255,0.85);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  line-height: 1;
}
.cc-utility-strip__inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.cc-utility-strip__home {
  color: rgba(255,255,255,0.92) !important;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cc-utility-strip__home:hover,
.cc-utility-strip__home:focus {
  color: #fff !important;
  border-bottom-color: rgba(255,255,255,0.6);
}
.cc-utility-strip__product {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  font-size: 0.7rem;
}
@media (max-width: 700px) {
  .cc-utility-strip__product { display: none; }
}

/* =========================================================
   Sticky compact nav — mirrors `.cc-nav` from
   hamilton-implementation/dashboards/childcare-action/css/app.css
   so the action layer (this app) and the data dashboard share visual language.
   ========================================================= */
.cc-nav {
  position: sticky; top: 0; z-index: 10;
  background: #fff; border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0 1.5rem;
  max-width: 100%;
  overflow: visible;
}
.cc-nav__brand {
  display: flex; flex-direction: column;
  text-decoration: none; line-height: 1.15;
  padding: .75rem 0;
  flex-shrink: 0;
}
.cc-nav__brand strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ihc-purple);
  letter-spacing: 0.01em;
}
.cc-nav__brand .cc-nav__tagline {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: .75rem;
  color: var(--ihc-charcoal);
  margin-top: 1px;
}
.cc-nav__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: nowrap; gap: 0;
  margin-left: auto;
}
.cc-nav__links li { margin: 0; padding: 0; }
.cc-nav__links a {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--ihc-charcoal);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 1.05rem 0.7rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.cc-nav__links a:hover,
.cc-nav__links a.is-active {
  color: var(--ihc-purple);
  border-color: var(--ihc-red);
}
.cc-nav__links a.cc-nav__external {
  color: var(--ihc-purple);
  font-weight: 700;
  margin-left: .25rem;
}
.cc-nav__links a.cc-nav__external::after { display: none; }

/* Hamburger (mobile only) */
.cc-nav__hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; padding: 6px;
  flex-shrink: 0; position: relative; margin-left: auto;
}
.cc-nav__hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--ihc-charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  position: absolute; left: 6px;
}
.cc-nav__hamburger span:nth-child(1) { top: 8px; }
.cc-nav__hamburger span:nth-child(2) { top: 16px; }
.cc-nav__hamburger span:nth-child(3) { top: 24px; }
.cc-nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); top: 16px; }
.cc-nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cc-nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); top: 16px; }

/* Mobile responsive */
@media (max-width: 900px) {
  .cc-nav { flex-wrap: wrap; padding: 0 1rem; }
  .cc-nav__hamburger { display: block; }
  .cc-nav__links {
    display: none; flex-direction: column; width: 100%;
    background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 0; order: 3; margin-left: 0;
  }
  .cc-nav__links.is-open { display: flex; }
  .cc-nav__links li { width: 100%; }
  .cc-nav__links a {
    display: block; width: 100%; padding: 1rem;
    font-size: 0.875rem; text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    border-left: 3px solid transparent;
  }
  .cc-nav__links a.is-active {
    border-left-color: var(--ihc-red);
    border-bottom-color: rgba(0,0,0,0.04);
  }
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--ihc-border);
  background: white;
  color: var(--ihc-charcoal);
  font-size: .9rem;
}
.site-footer .fine { font-size: .8rem; color: var(--ihc-muted); margin-top: .5rem; }

/* Hero */
.hero {
  background: linear-gradient(180deg, rgba(65,52,148,0.04), transparent);
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--ihc-border);
}
.hero .lede { font-size: 1.1rem; color: var(--ihc-charcoal); max-width: 750px; }
.hero .meta { font-size: .85rem; color: var(--ihc-muted); margin-top: 1rem; }

/* Gate page */
.gate { padding: 3rem 0; }
.gate h1 { color: var(--ihc-purple); }
.gate .lede { font-size: 1.05rem; color: var(--ihc-charcoal); max-width: 580px; }
.gate-form {
  margin-top: 1.5rem;
  background: white;
  padding: 1.75rem;
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
}
.privacy-line {
  margin-top: 1.25rem; font-size: .85rem; color: var(--ihc-muted);
}
.consent-line {
  display: flex !important;
  align-items: flex-start;
  gap: .65rem;
  background: var(--ihc-surface-muted, #F7F8F9);
  border: 1px solid var(--ihc-border);
  border-left: 3px solid var(--ihc-purple);
  padding: .9rem 1rem;
  border-radius: 4px;
  font-size: .9rem;
  line-height: 1.45;
}
.consent-line input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ihc-purple);
}
.consent-line span {
  color: var(--ihc-charcoal);
  font-family: 'Lora', Georgia, serif;
}
.consent-line strong { color: var(--ihc-purple); }
.error {
  background: #fdecea; border-left: 3px solid var(--ihc-red);
  padding: .75rem 1rem; color: var(--ihc-red); border-radius: var(--radius);
  font-size: .95rem;
}

/* Calculator section */
.calc { padding: 1.5rem 0 3rem; }
.calc form { display: grid; gap: 1.5rem; }

fieldset.card {
  background: white;
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
fieldset.card legend {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ihc-purple);
  padding: 0 .5rem;
}
.hint { color: var(--ihc-charcoal); font-size: .9rem; margin: .25rem 0 1rem; }

/* Form grid */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

label {
  display: flex; flex-direction: column;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ihc-charcoal);
  gap: .35rem;
}
.optional { color: var(--ihc-muted); font-weight: 400; font-style: italic; font-size: .8rem; }

input[type="text"], input[type="number"], input[type="email"], select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .55rem .7rem;
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  background: white;
  color: var(--ihc-dark);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--ihc-purple);
  box-shadow: 0 0 0 3px rgba(65,52,148,.15);
}

/* Strategy toggle cards */
.strat {
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  transition: border-color .15s, background .15s;
}
.strat.on { border-color: var(--ihc-purple); background: rgba(65, 52, 148, .06); box-shadow: inset 0 0 0 1px var(--ihc-purple); }
.strat .toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1rem;
  cursor: pointer;
  align-items: start;
}
.strat .toggle input[type="checkbox"] {
  grid-row: 1 / 3;
  width: 1.1rem; height: 1.1rem;
  margin-top: 3px;
  accent-color: var(--ihc-purple);
  cursor: pointer;
}
.strat .name {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ihc-dark);
  font-size: 1rem;
}
.strat .desc {
  grid-column: 2;
  color: var(--ihc-charcoal);
  font-size: .88rem;
  font-family: var(--font-body);
}
.strat .sub {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--ihc-border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (max-width: 640px) { .strat .sub { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .05s;
}
.btn:focus-visible {
  outline: 3px solid var(--ihc-purple);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--ihc-purple); color: white;
}
.btn-primary:hover { background: #352979; color: white; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
  background: white; color: var(--ihc-purple);
  border-color: var(--ihc-purple);
}
.btn-secondary:hover { background: rgba(65,52,148,.06); color: var(--ihc-purple); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }

/* Spinner */
.spinner {
  display: none;
  width: 1.2rem; height: 1.2rem;
  border: 2px solid rgba(65,52,148,.2);
  border-top-color: var(--ihc-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner.htmx-request,
.htmx-request .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Results pane */
.results-pane {
  margin-top: 2rem;
  background: white;
  border: 1px solid var(--ihc-border);
  border-top: 3px solid var(--ihc-red);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
}

.result-headline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 800px) {
  .result-headline { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  background: #fdfdfd;
}
.stat.stat-big { border-color: var(--ihc-purple); background: rgba(65,52,148,.03); }
.stat .label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ihc-charcoal);
  font-weight: 600;
}
.stat .value {
  display: block;
  margin-top: .35rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ihc-purple);
  font-variant-numeric: tabular-nums;
}
.stat .value.pos { color: var(--ihc-green); }
.stat .value.neg { color: var(--ihc-red); }

/* Cost vs benefit */
.cost-benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0 1.75rem;
}
@media (max-width: 700px) { .cost-benefit { grid-template-columns: 1fr; } }
.cost-benefit .col h3 {
  margin-top: 0; padding-bottom: .35rem;
  border-bottom: 2px solid var(--ihc-red);
}
dl.kv {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem 1rem;
}
dl.kv dt { color: var(--ihc-charcoal); }
dl.kv dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ihc-dark);
}
dl.kv dd.pos { color: var(--ihc-green); }
dl.kv dd.neg { color: var(--ihc-red); }

.pos { color: var(--ihc-green); }
.neg { color: var(--ihc-red); }

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: .5rem 0 1rem;
}
.data-table th {
  background: var(--ihc-purple);
  color: white;
  text-align: left;
  padding: .55rem .7rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-weight: 600;
}
.data-table th.num, .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td {
  padding: .55rem .7rem;
  border-bottom: 1px solid var(--ihc-border);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(94,174,224,.06); }

/* Fine print */
.fine {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ihc-border);
  font-size: .82rem;
  color: var(--ihc-charcoal);
  line-height: 1.5;
}
.fine strong { color: var(--ihc-dark); }

/* Privacy page */
.privacy-page { padding: 2.5rem 0 3rem; max-width: 720px; }
.privacy-page h1 { color: var(--ihc-purple); }
.privacy-page h2 { margin-top: 2rem; border-bottom: 2px solid var(--ihc-red); padding-bottom: .3rem; }
.privacy-page p, .privacy-page li { color: var(--ihc-charcoal); }

/* htmx transitions */
#results { transition: opacity .15s; }
.htmx-request #results { opacity: 0.5; }

/* Calculator skeleton — shown only during HTMX request */
.calc-skeleton {
  display: none;
  margin-top: 1.5rem;
}
.htmx-request .calc-skeleton { display: block; }

/* =========================================================
   COMPONENT LIBRARY v1
   ---------------------------------------------------------
   These classes are referenced by every blueprint template
   (parents, playbooks, providers, policymaker, tri-share).
   Before this block existed, those pages rendered as
   unstyled plain text. Audit ref: V4 UX Audit 2026-05-15.
   ========================================================= */

/* ---------- Stat grid (parent landing, provider hub, etc.) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.stat-card {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-left: 4px solid var(--ihc-purple);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.stat-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ihc-purple);
  margin: 0 0 .35rem;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihc-charcoal);
}

.provider-stats-wrap,
.provider-tools-wrap,
.playbook-grid-wrap,
.catalog-wrap,
.calc-wrap {
  padding: 1.5rem 0;
}
.provider-tools-wrap h2,
.playbook-grid-wrap h2 {
  margin-bottom: 1rem;
}

/* ---------- Playbook + tool card grids ---------- */
.playbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.playbook-card {
  display: flex;
  flex-direction: column;
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-top: 4px solid var(--ihc-purple);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-top-color .15s ease;
}
.playbook-card:hover,
.playbook-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--ihc-red);
}
.playbook-card:focus-visible {
  outline: 3px solid var(--ihc-purple);
  outline-offset: 3px;
}
.playbook-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}
.playbook-card .card-header h2,
.playbook-card .card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 700;
}
.playbook-card .tagline {
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ihc-charcoal);
  margin: 0 0 1rem;
  flex: 1;
}
.playbook-card .card-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem 1rem;
  margin: 0 0 1rem;
  font-size: .82rem;
}
.playbook-card .card-meta dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ihc-charcoal);
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .06em;
}
.playbook-card .card-meta dd {
  margin: 0;
  color: var(--ihc-dark);
}
.open-link {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ihc-purple);
  margin-top: auto;
}
.playbook-card:hover .open-link { color: var(--ihc-red); }

/* ---------- Pills + badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: var(--ihc-border);
  color: var(--ihc-charcoal);
  max-width: 100%;
  text-align: center;
  line-height: 1.25;
  white-space: normal;       /* allow wrap to a 2nd line instead of overflowing */
  word-break: break-word;
}
/* When the pill carries a "Complexity:" prefix label, the prefix is a separate
   inline element so it can be styled muted while the value stays full-weight. */
.pill .pill-label {
  font-weight: 600;
  opacity: .65;
  margin-right: .35em;
  letter-spacing: .04em;
}

/* Color mapping — base colors */
.pill.complexity-light,
.pill.complexity-low { background: #E8F4D9; color: var(--color-positive-dark); }
.pill.complexity-low-medium { background: #F0F4D9; color: #5A6B17; }
.pill.complexity-medium,
.pill.complexity-moderate { background: #FFF1CC; color: #7A5A00; }
.pill.complexity-heavy,
.pill.complexity-high,
.pill.complexity-complex { background: #FCDADA; color: #8B1F1A; }
.pill.complexity-very-high { background: #F4C7C7; color: #6B1410; }

/* Compound labels from STRATEGIES dict — Jinja flattens to these slugs */
.pill.complexity-low-policy-medium-tax-structuring,
.pill.complexity-low-policy---medium-tax-structuring,
.pill.complexity-low-policy-\\/-medium-tax-structuring { background: #FFF1CC; color: #7A5A00; }
.pill.complexity-high-cross-sector-coordination { background: #FCDADA; color: #8B1F1A; }

/* The card header that holds title + pill: let the pill wrap below the title
   when title is long instead of squeezing both into one row. */
.playbook-card .card-header {
  flex-wrap: wrap;
  row-gap: .4rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .55rem;
  border-radius: var(--radius);
  background: var(--ihc-border);
  color: var(--ihc-charcoal);
}
.badge-gold { background: var(--ihc-gold); color: var(--ihc-dark); }
.badge-green { background: var(--ihc-green); color: var(--ihc-dark); }
.badge-red { background: var(--ihc-red); color: #fff; }
.badge-muted { background: var(--ihc-border); color: var(--ihc-charcoal); }

/* ---------- Callouts (playbook body, important notes) ---------- */
.callout {
  background: rgba(65, 52, 148, 0.05);
  border-left: 4px solid var(--ihc-purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-line {
  background: rgba(229, 40, 35, 0.05);
  border-left: 4px solid var(--ihc-red);
}
.callout-muted {
  background: rgba(73, 89, 101, 0.04);
  border-left: 4px solid var(--ihc-charcoal);
  color: var(--ihc-charcoal);
}

/* ---------- Catalog filters (provider catalog) ---------- */
.catalog-filter-wrap {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.5rem;
}
.catalog-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .85rem;
  align-items: end;
}
.catalog-filters label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
}
.catalog-filters input,
.catalog-filters select {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .45rem .6rem;
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  background: var(--ihc-surface);
  color: var(--ihc-dark);
}
.filter-actions {
  display: flex;
  gap: .5rem;
  margin-top: .85rem;
  flex-wrap: wrap;
}
.catalog-filter { /* one-off label/control wrapper if used standalone */ }

/* ---------- Playbook detail layout (sidebar + body) ---------- */
.playbook-header {
  background: var(--ihc-surface);
  border-bottom: 1px solid var(--ihc-border);
  padding: 1.5rem 0;
}
.playbook-header .crumb {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihc-charcoal);
  margin-bottom: .5rem;
}
.playbook-header .crumb a { color: var(--ihc-charcoal); }
.playbook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--ihc-charcoal);
}
.playbook-meta strong { color: var(--ihc-dark); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
}

.playbook-body,
.prose {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ihc-dark);
}
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.prose p,
.prose li { margin: 0 0 1rem; }
.prose code {
  background: rgba(65, 52, 148, 0.06);
  padding: .15rem .35rem;
  border-radius: 3px;
  font-size: .9em;
}
.prose ul, .prose ol { padding-left: 1.5rem; }

.playbook-aside,
.aside-card {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.playbook-aside h3,
.aside-card h3 {
  margin-top: 0;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihc-charcoal);
}
.strategy-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.strategy-nav li { margin-bottom: .35rem; }
.strategy-nav a {
  display: block;
  padding: .35rem .5rem;
  text-decoration: none;
  border-radius: 3px;
  color: var(--ihc-charcoal);
  font-size: .88rem;
}
.strategy-nav a:hover,
.strategy-nav a.is-active {
  background: rgba(65, 52, 148, 0.08);
  color: var(--ihc-purple);
}

.template-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.download-row,
.template-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem 0;
  border-top: 1px solid var(--ihc-border);
}
.download-row:first-child,
.template-list li:first-child { border-top: none; }
.download-row .actions,
.template-list li .actions {
  display: flex;
  gap: .35rem;
}

.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(73, 89, 101, 0.05);
  border-left: 3px solid var(--ihc-charcoal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .85rem;
  color: var(--ihc-charcoal);
  font-style: italic;
}

/* ---------- ROI banner (deep-link from calculator → playbook) ---------- */
.roi-banner {
  background: linear-gradient(135deg, rgba(65, 52, 148, 0.08), rgba(229, 40, 35, 0.05));
  border: 1px solid rgba(65, 52, 148, 0.18);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.roi-banner strong { color: var(--ihc-purple); }

/* ---------- Calc forms in non-calculator components ---------- */
.calc-form {
  display: grid;
  gap: 1.25rem;
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.form-row label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .92rem;
}
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
}

/* ---------- Result fragments (HTMX swap targets) ---------- */
.result-error {
  background: rgba(229, 40, 35, 0.08);
  border-left: 4px solid var(--ihc-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  color: var(--ihc-red);
  font-size: .95rem;
}
.result-gap {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}
.result-gap h2,
.result-gap h3 { margin-top: 0; }

/* ---------- Letter-to-HR result (print-ready) ---------- */
.letter-to-hr {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  line-height: 1.65;
}
.letter-to-hr p { margin: 0 0 1rem; }
.letter-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--ihc-charcoal);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ihc-border);
}
.letter-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ihc-border);
  font-size: .82rem;
  color: var(--ihc-charcoal);
}
@media print {
  .cc-utility-strip, .cc-nav, .site-footer, .btn { display: none !important; }
  .letter-to-hr { border: none; box-shadow: none; padding: 0; }
}

/* ---------- Provider detail list ---------- */
.provider-detail-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: .5rem;
}
.provider-detail-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--ihc-border);
  font-size: .92rem;
}
.provider-detail-list li:last-child { border-bottom: none; }
.provider-detail-list dt,
.provider-detail-list .label {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
}
@media (max-width: 600px) {
  .provider-detail-list li { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------- Breadcrumb ---------- */
.crumb a:hover { color: var(--ihc-red); }

/* ---------- Button variants ---------- */
.btn-link {
  background: none;
  border: none;
  color: var(--ihc-purple);
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
}
.btn-link:hover { color: var(--ihc-red); }
.btn-sm {
  padding: .35rem .75rem;
  font-size: .82rem;
}

/* ---------- Data-freshness badge (V4 feature #19) ---------- */
/* Used across all tool pages so subscribers can see "Last refreshed YYYY-MM-DD"
   at a glance. Drop <span class="data-fresh-badge">Last refreshed 2026-05-15</span>
   anywhere a stat or chart is shown. */
.data-fresh-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .55rem;
  background: rgba(130, 195, 65, 0.12);
  color: var(--color-positive-dark);
  border-radius: 999px;
}
.data-fresh-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ihc-green);
}
.data-fresh-badge--stale {
  background: rgba(249, 194, 10, 0.15);
  color: #7A5A00;
}
.data-fresh-badge--stale::before { background: var(--ihc-gold); }

/* ---------- Toast notification system (V4 free-tier) ---------- */
/* Lightweight; appended to <body> via Alpine.js. */
.toast-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
  z-index: 100;
  pointer-events: none;
}
.toast {
  background: var(--ihc-dark);
  color: #fff;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: .92rem;
  max-width: 320px;
  pointer-events: auto;
  animation: toast-in .25s ease-out;
}
.toast--success { background: #2F5F0F; }
.toast--error { background: #8B1F1A; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Empty / loading skeleton states ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--ihc-border) 25%, #f0f0f3 50%, var(--ihc-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ihc-charcoal);
  background: var(--ihc-surface);
  border: 1px dashed var(--ihc-border);
  border-radius: var(--radius);
}
.empty-state h3 { color: var(--ihc-purple); margin-bottom: .5rem; }

/* ---------- Mobile responsive polish ---------- */
@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.2rem; }
  .stat-card { padding: .9rem 1rem; }
  .stat-value { font-size: 1.7rem; }
  .playbook-card { padding: 1.2rem 1.1rem; }
  .two-col { gap: 1.25rem; }
}

/* ---------- Nav icons + role badges (V4 Phase 1 polish) ---------- */
.nav-icon {
  width: 16px; height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: .35rem;
  flex-shrink: 0;
  stroke-width: 2;
}
.cc-nav__links a,
.cc-nav__links button {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.nav-lock {
  margin-left: .35rem;
  font-size: .72rem;
  opacity: 0.55;
}
.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--ihc-border);
  margin: 0 .35rem;
  padding: 0 !important;
}
.cc-nav__cmdk {
  background: transparent;
  border: 1px solid var(--ihc-border);
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  color: var(--ihc-charcoal);
  padding: .35rem .55rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: border-color .15s ease, color .15s ease;
}
.cc-nav__cmdk:hover {
  border-color: var(--ihc-purple);
  color: var(--ihc-purple);
}
.cc-nav__cmdk kbd {
  background: var(--ihc-bg);
  border: 1px solid var(--ihc-border);
  border-radius: 3px;
  padding: .05rem .35rem;
  font-family: 'Menlo', monospace;
  font-size: .68rem;
  font-weight: 500;
  color: var(--ihc-dark);
}

/* ---------- Command palette (⌘K) ---------- */
[x-cloak] { display: none !important; }

.cmdk-backdrop {
  position: fixed; inset: 0;
  background: rgba(26, 26, 46, 0.45);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.cmdk-panel {
  position: fixed;
  top: 12vh; left: 50%;
  transform: translateX(-50%);
  width: min(640px, 92vw);
  background: var(--ihc-surface);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(26, 26, 46, 0.28);
  z-index: 1000;
  overflow: hidden;
  border: 1px solid var(--ihc-border);
}
.cmdk-search {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--ihc-border);
  background: var(--ihc-bg);
}
.cmdk-search svg { width: 18px; height: 18px; color: var(--ihc-charcoal); flex-shrink: 0; }
.cmdk-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  color: var(--ihc-dark);
}
.cmdk-search input::placeholder { color: var(--ihc-muted); }
.cmdk-search kbd {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-radius: 3px;
  padding: .15rem .45rem;
  font-family: 'Menlo', monospace;
  font-size: .68rem;
  color: var(--ihc-charcoal);
}
.cmdk-results {
  list-style: none;
  padding: .35rem 0;
  margin: 0;
  max-height: 60vh;
  overflow-y: auto;
}
.cmdk-results li {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .65rem 1rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .12s ease, border-left-color .12s ease;
}
.cmdk-results li.is-selected {
  background: rgba(65, 52, 148, 0.06);
  border-left-color: var(--ihc-purple);
}
.cmdk-cat {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
}
.cmdk-title {
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--ihc-dark);
}
.cmdk-results li.is-selected .cmdk-title { color: var(--ihc-purple); font-weight: 600; }
.cmdk-hint {
  font-family: var(--font-head);
  font-size: .72rem;
  color: var(--ihc-muted);
  font-style: italic;
}
.cmdk-empty {
  padding: 2rem 1rem !important;
  text-align: center;
  color: var(--ihc-charcoal);
  font-size: .92rem;
  font-style: italic;
  grid-template-columns: 1fr !important;
  cursor: default !important;
}
.cmdk-foot {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: .55rem 1rem;
  border-top: 1px solid var(--ihc-border);
  background: var(--ihc-bg);
  font-family: var(--font-head);
  font-size: .68rem;
  color: var(--ihc-charcoal);
}
.cmdk-foot kbd {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-radius: 3px;
  padding: .05rem .35rem;
  font-family: 'Menlo', monospace;
  font-size: .65rem;
  color: var(--ihc-charcoal);
  margin: 0 .15rem;
}
@media (max-width: 700px) {
  .cmdk-results li { grid-template-columns: 1fr; gap: .15rem; }
  .cmdk-cat { font-size: .58rem; }
}

/* ---------- Driver.js tour — brand theme override (V4 feature #20) ---------- */
/* These override the default Driver.js popover skin to match IHC brand. */
.driver-popover.driver-popover-ihc {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-top: 4px solid var(--ihc-purple);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(26, 26, 46, 0.20);
  font-family: var(--font-body);
  color: var(--ihc-dark);
  padding: 1.5rem 1.5rem 1.1rem;
  max-width: 380px;
}
.driver-popover-ihc .driver-popover-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ihc-purple);
  margin: 0 0 .5rem;
  line-height: 1.25;
}
.driver-popover-ihc .driver-popover-description {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ihc-dark);
}
.driver-popover-ihc .driver-popover-description code,
.driver-popover-ihc .driver-popover-description kbd {
  background: rgba(65, 52, 148, 0.08);
  color: var(--ihc-purple);
  padding: .1rem .4rem;
  border-radius: 3px;
  font-family: 'Menlo', monospace;
  font-size: .85em;
}
.driver-popover-ihc .driver-popover-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--ihc-border);
  margin-top: 1rem;
}
.driver-popover-ihc .driver-popover-progress-text {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
}
.driver-popover-ihc button.driver-popover-prev-btn,
.driver-popover-ihc button.driver-popover-next-btn,
.driver-popover-ihc button.driver-popover-close-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 4px;
  padding: .55rem 1rem;
  background: var(--ihc-purple);
  color: #fff;
  border: none;
  text-shadow: none;
  transition: background .15s ease;
}
.driver-popover-ihc button.driver-popover-prev-btn {
  background: var(--ihc-surface);
  color: var(--ihc-charcoal);
  border: 1px solid var(--ihc-border);
}
.driver-popover-ihc button.driver-popover-prev-btn:hover {
  background: var(--ihc-bg);
}
.driver-popover-ihc button.driver-popover-next-btn:hover {
  background: var(--ihc-red);
}
.driver-popover-ihc button.driver-popover-close-btn {
  background: transparent;
  color: var(--ihc-charcoal);
  font-size: 1.2rem;
  padding: .25rem .5rem;
  border-radius: 3px;
}
.driver-popover-ihc button.driver-popover-close-btn:hover {
  background: var(--ihc-bg);
  color: var(--ihc-red);
}
.driver-popover-ihc .driver-popover-skip-link {
  display: inline-block;
  margin-top: .85rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ihc-charcoal);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.driver-popover-ihc .driver-popover-skip-link:hover {
  color: var(--ihc-red);
}
/* Spotlight ring uses brand red */
.driver-popover-arrow {
  border-color: var(--ihc-purple);
}
.driver-overlay {
  fill: rgba(26, 26, 46, 0.55) !important;
}

/* ---------- Help page ---------- */
.help-page { padding: 2rem 0 3rem; }
.help-page .faq {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  margin: .65rem 0;
  overflow: hidden;
}
.help-page .faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ihc-purple);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .12s ease;
}
.help-page .faq summary:hover { background: var(--ihc-bg); }
.help-page .faq summary::after { content: '+'; font-size: 1.3rem; color: var(--ihc-charcoal); }
.help-page .faq[open] summary::after { content: '–'; }
.help-page .faq > div { padding: 0 1.25rem 1rem; color: var(--ihc-dark); font-size: .95rem; line-height: 1.6; }
.help-page .faq > div p:last-child { margin-bottom: 0; }

/* =====================================================================
   FACES OF HAMILTON COUNTY CHILDCARE — microsegmentation feature
   ===================================================================== */

/* (A1 fix: duplicate :root brand-color block removed 2026-05-16 —
   tokens are already defined in the canonical :root at the top of this
   stylesheet. Re-declaring them here was a leak from the Faces feature
   ship + would have broken if anyone edited the top-of-file tokens. */

.faces-hero {
  background: linear-gradient(180deg, rgba(65,52,148,0.06) 0%, transparent 100%);
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--ihc-border);
}
.faces-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--ihc-purple);
  margin: 0 0 1rem;
  max-width: 22ch;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.faces-hero .lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  max-width: 64ch;
  color: var(--ihc-charcoal);
  margin: 0 0 2.5rem;
}

.faces-callout-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .faces-callout-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .faces-callout-strip { grid-template-columns: 1fr; } }

.faces-callout-stat {
  background: #fff;
  border: 1px solid var(--ihc-border);
  border-left: 4px solid var(--ihc-red);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.faces-callout-stat__value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ihc-purple);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.faces-callout-stat__label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
  margin-top: .25rem;
  line-height: 1.3;
}
.faces-callout-stat__context {
  font-size: .78rem;
  font-style: italic;
  color: var(--ihc-charcoal);
  opacity: .8;
  margin-top: .35rem;
  line-height: 1.4;
}

/* ----- Composite-profiles callout (added 2026-05-16 when Mapbox map was
   removed; reinforces that segments are aggregated demographic patterns,
   not individuals we track) ----- */
.faces-composite-callout {
  padding: 2rem 0 0;
}
.faces-composite-callout__box {
  background: var(--ihc-surface-muted, #F7F8F9);
  border-left: 4px solid var(--ihc-purple);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.faces-composite-callout__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihc-red);
  margin: 0 0 .5rem;
}
.faces-composite-callout__box p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ihc-charcoal);
}
.faces-composite-callout__box p strong {
  color: var(--ihc-dark);
}

/* ----- Cost-burden visualization ----- */
.faces-burden {
  padding: 4rem 0;
  background: var(--ihc-surface-muted, #F7F8F9);
}
.faces-burden h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 1rem;
}
.faces-burden h2 strong { color: var(--ihc-red); }
.faces-burden__lede {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 62ch;
  color: var(--ihc-charcoal);
  margin: 0 0 2.5rem;
}

.faces-burden__chart {
  background: #fff;
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.faces-burden__row {
  display: grid;
  grid-template-columns: 220px 1fr 60px;
  align-items: center;
  gap: 1.25rem;
  padding: .85rem 0;
  border-top: 1px solid var(--ihc-border);
  text-decoration: none !important;
  color: inherit !important;
  transition: background .15s ease;
}
.faces-burden__row:hover {
  background: rgba(65,52,148,.03);
  border-radius: 4px;
}
.faces-burden__row:first-child { border-top: 0; }
.faces-burden__row-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--ihc-purple);
  line-height: 1.2;
}
.faces-burden__row-neighborhood {
  font-size: .75rem;
  font-style: italic;
  color: var(--ihc-charcoal);
  margin-top: .15rem;
}
.faces-burden__row-bar {
  position: relative;
}
.faces-burden__bar-track {
  background: rgba(73, 89, 101, .07);
  border-radius: 4px;
  height: 22px;
  position: relative;
  overflow: visible;
}
.faces-burden__bar-fill {
  height: 100%;
  background: var(--c, var(--ihc-purple));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}
.faces-burden__bar-threshold {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ihc-red);
  z-index: 2;
}
.faces-burden__bar-threshold::after {
  content: "7%";
  position: absolute;
  top: -16px;
  left: -10px;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  color: var(--ihc-red);
  letter-spacing: .04em;
}
.faces-burden__row:not(:first-child) .faces-burden__bar-threshold::after { display: none; }
.faces-burden__row-pct {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ihc-purple);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.faces-burden__legend {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--ihc-charcoal);
  line-height: 1.5;
}
.faces-burden__legend-mark {
  display: inline-block;
  width: 12px;
  height: 2px;
  background: var(--ihc-red);
  vertical-align: middle;
  margin-right: .35rem;
}

@media (max-width: 720px) {
  .faces-burden__row { grid-template-columns: 1fr; gap: .5rem; }
  .faces-burden__row-pct { text-align: left; }
}

/* ----- Persona grid ----- */
.faces-grid-section {
  padding: 4rem 0;
}
.faces-grid-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 .75rem;
}
.faces-grid-section__lede {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 62ch;
  color: var(--ihc-charcoal);
  margin: 0 0 2.5rem;
}

.faces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) { .faces-grid { grid-template-columns: 1fr; } }

.faces-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none !important;
  color: inherit !important;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.faces-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--ihc-purple);
}
.faces-card[data-color="red"]::before { background: var(--ihc-red); }
.faces-card[data-color="blue"]::before { background: var(--ihc-blue); }
.faces-card[data-color="gold"]::before { background: var(--ihc-gold); }
.faces-card[data-color="green"]::before { background: var(--ihc-green); }
.faces-card[data-color="pink"]::before { background: var(--ihc-pink); }

.faces-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.faces-card__rank {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  color: var(--ihc-charcoal);
  opacity: .5;
  letter-spacing: .08em;
}

.faces-card__header {
  margin: .35rem 0 1.25rem;
}
.faces-card__name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ihc-purple);
  margin: 0 0 .3rem;
  line-height: 1.2;
}
.faces-card__neighborhood {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
  margin: 0 0 .4rem;
}
.faces-card__family {
  font-size: .9rem;
  color: var(--ihc-charcoal);
  font-style: italic;
  margin: 0;
}

.faces-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  padding: 1rem;
  background: rgba(65, 52, 148, .03);
  border-radius: var(--radius);
  margin: 0 0 1.25rem;
}
.faces-card__stat {
  text-align: center;
}
.faces-card__stat-value {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ihc-purple);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.faces-card__stat-unit {
  font-size: .7em;
  font-weight: 600;
  opacity: .65;
}
.faces-card__stat-label {
  font-family: var(--font-head);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
  margin-top: .2rem;
  line-height: 1.3;
}
.faces-card__stat--accent .faces-card__stat-value {
  color: var(--ihc-red);
  font-size: 1.3rem;
}

.faces-card__industry {
  font-size: .85rem;
  color: var(--ihc-charcoal);
  margin: 0 0 .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--ihc-border);
}
.faces-card__industry strong {
  color: var(--ihc-dark);
  font-weight: 600;
}

.faces-card__narrative {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ihc-dark);
  margin: 0 0 1.25rem;
  flex: 1;
}

.faces-card__strategy {
  background: var(--ihc-surface-muted, #F7F8F9);
  border-radius: var(--radius);
  padding: .65rem .85rem;
  margin: 0 0 1.1rem;
  font-size: .88rem;
}
.faces-card__strategy-label {
  display: block;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihc-charcoal);
  margin-bottom: .2rem;
}
.faces-card__strategy strong {
  color: var(--ihc-dark);
  font-weight: 600;
}

.faces-card__cta {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ihc-purple);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: auto;
}
.faces-card[data-color="red"] .faces-card__cta { color: var(--ihc-red); }

/* ----- Methodology callout ----- */
.faces-methodology {
  background: var(--ihc-purple);
  color: #fff;
  padding: 3.5rem 0;
}
.faces-methodology__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 880px) { .faces-methodology__grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.faces-methodology h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 .85rem;
}
.faces-methodology p {
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0 0 .85rem;
}
.faces-methodology a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  text-decoration: none;
}
.faces-methodology a:hover { border-bottom-color: var(--ihc-gold); }
.faces-methodology .fine {
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  line-height: 1.5;
  margin-top: 1rem;
}

/* ----- Mapbox map: Faces / where they live ----- */
.faces-map-section {
  padding: 3.5rem 0 4rem;
  background: var(--ihc-surface-muted, #F7F8F9);
  border-top: 1px solid var(--ihc-border);
  border-bottom: 1px solid var(--ihc-border);
}
.faces-map-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 1rem;
}
.faces-map-section__lede {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 64ch;
  color: var(--ihc-charcoal);
  margin: 0 0 1.75rem;
}

.faces-map {
  width: 100%;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ihc-border);
  box-shadow: var(--shadow-md);
  background: #eef0f3;  /* shows while tiles load */
}
@media (max-width: 720px) {
  .faces-map { height: 420px; }
}
.faces-map__fallback {
  padding: 2rem;
  text-align: center;
  color: var(--ihc-charcoal);
  font-style: italic;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faces-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  font-size: .78rem;
  color: var(--ihc-charcoal);
  align-items: center;
}
.faces-map__legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: .35rem;
  vertical-align: middle;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

/* Popup shell — overrides default Mapbox popup chrome */
.faces-map-popup-shell .mapboxgl-popup-content {
  padding: 0;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(20,16,52,.18);
  border: 1px solid var(--ihc-border);
  overflow: hidden;
}
.faces-map-popup-shell .mapboxgl-popup-close-button {
  font-size: 1.3rem;
  padding: .25rem .5rem;
  color: var(--ihc-charcoal);
  right: 4px;
  top: 4px;
}
.faces-map-popup {
  padding: 1rem 1.1rem .9rem;
  font-family: var(--font-body);
  background: #fff;
}
.faces-map-popup h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ihc-purple);
  margin: 0 0 .25rem;
  line-height: 1.2;
}
.faces-map-popup__neighborhood {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
  margin: 0 0 .3rem;
}
.faces-map-popup__family {
  font-size: .8rem;
  font-style: italic;
  color: var(--ihc-charcoal);
  margin: 0 0 .55rem;
}
.faces-map-popup__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  padding: .55rem 0;
  border-top: 1px solid var(--ihc-border);
  border-bottom: 1px solid var(--ihc-border);
  margin: 0 0 .65rem;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  color: var(--ihc-dark);
}
.faces-map-popup__stats strong {
  color: var(--ihc-purple);
  font-weight: 700;
}
.faces-map-popup__stats .above-thresh strong { color: var(--ihc-red); }
.faces-map-popup__stats .under-thresh strong { color: var(--color-positive-dark); }
.faces-map-popup__strategy {
  font-size: .82rem;
  color: var(--ihc-charcoal);
  margin: 0 0 .75rem;
  line-height: 1.4;
}
.faces-map-popup__cta {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ihc-purple);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.faces-map-popup__cta:hover { color: var(--ihc-red); }

/* =====================================================================
   PROVIDER CATALOG — 120-record filterable + paginated table
   ===================================================================== */

.catalog-filter-wrap {
  background: var(--ihc-surface-muted, #F7F8F9);
  border-top: 1px solid var(--ihc-border);
  border-bottom: 1px solid var(--ihc-border);
  padding: 1.5rem 0;
  margin: 0 0 1.5rem;
}
.catalog-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.filter-row--search input[type="search"] {
  width: 100%;
  padding: .75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  background: #fff;
}
.filter-row--search input[type="search"]:focus {
  outline: 2px solid var(--ihc-purple);
  outline-offset: 1px;
}
.filter-row--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 880px) {
  .filter-row--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .filter-row--grid { grid-template-columns: 1fr; }
}
.filter-row--grid label {
  display: block;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ihc-charcoal);
  margin: 0 0 .35rem;
}
.filter-row--grid select {
  width: 100%;
  padding: .55rem .75rem;
  font-size: .9rem;
  font-family: var(--font-body);
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.filter-row--toggles {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: .5rem;
  border-top: 1px solid var(--ihc-border);
}
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-family: var(--font-body);
  color: var(--ihc-dark);
  cursor: pointer;
}
.check-inline input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--ihc-purple);
}
.filter-summary {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: .85rem;
  color: var(--ihc-charcoal);
}
.filter-summary strong {
  color: var(--ihc-purple);
  font-weight: 700;
}

/* ----- Catalog table tweaks ----- */
.data-table--catalog th {
  white-space: nowrap;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.data-table--catalog td {
  vertical-align: top;
  font-size: .88rem;
  line-height: 1.45;
}
.data-table--catalog td .fine {
  font-size: .78rem;
  color: var(--ihc-charcoal);
  opacity: .85;
}
.data-table--catalog tbody tr:hover {
  background: rgba(65, 52, 148, .03);
}

/* ----- PTQ + closed-status pills ----- */
.pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .45rem;
  border-radius: 12px;
  background: rgba(73, 89, 101, .12);
  color: var(--ihc-charcoal);
}
.pill--ptq-hi {
  background: rgba(130, 195, 65, .18);
  color: var(--color-positive-dark);
}
.pill--ptq-mid {
  background: rgba(94, 174, 224, .18);
  color: #1E5A82;
}
.pill--warn {
  background: rgba(249, 194, 10, .22);
  color: #7A5A00;
  margin-left: .35rem;
}

/* ----- Pagination ----- */
.pagination { margin-top: 1.5rem; }
.pagination__controls {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.pagination__btn {
  display: inline-block;
  min-width: 32px;
  text-align: center;
  padding: .4rem .6rem;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ihc-purple);
  text-decoration: none;
  border: 1px solid var(--ihc-border);
  border-radius: 4px;
  background: #fff;
  transition: background .12s ease, border-color .12s ease;
}
.pagination__btn:hover {
  background: rgba(65, 52, 148, .06);
  border-color: var(--ihc-purple);
}
.pagination__btn--current,
.pagination__btn--current:hover {
  background: var(--ihc-purple);
  color: #fff;
  border-color: var(--ihc-purple);
  cursor: default;
}
.pagination__ellipsis {
  display: inline-block;
  padding: .4rem .2rem;
  color: var(--ihc-charcoal);
  font-weight: 700;
}

/* SR-only helper (if not already defined elsewhere) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----- Segment detail page ----- */
.faces-narrative {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ihc-dark);
}

/* Print stylesheet: segment detail pages print as 1-2 page handouts.
   Used at the demo when an attendee says "I want to read this on paper"
   or when forwarding via email as a PDF attachment. Strips nav, sticky
   sidebar (sidebar moves below body), the "Compare" + "Want a custom
   answer" cards (not useful in print), and ROI banner. Keeps the
   narrative, pain point, what-would-help, anchor callout, and eligibility
   map — those ARE the artifact. */
@media print {
  body { background: #fff; color: #1a1a2e; font-size: 11pt; }

  /* Strip on-screen chrome */
  .cc-utility-strip,
  .cc-nav,
  .site-footer,
  .toast-container,
  .cmdk-panel,
  .cmdk-backdrop,
  .roi-banner,
  #faces-map,
  .faces-map-section,
  .faces-burden,
  .faces-hero__scrollhint { display: none !important; }

  /* Segment detail: collapse two-col into single column, drop sticky */
  .two-col { display: block !important; }
  .playbook-aside { display: none !important; }  /* sidebar not needed in print */

  /* Tighten headers */
  .playbook-header { padding: 0 0 .5rem; border-bottom: 1px solid #999; }
  .playbook-header h1 { font-size: 18pt; margin: 0 0 .25rem; color: #000; }
  .playbook-header .lede { font-size: 11pt; margin: 0 0 .5rem; }
  .playbook-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: .35rem 0; border-top: 1px solid #ccc; }
  .playbook-meta dt { font-size: 8pt; text-transform: uppercase; color: #555; }
  .playbook-meta dd { font-size: 10pt; font-weight: 600; }

  /* Prose */
  .prose h2 { font-size: 13pt; margin: .75rem 0 .35rem; border-bottom: 1px solid #ccc; color: #000; }
  .prose h3 { font-size: 11pt; margin: .55rem 0 .25rem; }
  .prose p, .prose li { font-size: 10.5pt; line-height: 1.5; }

  /* Eligibility map: keep crisp, force every row visible (no truncation) */
  .data-table { font-size: 9.5pt; page-break-inside: avoid; }
  .data-table th { background: #eee !important; -webkit-print-color-adjust: exact; }

  /* Callouts: subtle gray border instead of color tints */
  .callout { background: #f8f8f8 !important; border-left: 3px solid #555 !important; padding: .5rem .75rem; margin: .5rem 0; }
  .callout p { font-size: 10pt; }

  /* Faces persona cards: use as printable handout if person opens /faces directly */
  .faces-card { page-break-inside: avoid; box-shadow: none !important; border: 1px solid #ccc !important; }

  /* Footer attribution always prints */
  .faces-methodology { background: #f8f8f8 !important; color: #1a1a2e !important; padding: 1rem 0 .5rem; -webkit-print-color-adjust: exact; }
  .faces-methodology h3 { color: #000 !important; font-size: 11pt; }
  .faces-methodology p, .faces-methodology .fine { color: #333 !important; font-size: 9pt; }

  /* Page break hints */
  .playbook-body > .wrap > article { page-break-inside: auto; }
  h2, h3 { page-break-after: avoid; }

  /* Print URL after every <a> so paper readers can type the link */
  .prose a[href]:after,
  .playbook-meta a[href]:after { content: " (" attr(href) ")"; font-size: .85em; color: #777; }
  .prose a[href^="/"]:after { content: " (childcare-roi.onrender.com" attr(href) ")"; }
  .prose a[href^="#"]:after { content: ""; }  /* in-page anchors don't need URL */
}

/* =====================================================================
   AUDIENCE LANDING — /employers (and pattern for future audience tabs)
   ===================================================================== */
.audience-hero {
  background: linear-gradient(180deg, rgba(65,52,148,0.04) 0%, transparent 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--ihc-border);
}
.audience-hero--employer { /* hook for future per-audience hue */ }
.audience-eyebrow {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ihc-red);
  margin: 0 0 .75rem;
}
.audience-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--ihc-red);
  vertical-align: middle;
  margin-right: .6rem;
}
.audience-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--ihc-purple);
  margin: 0 0 1rem;
  max-width: 28ch;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.audience-hero .lede {
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 60ch;
  color: var(--ihc-charcoal);
  margin: 0 0 .9rem;
}

.audience-tools {
  padding: 2.5rem 0 1rem;
}
.audience-tools__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 780px) {
  .audience-tools__grid { grid-template-columns: 1fr; }
}

.audience-tool-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ihc-border);
  border-top: 4px solid var(--ihc-purple);
  border-radius: var(--radius);
  padding: 1.85rem;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.audience-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--ihc-red);
}
.audience-tool-card:focus-visible {
  outline: 3px solid var(--ihc-purple);
  outline-offset: 3px;
}
.audience-tool-card--primary { border-top-color: var(--ihc-red);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, rgba(229, 40, 35, 0.025), transparent 30%);
}
.audience-tool-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(65,52,148,.10), rgba(229,40,35,.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--ihc-purple);
}
.audience-tool-card--primary .audience-tool-card__icon {
  background: linear-gradient(135deg, rgba(229,40,35,.10), rgba(229,40,35,.04));
  color: var(--ihc-red);
}
.audience-tool-card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}
.audience-tool-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 .6rem;
  color: var(--ihc-purple);
}
.audience-tool-card p {
  font-family: var(--font-body);
  font-size: .98rem;
  line-height: 1.55;
  color: var(--ihc-charcoal);
  margin: 0 0 1.1rem;
}
.audience-tool-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.audience-tool-card__bullets li {
  font-size: .9rem;
  color: var(--ihc-dark);
  padding-left: 1.2rem;
  position: relative;
}
.audience-tool-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ihc-purple);
}
.audience-tool-card__cta {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--ihc-purple);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: auto;
}
.audience-tool-card--primary .audience-tool-card__cta { color: var(--ihc-red); }

.audience-context {
  background: var(--ihc-surface-muted, #F7F8F9);
  padding: 3rem 0;
  margin: 2.5rem 0;
}
.audience-context h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}
.audience-context__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 880px) {
  .audience-context__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .audience-context__grid { grid-template-columns: 1fr; }
}
.audience-stat {
  background: #fff;
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.audience-stat__value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ihc-purple);
  margin: 0 0 .25rem;
  line-height: 1.1;
}
.audience-stat__label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
  margin: 0 0 .35rem;
  line-height: 1.3;
}
.audience-stat__source {
  font-size: .72rem;
  font-style: italic;
  color: var(--ihc-charcoal);
  opacity: .8;
  margin: 0;
}

.audience-data {
  padding: 0 1.25rem 3rem;
}
.audience-data__list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem 2rem;
  font-size: 1rem;
}
@media (max-width: 700px) {
  .audience-data__list { grid-template-columns: 1fr; }
}
.audience-data__list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ihc-dark);
}
.audience-data__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ihc-purple);
}

/* =====================================================================
   PLAYBOOK DETAIL POLISH — Backup Care / Finding Care / all .prose pages
   ===================================================================== */

/* Wider canvas for two-col reading layout. The default .wrap is 1100px
   which leaves ~780px for body text after the 280px sidebar + gap. Too
   narrow for a long-form playbook with embedded tables. Bump to 1240px
   on playbook detail pages so the body breathes. */
.playbook-body .wrap.two-col,
.playbook-body .two-col {
  max-width: 1240px;
}

/* Sidebar gets a softer shell, less crammed. The previous .aside-card
   stacking gave each card its own border + shadow + padding, which
   collectively read as visual clutter. Group them inside a single
   .playbook-aside container that holds all cards with consistent spacing. */
.playbook-aside {
  background: transparent;       /* override the .aside-card defaults */
  border: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;                   /* clear sticky cc-nav (~3.5rem) + utility strip */
  align-self: start;
}
.playbook-aside .aside-card {
  background: #fff;
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.playbook-aside .aside-card h3 {
  margin-top: 0;
  margin-bottom: .8rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihc-charcoal);
  font-weight: 700;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--ihc-border);
}
.playbook-aside .aside-card .hint {
  font-size: .8rem;
  color: var(--ihc-charcoal);
  margin: 0 0 .8rem;
  font-style: italic;
}

/* Improve the .docx / PDF / .md download buttons rhythm inside the aside */
.playbook-aside .template-list { margin: 0; padding: 0; }
.playbook-aside .template-list li {
  padding: .8rem 0;
  border-top: 1px solid var(--ihc-border);
  display: block; /* override flex from inherited .download-row */
}
.playbook-aside .template-list li:first-child {
  padding-top: 0;
  border-top: 0;
}
.playbook-aside .template-list li strong {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: .15rem;
  color: var(--ihc-dark);
  line-height: 1.3;
}
.playbook-aside .template-list li p {
  font-size: .8rem;
  margin: 0 0 .55rem;
  color: var(--ihc-charcoal);
  line-height: 1.4;
}
.playbook-aside .template-list .download-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: 0;
  border: 0;
  flex-wrap: wrap;
}
.playbook-aside .btn-sm {
  font-size: .72rem;
  padding: .25rem .6rem;
  line-height: 1.3;
}
.playbook-aside .btn-link {
  font-size: .78rem;
  color: var(--ihc-charcoal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tighten the strategy-nav and related-tools cards — single line entries */
.playbook-aside .strategy-nav { margin: 0; }
.playbook-aside .strategy-nav a {
  font-size: .88rem;
  padding: .4rem .55rem;
  border-radius: 4px;
  display: block;
  color: var(--ihc-dark);
  text-decoration: none;
}
.playbook-aside .strategy-nav a:hover {
  background: rgba(65, 52, 148, .06);
  color: var(--ihc-purple);
}

/* Stack on mobile — drop sticky positioning */
@media (max-width: 880px) {
  .playbook-aside {
    position: static;
  }
}

/* Better playbook header rhythm */
.playbook-header {
  padding: 2rem 0 1.5rem;
}
.playbook-header h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 .5rem;
}
.playbook-header .lede {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ihc-charcoal);
  max-width: 56ch;
  margin: 0 0 1rem;
}
.playbook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ihc-border);
}
.playbook-meta > div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.playbook-meta dt {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihc-charcoal);
}
.playbook-meta dd {
  margin: 0;
  font-size: .95rem;
  color: var(--ihc-dark);
  font-weight: 600;
}

/* Prose adjustments — better long-form reading rhythm */
.prose { font-size: 1.02rem; }
.prose h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 .75rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--ihc-border);
  color: var(--ihc-purple);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 .55rem;
  color: var(--ihc-purple);
}
.prose p, .prose li {
  margin: 0 0 1rem;
  line-height: 1.7;
}
.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ihc-dark); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .94rem;
}
.prose th {
  background: var(--ihc-surface-muted, #F7F8F9);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ihc-charcoal);
  text-align: left;
  padding: .65rem .8rem;
  border-bottom: 2px solid var(--ihc-border);
}
.prose td {
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--ihc-border);
  vertical-align: top;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--ihc-border);
  margin: 2rem 0;
}

/* =====================================================================
   POLICYMAKER LANDING + DASHBOARD GRID
   ===================================================================== */
.policymaker-gate {
  padding: 2rem 1.25rem 3rem;
}
.policymaker-gate h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.policymaker-gate__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem;
  max-width: 540px;
  margin: 0 0 1rem;
}
.policymaker-gate__form label {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ihc-charcoal);
}
.policymaker-gate__form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .55rem .75rem;
  border: 1px solid var(--ihc-border);
  border-radius: var(--radius);
  background: #fff;
}
.policymaker-gate__form input:focus {
  outline: 3px solid rgba(65,52,148,.25);
  outline-offset: 1px;
  border-color: var(--ihc-purple);
}

.policymaker-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.policymaker-dash-grid__card {
  background: #fff;
  border: 1px solid var(--ihc-border);
  border-top: 4px solid var(--ihc-purple);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .15s ease, box-shadow .15s ease, border-top-color .15s ease;
}
.policymaker-dash-grid__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.policymaker-dash-grid__card--linked:hover {
  border-top-color: var(--ihc-red);
}
.policymaker-dash-grid__card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ihc-purple);
  line-height: 1.25;
}
.policymaker-dash-grid__card p {
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ihc-charcoal);
  margin: 0;
  flex: 1;
}
.policymaker-dash-grid__card .audience-tool-card__cta {
  margin-top: .5rem;
  font-size: .8rem;
}

/* Aliases — BEM-style stat classes used in policymaker dashboards.
   Map them to the existing .stat-card / .stat-value / .stat-label so we
   don't break existing pages. */
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .stat-grid--3, .stat-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stat-grid--3, .stat-grid--4 { grid-template-columns: 1fr; }
}
.stat {
  background: var(--ihc-surface);
  border: 1px solid var(--ihc-border);
  border-left: 4px solid var(--ihc-purple);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.stat__value {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ihc-purple);
  margin: 0 0 .35rem;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihc-charcoal);
  margin-bottom: .25rem;
  line-height: 1.3;
}
.stat__source {
  font-size: .72rem;
  color: var(--ihc-charcoal);
  opacity: .8;
  font-style: italic;
}

/* ROI banner that appears above playbook body when user came from calculator */
.roi-banner {
  background: linear-gradient(180deg, rgba(249,194,10,.10), rgba(249,194,10,.04));
  border-top: 1px solid var(--ihc-border);
  border-bottom: 1px solid var(--ihc-border);
  padding: 1.1rem 0;
  font-family: var(--font-body);
}
.roi-banner p {
  margin: 0;
  font-size: .95rem;
  color: var(--ihc-dark);
}
.roi-banner strong { color: var(--ihc-purple); }

