/* Sunstone website stylesheet, version 1.2 (guide pages, six guides)
   Drengr Sunstone CIC, trading as Sunstone
   Palette and type follow the Sunstone Brand Guidelines (version 1.0).
   If you change this file, save it under a new version number (for example
   sunstone-1.1.css) and update the <link> in each page, because static assets
   are cached for a year. */

/* ---------- Fonts (self-hosted, SIL Open Font License, see /assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-serif-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-serif-600.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  --slate: #14232B;      /* Stone Slate: text, headings, dark bands */
  --slate-2: #1D3440;    /* slightly lighter slate for the footer emergency band */
  --teal: #1B5559;       /* Deep Teal: links, key numbers, primary buttons */
  --teal-dark: #123D40;  /* hover state for teal */
  --amber: #E0A030;      /* Sunstone Amber: decorative on light; buttons and focus on dark */
  --amber-dark: #C98A1E;
  --mist: #E4DFD3;       /* panels and rules */
  --paper: #F6F3EC;      /* page background */
  --grey: #4B5A62;       /* secondary text, form borders (6.4:1 on Paper) */
  --rule: #CFC8B8;       /* decorative hairlines only */
  --white: #FFFFFF;
  --error: #A3261B;      /* error text and borders (6.6:1 on white) */

  --font-sans: "IBM Plex Sans", Calibri, Arial, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;

  --bar-h: 3.5rem;                       /* height of the sticky safety bar */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 72rem;
  --measure: 68ch;
  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem; --space-5: 3rem;
  --section: clamp(2.75rem, 6vw, 5rem);
  --radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 1rem);  /* WCAG 2.4.11: sticky bar never hides the focused item */
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;  /* 17px */
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  font-kerning: normal;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
main { display: block; }
:target { scroll-margin-top: calc(var(--bar-h) + 1rem); }
[hidden] { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--slate); margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 1.45rem + 2.6vw, 3.125rem); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem); line-height: 1.2; }
h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--teal); }
strong, b { font-weight: 600; }
small { font-size: 0.9375rem; }

.lead { font-family: var(--font-serif); font-size: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem); line-height: 1.5; font-weight: 400; }
.eyebrow {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.875rem; line-height: 1.3;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin: 0 0 0.75rem;
}
.eyebrow::before { content: ""; display: block; width: 3.5rem; height: 0.3rem; background: var(--amber); margin-bottom: 0.75rem; }
.muted { color: var(--grey); }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Focus (WCAG 2.4.7, 2.4.13 as good practice) ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white); border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--amber); box-shadow: 0 0 0 3px var(--slate); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--slate); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a:not(.btn) { color: var(--white); }
.stack > * + * { margin-top: var(--space-3); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.center { text-align: center; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: var(--space-2); top: -10rem; z-index: 2000;
  background: var(--white); color: var(--slate); font-weight: 600; padding: 0.75rem 1rem; border: 3px solid var(--slate);
  text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible { top: 0.5rem; }

/* ---------- Safety bar and "Leave this site" (section 3.1) ----------
   The bar is sticky and sits in normal flow, so it reserves its own space
   and never covers headings, links or form fields (WCAG 2.4.11). */
.safety-bar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--slate); color: var(--white);
  min-height: var(--bar-h);
  display: flex; align-items: center;
}
.safety-bar__inner { display: flex; align-items: center; gap: var(--space-2); justify-content: space-between; min-height: var(--bar-h); }
.safety-bar__easy { order: 1; color: var(--white); font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em;
  min-height: 44px; display: inline-flex; align-items: center; padding-inline: 0.25rem; }
.safety-bar__easy:hover { color: var(--white); text-decoration-thickness: 2px; }
.safety-bar__exit-group { order: 2; display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.safety-bar__hint { display: none; font-size: 0.875rem; color: rgba(255, 255, 255, 0.88); }
@media (min-width: 48rem) { .safety-bar__hint { display: inline; } }

.exit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; min-width: 44px; padding: 0.5rem 1.1rem;
  background: var(--amber); color: var(--slate); border: 2px solid var(--amber); border-radius: var(--radius);
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.exit-btn:hover { background: #F0B551; border-color: #F0B551; color: var(--slate); text-decoration: none; }
.exit-btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; box-shadow: none; }
.exit-btn__icon { width: 1.1em; height: 1.1em; flex: none; }

/* Exit overlay: hides the page at once while the redirect happens */
html.is-exiting body > * { visibility: hidden !important; }
html.is-exiting body::after { content: ""; position: fixed; inset: 0; background: var(--white); z-index: 2147483647; }

/* ---------- First-visit safety banner ---------- */
.safety-banner { display: none; background: #FBEFD9; border-bottom: 1px solid #E8CC93; }
html.show-safety-banner .safety-banner { display: block; }
.safety-banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 0.9rem; }
.safety-banner p { margin: 0; flex: 1 1 28rem; }
.safety-banner .btn { flex: none; }

/* ---------- Site header and navigation ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 0.85rem; }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-logo img { width: 10.5rem; height: auto; }
@media (min-width: 48rem) { .site-logo img { width: 12.5rem; } }

.menu-toggle {
  display: none; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.5rem 0.9rem;
  background: var(--white); color: var(--slate); border: 2px solid var(--slate); border-radius: var(--radius);
  font: 600 1rem/1 var(--font-sans); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 1.15rem; height: 2px; background: currentColor; content: ""; position: relative;
}
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.35rem; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.65rem;
  color: var(--slate); font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rule); color: var(--slate); }
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { border-bottom-color: var(--amber); font-weight: 600; }
.site-nav a.site-nav__support { background: var(--teal); color: var(--white); border-radius: var(--radius); border-bottom: 0; padding-inline: 0.9rem; margin-left: 0.25rem; }
.site-nav a.site-nav__support:hover { background: var(--teal-dark); color: var(--white); }
.site-nav a.site-nav__support[aria-current] { box-shadow: inset 0 -3px 0 var(--amber); }

/* Small screens: the menu collapses behind the "Menu" button (JavaScript only;
   without JavaScript the full list stays visible). */
@media (max-width: 67.99rem) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); padding-top: 0.5rem; }
  .site-nav a { display: flex; width: 100%; padding: 0.65rem 0.25rem; border-bottom: 1px solid var(--mist); }
  .site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { border-bottom: 1px solid var(--mist); box-shadow: inset 4px 0 0 var(--amber); padding-left: 0.85rem; }
  .site-nav a.site-nav__support { margin: 0.6rem 0 0.25rem; justify-content: center; }
}
@media (min-width: 68rem) { .site-nav { display: block; } }

/* ---------- Footer (section 3.3) ---------- */
.site-footer { background: var(--slate); color: var(--white); margin-top: 0; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--white); text-decoration-thickness: 2px; }
.footer-emergency { background: var(--slate-2); border-top: 4px solid var(--amber); }
.footer-emergency__inner { padding-block: 1.5rem; }
.footer-emergency__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.375rem; margin: 0 0 0.5rem; color: var(--white); }
.footer-emergency__lines { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1.75rem; }
.footer-emergency__lines li { margin: 0; }
.footer-emergency__lines a { font-weight: 600; }
.footer-emergency p { margin: 0; }
.footer-main { padding-block: 2.5rem 2rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-main { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo { width: 11rem; margin-bottom: 1rem; }
.footer-podcast { color: rgba(255, 255, 255, 0.9); max-width: 26rem; margin: 0; }
.footer-nav h2 { font-family: var(--font-sans); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin: 0 0 0.75rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; padding-block: 0.1rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.22); padding-block: 1.5rem 2rem; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.9); }
.footer-legal p { margin: 0 0 0.5rem; max-width: 60rem; }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; padding: 0; margin: 0.5rem 0 0; }
.footer-legal__links li { margin: 0; }
.footer-legal__links a { display: inline-flex; min-height: 36px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  font: 600 1.0625rem/1.25 var(--font-sans); text-decoration: none; text-align: center;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--slate); border-color: var(--slate); }
.btn--secondary:hover { background: var(--mist); color: var(--slate); }
.btn--amber { background: var(--amber); color: var(--slate); border-color: var(--amber); }
.btn--amber:hover { background: #F0B551; border-color: #F0B551; color: var(--slate); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: var(--space-3); }
.text-link { font-weight: 600; }
.text-link::after { content: " \2192"; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--slate); overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 55% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 35, 43, 0.7); z-index: 1; }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 10vw, 7.5rem); }
.hero__content { max-width: 44rem; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--white); }
.hero__danger { margin: var(--space-3) 0 0; font-weight: 600; }
.hero__danger a { color: var(--white); }

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--white); border-bottom: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-header .lead { max-width: 46rem; margin-bottom: 0; }
.page-header h1 { max-width: 48rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; margin-bottom: 0.5rem; }
.back-link::before { content: "\2190\00a0"; }

/* ---------- Layout helpers ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right > .split__media { order: 2; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
  .split--top { align-items: start; }
}
.grid-cards { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-2 { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

/* ---------- Media ---------- */
.figure { margin: 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--mist); }
.figure--wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.figure--banner img { aspect-ratio: 16 / 7; object-fit: cover; }
.figure--43 img { aspect-ratio: 4 / 3; object-fit: cover; }
.figure--square img { aspect-ratio: 1 / 1; object-fit: cover; }
.figure--tight img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 50%; }
.figure figcaption { font-size: 0.9375rem; color: var(--grey); margin-top: 0.5rem; }

/* ---------- Cards and panels ---------- */
.card { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 0.5rem; }
.card p { flex: 1 1 auto; }
.card > :last-child { margin-bottom: 0; }
.card .tag { align-self: flex-start; margin-bottom: 0.75rem; }
.panel { background: var(--mist); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.panel > :last-child { margin-bottom: 0; }
.panel--amber { border-top-color: var(--amber); }
.panel--white { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--teal); }
.callout { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.5; }
.tag { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--mist); color: var(--slate); border: 1px solid var(--grey); border-radius: 999px; padding: 0.15rem 0.65rem; line-height: 1.5; }

/* ---------- Lists ---------- */
.lead-list { list-style: none; padding: 0; }
.lead-list li { padding-left: 1.4rem; position: relative; margin-bottom: 0.75rem; }
.lead-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55rem; height: 0.55rem; background: var(--amber); border-radius: 1px; }
.steps { list-style: none; padding: 0; counter-reset: step; margin: 0 0 var(--space-3); }
.steps > li { counter-increment: step; position: relative; padding: 1rem 0 1rem 3.75rem; border-top: 1px solid var(--rule); margin: 0; }
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.7rem;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.75rem; line-height: 1.2; color: var(--teal); }
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: 0.85rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.2rem; height: 1.2rem; border: 2px solid var(--slate); border-radius: 2px; background: var(--white); }

/* ---------- Offers (How we help) ---------- */
.offer { padding-block: 1.5rem; border-top: 1px solid var(--rule); max-width: var(--measure); }
.offer:last-child { border-bottom: 1px solid var(--rule); }
.offer h3 { margin-bottom: 0.4rem; }
.offer > :last-child { margin-bottom: 0; }

/* ---------- In-page navigation ---------- */
.in-page { background: var(--white); border-bottom: 1px solid var(--rule); }
.in-page ul { list-style: none; margin: 0; padding: 0.6rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.in-page li { margin: 0; }
.in-page a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.95rem; border: 1px solid var(--grey); border-radius: 999px;
  color: var(--slate); text-decoration: none; font-weight: 500; background: var(--paper); }
.in-page a:hover { background: var(--mist); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-bottom: var(--space-3); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--white); }
caption { text-align: left; font-weight: 600; padding: 0 0 0.6rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
th:first-child, td:first-child { padding-left: 0.9rem; }
thead th { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); border-bottom: 2px solid var(--slate); }
tbody th { font-weight: 600; }
.table--details th { width: 38%; }

/* ---------- Emergency and helplines ---------- */
.emergency { background: var(--slate); color: var(--white); border-left: 6px solid var(--amber); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.emergency h2 { color: var(--white); margin-bottom: 0.4rem; }
.emergency p { margin: 0; font-size: 1.125rem; }
.emergency a { color: var(--white); font-weight: 600; }
.helplines { list-style: none; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.helplines li { margin: 0; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 1.25rem; }
.helplines h3 { font-size: 1.125rem; margin-bottom: 0.35rem; }
.helplines a { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Support box (section 3.5) ---------- */
.support-box { background: var(--white); border: 1px solid var(--rule); border-left: 6px solid var(--amber); border-radius: var(--radius); padding: 1.25rem 1.5rem; max-width: 52rem; }
.support-box p { margin: 0; }

/* ---------- Founders ---------- */
.founder { display: grid; gap: var(--space-3); grid-template-columns: 1fr; align-items: start; padding-block: var(--space-3); border-top: 1px solid var(--rule); }
@media (min-width: 40rem) { .founder { grid-template-columns: 13rem 1fr; } }
.founder:last-of-type { border-bottom: 1px solid var(--rule); }
.headshot { width: 13rem; max-width: 100%; aspect-ratio: 50 / 66; border-radius: var(--radius); overflow: hidden; background: var(--mist); border-bottom: 4px solid var(--amber); }
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.headshot--placeholder { display: flex; align-items: center; justify-content: center; }
.headshot--placeholder img { width: 52%; height: auto; opacity: 0.16; object-fit: contain; }
.founder__role { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }
.founder h3 { font-family: var(--font-serif); font-size: 1.75rem; margin-bottom: 0.4rem; }

/* ---------- Podcast ---------- */
.episodes td:first-child { font-family: var(--font-serif); font-weight: 600; color: var(--teal); width: 4.5rem; }
.episodes td:last-child { white-space: nowrap; }
.player { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.player audio { width: 100%; margin-bottom: 0.75rem; }
.player__speed { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.player__speed button { min-height: 44px; min-width: 44px; padding: 0.4rem 0.8rem; border: 2px solid var(--slate); background: var(--white); color: var(--slate); border-radius: var(--radius); font: 600 1rem/1 var(--font-sans); cursor: pointer; }
.player__speed button[aria-pressed="true"] { background: var(--slate); color: var(--white); }
.player__status { margin: 0; }
.transcript { max-width: var(--measure); }
.format-bar { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.format-bar li { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.6rem 0.9rem; }

/* ---------- Forms (section 5.6) ---------- */
.form { max-width: 40rem; }
.form-intro { margin-bottom: var(--space-3); }
.field { margin: 0 0 1.6rem; }
.field > label, .field legend, .field__label { display: block; font-weight: 600; font-size: 1.0625rem; margin-bottom: 0.25rem; color: var(--slate); }
.field__optional { font-weight: 400; color: var(--grey); }
.hint { display: block; color: var(--grey); font-size: 1rem; margin: 0 0 0.5rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block; width: 100%; max-width: 32rem; min-height: 48px; padding: 0.6rem 0.75rem;
  font: 400 1.0625rem/1.4 var(--font-sans); color: var(--slate); background: var(--white);
  border: 2px solid var(--grey); border-radius: var(--radius);
}
textarea { min-height: 7.5rem; resize: vertical; max-width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; box-shadow: none; border-color: var(--slate); }
fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
fieldset.group { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
fieldset.group > legend { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; padding: 0; margin-bottom: 0.75rem; }
.choices { display: grid; gap: 0.5rem; }
.choices--inline { grid-auto-flow: column; justify-content: start; gap: 0.5rem 1.5rem; }
.choice { position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.choice input { width: 1.6rem; height: 1.6rem; margin: 0; flex: none; accent-color: var(--teal); cursor: pointer; }
.choice label { font-weight: 400; margin: 0; cursor: pointer; padding-block: 0.25rem; }
.choice--check { align-items: flex-start; }
.choice--check input { margin-top: 0.2rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.field--error > label, .field--error legend { color: var(--slate); }
.field--error { border-left: 4px solid var(--error); padding-left: 1rem; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-weight: 600; margin: 0 0 0.5rem; }
.error-summary { border: 4px solid var(--error); background: var(--white); padding: 1.25rem 1.5rem; margin-bottom: 2rem; max-width: 40rem; }
.error-summary:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.error-summary h2 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: var(--error); font-weight: 600; }
.form-status { margin-top: 1rem; }
.form-done { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 1.5rem; max-width: 40rem; }
.form-done:focus-visible { outline-offset: 4px; }
.form-done > :last-child { margin-bottom: 0; }
.form-fallback { background: #FBEFD9; border-left: 6px solid var(--amber); padding: 1.25rem 1.5rem; max-width: 40rem; margin-top: 1rem; }
.form-fallback > :last-child { margin-bottom: 0; }

/* ---------- Easy read (section 4.10) ---------- */
.easy-read main { font-size: 1.25rem; line-height: 1.7; }
.easy-read .er-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); max-width: 44rem; }
.easy-read .er-list > li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.easy-read .er-list img { width: 5rem; height: 5rem; }
.easy-read .er-list p { margin: 0 0 0.35rem; }
.easy-read .er-list p:last-child { margin-bottom: 0; }
.easy-read h1 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); }
.easy-read .btn { font-size: 1.25rem; min-height: 56px; padding-inline: 1.6rem; }
.er-index { list-style: none; padding: 0; display: grid; gap: 1rem; max-width: 40rem; }
.er-index li { margin: 0; }
.er-index a { display: flex; align-items: center; gap: 1.25rem; min-height: 5.5rem; padding: 0.75rem 1.25rem; background: var(--white);
  border: 2px solid var(--slate); border-radius: var(--radius); color: var(--slate); text-decoration: none; font-weight: 600; font-size: 1.375rem; }
.er-index a:hover { background: var(--mist); }
.er-index img { width: 4rem; height: 4rem; flex: none; }

/* ---------- Motion and contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .exit-btn, .menu-toggle, .tag, .in-page a, .er-index a, .player__speed button { border: 2px solid ButtonText; }
  .exit-btn { forced-color-adjust: none; background: Canvas; color: CanvasText; border-color: CanvasText; }
  :focus-visible { outline: 3px solid Highlight !important; }
  .hero::before { display: none; }
  .eyebrow::before, .lead-list li::before { background: CanvasText; }
  .checklist li::before { border-color: CanvasText; }
}

/* ---------- Print (guides and statements) ---------- */
@media print {
  .safety-bar, .safety-banner, .site-header .site-nav, .menu-toggle, .site-footer .footer-main, .in-page, .btn-row, .skip-link, .player { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-header, .section, .section--white, .section--mist { background: #fff !important; padding-block: 0.5cm; border: 0; }
  a { color: #000; }
  main a[href^="http"]::after, main a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .checklist, .checklist li { break-inside: avoid; }
  .figure, .hero__media { display: none !important; }
  .hero { background: #fff; color: #000; } .hero::before { display: none; } .hero h1, .hero .lead { color: #000; }
  .site-footer { background: #fff; color: #000; } .site-footer a { color: #000; }
  .footer-emergency { background: #fff; border-top: 2px solid #000; }
}


/* ---------- Guides (version 1.1) ---------- */
.byline { margin: 0 0 0.2rem; color: var(--grey); font-size: 1rem; }
.page-header .eyebrow + h1 + .byline { margin-top: 1rem; }

.toc { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: var(--space-5); }
.toc h2 { font-family: var(--font-sans); font-size: 1.125rem; margin: 0 0 0.6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 2.5rem; }
@media (min-width: 48rem) { .toc ul { columns: 2; } }
.toc li { margin: 0; break-inside: avoid; }
.toc a { display: inline-flex; align-items: center; min-height: 2.25rem; padding-block: 0.15rem; }

.guide-body { max-width: 65ch; font-size: 1.0625rem; line-height: 1.75; }
.guide-body p { margin-bottom: 1.15rem; }
.guide-section + .guide-section { margin-top: 2.75rem; }
.guide-section > h2 { margin-bottom: 0.9rem; }
.guide-body a { overflow-wrap: anywhere; }
.guide-body ul, .guide-body ol { padding-left: 1.25rem; }

.wording { border-left: 4px solid var(--amber); background: var(--white); padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; }

.sources { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.guide-body .sources li { padding: 0.7rem 0; border-top: 1px solid var(--rule); margin: 0; }
.guide-body .sources li:last-child { border-bottom: 1px solid var(--rule); }

.plan { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.guide-body .plan li { padding: 0.6rem 0; border-bottom: 1px dashed var(--grey); margin: 0; }

.guide-body .checklist li { margin-bottom: 0.75rem; }

.legal-notice { border: 2px solid var(--slate); background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); margin-top: 3rem; }
.legal-notice h2 { margin: 0 0 1rem; font-size: 1.375rem; }
.legal-notice p { font-size: 1rem; line-height: 1.65; }
.legal-notice p:last-child { margin-bottom: 0; }

.card--link { position: relative; }
.card--link:hover { border-top-color: var(--amber); }
.card--link:focus-within { outline: 3px solid var(--slate); outline-offset: 3px; }
.card--link h3 a { color: var(--slate); text-decoration: none; }
.card--link h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; }
.card--link h3 a:focus-visible { outline: none; box-shadow: none; }

@media print {
  .toc, .related { display: none !important; }
  .guide-body a[href^="http"]::after { content: none; }
  .legal-notice { break-inside: avoid; }
}

/* Related guides: four cards sit two by two, then four across on wide screens (version 1.2) */
@media (min-width: 40rem) { .grid-cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid-cards--4 { grid-template-columns: repeat(4, 1fr); } }
