/* World Choir — Donate / Creator Foundations
   Editorial, restrained, mobile-first. Theme tokens live in world-choir-theme.css. */

.donate-page,
.df-checkout {
  /* --df-* resolved from html[data-theme] */
}

.donate-page {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  /* 14px content gap + safe-area so logo/search match pre–edge-to-edge distance */
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px calc(var(--nav-height) + 40px);
  font-family: var(--font-sans);
  color: var(--df-warm);
}

.donate-page * {
  box-sizing: border-box;
}

/* ─── Motion ─── */
/* Page-open rise animations removed — Donate must paint instantly with no motion. */

@keyframes df-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Kept as no-ops so any leftover markup classes do not animate on open. */
.df-rise,
.df-rise-delay-1,
.df-rise-delay-2,
.df-rise-delay-3 {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .df-search-inline,
  .df-cause,
  .df-fcard,
  .df-spotlight__card,
  .df-pcard,
  .df-fcard__media img,
  .df-spotlight__media img,
  .df-pcard__media img,
  .df-fcard__arrow {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── Top bar ─── */

.df-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 14px;
}

.df-topbar--no-kicker {
  justify-content: space-between;
}

.df-topbar__logo {
  display: flex;
  align-items: center;
  height: 35px;
  margin: 0 0 0 -7px;
  padding: 0;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.df-topbar__logo img {
  display: block;
  height: 35px;
  width: auto;
  max-width: min(160px, 48vw);
  object-fit: contain;
  object-position: left center;
}

.df-topbar__spacer {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.df-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--df-accent);
}

.df-search-trigger {
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--df-warm-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: color 0.25s ease, background 0.25s ease;
}

.df-search-trigger:hover,
.df-search-trigger:focus-visible {
  color: var(--df-warm);
  background: var(--surface-lift);
  outline: none;
}

.df-search-trigger svg,
.df-grid-trigger svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Same control size as Search; sits under it on the Explore-by-cause row. */
.df-grid-trigger {
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--df-warm-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: color 0.25s ease, background 0.25s ease;
}

.df-grid-trigger:hover,
.df-grid-trigger:focus-visible {
  color: var(--df-warm);
  background: var(--surface-lift);
  outline: none;
}

.df-grid-trigger.is-grid {
  color: var(--df-accent);
  background: color-mix(in srgb, var(--df-accent) 12%, transparent);
}

/* ─── Intro ─── */

.df-intro {
  margin-bottom: 10px;
  max-width: none;
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.df-intro__text {
  position: relative;
  z-index: 2;
  max-width: 26rem;
  padding-right: 160px; /* leaves room for the globe on the right */
}

.df-intro--globe {
  padding-top: 6px;
}

.df-intro__globe {
  position: absolute;
  right: clamp(-240px, -30vw, -120px);
  bottom: clamp(-380px, -55vw, -260px);
  width: clamp(360px, 66vw, 540px);
  height: clamp(360px, 66vw, 540px);
  z-index: 1;
  pointer-events: none;

  /* Soft fade so the globe feels integrated into the header background. */
  -webkit-mask-image: radial-gradient(circle at 30% 25%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 44%, rgba(0, 0, 0, 0) 70%);
  mask-image: radial-gradient(circle at 30% 25%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 44%, rgba(0, 0, 0, 0) 70%);

  filter: drop-shadow(0 0 34px rgba(78, 197, 232, 0.18));
}

.df-donate-earth {
  width: 100%;
  height: 100%;
}

.df-donate-earth canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 420px) {
  .df-intro__text {
    padding-right: 0;
  }

  .df-intro__globe {
    right: -220px;
    bottom: -330px;
    width: 440px;
    height: 440px;
  }
}

.df-intro__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--df-warm);
}

.df-intro__lead {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--df-warm-soft);
}

.df-intro__copy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--df-muted);
  font-weight: 400;
}

.df-section-label {
  margin: 0 0 12px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--df-muted);
}

/* ─── Post-event total donated ─── */

.df-total-donated {
  margin: 4px 0 14px;
  padding: 22px 18px 26px;
  text-align: center;
  border: 1px solid var(--df-line);
  border-radius: 12px;
  background: var(--surface-lift-mid);
}

.df-total-donated__label {
  margin: 0 0 12px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-total-donated__amount {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--df-warm);
  font-variant-numeric: tabular-nums;
}

/* ─── Featured ─── */

.df-featured {
  margin-bottom: 28px;
  padding-top: 2px;
}

.df-featured__label {
  margin: 0 0 12px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-featured__layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .df-featured__layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
  }
}

.df-featured__title {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--df-warm);
}

.df-featured__byline {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--df-warm-soft);
}

.df-featured__place {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--df-muted);
}

.df-featured__mission {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--df-warm-soft);
  max-width: 34em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.df-featured__note {
  margin: 0 0 12px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--df-accent);
}

.df-featured__cta {
  appearance: none;
  border: 1px solid var(--df-line-strong);
  background: transparent;
  color: var(--df-warm);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.df-featured__cta:hover,
.df-featured__cta:focus-visible {
  border-color: var(--df-accent);
  background: rgba(78, 197, 232, 0.08);
  outline: none;
}

.df-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--df-line);
}

.df-metric__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-metric__value {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--df-warm);
  font-variant-numeric: tabular-nums;
}

.df-featured__invite {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--df-muted);
}

/* Abstract identity panel — no invented photography */
.df-identity {
  display: none;
}

@media (min-width: 640px) {
  .df-identity {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 148px;
    border: 1px solid var(--df-line);
    background:
      radial-gradient(120% 90% at 18% 12%, color-mix(in srgb, var(--accent-aurora) 12%, transparent), transparent 55%),
      var(--surface-gradient);
    overflow: hidden;
    padding: 16px;
  }
}

.df-identity__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}

.df-identity__glyph {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 16vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(242, 239, 232, 0.045);
}

.df-identity__word {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--df-warm-soft);
}

.df-identity__rule {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 1px;
  margin: 8px 0 6px;
  background: var(--df-accent);
  opacity: 0.65;
}

.df-identity__caption {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  color: var(--df-muted);
  letter-spacing: 0.04em;
}

/* ─── Explore by cause + sort ─── */

.df-explore {
  margin-bottom: 28px;
}

.df-explore__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 12px;
}

.df-explore__header .df-section-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.df-causes {
  margin: 0 0 18px;
}

.df-causes__scroller {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 4px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.df-causes__scroller::-webkit-scrollbar {
  display: none;
}

.df-cause {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--df-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.df-cause__icon {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.df-cause__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.df-cause:hover,
.df-cause:focus-visible {
  color: var(--df-warm-soft);
  border-color: var(--border-soft);
  outline: none;
}

.df-cause.is-active {
  color: var(--df-accent);
  border-color: color-mix(in srgb, var(--df-accent) 60%, transparent);
  background: color-mix(in srgb, var(--df-accent) 10%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--df-accent) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--df-accent) 12%, transparent);
}

.df-causes__note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--df-muted);
  max-width: 34em;
}

/* ─── Featured spotlight ─── */

.df-spotlight {
  margin-bottom: 34px;
}

.df-spotlight__card {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 1px solid var(--df-line);
  border-radius: 12px;
  background: var(--mem-card-bg);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.df-spotlight__card:hover,
.df-spotlight__card:focus-visible {
  border-color: color-mix(in srgb, var(--df-accent) 35%, var(--df-line));
  background: #0a0a0c;
  transform: translateY(-2px);
  outline: none;
}

@media (min-width: 720px) {
  .df-spotlight__card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 280px;
  }
}

.df-spotlight__copy {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.df-spotlight__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--df-line);
  margin-bottom: 14px;
}

.df-spotlight__avatar--glyph {
  display: grid;
  place-items: center;
  background: var(--bg-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--df-warm-soft);
}

.df-spotlight__name {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--df-warm);
}

.df-spotlight__mission {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--df-warm-soft);
  max-width: 28em;
}

.df-spotlight__meta {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--df-muted);
}

.df-spotlight__stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--df-warm-soft);
}

.df-spotlight__stat-icon {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: var(--df-accent);
}

.df-spotlight__stat-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.df-spotlight__note {
  margin: 0 0 16px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--df-accent);
}

.df-spotlight__cta {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--df-warm);
  transition: color 0.2s ease;
}

.df-spotlight__cta span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.df-spotlight__card:hover .df-spotlight__cta,
.df-spotlight__card:focus-visible .df-spotlight__cta {
  color: var(--df-accent);
}

.df-spotlight__card:hover .df-spotlight__cta span,
.df-spotlight__card:focus-visible .df-spotlight__cta span {
  transform: translateX(4px);
}

.df-spotlight__media {
  position: relative;
  min-height: 180px;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(78, 197, 232, 0.08), transparent 55%),
    #0c0c0e;
  overflow: hidden;
}

.df-spotlight__media.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 8, 0.55) 0%, rgba(7, 7, 8, 0.12) 45%, transparent 70%),
    linear-gradient(0deg, rgba(7, 7, 8, 0.35), transparent 40%);
  pointer-events: none;
}

.df-spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 180px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 720px) {
  .df-spotlight__media,
  .df-spotlight__media img {
    min-height: 100%;
    height: 100%;
  }
}

.df-spotlight__card:hover .df-spotlight__media img,
.df-spotlight__card:focus-visible .df-spotlight__media img {
  transform: scale(1.035);
}

.df-spotlight__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: rgba(242, 239, 232, 0.06);
}

/* ─── Foundation cards ─── */

.df-foundations {
  margin-bottom: 36px;
}

.df-fcards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

/* Compact 3-column Foundations grid (mobile-first). */
.df-fcards--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 7px;
  align-items: stretch;
}

.df-fcards--grid > li {
  min-width: 0;
  display: flex;
}

.df-gcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--df-line);
  border-radius: 11px;
  background: var(--mem-card-bg);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.df-gcard:hover,
.df-gcard:focus-visible {
  border-color: color-mix(in srgb, var(--df-accent) 30%, var(--df-line));
  background: #0a0a0c;
  transform: translateY(-1px);
  outline: none;
}

.df-gcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  overflow: hidden;
  flex: 0 0 auto;
}

.df-gcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.df-gcard__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(242, 239, 232, 0.22);
}

.df-gcard__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  gap: 2px;
  padding: 8px;
}

.df-gcard__name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--df-warm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.df-gcard__person {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--df-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.df-gcard__raised {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: auto;
  padding-top: 6px;
  min-width: 0;
}

.df-gcard__raised-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--df-muted);
}

.df-gcard__raised-amount {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--df-warm);
  font-variant-numeric: tabular-nums;
}

.df-foundations[data-view="grid"] .df-fcards--grid,
.df-foundations[data-view="list"] .df-fcards:not(.df-fcards--grid) {
  animation: df-view-fade 0.22s ease;
}

@keyframes df-view-fade {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .df-foundations[data-view="grid"] .df-fcards--grid,
  .df-foundations[data-view="list"] .df-fcards:not(.df-fcards--grid) {
    animation: none;
  }
}

.df-fcard {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 1px solid var(--df-line);
  border-radius: 10px;
  background: var(--mem-card-bg);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.df-fcard--pending {
  cursor: default;
  pointer-events: none;
}

.df-fcard__media--pending,
.df-pending-line {
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    var(--df-line) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: df-pending-shimmer 1.2s ease-in-out infinite;
}

.df-fcard__body .df-pending-line {
  display: block;
  border-radius: 6px;
  margin-bottom: 10px;
}

.df-pending-line--title {
  height: 16px;
  width: 58%;
}

.df-pending-line--meta {
  height: 12px;
  width: 42%;
}

.df-pending-line--copy {
  height: 12px;
  width: 78%;
  margin-bottom: 0;
}

@keyframes df-pending-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Mobile: full-width cover on top so landscape images stay readable */
.df-fcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.df-fcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.df-fcard:hover,
.df-fcard:focus-visible {
  border-color: color-mix(in srgb, var(--df-accent) 30%, var(--df-line));
  background: #0a0a0c;
  transform: translateY(-1px);
  outline: none;
}

.df-fcard:hover .df-fcard__media img,
.df-fcard:focus-visible .df-fcard__media img {
  transform: scale(1.03);
}

/* Wider screens: side-by-side with a generous image column */
@media (min-width: 640px) {
  .df-fcard {
    grid-template-columns: minmax(200px, 0.42fr) minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 188px;
  }

  .df-fcard__media {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
    align-self: stretch;
  }

  .df-fcard__media img {
    object-position: center center;
  }
}

.df-fcard__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(242, 239, 232, 0.2);
}

.df-fcard__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px;
  min-width: 0;
}

.df-fcard__badge {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--df-accent);
}

.df-fcard__name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--df-warm);
}

.df-fcard__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--df-muted);
}

.df-fcard__mission {
  margin: 2px 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--df-warm-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .df-fcard__mission {
    -webkit-line-clamp: 3;
  }
}

.df-fcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.df-fcard__tag {
  border: 1px solid var(--df-line);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-fcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.df-fcard__status {
  font-size: 0.72rem;
  color: var(--df-muted);
  line-height: 1.35;
}

.df-fcard__arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--df-warm-soft);
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}

.df-fcard__arrow svg {
  width: 0.72rem;
  height: 0.72rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.df-fcard:hover .df-fcard__arrow,
.df-fcard:focus-visible .df-fcard__arrow {
  color: var(--df-accent);
  transform: translateX(3px);
}

/* ─── Happening now ─── */

.df-now {
  margin-bottom: 20px;
}

.df-now__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.df-now__copy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--df-muted);
  max-width: 22em;
}

.df-now__link {
  appearance: none;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--df-warm-soft);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.df-now__link span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.df-now__link:hover,
.df-now__link:focus-visible {
  color: var(--df-accent);
  outline: none;
}

.df-now__link:hover span,
.df-now__link:focus-visible span {
  transform: translateX(3px);
}

.df-now__rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 8px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
}

.df-now__rail::-webkit-scrollbar {
  display: none;
}

.df-pcard {
  appearance: none;
  flex: 0 0 min(72vw, 220px);
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--df-line);
  border-radius: 10px;
  background: var(--mem-card-bg);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.df-pcard:hover,
.df-pcard:focus-visible {
  border-color: color-mix(in srgb, var(--df-accent) 30%, var(--df-line));
  transform: translateY(-1px);
  outline: none;
}

.df-pcard__media {
  position: relative;
  height: 120px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.df-pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.df-pcard:hover .df-pcard__media img,
.df-pcard:focus-visible .df-pcard__media img {
  transform: scale(1.04);
}

.df-pcard__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(242, 239, 232, 0.18);
}

.df-pcard__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.df-pcard__foundation {
  font-size: 0.68rem;
  color: var(--df-muted);
}

.df-pcard__title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--df-warm);
}

.df-pcard__cat {
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--df-accent);
}

.df-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--df-line);
}

.df-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px 16px;
  align-items: start;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--df-line);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.25s ease;
}

.df-row:hover,
.df-row:focus-visible {
  background: var(--surface-lift-soft);
  outline: none;
}

.df-row__mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--df-line);
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--df-warm-soft);
  background: #080809;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 2px;
}

.df-row__mark--cover {
  width: 64px;
  height: 44px;
}

.df-row__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.df-row__body {
  min-width: 0;
  padding-right: 4px;
}

.df-row__name {
  margin: 0 0 2px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--df-warm);
}

.df-row__meta {
  margin: 0 0 4px;
  font-size: 0.74rem;
  color: var(--df-muted);
}

.df-row__mission {
  margin: 0 0 6px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--df-warm-soft);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.df-row__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-row__stats strong {
  font-weight: 500;
  color: var(--df-warm-soft);
  font-variant-numeric: tabular-nums;
}

.df-row__arrow {
  align-self: center;
  color: var(--df-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.df-row:hover .df-row__arrow,
.df-row:focus-visible .df-row__arrow {
  color: var(--df-accent);
  transform: translateX(3px);
}

.df-row__arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.df-empty {
  padding: 28px 0;
  border-top: 1px solid var(--df-line);
}

.df-empty__title {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--df-warm-soft);
}

.df-empty__copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--df-muted);
  max-width: 28em;
}

.df-empty__action {
  appearance: none;
  margin-top: 18px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--df-warm-soft);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.df-empty__action:hover,
.df-empty__action:focus-visible {
  border-color: var(--df-accent);
  color: var(--df-accent);
  outline: none;
}

/* ─── Inline search ─── */

.df-search-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: -6px 0 18px;
}

.df-search-inline__input {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--df-line);
  background: transparent;
  color: var(--df-warm);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.25s ease;
}

.df-search-inline__input::placeholder {
  color: var(--df-muted);
}

.df-search-inline__input:focus {
  border-bottom-color: var(--df-accent);
}

.df-search-inline__close {
  appearance: none;
  border: 1px solid var(--df-line);
  background: transparent;
  color: var(--df-warm-soft);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.df-search-inline__close:hover,
.df-search-inline__close:focus-visible {
  border-color: var(--df-accent);
  color: var(--df-warm);
  outline: none;
}

/* ─── Search people results ─── */

.df-search-results {
  margin-top: 4px;
}

.df-search-results__hint {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--df-muted);
  line-height: 1.45;
}

.df-srows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--df-line);
}

.df-srow {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--df-line);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.df-srow:hover,
.df-srow:focus-visible {
  background: var(--surface-lift-soft);
  outline: none;
}

.df-srow__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--df-line);
  background: var(--bg-secondary);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.df-srow__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.df-srow__avatar span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--df-warm-soft);
}

.df-srow__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.df-srow__creator {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--df-warm);
  line-height: 1.25;
}

.df-srow__foundation {
  font-size: 0.82rem;
  color: var(--df-muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.df-srow__arrow {
  color: var(--df-warm-soft);
  transition: transform 0.22s ease, color 0.22s ease;
}

.df-srow__arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.df-srow:hover .df-srow__arrow,
.df-srow:focus-visible .df-srow__arrow {
  color: var(--df-accent);
  transform: translateX(3px);
}

/* Legacy overlay styles kept minimal for any residual markup */
.df-search {
  display: none;
}

/* ─── Foundation profile (dedicated immersive page) ─── */

.df-fp {
  /* Cancel .donate-page top/side padding so the cover sits flush under the fixed nav. */
  margin: calc(-14px - env(safe-area-inset-top, 0px)) -20px 0;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 0 8px;
}

.df-fp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  box-sizing: border-box;
  padding: calc(4px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  /* Solid/composited layer — sticky + fading gradients tremble on mobile scroll. */
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.df-fp-nav__back,
.df-fp-nav__icon {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--df-muted);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.df-fp-nav__back {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 4px;
}

.df-fp-nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.df-fp-nav__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
}

.df-fp-nav__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.df-fp-nav__back:hover,
.df-fp-nav__back:focus-visible,
.df-fp-nav__icon:hover,
.df-fp-nav__icon:focus-visible {
  color: var(--df-accent);
  outline: none;
}

.df-fp-nav__favorite.is-on {
  color: var(--df-accent, #4ec5e8);
}

.df-fp-nav__favorite.is-on svg {
  fill: currentColor;
  stroke: currentColor;
}

.df-fp-nav__favorite.is-on:hover,
.df-fp-nav__favorite.is-on:focus-visible {
  color: var(--df-accent, #4ec5e8);
}

.df-fp-nav__share.is-copied {
  color: var(--df-accent);
  border-color: color-mix(in srgb, var(--df-accent) 35%, transparent);
}

.df-fp-hero {
  position: relative;
  /* Pull cover flush under the nav border — kills the hairline gap. */
  margin-top: -1px;
}

.df-fp-hero__visual {
  position: relative;
  width: 100%;
  min-height: 220px;
  max-height: min(52vh, 360px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(78, 197, 232, 0.12), transparent 70%),
    #070708;
}

.df-fp-hero__visual.has-image {
  min-height: 260px;
}

.df-fp-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: min(52vh, 360px);
  object-fit: cover;
  object-position: center 22%;
}

.df-fp-hero__fallback {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--df-warm-soft);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.df-fp-hero__fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.72) 78%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.df-fp-hero__content {
  position: relative;
  margin-top: -72px;
  padding: 0 20px 8px;
  z-index: 1;
}

.df-fp-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #000;
  box-shadow:
    0 0 0 1px rgba(78, 197, 232, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.45);
  background: #121214;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--df-warm-soft);
  margin-bottom: 16px;
}

.df-fp-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.df-fp-hero__visual.is-previewable,
button.df-fp-hero__avatar.is-previewable {
  cursor: zoom-in;
}

button.df-fp-hero__avatar {
  appearance: none;
  -webkit-appearance: none;
  margin: 0 0 16px;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: zoom-in;
}

button.df-fp-hero__avatar:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--df-accent) 70%, transparent);
  outline-offset: 3px;
}

.df-fp-hero__visual.is-previewable:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--df-accent) 70%, transparent);
  outline-offset: -2px;
}

html.is-df-fp-lightbox-open,
html.is-df-fp-lightbox-open body {
  overflow: hidden;
}

.df-fp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.df-fp-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.df-fp-lightbox[hidden] {
  display: none !important;
}

.df-fp-lightbox__close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f2efe8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.df-fp-lightbox__close:hover,
.df-fp-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: none;
}

.df-fp-lightbox__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.df-fp-lightbox__img {
  display: block;
  max-width: min(100%, 1100px);
  max-height: min(88vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  transform: scale(0.97);
  opacity: 0.88;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.df-fp-lightbox.is-open .df-fp-lightbox__img {
  transform: scale(1);
  opacity: 1;
}

.df-fp-lightbox.is-profile .df-fp-lightbox__img {
  width: min(52vw, 280px);
  height: min(52vw, 280px);
  max-width: min(52vw, 280px);
  max-height: min(52vw, 280px);
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 18px 50px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .df-fp-lightbox,
  .df-fp-lightbox__img {
    transition: none;
  }
}


.df-fp-hero__title {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 6.4vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--df-warm);
}

.df-fp-hero__byline {
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: var(--df-warm-soft);
}

.df-fp-hero__place {
  margin: 0 0 16px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--df-muted);
}

.df-fp-hero__mission {
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--df-warm-soft);
  max-width: 32em;
}

.df-fp-supporters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--df-warm);
}

.df-fp-supporters__icon {
  width: 18px;
  height: 18px;
  stroke: var(--df-accent);
  fill: none;
  stroke-width: 1.5;
  flex: 0 0 auto;
}

.df-fp-supporters__count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.df-fp-supporters__label {
  color: var(--df-muted);
}

.df-fp-raised {
  margin: 0 0 22px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--df-muted);
  font-variant-numeric: tabular-nums;
}

.df-fp-cta {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--df-accent);
  color: #041018;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 22px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(78, 197, 232, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.df-fp-cta:hover:not(:disabled),
.df-fp-cta:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(78, 197, 232, 0.32);
  outline: none;
}

.df-fp-cta:active:not(:disabled) {
  transform: translateY(0);
}

.df-fp-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.df-fp-cta--secondary {
  background: transparent;
  color: var(--df-accent);
  border: 1px solid color-mix(in srgb, var(--df-accent) 45%, var(--df-line));
  box-shadow: none;
}

.df-fp-cta--secondary:hover:not(:disabled),
.df-fp-cta--secondary:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--df-accent) 10%, transparent);
  box-shadow: none;
}

.df-fp-block {
  margin: 36px 20px 0;
  padding-top: 28px;
  border-top: 1px solid var(--df-line);
}

.df-fp-kicker {
  margin: 0 0 12px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-fp-block__title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--df-warm);
}

.df-fp-about__text,
.df-fp-muted,
.df-fp-story__panel p,
.df-fp-transparency__note,
.df-fp-transparency__detail p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--df-warm-soft);
}

.df-fp-muted {
  color: var(--df-muted) !important;
}

.df-fp-stories {
  display: grid;
  gap: 10px;
  border-top: 0;
  padding-top: 8px;
  margin-top: 28px;
}

.df-fp-story {
  border: 1px solid var(--df-line);
  border-radius: 14px;
  background: var(--surface-lift-soft);
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.df-fp-story.is-open {
  border-color: color-mix(in srgb, var(--df-accent) 28%, var(--df-line));
  background: color-mix(in srgb, var(--df-accent) 4%, transparent);
}

.df-fp-story__trigger {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
}

.df-fp-story__index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--df-accent);
}

.df-fp-story__heading {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--df-warm);
}

.df-fp-story__chevron {
  width: 18px;
  height: 18px;
  stroke: var(--df-muted);
  fill: none;
  stroke-width: 1.7;
  transition: transform 0.22s ease, stroke 0.22s ease;
}

.df-fp-story.is-open .df-fp-story__chevron {
  transform: rotate(180deg);
  stroke: var(--df-accent);
}

.df-fp-story__panel {
  padding: 0 14px 16px;
}

.df-fp-story__panel .df-chips {
  margin-top: 4px;
}

.df-fp-projects__scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.df-fp-projects__scroller::-webkit-scrollbar {
  display: none;
}

.df-fp-projects__item {
  flex: 0 0 min(82vw, 300px);
  scroll-snap-align: start;
}

.df-fp-project {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--df-line);
  border-radius: 16px;
  background: var(--surface-lift-soft);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.df-fp-project:active {
  transform: scale(0.985);
}

.df-fp-project__media {
  height: 140px;
  background:
    linear-gradient(145deg, rgba(78, 197, 232, 0.1), transparent 55%),
    #101014;
  display: grid;
  place-items: center;
}

.df-fp-project__media.has-image {
  background: #0a0a0c;
}

.df-fp-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.df-fp-project__glyph {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--df-accent) 70%, var(--df-muted));
}

.df-fp-project__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1;
}

.df-fp-project__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--df-warm);
}

.df-fp-project__meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-fp-project__desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--df-warm-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.df-fp-project__funding {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--df-muted);
}

.df-fp-project__donate {
  appearance: none;
  margin-top: auto;
  border: 0;
  background: transparent;
  color: var(--df-accent);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 0 2px;
  text-align: left;
  cursor: pointer;
}

.df-fp-project__donate:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.df-fp-alloc {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
}

.df-fp-alloc__row {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
}

.df-fp-alloc__pct {
  grid-row: 1 / span 2;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--df-accent);
  font-variant-numeric: tabular-nums;
}

.df-fp-alloc__label {
  font-size: 0.9rem;
  color: var(--df-warm-soft);
}

.df-fp-alloc__track {
  height: 3px;
  border-radius: 999px;
  background: var(--df-line);
  overflow: hidden;
}

.df-fp-alloc__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--df-accent);
  box-shadow: 0 0 10px rgba(78, 197, 232, 0.35);
}

.df-fp-transparency__more {
  appearance: none;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--df-accent);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.df-fp-transparency__detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--df-line);
}

.df-fp-transparency__detail:not([hidden]) {
  display: grid;
  gap: 12px;
}

.df-fp-transparency__detail[hidden] {
  display: none !important;
}

.df-fp-support-end {
  border-top: 0;
  padding-top: 8px;
}

.df-fp .df-section {
  margin-left: 20px;
  margin-right: 20px;
}

.df-fp .df-verified {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--df-accent);
  vertical-align: middle;
}

.df-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.df-chip {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--df-muted);
  border: 1px solid var(--df-line);
  border-radius: 999px;
  padding: 6px 10px;
}

.df-progress {
  height: 2px;
  background: var(--df-line);
  margin: 2px 0 0;
  overflow: hidden;
  border-radius: 999px;
}

.df-progress__bar {
  height: 100%;
  background: var(--df-accent);
  box-shadow: 0 0 8px rgba(78, 197, 232, 0.45);
}

/* Legacy confirmation CTA */
.df-btn-primary {
  appearance: none;
  border: 0;
  background: var(--df-accent);
  color: #041018;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.df-btn-primary:hover:not(:disabled),
.df-btn-primary:focus-visible:not(:disabled) {
  opacity: 0.92;
  outline: none;
}

.df-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.df-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--df-line);
}

.df-section h2 {
  margin: 0 0 14px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-section h3 {
  margin: 22px 0 8px;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--df-warm);
}

.df-section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--df-warm-soft);
}

.df-muted {
  color: var(--df-muted) !important;
}

.df-verified {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--df-accent);
  vertical-align: middle;
}

@media (min-width: 480px) {
  .df-fp-projects__item {
    flex-basis: 280px;
  }

  .df-fp-cta {
    width: auto;
    min-width: 240px;
  }
}

@media (max-width: 360px) {
  .df-fp-hero__content,
  .df-fp-block,
  .df-fp .df-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .df-fp-block,
  .df-fp .df-section {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .df-fp-hero__content {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .df-fp-cta,
  .df-fp-project,
  .df-fp-story__chevron {
    transition: none !important;
  }
}

.df-social {
  margin-top: 8px;
}

.df-social__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.df-social__link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--df-line);
  border-radius: 10px;
  color: var(--df-warm-soft);
  background: transparent;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.df-social__link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.df-social__link:hover,
.df-social__link:focus-visible {
  color: var(--df-accent);
  border-color: color-mix(in srgb, var(--df-accent) 45%, var(--df-line));
  background: color-mix(in srgb, var(--df-accent) 8%, transparent);
  outline: none;
}

/* ─── States ─── */

.df-state {
  padding: 48px 0 24px;
}

.df-state__loading,
.df-state__title {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--df-warm);
}

.df-state__copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--df-muted);
  max-width: 28em;
}

.df-demo-banner {
  margin: 0 0 20px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

/* ─── Confirmation ─── */

.df-confirm {
  padding: 48px 0 24px;
  max-width: 28rem;
}

.df-confirm__title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 5.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--df-warm);
}

.df-confirm__copy {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--df-warm-soft);
}

.df-confirm__meta {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--df-muted);
}

.df-confirm__note {
  margin: 0 0 28px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--df-muted);
}

/* ─── Modal (donate flow) ─── */

.donate-modal {
  max-width: 440px;
  background: #0a0a0b;
  border: 1px solid var(--df-line);
  border-radius: 18px;
}

.donate-modal .modal-title {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--df-warm);
}

.donate-modal .modal-copy,
.donate-modal__note,
.donate-modal__label {
  color: var(--df-muted);
}

.donate-modal__label {
  margin: 18px 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.donate-amount {
  appearance: none;
  border: 1px solid var(--df-line);
  background: transparent;
  color: var(--df-warm-soft);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 12px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.donate-amount.is-selected {
  border-color: var(--df-accent);
  color: var(--df-warm);
}

.donate-custom {
  margin-top: 12px;
}

.donate-payments {
  display: grid;
  gap: 8px;
}

.donate-payment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--df-line);
  border-radius: 10px;
  color: var(--df-warm-soft);
  cursor: pointer;
}

.donate-payment.is-selected {
  border-color: var(--df-accent);
  color: var(--df-warm);
}

.donate-modal__note {
  margin: 16px 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.donate-modal__actions {
  margin-top: 8px;
}

/* Legacy aliases used lightly by shared overlay styles */
.cf-muted { color: var(--df-muted); }

/* Legacy aliases used lightly by shared overlay styles */
.cf-muted { color: var(--df-muted); }

/* ─── Donation checkout flow ─── */

body.df-checkout-open {
  overflow: hidden;
}

.df-checkout {
  position: fixed;
  inset: 0;
  z-index: 220;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(78, 197, 232, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(78, 197, 232, 0.04), transparent 50%),
    #000000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(28px + env(safe-area-inset-bottom, 0));
}

.df-checkout__panel {
  max-width: 440px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.df-checkout__panel--amount {
  max-width: 420px;
  padding-top: 4px;
}

.df-checkout__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 8px;
}

.df-checkout__back,
.df-checkout__close,
.df-checkout__link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--df-muted);
  font-family: var(--font-sans);
  cursor: pointer;
}

.df-checkout__back {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 4px;
}

.df-checkout__close {
  width: 40px;
  height: 40px;
  font-size: 1.45rem;
  line-height: 1;
  color: rgba(242, 239, 232, 0.45);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.df-checkout__close:hover,
.df-checkout__close:focus-visible {
  color: var(--df-warm-soft);
  background: var(--surface-lift);
  outline: none;
}

.df-checkout__back:hover,
.df-checkout__link:hover {
  color: var(--df-accent);
}

.df-checkout__back-spacer {
  width: 40px;
}

.df-checkout__kicker {
  margin: 0 0 10px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--df-accent);
}

.df-checkout__eyebrow {
  margin: 4px 0 18px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--df-accent);
  text-align: center;
}

.df-checkout__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 22px;
}

.df-checkout__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #121214;
  border: 1px solid var(--border-mid);
  box-shadow: 0 0 0 1px rgba(78, 197, 232, 0.12), 0 12px 32px rgba(0, 0, 0, 0.45);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--df-warm-soft);
  letter-spacing: 0.04em;
}

.df-checkout__avatar.has-image {
  border-color: transparent;
}

.df-checkout__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.df-checkout__foundation-name {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 5.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--df-warm);
}

.df-checkout__creator {
  margin: 0;
  font-size: 0.95rem;
  color: var(--df-warm-soft);
}

.df-checkout__verified {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--df-accent);
}

.df-checkout__prompt {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--df-warm-soft);
}

.df-checkout__title {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--df-warm);
}

.df-checkout__byline {
  margin: 0 0 18px;
  color: var(--df-warm-soft);
  font-size: 0.95rem;
}

.df-checkout__project {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--df-muted);
}

.df-checkout__hint {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--df-warm-soft);
}

.df-checkout__amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.df-checkout__amount {
  appearance: none;
  border: 1px solid var(--border-mid);
  background: var(--surface-lift-soft);
  color: var(--df-warm-soft);
  border-radius: 16px;
  padding: 16px 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

.df-checkout__amount:hover {
  border-color: var(--border-soft);
  color: var(--df-warm);
}

.df-checkout__amount:focus-visible {
  outline: none;
  border-color: var(--df-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--df-accent) 28%, transparent);
}

.df-checkout__amount.is-selected {
  border-color: var(--df-accent);
  color: var(--df-warm);
  background: color-mix(in srgb, var(--df-accent) 10%, var(--surface-lift-soft));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--df-accent) 35%, transparent),
    0 8px 28px rgba(78, 197, 232, 0.12);
  transform: translateY(-1px);
}

.df-checkout__custom {
  margin-bottom: 16px;
}

.df-checkout__custom-field {
  margin: 0 0 18px;
}

.df-checkout__custom-field[hidden] {
  display: none !important;
}

.df-checkout__custom-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-checkout__custom-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-lift-mid);
  padding: 4px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.df-checkout__custom-input:focus-within {
  border-color: var(--df-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--df-accent) 22%, transparent);
}

.df-checkout__currency {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--df-muted);
}

.df-checkout__custom-input input {
  flex: 1;
  min-width: 0;
  appearance: textfield;
  border: 0;
  background: transparent;
  color: var(--df-warm);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 12px 0;
  outline: none;
}

.df-checkout__custom-input input::-webkit-outer-spin-button,
.df-checkout__custom-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.df-checkout__cta {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #4ec5e8;
  background: var(--df-accent, #4ec5e8);
  color: #041018;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 22px;
  margin-top: 10px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  isolation: isolate;
  box-shadow: none;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.df-checkout__cta:hover:not(:disabled),
.df-checkout__cta:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  outline: none;
}

.df-checkout__cta:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.96);
}

.df-checkout__cta:disabled {
  background: rgba(78, 197, 232, 0.22);
  color: rgba(4, 16, 24, 0.55);
  opacity: 1;
  cursor: not-allowed;
  filter: none;
}

.df-checkout__cta--ghost {
  background: transparent;
  color: var(--df-accent);
  border: 1px solid color-mix(in srgb, var(--df-accent) 45%, var(--df-line));
  box-shadow: none;
}

.df-checkout__error {
  margin: 12px 0 0;
  color: #ff8e8e;
  font-size: 0.88rem;
  line-height: 1.45;
}

.df-checkout__note,
.df-checkout__secure {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--df-muted);
}

.df-checkout__transparency {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.df-checkout__transparency-kicker {
  margin: 0 0 8px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-checkout__transparency-copy {
  margin: 0 auto 12px;
  max-width: 28em;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--df-muted);
}

.df-checkout__fee-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--df-accent);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.df-checkout__fee-details {
  margin-top: 12px;
  text-align: left;
}

.df-checkout__fee-preview {
  border: 1px solid var(--df-line);
  border-radius: 14px;
  padding: 4px 14px;
  background: var(--surface-lift-soft);
}

.df-checkout__location--compact {
  margin: 8px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.df-checkout__location--compact .df-checkout__meta-label {
  margin-bottom: 4px;
}

.df-checkout__location--compact .df-checkout__link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
}

.df-checkout__location--compact .df-checkout__location-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--df-warm-soft);
}

@media (max-width: 480px) {
  .df-checkout__panel--amount {
    max-width: 100%;
  }

  .df-checkout__avatar {
    width: 64px;
    height: 64px;
  }

  .df-checkout__amounts {
    gap: 8px;
  }

  .df-checkout__amount {
    padding: 15px 6px;
    font-size: 0.95rem;
    border-radius: 14px;
  }

  .df-checkout__cta {
    padding: 15px 18px;
  }
}


.df-checkout__loc-icon {
  color: var(--df-accent);
  font-size: 0.85rem;
  opacity: 0.85;
}


.df-checkout__card-form {
  margin: 8px 0 16px;
  display: grid;
  gap: 12px;
}

.df-checkout__card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 420px) {
  .df-checkout__card-row {
    grid-template-columns: 1fr 1fr;
  }

  .df-checkout__card-row .form-group:last-child {
    grid-column: 1 / -1;
  }
}

.df-checkout__payment-el {
  min-height: 180px;
  margin: 8px 0 4px;
}

.df-checkout__payment-el.is-preparing {
  display: grid;
  place-items: center;
  border: 1px solid var(--df-line);
  border-radius: 14px;
  background: var(--surface-lift-soft);
}

.df-checkout__payment-preparing {
  margin: 0;
  font-size: 0.9rem;
  color: var(--df-muted);
  letter-spacing: 0.02em;
}

.df-checkout__payment-hold {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.df-checkout__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--df-warm-soft);
  font-size: 0.92rem;
  cursor: pointer;
}

.df-checkout__message {
  min-height: 120px;
  resize: vertical;
}

.df-checkout__counter {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--df-muted);
  text-align: right;
}

.df-checkout__logo {
  display: block;
  width: 64px;
  height: auto;
  margin: 8px auto 16px;
}

.df-checkout__summary,
.df-checkout__success,
.df-checkout__receipt {
  text-align: left;
}

.df-checkout__success {
  text-align: center;
}

.df-checkout__success .df-checkout__logo,
.df-checkout__success .df-checkout__title {
  text-align: center;
}

.df-checkout__fee-card {
  border: 1px solid var(--df-line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0 10px;
  background: var(--surface-lift-soft);
}

.df-checkout__fee-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--df-warm-soft);
  border-bottom: 1px solid var(--df-line);
}

.df-checkout__fee-row:last-child {
  border-bottom: 0;
}

.df-checkout__fee-row strong {
  color: var(--df-warm);
  font-weight: 600;
}

.df-checkout__fee-row--total {
  margin-top: 4px;
  padding-top: 12px;
  color: var(--df-warm);
}

.df-checkout__meta {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.df-checkout__meta-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--df-muted);
}

.df-checkout__link {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  font-size: 0.8rem;
  color: var(--df-accent);
  text-decoration: none;
}

.df-checkout__warn {
  color: #ffb86b;
}

.df-checkout__confirm-line {
  margin: 22px 0 0;
  font-size: 0.92rem;
  color: var(--df-warm-soft);
}

.df-checkout__success-amount {
  margin: 18px 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--df-accent);
  letter-spacing: -0.03em;
}

.df-checkout__community {
  margin: 22px auto;
  max-width: 280px;
  padding: 16px;
  border: 1px solid var(--df-line);
  border-radius: 14px;
  color: var(--df-warm-soft);
  font-size: 0.92rem;
}

.df-checkout__success-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 360px) {
  .df-checkout__amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.df-checkout__location {
  margin: 18px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--df-line);
}

.df-checkout__location-value {
  margin: 4px 0 6px;
  font-size: 0.95rem;
  color: var(--df-warm-soft);
}

/* Light Mode only — Donate home chrome + foundation cards.
   Dark Mode stays untouched. */
html[data-theme="light"] .df-intro__title,
html[data-theme="light"] .df-fcard__name,
html[data-theme="light"] .df-fcard__mission,
html[data-theme="light"] .df-gcard__name,
html[data-theme="light"] .df-gcard__raised-amount {
  color: #0c0c0e;
}

html[data-theme="light"] .df-gcard:hover,
html[data-theme="light"] .df-gcard:focus-visible {
  background: #ececef;
}

html[data-theme="light"] .df-grid-trigger.is-grid {
  color: #0a7f9c;
  background: rgba(10, 127, 156, 0.1);
}

html[data-theme="light"] .df-fcard__arrow {
  color: #4ec5e8;
}

html[data-theme="light"] .df-fcard:hover .df-fcard__arrow,
html[data-theme="light"] .df-fcard:focus-visible .df-fcard__arrow {
  color: #4ec5e8;
}

html[data-theme="light"] .df-search-trigger,
html[data-theme="light"] .df-grid-trigger {
  color: #3f424a;
}

html[data-theme="light"] .df-search-trigger:hover,
html[data-theme="light"] .df-search-trigger:focus-visible,
html[data-theme="light"] .df-grid-trigger:hover,
html[data-theme="light"] .df-grid-trigger:focus-visible {
  color: #0c0c0e;
}

html[data-theme="light"] .df-topbar__logo img {
  filter: none !important;
}

/* Light Mode only — Donate search: Close darker grey, typed text dark grey, names black */
html[data-theme="light"] .df-search-inline__close {
  color: #3f424a;
}

html[data-theme="light"] .df-search-inline__close:hover,
html[data-theme="light"] .df-search-inline__close:focus-visible {
  color: #0c0c0e;
}

html[data-theme="light"] .df-search-inline__input {
  color: #3f424a;
  -webkit-text-fill-color: #3f424a;
}

html[data-theme="light"] .df-srow__creator,
html[data-theme="light"] .df-srow__foundation {
  color: #0c0c0e;
}

/* Light Mode only — Foundation profile: white→black, clear grey→dark grey, Connect icons dark grey */
html[data-theme="light"] .df-fp-hero__title,
html[data-theme="light"] .df-fp-supporters,
html[data-theme="light"] .df-fp-supporters__count,
html[data-theme="light"] .df-fp-block__title,
html[data-theme="light"] .df-fp-story__heading,
html[data-theme="light"] .df-fp-project__title,
html[data-theme="light"] .df-section h3,
html[data-theme="light"] .df-fp .df-verified {
  color: #0c0c0e;
}

html[data-theme="light"] .df-fp-hero__byline,
html[data-theme="light"] .df-fp-hero__place,
html[data-theme="light"] .df-fp-hero__mission,
html[data-theme="light"] .df-fp-supporters__label,
html[data-theme="light"] .df-fp-raised,
html[data-theme="light"] .df-fp-kicker,
html[data-theme="light"] .df-fp-about__text,
html[data-theme="light"] .df-fp-muted,
html[data-theme="light"] .df-fp-story__panel p,
html[data-theme="light"] .df-fp-transparency__note,
html[data-theme="light"] .df-fp-transparency__detail p,
html[data-theme="light"] .df-fp-project__meta,
html[data-theme="light"] .df-fp-project__desc,
html[data-theme="light"] .df-fp-project__funding,
html[data-theme="light"] .df-fp-alloc__label,
html[data-theme="light"] .df-fp-nav__back,
html[data-theme="light"] .df-fp-nav__icon,
html[data-theme="light"] .df-section h2,
html[data-theme="light"] .df-section p,
html[data-theme="light"] .df-fp .df-muted {
  color: #3f424a !important;
}

html[data-theme="light"] .df-fp-nav__favorite.is-on {
  color: var(--df-accent, #4ec5e8) !important;
}

html[data-theme="light"] .df-fp-story__chevron {
  stroke: #3f424a;
}

html[data-theme="light"] .df-social__link {
  color: #3f424a;
}

html[data-theme="light"] .df-social__link:hover,
html[data-theme="light"] .df-social__link:focus-visible {
  color: var(--df-accent);
}
