﻿:root {
  --paper: #f8f7f1;
  --ink: #102b28;
  --muted: #465b55;
  --green: #087a38;
  --blue: #07539d;
  --yellow: #ffc600;
  --white: #fff;
  --line: #c5d0c8;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --round: 1.25rem;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
  line-height: 1.5;
}
a {
  color: inherit;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -8rem;
  left: 1rem;
  background: white;
  color: var(--ink);
  padding: 1rem;
  z-index: 20;
}
.skip:focus {
  top: 1rem;
}
.header {
  position: absolute;
  z-index: 5;
  top: 1rem;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: var(--paper);
  border-radius: 3rem;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
}
.brand img {
  border-radius: 50%;
  object-fit: cover;
}
.menu summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  background: var(--paper);
  border-radius: 3rem;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(22rem, 100%);
  background: var(--paper);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem #102b2830;
  display: grid;
  gap: 0.2rem;
}
.menu nav a {
  padding: 0.7rem;
  text-decoration: none;
  font-weight: 600;
}
.nav-action {
  background: var(--green);
  color: white;
  border-radius: 3rem;
  text-align: center;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.055em;
  line-height: 1.02;
}
h1 {
  font-size: clamp(2.75rem, 8vw, 8.5rem);
  margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  margin-bottom: 1.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 1rem 1.4rem;
  border-radius: 4rem;
  text-decoration: none;
  font-weight: 700;
  min-height: 3.5rem;
}
.pill-dark {
  background: var(--ink);
  color: white;
}
.pill-light {
  background: white;
  color: var(--ink);
}
.pill:hover,
.nav-action:hover {
  background: var(--yellow);
  color: var(--ink);
}
.hero {
  min-height: 44rem;
  min-height: 100svh;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  padding: 9rem var(--gutter) 7rem;
  overflow: hidden;
  background: var(--blue);
}
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 35, 43, 0.78),
    rgba(5, 35, 43, 0.12)
  );
}
.hero-content {
  position: relative;
  max-width: 55rem;
}
.hero-copy {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  max-width: 29rem;
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 700;
}
.focus {
  display: grid;
}
.focus-panel {
  min-height: 27rem;
  position: relative;
  overflow: hidden;
  padding: 2rem var(--gutter);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.focus-panel h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  margin-top: 0.5rem;
}
.focus-panel .eyebrow {
  position: relative;
  z-index: 1;
}
.focus-education {
  background: #e7ede2;
}
.focus-care {
  background: #d8e8e9;
}
.focus-jobs {
  background: #e8ebd6;
}
.focus-arrow {
  position: absolute;
  z-index: 1;
  top: 2rem;
  right: 2rem;
  font-size: 1.5rem;
}
.focus-panel:hover .focus-arrow {
  transform: translate(4px, -4px);
}
.focus-art {
  position: absolute;
  bottom: -4rem;
  right: 3%;
  width: 65%;
  height: 15rem;
}
.art-book span {
  position: absolute;
  width: 47%;
  height: 80%;
  background: var(--green);
  border-radius: 1rem 1rem 0 0;
  bottom: 0;
  transform: skewY(8deg);
}
.art-book span + span {
  left: 48%;
  background: #199454;
  transform: skewY(-8deg);
}
.art-water span {
  position: absolute;
  inset: 1rem 20% 0;
  border-radius: 60% 60% 50% 50%;
  background: var(--blue);
  transform: rotate(45deg);
}
.art-grow span {
  position: absolute;
  bottom: 0;
  left: 44%;
  width: 1rem;
  height: 80%;
  background: var(--green);
  border-radius: 1rem;
}
.art-grow span + span {
  left: 12%;
  bottom: 5rem;
  width: 38%;
  height: 6rem;
  border-radius: 90% 0 90% 0;
  transform: rotate(25deg);
}
.art-grow span + span + span {
  left: 47%;
  bottom: 9rem;
  transform: scaleX(-1) rotate(25deg);
}
.section {
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
}
.mission {
  display: grid;
  gap: 2rem;
}
.mission-copy p,
.story-intro p:not(.eyebrow),
.impact-content p:not(.eyebrow),
.join p:not(.eyebrow) {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  max-width: 35rem;
}
.mission-copy p,
.story-intro p:not(.eyebrow) {
  color: var(--muted);
}
.story {
  background: #edf0e9;
  display: grid;
  gap: 4rem;
}
.step {
  border-top: 1px solid #8da198;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  padding: 2rem 0;
}
.step-number {
  font-size: 0.8rem;
  font-weight: bold;
}
.step h3 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: 0.75rem;
}
.step p {
  max-width: 28rem;
  color: var(--muted);
}
.step a {
  font-size: 1.6rem;
  text-decoration: none;
}
.impact {
  background: var(--blue);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 40rem;
  display: flex;
  align-items: center;
}
.impact-content {
  position: relative;
  z-index: 1;
}
.impact-orbit {
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: min(65vw, 50rem);
  aspect-ratio: 1;
  border: 1px solid #ffffff80;
  border-radius: 50%;
}
.impact-orbit:before,
.impact-orbit:after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid #ffffff60;
  border-radius: 50%;
}
.impact-orbit:after {
  inset: 25%;
}
.orbit-sun {
  position: absolute;
  top: 10%;
  left: 22%;
  width: 18%;
  aspect-ratio: 1;
  background: var(--yellow);
  border-radius: 50%;
}
.orbit-wave {
  position: absolute;
  bottom: 15%;
  left: 10%;
  width: 75%;
  height: 20%;
  border-radius: 50%;
  background: var(--green);
  transform: rotate(-25deg);
}
.join {
  min-height: 35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.coming {
  min-height: 70vh;
  padding-top: 10rem;
}
.coming p:not(.eyebrow) {
  font-size: 1.2rem;
}
.will-reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.is-visible {
  opacity: 1;
  transform: none;
}
@media (min-width: 1100px) {
  .header {
    top: 1.5rem;
  }
  .menu summary {
    display: none;
  }
  .menu nav {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    background: var(--paper);
    padding: 0.35rem;
    border-radius: 3rem;
    box-shadow: none;
    gap: 0.1rem;
  }
  .menu nav a {
    font-size: 0.72rem;
    padding: 0.7rem 0.5rem;
  }
  .menu nav .nav-action {
    padding: 0.8rem 1rem;
  }
  .focus {
    grid-template-columns: repeat(3, 1fr);
  }
  .focus-panel {
    min-height: 38rem;
    padding: 2rem;
  }
  .mission {
    grid-template-columns: 1fr 2fr;
  }
  .story {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
  .story-intro {
    position: sticky;
    top: 4rem;
    align-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .will-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .focus-arrow {
    transition: none;
  }
}

/* Flex children must be allowed to shrink to narrow phone viewports. */
.hero-content {
  min-width: 0;
  width: 100%;
}
.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.brand {
  justify-self: start;
}
.menu {
  min-width: 0;
}
.menu summary {
  white-space: nowrap;
}
.step {
  grid-template-columns: 2rem minmax(0, 1fr) auto;
}
.pill {
  max-width: 100%;
  gap: clamp(1rem, 5vw, 3rem);
}

/* Shared public pages use the home palette and a calmer reading measure. */
:root {
  --surface-raised: #fff;
  --surface-soft: #e7ede2;
  --error-surface: #fcebea;
  --error-ink: #8b2020;
  --control-line: #697e75;
  --motion-hover: 240ms;
  --motion-ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}
.public-inner .header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin: 1rem var(--gutter);
}
.public-inner .header .brand {
  background: var(--surface-raised);
}
.content-page,
.donation-page {
  min-height: 65vh;
  padding-top: clamp(3rem, 6vw, 6rem);
}
.reading-content {
  max-width: 48rem;
  margin-inline: auto;
}
.reading-content h1,
.donation-intro h1 {
  font-size: clamp(2.75rem, 5.5vw, 5.5rem);
  overflow-wrap: break-word;
}
.reading-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5rem;
  letter-spacing: -0.03em;
}
.reading-content p,
.reading-content li {
  color: var(--muted);
  font-size: 1.0625rem;
}
.reading-content li + li {
  margin-top: 0.5rem;
}
.reading-content a:not(.pill):not(.button) {
  text-underline-offset: 0.25em;
}
.donation-page {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.donation-intro p {
  max-width: 30rem;
  font-size: 1.25rem;
  color: var(--muted);
}
.donation-intro .donation-note {
  font-size: 1rem;
}
.donation-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 3rem);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--round);
}
.donation-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}
.stack {
  display: grid;
  gap: 1.5rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
label,
legend {
  font-weight: 600;
}
.field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--control-line);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  font: inherit;
  background: var(--surface-raised);
  color: var(--ink);
}
.hint {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}
.choices {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.choices legend {
  padding: 0;
  margin-bottom: 1rem;
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.amount-choice {
  position: relative;
}
.amount-choice input {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  accent-color: var(--green);
}
.amount-choice label {
  display: block;
  padding: 1rem 1rem 1rem 2.25rem;
  border: 1px solid var(--control-line);
  border-radius: 0.5rem;
  cursor: pointer;
}
.amount-choice input:checked + label {
  background: var(--surface-soft);
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.amount-choice input:focus-visible + label {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: 4rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.error-summary {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--error-ink);
  background: var(--error-surface);
  color: var(--error-ink);
}
.error-summary h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  letter-spacing: normal;
}
.error-summary ul {
  padding-left: 1.25rem;
  margin: 0;
}
.notice {
  padding: 1.25rem;
  border: 1px solid var(--control-line);
  border-radius: 0.5rem;
}
.text-link {
  display: inline-block;
  padding-block: 0.75rem;
  text-underline-offset: 0.25em;
}
.focus-topic {
  font-size: 1rem;
  font-weight: 600;
}
.mission {
  display: block;
}
.mission-copy {
  max-width: 54rem;
  margin-inline: auto;
}
.step a {
  align-self: start;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  padding-block: 0.5rem;
}
a,
button,
summary,
.amount-choice label {
  transition:
    background-color var(--motion-hover) var(--motion-ease),
    color var(--motion-hover) var(--motion-ease),
    border-color var(--motion-hover) var(--motion-ease),
    box-shadow var(--motion-hover) var(--motion-ease);
}
@media (hover: hover) {
  .menu nav a:not(.nav-action):hover {
    background: var(--surface-soft);
    border-radius: 2rem;
  }
  .button:hover {
    background: var(--green);
  }
  .amount-choice label:hover {
    background: var(--surface-soft);
  }
  .footer nav a:hover,
  .text-link:hover,
  .step a:hover {
    color: var(--green);
  }
}
a:active,
button:active {
  opacity: 0.85;
}
.public-inner :focus-visible {
  outline-color: var(--blue);
}
@media (min-width: 900px) {
  .donation-page {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 6rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  a,
  button,
  summary,
  .amount-choice label {
    transition: none;
  }
}

/* Compact footer: a single desktop row with natural wrapping on phones. */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding: 0.75rem var(--gutter);
  background: var(--ink);
  color: var(--white);
  font-size: 0.875rem;
}
.footer-brand {
  font-size: inherit;
  font-weight: 600;
  text-decoration: none;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-underline-offset: 0.25em;
}
@media (hover: hover) {
  .footer nav a:hover {
    color: var(--yellow);
  }
}

/* ---------------------------------------------------------------- Menu groups
   The header has three groups (Our work, About, Get involved) instead of a tab
   for every page. Each is a <details>, so it opens without JavaScript. */
.nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.4rem 0.9rem;
  display: grid;
}
.nav-group li a {
  display: block;
}
/* Higher specificity than ".menu summary", which styles (and on wide screens
   hides) the phone "Menu" button and would otherwise catch these too. */
.menu .nav-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.7rem;
  border-radius: 2rem;
  background: none;
  font-weight: 600;
}
/* A small arrow drawn in CSS, so no image is downloaded for it. */
.nav-group > summary::after {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}
.nav-group[open] > summary::after {
  transform: translateY(0.12rem) rotate(-135deg);
}
/* "You are here": the open page, and the group it belongs to. */
.menu nav a[aria-current="page"],
.menu .nav-group > summary.is-here {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.menu nav a.nav-action {
  padding: 0.8rem 1.2rem;
  margin-top: 0.4rem;
}
@media (hover: hover) {
  .menu .nav-group > summary:hover {
    background: var(--surface-soft);
  }
}
@media (min-width: 1100px) {
  .nav-group {
    position: relative;
  }
  .menu .nav-group > summary,
  .menu nav a {
    font-size: 0.875rem;
    padding: 0.7rem 0.9rem;
  }
  /* The list drops below its group as a small panel. */
  .nav-group ul {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    z-index: 6;
    min-width: 13rem;
    padding: 0.5rem;
    background: var(--paper);
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem #102b2830;
  }
  /* The last group sits near the right edge, so its panel opens leftwards. */
  .nav-group:last-of-type ul {
    left: auto;
    right: 0;
  }
  .menu nav a.nav-action {
    margin: 0 0 0 0.3rem;
    padding: 0.8rem 1.1rem;
  }
}

/* ---------------------------------------------------------------- Sign-in pages
   Log in, donor sign-up, staff invites, two-step sign-in and the account page.
   One centered card on the paper background, in the same palette as the rest
   of the public site. */
.auth-page {
  display: flex;
  justify-content: center;
}
.auth-card {
  width: min(100%, 30rem);
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--round);
}
.auth-card-wide {
  width: min(100%, 40rem);
}
.auth-card h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
}
.auth-card h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.5rem;
}
.auth-lede {
  color: var(--muted);
  font-size: 1.0625rem;
}
.auth-card .button {
  width: 100%;
}
.auth-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.auth-foot p {
  margin-bottom: 0.75rem;
}
.auth-card a:not(.button):not(.google-button) {
  text-underline-offset: 0.2em;
}
.auth-card .error-summary p {
  margin: 0;
}
.auth-card .error-summary p + p {
  margin-top: 0.5rem;
}

/* "or" with a line either side, between the password form and Google. */
.auth-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

/* Google's guidance: white button, their "G", dark text. */
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--control-line);
  border-radius: 4rem;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* A checkbox with its label beside it (the consent box). */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--green);
}
.check label {
  font-weight: 400;
}

.flash {
  margin: 1rem var(--gutter) 0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
}
.flash-success {
  background: var(--surface-soft);
  color: var(--ink);
  border-left: 4px solid var(--green);
}
.flash-error {
  background: var(--error-surface);
  color: var(--error-ink);
  border-left: 4px solid var(--error-ink);
}
.public-home .flash {
  position: relative;
  z-index: 6;
  margin-top: 6rem;
}

/* Two-step sign-in setup. */
.qr {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.setup-key code,
.backup-codes code {
  font-family: "Courier New", monospace;
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}
.backup-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  list-style: none;
  background: var(--surface-soft);
  border-radius: 0.75rem;
}

.account-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}
.account-facts dt {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.account-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.account-actions {
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.link-button {
  padding: 0.75rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* Donor portal. */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.gift-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-raised);
  border-radius: 0.75rem;
}
.gift-table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.5rem;
}
.gift-table th,
.gift-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.gift-table td:last-child,
.gift-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .google-button:hover {
    background: var(--surface-soft);
  }
  .link-button:hover {
    color: var(--green);
  }
}

/* Public editorial pages share the home page's type, colors and program illustrations. */
.editorial-intro,
.editorial-body,
.editorial-cta {
  padding-inline: var(--gutter);
}
.editorial-intro {
  padding-block: clamp(3rem, 7vw, 7rem);
}
.editorial-intro h1 {
  font-size: clamp(2.7rem, 6.5vw, 6.75rem);
  max-width: 18ch;
}
.lead {
  max-width: 44ch;
  margin-bottom: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  color: var(--muted);
}
.about-intro {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.motto {
  margin: 0;
  background: var(--green);
  color: white;
  border-radius: var(--round);
  padding: clamp(1.5rem, 4vw, 4rem);
}
.motto blockquote {
  margin: 0 0 1.5rem;
  font:
    italic clamp(2rem, 4.5vw, 4.5rem)/1.07 Georgia,
    serif;
}
.motto figcaption {
  border-top: 2px solid var(--yellow);
  padding-top: 0.8rem;
}
.editorial-body {
  max-width: 80rem;
  margin: 0 auto;
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
}
.editorial-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  padding-block: clamp(1.75rem, 4vw, 3.5rem);
}
.editorial-row h2,
.contact-page .donation-intro h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}
.editorial-row p,
.editorial-row li,
.contact-page address {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.1rem;
}
.editorial-row p:last-child {
  margin-bottom: 0;
}
.editorial-cta {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 2rem 4rem;
}
.back-link {
  margin-bottom: 1.5rem;
}
.program-index .focus-panel {
  min-height: 22rem;
}
.program-index p {
  z-index: 1;
}
.project-update + .project-update {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}
.project-update h3 {
  font-size: 1.5rem;
}
/* Approved field photos under a project update. */
.project-photos {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: 0.5rem;
}
.project-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.contact-page address {
  font-style: normal;
  margin-top: 1rem;
}
.contact-details {
  list-style: none;
  padding: 0;
  overflow-wrap: anywhere;
}
.contact-details a {
  display: inline-block;
  padding-block: 0.35rem;
}
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--control-line);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.field textarea {
  resize: vertical;
}
.contact-consent {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: normal;
}
@media (min-width: 760px) {
  .about-intro {
    grid-template-columns: 1.3fr 1fr;
  }
  .editorial-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 3rem;
  }
}

/* Inquiry form extras (/contact). */
[hidden] {
  display: none !important;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
/* Tick-boxes: the whole row is at least 44px tall so it is easy to tap. */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding-block: 0.5rem;
}
.check input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.1rem 0 0;
  accent-color: var(--green);
}
.check label {
  font-weight: 400;
}
/* The spam trap: off screen rather than display:none, which some scripts check for. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Restored after the merge: sign-in, passkey and two-step pages (from main). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.passkey-box {
  margin: 1.5rem 0;
}
.passkey-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
}
.other-way {
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.other-way summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.other-way[open] summary {
  margin-bottom: 1rem;
}
.button-secondary {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.passkey-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}
.passkey-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface-soft);
  border-radius: 0.75rem;
}
.inline-form {
  margin: 0;
}

/* Restored after the merge: the "Get involved" dropdown in the main navigation. */
.involve {
  position: relative;
}
.involve summary {
  display: block;
  padding: 0.8rem 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.involve summary::-webkit-details-marker {
  display: none;
}
.involve summary::after {
  content: " \25BE";
}
/* The nested button sits inside .menu, whose generic "summary" rules (cream background, hidden on
   wide screens) would otherwise win. The extra .menu makes these rules more specific. */
.menu .involve summary {
  display: block;
  background: var(--green);
  color: var(--white);
  border-radius: 3rem;
  text-align: center;
}
.menu .involve summary:hover,
.menu .involve[open] summary {
  background: var(--yellow);
  color: var(--ink);
}
.involve ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.4rem;
  background: var(--paper);
  border-radius: 1rem;
}
.involve ul a {
  display: block;
  padding: 0.7rem;
  border-radius: 2rem;
}
@media (hover: hover) {
  .involve ul a:hover {
    background: var(--surface-soft);
  }
}
@media (min-width: 1100px) {
  .involve ul {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 12rem;
    box-shadow: 0 1rem 3rem #102b2830;
  }
  .menu nav .involve ul a {
    font-size: 0.85rem;
  }
}

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* One-tap sign-in (passkeys). */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.passkey-box { margin: 1.5rem 0; }
.passkey-status { min-height: 1.5rem; margin: .75rem 0 0; color: var(--muted); }
.passkey-how { padding-left: 1.25rem; color: var(--muted); }
.passkey-how li + li { margin-top: .5rem; }
.other-way { margin: 1.5rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.other-way summary { cursor: pointer; font-weight: 700; min-height: 2.75rem; display: flex; align-items: center; }
.other-way[open] summary { margin-bottom: 1rem; }
.button-secondary { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.passkey-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.passkey-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding: .75rem 1rem; background: var(--surface-soft); border-radius: .75rem; }
.inline-form { margin: 0; }

/* The two setup buttons, each with a line saying what it does. */
.passkey-choices { display: grid; gap: .5rem; }
.passkey-choices .hint + .button { margin-top: 1rem; }

/* ------------------------------------------------------------ Typefaces
   Montserrat for text and DM Serif Display for the home page's headings, both
   free (SIL Open Font License, copies in /fonts) and served from our own site
   because the content security policy allows nothing else. These are the
   public site's only web fonts; the field app still uses the phone's own.
   "swap" shows the text in a system font straight away and changes when the
   file arrives, so a slow connection never stares at blank headings. */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif-display-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
body, button, input, select, textarea { font-family: "Montserrat", Arial, sans-serif; }
/* Montserrat is wider than Arial, so headings need less tightening. */
h1, h2, h3 { letter-spacing: -.035em; }

/* ------------------------------------------------------------ Home page
   Laid out in the order and proportions of a classic charity home page:
   a photo hero with a few words, a centered statement, full-width photo
   tabs, the three programs, a centered call to action, a dark closing band. */

/* Hero: SR&C's photos fade one into the next. They are stacked in the same
   box and only the current one is opaque. */
.public-home .hero { min-height: 34rem; min-height: 86svh; justify-content: center; text-align: center; padding-bottom: 4rem; }
.hero-image img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-image img.is-current { opacity: 1; }
/* One even tint over the whole photo, so the white headline keeps its contrast
   wherever the bright parts of each photo fall. */
.public-home .hero-image:after { background: rgba(5, 25, 30, .45); }
.public-home .hero-content { max-width: none; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.public-home .hero h1 { margin: 0; font-size: clamp(1.5rem, 5.2vw, 4.5rem); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; line-height: 1.25; text-shadow: 0 1px 1.5rem rgba(0, 0, 0, .45); }

/* Square, wide-spaced buttons used on the home page. */
.block-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .9rem 2rem; border-radius: .2rem; background: var(--ink); color: var(--white); font-size: .875rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; }
.block-button-glass { background: rgba(16, 43, 40, .72); }
.block-button-light { background: var(--white); color: var(--ink); }
.block-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
@media (hover: hover) { .block-button:hover { background: var(--yellow); color: var(--ink); } }

/* Centered statement and call to action. */
.home-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(4rem, 8vw, 7rem); background: var(--white); }
.public-home h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -.01em; line-height: 1.1; margin-bottom: 1.25rem; }
.home-center p { max-width: 40rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); margin-bottom: 0; }
.home-center .block-button { margin-top: 2.25rem; }
.home-card { display: flex; align-items: center; gap: 1.5rem; max-width: 30rem; margin-top: 2.5rem; padding: 1.5rem 1.75rem; border: 1px solid var(--line); border-radius: .5rem; text-align: left; }
.home-card img { flex: none; border-radius: 50%; }
.home-card p { font-size: 1rem; }

/* Vision, mission and values: a full-width photo with the words at the foot.
   Stacked by default; public.js adds the tabs across the top and then shows
   one panel at a time. */
.creed-tabs { position: relative; }
.creed-panel { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 34rem; min-height: 88svh; padding: 8rem var(--gutter) clamp(2.5rem, 6vw, 4.5rem); color: var(--white); text-align: center; background: var(--ink); overflow: hidden; }
.creed-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Darker at the top for the tabs and at the foot for the words; the middle of the photo stays clear. */
.creed-panel:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 25, 30, .6), rgba(5, 25, 30, 0) 28%, rgba(5, 25, 30, 0) 45%, rgba(5, 25, 30, .88)); }
.creed-text { position: relative; z-index: 1; max-width: 50rem; }
.creed-text h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-style: italic; font-weight: 700; letter-spacing: 0; margin-bottom: .75rem; }
.creed-text p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); margin: 0; }
.creed-tablist { position: absolute; z-index: 2; top: 1.5rem; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem clamp(.5rem, 3vw, 2.5rem); padding-inline: var(--gutter); }
.creed-tablist button { min-height: 2.75rem; padding: .4rem 1.1rem; border: 2px solid transparent; border-radius: 2rem; background: none; color: var(--white); font-size: clamp(.85rem, 1.4vw, 1.05rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.creed-tablist button[aria-selected="true"] { border-color: var(--white); }
.creed-tablist button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (hover: hover) { .creed-tablist button:hover { border-color: rgba(255, 255, 255, .6); } }

/* Dark closing band: words on one side, a photo on the other. */
.home-proof { display: grid; gap: 2.5rem; align-items: center; padding: clamp(4rem, 9vw, 8rem) var(--gutter); background: var(--ink); color: var(--white); }
.home-proof-text { text-align: center; justify-self: center; max-width: 34rem; }
.home-proof-text p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.home-proof-text .block-button { margin-top: 1rem; }
.home-proof > img { display: block; width: 100%; max-width: 34rem; height: auto; justify-self: center; border-radius: .75rem; }
@media (min-width: 900px) { .home-proof { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .hero-image img { transition: none; } }

/* ------------------------------------------------------------ Header bar
   One dark bar across the top of every public page: the name on the left, the
   three menu groups beside it, and "Log in" plus the giving button set apart
   on the right. On the home page the bar is see-through and lies over the
   hero photos; on every other page it is solid, because there is no photo
   behind it. These rules come last so they win over the older rounded header. */
.header { top: 0; left: 0; right: 0; margin: 0; padding: .6rem var(--gutter); gap: clamp(1rem, 3vw, 3rem); background: rgba(8, 20, 22, .55); color: var(--white); }
.public-inner .header { margin: 0; background: var(--ink); }
.header .brand, .public-inner .header .brand { background: none; padding: 0; color: var(--white); }
/* Yellow shows on the dark bar; the inner pages' blue focus ring would not. */
.public-inner .header :focus-visible { outline-color: var(--yellow); }
.menu { justify-self: end; }
/* Phones: the "Menu" button is an outline on the bar; its panel stays light with dark text. */
.menu > summary { background: none; border: 2px solid var(--white); color: var(--white); border-radius: .2rem; padding: .6rem 1rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.menu nav { color: var(--ink); right: var(--gutter); }
.nav-end { display: grid; gap: .2rem; }
.menu nav a.nav-action { background: var(--yellow); color: var(--ink); border-radius: .2rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
@media (hover: hover) { .menu nav a.nav-action:hover { background: var(--white); color: var(--ink); } }
@media (min-width: 1100px) {
    .header { top: 0; grid-template-columns: auto minmax(0, 1fr); }
    .menu { justify-self: stretch; }
    .menu nav { background: none; padding: 0; border-radius: 0; color: var(--white); gap: .25rem; }
    .menu .nav-group > summary, .nav-end > a { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: .2rem; }
    /* The drop-down lists stay light panels with dark, ordinary-case links. */
    .nav-group ul { color: var(--ink); border-radius: .4rem; }
    /* Pushes "Log in" and the giving button to the far right, away from the groups. */
    .nav-end { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
    .menu nav a.nav-action { margin: 0; padding: .85rem 1.4rem; }
}
@media (min-width: 1100px) and (hover: hover) {
    .menu .nav-group > summary:hover, .menu nav .nav-end > a:not(.nav-action):hover { background: rgba(255, 255, 255, .16); border-radius: .2rem; }
}
