/* Every Kind of Mind: site styles (Concept B, Many Paths)
   Colour rules: soft colours are for fills only, never for text.
   Every text colour below has been checked at 4.5:1 or better on its background. */

:root {
  /* Text and strong colours */
  --ink: #2B2433;          /* body text: 14.4:1 on cream */
  --sage-deep: #2F4F46;    /* headings, buttons: 8.7:1 on cream */
  --purple: #554466;       /* links: 8.4:1 on cream */
  --sage-text: #3F6B5E;    /* small accents: 5.8:1 on cream */

  /* Grounds and fills */
  --cream: #FCFAF7;
  --mist: #F4F8F6;
  --white: #FFFFFF;
  --line: #CFDDD7;
  --lavender: #B59BC8;
  --sage: #91B5AA;
  --pink: #D798A3;
  --apricot: #E2B480;
  --mustard: #E2CB79;
  --lavender-tint: #EFE9F4;
  --sage-tint: #E8F0EC;
  --apricot-tint: #F6E6D0;
  --pink-tint: #F7E4E8;

  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 68ch;
  --radius: 14px;
  --focus: 3px solid var(--purple);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.65;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* Links and focus */
a { color: var(--purple); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); text-decoration-thickness: 0.14em; }
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--sage-deep); color: var(--cream); padding: 0.75rem 1rem; border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

.draft-banner {
  background: var(--ink); color: var(--cream);
  font-size: 0.875rem; text-align: center; padding: 0.4rem 1rem;
}

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--sage-deep); }
.brand:hover { color: var(--sage-deep); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name { font-weight: 600; font-size: 1.15rem; line-height: 1.05; }
/* Main menu: its own full-width row under the logo and the directory button. */
.site-nav { flex: 1 0 100%; border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1.25rem; }
.site-nav li { flex: 0 0 auto; }
.site-nav a { display: block; padding: 0.7rem 0; text-decoration: none; color: var(--ink); font-size: 0.95rem; white-space: nowrap; }
.site-nav a:hover { color: var(--purple); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--sage-deep); font-weight: 600; box-shadow: inset 0 -3px 0 var(--sage); }
@media (max-width: 960px) {
  .site-nav ul { justify-content: flex-start; gap: 0 1.5rem; }
}
@media (max-width: 600px) {
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; padding: 0.25rem 0 0.5rem; }
  .site-nav a { padding: 0.5rem 0; white-space: normal; }
  .site-nav a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--sage); text-underline-offset: 0.3em; }
}

/* Main */
main { padding: 2.5rem 0 4rem; }
h1, h2, h3, h4 { color: var(--sage-deep); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.6rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }

.page-head { margin-bottom: 2rem; }
.lead { font-size: 1.2rem; line-height: 1.55; margin: 0; }

.prose { max-width: none; }
.prose li { margin-bottom: 0.35rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.975rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--sage-tint); color: var(--sage-deep); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--mist); border-radius: var(--radius); }
.table-scroll { overflow-x: auto; }

.callout { position: relative; background: var(--lavender-tint); border: 0; border-left: 6px solid var(--lavender); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.1rem 4.5rem; margin: 1.5rem 0; }
.callout__icon { position: absolute; left: 1rem; top: 1rem; background: var(--white) !important; }
.callout > :last-child { margin-bottom: 0; }

.signature { font-weight: 600; color: var(--sage-deep); }

/* Page status panel */
.page-status { margin-top: 3rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 0.95rem; }
.page-status__title { font-size: 1rem; margin: 0 0 0.5rem; }
.page-status dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0; }
.page-status dt { font-weight: 600; }
.page-status dd { margin: 0; }

/* Buttons */
.button { display: inline-block; padding: 0.85rem 1.4rem; border-radius: 12px; background: var(--sage-deep); color: var(--cream); font-weight: 600; text-decoration: none; border: 2px solid var(--sage-deep); }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.button--outline { background: transparent; color: var(--sage-deep); }
.button--outline:hover { background: var(--sage-tint); color: var(--sage-deep); border-color: var(--sage-deep); }

/* Home */
.hero { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
.hero__text { flex: 999 1 520px; min-width: 0; }
.hero__text h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.hero__text p { font-size: 1.2rem; max-width: 40rem; }
.hero__art { flex: 1 1 240px; display: flex; justify-content: center; }
.hero__art svg { width: 100%; max-width: 280px; height: auto; }
@media (max-width: 600px) {
  .hero__art { justify-content: flex-start; }
  .hero__art svg { max-width: 120px; }
}
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.pills li { padding: 0.45rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; background: var(--sage-tint); color: var(--sage-deep); }
.pills li:nth-child(2) { background: var(--lavender-tint); color: var(--purple); }
.pills li:nth-child(3) { background: var(--apricot-tint); color: var(--ink); }

.section-title { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.card { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.15rem 1.25rem; border-radius: var(--radius); border: 2px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--sage-deep); color: var(--ink); }
/* Small line icons on the situation cards. Decorative only: the words carry the meaning. */
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 0.4rem; flex: none; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--sage-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__icon--sage { background: var(--sage-tint); }
.card__icon--lavender { background: var(--lavender-tint); }
.card__icon--apricot { background: var(--apricot-tint); }
.card__icon--pink { background: var(--pink-tint); }
.card:hover .card__icon svg { stroke: var(--ink); }
.card__title { font-weight: 600; font-size: 1.1rem; color: var(--sage-deep); }
.card__text { font-size: 0.975rem; }

.band { background: var(--sage-tint); border-radius: 20px; padding: 2rem; margin: 3rem 0; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; }
.band__text { flex: 999 1 420px; min-width: 0; }
.band__text h2 { margin-top: 0; }
.band__text p { margin: 0; }

.audiences .card { border: none; }
.audiences li:nth-child(1) .card { background: var(--sage-tint); }
.audiences li:nth-child(2) .card { background: var(--apricot-tint); }
.audiences li:nth-child(3) .card { background: var(--pink-tint); }

.trust { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border: 2px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.trust p { margin: 0; flex: 1 1 380px; }

/* Forms */
.form { max-width: 40rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 600; color: var(--sage-deep); }
.field .hint { font-size: 0.95rem; margin: 0; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--white); border: 2px solid #6B7F78; border-radius: 10px; padding: 0.7rem 0.8rem; width: 100%; }
.field textarea { min-height: 10rem; resize: vertical; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button.button { font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }

/* Support Navigator */
.navigator { margin-top: 1.5rem; }
.nav-fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.nav-legend { display: flex; flex-direction: column; gap: 0.3rem; padding: 0; margin-bottom: 0.75rem; }
.nav-progress { font-size: 0.95rem; color: var(--sage-text); font-weight: 600; }
.nav-question { font-size: 1.5rem; font-weight: 600; color: var(--sage-deep); line-height: 1.25; }
.nav-error { color: #9A2F3A; font-weight: 600; margin: 0 0 0.75rem; min-height: 0; }
.nav-error:empty { display: none; }
.nav-options { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.nav-option { position: relative; }
.nav-option input { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--sage-deep); }
.nav-option label { display: block; min-height: 52px; padding: 0.8rem 1rem 0.8rem 3.1rem; border: 2px solid #6B7F78; border-radius: 12px; background: var(--white); cursor: pointer; }
.nav-option input:checked + label { border-color: var(--sage-deep); background: var(--sage-tint); font-weight: 600; }
.nav-option input:focus-visible + label { outline: var(--focus); outline-offset: 2px; }
.nav-option label:hover { border-color: var(--sage); }
.nav-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.nav-buttons .button { font: inherit; font-weight: 600; cursor: pointer; min-height: 48px; }
#nav-results:focus, #nav-q:focus { outline: none; }
.nav-subhead { margin-top: 2rem; }
.nav-summary { padding-left: 1.2rem; }
.nav-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; counter-reset: navcard; }
ol.nav-cards > li { counter-increment: navcard; }
.nav-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.nav-card p { margin: 0 0 0.5rem; }
.nav-card p:last-child { margin-bottom: 0; }
.nav-card__type { font-size: 0.875rem; font-weight: 600; color: var(--sage-text); }
ol.nav-cards .nav-card__type::before { content: counter(navcard) ". "; }
.nav-card__title { margin: 0 0 0.4rem; font-size: 1.15rem; }
.nav-card__limits { font-size: 0.95rem; padding-left: 0.75rem; border-left: 3px solid var(--apricot); }
.nav-card__review { font-size: 0.85rem; color: #5A4A1A; background: #F9EEDA; border-radius: 8px; padding: 0.35rem 0.6rem; }
.nav-card--note { background: var(--lavender-tint); border-color: transparent; }
.nav-card--help { background: var(--sage-tint); border-color: transparent; margin-top: 1.5rem; }
.nav-more { margin-top: 1.25rem; }
.nav-more summary { cursor: pointer; font-weight: 600; color: var(--purple); padding: 0.75rem 0; min-height: 44px; }
.nav-more .nav-cards { margin-top: 0.5rem; }
.nav-print-only { display: none; }

@media print {
  .page-head .lead, .callout, .nav-buttons, .page-status, .nav-card__review { display: none; }
  .nav-print-only { display: block; font-size: 10pt; }
  .nav-card { break-inside: avoid; border: 1px solid #999; }
  .nav-more summary { display: none; }
  .nav-card a::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}


/* References */
.references { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.references ol { padding-left: 1.4rem; }
.references li { margin-bottom: 0.8rem; }
.ref-meta { font-size: 0.9rem; color: #4A4452; }
.ref-id { font-variant-numeric: tabular-nums; }
.evidence-tag { background: var(--lavender-tint); border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.975rem; }

/* Link lists and steps */
.link-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.link-list li { display: flex; align-items: center; gap: 0.85rem; background: var(--white); border: 2px solid var(--line); border-left-width: 6px; border-radius: 12px; padding: 0.75rem 1rem; margin: 0; }
.link-list a { font-weight: 600; text-decoration: none; }
.link-list li { position: relative; }
.link-list a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.link-list a:hover, .link-list a:focus-visible { text-decoration: underline; }
.link-list li:hover { border-color: var(--sage-deep); }
.link-list li:focus-within { outline: var(--focus); outline-offset: 2px; }
.link-list a:focus-visible { outline: none; }
.link-list__item--sage { border-left-color: var(--sage); }
.link-list__item--lavender { border-left-color: var(--lavender); }
.link-list__item--apricot { border-left-color: var(--apricot); }
.link-list__item--pink { border-left-color: var(--pink); }
.link-list .ico { width: 42px; height: 42px; }
.link-list .ico svg { width: 24px; height: 24px; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: 0.9rem; padding-left: 0.25rem; }
.callout--draft { background: var(--apricot-tint); border-left-color: var(--apricot); }
.small { font-size: 0.9rem; }

/* Glossary */
.glossary dt { font-weight: 700; color: var(--sage-deep); margin-top: 1rem; }
.glossary dd { margin: 0.2rem 0 0; }

/* Directory */
.dir-filters { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 0.5rem; }
.dir-filter { display: grid; gap: 0.3rem; min-width: 12rem; flex: 1 1 12rem; }
.dir-filter select, .dir-filter input { width: 100%; min-width: 0; }
.dir-filter label { font-weight: 600; color: var(--sage-deep); }
.dir-filter select, .dir-filter input { font: inherit; color: var(--ink); background: var(--white); border: 2px solid #6B7F78; border-radius: 10px; padding: 0.6rem 0.7rem; min-height: 48px; }
.dir-count { font-size: 0.95rem; color: #4A4452; }
.dir-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.dir-entry { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0; }
.dir-entry h3 { margin: 0 0 0.3rem; }
.dir-entry p { margin: 0 0 0.5rem; }
.dir-entry__meta { font-size: 0.9rem; font-weight: 600; color: var(--sage-text); }
.dir-entry__checked { font-size: 0.85rem; color: #4A4452; }

/* Printable resources */
.write-in { border-bottom: 1px solid #6B7F78; min-height: 4.5rem; margin: 0.25rem 0 1.25rem; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.5rem - 1px), #CFDDD7 calc(1.5rem - 1px), #CFDDD7 1.5rem); }
.write-in--tall { min-height: 9rem; }
.write-line { display: inline-block; min-width: 10rem; border-bottom: 1px solid #6B7F78; height: 1.2em; vertical-align: bottom; margin-right: 1rem; }
.write-line--long { min-width: 80%; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.5rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.1rem; height: 1.1rem; border: 2px solid var(--sage-deep); border-radius: 4px; background: var(--white); }
.tracker { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.25rem; }
.tracker caption { text-align: left; font-weight: 600; padding-bottom: 0.4rem; color: var(--sage-deep); }
.tracker th, .tracker td { border: 1px solid #6B7F78; padding: 0.5rem; text-align: left; vertical-align: top; }
.tracker td { height: 3rem; }
.tracker.sensory td { height: 4rem; }
.print-brand { display: none; }

/* Learning Passport */
.passport-form { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); margin-top: 1.5rem; }
.passport-form .nav-buttons { grid-column: 1 / -1; }
.passport-form .field textarea { min-height: 5rem; }
.passport { margin-top: 1.5rem; }
.passport h2 { margin-bottom: 0.2rem; }
.passport__sub { font-weight: 600; color: var(--sage-text); margin-top: 0; }
.passport__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.passport__box { border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--sage-tint); }
.passport__box h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--sage-deep); }
.passport__box p { margin: 0 0 0.4rem; }
.passport__box--good, .passport__box--interests { background: var(--lavender-tint); }
.passport__box--hard, .passport__box--overwhelmed { background: var(--apricot-tint); }
.passport__box--helps, .passport__box--please { background: var(--pink-tint); }
.passport__foot { font-size: 0.9rem; color: #4A4452; margin-top: 1rem; }

/* Classroom Support Finder */
.finder { margin-top: 1.5rem; }
.finder-legend { font-size: 1.15rem; font-weight: 600; color: var(--sage-deep); padding: 0; margin-bottom: 0.5rem; }
.finder-refs { font-size: 0.85rem; color: #4A4452; }
.nav-card ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }

/* My Kind of Mind */
.kids { font-size: 1.125rem; }
.kids h2 { color: var(--purple); }
.kids-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.kids-list li { background: var(--lavender-tint); border-radius: 12px; padding: 0.7rem 0.9rem; margin: 0; }

@media print {
  .no-print, .site-header, .site-footer, .draft-banner, .skip-link, .page-status, .references > p, .passport-form { display: none !important; }
  .print-brand { display: block; font-size: 9pt; color: #444; }
  .printable h2 { font-size: 13pt; margin-top: 0.8rem; }
  .write-in { background: none; border-bottom: none; min-height: 3.5rem; box-shadow: inset 0 -1px 0 #888; }
  .passport__box { border: 1px solid #999; break-inside: avoid; }
  .dir-filters, .dir-count { display: none; }
  .references a::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
}

/* Icons and colour */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--sage-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--sage { background: var(--sage-tint); }
.ico--lavender { background: var(--lavender-tint); }
.ico--apricot { background: var(--apricot-tint); }
.ico--pink { background: var(--pink-tint); }
.h-icon { display: flex; align-items: center; gap: 0.75rem; }
.prose h2.h-icon .ico, .references h2.h-icon .ico { width: 46px; height: 46px; }
.prose h2.h-icon .ico svg, .references h2.h-icon .ico svg { width: 25px; height: 25px; stroke: var(--ink); }
.prose h2.h-icon .ico--sage { background: var(--sage); }
.prose h2.h-icon .ico--lavender, .references h2.h-icon .ico--lavender { background: var(--lavender); }
.prose h2.h-icon .ico--apricot { background: var(--apricot); }
.prose h2.h-icon .ico--pink { background: var(--pink); }
h3.h-icon .ico { width: 34px; height: 34px; }
h3.h-icon .ico svg { width: 19px; height: 19px; }

.page-head { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem 2rem; border-radius: 22px; background: var(--sage-tint); }
.page-head h1 { margin-bottom: 0.5rem; }
.page-head__icon { width: 72px; height: 72px; background: var(--white) !important; }
.page-head__icon svg { width: 40px; height: 40px; }
.page-head--lavender { background: var(--lavender-tint); }
.page-head--apricot { background: var(--apricot-tint); }
.page-head--pink { background: var(--pink-tint); }
@media (max-width: 600px) {
  .page-head { flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
  .page-head__icon { width: 56px; height: 56px; }
  .page-head__icon svg { width: 32px; height: 32px; }
}

.prose ul > li::marker { color: var(--sage-text); }
.prose h3 { color: var(--purple); }
.page-status__title { display: flex; align-items: center; gap: 0.6rem; }
.page-status__title .ico { width: 32px; height: 32px; }
.page-status__title .ico svg { width: 18px; height: 18px; }
.references { background: var(--mist); border-top: 0; border-radius: var(--radius); padding: 1.5rem 1.75rem; }

.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 0.9rem; }
.steps li { counter-increment: step; position: relative; padding: 1rem 1.25rem 1rem 4.25rem; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: 0.9rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); background: var(--sage-tint); }
.steps li:nth-child(4n+2)::before { background: var(--lavender-tint); }
.steps li:nth-child(4n+3)::before { background: var(--apricot-tint); }
.steps li:nth-child(4n+4)::before { background: var(--pink-tint); }

.nav-card { border-top: 6px solid var(--sage); }
.nav-cards > li:nth-child(4n+2) { border-top-color: var(--lavender); }
.nav-cards > li:nth-child(4n+3) { border-top-color: var(--apricot); }
.nav-cards > li:nth-child(4n+4) { border-top-color: var(--pink); }
.nav-card--note, .nav-card--help { border-top: 0; }
.nav-cards--note, .nav-cards--help { display: block; }
ol.nav-cards, ul.nav-cards:not(.nav-cards--note):not(.nav-cards--help) { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
@media (max-width: 420px) { ol.nav-cards, ul.nav-cards:not(.nav-cards--note):not(.nav-cards--help), .nav-options, .link-list, .passport-form { grid-template-columns: 1fr; } }

.dir-entry { border-left-width: 6px; }
.dir-entry--sage { border-left-color: var(--sage); }
.dir-entry--lavender { border-left-color: var(--lavender); }
.dir-entry--apricot { border-left-color: var(--apricot); }
.dir-entry--pink { border-left-color: var(--pink); }
.dir-list { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }

.glossary { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); }
.glossary dt, .glossary dd { margin: 0; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.glossary dt { background: var(--lavender-tint); }
.glossary dd { background: var(--white); }
@media (max-width: 600px) { .glossary { grid-template-columns: 1fr; } .glossary dt { border-bottom: 0; } }

.evidence-tag { border-left: 6px solid var(--lavender); }
.prose table th { background: var(--lavender-tint); }

@media print {
  .page-head { background: none; padding: 0; }
  .page-head__icon, .callout__icon { display: none; }
  .ico { background: none !important; }
  .nav-card, .link-list li, .dir-entry { border-color: #999; }
}

/* On this page */
.toc { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2rem; }
.toc__title { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--sage-deep); margin: 0 0 0.75rem; }
.toc__title .ico { width: 32px; height: 32px; }
.toc__title .ico svg { width: 18px; height: 18px; }
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toc__list li { margin: 0; }
.toc__list a { display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); background: var(--sage-tint); border: 2px solid transparent; }
.toc__item--lavender a { background: var(--lavender-tint); }
.toc__item--apricot a { background: var(--apricot-tint); }
.toc__item--pink a { background: var(--pink-tint); }
.toc__list a:hover { border-color: var(--sage-deep); text-decoration: underline; }
.prose h2[id], .references h2[id] { scroll-margin-top: 1.5rem; }

/* Directory groups */
.dir-group { margin-top: 2rem; }
.dir-group[hidden] { display: none; }

/* Header stays at the top while scrolling on larger screens */
@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); box-shadow: 0 2px 0 var(--line); }
  .prose h2[id], .references h2[id] { scroll-margin-top: 9rem; }
}
@media print { .toc { display: none; } .site-header { position: static; } }

/* Homepage story extract */
.story-snip { margin: 3rem 0; padding: 2rem; border-radius: 22px; background: var(--pink-tint); }
.story-snip h2 { margin-top: 0; }
.story-snip blockquote { margin: 0 0 1rem; padding-left: 1.25rem; border-left: 5px solid var(--pink); font-size: 1.15rem; }
.story-snip__by { font-weight: 600; margin: 0; }

/* Homepage affirmation */
.affirmation { margin: 3rem 0; padding: 2.25rem 2rem; border-radius: 22px; background: var(--lavender-tint); border-top: 6px solid var(--lavender); text-align: center; }
.affirmation p { margin: 0 auto; max-width: 34ch; color: var(--sage-deep); }
.affirmation__lead { font-size: 1.2rem; }
.affirmation .affirmation__main { margin-top: 0.5rem; font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2rem); font-weight: 700; line-height: 1.25; }
.page-status__note { margin: 0.75rem 0 0; font-size: 0.95rem; }
.page-status__more { margin: 0.5rem 0 0; font-size: 0.95rem; }

/* Citations and evidence labels */
.cite { font-size: 0.75em; line-height: 0; margin-left: 0.1em; white-space: nowrap; }
.cite a { text-decoration: none; font-weight: 700; padding: 0 0.1em; }
.cite a:hover, .cite a:focus { text-decoration: underline; }
.references li:target { background: var(--apricot-tint); border-radius: 8px; outline: 3px solid var(--apricot); outline-offset: 4px; }
.ev { display: inline-block; font-size: 0.8rem; font-weight: 600; line-height: 1.3; padding: 0.1rem 0.5rem; border-radius: 999px; margin-left: 0.3rem; vertical-align: 0.1em; color: var(--ink); background: var(--sage-tint); border: 1px solid #9DB5AC; }
.ev--strong, .ev--guideline, .ev--official { background: var(--sage-tint); }
.ev--professional, .ev--emerging { background: var(--lavender-tint); border-color: #B9A6C9; }
.ev--lived { background: var(--pink-tint); border-color: #D9A9B2; }
.ev--practical { background: var(--apricot-tint); border-color: #D7B48A; }

/* My Kind of Mind zones */
.kid-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.kid-zone { display: block; padding: 1.25rem 1.4rem; border-radius: 22px; text-decoration: none; color: var(--ink); background: var(--sage-tint); border: 3px solid transparent; }
.kid-zone:hover, .kid-zone:focus-visible { border-color: var(--sage-deep); }
.kid-zone__title { display: block; font-size: 1.3rem; font-weight: 700; color: var(--purple); }
.kid-zone__text { display: block; margin-top: 0.25rem; }
.kid-zone--lavender { background: var(--lavender-tint); }
.kid-zone--apricot { background: var(--apricot-tint); }
.kid-zone--pink { background: var(--pink-tint); }
.draw-box { border: 2px dashed #6B7F78; border-radius: 16px; min-height: 14rem; margin: 0.5rem 0 1.25rem; }
.draw-box--short { min-height: 9rem; }
@media print { .kid-zones { display: none; } .draw-box { border-color: #888; } }

/* Support directory: menu button and end-of-page panel */
.nav-cta { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; padding: 0.3rem 0.9rem 0.3rem 0.35rem; border-radius: 999px; background: var(--apricot-tint); border: 2px solid var(--apricot); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-cta:hover, .nav-cta[aria-current="page"] { border-color: var(--sage-deep); color: var(--ink); }
.nav-cta .ico { width: 28px; height: 28px; background: var(--white) !important; }
.nav-cta .ico svg { width: 17px; height: 17px; }
@media (max-width: 420px) {
  .nav-cta { font-size: 0.85rem; padding: 0.25rem 0.7rem 0.25rem 0.3rem; }
  .nav-cta .ico { width: 24px; height: 24px; }
}
.dir-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 3rem; padding: 1.5rem 1.75rem; border-radius: 22px; background: var(--apricot-tint); }
.dir-cta__icon { width: 56px; height: 56px; background: var(--white) !important; }
.dir-cta__icon svg { width: 30px; height: 30px; }
.dir-cta__text { flex: 1 1 18rem; }
.dir-cta__text p { margin: 0; }
.dir-cta__title { font-weight: 700; font-size: 1.15rem; color: var(--sage-deep); margin-bottom: 0.2rem !important; }
.site-footer__dir { margin: 1rem 0 0; }
.site-footer__dir a { font-weight: 600; }
@media print { .dir-cta, .nav-cta { display: none; } }

/* Link card descriptions */
.link-list__body { display: flex; flex-direction: column; gap: 0.2rem; }
.link-list__desc { font-size: 0.95rem; color: #4A4452; }

/* Footer */
.site-footer { background: var(--sage-deep); color: var(--cream); padding: 2.5rem 0 2rem; font-size: 0.975rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--cream); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.site-footer__brand { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.4rem; }
.site-footer__heading { color: var(--cream); font-size: 1rem; margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer__small { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(252, 250, 247, 0.3); }

/* Motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .skip-link, .draft-banner { display: none; }
  body { background: #fff; font-size: 12pt; }
  a { color: #000; }
}

/* HTML site map */
.site-map { columns: 2 18rem; column-gap: 2rem; padding-left: 1.2rem; }
.site-map li { break-inside: avoid; margin: 0 0 0.4rem; }

/* Fill-in-on-screen forms (printable resources) */
.fill-note { background: var(--sage-tint); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.fill-note p { margin: 0 0 0.75rem; }
.fill-note p:last-child { margin: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.printable input.write-line { height: auto; min-height: 2.2rem; padding: 0.2rem 0.4rem; font: inherit; color: var(--ink); background: var(--white); border: 0; border-bottom: 2px solid #6B7F78; border-radius: 4px 4px 0 0; }
.printable textarea.fill { display: block; width: 100%; box-sizing: border-box; font: inherit; line-height: 1.5rem; color: var(--ink); padding: 0.4rem 0.5rem; resize: vertical; border-radius: 6px; }
.printable textarea.write-in { border: 0; border-bottom: 1px solid #6B7F78; background-color: var(--white); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.5rem - 1px), #CFDDD7 calc(1.5rem - 1px), #CFDDD7 1.5rem); background-position: 0 0.4rem; min-height: 4.5rem; }
.printable textarea.write-in--tall { min-height: 9rem; }
.printable textarea.draw-box { border: 2px dashed #6B7F78; border-radius: 16px; background: var(--white); padding: 0.75rem 1rem; }
.printable textarea.draw-box::placeholder, .printable textarea.fill::placeholder { color: #6B7F78; }
.printable td.cell-fill { padding: 0; }
.printable textarea.cell-text { border: 0; border-radius: 0; background: var(--white); min-height: 3rem; height: 100%; }
.printable td.cell-tick { text-align: center; vertical-align: middle; }
.printable input.fill-tick { width: 1.4rem; height: 1.4rem; accent-color: var(--sage-deep); cursor: pointer; }
.printable .checklist--fillable li { display: flex; gap: 0.75rem; align-items: flex-start; padding-left: 0; }
.printable .checklist--fillable li::before { content: none; }
.printable .checklist--fillable input.fill-tick { flex: none; margin-top: 0.15rem; }
.printable .fill:focus-visible { outline: var(--focus); outline-offset: 2px; }
@media print {
  .printable textarea.fill, .printable input.write-line { resize: none; overflow: hidden; background-color: transparent; }
  .printable textarea.write-in { background-image: none; box-shadow: inset 0 -1px 0 #888; }
  .printable textarea.draw-box { border-color: #888; }
  .printable .fill::placeholder { color: transparent; }
  .printable input.fill-tick { accent-color: #000; }
}
.fill-hint { font-size: 0.9rem; color: #4A4452; margin: 0 0 0.25rem; }
