/* AuDHD, that's me! – all styles.
   Dark by default (calmer for many autistic and ADHD people), with Light, High contrast and Calm modes from the
   Accessibility panel. Colourful but quiet: one shared rainbow per group of boxes and the two-circle logo, no busy backgrounds.
   Text contrast is 7:1 or more on every theme. Easy Read: html.easy-read shows .easy and hides .std. */

@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/gloock.ttf) format('truetype'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/lexend.woff2) format('woff2'); }
@font-face { font-family: 'OpenDyslexic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/opendyslexic-400.woff2) format('woff2'); }
@font-face { font-family: 'OpenDyslexic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/opendyslexic-700.woff2) format('woff2'); }

:root {
  /* Dark (standard): Concept B, deep night navy (Melissa, 15 Nov 2026) */
  --bg: #07091A;
  --surface: #0E1330;
  --surface-2: #171E46;
  --line: #2A3266;
  --alt: #0A0D24;           /* every other section, very subtle */
  --text: #EEF0FA;          /* 17:1 on --bg */
  --muted: #C3C7DE;         /* 11:1 */
  --link: #C9D2FF;          /* 13:1 */
  --focus: #C9B6FF;         /* lilac */
  --primary: #E9C3EC;       /* buttons: the colour of the overlap, peach to lilac (Melissa, 15 Nov 2026: no teal) */
  --primary-bg: linear-gradient(100deg, #FFC6A8, #F6B9E0 50%, #C9B6FF);
  --primary-text: #12102A;  /* 12:1+ on every part of the gradient */
  /* Pastel rainbow (Melissa: on the circles and lines, never on text) */
  --r1: #FF9A7A; --r2: #FFD27A; --r3: #FFE3A3; --r4: #9EE6A8; --r5: #8CC8FF; --r6: #C3AEFF;
  --rainbow: linear-gradient(90deg, var(--r1), var(--r2), var(--r4), var(--r5), var(--r6));
  --font: 'Lexend', system-ui, sans-serif;   /* Lexend (Melissa, 14 Nov 2026): designed to reduce visual stress and help reading */
  --heading: 'Gloock', Georgia, serif;       /* Gloock headings (Melissa, 15 Nov 2026) */
  --size: 1.125rem;
  --leading: 1.7;
  --radius: 0 28px 0 28px;      /* boxes: reverse leaf, rounded top-right and bottom-left (Melissa, 16 Nov 2026) */
  --radius-sm: 18px;            /* small boxes; buttons and pills are fully round (Concept B layer) */
  --edge: 1px;
  --wrap: 1240px;
  color-scheme: dark;
}
.theme-light {
  /* Soft pastels instead of white (Melissa, 15 Nov 2026: white is too harsh). Text 13:1+, muted 8:1+, links 7:1+ */
  --bg: #E9F3F0; --surface: #F2F8F6; --surface-2: #D9E9E5; --line: #B9CFCA; --alt: #E4ECF5;
  --text: #1C1D2A; --muted: #3E4052; --link: #13427F; --focus: #6741D9;
  --primary: #CBB8F5; --primary-text: #12102A;
  --primary-bg: linear-gradient(100deg, #FFC0A0, #F2B0DA 50%, #C2ACFA);
  --r1: #E8484D; --r2: #F08C1A; --r3: #E0B400; --r4: #37B24D; --r5: #1C7ED6; --r6: #7950F2;
  color-scheme: light;
}
.theme-contrast {
  --bg: #000000; --surface: #000000; --surface-2: #000000; --line: #FFFFFF;
  --text: #FFFFFF; --muted: #FFFFFF; --link: #FFFF00; --focus: #FFFF00;
  --primary: #FFFF00; --primary-text: #000000; --primary-bg: #FFFF00;
  --rainbow: linear-gradient(90deg, #FFF, #FFF);
}
.calm { --rainbow: linear-gradient(90deg, #C9A4A4, #C9B9A0, #C8C3A0, #A9C4AA, #A0B6C9, #B4ABC9); }

.font-dyslexic { --font: 'OpenDyslexic', system-ui, sans-serif; --leading: 1.8; }
.size-2 { --size: 1.3rem; }
.size-3 { --size: 1.5rem; }
.extra-spacing { --leading: 2; letter-spacing: .04em; word-spacing: .12em; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--size); line-height: var(--leading); overflow-wrap: break-word; }
/* OpenDyslexic is much wider than Lexend: slightly smaller headings, buttons and labels so nothing runs off the page */
.font-dyslexic h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
.font-dyslexic h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.font-dyslexic h3 { font-size: 1.1rem; }
.font-dyslexic .pill, .font-dyslexic .menu-btn, .font-dyslexic .btn, .font-dyslexic .site-nav a { font-size: .85em; }
.font-dyslexic .brand { font-size: 1rem; }
.font-dyslexic .tile { font-size: .7rem; }
.size-3 h1, .easy-read.size-2 h1 { font-size: clamp(1.7rem, 7vw, 3.4rem); }
.font-dyslexic.size-2 h1, .font-dyslexic.size-3 h1, .font-dyslexic.easy-read h1 { font-size: clamp(1.8rem, 9vw, 2.9rem); }
/* The intro paragraph grows less than the text size, so the heading always stays the biggest text */
.size-2 .lead, .size-3 .lead, .font-dyslexic .lead, .easy-read .lead { font-size: 1.05em; }
.font-dyslexic.size-3 h2, .font-dyslexic.easy-read.size-2 h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
h1, h2 { overflow-wrap: anywhere; }   /* last resort: a very long word may break rather than run off the page */
@media (max-width: 420px) { .brand-name { white-space: normal; } .brand { white-space: normal; } }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.num { font-variant-numeric: lining-nums; }
.skip-link { position: absolute; left: 16px; top: 0; transform: translateY(-120%);   /* hidden above the page at any text size */
  z-index: 50; background: var(--primary); color: var(--primary-text); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; transform: none; }

/* ---------- Easy Read ---------- */
.easy { display: none; }
.easy-read .easy { display: revert; }
.easy-read .std { display: none; }
.easy-read { --size: 1.35rem; --leading: 1.8; }
.easy-read.size-2 { --size: 1.5rem; }
.easy-read.size-3 { --size: 1.7rem; }
.er-list { margin: 0 0 1em; padding-left: 1.4em; font-size: 1.15em; }
.er-list li { margin: .2em 0; }

/* ---------- Rainbow borders ----------
   Every button and box has a full rainbow border in the leaf shape: a fill colour on the padding box and the
   rainbow underneath on the border box. Set --fill for the inside colour. */
.btn, .pill, .menu-btn, .card, .topics a, .support-list li, .tile[aria-pressed="true"] {
  border: var(--edge) solid transparent;
  background: linear-gradient(var(--fill, var(--surface)), var(--fill, var(--surface))) padding-box, var(--rainbow) border-box;
  background-origin: border-box;
  background-repeat: no-repeat;
  /* Boxes in a group share ONE rainbow across the whole row (Melissa, 14 Nov 2026): js/site.js sets --gw (the
     group's width) and --gx (where this box starts), so each box shows its own slice of the same rainbow. */
  background-size: 100% 100%, var(--gw, 100%) 100%;
  background-position: 0 0, var(--gx, 0px) 0;
}
/* When a group stacks into one column (phones), the shared rainbow runs top to bottom instead */
.stacked > *, .stacked > * > a {
  background-image: linear-gradient(var(--fill, var(--surface)), var(--fill, var(--surface))), linear-gradient(180deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6));
  background-size: 100% 100%, 100% var(--gh, 100%);
  background-position: 0 0, 0 var(--gy, 0px);
}
.theme-contrast .stacked > *, .theme-contrast .stacked > * > a { background-image: linear-gradient(#000, #000), linear-gradient(#FFF, #FFF); }
.calm .stacked > *, .calm .stacked > * > a { background-image: linear-gradient(var(--fill, var(--surface)), var(--fill, var(--surface))), linear-gradient(180deg, #C9A4A4, #C9B9A0, #C8C3A0, #A9C4AA, #A0B6C9, #B4ABC9); }

/* ---------- Rainbow lines ---------- */
.theme-light .theme-contrast 
/* ---------- Logo: two circles, autism (warm) and ADHD (cool), joined with a slight overlap ---------- */
.brand-mark, .hero-mark { fill: none; stroke-linecap: round; overflow: visible; }
/* #rings is the shared logo symbol (header sprite); rules for it match where the symbol is defined, not where it's used */
#rings .ring-a, .hero-mark .ring-a circle { stroke: var(--ring-a, url(#warm)); }
#rings .ring-b, .hero-mark .ring-b circle { stroke: var(--ring-b, url(#cool)); }
.theme-contrast { --ring-a: #FFF; --ring-b: #FFF; }   /* custom properties reach inside the reused logo symbol */
.calm .brand-mark, .calm .hero-mark { filter: saturate(.45); }
.brand-mark { width: 48px; height: 31px; stroke-width: 7; flex: none; display: block; }
.hero-mark { width: min(100%, 420px); height: auto; }
.hero-mark .ring circle { stroke-width: 6.5; }
.hero-mark text { font-family: var(--font); font-size: 6.4px; font-weight: 700; text-anchor: middle; fill: var(--muted); stroke: none; letter-spacing: .02em; opacity: 0; }
.hero-mark .mark-label { font-size: 7.5px; fill: var(--text); opacity: 1; }
.hero-mark .flash { opacity: 0; stroke: none; }
.hero-mark .splash circle { opacity: 0; stroke: none; }
.splash .r1 { fill: #FF6B6B; } .splash .r2 { fill: #FFA94D; } .splash .r3 { fill: #FFD43B; }
.splash .r4 { fill: #69DB7C; } .splash .r5 { fill: #4DABF7; } .splash .r6 { fill: #B197FC; }
.theme-contrast .splash circle { fill: #FFF; }
/* Hero animation (plays once, about 3.5s; hover or focus plays it again): the two circles draw themselves with their
   labels, glide together until they overlap, a soft flash where they join, then "AuDHD" fades in.
   The resting styles above are the END of the story, so reduced motion and Calm mode simply show the joined logo. */
.draw .ring circle { stroke-dasharray: 1; animation: draw 1.1s cubic-bezier(.5, .1, .3, 1) both; }
.draw .ring-b circle { animation-delay: .15s; }
.draw .ring-a { animation: slide-a 1.3s cubic-bezier(.65, 0, .35, 1) 1.2s both; }
.draw .ring-b { animation: slide-b 1.3s cubic-bezier(.65, 0, .35, 1) 1.2s both; }
.draw .ring text { animation: label-fade 2.7s ease both; }
.draw .flash { transform-box: fill-box; transform-origin: center; animation: flash 1.1s ease-out 2.3s both; }
/* Splash of colour where the circles meet: rainbow droplets burst out and fade */
.draw .splash circle { transform-box: fill-box; transform-origin: center; animation: splash 1.2s cubic-bezier(.2, .7, .3, 1) both; }
.draw .splash .d1 { --x: 29.7px; --y: 4.2px; animation-delay: 2.30s; }
.draw .splash .d2 { --x: 16.5px; --y: 12.9px; animation-delay: 2.34s; }
.draw .splash .d3 { --x: 11.2px; --y: 27.8px; animation-delay: 2.38s; }
.draw .splash .d4 { --x: -2.9px; --y: 20.8px; animation-delay: 2.30s; }
.draw .splash .d5 { --x: -18.5px; --y: 23.6px; animation-delay: 2.34s; }
.draw .splash .d6 { --x: -19.5px; --y: 7.9px; animation-delay: 2.38s; }
.draw .splash .d7 { --x: -29.7px; --y: -4.2px; animation-delay: 2.30s; }
.draw .splash .d8 { --x: -16.5px; --y: -12.9px; animation-delay: 2.34s; }
.draw .splash .d9 { --x: -11.2px; --y: -27.8px; animation-delay: 2.38s; }
.draw .splash .d10 { --x: 2.9px; --y: -20.8px; animation-delay: 2.30s; }
.draw .splash .d11 { --x: 18.5px; --y: -23.6px; animation-delay: 2.34s; }
.draw .splash .d12 { --x: 19.5px; --y: -7.9px; animation-delay: 2.38s; }
.draw .mark-label { animation: fade-in .7s ease 2.7s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes slide-a { from { transform: translateX(-14px); } to { transform: translateX(0); } }
@keyframes slide-b { from { transform: translateX(14px); } to { transform: translateX(0); } }
@keyframes label-fade { 0%, 15% { opacity: 0; } 35%, 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flash { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes splash { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }

/* ---------- Header (sticky) ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.brand-thats { color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--r5); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-nav { margin-inline: auto; }   /* equal space either side of the menu (Melissa, 15 Nov 2026) */
.header-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); --fill: var(--surface); color: var(--text); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.pill:hover { --fill: var(--surface-2); }
.pill svg, .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.switch { flex: none; width: 38px; height: 22px; border-radius: 99px; background: var(--surface-2); border: 2px solid var(--line); position: relative; }
.switch span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .2s; }
.easy-btn[aria-pressed="true"] { --fill: var(--surface-2); }
.easy-btn[aria-pressed="true"] .switch { background: var(--r4); border-color: var(--r4); }
.easy-btn[aria-pressed="true"] .switch span { transform: translateX(16px); background: #0B1630; }
.theme-contrast .easy-btn[aria-pressed="true"] .switch { background: #FFF; }
.menu-btn { display: none; }

/* Accessibility panel: picture tiles (Melissa, 14 Nov 2026: more visual, less text) */
.a11y-panel { background: var(--surface); padding: 18px 0 20px; max-height: calc(100vh - 80px); overflow: auto; }
.a11y-panel h2 { font-size: 1.2rem; margin-bottom: 12px; }
/* Compact: the three groups sit side by side when there's room, and wrap on smaller screens */
.a11y-tiles { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.tile-label { font-weight: 700; font-size: .9rem; margin: 0 0 6px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 88px; min-height: 76px; padding: 8px 4px;
  border: 2px solid var(--line); border-radius: var(--radius-sm); --fill: var(--bg); background: var(--bg); color: var(--text); font: inherit; font-size: .78rem; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; position: relative; }
.tile:hover { --fill: var(--surface-2); background: var(--surface-2); }
.tile[aria-pressed="true"] { --fill: var(--surface-2); --edge: 3px; }
.tile[aria-pressed="true"]::after { content: ""; position: absolute; top: 5px; right: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--r4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1630' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.theme-contrast .tile[aria-pressed="true"]::after { background-color: #FFF; }
.glyph { display: grid; place-items: center; width: 30px; height: 30px; font-weight: 700; line-height: 1; }
svg.glyph { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; padding: 3px; }
.g-a1 { font-size: .95rem; } .g-a2 { font-size: 1.25rem; } .g-a3 { font-size: 1.6rem; }
.g-dys { font-family: 'OpenDyslexic', sans-serif; font-size: 1.05rem; }
.swatch { display: grid; place-items: center; width: 42px; height: 30px; font-size: .85rem; border-radius: 10px 0 10px 0; border: 1px solid var(--line); font-weight: 700; }
.sw-dark { background: #0B1630; color: #F1F1F6; }
.sw-light { background: #E9F3F0; color: #1C1D2A; }
.sw-contrast { background: #000; color: #FFFF00; border-color: #FFF; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.panel-actions .btn { min-height: 44px; padding: 0 20px; }
.guide-band { position: fixed; left: 0; right: 0; height: 44px; background: color-mix(in srgb, var(--r3) 22%, transparent); pointer-events: none; z-index: 40; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }   /* solid buttons: border in their own colour, no rainbow (Melissa) */
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { --fill: var(--bg); color: var(--text); }
.btn-ghost:hover { --fill: var(--surface-2); }
.a11y-panel .btn-ghost { --fill: var(--surface); }
.a11y-panel .btn-ghost:hover { --fill: var(--surface-2); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--alt); }
/* Sections alternate: hero, tools (alt), learn, support (alt), Ko-fi, footer (alt). Boxes take the other colour. */
.section-alt .card { --fill: var(--bg); }
.section-alt .card:hover, .section-alt .card:focus-within { --fill: var(--surface-2); }
.theme-contrast .section-alt, .theme-contrast .support, .theme-contrast .site-footer { border-top: 2px solid #FFF; }
.section-intro { color: var(--muted); margin-bottom: 32px; }
.hero { padding: 64px 0 56px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }   /* text left, logo animation right */
.hero-mark { display: block; justify-self: center; align-self: center; outline-offset: 12px; }
.lead { font-size: 1.25em; color: var(--muted); }
.easy-read .lead { color: var(--text); }

/* Cards: each with its own colour line along the top */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.card { position: relative; --fill: var(--surface); border-radius: var(--radius); padding: 28px 26px 24px; }
.c1 { --c: var(--r1); } .c2 { --c: var(--r2); } .c3 { --c: var(--r3); } .c4 { --c: var(--r4); } .c5 { --c: var(--r5); } .c6 { --c: var(--r6); }
.card-icon { width: 44px; height: 44px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.theme-contrast .card-icon { stroke: #FFF; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.card:hover, .card:focus-within { --fill: var(--surface-2); }
.card p { color: var(--muted); margin-bottom: 14px; }
.easy-read .card p { color: var(--text); }
.soon { display: inline-block; font-size: .85rem; font-weight: 700; padding: 2px 12px; border-radius: 10px 0 10px 0; border: 1.5px solid var(--line); color: var(--muted); }

.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.topics a { display: flex; align-items: center; min-height: 64px; padding: 14px 22px; border-radius: var(--radius-sm); --fill: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; position: relative; }
.topic-icon { width: 30px; height: 30px; margin-right: 14px; flex: none; fill: none; stroke: var(--ic); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topics li:nth-child(6n+1) { --ic: var(--r1); } .topics li:nth-child(6n+2) { --ic: var(--r2); } .topics li:nth-child(6n+3) { --ic: var(--r3); }
.topics li:nth-child(6n+4) { --ic: var(--r4); } .topics li:nth-child(6n+5) { --ic: var(--r5); } .topics li:nth-child(6n) { --ic: var(--r6); }
.theme-contrast .topic-icon { stroke: #FFF; }
.topics a:hover { --fill: var(--surface-2); }


/* ---------- Photos (Unsplash, credits in originals/unsplash/CREDITS.txt) ---------- */
.hero-visual { position: relative; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 40%; border-radius: var(--radius); }
.mark-badge { position: absolute; right: -20px; bottom: -28px; width: 46%; max-width: 230px; padding: 14px 14px 6px; background: #FFFFFF; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --text: #1C1D2A; --muted: #3F4152; }   /* white behind the circles (Melissa, 15 Nov 2026): dark labels, 10:1+ */
.theme-contrast .mark-badge { background: #000; --text: #FFF; --muted: #FFF; border: 2px solid #FFF; }   /* white rings need a black badge */
.mark-badge .hero-mark { width: 100%; }
.card { overflow: hidden; }
.card-photo { display: block; width: calc(100% + 52px); max-width: none; height: 170px; margin: -28px -26px 20px; object-fit: cover; }
.c6 .card-photo { object-position: 50% 20%; }
@media (max-width: 1000px) {
  .hero-visual { order: -1; }
  .mark-badge { left: auto; right: 12px; bottom: -22px; width: 38%; }
}

/* ---------- Support and footer ---------- */
.support { padding: 64px 0; background: var(--alt); }
.support-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.support-list li { --fill: var(--bg); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.support-list a { color: var(--text); }
.support-list strong { font-size: 1.08rem; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer { padding: 18px 0 20px; background: var(--alt); }
/* One line on wider screens (Melissa): logo + ©, credit, dogs; wraps neatly on phones */
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; color: var(--muted); font-size: .95rem; }
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.footer-brand .brand-mark { width: 38px; height: 25px; }
.small { font-size: .9rem; }
.ext-icon { width: .8em; height: .8em; margin-left: .25em; vertical-align: -.05em; }

/* ---------- Phones and tablets ---------- */
/* Compact header: on smaller screens, and on ANY screen where the header doesn't fit on one line (bigger text,
   the dyslexia font, Easy Read): js/site.js adds .compact-header to <html> when the header would overflow. */
@media (max-width: 1000px) {
  .js .menu-btn { display: inline-flex; }
  .header-inner { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
  .header-tools { order: 3; width: 100%; margin-left: 0; }
  .header-tools .pill { flex: 1 1 auto; justify-content: center; padding: 6px 10px; gap: 6px; white-space: normal; text-align: left; }
  .js .site-nav { display: none; order: 4; width: 100%; }
  .js.menu-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: left; }

}
.js .menu-btn { align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin-left: auto; border-radius: var(--radius-sm); --fill: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.compact-header .js .menu-btn, .js.compact-header .menu-btn { display: inline-flex; }
.compact-header .header-inner { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
.compact-header .header-tools { order: 3; width: 100%; margin-left: 0; }
.compact-header .header-tools .pill { flex: 1 1 auto; justify-content: center; padding: 6px 10px; gap: 6px; white-space: normal; text-align: left; }
.js.compact-header .site-nav { display: none; order: 4; width: 100%; }
.js.compact-header.menu-open .site-nav { display: block; }
.compact-header .site-nav ul { flex-direction: column; }
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 40px; height: 26px; }
  .section { padding: 52px 0; }
}

/* ---------- Charlie & Chai's bone hunt (js/dog-game.js, same game as melissasugden.com and RecoverED) ----------
   The game is a light card on every theme; its colours are set here so the site's theme colours don't change it. */
.dog-game { --charcoal: #1A3060; --cream: #FFF8EC; --ink: #1C1D2A; --muted: #464859; --white: #FFFFFF; --teal: #69DB7C;
  --teal-ink: #4B2DB8; --teal-soft: #F1EEF8; --sand: #B197FC; }
.supervised { display: inline-flex; align-items: center; gap: 10px; }
.dogs { display: inline-flex; }
.dog { width: 34px; height: 34px; transition: transform .3s; }
.dog + .dog { margin-left: 8px; }
.dogs-btn { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 4px 6px; margin: -4px 0 -4px -6px;
  border: 0; border-radius: 2px; background: transparent; cursor: pointer; }
.dogs-btn:hover { background: var(--surface-2); }
.dogs-btn:hover .dog { transform: translateY(-3px); }
.dog-game { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 3px solid var(--charcoal);
  border-radius: 2px; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 1.05rem; line-height: 1.5; overflow: auto; }
#dg-live { top: 0; left: 0; }
.dog-game::backdrop { background: rgba(43, 47, 51, .78); }
.dg-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 12px 24px; background: var(--charcoal); color: var(--white); border-bottom: 4px solid var(--teal); }
.dg-title { margin: 0; font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; color: var(--white); }
.dg-title:focus { outline: none; }
.dg-screen { padding: 16px 20px 20px; }
.dg-big { margin: 0 0 12px; font-weight: 700; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.2; color: var(--teal-ink); }
.dg-help { margin: 20px 0 12px; color: var(--muted); }
.dg-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.dg-player { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; border: 0; border-top: 6px solid var(--teal);
  background: var(--white); color: var(--ink); font: inherit; cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s; }
.dg-player + .dg-player { border-top-color: var(--sand); }
.dg-player:hover, .dg-player:focus-visible { background: var(--teal-soft); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43, 47, 51, .15); }
.dg-face svg { width: 96px; height: 96px; }
.dg-name { font-weight: 700; font-size: 1.5rem; color: var(--teal-ink); }
.dg-breed { font-size: .95rem; color: var(--muted); }
.dg-btn { min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.dg-btn:hover { background: var(--white); }
.dg-bar .dg-btn { border-color: var(--white); color: var(--white); }
.dg-bar .dg-btn:hover { background: rgba(255, 255, 255, .15); }
.dg-bar :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 6px var(--ink); }
.dg-primary { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--white); }
.dg-primary:hover { background: #0F4A45; }
.dg-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--teal-ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dg-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-bottom: 8px; font-weight: 700; }
.dg-status strong { font-size: 1.2rem; color: var(--teal-ink); }
.dg-stage { position: relative; display: flex; justify-content: center; }
.dg-stage canvas { display: block; max-width: 100%; touch-action: none; }
.dg-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 8px 20px; border-radius: 2px;
  background: var(--teal); color: var(--ink); font-weight: 700; font-size: 1.5rem; pointer-events: none; }
.dg-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.dg-pad { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 46px); gap: 6px; }
.dg-arrow { border: 2px solid var(--ink); border-radius: 2px; background: var(--white); color: var(--ink); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.dg-arrow:active, .dg-arrow:hover { background: var(--teal); }
.dg-arrow[data-dir="up"] { grid-column: 2; grid-row: 1; }
.dg-arrow[data-dir="left"] { grid-column: 1; grid-row: 2; }
.dg-arrow[data-dir="down"] { grid-column: 2; grid-row: 2; }
.dg-arrow[data-dir="right"] { grid-column: 3; grid-row: 2; }
.dg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.dg-slide { margin: 0; display: flex; justify-content: center; }
.dg-slide img { display: block; width: auto; height: auto; max-width: 100%; border: 4px solid var(--white); box-shadow: 0 6px 18px rgba(43, 47, 51, .2); object-fit: contain; }
.dg-slide-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.dg-slide-nav .dg-btn { padding: 0 12px; white-space: nowrap; }
.dg-count { margin: 0; font-weight: 700; white-space: nowrap; }
@media (max-width: 420px) {
  .dg-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dg-slide-nav .dg-btn { min-width: 52px; font-size: 1.2rem; }
}
.site-footer .dog { background: #FFF8EC; border-radius: 50%; padding: 2px; } /* keeps Chai's dark ears visible on dark backgrounds */

/* Ko-fi: a gentle note above the footer, no pressure */
.kofi { padding: 48px 0; }
.kofi h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.kofi .actions { margin-top: 16px; }
.btn svg { width: 22px; height: 22px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.supervised { color: var(--muted); }

@media print {
  .site-header, .support, .site-footer, .actions, .kofi { display: none !important; }
  body { background: #FFF; color: #000; }
}

/* Phone menu button is a solid teal button (Melissa, 15 Nov 2026) */
.js .menu-btn { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.js .menu-btn:hover { filter: brightness(1.08); }
.theme-light .mark-badge { background: #F6FBF9; }   /* softer than pure white on the pastel light theme */

/* ---------- Dropdowns under Tools and Learn (Melissa, 15 Nov 2026) ----------
   The section link still goes to its page; the arrow button opens the list (click, Enter or Space; Escape closes).
   With a mouse the list also opens on hover. In the phone menu the list opens inside the menu. */
.has-sub { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.has-sub > a { padding-right: 4px; }
.sub-toggle { display: inline-grid; place-items: center; width: 32px; min-height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); cursor: pointer; }
.sub-toggle:hover { background: var(--surface-2); }
.sub-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav .sub { display: none; position: absolute; top: 100%; left: 0; z-index: 45; flex-direction: column; gap: 2px; min-width: 280px; margin: 0; padding: 8px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.site-nav .has-sub.open > .sub { display: flex; }
@media (hover: hover) { html:not(.compact-header) .site-nav .has-sub:not(.hush):hover > .sub { display: flex; } }   /* Escape hides it even under the mouse (WCAG 1.4.13) */
.site-nav .sub a { display: flex; width: 100%; min-height: 44px; padding: 8px 14px; white-space: normal; }
.site-nav .sub a[aria-current="page"] { text-underline-offset: 5px; }
.theme-light .site-nav .sub { box-shadow: 0 12px 30px rgba(20, 40, 60, .15); }
@media (prefers-reduced-motion: reduce) { .sub-toggle svg { transition: none; } }
/* Phone and compact menu: the list opens in place, indented */
.compact-header .site-nav .sub { position: static; flex-basis: 100%; min-width: 0; margin: 2px 0 6px 14px; padding: 4px 0 4px 10px; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; background: none; }
@media (max-width: 1000px) { .site-nav .sub { position: static; flex-basis: 100%; min-width: 0; margin: 2px 0 6px 14px; padding: 4px 0 4px 10px; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; background: none; } }

/* ---------- Mega menus (Melissa, 15 Nov 2026): wide visual panels under the header ---------- */
html:not(.compact-header) .header-inner { position: relative; }
html:not(.compact-header) .site-nav .has-sub { position: static; }
html:not(.compact-header) .site-nav .mega { left: 0; right: 0; top: calc(100% - 4px); min-width: 0; padding: 18px; gap: 6px 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--radius); }
.site-nav .has-sub.open > .mega { display: grid; }
@media (hover: hover) { html:not(.compact-header) .site-nav .has-sub:not(.hush):hover > .mega { display: grid; } }
.site-nav .mega a { align-items: center; gap: 14px; padding: 10px 12px; text-decoration: none; }
.site-nav .mega a:hover { background: var(--surface-2); }
.mm-img { width: 84px; height: 58px; flex: none; object-fit: cover; border-radius: 14px 0 14px 0; }
.mm-text { display: grid; gap: 2px; }
.mm-title { font-weight: 700; line-height: 1.25; }
.mm-desc { color: var(--muted); font-size: .88rem; line-height: 1.35; font-weight: 400; }
.easy-read .mm-desc { color: var(--text); }
.mm-all { grid-column: 1 / -1; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.site-nav .mm-all a { width: auto; font-weight: 700; color: var(--link); }
/* Learn: three columns, each topic with its sections */
.mm-col { display: grid; align-content: start; gap: 2px; padding: 4px; }
.site-nav .mm-head { font-weight: 700; font-size: 1.05rem; }
.mm-head .topic-icon { margin-right: 0; }
.mega-learn li:nth-child(1) { --ic: var(--r1); } .mega-learn li:nth-child(2) { --ic: var(--r3); } .mega-learn li:nth-child(3) { --ic: var(--r5); }
.site-nav .mm-links { display: grid; gap: 0; list-style: none; margin: 0 0 0 44px; padding: 0; }
.site-nav .mm-links a { min-height: 40px; padding: 6px 10px; font-size: .95rem; font-weight: 400; color: var(--muted); }
.site-nav .mm-links a:hover { color: var(--text); }
/* Phone and compact menu: one column, smaller pictures, no descriptions */
.compact-header .site-nav .mega, .compact-header .site-nav .has-sub.open > .mega { grid-template-columns: 1fr; }
.compact-header .mm-img { width: 56px; height: 40px; }
.compact-header .mm-desc { display: none; }
.compact-header .mm-all { justify-content: flex-start; border-top: 0; }
@media (max-width: 1000px) {
  .site-nav .has-sub.open > .mega { grid-template-columns: 1fr; }
  .mm-img { width: 56px; height: 40px; }
  .mm-desc { display: none; }
  .mm-all { justify-content: flex-start; border-top: 0; }
}

/* Get in touch + Free for everyone, side by side (Melissa, 15 Nov 2026) */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 56px; }
.contact-grid h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.contact-grid .actions { margin-top: 16px; }
.contact-grid .btn svg { width: 20px; height: 20px; margin-right: 8px; flex: none; }
#copy-email .icon-tick { display: none; }
#copy-email.is-copied .icon-tick { display: inline; }
#copy-email.is-copied .icon-copy { display: none; }
.dogs-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.dogs-line .dogs-btn { cursor: pointer; }
/* Crisis line phone numbers never split across lines (Melissa) */
.support-list .num, .res-list .num { white-space: nowrap; }
.dogs-line .dog { background: #FFF8EC; border-radius: 50%; padding: 2px; }   /* keeps Chai’s dark ears visible */

/* ==========================================================================
   Concept B (Melissa, 15 Nov 2026): the two circles of the logo become the design.
   Gloock headings, soft round boxes with thin borders (no rainbow borders), peach-to-lilac buttons,
   the pastel rainbow only on the circles and lines, a circles hero with particles (js/particles.js),
   tool tiles in a bento grid and the three Learn topics as overlapping circles.
   ========================================================================== */
h1, h2, h3, .brand-name { font-family: var(--heading); font-weight: 400; letter-spacing: -.015em; }
h1 { line-height: 1; } h2 { line-height: 1.05; }
.brand-name { font-size: 1.3rem; } .brand-thats { color: var(--text); }
/* Dyslexia font and Easy Read: plain, bold Lexend/OpenDyslexic headings are easier to read */
.font-dyslexic, .easy-read { --heading: var(--font); }
.font-dyslexic :is(h1, h2, h3, .brand-name), .easy-read :is(h1, h2, h3, .brand-name) { font-weight: 700; letter-spacing: 0; }

/* Thin, quiet borders instead of rainbow ones */
.support-list li { border-radius: var(--radius); }
.theme-contrast { --alt: #000000; }
.btn, .pill, .menu-btn, .card, .topics a, .support-list li, .tile[aria-pressed="true"],
.stacked > *, .stacked > * > a, .theme-contrast .stacked > *, .theme-contrast .stacked > * > a, .calm .stacked > *, .calm .stacked > * > a {
  border: 1px solid var(--line); background: var(--fill, var(--surface)); background-size: auto; background-position: 0 0; }
.tile[aria-pressed="true"] { border: 2px solid var(--r6); }
.theme-contrast :is(.btn, .pill, .menu-btn, .card, .topics a, .support-list li, .tile) { border: 2px solid #FFF; }
.btn-primary, .js .menu-btn { background: var(--primary-bg); border-color: transparent; color: var(--primary-text); box-shadow: 0 8px 30px rgba(201, 182, 255, .22); }
.btn-primary:hover, .js .menu-btn:hover { filter: none; box-shadow: 0 10px 36px rgba(255, 198, 168, .38); }
.theme-light .btn-primary { box-shadow: 0 6px 20px rgba(120, 90, 200, .18); }
.theme-contrast .btn-primary, .theme-contrast.js .menu-btn, .theme-contrast .js .menu-btn { background: #FFFF00; border-color: #FFFF00; box-shadow: none; }
.easy-btn[aria-pressed="true"] .switch { background: var(--r6); border-color: var(--r6); }

/* Header: a soft pill holds the menu */
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
html:not(.compact-header) .site-nav > ul { padding: 5px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.site-nav a, .sub-toggle { border-radius: 999px; }
.site-nav a[aria-current="page"] { background: var(--text); color: var(--bg); text-decoration: none; }
.site-nav .sub a[aria-current="page"], .site-nav .mega a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.theme-contrast .site-nav a[aria-current="page"] { background: #FFF; color: #000; }
.site-nav .sub, html:not(.compact-header) .site-nav .mega { border-radius: var(--radius); border: 1px solid var(--line); }
.mm-img { border-radius: 14px; }
.swatch { border-radius: 10px; }
.sw-dark { background: #07091A; color: #EEF0FA; }

/* ---------- Home hero: two circles of light; the overlap is AuDHD ---------- */
.hero-b { position: relative; overflow: clip; isolation: isolate; min-height: min(88vh, 860px); display: grid; place-items: center; text-align: center; padding: 72px 0; }
.hero-b .wrap { position: relative; }
.hero-b h1 { font-size: clamp(2.8rem, 7.6vw, 7.4rem); max-width: 12ch; margin: 0 auto .3em; text-shadow: 0 6px 40px color-mix(in srgb, var(--bg) 60%, transparent); }
.hero-b .lead { max-width: 40ch; margin: 0 auto; color: var(--text); }
.hero-b .er-list { display: inline-block; text-align: left; }
.hero-b .actions { justify-content: center; }
.orb, .halo { position: absolute; top: 50%; left: 50%; width: min(62vw, 760px); aspect-ratio: 1; border-radius: 50%; z-index: -2; pointer-events: none; }
.orb { filter: blur(2px); mix-blend-mode: screen; }
.orb-a { transform: translate(-80%, -50%); background: radial-gradient(circle at 34% 36%, rgba(255,160,125,.78), rgba(255,214,128,.52) 36%, rgba(255,190,150,.16) 58%, rgba(255,190,150,0) 70%); animation: drift-a 14s ease-in-out infinite alternate; }
.orb-b { transform: translate(-20%, -50%); background: radial-gradient(circle at 24% 52%, rgba(158,230,168,.5), rgba(158,230,168,0) 30%), radial-gradient(circle at 66% 38%, rgba(200,180,255,.78), rgba(140,200,255,.52) 36%, rgba(140,200,255,.16) 58%, rgba(140,200,255,0) 70%); animation: drift-b 14s ease-in-out infinite alternate; }
/* the circles' outlines carry the pastel rainbow */
.halo { opacity: .75; background: conic-gradient(from 210deg, #FF9A7A, #FFD27A, #9EE6A8, #8CC8FF, #C3AEFF, #FF9A7A);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); }
.halo-a { transform: translate(-80%, -50%); } .halo-b { transform: translate(-20%, -50%); }
@keyframes drift-a { to { transform: translate(-74%, -52%); } }
@keyframes drift-b { to { transform: translate(-26%, -48%); } }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.theme-light .orb { mix-blend-mode: multiply; opacity: .55; }
.theme-light .halo { opacity: 1; }
.theme-contrast .orb, .theme-contrast .particles { display: none; }
.theme-contrast .halo { background: #FFF; opacity: 1; }
.calm .orb { filter: blur(2px) saturate(.5); }
.calm .particles { display: none; }
@media (max-width: 760px) {
  .orb, .halo { width: 118vw; }
  .orb-a, .halo-a { transform: translate(-72%, -50%); } .orb-b, .halo-b { transform: translate(-28%, -50%); }
  .hero-b { min-height: 0; padding: 64px 0 72px; }
}

/* ---------- Home tools: a bento grid of photo tiles, each with a warm or cool glow ---------- */
.bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.bento .card { --fill: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 24px; isolation: isolate;
  border-color: color-mix(in srgb, var(--line) 70%, transparent); transition: transform .4s cubic-bezier(.2, .8, .2, 1); color: #F4F5FB; }
.bento .card-photo { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: -2; opacity: .6; object-fit: cover; }
.bento .card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,9,26,0) 25%, rgba(7,9,26,.94) 82%); }
.bento .card::after { content: ""; position: absolute; right: -25%; bottom: -55%; width: 75%; aspect-ratio: 1; border-radius: 50%; z-index: -1; filter: blur(30px); opacity: .5; pointer-events: none;
  background: radial-gradient(circle, var(--g1), var(--g2) 60%, transparent 70%); }
.bento .c1, .bento .c2, .bento .c6 { --g1: #FFD27A; --g2: #FF9A7A; }   /* warm: communication and connection */
.bento .c3, .bento .c4, .bento .c5 { --g1: #C3AEFF; --g2: #8CC8FF; }   /* cool: time, energy and focus */
.bento .card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.bento .card h3 a { color: #F4F5FB; }
.bento .card p { color: #DCDFF0; margin: 0; }
.bento .card:hover, .bento .card:focus-within { transform: translateY(-6px); --fill: var(--surface); }
.bento .card:hover .card-photo { opacity: .75; }
.bento > :nth-child(1) { grid-area: 1 / 1 / 3 / 4; } .bento > :nth-child(2) { grid-area: 1 / 4 / 2 / 7; }
.bento > :nth-child(3) { grid-area: 2 / 4 / 3 / 7; } .bento > :nth-child(4) { grid-area: 3 / 1 / 5 / 3; }
.bento > :nth-child(5) { grid-area: 4 / 3 / 5 / 5; } .bento > :nth-child(6) { grid-area: 3 / 3 / 4 / 7; }
.bento > :nth-child(7) { grid-area: 4 / 5 / 5 / 7; } .bento > :nth-child(8) { grid-area: 5 / 1 / 6 / 4; }
.bento > :nth-child(9) { grid-area: 5 / 4 / 6 / 7; }
.theme-contrast .bento .card::before { background: linear-gradient(180deg, rgba(0,0,0,.35), #000 70%); }
.theme-contrast .bento .card::after { display: none; }
.theme-contrast .bento .card p, .theme-contrast .bento .card h3 a { color: #FFF; }
.calm .bento .card::after { opacity: .25; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > :nth-child(n) { grid-area: auto; grid-column: auto; }
  .bento > :nth-child(1), .bento > :nth-child(4), .bento > :nth-child(9) { grid-column: span 2; }
}
@media (max-width: 560px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento > :nth-child(n) { grid-column: auto; } }
/* Easy Read, the dyslexia font and the biggest text: two simple columns (one on phones) so text has room */
:is(.easy-read, .font-dyslexic, .size-3) .bento > :nth-child(n) { grid-area: auto; grid-column: span 3; }
@media (max-width: 1000px) { :is(.easy-read, .font-dyslexic, .size-3) .bento > :nth-child(n) { grid-column: span 2; } }
@media (max-width: 560px) { :is(.easy-read, .font-dyslexic, .size-3) .bento > :nth-child(n) { grid-column: auto; } }

/* ---------- Home Learn: the three topics as overlapping circles (autism, ADHD, AuDHD) ---------- */
#learn .topics { display: flex; justify-content: center; gap: 0; padding: 12px 0 0; }
#learn .topics li { flex: 0 1 380px; margin: 0 -26px; }
#learn .topics a { aspect-ratio: 1; border-radius: 50%; flex-direction: column; justify-content: center; gap: 10px; text-align: center; padding: 18%;
  font-family: var(--heading); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.1; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--ic) 16%, transparent), transparent 62%); border: 1.5px solid var(--ic); }
#learn .topics a:hover { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--ic) 30%, transparent), transparent 70%); }
#learn .topics .topic-icon { margin: 0; width: 38px; height: 38px; }
#learn .topics li:nth-child(1) { --ic: var(--r1); } #learn .topics li:nth-child(2) { --ic: var(--r5); } #learn .topics li:nth-child(3) { --ic: var(--r4); z-index: 1; }
.easy-read #learn .topics a, .font-dyslexic #learn .topics a { font-weight: 700; }
.theme-contrast #learn .topics a { border: 2px solid #FFF; background: #000; }
@media (max-width: 760px) {
  #learn .topics { flex-direction: column; align-items: center; }
  #learn .topics li { flex: none; width: min(78vw, 340px); margin: -18px 0; }
}
@media (prefers-reduced-motion: reduce) { .bento .card { transition: none; } }
/* One-column groups (.stacked) used to carry a vertical rainbow; in Concept B only the boxes themselves have borders */
#learn .topics li, #learn .topics.stacked > li { border: 0; background: none; }
.support-list.stacked > li > a { border: 0; background: none; }
/* Buttons, pills and menu links are fully round; boxes keep softer corners */
.btn, .pill, .js .menu-btn, .site-nav a, .sub-toggle, .skip-link, .tbtn, .chip, .soon { border-radius: 999px; }

/* ---------- Concept B, round 2 (Melissa, 15 Nov 2026) ---------- */
/* Hero outlines fade out towards the middle, so the headline is easier to read */
.hero-b .halo-a, .hero-b .halo-b {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)), linear-gradient(90deg, #000 38%, transparent 74%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)), linear-gradient(90deg, #000 38%, transparent 74%); }
.hero-b .halo-b {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)), linear-gradient(270deg, #000 38%, transparent 74%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)), linear-gradient(270deg, #000 38%, transparent 74%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }

/* Small circles with particles in the title area of every other page (added by js/particles.js) */
.tool-hero.has-circles { position: relative; overflow: clip; isolation: isolate; }
.hero-circles { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-circles .orb, .hero-circles .halo { width: 300px; left: auto; animation: none; }
.hero-circles .orb { opacity: .5; }
.hero-circles .halo { opacity: .55; }
.hero-circles .orb-a, .hero-circles .halo-a { left: calc(100% - 470px); transform: translate(0, -50%); }
.hero-circles .orb-b, .hero-circles .halo-b { left: calc(100% - 290px); transform: translate(0, -50%); }
@media (max-width: 760px) {
  .hero-circles .orb, .hero-circles .halo { width: 190px; }
  .hero-circles .orb-a, .hero-circles .halo-a { left: calc(100% - 200px); top: 40%; }
  .hero-circles .orb-b, .hero-circles .halo-b { left: calc(100% - 85px); top: 40%; }
  .hero-circles .orb { opacity: .3; }
}
.theme-light .hero-circles .orb { opacity: .4; }
.theme-contrast .hero-circles .orb { display: none; }

/* Home Learn circles hold particles too */
#learn .topics { position: relative; isolation: isolate; }

/* Mega menus and dropdowns: an invisible bridge between the menu word and its panel, so moving the mouse down to
   the links never closes it (no need to click the arrow) */
html:not(.compact-header) .site-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; }

/* Easy Read and Accessibility stand out: a peach-to-lilac edge, a lighter fill and a soft glow */
.header-tools .pill { border: 1.5px solid transparent; color: var(--text);
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(100deg, #FFC6A8, #F6B9E0 50%, #C9B6FF) border-box;
  box-shadow: 0 0 22px rgba(201, 182, 255, .18); }
.header-tools .pill:hover { box-shadow: 0 0 26px rgba(255, 198, 168, .32); background: linear-gradient(color-mix(in srgb, var(--surface-2) 80%, #C9B6FF), color-mix(in srgb, var(--surface-2) 80%, #C9B6FF)) padding-box, linear-gradient(100deg, #FFC6A8, #F6B9E0 50%, #C9B6FF) border-box; }
.header-tools .pill svg { stroke: #E3D6FF; }
.easy-btn[aria-pressed="true"], #a11y-btn[aria-expanded="true"] { background: var(--primary-bg) padding-box, var(--primary-bg) border-box; color: var(--primary-text); }
.easy-btn[aria-pressed="true"] svg, #a11y-btn[aria-expanded="true"] svg { stroke: var(--primary-text); }
.easy-btn[aria-pressed="true"] .switch { background: var(--primary-text); border-color: var(--primary-text); }
.easy-btn[aria-pressed="true"] .switch span { background: #FFE3D6; }
.theme-light .header-tools .pill { background: linear-gradient(#FFFFFFAA, #FFFFFFAA) padding-box, linear-gradient(100deg, #F2A07E, #E58CC4 50%, #9C82F0) border-box; box-shadow: 0 4px 14px rgba(120, 90, 200, .14); }
.theme-light .header-tools .pill svg { stroke: #5B3FC4; }
.theme-contrast .header-tools .pill { background: #000; border: 2px solid #FFFF00; box-shadow: none; color: #FFF; }
.theme-contrast .header-tools .pill svg { stroke: #FFFF00; }

/* Emergency links: name, a big tap-to-call number, then who it's for */
.support-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.support-list li { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px 22px; }
.sl-name { font-weight: 700; color: var(--muted); font-size: .95rem; }
.support-list .sl-num { font-family: var(--heading); font-size: 1.7rem; line-height: 1.15; color: var(--text); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.support-list .sl-num:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.sl-num svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--r6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.support-list li > span:not(.sl-name) { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.easy-read .support-list li > span:not(.sl-name) { color: var(--text); }
.font-dyslexic .support-list .sl-num, .easy-read .support-list .sl-num { font-family: var(--font); font-weight: 700; font-size: 1.35rem; }
.theme-contrast .sl-num svg { stroke: #FFFF00; }
.theme-light { --ring-a: url(#warm-deep); --ring-b: url(#cool-deep); }   /* pastel logo, a little deeper on the light theme */
/* Get in touch + Free for everyone: buttons line up along the bottom, whatever the text length */
.contact-grid > div { display: flex; flex-direction: column; }
.contact-grid > div > .actions { margin-top: auto; padding-top: 16px; }
.contact-grid > div > p:last-of-type { margin-bottom: 0; }
/* Title circles stay clear of the text */
@media (min-width: 761px) { .tool-hero.has-circles .wrap > :not(.hero-circles) { max-width: min(62ch, calc(100% - 440px)); } }
@media (max-width: 760px) {
  .hero-circles .orb, .hero-circles .halo { width: 96px; top: 58px; }
  .hero-circles .orb-a, .hero-circles .halo-a { left: calc(100% - 172px); }
  .hero-circles .orb-b, .hero-circles .halo-b { left: calc(100% - 112px); }
  .hero-circles .orb { opacity: .45; }
}
.theme-light .hero-b .orb { opacity: .38; }
/* Mega menu headings in Gloock (Melissa, 16 Nov 2026); Easy Read and the dyslexia font keep bold body text */
.mm-title, .site-nav .mm-head { font-family: var(--heading); font-weight: 400; font-size: 1.12rem; letter-spacing: -.005em; }
.easy-read .mm-title, .font-dyslexic .mm-title, .easy-read .site-nav .mm-head, .font-dyslexic .site-nav .mm-head { font-weight: 700; font-size: 1rem; }
/* Hero outlines (Melissa, 16 Nov 2026): solid on the outer side of each circle, fading only slightly where the two
   outlines cross in the middle; the circles fit inside the hero (not cut off at the top or bottom) */
.hero-b .halo-a, .hero-b .halo-b { opacity: .85; }
.hero-b .halo-a {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)), linear-gradient(90deg, #000 55%, rgba(0,0,0,.35) 85%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)), linear-gradient(90deg, #000 55%, rgba(0,0,0,.35) 85%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-b .halo-b {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)), linear-gradient(270deg, #000 55%, rgba(0,0,0,.35) 85%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)), linear-gradient(270deg, #000 55%, rgba(0,0,0,.35) 85%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-b { --d: min(62vw, 760px); min-height: calc(var(--d) + 80px); padding: 40px 0; }
.hero-b .orb, .hero-b .halo { width: var(--d); }
@media (max-width: 760px) { .hero-b { --d: 112vw; min-height: calc(var(--d) + 48px); padding: 24px 0; } }
/* Ko-fi button: same style as Email Melissa (Melissa, 16 Nov 2026) */
/* Tools and Learn: the word and its arrow are one menu item, sharing one background (Melissa, 16 Nov 2026) */
html:not(.compact-header) .site-nav .has-sub { border-radius: 999px; }
html:not(.compact-header) .site-nav .has-sub > a { padding-right: 2px; }
html:not(.compact-header) .site-nav .has-sub > .sub-toggle { width: 30px; margin-left: -2px; padding-right: 4px; }
html:not(.compact-header) .site-nav .has-sub > a:hover, html:not(.compact-header) .site-nav .has-sub > .sub-toggle:hover { background: none; }
html:not(.compact-header) .site-nav .has-sub:hover, html:not(.compact-header) .site-nav .has-sub:focus-within,
html:not(.compact-header) .site-nav .has-sub.open { background: var(--surface-2); }
html:not(.compact-header) .site-nav .has-sub:has(> a[aria-current="page"]) { background: var(--text); }
html:not(.compact-header) .site-nav .has-sub > a[aria-current="page"] { background: none; }
html:not(.compact-header) .site-nav .has-sub:has(> a[aria-current="page"]) > .sub-toggle { color: var(--bg); }
.theme-contrast:not(.compact-header) .site-nav .has-sub:has(> a[aria-current="page"]) { background: #FFF; }
.theme-contrast:not(.compact-header) .site-nav .has-sub:has(> a[aria-current="page"]) > .sub-toggle { color: #000; }

/* ---------- About page, more visual (Melissa, 16 Nov 2026) ---------- */
.about-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.about-split-rev { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.about-photo { position: relative; margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.about-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 50%; position: relative; z-index: 1; }
.about-ring { position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 210deg, #FF9A7A, #FFD27A, #9EE6A8, #8CC8FF, #C3AEFF, #FF9A7A);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.about-photo::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -12%; bottom: -6%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 60% 40%, rgba(200,180,255,.55), rgba(140,200,255,.25) 50%, transparent 70%); }
.theme-contrast .about-ring { background: #FFF; } .theme-contrast .about-photo::after { display: none; }
.about-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; }
.chip-link:hover { border-color: var(--r6); }
.about-values { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.about-values > li { padding: 24px 22px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.section-alt .about-values > li { background: var(--bg); }
.about-values h3 { font-size: 1.35rem; margin: 14px 0 6px; }
.about-values p, .about-values li li { color: var(--muted); }
.easy-read .about-values p { color: var(--text); }
.ab-ico { width: 46px; height: 46px; padding: 10px; border-radius: 50%; fill: none; stroke: #12102A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  background: linear-gradient(135deg, #FFC6A8, #F6B9E0 50%, #C9B6FF); }
.theme-contrast .ab-ico { background: #FFFF00; }
.about-two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.about-two ul { margin: 0; padding-left: 1.2em; }
.about-thanks { margin-top: 56px; }
.dog-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dog-photos li { position: relative; margin: 0; }
.dog-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, #FFD27A) 70%, transparent); }
.dog-photos li:nth-child(1) { --c: #FF9A7A; } .dog-photos li:nth-child(2) { --c: #FFD27A; margin-top: 40px; } .dog-photos li:nth-child(3) { --c: #8CC8FF; margin-top: -40px; } .dog-photos li:nth-child(4) { --c: #C3AEFF; }
.dog-photos span { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; padding: 4px 14px; border-radius: 999px; background: var(--bg); color: var(--text); font-weight: 700; font-size: .9rem; border: 1px solid var(--line); }
@media (max-width: 1000px) { .about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .about-split, .about-split-rev { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-photo { max-width: 300px; }
  .about-values, .about-two { grid-template-columns: minmax(0, 1fr); }
}
.about-photo img, .dog-photos img { height: auto; aspect-ratio: 1 / 1; }
.dog-photos { gap: 28px 20px; } .dog-photos li:nth-child(n) { margin-top: 0; }

/* ---------- Learn topic colours (Melissa, 16 Nov 2026): autism peach, ADHD blue, AuDHD green ---------- */
.topic-autism { --accent: #FFA987; --accent-2: #FFD27A; }
.topic-adhd { --accent: #8CC8FF; --accent-2: #C3AEFF; }
.topic-audhd { --accent: #9EE6A8; --accent-2: #C7F2CE; }
.theme-light .topic-autism { --accent: #D9673F; } .theme-light .topic-adhd { --accent: #2F7FD0; } .theme-light .topic-audhd { --accent: #2E9A48; }
.topic .hero-circles .orb-a, .topic .hero-circles .orb-b { background: radial-gradient(circle at 40% 38%, color-mix(in srgb, var(--accent) 75%, transparent), color-mix(in srgb, var(--accent-2) 35%, transparent) 45%, transparent 70%); }
.topic .hero-circles .halo { background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent)); }
.hero-circles.one .orb-a, .hero-circles.one .halo-a { left: calc(100% - 380px); }
@media (max-width: 760px) { .hero-circles.one .orb-a, .hero-circles.one .halo-a { left: calc(100% - 130px); } }
.topic :is(.toc, .callout, .note, .toc a, .topics a, .card) { border-color: var(--accent); }
.topic .toc a:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.topic .prose h2, .topic .sub > h2 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.topic .topic-icon { stroke: var(--accent); }
.theme-contrast .topic { --accent: #FFFFFF; --accent-2: #FFFFFF; }

/* ---------- Reverse leaf corners on boxes (Melissa, 16 Nov 2026): rounded top-right and bottom-left. Buttons, pills
   and circles keep their own shapes. ---------- */
:root { --leaf: 0 28px 0 28px; --leaf-sm: 0 18px 0 18px; }
.card, .bento .card, .support-list li, .res-list li, .about-values > li, .toc, .callout, .note, .tool .panel, .tool-body .panel,
.site-nav .sub, html:not(.compact-header) .site-nav .mega, .a11y-panel .tile-group, .tool .box, .tool-card, .cards > li { border-radius: var(--leaf); }

.mm-img { border-radius: var(--leaf-sm); }
.bento .card-photo { border-radius: 0; }

/* ---------- Home tool cards, option C (Melissa, 16 Nov 2026): taller photo tiles in the masonry grid, title only; the
   description appears on hover or keyboard focus. A soft navy-to-pastel gradient sits under the text. Phones, touch
   screens, Easy Read and the dyslexia font always show the description. ---------- */
.bento { grid-auto-rows: minmax(250px, auto); }
.bento .card { min-height: 250px; padding: 26px; }
.bento .card-photo { opacity: .9; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.bento .card::after { display: none; }
.bento .card::before { background: linear-gradient(180deg, rgba(7,9,26,0) 38%, rgba(7,9,26,.72) 68%, color-mix(in srgb, var(--g2) 34%, #07091A) 100%); }
.bento .c1::before, .bento .c2::before, .bento .c6::before { --g2: #FF9A7A; }
.bento .c3, .bento .c4, .bento .c5 { --g2: #8CC8FF; }
.bento .c4 { --g2: #C3AEFF; } .bento .c6 { --g2: #FFD27A; } .bento li:nth-child(9) { --g2: #9EE6A8; }
.bento .card h3 { margin: 0; font-size: 1.7rem; text-shadow: 0 2px 18px rgba(7,9,26,.6); }
.bento .card p { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .45s ease, opacity .35s ease, margin-top .35s; }
.bento .card:hover p, .bento .card:focus-within p { max-height: 7em; opacity: 1; margin-top: 8px; }
.bento .card:hover .card-photo, .bento .card:focus-within .card-photo { transform: scale(1.04); opacity: 1; }
.bento .card:hover, .bento .card:focus-within { transform: none; }
@media (hover: none), (max-width: 760px) { .bento .card p { max-height: none; opacity: 1; margin-top: 8px; } }
.easy-read .bento .card p, .font-dyslexic .bento .card p { max-height: none; opacity: 1; margin-top: 8px; }
.theme-light .bento .card::before { background: linear-gradient(180deg, rgba(7,9,26,0) 38%, rgba(7,9,26,.72) 68%, color-mix(in srgb, var(--g2) 34%, #07091A) 100%); }
.theme-contrast .bento .card::before { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, #000 75%); }
@media (prefers-reduced-motion: reduce) { .bento .card p, .bento .card-photo { transition: none; } }

/* ---------- Tool colours (Melissa, 16 Nov 2026): each tool has its own pastel, used on the home card gradient, its Tools
   menu item, its card on /tools/ and the boxes, outlines and title shape on its own page. No colour repeats. ---------- */
.tc-aac, .tool-aac { --tc: #FF9A7A; }             /* coral */
.tc-aac-cards, .tool-aac-cards { --tc: #FFC27A; } /* apricot */
.tc-task-steps, .tool-task-steps { --tc: #FFE08A; } /* butter */
.tc-energy, .tool-energy { --tc: #9EE6A8; }       /* mint */
.tc-timer, .tool-timer { --tc: #86E0D2; }         /* aqua */
.tc-my-needs, .tool-my-needs { --tc: #8CC8FF; }   /* sky */
.tc-career, .tool-career { --tc: #A9B4FF; }       /* periwinkle */
.tc-scripts, .tool-scripts { --tc: #C3AEFF; }     /* lilac */
.tc-calm, .tool-calm { --tc: #F6B9E0; }           /* pink */
.theme-light :is(.tool-aac, .tc-aac) { --tc: #E0673F; } .theme-light :is(.tool-aac-cards, .tc-aac-cards) { --tc: #D98A1C; }
.theme-light :is(.tool-task-steps, .tc-task-steps) { --tc: #B8930A; } .theme-light :is(.tool-energy, .tc-energy) { --tc: #2E9A48; }
.theme-light :is(.tool-timer, .tc-timer) { --tc: #13907E; } .theme-light :is(.tool-my-needs, .tc-my-needs) { --tc: #2F7FD0; }
.theme-light :is(.tool-career, .tc-career) { --tc: #5464E0; } .theme-light :is(.tool-scripts, .tc-scripts) { --tc: #7A55E8; }
.theme-light :is(.tool-calm, .tc-calm) { --tc: #C8509A; }
.theme-contrast :is([class*="tool-"], [class*="tc-"]) { --tc: #FFFFFF; }
/* home cards and the Tools menu follow the same order as the tools */
.bento > li:nth-child(1), #sub-tools > li:nth-child(1) { --tc: #FF9A7A; } .bento > li:nth-child(2), #sub-tools > li:nth-child(2) { --tc: #FFC27A; }
.bento > li:nth-child(3), #sub-tools > li:nth-child(3) { --tc: #FFE08A; } .bento > li:nth-child(4), #sub-tools > li:nth-child(4) { --tc: #9EE6A8; }
.bento > li:nth-child(5), #sub-tools > li:nth-child(5) { --tc: #86E0D2; } .bento > li:nth-child(6), #sub-tools > li:nth-child(6) { --tc: #8CC8FF; }
.bento > li:nth-child(7), #sub-tools > li:nth-child(7) { --tc: #A9B4FF; } .bento > li:nth-child(8), #sub-tools > li:nth-child(8) { --tc: #C3AEFF; }
.bento > li:nth-child(9), #sub-tools > li:nth-child(9) { --tc: #F6B9E0; }
.bento .card::before { background: linear-gradient(180deg, rgba(7,9,26,0) 38%, rgba(7,9,26,.72) 68%, color-mix(in srgb, var(--tc) 36%, #07091A) 100%); }
.bento .card { border-color: color-mix(in srgb, var(--tc) 45%, transparent); }
#sub-tools > li:not(.mm-all) > a .mm-img { box-shadow: 0 0 0 2px var(--tc); }
#sub-tools > li:not(.mm-all) > a:hover, #sub-tools > li:not(.mm-all) > a:focus-visible { background: color-mix(in srgb, var(--tc) 16%, var(--surface)); }
#sub-tools > li:not(.mm-all) > a[aria-current="page"] { background: color-mix(in srgb, var(--tc) 22%, var(--surface)); }
/* on /tools/ and inside each tool page */
.cards > [class*="tc-"] { border-color: var(--tc); }
.cards > [class*="tc-"] h2 a, .cards > [class*="tc-"] .h3 a { text-decoration-color: var(--tc); }
[class*="tool-"]:not(.tool-index):not(.tool-page.tool-index) :is(.panel, .day, .job, .note, .callout, .toc, .tbtn[aria-pressed="true"], .tool input:focus, .tool select:focus, .tool textarea:focus) { border-color: var(--tc); }
.tool-page:not(.tool-index) .privacy svg { stroke: var(--tc); }
/* Tool title shapes (js/particles.js): outlined in the tool's colour with a soft glow inside */
.hero-shape .tool-shape { position: absolute; top: 50%; right: max(28px, calc((100% - var(--wrap)) / 2 + 28px)); width: 230px; height: 230px; transform: translateY(-50%); overflow: visible; }
.tool-shape .ts-line { fill: none; stroke: var(--tc); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .85; }
.tool-shape .ts-fill { fill: color-mix(in srgb, var(--tc) 14%, transparent); filter: blur(6px); }
@media (min-width: 761px) { .tool-page .tool-hero.has-circles .wrap > :not(.hero-circles) { max-width: min(62ch, calc(100% - 300px)); } }
@media (max-width: 760px) { .hero-shape .tool-shape { width: 92px; height: 92px; top: 18px; right: 16px; transform: none; } }
.theme-contrast .tool-shape .ts-fill { display: none; }
/* Mega menu items: hover and current-page backgrounds use the reverse leaf, so they fit the item (Melissa, 16 Nov 2026) */
.site-nav .sub a, .site-nav .mega a, .site-nav .mm-links a, .site-nav .mm-head { border-radius: var(--leaf-sm); }
.site-nav .mm-all a { border-radius: 999px; }
/* Crisis lines show each service's logo (Melissa, 16 Nov 2026); .res-logo styles are shared with Resources */
.sl-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.support-list .res-logo { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 50%; background: #FFF; overflow: hidden; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--r6) 25%, transparent); }
.support-list .res-logo img { width: 30px; height: 30px; object-fit: contain; }
.theme-contrast .support-list .res-logo { box-shadow: 0 0 0 2px #FFF; }
/* All tools page: hover shows a light tint of the tool's own colour (Melissa, 16 Nov 2026) */
.section .cards > [class*="tc-"]:hover, .section .cards > [class*="tc-"]:focus-within { --fill: color-mix(in srgb, var(--tc) 18%, var(--bg)); background: var(--fill); }
.theme-light .section .cards > [class*="tc-"]:hover, .theme-light .section .cards > [class*="tc-"]:focus-within { --fill: color-mix(in srgb, var(--tc) 14%, #FFFFFF); }
/* Mega menus: each tool title and each main Learn topic is underlined in its own colour (Melissa, 16 Nov 2026) */
#sub-tools > li:not(.mm-all) .mm-title { text-decoration: underline; text-decoration-color: var(--tc); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mega-learn > li:nth-child(1) { --ic: #FFA987; } .mega-learn > li:nth-child(2) { --ic: #8CC8FF; } .mega-learn > li:nth-child(3) { --ic: #9EE6A8; }
.theme-light .mega-learn > li:nth-child(1) { --ic: #D9673F; } .theme-light .mega-learn > li:nth-child(2) { --ic: #2F7FD0; } .theme-light .mega-learn > li:nth-child(3) { --ic: #2E9A48; }
.site-nav .mega-learn .mm-head > span { text-decoration: underline; text-decoration-color: var(--ic); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.theme-contrast #sub-tools .mm-title, .theme-contrast .site-nav .mega-learn .mm-head > span { text-decoration-color: #FFF; }

/* 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; }
/* Home tool cards: solid outline in the tool's colour, so the 1px line looks the same as the Learn circles */
.bento .card { border-color: var(--tc) !important; }
.measuring-header .site-nav .sub { display: none !important; }   /* see fitHeader() in js/site.js */
/* Crisis line boxes: solid pastel outlines, as clear as the tool cards (Melissa, 16 Nov 2026) */
.support-list > li:nth-child(1) { --sc: #FFA987; } .support-list > li:nth-child(2) { --sc: #8CC8FF; }
.support-list > li:nth-child(3) { --sc: #9EE6A8; } .support-list > li:nth-child(4) { --sc: #C3AEFF; }
.theme-light .support-list > li:nth-child(1) { --sc: #D9673F; } .theme-light .support-list > li:nth-child(2) { --sc: #2F7FD0; }
.theme-light .support-list > li:nth-child(3) { --sc: #2E9A48; } .theme-light .support-list > li:nth-child(4) { --sc: #7A55E8; }
.support-list > li { border-color: var(--sc) !important; }
.support-list .sl-num svg { stroke: var(--sc); }
.theme-contrast .support-list > li { border-color: #FFF !important; }
/* Email and Ko-fi buttons: the same outlined style as the Accessibility button (Melissa, 16 Nov 2026) */
.btn-soft { color: var(--text); border: 1px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(100deg, #FFC6A8, #F6B9E0 50%, #C9B6FF) border-box;
  box-shadow: 0 0 22px rgba(201, 182, 255, .18); }
.btn-soft:hover { box-shadow: 0 0 26px rgba(255, 198, 168, .32);
  background: linear-gradient(color-mix(in srgb, var(--surface-2) 80%, #C9B6FF), color-mix(in srgb, var(--surface-2) 80%, #C9B6FF)) padding-box, linear-gradient(100deg, #FFC6A8, #F6B9E0 50%, #C9B6FF) border-box; }
.btn-soft svg { stroke: #E3D6FF; }
.theme-light .btn-soft { background: linear-gradient(#FFFFFFAA, #FFFFFFAA) padding-box, linear-gradient(100deg, #F2A07E, #E58CC4 50%, #9C82F0) border-box; box-shadow: 0 4px 14px rgba(120, 90, 200, .14); }
.theme-light .btn-soft svg { stroke: #5B3FC4; }
.theme-contrast .btn-soft { background: #000; border: 1px solid #FFFF00; box-shadow: none; color: #FFF; }
/* Logo name: a little more space between letters and words (Melissa, 16 Nov 2026) */
.brand-name { letter-spacing: .015em; word-spacing: .06em; }
.brand { gap: 10px; }
.brand-name { letter-spacing: .04em; word-spacing: .08em; }
.brand { gap: 6px; }
/* "More to learn" (and any topic link): each topic in its own colour, autism peach, ADHD blue, AuDHD green (Melissa, 16 Nov 2026) */
.topics a[href^="/learn/autism/"] { --tcol: #FFA987; } .topics a[href^="/learn/adhd/"] { --tcol: #8CC8FF; } .topics a[href^="/learn/audhd/"] { --tcol: #9EE6A8; }
.theme-light .topics a[href^="/learn/autism/"] { --tcol: #D9673F; } .theme-light .topics a[href^="/learn/adhd/"] { --tcol: #2F7FD0; } .theme-light .topics a[href^="/learn/audhd/"] { --tcol: #2E9A48; }
.topic .topics a[href^="/learn/"], .topics a[href^="/learn/"]:not(#learn *) { border-color: var(--tcol) !important; }
.topic .topics a[href^="/learn/"] .topic-icon, .topics a[href^="/learn/"]:not(#learn *) .topic-icon { stroke: var(--tcol); }
.topic .topics a[href^="/learn/"]:hover, .topics a[href^="/learn/"]:not(#learn *):hover { background: color-mix(in srgb, var(--tcol) 16%, var(--surface)); }
.theme-contrast .topics a[href^="/learn/"] { --tcol: #FFF; }

/* ---------- Phones (Melissa, 16 Nov 2026) ----------
   Home tool cards show only their title (less busy). Header: logo centred on its own line, a full-width Menu button,
   and Easy Read and Accessibility inside the menu (shown when the menu is open). */
@media (max-width: 600px) {
  .bento .card p, .easy-read .bento .card p, .font-dyslexic .bento .card p { display: none; }
  .bento .card { min-height: 180px; }
  .js .header-inner { flex-wrap: wrap; justify-content: center; }
  .js .site-header .brand { order: 1; width: 100%; justify-content: center; }
  .js .menu-btn { order: 2; width: 100%; margin-left: 0 !important; justify-content: center; }
  .js .site-nav { order: 3; }
  .js .header-tools { order: 4; display: none !important; }
  .js.menu-open .header-tools { display: flex !important; flex-direction: column; width: 100%; gap: 8px; padding-bottom: 8px; }
  .js.menu-open .header-tools .pill { width: 100%; justify-content: center; }
}
@media (max-width: 600px) { .js .header-inner { padding-top: 12px; padding-bottom: 12px; } }
/* Phones: the two hero circles fit inside the screen (Melissa, 16 Nov 2026). Together they span 1.44 × one circle. */
@media (max-width: 760px) {
  .hero-b { --d: min(64vw, 440px); min-height: 0; padding: 56px 0 64px; }
  .hero-b .orb, .hero-b .halo { width: var(--d); top: 50%; }
  .hero-b .orb-a, .hero-b .halo-a { transform: translate(-72%, -50%); } .hero-b .orb-b, .hero-b .halo-b { transform: translate(-28%, -50%); }
  .hero-b .orb { filter: blur(1px); }
}
/* Phones: the circles sit ABOVE the text, so you can see them and play with the particles (Melissa, 16 Nov 2026) */
@media (max-width: 760px) {
  .hero-b { --d: min(66vw, 420px); padding: calc(var(--d) + 56px) 0 60px; }
  .hero-b .orb, .hero-b .halo { top: calc(28px + var(--d) / 2); }
}
/* Phones: every page's title shape (circles or tool shape) sits at the top, centred, with the title text under it
   (Melissa, 16 Nov 2026) */
@media (max-width: 760px) {
  .tool-hero.has-circles { --s: 170px; padding-top: calc(var(--s) + 44px); }
  .tool-hero.has-circles .wrap > :not(.hero-circles) { max-width: none; }
  .hero-circles .orb, .hero-circles .halo { width: calc(var(--s) * .72) !important; top: calc(22px + var(--s) / 2) !important; }
  .hero-circles .orb-a, .hero-circles .halo-a { left: 50% !important; transform: translate(-72%, -50%) !important; }
  .hero-circles .orb-b, .hero-circles .halo-b { left: 50% !important; transform: translate(-28%, -50%) !important; }
  .hero-circles.one .orb-a, .hero-circles.one .halo-a { width: calc(var(--s) * .9) !important; transform: translate(-50%, -50%) !important; }
  .hero-circles .orb { opacity: .55 !important; }
  .hero-shape .tool-shape { width: var(--s) !important; height: var(--s) !important; top: 22px !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
}
