/* =====================================================================
   Delta Housing Be Mine Society - draft site styles
   Fonts: Fraunces (warm display serif) + Atkinson Hyperlegible (body,
   built for low-vision readers). House rule: no em-dashes in comments.
   ===================================================================== */

/* ---- Design tokens ---------------------------------------------------*/
:root {
  --green: #1E7A12;
  --green-deep: #14560C;
  --green-tint: #E7F1E2;
  --gold: #F7C413;
  --gold-soft: #FBE08A;
  /* deep gold carries small text, labels, and white-on-gold badges, so it is
     tuned to clear WCAG AA (>=4.5:1). The bright --gold above stays vivid for
     fills, rings, and gradients. */
  --gold-deep: #856200;
  --cream: #FBF7EF;
  --cream-deep: #F3ECDD;
  --surface: #FFFFFF;
  --ink: #1E2A1A;
  --ink-soft: #4A5546;

  /* step accents, used sparingly on the housing journey. Orange and sky are
     darkened from their original tints so white step numbers on them clear
     WCAG AA (>=4.5:1). */
  --purple: #5E3B9E;
  --orange: #AD5F14;
  --sky: #2B77A8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  /* layered, color-tinted shadows (never flat) */
  --shadow-sm: 0 1px 2px rgba(20, 86, 12, .06), 0 2px 8px rgba(20, 86, 12, .06);
  --shadow-md: 0 4px 10px rgba(20, 86, 12, .08), 0 14px 30px rgba(20, 86, 12, .10);
  --shadow-lg: 0 10px 24px rgba(20, 86, 12, .10), 0 30px 60px rgba(20, 86, 12, .14);
  --shadow-gold: 0 8px 22px rgba(200, 148, 0, .22);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --maxw: 1140px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --fs-scale: 1; /* nudged by the larger-text toggle */
}

/* ---- Accessibility toggles state -----------------------------------*/
html[data-textsize="large"]  { --fs-scale: 1.14; }
html[data-textsize="xlarge"] { --fs-scale: 1.28; }

html[data-contrast="high"] {
  --cream: #FFFFFF;
  --cream-deep: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #0B130A;
  --ink-soft: #1E2A1A;
  --green: #0F5407;
  --green-deep: #0A3A05;
  --gold-deep: #6E5200;
}

html[data-font="dyslexic"] {
  --font-body: "Comic Sans MS", "Atkinson Hyperlegible", system-ui, sans-serif;
  letter-spacing: .01em;
  word-spacing: .08em;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: calc(1.0625rem * var(--fs-scale));
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* The hidden attribute must always win, even over components that set their
   own display (for example .card uses display:flex, which would otherwise
   override the browser default [hidden]{display:none}). */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--green-deep);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: calc(clamp(2.4rem, 6vw, 4.2rem) * var(--fs-scale)); letter-spacing: -0.025em; }
h2 { font-size: calc(clamp(1.8rem, 4vw, 2.9rem) * var(--fs-scale)); }
h3 { font-size: calc(clamp(1.25rem, 2.4vw, 1.6rem) * var(--fs-scale)); }
p  { margin: 0 0 1.1em; max-width: 64ch; }

a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--green); }

/* visible focus on every interactive element */
:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--green-deep); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--radius-sm);
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---- Layout helpers -------------------------------------------------*/
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--green-tint); }
.section--cream { background: var(--cream-deep); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: calc(.78rem * var(--fs-scale));
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 .8rem;
}
.lede { font-size: calc(1.2rem * var(--fs-scale)); color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* ---- Buttons --------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: calc(1.02rem * var(--fs-scale));
  padding: .85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--gold { background: var(--gold); color: var(--green-deep); box-shadow: var(--shadow-gold); }
.btn--gold:hover { background: var(--gold-soft); color: var(--green-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }

/* ---- Header / nav ---------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 239, .85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(20, 86, 12, .10);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; gap: .12rem; font-size: calc(.72rem * var(--fs-scale)); color: var(--ink-soft); letter-spacing: .04em; line-height: 1.25; }
.brand b { font-family: var(--font-display); font-size: calc(1.18rem * var(--fs-scale)); color: var(--green-deep); line-height: 1.05; }

.nav {
  display: flex; align-items: center; flex-wrap: wrap;
  flex: 1 1 auto;
  gap: .2rem;
  justify-content: space-between;
}
.nav a {
  text-decoration: none; color: var(--ink);
  padding: .5rem .8rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: calc(1rem * var(--fs-scale));
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--green-tint); color: var(--green-deep); }
.nav a[aria-current="page"] { background: var(--green); color: #fff; }

/* hamburger toggle: hidden on desktop, shown on mobile */
.nav-toggle { display: none; }

/* accessibility toolbar */
.a11y-bar { display: flex; gap: .3rem; align-items: center; margin-left: .4rem; }
.a11y-bar button {
  font-family: var(--font-body); font-weight: 700;
  background: var(--surface); color: var(--green-deep);
  border: 1.5px solid rgba(20, 86, 12, .25);
  border-radius: var(--radius-pill);
  width: 2.4rem; height: 2.4rem; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.a11y-bar button:hover { background: var(--gold-soft); transform: translateY(-1px); }
.a11y-bar button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.a11y-bar .a11y-az { font-size: .82rem; }
.a11y-bar .a11y-az b { font-size: 1.1rem; }

/* mobile: collapse the nav behind a hamburger toggle */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; flex: 0 0 auto;
    width: 2.9rem; height: 2.9rem; cursor: pointer;
    background: var(--surface); color: var(--green-deep);
    border: 1.5px solid rgba(20, 86, 12, .25);
    border-radius: var(--radius-pill);
    transition: background .2s var(--ease), transform .2s var(--ease);
  }
  .nav-toggle:hover { background: var(--gold-soft); transform: translateY(-1px); }

  /* three bars built from one span + its pseudo-elements; morph to an X when open */
  .nav-toggle__bars { position: relative; width: 22px; height: 2.5px; }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block; width: 22px; height: 2.5px; border-radius: 2px;
    background: var(--green-deep);
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  /* the menu drops below the header bar; hidden until toggled open */
  .nav {
    display: none;
    flex: 1 1 100%;
    flex-direction: column; align-items: stretch;
    gap: .15rem; padding: .35rem 0 .55rem;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: .8rem 1rem; font-size: calc(1.05rem * var(--fs-scale));
    border-radius: var(--radius-md);
  }
  /* keep the wordmark from wrapping into the hamburger on narrow phones */
  .brand b { font-size: calc(1rem * var(--fs-scale)); }
  /* let the brand shrink and the wordmark wrap so it never overflows the
     smallest phones (~320px); without min-width:0 a flex item refuses to
     wrap below its single-line width and pushes past the viewport edge */
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand span { min-width: 0; }
}

/* ---- Hero -----------------------------------------------------------*/
.hero { position: relative; overflow: hidden; padding: clamp(1.75rem, 4vw, 3.25rem) 0 clamp(2rem, 4vw, 3.25rem); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 30% 30%, rgba(247, 196, 19, .35), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(30, 122, 18, .22), transparent 60%);
  filter: blur(8px); z-index: 0; pointer-events: none;
}
/* two-column hero head: text on the left, big logo glowing on the right */
.hero-head {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hero-head__text { max-width: 38rem; }
.hero-head .lede { margin-bottom: 1.8rem; }
.hero h1 .accent { color: var(--gold-deep); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; font-size: calc(.92rem * var(--fs-scale)); color: var(--ink-soft); }

/* brand emblem: logo above the wordmark, centred in the hero's colour glow.
   A soft cream halo lets the lockup own the column instead of floating in it. */
.hero-head__brand {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 2.5vw, 2rem);
}
.hero-head__brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%,
    color-mix(in srgb, var(--cream) 82%, transparent) 0%,
    color-mix(in srgb, var(--cream) 28%, transparent) 55%,
    transparent 72%);
}
.hero-logo {
  /* the heart-and-roof mark leads the lockup, sized to fill the column */
  width: clamp(190px, 21vw, 280px); height: auto;
  filter: drop-shadow(0 16px 32px rgba(20, 86, 12, .22));
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

.hero-wordmark { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.hero-wordmark__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--gold-deep);
  margin: 0;
}
.hero-wordmark__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  line-height: 1.3;
  color: var(--green-deep);
  text-wrap: balance;
  margin: 0;
  /* slim gold rule above the tagline to tie the lockup together */
  padding-top: .7rem;
  width: min(100%, 22rem);
  border-top: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
}

@media (max-width: 860px) {
  .hero-head { grid-template-columns: 1fr; text-align: center; }
  .hero-head__text { max-width: 60ch; margin-inline: auto; }
  .hero-head .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { margin-inline: auto; }
  .hero-head__brand { order: -1; justify-items: center; padding-block: clamp(1rem, 4vw, 2rem); }
  .hero-wordmark { text-align: center; margin-inline: auto; }
  .hero-logo { width: clamp(160px, 44vw, 240px); margin-right: 0; }
}

.hero-art {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--green-tint);
  border: 6px solid #fff;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Interactive hero slideshow (wide banner, photos shown in full) - */
.hero-show { position: relative; z-index: 1; }

.hero-show__viewport {
  position: relative; aspect-ratio: 27 / 10;
  border-radius: var(--radius-lg); overflow: hidden;
  /* soft mat behind each photo so it is never cropped */
  background: linear-gradient(160deg, var(--green-tint), var(--cream-deep));
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
/* a soft gold ring just inside the white frame */
.hero-show__viewport::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(247, 196, 19, .45);
}

.hero-show__track { list-style: none; margin: 0; padding: 0; }

.hero-show__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.hero-show__slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity .9s var(--ease);
}
/* contain keeps the whole photo visible: no crop, no zoom */
.hero-show__slide img {
  width: 100%; height: 100%; object-fit: contain;
}

/* compact caption pill, bottom-left, so the photo stays visible */
.hero-show__caption {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2; margin: 0;
  max-width: min(78%, 30rem);
  padding: .6rem .95rem; border-radius: var(--radius);
  background: rgba(11, 19, 10, .62); backdrop-filter: blur(8px);
  color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: calc(1.06rem * var(--fs-scale)); line-height: 1.25;
  box-shadow: var(--shadow-md);
  transform: translateY(8px); opacity: 0;
}
.hero-show__slide.is-active .hero-show__caption {
  animation: captionUp .6s var(--ease) .25s forwards;
}
@keyframes captionUp { to { transform: translateY(0); opacity: 1; } }
.hero-show__caption span { color: var(--gold); font-weight: 600; }

/* prev / next arrows */
.hero-show__arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(251, 247, 239, .9); color: var(--green-deep);
  border: 1.5px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(6px); box-shadow: var(--shadow-md);
  font-size: 1.7rem; line-height: 1; padding: 0;
  opacity: 0;
  transition: opacity .3s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.hero-show__arrow span { margin-top: -3px; }
.hero-show__arrow--prev { left: .8rem; }
.hero-show__arrow--next { right: .8rem; }
.hero-show:hover .hero-show__arrow,
.hero-show:focus-within .hero-show__arrow { opacity: 1; }
.hero-show__arrow:hover { background: var(--gold); transform: translateY(-50%) scale(1.08); }
.hero-show__arrow:focus-visible { opacity: 1; }

/* play / pause toggle */
.hero-show__play {
  position: absolute; top: .8rem; right: .8rem; z-index: 5;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: rgba(11, 19, 10, .5); border: 1.5px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-show__play:hover { background: rgba(11, 19, 10, .72); transform: scale(1.08); }
/* pause icon (two bars) when playing */
.hero-show__play-icon { display: block; background: #fff; width: 4px; height: 13px; box-shadow: 6px 0 0 #fff; margin-left: -3px; }
/* play icon (triangle) when paused */
.hero-show__play[aria-pressed="false"] .hero-show__play-icon {
  width: 0; height: 0; box-shadow: none; margin-left: 2px;
  border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}

/* dot indicators: 28px tap target (WCAG 2.5.8) with a 12px visual dot drawn
   as a pseudo-element, so phones get a finger-friendly hit area */
.hero-show__dots {
  display: flex; gap: 2px; justify-content: center;
  margin-top: 1.1rem;
}
.hero-show__dots button {
  width: 28px; height: 28px; padding: 0; border: 0; cursor: pointer;
  background: transparent; border-radius: 50%;
  display: grid; place-items: center;
}
.hero-show__dots button::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(20, 86, 12, .22);
  transition: background .25s var(--ease), transform .25s var(--ease), width .3s var(--ease);
}
.hero-show__dots button:hover::before { background: var(--green); transform: scale(1.15); }
.hero-show__dots button[aria-selected="true"]::before {
  width: 24px; border-radius: var(--radius-pill);
  background: var(--gold-deep);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* reduced motion: no caption slide, instant crossfade */
@media (prefers-reduced-motion: reduce) {
  .hero-show__slide.is-active .hero-show__caption { animation: none; transform: none; opacity: 1; }
}

@media (max-width: 860px) {
  /* a touch taller on small screens so the wide photo is not tiny */
  .hero-show__viewport { aspect-ratio: 11 / 6; }
  .hero-show__arrow { opacity: 1; }
}
@media (max-width: 540px) {
  .hero-show__viewport { aspect-ratio: 4 / 3; }
}

/* ---- Split: reusable two-column band that stacks on small screens ----
   Used for intro + media / form pairings on inner pages. Collapses to a
   single column on tablets and phones so text and photos never cram. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 2.5rem); }
}

/* ---- Cards ----------------------------------------------------------*/
.card-grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
/* small donation tiles read better two-up than in a tall single stack */
@media (max-width: 600px) { .card-grid.tiers.cols-4 { grid-template-columns: 1fr 1fr; gap: .8rem; } }

.card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 86, 12, .06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card h3 { color: var(--green-deep); }
.card p { color: var(--ink-soft); }

/* "who are you" path cards */
.path-card { position: relative; overflow: hidden; }
.path-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--green);
}
.path-card.is-family::before  { background: var(--green); }
.path-card.is-join::before    { background: var(--gold); }
.path-card.is-help::before    { background: var(--purple); }
.path-card.is-housing::before { background: var(--sky); }
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.path-card .ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 1rem;
  font-size: 1.7rem; background: var(--green-tint);
}
.path-card.is-join .ico    { background: var(--gold-soft); }
.path-card.is-help .ico    { background: #ECE3F8; }
.path-card.is-housing .ico { background: #DEEFF9; }
.path-card .go {
  margin-top: auto; padding-top: .9rem; font-weight: 700; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: .4rem;
}
.path-card:hover .go { gap: .7rem; }
.path-card a.stretched { position: absolute; inset: 0; text-indent: -9999px; }

/* ---- Journey (6 steps) ---------------------------------------------*/
.journey { counter-reset: step; }
.step-card { position: relative; padding-top: 2.4rem; }
.step-card .num {
  position: absolute; top: -18px; left: 1.4rem;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  font-family: var(--font-display); box-shadow: var(--shadow-sm);
}
.step-1 .num { background: var(--sky); }
.step-2 .num { background: var(--green); }
.step-3 .num { background: var(--purple); }
.step-4 .num { background: var(--orange); }
.step-5 .num { background: var(--gold-deep); }
.step-6 .num { background: var(--green-deep); }

/* interactive puzzle (loaded in an isolated iframe) */
.section--puzzle { padding-top: clamp(2rem, 4vw, 3.25rem); padding-bottom: clamp(2rem, 4vw, 3.25rem); }
#puzzle-journey {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
}
.puzzle-frame {
  display: block; width: 100%; border: 0;
  /* JS sizes this to the inner content; this is the pre-load fallback height */
  height: 720px;
}

/* ---- Glossary tooltip ----------------------------------------------*/
.term {
  border: 0; border-bottom: 2px dotted var(--gold-deep);
  text-decoration: none; cursor: help; font-weight: 700;
  color: inherit; background: transparent; font: inherit; padding: 0;
}
.term:hover, .term:focus-visible { background: var(--gold-soft); border-radius: 4px 4px 0 0; }
.term-pop {
  position: absolute; z-index: 120; max-width: 280px;
  background: var(--green-deep); color: #fff;
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  font-size: calc(.92rem * var(--fs-scale)); font-weight: 400; line-height: 1.5;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease); pointer-events: none;
}
.term-pop.show { opacity: 1; transform: translateY(0); }
.term-pop b { color: var(--gold-soft); }

/* ---- Stats / impact ------------------------------------------------*/
.stat { text-align: center; }
.stat .big { font-family: var(--font-display); font-size: calc(3rem * var(--fs-scale)); color: var(--gold-deep); line-height: 1; }
.stat p { color: var(--ink-soft); margin: .4rem auto 0; }

/* inline figure used to lift a number inside running prose */
.figure { font-family: var(--font-display); font-weight: 700; color: var(--gold-deep); font-size: 1.12em; letter-spacing: -0.01em; }

/* ---- Mission / Vision manifesto (full-bleed statement bands) --------
   Two opposing bands: Mission grounded on deep green, Vision luminous on
   gold and cream. Oversized Fraunces statement with a glowing accent word
   and a watermark quote behind. Glows are decorative pseudo-elements. */
.manifesto { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0; text-align: center; }
.manifesto__inner { position: relative; z-index: 1; max-width: 56rem; margin-inline: auto; }
.manifesto__eyebrow {
  font-size: calc(clamp(1.3rem, 3vw, 2rem) * var(--fs-scale));
  letter-spacing: .2em; margin-bottom: 1.1rem;
}
.manifesto__statement {
  font-size: calc(clamp(2.4rem, 7vw, 5rem) * var(--fs-scale));
  line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 1.1rem;
}
.manifesto__support { max-width: 46ch; margin: 0 auto; font-size: calc(1.2rem * var(--fs-scale)); line-height: 1.6; }

/* watermark quote glyph sitting behind the statement */
.manifesto__inner::before {
  content: "\201C"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -54%); z-index: -1; pointer-events: none;
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(12rem, 30vw, 26rem);
}

/* Mission: deep green ground, white type, glowing gold accent */
.manifesto--mission { background: linear-gradient(150deg, var(--green-deep), var(--green)); }
.manifesto--mission .manifesto__statement { color: #fff; }
.manifesto--mission .manifesto__statement .accent { color: var(--gold); }
.manifesto--mission .manifesto__eyebrow { color: var(--gold-soft); }
.manifesto--mission .manifesto__support { color: rgba(255, 255, 255, .9); }
.manifesto--mission .manifesto__inner::before { color: rgba(247, 196, 19, .1); }
.manifesto--mission::before {
  content: ""; position: absolute; inset: -30% -12% auto auto;
  width: 55vw; height: 55vw; max-width: 680px; max-height: 680px;
  background: radial-gradient(circle at 30% 30%, rgba(247, 196, 19, .30), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(247, 196, 19, .12), transparent 60%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.manifesto--mission::after {
  content: ""; position: absolute; left: -60px; bottom: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 122, 18, .55), transparent 70%);
  z-index: 0; pointer-events: none;
}

/* Vision: luminous gold and cream, ink type, gold accent */
.manifesto--vision { background: linear-gradient(150deg, var(--cream-deep), var(--gold-soft)); }
.manifesto--vision .manifesto__statement { color: var(--green-deep); }
.manifesto--vision .manifesto__statement .accent { color: var(--gold-deep); }
.manifesto--vision .manifesto__eyebrow { color: var(--gold-deep); }
.manifesto--vision .manifesto__support { color: var(--ink-soft); }
.manifesto--vision .manifesto__inner::before { color: rgba(200, 148, 0, .12); }
.manifesto--vision::before {
  content: ""; position: absolute; inset: -32% auto auto -12%;
  width: 55vw; height: 55vw; max-width: 680px; max-height: 680px;
  background: radial-gradient(circle at 50% 50%, rgba(247, 196, 19, .50), transparent 62%);
  filter: blur(12px); z-index: 0; pointer-events: none;
}
.manifesto--vision::after {
  content: ""; position: absolute; right: -55px; top: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .7), transparent 70%);
  z-index: 0; pointer-events: none;
}

/* ---- Pricing / backend compare ------------------------------------*/
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid rgba(20,86,12,.08); }
.compare th { background: var(--green); color: #fff; font-family: var(--font-display); }
.compare tr:last-child td { border-bottom: 0; }
.compare .good { color: var(--green-deep); font-weight: 700; }
/* mobile: a 3-column table clips its right (Cost) column on phones, so stack each row into a card */
@media (max-width: 600px) {
  .compare { background: transparent; border-radius: 0; overflow: visible; box-shadow: none; }
  .compare thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .compare tbody, .compare tr, .compare td { display: block; }
  .compare tr { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1rem 1.1rem; margin-bottom: 1rem; }
  .compare th, .compare td { padding: 0; border-bottom: 0; }
  .compare td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--green-deep); font-size: 1.1rem; margin-bottom: .35rem; }
  .compare td:not(:first-child):not(.good) { color: var(--ink-soft); margin-bottom: .5rem; }
  .compare td.good::before { content: "Cost: "; font-weight: 600; color: var(--ink-soft); }
}

/* ---- Forms ----------------------------------------------------------*/
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--green-deep); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; font: inherit;
  /* solid sage border clears the 3:1 non-text contrast minimum (WCAG 1.4.11) */
  border: 2px solid #6E9669; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); outline: none; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .92rem; margin: .2rem 0 0; }
.req { color: var(--gold-deep); font-weight: 700; }

/* ---- Membership form: fieldsets, choice groups, consent ------------- */
/* Grouped questions use a real fieldset + legend for screen readers. */
.formset { border: 0; padding: 0; margin: 0 0 2rem; }
.formset > legend {
  font-family: var(--font-display); font-weight: 600;
  font-size: calc(1.35rem * var(--fs-scale)); color: var(--green-deep);
  padding: 0; margin: 0 0 .3rem;
}
.formset__hint { color: var(--ink-soft); margin: 0 0 1rem; }

/* Stacked checkbox / radio options. Each row is at least 44px tall so it
   is a comfortable tap target (WCAG 2.5.8). The whole row is the label. */
.choices { display: grid; gap: .15rem; }
.choices--sep .choice { border-bottom: 1px solid rgba(20, 86, 12, .08); }
.choice {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .6rem .3rem; min-height: 44px; cursor: pointer;
  font-weight: 400; color: var(--ink); line-height: 1.5;
}
.choice input {
  width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; flex: 0 0 auto;
  accent-color: var(--green);
}
.choice:hover { color: var(--green-deep); }

/* Media release legal panel and its draft flag. */
.legal-panel {
  background: var(--cream-deep); border: 1px solid rgba(20, 86, 12, .12);
  border-radius: var(--radius-md); padding: 1.2rem 1.3rem; margin: 0 0 1.2rem;
}
.legal-panel p:last-child { margin-bottom: 0; }
.legal-flag {
  display: inline-block; background: var(--gold-soft); color: var(--green-deep);
  font-weight: 700; font-size: .8rem; padding: .2rem .7rem;
  border-radius: var(--radius-pill); margin-bottom: .8rem;
}

/* A subsection revealed by a checkbox (housing register, donation). */
.subform {
  margin: 1rem 0 0; padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--green); background: var(--cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.subform[hidden] { display: none; }
.subform > :last-child { margin-bottom: 0; }

/* Inline form-level error, announced politely to screen readers. */
.form-error {
  background: #FCE9E6; border: 1px solid #A83226; color: #7A241B;
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 700; margin: 0 0 1.2rem;
}

/* ---- Article list ---------------------------------------------------*/
.post { display: grid; grid-template-columns: 180px 1fr; gap: 1.4rem; align-items: center; }
.post img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-sm); width: 100%; }
.post .meta { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.tag { display: inline-block; background: var(--green-tint); color: var(--green-deep); font-weight: 700; font-size: .78rem; padding: .2rem .7rem; border-radius: var(--radius-pill); }
@media (max-width: 600px) { .post { grid-template-columns: 1fr; } }

/* ---- Blog: index, cards, filters -----------------------------------*/
.post-cta { margin: .9rem 0 0; }
.post-cta .go { font-weight: 700; color: var(--green-deep); display: inline-flex; align-items: center; gap: .4rem; }
.post-cta .go:hover { gap: .7rem; }

.blog-grid { gap: 1.5rem; }
.post__img { display: block; overflow: hidden; border-radius: var(--radius); align-self: stretch; }
.post__img img { display: block; height: 100%; transition: transform .4s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__title { color: var(--green-deep); text-decoration: none; }
.post__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.post .go { font-weight: 700; color: var(--green-deep); display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.post:hover .go { gap: .7rem; }

/* featured story: large two-up card */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.feature__img { display: block; overflow: hidden; }
.feature__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.04); }
.feature__body { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .5rem; }
.feature__body h2 { margin: .3rem 0; }
.feature__body .btn { align-self: flex-start; margin-top: .6rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature__img { aspect-ratio: 16/9; } }

/* topic filter pills */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-pill {
  font-family: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
  background: var(--surface); color: var(--green-deep);
  border: 1px solid rgba(20, 86, 12, .18); padding: .55rem 1rem;
  border-radius: var(--radius-pill); transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.filter-pill:hover { transform: translateY(-1px); background: var(--green-tint); }
.filter-pill.is-active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---- Blog: single article ------------------------------------------*/
.article-wrap { max-width: 760px; }
.article__head { margin-bottom: 1.4rem; }
.article__head h1 { margin: .6rem 0 .4rem; }
.article__meta { font-size: .9rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.article__hero {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 1.8rem;
}
.article__body { font-size: 1.08rem; }
.article__body h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 1.8rem 0 .6rem; color: var(--green-deep); }
.article__body h3 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; color: var(--green-deep); }
.article__body p { margin: 0 0 1.1rem; }
.article__body ul, .article__body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.article__body li { margin-bottom: .55rem; }
.article__body a:not(.btn) { color: var(--green); font-weight: 700; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.6rem; }
.article-nav__link {
  display: flex; flex-direction: column; gap: .25rem; text-decoration: none;
  background: var(--surface); border: 1px solid rgba(20, 86, 12, .08);
  border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.article-nav__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-nav__link span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.article-nav__link strong { color: var(--green-deep); font-family: var(--font-display); font-weight: 600; }
.article-nav__link--next { text-align: right; }
@media (max-width: 600px) { .article-nav { grid-template-columns: 1fr; } .article-nav__link--next { text-align: left; } }

/* ---- CTA band -------------------------------------------------------*/
.cta-band {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,196,19,.4), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin-inline: auto; }

/* ---- Footer ---------------------------------------------------------*/
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.85); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--gold-soft); font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; display: block; padding: .4rem 0; overflow-wrap: break-word; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 46px; height: 46px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand strong { line-height: 1.1; letter-spacing: -.01em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.draft-flag { background: var(--gold); color: var(--green-deep); font-weight: 700; padding: .15rem .6rem; border-radius: var(--radius-pill); font-size: .78rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Housing interest registry -------------------------------------*/
.registry {
  position: relative; overflow: hidden;
  background:
    radial-gradient(58% 80% at 90% 8%, rgba(247, 196, 19, .20), transparent 62%),
    radial-gradient(52% 70% at 2% 98%, rgba(30, 122, 18, .12), transparent 60%),
    var(--cream-deep);
}
.registry__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
}
@media (max-width: 860px) { .registry__grid { grid-template-columns: 1fr; } }

.registry__intro h2 { margin-bottom: .5rem; }
.registry__intro > p { font-size: calc(1.08rem * var(--fs-scale)); color: var(--ink-soft); }

/* reassurance chips, pulled from "no cost, no commitment" */
.registry__trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: .6rem;
  padding: 0; margin: 1.3rem 0 1.7rem;
}
.registry__trust li {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); color: var(--green-deep); font-weight: 700;
  font-size: calc(.94rem * var(--fs-scale));
  padding: .5rem .95rem .5rem .7rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 86, 12, .12); box-shadow: var(--shadow-sm);
}
.registry__trust li::before {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / .72rem no-repeat;
}
.registry__note {
  margin-top: 1.3rem; font-size: calc(.9rem * var(--fs-scale));
  color: var(--ink-soft); max-width: 46ch;
}

/* elevated "what we ask" panel: white surface above the tinted section */
.registry__panel {
  position: relative; background: var(--surface);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(20, 86, 12, .07);
  overflow: hidden;
}
.registry__panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.registry__panel-eyebrow {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .16em; font-size: calc(.74rem * var(--fs-scale));
  font-weight: 700; color: var(--gold-deep); margin: .3rem 0 .35rem;
}
.registry__panel h3 { color: var(--green-deep); margin-bottom: 1.25rem; }

.registry__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .8rem; counter-reset: q;
}
.registry__list li {
  counter-increment: q;
  display: flex; align-items: center; gap: .9rem;
  background: var(--green-tint); border-radius: var(--radius);
  padding: .85rem 1.05rem; color: var(--green-deep);
  font-weight: 600; font-size: calc(1.02rem * var(--fs-scale));
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
}
.registry__list li::before {
  content: counter(q); flex: none;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  font-family: var(--font-display); font-weight: 600;
  font-size: calc(1.05rem * var(--fs-scale)); box-shadow: var(--shadow-sm);
}
.registry__list li:nth-child(4)::before { background: var(--gold-deep); }
.registry__list li:hover {
  transform: translateX(5px); background: var(--surface);
  border-color: rgba(20, 86, 12, .12); box-shadow: var(--shadow-sm);
}

/* ---- Reveal on load animation --------------------------------------*/
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s var(--ease) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
.reveal.d4 { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---- Video player (responsive 16:9 + size control) -----------------*/
.video-stage { display: flex; flex-direction: column; align-items: center; }
.video-frame {
  position: relative; width: 100%; margin-inline: auto;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid #fff; background: #0c130a;
  transition: max-width .45s var(--ease);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame[data-size="comfortable"] { max-width: 760px; }
.video-frame[data-size="large"]       { max-width: 1000px; }
.video-frame[data-size="theater"]     { max-width: 100%; border-color: #14210f; }

.video-stage[data-mode="theater"] {
  background: radial-gradient(circle at 50% 0%, #1c3014, var(--green-deep));
  border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2.5rem);
}

.video-controls { display: flex; gap: .4rem; align-items: center; margin-top: 1.2rem; flex-wrap: wrap; justify-content: center; }
.video-controls .lbl { font-weight: 700; color: var(--ink-soft); margin-right: .3rem; }
.video-stage[data-mode="theater"] .video-controls .lbl { color: rgba(255,255,255,.85); }
.video-controls button {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: .5rem 1rem; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--green-deep);
  border: 1.5px solid rgba(20,86,12,.25);
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.video-controls button:hover { background: var(--gold-soft); transform: translateY(-1px); }
.video-controls button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }

/* ---- Facebook feed embed -------------------------------------------*/
.social-grid {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.social-frame {
  background: var(--surface); padding: 12px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(20,86,12,.08);
  position: relative; overflow: hidden; line-height: 0;
}
.social-frame::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.social-frame iframe { border-radius: var(--radius); max-width: 100%; }
@media (max-width: 820px) {
  .social-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .social-grid > div:first-child p { margin-inline: auto; }
}

/* ---- Instagram feed strip -------------------------------------------
   Filled by js/instagram.js from /api/instagram-feed. Ships hidden and
   only appears when posts load, so a failed fetch leaves no gap. The
   frame reuses the .social-frame recipe (white surface, gradient top
   bar) so both embeds read as one family. */
.ig-strip {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  padding-top: clamp(1.2rem, 2.8vw, 1.8rem);
  line-height: 1.7; /* the social-frame recipe zeroes line-height for iframes */
}
.ig-strip h3 { margin-bottom: .9rem; }
.ig-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 1.5vw, .9rem);
  list-style: none; padding: 0; margin: 0;
}
.ig-post {
  position: relative; display: block;
  aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-tint);
  box-shadow: var(--shadow-sm);
}
.ig-post img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s var(--ease);
}
.ig-post::after {
  /* gold ring on hover, drawn inside so the grid never shifts */
  content: ""; position: absolute; inset: 0;
  border: 3px solid transparent; border-radius: var(--radius);
  transition: border-color .25s var(--ease);
  pointer-events: none;
}
.ig-post:hover img { transform: scale(1.04); }
.ig-post:hover::after { border-color: var(--gold); }
.ig-post:active img { transform: scale(1.0); }
.ig-post:focus-visible { outline-offset: 2px; }
.ig-post__badge {
  position: absolute; top: .55rem; right: .55rem;
  display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: var(--radius-pill);
  background: rgba(20, 42, 16, .62); color: #fff;
}
@media (max-width: 600px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ig-post img, .ig-post:hover img, .ig-post:active img { transform: none; }
}

/* a small page-intro band used on inner pages */
.page-head { background: var(--green-tint); padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.25rem, 2.5vw, 2rem); }
.page-head .crumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: .6rem; }
.page-head h1 { margin-bottom: .4rem; }
.page-head .lede { margin-bottom: 0; }
/* the first section after the page header should not double up on padding */
.page-head + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* opt-in atmospheric glow for a page-head (used on About) */
.page-head--glow { position: relative; overflow: hidden; }
.page-head--glow > .wrap { position: relative; z-index: 1; }
.page-head--glow::before {
  content: ""; position: absolute; inset: -45% -12% auto auto;
  width: 50vw; height: 50vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle at 30% 30%, rgba(247, 196, 19, .30), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(30, 122, 18, .16), transparent 60%);
  filter: blur(8px); z-index: 0; pointer-events: none;
}
.page-head--glow .eyebrow { margin-bottom: .5rem; }

/* ---- Arched doorway story cards ------------------------------------*/
.arch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.2rem); align-items: start;
}
@media (max-width: 820px) {
  .arch-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}

.arch-card { text-align: center; display: flex; flex-direction: column; align-items: center; }

.arch-card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4;
  /* a rounded doorway arch: big top radii, small base radii */
  border-radius: 50% 50% 16px 16px / 32% 32% 3% 3%;
  overflow: hidden; background: var(--green-tint);
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* thin gold doorframe line just inside the arch */
.arch-card__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(247, 196, 19, .55);
  pointer-events: none;
}
.arch-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.arch-card:hover .arch-card__media,
.arch-card:focus-within .arch-card__media { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.arch-card:hover .arch-card__media img,
.arch-card:focus-within .arch-card__media img { transform: scale(1.06); }

/* nameplate tag sitting on the threshold */
.arch-card .tag {
  position: relative; z-index: 2; margin-top: -1.05rem;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: calc(.8rem * var(--fs-scale)); padding: .35rem .9rem;
}
.arch-card h3 { margin: .9rem 0 .4rem; }
.arch-card h3 a { text-decoration: none; color: var(--green-deep); background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), color .2s var(--ease); }
.arch-card:hover h3 a { background-size: 100% 2px; }
.arch-card p { color: var(--ink-soft); max-width: 34ch; margin: 0 auto 1rem; }
.arch-card .go { margin-top: auto; font-weight: 700; color: var(--green-deep); display: inline-flex; gap: .4rem; align-items: center; }
.arch-card .go:hover { gap: .7rem; }

/* =====================================================================
   Floating accessibility widget
   Injected by js/main.js so it appears on every page. Button bottom-right
   opens a panel of tools. State lives as data-* on <html>.
   ===================================================================== */

/* ---- Floating button (FAB) -----------------------------------------*/
.a11y-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem);
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--green); color: #fff; border: 3px solid var(--gold);
  cursor: pointer; z-index: 300;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(20,86,12,.28), 0 14px 34px rgba(20,86,12,.30);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.a11y-fab:hover { transform: translateY(-3px) scale(1.04); background: var(--green-deep); }
.a11y-fab:active { transform: translateY(0) scale(.98); }
.a11y-fab svg { width: 34px; height: 34px; }
.a11y-fab .pulse {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid var(--gold); animation: a11yPulse 2.4s var(--ease) 3;
  pointer-events: none;
}
@keyframes a11yPulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* a smaller footprint on phones, so it sits clear of content in the corner */
@media (max-width: 600px) {
  .a11y-fab { width: 52px; height: 52px; }
  .a11y-fab svg { width: 28px; height: 28px; }
}

/* ---- Backdrop + panel ----------------------------------------------*/
.a11y-backdrop {
  position: fixed; inset: 0; background: rgba(20,33,15,.32);
  z-index: 305; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
  backdrop-filter: blur(2px);
}
.a11y-backdrop.open { opacity: 1; pointer-events: auto; }

.a11y-panel {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: calc(clamp(1rem, 3vw, 1.6rem) + 74px);
  width: min(380px, 92vw); max-height: min(78vh, 680px); overflow-y: auto;
  background: var(--cream); color: var(--ink);
  border: 1px solid rgba(20,86,12,.12); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 310;
  padding: 1.1rem 1.1rem 1.3rem;
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right;
  pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.a11y-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.a11y-panel__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.a11y-panel__head h2 { font-size: calc(1.4rem * var(--fs-scale)); margin: 0; color: var(--green-deep); }
.a11y-panel__head .mark { width: 34px; height: 34px; flex: none; color: var(--green); }
.a11y-panel__close {
  margin-left: auto; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1.5px solid rgba(20,86,12,.25); background: var(--surface); color: var(--green-deep);
  cursor: pointer; font-size: 1.2rem; line-height: 1; display: grid; place-items: center;
}
.a11y-panel__close:hover { background: var(--gold-soft); }
.a11y-panel__intro { font-size: calc(.92rem * var(--fs-scale)); color: var(--ink-soft); margin: 0 0 1rem; }

.a11y-group { margin-bottom: 1rem; }
.a11y-group__label {
  text-transform: uppercase; letter-spacing: .12em; font-size: calc(.72rem * var(--fs-scale));
  font-weight: 700; color: var(--gold-deep); margin: 0 0 .5rem;
}

/* ---- Tool tiles -----------------------------------------------------*/
.a11y-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.a11y-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  background: var(--surface); border: 2px solid rgba(20,86,12,.14);
  border-radius: var(--radius); padding: .7rem .75rem; cursor: pointer;
  font: inherit; color: var(--ink); text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
  position: relative; min-height: 72px;
}
.a11y-tile:hover { transform: translateY(-2px); border-color: var(--green); background: var(--green-tint); }
.a11y-tile .ti { width: 26px; height: 26px; color: var(--green-deep); flex: none; }
.a11y-tile .tl { font-weight: 700; font-size: calc(.95rem * var(--fs-scale)); line-height: 1.2; }
.a11y-tile .ts { font-size: calc(.78rem * var(--fs-scale)); color: var(--ink-soft); line-height: 1.3; }
.a11y-tile[aria-pressed="true"] {
  background: var(--green); border-color: var(--green-deep);
}
.a11y-tile[aria-pressed="true"] .tl,
.a11y-tile[aria-pressed="true"] .ts,
.a11y-tile[aria-pressed="true"] .ti { color: #fff; }
.a11y-tile[aria-pressed="true"]::after {
  content: "\2713"; position: absolute; top: .5rem; right: .6rem;
  width: 1.2rem; height: 1.2rem; background: var(--gold); color: var(--green-deep);
  border-radius: 50%; font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}
.a11y-tile.is-stepper { flex-direction: row; align-items: center; justify-content: space-between; }
.a11y-tile.is-stepper .step-btns { display: flex; gap: .3rem; }
.a11y-tile .mini {
  width: 1.9rem; height: 1.9rem; border-radius: 8px; border: 1.5px solid rgba(20,86,12,.25);
  background: var(--cream); color: var(--green-deep); font-weight: 800; cursor: pointer;
  display: grid; place-items: center; font-size: 1rem;
}
.a11y-tile .mini:hover { background: var(--gold-soft); }

/* read-aloud transport row */
.a11y-transport { display: flex; gap: .4rem; margin-top: .55rem; }
.a11y-transport button {
  flex: 1; font: inherit; font-weight: 700; cursor: pointer;
  padding: .5rem; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(20,86,12,.22); background: var(--surface); color: var(--green-deep);
  display: inline-flex; gap: .3rem; align-items: center; justify-content: center;
}
.a11y-transport button:hover { background: var(--gold-soft); }
.a11y-transport button[disabled] { opacity: .45; cursor: not-allowed; }

.a11y-reset {
  width: 100%; margin-top: .4rem; font: inherit; font-weight: 700; cursor: pointer;
  padding: .7rem; border-radius: var(--radius-pill);
  border: 2px solid var(--green); background: transparent; color: var(--green-deep);
}
.a11y-reset:hover { background: var(--green); color: #fff; }

@media (max-width: 480px) {
  .a11y-panel {
    right: 0; left: 0; bottom: 0; width: 100%; max-height: 84vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform-origin: bottom center;
  }
}

/* ---- Reading ruler --------------------------------------------------*/
.a11y-ruler {
  position: fixed; left: 0; right: 0; height: 2.4em; z-index: 290;
  pointer-events: none; display: none;
  /* soft gold tint so the line is highlighted but the text stays readable */
  background: rgba(247, 196, 19, .16);
}
html[data-ruler="on"] .a11y-ruler { display: block; }
.a11y-ruler::before, .a11y-ruler::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: rgba(200, 148, 0, .65);
}
.a11y-ruler::before { top: 0; } .a11y-ruler::after { bottom: 0; }
/* the clear "window" the reader looks through */
.a11y-ruler .slit { position: absolute; inset: 0; background: transparent; }

/* ---- Read-aloud highlight ------------------------------------------*/
.a11y-reading {
  background: var(--gold-soft) !important; color: var(--ink) !important;
  box-shadow: 0 0 0 4px var(--gold-soft); border-radius: 4px;
}
html[data-clicktoread="on"] #main p,
html[data-clicktoread="on"] #main li,
html[data-clicktoread="on"] #main h1,
html[data-clicktoread="on"] #main h2,
html[data-clicktoread="on"] #main h3 { cursor: pointer; }
html[data-clicktoread="on"] #main p:hover,
html[data-clicktoread="on"] #main li:hover,
html[data-clicktoread="on"] #main h2:hover,
html[data-clicktoread="on"] #main h3:hover { outline: 2px dashed var(--gold-deep); outline-offset: 3px; }

/* =====================================================================
   New accessibility MODES (driven by data-* on <html>)
   ===================================================================== */

/* highlight links */
html[data-links="on"] a:not(.btn):not(.brand):not(.go):not(.skip-link) {
  background: var(--gold-soft); color: var(--green-deep) !important;
  text-decoration: underline; text-decoration-thickness: 2px;
  font-weight: 700; padding: 0 .15em; border-radius: 4px;
}

/* bigger cursor */
html[data-cursor="big"], html[data-cursor="big"] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 2 L6 40 L16 30 L23 45 L29 42 L22 28 L36 28 Z' fill='white' stroke='black' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
}

/* pause animations */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }

/* adjust spacing */
html[data-spacing="loose"] body { line-height: 2; letter-spacing: .03em; word-spacing: .12em; }
html[data-spacing="loose"] p, html[data-spacing="loose"] li { margin-bottom: 1.5em; }
html[data-spacing="loose"] h1, html[data-spacing="loose"] h2, html[data-spacing="loose"] h3 { line-height: 1.25; }

/* ---- Easy Read indicator (text swap handled in JS) -----------------*/
html[data-easyread] .term { border-bottom: 0; background: transparent; font-weight: inherit; }
html[data-easyread] [data-simple] { }

/* ---- Simplify design (reader mode) ---------------------------------*/
html[data-simplified] body { background: #fff; }
html[data-simplified] .hero::before,
html[data-simplified] .cta-band::after,
html[data-simplified] .hero-badge,
html[data-simplified] .path-card .ico,
html[data-simplified] .a11y-tile .ti,
html[data-simplified] .stat .big { /* keep stats */ }
html[data-simplified] .hero::before,
html[data-simplified] .cta-band::after { display: none !important; }
/* flatten surfaces */
html[data-simplified] .card,
html[data-simplified] .arch-card__media,
html[data-simplified] .hero-art,
html[data-simplified] .social-frame,
html[data-simplified] .video-frame,
html[data-simplified] .cta-band,
html[data-simplified] .compare {
  box-shadow: none !important; border: 1px solid rgba(20,86,12,.3) !important;
  border-radius: var(--radius-sm) !important; background: #fff !important;
}
html[data-simplified] .cta-band { color: var(--ink) !important; }
html[data-simplified] .cta-band h2, html[data-simplified] .cta-band p { color: var(--ink) !important; }
/* flatten the mission/vision manifesto to plain high-contrast panels */
html[data-simplified] .manifesto::before,
html[data-simplified] .manifesto::after,
html[data-simplified] .manifesto__inner::before,
html[data-simplified] .page-head--glow::before { display: none !important; }
html[data-simplified] .manifesto {
  background: #fff !important; padding: clamp(1.5rem, 4vw, 2.5rem) 0 !important;
  border-top: 1px solid rgba(20,86,12,.3); border-bottom: 1px solid rgba(20,86,12,.3);
}
html[data-simplified] .manifesto__statement,
html[data-simplified] .manifesto__support { color: var(--ink) !important; }
html[data-simplified] .manifesto__statement .accent { color: var(--green-deep) !important; }
html[data-simplified] .manifesto__eyebrow { color: var(--green-deep) !important; }
/* flatten doorway arch to a plain rectangle and shrink decorative photos */
html[data-simplified] .arch-card__media { aspect-ratio: 16/10; }
html[data-simplified] .arch-card__media::after { display: none; }
/* hide purely decorative imagery and emoji icons */
html[data-simplified] .hero-art,
html[data-simplified] .path-card .ico,
html[data-simplified] section[class*="section"] .ico { display: none !important; }
html[data-simplified] .section--tint,
html[data-simplified] .section--cream { background: #fff !important; }
/* single column everything */
html[data-simplified] .card-grid,
html[data-simplified] .arch-grid,
html[data-simplified] .hero-grid,
html[data-simplified] .social-grid,
html[data-simplified] .footer-grid,
html[data-simplified] .cols-2,
html[data-simplified] .cols-3,
html[data-simplified] .cols-4 { grid-template-columns: 1fr !important; }
/* the Instagram grid keeps two columns: one giant photo per row reads
   worse, not better */
html[data-simplified] .ig-grid { grid-template-columns: repeat(2, 1fr) !important; }
html[data-simplified] .ig-post { box-shadow: none !important; border-radius: var(--radius-sm) !important; }
html[data-simplified] .wrap[style] { display: block !important; }
/* calm motion */
html[data-simplified] *, html[data-simplified] *::before, html[data-simplified] *::after {
  animation: none !important; transition: none !important;
}
html[data-simplified] .reveal { opacity: 1 !important; transform: none !important; }

/* =====================================================================
   Blog: rich content blocks + reading tools
   A fixed vocabulary of accessible components rendered by js/blog.js.
   All built from brand tokens and layered, tinted shadows.
   ===================================================================== */

/* ---- Draft preview banner ------------------------------------------*/
.preview-banner {
  display: flex; align-items: center; gap: .6rem;
  background: var(--gold-soft); color: var(--green-deep);
  border: 2px dashed var(--gold-deep); border-radius: var(--radius);
  padding: .8rem 1.1rem; margin-bottom: 1.4rem;
  font-size: calc(.98rem * var(--fs-scale));
}
.preview-banner strong { font-family: var(--font-display); }

/* ---- Full / Easy Read switcher -------------------------------------*/
.reading-mode {
  display: inline-flex; gap: .25rem; margin-top: 1rem;
  background: var(--cream-deep); padding: .3rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 86, 12, .12);
}
.reading-mode__btn {
  font: inherit; font-weight: 700; cursor: pointer;
  color: var(--green-deep); background: transparent; border: 0;
  padding: .5rem 1.1rem; border-radius: var(--radius-pill);
  font-size: calc(.95rem * var(--fs-scale));
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.reading-mode__btn:hover { background: var(--gold-soft); }
.reading-mode__btn.is-active {
  background: var(--green); color: #fff; box-shadow: var(--shadow-sm);
}

/* the plain-language body reads a little larger and roomier */
.article__body--easy { font-size: calc(1.18rem * var(--fs-scale)); line-height: 1.85; }
.article__body--easy .easy-lede { color: var(--ink); max-width: 60ch; }
.article__body:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 6px; border-radius: var(--radius); }

/* ---- Block shared spacing ------------------------------------------*/
.post-block { margin: 1.8rem 0; }
.post-block__kicker {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .14em; font-weight: 700; color: var(--gold-deep);
  font-size: calc(.78rem * var(--fs-scale)); margin: 0 0 .7rem;
}
.post-block__title { font-family: var(--font-display); font-weight: 600; color: var(--green-deep); margin: 0 0 .35rem; font-size: 1.1rem; }

/* ---- Nutshell / key takeaways --------------------------------------*/
.post-block--nutshell {
  background: var(--green-tint); border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 86, 12, .10);
  position: relative; overflow: hidden;
}
.post-block--nutshell::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6px;
  background: linear-gradient(var(--green), var(--gold));
}
.post-block--nutshell .post-block__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.post-block--nutshell .post-block__list li {
  position: relative; padding-left: 2rem; color: var(--ink);
}
.post-block--nutshell .post-block__list li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / .8rem no-repeat;
}

/* ---- Callout (tip / note / important) ------------------------------*/
.post-block--callout {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.5rem); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 86, 12, .08);
  border-left: 5px solid var(--green);
}
.post-block--callout .post-block__inner > :last-child { margin-bottom: 0; }
.post-block__badge {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-tint);
  background-repeat: no-repeat; background-position: center; background-size: 1.2rem;
}
.post-block--tip { border-left-color: var(--green); }
.post-block--tip .post-block__badge {
  background-color: var(--green-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314560C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.1h6c0-.8.4-1.6 1-2.1A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}
.post-block--note { border-left-color: var(--sky); }
.post-block--note .post-block__badge {
  background-color: #DEEFF9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F92C7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='11' x2='12' y2='16'/%3E%3Cline x1='12' y1='8' x2='12' y2='8'/%3E%3C/svg%3E");
}
.post-block--important { border-left-color: var(--gold-deep); }
.post-block--important .post-block__badge {
  background-color: var(--gold-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23856200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 2 21h20L12 2z'/%3E%3Cline x1='12' y1='9' x2='12' y2='14'/%3E%3Cline x1='12' y1='17.5' x2='12' y2='17.5'/%3E%3C/svg%3E");
}

/* ---- Pull-quote + member quote -------------------------------------*/
.post-block--pullquote, .post-block--member {
  margin: 2.2rem 0; padding: 0 0 0 clamp(1.2rem, 3vw, 2rem);
  border-left: 4px solid var(--gold);
}
.post-block--pullquote blockquote, .post-block--member blockquote { margin: 0; }
.post-block--pullquote p, .post-block--member p {
  font-family: var(--font-display); font-style: italic;
  font-size: calc(clamp(1.3rem, 3vw, 1.7rem) * var(--fs-scale));
  line-height: 1.35; color: var(--green-deep); margin: 0 0 .5rem;
}
.post-block--pullquote figcaption, .post-block--member figcaption {
  font-size: calc(.92rem * var(--fs-scale)); color: var(--ink-soft); font-weight: 700;
}
.post-block--member {
  border-left: 0; background: var(--cream-deep);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  position: relative; box-shadow: var(--shadow-sm);
}
.post-block--member::before {
  content: "\201C"; position: absolute; top: .1em; left: .35em;
  font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: var(--gold); opacity: .5;
}
.post-block--member blockquote { position: relative; }
.post-block--member .post-block__who { color: var(--green-deep); }

/* ---- Stat highlight -------------------------------------------------*/
.post-block--stat {
  text-align: center; background: linear-gradient(150deg, var(--green-deep), var(--green));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-md);
}
.post-block--stat .post-block__value {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: calc(clamp(2.8rem, 8vw, 4.5rem) * var(--fs-scale));
  line-height: 1; color: var(--gold); letter-spacing: -0.02em;
}
.post-block--stat .post-block__label {
  display: block; margin-top: .5rem; max-width: 30ch; margin-inline: auto;
  color: rgba(255, 255, 255, .92); font-size: calc(1.05rem * var(--fs-scale));
}

/* ---- Checklist ------------------------------------------------------*/
.post-block--checklist .post-block__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.post-block--checklist li {
  display: flex; align-items: flex-start; gap: .75rem;
  background: var(--surface); border: 1px solid rgba(20, 86, 12, .10);
  border-radius: var(--radius); padding: .7rem .95rem; box-shadow: var(--shadow-sm);
}
.post-block__check {
  flex: none; margin-top: .12em; width: 1.4rem; height: 1.4rem; border-radius: 7px;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2314560C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center / .9rem no-repeat;
}

/* ---- Steps (numbered cards) ----------------------------------------*/
.post-block--steps .post-steps { list-style: none; margin: 0; padding: 0; counter-reset: pstep; display: grid; gap: 1rem; }
.post-steps .post-step {
  counter-increment: pstep; position: relative;
  background: var(--surface); border: 1px solid rgba(20, 86, 12, .08);
  border-radius: var(--radius-lg); padding: 1.4rem 1.4rem 1.1rem 4.4rem;
  box-shadow: var(--shadow-sm);
}
.post-steps .post-step::before {
  content: counter(pstep); position: absolute; left: 1.1rem; top: 1.2rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem; box-shadow: var(--shadow-sm);
}
.post-steps .post-step h3 { margin: 0 0 .3rem; }
.post-steps .post-step > :last-child { margin-bottom: 0; }

/* ---- Figure ---------------------------------------------------------*/
.post-block--figure { margin: 2rem 0; }
.post-block--figure img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  border: 5px solid #fff;
}
.post-block--figure figcaption {
  margin-top: .7rem; font-size: calc(.92rem * var(--fs-scale));
  color: var(--ink-soft); text-align: center;
}

/* ---- Accordion / FAQ ------------------------------------------------*/
.post-block--accordion { display: grid; gap: .7rem; }
.post-faq {
  background: var(--surface); border: 1px solid rgba(20, 86, 12, .10);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.post-faq summary {
  cursor: pointer; list-style: none; padding: 1rem 1.2rem;
  font-family: var(--font-display); font-weight: 600; color: var(--green-deep);
  display: flex; align-items: center; gap: .8rem;
  font-size: calc(1.08rem * var(--fs-scale));
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::before {
  content: ""; flex: none; width: 1.3rem; height: 1.3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A12' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.post-faq[open] summary::before { transform: rotate(45deg); }
.post-faq summary:hover { background: var(--green-tint); }
.post-faq__body { padding: 0 1.2rem 1.1rem; }
.post-faq__body > :last-child { margin-bottom: 0; }

/* ---- Table of contents ---------------------------------------------*/
.post-toc {
  background: var(--cream-deep); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 0 0 1.8rem;
  border: 1px solid rgba(20, 86, 12, .08);
}
.post-toc__title {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .14em; font-weight: 700; color: var(--gold-deep);
  font-size: calc(.74rem * var(--fs-scale)); margin: 0 0 .5rem;
}
.post-toc ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .3rem; }
.post-toc a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.post-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Reading progress bar ------------------------------------------*/
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 250;
  background: rgba(20, 86, 12, .08); pointer-events: none;
}
.read-progress__fill {
  display: block; height: 100%; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--gold));
}
html[data-motion="off"] .read-progress { display: none !important; }

/* ---- Back to top ----------------------------------------------------*/
.back-to-top {
  position: fixed; left: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 280; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700;
  padding: .6rem 1rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-deep); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; transform: none; }
}

/* read-time chip sits inside the article meta line, not uppercased */
.article__meta .read-time { text-transform: none; letter-spacing: 0; }

/* ---- Simplify-design overrides for the new blocks ------------------*/
html[data-simplified] .post-block--stat,
html[data-simplified] .post-block--member,
html[data-simplified] .post-block--nutshell {
  background: #fff !important; color: var(--ink) !important;
  box-shadow: none !important; border: 1px solid rgba(20, 86, 12, .3) !important;
}
html[data-simplified] .post-block--stat .post-block__value { color: var(--green-deep) !important; }
html[data-simplified] .post-block--stat .post-block__label { color: var(--ink) !important; }
html[data-simplified] .read-progress { display: none !important; }
html[data-simplified] .post-block,
html[data-simplified] .post-faq,
html[data-simplified] .post-steps .post-step,
html[data-simplified] .post-block--checklist li { box-shadow: none !important; }
