/* ── layout.css ─────────────────────────────────────────────────
   Container, grid helpers, section padding, bands, post layouts.
──────────────────────────────────────────────────────────────── */

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Sections ───────────────────────────────────────────────── */
.section    { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }

/* ── Grid helpers ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Two-column page grid (used inline in templates) ────────── */
/* Named class alternative to inline style grids */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Accent Bands ───────────────────────────────────────────── */
.band {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
}
.band h2 { color: var(--white); }
.band p  { color: rgba(255,255,255,.8); }
.band--accent { background: var(--accent); }

/* ── Section Label ──────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

/* ── Post / Event page layouts ──────────────────────────────── */
.post-header {
  background: linear-gradient(160deg, #0a1628 0%, #0f2a52 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.post-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='xMidYMax slice'%3E%3Cpolygon fill='rgba(45,69,40,0.35)' points='0,200 0,80 80,60 160,75 240,45 320,62 400,35 480,52 560,28 640,48 720,22 800,42 880,18 960,38 1040,15 1120,35 1200,20 1200,200'/%3E%3Cpolygon fill='rgba(30,48,25,0.45)' points='0,200 0,120 90,105 180,118 270,95 360,110 450,88 540,104 630,82 720,98 810,78 900,95 990,78 1080,95 1200,82 1200,200'/%3E%3Cpolygon fill='rgba(18,30,15,0.55)' points='0,200 0,155 100,145 220,155 340,140 460,152 580,138 700,150 820,138 940,150 1060,140 1200,148 1200,200'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  pointer-events: none;
  z-index: 0;
}
.post-header .container { position: relative; z-index: 1; }
.post-header h1 { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.5rem); }

.post-meta { color: rgba(255,255,255,.65); font-size: .88rem; margin-top: .75rem; }

.post-body { padding: 3rem 0; }
.post-body > .container > *:not(h1,h2,h3,h4) { max-width: 72ch; }
.post-body h2, .post-body h3 { margin: 2rem 0 .75rem; }
.post-body p  { margin-bottom: 1rem; }
.post-body ul, .post-body ol { margin: 1rem 0 1rem 1.5rem; }
.post-body li { margin-bottom: .35rem; }
