/*
 * Our Donors page (donors.php). Loaded only on that page.
 * Sections are set apart with tints, even borders, rounded corners, spacing
 * and type — never a coloured stripe on one edge.
 */

.donors-hero {
  margin-top: 0.75rem;
}

.donors-hero__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    var(--brand-green-soft);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
}

.donors-eyebrow,
.donors-chip {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green-darker);
}

.donors-hero h1 {
  margin: 0;
  max-width: 22ch;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  color: var(--brand-green-darker);
}

.donors-hero__lede {
  max-width: 40rem;
  font-size: var(--text-lede);
  line-height: 1.6;
}

.donors-hero__lede p {
  margin: 0 0 0.75rem;
}

.donors-hero__lede p:last-child {
  margin-bottom: 0;
}

.donors-hero .theme-button {
  margin-top: 0.5rem;
}

/* List sections */

.donors-block {
  margin-block: clamp(1.75rem, 4vw, 3rem);
}

.donors-block__head {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.donors-block__head h2 {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: var(--text-heading-section);
  color: var(--brand-green-deep);
}

.donors-block__head p {
  margin: 0;
  line-height: 1.6;
}

/* A small ornament under each list heading: a centred dot rule, not a bar. */
.donors-block__head h2::after {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0.85rem auto 0;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: -1.1rem 0 0 var(--line), 1.1rem 0 0 var(--line);
}

/* Donor names: flowing centred columns in the serif face. */
.donors-names {
  columns: 3 14rem;
  column-gap: 2.5rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.donors-names li {
  break-inside: avoid;
  padding: 0.45rem 0;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--text);
}

/* Monthly sustainers: a tinted feature panel with the names as soft chips. */
.donors-sustainers {
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--brand-purple-soft);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
}

.donors-sustainers .donors-chip {
  padding: 0.3rem 0.85rem;
  color: var(--brand-purple-darker);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.donors-sustainers .donors-block__head h2 {
  color: var(--brand-purple-darker);
}

.donors-sustainers .donors-block__head h2::after {
  background: var(--brand-purple);
}

.donors-names--feature {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  columns: auto;
}

.donors-names--feature li {
  padding: 0.55rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.1rem;
}

/* Grantor and in-kind cards. */
.donors-partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.donors-partner {
  display: flex;
}

.donors-partner__inner {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 7.5rem;
  padding: 1.35rem 1.25rem;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.donors-partner__inner--link {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.donors-partner__inner--link:hover,
.donors-partner__inner--link:focus-visible {
  border-color: var(--brand-green);
  box-shadow: 0 12px 28px rgba(18, 138, 114, 0.16);
  transform: translateY(-2px);
}

.donors-partner__name {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: var(--text-heading-card);
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-green-darker);
}

.donors-partner__note {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}

.donors-partner__visit {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-green-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Admin preview only: shown where a list has no entries yet. */
.donors-empty-note {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.donors-cta .apply-cta-band__inner {
  justify-items: center;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .donors-partner__inner--link {
    transition: none;
  }
  .donors-partner__inner--link:hover,
  .donors-partner__inner--link:focus-visible {
    transform: none;
  }
}
