/* ==========================================================================
   M-U-S-I-C — Program Map page (patterns: program-map-*)
   Hero, poster card and CTA values ported verbatim from
   m-u-s-i-c-3.0/src/pages/ProgramMap.tsx inline styles. The map is the
   10-day-masterclass-map.svg poster itself — three proportional phase
   bands in one row above a continuous 10-column day strip, closing on the
   "m-u-s-i-c.ai/curriculum · Artist Camp LLC" credit — shown in the same
   rounded card the original wraps it in.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — paper page header
   -------------------------------------------------------------------------- */

.pm-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(44px, 7vw, 72px) clamp(16px, 4vw, 32px) clamp(24px, 4vw, 36px);
}

.pm-hero__inner > * {
  margin: 0;
}

.pm-hero__title {
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.02;
}

.pm-hero__lead {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.55;
  color: #516078;
  max-width: 620px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Map — the poster in its card (ProgramMap.tsx <img> styles, 1:1)
   -------------------------------------------------------------------------- */

.pm-map-wrap {
  /* content-box, like every music-container: ProgramMap.tsx's maxWidth 1240
     caps the content, not the box, so the card runs 1240px wide with the
     clamp() gutters outside it. */
  box-sizing: content-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px) clamp(40px, 6vw, 64px);
}

.pm-map-poster {
  margin: 0;
}

.pm-map-poster img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #e8ecf2;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

/* --------------------------------------------------------------------------
   Closing CTA — smaller rhythm than the shared music-cta-band defaults
   -------------------------------------------------------------------------- */

.pm-cta__inner {
  padding: clamp(44px, 6vw, 64px) clamp(16px, 4vw, 32px);
  gap: 20px;
}

.pm-cta__title {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 38px);
  letter-spacing: -0.015em;
  margin: 0;
}

/* ── The ten days, in HTML ────────────────────────────────────────────────
   Replaces the poster image. The drawing could only shrink; this rewraps, so
   the keywords stay legible from 320px up. Phase colours match the bands in
   the drawing so the two never look like different curricula.            */

.pm-map {
  padding: clamp(20px, 3vw, 34px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 30px);
}

.pm-map__head { display: flex; flex-direction: column; gap: 6px; }

.pm-map__eyebrow {
  margin: 0;
  color: #8b939e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pm-map__title {
  margin: 0;
  color: #111827;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.pm-map__sub { margin: 0; color: #516078; font-size: clamp(14.5px, 1.6vw, 16.5px); }

/* ── Phase ─────────────────────────────────────────────────────────────── */

.pm-phase {
  --pm-ink: #197a57;
  --pm-tint: #eaf4ef;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  overflow: hidden;
  background: #fffdf9;
}

.pm-phase--build    { --pm-ink: #a36f00; --pm-tint: #f9f0d5; }
.pm-phase--capstone { --pm-ink: #c0374a; --pm-tint: #f8e5e7; }

.pm-phase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: clamp(12px, 1.6vw, 16px) clamp(14px, 2vw, 20px);
  background: var(--pm-tint);
  border-bottom: 1px solid #e8ecf2;
}

.pm-phase__title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(14px, 1.7vw, 16.5px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pm-ink);
}

.pm-phase__range {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pm-phase__note {
  margin: 0;
  color: #6b7280;
  font-size: 12.5px;
}

/* ── Days ──────────────────────────────────────────────────────────────── */

.pm-days {
  list-style: none;
  margin: 0;
  padding: clamp(12px, 1.8vw, 18px);
  display: grid;
  /* One rule instead of five media queries: as many columns as fit at a width
     that keeps the keywords readable, never fewer than one. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  gap: 10px;
}

.pm-day {
  border: 1px solid #e8ecf2;
  border-top: 3px solid var(--pm-ink);
  border-radius: 12px;
  background: #ffffff;
  padding: clamp(12px, 1.6vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pm-day__num {
  margin: 0;
  color: var(--pm-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pm-day__name {
  margin: 0;
  color: #111827;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(14.5px, 1.5vw, 16px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.pm-day__keys {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pm-day__keys li {
  color: #516078;
  font-size: 12.5px;
  line-height: 1.4;
}

/* ── Footer strip ──────────────────────────────────────────────────────── */

.pm-map__foot {
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  padding: clamp(16px, 2.2vw, 22px) clamp(16px, 2.4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-map__when {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pm-map__hours,
.pm-map__creed { margin: 0; color: #8b97aa; font-size: 12.5px; line-height: 1.5; }

.pm-map__creed { color: #b9a2f0; letter-spacing: 0.02em; }

.pm-map__download { margin: 0; font-size: 13.5px; }

.pm-map__download a {
  color: #2440c4;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 6px 0;
}
