/* ============================================================
   Dyslexia Institute — main.css  (v2)
   Editorial nonprofit style: square corners, hairline accents,
   collage photo compositions, gradient washes, flat icons.
   Dyslexia-friendly type: Lexend + Atkinson Hyperlegible.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --green: #57b94d;
  --green-dark: #058249;
  --green-deep: #03613a;
  --green-ink: #10331c;         /* very dark green for overlays */
  --green-tint: #eaf4e8;
  --green-tint-2: #d3ecd0;
  --hairline: #a8d5a2;
  --ink: #21211d;
  --ink-soft: #4a4a44;
  --paper: #faf9f4;
  --white: #ffffff;
  --amber: #f2b705;
  --line: #e5e3da;
  --shadow: 0 14px 34px -18px rgba(33, 33, 29, .3);
  --font-display: "Lexend", "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --step-0: clamp(1rem, .95rem + .25vw, 1.0625rem);
  --step-1: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.15rem + .9vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
}

/* ---------- 2. 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: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
}
h1 { font-size: var(--step-4); font-weight: 500; }
h2 { font-size: var(--step-3); font-weight: 500; }
h3 { font-size: var(--step-1); font-weight: 600; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); position: relative; }
.section--tint { background: linear-gradient(160deg, #f2f8f0 0%, var(--paper) 45%, #eef6ec 100%); }
.section--dark { background: var(--green-ink); color: #eef3ea; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.center { text-align: center; }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 52ch; font-weight: 400; }
.center .lead { margin-inline: auto; }

/* Angled brand pattern layer — oversized + rotated so it covers any
   section size without cropping. Add .has-pattern to any positioned,
   overflow-hidden block. */
.has-pattern { overflow: hidden; }
.has-pattern > .pattern-layer,
.has-pattern::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/brand/pattern-brand.png") center/cover no-repeat;
}
.has-pattern > * { position: relative; z-index: 1; }

/* full-width photo section with dark overlay */
.section--photo {
  background-size: cover; background-position: center;
  color: #eef3ea; isolation: isolate; overflow: hidden;
}
.section--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: rgba(13, 36, 20, .84);
}
.section--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/brand/pattern-brand.png") center/cover no-repeat; opacity: .18;
}
.section--photo h2, .section--photo h3 { color: #fff; }
.section--photo .lead, .section--photo p { color: #dcead8; }

/* gradient wash + watermark decorations */
.section--wash { background:
  radial-gradient(900px 420px at 88% 0%, rgba(87, 185, 77, .12), transparent 70%),
  radial-gradient(700px 420px at 0% 100%, rgba(87, 185, 77, .10), transparent 70%),
  var(--paper);
}
.section--watermark::after {
  content: ""; position: absolute; left: -110px; bottom: -90px;
  width: 420px; height: 420px; z-index: 0; pointer-events: none;
  background: url("../img/brand/emblem.png") center/contain no-repeat;
  opacity: .05;
}
.section--watermark .wrap { position: relative; z-index: 1; }

/* thin vertical hairline running down a section's left edge */
.section--lined .wrap { position: relative; }
.section--lined .wrap::before {
  content: ""; position: absolute; left: clamp(.2rem, 1.5vw, 1rem); top: -2.5rem; bottom: -2.5rem;
  width: 1px; background: linear-gradient(var(--hairline), transparent);
}
@media (max-width: 720px) { .section--lined .wrap::before { display: none; } }

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 3000;
  background: var(--green-dark); color: #fff; padding: .7rem 1.2rem;
  font-family: var(--font-display);
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }

/* ---------- 3. Accents ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  color: var(--green-dark); margin-bottom: .9rem;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px;
}
.site-header .logo img { height: 38px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; align-items: center; }
.site-nav a, .site-nav button.nav-top {
  font-family: var(--font-display); font-weight: 500; font-size: .85rem;
  color: var(--ink); text-decoration: none; padding: .55rem .65rem;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
}
.site-nav a:hover, .site-nav button.nav-top:hover,
.site-nav a[aria-current="page"] { color: var(--green-dark); }
.nav-top .caret { width: .5em; height: .5em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }

/* --- Mega menu (super nav) --- */
.meganav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 44px -24px rgba(33, 33, 29, .35);
  display: none;
}
.site-nav.mega-open .meganav { display: block; }
@media (hover: hover) and (min-width: 941px) {
  .site-nav:hover .meganav, .site-nav:focus-within .meganav { display: block; }
}
.meganav__grid {
  display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr;
  gap: clamp(1.2rem, 3vw, 2.6rem); padding-block: 2rem 2.2rem;
}
.meganav__col h4 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--green-dark); margin-bottom: .8rem; font-weight: 600;
}
.meganav__col a {
  display: block; padding: .34rem 0; font-family: var(--font-display);
  font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.meganav__col a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--green); }
.meganav__callout {
  background: var(--green-tint); padding: 1.1rem 1.1rem 1.3rem;
  border: 1px solid var(--green-tint-2);
}
.meganav__callout img { aspect-ratio: 16/7; object-fit: cover; width: 100%; margin-bottom: .8rem; }
.meganav__callout h4 { font-size: 1rem; margin-bottom: .3rem; }
.meganav__callout p { font-size: .85rem; color: var(--ink-soft); margin-bottom: .8rem; font-family: var(--font-body); }
.meganav__callout .btn { font-size: .82rem; padding: .55rem 1rem; }

.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  padding: .7rem 1.4rem; text-decoration: none; border-radius: 0;
  border: 1px solid transparent; cursor: pointer; font-size: .9rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--green-dark); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { border-color: var(--green-dark); color: var(--green-dark); background: transparent; }
.btn--ghost:hover { background: var(--green-tint); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--green-tint); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { filter: brightness(1.05); }
.site-header .btn { padding: .55rem 1.05rem; font-size: .85rem; border-radius: 0; }
.site-header .btn--primary { background: var(--green-dark); }

/* underlined text link (editorial style) */
.link-underline {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--ink); text-decoration: none; padding-bottom: .35rem;
  border-bottom: 1.5px solid var(--green); display: inline-block;
}
.link-underline:hover { color: var(--green-dark); border-bottom-color: var(--green-dark); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--ink);
  padding: .45rem .6rem; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 64px 0 0 0; background: var(--white);
    padding: 1.2rem; overflow: auto; display: none;
  }
  .site-nav.open { display: block; }
  .nav-top-list { display: none; }             /* groups shown via stacked meganav */
  .meganav { display: block; position: static; box-shadow: none; border: 0; }
  .meganav__grid { grid-template-columns: 1fr; gap: 1.4rem; padding-block: .5rem 2rem; }
  .meganav__col a { font-size: 1.02rem; padding: .5rem 0; }
  .site-header__cta { display: none; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(72vh, 660px); display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(13, 36, 20, .78), rgba(13, 36, 20, .78));
}
.hero::after {
  content: ""; position: absolute; right: 4vw; bottom: 8%; width: 300px; height: 300px;
  background: url("../img/brand/emblem-pattern.png") center/contain no-repeat;
  opacity: .14; z-index: -1; pointer-events: none;
}
.hero .wrap { width: 100%; }
.hero__content { max-width: 620px; padding-block: 4.5rem; }
.hero h1 { color: #fff; margin-bottom: .4em; text-wrap: balance; font-weight: 500; }
.hero .lead { color: #d9e8d4; }
.hero__actions { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.6rem; align-items: center; }
.hero .hero__actions .link-underline,
.section--photo .hero__actions .link-underline { color: #fff; border-bottom-color: var(--green); }
.hero .hero__actions .link-underline:hover,
.section--photo .hero__actions .link-underline:hover { color: var(--green-tint-2); }
.hero--page { min-height: 300px; }
.hero--page .hero__content { padding-block: 3.2rem; }

/* ---------- 5b. Floating image-grid hero (homepage) ---------- */
.hero-grid {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 92% 0%, rgba(87, 185, 77, .14), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, rgba(87, 185, 77, .1), transparent 70%),
    var(--paper);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-grid__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-grid__content { max-width: 540px; }
.float-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  height: min(640px, 74vh); align-items: start;
}
.float-col { display: flex; flex-direction: column; gap: 1rem; }
.float-col img {
  width: 100%; object-fit: cover; aspect-ratio: 3/4;
  border: 1px solid var(--line); box-shadow: 0 10px 24px -12px rgba(33, 33, 29, .35);
}
.float-col--2 img { aspect-ratio: 1/1; }
.float-col--1 { animation: floatA 9s ease-in-out infinite alternate; }
.float-col--2 { animation: floatB 11s ease-in-out infinite alternate; }
.float-col--3 { animation: floatC 10s ease-in-out infinite alternate; }
@keyframes floatA { from { transform: translateY(56px); } to { transform: translateY(30px); } }
@keyframes floatB { from { transform: translateY(-34px); } to { transform: translateY(-6px); } }
@keyframes floatC { from { transform: translateY(14px);  } to { transform: translateY(44px); } }
@media (prefers-reduced-motion: reduce) {
  .float-col--1 { animation: none; transform: translateY(48px); }
  .float-col--2 { animation: none; transform: translateY(-24px); }
  .float-col--3 { animation: none; transform: translateY(20px); }
}
@media (max-width: 940px) {
  .hero-grid__inner { grid-template-columns: 1fr; }
  .float-grid { height: auto; max-height: 480px; overflow: hidden; }
}

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .3em;
  text-transform: uppercase; color: #bfe6ba; text-align: center;
}
.scroll-cue::before { content: "▾"; display: block; font-size: .9rem; margin-bottom: .15rem; }

/* ---------- 6. Cards & grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--white); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__body h3 a { color: inherit; text-decoration: none; }
.card__body h3 a:hover { color: var(--green-dark); }
.card__meta { font-family: var(--font-display); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-dark); font-weight: 600; }
/* color band behind card titles */
.card__body h3 {
  background: var(--green-tint); margin: .2rem -1.5rem .55rem;
  padding: .65rem 1.5rem; border-left: 4px solid var(--green);
}
.card__more {
  margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  text-decoration: none; color: var(--ink); align-self: flex-start;
  padding-bottom: .3rem; border-bottom: 1.5px solid var(--green);
}
.card__more:hover { color: var(--green-dark); }
.card__more::after { content: " →"; }

/* tiles — flat icon, square, hairline border */
.tile {
  background: var(--white); border: 1px solid var(--line);
  padding: 1.6rem 1.5rem; position: relative;
}
.tile__icon { color: var(--green-dark); margin-bottom: .9rem; }
.tile__icon svg { width: 30px; height: 30px; }

/* stats */
.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--white); padding: 1.6rem 1.4rem; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); color: var(--green-dark); line-height: 1; }
.stat__num::after { content: ""; display: block; width: 26px; height: 2px; background: var(--green); margin-top: .55rem; }
.stat__label { display: block; color: var(--ink-soft); margin-top: .6rem; font-size: .95rem; }
.stat__src { display: block; font-size: .78rem; color: #84847a; margin-top: .5rem; }

/* split feature */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.split__img img { width: 100%; object-fit: cover; }

/* collage composition: photo + offset color block + pattern piece */
.collage { position: relative; padding: 1.6rem 1.6rem 0 0; }
.collage::before {
  content: ""; position: absolute; top: 0; right: 0; width: 62%; height: 78%;
  background: var(--green-tint-2); z-index: 0;
}
.collage::after {
  content: ""; position: absolute; right: -18px; bottom: -26px; width: 120px; height: 120px;
  background: url("../img/brand/emblem-pattern.png") center/contain no-repeat;
  opacity: .55; z-index: 2; pointer-events: none;
}
.collage img { position: relative; z-index: 1; }
.collage .accent-chip {
  position: absolute; left: -16px; bottom: 14%; width: 86px; height: 86px;
  background: var(--amber); z-index: 2;
}
.collage--green .accent-chip { background: var(--green-dark); }

/* decorative hairline cross (used sparingly) */
.deco-line-v { position: absolute; width: 1px; background: var(--hairline); top: 0; bottom: 0; }
.deco-line-h { position: absolute; height: 1px; background: var(--hairline); left: 0; right: 0; }

/* ---------- 7. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
table.data caption { text-align: left; font-family: var(--font-display); font-weight: 600; padding: 1rem 1.2rem; font-size: 1rem; }
table.data th, table.data td { padding: .8rem 1.2rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--green-tint); font-family: var(--font-display); border-top: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
table.data tbody tr:nth-child(even) { background: #fbfaf6; }
.yes { color: var(--green-dark); font-weight: 700; }

/* ---------- 8. Forms ---------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-family: var(--font-display); font-weight: 500; font-size: .9rem; display: block; margin-bottom: .35rem; }
.required::after { content: " *"; color: #b3261e; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #c2c0b5;
  font: inherit; background: #fff; color: var(--ink); border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--green-dark); outline: 2px solid var(--green-tint-2); }
fieldset { border: 1px solid var(--line); padding: 1rem 1.2rem; margin: 0 0 1rem; }
legend { font-family: var(--font-display); font-weight: 600; padding-inline: .4rem; }
.checks { display: grid; gap: .5rem; }
.checks label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-family: var(--font-body); }
.checks input { margin-top: .3rem; }
.form-note { font-size: .88rem; color: var(--ink-soft); }
.form-status { font-weight: 700; padding: 1rem; display: none; }
.form-status.ok { display: block; background: var(--green-tint); color: var(--green-deep); }
.form-status.err { display: block; background: #fdecea; color: #b3261e; }

/* ---------- 9. FAQ / details ---------- */
details.faq { background: #fff; border: 1px solid var(--line); margin-bottom: -1px; }
details.faq summary {
  cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.3rem; font-family: var(--font-display);
  font-weight: 600; font-size: 1rem; list-style: none; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--green-dark); font-weight: 400;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq__body { padding: 0 1.3rem 1.2rem; }

/* ---------- 10. Timeline (history) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--hairline); }
.timeline li { position: relative; padding: 0 0 1.6rem 2.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 13px; height: 13px;
  background: var(--green); border: 3px solid var(--paper);
}
.timeline .year { font-family: var(--font-display); font-weight: 700; color: var(--green-dark); display: block; }

/* ---------- 11. Quote / story ---------- */
.pullquote {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green);
  padding: 1.6rem 1.8rem; margin: 0;
}
.pullquote p { font-size: var(--step-1); font-style: italic; color: var(--ink-soft); }
.pullquote footer { font-family: var(--font-display); font-weight: 600; color: var(--green-dark); font-size: .9rem; }

/* ---------- 12. Footer ---------- */
.site-footer { background: #191914; color: #d8d7cd; font-size: .93rem; }
.site-footer a { color: #eceade; }
.site-footer a:hover { color: var(--green); }
.site-footer__grid {
  display: grid; gap: 2.2rem; padding-block: 3.2rem;
  grid-template-columns: minmax(260px, 400px) 1fr auto minmax(280px, 330px);
}
.site-footer__grid > div:nth-child(1) { grid-column: 1; }
.site-footer__grid > div:nth-child(2) { grid-column: 3; }   /* Learn More → right */
.site-footer__grid > div:nth-child(3) { grid-column: 4; }   /* Newsletter → right edge */
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > div:nth-child(1) { grid-column: 1 / -1; }
  .site-footer__grid > div:nth-child(2) { grid-column: 1; }
  .site-footer__grid > div:nth-child(3) { grid-column: 2; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__grid > div { grid-column: 1 !important; }
}
.footer-news form { display: grid; gap: .55rem; }
.footer-news__row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.footer-news input {
  width: 100%; padding: .65rem .8rem; border: 1px solid #4a4a42; background: #23231d;
  color: #f2f1ea; font: inherit; font-size: .9rem; border-radius: 0;
}
.footer-news input::placeholder { color: #94948a; }
.footer-news input:focus { border-color: var(--green); outline: 2px solid rgba(87,185,77,.3); }
.site-footer h4 { color: #fff; text-transform: uppercase; font-size: .78rem; letter-spacing: .16em; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .logo img { height: 40px; margin-bottom: 1rem; }
.footer-news button { margin-top: .6rem; width: 100%; }
.site-footer__legal {
  border-top: 1px solid #33332c; padding-block: 1.2rem; display: flex; flex-wrap: wrap;
  gap: .8rem 1.6rem; align-items: center; justify-content: space-between; font-size: .82rem;
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-pattern { height: 110px; position: relative; overflow: hidden; }
.footer-pattern::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/brand/pattern-brand.png") center/cover no-repeat;
}

/* ---------- 13. Breadcrumbs ---------- */
.breadcrumbs { font-size: .8rem; margin-bottom: 1rem; color: #cfe3ca; font-family: var(--font-display); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; opacity: .7; }
.breadcrumbs a { color: #fff; }

/* ---------- 14. Prose pages ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6rem; }
.prose table.data { min-width: 0; }

/* ---------- 15. Cookie banner ---------- */
.cookie-banner {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 2000; max-width: 1100px; margin-inline: auto;
  background: var(--white); box-shadow: 0 18px 50px rgba(0,0,0,.3);
  border: 1px solid var(--line); border-top: 3px solid var(--green-dark);
  padding: 1.2rem 1.5rem; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner__row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.cookie-banner__text { flex: 1 1 420px; min-width: 280px; }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: .25rem; }
.cookie-banner p { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: flex-end; flex: 0 1 auto; }
.cookie-banner__actions .btn { padding: .55rem 1.1rem; font-size: .85rem; white-space: nowrap; }
.cookie-prefs { display: none; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cookie-prefs.show { display: block; }
.cookie-prefs .checks label { font-size: .9rem; }

/* ---------- 16. Newsletter popup ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(13, 26, 15, .62); z-index: 2100;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white); max-width: 520px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; position: relative;
}
.modal__header { background: var(--green-ink); color: #fff; padding: 1.6rem 1.8rem 1.3rem; position: relative; overflow: hidden; }
.modal__header { overflow: hidden; }
.modal__header::after {
  content: ""; position: absolute; inset: 0;
  background: url("../img/brand/pattern-brand.png") center/cover no-repeat;
}
.modal__header > * { position: relative; z-index: 1; }
.modal__header h2 { color: #fff; font-size: 1.4rem; margin: 0; }
.modal__body { padding: 1.6rem 1.8rem 1.8rem; }
.modal__close {
  position: absolute; top: .8rem; right: .8rem; z-index: 5; background: rgba(255,255,255,.15);
  border: 0; color: #fff; width: 38px; height: 38px; font-size: 1.3rem; cursor: pointer;
}
.modal__close:hover { background: rgba(255,255,255,.3); }

/* ---------- 17. Accessibility toolbar ---------- */
.a11y-fab {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 2200;
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid #fff;
  background: var(--green-dark); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.a11y-fab:hover { background: var(--green-deep); }
.a11y-fab svg { width: 32px; height: 32px; }
.a11y-panel {
  position: fixed; left: 1.1rem; bottom: 5.6rem; z-index: 2200; width: 320px; max-width: calc(100vw - 2rem);
  background: var(--white); box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 1px solid var(--line); display: none; max-height: min(72vh, 640px); flex-direction: column;
}
.a11y-panel.show { display: flex; }
.a11y-panel__head {
  background: var(--green-dark); color: #fff; padding: .9rem 1.1rem;
  font-family: var(--font-display); font-weight: 600; display: flex; justify-content: space-between; align-items: center;
}
.a11y-panel__head button { background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.a11y-panel__body { padding: .9rem; overflow: auto; }
.a11y-tools { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-tool {
  border: 1px solid var(--line); background: #fff;
  padding: .7rem .5rem .6rem; cursor: pointer; text-align: center; font-family: var(--font-display);
  font-size: .76rem; font-weight: 500; color: var(--ink); display: grid; gap: .3rem; justify-items: center;
}
.a11y-tool svg { width: 24px; height: 24px; color: var(--green-dark); }
.a11y-tool:hover { border-color: var(--green); background: var(--green-tint); }
.a11y-tool[aria-pressed="true"] { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.a11y-tool[aria-pressed="true"] svg { color: #fff; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .7rem; }
.a11y-row .lbl { font-family: var(--font-display); font-weight: 500; font-size: .85rem; }
.a11y-row .btn-sm {
  border: 1px solid var(--line); background: #fff; width: 34px; height: 34px;
  font-weight: 700; cursor: pointer; font-size: 1rem;
}
.a11y-row .btn-sm:hover { background: var(--green-tint); border-color: var(--green); }
.a11y-reset { width: 100%; margin-top: .8rem; }

/* toolbar effects */
body.a11y-dysfont, body.a11y-dysfont * { font-family: "OpenDyslexic", "Comic Sans MS", var(--font-body) !important; }
body.a11y-bigtext { font-size: calc(var(--step-0) * var(--a11y-scale, 1.25)); }
body.a11y-spacing p, body.a11y-spacing li { line-height: 2.1 !important; letter-spacing: .06em; word-spacing: .16em; }
body.a11y-simplify .hero::before { background: rgba(13, 36, 20, .94); }
body.a11y-simplify img:not(.logo img):not(.keep-img),
body.a11y-simplify .hero__bg, body.a11y-simplify .card__img,
body.a11y-simplify .split__img, body.a11y-simplify .footer-pattern,
body.a11y-simplify .collage::before, body.a11y-simplify .collage::after,
body.a11y-simplify .accent-chip, body.a11y-simplify aside { display: none !important; }
body.a11y-simplify .section--photo::before { background: rgba(13, 36, 20, .96); }
body.a11y-simplify main { max-width: 800px; margin-inline: auto; }
#a11yMask { position: fixed; inset: 0; pointer-events: none; z-index: 2050; display: none; }
#a11yMask.on { display: block; }
#a11yMask .shade { position: absolute; left: 0; right: 0; background: rgba(20, 24, 18, .62); }
#a11yMask .band { position: absolute; left: 0; right: 0; border-top: 2px solid var(--amber); border-bottom: 2px solid var(--amber); }
#a11yTint { position: fixed; inset: 0; pointer-events: none; z-index: 2040; display: none; mix-blend-mode: multiply; }
#a11yTint.on { display: block; }
#a11yMagnifier {
  position: fixed; z-index: 2300; display: none; background: #fffef8; color: var(--ink);
  border: 2px solid var(--green-dark); padding: .8rem 1.1rem;
  max-width: min(520px, 86vw); font-size: 1.6rem; line-height: 1.5; box-shadow: 0 16px 44px rgba(0,0,0,.35);
  pointer-events: none; font-family: inherit;
}
#a11yDict {
  position: fixed; z-index: 2300; display: none; background: #fff; border: 2px solid var(--green-dark);
  padding: 1rem 1.2rem; width: min(340px, 88vw); box-shadow: 0 16px 44px rgba(0,0,0,.35);
}
#a11yDict .word { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--green-dark); }
#a11yDict .emoji { font-size: 2.6rem; line-height: 1; margin: .3rem 0; }
#a11yDict .def { font-size: .95rem; }
#a11yDict .close { position: absolute; top: .35rem; right: .5rem; border: 0; background: none; font-size: 1.1rem; cursor: pointer; }
.a11y-reading * { scroll-margin-top: 120px; }
.tts-highlight { background: var(--amber) !important; color: var(--ink) !important; }
#a11yRecorder {
  position: fixed; left: 1.1rem; bottom: 5.6rem; z-index: 2250; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 1rem 1.2rem; width: 300px; max-width: calc(100vw - 2rem); display: none;
}
#a11yRecorder.show { display: block; }
#a11yRecorder .rec-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #b3261e; animation: pulse 1s infinite; margin-right: .4rem; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- 18. Utility ---------- */
.badge {
  display: inline-block; background: var(--green-tint); color: var(--green-deep);
  font-family: var(--font-display); font-weight: 600;
  font-size: .72rem; padding: .3rem .7rem; text-transform: uppercase; letter-spacing: .1em;
}
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.small { font-size: .88rem; color: var(--ink-soft); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.cta-band { position: relative; overflow: hidden; background: var(--green-dark); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/brand/pattern-brand.png") center/cover no-repeat;
}
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: 2.8rem; }
.cta-band h2 { color: #fff; margin: 0; font-size: var(--step-2); }
.cta-band p { color: #d3e8ce; margin: .3rem 0 0; }
@media print {
  .site-header, .site-footer, .a11y-fab, .a11y-panel, .cookie-banner, .modal-overlay, .hero__actions { display: none !important; }
}

/* ---------- 19. Header search toggle ---------- */
.search-toggle {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
}
.search-toggle svg { width: 20px; height: 20px; }
.search-toggle:hover { color: var(--green-dark); }

/* mega nav search bar */
.meganav__search {
  grid-column: 1 / -1; display: flex; gap: .6rem; align-items: center;
  border-top: 1px solid var(--line); padding-top: 1.2rem;
}
.meganav__search input {
  flex: 1; padding: .7rem .9rem; border: 1px solid #c2c0b5; font: inherit;
  font-family: var(--font-display); font-size: .9rem; border-radius: 0;
}
.meganav__search .btn { padding: .68rem 1.3rem; font-size: .85rem; }

/* ---------- 20. Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 2400; background: rgba(13, 26, 15, .62);
  display: flex; align-items: flex-start; justify-content: center; padding: 10vh 1rem 1rem;
}
.search-panel {
  background: var(--white); width: min(680px, 100%); box-shadow: 0 24px 60px rgba(0,0,0,.4);
  border-top: 3px solid var(--green-dark); max-height: 76vh; display: flex; flex-direction: column;
}
.search-panel__bar {
  display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.search-panel__bar svg { width: 20px; height: 20px; color: var(--green-dark); flex: 0 0 auto; }
.search-panel__bar input {
  flex: 1; border: 0; font: inherit; font-family: var(--font-display); font-size: 1.05rem;
  outline: none; padding: .2rem 0; background: none;
}
.search-panel__close { border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--ink-soft); }
.search-panel__results { overflow: auto; padding: .6rem; }
.search-result {
  display: block; padding: .8rem .9rem; text-decoration: none; border-bottom: 1px solid var(--line);
}
.search-result:hover { background: var(--green-tint); }
.search-result__title { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.search-result__tag {
  display: inline-block; font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--green-dark); margin: .15rem 0;
}
.search-result__desc { display: block; font-size: .85rem; color: var(--ink-soft); }
.search-panel__results > p { padding: 1rem; }

/* ---------- 21. News hub ---------- */
.news-head { padding-bottom: 2rem; }
.news-controls { margin-top: 1.6rem; display: grid; gap: 1rem; justify-items: center; }
.news-tabs { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.news-tab {
  background: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: .85rem; color: var(--ink-soft);
  padding: .45rem .9rem;
}
.news-tab:hover { color: var(--green-dark); }
.news-tab.is-active { border-color: var(--green-dark); color: var(--green-dark); font-weight: 600; }
.news-search {
  display: flex; align-items: center; gap: .5rem; border: 1px solid #c2c0b5; background: #fff;
  padding: .45rem .8rem; width: min(420px, 100%);
}
.news-search svg { width: 17px; height: 17px; color: var(--green-dark); flex: 0 0 auto; }
.news-search input { border: 0; outline: none; font: inherit; font-family: var(--font-display); font-size: .9rem; flex: 1; background: none; }
.news-card__excerpt { font-size: .95rem; color: var(--ink-soft); }
.news-card__byline { font-family: var(--font-display); font-size: .76rem; color: #84847a; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.article-meta { font-family: var(--font-display); font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.article-body h3 { margin-top: 1.8rem; }
.article-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }

/* ---------- 22. Back to top ---------- */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 2150;
  width: 48px; height: 48px; border: 1px solid var(--green-dark);
  background: var(--white); color: var(--green-dark); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-dark); color: #fff; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- 23. Glossary drawer ---------- */
.gloss-tab {
  position: fixed; right: 0; top: 22%; z-index: 2180;
  display: flex; align-items: center; gap: 0;
  background: var(--green-dark); color: #fff; cursor: pointer;
  padding: .8rem .7rem .8rem .9rem;
  border: 2px solid #fff; border-right: 0;
  border-radius: 999px 0 0 999px;              /* clip shape */
  box-shadow: -6px 4px 18px rgba(0,0,0,.24);
  transition: background .15s ease;
}
.gloss-tab img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.gloss-tab .gloss-tab__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  transition: max-width .25s ease, margin-left .25s ease;
}
.gloss-tab:hover .gloss-tab__label,
.gloss-tab:focus-visible .gloss-tab__label { max-width: 110px; margin-left: .55rem; }
.gloss-tab:hover { background: var(--green-deep); }
.gloss-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2350;
  width: min(400px, 92vw); background: var(--white);
  box-shadow: -24px 0 60px rgba(0,0,0,.3); border-left: 3px solid var(--green-dark);
  transform: translateX(105%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.gloss-drawer.open { transform: none; }
.gloss-drawer__head {
  background: var(--green-dark); color: #fff; padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: .7rem;
}
.gloss-drawer__head img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.gloss-drawer__head h2 { color: #fff; font-size: 1.05rem; margin: 0; flex: 1; }
.gloss-drawer__head button { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
.gloss-drawer__body { overflow: auto; padding: 1rem 1.2rem 2rem; }
.gloss-drawer__body .gloss-note { font-size: .85rem; color: var(--ink-soft); }
.gloss-drawer__body h3 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--green-dark); margin: 1.2rem 0 .5rem;
}
details.gloss {
  border-bottom: 1px solid var(--line);
}
details.gloss summary {
  cursor: pointer; list-style: none; padding: .7rem .2rem; font-family: var(--font-display);
  font-weight: 600; font-size: .95rem; position: relative; padding-right: 2rem;
}
details.gloss summary::-webkit-details-marker { display: none; }
details.gloss summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  color: var(--green-dark); font-size: 1.2rem; font-weight: 400;
}
details.gloss[open] summary::after { content: "–"; }
details.gloss p { font-size: .92rem; color: var(--ink-soft); padding: 0 .2rem .8rem; margin: 0; }
@media (max-width: 720px) { .gloss-tab { padding: .65rem .55rem .65rem .75rem; } }

/* ---------- 24. GEO: key takeaways + updated stamp ---------- */
.takeaways {
  background: var(--green-tint); border: 1px solid var(--green-tint-2);
  border-left: 4px solid var(--green-dark); padding: 1.1rem 1.4rem 1rem; margin: 0 0 1.8rem;
}
.takeaways__title {
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--green-deep); margin: 0 0 .5rem;
}
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { margin-bottom: .35rem; }
.updated-stamp { font-family: var(--font-display); font-size: .8rem; color: var(--ink-soft); }

/* ---------- 25. Article TOC, related, CTA ---------- */
.toc {
  background: var(--white); border: 1px solid var(--line);
  padding: 1rem 1.4rem; margin: 0 0 1.8rem;
}
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .3rem; break-inside: avoid; }
.toc a { font-family: var(--font-display); font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--green-dark); text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.article-body h3 { scroll-margin-top: 90px; }
.related-wrap { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.related-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  padding: 1rem 1.2rem; text-decoration: none;
}
.related-card:hover { box-shadow: var(--shadow); }
.related-card .card__meta { display: block; margin-bottom: .3rem; }
.related-card__title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .98rem; }
.article-cta {
  margin-top: 1.6rem; background: var(--green-tint); border: 1px solid var(--green-tint-2);
  padding: 1.3rem 1.5rem; display: flex; gap: 1.2rem; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
}
.article-cta h3 { margin-bottom: .2rem; }
.article-cta p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
