/* ==========================================================================
   Wing pages — fixed-layout templates driven by inc/page-fields.php
     Education Wing             Figma "Education Wing V3"                 (1084:3625)
     Devotion Wing              Figma "Devotion Wing V1-B"                (1087:4166)
     Nine Point Code            Figma "Devotion Wing - Nine Point Code V1" (1058:2687)
     Bhajan Guidelines          Figma "Devotion Wing - Bhajan Guidelines V1" (1058:2782)
     Service / Ladies / Young Adults  Figma "Service Wing V1", "Ladies Wing V1",
                                "Young Adults V1" (template-parts/wing-page.php)
     About Us                   Figma "About Us V1"                       (1473:30)
     Contact Us                 Figma "Contact Us V1"                     (1600:1169)
     Resources                  Figma "Resources - V1"                    (1773:2, copy hTYChiJ4Tp5O7OJb816zep)
   Loaded only on those templates. Desktop measurements are the 1440 frames';
   columns are fractions of them so layouts scale down until they stack at 860px.
   Each wing sets its accent (--wing) and secondary background (--wing-soft).
   All quotes use Figma's newer style (Cormorant Garamond 600/1.2).
   ========================================================================== */

.pf-page {
  --wing: var(--c-teal);
  --wing-soft: var(--c-mist);
  --wing-gap: 120px;
  --wing-quote-font: var(--font-display);
  --wing-quote-weight: 600;
  --wing-quote-lh: 1.2;
  color: var(--c-ink-warm);
}
.pf-page--devotion {
  --wing: var(--c-orange);
  --wing-soft: var(--c-devotion-soft);
}
.pf-page--service {
  --wing: var(--c-wing-service);
  --wing-soft: var(--c-service-soft);
}
.pf-page--ladies {
  --wing: var(--c-wing-ladies);
  --wing-soft: var(--c-ladies-soft);
}
.pf-page--young-adults {
  --wing: var(--c-wing-young-adults);
  --wing-soft: var(--c-young-adults-soft);
}
/* About Us: teal numbers on Mist cards, orange headings (.eyebrow). */
.pf-page--about {
  --wing: var(--c-teal);
  --wing-soft: var(--c-mist);
}
/* Contact Us: orange headings, teal icons. */
.pf-page--contact {
  --wing: var(--c-teal);
  --wing-soft: var(--c-mist);
}
/* Light pages (Library, Live) are not wings: teal accent, Mist cards. */
.pf-page--light {
  --wing: var(--c-teal);
  --wing-soft: var(--c-mist);
}

/* Bands -------------------------------------------------------------------- */
.pf-band { padding-block: var(--sp-96); }
.pf-band--soft { background: var(--wing-soft); }
.pf-band--cream { background: var(--c-cream); }
/* 331px band in the design, content vertically centred in it. */
.pf-band--participate { padding-block: 113px; }
.pf-band--last-short { padding-bottom: 80px; }
.pf-band--last-tall { padding-bottom: 112px; }
.pf-stack > * + * { margin-top: var(--sp-96); }

/* Hero --------------------------------------------------------------------- */
.hero--feature { min-height: 480px; background: var(--wing); }
.hero--feature .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wing);
  opacity: .75;
}
/* Light pages: a Mist hero, the photo untinted and the title in ink. */
.pf-page--light .hero--feature { background: var(--c-mist); }
.pf-page--light .hero--feature .hero__media::after { content: none; }
.pf-page--light .hero--feature .hero__title { color: var(--c-ink-warm); }
/* Live (review): a cream hero, its photo under a 50% cream wash. */
.pf-page--live .hero--feature { background: var(--c-cream); }
.pf-page--live .hero--feature .hero__media::after { content: ""; background: var(--c-cream); opacity: .5; }
/* The quote band would be Mist too and merge into the hero. */
.pf-page--light .pf-band--soft { background: var(--c-cream); }
/* Library (review): a cream hero, its photo under a 50% cream wash, and a Mist quote band,
   as on About, Resources and Live. */
.pf-page--library .hero--feature { background: var(--c-cream); }
.pf-page--library .hero--feature .hero__media::after { content: ""; background: var(--c-cream); opacity: .5; }
.pf-page--library .pf-band--soft { background: var(--c-mist); }
/* Their text runs long (the Vedam discourse): keep photos level with the heading. */
.pf-page--light .pf-split--text-photo { align-items: start; }
/* About Us: a cream hero, the photo under a 50% cream wash (review), the title in ink. */
.pf-page--about .hero--feature { background: var(--c-cream); }
.pf-page--about .hero--feature .hero__media::after { background: var(--c-cream); opacity: .5; }
.pf-page--about .hero--feature .hero__title { color: var(--c-ink-warm); }
/* Contact Us: a cream hero, the photo in colour under a 50% cream wash (review; Figma has
   it in greyscale under 75%), the title in ink. */
.pf-page--contact .hero--feature { background: var(--c-cream); }
.pf-page--contact .hero--feature .hero__media::after { background: var(--c-cream); opacity: .5; }
.pf-page--contact .hero--feature .hero__title { color: var(--c-ink-warm); }
.pf-hero__title { display: flex; align-items: center; gap: var(--sp-24); }
.pf-hero__icon { flex: none; width: 48px; height: auto; color: var(--c-white); }
.pf-page--devotion .pf-hero__icon { width: 42px; }
/* Sub-pages: title only, wrapping at the design's 476px. */
.hero--feature .hero__title--solo { max-width: 476px; }

/* Quote -------------------------------------------------------------------- */
.pf-quote {
  margin: 0;
  display: grid;
  gap: var(--sp-24);
  border-left: 2px solid var(--wing); /* the wing's accent: teal on Education, orange on Devotion */
  padding-left: 30px;
}
.pf-quote__text { margin: 0; }
.pf-quote__text p {
  font-family: var(--wing-quote-font);
  font-size: 28px;
  line-height: var(--wing-quote-lh);
  font-weight: var(--wing-quote-weight);
  color: var(--c-ink-warm);
}
.pf-quote__cite { color: var(--c-muted); }

/* Two-column rows ------------------------------------------------------------ */
.pf-split {
  display: grid;
  column-gap: var(--wing-gap);
  align-items: center;
}
.pf-split--about,
.pf-split--sse          { grid-template-columns: minmax(0, 580fr) minmax(0, 480fr); }
.pf-split--values,
.pf-split--sunday       { grid-template-columns: minmax(0, 480fr) minmax(0, 580fr); }
.pf-split--participate  { grid-template-columns: minmax(0, 480fr) minmax(0, 596fr); column-gap: 104px; }
.pf-split--activities   { grid-template-columns: minmax(0, 680fr) minmax(0, 400fr); column-gap: 100px; }
.pf-split--involve      { grid-template-columns: minmax(0, 280fr) minmax(0, 780fr); }
.pf-split--sse,
.pf-split--activities,
.pf-split--sunday,
.pf-split--top          { align-items: start; }
/* Devotion: text 580 left, photo 480 right. */
.pf-split--text-photo   { grid-template-columns: minmax(0, 580fr) minmax(0, 480fr); }
.pf-split--newcomers    { grid-template-columns: minmax(0, 380fr) minmax(0, 680fr); }
/* The design's card sits 14px in from the container edge. */
.pf-split--involve-card { grid-template-columns: minmax(0, 580fr) minmax(0, 452fr); column-gap: 134px; padding-right: 14px; }
.pf-split--guidelines   { grid-template-columns: minmax(0, 600fr) minmax(0, 480fr); column-gap: 100px; align-items: start; margin-top: 26px; }

.pf-split__body,
.pf-family { display: flex; flex-direction: column; gap: var(--sp-24); }

/* Photos ------------------------------------------------------------------- */
.pf-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-chip);
}
.pf-media--about img      { aspect-ratio: 480 / 375; }
.pf-media--sse img        { aspect-ratio: 480 / 537; }
.pf-media--activities img { aspect-ratio: 400 / 497; }
.pf-media--sunday img     { aspect-ratio: 580 / 366; }
.pf-media--wide img       { aspect-ratio: 1180 / 480; object-position: 50% 23%; }
/* Service's tree-planting photo: keep the volunteers whole rather than the sky. */
.pf-page--service .pf-media--wide img { object-position: 50% 70%; }
.pf-media--square img     { aspect-ratio: 1 / 1; }
.pf-media--about-dev img  { aspect-ratio: 1 / 1; object-position: 50% 90%; }
.pf-media--singing img    { aspect-ratio: 480 / 630; }
.pf-media--practice img   { aspect-ratio: 480 / 320; }
.pf-media--sunday-dev img { aspect-ratio: 480 / 490; }
.pf-media--guidelines img { aspect-ratio: 480 / 888; }
.pf-purpose > .pf-media  { margin-top: 64px; }

/* Rich text ---------------------------------------------------------------- */
.pf-rich > * + * { margin-top: 1.7em; } /* one blank line, as in the design */
.pf-rich > p + ul,
.pf-rich > p + ol { margin-top: 0; }
.pf-rich strong, .pf-rich b { font-weight: 600; }
.pf-lead { font-size: var(--fs-h4); line-height: var(--lh-body); }
.pf-sse__list { margin-top: var(--sp-8); display: grid; gap: var(--sp-16); }

/* Sub-headings: Figma "H3 Subheading". */
.pf-subhead { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; color: var(--c-ink-warm); }

/* Five Human Values -------------------------------------------------------- */
.pf-values { list-style: none; margin: 0; padding: 0; }
.pf-values li {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 600;
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--wing);
}
.pf-values li + li { margin-top: var(--sp-16); }

/* Age groups --------------------------------------------------------------- */
.pf-ages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-24);
  justify-content: flex-end;
}
.pf-age {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--wing);
  color: var(--c-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pf-age__range { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }
.pf-age__name  { font-size: 12px; line-height: 1.4; font-weight: 500; }

/* What happens ------------------------------------------------------------- */
.pf-columns {
  display: grid;
  grid-template-columns: minmax(0, 280fr) minmax(0, 341fr);
  column-gap: 60px;
}
.pf-columns > :last-child { border-left: 1px solid var(--wing); padding-left: 60px; }
.pf-callout {
  margin-top: var(--sp-24);
  background: var(--c-cream);
  border-radius: var(--r-chip);
  padding: var(--sp-24) 33px;
  color: var(--wing);
  font-weight: 500;
}

/* Devotion: boxed list under Devotional Singing. */
.pf-box {
  margin-top: var(--sp-24);
  max-width: 480px;
  background: var(--wing-soft);
  border-radius: var(--r-chip);
  padding: var(--sp-32);
  display: grid;
  gap: var(--sp-8);
}
.pf-box__title { font-size: var(--fs-h4); line-height: var(--lh-body); }

/* Schedule ----------------------------------------------------------------- */
.pf-schedule { list-style: none; margin: 0; padding: 0; }
.pf-schedule__item { position: relative; display: flex; align-items: center; gap: var(--sp-24); }
.pf-schedule__item + .pf-schedule__item { margin-top: 64px; }
/* Connector between the icon tiles. */
.pf-schedule__item + .pf-schedule__item::before {
  content: "";
  position: absolute;
  left: 32px;
  top: -48px;
  width: 1px;
  height: 32px;
  background: var(--wing);
}
.pf-schedule__icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--r-btn);
  background: var(--wing-soft);
  color: var(--wing);
  display: grid;
  place-items: center;
}
.pf-schedule__title,
.pf-schedule__time { display: block; font-size: var(--fs-h4); }
.pf-schedule__title { font-weight: 600; line-height: var(--lh-h4); }
.pf-schedule__time  { line-height: var(--lh-body); }
.pf-sunday__after { margin-top: var(--sp-8); }
.pf-sunday__after > p { margin-top: 1.7em; }
/* Devotion: "Sunday Schedule" sits 48px under the intro, link 32px under the schedule. */
.pf-what { margin-top: var(--sp-24); }
.pf-card__head { display: grid; gap: var(--sp-16); }
.pf-schedule-block { margin-top: var(--sp-24); display: grid; gap: var(--sp-24); }
.pf-schedule-block > .pf-link-row { margin-top: var(--sp-8); }

.pf-link { font-weight: 600; line-height: 1; color: var(--c-orange); }
/* Link-only paragraphs sit on a 16px line, as the design's "Button Text" style. */
.pf-linkline { line-height: 1; }

/* Get involved ------------------------------------------------------------- */
.pf-involve__intro {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 500;
}
.pf-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: end;
  gap: 20px;
}
.pf-card {
  background: var(--c-white);
  border-radius: var(--r-chip);
  padding: var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}
.pf-card__title { color: var(--c-ink-warm); }
.pf-card__action { margin-top: auto; padding-top: 84px; } /* 100px under the list, as designed */
.pf-card__contact { margin-top: var(--sp-8); }
.pf-card__contact-row { display: flex; align-items: center; gap: 12px; }
.pf-card__contact-icon { flex: none; width: 17px; height: auto; color: var(--c-teal); }
.pf-card__contact a,
.pf-email { color: var(--c-teal); font-weight: 600; overflow-wrap: anywhere; }

/* Devotion: single "How to Get Involved" card. */
.pf-card--solo { padding: var(--sp-32); gap: var(--sp-24); }
/* Figma spaces the items at a 2x line height (32px apart); keep that pitch between
   items but set wrapped lines at body leading, so a long item doesn't gape. */
.pf-card--solo .pf-rich li + li { margin-top: calc(2em - 1em * var(--lh-body)); }
.pf-card__foot {
  display: grid;
  gap: var(--sp-16);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--c-mist);
}

/* Nine Point Code ---------------------------------------------------------- */
.pf-code {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 20px;
}
.pf-code__item {
  background: var(--wing-soft);
  border-radius: var(--r-chip);
  padding: var(--sp-32) var(--sp-24);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}
/* An odd last card spans the row, as card 09 does. */
.pf-code__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pf-code__num {
  font-family: var(--font-display-alt);
  font-size: 40px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--wing);
  text-decoration: underline;
  text-decoration-thickness: .04em;
  text-underline-offset: .12em;
}

/* Bhajan guidelines -------------------------------------------------------- */
.pf-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.pf-rule { display: flex; align-items: flex-start; }
.pf-rule__num {
  flex: none;
  width: 24px;
  margin-right: 40px;
  font-family: var(--font-display-alt);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--wing);
}
.pf-rule__text {
  max-width: 522px; /* 500px of text after the rule and gap */
  padding-left: 20px;
  border-left: 2px solid var(--wing-soft);
}

.pf-back { margin-top: 48px; }

/* Service / Ladies / Young Adults ------------------------------------------ */
/* Text blocks: eyebrow, 32px, body in "Body Large"; a link sits 24px under. */
.pf-block { display: flex; flex-direction: column; gap: var(--sp-32); }
.pf-block > .pf-linkline { margin-top: -8px; }
.pf-rich--large { font-size: var(--fs-h4); }
.pf-closing { display: grid; gap: var(--sp-96); }

.pf-media--landscape img { aspect-ratio: 480 / 360; }
.pf-media--closing img   { aspect-ratio: 1 / 1; }
.pf-page--service .pf-media--closing img { aspect-ratio: 480 / 524; }
/* Service V1, and Ladies and YA after review: body text is 16px (the About text too,
   with no larger opening paragraph); the quote is 24px. */
:is(.pf-page--service, .pf-page--ladies, .pf-page--young-adults) .pf-rich--large { font-size: var(--fs-body); }
/* The light pages (Library, Live) follow: their About rows at 16px too. */
.pf-page--light .pf-rich--large { font-size: var(--fs-body); }
:is(.pf-page--service, .pf-page--ladies, .pf-page--young-adults) .pf-quote__text p { font-size: 24px; line-height: 1.2; }

/* "What We Do": three 364px cards, or two 566px cards per row. */
.pf-what__intro { margin: var(--sp-16) 0 0; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.pf-wcards {
  list-style: none;
  margin: var(--sp-32) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-48);
}
.pf-wcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; }
.pf-wcards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-wcard {
  background: var(--wing-soft);
  border-radius: var(--r-chip);
  padding: var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}
.pf-wcards--2 .pf-wcard { gap: var(--sp-32); }
/* Card icons keep their own Figma size (48 wide, or 40 high for the wider ones). */
.pf-wcard__icon { flex: none; align-self: flex-start; width: auto; height: auto; color: var(--wing); }
.pf-wcard .pf-link { color: var(--wing); }
.pf-wcard .pf-rich ul { list-style-type: disc; } /* a list inside a card <li> would default to circles */
.pf-wcard__text { display: grid; gap: var(--sp-16); }
.pf-wcards--2 .pf-wcard > .pf-linkline { margin-top: -8px; } /* 24px under the text */

/* Get Involved: large text left, link card at the container's right edge. */
.pf-split--wing-involve {
  grid-template-columns: minmax(0, var(--involve-text, 600px)) minmax(0, var(--involve-card, 380px));
  justify-content: space-between;
  column-gap: 64px;
}
.pf-page--service .pf-split--wing-involve { --involve-text: 680px; }
.pf-page--young-adults .pf-split--wing-involve { --involve-card: 336px; }
.pf-involve__intro--sm { font-size: 32px; line-height: 1.2; }
.pf-card--links { gap: 0; }
.pf-card__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-16); line-height: 1; }
.pf-card__links .pf-link { line-height: 1; }
.pf-card__contacts { display: grid; gap: var(--sp-8); }
.pf-card__links + .pf-card__contacts {
  margin-top: var(--sp-24);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--c-mist);
}

/* Responsive --------------------------------------------------------------- */
/* Live: the newest stream as a player, every stream as paginated tiles. ---- */
.pf-player {
  margin-top: var(--sp-32);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-chip);
  overflow: hidden;
  background: var(--c-ink);
}
.pf-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.pf-player__caption { margin: var(--sp-16) 0 0; font-weight: 600; }
.pf-streams {
  list-style: none;
  margin: var(--sp-32) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-32);
}
.pf-stream__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--wing-soft);
  border-radius: var(--r-chip);
  overflow: hidden;
  color: var(--c-ink-warm);
}
.pf-stream__link:hover .pf-stream__title { text-decoration: underline; }
/* hqdefault is 4:3 with black bars; cropping to 16:9 removes them. */
.pf-stream__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-ink); }
.pf-stream__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-stream__text { display: grid; gap: var(--sp-8); padding: var(--sp-16) var(--sp-24) var(--sp-24); }
.pf-stream__title { margin: 0; font: 600 var(--fs-body) / 1.4 var(--font-body); }
.pf-stream__date { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-muted); }
.pf-pager {
  margin-top: var(--sp-48);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
}
.pf-pager__pages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); }
.pf-pager__page {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--sp-8);
  border: 1px solid var(--wing);
  border-radius: var(--r-btn);
  color: var(--wing);
  font-weight: 600;
}
.pf-pager__page[aria-current] { background: var(--wing); color: var(--c-white); }
.pf-pager__step { font-weight: 600; color: var(--wing); }
.pf-pager__gap { color: var(--c-muted); }

@media (max-width: 1100px) {
  .pf-page { --wing-gap: 64px; }
  .pf-split--participate,
  .pf-split--activities,
  .pf-split--involve-card,
  .pf-split--guidelines { column-gap: var(--wing-gap); }
  .pf-split--involve-card { padding-right: 0; }
  .pf-columns { column-gap: 32px; }
  .pf-columns > :last-child { padding-left: 32px; }
  .pf-cards { gap: var(--sp-24); }
  .pf-wcards--3 { column-gap: var(--sp-24); }
  .pf-wcards--2 { gap: var(--sp-24); }
}

@media (max-width: 960px) {
  .pf-streams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-24); }
  .pf-wcards--3 { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-24); }
}

@media (max-width: 860px) {
  .pf-band,
  .pf-band--participate { padding-block: 64px; }
  .pf-stack > * + * { margin-top: 64px; }

  .hero--feature { min-height: 0; }
  .hero--feature .hero__media { position: relative; }

  .pf-split,
  .pf-split[class*="pf-split--"] { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-32); }
  .pf-ages { justify-content: flex-start; gap: var(--sp-16); }

  .pf-quote__text p { font-size: 22px; }
  .pf-values li { font-size: 24px; }

  .pf-columns { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-24); }
  .pf-columns > :last-child { border-left: 0; border-top: 1px solid var(--wing); padding: var(--sp-24) 0 0; }

  .pf-media img,
  .pf-media--wide img { aspect-ratio: 3 / 2; }
  /* The Bhajan Guidelines photo is a tall portrait of Swami; a 3:2 crop cut him
     off (review feedback). Show it whole, at its own proportions. */
  .pf-media--guidelines { max-width: 480px; } /* its desktop width; no taller than a screen on tablets */
  .pf-media--guidelines img { aspect-ratio: auto; }
  .pf-purpose > .pf-media { margin-top: var(--sp-32); }

  .pf-cards { grid-template-columns: minmax(0, 1fr); }
  .pf-card__action { padding-top: var(--sp-24); }

  .pf-code { grid-template-columns: minmax(0, 1fr); gap: var(--sp-16); margin-top: var(--sp-32); }
  .pf-code__item { min-height: 0; }
  /* Links wrap at this width; give the second line room. */
  .pf-linkline, .pf-link { line-height: 1.4; }
  .pf-code__num { font-size: 32px; }
  .pf-rule__num { margin-right: var(--sp-16); }
  .pf-rules { gap: var(--sp-32); }

  .pf-wcards--2 { grid-template-columns: minmax(0, 1fr); }
  .pf-wcard,
  .pf-card--links { padding: var(--sp-24); }
  .pf-closing { gap: 64px; }
  .pf-involve__intro--sm { font-size: 26px; }
  .pf-card__links, .pf-card__links .pf-link { line-height: 1.4; }
}

/* About Us ----------------------------------------------------------------- */
.pf-media--about-intro img { aspect-ratio: 480 / 560; }
.pf-media--membership img  { aspect-ratio: 480 / 274; }
.pf-teachings { display: grid; gap: var(--sp-32); }
.pf-teachings > .pf-media { margin-top: var(--sp-32); } /* 64px under the text */
.pf-about-quote {
  margin: 0;
  background: var(--c-mist);
  border-radius: var(--r-chip);
  padding: var(--sp-32);
  color: var(--c-teal-deep);
  font-weight: 500;
}
/* The visit card starts level with the text under the heading. */
.pf-visit {
  margin-top: calc(var(--fs-h4) * var(--lh-h4) + var(--sp-32));
  background: var(--c-cream);
  border-radius: var(--r-chip);
  padding: var(--sp-32);
  display: grid;
  gap: var(--sp-32);
}
.pf-visit strong { font-weight: 500; }
.pf-visit__address { display: flex; align-items: flex-start; gap: var(--sp-16); }
.pf-visit__icon { flex: none; width: 28px; height: auto; color: var(--c-orange); }
.pf-visit address { font-style: normal; font-weight: 500; }
.pf-code--aims {
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pf-code--aims .pf-code__item { padding: var(--sp-32); gap: var(--sp-24); min-height: 0; }
.pf-code--aims .pf-code__item:last-child:nth-child(odd) { grid-column: auto; } /* three across: no full-width last card */
@media (max-width: 960px) {
  .pf-code--aims { grid-template-columns: minmax(0, 1fr); gap: var(--sp-16); }
}
@media (max-width: 860px) {
  .pf-visit { margin-top: 0; }
  .pf-about-quote, .pf-visit, .pf-code--aims .pf-code__item { padding: var(--sp-24); }
}

/* Contact Us --------------------------------------------------------------- */
/* A 780px form column and a 280px Visit Us column, 120px apart. */
.pf-page--contact .pf-stack > * + * { margin-top: 80px; }
.pf-contact {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(0, 280px);
  justify-content: space-between;
  gap: var(--sp-48) var(--sp-24);
  align-items: start;
}
.pf-contact__main { min-width: 0; }
.pf-contact__intro { margin: var(--sp-32) 0 0; }
.pf-form {
  margin-top: var(--sp-32);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-24) 21px;
}
.pf-form__field--subject,
.pf-form__field--message,
.pf-form__submit { grid-column: 1 / -1; }
.pf-form__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px var(--sp-24);
  background: var(--c-cream);
  border: 1px solid var(--c-field-rule);
  border-radius: var(--r-btn);
  font: inherit;
  color: var(--c-ink-warm);
}
.pf-form__input::placeholder { color: var(--c-muted); opacity: 1; }
textarea.pf-form__input { height: 174px; resize: vertical; }
.pf-form__input:focus-visible { outline-offset: 0; }
.pf-form__input[aria-invalid="true"] { border-color: var(--c-orange); box-shadow: inset 0 0 0 1px var(--c-orange); }
.pf-form__error { margin: var(--sp-8) 0 0; font-size: var(--fs-small); line-height: var(--lh-small); }
.pf-form__submit { margin: 0; }
.pf-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf-notice {
  margin-top: var(--sp-32);
  padding: var(--sp-16) var(--sp-24);
  border-radius: var(--r-btn);
  border-left: 4px solid var(--c-teal);
  background: var(--c-mist);
}
.pf-notice p { margin: 0; }
.pf-notice p + p { margin-top: var(--sp-8); }
.pf-notice--error { border-left-color: var(--c-orange); background: var(--c-devotion-soft); }
.pf-notice--error + .pf-form { margin-top: var(--sp-24); }

/* Visit Us: the landing page's blocks, with 24px either side of each divider. */
.pf-contact__side .visit__block h3 { margin: 0; }
.pf-contact__side .visit__block .h3 { color: var(--c-ink); }
.pf-contact__side .visit__block p { margin: 0; }
.pf-contact__side .contact-block { margin-top: 0; padding-top: var(--sp-24); }
.pf-contact__side .contact-block::before { width: 100%; }
.pf-contact__side .contact-list { margin: 0; }
.pf-contact__side .contact-list__icon { color: var(--c-teal); }
.pf-social { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-24); }
.pf-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-mist);
  color: var(--c-teal);
  transition: background-color .18s ease, color .18s ease;
}
.pf-social__link:hover { background: var(--c-teal); color: var(--c-white); }
.pf-social__link svg { display: block; }

.pf-map { margin-top: var(--sp-32); }
.pf-map iframe { display: block; width: 100%; height: auto; aspect-ratio: 1180 / 469; border: 0; }

@media (max-width: 960px) {
  .pf-contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pf-form { grid-template-columns: minmax(0, 1fr); }
  .pf-map iframe { aspect-ratio: 4 / 3; }
}

/* Email addresses break after the @ (a <wbr>) before breaking mid-word. */
.pf-email--wrap { overflow-wrap: normal; }

@media (max-width: 600px) {
  .pf-streams { grid-template-columns: minmax(0, 1fr); }
}

/* Resources ("Resources - V1", 1773:2) -------------------------------------- */
/* A cream hero with the photo under a 50% cream wash (in colour; review, Figma has 75%), a Mist quote band. */
.pf-page--resources .hero--feature { background: var(--c-cream); }
.pf-page--resources .hero--feature .hero__media::after { background: var(--c-cream); opacity: .5; }
.pf-page--resources .hero--feature .hero__title { color: var(--c-ink-warm); }
.pf-page--resources .pf-quote__text p { font-size: 24px; line-height: 1.4; }

/* Useful Links: two 580px cream cards per row, no icons, ↗ links 24px apart. */
.pf-res-intro { margin: var(--sp-32) 0 0; }
.pf-res-cards {
  list-style: none;
  margin: var(--sp-32) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-32) 20px;
}
.pf-res-card {
  background: var(--c-cream);
  border-radius: var(--r-chip);
  padding: 47px 50px 45px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
}
.pf-res-card__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-24); line-height: 1; }
.pf-res-card .pf-link { color: var(--c-teal); }

/* Vedam: the heading over two rows of text beside a photo; the verse in a Mist box. */
.pf-res-vedam > .eyebrow { margin-bottom: var(--sp-32); }
.pf-res-vedam .pf-split { align-items: start; }
.pf-res-vedam .pf-split + .pf-split { margin-top: 125px; } /* as in the frame */
.pf-res-vedam__text { display: grid; gap: var(--sp-32); }
.pf-res-verse { background: var(--c-mist); border-radius: var(--r-chip); padding: var(--sp-32); }
.pf-res-verse__text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}
.pf-res-verse__meaning { margin-top: 1.7em; font-style: italic; } /* one blank line */
.pf-res-vedam__cite { color: var(--c-muted); font-style: italic; }
.pf-media--vedam img  { aspect-ratio: 480 / 533; }
.pf-media--vedam2 img { aspect-ratio: 480 / 734; }

/* Get Involved: full-width large text, then the button. */
.pf-res-involve .pf-involve__intro { margin-top: var(--sp-24); }
.pf-res-involve__action { margin-top: var(--sp-32); }

@media (max-width: 860px) {
  .pf-res-cards { grid-template-columns: minmax(0, 1fr); gap: var(--sp-24); }
  .pf-res-card { padding: var(--sp-32); }
  .pf-res-card__links, .pf-res-card .pf-link { line-height: 1.4; gap: var(--sp-16); }
  .pf-res-vedam .pf-split + .pf-split { margin-top: 64px; }
  .pf-page--resources .pf-quote__text p { font-size: 22px; }
}
