/* ==========================================================================
   Donate a Cake - design system
   Ported from the Framer concept at donatecake.framer.website.

   Palette, type scale, section colours and component shapes are taken from
   the computed styles of that site so the WordPress build matches the
   concept rather than approximating it.
   ========================================================================== */

:root {
  /* Core palette */
  --dc-cream:        #fff9ef;  /* page background */
  --dc-ink:          #29304a;  /* headings, dark buttons, footer */
  --dc-body:         #4a4f66;  /* body copy */
  --dc-pink:         #ef638b;  /* primary accent */
  --dc-pink-hover:   #e34f7b;
  --dc-white:        #ffffff;

  /* Section fills */
  --dc-blue:         #cdeaf5;
  --dc-blue-soft:    #ddeff7;
  --dc-yellow:       #ffd768;
  --dc-yellow-soft:  #fff0bc;
  --dc-pink-soft:    #fce4ea;
  --dc-pink-mid:     #f5a9bb;
  --dc-purple:       #a88acf;
  --dc-purple-soft:  #eee4f9;
  --dc-green-soft:   #e8f3de;

  /* Feedback */
  --dc-success:      #2f8f4e;
  --dc-danger:       #c8325b;

  /* Shape */
  --dc-radius-card:  24px;
  --dc-radius-pill:  100px;
  --dc-radius-panel: 32px;

  --dc-shadow:       0 18px 44px rgba(41, 48, 74, 0.10);
  --dc-shadow-soft:  0 8px 24px rgba(41, 48, 74, 0.06);

  --dc-max:          1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--dc-cream);
  color: var(--dc-ink);
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

h1, h2, h3, h4,
.brand, .button, .menu-toggle, .step-number, .donation-amount {
  font-family: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--dc-ink);
  font-weight: 600;
  letter-spacing: -0.03em;
}
h1, h2, h3 { text-wrap: balance; }

h1 { font-size: 72px; line-height: 1.03; margin: 0; }
h2 { font-size: 46px; line-height: 1.12; margin: 0; }
h3 { font-size: 26px; line-height: 1.2; margin: 0; }

p { margin: 0 0 1.1rem; letter-spacing: -0.02em; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 60;
  top: 10px;
  left: 10px;
  padding: 12px 20px;
  border-radius: var(--dc-radius-pill);
  background: var(--dc-ink);
  color: var(--dc-white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Visible keyboard focus everywhere. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--dc-pink);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 249, 239, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
}

.brand {
  flex: none;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions { display: flex; flex: none; gap: 10px; align-items: center; }

.desktop-nav { display: none; gap: 18px; align-items: center; }
.desktop-nav a {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  color: var(--dc-ink);
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--dc-pink); }

.menu-toggle {
  padding: 10px 14px;
  border: 0;
  border-radius: var(--dc-radius-pill);
  background: var(--dc-ink);
  color: var(--dc-white);
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}
.menu-toggle:hover { background: var(--dc-pink); }

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: clamp(18px, 4vw, 48px);
  display: grid;
  gap: 2px;
  min-width: 232px;
  padding: 14px;
  border-radius: var(--dc-radius-card);
  background: var(--dc-white);
  box-shadow: var(--dc-shadow);
}

/* A class selector outranks the browser default for [hidden], so without
   this the panel renders permanently open on every small screen. */
.menu-panel[hidden] { display: none; }
.menu-panel a {
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--dc-ink);
}
.menu-panel a:hover { background: var(--dc-pink-soft); color: var(--dc-pink); }

/* The header CTA is tighter than a body button so the bar stays on one line. */
.site-header .button { padding: 16px 22px; font-size: 14px; }

@media (max-width: 1199px) {
  .site-header { gap: 2px; padding: 18px; }
  .header-actions { display: contents; }
  .site-header .button { display: inline-block; padding: 10px 12px; font-size: 13px; }
  .brand { font-size: 21px; }
}

@media (max-width: 359px) {
  .site-header { padding-inline: 12px; }
  .brand { font-size: 18px; }
  .site-header .button { padding-inline: 9px; font-size: 11px; }
  .menu-toggle { padding-inline: 10px; font-size: 11px; }
}

@media (min-width: 1200px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .menu-panel  { display: none !important; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 16px 26px;
  border: 0;
  border-radius: var(--dc-radius-pill);
  background: var(--dc-pink);
  color: var(--dc-white) !important;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover {
  transform: translateY(-2px);
  background: var(--dc-pink-hover);
  border-color: var(--dc-pink-hover);
}

.button-dark {
  border-color: var(--dc-ink);
  background: var(--dc-ink);
}
.button-dark:hover { background: #1d2338; border-color: #1d2338; }

.button-outline {
  border: 1px solid var(--dc-ink);
  background: transparent;
  color: var(--dc-ink) !important;
}
.button-outline:hover {
  background: var(--dc-ink);
  color: var(--dc-white) !important;
}

.button[aria-disabled="true"],
.button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { width: 100%; max-width: var(--dc-max); margin: 0 auto; padding: 90px 48px; }
.section-inner,
.section-inner > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap, 22px);
  width: 100%;
  min-width: 0;
}
.section-inner > *,
.section-inner > .wp-block-group__inner-container > * { margin: 0; }
.centered { text-align: center; }

.section-white  { background: transparent; }
.section-cream  { background: var(--dc-cream); }
.section-yellow { background: var(--dc-yellow); }
#one-cake {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 76px 40px;
  border-radius: 32px;
  --section-gap: 16px;
}
#one-cake h2 { font-size: 52px; line-height: 1.12; }
.wp-block-button__link {
  display: inline-block;
  padding: 16px 26px;
  border: 0;
  border-radius: var(--dc-radius-pill);
  background: var(--dc-pink);
  color: var(--dc-white);
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}
.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid var(--dc-ink); color: var(--dc-ink); }
.button-dark .wp-block-button__link { padding: 14px 24px; background: var(--dc-ink); border-color: var(--dc-ink); }
.wp-block-button.button-dark,
.wp-block-button.button-dark:hover { background: transparent; border: 0; }
.wp-block-button__link:hover { background: var(--dc-pink-hover); }
.button-dark .wp-block-button__link:hover { background: var(--dc-ink); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-layout,
.hero-layout > .wp-block-group__inner-container {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
}
.hero-layout .cake-scene { margin: 0; padding: 0; background: transparent; }
.hero-layout .cake-scene img { display: block; width: 100%; border-radius: 32px; }
.hero-copy-panel,
.hero-copy-panel > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy-panel > *,
.hero-copy-panel > .wp-block-group__inner-container > * { margin: 0; }
.centered .wp-block-buttons { justify-content: center; }
.section > .section-inner { width: 100%; }
/* Server-rendered Group blocks have a wrapper absent from serialized previews. */
.wp-block-group:is(.hero-layout, .steps, .roles, .updates):has(> .wp-block-group__inner-container) { display: block; }
:is(.steps, .roles, .updates, .hero-layout) > *,
:is(.steps, .roles, .updates, .hero-layout) > .wp-block-group__inner-container > * { margin-block: 0; min-width: 0; }
.role-card a { text-decoration: none; }
.dac-page-layout .page-hero {
  max-width: 1050px;
  margin: 0 auto;
  padding: 96px 48px 56px;
  background: transparent;
}
.dac-page-layout .page-content {
  max-width: 1050px;
  padding: 0 48px 72px;
}
.dac-page-layout .page-hero-inner,
.dac-page-layout .page-hero-inner > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 22px; }
.dac-page-layout .page-hero-inner > *,
.dac-page-layout .page-hero-inner > .wp-block-group__inner-container > * { margin: 0; }
.dac-card-list,
.dac-card-list > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 16px; }
.dac-card-list > *,
.dac-card-list > .wp-block-group__inner-container > * { margin: 0; }
.dac-content-card { padding: 32px; border-radius: 24px; }
.dac-content-card,
.dac-content-card > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 12px; }
.dac-content-card > *,
.dac-content-card > .wp-block-group__inner-container > * { margin: 0; }
.dac-portable-form .referral-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dac-content-card:nth-child(3n+1) { background: var(--dc-pink-soft); }
.dac-content-card:nth-child(3n+2) { background: var(--dc-yellow-soft); }
.dac-content-card:nth-child(3n+3) { background: var(--dc-blue-soft); }
.dac-page-layout .dac-content-card h2 { margin: 0; font-size: 29px; line-height: 1.2; }
.dac-content-card > :last-child { margin-bottom: 0; }
.dac-page-callout {
  max-width: 1050px;
  margin: 0 auto 72px;
  padding: 48px;
  border-radius: 28px;
  background: var(--dc-yellow);
  text-align: center;
}
.dac-page-callout h2 { margin: 0; }
.dac-page-callout h2 { font-size: 34px; line-height: 1.2; }
#dac-our-story .page-hero { margin-top: 48px; padding: 90px 60px; border-radius: 32px; background: var(--dc-pink-soft); }
#dac-our-story .page-hero h1 { font-size: 64px; }
#dac-our-story .page-content { max-width: 820px; padding: 48px 34px; }
.dac-story-section { padding: 38px 0; }
.dac-story-section:first-child { padding-top: 22px; }
.dac-story-section:last-child { padding-bottom: 20px; }
.dac-story-section,
.dac-story-section > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 16px; }
.dac-story-section > *,
.dac-story-section > .wp-block-group__inner-container > * { margin: 0; }
.dac-story-section h2 { margin: 0; font-size: 38px; }
#dac-our-story .dac-page-callout { max-width: 820px; padding: 58px; }
.section-yellow-soft { background: var(--dc-yellow-soft); }
.section-blue   { background: var(--dc-blue-soft); }
.section-pink   { background: var(--dc-pink); }
.section-pink-soft { background: var(--dc-pink-soft); }

/* On the saturated pink fill the text inverts. */
.section-pink h1, .section-pink h2, .section-pink h3,
.section-pink p, .section-pink .donation-amount { color: var(--dc-white); }
.section-pink .button-outline {
  border-color: var(--dc-white);
  color: var(--dc-white) !important;
}
.section-pink .button-outline:hover {
  background: var(--dc-white);
  color: var(--dc-pink) !important;
}

.section-title { margin: 0; }
.section-intro { font-size: inherit; }
#our-story { max-width: 1040px; padding: 110px 48px; text-align: center; --section-gap: 20px; }
#our-story .section-inner p:nth-of-type(2) { font: 500 28px/1.3 "Fredoka", sans-serif; color: var(--dc-pink); }
#how-it-works { --section-gap: 28px; }
#pilot { padding: 88px 48px; border-radius: 32px; }
#birthday { max-width: 1040px; padding: 98px 48px; --section-gap: 18px; }
#birthday .section-inner p:first-of-type { font: 500 26px/1.45 "Fredoka", sans-serif; color: var(--dc-pink); }
#donate { padding: 96px 48px; border-radius: 32px; --section-gap: 20px; }
#donate h2 { font-size: 50px; line-height: 1.2; }
#donate .section-inner p:first-of-type { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: 0; }
#donate .section-inner p:nth-of-type(3) { font-size: 16px; line-height: 1.2; letter-spacing: 0; }
#donate .fine-print { font-size: 14px; letter-spacing: 0; }
#donate .donation-amount { font: 600 34px/1.2 "Fredoka", sans-serif; }
#donate .donation-unavailable { align-self: center; padding: 16px 28px; border-radius: 100px; background: var(--dc-white); color: var(--dc-ink); font: 800 14px/1.2 "Nunito", sans-serif; }
#transparency { padding: 84px 48px; border-radius: 32px; }
#get-involved { padding: 100px 48px; --section-gap: 26px; }
#updates { padding: 86px 48px; --section-gap: 24px; }
#ready { padding: 96px 48px; border-radius: 32px; }
#ready .wp-block-buttons { flex-direction: column; align-items: center; }
#ready .wp-block-button__link { padding-block: 15px; }
#ready .is-style-outline .wp-block-button__link { border: 0; background: var(--dc-white); }

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--dc-pink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fine-print { color: var(--dc-ink); font-size: 13px; line-height: 1.2; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  max-width: var(--dc-max);
  margin: 0 auto;
  padding: 90px 48px 100px;
}
.hero-copy { max-width: none; font-size: inherit; }
.hero-location { font-size: 14px; line-height: 1.2; font-weight: 800; color: var(--dc-ink); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.centered .hero-actions { justify-content: center; }

/* Cake illustration, rebuilt with CSS to match the concept artwork. */
.cake-scene {
  margin-top: clamp(32px, 5vw, 56px);
  padding: 34px 20px 26px;
  border-radius: var(--dc-radius-panel);
  background: var(--dc-blue);
  text-align: center;
}
.spark-line {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 0 0 6px;
  color: var(--dc-pink);
  font-size: 1.5rem;
}
.spark-line span { display: inline-block; animation: dc-twinkle 2.6s ease-in-out infinite; }
.spark-line span:nth-child(2) { animation-delay: -.4s; }
.spark-line span:nth-child(3) { animation-delay: -.9s; }
.spark-line span:nth-child(4) { animation-delay: -1.4s; }
.spark-line span:nth-child(5) { animation-delay: -1.9s; }
.cake {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 380px;
  margin: 0 auto;
  animation: dc-cake-float 5s ease-in-out infinite;
}
.candles { display: flex; gap: 24px; justify-content: center; margin-bottom: 8px; }
.candle {
  position: relative;
  display: block;
  width: 11px;
  height: 74px;
  border-radius: 6px;
}
.candle:nth-child(1) { background: var(--dc-pink); }
.candle:nth-child(2) { background: var(--dc-yellow); }
.candle:nth-child(3) { background: var(--dc-purple); }

/* Flame: a teardrop with a warm glow, flickering slightly out of sync
   on each candle so it reads as three separate flames. */
.flame {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 13px;
  height: 19px;
  margin-left: -6.5px;
  margin-bottom: 3px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fff3c4 0%, #ffd768 42%, #ff9a3c 78%, rgba(255, 138, 60, 0) 100%);
  box-shadow: 0 0 14px 4px rgba(255, 193, 94, .75);
  transform-origin: 50% 100%;
  animation: dc-flicker 1.1s ease-in-out infinite;
}
.candle:nth-child(2) .flame { animation-duration: .9s;  animation-delay: -.35s; }
.candle:nth-child(3) .flame { animation-duration: 1.3s; animation-delay: -.7s; }

.icing       { display: block; width: 62%; height: 44px; border-radius: 16px; background: var(--dc-white); }
.cake-top    { display: block; width: 78%; height: 78px; margin-top: -6px; border-radius: 16px; background: var(--dc-pink-mid); }
.cake-bottom { display: block; width: 94%; height: 96px; margin-top: -6px; border-radius: 18px; background: var(--dc-pink); }
.cake-plate  { display: block; width: 100%; height: 16px; margin-top: 6px; border-radius: 10px; background: var(--dc-ink); }
.wish {
  margin: 14px 0 0;
  color: var(--dc-ink);
  font-family: "Fredoka", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  animation: dc-wish 4s ease-in-out infinite;
}

@keyframes dc-flicker {
  0%, 100% { transform: scale(1)       rotate(-1.5deg); opacity: 1; }
  25%      { transform: scale(1.1, .94) rotate(2deg);   opacity: .92; }
  50%      { transform: scale(.93, 1.12) rotate(-2deg);  opacity: 1; }
  75%      { transform: scale(1.06, .97) rotate(1deg);   opacity: .95; }
}

@keyframes dc-cake-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@keyframes dc-wish {
  0%, 100% { transform: scale(1);    opacity: .9; }
  50%      { transform: scale(1.04); opacity: 1; }
}

@keyframes dc-twinkle {
  0%, 100% { transform: scale(.75) rotate(0deg);   opacity: .35; }
  50%      { transform: scale(1.25) rotate(180deg); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps,
.steps > .wp-block-group__inner-container {
  display: grid;
  gap: 16px;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step {
  padding: 26px;
  border-radius: var(--dc-radius-card);
  background: var(--dc-cream);
}
.step,
.step > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 12px; }
.step > *,
.step > .wp-block-group__inner-container > * { margin: 0; }
.step:nth-child(5n+1) { background: var(--dc-pink-soft); }
.step:nth-child(5n+2) { background: var(--dc-yellow-soft); }
.step:nth-child(5n+3) { background: var(--dc-blue-soft); }
.step:nth-child(5n+4) { background: var(--dc-purple-soft); }
.step:nth-child(5n+5) { background: var(--dc-green-soft); }
.step-number {
  margin: 0;
  color: var(--dc-pink);
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 700;
}
.step p:last-child { margin-bottom: 0; }
.step:nth-child(2) .step-number { color: #d58429; }
.step:nth-child(3) .step-number { color: #3894ae; }
.step:nth-child(4) .step-number { color: var(--dc-purple); }
.step:nth-child(5) .step-number { color: #629d47; }
.step-summary { font: 600 28px/1.2 "Fredoka", sans-serif; color: var(--dc-pink); }

/* --------------------------------------------------------------------------
   Pilot, roles, updates
   -------------------------------------------------------------------------- */

.pilot-intro { max-width: none; }
.pilot-facts {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}
.pilot-facts li {
  padding: 0;
  background: transparent;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--dc-ink);
  text-align: left;
}

.roles,
.roles > .wp-block-group__inner-container {
  display: grid;
  gap: 14px;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.role-card,
.role-card > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 14px; }
.role-card > *,
.role-card > .wp-block-group__inner-container > * { margin: 0; }
.role-card {
  display: block;
  padding: 25px;
  border-radius: var(--dc-radius-card);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.role-card:nth-child(4n+1) { background: var(--dc-pink-soft); }
.role-card:nth-child(4n+2) { background: var(--dc-yellow-soft); }
.role-card:nth-child(4n+3) { background: var(--dc-blue-soft); }
.role-card:nth-child(4n+4) { background: var(--dc-purple-soft); }
.role-card:hover { transform: translateY(-3px); box-shadow: var(--dc-shadow-soft); }
.role-card p:last-child { margin-bottom: 0; }

.updates,
.updates > .wp-block-group__inner-container,
#updates .wp-block-post-template {
  display: grid;
  gap: 16px;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.update-card,
#updates .wp-block-post-template > li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 22px;
  border: 0;
  border-radius: var(--dc-radius-card);
  background: var(--dc-pink-soft);
  color: var(--dc-ink);
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
}
.update-card:nth-child(3n+2),
#updates .wp-block-post-template > li:nth-child(3n+2) { background: var(--dc-yellow-soft); }
.update-card:nth-child(3n+3),
#updates .wp-block-post-template > li:nth-child(3n+3) { background: var(--dc-blue-soft); }

.journey-copy {
  padding: 0;
  background: transparent;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--dc-ink);
  letter-spacing: 0;
  text-align: left;
}

.donate-panel .donation-amount {
  margin: 1.2rem 0;
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Interior pages
   -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(44px, 6vw, 76px) clamp(18px, 4vw, 48px) clamp(28px, 4vw, 44px);
  background: var(--dc-blue-soft);
}
.page-hero-inner { max-width: var(--dc-max); margin: 0 auto; }
.page-lede { max-width: none; font-size: inherit; }

.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 48px);
}
.page-content h2 { margin-top: 2.2rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content ul, .page-content ol { padding-left: 1.3rem; }
.page-content li { margin-bottom: .5rem; }
.page-content blockquote {
  margin: 1.6rem 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--dc-pink);
  color: var(--dc-ink);
  font-style: italic;
}

.notice {
  padding: 16px 20px;
  border: 1px solid var(--dc-pink-mid);
  border-radius: 16px;
  background: var(--dc-pink-soft);
  color: var(--dc-ink);
  font-size: .95rem;
}
.notice-success { border-color: var(--dc-success); background: #eaf6ee; }
.notice-error   { border-color: var(--dc-danger);  background: #fdeef2; }

/* FAQ */
.faq-item {
  margin-bottom: 14px;
  padding: 20px 24px;
  border-radius: var(--dc-radius-card);
  background: var(--dc-white);
  box-shadow: var(--dc-shadow-soft);
}
.faq-item h3 { margin-bottom: .4rem; }
.faq-item p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.referral-form-panel {
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--dc-radius-panel);
  background: var(--dc-white);
  box-shadow: var(--dc-shadow);
}

.referral-fields {
  display: grid;
  gap: 18px;
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.referral-field { display: grid; gap: 6px; }
.referral-field-wide { grid-column: 1 / -1; }

.referral-field label {
  font-weight: 700;
  color: var(--dc-ink);
  font-size: .95rem;
}
.referral-field .required-mark { color: var(--dc-pink); }

.referral-field input[type="text"],
.referral-field input[type="email"],
.referral-field input[type="tel"],
.referral-field select,
.referral-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid #e4ddd2;
  border-radius: 14px;
  background: var(--dc-cream);
  color: var(--dc-ink);
  font: inherit;
}
.referral-field textarea { min-height: 148px; resize: vertical; }
.referral-field input:focus,
.referral-field select:focus,
.referral-field textarea:focus {
  border-color: var(--dc-pink);
  background: var(--dc-white);
}

.consent-field label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .93rem;
  font-weight: 400;
  color: var(--dc-body);
}
.consent-field input[type="checkbox"] {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--dc-pink);
}

/* Spam trap - hidden from people, visible to naive bots. */
.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  margin: 4px 0 0;
  color: var(--dc-danger);
  font-size: .87rem;
  font-weight: 600;
}
.referral-field input[aria-invalid="true"],
.referral-field select[aria-invalid="true"],
.referral-field textarea[aria-invalid="true"] { border-color: var(--dc-danger); }

.referral-status { margin-bottom: 1.1rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 32px;
  background: var(--dc-blue);
  color: var(--dc-ink);
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  max-width: 1136px;
  margin: 0 auto;
}
.site-footer h2 { margin: 0 0 22px; color: var(--dc-ink); font-size: 40px; line-height: 1.2; font-weight: 700; }
.site-footer p { margin: 0; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a {
  color: var(--dc-ink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
}
.footer-links a:hover { color: var(--dc-pink); }
.footer-note { margin: 0; font-size: 13px; line-height: 1.2; }

@media (min-width: 810px) and (max-width: 1199px) {
  body { font-size: 14px; }
  h1 { font-size: 54px; }
  h2 { font-size: 38px; }
  .hero { padding: 72px 36px; }
  .hero-layout,
  .hero-layout > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-layout .cake-scene { width: 420px; max-width: 100%; justify-self: center; }
  .steps,
  .steps > .wp-block-group__inner-container,
  .roles,
  .roles > .wp-block-group__inner-container,
  .updates,
  .updates > .wp-block-group__inner-container,
  #updates .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 809px) {
  body { font-size: 16px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .hero { padding: 56px 24px 70px; }
  .hero-layout,
  .hero-layout > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-layout .cake-scene { width: 360px; max-width: 100%; justify-self: center; }
  .section,
  #pilot, #donate, #transparency, #get-involved, #updates, #ready { padding: 72px 24px; }
  #one-cake { padding: 64px 24px; }
  .steps,
  .steps > .wp-block-group__inner-container,
  .roles,
  .roles > .wp-block-group__inner-container,
  .updates,
  .updates > .wp-block-group__inner-container,
  #updates .wp-block-post-template { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pilot-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .site-footer { padding: 54px 22px; }
  #dac-our-story .page-hero { margin-top: 24px; padding: 64px 24px; }
  #dac-our-story .page-hero h1 { font-size: 42px; }
  #dac-our-story .page-content { padding: 32px 24px; }
  #dac-our-story .dac-page-callout { padding: 40px 24px; }
}

@media (max-width: 479px) {
  .dac-page-layout .page-hero,
  .dac-page-layout .page-content { padding-inline: 24px; }
  .dac-content-card { padding: 24px; }
  .dac-page-callout { padding: 40px 24px; }
  .dac-portable-form .referral-fields { grid-template-columns: minmax(0, 1fr); }
  .dac-portable-form .referral-form-panel { padding: 24px 16px; }
}

/* --------------------------------------------------------------------------
   WordPress specifics
   -------------------------------------------------------------------------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.alignleft   { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1.5rem; }
.wp-caption-text { color: var(--dc-body); font-size: .9rem; }

.post-card {
  margin-bottom: 20px;
  padding: 26px;
  border-radius: var(--dc-radius-card);
  background: var(--dc-white);
  box-shadow: var(--dc-shadow-soft);
}
.post-card h2 { margin-bottom: .35rem; }
.post-meta { color: var(--dc-body); font-size: .9rem; opacity: .8; }

.pagination { display: flex; gap: 10px; margin-top: 2rem; }
.pagination .page-numbers {
  padding: 9px 15px;
  border-radius: var(--dc-radius-pill);
  background: var(--dc-white);
  font-weight: 600;
  text-decoration: none;
}
.pagination .page-numbers.current { background: var(--dc-pink); color: var(--dc-white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
