/* =========================================================================
   Homeschool Liberty — styles.css
   Warm, empowering EdTech aesthetic with a warm-patriotic accent layer.
   We KEEP the cream/sand warm base, but the PRIMARY accent is now navy,
   with gold + barn-red (and the existing terracotta) used sparingly.
   Tasteful and trustworthy — never flag-spammy.
   ========================================================================= */

:root {
  /* ===== Direction B — Bold Optimist (light app skin; matches the homepage light bands) ===== */
  /* Warm neutrals */
  --cream: #FFF8EE;      /* warm canvas ground */
  --paper: #FBF9F5;      /* card surface */
  --sand: #F3ECDD;
  --sand-deep: #E4D9C6;
  --ink: #1A1622;        /* aubergine-tinted near-black */
  --ink-soft: #655c72;
  --ink-faint: #9a92a4;

  /* ---- PRIMARY = aubergine (the brand's dark anchor) ---- */
  --navy: #241d3a;
  --navy-deep: #16112b;
  --navy-soft: #ece7f4;     /* aubergine tint — chips / active nav / focus ring */
  --navy-tint: #f5f2fa;

  /* coral — energetic secondary (was barn red) */
  --barn: #EF6A4B;
  --barn-deep: #d1532f;
  --barn-soft: #fbe6df;

  /* gold — the brand accent */
  --gold: #F6A825;
  --gold-deep: #B5772A;      /* WCAG-safe gold for small text */
  --gold-soft: #fdf0d6;

  /* teal — positive / compliance-good */
  --sage: #1FB6A6;
  --sage-deep: #127e72;
  --sage-soft: #dbf3ef;
  /* coral reused for "terra" categorical slot */
  --terra: #EF6A4B;
  --terra-deep: #c8482c;
  --terra-soft: #fbe6df;
  /* periwinkle + violet (from the hero-glow family) for categorical variety */
  --sky: #6a7fd0;
  --sky-soft: #e8ecfb;
  --plum: #7a4bd0;
  --plum-soft: #efe7fa;

  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(26, 22, 34, 0.07), 0 1px 2px rgba(26, 22, 34, 0.05);
  --shadow-md: 0 4px 16px rgba(26, 22, 34, 0.09), 0 2px 6px rgba(26, 22, 34, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 22, 34, 0.14), 0 4px 12px rgba(26, 22, 34, 0.07);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: none;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--navy); }

.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row.between { justify-content: space-between; align-items: center; }
.row.center-v { align-items: center; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }
.btn-terra { background: var(--terra); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-terra:hover { background: var(--terra-deep); box-shadow: var(--shadow-md); }
/* barn-red call-to-action — used sparingly for the playful "kid" / start actions */
.btn-barn { background: var(--barn); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-barn:hover { background: var(--barn-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--sand); }
.btn-soft { background: var(--navy-soft); color: var(--navy); }
.btn-soft:hover { background: #d8dfee; }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  border: 1px solid rgba(236, 224, 205, 0.6);
}
.card-tight { padding: 20px; border-radius: var(--radius); }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Pills / tags / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sand); color: var(--ink-soft);
  border-radius: var(--radius-pill);
  padding: 5px 13px; font-size: .8rem; font-weight: 700;
}
.pill-sage { background: var(--sage-soft); color: var(--sage-deep); }
.pill-terra { background: var(--terra-soft); color: var(--terra-deep); }
.pill-sky { background: var(--sky-soft); color: #3f6c91; }
.pill-gold { background: var(--gold-soft); color: var(--gold-deep); }
.pill-plum { background: var(--plum-soft); color: #6f5083; }
.pill-navy { background: var(--navy-soft); color: var(--navy); }
.pill-barn { background: var(--barn-soft); color: var(--barn-deep); }

.badge-spots { font-weight: 800; }
.badge-spots.open { color: var(--sage-deep); }
.badge-spots.low { color: var(--terra-deep); }
.badge-spots.full { color: var(--ink-faint); }

/* ---------- Forms ---------- */
label.field { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink-soft); }
input[type=text], input[type=date], input[type=number], input[type=email], input[type=tel], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid var(--sand-deep); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); transition: border .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
textarea { resize: vertical; min-height: 90px; }

/* ---------- Top nav (app shell) ---------- */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(236, 224, 205, 0.7);
}
.appbar-inner { display: flex; align-items: center; gap: 18px; padding: 12px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; cursor: pointer; color: var(--navy); }
.brand .brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-text .tag { font-size: .68rem; font-style: italic; font-weight: 600; color: var(--barn); font-family: var(--font-display); margin-top: 1px; }
.brand .leaf { font-size: 1.4rem; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; flex-wrap: wrap; }
.nav-link {
  border: none; background: none; font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  color: var(--ink-soft); padding: 8px 14px; border-radius: var(--radius-pill); cursor: pointer; transition: all .12s;
}
.nav-link:hover { background: var(--sand); color: var(--ink); }
.nav-link.active { background: var(--navy-soft); color: var(--navy); }
.profile-chip {
  display: flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--sand-deep);
  border-radius: var(--radius-pill); padding: 5px 14px 5px 6px; cursor: pointer; font-weight: 700; font-size: .9rem;
}
.profile-chip:hover { border-color: var(--navy); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--white); font-size: .95rem; }

/* ---- Global Message Center (bell) ---- */
.message-bell-wrap { position: relative; }
.icon-btn {
  border: 1.5px solid var(--sand-deep); background: var(--white); border-radius: 50%;
  width: 38px; height: 38px; font-size: 1.05rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: border-color .12s;
}
.icon-btn:hover { border-color: var(--navy); }
.message-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-width: 84vw;
  background: var(--white); border: 1.5px solid var(--sand-deep); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.14); z-index: 60; overflow: hidden;
}
.message-panel-head { font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--sand); font-size: .92rem; }
.message-panel-empty { padding: 16px 14px; color: var(--ink-soft); font-size: .85rem; line-height: 1.5; }

/* ---- Global "I have an idea" capture ---- */
.idea-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 54px; height: 54px;
  border-radius: 50%; border: none; background: var(--gold); color: var(--navy);
  font-size: 1.5rem; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center; transition: transform .12s;
}
.idea-fab:hover { transform: scale(1.06); }
.idea-modal-body { text-align: left; }
.idea-textarea {
  width: 100%; border: 1.5px solid var(--sand-deep); border-radius: var(--radius); padding: 10px 12px;
  font-family: var(--font-body); font-size: .95rem; resize: vertical; margin-bottom: 8px;
}
.idea-mic { margin-bottom: 6px; }
.idea-status { min-height: 1.2em; }

@media (max-width: 720px) {
  .nav-links { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .appbar-inner { flex-wrap: wrap; }
  .idea-fab { right: 14px; bottom: 14px; width: 48px; height: 48px; font-size: 1.3rem; }
}

/* ---------- Avatars colors ---------- */
.av-navy { background: var(--navy); }
.av-sage { background: var(--sage); }
.av-terra { background: var(--terra); }
.av-sky { background: var(--sky); }
.av-gold { background: var(--gold); }
.av-plum { background: var(--plum); }

/* ---------- Page padding ---------- */
.page { padding: 40px 0 80px; }
.page-head { margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }

/* ============================ LANDING ============================ */
.landing {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 80% -10%, var(--navy-soft) 0%, transparent 55%),
    radial-gradient(900px 500px at 0% 110%, var(--gold-soft) 0%, transparent 50%),
    var(--cream);
  display: flex; flex-direction: column;
}
.landing-hero { flex: 1; display: flex; align-items: center; padding: 56px 24px; }
.landing-hero-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; width: 100%; }
@media (max-width: 900px) { .landing-hero-inner { grid-template-columns: 1fr; gap: 32px; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--white); box-shadow: var(--shadow-sm); border-radius: var(--radius-pill); padding: 7px 16px; font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 22px; }
.hero h1 { margin-bottom: .3em; }
.hero h1 .accent { color: var(--gold-deep); }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 28px; }
/* brand lockup on the landing screen */
.brand-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand-lockup .brand-mark { width: 56px; height: 56px; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(36,59,99,.22)); }
.brand-lockup .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); line-height: 1.05; }
.brand-lockup .brand-tag { font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--barn); }
.affirm-banner {
  background: var(--white); border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--gold); font-family: var(--font-body); font-style: italic; font-size: 1.05rem; color: var(--ink); margin-top: 28px;
}

/* role chooser */
.role-card-wrap { display: grid; gap: 18px; }
.role-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md);
  border: 2px solid transparent; cursor: pointer; transition: all .15s ease; text-align: left;
}
.role-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.role-card .role-emoji { font-size: 2.4rem; }
.role-card h3 { margin: 8px 0 4px; }

/* kid profile pick grid */
.kidpick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 16px; }
.kidpick {
  background: var(--paper); border-radius: var(--radius-lg); padding: 22px 16px; text-align: center;
  box-shadow: var(--shadow-sm); border: 2px solid transparent; cursor: pointer; transition: all .15s;
}
.kidpick:hover { border-color: var(--terra); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kidpick .big-av { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: var(--white); }

/* ============================ DASHBOARD ============================ */
.kid-row-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
@media (max-width: 720px) { .kid-row-card { grid-template-columns: 1fr; text-align: center; } }
.glance-bar { height: 9px; border-radius: var(--radius-pill); background: var(--sand); overflow: hidden; margin-top: 6px; }
.glance-bar > span { display: block; height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--gold), var(--navy)); }
.trait-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* learning map */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; }
.map-node { border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.map-node h4 { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.map-node ul { margin: 0; padding-left: 1.1em; }
.map-node li { margin-bottom: 3px; }
.mn-interests { background: var(--terra-soft); }
.mn-style { background: var(--sage-soft); }
.mn-energy { background: var(--gold-soft); }
.mn-spark { background: var(--sky-soft); }
.mn-confidence { background: var(--plum-soft); }
.mn-attention { background: var(--sand); }

/* content curation toggles */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--sand); }
.toggle-row:last-child { border-bottom: none; }
.switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--sand-deep); border-radius: var(--radius-pill); transition: .2s; cursor: pointer; }
.slider:before { content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--navy); }
.switch input:checked + .slider:before { transform: translateX(22px); }

/* ============================ INTERVIEW ============================ */
.interview-stage {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 90% 0%, var(--sky-soft) 0%, transparent 55%),
    radial-gradient(800px 500px at 0% 100%, var(--gold-soft) 0%, transparent 50%),
    var(--cream);
  padding: 32px 24px 64px;
}
.interview-card {
  max-width: 680px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 40px; animation: rise .35s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.progress-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.progress-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--sand-deep); transition: .2s; }
.progress-dots span.done { background: var(--navy); }
.progress-dots span.current { background: var(--gold); transform: scale(1.4); }
.q-mascot { font-size: 2.6rem; text-align: center; margin-bottom: 8px; }
.q-prompt { font-family: var(--font-display); font-size: 1.6rem; text-align: center; margin-bottom: 6px; }
.q-help { text-align: center; color: var(--ink-soft); margin-bottom: 26px; }
.opt-grid { display: grid; gap: 12px; }
.opt-grid.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px){ .opt-grid.cols-2 { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: center; gap: 12px; background: var(--white); border: 2px solid var(--sand-deep);
  border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: all .12s; font-weight: 600; text-align: left; width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.opt:hover { border-color: var(--navy); background: var(--navy-tint); }
.opt.selected { border-color: var(--navy); background: var(--navy-soft); box-shadow: 0 0 0 3px var(--navy-soft); }
.opt .opt-emoji { font-size: 1.5rem; }
.interview-nav { display: flex; justify-content: space-between; margin-top: 30px; align-items: center; }

/* scale / feeling slider question type */
.scale-wrap { max-width: 480px; margin: 8px auto 0; }
.feel-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--gold-soft), var(--navy-soft)); outline: none; }
.feel-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); cursor: pointer; box-shadow: var(--shadow-md); border: 3px solid var(--white); }
.feel-slider::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); cursor: pointer; box-shadow: var(--shadow-md); border: 3px solid var(--white); }
.scale-ends { display: flex; justify-content: space-between; margin-top: 12px; gap: 16px; }
.scale-ends span { max-width: 46%; }
.scale-ends span:last-child { text-align: right; }
/* free-text question type sits a touch larger in the interview */
.interview-card textarea { min-height: 96px; font-size: 1.05rem; }

/* Discovery module-chooser hub */
.module-card { display: flex; flex-direction: column; }
.module-card h4 { line-height: 1.2; }
.module-card .btn { margin-top: auto; }
.module-locked { opacity: .65; }

/* finish celebration */
.celebrate { text-align: center; padding: 20px 0; }
.celebrate .big { font-size: 4rem; animation: pop .5s ease; }
@keyframes pop { 0%{transform:scale(0)} 70%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* ============================ WEEKLY PLAN ============================ */
.week-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px){ .week-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .week-grid { grid-template-columns: 1fr; } }
.day-col { background: var(--paper); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.day-col h4 { text-align: center; padding-bottom: 8px; border-bottom: 2px solid var(--sand); margin-bottom: 12px; }
.block {
  border-radius: var(--radius-sm); padding: 11px 13px; margin-bottom: 10px; font-size: .9rem; line-height: 1.4;
}
.block .blabel { font-weight: 800; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 3px; opacity: .8; }
.block-core { background: var(--sage-soft); color: var(--ink); }
.block-creative { background: var(--terra-soft); color: var(--ink); }
.block-move { background: var(--sky-soft); color: var(--ink); }
.block-curiosity { background: var(--gold-soft); color: var(--ink); }
.block-rest { background: var(--sand); color: var(--ink-soft); font-style: italic; }
.breathing-note { font-size: .8rem; color: var(--ink-faint); text-align: center; margin-top: auto; padding-top: 8px; font-style: italic; }

/* ============================ CO-OP ============================ */
.coop-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; }
.stat { }
.stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.listing-card { display: flex; flex-direction: column; }
.listing-card .lc-img { height: 120px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 3rem; margin-bottom: 14px; }
.listing-meta { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; font-size: .88rem; color: var(--ink-soft); }
.listing-meta .mi { display: flex; align-items: center; gap: 7px; }
.spots-strip { display: flex; gap: 3px; margin: 8px 0; }
.seat { width: 14px; height: 14px; border-radius: 4px; background: var(--sand-deep); }
.seat.taken { background: var(--terra); }

/* ============================ LAW NAVIGATOR ============================ */
.law-usmap svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 10px 26px rgba(26,22,34,.08)); }
.law-usmap path { cursor: pointer; transition: opacity .12s, stroke .12s; }
.law-usmap path:hover { opacity: .8; }
.law-hero { background: linear-gradient(135deg, var(--navy-soft), var(--gold-soft)); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 26px; }
.disclaimer { background: var(--gold-soft); border-left: 5px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; color: #8a5a12; margin: 18px 0; }
.law-section { margin-bottom: 22px; }
.law-section h3 { color: var(--navy); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--sand); }
.checklist li:last-child { border-bottom: none; }
.check-box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--sand-deep); flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--white); transition: .12s; margin-top: 2px; }
.check-box.checked { background: var(--navy); border-color: var(--navy); }
.coming-soon { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ============================ MODAL / TOAST ============================ */
#modal-host:empty, #toast-host:empty { display: none; }
.modal-overlay { position: fixed; inset: 0; background: rgba(59,53,48,.4); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--paper); border-radius: var(--radius-lg); max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); padding: 30px; max-height: 90vh; overflow-y: auto; animation: rise .25s; }
.modal-close { float: right; border: none; background: var(--sand); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--ink-soft); }
#toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--navy-deep); color: var(--white); padding: 13px 22px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-weight: 700; font-size: .92rem; animation: rise .25s; }
.toast.success { background: var(--navy); }
.toast.info { background: var(--sky); }

/* sample-data ribbon */
.sample-ribbon {
  background: var(--terra-soft); color: var(--terra-deep); text-align: center; font-weight: 700; font-size: .82rem;
  padding: 8px 16px;
}
.sample-ribbon a { color: var(--terra-deep); text-decoration: underline; cursor: pointer; }

/* empty state */
.empty { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty .em { font-size: 3rem; margin-bottom: 10px; }

footer.app-footer { text-align: center; padding: 30px; color: var(--ink-faint); font-size: .85rem; }

/* ---- Add-a-kid icon picker + parent-profile expertise chips ---- */
.emoji-row{display:flex;flex-wrap:wrap;gap:8px}
.emoji-pick{font-size:1.4rem;width:46px;height:46px;line-height:1;border:2px solid var(--sand-deep);background:#fff;border-radius:12px;cursor:pointer;transition:border-color .12s,background .12s}
.emoji-pick:hover{border-color:var(--navy)}
.emoji-pick.sel{border-color:var(--navy);background:var(--navy-soft)}
.chip-select{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0}
.chip-toggle{font-family:inherit;font-size:.9rem;font-weight:600;color:var(--ink);border:1.5px solid var(--sand-deep);background:#fff;border-radius:999px;padding:8px 14px;cursor:pointer;transition:.12s}
.chip-toggle:hover{border-color:var(--navy)}
.chip-toggle.on{background:var(--navy);border-color:var(--navy);color:#fff}
