/* =====================================================================
   TRACKS BEHAVIORAL — site styles
   Sister site to TracksTherapy.com. Same paper, ink, marigold, and
   burnt-orange palette and the same type families, so the two read as
   one family. Tracks Behavioral adds a "behavior notebook" layer:
   a hand-drawn map background with faded footprint trails, notebook
   pages, chalkboard panels, handwritten labels, friendly doodles, and
   arrows that draw themselves.
   Edit colors and fonts here; every page uses these tokens.
   ===================================================================== */
:root {
  /* shared with Tracks Therapy */
  --paper: #FBF6EA;        /* page background */
  --paper-2: #F3E9D2;      /* band background */
  --card: #FFFDF7;         /* card / note paper */
  --ink: #2B2620;          /* text + drawings */
  --ink-2: #5A5046;        /* softer text */
  --line: #D8C9AA;         /* pencil rules */
  --marigold: #E3A21A;     /* primary accent */
  --marigold-soft: #F7DC97;
  --marigold-pale: #FBEBC2;
  --orange: #B9531D;       /* small touches only */

  /* Tracks Behavioral additions */
  --slate: #2E3A34;        /* chalkboard */
  --slate-2: #3B4842;      /* chalkboard smudge */
  --chalk: #F4EFE2;        /* chalk text on slate */
  --chalk-dim: #C9C4B5;    /* faint chalk */
  --grid: #E6DAC0;         /* graph-paper lines */

  --f-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-brand: 'Shantell Sans', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --f-body: 'Atkinson Hyperlegible', 'Segoe UI', Verdana, sans-serif;
  --f-note: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --f-chalk: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive;

  --wrap: 1120px;
  --radius-hand: 6px 14px 8px 16px / 14px 6px 16px 8px;
  --shadow-stamp: 3px 3px 0 var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("../img/map-bg.svg");
  background-size: 900px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--marigold-soft); border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 650; font-variation-settings: 'SOFT' 50; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 650; font-variation-settings: 'SOFT' 50; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol { padding-left: 1.2em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--marigold); padding: 8px 14px; border: 2px solid var(--ink); z-index: 50; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(48px, 7vw, 88px); position: relative; }
.section.tight { padding-block: clamp(32px, 5vw, 56px); }
.band { background: color-mix(in srgb, var(--paper-2) 88%, transparent); border-block: 1.5px dashed var(--line); }

/* highlighter + handwriting ----------------------------------------- */
.hl { background: linear-gradient(transparent 58%, var(--marigold-soft) 58%, var(--marigold-soft) 92%, transparent 92%); padding: 0 .08em; }
.note { font-family: var(--f-note); font-size: 1.6rem; line-height: 1.15; color: var(--orange); display: inline-block; transform: rotate(-1.5deg); }
.chalk-label { font-family: var(--f-chalk); font-weight: 700; }
.eyebrow { font-family: var(--f-body); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: inline-block;
  background: var(--marigold-soft); border: 1.5px solid var(--ink); padding: 3px 10px; border-radius: 4px; margin-bottom: 14px; }
.lead { font-size: 1.25rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small-print { font-size: .95rem; color: var(--ink-2); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: 8px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* hand-drawn underline under a key word (draws on scroll) */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -.32em; width: 104%; height: .5em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }

/* margin annotation with a little arrow */
.annot { display: inline-flex; align-items: flex-end; gap: 6px; font-family: var(--f-note); font-size: 1.55rem; line-height: 1.05; color: var(--orange); transform: rotate(-2deg); }
.annot svg { width: 46px; height: 34px; flex: none; }
.annot svg path { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* placeholders the practice owner must fill in ----------------------- */
.ph { display: inline-block; font-family: var(--f-body); font-weight: 700; font-size: .92em; color: var(--orange); background: #fff; border: 2px dashed var(--orange);
  border-radius: 6px; padding: 1px 8px; }
.ph-block { display: block; color: var(--orange); background: #fff; border: 2px dashed var(--orange); border-radius: 8px; padding: 10px 14px; font-size: .95rem; font-weight: 700; }

/* header ------------------------------------------------------------ */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-brand); font-weight: 800; font-size: 1.45rem; color: var(--ink); line-height: 1.1; }
.brand small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .78rem; letter-spacing: .02em; color: var(--ink-2); margin-top: 2px; }
.brand .logo-mark { flex: none; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 11px; text-decoration: none; font-weight: 700; font-size: 1rem; border-radius: 20px; border: 2px solid transparent; }
.nav a:hover { border-color: var(--ink); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--marigold-soft); border-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; order: 3; }
.nav { order: 2; }
.header-book { box-shadow: 2px 2px 0 var(--ink); gap: .28em; }
.nav-toggle { display: none; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; cursor: pointer; min-height: 44px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) {
  .site-header .wrap { padding-block: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav { width: 100%; order: 4; }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; padding: 6px 0 10px; border-top: 1.5px dashed var(--line); }
  .nav a { padding: 12px 14px; font-size: 1.08rem; border-radius: 10px; }
}
@media (max-width: 560px) {
  .brand { font-size: 1.18rem; gap: 8px; }
  .brand small { display: none; }
  .brand .logo-mark { width: 36px; height: 36px; }
  .header-book { padding: 8px 12px; }
  .header-book .long { display: none; }
  .nav-toggle { padding: 8px 10px; min-width: 44px; justify-content: center; }
  .site-header .wrap { gap: 10px 12px; }
  .header-actions { gap: 8px; }
}
@media (max-width: 440px) { .nav-toggle .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 1181px) and (max-width: 1360px) { .nav a { padding: 8px 8px; font-size: .97rem; } .site-header .wrap { gap: 12px 14px; } }

/* buttons ----------------------------------------------------------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink);
  padding: 12px 20px; border: 2.5px solid var(--ink); border-radius: 10px 14px 10px 16px; background: var(--card); box-shadow: var(--shadow-stamp); transition: transform .12s, box-shadow .12s; cursor: pointer; }
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--marigold); }
.btn.ghost { box-shadow: none; background: transparent; }
.btn.small { padding: 8px 14px; font-size: .95rem; }
.btn.chalk { background: transparent; color: var(--chalk); border-color: var(--chalk); box-shadow: 3px 3px 0 var(--marigold); }
.btn.chalk:hover { color: var(--chalk); box-shadow: 4px 4px 0 var(--marigold); }
.btn .arr { font-family: var(--f-note); font-size: 1.4rem; line-height: .6; }

/* cards ------------------------------------------------------------- */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-hand); padding: 22px 24px; position: relative; min-width: 0; }
.card.soft { background: var(--marigold-pale); }
.card.dash { background: transparent; border-style: dashed; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.card .ico { margin-bottom: 10px; }
.ico svg { width: 72px; height: 72px; }
.label { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); border: 1.5px solid var(--orange); border-radius: 4px; padding: 1px 8px; }

/* notebook page card: ruled lines and a margin rule */
.page-card { background-color: var(--card);
  background-image: linear-gradient(90deg, transparent 38px, rgba(185, 83, 29, .35) 38px, rgba(185, 83, 29, .35) 39.5px, transparent 39.5px),
                    repeating-linear-gradient(transparent 0 31px, rgba(154, 135, 106, .22) 31px 32px);
  border: 2px solid var(--ink); border-radius: 4px 12px 6px 14px / 12px 4px 14px 6px; padding: 24px 26px 24px 56px; position: relative; min-width: 0; }
.page-card::before { content: ""; position: absolute; left: 14px; top: 22px; bottom: 22px; width: 10px;
  background: radial-gradient(circle, var(--paper-2) 0 4px, var(--ink) 4px 5px, transparent 5.5px) center top / 10px 34px repeat-y; opacity: .8; }

/* chalkboard panel -------------------------------------------------- */
.chalkboard { background: var(--slate); color: var(--chalk); border: 3px solid var(--ink); border-radius: 10px 16px 12px 18px / 16px 10px 18px 12px;
  box-shadow: inset 0 0 0 6px var(--slate-2), 4px 4px 0 var(--ink); padding: clamp(24px, 4vw, 40px); position: relative; min-width: 0;
  background-image: radial-gradient(ellipse at 20% 30%, rgba(244, 239, 226, .05), transparent 55%), radial-gradient(ellipse at 80% 80%, rgba(244, 239, 226, .04), transparent 50%); }
.chalkboard h2, .chalkboard h3 { color: var(--chalk); }
.chalkboard p, .chalkboard li { color: var(--chalk); }
.chalkboard a { color: var(--chalk); text-decoration-color: var(--marigold); }
.chalkboard a:hover { color: var(--marigold-soft); }
.chalkboard :focus-visible { outline-color: var(--marigold); box-shadow: none; }
.chalkboard .chalk-note { font-family: var(--f-chalk); font-size: 1.3rem; color: var(--marigold-soft); }
.chalkboard svg text { fill: var(--chalk); }

/* hero -------------------------------------------------------------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px 44px; align-items: center; }
.hero-art svg { width: 100%; height: auto; }
.hero .scheduling-note { font-size: .95rem; color: var(--ink-2); margin-top: 14px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 560px; } }
.page-hero { padding-block: clamp(36px, 6vw, 64px) 28px; }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.page-hero .art { justify-self: center; width: 100%; max-width: 340px; }
.page-hero .art svg { width: 100%; height: auto; }
@media (max-width: 780px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero .art { justify-self: start; max-width: 240px; } }

/* footprint decorations -------------------------------------------- */
.trail-divider { display: flex; justify-content: center; padding-block: 6px; opacity: .8; }
.trail-divider svg { width: min(460px, 80%); height: auto; }
.margin-trail { position: absolute; top: 40px; width: 70px; height: calc(100% - 80px); background: url("../img/footprints-margin.svg") center top / 70px auto repeat-y; opacity: .3; pointer-events: none; }
.margin-trail.left { left: max(4px, calc((100vw - var(--wrap)) / 2 - 92px)); }
.margin-trail.right { right: max(4px, calc((100vw - var(--wrap)) / 2 - 92px)); transform: scaleY(-1); background-image: url("../img/footprints-margin-warm.svg"); }
@media (max-width: 1320px) { .margin-trail { display: none; } }

/* self-drawing lines ------------------------------------------------ */
/* Paths with class "draw" are fully visible by default. When scripts run
   and motion is allowed, they start hidden and draw in on scroll. */
@media (prefers-reduced-motion: no-preference) {
  .js .animate .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.45, .05, .3, 1); }
  .js .animate.in .draw { stroke-dashoffset: 0; }
  .js .animate .draw.d2 { transition-delay: .35s; } .js .animate .draw.d3 { transition-delay: .7s; } .js .animate .draw.d4 { transition-delay: 1.05s; } .js .animate .draw.d5 { transition-delay: 1.4s; }
  .js .animate .pop { opacity: 0; transition: opacity .6s ease; }
  .js .animate.in .pop { opacity: 1; }
  .js .animate .pop.d2 { transition-delay: .5s; } .js .animate .pop.d3 { transition-delay: .9s; } .js .animate .pop.d4 { transition-delay: 1.3s; } .js .animate .pop.d5 { transition-delay: 1.7s; }
}

/* Tracks difference / three columns -------------------------------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.trio .card { padding-top: 26px; }
@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } }

/* age chapters ------------------------------------------------------ */
.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; list-style: none; padding: 0; position: relative; }
.chapters > li { min-width: 0; }
.chapters .age { font-family: var(--f-chalk); font-weight: 700; font-size: 1.15rem; color: var(--orange); display: block; margin-bottom: 2px; }
.chapters h3 { margin-bottom: 6px; }
.chapter-path { margin: 26px auto 0; max-width: 980px; }
.chapter-path svg { width: 100%; height: auto; display: block; }
@media (max-width: 820px) { .chapters { grid-template-columns: 1fr; } .chapter-path { display: none; } }

/* philosophy split -------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split .chalkboard svg { width: 100%; height: auto; display: block; }

/* resource cards ---------------------------------------------------- */
.resources-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 28px; }
@media (max-width: 960px) { .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .resources-grid { grid-template-columns: 1fr; } }
.res { display: flex; flex-direction: column; gap: 12px; }
.res .preview { position: relative; align-self: center; width: 72%; max-width: 230px; margin: 6px 0; }
.res .preview img { border: 1.5px solid var(--line); box-shadow: 0 8px 18px rgba(43, 38, 32, .16); transform: rotate(-2.5deg); background: #fff; transition: transform .25s ease; }
.res:nth-child(2n) .preview img { transform: rotate(2deg); }
.res:hover .preview img { transform: rotate(0deg) translateY(-3px); }
.res .preview::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -10px; width: 84px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(227, 162, 26, .55); }
.res h3 { margin: 0; }
.res .kicker { font-family: var(--f-note); font-size: 1.35rem; color: var(--orange); line-height: 1.1; margin: 0; }
.res p { margin: 0; font-size: 1rem; }
.res ul { margin: 0; font-size: .98rem; }
.res .btns { margin-top: auto; padding-top: 6px; }
.res .free { font-size: .92rem; color: var(--ink-2); font-weight: 700; }
.res .missing { border: 2px dashed var(--orange); color: var(--orange); background: #fff; padding: 10px 12px; border-radius: 8px; font-size: .95rem; font-weight: 700; }

/* lists inside cards ------------------------------------------------ */
.ticks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; border: 2px solid var(--ink); border-radius: 3px 5px 3px 4px; background: var(--card); }
.ticks li::after { content: ""; position: absolute; left: 4px; top: .12em; width: 14px; height: 8px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-48deg); }
.cols-2 { columns: 2; column-gap: 28px; }
.cols-2 li { break-inside: avoid; }
@media (max-width: 560px) { .cols-2 { columns: 1; } }

.chips { list-style: none; padding: 0; margin: 16px 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 6px 14px; font-weight: 700; font-size: 1rem; }
.chips li:nth-child(3n+1) { background: var(--marigold-pale); }

/* fee table --------------------------------------------------------- */
.fee-wrap { overflow-x: auto; margin-top: 22px; }
.fees { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-hand); overflow: hidden; font-size: 1.05rem; }
.fees caption { text-align: left; font-family: var(--f-note); font-size: 1.5rem; color: var(--orange); padding: 0 0 6px; }
.fees th, .fees td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1.5px dashed var(--line); }
.fees thead th { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; background: var(--marigold-soft); border-bottom: 2px solid var(--ink); }
.fees tbody tr:last-child th, .fees tbody tr:last-child td { border-bottom: 0; }
.fees td.fee { font-family: var(--f-head); font-weight: 700; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.fees thead th.fee { text-align: right; }
.fees tbody th { font-weight: 700; }
.fees tbody th span { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.fees tr.free td.fee { color: var(--orange); }

/* step path (Our Approach) ----------------------------------------- */
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: step; }
.steps > li { position: relative; text-align: center; min-width: 0; }
.steps .stone { width: 112px; height: 112px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--card); border: 2.5px solid var(--ink);
  border-radius: 48% 52% 46% 54% / 54% 46% 52% 48%; position: relative; }
.steps > li:nth-child(odd) .stone { background: var(--marigold-pale); }
.steps .stone svg { width: 68px; height: 68px; }
.steps .num { position: absolute; top: -8px; left: -6px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-family: var(--f-head); font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.steps h3 { margin-bottom: 4px; }
.steps p { font-size: .98rem; margin: 0 auto; max-width: 24ch; }
.steps-line { position: absolute; left: 6%; right: 6%; top: 44px; height: 30px; z-index: -1; }
.steps-line svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps > li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; text-align: left; align-items: start; padding-bottom: 26px; }
  .steps > li:not(:last-child)::after { content: ""; position: absolute; left: 47px; top: 92px; bottom: 6px; border-left: 2.5px dashed var(--ink); opacity: .5; }
  .steps .stone { width: 92px; height: 92px; margin: 0; }
  .steps .stone svg { width: 56px; height: 56px; }
  .steps p { max-width: none; margin: 0; }
  .steps-line { display: none; }
}

/* methods ----------------------------------------------------------- */
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; margin-top: 26px; }
.methods .card { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; padding: 18px 20px; }
.methods .card svg { width: 54px; height: 54px; }
.methods h3 { margin-bottom: 4px; font-size: 1.15rem; }
.methods p { font-size: 1rem; margin: 0; }
.methods .tag { font-family: var(--f-note); font-size: 1.3rem; color: var(--orange); display: block; line-height: 1.1; margin-bottom: 2px; }
@media (max-width: 760px) { .methods { grid-template-columns: 1fr; } }

/* diagram figures --------------------------------------------------- */
.figure { margin: 0; }
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption { font-family: var(--f-note); font-size: 1.35rem; color: var(--orange); text-align: center; margin-top: 6px; }
.chalkboard .figure figcaption { color: var(--marigold-soft); font-family: var(--f-chalk); font-size: 1.15rem; }

/* about ------------------------------------------------------------- */
.photo { position: relative; background: #fff; padding: 12px 12px 46px; border: 1.5px solid var(--line); box-shadow: 0 10px 24px rgba(43, 38, 32, .14); transform: rotate(-2deg); max-width: 360px; margin: 0; }
.photo::before, .photo::after { content: ""; position: absolute; width: 96px; height: 28px; background: rgba(227, 162, 26, .55); top: -12px; }
.photo::before { left: -18px; transform: rotate(-24deg); }
.photo::after { right: -18px; transform: rotate(22deg); }
.photo figcaption { font-family: var(--f-note); font-size: 1.5rem; text-align: center; margin-top: 8px; }
.meet { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 36px 56px; align-items: start; }
@media (max-width: 800px) { .meet { grid-template-columns: 1fr; } .photo { max-width: 290px; margin-left: 10px; } }
.byline { font-weight: 700; color: var(--ink-2); margin-top: -4px; }

.timeline { list-style: none; margin: 24px 0 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; border-left: 2.5px dashed var(--ink); opacity: .55; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--marigold); }
.timeline .yr { font-family: var(--f-chalk); font-weight: 700; color: var(--orange); font-size: 1.15rem; display: block; line-height: 1.2; }
.timeline h3 { margin: 2px 0 2px; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 1rem; }

.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.creds li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line); }
.creds li:last-child { border-bottom: 0; padding-bottom: 0; }
.creds b { font-family: var(--f-head); display: inline-block; min-width: 3.4em; }
.creds li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 5px; border: 2px solid var(--ink); border-radius: 50%; background: var(--marigold); }

.quote { margin: 0; position: relative; padding: 28px 30px 24px 66px; }
.quote::before { content: "\201C"; position: absolute; left: 18px; top: -6px; font-family: var(--f-head); font-size: 5rem; color: var(--marigold); line-height: 1; }
.quote p { font-family: var(--f-head); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.45; font-weight: 500; max-width: 58ch; }
.quote footer { font-family: var(--f-note); font-size: 1.4rem; color: var(--orange); }

.sister { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center; }
.sister svg { width: 64px; height: 64px; }
@media (max-width: 560px) { .sister { grid-template-columns: 1fr; } }

/* behavior notebook library ---------------------------------------- */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
@media (max-width: 760px) { .shelf { grid-template-columns: 1fr; } }
.shelf details { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-hand); }
.shelf summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; position: relative; display: flex; gap: 12px; align-items: center; }
.shelf summary::-webkit-details-marker { display: none; }
.shelf summary h3 { margin: 0; font-size: 1.2rem; }
.shelf summary .count { font-size: .9rem; color: var(--ink-2); font-weight: 700; margin-left: auto; white-space: nowrap; }
.shelf summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; background: var(--marigold); font-size: 1.1rem; line-height: 1; font-weight: 700; }
.shelf details[open] summary::after { content: "\2212"; }
.shelf details[open] summary { border-bottom: 1.5px dashed var(--line); }
.shelf ul { list-style: none; margin: 0; padding: 12px 18px 16px; display: grid; gap: 8px; }
.shelf li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.soon { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1.5px dashed var(--ink-2); border-radius: 4px; padding: 0 6px; white-space: nowrap; }
.avail { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--marigold-soft); border: 1.5px solid var(--ink); border-radius: 4px; padding: 0 6px; white-space: nowrap; }

/* FAQ --------------------------------------------------------------- */
.faq { display: grid; gap: 14px; max-width: 840px; }
.faq details { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-hand); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 20px; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; background: var(--marigold); font-size: 1.2rem; line-height: 1; font-family: var(--f-body); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1.5px dashed var(--line); }
.faq .ans { padding: 14px 20px 18px; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq-group { margin-top: 36px; }
.faq-group:first-of-type { margin-top: 10px; }
.faq-group > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }

/* contact + form ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; }
.field .hint { font-size: .92rem; color: var(--ink-2); margin: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 8px 10px 8px 12px; padding: 11px 13px; width: 100%; min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--marigold); outline-offset: 1px; box-shadow: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 8px 14px; cursor: pointer; min-height: 44px; }
.choices input { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; }
.choices label:has(input:checked) { background: var(--marigold-soft); }
.req { color: var(--orange); }
.form-note { font-size: .95rem; color: var(--ink-2); }
.form-status { border-radius: 8px; padding: 12px 14px; font-weight: 700; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--marigold-pale); border: 2px solid var(--ink); }
.form-status.warn { background: #fff; border: 2px dashed var(--orange); color: var(--orange); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { font: inherit; font-weight: 700; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 20px; padding: 8px 16px; cursor: pointer; min-height: 44px; }
.tabs button[aria-pressed="true"] { background: var(--marigold-soft); box-shadow: 2px 2px 0 var(--ink); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: grid; gap: 2px; }
.info-list .k { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.copy { font: inherit; font-size: .9rem; font-weight: 700; background: transparent; border: 2px solid var(--ink); border-radius: 16px; padding: 4px 12px; cursor: pointer; color: var(--ink); }
.copy:hover { background: var(--marigold-soft); }
.notice { display: flex; gap: 14px; align-items: flex-start; }
.notice svg { flex: none; width: 40px; height: 40px; }
.notice p { font-size: 1rem; }

/* closing CTA ------------------------------------------------------- */
.cta .chalkboard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 36px; align-items: center; }
.cta .chalkboard p { margin-bottom: 0; }
.cta .chalkboard h2 { margin-bottom: 8px; }
@media (max-width: 780px) { .cta .chalkboard { grid-template-columns: 1fr; } }

/* footer ------------------------------------------------------------ */
.site-footer { border-top: 2px solid var(--ink); background: var(--ink); color: var(--paper); padding-block: 44px 34px; margin-top: 20px; }
.site-footer a { color: var(--paper); text-decoration-color: var(--marigold); }
.site-footer a:hover { color: var(--marigold); }
.site-footer :focus-visible { outline-color: var(--marigold); box-shadow: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .fname { font-family: var(--f-brand); font-weight: 800; font-size: 1.5rem; margin: 0 0 2px; }
.site-footer .tag { font-family: var(--f-note); font-size: 1.45rem; color: var(--marigold); margin: 0 0 10px; line-height: 1.15; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .crisis { background: rgba(251, 246, 234, .08); border: 1.5px dashed rgba(251, 246, 234, .45); border-radius: 10px; padding: 14px 16px; font-size: 1rem; }
.site-footer .crisis p { margin: 0 0 .6em; } .site-footer .crisis p:last-child { margin: 0; }
.site-footer .fine { margin-top: 26px; font-size: .88rem; opacity: .8; max-width: none; }
.site-footer .floc { margin: 10px 0 0; font-size: 1rem; opacity: .9; }
.site-footer .ph { background: transparent; color: var(--marigold); border-color: var(--marigold); }

/* helpers ----------------------------------------------------------- */
.stack > * + * { margin-top: 14px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 40px; }

/* hero facts + tagline strip --------------------------------------- */
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); border: 1.5px solid var(--ink); flex: none; }
.tagline-band { padding-block: 18px; }
.tagline { margin: 0 auto; max-width: none; text-align: center; font-family: var(--f-head); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.tagline span { white-space: nowrap; }
.tagline span + span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin: 0 .7em .18em .2em; vertical-align: middle; }
@media (max-width: 560px) {
  .tagline span { display: block; }
  .tagline span + span::before { display: none; }
}

/* page-level layouts ------------------------------------------------ */
.stack-l { display: grid; gap: 26px; }
.stack-m { display: grid; gap: 22px; min-width: 0; }
.split.align-start { align-items: start; }
.h3-size { font-size: 1.3rem; font-weight: 700; }
.subtitle { font-family: var(--f-head); font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-top: -6px; color: var(--ink-2); }
.center-text { text-align: center; }

.age-head { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: start; margin-bottom: 10px; }
.age-head h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin-bottom: 6px; }
.age-head p { margin: 0; }
.age-tag { font-family: var(--f-chalk); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--ink); background: var(--marigold-soft); border: 2.5px solid var(--ink);
  border-radius: 48% 52% 46% 54% / 54% 46% 52% 48%; min-width: 92px; height: 72px; display: grid; place-items: center; padding: 0 10px; }
.age-block:nth-child(2) .age-tag { background: var(--marigold); }
.list-head { font-family: var(--f-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 16px 0 4px; }
@media (max-width: 560px) { .age-head { grid-template-columns: 1fr; } .age-tag { justify-self: start; } }

.who-item { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: start; }
.who-item svg { width: 60px; height: 60px; }
.who-item h3 { margin-bottom: 4px; }
.who-item p { margin: 0; font-size: 1rem; }

.svc { display: flex; flex-direction: column; }
.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.svc-head svg { width: 52px; height: 52px; flex: none; }
.svc-head h3 { margin: 0; }
.svc p { font-size: 1.02rem; }

.fba-board { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px 40px; align-items: center; }
.fba-fig { max-width: 200px; justify-self: center; }
@media (max-width: 760px) { .fba-board { grid-template-columns: 1fr; } .fba-fig { display: none; } }

.diagram-scroll { overflow-x: auto; }
.abc-fig { min-width: 560px; }
.steps-wrap { position: relative; isolation: isolate; }
.values h3 { font-family: var(--f-chalk); font-size: 1.3rem; color: var(--marigold-soft); margin-bottom: 4px; }
.values p { font-size: 1.02rem; margin: 0; }

.draft-flag { max-width: 760px; }
.quote.card { max-width: 860px; padding: 28px 30px 24px 70px; }

.resources-grid.feature .res { padding-bottom: 26px; }
.use-note { max-width: 760px; }
.shelf summary svg { width: 34px; height: 34px; flex: none; }

.form-card { padding: clamp(20px, 3vw, 32px); position: relative; }
.anchor-target { position: absolute; top: 0; }
.h2-form { font-size: clamp(1.4rem, 2.8vw, 1.8rem); }
.quote-fields { display: grid; gap: 18px; border: 2px dashed var(--line); border-radius: 10px; padding: 16px; }
.quote-fields[hidden] { display: none !important; }
.quote-head { margin: 0; font-family: var(--f-note); font-size: 1.4rem; color: var(--orange); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange); flex: none; }
.next-steps { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 1rem; }
.notice h2 { margin-bottom: 6px; }
.header-book { gap: 0; }
.ticks.cols-2 { display: block; }
.ticks.cols-2 li { margin-bottom: 7px; }
.form .grid { align-items: end; }
.res .label { align-self: flex-start; }


/* footprint tracks along the margins of every section --------------- */
main > section { position: relative; }
main > section::before { content: ""; position: absolute; top: 36px; bottom: 36px; width: 64px; pointer-events: none; z-index: 0;
  background: url("../img/footprints-margin.svg") center top / 64px auto repeat-y; opacity: .26; }
main > section:nth-of-type(odd)::before { left: max(2px, calc((100vw - var(--wrap)) / 2 - 86px)); }
main > section:nth-of-type(even)::before { right: max(2px, calc((100vw - var(--wrap)) / 2 - 86px)); transform: scaleY(-1); background-image: url("../img/footprints-margin-warm.svg"); }
main > section > .wrap { position: relative; z-index: 1; }
@media (max-width: 1290px) { main > section::before { display: none; } }

/* doodles ------------------------------------------------------------ */
.doodle { display: block; pointer-events: none; }
.doodle svg { width: 100%; height: auto; display: block; overflow: visible; }
/* beside a section heading: sits in the empty space to the right on wide screens, floats small on phones */
.section-head { position: relative; }
.doodle.side { position: absolute; top: -6px; right: -200px; width: 120px; transform: rotate(6deg); }
.doodle.side.l { right: auto; left: -150px; width: 96px; transform: rotate(-6deg); }
@media (max-width: 1180px) {
  .doodle.side, .doodle.side.l { position: static; float: right; width: 64px; margin: 0 0 8px 12px; transform: none; }
}
/* sticker on a card corner */
.card, .page-card, .chalkboard { overflow: visible; }
.doodle.corner { position: absolute; top: -26px; right: -14px; width: 58px; transform: rotate(8deg); z-index: 2; }
.doodle.corner.bl { top: auto; bottom: -22px; right: auto; left: -16px; transform: rotate(-8deg); }
/* inline next to a handwritten note */
.doodle.inline { display: inline-block; width: 42px; vertical-align: middle; margin-left: 6px; transform: rotate(-4deg); }
/* gentle float for a few */
@media (prefers-reduced-motion: no-preference) {
  .doodle.float svg { animation: bob 5s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-2deg); } }
}
.tagline-band .doodle { display: inline-block; width: 30px; vertical-align: -6px; }
.tagline .doodle.left { margin-right: 8px; }
.tagline .doodle.right { margin-left: 8px; }
@media (max-width: 560px) { .tagline-band .doodle { display: none; } }

/* home: age stops linked from the chapter path ----------------------- */
.chapter-links { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: center; }
.chapter-links a { display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; text-decoration-thickness: 2px; }
.chapter-links span { display: block; font-family: var(--f-chalk); font-weight: 700; color: var(--orange); font-size: 1.05rem; }
@media (max-width: 820px) { .chapter-links { grid-template-columns: 1fr; gap: 10px; } }
.res.mini { align-items: flex-start; }
.byline-creds { list-style: none; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.byline-creds li { border: 2px solid var(--ink); border-radius: 18px; padding: 3px 12px; font-size: .95rem; background: var(--card); }
.byline-creds li b { font-family: var(--f-head); margin-right: 4px; }
a.page-card { text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
a.page-card:hover { color: var(--ink); transform: translateY(-3px) rotate(-.4deg); box-shadow: 4px 4px 0 var(--ink); }
a.page-card h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cta .chalkboard { grid-template-columns: minmax(0, 1fr) auto; }
.cta .chalkboard h2 { margin: 0; }
.faq-group .section-head h2 { font-size: 1.5rem; }
.faq-group .doodle.side { width: 84px; right: -120px; }
.meet .section-head { max-width: none; }
.meet .doodle.side { right: 0; top: -20px; width: 96px; }
@media (max-width: 1180px) { .meet .doodle.side { width: 64px; } }
.notice { max-width: 900px; }

/* header: brand + button on the first row, menu on its own row (desktop) */
@media (min-width: 1181px) {
  .site-header .wrap { padding-block: 12px 8px; row-gap: 6px; }
  .nav { order: 4; width: 100%; }
  .nav ul { justify-content: flex-start; margin-left: -10px; }
  .nav a { padding: 6px 11px; }
}
/* a left-side doodle inside a narrow column floats right instead */
.doodle.side.l { position: static; float: right; width: 72px; margin: 0 0 8px 12px; transform: rotate(-6deg); }
.tagline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; }
.tagline { column-gap: .45em; }

.photo.wide { max-width: 760px; margin: 0 auto; transform: rotate(1.5deg); }
.photo.wide figcaption { margin-top: 10px; }
@media (max-width: 800px) { .photo.wide { max-width: 100%; margin: 0 10px; } }

/* small-phone fixes ------------------------------------------------- */
.shelf details, .shelf summary h3 { min-width: 0; }
.shelf summary h3 { overflow-wrap: anywhere; }
.soon, .avail { font-size: .8rem; }
@media (max-width: 420px) {
  .shelf summary { flex-wrap: wrap; row-gap: 4px; padding-right: 48px; }
  .shelf summary .count { margin-left: 46px; flex-basis: 100%; }
  .shelf li .soon { display: inline-block; margin-top: 2px; }
  .meet .photo { max-width: calc(100% - 34px); margin-left: 14px; }
  td.fee a { display: inline-block; padding-block: 6px; }
}
.fees td.fee small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 560px) { .fees th, .fees td { padding: 12px 12px; } .fees td.fee { white-space: normal; min-width: 6.5em; } }
