/**
 * Snippet Name: YGF: Design System v3 -- 04 Layout
 * Generated: 2026-11-04 23:22:01
 * Source: Custom
 * AUTO-GENERATED FILE — DO NOT EDIT.
 */

/* ==========================================================================
   YGF Design System v3 -- 04 Layout
   Owns: bands (full-bleed sections), wraps (containers), grids, splits,
   section heads. Components never set their own outer page spacing.
   ========================================================================== */

/* ---- Bands ---------------------------------------------------------------- */
.ygf-ds .ygf-band {
  position: relative;
  padding: var(--ygf-band-y) var(--ygf-gutter);
  background: var(--ygf-parchment);
  isolation: isolate;
}
.ygf-ds .ygf-band--tight { padding-block: calc(var(--ygf-band-y) * 0.6); }
.ygf-ds .ygf-band--flush-top { padding-top: 0; }
.ygf-ds .ygf-band--white { background: var(--ygf-surface); }
.ygf-ds .ygf-band--vellum { background: var(--ygf-parchment-deep); }
.ygf-ds .ygf-band--ruled {
  background-color: var(--ygf-parchment-deep);
  background-image: var(--ygf-grid-light);
  background-size: var(--ygf-grid-size);
  background-position: center top;
}
.ygf-ds .ygf-band--edge-top { border-top: var(--ygf-hairline); }
.ygf-ds .ygf-band--edge-bottom { border-bottom: var(--ygf-hairline); }

/* Midnight band: blueprint grid + gold aurora */
.ygf-ds .ygf-band--midnight {
  background-color: var(--ygf-midnight);
  color: var(--ygf-on-dark);
}
.ygf-ds .ygf-band--midnight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ygf-grid-dark);
  background-size: var(--ygf-grid-size);
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 85%);
}
.ygf-ds .ygf-band--midnight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 60% at 85% 15%, rgba(207,164,87,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 5% 100%, rgba(43,90,140,0.30) 0%, transparent 60%),
    linear-gradient(180deg, var(--ygf-midnight) 0%, var(--ygf-midnight-deep) 100%);
}
.ygf-ds .ygf-band--ink { background: var(--ygf-midnight-ink); color: var(--ygf-on-dark); }

/* Text color inheritance on dark bands */
.ygf-ds .ygf-band--midnight h1,
.ygf-ds .ygf-band--midnight h2,
.ygf-ds .ygf-band--midnight h3,
.ygf-ds .ygf-band--ink h1,
.ygf-ds .ygf-band--ink h2,
.ygf-ds .ygf-band--ink h3 { color: var(--ygf-on-dark); }
.ygf-ds .ygf-band--midnight h1 em,
.ygf-ds .ygf-band--midnight h2 em,
.ygf-ds .ygf-band--midnight h3 em,
.ygf-ds .ygf-band--ink h2 em { color: var(--ygf-gold-bright); }
.ygf-ds .ygf-band--midnight p,
.ygf-ds .ygf-band--ink p { color: var(--ygf-on-dark-muted); }
.ygf-ds .ygf-band--midnight strong,
.ygf-ds .ygf-band--ink strong { color: var(--ygf-on-dark); }
.ygf-ds .ygf-band--midnight a:not([class]),
.ygf-ds .ygf-band--ink a:not([class]) { color: var(--ygf-gold-pale); }

/* ---- Wraps ---------------------------------------------------------------- */
.ygf-ds .ygf-wrap { max-width: var(--ygf-wrap); margin-inline: auto; position: relative; }
.ygf-ds .ygf-wrap--narrow { max-width: var(--ygf-wrap-narrow); }
.ygf-ds .ygf-wrap--reading { max-width: var(--ygf-wrap-reading); }

/* ---- Section head --------------------------------------------------------- */
.ygf-ds .ygf-head {
  max-width: 760px;
  margin: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem);
}
.ygf-ds .ygf-head--center { margin-inline: auto; text-align: center; }
.ygf-ds .ygf-head--center .ygf-eyebrow { justify-content: center; }
.ygf-ds .ygf-head--center p { margin-inline: auto; }
.ygf-ds .ygf-head--wide { max-width: 980px; }
.ygf-ds .ygf-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: end;
}
.ygf-ds .ygf-head--split h2 { margin-bottom: 0; }
@media (max-width: 860px) {
  .ygf-ds .ygf-head--split { grid-template-columns: minmax(0, 1fr); }
}

.ygf-ds .ygf-lede {
  font-size: var(--ygf-text-lg);
  line-height: 1.6;
  color: var(--ygf-slate);
  max-width: 62ch;
}
.ygf-ds .ygf-band--midnight .ygf-lede,
.ygf-ds .ygf-band--ink .ygf-lede { color: var(--ygf-on-dark-muted); }

/* ---- Grids ---------------------------------------------------------------- */
.ygf-ds .ygf-grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.ygf-ds .ygf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ygf-ds .ygf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ygf-ds .ygf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ygf-ds .ygf-grid--gap-0 { gap: 0; }
@media (max-width: 1024px) {
  .ygf-ds .ygf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ygf-ds .ygf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .ygf-ds .ygf-grid--2,
  .ygf-ds .ygf-grid--3,
  .ygf-ds .ygf-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Split (copy + aside) ------------------------------------------------- */
.ygf-ds .ygf-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.ygf-ds .ygf-split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); }
.ygf-ds .ygf-split--wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); }
.ygf-ds .ygf-split--top { align-items: start; }
@media (max-width: 900px) {
  .ygf-ds .ygf-split,
  .ygf-ds .ygf-split--wide-left,
  .ygf-ds .ygf-split--wide-right { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Stack / cluster helpers --------------------------------------------- */
.ygf-ds .ygf-stack > * + * { margin-top: var(--ygf-space-md); }
.ygf-ds .ygf-cluster { display: flex; flex-wrap: wrap; gap: var(--ygf-space-xs); align-items: center; }
.ygf-ds .ygf-cluster--center { justify-content: center; }
.ygf-ds .ygf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: var(--ygf-space-lg); }
.ygf-ds .ygf-head--center + .ygf-actions,
.ygf-ds .ygf-actions--center { justify-content: center; }
.ygf-ds .ygf-head--flush { margin-bottom: 0; }
