:root {
  --blue: #176db4;
  --blue-deep: #2d258b;
  --green: #087d36;
  --lime: #8bd017;
  --purple: #392893;
  --ink: #172033;
  --muted: #667085;
  --line: #dbe4ef;
  --soft: #f6faf8;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(23, 32, 51, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, input, select, textarea, [contenteditable="true"]):focus-visible {
  outline: 3px solid #f6a400;
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(1180px, calc(100% - 36px));
  margin: 22px auto 0;
  color: #42516b;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-fallback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
}

.seo-fallback-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-fallback-footer {
  padding: 32px max(18px, calc((100vw - 1180px) / 2));
}

.seo-fallback-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.seo-fallback-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 228, 239, 0.9);
  backdrop-filter: blur(18px);
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 8px 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--green));
  font-size: 0.86rem;
}

.trust-strip p {
  margin: 0;
  font-weight: 700;
}

.trust-strip a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  min-height: 82px;
  margin: 0 auto;
}

.cms-admin-nav {
  justify-content: flex-end;
}

.brand {
  flex: 0 0 auto;
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
}

.nav-actions > a:not(.donate-btn) {
  color: #26324a;
  font-weight: 700;
  white-space: nowrap;
}

.nav-actions > a:not(.donate-btn):hover {
  color: var(--green);
}

.cms-header-actions {
  gap: 10px;
}

.cms-header-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.cms-header-actions .primary {
  border: 0;
  background: linear-gradient(90deg, var(--green), var(--blue));
  color: var(--white);
}

.cms-header-actions .mode-active {
  border-color: var(--green);
  background: #eaf8ef;
  color: #087d36;
}

.cms-header-status {
  width: min(1180px, calc(100% - 36px));
  min-height: 0;
  margin: -6px auto 8px;
  color: #176db4;
  font-size: 0.82rem;
}

.cms-settings-page {
  background: #f4f8fb;
}

.cms-settings-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 38px auto 80px;
}

.cms-settings-heading {
  margin-bottom: 20px;
}

.cms-settings-heading h1 {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.cms-settings-heading p {
  max-width: 820px;
}

.cms-settings-card {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.07);
}

.cms-settings-card h2 {
  margin-top: 0;
  color: var(--purple);
}

.cms-settings-message {
  padding: 14px 18px;
  border: 1px solid #91d5aa;
  border-radius: 8px;
  background: #eaf8ef;
  color: #087d36;
  font-weight: 700;
}

.cms-page-picker label,
.cms-settings-grid label,
.cms-inline-form label {
  display: grid;
  gap: 6px;
  color: #26324a;
  font-weight: 700;
}

.cms-settings-card :where(input, select, textarea) {
  width: 100%;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}

.cms-settings-card small {
  color: var(--muted);
  font-weight: 400;
}

.cms-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.cms-settings-grid .wide {
  grid-column: 1 / -1;
}

.cms-settings-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cms-inline-form {
  display: grid;
  gap: 12px;
}

.cms-settings-card button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--purple);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.cms-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cms-list-row button {
  background: #a62121;
}

.cms-checkbox {
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.cms-checkbox input {
  width: auto;
}

.brand img {
  width: 196px;
  height: auto;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.primary-menu > a,
.nav-group > button {
  border: 0;
  background: transparent;
  color: #26324a;
  cursor: pointer;
  padding: 12px 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-menu > a:hover,
.nav-group > button:hover {
  color: var(--green);
}

.primary-menu > a.active {
  color: var(--green);
}

.nav-group {
  position: relative;
}

.nav-panel {
  position: absolute;
  left: 0;
  top: 100%;
  display: grid;
  min-width: 210px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.nav-panel.wide {
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  min-width: 430px;
}

.nav-group:hover .nav-panel,
.nav-group:focus-within .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-panel a {
  border-radius: 6px;
  padding: 10px 12px;
  color: #33415c;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-panel a:hover {
  background: #eef8f2;
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--purple);
}

.donate-btn,
.primary-action,
.case-action,
.newsletter button,
.contact-form button {
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--green), var(--blue));
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(21, 169, 67, 0.2);
}

.donate-btn {
  padding: 12px 20px;
}

.section-band {
  background:
    linear-gradient(135deg, rgba(21, 169, 67, 0.1), rgba(23, 109, 180, 0.08)),
    var(--soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: 52px;
  min-height: calc(100vh - 122px);
  padding: 78px max(24px, calc((100vw - 1180px) / 2)) 56px;
}

.hero-slider {
  position: relative;
  isolation: isolate;
  display: block;
  height: clamp(440px, 68vh, 700px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
}
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slides { z-index: 0; }
.hero-slide { opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,46,.82) 0%, rgba(10,18,46,.48) 46%, rgba(10,18,46,.08) 78%), linear-gradient(0deg, rgba(10,18,46,.42), transparent 48%); }
.hero-slide-caption { position: absolute; z-index: 1; left: max(72px, calc((100vw - 1180px) / 2)); bottom: clamp(70px, 11vh, 118px); max-width: min(650px, calc(100% - 180px)); padding-left: 18px; border-left: 5px solid var(--green); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hero-slide-caption h2 { max-width: 13ch; margin: 8px 0 10px; color: #fff; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.04em; }
.hero-slide-caption p { max-width: 580px; margin: 0; color: rgba(255,255,255,.94); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.55; }
.hero-focus-label { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--green); color: #fff; font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-shadow: none; text-transform: uppercase; }
.hero-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: clamp(36px, 6vw, 80px); align-items: center; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }
.hero-intro .hero-copy { max-width: 700px; }
.hero-intro .hero-copy h1 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.hero-actions-panel { display: grid; gap: 18px; }
.hero-actions-panel .impact-row, .hero-actions-panel .hero-support-options { width: 100%; max-width: none; margin: 0; }
.hero-actions-panel .impact-row div { align-items: center; text-align: center; }
.hero-slider-controls { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.hero-slider-controls > button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(15,25,55,.45); color: #fff; cursor: pointer; }
.hero-slider-controls > button { position: absolute; top: 50%; pointer-events: auto; transform: translateY(-50%); }
.hero-slider-controls > [data-hero-prev] { left: clamp(16px, 3vw, 48px); }
.hero-slider-controls > [data-hero-next] { right: clamp(16px, 3vw, 48px); }
.hero-slider-controls > div { position: absolute; bottom: 22px; left: 50%; display: flex; gap: 8px; pointer-events: auto; transform: translateX(-50%); }
.hero-slider-controls [data-hero-dot] { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-slider-controls [data-hero-dot].active { width: 28px; border-radius: 999px; background: #fff; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--purple);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--purple);
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  color: #1f2a44;
  line-height: 1.25;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  color: #42516b;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.primary-action,
.secondary-action,
.case-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
}

.secondary-action {
  border: 1px solid rgba(45, 37, 139, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--purple);
  font-weight: 800;
}

.secondary-action.compact {
  min-height: 42px;
  padding: 10px 16px;
}

.impact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 14px;
  max-width: 620px;
  margin: 0;
}

.impact-row div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(23, 109, 180, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.impact-row dt {
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
}

.impact-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero-support-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 18px;
}

.hero-support-options a {
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(23, 109, 180, 0.22);
  border-radius: 10px;
  background: var(--white);
  color: var(--purple);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-support-options a:hover,
.hero-support-options a:focus-visible {
  border-color: var(--green);
  box-shadow: 0 8px 18px rgba(31, 149, 93, 0.14);
  color: #08773c;
  transform: translateY(-1px);
}

.case-directory {
  padding-top: clamp(42px, 7vw, 78px);
  padding-bottom: clamp(52px, 8vw, 96px);
}

.case-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
}

.case-filter > span {
  color: var(--purple);
  font-weight: 900;
}

.case-filter > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.case-filter button {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid rgba(23, 109, 180, 0.22);
  border-radius: 999px;
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  font-weight: 800;
}

.case-filter button.active,
.case-filter button:hover,
.case-filter button:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.case-filter-status { color: var(--muted); font-weight: 700; }

.case-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-directory-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.case-directory-card[hidden] { display: none; }
.cms-empty-card { display: none !important; }

.case-directory-media {
  min-height: 210px;
  background: #dfeffa;
  color: var(--purple);
  font-size: 1.4rem;
  font-weight: 900;
}

.case-directory-media img { width: 100%; height: 210px; object-fit: cover; }

.case-directory-body { display: grid; gap: 12px; padding: 22px; }
.case-directory-body h2, .case-directory-body p { margin: 0; }
.case-location { color: var(--green); font-weight: 900; }
.case-document { color: var(--blue); font-weight: 800; text-decoration: underline; }
.media-category-bar { border-bottom: 1px solid var(--line); background: #fff; }
.media-category-bar .section-shell { display: flex; gap: 16px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.media-category-bar label { color: var(--ink); font-weight: 850; }
.media-category-bar select { min-width: min(100%, 280px); padding: 12px 42px 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--purple); font: inherit; font-weight: 800; cursor: pointer; }
.media-category-bar select:focus-visible { border-color: var(--blue); outline: 3px solid rgba(23,109,180,.16); }
.media-brochure { padding-top: clamp(42px, 6vw, 72px); }
.brochure-grid { display: grid; gap: 20px; }
.brochure-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(45,37,139,.06), rgba(21,169,67,.08)), #fff; box-shadow: 0 20px 48px rgba(15,25,55,.08); }
.brochure-card h3, .brochure-card p { margin-bottom: 10px; }
.brochure-icon { display: grid; width: 82px; height: 98px; place-items: center; border-radius: 12px 12px 18px 12px; background: var(--purple); color: #fff; font-size: 1.05rem; font-weight: 900; letter-spacing: .08em; box-shadow: 0 14px 28px rgba(45,37,139,.18); }
.brochure-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.case-empty { margin: 28px 0 0; color: var(--muted); font-weight: 700; text-align: center; }

.case-location-groups { display: grid; gap: 28px; }

.case-location-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.case-location-group > h2 {
  margin: 0;
  padding: 18px 22px;
  background: #f1f8f4;
  color: var(--purple);
  font-size: 1.25rem;
}

.case-patient-list { padding: 10px 22px 22px; }

.case-patient {
  border-bottom: 1px solid var(--line);
}

.case-patient:last-child { border-bottom: 0; }

.case-patient summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.case-patient summary::-webkit-details-marker { display: none; }
.case-patient summary::after { content: "+"; color: var(--green); font-size: 1.4rem; }
.case-patient[open] summary::after { content: "−"; }
.case-patient-hint { color: var(--muted); font-size: 0.86rem; font-weight: 700; }

.case-patient-details {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  padding: 0 0 22px;
}

.cms-case-uploads {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafc;
}

.cms-add-case-button {
  border: 1px solid var(--green);
  border-radius: 10px;
  background: #edf9f1;
  color: #08773c;
  cursor: pointer;
  font-weight: 900;
  padding: 11px 15px;
}

.cms-case-dialog {
  width: min(650px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.cms-case-dialog::backdrop { background: rgba(23, 32, 51, 0.58); }

.cms-case-dialog form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 32px;
}

.cms-case-dialog h2 { margin: 0; color: var(--purple); }
.cms-case-dialog p { margin: 0; }
.cms-case-dialog-note { color: var(--muted); }

.cms-case-dialog label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.cms-case-dialog input,
.cms-case-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

.cms-case-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.cms-case-dialog-actions button { min-height: 42px; padding: 9px 15px; border-radius: 8px; font-weight: 800; }
.cms-case-dialog-status { min-height: 1.5em; color: var(--blue); font-weight: 700; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(23, 109, 180, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(240, 250, 246, 0.88)),
    linear-gradient(45deg, rgba(23, 109, 180, 0.08) 25%, transparent 25% 50%, rgba(21, 169, 67, 0.08) 50% 75%, transparent 75%);
  background-size: auto, 28px 28px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: min(92%, 560px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(45, 37, 139, 0.11);
}

.visual-card {
  position: absolute;
  width: min(260px, 46%);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.16);
}

.visual-card strong,
.visual-card span {
  display: block;
}

.visual-card span {
  margin-top: 4px;
  font-size: 0.86rem;
}

.card-care {
  right: 22px;
  bottom: 36px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.card-edu {
  left: 20px;
  top: 36px;
  background: linear-gradient(135deg, var(--green), var(--lime));
}

.notice-band {
  display: none;
  padding: 16px 24px;
  color: #214466;
  background: #eaf6ff;
  text-align: center;
}

.notice-band p {
  max-width: 1040px;
  margin: 0 auto;
  font-weight: 700;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0;
}

.page-hero {
  padding: 86px max(24px, calc((100vw - 1180px) / 2));
}

.page-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #42516b;
  font-size: 1.12rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.case-grid,
.programme-grid,
.people-grid,
.story-grid,
.involved-grid,
.legal-grid {
  display: grid;
  gap: 22px;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card,
.programme-grid article,
.mission-grid article,
.people-grid article,
.story-grid article,
.involved-grid article,
.legal-grid article,
.media-card,
.newsletter,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.07);
}

.case-card {
  overflow: hidden;
}

.case-media {
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 900;
}

.case-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.case-media.blue {
  background: linear-gradient(135deg, #1f88d2, #2d258b);
}

.case-media.green {
  background: linear-gradient(135deg, #0f9e54, #9bd21f);
}

.case-media.purple {
  background: linear-gradient(135deg, #392893, #176db4);
}

.case-body {
  padding: 22px;
}

.case-tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.case-meta strong {
  color: var(--ink);
}

.case-action {
  width: 100%;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 26px;
}

.about-panel {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--purple);
  color: var(--white);
}

.about-panel h2,
.about-panel .eyebrow {
  color: var(--white);
}

.about-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.mission-grid {
  display: grid;
  gap: 18px;
}

.mission-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-grid article {
  padding: 24px;
}

.mission-grid span {
  color: var(--blue);
  font-weight: 900;
}

.programmes {
  padding: 78px max(24px, calc((100vw - 1180px) / 2));
}

.programme-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.programme-grid article,
.people-grid article,
.story-grid article,
.involved-grid article {
  padding: 24px;
}

.programme-grid article {
  overflow: hidden;
}

.programme-thumb,
.detail-image {
  width: calc(100% + 48px);
  max-width: none;
  height: 170px;
  margin: -24px -24px 18px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.detail-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 20px;
  border: 0;
  border-radius: var(--radius);
}

.program-icon,
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 900;
}

.blue {
  background: var(--blue);
}

.green {
  background: var(--green);
}

.cyan {
  background: #0097a7;
}

.purple {
  background: var(--purple);
}

.amber {
  background: #f6a400;
}

.red {
  background: #d94841;
}

.leaf {
  background: #4d9d2f;
}

.ocean {
  background: #0877a9;
}

.people-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-grid article,
.policy-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.07);
}

.avatar {
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.where-band {
  color: var(--white);
  background:
    linear-gradient(rgba(45, 37, 139, 0.9), rgba(23, 109, 180, 0.9)),
    var(--blue);
}

.where-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.where-content h2,
.where-content .eyebrow {
  color: var(--white);
}

.where-content p {
  color: rgba(255, 255, 255, 0.86);
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
}

.location-list span,
.partner-strip span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.location-list.on-light span {
  color: var(--purple);
  background: #f2f7fb;
  border-color: var(--line);
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid article {
  border-left: 5px solid var(--green);
}

.involved {
  padding: 78px max(24px, calc((100vw - 1180px) / 2));
}

.involved-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partners .partner-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.partner-strip span {
  color: var(--purple);
  background: #f2f7fb;
  border-color: var(--line);
  text-align: center;
}

.media-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.media-card,
.newsletter {
  padding: 28px;
}

.newsletter {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter label {
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 1.3rem;
  font-weight: 900;
}

.newsletter div {
  display: flex;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}

.newsletter button {
  padding: 0 18px;
}

.form-note {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.legal-grid article {
  align-self: start;
  padding: 28px;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 34px;
  padding: 78px max(24px, calc((100vw - 1180px) / 2));
}

.contact-copy address {
  color: #34435b;
  font-style: normal;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-form label {
  color: #34435b;
  font-weight: 800;
}

.site-footer {
  color: rgba(255, 255, 255, 0.84);
  background: #171836;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0;
}

.footer-main img {
  width: 220px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--white);
}

.footer-main nav {
  display: grid;
  gap: 10px;
}

.footer-main a {
  color: var(--white);
  font-weight: 800;
}

.footer-notice {
  display: none;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.footer-action-card {
  position: relative;
  align-self: start;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(68, 43, 170, 0.92), rgba(18, 129, 114, 0.88));
  box-shadow: 0 18px 42px rgba(4, 6, 27, 0.28);
}

.footer-action-card::after {
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.footer-action-card .eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: #d9ff75;
}

.footer-action-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.footer-action-card > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
}

.footer-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-actions .open-donate,
.footer-actions a {
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.footer-actions .open-donate {
  color: #171836;
  background: #d9ff75;
}

.footer-actions a {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.footer-action-card .footer-help-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-actions .open-donate:hover,
.footer-actions .open-donate:focus-visible {
  background: var(--white);
}

.footer-actions a:hover,
.footer-actions a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.donate-modal {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.donate-modal::backdrop {
  background: rgba(23, 32, 51, 0.56);
}

.donate-modal > div,
.donate-modal form {
  position: relative;
  padding: clamp(22px, 4vw, 36px);
}

.donate-modal h2 {
  max-width: 540px;
  margin: 0 52px 10px 0;
  color: var(--purple);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.08;
}

.donate-modal > div > p:not(.eyebrow),
.donate-modal form > p:not(.eyebrow) {
  margin-bottom: 0;
  color: #42516b;
  font-size: 1rem;
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  font-size: 1.4rem;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.donation-options button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
  color: var(--purple);
  cursor: pointer;
  font-weight: 900;
}

.float-donate {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 18;
  display: none;
  border: 0;
  border-radius: var(--radius);
  padding: 13px 18px;
  background: var(--purple);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(45, 37, 139, 0.28);
}

.cms-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.cms-visual-shell {
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
}

.cms-full-preview {
  position: relative;
  height: calc(100vh - 130px);
  min-height: 620px;
  background: var(--white);
}

.cms-full-preview [hidden] {
  display: none !important;
}

.cms-full-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.cms-visual-shell .cms-editor {
  display: none;
}

.cms-preview {
  position: sticky;
  top: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.09);
}

.cms-image-tools {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}

.cms-image-tools-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cms-image-tools-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: #65738b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cms-image-tools-close:hover {
  border-color: #d97a7a;
  color: #a62121;
}

.cms-image-tools[hidden] {
  display: none;
}

.cms-image-tools input {
  min-width: 0;
  padding: 8px;
}

.cms-image-tools button {
  justify-self: start;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.cms-image-tools p {
  margin: 0;
  color: #65738b;
  font-size: 0.82rem;
}

.cms-floating-image-tools {
  position: fixed;
  top: 150px;
  right: 20px;
  z-index: 30;
  width: min(340px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cms-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.cms-preview-heading p {
  margin: 0 0 2px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-preview-heading button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #f7fafc;
  color: var(--purple);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.cms-preview iframe {
  display: block;
  width: 100%;
  height: min(75vh, 860px);
  border: 0;
  background: var(--white);
}

.cms-preview > p {
  margin: 0;
  padding: 12px 16px;
  color: #65738b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cms-tabs {
  position: sticky;
  top: 128px;
  align-self: start;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding-right: 4px;
}

.cms-tab-group {
  display: grid;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cms-tab-group > p {
  margin: 8px 4px 2px;
  color: #65738b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-tabs button,
.cms-actions button,
.cms-array button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 900;
  text-align: left;
}

.cms-tabs button {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.cms-tabs button small {
  color: #59677f;
  font-size: 0.72rem;
  font-weight: 600;
}

.cms-tabs button.active small {
  color: rgba(255, 255, 255, 0.82);
}

.cms-tabs button.active,
.cms-actions .primary {
  background: linear-gradient(90deg, var(--green), var(--blue));
  color: var(--white);
}

.cms-editor {
  display: grid;
  gap: 18px;
}

.cms-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.07);
}

.cms-panel.active {
  display: grid;
  gap: 16px;
}

.cms-panel-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cms-panel-heading h2 {
  margin: 0;
}

.cms-panel-heading p {
  margin: 5px 0 0;
  color: #65738b;
}

.cms-field {
  display: grid;
  gap: 6px;
  color: #34435b;
  font-weight: 800;
}

.cms-field textarea {
  min-height: 96px;
  resize: vertical;
}

.cms-array {
  display: grid;
  gap: 14px;
}

.cms-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #f7fafc;
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cms-top-actions {
  margin-top: 1.25rem;
}

.cms-global-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.cms-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 900;
}

.cms-admin-body {
  overflow: hidden;
  background: #e9eef5;
}

.cms-builder-header {
  position: relative;
  z-index: 50;
}

.cms-builder-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  overflow-x: auto;
  padding: 8px 18px;
  background: var(--white);
}

.cms-page-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 230px;
  color: #526178;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-page-control select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 34px 7px 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-transform: none;
}

.cms-viewport-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f3f6fa;
}

.cms-viewport-switcher button {
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  background: transparent;
  color: #526178;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.cms-viewport-switcher button.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.12);
}

.cms-builder-toolbar .cms-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cms-builder-toolbar .cms-header-actions a {
  padding: 8px 3px;
  color: #26324a;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.cms-builder-header .cms-header-status {
  min-height: 28px;
  margin: 0;
  padding: 5px 18px;
  border-top: 1px solid #edf1f6;
  background: #f7fafc;
  color: #176db4;
  font-size: 0.8rem;
}

.cms-admin-body .cms-full-preview {
  height: calc(100vh - 128px);
  min-height: 480px;
  overflow: auto;
  padding: 0;
  background: #dfe6ef;
}

.cms-preview-stage {
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.08), 0 16px 48px rgba(23, 32, 51, 0.12);
  transition: width 180ms ease;
}

.cms-preview-stage[data-viewport-mode="tablet"] {
  width: min(820px, 100%);
}

.cms-preview-stage[data-viewport-mode="mobile"] {
  width: min(390px, 100%);
}

.cms-preview-stage iframe {
  min-height: calc(100vh - 128px);
}

.cms-inspector {
  position: fixed;
  top: 128px;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  width: min(390px, calc(100vw - 24px));
  overflow-y: auto;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--white);
  box-shadow: -16px 0 42px rgba(23, 32, 51, 0.15);
}

.cms-inspector[hidden] {
  display: none;
}

.cms-inspector-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.cms-inspector-heading div {
  display: grid;
  min-width: 0;
}

.cms-inspector-heading small {
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-inspector-heading strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-inspector-heading button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: #5a687d;
  cursor: pointer;
  font-size: 1.2rem;
}

.cms-inspector-breadcrumb {
  display: grid;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}

.cms-inspector-breadcrumb button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.cms-inspector-breadcrumb code {
  overflow: hidden;
  color: #69778b;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-inspector-content {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.cms-inspector-device,
.cms-inspector-help {
  margin: 0;
  color: #647289;
  font-size: 0.8rem;
  line-height: 1.45;
}

.cms-inspector-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.cms-inspector-section > summary {
  padding: 12px 13px;
  color: var(--purple);
  cursor: pointer;
  font-weight: 900;
}

.cms-inspector-section[open] > summary {
  border-bottom: 1px solid var(--line);
}

.cms-inspector-section > :not(summary) {
  margin: 12px;
}

.cms-inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cms-inspector-field {
  display: grid;
  gap: 5px;
  color: #44536a;
  font-size: 0.74rem;
  font-weight: 800;
}

.cms-inspector-field input,
.cms-inspector-field textarea,
.cms-inspector-field select,
.cms-menu-row input,
.cms-gallery-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.cms-inspector-field textarea {
  min-height: 96px;
  resize: vertical;
}

.cms-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #44536a;
  font-size: 0.8rem;
  font-weight: 700;
}

.cms-check input {
  width: 17px;
  height: 17px;
}

.cms-inspector-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.cms-small-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #f7fafc;
  color: var(--purple);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.cms-small-button.danger {
  border-color: #f1c1c1;
  color: #a62121;
}

.cms-menu-editor,
.cms-menu-children,
.cms-gallery-editor {
  display: grid;
  gap: 9px;
}

.cms-menu-item {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #f7fafc;
}

.cms-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) repeat(3, 30px);
  gap: 5px;
}

.cms-menu-row.child {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px;
  margin-left: 12px;
}

.cms-menu-row button,
.cms-gallery-row button {
  display: grid;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  font-weight: 900;
}

.cms-gallery-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) repeat(3, 30px);
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.cms-gallery-row img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.cms-gallery-row div {
  display: grid;
  gap: 5px;
}

.cms-gallery-upload {
  display: grid;
  gap: 5px;
  color: #44536a;
  font-size: 0.76rem;
  font-weight: 800;
}

.cms-managed-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.cms-managed-gallery figure {
  margin: 0;
}

.cms-managed-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.cms-managed-gallery figcaption {
  padding-top: 7px;
  color: #5b687c;
  font-size: 0.85rem;
}

@media (max-width: 1040px) {
  .cms-visual-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .menu-toggle {
    display: block;
  }

  .primary-menu {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 120px;
    display: none;
    align-items: stretch;
    max-height: calc(100vh - 148px);
    overflow: auto;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-menu.is-open {
    display: flex;
  }

  .nav-panel,
  .nav-panel.wide {
    position: static;
    min-width: 0;
    grid-template-columns: 1fr;
    padding: 0 0 8px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .primary-menu > a,
  .nav-group > button {
    width: 100%;
    text-align: left;
  }

  .hero,
  .about-layout,
  .where-content,
  .media-legal,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    min-height: 420px;
  }

  .case-grid,
  .programme-grid,
  .people-grid,
  .story-grid,
  .involved-grid,
  .partners .partner-strip,
  .legal-grid,
  .mission-grid.three,
  .detail-grid,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-shell {
    grid-template-columns: 1fr;
  }

  .cms-tabs {
    position: static;
  }
}

@media (max-width: 700px) {
  .cms-settings-grid,
  .cms-settings-two-column {
    grid-template-columns: 1fr;
  }

  .cms-settings-grid .wide {
    grid-column: auto;
  }

  .seo-fallback-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-fallback-header nav ul {
    flex-direction: column;
  }
  .cms-full-preview {
    height: calc(100vh - 150px);
    min-height: 520px;
  }
  .cms-visual-shell {
    grid-template-columns: 1fr;
  }

  .cms-preview {
    position: static;
  }
  .trust-strip {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  .nav-shell {
    min-height: 76px;
  }

  .brand img {
    width: 160px;
  }

  .donate-btn {
    display: none;
  }

  .primary-menu {
    top: 132px;
  }

  .hero,
  .programmes,
  .involved,
  .contact {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .impact-row,
  .case-grid,
  .programme-grid,
  .people-grid,
  .story-grid,
  .involved-grid,
  .partners .partner-strip,
  .legal-grid,
  .mission-grid.three,
  .detail-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .section-heading.split,
  .footer-bottom,
  .newsletter div {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 360px;
  }

  .visual-card {
    position: static;
    width: calc(100% - 32px);
    margin: 8px auto;
  }

  .hero-visual img {
    width: calc(100% - 32px);
    margin: 16px auto 8px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .donation-options {
    grid-template-columns: 1fr;
  }

  .float-donate {
    display: inline-flex;
  }
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  counter-reset: process;
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 150px;
  padding: 60px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 54, 84, 0.08);
  color: var(--ink);
}

.process-list li::before {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-weight: 800;
  counter-increment: process;
  content: counter(process);
}

.check-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  color: var(--ink);
}

.status-note {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid #f2aa00;
  border-radius: 8px;
  background: #fff8df;
  color: #423d2d;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 54, 84, 0.06);
}

.faq-list summary {
  padding: 20px 56px 20px 22px;
  color: var(--purple);
  font-weight: 800;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
}

.policy-body h2 {
  margin-top: 30px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.consent-row {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  justify-self: start;
}

.consent-row > span { display: block; min-width: 0; }
.consent-row a { padding: 1px 4px; border-radius: 4px; background: rgba(23, 109, 180, 0.12); color: var(--blue); font-weight: 850; text-decoration: none; }
.consent-row a:hover, .consent-row a:focus-visible { background: rgba(21, 169, 67, 0.16); color: #08773c; }

.form-note.is-success {
  color: #08773c;
  font-weight: 700;
}

.form-note.is-error {
  color: #a52121;
  font-weight: 700;
}

button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

.donation-options a {
  display: grid;
  min-height: 56px;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--purple);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.donation-options a:hover,
.donation-options a:focus-visible {
  border-color: var(--green);
  color: #08773c;
}

.case-support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(36px, 6vw, 84px) max(24px, calc((100vw - 1180px) / 2));
}

.case-support-story { display: grid; gap: 18px; }
.case-support-story h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1; }
.case-support-story > p { max-width: 68ch; margin: 0; font-size: 1.06rem; line-height: 1.75; }
.case-support-image { overflow: hidden; min-height: 340px; border-radius: 28px; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.case-support-image img { display: block; width: 100%; height: clamp(340px, 45vw, 560px); object-fit: cover; }
.case-support-location { color: var(--blue); font-weight: 800; }
.donation-social { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.76); }
.donation-social > p { margin: 0; color: var(--ink); font-size: .86rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.donation-social > div { display: flex; flex-wrap: wrap; gap: 10px; }
.donation-social a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 14px; border: 1px solid rgba(45,37,139,.15); border-radius: 999px; background: #fff; color: var(--purple); font-weight: 800; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.donation-social a:hover, .donation-social a:focus-visible { border-color: var(--green); box-shadow: 0 8px 20px rgba(21,169,67,.12); color: #08773c; transform: translateY(-1px); }
.donation-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.donation-photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.donation-photo-gallery figure { overflow: hidden; margin: 0; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(45,37,139,.1); }
.donation-photo-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.donation-photo-gallery figcaption { padding: 11px 14px; color: var(--ink); font-size: .9rem; font-weight: 700; }

.donation-checkout { position: sticky; top: 110px; padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(45,37,139,.12); border-radius: 28px; background: var(--white); box-shadow: 0 24px 60px rgba(45,37,139,.14); }
.donation-checkout h2 { margin: 4px 0 10px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.donation-checkout form, .donation-checkout fieldset { display: grid; gap: 16px; }
.donation-checkout fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.donation-checkout legend, .donation-checkout label { font-weight: 750; }
.donation-checkout input { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.amount-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.amount-options button { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--purple); font-weight: 850; cursor: pointer; }
.amount-options button:hover, .amount-options button.active { border-color: var(--green); background: rgba(21,169,67,.1); color: #08773c; }
.donation-checkout .primary-action { width: 100%; }
.donation-security { margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }

.general-donation-page { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(36px, 6vw, 84px) max(24px, calc((100vw - 1180px) / 2)); }
.general-donation-intro { display: grid; gap: 20px; }
.general-donation-intro > h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; }
.general-donation-intro > p { margin: 0; font-size: 1.08rem; }
.governance-grid { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
.donation-programme-list { display: flex; flex-wrap: wrap; gap: 10px; }
.donation-programme-list a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--purple); font-weight: 750; text-decoration: none; }
.donation-programme-list a:hover, .donation-programme-list a.active { border-color: var(--green); background: var(--green); color: #fff; }
.selected-programme-card { overflow: hidden; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); border-radius: 24px; background: var(--purple); color: #fff; box-shadow: 0 22px 50px rgba(45,37,139,.16); }
.selected-programme-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.selected-programme-card div { display: grid; align-content: center; gap: 10px; padding: 28px; }
.selected-programme-card span { color: #9ce8ba; font-size: .8rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.selected-programme-card h2, .selected-programme-card p { margin: 0; }

.inbox-list {
  display: grid;
  gap: 18px;
}

@media (max-width: 900px) {
  .hero.hero-slider { height: clamp(400px, 58vh, 580px); min-height: 0; padding: 0; }
  .hero-slider-controls > [data-hero-prev] { left: 16px; }
  .hero-slider-controls > [data-hero-next] { right: 16px; }
  .hero-intro { grid-template-columns: 1fr; }
  .case-support-hero { grid-template-columns: 1fr; }
  .general-donation-page { grid-template-columns: 1fr; }
  .donation-checkout { position: static; }
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .donation-photo-gallery { grid-template-columns: 1fr; }
  .hero.hero-slider { height: clamp(320px, 48vh, 460px); min-height: 0; }
  .hero-slide-caption { right: 68px; bottom: 72px; left: 28px; max-width: none; }
  .hero-slide-caption h2 { font-size: clamp(2rem, 10vw, 3.25rem); }
  .hero-slide-caption p { font-size: .95rem; line-height: 1.45; }
  .governance-grid { grid-template-columns: minmax(0, 520px); }
  .selected-programme-card { grid-template-columns: 1fr; }
  .process-list {
    grid-template-columns: 1fr;
  }

  .case-filter { align-items: flex-start; flex-direction: column; }
  .case-directory-grid { grid-template-columns: 1fr; }
  .case-patient-list { padding: 8px 16px 16px; }
  .case-patient-details { grid-template-columns: 1fr; }
  .case-patient-hint { display: none; }
  .cms-case-uploads { grid-template-columns: 1fr; }
}

/* Preserve line and paragraph breaks entered through the CMS content editor. */
p, li, dd, dt, address {
  white-space: pre-line;
}
