/* ==========================================================================
   Oh FOY launch site - stylesheet
   Design tokens sourced from Homestead/Planning/Projects/Oh Foy/Brand/BRAND.md
   (colour palette, spacing scale approved 2026-09-15; typography and icon
   family are Iris's working defaults, pending a confirmation pass with
   Jeanette). All values live here as custom properties so a later swap of
   the font pairing or icon family is a one-line change, never a markup edit.
   ========================================================================== */

:root {
  /* Colour - Oh FOY brand palette */
  --color-primary: #1B5D82;
  --color-primary-dark: #143f59; /* derived shade for hover/active states only */
  --color-secondary: #6FA23C;
  --color-accent: #D32E27;
  --color-info: #4FB8DA;

  --color-neutral-0: #F7F9FB;
  --color-neutral-1: #EAEFF3;
  --color-neutral-2: #CCD6DC;
  --color-neutral-3: #8FA0A8;
  --color-neutral-4: #47565E;
  --color-neutral-5: #1A2529;

  /* Typography - PENDING CONFIRMATION with Jeanette (see BRAND.md Provenance).
     Swap either variable to change the whole site; nothing else needs to change. */
  --font-heading: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Type scale - not pinned in BRAND.md yet; Felix's working values, proposed
     back to Iris for the profile. Mobile-first; scaled up at breakpoints below. */
  --text-display: 2rem;
  --text-h1: 2rem;
  --text-h2: 1.5rem;
  --text-h3: 1.125rem;
  --text-body: 1rem;
  --text-caption: 0.875rem;
  --leading-heading: 1.2;
  --leading-body: 1.6;

  /* Spacing scale - base unit 8px, per BRAND.md */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 48px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Icon system - family is Lucide (line icons), pending confirmation.
     Centralized here so a family swap only touches these two values plus
     the inline SVG markup, never per-instance styling in the markup. */
  --icon-size: 1.25em;
  --icon-stroke-width: 2;

  --radius-sm: 4px;
  --radius-md: 8px;
  --max-content-width: 720px;
  --max-page-width: 1100px;

  --focus-ring: 3px solid var(--color-accent);
  --focus-ring-offset: 2px;

  /* Height of the sticky .site-header, used only for scroll-padding-top
     on html. These are MEASURED values, not derived from the header's
     padding/logo sizes (the earlier calc() undershot): about 91px at
     tablet/desktop widths where the nav fits on one row, and 158px at a
     375px phone where it wraps to three rows (see the max-width: 600px
     override below). They are only the no-JS fallback: js/main.js
     overwrites this property on <html> with the header's real offsetHeight
     on load and on resize, which stays correct for any width in between. */
  --site-header-height: 91px;
}

/* On a narrow phone (nav wraps to 3 rows, ~158px) or a short viewport
   (landscape, or zoomed to 400%) a sticky header eats too much of the screen
   and fails WCAG 1.4.10 Reflow / 2.4.11 Focus Not Obscured. The header is
   made position: static in these cases (see .site-header below), so nothing
   covers the scroll target and the offset is 0px. js/main.js applies the
   same rule when it measures the real height. */
@media (max-width: 600px), (max-height: 500px) {
  :root {
    --site-header-height: 0px;
  }
}

@media (min-width: 768px) {
  :root {
    --text-display: 3rem;
    --text-h1: 2.5rem;
    --text-h2: 1.875rem;
    --text-h3: 1.25rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --text-display: 3.5rem;
  }
}

/* ---- Reset / base ---------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* The header is position: sticky, so without this an in-page anchor jump
     (index.html#about, #signup, ...) or a focus() scroll lands the target
     underneath it. Header height plus one --space-sm of breathing room. */
  scroll-padding-top: calc(var(--site-header-height) + var(--space-sm));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-neutral-4);
  background-color: var(--color-neutral-0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-5);
  line-height: var(--leading-heading);
  margin: 0 0 var(--space-sm);
}

h1 { font-size: var(--text-display); font-weight: 900; }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-h3); font-weight: 700; }
h4 { font-size: var(--text-body); font-weight: 700; }

p { margin: 0 0 var(--space-sm); }

ul { margin: 0; padding: 0; }

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Visible, high-contrast focus indicator on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.icon {
  width: var(--icon-size);
  height: var(--icon-size);
  stroke-width: var(--icon-stroke-width);
  vertical-align: -0.2em;
  color: var(--color-info);
  flex-shrink: 0;
}

.icon--accent {
  color: var(--color-primary);
  width: 2em;
  height: 2em;
}

/* Used by the contact-page error banner (.contact-error). --color-accent
   (#D32E27) against --color-neutral-0 (the banner's fill) computes to
   ~4.75:1, clearing WCAG 2.2 AA's 4.5:1 normal-text floor and well past
   the 3:1 floor a graphical icon like this needs. Same red already used
   for the form's required-field marker (.contact-form__required), so it
   reads as this site's one consistent "needs attention" cue. */
.icon--error {
  color: var(--color-accent);
  width: 2em;
  height: 2em;
}

/* Skip link: hidden until focused, first thing a keyboard user can reach. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-neutral-0);
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

/* ---- Layout helpers ---------------------------------------------------- */

.section__inner,
.site-header__inner,
.site-footer__inner {
  max-width: var(--max-page-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-xl) 0;
}

.section--light {
  background-color: var(--color-neutral-0);
}

.section--tint {
  background-color: var(--color-neutral-1);
}

/* Two .section--tint instances landing back-to-back (e.g. Future Episodes
   directly above Candidates) share a background colour with nothing but
   whitespace marking the seam between them. Adjacent-sibling selector
   rather than an id-specific rule: it self-applies wherever this pattern
   occurs, including future page-order changes, instead of hardcoding today's
   specific pair of sections. Reuses --color-neutral-2, the same hairline
   token already used for .site-header's border-bottom and
   .candidates__item's card border, so this reads as the site's existing
   "quiet divider" language rather than a new one. One property, no layout
   or spacing change. */
.section--tint + .section--tint {
  border-top: 1px solid var(--color-neutral-2);
}

.section__heading {
  max-width: var(--max-content-width);
}

.section__body {
  max-width: var(--max-content-width);
}

/* ---- Header / nav -------------------------------------------------- */

.site-header {
  background-color: var(--color-neutral-0);
  border-bottom: 1px solid var(--color-neutral-2);
  position: sticky;
  top: 0;
  z-index: 10;
}

@media (max-width: 600px), (max-height: 500px) {
  .site-header {
    position: static;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--color-neutral-5);
}

.site-header__logo {
  width: 40px;
  height: 40px;
}

.site-header__wordmark {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--color-neutral-5);
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  /* row-gap 8px / column-gap 32px: when six items wrap to a second line the
     rows stay tight instead of 32px apart. */
  gap: var(--space-xs) var(--space-md);
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-neutral-4);
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav__cta {
  background-color: var(--color-primary);
  color: #ffffff !important;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
}

.site-nav__cta:hover {
  background-color: var(--color-primary-dark);
}

/* ---- Hero ------------------------------------------------------------ */

.hero {
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
}

.hero__inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-sm);
}

.hero__title {
  color: #ffffff;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
  color: #ffffff;
  margin: 0 0 var(--space-sm);
}

.hero__blurb {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-2xl) var(--space-sm);
  }

  .hero__logo {
    width: 160px;
    height: 160px;
  }
}

/* ---- Buttons ----------------------------------------------------------- */

.button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
}

.button--primary {
  background-color: #ffffff;
  color: var(--color-primary);
}

.button--primary:hover {
  background-color: var(--color-neutral-1);
  color: var(--color-primary-dark);
}

/* .button--on-light: for a submit/CTA button sitting on a light section
   background (--color-neutral-0 or --color-neutral-1), never on .hero's
   dark --color-primary background. .button--primary is a white fill built
   for the hero, where white pops against the dark primary background; on a
   light section that same white fill is near-invisible (fill vs. section
   background computes to ~1.06:1, well under WCAG 2.2 SC 1.4.11's 3:1 UI
   component boundary floor). This modifier inverts the same logic: a dark
   --color-primary fill with white text pops against a light section the
   same way white pops against the hero. Fill vs. --color-neutral-0 computes
   to ~6.78:1 default / ~10.56:1 hover, both clear of the 3:1 floor; white
   text on either fill clears 7:1+ for text contrast. Do not edit
   .button--primary itself; the hero still depends on its current styling. */
.button--on-light {
  background-color: var(--color-primary);
  color: #ffffff;
}

.button--on-light:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

/* .button--outline: secondary action on a light section (e.g. "Submit
   another suggestion" next to the primary button). --color-primary text and
   2px border on --color-neutral-0 is ~6.78:1, well past 4.5:1 text and 3:1
   boundary floors. */
.button--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: calc(var(--space-sm) - 2px) calc(var(--space-md) - 2px);
}

.button--outline:hover {
  background-color: var(--color-neutral-1);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---- Candidates -------------------------------------------------------- */

.candidates__note {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--color-neutral-0);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: var(--color-neutral-4);
  max-width: var(--max-content-width);
}

.candidates__group-heading {
  margin-top: var(--space-lg);
}

.candidates__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs) var(--space-md);
}

.candidates__item {
  background-color: var(--color-neutral-0);
  border: 1px solid var(--color-neutral-2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-neutral-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  flex-wrap: wrap;
  /* .candidates__item is also a grid item of .candidates__list (1fr track).
     A grid/flex item's default min-width: auto pins its minimum size to its
     content's min-content width. With a nowrap Watch Now badge inside, that
     min-content is wide enough that the 1fr track (and this item) refuses to
     shrink to the card's actual available width, so the badge pushes past
     the right edge instead of wrapping. min-width: 0 here lets the item
     shrink to the track's real width so its own flex-wrap: wrap (and the
     name span's min-width: 0 below) can actually engage. See
     Team Working/2026-09-29-oh-foy-watch-now-badges-qa-report.md CRITICAL
     finding. */
  min-width: 0;
}

/* The candidate name is a flex item alongside the nowrap Watch Now badge.
   A bare text node (or a span without this override) keeps the browser's
   default min-width: auto, which pins the item's minimum size to its full
   content width and blocks the row from shrinking or wrapping the name text
   independently of the nowrap badge. min-width: 0 lets this item shrink and
   wrap its own text so the row can reflow the badge onto its own line
   instead of clipping off the right edge. See
   Team Working/2026-09-29-oh-foy-watch-now-badges-qa-report.md CRITICAL
   finding. */
.candidates__name {
  min-width: 0;
}

.candidates__watch-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-caption);
  color: #ffffff;
  background-color: var(--color-primary);
  padding: var(--space-xs) var(--space-xs);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.candidates__watch-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .candidates__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .candidates__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Closing attribution/source note below the group lists. Reuses
   .section__body's width and colour; only adds the extra breathing room a
   trailing <p> needs after a list, same var(--space-lg) rhythm
   .candidates__group-heading already uses above each group. */
.candidates__source-note {
  margin-top: var(--space-lg);
}

.future-episodes__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---- Episodes: current cards and collapsible groups --------------------
   Current episodes are .episode-card list items. Older episodes and the
   election archive use native <details class="episodes__group"> (no JS).
   Groups nest (year > month) with no extra CSS: a group inside a group's
   .episodes__panel picks up the tinted nested look below. No animation. */

.episodes__subheading {
  margin-top: var(--space-lg);
}

.episodes__more {
  margin-top: var(--space-md);
}

.episodes__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.episode-card {
  background-color: var(--color-neutral-0);
  border: 1px solid var(--color-neutral-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: var(--max-content-width);
}

.episode-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.episode-card__body {
  padding: var(--space-sm);
  min-width: 0;
}

.episode-card__title {
  font-size: var(--text-h3);
  margin-bottom: var(--space-xs);
}

.episode-card__guest {
  font-weight: 600;
  color: var(--color-neutral-5);
  margin-bottom: var(--space-xs);
}

.episode-card__blurb {
  margin-bottom: var(--space-sm);
}

/* Same Watch Now badge as the candidate roster, with a 44px tap target
   (WCAG 2.2 SC 2.5.8 floor, deliberately off the 8px scale). */
.episode-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
}

@media (min-width: 768px) {
  .episode-card {
    flex-direction: row;
  }

  .episode-card__image {
    width: 40%;
    flex-shrink: 0;
    align-self: center;
  }
}

.episodes__group {
  background-color: var(--color-neutral-0);
  border: 1px solid var(--color-neutral-2);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.episodes__summary {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  /* 44px summary row: WCAG 2.2 SC 2.5.8 tap-target floor. */
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h3);
  line-height: var(--leading-heading);
  color: var(--color-neutral-5);
  cursor: pointer;
  list-style: none;
}

.episodes__summary::-webkit-details-marker {
  display: none;
}

/* Chevron drawn with borders in currentColor: points right when closed,
   down when open. */
.episodes__summary::before {
  content: "";
  flex-shrink: 0;
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.episodes__group[open] > .episodes__summary::before {
  transform: rotate(45deg);
}

.episodes__summary:hover {
  color: var(--color-primary);
}

.episodes__summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-md);
}

.episodes__panel {
  padding: 0 var(--space-sm) var(--space-sm);
}

.episodes__panel .episodes__group {
  background-color: var(--color-neutral-1);
  margin-top: var(--space-sm);
}

.episodes__panel > :first-child {
  margin-top: var(--space-xs);
}

.episodes__panel > .episodes__subheading:first-child {
  margin-top: var(--space-xs);
}

@media (max-width: 600px) {
  /* Tighter inner padding on phones so the roster cards keep their width. */
  .episodes__panel {
    padding: 0 var(--space-xs) var(--space-xs);
  }
}

/* ---- Signup form (Zoho Campaigns embed) --------------------------------
   The form markup itself is Zoho's own large_form_6 export (see index.html
   for the full functional note); this wrapper only positions and spaces the
   widget so it reads as part of the page rather than a foreign block. Do
   not add rules here that need `!important` to fight Zoho's inline styles;
   if the widget needs more visual alignment than this, that is a job for
   editing the widget's own inline styles in index.html, not a CSS override
   war. As of the 2026-09-21 large_form_6 replacement, the form's Contact
   Email / First Name / Last Name labels are real <label> elements styled
   inline via Zoho's own style attribute (var(--font-body), --color-neutral-5),
   not this stylesheet; nothing here is label-specific. */

.signup-form {
  max-width: var(--max-content-width);
  margin-top: var(--space-md);
}

.signup-form [name="signupFormContainer"] {
  display: flex;
  justify-content: center;
}

/* Visually hidden, still reachable by screen readers. General-purpose
   accessibility utility; not currently referenced by any markup on this
   site (the signup form's labels are visible, not sr-only), kept available
   for the next component that needs a screen-reader-only label or hint. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Footer -------------------------------------------------------- */

.site-footer {
  background-color: var(--color-neutral-5);
  color: var(--color-neutral-1);
  padding: var(--space-lg) 0;
}

.site-footer p {
  font-size: var(--text-caption);
  max-width: var(--max-content-width);
  margin: 0 0 var(--space-xs);
}

.site-footer a {
  color: var(--color-neutral-0);
}

.site-footer a:hover {
  color: var(--color-neutral-2);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.site-footer__links a {
  font-size: var(--text-caption);
  text-decoration: underline;
  padding: var(--space-xs) 0;
}

/* ---- Policy pages (Privacy, Terms) -------------------------------------
   Single-column legal reading pages. Reuse the same section/header/footer
   chrome and tokens as the rest of the site; only the content width and
   list styling are specific to long-form prose. */

.policy-page__inner {
  max-width: var(--max-content-width);
}

.policy-page__back {
  margin-bottom: var(--space-md);
}

.policy-page__updated {
  color: var(--color-neutral-4);
  font-size: var(--text-caption);
  font-style: italic;
}

.policy-page__body h2 {
  margin-top: var(--space-lg);
}

.policy-page__body h3 {
  margin-top: var(--space-md);
}

.policy-page__body ul {
  list-style: disc;
  padding-left: var(--space-md);
  margin: 0 0 var(--space-sm);
}

.policy-page__body li {
  margin-bottom: var(--space-xs);
}

/* ---- Contact page / form ------------------------------------------------
   contact.html only. Unlike the signup section's Zoho embed, this form is
   our own markup end to end (plain HTML POST to contact-handler.php), so it's styled
   here with real classes instead of inline styles. Reuses .policy-page__back
   and the standard .section / .section__inner chrome; these rules only
   cover what's specific to the intro copy, the success banner, and the
   form fields. */

.contact-page__inner {
  max-width: var(--max-content-width);
}

.contact-page__intro {
  max-width: var(--max-content-width);
}

.contact-success {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  background-color: var(--color-neutral-0);
  /* Solid border uses --color-neutral-4, not --color-secondary: secondary
     green vs. this card's --color-neutral-0 fill (same as the page's own
     section background) computes to ~2.88:1, under WCAG 2.2 SC 1.4.11's 3:1
     boundary floor. --color-neutral-4 against the same fill computes to
     ~7.2:1. The left accent stripe stays --color-secondary for the brand
     "success" green cue; the boundary itself is carried by the 1px border,
     not the stripe. No --color-secondary-dark token exists yet to keep this
     green end to end; flagged to Iris as a design-system gap. */
  border: 1px solid var(--color-neutral-4);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--color-neutral-4);
}

.contact-success[hidden] {
  display: none;
}

.contact-success p {
  margin: 0;
}

/* Same shape as .contact-success above (flex row, icon + copy, left accent
   stripe over a 1px boundary border), swapped to the site's error cue.
   --color-accent alone clears 4.5:1 against --color-neutral-0 (see
   .icon--error above), so unlike .contact-success this one didn't need a
   neutral fallback for the boundary; --color-accent carries both the
   1px border and the 4px stripe. */
.contact-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  background-color: var(--color-neutral-0);
  border: 1px solid var(--color-accent);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--color-neutral-4);
}

.contact-error[hidden] {
  display: none;
}

.contact-error p {
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: var(--max-content-width);
  margin-top: var(--space-md);
}

.contact-form[hidden] {
  display: none;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-form__field label {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-neutral-5);
  font-size: var(--text-caption);
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field input[type="tel"],
.contact-form__field select,
.contact-form__field textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-neutral-4);
  background-color: var(--color-neutral-0);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
  box-sizing: border-box;
  /* 44px is a deliberate WCAG 2.2 SC 2.5.8 tap-target floor (44x44 CSS px
     minimum), not a spacing-scale value. It's intentionally off the 8px
     scale; don't "correct" it down to --space-md (32px). */
  min-height: 44px;
}

.contact-form__field textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form__hint {
  margin: 0;
  font-size: var(--text-caption);
  font-style: italic;
  color: var(--color-neutral-4);
}

.contact-form__required {
  color: var(--color-accent);
}

.contact-form__privacy {
  font-size: var(--text-caption);
  color: var(--color-neutral-4);
  max-width: var(--max-content-width);
}

.contact-form .button {
  align-self: flex-start;
}

/* Honeypot: kept out of the visual flow and, per the aria-hidden /
   tabindex="-1" on the input itself, out of the accessibility tree and tab
   order too. Off-screen positioning rather than display:none, since some
   spam bots specifically check computed style and skip display:none
   fields. */
.contact-form__botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Suggest an Episode page / form ---------------------------------------
   suggest-episode.html reuses every .contact-form / .contact-success /
   .contact-error rule above. These cover only what is new: the subtitle,
   the four headed form sections, the radio group fieldset, the
   radio/checkbox rows, and the "Have a story idea?" callout on
   contact.html. Colour pairings reuse ones already checked above
   (--color-neutral-4 / --color-neutral-5 text on --color-neutral-0 and
   --color-neutral-1 both clear 4.5:1). */

.suggest-page__subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h3);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.suggest-form__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 1px solid var(--color-neutral-2);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.suggest-form__section h2 {
  margin-bottom: 0;
}

.suggest-form__section p {
  margin: 0;
}

.suggest-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.suggest-form__group legend {
  padding: 0;
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-caption);
  color: var(--color-neutral-5);
}

.suggest-form__choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  /* 44px row: same deliberate tap-target floor as the text inputs above. */
  min-height: 44px;
}

.suggest-form__choice input[type="radio"],
.suggest-form__choice input[type="checkbox"] {
  flex-shrink: 0;
  width: var(--icon-size);
  height: var(--icon-size);
  margin: var(--space-xs) 0 0;
  accent-color: var(--color-primary);
}

.suggest-form__choice label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--color-neutral-5);
  padding: var(--space-xs) 0;
  cursor: pointer;
  flex: 1;
  /* The whole label is the click target, so it carries the 44px floor
     itself (not just the row around it). */
  min-height: 44px;
}

.suggest-form__choice input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* ---- Submission summary (suggest-episode.html, ?sent=true) --------------
   Filled in by js/main.js from the visitor's own sessionStorage. Label/answer
   pairs are a <dl>; answers keep the visitor's line breaks and wrap long
   unbroken strings. */

.suggest-summary[hidden] {
  display: none;
}

.suggest-summary__banner:focus {
  /* Focus is moved here on load for screen readers; keep the ring visible. */
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.suggest-summary__banner p + p {
  margin-top: var(--space-xs);
}

.suggest-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.suggest-summary__print-title {
  display: none;
}

.suggest-summary__section {
  border-top: 1px solid var(--color-neutral-2);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.suggest-summary__list {
  margin: 0;
}

.suggest-summary__item {
  margin-bottom: var(--space-sm);
}

.suggest-summary__item dt {
  font-weight: 600;
  font-size: var(--text-caption);
  color: var(--color-neutral-5);
}

.suggest-summary__item dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* contact.html: story-idea pointer under the intro. */
.contact-page__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--color-neutral-1);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  max-width: var(--max-content-width);
}

.contact-page__cta p {
  margin: 0;
  font-weight: 600;
  color: var(--color-neutral-5);
}

/* ---- Print ------------------------------------------------------------
   Used for the submission summary's Print / Save as PDF button, but safe
   for any page. Strips chrome, interactive controls and banners, shows the
   print-only title line with the submission date, and keeps each
   question/answer pair together. --color-neutral-5 (#1A2529, near-black)
   on the white paper is the "black on white" text colour; no pure-black or
   pure-white literals, and backgrounds are cleared so nothing depends on
   the browser's "print backgrounds" setting. */

@media print {
  .skip-link,
  .site-header,
  .site-footer,
  .policy-page__back,
  .suggest-summary__actions,
  .suggest-summary__banner,
  .contact-success,
  .contact-error,
  .contact-page__cta,
  .button {
    display: none !important;
  }

  body,
  .section,
  .section--light {
    background: none;
    color: var(--color-neutral-5);
    padding: 0;
  }

  body {
    font-size: var(--text-body);
    line-height: var(--leading-body);
  }

  h1 {
    font-size: var(--text-h2);
  }

  .suggest-page__subtitle {
    color: var(--color-neutral-5);
  }

  .suggest-summary__print-title {
    display: block;
    font-weight: 600;
    color: var(--color-neutral-5);
    margin-bottom: var(--space-sm);
  }

  .suggest-summary__section h2 {
    font-size: var(--text-h3);
    break-after: avoid;
  }

  .suggest-summary__item,
  .suggest-summary__section h2 {
    break-inside: avoid;
  }

  .suggest-summary__item dd {
    color: var(--color-neutral-5);
  }

  a {
    color: var(--color-neutral-5);
  }
}

/* ---- Reduced motion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}
