/* ==========================================================================
   "foundation" — the Ann Harris Smith Foundation (driveteal.com)

   Designed for a memorial foundation that raises awareness of a disease:
   light, calm and warm. Ivory paper, one teal used sparingly, serif headings
   in sentence case, photographs in soft frames, nothing shouting. It should
   read like a good nonprofit's annual report — kind, hopeful, trustworthy.

   Same block markup and behaviour script as every site on the CMS; none of
   the design. See render/theme.js for why a site gets its own stylesheet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --teal:        #0f8781;
  --teal-deep:   #0b5f5b;
  --teal-ink:    #0b3d3b;   /* the dark sections: deep teal, never black */
  --teal-soft:   #e2f0ee;
  --teal-mist:   #f1f7f6;
  --sand:        #f3eee5;
  --paper:       #fbf9f5;
  --surface:     #ffffff;

  /* The names the shared markup and the token layer already use. Same values
     under the names this sheet prefers, so an inline style that says
     var(--ink) or var(--font-mono) resolves to something from this palette. */
  --blue:        var(--teal);
  --blue-lit:    #3fb3a8;
  --red:         #c8664b;   /* the "alert" tone: a warm terracotta, not red */
  --red-lit:     #e08a71;
  --blue-rgb:    15, 135, 129;
  --blue-lit-rgb: 63, 179, 168;
  --red-rgb:     200, 102, 75;
  --red-lit-rgb: 224, 138, 113;
  --ink:         var(--teal-ink);
  --ink-2:       #0a3735;
  --ink-3:       #0e4744;
  --ink-4:       #145855;
  --paper-2:     var(--sand);
  --paper-3:     #e9e2d6;

  --text-dark:   #1f2a2c;
  --text-mid:    #5a6668;
  --text-light:  rgba(255, 255, 255, 0.78);
  --text-faint:  rgba(255, 255, 255, 0.55);
  --rule-dark:   rgba(255, 255, 255, 0.14);
  --rule-light:  rgba(31, 42, 44, 0.12);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    var(--font-body);

  --t-hero:  clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem);
  --t-h1:    clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem);
  --t-h2:    clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  --t-h3:    clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --t-h4:    1.0625rem;
  --t-body:  clamp(1.0625rem, 1rem + 0.2vw, 1.15rem);
  --t-lead:  clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --t-small: 0.9rem;
  --t-label: 0.78rem;

  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --measure:   1200px;
  --measure-narrow: 720px;
  --section-y: clamp(3.75rem, 8vw, 7rem);

  --radius:    10px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(31, 42, 44, 0.05), 0 12px 32px -12px rgba(11, 61, 59, 0.18);
  --shadow-lift: 0 4px 10px rgba(31, 42, 44, 0.06), 0 24px 48px -16px rgba(11, 61, 59, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}
@media (max-width: 900px) { :root { --header-h: 68px; } }

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-deep); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4, .h-hero, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: inherit;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
.h-hero { font-size: var(--t-hero); line-height: 1.06; }
.h1     { font-size: var(--t-h1); }
.h2     { font-size: var(--t-h2); }
.h3     { font-size: var(--t-h3); }
.h4     { font-size: var(--t-h4); }
h3 { font-size: var(--t-h3); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.7rem 1rem; background: var(--teal-ink); color: #fff;
  border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.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;
}
:focus-visible { outline: 3px solid rgba(15, 135, 129, 0.45); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--measure-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.5); }
.section--tone  { background: var(--sand); }
.section--dark  { background: var(--teal-ink); color: var(--text-light); }
.section--dark2 { background: var(--ink-2); color: var(--text-light); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--dark2 h1, .section--dark2 h2, .section--dark2 h3, .section--dark2 h4 { color: #fff; }
.section--dark a, .section--dark2 a { color: #fff; }
.section--dark .rule-top, .section--dark2 .rule-top { border-color: var(--rule-dark); }

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; flex: none; background: var(--teal); border-radius: 2px; }
.section--dark .eyebrow, .section--dark2 .eyebrow, .hero .eyebrow, .pagehero .eyebrow { color: var(--blue-lit); }
.section--dark .eyebrow::before, .section--dark2 .eyebrow::before { background: var(--blue-lit); }

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--text-mid); }
.lede { font-size: var(--t-lead); color: var(--text-mid); }
.section--dark .lead, .section--dark2 .lead { color: var(--text-light); }
.muted { color: var(--text-mid); }
.section--dark .muted, .section--dark2 .muted { color: var(--text-faint); }
.rule-top { border-top: 1px solid var(--rule-light); padding-top: 1.5rem; }

/* --------------------------------------------------------------------------
   5. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  --btn-bd: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
              border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(15, 135, 129, 0.55); background: var(--teal-deep); border-color: var(--teal-deep); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--teal-deep); --btn-bd: rgba(15, 135, 129, 0.45); }
.btn--ghost:hover { background: var(--teal-soft); color: var(--teal-ink); border-color: var(--teal); box-shadow: none; }
.btn--ink { --btn-bg: transparent; --btn-fg: var(--teal-ink); --btn-bd: rgba(11, 61, 59, 0.4); }
.btn--ink:hover { background: var(--teal-ink); color: #fff; border-color: var(--teal-ink); box-shadow: none; }
/* Only the dark sections invert the outline button. The hero is paper here,
   not a dark photograph - the first draft included it and produced a white
   button on a white page. */
.section--dark .btn--ghost, .section--dark2 .btn--ghost {
  --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.5);
}
.section--dark .btn--ghost:hover, .section--dark2 .btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 600; color: var(--teal-deep); text-decoration: none;
  border-bottom: 1.5px solid rgba(15, 135, 129, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease);
}
.link-arrow:hover { border-color: var(--teal); }
.link-arrow .chev { transition: transform 0.22s var(--ease); }
.link-arrow:hover .chev { transform: translateX(4px); }
.section--dark .link-arrow, .section--dark2 .link-arrow { color: #fff; border-color: rgba(255,255,255,0.35); }

/* --------------------------------------------------------------------------
   6. Announcement, header, nav
   -------------------------------------------------------------------------- */
.announce {
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 0.95rem;
  text-align: center;
  border-bottom: 1px solid rgba(15, 135, 129, 0.18);
}
.announce--alert { background: #f6e6df; color: #6a3423; }
.announce__inner { padding-block: 0.6rem; }
.announce a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; }

/* No phone, no hours: the strip above the header has nothing to say here. */
.topbar { display: none; }

.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.is-stuck { border-color: var(--rule-light); box-shadow: 0 8px 24px -18px rgba(11, 61, 59, 0.3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 58px; width: auto; transition: height 0.25s var(--ease); }
.header.is-stuck .brand img { height: 48px; }
@media (max-width: 900px) { .brand img, .header.is-stuck .brand img { height: 44px; } }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; position: relative;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--text-dark); text-decoration: none; white-space: nowrap;
  border-radius: 999px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav__link:hover { color: var(--teal-ink); background: var(--teal-mist); }
.nav__link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px; background: var(--teal); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.24s var(--ease);
}
.nav__link[aria-current="page"] { color: var(--teal-ink); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__item--has-menu { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: 0; font: inherit; cursor: pointer; }
.nav__toggle .chev { transition: transform 0.2s var(--ease); }
.nav__item--has-menu.is-open .nav__toggle .chev { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 260px;
  list-style: none; margin: 0; padding: 0.5rem;
  background: var(--surface); border: 1px solid var(--rule-light);
  border-radius: 16px; box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.nav__item--has-menu.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu li { margin: 0; }
.nav__menu a {
  display: block; padding: 0.65rem 0.9rem; border-radius: 10px;
  color: var(--text-dark); text-decoration: none; font-weight: 500;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.nav__menu a:hover { background: var(--teal-mist); color: var(--teal-ink); }

.header__cta { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 1px solid var(--rule-light); border-radius: 999px;
  cursor: pointer; place-items: center;
}
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--teal-ink); transition: transform 0.24s var(--ease), opacity 0.18s var(--ease); }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) { .nav, .header__cta .btn { display: none; } .burger { display: grid; } }

.drawer {
  position: fixed; inset: 0; z-index: 95;
  background: var(--paper);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s;
}
body.nav-open .drawer { transform: translateX(0); visibility: visible; }
.drawer__list { list-style: none; margin: 0 0 2rem; padding: 0; }
.drawer__list a {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.95rem 0;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--teal-ink); text-decoration: none;
  border-bottom: 1px solid var(--rule-light);
}
.drawer__list a .num { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--teal); }
.drawer__list .sub a { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; padding-left: 2.4rem; color: var(--text-mid); }

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none;
  background: var(--surface); border-top: 1px solid var(--rule-light);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 0.5rem; font-weight: 600; color: var(--teal-ink); text-decoration: none; }
.callbar a.is-primary { background: var(--teal); color: #fff; }
.callbar svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 700px) { .callbar { display: flex; } }

/* --------------------------------------------------------------------------
   7. Hero — words beside a photograph, on paper. No overlay.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(520px, 74vh, 780px);
  background: var(--paper);
  color: var(--text-dark);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(3rem, 7vw, 6rem); }
/* ⚠ .wrap and .hero__copy are ONE element here, and its children are the
   eyebrow, heading, lead and buttons. The first version put a two-column grid
   on it, which spread those children across both columns and dropped the
   photograph on top of the headline. The copy keeps the left half by padding;
   the photograph, rendered before the copy in the markup, is lifted out and
   pinned to the right half. */
.hero .wrap { padding-right: calc(min(44vw, 620px) + clamp(1.5rem, 4vw, 4rem)); }
.hero__media {
  position: absolute; z-index: 0;
  right: 0; top: 50%; transform: translateY(-50%);
  width: min(44vw, 620px);
  aspect-ratio: 5 / 4;
  max-height: 82%;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11, 61, 59, 0.35);
}
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(11, 61, 59, 0.08);
  border-radius: inherit;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* The width limit goes on the copy's CHILDREN. The wrap itself carries the
   right-hand reservation for the photograph, and a max-width on the same box
   is measured border-box - so 36rem minus a 44vw reservation left the words
   a column one word wide. */
.hero__copy > * { max-width: 34rem; }
.hero .h-hero { margin-bottom: 1.25rem; color: var(--teal-ink); }
.hero__title-line { display: block; }
.hero__title-line em { font-style: italic; color: var(--teal); }
.hero .lead { color: var(--text-mid); margin-bottom: 1.75rem; }
.hero .eyebrow { color: var(--teal-deep); }
/* Side by side needs room for a 36rem column AND a photograph; below about
   1000px the copy was being squeezed to a third of the page. Stack earlier. */
@media (max-width: 1000px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero .wrap { padding-right: var(--gutter); }
  .hero__inner { padding-block: 1.75rem 3rem; }
  .hero__media {
    position: relative; right: auto; top: auto; transform: none;
    width: 100%; max-height: none; aspect-ratio: 4 / 3;
    border-radius: 0; box-shadow: none;
  }
}

/* Page header — a heading on paper, the photograph a banner beneath it. */
.pagehero {
  position: relative;
  display: flex; flex-direction: column-reverse;
  background: var(--paper);
  color: var(--text-dark);
}
.pagehero__inner { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
.pagehero .h1 { color: var(--teal-ink); max-width: 20ch; }
.pagehero .lead { max-width: 42rem; margin-top: 0.75rem; }
.pagehero__media {
  width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter);
  margin-bottom: clamp(1rem, 3vw, 2rem);
}
.pagehero__media img {
  width: 100%; height: clamp(180px, 28vw, 380px); object-fit: cover;
  border-radius: var(--radius-lg);
}
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  list-style: none; margin: 0 0 1.25rem; padding: 0;
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mid);
}
.crumbs li { margin: 0; }
.crumbs a { color: var(--teal-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "·"; margin-right: 0.5rem; color: var(--teal); }

/* --------------------------------------------------------------------------
   8. Figures, logo strip, section heads
   -------------------------------------------------------------------------- */
.statband { background: var(--paper); border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }
.statband__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 2rem); text-align: center; border-left: 1px solid var(--rule-light); }
.stat:first-child { border-left: 0; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; color: var(--teal-ink); }
.stat__num .unit { color: var(--teal); }
.statband--labels .stat__num { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-style: italic; font-weight: 500; }
.stat__label { display: block; margin-top: 0.6rem; font-size: var(--t-small); color: var(--text-mid); }
.section--dark .stat { border-color: var(--rule-dark); }
.section--dark .stat__num { color: #fff; }
.section--dark .stat__label { color: var(--text-faint); }
@media (max-width: 780px) {
  .statband__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n + 1) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule-light); }
}

.brandstrip { background: var(--surface); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule-light); }
.brandstrip__label { text-align: center; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 1.5rem; }
.brandstrip img { margin-inline: auto; max-width: min(720px, 100%); max-height: 160px; width: auto; }

.sechead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 2.5rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sechead__text { max-width: 44rem; }
.sechead .lead { margin-top: 0.75rem; }
@media (max-width: 760px) { .sechead { grid-template-columns: 1fr; align-items: start; } }

/* --------------------------------------------------------------------------
   9. Cards, capability list
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule-light); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
a.card:hover .card__media img { transform: scale(1.04); }
.card__tag {
  position: absolute; left: 0.9rem; top: 0.9rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(251, 249, 245, 0.94); color: var(--teal-ink);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; flex: 1; gap: 0.6rem; padding: clamp(1.25rem, 2vw, 1.75rem); }
.card__body .h3 { color: var(--teal-ink); margin-bottom: 0.1rem; }
.card__body p { margin: 0; color: var(--text-mid); font-size: 0.98rem; }
.card__body .link-arrow { margin-top: auto; padding-top: 0.75rem; align-self: flex-start; }
.section--dark .card, .section--dark2 .card { background: var(--ink-3); border-color: var(--rule-dark); color: var(--text-light); }
.section--dark .card__body .h3 { color: #fff; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 1rem; align-items: start; }
.spec__num {
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-deep);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
}
.section--dark .spec__num, .section--dark2 .spec__num { background: rgba(255,255,255,0.12); color: #fff; }
.spec__title { font-size: var(--t-h3); color: var(--teal-ink); margin: 0.2rem 0 0.35rem; }
.section--dark .spec__title { color: #fff; }
.spec__body { margin: 0; color: var(--text-mid); font-size: 0.98rem; }
.section--dark .spec__body, .section--dark2 .spec__body { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   10. Photo beside text
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 5vw, 5.5rem); }
.split--flip .split__media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: visible; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); position: relative; z-index: 1; box-shadow: var(--shadow-card); }
/* A soft teal sheet set behind the photograph, offset like a mount. */
.framed::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  background: var(--teal-soft); border-radius: var(--radius-lg);
}
.split--flip .framed::before { inset: 1.1rem 1.1rem -1.1rem -1.1rem; }
.section--dark .framed::before, .section--dark2 .framed::before { background: rgba(255,255,255,0.08); }
.framed::after { content: none; }
.split .h2 { color: var(--teal-ink); }
.section--dark .split .h2 { color: #fff; }

.checklist { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: 0.7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 1.3rem; height: 1.3rem; border-radius: 999px; background: var(--teal-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: 0.42rem; top: 0.55em;
  width: 0.55rem; height: 0.3rem; border-left: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep);
  transform: rotate(-45deg);
}
.section--dark .checklist li::before { background: rgba(255,255,255,0.14); }
.section--dark .checklist li::after { border-color: #fff; }

/* --------------------------------------------------------------------------
   11. Steps, gallery, lightbox, team
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); counter-reset: step; }
.step { position: relative; padding-top: 3rem; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--teal);
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--teal-soft); min-width: 2.4rem;
}
.step h3 { font-size: var(--t-h3); color: var(--teal-ink); margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--text-mid); font-size: 0.98rem; }
.section--dark .step h3 { color: #fff; }
.section--dark .step p { color: var(--text-faint); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter {
  padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--rule-light); color: var(--text-mid);
  font: inherit; font-weight: 600; font-size: 0.9rem;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.filter:hover { border-color: var(--teal); color: var(--teal-ink); }
.filter[aria-pressed="true"] { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.shot {
  position: relative; display: block; padding: 0; border: 0;
  background: var(--sand); border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3;
}
.shot--tall { grid-row: span 2; aspect-ratio: 2 / 3; }
@media (max-width: 620px) { .shot--tall { grid-row: span 1; aspect-ratio: 4 / 3; } }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot__cap {
  position: absolute; inset: auto 0 0 0; padding: 2.25rem 1rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(11, 61, 59, 0.82));
  color: #fff; font-size: 0.9rem; font-weight: 600; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: translateY(0); }
.shot.is-hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(11, 40, 39, 0.94); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.24s var(--ease), visibility 0.24s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__cap { margin-top: 1rem; color: var(--text-light); font-size: 0.95rem; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff;
}
.lightbox__close { top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); font-size: 1.4rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__nav svg { width: 22px; height: 22px; fill: currentColor; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.22); }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.member__photo { aspect-ratio: 1; border-radius: 999px; overflow: hidden; background: var(--sand); margin-bottom: 1rem; max-width: 220px; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-size: var(--t-h3); margin-bottom: 0.15rem; color: var(--teal-ink); }
.member__role { margin: 0; color: var(--text-mid); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   12. Contact and forms
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .h2 { color: var(--teal-ink); }
.infolist { list-style: none; margin: 0; padding: 0; }
.infolist li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-light); }
.infolist svg { width: 2.4rem; height: 2.4rem; padding: 0.6rem; border-radius: 999px; background: var(--teal-soft); fill: var(--teal-deep); }
.infolist .label { font-size: var(--t-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 0.15rem; }
.infolist .value { font-size: 1.05rem; overflow-wrap: anywhere; }

.form {
  background: var(--surface); border: 1px solid var(--rule-light); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-card);
}
.section--dark .form, .section--dark2 .form { background: var(--ink-3); border-color: var(--rule-dark); box-shadow: none; }
.form .h3 { color: var(--teal-ink); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.section--dark .field label { color: var(--text-light); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  font: inherit; font-size: 1rem; color: inherit;
  background: var(--paper); border: 1.5px solid var(--rule-light); border-radius: 12px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(15, 135, 129, 0.15); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field__error { display: none; margin-top: 0.35rem; font-size: 0.85rem; color: #a5462c; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c8664b; }
.field.has-error .field__error { display: block; }
.field--check label { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 500; cursor: pointer; }
.field--check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.2rem; padding: 0; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__note { margin-top: 1rem; font-size: 0.875rem; color: var(--text-mid); }
.form__status { display: none; margin-bottom: 1.25rem; padding: 0.9rem 1.1rem; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); font-size: 0.95rem; }
.form__status.is-visible { display: block; }
.map { border: 0; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }

/* --------------------------------------------------------------------------
   13. Call to action — a deep teal panel inside the page, not a dark bleed
   -------------------------------------------------------------------------- */
.cta { position: relative; background: var(--paper); }
.cta .wrap { position: relative; }
.cta__inner {
  position: relative; z-index: 1;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--teal-ink); color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}
.cta__inner .eyebrow { justify-content: center; color: var(--blue-lit); }
.cta__inner .eyebrow::before { background: var(--blue-lit); }
.cta__inner .h1 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta__inner .lead { color: var(--text-light); max-width: 38rem; margin: 0 auto 1.75rem; }
.cta__inner .btn-row { justify-content: center; }
.cta__inner .btn { --btn-bg: #fff; --btn-fg: var(--teal-ink); --btn-bd: #fff; }
.cta__inner .btn:hover { background: var(--teal-soft); border-color: var(--teal-soft); }
.cta__inner .btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.5); }
/* The photograph is a faint wash behind the panel's words. */
.cta__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta__media img { display: none; }
.cta .wrap .cta__inner { position: relative; }
.cta .cta__media + .wrap .cta__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--teal-ink);
}

/* --------------------------------------------------------------------------
   14. Footer — sand, quiet
   -------------------------------------------------------------------------- */
.footer { background: var(--sand); color: var(--text-dark); border-top: 1px solid var(--rule-light); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 60px; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--text-mid); font-size: 0.95rem; max-width: 30rem; }
.footer h4 { font-family: var(--font-body); font-size: var(--t-label); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.55rem; font-size: 0.98rem; }
.footer a { color: var(--text-dark); text-decoration: none; }
.footer a:hover { color: var(--teal-deep); text-decoration: underline; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--rule-light); color: var(--teal-ink); transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.footer__social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__bar { border-top: 1px solid var(--rule-light); padding-block: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: var(--text-mid); }
.footer__badges { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__badges img { height: 40px; width: auto; }


/* The maker's credit: the footer bar's own colour at 60%, one step down in
   size, no underline until hover. It should read as part of the copyright
   line, not as a second thing competing with it. */
.footer a.footer__credit {
  color: inherit;
  font-size: 0.9em;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.15s var(--ease);
}
.footer a.footer__credit::before {
  content: "·";
  margin: 0 0.45rem;
  opacity: 0.6;
}
.footer a.footer__credit:hover { opacity: 1; text-decoration: underline; }

/* --------------------------------------------------------------------------
   15. Motion, 404
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section-y); }
.lost h1 { color: var(--teal-ink); }

/* --------------------------------------------------------------------------
   16. Calendar of dates

   One row an evening, grouped by month. The three states have to be legible
   at a glance and to somebody who cannot tell the teal from the sand: the
   status word carries the meaning, colour only reinforces it.
   -------------------------------------------------------------------------- */
.cal { display: grid; gap: clamp(1.75rem, 3vw, 2.75rem); }
.cal__month-name {
  font-family: var(--font-display); font-size: var(--t-h3); font-weight: 600;
  color: var(--teal-deep); margin: 0 0 0.6rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule-light);
}
.section--dark .cal__month-name, .section--dark2 .cal__month-name {
  color: #fff; border-bottom-color: var(--rule-dark);
}
.cal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.cal__night {
  display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0 clamp(0.85rem, 2vw, 1.4rem);
  padding: 0.7rem 0.9rem 0.7rem 0.7rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--rule-light);
  border-left: 3px solid var(--teal);
}
.section--dark .cal__night, .section--dark2 .cal__night {
  background: rgba(255, 255, 255, 0.06); border-color: var(--rule-dark);
}

/* The date tile: weekday over the number, so the column stays narrow. */
.cal__date {
  display: grid; justify-items: center; align-content: center;
  width: 3.1rem; height: 3.1rem; border-radius: var(--radius-lg);
  background: var(--teal-soft); color: var(--teal-deep); line-height: 1;
}
.cal__dow { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.cal__day { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.section--dark .cal__date, .section--dark2 .cal__date { background: rgba(255,255,255,0.12); color: #fff; }

.cal__body { display: grid; gap: 0.1rem; min-width: 0; }
.cal__title { font-family: var(--font-display); font-size: 1.05rem; color: var(--teal-ink); }
.section--dark .cal__title, .section--dark2 .cal__title { color: #fff; }
.cal__place, .cal__note { font-size: var(--t-small); color: var(--text-mid); }
.section--dark .cal__place, .section--dark .cal__note,
.section--dark2 .cal__place, .section--dark2 .cal__note { color: var(--text-faint); }
.cal__note { font-style: italic; }

.cal__status {
  font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; white-space: nowrap;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-deep);
}

/* Open: the one a school is looking for, so it carries the accent. */
.cal__night--open { border-left-color: var(--teal); }
.cal__night--open .cal__status { background: var(--teal); color: #fff; }

/* Booked: present and legible, plainly not on offer. */
.cal__night--booked { border-left-color: var(--paper-3); }
.cal__night--booked .cal__date { background: var(--sand); color: var(--text-dark); }
.cal__night--booked .cal__status { background: var(--sand); color: var(--text-mid); }

/* Past: kept, because it is the proof the nights happen — but quiet, and it
   never says "open". The word is swapped by the renderer and the script. */
.cal__night--past { border-left-color: var(--rule-light); opacity: 0.62; }
.cal__night--past .cal__date { background: var(--paper-2); color: var(--text-mid); }
.cal__night--past .cal__status { background: transparent; color: var(--text-mid); box-shadow: inset 0 0 0 1px var(--rule-light); }

.cal__empty { color: var(--text-mid); font-size: var(--t-lead); margin: 0; }

/* On a phone the status moves under the words rather than squeezing them. */
@media (max-width: 600px) {
  .cal__night { grid-template-columns: auto minmax(0, 1fr); row-gap: 0.5rem; }
  .cal__status { grid-column: 2; justify-self: start; }
}

/* --------------------------------------------------------------------------
   Quotes — the testimonials block

   ⚠ EVERY SHEET CARRIES THESE, because a site's stylesheet REPLACES this one
   rather than extending it: a block styled in one place renders as unstyled
   paragraphs everywhere else and nothing errors. Same rule as the calendar.

   ⚠ AND .split--bare / .hero--bare BELONG WITH THEM. The renderer now omits
   the media column when a block has no photograph — it used to emit an empty
   <img>, which browsers draw as a broken-image box — and without these rules
   the copy sits in a half-width column beside nothing.
   -------------------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.quote { margin: 0; background: #fff; border: 1px solid var(--rule-light); border-left: 3px solid var(--blue); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; }
.section--dark .quote, .section--dark2 .quote { background: rgba(255,255,255,0.06); border-color: var(--rule-dark); }
.quote__text { margin: 0 0 1.1rem; line-height: 1.65; color: var(--text-dark); }
.section--dark .quote__text, .section--dark2 .quote__text { color: #fff; }
.quote__by { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: var(--t-small); color: var(--text-dark); }
.section--dark .quote__by, .section--dark2 .quote__by { color: #fff; }
.quote__detail { display: block; font-weight: 400; color: var(--text-mid); letter-spacing: 0.04em; text-transform: uppercase; font-size: var(--t-label); margin-top: 0.3rem; }
.section--dark .quote__detail, .section--dark2 .quote__detail { color: var(--text-faint); }
.quotes__source { margin: 1.5rem 0 0; font-size: var(--t-small); color: var(--text-mid); }
.section--dark .quotes__source, .section--dark2 .quotes__source { color: var(--text-faint); }

.split--bare { grid-template-columns: minmax(0, 1fr); max-width: 78ch; }
.hero--bare .hero__copy { position: relative; }

/* --------------------------------------------------------------------------
   The pledge, and the quiz

   ⚠ THE DEFAULT STATE IS EVERY QUESTION OPEN, AND THAT IS NOT AN OVERSIGHT.
   The renderer writes the whole quiz as plain HTML; the script adds `is-js`
   to the root and only then does this sheet hide what has not been reached.
   So a reader with JavaScript blocked, and a crawler, get every question, its
   choices and its explanation as a readable list. Lose that order and the
   page is an empty box for both of them.

   ⚠ AND "NOT QUITE" IS TERRACOTTA, NEVER RED. Everything on this site is one
   degree softer than the alert it would be elsewhere — a woman reading a
   quiz about her own symptoms should not be shouted at for guessing.
   -------------------------------------------------------------------------- */
.pledge__intro { margin: 1.75rem 0 0.9rem; font-family: var(--font-display); font-size: var(--t-h3); color: var(--teal-ink); }
.pledge__promises .checklist li { font-size: 1.05rem; }

.quiz { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.quiz__list { list-style: none; margin: 0; padding: 0; max-width: var(--measure-narrow); }
.quiz__q {
  background: var(--surface); border: 1px solid var(--rule-light); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: var(--shadow-card);
}
.quiz__q + .quiz__q { margin-top: 1.25rem; }
.quiz__q:focus { outline: none; }
.quiz__q:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.section--dark .quiz__q, .section--dark2 .quiz__q { background: var(--ink-3); border-color: var(--rule-dark); box-shadow: none; }

.quiz__count { margin: 0 0 0.6rem; font-size: var(--t-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); }
.quiz__ask { margin: 0 0 1.25rem; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.35; color: var(--teal-ink); }
.section--dark .quiz__ask, .section--dark2 .quiz__ask { color: #fff; }

.quiz__options { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.6rem; }
.quiz__choice {
  display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.85rem; align-items: start;
  padding: 0.85rem 1rem; border: 1.5px solid var(--rule-light); border-radius: 12px;
  background: var(--paper); cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.quiz__choice:hover { border-color: var(--teal); background: #fff; }
.quiz__choice input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--teal); }
.quiz__choice:has(input:checked) { border-color: var(--teal); background: var(--teal-mist); }
.quiz__choice:focus-within { outline: 3px solid rgba(15, 135, 129, 0.35); outline-offset: 2px; }

.quiz__said { border-radius: 12px; padding: 1rem 1.15rem; margin: 0 0 1.25rem; }
.quiz__said p { margin: 0 0 0.7rem; font-size: 1rem; line-height: 1.6; }
.quiz__said p:last-child { margin-bottom: 0; }
.quiz__said--yes { background: var(--teal-soft); color: var(--teal-ink); }
.quiz__said--no { background: #f6e8e2; color: #7a3a26; }
.quiz__verdict { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h4); letter-spacing: 0.02em; }

.quiz__hint { margin: 0 0 0.9rem; font-size: 0.9rem; color: #a5462c; min-height: 0; }
.quiz__hint:empty { display: none; }
.quiz__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.quiz__note { margin: 1.5rem 0 0; font-size: var(--t-small); color: var(--text-mid); max-width: var(--measure-narrow); }
.quiz__q--done { text-align: center; }
.quiz__q--done .h3 { color: var(--teal-ink); margin-bottom: 0.75rem; }
.quiz__q--done p { margin: 0 auto 1.4rem; max-width: 46ch; }

/* With the script running: one question at a time, and no answer given away
   before it is chosen. Every selector here is gated on .is-js. */
.quiz.is-js .quiz__q { display: none; }
.quiz.is-js .quiz__q.is-current { display: block; }
.quiz.is-js .quiz__q + .quiz__q { margin-top: 0; }
.quiz.is-js .quiz__said { display: none; }
.quiz.is-js .quiz__q.is-right .quiz__said--yes,
.quiz.is-js .quiz__q.is-wrong .quiz__said--no,
.quiz.is-js .quiz__q.is-unmarked .quiz__said--yes { display: block; }
