/* Community Search Network site styles */
:root {
  --ink: #032B4F;        /* navy: text, header */
  --ink-soft: #3A5670;
  --green: #086B4C;      /* trust, links */
  --green-deep: #05523A;
  --orange: #F49B1E;     /* action, never text on white */
  --gold: #C2AD56;       /* compass accents */
  --mist: #EAF2F0;       /* quiet section ground */
  --contour: #CFE0DB;
  --paper: #FFFFFF;
  --sun: #FFD43B;        /* bright accent: hope. Fills and highlights only, always with navy text */
  --radius-s: 6px;
  --radius-l: 18px;
  --display: "Lexend", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

/* Alert bar */
.alertbar { background: var(--ink); color: #fff; font-size: 1rem; }
.alertbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.alertbar p { margin: 0; }
.alertbar a { color: #fff; }
.alertbar__login { font-weight: 700; white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--contour); background: var(--paper); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand img { width: 210px; }
.sitenav { display: flex; align-items: center; gap: 20px; }
.sitenav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.sitenav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.sitenav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.navtoggle { display: none; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  padding: 0.75em 1.3em; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  line-height: 1.2;
}
.btn--go { background: var(--orange); color: var(--ink); }
.btn--go:hover { background: #E08A10; color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.sitenav .btn--support, .btn--support { background: var(--green); color: #fff; padding: 0.55em 1.1em; font-size: 0.98rem; }
.sitenav .btn--support:hover, .btn--support:hover { background: var(--green-deep); color: #fff; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Hero: the search line */
.hero { position: relative; overflow: hidden; background: var(--mist); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.hero__lede { font-size: 1.25rem; color: var(--ink-soft); }
.hero__tag { font-family: var(--display); font-weight: 600; color: var(--green); margin-bottom: 0.8rem; letter-spacing: 0.02em; }
.searchline { width: 100%; }
.searchline .trail { stroke-dasharray: 2 12; }
@media (prefers-reduced-motion: no-preference) {
  .searchline .walkers { animation: walk 2.4s cubic-bezier(.3,.7,.3,1) both; }
  .searchline .reveal { animation: reveal 2.4s cubic-bezier(.3,.7,.3,1) both; }
  @keyframes walk { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Sections */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink a { color: #fff; }
.section__intro { max-width: 60ch; margin-bottom: 2rem; }
.section__intro p { color: var(--ink-soft); }
.section--ink .section__intro p { color: #D6E2EC; }

/* How CSN works: a true sequence, drawn as a trail with waypoints */
.trailsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: step; }
.trailsteps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; border-top: 3px dashed var(--gold); }
.trailsteps li { position: relative; counter-increment: step; }
.trailsteps li::before {
  content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--ink); font-family: var(--display); font-weight: 700; margin-bottom: 14px; position: relative;
}
.trailsteps li:last-child::before { background: var(--orange); border-color: var(--orange); }
.trailsteps h3 { margin-bottom: 0.3em; }
.trailsteps p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split--wide { grid-template-columns: 1.2fr 1fr; }

/* Topographic ground: used on two sections only (home "How CSN works", volunteer levels) */
.section--topo { background: var(--paper) url("/assets/topo.svg") center / cover no-repeat; }

/* Volunteer levels: each level has a color, a figure and a flagging-tape badge */
.lvl-spotter { --lvl: var(--gold); --lvl-ink: var(--ink); }
.lvl-mobile { --lvl: var(--green); --lvl-ink: #fff; }
.lvl-pro { --lvl: var(--ink); --lvl-ink: #fff; }
.lvl-assist { --lvl: var(--orange); --lvl-ink: var(--ink); }
.lvlbadge {
  display: inline-block; background: var(--lvl); color: var(--lvl-ink);
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.3;
  padding: 0.2em 1.25em 0.25em 0.7em; margin: 0 0 0.55em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
}
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.levels::before { content: ""; position: absolute; left: 0; right: 0; top: 128px; border-top: 3px dashed var(--gold); }
.levels > li { position: relative; max-width: none; display: flex; flex-direction: column; align-items: flex-start; }
.levels__fig { width: 160px; height: 140px; margin-bottom: 14px; }
.levels__tag { font-family: var(--display); font-weight: 600; margin-bottom: 0.35em; }
.levels p { font-size: 1rem; }
.levels p:not(.levels__tag) { color: var(--ink-soft); }
.levels .btn { margin-top: auto; }
.section__foot { margin: 2rem 0 0; }

/* Training paths: one core trail that branches to each level */
.paths__core { background: var(--ink); color: #fff; padding: 20px 24px; border-radius: var(--radius-s); max-width: 760px; }
.paths__core h3 { color: #fff; }
.paths__core p { margin: 0; color: #D6E2EC; }
.paths__branches { list-style: none; margin: 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.paths__branches::before { content: ""; position: absolute; top: 14px; left: 0; right: calc((100% - 72px) / 4 - 3px); border-top: 3px solid var(--ink); }
.paths__branches::after { content: ""; position: absolute; top: 0; left: 0; height: 17px; border-left: 3px solid var(--ink); }
.paths__branches > li { position: relative; border-left: 6px solid var(--lvl); padding: 2px 0 4px 16px; max-width: none; }
.paths__branches > li::before { content: ""; position: absolute; top: -18px; left: -6px; height: 18px; border-left: 3px solid var(--ink); }
.paths__branches .lvlbadge { font-size: 1.05rem; }
.paths__branches p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* Learn skills: each skill is a stitched field patch */
.patches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.patches > li { display: flex; flex-direction: column; gap: 16px; max-width: none; }
.patches strong { display: block; font-family: var(--display); font-weight: 600; line-height: 1.3; margin-bottom: 0.2em; }
.patches span:not(.patch) { display: block; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.patch { --c: var(--green); position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--paper); border: 6px solid var(--c); }
.patch::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px dashed var(--c); }
.patch svg { width: 42px; height: 42px; }
.patches > li:nth-child(4n+1) .patch { --c: var(--orange); }
.patches > li:nth-child(4n+2) .patch { --c: var(--ink); }
.patches > li:nth-child(4n+3) .patch { --c: var(--gold); }

/* Apply: other roles drawn as blades on a trail signpost */
.signpost { list-style: none; margin: 0; padding: 0 0 28px; display: grid; gap: 14px; position: relative; }
.signpost::before { content: ""; position: absolute; left: 26px; top: -18px; bottom: 0; width: 16px; background: var(--ink); border-radius: 8px 8px 0 0; }
.blade {
  --blade: var(--green); --blade-ink: #fff;
  position: relative; max-width: none; background: var(--blade); color: var(--blade-ink);
  padding: 18px 64px 20px 56px;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%);
}
.blade::before { content: ""; position: absolute; left: 29px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: currentColor; opacity: 0.55; }
.blade:nth-child(even) { margin-right: 8%; }
.blade h3 { margin-bottom: 0.25em; }
.blade p { font-size: 1rem; margin-bottom: 0.6em; }
.blade a { color: inherit; font-weight: 700; }
.blade a:focus-visible { outline-color: currentColor; }
.blade--ink { --blade: var(--ink); }
.blade--gold { --blade: var(--gold); --blade-ink: var(--ink); }
.blade--orange { --blade: var(--orange); --blade-ink: var(--ink); }

/* Support: a check-in clipboard */
.clipboard { position: relative; background: var(--gold); padding: 30px 14px 14px; border-radius: 14px; margin-top: 18px; }
.clipboard::before { content: ""; position: absolute; top: -14px; left: 50%; width: 132px; height: 34px; margin-left: -66px; background: var(--ink); border-radius: 10px 10px 6px 6px; }
.clipboard__paper { background: var(--paper); border-radius: 4px; padding: 26px 24px 10px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist > li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--contour); max-width: none; }
.checklist > li::before { content: ""; width: 22px; height: 22px; margin-top: 4px; border: 2.5px solid var(--ink); border-radius: 4px; }
.checklist strong { font-family: var(--display); font-weight: 600; }

/* Partners: search rings with a pin for each kind of partner */
.rings { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.rings__map { max-width: 380px; }
.pinlist { list-style: none; margin: 0; padding: 0; }
.pinlist > li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--contour); max-width: none; }
.pinlist > li:first-child { border-top: 2px solid var(--ink); }
.pinlist svg { width: 22px; height: 30px; margin-top: 2px; }
.pinlist strong { font-family: var(--display); font-weight: 600; }

/* Background checks: where the report lives and what CSN keeps */
.vault { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--ink); border-radius: var(--radius-l); overflow: hidden; margin: 0 0 2.5rem; }
.vault__side { padding: clamp(22px, 3vw, 32px); }
.vault__side:first-child { background: var(--ink); color: #fff; }
.vault__side:first-child h2 { color: #fff; }
.vault__side:first-child p { color: #D6E2EC; }
.vault__side h2 { font-size: 1.35rem; display: flex; gap: 12px; align-items: center; margin-top: 0; }
.vault__side svg { width: 30px; height: 30px; flex: none; }
.vault__side p:last-child { margin: 0; }

.stack > * + * { margin-top: 2rem; }

/* Callouts */
.note { border-left: 6px solid var(--orange); background: #FFF6E8; padding: 18px 22px; border-radius: 0 var(--radius-s) var(--radius-s) 0; max-width: 70ch; }
.note--green { border-color: var(--green); background: #E7F2EE; }
.note p:last-child { margin: 0; }
.note a { overflow-wrap: anywhere; }
.emergency { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); }
.emergency h2 { color: #fff; }
.emergency .big { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--orange); margin: 0 0 0.3em; }
.emergency a { color: #fff; }

/* Page header for inner pages */
.pagehead { background: var(--mist); padding-block: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--contour); }
.pagehead p { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* Prose */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--contour); padding: 16px 0; max-width: 75ch; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.15rem; cursor: pointer; list-style-position: outside; }
.faq details[open] summary { color: var(--green); }
.faq details p { margin: 0.8em 0 0; }

/* Contact list */
.contacts { list-style: none; padding: 0; margin: 0; }
.contacts li { padding: 14px 0; border-bottom: 1px solid var(--contour); display: grid; grid-template-columns: 12rem 1fr; gap: 12px; max-width: none; }
.contacts strong { font-family: var(--display); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #D6E2EC; font-size: 1rem; padding-top: 56px; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.7fr 1fr; gap: 32px; }
.site-footer__logo { width: 150px; margin-bottom: 18px; }
.site-footer__h { font-size: 1.05rem; color: #fff; margin-bottom: 0.8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5em; overflow-wrap: anywhere; }
.site-footer__base { border-top: 1px solid #1C4468; margin-top: 40px; padding-block: 18px; }
.site-footer__base p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .levels::before { display: none; }
  .paths__branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paths__branches::before { right: calc((100% - 24px) / 2 - 3px); }
}
@media (max-width: 860px) {
  .rings { grid-template-columns: 1fr; }
  .rings__map { max-width: 260px; }
}
@media (max-width: 640px) {
  .levels { grid-template-columns: 1fr; row-gap: 28px; }
  .levels > li { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-items: start; }
  .levels__fig { width: 112px; height: 98px; margin: 0; grid-row: span 5; }
  .levels .btn, .levels .lvlbadge { justify-self: start; }
  .levels .btn { margin-top: 0.4rem; }
  .patches { grid-template-columns: 1fr; }
  .patches > li { display: grid; grid-template-columns: 72px 1fr; align-items: center; }
  .patch { width: 72px; height: 72px; border-width: 5px; }
  .patch svg { width: 34px; height: 34px; }
  .paths__branches { grid-template-columns: 1fr; padding: 20px 0 0 24px; gap: 20px; }
  .paths__branches::before, .paths__branches::after { display: none; }
  .paths__branches > li::before { top: -20px; left: -30px; width: 24px; height: 34px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
  .paths__branches > li:not(:last-child)::after { content: ""; position: absolute; top: 14px; bottom: -20px; left: -30px; border-left: 3px solid var(--ink); }
  .blade { padding: 16px 48px 18px 52px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
  .blade:nth-child(even) { margin-right: 0; }
  .vault { grid-template-columns: 1fr; }
}

@media (max-width: 1060px) {
  .navtoggle { display: inline-block; font: 600 1rem var(--display); background: var(--paper); border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 0.45em 1em; }
  .sitenav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--contour); z-index: 5; }
  .sitenav.open { display: flex; }
  .sitenav ul { flex-direction: column; gap: 12px; }
  .site-header { position: relative; }
}
@media (max-width: 860px) {
  .hero__in, .split, .split--wide { grid-template-columns: 1fr; }
  .trailsteps { grid-template-columns: 1fr; gap: 22px; }
  .trailsteps::before { top: 22px; bottom: 22px; left: 22px; right: auto; border-top: 0; border-left: 3px dashed var(--gold); }
  .trailsteps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
  .trailsteps li::before { margin: 0; grid-row: span 2; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .contacts li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .brand img { width: 168px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .alertbar__in { flex-wrap: wrap; }
}

.section--ink .btn--line { border-color: #fff; color: #fff; }
.section--ink .btn--line:hover { background: #fff; color: var(--ink); }

/* Brand stripe: the four logo colors, used once under the header */
.site-header { border-bottom: 0; }
.site-header::after { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--green) 0 25%, var(--orange) 25% 50%, var(--gold) 50% 75%, var(--ink) 75%); }

/* Animated mark: motion rules live inside the SVG (see build.mjs); plays once per visit on the home page */
.mark { width: clamp(210px, 28vw, 300px); margin-bottom: 18px; overflow: visible; }

/* Levels comparison table */
.tablewrap { overflow-x: auto; margin: 2.5rem 0 1.25rem; }
.compare { border-collapse: collapse; width: 100%; min-width: 720px; background: var(--paper); font-size: 1rem; }
.compare caption { text-align: left; font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.6em; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--contour); }
.compare thead th { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; }
.compare tbody th { border-left: 6px solid var(--lvl); white-space: nowrap; }
.compare .lvlbadge { font-size: 1rem; margin: 0; }

/* Sign-up form */
.signup { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); }
.signup__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.signup__wide { grid-column: 1 / -1; }
.signup label { display: block; font-weight: 600; font-size: 1rem; }
.signup__opt { font-weight: 400; color: var(--ink-soft); }
.signup input:not([type=checkbox]), .signup select, .filters select {
  display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink-soft); border-radius: var(--radius-s); padding: 0.55em 0.7em;
}
.signup__check { display: grid !important; grid-template-columns: 26px 1fr; gap: 10px; font-weight: 400 !important; font-size: 0.95rem !important; line-height: 1.45; margin-bottom: 14px; }
.signup__check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.signup__msg { font-weight: 600; margin: 14px 0 0; }
.signup__msg:empty { display: none; }
.signup__msg.is-err { color: #9B1C1C; }
.signup__fine { font-size: 0.9rem; color: var(--ink-soft); margin: 14px 0 0; }

/* Learn: basics cards */
.basics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.basics__card { --c: var(--orange); position: relative; max-width: none; background: var(--paper); border: 3px solid var(--ink); border-top: 12px solid var(--c); border-radius: var(--radius-l); padding: 22px 24px; }
.basics__card--green { --c: var(--green); }
.basics__card--ink { --c: var(--gold); }
.basics__card h3 { font-size: 1.5rem; }
.basics__card h3 a { color: var(--ink); }
.basics__card h3 a::after { content: ""; position: absolute; inset: 0; }
.basics__card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--c); }
.basics__card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.basics__time { font-family: var(--display); font-weight: 600; color: var(--green) !important; margin-bottom: 0.5em !important; }
@media (prefers-reduced-motion: no-preference) { .basics__card { transition: transform .15s, box-shadow .15s; } }

/* Lesson pages */
.crumbs { font-size: 1rem !important; margin-bottom: 0.6em !important; }
.lesson { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.lesson__nav { position: sticky; top: 16px; border-left: 6px solid var(--gold); padding-left: 16px; font-size: 1rem; }
.lesson__nav ol { margin: 0; padding-left: 1.2em; }
.lesson__nav li { margin-bottom: 0.45em; }
.lesson__nav a { color: var(--ink); font-weight: 600; }
.keyfact { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 22px 26px; margin-bottom: 2rem; font-size: 1.2rem; }
.keyfact p { margin: 0; max-width: none; }
.keyfact strong { color: var(--orange); }
.stats { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 1.5rem 0; }
.stats li { background: var(--mist); border-radius: var(--radius-l); padding: 18px; margin: 0; }
.stats strong { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; color: var(--green); margin-bottom: 0.3em; }
.stats span { font-size: 0.95rem; color: var(--ink-soft); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 1.25rem 0; }
.twocol > div { background: var(--mist); border-radius: var(--radius-l); padding: 20px 22px; }
.twocol h3 { margin-top: 0; }
.twocol .do { background: #E7F2EE; border-top: 8px solid var(--green); }
.twocol .dont { background: #FFF6E8; border-top: 8px solid var(--orange); }
.bigsteps { list-style: none; padding: 0 !important; counter-reset: big; }
.bigsteps li { counter-increment: big; position: relative; padding: 4px 0 14px 60px; max-width: 62ch; }
.bigsteps li::before { content: counter(big); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.next { display: flex; flex-wrap: wrap; gap: 12px; margin: 2.5rem 0 1rem; }
.reviewed { font-size: 0.9rem; color: var(--ink-soft); }

/* Practice scenarios */
.sim { border: 3px solid var(--ink); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 28px); background: var(--paper); }
.sim__label { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--green); margin-bottom: 0.6em; }
.sim__steps { padding-left: 1.3em; margin: 0; }
.sim__steps > li { margin-bottom: 1.4em; max-width: none; }
.sim.js .sim__steps > li[hidden] { display: none; }
.sim__q { font-weight: 600; }
.sim__opts { display: grid; gap: 10px; }
.sim__opts button { font: inherit; text-align: left; color: var(--ink); background: var(--mist); border: 2px solid var(--ink-soft); border-radius: var(--radius-s); padding: 0.7em 0.9em; cursor: pointer; }
.sim__opts button:hover { border-color: var(--ink); }
.sim__opts button.is-right { background: #E7F2EE; border-color: var(--green); font-weight: 600; }
.sim__opts button.is-wrong { background: #FFF6E8; border-color: var(--orange); }
.sim__fb { margin: 12px 0 0; padding: 12px 16px; border-left: 6px solid var(--orange); background: #FFF6E8; }
.sim__fb.is-right { border-color: var(--green); background: #E7F2EE; }
.sim__fb:empty { display: none; }
.sim__done { font-family: var(--display); font-weight: 600; color: var(--green); margin: 0; }

/* Training directory */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; background: var(--mist); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 28px); margin-bottom: 1.5rem; }
.filters label { font-weight: 600; font-size: 1rem; }
.filters fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters legend { font-weight: 600; font-size: 1rem; margin-bottom: 8px; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 0.4em 0.95em; cursor: pointer; }
.pill:has(input:checked) { background: var(--ink); color: #fff; }
.pill input { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; }
.dir__count { font-family: var(--display); font-weight: 600; }
.dir { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.dir__item { max-width: none; border: 2px solid var(--contour); border-top: 8px solid var(--green); border-radius: var(--radius-l); padding: 18px 20px; display: flex; flex-direction: column; }
.dir__item[data-scope="virginia"] { border-top-color: var(--orange); }
.dir__item[data-scope="local"] { border-top-color: var(--gold); }
.dir__item[hidden] { display: none; }
.dir__item h3 { margin-bottom: 0.15em; }
.dir__item h3 a { color: var(--ink); }
.dir__item p { font-size: 1rem; margin-bottom: 0.7em; }
.dir__scope { font-family: var(--display); font-weight: 600; font-size: 0.9rem !important; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4em !important; }
.dir__org { color: var(--ink-soft); font-weight: 600; }
.chips { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 0.15em 0.75em; background: var(--mist); max-width: none; }
.chip--free { background: var(--green); color: #fff; }
.chip--cert { background: var(--gold); color: var(--ink); }
.chip--pro { background: var(--ink); color: #fff; }
.chip--paid { background: #FFE3B8; }

@media (max-width: 860px) {
  .lesson { grid-template-columns: 1fr; }
  .lesson__nav { position: static; }
  .basics, .stats, .twocol, .filters, .signup__grid { grid-template-columns: 1fr; }
}

/* Bright accent */
.hl { background: linear-gradient(transparent 62%, var(--sun) 62% 94%, transparent 94%); }
.pagehead { border-bottom: 6px solid var(--sun); }
.keyfact strong { color: var(--sun); }
.btn--go { box-shadow: 0 4px 0 var(--ink); }
.btn--go:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.basics__card--ink { --c: var(--sun); }
.sim { box-shadow: 10px 10px 0 var(--sun); }
.stats li { border-bottom: 6px solid var(--sun); }
.signup { box-shadow: 10px 10px 0 var(--sun); }
