/* Nonprofit site: Wellspring, an invented rural water charity. Pale
   aqua ground, deep water blue and ochre, a rounded humanist sans
   (Candara), droplet curves and progress bars. Ochre is only ever a
   fill behind dark text; ochre text uses --ws-ochre-ink. */

.ws-page {
  --ws-blue-text: #0b5f8a;
  --ws-blue-dark-text: #084868;
  --ws-blue-deep-text: #06354d;
  --ws-ochre-ink-text: #875700;
  --ws-red-text: #b3261e;
  --ws-green-text: #1e7a4f;
  --ws-ochre-wash: #fff4d6;
  --ws-sky-wash: #eef7fb;
  --ws-note: #fffaf0;
  --ws-glass: rgba(255, 255, 255, 0.6);
  --ws-on-fill: #0f2d3a;
  --ws-ground: #f2f8f8;
  --ws-paper: #ffffff;
  --ws-aqua: #dff0f3;
  --ws-aqua-2: #c6e4ea;
  --ws-ink: #0f2d3a;
  --ws-muted: #44606b;
  --ws-line: #cfe0e4;
  --ws-blue: #0b5f8a;
  --ws-blue-dark: #084868;
  --ws-blue-deep: #06354d;
  --ws-sky: #2b9fd6;
  --ws-ochre: #e5a92b;
  --ws-ochre-pale: #fbefd2;
  --ws-ochre-ink: #875700;
  --ws-red: #b3261e;
  --ws-red-pale: #fde9e7;
  --ws-green: #1e7a4f;
  --ws-font: Candara, "Trebuchet MS", "Segoe UI", sans-serif;
  --ws-radius: 18px;

  background: var(--ws-ground);
  color: var(--ws-ink);
  font-family: var(--ws-font);
  font-size: 1.0625rem;
  font-variant-numeric: lining-nums;
}

/* Dark mode, the default: Wellspring by night. Deep-water grounds,
   pale aqua ink, the blues lifted for text and ochre kept for giving (PRD section 13.10). Only this template's own tokens
   change; screen only, so print always uses the light palette. */
@media screen {
  :root[data-theme="dark"] .ws-page {
    --ws-blue-text: #7cc4ec;
    --ws-blue-dark-text: #9ad0ee;
    --ws-blue-deep-text: #b6def3;
    --ws-ochre-ink-text: #f0c05a;
    --ws-red-text: #ff8a80;
    --ws-green-text: #5fcf95;
    --ws-ochre-wash: #33280f;
    --ws-sky-wash: #142a33;
    --ws-note: #1d2620;
    --ws-glass: rgba(18, 35, 43, 0.6);
    --ws-ground: #0b1a20;
    --ws-paper: #12232b;
    --ws-aqua: #15303a;
    --ws-aqua-2: #1c3c47;
    --ws-ink: #e4f1f4;
    --ws-muted: #a5bfc7;
    --ws-line: #24404a;
    --ws-ochre-pale: #33280f;
    --ws-red-pale: #3a1b19;
    color-scheme: dark;
  }
}

.ws-theme-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.ws-theme-btn:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

html:has(.ws-page) {
  scroll-behavior: smooth;
}

.ws-page [hidden] {
  display: none !important;
}

:where(.ws-page) p,
:where(.ws-page) h1,
:where(.ws-page) h2,
:where(.ws-page) h3,
:where(.ws-page) ul,
:where(.ws-page) ol,
:where(.ws-page) dl,
:where(.ws-page) dd,
:where(.ws-page) figure,
:where(.ws-page) blockquote,
:where(.ws-page) fieldset {
  margin: 0;
}

:where(.ws-page) li {
  margin: 0;
}

:where(.ws-page) ul,
:where(.ws-page) ol {
  padding: 0;
  list-style: none;
}

:where(.ws-page) fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

:where(.ws-page) h1,
:where(.ws-page) h2,
:where(.ws-page) h3 {
  color: inherit;
  font-weight: 700;
}

.ws-page :focus-visible {
  outline: 3px solid var(--ws-blue);
  outline-offset: 2px;
}

.ws-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.ws-page section[id] {
  scroll-margin-top: 84px;
}

/* Things the script scrolls to or focuses clear the sticky header. */
.ws-summary-errors,
.ws-page .ws-input,
.ws-page .ws-select,
.ws-amount input,
.ws-freq input {
  scroll-margin-top: 100px;
}

.ws-kicker {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-ochre-ink-text);
}

.ws-head {
  max-width: 660px;
  margin-bottom: var(--space-10);
}

.ws-head h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.ws-head > p:last-child {
  color: var(--ws-muted);
  font-size: 1.15rem;
  line-height: 1.55;
}

/* ---------- Buttons ---------- */

.ws-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 50px;
  padding: 0 var(--space-6);
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ws-btn:hover {
  text-decoration: none;
}

.ws-btn:active {
  transform: translateY(1px);
}

.ws-btn--primary {
  background: var(--ws-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 95, 138, 0.25);
}

.ws-btn--primary:hover {
  background: var(--ws-blue-dark);
  color: #fff;
}

.ws-btn--ochre {
  background: var(--ws-ochre);
  color: var(--ws-on-fill);
}

.ws-btn--ochre:hover {
  background: #f0bb48;
  color: var(--ws-ink);
}

.ws-btn--ghost {
  border-color: var(--ws-blue);
  background: transparent;
  color: var(--ws-blue-text);
}

.ws-btn--ghost:hover {
  background: var(--ws-paper);
  color: var(--ws-blue-dark-text);
}

.ws-btn--block {
  width: 100%;
}

.ws-link {
  color: var(--ws-blue-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ws-link:hover {
  color: var(--ws-blue-dark-text);
}

/* ---------- Header ---------- */

.ws-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ws-paper);
  box-shadow: 0 1px 0 var(--ws-line);
}

.ws-header-in {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: 1180px;
  min-height: 70px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.ws-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ws-ink);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.ws-logo:hover {
  color: var(--ws-ink);
  text-decoration: none;
}

.ws-logo-mark {
  width: 32px;
  height: 32px;
  fill: var(--ws-sky);
}

.ws-logo-wave {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.ws-nav {
  margin-left: auto;
}

.ws-nav ul {
  display: flex;
  gap: var(--space-1);
}

.ws-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  color: var(--ws-ink);
  font-weight: 700;
  text-decoration: none;
}

.ws-nav a:hover {
  background: var(--ws-aqua);
  color: var(--ws-blue-dark-text);
  text-decoration: none;
}

.ws-menu-btn {
  display: none;
}

.ws-header-give {
  min-height: 44px;
  padding: 0 var(--space-5);
}

/* ---------- Hero ---------- */

.ws-hero {
  position: relative;
  padding: var(--space-16) 0 120px;
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(229, 169, 43, 0.18), transparent 70%),
    linear-gradient(180deg, var(--ws-aqua) 0%, #eaf6f8 100%);
  overflow: hidden;
}

.ws-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: var(--space-12);
}

.ws-hero-title {
  margin-bottom: var(--space-5);
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ws-blue-deep-text);
}

.ws-lede {
  max-width: 34em;
  margin-bottom: var(--space-8);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ws-ink);
}

.ws-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.ws-appeal {
  border-radius: var(--ws-radius);
  background: var(--ws-paper);
  box-shadow: 0 24px 48px rgba(6, 53, 77, 0.14);
  overflow: hidden;
}

.ws-appeal-art {
  position: relative;
  height: 170px;
  background: linear-gradient(180deg, #bfe3f1 0%, #e6f4f7 100%);
  overflow: hidden;
}

.ws-appeal-art span {
  position: absolute;
  display: block;
}

.ws-a-hill {
  left: -10%;
  right: -10%;
  bottom: -60px;
  height: 120px;
  border-radius: 50% 50% 0 0;
  background: #9cc48a;
}

.ws-a-hill--back {
  left: 30%;
  right: -30%;
  bottom: -40px;
  height: 150px;
  background: #b9d6a2;
}

.ws-a-well {
  left: calc(50% - 34px);
  bottom: 32px;
  width: 68px;
  height: 40px;
  border-radius: 6px 6px 2px 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(0, 0, 0, 0.1) 16px 17px),
    #d9cdb4;
}

.ws-a-roof {
  left: calc(50% - 48px);
  bottom: 104px;
  width: 96px;
  height: 30px;
  background: var(--ws-blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.ws-a-well::before,
.ws-a-well::after {
  content: "";
  position: absolute;
  bottom: 38px;
  width: 5px;
  height: 36px;
  background: #6b4f3a;
}

.ws-a-well::before {
  left: 6px;
}

.ws-a-well::after {
  right: 6px;
}

.ws-a-drop {
  width: 16px;
  height: 16px;
  border-radius: 0 50% 50% 50%;
  background: var(--ws-sky);
  transform: rotate(45deg);
  animation: ws-drip 3.2s ease-in infinite;
}

.ws-a-drop--1 { left: 22%; top: 34px; }
.ws-a-drop--2 { left: 74%; top: 22px; width: 12px; height: 12px; animation-delay: 1s; }
.ws-a-drop--3 { left: 84%; top: 70px; width: 10px; height: 10px; animation-delay: 2.1s; }

@keyframes ws-drip {
  0%, 60% { opacity: 1; translate: 0 0; }
  100% { opacity: 0; translate: 0 18px; }
}

.ws-appeal-body {
  padding: var(--space-6);
}

.ws-appeal-kicker {
  margin-bottom: var(--space-1);
  color: var(--ws-ochre-ink-text);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ws-appeal-title {
  margin-bottom: var(--space-2);
  font-size: 1.6rem;
  line-height: 1.15;
}

.ws-appeal-text {
  margin-bottom: var(--space-5);
  color: var(--ws-muted);
  line-height: 1.5;
}

.ws-progress {
  height: 14px;
  border-radius: 999px;
  background: var(--ws-aqua);
  overflow: hidden;
}

.ws-progress-fill {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 8px 50%, rgba(255, 255, 255, 0.35) 0 3px, transparent 3.5px) 0 0 / 22px 100%,
    linear-gradient(90deg, var(--ws-sky), var(--ws-blue));
  transition: width var(--transition-slow);
}

.ws-appeal-figures {
  margin-top: var(--space-3);
  font-size: 1.05rem;
}

.ws-appeal-figures strong {
  font-size: 1.5rem;
  color: var(--ws-blue-deep-text);
}

.ws-appeal-pct {
  color: var(--ws-muted);
}

.ws-appeal-meta {
  margin: var(--space-1) 0 var(--space-4);
  color: var(--ws-muted);
  font-size: var(--font-size-sm);
}

.ws-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  fill: var(--ws-paper);
}

/* ---------- Stats ---------- */

.ws-stats {
  padding: var(--space-6) 0 var(--space-12);
  background: var(--ws-paper);
}

.ws-stat-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}

.ws-stat-list div {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-1);
  padding: var(--space-5) 0 0;
  border-top: 4px solid var(--ws-sky);
  border-radius: 2px;
}

.ws-stat-list dt {
  color: var(--ws-muted);
  line-height: 1.35;
}

.ws-stat-list dd {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ws-blue-deep-text);
  font-variant-numeric: lining-nums;
}

.ws-count {
  margin-top: var(--space-6);
  max-width: 720px;
}

.ws-count summary,
.ws-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ws-blue-text);
}

.ws-count summary {
  display: inline-block;
  padding: var(--space-1) 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ws-count p {
  margin-top: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: 12px;
  background: var(--ws-aqua);
  line-height: 1.55;
}

/* ---------- How it works ---------- */

.ws-work {
  padding: var(--space-16) 0;
}

.ws-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

.ws-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-radius: var(--ws-radius);
  background: var(--ws-paper);
  box-shadow: 0 1px 0 var(--ws-line), 0 10px 30px rgba(6, 53, 77, 0.06);
}

.ws-step-n {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-5);
  border-radius: 50% 50% 50% 10px;
  background: var(--ws-sky);
  color: var(--ws-blue-deep-text);
  font-size: 1.4rem;
  font-weight: 700;
}

.ws-step h3 {
  margin-bottom: var(--space-3);
  font-size: 1.3rem;
  line-height: 1.25;
}

.ws-step p {
  color: var(--ws-muted);
  line-height: 1.55;
}

.ws-step .ws-step-cost {
  margin-top: auto;
  padding-top: var(--space-5);
  color: var(--ws-ochre-ink-text);
  font-weight: 700;
}

/* ---------- Where money goes ---------- */

.ws-money {
  padding: var(--space-16) 0;
  background: var(--ws-paper);
}

.ws-bar {
  display: flex;
  height: 56px;
  margin-bottom: var(--space-6);
  border-radius: 14px;
  overflow: hidden;
  gap: 3px;
  background: var(--ws-paper);
}

.ws-bar-seg {
  display: block;
  height: 100%;
}

.ws-bar-seg.ws-seg-wells { width: 71%; }
.ws-bar-seg.ws-seg-repair { width: 15%; }
.ws-bar-seg.ws-seg-test { width: 8%; }
.ws-bar-seg.ws-seg-raise { width: 4%; }
.ws-bar-seg.ws-seg-run { width: 2%; }

/* Colour plus pattern, so the split never relies on hue alone. */
.ws-seg-wells { background: var(--ws-blue); }
.ws-seg-repair { background: repeating-linear-gradient(135deg, var(--ws-sky) 0 6px, #62b8e2 6px 12px); }
.ws-seg-test { background: radial-gradient(circle, #0b5f8a 0 1.5px, transparent 2px) 0 0 / 7px 7px, #9fd3e8; }
.ws-seg-raise { background: var(--ws-ochre); }
.ws-seg-run { background: repeating-linear-gradient(90deg, #7a8f97 0 3px, #a9b8be 3px 6px); }

.ws-legend {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: start;
  gap: var(--space-3) var(--space-8);
}

.ws-legend li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1.3;
}

.ws-legend strong {
  font-size: 1.25rem;
  color: var(--ws-blue-deep-text);
}

.ws-key {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

/* ---------- Story ---------- */

.ws-story {
  padding: var(--space-16) 0;
  background:
    radial-gradient(ellipse 40% 70% at 100% 100%, rgba(43, 159, 214, 0.25), transparent 70%),
    var(--ws-blue-deep);
  color: #eaf4f8;
}

.ws-story-in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: var(--space-12);
}

.ws-story-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(180deg, #f6d99a 0%, #f0c46e 55%, #c9a15c 55%, #b48a48 100%);
  overflow: hidden;
}

.ws-story-art > span {
  position: absolute;
  display: block;
}

.ws-s-sun {
  left: 52%;
  top: 18%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: var(--ws-ochre-wash);
}

.ws-s-path {
  left: 20%;
  top: 54%;
  width: 60%;
  height: 46%;
  background: #d8bb86;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
}

.ws-s-can {
  width: 16%;
  height: 20%;
  border-radius: 6px 6px 10px 10px;
  background: var(--ws-ochre);
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.12);
}

.ws-s-can::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 22%;
  width: 40%;
  height: 10px;
  border: 3px solid #b27d12;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.ws-s-can--1 { left: 26%; top: 62%; }
.ws-s-can--2 { left: 58%; top: 66%; background: var(--ws-sky); }

.ws-s-pump {
  left: 44%;
  top: 38%;
  width: 12%;
  height: 22%;
  border-radius: 4px 4px 0 0;
  background: var(--ws-blue);
}

.ws-s-pump::before {
  content: "";
  position: absolute;
  top: 12%;
  right: -90%;
  width: 100%;
  height: 12%;
  border-radius: 4px;
  background: var(--ws-blue);
  transform: rotate(-18deg);
  transform-origin: left center;
}

.ws-quote .ws-kicker {
  color: var(--ws-ochre);
  font-size: var(--font-size-sm);
}

.ws-quote blockquote {
  margin: var(--space-2) 0 var(--space-6);
  padding: 0;
  border: 0;
  background: none;
}

.ws-quote blockquote p {
  position: relative;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: #fff;
}

.ws-quote blockquote p::before {
  content: "\201C";
  position: absolute;
  left: -0.55em;
  top: -0.1em;
  color: var(--ws-ochre);
  font-size: 1.6em;
  line-height: 1;
}

.ws-quote figcaption {
  color: #c9dde6;
}

.ws-quote figcaption strong {
  color: #fff;
}

.ws-story :focus-visible {
  outline-color: var(--ws-ochre);
}

/* ---------- Give ---------- */

.ws-give {
  padding: var(--space-16) 0;
  background:
    radial-gradient(ellipse 40% 60% at 0% 0%, rgba(229, 169, 43, 0.14), transparent 70%),
    var(--ws-aqua);
}

.ws-give-in {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: var(--space-12);
}

.ws-give-intro {
  position: sticky;
  top: 100px;
}

.ws-give-intro h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
}

.ws-give-intro > p {
  margin-bottom: var(--space-6);
  font-size: 1.15rem;
  line-height: 1.55;
}

.ws-promises {
  display: grid;
  gap: var(--space-3);
}

.ws-promises li {
  position: relative;
  padding-left: 34px;
  line-height: 1.45;
}

.ws-promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ws-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%231e7a4f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.ws-give-card {
  padding: var(--space-8);
  border-radius: 24px;
  background: var(--ws-paper);
  box-shadow: 0 24px 60px rgba(6, 53, 77, 0.12);
}

.ws-form {
  display: grid;
  gap: var(--space-6);
}

.ws-summary-errors {
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--ws-red);
  border-radius: 12px;
  background: var(--ws-red-pale);
}

.ws-summary-errors:focus {
  outline: 3px solid var(--ws-red);
  outline-offset: 2px;
}

.ws-summary-errors h3 {
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
  color: var(--ws-red-text);
}

.ws-summary-errors li + li {
  margin-top: var(--space-1);
}

.ws-summary-errors a {
  color: var(--ws-red-text);
  font-weight: 700;
  text-decoration: underline;
}

.ws-freq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: var(--ws-aqua);
}

.ws-freq label,
.ws-amount,
.ws-check {
  position: relative;
}

.ws-freq input,
.ws-amount input,
.ws-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.ws-freq span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ws-blue-dark-text);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.ws-freq label:hover span {
  background: var(--ws-glass);
}

.ws-freq input:checked + span {
  background: var(--ws-blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(11, 95, 138, 0.25);
}

.ws-freq input:focus-visible + span,
.ws-amount input:focus-visible + span {
  outline: 3px solid var(--ws-blue);
  outline-offset: 2px;
}

.ws-legend-label,
.ws-label {
  display: block;
  margin-bottom: var(--space-2);
  padding: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.ws-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.ws-amount span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 84px;
  height: 100%;
  padding: var(--space-3);
  border: 2px solid var(--ws-line);
  border-radius: 14px;
  background: var(--ws-paper);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.ws-amount strong {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ws-blue-deep-text);
}

.ws-amount small {
  color: var(--ws-muted);
  font-size: var(--font-size-sm);
  line-height: 1.25;
}

.ws-amount:hover span {
  border-color: var(--ws-sky);
}

.ws-amount input:checked + span {
  border-color: var(--ws-blue);
  background: var(--ws-sky-wash);
  box-shadow: inset 0 0 0 1px var(--ws-blue);
}

.ws-amount input:checked + span strong::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  border-radius: 0 50% 50% 50%;
  background: var(--ws-sky);
  transform: rotate(45deg);
  vertical-align: 0.3em;
}

.ws-other {
  margin-top: var(--space-4);
}

.ws-money-input {
  display: flex;
  align-items: center;
  max-width: 220px;
  border: 2px solid var(--ws-line);
  border-radius: 12px;
  background: var(--ws-paper);
  transition: border-color var(--transition-fast);
}

.ws-money-input:focus-within {
  border-color: var(--ws-blue);
  outline: 3px solid var(--ws-blue);
  outline-offset: 1px;
}

.ws-money-input span {
  padding-left: var(--space-4);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ws-muted);
}

.ws-page .ws-money-input .ws-input {
  border: 0;
  outline: none;
  font-size: 1.3rem;
  font-weight: 700;
}

.ws-money-input:has([aria-invalid="true"]) {
  border-color: var(--ws-red);
  background: var(--ws-red-pale);
}

.ws-impact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: 12px;
  background: var(--ws-ochre-pale);
  line-height: 1.45;
}

.ws-impact:empty {
  display: none;
}

.ws-impact::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 0 50% 50% 50%;
  background: var(--ws-ochre);
  transform: rotate(45deg);
}

.ws-field {
  display: grid;
  gap: 0;
}

.ws-page .ws-input,
.ws-page .ws-select {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 var(--space-4);
  border: 2px solid var(--ws-muted);
  border-radius: 12px;
  background: var(--ws-paper);
  color: var(--ws-ink);
  font: inherit;
  font-size: 1.05rem;
}

.ws-page .ws-select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230f2d3a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 20px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.ws-page .ws-input:hover,
.ws-page .ws-select:hover {
  border-color: var(--ws-sky);
}

.ws-page .ws-input:focus-visible,
.ws-page .ws-select:focus-visible {
  border-color: var(--ws-blue);
  outline: 3px solid var(--ws-blue);
  outline-offset: 1px;
}

.ws-page .ws-input[aria-invalid="true"] {
  border-color: var(--ws-red);
  background: var(--ws-red-pale);
}

.ws-input--short {
  max-width: 180px;
}

.ws-hint {
  margin-top: var(--space-2);
  color: var(--ws-muted);
  font-size: var(--font-size-sm);
  line-height: 1.45;
}

.ws-error {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: var(--ws-red-text);
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.4;
}

.ws-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ws-red);
  color: #fff;
  font-size: 12px;
}

.ws-giftaid {
  padding: var(--space-4) var(--space-5);
  border: 2px dashed var(--ws-ochre);
  border-radius: 14px;
  background: var(--ws-note);
}

.ws-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 1.05rem;
  line-height: 1.4;
  cursor: pointer;
}

.ws-check-box {
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ws-muted);
  border-radius: 8px;
  background: var(--ws-paper);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.ws-check:hover .ws-check-box {
  border-color: var(--ws-blue);
}

.ws-check input:checked + .ws-check-box {
  border-color: var(--ws-blue);
  background: var(--ws-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.ws-check input:focus-visible + .ws-check-box {
  outline: 3px solid var(--ws-blue);
  outline-offset: 2px;
}

.ws-giftaid .ws-hint {
  margin-left: 38px;
}

.ws-giftaid-plus {
  color: var(--ws-green-text);
  font-weight: 700;
}

.ws-details {
  display: grid;
  gap: var(--space-5);
}

.ws-details > .ws-legend-label {
  margin-bottom: var(--space-4);
  font-size: 1.15rem;
}

.ws-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: 12px;
  background: var(--ws-ground);
}

.ws-address > .ws-hint {
  grid-column: 1 / -1;
  margin: 0;
}

.ws-check--quiet {
  font-size: 1rem;
  color: var(--ws-ink);
}

.ws-total {
  padding: var(--space-4) var(--space-5);
  border-radius: 14px;
  background: var(--ws-aqua);
}

.ws-total-line {
  font-size: 1.15rem;
  line-height: 1.4;
}

.ws-total-line strong {
  color: var(--ws-blue-deep-text);
}

.ws-total-sub:not(:empty) {
  margin-top: var(--space-1);
  color: var(--ws-green-text);
  font-weight: 700;
}

.ws-submit {
  min-height: 58px;
  font-size: 1.2rem;
}

.ws-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ws-spin 0.8s linear infinite;
}

.ws-submit.is-busy .ws-spinner {
  display: inline-block;
}

.ws-submit:disabled {
  cursor: progress;
  opacity: 0.85;
}

@keyframes ws-spin {
  to { transform: rotate(360deg); }
}

.ws-demo {
  margin-top: calc(-1 * var(--space-3));
  color: var(--ws-muted);
  font-size: var(--font-size-sm);
  text-align: center;
}

.ws-thanks {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-4);
  text-align: center;
}

.ws-thanks-mark {
  width: 84px;
  height: 84px;
  fill: var(--ws-sky);
}

.ws-thanks-tick {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ws-thanks h3 {
  font-size: 2rem;
  line-height: 1.1;
}

.ws-thanks h3:focus {
  outline: none;
}

.ws-thanks > p {
  max-width: 38em;
  line-height: 1.55;
}

.ws-status:not(:empty) {
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--ws-ochre);
  border-radius: 0 10px 10px 0;
  background: var(--ws-ochre-pale);
  text-align: left;
  font-size: var(--font-size-sm);
}

/* ---------- FAQ ---------- */

.ws-faq {
  padding: var(--space-16) 0;
  background: var(--ws-paper);
}

.ws-faq-in {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: var(--space-10);
}

.ws-faq-list details {
  border-bottom: 1px solid var(--ws-line);
}

.ws-faq-list details:first-child {
  border-top: 1px solid var(--ws-line);
}

.ws-faq summary {
  position: relative;
  padding: var(--space-5) var(--space-10) var(--space-5) 0;
  font-size: 1.15rem;
  color: var(--ws-ink);
  list-style: none;
}

.ws-faq summary::-webkit-details-marker {
  display: none;
}

.ws-faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ws-blue), var(--ws-blue)) center / 12px 2.5px no-repeat,
    linear-gradient(var(--ws-blue), var(--ws-blue)) center / 2.5px 12px no-repeat,
    var(--ws-aqua);
  transition: transform var(--transition-fast);
}

.ws-faq details[open] summary::after {
  background:
    linear-gradient(var(--ws-blue), var(--ws-blue)) center / 12px 2.5px no-repeat,
    var(--ws-aqua);
}

.ws-faq summary:hover {
  color: var(--ws-blue-text);
}

.ws-faq details p {
  max-width: 60ch;
  padding-bottom: var(--space-5);
  color: var(--ws-muted);
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.ws-footer {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--ws-blue-deep);
  color: #d5e6ee;
}

.ws-footer-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-8);
}

.ws-footer p {
  line-height: 1.6;
}

.ws-footer-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.ws-footer-title {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-ochre);
}

.ws-footer li + li {
  margin-top: var(--space-2);
}

.ws-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ws-footer a:hover {
  color: var(--ws-ochre);
}

.ws-footer :focus-visible {
  outline-color: var(--ws-ochre);
}

.ws-small {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6) 0;
  border-top: 1px solid rgba(213, 230, 238, 0.2);
  color: #b7cfd9;
  font-size: var(--font-size-sm);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .ws-legend {
    grid-template-columns: repeat(3, auto);
  }

  .ws-give-in {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .ws-give-intro {
    position: static;
    max-width: 680px;
  }

  .ws-give-card {
    max-width: 720px;
  }
}

@media (max-width: 900px) {
  .ws-hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
  }

  .ws-appeal {
    max-width: 520px;
  }

  .ws-stat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ws-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .ws-story-in {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .ws-story-art {
    width: min(280px, 70%);
    margin: 0 auto var(--space-4);
  }

  .ws-quote blockquote p {
    padding-left: 0.6em;
  }

  .ws-quote blockquote p::before {
    left: -0.2em;
  }

  .ws-faq-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ws-faq-in .ws-head {
    margin-bottom: var(--space-6);
  }

  .ws-footer-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ws-footer-in > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .ws-header {
    position: static;
  }

  .ws-page section[id],
  .ws-summary-errors,
  .ws-page .ws-input,
  .ws-page .ws-select,
  .ws-amount input,
  .ws-freq input {
    scroll-margin-top: 12px;
  }

  .ws-header-in {
    flex-wrap: wrap;
    gap: var(--space-3);
    min-height: 62px;
    padding: var(--space-2) var(--space-4);
  }

  .ws-menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 0 var(--space-4);
    border: 2px solid var(--ws-line);
    border-radius: 999px;
    background: var(--ws-paper);
    color: var(--ws-ink);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
  }

  .ws-menu-btn[aria-expanded="true"] {
    border-color: var(--ws-blue);
    background: var(--ws-aqua);
  }

  .ws-nav {
    display: none;
    order: 5;
    width: 100%;
    margin: 0;
  }

  .ws-nav.is-open {
    display: block;
  }

  .ws-nav ul {
    flex-direction: column;
    padding: var(--space-2) 0 var(--space-3);
    border-top: 1px solid var(--ws-line);
  }

  .ws-nav a {
    padding: var(--space-3);
    border-radius: 10px;
  }

  .ws-wrap {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 640px) {
  .ws-hero {
    padding: var(--space-10) 0 90px;
  }

  .ws-lede {
    font-size: 1.12rem;
  }

  .ws-hero-ctas .ws-btn {
    flex: 1 1 auto;
  }

  .ws-work,
  .ws-money,
  .ws-story,
  .ws-give,
  .ws-faq {
    padding: var(--space-12) 0;
  }

  .ws-head {
    margin-bottom: var(--space-8);
  }

  .ws-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .ws-bar {
    height: 44px;
  }

  .ws-give-card {
    padding: var(--space-5) var(--space-4);
    border-radius: 18px;
  }

  .ws-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ws-address {
    grid-template-columns: minmax(0, 1fr);
  }

  .ws-giftaid {
    padding: var(--space-4);
  }

  .ws-giftaid .ws-hint {
    margin-left: 0;
  }

  .ws-footer-in {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 400px) {
  .ws-header-give {
    padding: 0 var(--space-4);
  }

  .ws-logo {
    font-size: 1.3rem;
  }

  .ws-menu-btn {
    padding: 0 var(--space-3);
  }

  .ws-stat-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .ws-stat-list div {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
    gap: var(--space-3);
    padding-top: var(--space-3);
  }

  .ws-stat-list dd {
    font-size: 2rem;
    min-width: 3.6ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.ws-page) {
    scroll-behavior: auto;
  }

  .ws-page *,
  .ws-page *::before,
  .ws-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ws-a-drop {
    animation: none !important;
  }
}
