/* RecoverED – all styles. Colours and fonts are at the top.
   The look follows the 2015 WordPress site (teal, cream, sand, the triangle pattern, Open Sans), rebuilt to meet
   WCAG 2.2 AA: dark text on the light colours, sentence case instead of spaced capitals, no auto-playing slider. */

@font-face { font-family: "Open Sans"; src: url(/fonts/open-sans-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/fonts/open-sans-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/fonts/open-sans-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/fonts/open-sans-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --teal: #6DC8BF;       /* backgrounds and shapes only (dark text on it: 6.9:1) */
  --teal-ink: #17605A;   /* headings and links on white/cream (6.5:1 on cream) */
  --teal-soft: #DDF2EF;
  --cream: #F9F1D7;
  --butter: #F7E8BA;
  --sand: #C2A686;       /* backgrounds and shapes only */
  --sand-ink: #7A5C3A;   /* text on cream (5.4:1) */
  --ink: #2B2F33;        /* body text */
  --muted: #4E555C;
  --charcoal: #3B4047;   /* header and footer (white text 10.5:1) */
  --white: #FFFFFF;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --gap: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--teal-ink); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: .03em; }
h3 { font-size: 1.3rem; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 6px var(--ink); }
strong { font-weight: 700; }
.num { font-variant-numeric: lining-nums; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--white); color: var(--ink); padding: 12px 18px; font-weight: 700; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin: 0 auto; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; max-width: 72ch; } /* centred text stays a comfortable width */
.ext-icon { width: .8em; height: .8em; margin-left: .25em; vertical-align: -.05em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 26px;
  font: 700 1rem/1.3 var(--font); letter-spacing: .04em; text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; text-align: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--teal-ink); color: var(--white); }
.btn-primary:hover { background: #0F4A45; }
.btn-teal { background: var(--teal); color: var(--ink); }
.btn-teal:hover { background: #8AD4CC; }
.btn-outline { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-outline:hover { background: rgba(255, 255, 255, .35); }
.btn-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-light:hover { background: rgba(255, 255, 255, .15); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 24px; }
.center .actions { justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: var(--gap) 0; }
.section > .wrap > :last-child { margin-bottom: 0; }
.section-cream { background: var(--cream); }
.section-butter { background: var(--butter); }
.section-soft { background: var(--teal-soft); }
.section-cream.section-blue { background: var(--teal-soft); } /* first section on the drop-down pages; boxes inside stay white */
.section-teal { background: var(--teal); }
.section-teal h2, .section-teal h3, .section-teal a:not(.btn) { color: var(--ink); }
.section-pattern { background: var(--cream) url(/images/pattern-tile.webp) center / 358px 155px repeat; }
/* Title + cards share one background, so the pattern runs on without a join line */
.pattern-zone { background: var(--cream) url(/images/pattern-tile.webp) center top / 358px 155px repeat; }
.pattern-zone > .page-title, .pattern-zone > .section-pattern { background: none; }
.divider { width: 48px; height: 3px; background: var(--ink); border: 0; margin: 4px auto 28px; }
.section-teal .divider { background: var(--ink); }
.lead { font-size: 1.2rem; }

/* ---------- Header ---------- */
.site-header { background: var(--charcoal); color: var(--white); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding: 14px 0; }
.brand { display: block; flex: none; }
.brand img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav .sub-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--teal); }
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group > a { padding-right: 2px; }
.sub-btn { background: none; border: 0; cursor: pointer; padding: 8px 10px 8px 4px !important; min-width: 32px; justify-content: center; }
.sub-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.sub-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white); border-top: 3px solid var(--teal); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.subnav a { color: var(--ink); display: flex; padding: 10px 20px; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--teal-soft); text-decoration-color: var(--teal-ink); }
html.js .subnav[hidden] { display: none; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: transparent; color: var(--white); border: 2px solid var(--white); border-radius: 2px; font: 700 1rem var(--font); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close, .menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: inline; }

/* Home: the header sits over the hero photo, with a dark shade behind it so the white menu stays readable */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(rgba(25, 22, 30, .78), rgba(25, 22, 30, 0)); }

/* ---------- Hero slider (home) ---------- */
.hero { position: relative; background: #2E2430; color: var(--white); overflow: hidden; }
.slide { position: relative; min-height: min(86vh, 760px); display: grid; align-items: center; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 26, .72) 0%, rgba(20, 18, 26, .45) 55%, rgba(20, 18, 26, .15) 100%); }
.slide-text { position: relative; z-index: 1; padding: 150px 0 110px; }
.slide-text h1, .slide-text h2 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: .03em; max-width: 15ch; margin-bottom: .3em; }
.slide-text p { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 34ch; }
html.js .slide:not(.is-current) { display: none; }
.slide img.pos-bird { object-position: 80% 40%; } /* slide 1: keeps the gull clear of the text on phones and tablets */
.slider-controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; }
.slider-controls .wrap { display: flex; align-items: center; gap: 12px; }
.slider-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; background: rgba(20, 18, 26, .6); color: var(--white); border: 2px solid var(--white); border-radius: 2px; cursor: pointer; }
.slider-btn:hover { background: rgba(20, 18, 26, .85); }
.slider-btn svg { width: 22px; height: 22px; }
.slider-count { font-weight: 700; padding: 0 6px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.slider-controls[hidden] { display: none; }

/* ---------- Welcome ---------- */
.welcome .crane { width: 140px; margin: 0 auto 28px; }
.welcome h2 { letter-spacing: .08em; }
.brand-ed { color: var(--sand-ink); }

/* ---------- Founder ---------- */
.founder blockquote { margin: 0 auto; max-width: 820px; font-style: italic; font-size: 1.1rem; }
.founder blockquote p { max-width: none; }
.founder em { font-style: normal; font-weight: 700; color: var(--teal-ink); }
.founder figcaption { margin-top: 28px; display: grid; justify-items: center; gap: 4px; }
.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 4px solid var(--white); }
.founder-name { font-weight: 700; letter-spacing: .06em; }
.founder-role { font-style: italic; color: var(--muted); }

/* ---------- Eating disorder cards ---------- */
.ed-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ed-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px 36px; min-height: 330px; color: var(--ink); }
.ed-card:nth-child(4n+1) { background: var(--teal); }
.ed-card:nth-child(4n+2) { background: var(--butter); }
.ed-card:nth-child(4n+3) { background: var(--sand); }
.ed-card:nth-child(4n) { background: var(--cream); }
.ed-card .q { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; margin-bottom: 24px; background: var(--white); color: var(--teal-ink); }
.ed-card:nth-child(4n+1) .q { background: var(--cream); }
.ed-card:nth-child(4n+2) .q, .ed-card:nth-child(4n) .q { background: var(--teal); color: var(--ink); }
.ed-card .q svg { width: 56px; height: 56px; }
.ed-card h3 { color: var(--ink); font-size: 1.2rem; letter-spacing: .03em; margin-bottom: 12px; }
.ed-card h3 a { color: inherit; text-decoration: none; }
.ed-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ed-card p { font-size: .98rem; margin: 0 0 16px; }
.ed-card .more { margin-top: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ed-card:hover { box-shadow: 0 10px 24px rgba(43, 47, 51, .2); transform: translateY(-3px); }
.ed-card { transition: transform .2s, box-shadow .2s; }
.ed-card:focus-within { outline: 3px solid var(--ink); outline-offset: 4px; }
.ed-card h3 a:focus-visible { outline: none; }

/* ---------- Statistics circles ---------- */
.stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 20px; }
.stat { text-align: center; display: grid; justify-items: center; align-content: start; gap: 12px; }
.stat-n { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; height: 132px; border-radius: 50%; border: 4px solid var(--ink); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.stat-n small { display: block; font-size: .9rem; font-weight: 700; margin-top: 2px; }
.stat-label { font-weight: 700; line-height: 1.4; max-width: 18ch; }
.section-cream .stat-n, .section-white .stat-n { border-color: var(--teal); color: var(--teal-ink); }
.sources { font-size: .9rem; margin-top: 32px; }
.sources p { max-width: none; }

/* ---------- Relax band ---------- */
.relax-band { position: relative; padding: 72px 0; background: #1E2A33; }
.relax-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.relax-band .wrap { position: relative; }
.relax-band .btn { width: 100%; font-size: 1.1rem; min-height: 60px; }

/* ---------- Page title (inner pages) ---------- */
.page-title { background: var(--cream) url(/images/pattern-tile.webp) center / 358px 155px repeat; padding: 64px 0; }
.page-title .wrap > div { background: rgba(255, 255, 255, .92); padding: 32px 36px; max-width: 760px; }
.page-title h1 { margin-bottom: .3em; }
.page-title p { margin: 0; font-size: 1.15rem; }
/* "On this page" jump links in the page title box (eating disorder pages) */
.on-page { margin-top: 22px; }
.page-title .on-page-label { font-weight: 700; font-size: .95rem; margin: 0 0 8px; }
.on-page ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.on-page a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--teal-soft); color: var(--teal-ink);
  font-weight: 700; font-size: .98rem; text-decoration: none; border-radius: 2px; }
.on-page a:hover { background: var(--teal); color: var(--ink); }
.on-page a.on-page-help { background: var(--charcoal); color: var(--white); }
.on-page a.on-page-help:hover { background: var(--ink); }
.breadcrumbs { font-size: .95rem; margin-bottom: 10px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--muted); }

/* ---------- Content ---------- */
.prose h2 { margin-top: 0; }
.prose h3 { color: var(--ink); }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.signs > div { background: var(--white); padding: 28px; border-top: 6px solid var(--teal); }
.signs > div:nth-child(2) { border-color: var(--sand); }
.signs > div:nth-child(3) { border-color: #E1D3A2; }
.signs h3 { font-size: 1.2rem; }
.signs ul { margin: 0; padding-left: 1.2em; }
.signs li { margin-bottom: 8px; }
.note { background: var(--teal-soft); padding: 20px 24px; margin: 28px 0 0; max-width: none; }
.note p:last-child { margin-bottom: 0; }
.cta { background: var(--teal); padding: 44px 0; }
.cta h2 { color: var(--ink); font-size: clamp(1.3rem, 2.4vw, 1.6rem); max-width: none; }
.cta p { max-width: none; }
/* "Where to start" box under the treatment text, with a button */
.start-box { background: var(--white); padding: 28px 32px; margin-top: 32px; }
.section:not(.section-cream) .start-box { background: var(--cream); } /* white sections: cream, so the box still shows */
.start-box h3 { margin-top: 0; }
.start-box p:last-of-type { margin-bottom: 0; }
.start-box .actions { margin-top: 20px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.subtypes { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.prose .subtypes { padding-left: 0; }
.subtypes li { background: var(--cream); padding: 20px 24px; }
.section-cream .subtypes li { background: var(--white); }
.subtypes strong { display: block; color: var(--ink); }
.content-note { font-weight: 600; background: var(--butter); padding: 14px 20px; }

/* Success stories */
.story { max-width: none; }
.story figure { margin: 24px 0 0; }
.story blockquote { margin: 0; max-width: none; font-size: 1.08rem; }
.story blockquote p { max-width: none; }
.story figcaption { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.story figcaption .avatar { margin: 0; width: 96px; height: 96px; }
.story-meta { font-size: .95rem; color: var(--muted); }

/* Resources */
.resource-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.resource-group { background: var(--white); padding: 28px; border-top: 6px solid var(--teal); }
.resource-group:nth-child(4n+2), .resource-group:nth-child(4n+3) { border-color: var(--sand); }
.resource-group h2, .resource-group h3 { color: var(--ink); }
.resource-group h2 { font-size: 1.4rem; }
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.resource-list p { margin: 4px 0 0; font-size: .98rem; }
.resource-list a { font-weight: 700; }
.resource-group.wide { grid-column: 1 / -1; }
.resource-group .rg-next { margin-top: 32px; } /* second country in the same box (United States and Canada) */
.quote { font-size: 1.3rem; font-style: italic; text-align: center; color: var(--teal-ink); margin: 0 auto; max-width: 40ch; }
.quote cite { display: block; font-size: 1rem; font-style: normal; color: var(--muted); margin-top: 8px; }

/* Relaxation station */
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; background: var(--white); padding: 28px 24px 24px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.steps p { margin: 0; }
.options { border: 0; padding: 0; margin: 0 0 20px; }
.options legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.options label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 6px 0; cursor: pointer; }
.options input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--teal-ink); flex: none; }
.options-row label { display: inline-flex; margin-right: 22px; }
.breathe { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.breath-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto; }
.breath-circle { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--teal-soft), var(--teal) 70%); transform: scale(.45); opacity: .9;
  transition-property: transform, opacity; transition-timing-function: ease-in-out; transition-duration: 1.5s; }
.breath-circle.is-big { transform: scale(1); }
.breath-circle.no-scale { transform: scale(.85); opacity: .4; }  /* reduced motion: the colour deepens instead of growing */
.breath-circle.no-scale.is-big { opacity: 1; }
.breath-text { position: relative; margin: 0; padding: 0 12%; text-align: center; font-weight: 700; font-size: 1.6rem; line-height: 1.2; color: var(--ink); }
.breath-count { display: block; font-size: 2.6rem; font-weight: 700; }
.breath-left { position: absolute; bottom: -8px; margin: 0; font-weight: 700; padding: 6px 16px; border-radius: 999px; background: var(--white); color: var(--ink); line-height: 1.4; }
.breath-left:empty { display: none; }
.sound-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.volume { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; min-height: 44px; }
.volume input { width: 200px; accent-color: var(--teal-ink); }
.senses { list-style: none; margin: 12px 0 20px; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.senses li { display: flex; align-items: center; gap: 14px; background: var(--white); padding: 10px 16px; font-size: 1.15rem; }
.sense-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); font-weight: 700; font-size: 1.2rem; flex: none; }
.gallery { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.g-item { display: block; overflow: hidden; background: var(--teal-soft); }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s, opacity .2s; }
.g-item:hover img { transform: scale(1.04); opacity: .92; }
.g-item:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.gallery-credit { font-size: .9rem; color: var(--muted); margin-top: 20px; }

/* Gallery lightbox (js/gallery.js) */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #22262A; color: var(--white); font-family: var(--font); }
.lightbox::backdrop { background: #22262A; }
.lb-inner { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 16px clamp(16px, 4vw, 48px) 20px; }
.lb-bar, .lb-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-title { margin: 0; color: var(--white); font-size: 1.25rem; letter-spacing: .03em; }
.lb-figure { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb-figure img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; touch-action: pan-y; }
.lb-caption { max-width: 60rem; text-align: center; line-height: 1.5; }
.lb-credit { display: block; font-size: .9rem; color: #C9D1D6; }
.lb-btn { min-height: 48px; padding: 0 20px; border: 2px solid var(--white); border-radius: 2px; background: transparent; color: var(--white);
  font: 700 1rem var(--font); cursor: pointer; white-space: nowrap; }
.lb-btn:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.lightbox :focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.lb-count { margin: 0; font-weight: 700; text-align: center; }

/* ---------- Get in touch, crisis lines, footer ---------- */
.contact { background: var(--cream); }
.support { background: var(--white); }
.support-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.support-list li { padding: 18px 20px; background: var(--teal-soft); }
.support-list li:nth-child(even) { background: var(--cream); }
.support-list strong { display: block; font-size: 1.1rem; }
.support-list .num { white-space: nowrap; }
.kofi { background: var(--teal-soft); padding: 48px 0; text-align: center; }
.kofi h2 { color: var(--ink); font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.kofi p { margin-left: auto; margin-right: auto; max-width: 62ch; }
.kofi .actions { justify-content: center; margin-top: 18px; }
.pattern-strip { height: 22px; background: var(--cream) url(/images/pattern-tile.webp) center / 358px 155px repeat; }
.site-footer { background: var(--charcoal); color: var(--white); padding: 32px 0; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: center; }
.site-footer p { margin: 0; }
.tagline-strong { font-weight: 700; }
.tagline-strong em { color: var(--teal); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .breath-circle { transition-property: opacity !important; transition-duration: 1.5s !important; } /* colour fade only */
}

/* Help pages (GP checklist, family and friends, myths and facts) */
.nav-group:last-child .subnav { left: auto; right: 0; } /* Recovery resources list: keep it on screen */
.ed-cards.ed-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ed-cards-4 .ed-card { padding: 40px 20px 32px; }
.signs.signs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; background: var(--white); padding: 16px 20px 16px 60px; margin: 0; }
.section:not(.section-cream) .checklist li { background: var(--cream); }
.checklist li::before { content: ""; position: absolute; left: 20px; top: 19px; width: 22px; height: 22px; border: 2px solid var(--teal-ink); border-radius: 4px; background: var(--white); }
.print-actions { margin-top: 20px; }
.myths { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.myths li { background: var(--white); padding: 24px 28px; margin: 0; }
.myths h3 { margin: 0 0 10px; font-size: 1.15rem; }
.myths p:last-child { margin-bottom: 0; }
.myth-label { display: inline-block; margin: 0 0 8px; padding: 2px 10px; background: var(--butter); color: var(--sand-ink); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.subtypes.who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qa { background: var(--cream); padding: 22px 28px; margin-top: 16px; }
.section-cream .qa { background: var(--white); }
.qa h3 { margin: 0 0 8px; font-size: 1.1rem; }
.qa-a p:last-child { margin-bottom: 0; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1099px) {
  html.js .menu-btn { display: inline-flex; }
  html.js .header-inner { flex-wrap: wrap; }
  html.js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 12px; border-top: 1px solid rgba(255, 255, 255, .25); }
  html.js .menu-open .nav { display: flex; }
  .home .menu-open { background: var(--charcoal); }
  .nav a, .nav .sub-btn { font-size: 1.05rem; }
  .nav-group { flex-wrap: wrap; }
  .nav-group > a { flex: 1; }
  .subnav { position: static; width: 100%; box-shadow: none; border-top: 0; background: transparent; padding: 0 0 6px 16px; }
  .subnav a { color: var(--white); padding: 8px 10px; }
  .subnav a:hover, .subnav a[aria-current="page"] { background: transparent; text-decoration-color: var(--teal); }
  .ed-cards, .ed-cards.ed-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signs, .steps { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .breathe, .two-col, .resource-groups, .signs.signs-2, .myths, .subtypes.who { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --gap: 56px; }
  .wrap { width: calc(100% - 40px); }
  .brand img { width: 160px; }
  .ed-cards, .ed-cards.ed-cards-4 { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lb-btn { padding: 0 14px; }
  .ed-card { min-height: 0; }
  .slide { min-height: 0; }
  .slide-text { padding: 130px 0 110px; }
  .page-title .wrap > div { padding: 24px 20px; }
  .stat-n { width: 112px; height: 112px; font-size: 1.6rem; }
  .founder blockquote { text-align: left; }
}

/* ---------- Charlie & Chai's bone hunt (js/dog-game.js, same game as melissasugden.com) ---------- */
.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: rgba(255, 255, 255, .15); }
.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: var(--cream); border-radius: 50%; padding: 2px; } /* keeps Chai's dark ears visible on charcoal */
.stat-n small.pre { margin: 0 0 4px; }

/* Credit for the real cow recordings (Cows in a field) */
.sound-credit { font-size: .9rem; margin: 16px 0 0; }

/* ---------- Printing (e.g. the GP checklist) ---------- */
@media print {
  .site-header, .skip, .on-page, .print-actions, .breadcrumbs, .cta, .section-soft, .contact, .kofi, .pattern-strip, .site-footer, .lightbox { display: none !important; }
  body { font-size: 11pt; line-height: 1.5; }
  .page-title, .section, .section-cream, .support { background: none !important; padding: 12pt 0 !important; }
  .wrap { width: 100% !important; }
  .page-title .wrap > div { padding: 0 !important; background: none !important; box-shadow: none !important; }
  .checklist li, .subtypes li, .qa, .note, .start-box, .myths li, .support-list li { background: none !important; border: 1px solid #999; break-inside: avoid; }
  .start-box .actions { display: none; }
  a { color: inherit; }
  .start-box a.btn::after, .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  h2, h3 { break-after: avoid; }
}
