/* FinalOut stylesheet.
   SOURCE: finalout_build/static/css/site.css (copied into the site on every build).
   PALETTE A: every colour on the site is set here, in :root, and nowhere else.
   Contrast checked 25 Oct 2026 (WCAG 2.2 AA, 4.5:1 for text, 3:1 for UI parts):
   --text on --bg 13.77 | --text on --card 14.84 | --muted on --bg 7.11
   --main on --bg 7.03 | --on-main on --main 7.57 | --main on --main-tint 6.52
   --main on --card 7.57 | --text on --accent-tint 12.54 | --text on --accent 5.64
   --on-exit on --exit 5.55 | --exit on --bg 5.13 (button edge)
   --accent (gold) on --bg is only 2.44, so gold is used ONLY for decoration
   (thin rules and bars), never for text or as the only edge of a control.
   Super Thanks box (gold, 25 Oct 2026): --main-dark text on --gold-soft 8.06 and on --gold-cream 10.10
   | --text on --gold-soft 11.38 | button --bg (cream) on --main 7.03, hover on --main-dark 9.75
   | button edge --main on --gold-soft 5.81 (3:1 UI) | focus ring --focus on --gold-soft 11.38
   | gold bar and heart --accent are decoration only (2.02 on --gold-soft).
   Brand (25 Oct 2026, 6:45 PM): hero and footer on --main-dark to --forest-deep. --bg (cream) text on --main-dark 9.75,
   on --forest-deep 12.29 | --gold-soft pillar names and footer links on --main-dark 8.06 | --on-dark-muted on --main-dark 6.68
   | gold line icons --accent on --main-dark 3.99 (3:1 for graphics, and they are decoration: the words carry the meaning)
   | header gold hairline is decoration only. The logo is a picture of the name (logotypes are exempt), with alt text.
   Font: Atkinson Hyperlegible (Braille Institute, SIL Open Font License,
   see fonts/OFL.txt), self-hosted. One font family for the whole site. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #FAF6EE;          /* cream page background */
  --card: #FFFFFF;        /* cards and form fields */
  --text: #1F2A24;        /* main text */
  --muted: #4A5650;       /* small print (7.11 on --bg) */
  --main: #2F5D45;        /* forest green: main buttons, links */
  --main-dark: #234634;   /* forest green, pressed and hover state */
  --on-main: #FFFFFF;     /* text on --main */
  --main-tint: #E8F0EA;   /* light green behind links and info boxes */
  --accent: #C9973B;      /* gold: decoration only */
  --on-accent: #1F2A24;   /* text on --accent */
  --accent-tint: #F6EBD3; /* light gold for warning and draft boxes */
  --gold-soft: #F3E0B0;   /* Super Thanks box: warm gold start of its gradient */
  --gold-cream: #FFFAEF;  /* Super Thanks box: cream end of its gradient, and its icon circle */
  --gold-edge: #E2C78A;   /* Super Thanks box: thin outer border (decorative) */
  --exit: #B4441B;        /* Quick exit button */
  --exit-dark: #933716;   /* Quick exit pressed and hover state */
  --on-exit: #FFFFFF;     /* text on --exit */
  --line: #1F2A24;        /* strong borders */
  --line-soft: #D9D3C6;   /* thin card borders and dividers (decorative) */
  --field: #6B7570;       /* form field borders (4.4 on --card, over 3:1 for UI) */
  --focus: #1F2A24;       /* keyboard focus ring */
  --shadow-soft: rgba(31, 42, 36, 0.07); /* faint shadow under the Super Thanks box (decorative) */
  --forest-deep: #1B3527; /* brand hero and footer, darkest end of the gradient */
  --on-dark-muted: #D9CDB4; /* small print on --main-dark (6.68) */
  --danger-tint: #FFF8F4; /* soft warm white behind danger boxes (text 14.12, links 7.21, small print 7.30) */
  --radius: 8px;
  --font: "Atkinson Hyperlegible", Verdana, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 7rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.1875rem;       /* 19px, BDA range 16 to 19px */
  line-height: 1.6;
  text-align: left;
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;   /* long web addresses wrap instead of widening the page */
}
main a, footer a { overflow-wrap: anywhere; }
/* BDA: no italics, bold for emphasis */
em, i, cite, address, var, dfn { font-style: normal; }
strong, b { font-weight: 700; }
img, svg { max-width: 100%; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
p, li { max-width: 64ch; }  /* about 65 to 70 characters a line */

/* Test notice */
.test-notice { background: var(--accent-tint); border-bottom: 1px solid var(--line-soft); font-size: 1.0625rem; line-height: 1.45; padding: 0.55rem 0; }
.test-notice p { margin: 0; }

/* Top bar with Quick exit. It stays on screen so Quick exit is always one tap away. */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--accent);   /* thin gold line: decoration */
  box-shadow: 0 2px 10px rgba(31, 42, 36, 0.06);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
a.brand {
  display: inline-flex; align-items: center; min-height: 48px;
  background: none; padding: 0.15rem 0.1rem; border-radius: 6px;
}
a.brand img { display: block; width: auto; height: 2.6rem; }
a.brand:hover, a.brand:focus { background: none; text-decoration: none; }
@media (min-width: 700px) { a.brand img { height: 2.9rem; } }
a.quick-exit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: var(--exit); color: var(--on-exit);
  font-weight: 700; font-size: 1.125rem; line-height: 1.2;
  padding: 0.65rem 1rem; min-height: 48px; min-width: 48px;
  border: 0; border-radius: var(--radius);
  text-decoration: none;
}
a.quick-exit::before { content: ""; width: 1.1em; height: 1.1em; flex: 0 0 auto; background: currentColor; -webkit-mask-image: var(--icon-exit); mask-image: var(--icon-exit); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
a.quick-exit:hover, a.quick-exit:focus { background: var(--exit-dark); color: var(--on-exit); text-decoration: underline; text-underline-offset: 0.2em; }

/* Main navigation */
nav.site-nav { background: var(--bg); border-bottom: 1px solid var(--line-soft); }
nav.site-nav ul { list-style: none; margin: 0 -0.5rem; padding: 0.35rem 0; display: flex; flex-wrap: wrap; gap: 0.1rem 0.15rem; }
nav.site-nav li { margin: 0; max-width: none; }
nav.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.3rem 0.55rem;
  background: none; color: var(--main); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  border-radius: 6px; text-decoration: none; box-shadow: inset 0 -3px 0 transparent;
}
nav.site-nav a:hover { background: var(--main-tint); text-decoration: underline; text-underline-offset: 0.2em; }
nav.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--main); border-radius: 6px 6px 0 0;  /* green bar: 7:1, clear as a state marker */ }

/* Page content */
main { padding: 1.5rem 0 3rem; }
h1, h2, h3 { font-weight: 700; color: var(--text); letter-spacing: -0.005em; }
h1 { font-size: 2.125rem; line-height: 1.2; margin: 0.5rem 0 1rem; max-width: 22ch; }
h2 { font-size: 1.625rem; line-height: 1.25; margin: 2.75rem 0 0.75rem; }
main h2:not(.promo-name)::before { content: ""; display: block; width: 2.5rem; height: 3px; margin-bottom: 0.7rem; background: var(--accent); border-radius: 2px; }
h3 { font-size: 1.3125rem; line-height: 1.3; margin: 1.75rem 0 0.5rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
li { margin: 0.45rem 0; padding-left: 0.2rem; }
li::marker { color: var(--main); font-weight: 700; }
@media (min-width: 700px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  main { padding-top: 2.25rem; }
}

/* Links: BDA asks for no underlining, so links in text are bold green on a light tint.
   An underline appears only on hover and focus. */
a { color: var(--main); font-weight: 700; text-decoration: none; background: var(--main-tint); padding: 0.1em 0.2em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus-visible { outline-offset: 2px; }

/* Buttons */
.btn, button {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 0.55rem;
  font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.3; letter-spacing: 0.005em;
  min-height: 48px; padding: 0.7rem 1.15rem; margin: 0.35rem 0.4rem 0.35rem 0;
  border-radius: var(--radius); border: 2px solid var(--main);
  background: var(--main); color: var(--on-main);
  text-decoration: none; cursor: pointer; text-align: left; vertical-align: middle;
}
.btn:hover, .btn:focus, button:hover, button:focus { text-decoration: underline; text-underline-offset: 0.2em; background: var(--main-dark); border-color: var(--main-dark); color: var(--on-main); }
.btn.secondary, button.secondary { background: var(--card); color: var(--main); border-color: var(--main); }
.btn.secondary:hover, .btn.secondary:focus, button.secondary:hover, button.secondary:focus { background: var(--main-tint); color: var(--main-dark); border-color: var(--main-dark); }
.btn.plain, button.plain { background: var(--card); color: var(--text); border: 2px solid var(--field); }
.btn.plain:hover, .btn.plain:focus, button.plain:hover, button.plain:focus { background: var(--card); color: var(--text); border-color: var(--text); }
.btn.block { display: flex; width: 100%; }
.choices { margin: 1.25rem 0 1.5rem; }
.choices .btn { display: flex; width: 100%; margin: 0.65rem 0; padding-top: 0.85rem; padding-bottom: 0.85rem; }
/* A chevron on choice buttons shows they lead to the next page. */
.choices .btn::after { content: ""; margin-left: auto; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; background: currentColor; -webkit-mask-image: var(--icon-chevron); mask-image: var(--icon-chevron); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
a.btn[href^="https://"]::after { content: ""; width: 1rem; height: 1rem; flex: 0 0 auto; background: currentColor; -webkit-mask-image: var(--icon-external); mask-image: var(--icon-external); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.choices a.btn[href^="https://"]::after { margin-left: auto; }
button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Listen */
.listen-box { margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
button.listen-btn { background: var(--card); color: var(--main); border: 2px solid var(--main); border-radius: 999px; padding: 0.55rem 1.2rem 0.55rem 0.95rem; margin: 0; }
button.listen-btn::before { content: ""; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; background: currentColor; -webkit-mask-image: var(--icon-speaker); mask-image: var(--icon-speaker); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
button.listen-btn[aria-pressed="true"]::before { -webkit-mask-image: var(--icon-pause); mask-image: var(--icon-pause); }
button.listen-btn:hover, button.listen-btn:focus { background: var(--main-tint); color: var(--main-dark); border-color: var(--main-dark); }
button.listen-btn[aria-pressed="true"] { background: var(--main); color: var(--on-main); }
.listen-status { font-size: 1.0625rem; color: var(--muted); margin: 0.3rem 0 0; min-height: 1.5em; }
.listen-status:empty { min-height: 0; margin: 0; }

/* Boxes: calm cards with a thin border and a coloured edge on the left */
.box { background: var(--card); border: 1px solid var(--line-soft); border-left: 5px solid var(--field); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.5rem 0; }
.box.info { background: var(--main-tint); border-color: #C9D9CE; border-left-color: var(--main); }
.box.warn, .box.draft { background: var(--accent-tint); border-color: #E6D3A8; border-left-color: var(--accent); }
.box.danger { background: var(--card); border-color: #E2B9A8; border-left-color: var(--exit); }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box p { max-width: 62ch; }
.tag { display: inline-block; font-weight: 700; font-size: 0.9375rem; line-height: 1.5; letter-spacing: 0.04em; background: var(--card); color: var(--text); border: 1px solid var(--text); border-radius: 4px; padding: 0 0.45rem; margin-right: 0.25rem; vertical-align: 0.05em; }
.placeholder { background: var(--accent-tint); border: 2px dashed var(--muted); border-radius: 4px; padding: 0.1rem 0.4rem; font-weight: 700; }
p.placeholder { padding: 0.75rem 1rem; }
.source { font-size: 1.0625rem; color: var(--muted); }
.source a { font-weight: 700; padding: 0.16em 0.25em; }  /* taller tap area for small links */
.big-number { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }

/* On this page (platform pages). Visible heading added 25 Oct 2026 (tester report); the nav is labelled by it. */
main nav.toc h2.toc-title { margin: 0.35rem 0.65rem 0.5rem; font-size: 1.125rem; line-height: 1.3; }
main nav.toc h2.toc-title::before { display: none; }
main nav.toc { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 0.5rem 0.5rem; margin: 1.5rem 0 1rem; }
main nav.toc ul { list-style: none; margin: 0; padding: 0; }
main nav.toc li { margin: 0; padding: 0; max-width: none; }
main nav.toc li + li { border-top: 1px solid var(--line-soft); }
main nav.toc a { display: flex; align-items: center; min-height: 48px; padding: 0.45rem 0.65rem; background: none; border-radius: 4px; }
main nav.toc a::after { content: ""; margin-left: auto; width: 1rem; height: 1rem; flex: 0 0 auto; background: currentColor; -webkit-mask-image: var(--icon-down); mask-image: var(--icon-down); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
main nav.toc a:hover { background: var(--main-tint); }

/* Forms */
label { display: block; font-weight: 700; margin: 1.15rem 0 0.35rem; }
.hint { display: block; font-weight: 400; font-size: 1.0625rem; color: var(--muted); }
input[type=text], input[type=email], input[type=date], select, textarea {
  font: inherit; font-size: 1.125rem; width: 100%; padding: 0.6rem 0.75rem; min-height: 48px;
  border: 2px solid var(--field); border-radius: 6px; background: var(--card); color: var(--text);
}
input[type=text]:focus, input[type=email]:focus, input[type=date]:focus, select:focus, textarea:focus { border-color: var(--main); }
textarea { min-height: 8rem; line-height: 1.5; }
.check { display: flex; gap: 0.85rem; align-items: flex-start; margin: 0.6rem 0; padding: 0.6rem 0.75rem; font-weight: 400; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.check input { width: 28px; height: 28px; flex: 0 0 28px; margin: 0.1rem 0 0; accent-color: var(--main); }
fieldset { border: 1px solid var(--line-soft); background: var(--card); border-radius: var(--radius); padding: 0.5rem 1.15rem 1.25rem; margin: 1.5rem 0; }
fieldset .check { background: var(--bg); }
legend { font-weight: 700; font-size: 1.25rem; padding: 0 0.4rem; }
.letter-out { white-space: pre-wrap; background: var(--card); border: 1px solid var(--line-soft); border-left: 5px solid var(--main); border-radius: var(--radius); padding: 1rem 1.15rem; font-family: inherit; font-size: 1.125rem; }

/* Tracker */
.entry { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1rem 0; }
.entry h3 { margin-top: 0; }

/* Footer: company details first, then the links in a tidy grid. Deep forest green with cream text (brand, 25 Oct 2026). */
footer { background: linear-gradient(180deg, var(--main-dark) 0%, var(--forest-deep) 100%); border-top: 3px solid var(--accent); padding: 2.25rem 0 2.75rem; font-size: 1.0625rem; line-height: 1.55; color: var(--bg); }
footer .wrap::before { content: ""; display: block; width: 9rem; max-width: 100%; height: 2.8rem; margin-bottom: 1.25rem; background: url("../img/finalout_logo_on_dark.svg") left center / contain no-repeat; }
footer p { max-width: 60ch; color: var(--bg); }
footer p:first-child { font-weight: 400; }
footer ul { list-style: none; padding: 1rem 0; margin: 1.25rem 0; display: grid; grid-template-columns: 1fr; gap: 0 1.5rem; border-top: 1px solid rgba(250, 246, 238, 0.22); border-bottom: 1px solid rgba(250, 246, 238, 0.22); }
footer li { margin: 0; padding: 0; max-width: none; }
footer a { display: flex; align-items: center; min-height: 44px; padding: 0.25rem 0; background: none; color: var(--gold-soft); border-radius: 3px; line-height: 1.3; }
footer a:hover, footer a:focus { color: var(--bg); }
footer :focus-visible { outline-color: var(--bg); }
footer p:last-child { margin-bottom: 0; color: var(--on-dark-muted); }
@media (min-width: 560px) { footer ul { grid-template-columns: 1fr 1fr; } }

/* House products list on More from us (old markup, kept for safety) */
.house { border-top: 1px solid var(--line-soft); margin-top: 2rem; padding-top: 0.5rem; }
.product { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 0.75rem 0; }
.product h3 { margin: 0 0 0.25rem; }

/* Line icons (inline SVG, drawn with currentColor through a mask) */
:root {
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --icon-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E");
  --icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
  --icon-exit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h5M15 8l4 4-4 4M19 12H9'/%3E%3C/svg%3E");
  --icon-speaker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5v5h3.5L12 18.5v-13L7.5 9.5z'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6M18 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --icon-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M9 6v12M15 6v12'/%3E%3C/svg%3E");
}

/* Super Thanks box: warm gold, so it stands apart from the green info boxes and the dark promo banners.
   Soft gold to cream gradient, gold left bar, dark forest-green text, forest-green button with cream text.
   Contrast (WCAG 2.2 AA): --main-dark on --gold-soft 8.06 (worst end of the gradient), on --gold-cream 10.10;
   button text --bg on --main 7.03 (hover --main-dark 9.75); button edge --main on --gold-soft 5.81.
   Gold (--accent) is decoration only: left bar, icon ring, heart and dot. Hidden on iPhone by the app via [data-tip]. */
.tip-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 0.9rem;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--accent-tint) 45%, var(--gold-cream) 100%);
  color: var(--main-dark);
  border: 1px solid var(--gold-edge); border-left: 6px solid var(--accent); border-radius: 12px;
  padding: 1.35rem 1.25rem 1.3rem; margin: 2.75rem 0;
  box-shadow: 0 3px 14px rgba(201, 151, 59, 0.16), 0 1px 3px var(--shadow-soft);
}
.tip-box .tip-icon {
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--gold-cream); border: 2px solid var(--accent); color: var(--main-dark);
  box-shadow: 0 1px 4px var(--shadow-soft);
}
.tip-box .tip-icon svg { width: 2.25rem; height: 2.25rem; display: block; }
.tip-box .tip-body { min-width: 0; }
main .tip-box h2 { margin: 0 0 0.5rem; font-size: 1.375rem; line-height: 1.3; color: var(--main-dark); }
main .tip-box h2::before { display: none; }
.tip-box p { margin: 0 0 0.75rem; max-width: 38em; color: var(--main-dark); }
.tip-box .tip-note { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 700; color: var(--main-dark); margin-bottom: 1rem; }
.tip-box .tip-note::before { content: ""; flex: 0 0 auto; width: 0.5rem; height: 0.5rem; margin-top: 0.55em; border-radius: 50%; background: var(--accent); }
.tip-box .btn { margin: 0; min-height: 48px; padding-left: 1.3rem; padding-right: 1.15rem; background: var(--main); border-color: var(--main); color: var(--bg); box-shadow: 0 2px 0 var(--main-dark); }
.tip-box .btn:hover, .tip-box .btn:focus { background: var(--main-dark); border-color: var(--main-dark); color: var(--bg); }
.tip-box .btn::after { content: ""; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; background: currentColor; -webkit-mask-image: var(--icon-arrow); mask-image: var(--icon-arrow); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
@media (min-width: 600px) {
  .tip-box { grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.6rem 1.75rem 1.5rem 1.5rem; align-items: start; }
  .tip-box .tip-icon { width: 4rem; height: 4rem; }
  .tip-box .tip-icon svg { width: 2.6rem; height: 2.6rem; }
}
@media (forced-colors: active) { .tip-box { border: 1px solid CanvasText; border-left-width: 6px; background: Canvas; box-shadow: none; } .tip-box .tip-icon { border-color: CanvasText; color: CanvasText; } .tip-box .tip-note::before, .tip-box .btn::after { background: CanvasText; } }

/* Gentle hover changes, switched off for people who ask for reduced motion */
.btn, button, a.quick-exit, nav.site-nav a { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* Windows high contrast and forced colours: keep icons and edges visible */
@media (forced-colors: active) {
  a.quick-exit::before, button.listen-btn::before, .choices .btn::after, a.btn[href^="https://"]::after, main nav.toc a::after { background: CanvasText; }
  .btn, button, a.quick-exit { border: 2px solid ButtonText; }
}

@media print {
  .test-notice, .topbar, nav.site-nav, footer, .no-print, .listen-box { display: none !important; }
  body { background: var(--card); }
  main h2:not(.promo-name)::before { display: none; }
  .letter-out { border: none; padding: 0; }
}

/* Official platform videos: click-to-load card (owner, 25 Oct 2026, 6:37 PM). No remote thumbnails:
   the placeholder is a plain CSS forest-green panel. Contrast: --bg (cream) on --main-dark 9.75 (cookie note);
   play button --main-dark on --bg 9.75, its edge --bg on --main-dark 9.75 (3:1 UI); card text --text on --card 14.84. */
.video-card { display: block; margin: 0.9rem 0 0.4rem; padding: 1rem 1rem 0.9rem; background: var(--card); border: 1px solid var(--line-soft); border-left: 5px solid var(--main); border-radius: var(--radius); max-width: 40rem; }
.video-card p { margin: 0 0 0.5rem; }
.video-card .video-org { font-size: 1.0625rem; color: var(--muted); font-weight: 700; }
.video-card .video-title { font-size: 1.1875rem; font-weight: 700; color: var(--text); }
.video-card .video-about { font-size: 1.0625rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; margin: 0.4rem 0 0.6rem;
  background: radial-gradient(circle at 30% 25%, var(--main) 0%, var(--main-dark) 70%); color: var(--bg); }
.video-frame.is-playing { background: var(--text); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.75rem; text-align: center; }
.video-card .video-cookie { margin: 0; max-width: 26em; font-size: 1rem; line-height: 1.4; color: var(--bg); }
.video-frame .video-play, .video-frame a.video-play { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 56px; margin: 0; padding: 0.55rem 1.3rem 0.55rem 0.6rem;
  background: var(--bg); color: var(--main-dark); border: 2px solid var(--bg); border-radius: 999px; font: inherit; font-weight: 700; font-size: 1.125rem; text-decoration: none; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); }
.video-frame .video-play:hover, .video-frame .video-play:focus { background: var(--gold-cream); color: var(--main-dark); border-color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.video-frame .video-play:focus-visible { outline: 3px solid var(--bg); outline-offset: 3px; }
.video-play-icon { width: 2.6rem; height: 2.6rem; flex: 0 0 auto; border-radius: 50%; background: var(--main-dark); position: relative; }
.video-play-icon::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 0.6rem 0 0.6rem 0.95rem; border-color: transparent transparent transparent var(--bg); }
.video-card .video-note { margin: 0; font-size: 1rem; color: var(--muted); }
@media (max-width: 380px) { .video-card .video-cookie { font-size: 0.9375rem; } .video-frame .video-play { min-height: 48px; font-size: 1.0625rem; } .video-play-icon { width: 2.2rem; height: 2.2rem; } }
@media (forced-colors: active) { .video-frame { border: 1px solid CanvasText; background: Canvas; color: CanvasText; } .video-card .video-cookie { color: CanvasText; } .video-play-icon { background: ButtonText; } .video-play-icon::after { border-left-color: ButtonFace; } }
.video-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Lists inside list items (plain English review, 25 Oct 2026): short sub-lists and extra lines inside one step. */
li > p.li-p { margin: 0.35rem 0 0; }
li > p.li-p:first-child { margin-top: 0; }
li > ul.sub, li > ol.sub { margin: 0.35rem 0 0.5rem; padding-left: 1.35rem; }
li > ul.sub > li, li > ol.sub > li { margin: 0.25rem 0; }
li > ul.sub { list-style: circle; }

/* BRAND (owner, 25 Oct 2026, 6:45 PM): home hero with the wordmark, tagline and four pillars.
   Deep forest green, cream text, gold line icons. It sits outside <main>, so Listen does not read it. */
.hero { background: radial-gradient(120% 140% at 20% 0%, var(--main) 0%, var(--main-dark) 45%, var(--forest-deep) 100%); color: var(--bg); padding: 2.25rem 0 2.5rem; border-bottom: 3px solid var(--accent); }
.hero .wrap { max-width: 64rem; }
.hero-logo { display: block; width: min(100%, 26rem); height: auto; margin: 0 0 0.5rem; }
.hero-tagline { margin: 0 0 1.75rem; font-size: 1.5rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; color: var(--bg); max-width: none; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pillars li { margin: 0; padding: 0; max-width: none; }
.pillars a { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; height: 100%; min-height: 48px; padding: 1rem 0.95rem 1.05rem;
  background: rgba(250, 246, 238, 0.05); color: var(--bg); border: 1px solid rgba(201, 151, 59, 0.55); border-radius: 12px; text-decoration: none; font-weight: 400; }
.pillars a:hover, .pillars a:focus { background: rgba(250, 246, 238, 0.11); border-color: var(--accent); text-decoration: none; }
.pillars a:hover .pillar-name, .pillars a:focus .pillar-name { text-decoration: underline; text-underline-offset: 0.2em; }
.pillars a:focus-visible { outline: 3px solid var(--bg); outline-offset: 3px; }
.pillar-icon { width: 2.6rem; height: 2.6rem; color: var(--accent); margin-bottom: 0.2rem; }
.pillar-name { font-size: 1.1875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-soft); line-height: 1.25; }
.pillar-text { font-size: 1.0625rem; line-height: 1.4; color: var(--bg); }
@media (min-width: 700px) { .hero { padding: 3rem 0 3.25rem; } .hero-tagline { font-size: 1.75rem; } }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(4, 1fr); gap: 1rem; } .pillars a { padding: 1.25rem 1.1rem; } }
@media (forced-colors: active) { .hero { background: Canvas; color: CanvasText; } .pillars a { border-color: LinkText; color: LinkText; } .pillar-icon { color: CanvasText; } }

/* Brand polish: cards and buttons */
.btn, button { box-shadow: 0 2px 0 rgba(31, 42, 36, 0.18); }
.btn.secondary, button.secondary, .btn.plain, button.plain, button.listen-btn { box-shadow: none; }
.box { border-radius: 10px; box-shadow: 0 1px 3px var(--shadow-soft); }
.choices .btn { border-radius: 10px; }
@media print { .hero { display: none !important; } }

/* MATCH THE HOME PAGE (25 Oct 2026: every page matches the home page).
   Inner page header band: a smaller version of the home hero. Same deep forest green gradient, the page H1 in
   cream, a short gold rule above it, a faint gold swoosh on the right and the gold edge under it.
   The band is inside <main> and holds only the H1, so Listen reads the same words as before.
   Not on home (hero) or the Safety check page (body.calm: kept plain and calm).
   Contrast: --bg (cream) H1 on --main 7.03 (lightest end of the gradient), on --main-dark 9.75, on --forest-deep 12.29.
   Gold rule, swoosh and edge are decoration only. */
main.has-band { padding-top: 0; }
.page-band { position: relative; overflow: hidden; margin: 0 0 1.5rem; padding: 1.6rem 0 1.7rem;
  background: radial-gradient(120% 160% at 15% 0%, var(--main) 0%, var(--main-dark) 50%, var(--forest-deep) 100%);
  color: var(--bg); border-bottom: 3px solid var(--accent); }
.page-band::after { content: ""; position: absolute; right: -4rem; bottom: -5.5rem; width: 16rem; height: 10rem; pointer-events: none;
  border: 3px solid rgba(201, 151, 59, 0.45); border-color: rgba(201, 151, 59, 0.45) transparent transparent transparent; border-radius: 50%; transform: rotate(-12deg); }
.page-band .wrap { position: relative; z-index: 1; }
.page-band h1 { color: var(--bg); margin: 0; max-width: 24ch; }
.page-band h1::before { content: ""; display: block; width: 3rem; height: 3px; margin-bottom: 0.75rem; background: var(--accent); border-radius: 2px; }
@media (min-width: 700px) { .page-band { padding: 2.1rem 0 2.25rem; margin-bottom: 2rem; } .page-band::after { right: 2rem; bottom: -6rem; width: 22rem; height: 12rem; } }
@media (forced-colors: active) { .page-band { background: Canvas; color: CanvasText; border-bottom: 3px solid CanvasText; } .page-band h1 { color: CanvasText; } .page-band::after { display: none; } .page-band h1::before { background: CanvasText; } }
@media print {
  .page-band { background: none !important; color: var(--text) !important; border: 0 !important; padding: 0 !important; margin: 0 0 1rem !important; }
  .page-band h1 { color: var(--text) !important; }
  .page-band::after, .page-band h1::before { display: none !important; }
}

/* Brand components on every page except the calm Safety check page.
   Contrast: --text on --card 14.84 | --text on --bg 13.77 | --main on --card 7.57 (plain button edge and text)
   | --main-dark on --main-tint 9.05 (hover) | --field on --bg 4.42 (form field edges, 3:1 UI)
   | danger box tint #FFF8F4: --text 14.12, --main links 7.21, --muted 7.30, --exit edge 5.28. */
/* Plain buttons: white with a forest-green edge and dark text, rounded like the other buttons (was a grey edge). */
.branded .btn.plain, .branded button.plain { background: var(--card); color: var(--text); border-color: var(--main); border-radius: 10px; }
.branded .btn.plain:hover, .branded .btn.plain:focus, .branded button.plain:hover, .branded button.plain:focus { background: var(--main-tint); color: var(--main-dark); border-color: var(--main-dark); }
.branded .btn, .branded button:not(.listen-btn):not(.video-play) { border-radius: 10px; }
/* Forms (declaration, letter builder, tracker): one white card with a gold top rule, like the other cards. */
.branded main form { background: var(--card); border: 1px solid var(--line-soft); border-top: 4px solid var(--accent); border-radius: 12px;
  padding: 0.5rem 1.15rem 1.25rem; margin: 1.5rem 0; box-shadow: 0 1px 3px var(--shadow-soft); }
.branded main form > label:first-child, .branded main form > .check:first-child { margin-top: 1rem; }
.branded main form fieldset { background: var(--bg); border-color: var(--line-soft); }
.branded main form fieldset .check { background: var(--card); }
.branded main form .check { background: var(--bg); }
.branded legend { color: var(--main-dark); }
.branded main form button[type=submit] { margin-top: 1.25rem; }
/* The address preview on the letter builder and the finished letter: green edge card (was grey). */
.branded .letter-out { border-left-color: var(--main); border-radius: 10px; box-shadow: 0 1px 3px var(--shadow-soft); }
/* Tracker entries: same card as the boxes, green edge. */
.branded .entry { border-left: 5px solid var(--main); border-radius: 10px; box-shadow: 0 1px 3px var(--shadow-soft); }
/* Boxes: a plain box gets the green edge instead of grey. Danger boxes keep the Quick exit red edge. */
.branded .box:not(.info):not(.warn):not(.draft):not(.danger) { border-left-color: var(--main); }
.branded .box.danger { background: var(--danger-tint); }
/* "On this page" lists: rounded card with a soft shadow like the other cards. */
.branded main nav.toc { border-radius: 10px; box-shadow: 0 1px 3px var(--shadow-soft); border-left: 5px solid var(--main); }
/* Choice buttons on the choose page and the declaration page. */
.branded .choices .btn.plain { box-shadow: 0 1px 3px var(--shadow-soft); }
/* Placeholder notes stay dashed (they mark unfinished wording) but use the card radius. */
.branded p.placeholder { border-radius: 10px; }
/* The Super Thanks heart line icon: dark green stroke with a soft gold fill. */
.tip-box .tip-icon svg.tip-heart-icon path { fill: rgba(201, 151, 59, 0.3); }
@media (forced-colors: active) { .tip-box .tip-icon svg.tip-heart-icon path { fill: none; stroke: CanvasText; } }
@media print { .branded main form { border: 0; box-shadow: none; padding: 0; } }
/* Text at 200% on a phone (25 Oct 2026): nothing may widen the page. No change at normal text size. */
fieldset { min-width: 0; }
.check > span { min-width: 0; overflow-wrap: anywhere; }
.pillars { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.pillars li { min-width: 0; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
/* Form fields always show the focus ring, including date fields (their inner parts do not match :focus-visible). */
input:focus, input:focus-within, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Skip link: the first thing in the tab order. Hidden until it has keyboard focus, then a forest-green tab
   with cream text and a gold edge at the top left, above the sticky header. Cream on --main-dark 9.75. */
.skip-link { position: absolute; left: 0.75rem; top: -10rem; z-index: 100; padding: 0.75rem 1.1rem; min-height: 48px;
  background: var(--main-dark); color: var(--bg); border: 3px solid var(--accent); border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus, .skip-link:focus-visible { top: 0; outline: 3px solid var(--focus); outline-offset: 2px; color: var(--bg); background: var(--main-dark); text-decoration: underline; }
main:focus { outline: none; }
@media print { .skip-link { display: none !important; } }
@media (forced-colors: active) { .skip-link { border-color: CanvasText; } }
