/*
Theme Name: ReINa Federation
Theme URI: https://reinafed.org
Author: ReINa Federation
Description: A warm, editorial theme for the ReINa Federation of Parents Associations, Inc.
Version: 1.1.29
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: reina
*/

/* ---------------------------------------------------------
   1. Tokens
--------------------------------------------------------- */
:root {
  --ink: #14231d;
  --ink-soft: #40544b;
  --forest: #3B9368;
  --forest-deep: #2d7a56;
  --teal: #3B9368;
  --teal-soft: #5aa87d;
  --mint: #e8f3ec;
  --mint-2: #f4f8f5;
  --cream: #FEFEFE;
  --cream-2: #f4f8f5;
  --sand: #eceecf;
  --sun: #C1C04F;
  --sun-soft: #d4d37a;
  --coral: #3B9368;
  --coral-deep: #2d7a56;
  --accent: #526eec;
  --accent-soft: #7b90f1;
  --line: rgba(20, 35, 29, 0.14);
  --line-light: rgba(238, 241, 236, 0.24);
  --shadow-sm: 0 1px 2px rgba(20, 35, 29, 0.06), 0 6px 16px rgba(20, 35, 29, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(20, 35, 29, 0.25);
  --shadow-lg: 0 40px 80px -40px rgba(20, 35, 29, 0.35);

  --font-display: "Baloo 2", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------
   2. Reset / base
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--forest-deep); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; height: 1px; background: var(--line); margin: 3rem 0; }
::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--cream); padding: 0.8rem 1.2rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--cream2 { background: var(--cream-2); }
.section--sand { background: var(--sand); }
.section--mint { background: var(--mint-2); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h1, .section--forest h2, .section--forest h3, .section--forest h4 { color: var(--cream); }
.section--forest p { color: rgba(254, 254, 254, 0.82); }
.section--forest a:not(.btn) { color: var(--sun-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sun); }
.section--forest .eyebrow { color: var(--sun-soft); }
.section--forest .eyebrow::before { background: var(--sun); }

.lede { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.65; color: var(--ink-soft); }
.section--forest .lede { color: rgba(254, 254, 254, 0.85); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.text-coral { color: var(--coral); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* ---------------------------------------------------------
   3. Buttons
--------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; border: 2px solid var(--btn-bg);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.btn:hover { color: #fff; background: #3f5ed6; border-color: #3f5ed6; transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); }
.btn--sun:hover { background: var(--cream); color: var(--ink); }
.btn--coral { --btn-bg: var(--accent); --btn-fg: #fff; border-color: var(--accent); }
.btn--coral:hover { background: #3f5ed6; color: #fff; border-color: #3f5ed6; }
.btn--outline { --btn-bg: var(--accent); --btn-fg: #fff; border-color: var(--accent); }
.btn--outline:hover { background: #3f5ed6; color: #fff; border-color: #3f5ed6; }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.btn--light:hover { background: var(--sun); color: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--cream); border-color: rgba(254,254,254,0.45); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); }
.section--forest .btn--outline { --btn-bg: var(--accent); --btn-fg: #fff; border-color: var(--accent); }
.section--forest .btn--outline:hover { background: #3f5ed6; color: #fff; border-color: #3f5ed6; }
.btn--text {
  --btn-bg: transparent; --btn-fg: var(--ink);
  padding-inline: 0.25rem; border-radius: 0;
  border-bottom: 2px solid var(--accent);
}
.btn--text:hover { background: transparent; color: var(--coral-deep); transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------------------------------------------------------
   4. Header
--------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(254, 254, 254, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(20,35,29,.5); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 82px;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-mark--img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 2px 8px rgba(18,68,56,.12); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
}
.brand-text small {
  font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft); margin-top: 4px;
}

.main-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding-block: 0.4rem; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--coral); transition: width 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { width: 100%; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--teal); }

/* dropdown */
.main-nav .menu-item-has-children { position: relative; display: flex; align-items: center; gap: .15rem; }
.main-nav .menu-item-has-children > a { display: inline-flex; align-items: center; gap: .25rem; }
.main-nav .menu-item-has-children > a::before,
.main-nav .menu-item-has-children > a::after { content: none !important; display: none !important; background: none !important; border: 0 !important; }
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 12px); left: -1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 0.5rem; min-width: 240px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: 0.22s var(--ease);
  display: block !important;
}
.main-nav ul.sub-menu { display: block !important; gap: 0; }
.main-nav .sub-menu > li { display: block; width: 100%; }
.main-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu-toggle { background: none; border: 0; padding: .25rem; margin-left: 0; cursor: pointer; color: var(--ink-soft); display: inline-flex; align-items: center; border-radius: 6px; vertical-align: middle; }
.submenu-toggle:hover, .submenu-toggle:focus-visible { color: var(--teal); background: rgba(36,93,110,0.08); }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu-toggle[aria-expanded="true"] ~ .sub-menu { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; display: block !important; }
.main-nav .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.main-nav .sub-menu a { display: block; width: 100%; padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.92rem; white-space: normal; line-height: 1.4; }
.main-nav .sub-menu a:hover { background: var(--mint-2); }
.main-nav .sub-menu a::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-actions .btn { padding: 0.75rem 1.2rem; font-size: 0.9rem; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: transparent; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: background-color 0.25s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform 0.25s, top 0.25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------
   5. Hero
--------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; background: linear-gradient(180deg, #f8fdf7 0%, var(--cream) 100%); }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -260px; top: -180px;
  background: radial-gradient(circle at center, rgba(239,163,71,0.22), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -120px; bottom: -60px; width: 420px; height: 420px;
  background: radial-gradient(circle at center, rgba(47,138,120,0.12), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy h1 { font-size: clamp(2.7rem, 6.4vw, 5.3rem); margin-bottom: 1.2rem; }
.hero-copy h1 em {
  font-style: italic; color: var(--teal); position: relative; white-space: nowrap;
}
.hero-copy h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.18em;
  background: var(--sun); opacity: 0.45; z-index: -1; border-radius: 3px;
}
.hero-copy .lede { max-width: 34rem; margin-bottom: 1.9rem; }
.trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
  margin: 2rem 0 0; padding: 0; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink-soft);
}
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-soft); }

.hero-media { position: relative; }
.hero-photo {
  margin: 0; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 90px;
  overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5 / 4.4;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-inset {
  position: absolute; left: -8%; bottom: -7%; width: 38%; margin: 0;
  aspect-ratio: 3 / 4; border-radius: 120px 120px 20px 20px; overflow: hidden;
  border: 7px solid var(--cream); box-shadow: var(--shadow-md);
}
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; top: -6%; right: -4%;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--sun); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.05; box-shadow: var(--shadow-md);
  transform: rotate(6deg);
}
.hero-badge span { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.hero-badge strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }

.stat-strip {
  position: relative; z-index: 2; margin-top: clamp(2.5rem, 5vw, 4rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(1.5rem, 3vw, 2.3rem) clamp(1rem, 3vw, 2rem);
}
.stat-strip .stat { padding-inline: clamp(0.6rem, 1.8vw, 1.6rem); border-left: 1px solid var(--line); }
.stat-strip .stat:first-child { border-left: 0; }
.stat .num {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1; color: var(--forest); letter-spacing: -0.02em;
}
.stat .num span { color: var(--coral); }
.stat .label { font-size: 0.8rem; line-height: 1.4; color: var(--ink-soft); margin-top: 0.5rem; }

/* Nature / child-friendly accents */
.nature-leaf {
  position: absolute; pointer-events: none; opacity: .18; filter: saturate(1.1);
}
.nature-leaf--1 { top: -20px; right: 5%; width: 140px; transform: rotate(12deg); }
.nature-leaf--2 { bottom: -10px; left: 3%; width: 110px; transform: rotate(-18deg); opacity:.12; }
.happy-band {
  background: linear-gradient(135deg, #fff9ef 0%, #eef7f1 50%, #fff5e8 100%);
}
.section--nature {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(47,138,120,0.10), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(239,163,71,0.13), transparent 40%),
    linear-gradient(180deg, #f7fbf5 0%, var(--cream) 100%);
}
.blob {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.blob--sun { background: rgba(239,163,71,0.16); }
.blob--mint { background: rgba(47,138,120,0.10); }
.kid-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.kid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* defensive: WP autop artifacts */
.entry-content p:empty,
.content-section p:empty,
.map-row p:empty { display: none; margin: 0; padding: 0; }
.map-row p { margin: 0; }
.gallery-grid br { display: none; }

/* ---------------------------------------------------------
   6. About / intro
--------------------------------------------------------- */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--reverse { grid-template-columns: 1.2fr 0.8fr; }
.split h2 { margin: 0; }
.split .prose { max-width: 42rem; }
.split .prose > p:first-child {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35; font-weight: 500; color: var(--ink);
}
.assoc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem;
  list-style: none; padding: 0;
}
.assoc-grid li {
  display: flex; gap: 0.8rem; align-items: baseline;
  padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.55); font-size: 0.9rem;
}
.assoc-grid li b { font-family: var(--font-display); color: var(--coral); font-size: 1rem; }
.assoc-grid li span { color: var(--ink-soft); }

.photo-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-collage .tall { grid-row: span 2; aspect-ratio: 3 / 4.4; }
.photo-collage .wide { aspect-ratio: 4 / 3; }
.photo-collage .wide:last-child { margin-top: -1rem; }
.photo-collage--four { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.photo-collage--four .wide { margin: 0 !important; aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .photo-collage--four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .photo-collage--four { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------
   7. Life stages
--------------------------------------------------------- */
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.stage-card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stage-card .stage-media { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.stage-card .stage-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.stage-card:hover .stage-media img { transform: scale(1.05); }
.stage-card .stage-body { padding: 1.6rem 1.6rem 1.8rem; }
.stage-card .age {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--cream); color: var(--ink); border-radius: 999px;
  padding: 0.35rem 0.8rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stage-card .stage-num {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--coral); text-transform: uppercase;
}
.stage-card h3 { margin: 0.4rem 0 0.6rem; font-size: 1.5rem; }
.stage-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.1rem; }
.stage-card .link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; color: var(--forest);
}
.stage-card .link-arrow:hover { color: var(--coral); }

/* ---------------------------------------------------------
   8. Programs
--------------------------------------------------------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.prog-item {
  background: var(--cream); padding: clamp(1.6rem, 2.6vw, 2.4rem);
  transition: background 0.3s;
}
.prog-item:hover { background: #fff; }
.prog-item .icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--mint);
  display: grid; place-items: center; margin-bottom: 1.1rem; color: var(--forest);
}
.prog-item .icon svg { width: 24px; height: 24px; }
.prog-item h3 { font-size: 1.22rem; margin-bottom: 0.45rem; }
.prog-item p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.prog-item .tag { display: inline-block; margin-top: 1rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }

/* ---------------------------------------------------------
   9. Impact / quote
--------------------------------------------------------- */
.impact { position: relative; overflow: hidden; }
.impact::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(254,254,254,0.07) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.6; pointer-events: none;
}
.impact-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.quote-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.32; font-weight: 400; color: var(--cream); letter-spacing: -0.01em;
}
.quote-card blockquote::before {
  content: "\201C"; display: block; font-size: 4.5rem; line-height: 0.6; color: var(--sun);
  margin-bottom: 0.9rem;
}
.quote-card cite {
  display: block; margin-top: 1.5rem; font-style: normal; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-soft); font-weight: 600;
}
.impact-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.impact-stats .stat {
  border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 1.4rem; background: rgba(254,254,254,0.05);
}
.impact-stats .num {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1; color: var(--sun);
}
.impact-stats .label { font-size: 0.78rem; color: rgba(254,254,254,0.86); margin-top: 0.5rem; line-height: 1.5; }

/* ---------------------------------------------------------
   10. Where we work
--------------------------------------------------------- */
.map-list { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.map-row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.6rem 0.4rem; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: 0.25s var(--ease);
}
.map-row:hover { color: var(--forest); background: rgba(255,255,255,0.5); padding-inline-start: 1rem; }
.map-row .idx { font-family: var(--font-display); font-size: 1.1rem; color: var(--coral); font-weight: 600; }
.map-row h3 { margin: 0; font-size: 1.35rem; }
.map-row .sub { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }
.map-row .count {
  font-family: var(--font-display); font-size: 1.7rem; color: var(--forest); font-weight: 600;
  line-height: 1;
}
.map-row .count small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }

/* ---------------------------------------------------------
   11. Stories / news
--------------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.story-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--ink); }
.story-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.story-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.story-card:hover .thumb img { transform: scale(1.05); }
.story-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.story-body .meta { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-bottom: 0.7rem; }
.story-body h3 { font-size: 1.2rem; line-height: 1.28; margin-bottom: 0.5rem; }
.story-body p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 1rem; }
.story-body .read { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--forest); }
.story-body .read::after { content: " →"; transition: 0.2s; }
.story-card:hover .read::after { margin-left: 4px; }

/* ---------------------------------------------------------
   12. Partners + CTA
--------------------------------------------------------- */
.partner-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 0.7rem; }
.partner-strip .chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1.1rem;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); background: rgba(255,255,255,0.5);
}

.cta-band { position: relative; background: var(--sun); color: var(--ink); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; border: 70px solid rgba(255,255,255,0.16);
}
.cta-band::after {
  content: ""; position: absolute; left: -80px; bottom: -120px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(18,68,56,0.08);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: center; }
.cta-band h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 0 0 0.7rem; }
.cta-band p { max-width: 44ch; color: rgba(20,35,29,0.78); }
.cta-actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.cta-actions .btn { width: 100%; justify-content: center; }

/* ---------------------------------------------------------
   13. Footer
--------------------------------------------------------- */
.site-footer { background: var(--forest-deep); color: rgba(254,254,254,0.78); padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.site-footer a { color: rgba(254,254,254,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-brand .brand-text strong { color: var(--cream); }
.footer-brand .brand-text small { color: rgba(254,254,254,0.78); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 1.2rem; max-width: 30ch; }
.footer-col h4 { color: var(--cream); font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--sun); }
.footer-bottom {
  border-top: 1px solid rgba(254,254,254,0.12); padding-block: 1.6rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.78rem; flex-wrap: wrap;
}
.footer-bottom .legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  width: 38px; height: 38px; border: 1px solid rgba(254,254,254,0.25); border-radius: 50%;
  display: grid; place-items: center; transition: 0.25s;
}
.social-row a:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.social-row svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------
   14. Inner pages
--------------------------------------------------------- */
.page-head {
  position: relative; background: var(--forest); color: var(--cream); overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3.5rem, 6vw, 5.5rem);
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 10%, rgba(239,163,71,0.25), transparent 55%);
}
.page-head::after {
  content: ""; position: absolute; right: -60px; bottom: -180px; width: 420px; height: 420px;
  border: 1px solid rgba(254,254,254,0.15); border-radius: 50%;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: var(--cream); max-width: 18ch; margin-bottom: 0.8rem; }
.page-head .lede { color: rgba(254,254,254,0.82); max-width: 56ch; margin: 0; }
.page-head .eyebrow { color: var(--sun-soft); }
.breadcrumb { font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(254,254,254,0.82); margin-bottom: 1.4rem; }
.breadcrumb a { color: rgba(254,254,254,0.92); text-decoration: none; }
.breadcrumb a:hover { color: var(--sun); }

.entry-content { padding-block: 0; }
.content-section > .wrap > * + * { margin-top: 1.25rem; }
.entry-content h2 { margin-top: 2.6rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.3em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content li::marker { color: var(--coral); }
.entry-content blockquote {
  margin: 2rem 0; padding: 1.6rem 2rem; background: var(--mint-2);
  border-left: 4px solid var(--sun); border-radius: 0 14px 14px 0;
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5;
}
.entry-content blockquote p { margin: 0; }
.entry-content figure { margin: 2rem 0; }
.entry-content figure img { border-radius: var(--radius); }
.entry-content figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.6rem; }
.entry-content a:not(.btn):not(.link-arrow):not(.story-card):not(.map-row) { font-weight: 500; }

/* content components */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.content-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.content-section--sand { background: var(--sand); }
.content-section--mint { background: var(--mint-2); }
.content-section--forest { background: var(--forest); color: var(--cream); }
.content-section--forest h2, .content-section--forest h3 { color: var(--cream); }
.content-section--forest p { color: rgba(254,254,254,0.82); }
.content-section--forest a { color: var(--sun-soft); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 2rem 0; }
.stat-row .stat { background: #fff; padding: 1.4rem 1.3rem; }
.stat-row .num { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--forest); line-height: 1; }
.stat-row .num span { color: var(--coral); }
.stat-row .label { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.4rem; line-height: 1.4; }

.feature-list { list-style: none; padding: 0; display: grid; gap: 1rem; margin: 1.5rem 0; }
.feature-list li {
  display: grid; grid-template-columns: 34px 1fr; gap: 0.9rem; align-items: start;
  padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.feature-list .fi {
  width: 34px; height: 34px; border-radius: 10px; background: var(--mint);
  display: grid; place-items: center; color: var(--forest); font-weight: 700; font-size: 0.8rem;
}
.feature-list strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.feature-list span { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

.pull-quote {
  margin: 2.5rem 0; padding: clamp(1.8rem, 3vw, 2.8rem);
  background: var(--forest); color: var(--cream); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.pull-quote::before { content: "\201C"; position: absolute; top: -0.1em; left: 0.3em; font-family: var(--font-display); font-size: 9rem; color: rgba(239,163,71,0.25); line-height: 1; }
.pull-quote p { position: relative; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.4; margin: 0; color: var(--cream); }
.pull-quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-soft); font-weight: 600; position: relative; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2rem 0; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* reports */
.report-list { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.report-list li { border-bottom: 1px solid var(--line); }
.report-list a {
  display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 0.4rem;
  text-decoration: none; color: var(--ink); transition: 0.2s;
}
.report-list a:hover { background: rgba(255,255,255,0.55); padding-inline-start: 1rem; color: var(--forest); }
.report-list .yr { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--coral); min-width: 74px; }
.report-list .rt { flex: 1; }
.report-list .rt strong { display: block; font-size: 1rem; }
.report-list .rt span { font-size: 0.82rem; color: var(--ink-soft); }
.report-list .dl { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 2rem 0; }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.contact-card li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.94rem; }
.contact-card svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--teal); }
.contact-card a { color: var(--forest); font-weight: 500; }

.form { display: grid; gap: 1rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font: inherit; font-size: 0.95rem; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); }
.notice { padding: 0.9rem 1.1rem; border-radius: 10px; font-size: 0.9rem; margin-bottom: 1rem; }
.notice--ok { background: var(--mint); color: var(--forest); }

/* posts */
.post-body { max-width: 760px; margin-inline: auto; }
.post-body .entry-content { padding-top: 0; }
.post-meta { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 1rem; }
.post-thumb { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.post-thumb img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }

/* 404 */
.error-page { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.error-page .big { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); line-height: 0.9; color: var(--sand); margin-bottom: 1rem; }

/* ---------------------------------------------------------
   15. Reveal animation
--------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------
   16. Responsive
--------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; margin-inline: auto; width: 100%; }
  .hero-copy { max-width: 720px; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .stat-strip .stat:nth-child(3) { border-left: 0; }
  .impact-grid, .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .stage-grid, .prog-grid, .story-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .prog-grid { gap: 1px; }
  .map-row { grid-template-columns: 40px 1fr auto; gap: 1rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 70px; }
  .brand-text small { display: none; }
  .header-actions .btn--outline { display: none; }
  .hero { padding-top: 2rem; }
  .hero-copy h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .hero-badge { width: 92px; height: 92px; right: 0; }
  .hero-badge strong { font-size: 1.45rem; }
  .hero-inset { width: 42%; left: -4%; }
  .stat-strip { margin-top: 2.5rem; }
  .stage-grid, .prog-grid, .story-grid, .card-grid, .assoc-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-head h1 { max-width: none; }
  .impact-stats { grid-template-columns: 1fr 1fr; }
  .photo-collage .tall { aspect-ratio: 3 / 4; }
}

@media (max-width: 460px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
  .stat-strip .stat:first-child { border-top: 0; padding-top: 0; }
  .hero-inset { display: none; }
  .form .row2 { grid-template-columns: 1fr; }
}

/* mobile nav panel */
@media (max-width: 1080px) {
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; background: var(--cream);
    border-bottom: 1px solid var(--line); padding: 1.2rem var(--gutter) 2rem;
    box-shadow: var(--shadow-md); max-height: calc(100vh - 70px); overflow: auto;
    display: none;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li > a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 0.6rem 1rem; min-width: 0; background: transparent; display: none;
  }
  .main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: none; }
  .submenu-toggle[aria-expanded="true"] ~ .sub-menu { display: block !important; opacity: 1 !important; visibility: visible !important; }
  .submenu-toggle { display: inline-flex; padding: .5rem; margin-left: auto; }
}


/* Lightbox */
.reina-lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1200px); max-height: 92vh; }
.reina-lightbox::backdrop { background: rgba(0,0,0,.75); }
.reina-lightbox__img { max-width: min(94vw, 1200px); max-height: 88vh; border-radius: 12px; display: block; }
.reina-lightbox__close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1a1a1a; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 5; }
.reina-lightbox__close:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.reina-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1a1a1a; font-size: 1.5rem; cursor: pointer; z-index: 5; display: grid; place-items: center; }
.reina-lightbox__nav:hover { background: #fff; }
.reina-lightbox__nav:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.reina-lightbox__prev { left: .5rem; }
.reina-lightbox__next { right: .5rem; }
.reina-lightbox__counter { position: absolute; bottom: .5rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; padding: .25rem .7rem; border-radius: 999px; font-size: .85rem; z-index: 5; }
.reina-lightbox__body { display: flex; align-items: center; justify-content: center; overflow: auto; max-width: min(94vw,1200px); max-height: 88vh; }
.reina-lightbox__img { max-width: min(94vw,1200px); max-height: 88vh; border-radius: 12px; display: block; transform-origin: center center; }
.notice[role="status"] { margin-bottom: 1rem; }
/* Video popup */
.reina-video-popup { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; margin: 1.25rem 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #000; box-shadow: var(--shadow); }
.reina-video-popup img, .reina-video-popup__bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.reina-video-popup__bg { background: linear-gradient(135deg, var(--forest), var(--teal)); }
.reina-video-popup__play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--forest); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s ease, background .2s ease; }
.reina-video-popup:hover .reina-video-popup__play, .reina-video-popup:focus-visible .reina-video-popup__play { transform: scale(1.06); background: #fff; }
.reina-video-popup__play svg { margin-left: 3px; }
.reina-video-popup__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 1rem; color: #fff; font-weight: 600; font-size: .95rem; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.reina-video-popup:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.reina-lightbox__video { width: min(92vw, 960px); aspect-ratio: 16/9; }
.reina-lightbox__video iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #000; }

/* Post gallery */
.reina-post-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.reina-post-gallery__item { display: block; border-radius: 14px; overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow); }
.reina-post-gallery__item img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; transition: transform .35s ease; }
.reina-post-gallery__item:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .reina-post-gallery { grid-template-columns: 1fr 1fr; } }

/* WP/Jetpack galleries in post content */
.entry-content .wp-block-gallery,
.entry-content .wp-block-jetpack-tiled-gallery,
.entry-content .tiled-gallery__gallery { margin: 1.5rem 0; }
.entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.entry-content .wp-block-gallery figure, .entry-content .wp-block-gallery .wp-block-image { margin: 0; }
.entry-content .wp-block-gallery img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; border-radius: 12px; display: block; }
.entry-content .wp-block-jetpack-tiled-gallery .tiled-gallery__row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.entry-content .wp-block-jetpack-tiled-gallery .tiled-gallery__col { flex: 1; min-width: 0; }
.entry-content .wp-block-jetpack-tiled-gallery figure { margin: 0; height: 100%; }
.entry-content .wp-block-jetpack-tiled-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.entry-content .tiled-gallery__gallery { display: grid; gap: .5rem; }

/* BOT chapters grid */
.bot-chapters-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 800px) { .bot-chapters-grid { grid-template-columns: 1fr; } }
