/* =============================================================================
   DCF Design System — layout utilities (DESIGN_SYSTEM.md §5)
   Deliberately small. No colour/spacing utilities: use components and modifiers.
   Breakpoints: sm 480 · md 768 · lg 1024 · xl 1280
   ========================================================================== */
.dcf-container { width: 100%; max-width: var(--dcf-container); margin-inline: auto; padding-inline: var(--dcf-gutter); }
.dcf-container--narrow { max-width: var(--dcf-container-narrow); }
.dcf-container--wide { max-width: 1440px; }

.dcf-section { padding-block: clamp(var(--dcf-space-12), 8vw, var(--dcf-space-24)); }
.dcf-section--tight { padding-block: var(--dcf-space-10); }
.dcf-section--subtle { background: var(--dcf-bg-subtle); }
.dcf-section--dark { background: var(--dcf-navy-900); color: var(--dcf-gray-50); }
.dcf-section--dark :is(h1, h2, h3, h4, h5, h6, .dcf-h1, .dcf-h2, .dcf-h3, .dcf-h4) { color: var(--dcf-white); }
/* On the navy sections and the hero, pillar-coloured words and the focus ring use their light-on-dark values. */
.dcf-section--dark, .dcf-hero { --dcf-pillar-sport-text: var(--dcf-ember-400); --dcf-pillar-future-text: var(--dcf-blue-400); --dcf-pillar-life-text: var(--dcf-teal-400); --dcf-focus: var(--dcf-gold-500); }
.dcf-section--dark .dcf-lead, .dcf-section--dark .dcf-text-muted { color: var(--dcf-gray-300); }
.dcf-section__header { max-width: 60ch; margin-bottom: var(--dcf-space-10); }
.dcf-section__header--center { margin-inline: auto; text-align: center; }

.dcf-grid { display: grid; gap: var(--dcf-space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .dcf-grid--2, .dcf-grid--3, .dcf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .dcf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dcf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dcf-grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.dcf-stack { display: flex; flex-direction: column; gap: var(--dcf-space-4); }
.dcf-stack--2 { gap: var(--dcf-space-2); }
.dcf-stack--3 { gap: var(--dcf-space-3); }
.dcf-stack--6 { gap: var(--dcf-space-6); }
.dcf-stack--8 { gap: var(--dcf-space-8); }

.dcf-cluster { display: flex; flex-wrap: wrap; gap: var(--dcf-space-3); align-items: center; }
.dcf-cluster--2 { gap: var(--dcf-space-2); }
.dcf-flex { display: flex; align-items: center; gap: var(--dcf-space-3); }
.dcf-between { display: flex; align-items: center; justify-content: space-between; gap: var(--dcf-space-4); flex-wrap: wrap; }
.dcf-center { display: flex; align-items: center; justify-content: center; }
.dcf-grow { flex: 1 1 auto; min-width: 0; }

@media (max-width: 767.98px) { .dcf-hide-md-down { display: none !important; } }
@media (min-width: 768px) { .dcf-hide-md-up { display: none !important; } }
@media (max-width: 1023.98px) { .dcf-hide-lg-down { display: none !important; } }
@media (min-width: 1024px) { .dcf-hide-lg-up { display: none !important; } }

/* Dashboard 12-column grid (DESIGN_SYSTEM.md §4.10) */
.dcf-dash-grid { display: grid; gap: var(--dcf-space-5); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.dcf-dash-grid > * { grid-column: span 12; }
@media (min-width: 768px) {
  .dcf-dash-grid > .dcf-span-6 { grid-column: span 6; }
  .dcf-dash-grid > .dcf-span-4 { grid-column: span 6; }
  .dcf-dash-grid > .dcf-span-8 { grid-column: span 12; }
}
@media (min-width: 1024px) {
  .dcf-dash-grid > .dcf-span-3 { grid-column: span 3; }
  .dcf-dash-grid > .dcf-span-4 { grid-column: span 4; }
  .dcf-dash-grid > .dcf-span-6 { grid-column: span 6; }
  .dcf-dash-grid > .dcf-span-8 { grid-column: span 8; }
  .dcf-dash-grid > .dcf-span-12 { grid-column: span 12; }
}

/* Aspect-ratio media boxes */
.dcf-ratio { position: relative; overflow: hidden; border-radius: var(--dcf-radius-lg); background: var(--dcf-surface-sunken); }
.dcf-ratio > img, .dcf-ratio > video, .dcf-ratio > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcf-ratio--16x9 { aspect-ratio: 16 / 9; }
.dcf-ratio--4x3 { aspect-ratio: 4 / 3; }
.dcf-ratio--1x1 { aspect-ratio: 1 / 1; }
