/* Tool pages (public/tools/). Plain borders inside the tools (the rainbow is kept for the site's own boxes and
   buttons, so the tools stay calm). Works with every theme, text size, Easy Read and the dyslexia font. */

.tool-hero { padding: 48px 0 36px; }
.tool-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.crumbs { margin: 0 0 10px; font-size: .95rem; }
.crumbs a { color: var(--link); }
.privacy { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; margin: 18px 0 0; }
.privacy svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--r4); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h3 { font-size: 1.25rem; }
.tool-body { padding-top: 48px; }
.no-js { color: var(--muted); }
.js .no-js { display: none; }

/* Panels and controls */
.panel { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 14px; }
.panel h3 { font-size: 1.1rem; margin: 18px 0 10px; }
.panel > :last-child { margin-bottom: 0; }
.hint { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.easy-read .hint { color: var(--text); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row + .row { margin-top: 12px; }
.grow { flex: 1 1 220px; min-width: 0; }
label.field { display: grid; gap: 6px; font-weight: 700; }
.tool input[type="text"], .tool input[type="number"], .tool input[type="tel"], .tool select, .tool textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  min-height: 48px; padding: 8px 12px; width: 100%; max-width: 100%; }
.tool textarea { min-height: 96px; resize: vertical; }
.tool input:focus-visible, .tool select:focus-visible, .tool textarea:focus-visible { border-color: var(--focus); }
.tool input[type="number"] { width: 7em; }
.tool input[type="range"] { width: min(100%, 280px); accent-color: var(--r5); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; font-weight: 400; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 3px 0 0; flex: none; accent-color: var(--r4); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 20px; }

/* Plain tool buttons (no rainbow) */
.tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 18px; font: inherit; font-weight: 700;
  color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; }
.tbtn:hover { background: var(--surface-2); }
.tbtn[aria-pressed="true"] { border-color: var(--r5); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--r5); }
.tbtn[aria-pressed="true"]::before { content: "✓"; color: var(--r4); }
.theme-contrast .tbtn[aria-pressed="true"] { border-color: #FFF; box-shadow: inset 0 0 0 2px #FFF; }
.tbtn.small { min-height: 44px; padding: 4px 12px; font-size: .9rem; }
.tbtn.icon { min-width: 44px; padding: 4px 10px; }
.tbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbtn.danger:hover { border-color: var(--r1); }
.tool .btn-primary { border: 2px solid var(--primary); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.note { padding: 14px 18px; border-radius: var(--radius-sm); border: 2px solid var(--r3); background: var(--surface); margin: 14px 0; }
.note.good { border-color: var(--r4); }
.note.warn { border-color: var(--r2); }
.note p:last-child { margin-bottom: 0; }

/* Symbol pictures always sit on white, so the drawings are clear on every theme */
.pic { display: block; background: #FFF; border-radius: 14px 0 14px 0; padding: 6px; }
.pic img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Talking AAC board ---------- */
.aac-bar { position: sticky; top: 84px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--bg);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 18px; }
.compact-header .aac-bar, .menu-open .aac-bar { position: static; }
.aac-words { flex: 1 1 300px; display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px; align-items: center; min-width: 0; }
.aac-words:empty::before { content: attr(data-empty); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 12px; background: var(--surface-2); font-weight: 700; }
.chip .pic { width: 40px; height: 40px; padding: 3px; }
.aac-tabs { margin-bottom: 16px; }
.aac-grid { --cell: 140px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--cell)), 1fr)); gap: 12px; }
.size-s .aac-grid { --cell: 110px; } .size-l .aac-grid { --cell: 190px; }
.aac-cell { width: 100%; display: grid; gap: 8px; justify-items: center; padding: 10px; font: inherit; font-weight: 700; color: var(--text);
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; text-align: center; overflow-wrap: anywhere; }
.aac-cell:hover { border-color: var(--r5); }
.aac-cell:active { transform: scale(.97); }
.aac-cell .pic { width: 100%; aspect-ratio: 1; }
.aac-cell .txt-only { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: #FFF; color: #1C1D2A; border-radius: 14px 0 14px 0; font-size: 1.3em; padding: 6px; }
.hide-words .aac-cell .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cell-wrap { position: relative; }
.cell-wrap .remove { position: absolute; top: -8px; right: -8px; }
@media (prefers-reduced-motion: reduce) { .aac-cell:active { transform: none; } }

/* ---------- Printable cards (preview looks like paper) ---------- */
.sheet { background: #FFF; color: #1C1D2A; border-radius: 8px; padding: 24px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.sheet h2 { color: #1C1D2A; font-size: 1.6rem; text-align: center; margin-bottom: 16px; }
.pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.sz-l .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sz-s .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard { border: 1.5px dashed #9A9AAE; padding: 10px; display: grid; gap: 6px; justify-items: center; text-align: center; font-weight: 700; break-inside: avoid; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pcard .word { font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.sz-s .pcard .word { font-size: 1rem; }
.words-top .pcard .word { order: -1; }
.words-none .pcard .word { display: none; }
.pcard .txt-card { display: grid; place-items: center; width: 100%; aspect-ratio: 1; font-size: 1.6rem; }
.sched { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; gap: 10px; }
.sched li { display: grid; grid-template-columns: 44px 96px 1fr 48px; gap: 14px; align-items: center; border: 2px solid #C9C9D6; border-radius: 18px 0 18px 0; padding: 8px 12px; font-size: 1.3rem; font-weight: 700; }
.sched .n { font-size: 1.5rem; color: #4B2DB8; text-align: center; }
.sched img { width: 96px; height: 96px; object-fit: contain; }
.sched .box { width: 40px; height: 40px; border: 3px solid #1C1D2A; border-radius: 8px; }
.ft { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ft > div { border: 3px solid #1C1D2A; border-radius: 28px 0 28px 0; padding: 16px; text-align: center; font-weight: 700; }
.ft .ft-label { font-size: 2rem; margin-bottom: 10px; }
.ft img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ft .word { font-size: 1.5rem; }
.card-pick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 10px; }
.card-pick .tbtn { width: 100%; height: 100%; flex-direction: column; padding: 8px; font-size: .9rem; }
.card-pick .tbtn::before { position: absolute; top: 6px; left: 8px; }
.card-pick li { position: relative; }
.card-pick .pic { width: 72px; height: 72px; }
.tool-aac-cards .card-pick .tbtn[aria-pressed="false"] { opacity: .6; }

/* ---------- Task simplifier ---------- */
.progress-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; font-weight: 700; }
.tool progress { width: min(100%, 360px); height: 16px; accent-color: var(--r4); }
.steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.step.done { border-color: var(--r4); }
.step.done input[type="text"] { text-decoration: line-through; color: var(--muted); }
.step input[type="checkbox"] { width: 28px; height: 28px; accent-color: var(--r4); flex: none; }
.step input[type="text"] { flex: 1 1 200px; min-height: 44px; }
.step .tools { display: flex; gap: 6px; }
.focus-card { text-align: center; padding: 34px 20px; }
.focus-card .count { color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.focus-card .big { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.25; margin: 0 0 26px; overflow-wrap: anywhere; }
.focus-card .row { justify-content: center; }

/* ---------- Energy planner ---------- */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.day { background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.day.low { border-color: var(--r2); }
.day.over { border-color: var(--r1); }
.day h3 { margin: 0 0 6px; font-size: 1.15rem; }
.meter { height: 16px; border-radius: 8px; background: var(--surface-2); overflow: hidden; margin: 6px 0; }
.meter span { display: block; height: 100%; background: var(--r4); border-radius: 8px; }
.day.low .meter span { background: var(--r3); }
.day.over .meter span { background: var(--r1); }
.day .left { font-weight: 700; margin: 0 0 8px; }
.acts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.acts li { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--surface); }
.acts .amt { font-weight: 700; white-space: nowrap; }
.acts .gives { color: var(--r4); }
.theme-light .acts .gives { color: #1F7A34; }
.acts .uses { color: var(--muted); }
.day details { margin-top: 6px; }
.day summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 44px; display: flex; align-items: center; }
.day form { display: grid; gap: 8px; margin-top: 8px; }

/* ---------- Visual timer ---------- */
.timer-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.timer-face { display: grid; justify-items: center; gap: 12px; }
.timer-svg { width: min(100%, 440px); height: auto; }
.timer-svg .bg { fill: #FFF; }
.timer-svg .rim { fill: none; stroke: var(--line); stroke-width: 1.5; }
.timer-svg .tick { stroke: #8A8DA6; stroke-width: 1; }
.timer-svg .hub { fill: #1C1D2A; }
.time-left { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.hide-numbers .time-left { visibility: hidden; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-btn { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--line); cursor: pointer; }
.swatch-btn[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.sw1 { background: #FF6B6B; } .sw2 { background: #FFA94D; } .sw3 { background: #FFD43B; } .sw4 { background: #69DB7C; } .sw5 { background: #4DABF7; } .sw6 { background: #B197FC; }
.timer-done { font-size: 1.4rem; font-weight: 700; }
.tool-timer .is-full { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 20px; }
.is-full .timer-svg { width: min(90vw, 80vh); }
@media (max-width: 860px) { .timer-wrap { grid-template-columns: 1fr; } }

/* ---------- My needs card ---------- */
.needs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.needs-preview { position: sticky; top: 96px; }
.compact-header .needs-preview { position: static; }
.ncard { background: #FFF; color: #1C1D2A; border-radius: 22px 0 22px 0; padding: 22px 24px; border: 3px solid #4B2DB8; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.ncard h2 { color: #1C1D2A; font-size: 1.4rem; margin-bottom: 4px; }
.ncard h3 { font-size: 1rem; margin: 14px 0 4px; color: #4B2DB8; }
.ncard p, .ncard li { font-size: 1rem; line-height: 1.45; margin: 0; }
.ncard ul { margin: 0; padding-left: 1.2em; }
.ncard .who { font-weight: 700; margin-bottom: 6px; }
.ncard .rings { width: 52px; height: 34px; float: right; }
.ncard .contact { margin-top: 14px; padding-top: 10px; border-top: 2px dashed #C9C9D6; }
@media (max-width: 860px) { .needs-layout { grid-template-columns: 1fr; } .needs-preview { position: static; } }

/* ---------- Printing: only the sheet or card is printed ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #FFF !important; color: #000 !important; }
  .skip-link, .site-header, .a11y-panel, .support, .kofi, .site-footer, .tool-hero, .no-print, .guide-band, .dog-game { display: none !important; }
  .section, .tool-body, .section-alt { padding: 0 !important; background: none !important; border: 0 !important; }
  .sheet, .ncard { box-shadow: none !important; border-radius: 0; }
  .sheet { padding: 0; }
  .needs-layout { display: block; }
  .print-wallet .ncard { width: 85mm; padding: 4mm 5mm; font-size: 8pt; border-width: 1.5pt; }
  .print-wallet .ncard h2 { font-size: 12pt; }
  .print-wallet .ncard h3 { font-size: 8pt; margin-top: 2mm; }
  .print-wallet .ncard p, .print-wallet .ncard li { font-size: 7.5pt; }
  .pcard { border-color: #777; }
}
.sheet .hint { color: #4A4C5E; font-size: .8rem; text-align: center; margin: 14px 0 0; }
.days { align-items: start; }
.acts li > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tool > .row { margin: 18px 0 22px; }

/* ---------- Calm corner ---------- */
.breath-wrap { display: grid; place-items: center; min-height: 300px; position: relative; }
.breath-circle { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--r5), var(--r6)); opacity: .85;
  transition-property: transform; transition-timing-function: ease-in-out; transform: scale(1); }
.breath-circle.in, .breath-circle.hold { transform: scale(2.1); }
.breath-circle.out { transform: scale(1); }
.breath-circle.still { transition: none; transform: none; }
.breath-circle.still.in, .breath-circle.still.hold { box-shadow: 0 0 0 14px color-mix(in srgb, var(--r5) 35%, transparent); }
.breath-cue { position: absolute; font-size: 1.5rem; font-weight: 700; margin: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.theme-light .breath-cue { text-shadow: 0 1px 6px rgba(255, 255, 255, .9); }
.ground { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ground li { display: flex; gap: 14px; align-items: center; font-size: 1.1rem; }
.gnum { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 1.3rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: 18px; }
.video-card h3 { font-size: 1.1rem; margin: 12px 0 4px; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 2px solid var(--line); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-cover { height: 100%; display: grid; place-items: center; padding: 20px; text-align: center; }
.video-title { font-weight: 700; font-size: 1.15rem; margin: 0; }

/* ---------- Learn, Resources and About ---------- */
.prose h2 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.callout { border: 2px solid var(--r4); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1.4em 0; background: var(--bg); }
.callout p:last-child { margin-bottom: 0; }
.sources { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.sources h2 { font-size: 1.2rem; }
.sources ul { padding-left: 1.2em; }
.res-group + .res-group { margin-top: 40px; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.res-list li { display: grid; gap: 4px; align-content: start; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.res-list a { font-weight: 700; }
.res-list span { color: var(--muted); font-size: .95rem; }
.easy-read .res-list span { color: var(--text); }

/* My card: photo and own-words lists */
.ncard-head { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; }
.ncard-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 18px 0 18px 0; flex: none; }
.ncard .pron { margin: 0; color: #4A4C5E; }
.ncard .contact p { margin: 2px 0 0; }
.print-wallet .ncard-photo { width: 18mm; height: 18mm; }
.own-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.own-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--surface); }
.card-pick .tbtn { text-align: center; }
.step-label { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; font-weight: 400; min-height: 44px; }
.step-pic { width: 56px; height: 56px; flex: none; padding: 4px; }
.step.done .step-text { text-decoration: line-through; color: var(--muted); }
.focus-pic { width: min(220px, 60vw); aspect-ratio: 1; margin: 0 auto 16px; }
.amt-tag { font-weight: 700; font-size: .85rem; }
.amt-tag.gives { color: var(--r4); }
.theme-light .amt-tag.gives { color: #1F7A34; }
.amt-tag.uses { color: var(--muted); }
.card-pick.quick .tbtn[aria-pressed] { opacity: 1; }
.country-nav ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.country { padding-top: 24px; scroll-margin-top: 100px; }
.country + .country { margin-top: 32px; border-top: 1px solid var(--line); }
.res-group h3 { font-size: 1.15rem; margin: 22px 0 12px; }
.res-group + .res-group { margin-top: 8px; }

/* Career ideas */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-bottom: 24px; }
.job { background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.job-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.job-head .pic { width: 64px; height: 64px; flex: none; }
.job h3 { margin: 0; font-size: 1.2rem; }
.job p { margin: 0 0 8px; }
.ways { margin: 0; padding-left: 1.1em; }
.ways li { margin: 4px 0; }
.ways .pref { font-weight: 700; }
.way { display: inline-block; font-size: .8rem; font-weight: 700; padding: 1px 8px; border-radius: 8px 0 8px 0; background: var(--surface-2); margin-right: 4px; }
#career-results:focus { outline: none; }

/* Script builder */
.script-lines { font-size: 1.4rem; line-height: 1.5; padding-left: 1.4em; margin: 0 0 14px; }
.script-lines li { margin: 0 0 10px; }
.script-tip { color: #4A4C5E; border-top: 2px dashed #C9C9D6; padding-top: 10px; margin: 0; }

/* Learn pages: "On this page" and topic sections */
.toc { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 1.6em; }
.toc .toc-title { font-size: 1.05rem; margin: 0 0 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.toc a:hover { border-color: var(--primary); }
.sub { margin-top: 2.6em; padding-top: 1.6em; border-top: 2px solid var(--line); scroll-margin-top: 100px; }
.sub > h2 { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }

/* Resources: four in a row, each with the organisation's logo (Melissa, 16 Nov 2026) */
.res-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .res-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .res-list { grid-template-columns: minmax(0, 1fr); } }
:is(.size-3, .font-dyslexic.size-2) .res-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.res-list li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.res-list li:hover, .res-list li:focus-within { transform: translateY(-4px); border-color: color-mix(in srgb, var(--r6) 60%, var(--line)); }
.res-list li > a { font-family: var(--heading); font-weight: 400; font-size: 1.25rem; line-height: 1.15; color: var(--text); text-decoration: none; }
.res-list li > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* the whole card is the link */
.res-list li > a:hover { text-decoration: underline; }
.res-list li > a:focus-visible { outline: none; } .res-list li:has(> a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.res-logo { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; background: #FFFFFF; overflow: hidden; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--r6) 25%, transparent); }
.res-logo img { width: 34px; height: 34px; object-fit: contain; }
.res-ini { background: linear-gradient(135deg, #FFC6A8, #F6B9E0 50%, #C9B6FF); color: #12102A; font: 700 .95rem var(--font); letter-spacing: .02em; }
.res-phone { background: linear-gradient(135deg, #FFC6A8, #F6B9E0 50%, #C9B6FF); }
.res-phone svg { width: 22px; height: 22px; fill: none; stroke: #12102A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.easy-read .res-list li > a, .font-dyslexic .res-list li > a { font-family: var(--font); font-weight: 700; font-size: 1.05rem; }
.theme-contrast .res-list li { background: #000; border: 2px solid #FFF; }
.theme-contrast .res-logo { box-shadow: 0 0 0 2px #FFF; }
@media (prefers-reduced-motion: reduce) { .res-list li { transition: none; } }

/* Reverse leaf corners on boxes (Melissa, 16 Nov 2026); this file loads after site.css so it is repeated here */
.toc, .callout, .note, .panel, .day, .job, .res-list li { border-radius: var(--leaf, 0 28px 0 28px); }

/* Career tool spacing (Melissa, 16 Nov 2026) */
#career-results > h2 { margin-top: 44px; }
#career-results > .panel { margin-top: 36px; }
.panel > .hint, .panel > p:last-child { margin: 22px 0 0; }
.ways a.way { text-decoration: none; }
.ways a.way:hover { text-decoration: underline; }
.job-more { margin: 14px 0 0; }
.job-more a { font-weight: 700; }
/* Career pathway pages */
.career-path .way-sec { margin-top: 48px; }
.career-path .way-pick { font-size: 1.1em; }
.career-path .find { display: flex; flex-wrap: wrap; gap: 10px; }
.career-path .find a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--tc, var(--line)); text-decoration: none; font-weight: 700; color: var(--text); }
.career-path .find a:hover { background: color-mix(in srgb, var(--tc) 16%, var(--surface)); }
.state-list, .online-list { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.online-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.state-list li, .online-list li { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--tc) 55%, var(--line)); border-radius: var(--leaf, 0 22px 0 22px); background: var(--bg); }
.state-list li { margin: 0 !important; }
.st-code { font-family: var(--heading); font-size: 1.5rem; line-height: 1; color: var(--tc); }
.st-name { font-size: .85rem; color: var(--muted); }
.online-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .state-list, .online-list { grid-template-columns: minmax(0, 1fr); } }
.online-list li { display: block; }
.online-list li strong { display: block; margin-bottom: 2px; }


/* ONE LINE WEIGHT (Melissa, 16 Nov 2026): every border, outline ring and underline on the whole site is the same weight as
   the Autism, ADHD and AuDHD circles on the home page (1px), on every theme, including High contrast. Focus outlines
   (keyboard focus) are not borders and stay thick so keyboard users can see where they are. */
body *, body *::before, body *::after { border-width: 1px !important; text-decoration-thickness: 1px !important; }
a, a:hover, .site-nav a, .toc a { text-decoration-thickness: 1px !important; }
.res-logo, .support-list .res-logo { box-shadow: 0 0 0 1px color-mix(in srgb, var(--r6) 45%, transparent) !important; }
.theme-contrast .res-logo, .theme-contrast .support-list .res-logo { box-shadow: 0 0 0 1px #FFF !important; }
#sub-tools > li:not(.mm-all) > a .mm-img { box-shadow: 0 0 0 1px var(--tc) !important; }
.dog-photos img { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, #FFD27A) 80%, transparent) !important; }
.about-ring { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)) !important; mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)) !important; }
.tool-shape .ts-line { stroke-width: 1 !important; }

/* Spacing inside tools (Melissa, 16 Nov 2026): boxes never touch the box above, and labels in a row line up at the top */
.tool > * + * { margin-top: 22px; }
.tool > .no-js + * { margin-top: 0; }
.row:has(> label.field) { align-items: flex-start; }
details.panel > summary { margin-bottom: 16px; }
details.panel:not([open]) > summary { margin-bottom: 0; }
.panel > * + :is(.row, h2, h3, .choices, label, .check, p, fieldset) { margin-top: 18px; }
.panel > .row + .row { margin-top: 14px; }
/* Learn page photos (Melissa, 16 Nov 2026) */
.learn-fig { margin: 18px 0 22px; }
.learn-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; border-radius: var(--leaf, 0 28px 0 28px); border: 1px solid var(--accent, var(--line)); }
@media (max-width: 560px) { .learn-fig img { aspect-ratio: 4 / 3; } }
/* "On this page": no underline under the title (Melissa: enough lines there already) */
.toc .toc-title, .topic .toc .toc-title { text-decoration: none !important; }
/* Learn photos sit to the right of the text, smaller (Melissa, 16 Nov 2026) */
.learn-fig { float: right; width: min(38%, 400px); margin: 6px 0 18px 32px; }
.learn-fig img { aspect-ratio: 4 / 3; }
.sub::after, .prose section::after { content: ""; display: table; clear: both; }
@media (max-width: 700px) { .learn-fig { float: none; width: 100%; margin: 12px 0 18px; } }
/* Note boxes (.callout): a subtle pastel rainbow outline, text centred vertically (Melissa, 16 Nov 2026) */
.callout, .topic .callout { border: 1px solid transparent !important; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 20px 26px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(90deg, color-mix(in srgb, #FF9A7A 70%, var(--bg)), color-mix(in srgb, #FFD27A 70%, var(--bg)), color-mix(in srgb, #9EE6A8 70%, var(--bg)), color-mix(in srgb, #8CC8FF 70%, var(--bg)), color-mix(in srgb, #C3AEFF 70%, var(--bg))) border-box; }
.callout > p { margin: 0; }
.callout > p + p:not([hidden]) { margin-top: .6em; }
.theme-contrast .callout { background: #000; border: 1px solid #FFF !important; }
.learn-fig img { border: 0 !important; }   /* no outline on Learn photos (Melissa, 16 Nov 2026) */
/* Female or male voice switch, at the top of every tool that speaks (Melissa, 16 Nov 2026) */
.voice-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.voice-switch-label { font-weight: 700; }
/* Install as an app (AAC tools) */
.install-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 18px 0 0; }
.install-row .btn svg { width: 20px; height: 20px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-msg { font-weight: 700; }
.how-install { padding-left: 1.2em; }
.how-install li { margin: .5em 0; }
/* Task simplifier start (Melissa, 16 Nov 2026): type a task, or pick a common one */
.task-start { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.task-start input { flex: 1 1 280px; min-height: 52px; font-size: 1.1rem; }
.task-or { margin: 22px 0 10px; font-weight: 700; }
.task-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.task-pick { justify-content: flex-start; gap: 12px; text-align: left; border-radius: var(--leaf-sm, 0 18px 0 18px) !important; padding: 8px 14px; }
.task-pick img { width: 40px; height: 40px; flex: none; border-radius: 8px; background: #FFF; padding: 3px; }
.linkish { background: none; border: 0; padding: 0; min-height: 44px; color: var(--link); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* AAC board toolbar (Melissa, 16 Nov 2026): voice, quick toggles and a Settings card, like the Social ad creator toolbar */
.aac-toolbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--leaf-sm, 0 18px 0 18px); background: var(--surface); }
.aac-toolbar .voice-switch { margin: 0; gap: 8px; }
.aac-toolbar .voice-switch-label { padding-left: 4px; }
.tool-sep { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--line); }
.tool-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font: inherit; font-weight: 700; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--leaf-sm, 0 18px 0 18px); cursor: pointer; }
.tool-btn:hover { border-color: var(--tc, var(--r6)); }
.tool-btn.icon-only { width: 44px; padding: 0; justify-content: center; }
.tool-btn[aria-pressed="true"], .tool-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--tc, #C3AEFF) 22%, var(--bg)); border-color: var(--tc, var(--r6)); }
.tool-btn .ico, .tool-pop .ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn .chev { width: 16px; height: 16px; transition: transform .2s; }
.tool-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tool-pop-wrap { position: relative; margin-left: auto; }
.tool-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(380px, calc(100vw - 40px)); display: grid; gap: 14px; padding: 18px 20px 20px;
  background: var(--surface); border: 1px solid var(--tc, var(--line)); border-radius: var(--leaf, 0 28px 0 28px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.tool-pop[hidden] { display: none; }
.tool-pop-title { margin: 0; font-family: var(--heading); font-size: 1.3rem; }
.tool-pop select, .tool-pop input[type="range"] { width: 100%; }
.tool-pop .label-text { font-weight: 700; display: block; margin-bottom: 6px; }
.aac-credit { margin-top: 18px; }
@media (max-width: 560px) { .tool-pop-wrap { margin-left: 0; } .tool-pop { left: 0; right: auto; } }
@media (prefers-reduced-motion: reduce) { .tool-btn .chev { transition: none; } }
@media (max-width: 560px) { .tool-pop-wrap { position: static; } .tool-pop { left: 0; right: 0; width: auto; } }
.aac-toolbar .voice-btn { min-height: 44px; padding: 0 12px; border-radius: var(--leaf-sm, 0 18px 0 18px) !important; background: var(--bg); }
.aac-toolbar .voice-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--tc, #C3AEFF) 22%, var(--bg)); border-color: var(--tc); }
.aac-toolbar .voice-btn { border: 1px solid var(--line); }
@media (max-width: 560px) {
  .aac-toolbar .voice-btn .std { display: none; } .aac-toolbar .voice-btn .easy { display: inline; }   /* "Female" / "Male" on phones */
  .aac-toolbar .tool-sep { display: none; }
}
/* Task simplifier, one step at a time (the default): current step on the left, all steps on the right */
.one-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; margin-top: 18px; }
.one-split .focus-card { margin: 0; }
.steps-side { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.steps-side button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; text-align: left; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--leaf-sm, 0 18px 0 18px); cursor: pointer; }
.steps-side img { width: 30px; height: 30px; flex: none; border-radius: 6px; background: #FFF; padding: 2px; }
.steps-side li.now button { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 18%, var(--bg)); font-weight: 700; }
.steps-side li.done button span:not(.sr-only) { text-decoration: line-through; color: var(--muted); }
@media (max-width: 760px) { .one-split { grid-template-columns: minmax(0, 1fr); } }
