/* ═══════════════════════════════════════════════════════════════════════
   M-U-S-I-C — WordPress theme design system (assets/css/main.css)

   Layer 1 — ported 1:1 from m-u-s-i-c-3.0/src/styles.css:
     fonts, ground, links, focus ring, selection, motion.js static rules,
     hv-* hover utilities, lnk-light, .in, acc-wrap/chev/pulse-low/
     icon-pop/u-grow/tilt-in, skip-link — utility names kept verbatim.

   Layer 2 — the music-* vocabulary: the recurring inline-style idioms of the
     3.0 pages (Home/Camp/Pricing/Faq/Apply et al.) extracted into reusable
     classes with the EXACT source values. Page patterns compose these.

   Layer 3 — WordPress compatibility: core-block passthroughs for buttons,
     gentle gap neutralization inside music- shells, editor parity.

   This file is enqueued on the front end AND loaded in the editor via
   add_editor_style(). No #root / SPA dependencies.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── fonts (variable files shipped in assets/fonts/) ─────────────────── */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ── ground (helmet globals) ─────────────────────────────────────────── */

html,
body {
  margin: 0;
  padding: 0;
  background: #fff8ef;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

/* The design sets Space Grotesk on every heading inline; in WP that
   becomes the theme default so pattern headings inherit it. */
h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", Arial, sans-serif;
}

a {
  color: #2447c6;
  text-decoration: none;
}

a:hover {
  color: #d7374f;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #00789e;
  outline-offset: 2px;
}

::selection {
  background: #ffe6e7;
}

input,
textarea,
button {
  font-family: "Inter", Arial, sans-serif;
}

/* ── motion.js, static ─────────────────────────────────────────────── */

.acm-hidden {
  opacity: 0;
  transform: translateY(16px);
}

.acm-ready {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.acm-in {
  opacity: 1;
  transform: none;
}

a,
button {
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

a:active,
button:active {
  transform: scale(0.975);
}

img[src*="horizon-trails"] {
  animation: acmDrift 26s ease-in-out infinite alternate;
}

@keyframes acmDrift {
  from {
    transform: scale(1.08) translateX(0);
  }

  to {
    transform: scale(1.08) translateX(-34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acm-hidden {
    opacity: 1;
    transform: none;
  }

  img[src*="horizon-trails"] {
    animation: none;
  }

  a,
  button {
    transition: none;
  }

  a:active,
  button:active {
    transform: none;
  }
}

/* ── the prototypes' style-hover / style-focus states ───────────────── */

.hv-coral:hover {
  background: #d7374f !important;
  color: #ffffff !important;
}

.hv-cobalt:hover {
  background: #111827 !important;
  color: #ffffff !important;
}

.hv-outline:hover {
  border-color: #111827 !important;
  color: #111827 !important;
}

.hv-white-dim:hover {
  background: #cdd4df !important;
  color: #111827 !important;
}

.hv-border-ink:hover {
  border-color: #111827 !important;
}

.hv-card:hover {
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.09) !important;
  transform: translateY(-2px);
}

.hv-row:hover {
  background: #f5f7fa !important;
}

.hv-photo {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hv-photo:hover {
  transform: scale(1.03);
}

.hv-navlink:hover {
  color: #d7374f !important;
}

.lnk-light:hover {
  color: #ffffff !important;
}

.in:focus {
  border-color: #00789e !important;
}

/* ── micro-interaction utilities (shared; reduced-motion safe) ─────────── */

/* Animated disclosure: wrap collapsible content in .acc-wrap > .acc-inner
   and toggle .open on the wrap. */
.acc-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-wrap.open {
  grid-template-rows: 1fr;
}

.acc-inner {
  overflow: hidden;
  min-height: 0;
}

/* Chevron that rotates as its disclosure opens. */
.chev {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.chev.open {
  transform: rotate(45deg);
}

/* Low-seats pill: a soft attention pulse. */
@keyframes seatPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(154, 98, 0, 0.35);
  }

  55% {
    box-shadow: 0 0 0 5px rgba(154, 98, 0, 0);
  }
}

.pulse-low {
  animation: seatPulse 2.4s ease-out infinite;
}

/* Icon nudge on hover of the surrounding card/link. */
.icon-pop {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

a:hover > .icon-pop,
button:hover > .icon-pop,
.hv-card:hover .icon-pop,
.hv-row:hover .icon-pop {
  transform: scale(1.12) rotate(-4deg);
}

/* Growing-underline link affordance (footer + inline text links). */
.u-grow {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 2px;
}

.u-grow:hover {
  background-size: 100% 1.5px;
}

/* Subtle lift for photo figures beyond the scale hover. */
.tilt-in {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tilt-in:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .acc-wrap,
  .chev,
  .icon-pop,
  .u-grow,
  .tilt-in {
    transition: none;
  }

  .pulse-low {
    animation: none;
  }

  a:hover > .icon-pop,
  button:hover > .icon-pop,
  .hv-card:hover .icon-pop,
  .hv-row:hover .icon-pop,
  .tilt-in:hover {
    transform: none;
  }
}

/* ── A11y: skip link + keyboard focus (coordinator-owned) ── */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  background: #111827;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-64px);
  opacity: 0;
  pointer-events: none;
  transition: transform 160ms ease, opacity 160ms ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid #d7374f;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00789e;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Layer 2 — the music-* vocabulary
   Values are extracted verbatim from the 3.0 page components.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── containers ──────────────────────────────────────────────────────── */

/* The standard page column: maxWidth 1140, margin "0 auto". */
/* The 3.0 originals are plain divs carrying BOTH max-width and the section
 * padding, so the max-width applies to the content box. WordPress block styles
 * force border-box globally, which would shrink every section by the 64px of
 * horizontal padding — content-box restores the original measure exactly. */
.music-container {
  box-sizing: content-box;
  max-width: 1140px;
  margin: 0 auto;
}

/* Forms/enroll column (Apply): maxWidth 920. */
.music-container--narrow {
  box-sizing: content-box;
  max-width: 920px;
}

/* Reading column (FAQ, Legal): maxWidth 860. */
.music-container--text {
  box-sizing: content-box;
  max-width: 860px;
}

/* ── section paddings (the recurring clamp() rhythms) ────────────────── */

/* Primary section rhythm — the most used content-section padding. */
.music-section {
  padding: clamp(56px, 8vw, 88px) clamp(16px, 4vw, 32px);
}

/* Band rhythm — white/editorial bands and feature splits. */
.music-section--band {
  padding: clamp(52px, 7vw, 80px) clamp(16px, 4vw, 32px);
}

/* Hero rhythm — page headers. */
.music-section--hero {
  padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 32px) clamp(48px, 7vw, 80px);
}

/* Short rhythm — dates strips, figure sections. */
.music-section--short {
  padding: clamp(48px, 7vw, 72px) clamp(16px, 4vw, 32px);
}

/* Ribbon rhythm — slim logistics bands. */
.music-section--ribbon {
  padding: clamp(24px, 4vw, 36px) clamp(16px, 4vw, 32px);
}

/* Kill one edge when a section hands off to the next (photo band → CTA). */
.music-section--flush-bottom {
  padding-bottom: 0;
}

.music-section--flush-top {
  padding-top: 0;
}

/* ── eyebrows (kicker lines above headings) ──────────────────────────── */

.music-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
}

.music-eyebrow--red    { color: #d7374f; }
.music-eyebrow--teal   { color: #00789e; }
.music-eyebrow--amber  { color: #9a6200; }
.music-eyebrow--sky    { color: #33b5e5; }
.music-eyebrow--green  { color: #0b7d58; }
.music-eyebrow--gold   { color: #ffb000; } /* on ink bands */
.music-eyebrow--violet { color: #7a4db5; } /* Master Mind */

/* ── badges (pill chips, e.g. the hero trio) ─────────────────────────── */

.music-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0;
}

.music-badge--green { color: #0b7d58; background: #ddf7ec; }
.music-badge--teal  { color: #00789e; background: #ddf5fc; }
.music-badge--amber { color: #9a6200; background: #fff1cc; }

/* ── headings ────────────────────────────────────────────────────────── */

.music-h1 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}

/* Narrow-page hero title (FAQ/Apply/About scale). */
.music-h1--sm {
  font-size: clamp(34px, 5.5vw, 52px);
  line-height: 1.02;
}

.music-h2 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: pretty;
}

/* Section header inside a page body (Camp "Two days…"). */
.music-h2--md {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.08;
}

/* Editorial/split headings ("Real sessions…"). */
.music-h2--sm {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* Slim band headings ("Upcoming dates"). */
.music-h2--xs {
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Card titles (day cards, policy cards). */
.music-h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
  margin: 0;
  text-wrap: pretty;
}

.music-h3--lg {
  font-size: 22px;
}

/* ── body text ───────────────────────────────────────────────────────── */

/* Section intro paragraph. */
.music-lead {
  color: #516078;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* Hero subtitle scale. */
.music-lead--hero {
  font-size: clamp(17px, 2.3vw, 19px);
  line-height: 1.5;
}

/* Card/caption copy. */
.music-lead--sm {
  font-size: 14.5px;
  line-height: 1.6;
}

/* Text color helpers (the palette's four text tones). */
.music-text-slate { color: #516078; } /* body on paper/white */
.music-text-gray  { color: #8b97aa; } /* muted, incl. on ink */
.music-text-cloud { color: #cdd4df; } /* readable body on ink */
.music-text-navy  { color: #243047; } /* strong body on paper */
.music-text-white { color: #ffffff; }

/* ── buttons ─────────────────────────────────────────────────────────── */

/* Base: the 3.0 CTA (padding 15px 28px, radius 8, 600/16).
   Works on a bare <a>/<button> or on a core button block. */
.music-btn,
.wp-block-button.music-btn .wp-block-button__link {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.music-btn--sm,
.wp-block-button.music-btn--sm .wp-block-button__link {
  padding: 12px 22px;
  font-size: 14px;
}

.music-btn--xs,
.wp-block-button.music-btn--xs .wp-block-button__link {
  padding: 10px 18px;
  font-size: 13.5px;
}

.music-btn--coral,
.wp-block-button.music-btn--coral .wp-block-button__link {
  background: #ff5a5f;
  color: #ffffff;
}

.music-btn--cobalt,
.wp-block-button.music-btn--cobalt .wp-block-button__link {
  background: #2447c6;
  color: #ffffff;
}

.music-btn--ink,
.wp-block-button.music-btn--ink .wp-block-button__link {
  background: #111827;
  color: #ffffff;
}

.music-btn--amber,
.wp-block-button.music-btn--amber .wp-block-button__link {
  background: #ffb000;
  color: #111827;
}

.music-btn--sky,
.wp-block-button.music-btn--sky .wp-block-button__link {
  background: #33b5e5;
  color: #ffffff;
}

/* White outlined (paper sections) — pair with hv-outline. */
.music-btn--white-outline,
.wp-block-button.music-btn--white-outline .wp-block-button__link {
  background: #ffffff;
  color: #111827;
  border: 1.5px solid #cdd4df;
}

/* Solid white (on ink bands) — pair with hv-white-dim. */
.music-btn--white,
.wp-block-button.music-btn--white .wp-block-button__link {
  background: #ffffff;
  color: #111827;
}

/* CTA row: display flex, gap 14, wrap. */
.music-btns,
.wp-block-buttons.music-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.music-btns--center,
.wp-block-buttons.music-btns--center {
  justify-content: center;
}

/* ── cards ───────────────────────────────────────────────────────────── */

/* Paper card: white, hairline border, radius 16. Pair with hv-card. */
.music-card {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Cream card used on white bands (Camp intro day cards). */
.music-card--cream {
  background: #fff8ef;
}

/* Dark cohort/date card (on ink bands). */
.music-card--navy {
  background: #243047;
  border: none;
  color: #ffffff;
}

/* Roomier padding (pricing tiers, form shells). */
.music-card--pad-lg {
  padding: clamp(22px, 3vw, 30px);
}

/* 4px phase accents along the top edge. */
.music-card--top-green  { border-top: 4px solid #19a974; }
.music-card--top-amber  { border-top: 4px solid #ffb000; }
.music-card--top-coral  { border-top: 4px solid #ff5a5f; }
.music-card--top-sky    { border-top: 4px solid #33b5e5; }
/* Cobalt lived only as .curriculum-card--top-cobalt, which meant the stage
   cards could not be generated by one loop — the fifth card needed a special
   case. Promoted here so every accent a course profile can name resolves the
   same way. The old class is kept in curriculum.css for any stored content
   still carrying it. */
.music-card--top-cobalt { border-top: 4px solid #2447c6; }
.music-card--top-violet { border-top: 4px solid #7a4db5; }
.music-card--top-red    { border-top: 4px solid #d7374f; }
.music-card--top-teal   { border-top: 4px solid #00789e; }

/* ── the course hub ──────────────────────────────────────────────────────
   The root page of the network. Built from the existing card family rather
   than a new visual language, because the hub is the front door to the same
   school — it should read as the family it belongs to, not as a directory
   bolted on top of one. */

.music-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0 8px;
}

.music-hub__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-top: 4px solid #19a974;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.music-hub__card-name {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.music-hub__card-meta {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5563;
}

/* The featured course. Deliberately not a bigger tile — a tile says "one of
   several", and with one course that reads as a directory missing its other
   entries. Picture, promise, facts, button: the shape of a thing being
   recommended, which still reads correctly once a second course sits under it.

   WRITTEN MOBILE-FIRST, ON PURPOSE. The stacked and side-by-side layouts need
   genuinely different image mechanics, and expressing that as a desktop rule
   plus an override meant two competing `height` declarations on the same
   element. That fight is what put a 469px photo inside a 300px box and buried
   the course name underneath it. Mobile-first means exactly ONE height
   declaration is live at any width, so there is nothing to win. */

.music-hub__feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-top: 4px solid #19a974;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Stacked: the figure just wraps, and the IMAGE carries the height. An <img>
   is a replaced element — give it a real length and it cannot surprise you.

   THE PARENT CLASS IS LOAD-BEARING, NOT DECORATION. pages/_chrome.css carries
   a blanket `.music-page__content img { height: auto }` for editor images, and it
   is enqueued AFTER main.css. `.music-hub__feature-figure img` has exactly the
   same specificity (0,1,1), so the later sheet won and every height set here
   was silently discarded — the photo fell back to the 1600x900 attribute ratio
   and overran the card. Qualifying with .music-hub__feature takes this to (0,2,1)
   and settles it on specificity rather than on enqueue order. */
.music-hub__feature-figure {
  display: block;
  overflow: hidden;
  background: #f5f7fa;
}

.music-hub__feature .music-hub__feature-figure img {
  display: block;
  width: 100%;
  height: clamp(170px, 42vw, 300px);
  object-fit: cover;
}

.music-hub__feature-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.music-hub__eyebrow {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0b7d58;
}

.music-hub__feature-name {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
}

.music-hub__feature-lead {
  font-size: 17px;
  line-height: 1.55;
  color: #374151;
}

.music-hub__facts {
  margin-top: 2px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5563;
}

.music-hub__cta {
  margin-top: auto;
  padding-top: 14px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2447c6;
}

@media (max-width: 460px) {
  .music-hub__feature-body {
    padding: 20px;
  }

  .music-hub__feature-name {
    font-size: 22px;
  }

  .music-hub__facts {
    font-size: 13px;
  }
}

/* Side by side, once there is room for a readable text column beside the
   photo. Here — and ONLY here — the figure is a stretched grid item with a
   definite height from the body column, so the image can fill it absolutely. */
@media (min-width: 901px) {
  .music-hub__feature {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .music-hub__feature-figure {
    position: relative;
    min-height: 260px;
  }

  .music-hub__feature .music-hub__feature-figure img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .music-hub__feature-body {
    padding: 32px;
  }

  .music-hub__feature-name {
    font-size: 30px;
  }
}

/* Nothing listed is a real state, not an error: every course can legitimately
   be in draft or pre-sell at once. It gets a sentence, not an empty grid. */
.music-hub__empty {
  margin: 32px 0;
  padding: 24px;
  background: #fff8ef;
  border-radius: 16px;
  color: #4b5563;
}

/* ── full-bleed bands ────────────────────────────────────────────────── */

/* Ink band: dark section wrapper (ribbon, dates, Master Mind, checkout). */
.music-band {
  background: #111827;
  color: #ffffff;
}

.music-band a {
  color: #cdd4df;
}

/* Navy panel tone (inner card surface of ink bands). */
.music-band--navy {
  background: #243047;
}

/* White editorial band with hairline separators. */
.music-band--white {
  background: #ffffff;
  border-top: 1px solid #e8ecf2;
  border-bottom: 1px solid #e8ecf2;
}

/* Inset ink panel (rounded band inside a paper section). */
.music-panel-ink {
  background: #111827;
  color: #ffffff;
  border-radius: 16px;
  padding: clamp(20px, 3.5vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}

/* ── photo figures ───────────────────────────────────────────────────── */

/* Rounded photo frame — pair with tilt-in for the lift hover. */
.music-photo-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.1);
}

/* Hero-scale shadow. */
.music-photo-figure--shadow-lg {
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.14);
}

.music-photo-figure--flat {
  box-shadow: none;
}

.music-photo-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Neutralize core image-block wrappers inside the frame. */
.music-photo-figure .wp-block-image {
  margin: 0;
}

.music-photo-figure .wp-block-image img {
  border-radius: 0;
  vertical-align: bottom;
}

/* ── seat pills ──────────────────────────────────────────────────────── */

.music-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.music-pill--open { color: #0b7d58; background: #ddf7ec; }
.music-pill--low  { color: #9a6200; background: #fff1cc; } /* add .pulse-low */
.music-pill--wait { color: #d7374f; background: #ffe6e7; }

/* ── grids ───────────────────────────────────────────────────────────── */

/* Two-up feature split (text ⇄ photo), collapses at 300px tracks. */
.music-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

/* Three-up card/editorial grid. */
.music-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* Four-up tier/cohort grid. */
.music-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* Day-card rail: auto-fill so cards keep their width on any count. */
.music-grid-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

/* ── section header stack (eyebrow + h2 + lead) ──────────────────────── */

.music-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

/* ── closing CTA band with the path-grid backdrop ────────────────────── */

.music-cta-band {
  position: relative;
  overflow: hidden;
}

.music-cta-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
}

.music-cta-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   Layer 3 — WordPress compatibility
   ═══════════════════════════════════════════════════════════════════════ */

/* music-btn classes land on the wp-block-button WRAPPER; the visual styles
   are re-applied to the inner link above, so strip them off the wrapper. */
.wp-block-button[class*="music-btn"] {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

/* hv-* hover utilities pass through the core button wrapper to the link. */
.wp-block-button.hv-coral:hover .wp-block-button__link {
  background: #d7374f !important;
  color: #ffffff !important;
}

.wp-block-button.hv-cobalt:hover .wp-block-button__link {
  background: #111827 !important;
  color: #ffffff !important;
}

.wp-block-button.hv-outline:hover .wp-block-button__link {
  border-color: #111827 !important;
  color: #111827 !important;
}

.wp-block-button.hv-white-dim:hover .wp-block-button__link {
  background: #cdd4df !important;
  color: #111827 !important;
}

/* When hv-* sits on the wrapper, keep the wrapper itself untouched. */
.wp-block-button.hv-coral:hover,
.wp-block-button.hv-cobalt:hover,
.wp-block-button.hv-outline:hover,
.wp-block-button.hv-white-dim:hover {
  background: transparent !important;
}

/* Neutralize default block-gap margins ONLY inside music- component shells —
   these shells carry their own gaps (use Stack/Row groups inside them). */
.music-card > :where(h1, h2, h3, h4, p, ul, figure),
.music-section-head > :where(h1, h2, h3, h4, p),
.music-cta-band__inner > :where(h1, h2, h3, h4, p),
.music-panel-ink > :where(h1, h2, h3, h4, p) {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Core columns/groups used as music- grids must not double up gutters. */
.wp-block-columns.music-grid-2,
.wp-block-columns.music-grid-3,
.wp-block-columns.music-grid-4 {
  display: grid;
}

/* ── editor parity (loaded via add_editor_style) ─────────────────────── */

.editor-styles-wrapper {
  background: #fff8ef;
  font-family: "Inter", Arial, sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
  font-family: "Space Grotesk", Arial, sans-serif;
}

/* ── Video intro ──────────────────────────────────────────────────────────
   The writing that used to live inside the player artwork. It belongs on the
   page, and it is set the way a magazine sets a feature opener: a small
   department line, a display pull-quote with its opening mark hung into the
   left margin, a rule under the byline, and a standfirst that is visibly
   larger than the paragraphs beneath it. */
.music-video-intro {
  display: flex;
  flex-direction: column;
  max-width: 62ch;
  margin: 0 0 clamp(26px, 3.4vw, 40px);
}

.music-video-intro--tight { margin-bottom: clamp(18px, 2.4vw, 26px); }

.music-video-intro__eyebrow {
  margin: 0 0 14px;
  color: #6d4bb5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.music-video-intro__quote {
  margin: 0;
  padding: 0;
  border: 0;
  color: #111827;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  /* The opening quotation mark hangs into the margin so the first letter of
     the line, not the punctuation, sits on the text edge. */
  text-indent: -0.42em;
}

.music-video-intro__attrib {
  margin: 18px 0 0;
  padding-top: 16px;
  position: relative;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.45;
}

.music-video-intro__attrib::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, #d7374f, rgba(215, 55, 79, 0));
}

.music-video-intro__attrib em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
}

.music-video-intro__body {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.68;
}

/* The standfirst — the first paragraph after the byline carries the weight. */
.music-video-intro__body:first-of-type {
  color: #243047;
  font-size: clamp(16.5px, 1.8vw, 19px);
  line-height: 1.55;
}

/* ── Featured video section ───────────────────────────────────────────────
   The pattern for any featured film or interview: the writing first, at a
   size that says it was written on purpose, then the player at full column
   width. Used by /curriculum/ and available to the next one. */
.music-feature-video {
  padding: 0 clamp(16px, 4vw, 32px) clamp(48px, 7vw, 80px);
}

/* The separation from whatever precedes it is now done by the ribbon band, so
   the hairline that used to sit here would be a second, weaker rule directly
   under a strong one. Space only. */
.music-feature-video__inner {
  display: flex;
  flex-direction: column;
  padding-top: clamp(40px, 6vw, 72px);
}

.music-feature-video__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 980px;
}

.music-feature-video__player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.16);
}

/* ── Ribbon ───────────────────────────────────────────────────────────────
   The full-bleed fact strip. It began as .music-home-ribbon on the homepage;
   promoted here so any page can break a long scroll with one without
   depending on the homepage's stylesheet. Pair with .music-band on the outer
   wrapper and .music-container.music-section--ribbon on the inner. */
.music-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  flex-wrap: wrap;
}

.music-ribbon__lead {
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.music-ribbon__meta {
  margin: 0;
  color: #8b97aa;
  font-size: 14px;
  line-height: 1.5;
}

.music-ribbon__meta a {
  color: #cdd4df;
  text-decoration: underline;
  text-underline-offset: 3px;
}
