/* ==========================================================================
   Editorial layer, inner pages (October 2026 design review).
   Loaded after editorial.css (which holds the tokens --ed-* and the shared
   components). Colours: existing variables only.
   ========================================================================== */

/* Compact bands grow with translated or enlarged text rather than clipping it. */
body:not(#ed) .page-band {
  text-align: left; padding-block: 24px 48px; background: var(--pine-dark);
}
body:not(#ed) .page-band :is(h1, p) { margin-inline: 0; }
body:not(#ed) .page-band h1 { margin-block: 4px 12px; }
body:not(#ed) .page-band p { max-width: 60ch; }
body:not(#ed) .page-band::before,
body:not(#ed) .page-band::after,
body:not(#ed) .page-band h1::after { content: none; }
body:not(#ed) .crumbs {
  justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 0; text-transform: none; letter-spacing: 0;
}
body:not(#ed) .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
body:not(#ed) .crumbs span[aria-hidden] { font-size: 0; }
body:not(#ed) .crumbs span[aria-hidden]::before { content: "/"; font-size: var(--ed-fs-meta); }
body:not(#ed) .overlap { margin-top: -24px; }
body:not(#ed) .overlap-card {
  padding: clamp(20px, 2.5vw, 32px); border: 1px solid var(--line);
  border-radius: var(--ed-r-card); box-shadow: var(--ed-sh-1);
}
body:not(#ed) :is(.overlap-card, .form-card, .pay-card, .tab-panel-body) > * { min-width: 0; }
html body:not(.accessibility-font):not(#ren) :is(.overlap-card h2:not(.jump-title), .form-card h2,
  .cert-promo h2, .tab-panel-body h3, .app-other h3) {
  font-family: var(--ed-font-title); font-size: var(--ed-fs-h3); font-weight: 600;
  line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere;
}

/* About: proof row, story split and readable information cards. */
body:not(#ed) .fact-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
body:not(#ed) .fact-row .fact { flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 12px; }
body:not(#ed) .fact-row .fact + .fact { border-top: 0; border-left: 1px solid var(--line-strong); }
body:not(#ed) .fact-row .fact strong { white-space: normal; overflow-wrap: anywhere; color: var(--pine); }
body:not(#ed) .fact-row .fact span { font-size: .9375rem; }
body:not(#ed) .fact-row .fact .icon-chip { width: auto; height: auto; background: none; border-radius: 0; }
html body:not(.accessibility-font):not(#ren) .fact-row .fact:last-child strong {
  font-family: var(--font); font-size: 1.25rem; line-height: 1.4; font-weight: 600;
}
body:not(#ed) .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--ed-head-gap); }
body:not(#ed) .split > * { min-width: 0; }
body:not(#ed) .split-media { border-radius: var(--ed-r-card); box-shadow: none; }
html body:not(.accessibility-font):not(#ren) .split h2 {
  font-size: var(--ed-fs-h2); font-weight: 500; line-height: 1.05; text-wrap: balance;
}
body:not(#ed) #valuesTrack .icon-card { flex: 0 0 clamp(260px, 27vw, 360px); min-height: 0; }
body:not(#ed) :is(#valuesTrack, .objectives) .icon-card {
  color: var(--ink); gap: 16px; justify-content: flex-start;
}
body:not(#ed) :is(#valuesTrack, .objectives) .icon-card::before { content: none; }
body:not(#ed) .objectives .objective { padding-top: 28px; }

/* Programme tabs, donation choices and vacancy filters share one control. */
body:not(#ed) :is(#programmeTabs .choice-row, #donationCats, .jobs-filter) { gap: 8px; flex-wrap: wrap; }
body:not(#ed) :is(#programmeTabs .tab-btn, .donation-cat-btn, .jobs-filter .chip) {
  min-height: 48px; padding: 12px 20px; border: 1px solid var(--line-strong);
  border-radius: var(--ed-r-ctl); background: var(--cream-card); color: var(--ink);
  font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: 0;
  text-transform: none; white-space: normal; overflow-wrap: anywhere;
}
body:not(#ed) :is(#programmeTabs .tab-btn, .donation-cat-btn, .jobs-filter .chip).is-active {
  background: var(--pine); border-color: var(--pine); color: var(--white);
}
body:not(#ed) .tab-panel-body {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ed-grid-gap); margin-top: 32px;
}
body:not(#ed) .tab-panel-body img { border-radius: var(--ed-r-card); }
body:not(#ed) #roles .icon-card {
  justify-content: flex-start; min-height: 0; color: var(--ink);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
}
body:not(#ed) #roles .icon-card::before { content: none; }
body:not(#ed) #roles .card-photo {
  position: static; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3;
  border-radius: var(--ed-r-card); margin-bottom: 12px;
}
body:not(#ed) #roles .icon-card p { color: var(--ink-soft); }

/* Donate: choices immediately after the band; stretch the payment pair. */
body:not(#ed) main:has(#donationCats) .page-band { padding-block: 16px 40px; }
body:not(#ed) #donationCats .donation-cat-btn { flex: 1 1 120px; }
body:not(#ed) .donation-cat-panel .grid--2 { align-items: stretch; }
body:not(#ed) :is(.form-card, .pay-card) { padding: clamp(24px, 3vw, 32px); }
body:not(#ed) .pay-card { border-radius: var(--ed-r-card); box-shadow: none; }
body:not(#ed) .pay-rows dd { min-width: 0; overflow-wrap: anywhere; }
body:not(#ed) :is(.pay-note, .form-note) { font-size: var(--ed-fs-meta); }
html body:not(.accessibility-font):not(#ren) .pay-grid .fact strong {
  font-family: var(--font); font-size: 1rem; line-height: 1.4; font-weight: 600; white-space: normal;
}

/* Vacancies: flat cards, clear status and a qualification checklist. */
body:not(#ed) .job-card {
  padding: clamp(20px, 2vw, 32px); background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--ed-r-card); box-shadow: none; gap: 16px;
}
body:not(#ed) .job-card-top { flex-wrap: wrap; }
body:not(#ed) .job-card-top h3 { flex: 1 1 180px; }
body:not(#ed) .status-pill { border: 1px solid var(--line); border-radius: var(--ed-r-ctl); font-size: var(--ed-fs-meta); }
body:not(#ed) .status-open { background: var(--green-tint); color: var(--pine); }
body:not(#ed) .status-closed { background: var(--paper-alt); color: var(--ink); }
body:not(#ed) .job-reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 1rem; }
body:not(#ed) .job-reqs .icon { color: var(--pine); flex: none; }
body:not(#ed) .job-reqs li { min-width: 0; overflow-wrap: anywhere; }

/* Gallery retains wide tiles and the existing lightbox controls. */
body:not(#ed) .album-grid { gap: 16px; }
body:not(#ed) .album-grid .tile { border: 0; border-radius: var(--ed-r-card); cursor: zoom-in; }
body:not(#ed) .album-grid .tile::before { content: none; }
body:not(#ed) .album-grid .tile-caption { left: 16px; right: 16px; bottom: 16px; overflow-wrap: anywhere; }
body:not(#ed) .album-head { flex-wrap: wrap; }
html body:not(.accessibility-font):not(#ren) .album-head h2 {
  font-size: var(--ed-fs-h2); font-weight: 500; line-height: 1.05; text-wrap: balance;
}

/* Contact: three equal tiles and a seven/five message and help split. */
body:not(#ed) .contact-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }   /* email + phone, address + WhatsApp: the email never breaks */
body:not(#ed) .contact-tile { align-items: flex-start; min-width: 0; }
body:not(#ed) .contact-tile .icon-chip {
  width: 24px; height: 24px; border-radius: 0; box-shadow: none; background: none;
}
body:not(#ed) .contact-tile .icon-chip .icon { width: 24px; height: 24px; }
body:not(#ed) .grid--2:has(> #contactForm) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
body:not(#ed) #contactForm + .grid { min-width: 0; }
body:not(#ed) #contactForm + .grid > .icon-card:first-child {
  background: var(--onyx); color: var(--text-on-dark); padding: 32px;
}
body:not(#ed) #contactForm + .grid > .icon-card:first-child :is(h3, p, .icon-chip) { color: var(--text-on-dark); }
body:not(#ed) #contactForm + .grid .hero-actions { flex-wrap: wrap; }
body:not(#ed) #contactForm + .grid .action-btn--volunteer { border-color: var(--ink); color: var(--ink); }
body:not(#ed) #find-us .map-frame { border-radius: var(--ed-r-card); overflow: hidden; }

/* Download: left-aligned install row, separated benefits and numbered steps. */
body:not(#ed) .app-hero { padding: 0; overflow: hidden; }
body:not(#ed) .app-hero__main { text-align: left; padding: 32px; gap: 24px; flex-wrap: wrap; }
body:not(#ed) .app-hero__icon { border-radius: var(--ed-r-card); }
body:not(#ed) .app-hero__action { width: auto; max-width: 100%; }
body:not(#ed) .app-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body:not(#ed) :is(.app-platform, .app-other, .app-faq__item) {
  padding: clamp(24px, 2.5vw, 32px); border: 1px solid var(--line);
  border-radius: var(--ed-r-card); box-shadow: none;
}
body:not(#ed) .app-platform::before { content: none; }
body:not(#ed) .app-steps li::before { border-radius: var(--ed-r-ctl); }
body:not(#ed) .app-steps li { overflow-wrap: anywhere; }

/* Unique existing structures identify privacy and the error page without HTML edits. */
body:not(#ed) main:has(.page-band) > .section .overlap-card:has(> h2 + p):not(:has(.cta-row)) {
  max-width: 68ch; margin-inline: auto; padding: 0; border: 0; box-shadow: none; background: none;
}
body:not(#ed) .overlap-card:has(> h2 + p) > h2:not(:first-child) { margin-top: 32px; }
body:not(#ed) main:has(a[href="/index.html"]) .page-band .container::before {
  content: "404" / ""; display: block; line-height: 1; color: var(--gold);
}
html body:not(.accessibility-font):not(#ren) main:has(a[href="/index.html"]) .page-band .container::before {
  font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7rem);
}
body:not(#ed) main:has(a[href="/index.html"]) .page-band { padding-block: 24px; }

@media (min-width: 641px) and (max-width: 980px) {
  body:not(#ed) :is(.fact-row, .contact-tiles, #roles .grid--3, #jobsList, .objectives, .app-platforms, .app-perks) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:not(#ed) .fact-row .fact:nth-child(3) { border-left: 0; }
  body:not(#ed) .fact-row .fact:nth-child(n + 3) { border-top: 1px solid var(--line-strong); }
}
@media (max-width: 640px) {
  body:not(#ed) .page-band { padding-block: 0 24px; }
  html body:not(.accessibility-font):not(#ren) .page-band h1 { font-size: 2.5rem; max-width: none; }
  body:not(#ed) .page-band h1 { margin-block: 0 8px; }
  html body:not(.accessibility-font):not(#ren) .page-band p { font-size: 1.125rem; line-height: 1.45; }
  body:not(#ed) main:has(#donationCats) .page-band { padding-block: 8px 32px; }
  body:not(#ed) .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(#ed) .fact-row .fact { padding: 16px 12px; }
  body:not(#ed) .fact-row .fact:nth-child(3) { border-left: 0; }
  body:not(#ed) .fact-row .fact:nth-child(n + 3) { border-top: 1px solid var(--line-strong); }
  body:not(#ed) :is(.split, .tab-panel-body, .contact-tiles, .grid--2:has(> #contactForm), .donation-cat-panel .grid--2) {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(#ed) #valuesTrack .icon-card { flex-basis: 86%; width: 86%; }
  body:not(#ed) #programmeTabs .tab-btn { flex: 1 1 100%; }
  body:not(#ed) #donationCats .donation-cat-btn { flex-basis: 0; padding-inline: 8px; }
  body:not(#ed) #donationCats .donation-cat-btn .icon { display: none; }
  body:not(#ed) .job-reqs { grid-template-columns: minmax(0, 1fr); }
  body:not(#ed) .album-grid { grid-auto-rows: minmax(220px, auto); }
  body:not(#ed) .album-grid .tile-caption { left: 12px; right: 12px; bottom: 12px; }
  body:not(#ed) .app-hero__main { align-items: flex-start; padding: 24px; }
  body:not(#ed) .app-hero__action { width: 100%; }
  body:not(#ed) .app-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(#ed) :is(.cta-row, .cert-promo) { gap: 12px; }
  body:not(#ed) :is(.cta-row, .cert-promo, .form-card, .card-foot) > .btn { width: 100%; min-height: 48px; }
  body:not(#ed) .field-row { grid-template-columns: minmax(0, 1fr); }
  body:not(#ed) main:has(a[href="/index.html"]) .page-band { padding-block: 12px; }
  html body:not(.accessibility-font):not(#ren) main:has(a[href="/index.html"]) .page-band .container::before { font-size: 3rem; }
}
