/* Anisia's Hope – Fighting Batten Disease
   Logo-matched pastel system (lavender / pink-lilac / soft cyan) · CIO 1219714 */

:root {
  --bg: #FBF7FC;
  --surface: #FFFFFF;
  --primary: #7B6BB5;
  --primary-dark: #5E528F;
  --accent: #5BA8C4;
  --accent-soft: #E8F6FA;
  --lilac-soft: #F0E8F8;
  --pink-soft: #F8E8F4;
  --ink: #2A2438;
  --muted: #5C5668;
  --border: #E6DDEC;
  /* Aliases so legacy class names keep working during transition */
  --teal: var(--primary);
  --teal-dark: var(--primary-dark);
  --teal-tint: var(--lilac-soft);
  --terracotta: var(--accent);
  --terracotta-soft: var(--pink-soft);
  --shadow: 0 8px 28px rgba(42, 36, 56, 0.08);
  --shadow-sm: 0 2px 10px rgba(42, 36, 56, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: 1160px;
  --header-h: 72px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(123, 107, 181, 0.22);
  color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.65rem;
}

h1 { font-size: clamp(2.35rem, 4.2vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible { top: 1rem; outline: 3px solid var(--accent); outline-offset: 2px; }

/* Layout */
.container {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(2.75rem, 5.5vw, 4.25rem) 0;
}

.section--cream { background: var(--bg); }
.section--white { background: var(--surface); }
.section--teal { background: var(--lilac-soft); }
.section--accent { background: var(--accent-soft); }
.section--ink {
  background: linear-gradient(145deg, var(--primary-dark) 0%, #3A3258 55%, #2A2438 100%);
  color: #F8F5FB;
}
.section--ink h2,
.section--ink p { color: #F8F5FB; }
.section--ink .muted { color: rgba(248, 245, 251, 0.88); }

.section-intro {
  max-width: 38rem;
  margin-bottom: 1.85rem;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.55rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(123, 107, 181, 0.28);
  border-radius: var(--radius-pill);
}
.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-dark);
  border-color: var(--primary);
  border-radius: var(--radius-pill);
}
.btn--secondary:hover {
  background: var(--lilac-soft);
  color: var(--primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--border);
  border-radius: var(--radius-pill);
}
.btn--outline:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn--on-dark {
  background: #fff;
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
}
.btn--on-dark:hover {
  background: var(--lilac-soft);
  color: var(--primary-dark);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.btn--disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 252, 0.94);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 8px;
}
.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 2px solid #fff;
  /* Optical nudge: circular marks often sit high visually */
  margin-top: 1px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.12;
  padding-top: 1px;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand__tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-top: 0.12rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-toggle:hover {
  background: var(--teal-tint);
  border-color: var(--teal);
}
.nav-toggle:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}
.nav-toggle__bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
  transition: background var(--dur) var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__links a:hover {
  color: var(--teal-dark);
  border-bottom-color: rgba(123, 107, 181, 0.35);
}
.nav__links a[aria-current="page"] {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}
.nav__links a:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
  border-radius: 2px;
}
/* Donate always high-contrast in header */
.nav .btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  min-height: 2.55rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.94rem;
  box-shadow: 0 3px 10px rgba(123, 107, 181, 0.25);
  border-radius: var(--radius-pill);
}
.nav .btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}
.nav .btn--primary[aria-current="page"] {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(232, 246, 250, 0.95) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(240, 232, 248, 0.98) 0%, transparent 50%),
    linear-gradient(180deg, #FBF7FC 0%, #F3ECF8 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.25rem);
  min-height: 0;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.95rem;
  letter-spacing: 0.02em;
}
.hero__copy h1 { margin-bottom: 0.85rem; max-width: 22ch; }
.hero__copy .lead {
  margin-bottom: 0;
  max-width: 36rem;
  color: var(--muted); /* AA on lilac-cream overlay */
}
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__visual img {
  width: min(100%, 420px);
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 18px 40px rgba(42, 36, 56, 0.18);
  filter: drop-shadow(0 12px 24px rgba(42, 36, 56, 0.14));
}
.hero__clinical {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 36rem;
}
.hero__cta-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.donate-soon-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(248, 245, 251, 0.82);
}

/* Trust strip */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 1.35rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-strip__inner span[aria-hidden="true"] {
  color: var(--border);
  font-weight: 400;
}
.trust-strip strong { color: var(--ink); font-weight: 700; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.55rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #d8cfe6;
}
.card__icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--teal-tint);
  color: var(--teal-dark);
  margin-bottom: 0.95rem;
}
.card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Story band */
.story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.story__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.story__quote-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.65rem 1.5rem 1.55rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.story__quote-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(251,247,252,0.92) 0%, rgba(240,232,248,0.78) 55%, rgba(232,246,250,0.72) 100%),
    url("../assets/hero-bg.jpg") center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.story__quote-panel > * { position: relative; }
.story__quote-panel blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.story__quote-panel .quote-attr {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  font-style: normal;
  font-family: var(--font-sans);
}
.charity-lockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.charity-lockup__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.charity-lockup__number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal-dark);
  line-height: 1.1;
}
.charity-lockup__meta {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.story blockquote {
  margin: 1.15rem 0;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 3px solid var(--terracotta);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}
.prose .text-link,
.story .text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.story .text-link:hover { color: var(--terracotta); }
.story .text-link:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}
.story .text-link::after { content: "→"; }

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 1.75rem;
  background:
    linear-gradient(180deg, rgba(251,247,252,0.96) 0%, rgba(240,232,248,0.88) 55%, var(--bg) 100%),
    url("../assets/hero-bg.jpg") top center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 0.65rem; }

/* Prose content */
.prose {
  max-width: 42rem;
}
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}
.prose li { margin-bottom: 0.4rem; }
.prose li strong { color: var(--ink); }
.prose .callout {
  margin: 1.4rem 0;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
}
.prose .callout--warn {
  border-left-color: var(--terracotta);
  background: var(--terracotta-soft);
}
.prose .callout--warn strong { color: var(--ink); }

/* Pull quote (About) */
.pull-quote {
  margin: 1.75rem 0;
  padding: 1.5rem 1.4rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
}
.pull-quote::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  left: 0.85rem;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.35;
}
.pull-quote blockquote {
  margin: 0 0 0.85rem;
  padding: 0.5rem 0 0 0.5rem;
  border: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink);
}
.pull-quote blockquote:last-of-type { margin-bottom: 0; }
.pull-quote .quote-note {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
  font-style: normal;
}

/* Object list (About refined) */
.object-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.object-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.object-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.object-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--teal-tint);
  color: var(--teal-dark);
  flex-shrink: 0;
}
.object-item__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.object-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.object-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Section divider */
.section-break {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.65rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}
.contact-form-card > .muted {
  margin-bottom: 1.25rem;
}
.form-grid {
  display: grid;
  gap: 0.95rem;
}
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(123, 107, 181, 0.18);
}
.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
}
.trust-line {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
}
.trust-line strong { color: var(--ink); }

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.info-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 0.55rem; }
.info-card p, .info-card li { color: var(--muted); }
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card li { margin-bottom: 0.35rem; }
.info-card a { font-weight: 600; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.info-card a:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 2px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.social-chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-tint);
}
.social-chip:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

/* Donate layout */
.donate-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  align-items: start;
}
.donate-panel {
  position: sticky;
  top: calc(var(--header-h) + 0.85rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.55rem 1.45rem 1.5rem;
  box-shadow: var(--shadow);
}
.donate-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--lilac-soft);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.donate-panel h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.donate-panel .btn { width: 100%; margin-top: 1rem; }
.donate-objects {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.donate-objects li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.55rem 0.65rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid transparent;
}
.donate-objects li strong {
  color: var(--ink);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}
.donate-objects .obj-mark {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}
.donate-objects .obj-mark svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.donate-note {
  margin-top: 0.95rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.donate-panel__divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.15rem 0;
}
.gift-aid-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.3rem;
  background: var(--accent-soft);
  border: 1px solid #c5dde8;
  border-radius: 14px;
}
.gift-aid-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  color: var(--primary-dark);
}
.gift-aid-box p { color: var(--muted); font-size: 0.96rem; }

/* Footer */
.site-footer {
  background: #2A2438;
  color: #D8D2E2;
  padding: 2.75rem 0 1.5rem;
}
.site-footer a { color: #EDE8F4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a:focus-visible {
  outline: 2px solid #A8C8E8;
  outline-offset: 3px;
  border-radius: 2px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem 1.35rem;
  margin-bottom: 2rem;
}
.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #FBF7FC;
  margin-bottom: 0.45rem;
}
.footer-brand p { font-size: 0.92rem; color: #B0A8BC; max-width: 22rem; }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B0A8BC;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.footer-col .charity-num {
  color: #FBF7FC;
  font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid #453C58;
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #B0A8BC;
}
.footer-legal { max-width: 48rem; }

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1.25rem;
}

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}
.about-aside-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 0.85rem);
}


/* Parent pathway */
.pathway {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.pathway__intro {
  max-width: 38rem;
  margin-bottom: 1.35rem;
}
.pathway__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.pathway__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.pathway-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pathway-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #d8cfe6;
  color: inherit;
}
.pathway-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.pathway-card--accent {
  background: linear-gradient(160deg, var(--lilac-soft) 0%, var(--accent-soft) 100%);
}
.pathway-card__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.45rem;
}
.pathway-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}
.pathway-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}
.pathway-card__cta {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

/* Governance strip */
.governance-strip {
  background: var(--lilac-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
}
.governance-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
}
.governance-strip h2 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}
.governance-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.governance-strip__list strong { color: var(--ink); }
.governance-strip__list a { font-weight: 600; }

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 960px) {
  .pathway__grid,
  .pathway__grid--3,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
  .governance-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero__inner,
  .story,
  .donate-layout,
  .footer-grid,
  .about-split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { order: 1; }
  .hero__visual { order: 2; margin-top: 0.5rem; }
  .hero__copy h1 { max-width: none; }
  .hero__visual img { width: min(100%, 320px); }
  .card-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .donate-panel,
  .about-aside-stack { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .brand__tag { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { position: relative; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem 1.15rem;
    background: rgba(251, 247, 252, 0.99);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }
  .nav__links a {
    padding: 0.7rem 0.35rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__links a[aria-current="page"] {
    border-bottom-color: var(--teal);
  }
  .nav .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { width: min(100% - 1.75rem, var(--max)); }
  .hero__inner { min-height: 0; padding: 2.25rem 0 2rem; }
}


/* Quiet donate link under hero CTAs */
.quiet-link {
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.quiet-link:hover { color: var(--primary); }

/* Status badges (programmes / aims) */
.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--lilac-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.75rem;
}
.card--status .status-badge { margin-bottom: 0.85rem; }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.15rem 1.1rem 0.15rem;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.95rem 0;
  list-style: none;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--primary);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item__body {
  padding: 0 0 1.1rem;
  color: var(--muted);
}
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item__body ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* 12-month goals */
.goals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.goals-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.goals-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}
.goals-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.goals-list .status-badge { margin-bottom: 0; margin-top: 0.15rem; }

/* Newsletter strip */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.newsletter__action {
  flex: 0 1 18rem;
}
.newsletter__action .form-hint {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .goals-list > li {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .info-card, .object-item, .social-chip, .nav__links a {
    transition: none;
  }
  .btn:hover, .card:hover, .info-card:hover, .object-item:hover {
    transform: none;
  }
}


/* Verbatim charitable objects (constitution Clause 3) */
.objects-verbatim {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: var(--cream, #f7f4ef);
  border: 1px solid rgba(45, 40, 70, 0.08);
  border-radius: 12px;
}
.objects-verbatim__list {
  margin: 0.75rem 0 1rem 1.25rem;
  padding: 0;
}
.objects-verbatim__list li {
  margin-bottom: 0.55rem;
  color: var(--ink, #2d2846);
}
.objects-verbatim__note {
  margin-top: 0.65rem;
  font-size: 0.95rem;
}

/* Research & updates — CLN hub grid */
.cln-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.cln-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.05rem 1.05rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cln-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #d8cfe6;
  color: inherit;
  text-decoration: none;
}
.cln-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.cln-card__label {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.cln-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.cln-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.35rem;
}
@media (max-width: 960px) {
  .cln-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cln-grid { grid-template-columns: repeat(2, 1fr); }
}

.page-hero__sub {
  display: inline;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.placeholder-note {
  padding: 0.85rem 1rem;
  background: var(--lilac-soft);
  border: 1px dashed #d4c6e6;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.98rem;
}
.disclaimer-block {
  background: var(--accent-soft);
  border: 1px solid #c5e4ef;
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.25rem;
}
.disclaimer-block h2 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}
.disclaimer-block--compact {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
}
.disclaimer-block--compact p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.back-link {
  margin-top: 2rem;
  font-weight: 600;
}
.back-link a { text-decoration: none; }
.back-link a:hover { text-decoration: underline; }


/* CLN card dual links (Overview | Open trials) */
.cln-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.cln-card__links a {
  color: var(--accent);
  text-decoration: none;
}
.cln-card__links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.cln-card__sep {
  color: var(--border);
  font-weight: 400;
}

/* Overview → Open trials CTA card */
.trials-cta {
  margin: 1.75rem 0 2rem;
  padding: 1.25rem 1.3rem 1.2rem;
  background: var(--accent-soft);
  border: 1px solid #c5e4ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.trials-cta__title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.trials-cta__text {
  color: var(--muted);
  margin-bottom: 1rem;
}
.trials-cta .btn { margin-top: 0.15rem; }

/* Related links on trials pages */
.page-nav-links {
  margin: 2rem 0 0;
  padding: 1.1rem 1.2rem;
  background: var(--lilac-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.page-nav-links ul {
  margin: 0;
  padding-left: 1.15rem;
}
.page-nav-links li { margin-bottom: 0.35rem; }
.page-nav-links li:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .cln-card { transition: none; }
  .cln-card:hover { transform: none; }
}


/* Practical steps (newly diagnosed) */
.steps-list {
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.35rem;
  max-width: 42rem;
}
.steps-list li {
  margin-bottom: 0.85rem;
  padding-left: 0.35rem;
}
.steps-list li::marker {
  font-weight: 700;
  color: var(--primary-dark);
}

/* Disabled donate control rendered as non-link */
p.btn.btn--disabled {
  margin: 1rem 0 0;
  text-align: center;
  cursor: not-allowed;
  pointer-events: none;
}

