/* ==========================================================================
   Single program page (single-mm_class.php): design options, round 2.

   Slots: hero-program, prog-facts, prog-learn, prog-activities, prog-people,
   prog-action. Each option shows the program's own data (ages on a 2-18 bar,
   weekday strip from the session rows, 12 seat dots, the session as a ring /
   timeline / proportional bar, levels as a ladder / staircase) in the site's
   own palette and shapes: terracotta primary, sage and gold tints, white
   cards with warm shadows, Nunito + Open Sans. No new colours.

   Markup for options 1-3 is printed by single-mm_class.php through
   mm_o_render(); Current (0) is untouched. prog-action is CSS only, around
   the one .mmo-act wrapper (local only), so the booking form exists once.
   ========================================================================== */

.mmo-act { display: contents; }

/* ---- Shared pieces -------------------------------------------------------- */
.mp-sec { padding-block: clamp(36px, 3.8vw, 52px); }
.mp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(16px, 2vw, 24px);
}
.mp-h {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 clamp(12px, 1.6vw, 18px);
}
.mp-h small { font-size: .85rem; font-weight: 600; color: var(--sage-deep); margin-left: 6px; }
.mp-h--gap { margin-top: clamp(24px, 3vw, 38px); }
.mp-cap {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--sage-deep);
}
.mp-note { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.mp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--sage-tint); color: var(--sage-deep);
  font-size: .82rem; font-weight: 600;
}
.mp-chip svg { width: 14px; height: 14px; color: var(--accent-sun); }
.mp-chip b { color: var(--ink); }

/* Age on the 2-18 scale */
.mp-age { display: block; width: 100%; max-width: 340px; }
.mp-age__track { display: block; position: relative; height: 10px; border-radius: 99px; background: var(--sage-tint); }
.mp-age__track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--brand); }
.mp-age__ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Seven weekdays, lit when the program runs */
.mp-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mp-day {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 64px; padding: 8px 2px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  text-align: center;
  line-height: 1.15;
}
.mp-day b { font-family: var(--font-head); font-size: .86rem; font-weight: 700; }
.mp-day span { font-size: .72rem; min-height: 1em; }
.mp-day.is-on { background: var(--brand); border: 1.5px solid var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(188, 90, 27, .22); }
.mp-day.is-on b { color: #fff; }
.mp-week--sm .mp-day { min-height: 50px; padding: 6px 2px; }
.mp-week--dots { grid-template-columns: repeat(7, auto); justify-content: start; gap: 5px; margin-top: 10px; }
.mp-week--dots .mp-day { min-height: 0; padding: 3px 9px; border-radius: var(--r-pill); }
.mp-week--dots .mp-day span { display: none; }
.mp-week--dots .mp-day b { font-size: .76rem; }
@media (max-width: 480px) { .mp-day span { font-size: .64rem; } .mp-day b { font-size: .78rem; } .mp-week { gap: 4px; } }

/* Twelve seats */
.mp-dots { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.mp-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--sage-deep); }

.mp-price b { font-family: var(--font-head); font-size: 1.75rem; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.mp-price small { font-size: .86rem; color: var(--muted); }

/* The structure tiles, kept small under a visual */
.mp-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 22px; }
.mp-notes li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.mp-notes b { font-family: var(--font-head); color: var(--ink); }
.mp-notes small { color: var(--muted); font-size: .86rem; }
.mp-notes__ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-tint); color: var(--sage-deep); }
.mp-notes__ico svg { width: 15px; height: 15px; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.mp-hero { position: relative; isolation: isolate; padding: 10px 0 clamp(22px, 2.8vw, 36px); }
.mp-hero .breadcrumb { margin-bottom: 10px; }
.mp-hero h1 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.14; letter-spacing: -.02em; margin: 10px 0 10px; }
.mp-lead { margin: 0 0 8px; font-size: 1rem; line-height: 1.6; max-width: 56ch; color: var(--ink-soft); }
.mp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.mp-fine { margin: 6px 0 0; font-size: .85rem; color: var(--muted); max-width: 56ch; }
.mp-hero .partner-note { font-size: .9rem; margin: 8px 0 0; }
.mp-hero__grid { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (min-width: 900px) { .mp-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); } }
.mp-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 1. Pass panel: terracotta band, a ticket beside the copy */
.mp-hero--1 { background: var(--brand); color: #fff; }
.mp-hero--1::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../../images/pattern-elements.svg) 0 0 / 560px 560px repeat; opacity: .16; }
.mp-hero--1 h1, .mp-hero--1 .mp-lead, .mp-hero--1 .mp-fine, .mp-hero--1 .partner-note { color: #fff; }
.mp-hero--1 .mp-fine { opacity: .85; }
.mp-hero--1 .breadcrumb, .mp-hero--1 .breadcrumb a, .mp-hero--1 .breadcrumb [data-crumb] { color: rgba(255, 255, 255, .88); }
.mp-hero--1 .tag-pill { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.mp-hero--1 .tag-pill svg { color: var(--accent-yellow); }
.mp-hero--1 .btn--primary { --btn-bg: #fff; --btn-fg: var(--brand-dark); box-shadow: 0 8px 20px rgba(60, 30, 10, .22); }
.mp-hero--1 .btn--secondary { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.mp-hero--1 .btn--secondary:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mp-pass { position: relative; overflow: hidden; background: var(--surface); color: var(--ink-soft); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.mp-pass__photo { height: clamp(120px, 13vw, 160px); background: var(--sage-tint); }
.mp-pass__perf {
  position: relative; display: block; height: 2px; margin: 0 22px;
  background: none; border-top: 2px dashed var(--line); height: 0;
}
.mp-pass__perf::before, .mp-pass__perf::after {
  content: ""; position: absolute; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand);
}
.mp-pass__perf::before { left: -33px; }
.mp-pass__perf::after { right: -33px; }
.mp-pass__body { padding: 16px clamp(16px, 2vw, 22px) 18px; display: grid; gap: 14px; }
.mp-pass__row b { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); display: block; margin-bottom: 8px; }
.mp-pass__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mp-pass__group small { display: block; margin-top: 5px; color: var(--muted); font-size: .8rem; }
.mp-pass__price { text-align: right; }
.mp-pass__price .mp-cap { margin-bottom: 2px; }
.mp-pass__trial { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--gold-tint); font-size: .86rem; }
.mp-pass__trial svg { width: 16px; height: 16px; color: var(--accent-sun); flex: none; }
.mp-pass__trial b { margin-left: auto; font-family: var(--font-head); color: var(--ink); }
.mp-hero--nophoto .mp-pass__body { padding-top: 20px; }

/* 2. Booking first: cream head, a booking row in one line */
.mp-hero--2 { background: var(--gold-tint); }
.mp-hero__head { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .mp-hero__head { grid-template-columns: minmax(0, 1fr) 260px; } }
.mp-hero__thumb { height: 140px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.mp-hero--2 h1 { margin-top: 6px; }
.mp-row {
  display: grid; gap: 14px 24px; align-items: center;
  margin-top: 14px; padding: 16px clamp(16px, 2vw, 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
@media (min-width: 1000px) { .mp-row { grid-template-columns: auto minmax(0, 1fr) auto; } }
.mp-row__trial { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .84rem; color: var(--muted); }
.mp-row__trial svg { width: 14px; height: 14px; color: var(--accent-sun); }
.mp-row__trial b { color: var(--ink); font-family: var(--font-head); }
.mp-row__cell .mp-week--sm { max-width: 460px; }
.mp-row__act .mp-actions { margin: 0; }
.mp-hero--2 .mp-fine { margin-top: 8px; }

/* 3. Photo banner + facts rail */
.mp-hero--3 { background: var(--canvas-2); }
.mp-banner { height: clamp(110px, 24vh, 200px); margin: 4px 0 18px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.mp-banner img { object-position: center 35%; }
.mp-hero--3 .mp-hero__grid { align-items: start; }
.mp-rail { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 6px clamp(14px, 2vw, 20px); }
.mp-rail > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mp-rail > div:last-child { border-bottom: 0; }
.mp-rail dt { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--sage-deep); }
.mp-rail dd { margin: 0; font-size: .92rem; }
.mp-rail dd b { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 4px; }
.mp-rail dd small { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.mp-rail .mp-price b { font-size: 1.4rem; }
@media (max-width: 899px) { .mp-hero--nophoto .mp-pass__perf { display: none; } }

/* ==========================================================================
   5. TEACHER & REVIEWS
   ========================================================================== */
.mp-people { background: var(--gold-tint); }
.mp-teacher { display: flex; gap: 14px; align-items: center; }
.mp-teacher__photo { flex: none; display: block; width: 76px; height: 76px; border-radius: var(--r-md); overflow: hidden; background: var(--sage-tint); }
.mp-teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.mp-teacher__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mp-teacher__k { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--sage-deep); }
.mp-teacher__txt b { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.mp-teacher__txt em { font-style: normal; font-size: .86rem; color: var(--sage-deep); font-weight: 600; }
.mp-teacher__bio { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.mp-teacher__act { flex: none; }
.mp-teacher--row .mp-teacher__bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) { .mp-teacher { flex-wrap: wrap; } .mp-teacher__act { width: 100%; } }
.mp-teacher--card { flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 14px; }
.mp-teacher--card .mp-teacher__photo { width: 88px; height: 88px; }
.mp-teacher--stack { flex-direction: column; align-items: flex-start; }
.mp-teacher--stack .mp-teacher__photo { width: 88px; height: 88px; }
.mp-quotes { display: grid; gap: 12px; }
.mp-quotes--row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mp-quote { margin: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 8px; }
.mp-quote blockquote { margin: 0; }
.mp-quote blockquote p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink); }
.mp-quote figcaption { display: grid; font-size: .84rem; color: var(--muted); }
.mp-quote figcaption b { font-family: var(--font-head); color: var(--ink); }
.mp-quote .review-card__stars { color: var(--accent-sun); }
.mp-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); align-items: stretch; }
.mp-side { display: grid; gap: clamp(18px, 2.4vw, 30px); align-items: start; }
@media (min-width: 900px) { .mp-side:not(.is-solo) { grid-template-columns: 360px minmax(0, 1fr); } }
.mp-side__quotes .mp-h { font-size: 1.2rem; }

/* ==========================================================================
   6. JOIN STEPS + FAQ + BOOKING (CSS only, around .mmo-act)
   ========================================================================== */
html[data-o-prog-action] .mmo-act .join-band .eyebrow,
html[data-o-prog-action] .mmo-act .faq-band .eyebrow,
html[data-o-prog-action] .mmo-act .booking-band .eyebrow { display: none; }
html[data-o-prog-action] .mmo-act :is(.join-band, .faq-band, .booking-band) { padding-block: clamp(36px, 3.8vw, 52px); }
html[data-o-prog-action] .mmo-act :is(.join-band, .faq-band) .section-title { font-size: clamp(1.3rem, 1.9vw, 1.6rem); margin: 0; }
html[data-o-prog-action] .mmo-act :is(.join-band, .faq-band) .section-head { text-align: left; margin: 0 0 clamp(14px, 1.8vw, 22px); }
html[data-o-prog-action] .mmo-act .faq-band__grid { gap: 14px; }
html[data-o-prog-action] .mmo-act .faq-band__head { margin: 0; }
html[data-o-prog-action] .mmo-act .faq-list { max-width: none; margin: 0; gap: 10px; }
html[data-o-prog-action] .mmo-act .faq-item__q { padding: 14px 18px; font-size: 1rem; }
html[data-o-prog-action] .mmo-act .faq-item__a p { padding: 0 18px 16px; }
html[data-o-prog-action] .mmo-act .booking-band__head { margin-bottom: 14px; text-align: left; }
html[data-o-prog-action] .mmo-act .booking-band__head h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); margin: 0 0 4px; }
html[data-o-prog-action] .mmo-act .booking-band__head p { margin: 0; }
html[data-o-prog-action] .mmo-act .join-step p { line-height: 1.55; font-size: .9rem; }
html[data-o-prog-action] .mmo-act .join-step h3 { font-size: 1.05rem; margin-top: 12px; }

/* 1. Route to the first lesson: steps on a path that runs into the booking card */
html[data-o-prog-action="1"] .mmo-act { display: flex; flex-direction: column; }
html[data-o-prog-action="1"] .mmo-act > .mmo-set { order: 1; }
html[data-o-prog-action="1"] .mmo-act > .join-band { order: 2; padding-bottom: 0; }
html[data-o-prog-action="1"] .mmo-act > .booking-band { order: 3; padding-top: 0; }
html[data-o-prog-action="1"] .mmo-act > .faq-band { order: 4; background: var(--sage-tint); }
html[data-o-prog-action="1"] .mmo-act .join-band .section-head { text-align: center; }
html[data-o-prog-action="1"] .mmo-act .join-steps { max-width: 980px; margin-inline: auto; }
html[data-o-prog-action="1"] .mmo-act .join-step__num { box-shadow: 0 0 0 7px var(--canvas-2), 0 6px 14px rgba(188, 90, 27, .25); }
@media (min-width: 820px) {
  html[data-o-prog-action="1"] .mmo-act .join-steps::before { background: none; border-top: 3px dashed var(--brand); height: 0; top: 20px; }
}
html[data-o-prog-action="1"] .mmo-act .join-band .wrap::after {
  content: ""; display: block; width: 0; height: 44px; margin: 14px auto 0;
  border-left: 3px dashed var(--brand);
}
html[data-o-prog-action="1"] .mmo-act .booking-band .wrap { position: relative; }
html[data-o-prog-action="1"] .mmo-act .booking-band .wrap::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 5px var(--canvas-2);
}
html[data-o-prog-action="1"] .mmo-act .booking-band__head { text-align: center; padding-top: 16px; }
html[data-o-prog-action="1"] .mmo-act .booking { padding: clamp(14px, 2vw, 22px); border: 2px solid var(--brand); border-radius: var(--r-xl); background: var(--brand-tint-2); box-shadow: var(--shadow-md); }

/* 2. Cards: every part is a white card on a quiet tint */
html[data-o-prog-action="2"] .mmo-act .join-band { background: var(--gold-tint); }
html[data-o-prog-action="2"] .mmo-act .join-steps::before { display: none; }
html[data-o-prog-action="2"] .mmo-act .join-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px 20px 20px; }
html[data-o-prog-action="2"] .mmo-act .join-step__num { width: 34px; height: 34px; font-size: .92rem; box-shadow: none; background: var(--sage-deep); }
html[data-o-prog-action="2"] .mmo-act .faq-band { background: var(--sage-tint); }
html[data-o-prog-action="2"] .mmo-act .faq-list { grid-template-columns: 1fr; }
@media (min-width: 900px) { html[data-o-prog-action="2"] .mmo-act .faq-list { grid-template-columns: 1fr 1fr; align-items: start; } }
html[data-o-prog-action="2"] .mmo-act .booking-band .booking { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: clamp(14px, 2vw, 24px); }

/* 3. Two columns: steps + FAQ on the left, the booking card sticky on the right */
@media (min-width: 1000px) {
  html[data-o-prog-action="3"] .mmo-act {
    display: grid; align-items: start; column-gap: 0;
    grid-template-columns:
      minmax(var(--gutter), 1fr)
      minmax(0, calc(var(--wrap) - 2 * var(--gutter) - 540px))
      40px
      minmax(0, 500px)
      minmax(var(--gutter), 1fr);
  }
  html[data-o-prog-action="3"] .mmo-act > .mmo-set { grid-column: 1 / -1; grid-row: 1; }
  html[data-o-prog-action="3"] .mmo-act > .join-band { grid-column: 2; grid-row: 2; }
  html[data-o-prog-action="3"] .mmo-act > .faq-band { grid-column: 2; grid-row: 3; }
  html[data-o-prog-action="3"] .mmo-act > .booking-band { grid-column: 4; grid-row: 2 / span 2; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; margin-top: clamp(24px, 3vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: 18px; }
  html[data-o-prog-action="3"] .mmo-act > :is(.join-band, .faq-band, .booking-band) .wrap { padding-inline: 0; max-width: none; }
  html[data-o-prog-action="3"] .mmo-act .faq-band__grid { grid-template-columns: 1fr; }
  html[data-o-prog-action="3"] .mmo-act .join-steps { grid-template-columns: 1fr; gap: 14px; }
  html[data-o-prog-action="3"] .mmo-act .join-steps::before { display: none; }
  html[data-o-prog-action="3"] .mmo-act .join-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; }
  html[data-o-prog-action="3"] .mmo-act .join-step__num { grid-row: 1 / span 2; box-shadow: none; }
  html[data-o-prog-action="3"] .mmo-act .join-step h3 { margin: 0; align-self: end; }
  html[data-o-prog-action="3"] .mmo-act .join-step p { margin: 2px 0 0; max-width: none; }
  html[data-o-prog-action="3"] .mmo-act .booking-band__head { margin-bottom: 8px; }
  html[data-o-prog-action="3"] .mmo-act .booking-band { padding-block: 32px; }
  html[data-o-prog-action="3"] .mmo-act .booking { grid-template-columns: 1fr; gap: 14px; }
  html[data-o-prog-action="3"] .mmo-act .booking__photo,
  html[data-o-prog-action="3"] .mmo-act .booking__steps-title,
  html[data-o-prog-action="3"] .mmo-act .booking__steps,
  html[data-o-prog-action="3"] .mmo-act .booking__trial-note { display: none; }
  html[data-o-prog-action="3"] .mmo-act .booking__summary { padding: 14px 16px; }
}

/* ==========================================================================
   ROUND 3: illustrated facts, learning, activities, levels.
   Markup and drawings: inc/illustrations-program.php. Site tokens only.
   ========================================================================== */
.pgi { display: block; width: 100%; height: auto; }
.pgi--clay { --pgi-bg: var(--brand-tint); --pgi-a: var(--brand); --pgi-b: var(--accent-sun); --pgi-d: var(--surface); --pgi-k: var(--ink); }
.pgi--sage { --pgi-bg: var(--sage-tint); --pgi-a: var(--sage-deep); --pgi-b: var(--accent-sun); --pgi-d: var(--surface); --pgi-k: var(--ink); }
.pgi--gold { --pgi-bg: var(--gold-tint); --pgi-a: var(--brand); --pgi-b: var(--sage-deep); --pgi-d: var(--surface); --pgi-k: var(--ink); }

.pgx-sec { padding-block: clamp(36px, 3.8vw, 52px); }
.pgx-h { font-family: var(--font-head); font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 0 0 clamp(14px, 1.8vw, 22px); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.pgx-h small { font-size: .85rem; font-weight: 700; color: var(--sage-deep); background: var(--surface); border-radius: var(--r-pill); padding: 2px 12px; }
.pgx-h--gap { margin-top: clamp(30px, 4vw, 50px); }
.pgx-flag { width: 40px; height: 40px; flex: none; }
.pgx-age { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); background: var(--sage-tint); color: var(--sage-deep); font-size: .8rem; font-weight: 700; white-space: normal; }
.pgx-placed { display: flex; align-items: center; gap: 8px; margin: 32px 0 0; padding: 9px 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 600; }
.pgx-placed svg { width: 16px; height: 16px; color: var(--sage-deep); flex: none; }
.pgx-scene-svg { display: block; width: 100%; height: auto; }
.pgx-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 6px; }
.pgx-when span { padding: 2px 10px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand-dark); font-size: .78rem; font-weight: 700; }
.pgx-when em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* ---- Facts ---------------------------------------------------------------- */
.pgx-facts { background: var(--canvas-2); }
.pgx-fact { list-style: none; }
.pgx-fact__txt { display: block; }
.pgx-fact__txt b { display: block; font-family: var(--font-head); font-size: 1.02rem; line-height: 1.25; color: var(--ink); }
.pgx-fact__txt small { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.4; color: var(--muted); }
/* 1. Scene board */
.pgx-board { position: relative; overflow: hidden; background: var(--sage-tint); border-radius: var(--r-xl); padding: clamp(18px, 2.4vw, 28px) clamp(16px, 2.4vw, 30px) clamp(54px, 6vw, 72px); }
.pgx-board__list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px 18px; }
.pgx-fact--tag { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.pgx-fact--tag .pgx-fact__art { width: min(100%, 168px); }
.pgx-fact--tag .pgx-fact__txt { position: relative; margin-top: 14px; padding: 9px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); min-width: 0; max-width: 100%; }
.pgx-fact--tag .pgx-fact__txt::before { content: ""; position: absolute; left: 50%; top: -15px; width: 2px; height: 15px; background: var(--sage-deep); opacity: .45; }
.pgx-board__hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(40px, 5vw, 60px); z-index: 0; }
@media (max-width: 760px) { .pgx-board__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
/* 2. Class pass */
.pgx-pass { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.pgx-pass__head { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(16px, 2vw, 24px); background: var(--brand); color: #fff; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; overflow: hidden; }
.pgx-pass__head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../../images/pattern-elements.svg) 0 0 / 460px 460px repeat; opacity: .16; }
.pgx-pass__title { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.pgx-pass__crane svg { width: 20px; height: 20px; color: var(--accent-sun); display: block; }
.pgx-pass__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.pgx-fact--stamp { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: clamp(16px, 2vw, 22px) clamp(12px, 1.6vw, 20px); }
.pgx-fact--stamp + .pgx-fact--stamp { border-left: 2px dashed var(--line); }
.pgx-fact--stamp .pgx-fact__art { width: min(100%, 150px); padding: 7px; background: var(--sage-tint); border: 2px dashed var(--accent-sage); border-radius: var(--r-sm); }
.pgx-fact--stamp:nth-child(even) .pgx-fact__art { background: var(--gold-tint); border-color: var(--accent-yellow); }
.pgx-fact--stamp + .pgx-fact--stamp::before, .pgx-fact--stamp + .pgx-fact--stamp::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--canvas-2); border: 1px solid var(--line); }
.pgx-fact--stamp + .pgx-fact--stamp::before { top: -1px; clip-path: inset(50% 0 0 0); }
.pgx-fact--stamp + .pgx-fact--stamp::after { bottom: -1px; clip-path: inset(0 0 50% 0); }
@media (max-width: 760px) {
  .pgx-pass__list { grid-template-columns: 1fr; }
  .pgx-fact--stamp { flex-direction: row; text-align: left; gap: 14px; }
  .pgx-fact--stamp .pgx-fact__art { width: 112px; flex: none; }
  .pgx-fact--stamp + .pgx-fact--stamp { border-left: 0; border-top: 2px dashed var(--line); }
  .pgx-fact--stamp + .pgx-fact--stamp::before, .pgx-fact--stamp + .pgx-fact--stamp::after { display: none; }
}
/* 3. Storybook spread */
.pgx-book { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px; background: var(--brand); border-radius: calc(var(--r-xl) - 2px); box-shadow: var(--shadow-md); }
.pgx-book::after { display: none; }
.pgx-book__page { position: relative; background: var(--gold-tint); padding: clamp(16px, 2.2vw, 28px) clamp(18px, 2.4vw, 32px) 34px; }
.pgx-book__page--l { border-radius: calc(var(--r-xl) - 10px) 0 0 calc(var(--r-xl) - 10px); }
.pgx-book__page--r { border-radius: 0 calc(var(--r-xl) - 10px) calc(var(--r-xl) - 10px) 0; background: var(--surface); }
.pgx-book__page ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pgx-fact--page { display: grid; grid-template-columns: clamp(104px, 11vw, 150px) minmax(0, 1fr); gap: 16px; align-items: center; }
.pgx-fact--page + .pgx-fact--page { padding-top: 14px; border-top: 2px dotted var(--accent-yellow); }
.pgx-book__page--r .pgx-fact--page + .pgx-fact--page { border-top-color: var(--accent-sage); }
.pgx-book__no { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--font-head); font-size: .78rem; font-weight: 700; color: var(--muted); }
@media (max-width: 760px) {
  .pgx-book { grid-template-columns: 1fr; }
  .pgx-book::after { display: none; }
  .pgx-book__page--l { border-radius: calc(var(--r-xl) - 10px) calc(var(--r-xl) - 10px) 0 0; }
  .pgx-book__page--r { border-radius: 0 0 calc(var(--r-xl) - 10px) calc(var(--r-xl) - 10px); }
  .pgx-fact--page { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
}

/* ---- Learning ------------------------------------------------------------- */
.pgx-learn { background: var(--sage-tint); }
.pgx-oc { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pgx-oc li { position: relative; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.pgx-oc__t { display: block; min-width: 0; }
.pgx-oc__t b { display: block; font-family: var(--font-head); font-size: 1.02rem; line-height: 1.3; color: var(--ink); }
.pgx-oc__t small { display: block; margin-top: 3px; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.pgx-oc__t em { font-style: normal; }
.pgx-oc--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .pgx-oc--rows { grid-template-columns: 1fr; } }
.pgx-oc--rows li { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; }
.pgx-oc--rows .pgx-oc__art { flex: none; width: 66px; }
.pgx-oc--tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pgx-oc--tiles li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 14px 16px; border-radius: var(--r-lg); }
.pgx-oc--tiles .pgx-oc__art { width: 82px; }
.pgx-oc--big { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.pgx-oc--big li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px 18px 18px; border-radius: var(--r-lg); overflow: hidden; }
.pgx-oc--big .pgx-oc__t em { position: absolute; top: 6px; right: 16px; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--sage-deep); }
.pgx-oc--big .pgx-oc__t b { font-size: 1.1rem; padding-right: 28px; }

/* 1. Winding trail */
.pgx-trail { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; }
.pgx-stop { position: relative; height: calc(150px + var(--m) * 5px); }
.pgx-stop__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pgx-stop__path path { fill: none; stroke: var(--sage-deep); stroke-opacity: .55; stroke-width: 6; stroke-linecap: round; stroke-dasharray: .1 13; }
.pgx-pm { display: none; }
.pgx-stop__node { position: absolute; left: var(--x); top: 50%; width: 92px; transform: translate(-50%, -50%); z-index: 2; }
.pgx-stop__node .pgi { border-radius: 26px; box-shadow: 0 0 0 6px var(--sage-tint), var(--shadow-md); }
.pgx-stop__node i { position: absolute; top: -8px; right: -8px; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: .8rem; box-shadow: 0 0 0 3px var(--sage-tint); }
.pgx-stop__card { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 430px; padding: 13px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.pgx-stop--r .pgx-stop__card { right: calc(100% - var(--x) + 64px); max-width: calc(var(--x) - 64px); }
.pgx-stop--l .pgx-stop__card { left: calc(var(--x) + 64px); max-width: calc(100% - var(--x) - 64px); }
.pgx-stop__card h3 { margin: 0 0 3px; font-size: 1.04rem; color: var(--ink); }
.pgx-stop__card p:not(.pgx-when) { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) {
  .pgx-stop { display: flex; align-items: center; height: auto; min-height: calc(104px + var(--m) * 3px); }
  .pgx-stop__path { width: 56px; right: auto; left: 0; }
  .pgx-pd { display: none; }
  .pgx-pm { display: block; }
  .pgx-stop__node { left: 28px; width: 56px; }
  .pgx-stop__node .pgi { border-radius: 16px; box-shadow: 0 0 0 4px var(--sage-tint), var(--shadow-sm); }
  .pgx-stop__node i { width: 22px; height: 22px; font-size: .72rem; top: -7px; right: -7px; }
  .pgx-stop__card, .pgx-stop--r .pgx-stop__card, .pgx-stop--l .pgx-stop__card { position: static; transform: none; width: auto; max-width: none; margin: 8px 0 8px 76px; flex: 1; padding: 11px 14px; }
}
/* 2. Storyboard */
.pgx-story { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .pgx-story { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pgx-story { grid-template-columns: 1fr; } }
.pgx-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 12px 12px 16px; }
.pgx-panel__frame { position: relative; display: grid; place-items: center; padding: 14px 0; margin-bottom: 12px; background: var(--gold-tint); border: 2px solid var(--line); border-radius: var(--r-sm); }
.pgx-panel__frame .pgi { width: 96px; }
.pgx-panel__frame i { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: .8rem; }
.pgx-panel__bar { display: block; height: 6px; margin: 0 4px 8px; border-radius: 99px; background: var(--sage-tint); overflow: hidden; }
.pgx-panel__bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.pgx-panel .pgx-when { margin-inline: 4px; }
.pgx-panel h3 { margin: 0 4px 4px; font-size: 1.04rem; color: var(--ink); }
.pgx-panel p:not(.pgx-when) { margin: 0 4px; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
/* 3. By the end + ribbon */
.pgx-ribbon { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 4px; }
.pgx-ribbon__seg { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 4px; border-radius: var(--r-md); color: #fff; overflow: hidden; }
.pgx-ribbon__seg--0 { background: var(--brand); }
.pgx-ribbon__seg--1 { background: var(--sage-deep); }
.pgx-ribbon__seg--2 { background: var(--accent-yellow); color: var(--ink); }
.pgx-ribbon__ico { width: min(46px, 100%); }
.pgx-ribbon b { font-family: var(--font-head); font-size: .9rem; font-weight: 800; line-height: 1; }
.pgx-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.pgx-lines li { display: grid; grid-template-columns: 26px 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px 10px 12px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.pgx-lines__n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-tint); color: var(--sage-deep); font-family: var(--font-head); font-size: .78rem; font-weight: 800; }
.pgx-lines__t b { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.pgx-lines__t small { display: block; margin-top: 2px; font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }
.pgx-lines__m { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pgx-lines__m span { padding: 2px 10px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand-dark); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.pgx-lines__m em { font-style: normal; font-size: .76rem; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) {
  .pgx-oc--big li { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .pgx-lines li { grid-template-columns: 52px minmax(0, 1fr); }
  .pgx-lines__n { display: none; }
  .pgx-lines__m { grid-column: 2; flex-direction: row; align-items: center; gap: 8px; }
  .pgx-ribbon__seg { padding: 6px 2px; justify-content: center; }
  .pgx-ribbon__ico { display: none; }
}

/* ---- Activities ----------------------------------------------------------- */
.pgx-acts { background: var(--canvas-2); }
.pgx-al { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pgx-al h3 { margin: 0 0 4px; font-size: 1.06rem; color: var(--ink); }
.pgx-al p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
.pgx-al__t { display: block; min-width: 0; }
/* 1. Picture cards: the drawing sits on a tinted band */
.pgx-acts--1 .pgx-al { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.pgx-acts--1 .pgx-al li { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.pgx-acts--1 .pgx-al__art { display: grid; place-items: center; padding: 16px 0; background: var(--brand-tint); }
.pgx-acts--1 .pgx-al li:nth-child(3n+2) .pgx-al__art { background: var(--sage-tint); }
.pgx-acts--1 .pgx-al li:nth-child(3n) .pgx-al__art { background: var(--gold-tint); }
.pgx-acts--1 .pgx-al__art .pgi { width: 112px; }
.pgx-acts--1 .pgx-al__t { padding: 14px 18px 18px; }
/* 2. Polaroid wall */
.pgx-acts--2 .pgx-al { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 22px 20px; padding-block: 6px; }
.pgx-acts--2 .pgx-al li { position: relative; padding: 10px 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-md); transform: rotate(-1.1deg); transition: transform .25s var(--ease); }
.pgx-acts--2 .pgx-al li:nth-child(even) { transform: rotate(1deg); }
.pgx-acts--2 .pgx-al li:hover { transform: rotate(0) translateY(-3px); }
.pgx-acts--2 .pgx-al li::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; transform: translateX(-50%) rotate(-2deg); background: var(--accent-yellow); opacity: .75; border-radius: 3px; }
.pgx-acts--2 .pgx-al__art { display: grid; place-items: center; padding: 14px 0; border-radius: 4px; background: var(--canvas-2); }
.pgx-acts--2 .pgx-al__art .pgi { width: 112px; }
.pgx-acts--2 .pgx-al__t { padding: 12px 6px 0; }
@media (max-width: 560px), (prefers-reduced-motion: reduce) { .pgx-acts--2 .pgx-al li, .pgx-acts--2 .pgx-al li:nth-child(even) { transform: none; } }
/* 3. Zig-zag rows */
.pgx-acts--3 .pgx-al { gap: 12px; }
.pgx-acts--3 .pgx-al li { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); width: min(100%, 78%); padding: 14px clamp(16px, 2vw, 26px) 14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.pgx-acts--3 .pgx-al li:nth-child(even) { margin-left: auto; flex-direction: row-reverse; padding: 14px 14px 14px clamp(16px, 2vw, 26px); text-align: right; }
.pgx-acts--3 .pgx-al__art { flex: none; width: clamp(84px, 9vw, 112px); }
.pgx-acts--3 .pgx-al__t em { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); font-style: normal; font-family: var(--font-head); font-size: .8rem; font-weight: 800; }
@media (max-width: 760px) {
  .pgx-acts--3 .pgx-al li, .pgx-acts--3 .pgx-al li:nth-child(even) { width: 100%; margin-left: 0; flex-direction: row; text-align: left; padding: 12px 14px 12px 12px; }
}

/* ---- Levels: plain, complete, one small glyph each ------------------------- */
.pgx-levels { background: var(--gold-tint); }
.pgx-levels h3 { margin: 0; font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); }
.pgx-levels p { margin: 0; }
.pgx-lv { list-style: none; margin: 0; padding: 0; }
.pgx-lv__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 18px; align-items: start; }
.pgx-lv__art { width: 56px; }
.pgx-lv__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 4px; }
.pgx-lv__body p { font-size: .98rem; line-height: 1.6; color: var(--ink-soft); max-width: 70ch; }
/* 1. Stacked rows with hairline dividers */
.pgx-levels--1 .pgx-lv__item { padding: 18px 0; border-top: 1px solid var(--line); }
.pgx-levels--1 .pgx-lv__item:first-child { border-top: 0; padding-top: 4px; }
/* 2. Equal plain cards */
.pgx-levels--2 .pgx-lv { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pgx-levels--2 .pgx-lv__item { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.pgx-levels--2 .pgx-lv__art { width: 52px; }
/* 3. Thin line with numbered dots */
.pgx-levels--3 .pgx-lv { position: relative; }
.pgx-levels--3 .pgx-lv__item { position: relative; grid-template-columns: 34px 52px minmax(0, 1fr); padding: 0 0 26px; }
.pgx-levels--3 .pgx-lv__item:last-child { padding-bottom: 0; }
.pgx-levels--3 .pgx-lv__item::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.pgx-levels--3 .pgx-lv__item:last-child::before { display: none; }
.pgx-lv__dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-head); font-size: .95rem; font-weight: 800; position: relative; z-index: 1; }
.pgx-levels--3 .pgx-lv__art { width: 52px; }
@media (max-width: 760px) {
  .pgx-lv__item { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; }
  .pgx-lv__art { width: 48px; }
  .pgx-levels--2 .pgx-lv__item { display: grid; padding: 16px; }
  .pgx-levels--3 .pgx-lv__item { grid-template-columns: 30px minmax(0, 1fr); }
  .pgx-levels--3 .pgx-lv__dot { width: 30px; height: 30px; grid-row: 1 / span 2; }
  .pgx-levels--3 .pgx-lv__item::before { left: 14px; top: 30px; }
  .pgx-levels--3 .pgx-lv__art { display: none; }
  .pgx-levels--3 .pgx-lv__body { grid-column: 2; }
}

.pgx-lv + .pgx-placed, .pgx-lv ~ .pgx-placed { margin-top: 32px; }

/* ==========================================================================
   SLEEK PASS (round 5): program page. Sections 32-48px, smaller drawings,
   shorter trail, tighter cards. The "Placed by the teacher" note stays >= 24px
   under the levels.
   ========================================================================== */
html[data-o-calm] :is(.mp-sec, .pgx-sec) { padding-block: var(--band); }
html[data-o-calm] .mp-card { padding: clamp(14px, 1.6vw, 20px); }
html[data-o-calm] .mp-h,
html[data-o-calm] .pgx-h { font-size: clamp(1.35rem, 1.9vw, 1.7rem); margin-bottom: clamp(12px, 1.4vw, 18px); }
html[data-o-calm] .mp-h--gap, html[data-o-calm] .pgx-h--gap { margin-top: clamp(20px, 2.4vw, 28px); }
html[data-o-calm] .pgx-flag { width: 32px; height: 32px; }
html[data-o-calm] .pgx-placed { margin-top: 24px; padding: 8px 14px; }
html[data-o-calm] .pgx-lv + .pgx-placed, html[data-o-calm] .pgx-lv ~ .pgx-placed { margin-top: 24px; }
/* hero (static page + options) */
html[data-o-calm] .mp-hero h1 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
html[data-o-calm] .mp-hero__grid { gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 900px) { html[data-o-calm] .mp-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } }
html[data-o-calm] .mp-pass__photo { height: clamp(96px, 10vw, 124px); }
html[data-o-calm] .mp-pass__body { padding: 12px clamp(14px, 1.6vw, 18px) 14px; gap: 10px; }
html[data-o-calm] .mp-hero__thumb { height: 108px; }
html[data-o-calm] .mp-row { margin-top: 10px; padding: 12px clamp(14px, 1.6vw, 20px); }
html[data-o-calm] .mp-banner { height: clamp(90px, 18vh, 150px); margin-bottom: 12px; }
html[data-o-calm] .mp-rail > div { padding: 8px 0; }
html[data-o-calm] .mp-rail .mp-price b { font-size: 1.25rem; }
html[data-o-calm] .mp-actions { margin: 10px 0 6px; }
/* people / action */
html[data-o-calm] .mp-teacher__photo { width: 64px; height: 64px; }
html[data-o-calm] :is(.mp-teacher--card, .mp-teacher--stack) .mp-teacher__photo { width: 72px; height: 72px; }
html[data-o-calm] .mp-quote { padding: 14px 16px; }
html[data-o-prog-action][data-o-calm] .mmo-act :is(.join-band, .faq-band, .booking-band) { padding-block: var(--band); }
html[data-o-prog-action][data-o-calm] .mmo-act :is(.join-band, .faq-band) .section-title,
html[data-o-prog-action][data-o-calm] .mmo-act .booking-band__head h2 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
html[data-o-prog-action][data-o-calm] .mmo-act .faq-item__q { padding: 12px 16px; font-size: .97rem; }
html[data-o-prog-action][data-o-calm] .mmo-act .faq-item__a p { padding: 0 16px 14px; }
html[data-o-prog-action="1"][data-o-calm] .mmo-act .join-band .wrap::after { height: 28px; margin-top: 8px; }
html[data-o-prog-action="2"][data-o-calm] .mmo-act .join-step { padding: 14px 16px 16px; }
html[data-o-prog-action="3"][data-o-calm] .mmo-act .booking-band { padding-block: 24px; }
/* facts */
html[data-o-calm] .pgx-board { padding: 16px clamp(14px, 2vw, 24px) clamp(40px, 4.4vw, 52px); }
html[data-o-calm] .pgx-fact--tag .pgx-fact__art { width: min(100%, 120px); }
html[data-o-calm] .pgx-fact--tag .pgx-fact__txt { margin-top: 12px; padding: 7px 12px; }
html[data-o-calm] .pgx-board__hills { height: clamp(28px, 3vw, 36px); }
html[data-o-calm] .pgx-fact--stamp { padding: 12px clamp(10px, 1.4vw, 16px); gap: 8px; }
html[data-o-calm] .pgx-fact--stamp .pgx-fact__art { width: min(100%, 108px); padding: 5px; }
html[data-o-calm] .pgx-book { padding: 7px; }
html[data-o-calm] .pgx-book__page { padding: 14px clamp(14px, 2vw, 24px) 28px; }
html[data-o-calm] .pgx-book__page ul { gap: 10px; }
html[data-o-calm] .pgx-fact--page { grid-template-columns: clamp(80px, 8vw, 108px) minmax(0, 1fr); gap: 12px; }
html[data-o-calm] .pgx-fact--page + .pgx-fact--page { padding-top: 10px; }
@media (max-width: 760px) {
  html[data-o-calm] .pgx-fact--page { grid-template-columns: 80px minmax(0, 1fr); }
  html[data-o-calm] .pgx-fact--stamp .pgx-fact__art { width: 88px; }
}
/* learning */
html[data-o-calm] .pgx-oc { gap: 10px; }
html[data-o-calm] .pgx-oc--rows li { padding: 10px 14px 10px 10px; gap: 12px; }
html[data-o-calm] .pgx-oc--rows .pgx-oc__art { width: 52px; }
html[data-o-calm] .pgx-oc--tiles li { padding: 14px 12px; gap: 8px; }
html[data-o-calm] .pgx-oc--tiles .pgx-oc__art { width: 64px; }
html[data-o-calm] .pgx-oc--big li { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px 16px 14px 14px; }
html[data-o-calm] .pgx-oc--big .pgx-oc__t em { font-size: 1.8rem; }
html[data-o-calm] .pgx-oc--big .pgx-oc__t b { font-size: 1.05rem; }
html[data-o-calm] .pgx-stop { height: calc(92px + var(--m) * 3px); }
html[data-o-calm] .pgx-stop__node { width: 64px; }
html[data-o-calm] .pgx-stop__node .pgi { border-radius: 18px; box-shadow: 0 0 0 4px var(--sage-tint), var(--shadow-sm); }
html[data-o-calm] .pgx-stop__card { padding: 10px 16px 11px; }
html[data-o-calm] .pgx-stop--r .pgx-stop__card { right: calc(100% - var(--x) + 46px); max-width: calc(var(--x) - 46px); }
html[data-o-calm] .pgx-stop--l .pgx-stop__card { left: calc(var(--x) + 46px); max-width: calc(100% - var(--x) - 46px); }
html[data-o-calm] .pgx-stop__card h3, html[data-o-calm] .pgx-panel h3, html[data-o-calm] .pgx-al h3 { font-size: 1rem; }
@media (max-width: 760px) {
  html[data-o-calm] .pgx-stop { min-height: calc(76px + var(--m) * 2px); height: auto; }
  html[data-o-calm] .pgx-stop__node { width: 48px; left: 24px; }
  html[data-o-calm] .pgx-stop__path { width: 48px; }
  html[data-o-calm] .pgx-stop__card, html[data-o-calm] .pgx-stop--r .pgx-stop__card, html[data-o-calm] .pgx-stop--l .pgx-stop__card { margin: 6px 0 6px 62px; }
}
html[data-o-calm] .pgx-story { gap: 12px; }
html[data-o-calm] .pgx-panel { padding: 10px 10px 14px; }
html[data-o-calm] .pgx-panel__frame { padding: 8px 0; margin-bottom: 8px; }
html[data-o-calm] .pgx-panel__frame .pgi { width: 68px; }
html[data-o-calm] .pgx-ribbon { margin-bottom: 12px; }
html[data-o-calm] .pgx-ribbon__ico { width: min(34px, 100%); }
html[data-o-calm] .pgx-lines { gap: 8px 14px; }
html[data-o-calm] .pgx-lines li { padding: 8px 14px 8px 10px; grid-template-columns: 24px 44px minmax(0, 1fr) auto; gap: 10px; }
/* activities */
html[data-o-calm] .pgx-al { gap: 12px; }
html[data-o-calm] .pgx-acts--1 .pgx-al__art { padding: 10px 0; }
html[data-o-calm] .pgx-acts--1 .pgx-al__art .pgi,
html[data-o-calm] .pgx-acts--2 .pgx-al__art .pgi { width: 80px; }
html[data-o-calm] .pgx-acts--1 .pgx-al__t { padding: 10px 14px 14px; }
html[data-o-calm] .pgx-acts--2 .pgx-al { gap: 16px 14px; }
html[data-o-calm] .pgx-acts--2 .pgx-al li { padding: 8px 8px 12px; }
html[data-o-calm] .pgx-acts--2 .pgx-al__art { padding: 8px 0; }
html[data-o-calm] .pgx-acts--2 .pgx-al__t { padding: 8px 4px 0; }
html[data-o-calm] .pgx-acts--3 .pgx-al { gap: 10px; }
html[data-o-calm] .pgx-acts--3 .pgx-al li,
html[data-o-calm] .pgx-acts--3 .pgx-al li:nth-child(even) { padding-block: 10px; }
html[data-o-calm] .pgx-acts--3 .pgx-al__art { width: clamp(60px, 6vw, 80px); }
/* levels */
html[data-o-calm] .pgx-levels h3 { font-size: 1.05rem; }
html[data-o-calm] .pgx-lv__item { gap: 4px 14px; grid-template-columns: 44px minmax(0, 1fr); }
html[data-o-calm] .pgx-lv__art { width: 44px; }
html[data-o-calm] .pgx-lv__body p { font-size: .95rem; line-height: 1.55; }
html[data-o-calm] .pgx-levels--1 .pgx-lv__item { padding: 12px 0; }
html[data-o-calm] .pgx-levels--2 .pgx-lv { gap: 12px; }
html[data-o-calm] .pgx-levels--2 .pgx-lv__item { padding: 16px; gap: 8px; }
html[data-o-calm] .pgx-levels--2 .pgx-lv__art { width: 44px; }
html[data-o-calm] .pgx-levels--3 .pgx-lv__item { padding-bottom: 16px; grid-template-columns: 34px 44px minmax(0, 1fr); }
html[data-o-calm] .pgx-levels--3 .pgx-lv__art { width: 44px; }
@media (max-width: 760px) {
  html[data-o-calm] .pgx-levels--3 .pgx-lv__item { grid-template-columns: 30px minmax(0, 1fr); }
}

/* Mobile fix: the calm 4-column row (specificity) squeezed the text column to a few px. */
@media (max-width: 760px) {
  html[data-o-calm] .pgx-lines li { grid-template-columns: 44px minmax(0, 1fr); }
  html[data-o-calm] .pgx-lines__n { display: none; }
  html[data-o-calm] .pgx-lines__m { grid-column: 2; flex-direction: row; align-items: center; gap: 8px; }
}

/* SLEEK 5b: activities as a plain two-column set on desktop (trail stays at the 92px+ step so cards never touch). */
@media (min-width: 900px) {
  html[data-o-calm] .pgx-acts--3 .pgx-al { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  html[data-o-calm] .pgx-acts--3 .pgx-al li,
  html[data-o-calm] .pgx-acts--3 .pgx-al li:nth-child(even) { width: 100%; margin-left: 0; flex-direction: row; text-align: left; padding: 10px 16px 10px 10px; }
}
@media (max-width: 599px) {
  html[data-o-calm] .pgx-panel { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-content: center; padding: 10px 12px; }
  html[data-o-calm] .pgx-panel > * { grid-column: 2; }
  html[data-o-calm] .pgx-panel > .pgx-panel__frame { grid-column: 1; grid-row: 1 / span 5; align-self: center; margin: 0; padding: 6px 0; }
  html[data-o-calm] .pgx-panel__frame .pgi { width: 40px; }
}
@media (max-width: 599px) {
  html[data-o-calm] .pgx-panel__frame { width: 56px; height: 56px; padding: 0; }
  html[data-o-calm] .pgx-panel__frame .pgi { width: 38px; }
  html[data-o-calm] .pgx-panel__frame i { top: -7px; left: -7px; width: 20px; height: 20px; font-size: .68rem; }
}
@media (min-width: 761px) { html[data-o-calm] .pgx-stop { height: calc(92px + var(--m) * 2px); } }
html[data-o-calm] .pgx-stop__card { padding: 8px 14px 9px; }

/* ==========================================================================
   BRAND PASS (Brand Guidelines + Brand Board). Sections sit on solid, clearly
   different palette grounds (cream, pastel grey, muted gold) instead of
   near-cream tints; every card is a soft white card with a top stroke; the
   stripe bar (terracotta | amber | grey) anchors the section ends; facts get
   white line icons on solid circles; no gradients; CTAs are solid, 44px.
   ========================================================================== */
.pgx-facts, .pgx-levels, .mp-people, .mmo-act .booking-band { position: relative; }
.pgx-facts::after, .pgx-levels::after, .mp-people::after, html[data-o-prog-action="1"] .mmo-act .booking-band::after, html[data-o-prog-action="2"] .mmo-act .booking-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--mm-stripe) 0 0 / 100% 100% no-repeat; pointer-events: none;
}
.pgx-learn { background: var(--accent-sage); }
.mp-people { background: var(--canvas-2); }
.mp-card .mp-teacher { border-top: 0; box-shadow: none; padding: 0; background: none; }
.pgx-levels { background: var(--accent-yellow); }
.pgx-facts { background: var(--canvas-2); }
.pgx-learn .mp-note, .mp-people .mp-note, .pgx-learn .pgx-h small, .mp-people .mp-h small, .pgx-levels .pgx-h small { color: var(--ink); }
.pgi--clay { --pgi-bg: var(--gold-tint); }
.pgi--gold { --pgi-bg: var(--canvas-2); }

/* Soft cards: top-stroke accent in a brand colour */
.mp-card, .mp-quote, .mp-teacher, .pgx-panel, .pgx-stop__card, .pgx-acts--1 .pgx-al li, .pgx-acts--3 .pgx-al li, .pgx-levels--2 .pgx-lv__item,
html[data-o-prog-action="2"] .mmo-act .join-step {
  border: 0; border-top: 4px solid var(--brand); box-shadow: var(--shadow-sm);
}
.mp-quote { border-top-color: var(--accent-sun); }
.mp-teacher { background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px; }
.mp-teacher--card, .mp-teacher--stack { padding: 14px; }
.mp-teacher--stack { align-items: flex-start; }
.pgx-panel:nth-child(3n+2), .pgx-acts--1 .pgx-al li:nth-child(3n+2) { border-top-color: var(--accent-sun); }
.pgx-panel:nth-child(3n), .pgx-acts--1 .pgx-al li:nth-child(3n) { border-top-color: var(--sage-deep); }
.pgx-acts--1 .pgx-al__art { background: var(--accent-yellow); }
.pgx-acts--1 .pgx-al li:nth-child(3n+2) .pgx-al__art { background: var(--accent-sage); }
.pgx-acts--1 .pgx-al li:nth-child(3n) .pgx-al__art { background: var(--gold-tint); }

/* Facts: white board, solid icon circles */
.pgx-board { background: var(--surface); border-top: 4px solid var(--brand); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.pgx-fact--tag .pgx-fact__txt { background: var(--canvas-2); border-color: transparent; box-shadow: none; }
.pgx-fact--tag .pgx-fact__txt::before { background: var(--accent-sage); opacity: 1; }
.pgx-fact__art { position: relative; display: block; }
.pgx-fact__ico { position: absolute; top: -4px; left: -4px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--surface); }
.pgx-fact__ico--when, .pgx-fact__ico--where { background: var(--sage-deep); }
.pgx-fact__ico svg { width: 17px; height: 17px; }
.pgx-fact--tag .pgx-fact__ico { left: calc(50% - 60px); }
html[data-o-calm] .pgx-fact--tag .pgx-fact__ico { left: calc(50% - 60px); }
.pgx-fact--stamp .pgx-fact__ico { top: -12px; left: -12px; }
.pgx-book__page--l .pgx-fact__ico { box-shadow: 0 0 0 3px var(--gold-tint); }
.mp-notes__ico { background: var(--sage-deep); color: #fff; }

/* Learning: white route on the grey ground */
.pgx-stop__path path { stroke: var(--surface); stroke-opacity: 1; }
html[data-o-calm] .pgx-learn .pgx-stop__node .pgi { box-shadow: 0 0 0 4px var(--accent-sage), var(--shadow-sm); }
html[data-o-calm] .pgx-learn .pgx-stop__node i { box-shadow: 0 0 0 3px var(--accent-sage); }
.pgx-learn .pgx-oc li, .pgx-learn .pgx-lines li { box-shadow: var(--shadow-xs); }

/* Levels on muted gold: white rules */
.pgx-levels--1 .pgx-lv__item { border-top-color: var(--surface); border-top-width: 2px; }
.pgx-levels--3 .pgx-lv__item::before { background: var(--surface); width: 3px; }

/* Join / booking / FAQ: distinct grounds, white cards, stripe under the booking band */
html[data-o-prog-action="1"] .mmo-act > .faq-band, html[data-o-prog-action="2"] .mmo-act .faq-band { background: var(--accent-sage); }
html[data-o-prog-action="2"] .mmo-act .join-band { background: var(--accent-sage); }
html[data-o-prog-action="1"] .mmo-act .booking { background: var(--surface); border: 0; border-top: 4px solid var(--brand); }
html[data-o-prog-action="2"] .mmo-act .booking-band .booking, html[data-o-prog-action="3"] .mmo-act > .booking-band { border: 0; border-top: 4px solid var(--brand); }
html[data-o-prog-action="1"] .mmo-act .booking-band, html[data-o-prog-action="2"] .mmo-act .booking-band { padding-bottom: calc(var(--band) + 6px); }
html[data-o-prog-action] .mmo-act .faq-item { background: var(--surface); }

/* CTAs: solid, 44px */
.mmo-set .btn, .mmo-act .btn { min-height: 44px; }

/* ==========================================================================
   POLISH PASS (round 6): founder review. Fixes only; same slots and options.
   ========================================================================== */

/* CTAs: the calm scale sets .btn--sm to 40px; every button here is >= 44px and
   never wraps on desktop. */
html[data-o-calm] :is(.mmo-set, .mmo-act) .btn { min-height: 44px; }
@media (min-width: 761px) { html[data-o-calm] :is(.mmo-set, .mmo-act) .btn { white-space: nowrap; } }

/* Soft cards: the top stroke as an inset shadow, so it follows the corner
   radius instead of tapering into it. --stroke picks the colour. */
.mp-card, .mp-quote, .mp-teacher, .pgx-panel, .pgx-stop__card, .pgx-acts--3 .pgx-al li, .pgx-levels--2 .pgx-lv__item, .pgx-board,
html[data-o-prog-action="2"] .mmo-act .join-step,
html[data-o-prog-action="1"] .mmo-act .booking,
html[data-o-prog-action="2"] .mmo-act .booking-band .booking,
html[data-o-prog-action="3"] .mmo-act > .booking-band {
  border-top: 0;
  box-shadow: inset 0 4px 0 var(--stroke, var(--brand)), var(--shadow-sm);
}
.mp-card .mp-teacher { box-shadow: none; }
.mp-quote { --stroke: var(--accent-sun); }
.pgx-panel:nth-child(3n+2) { --stroke: var(--accent-sun); }
.pgx-panel:nth-child(3n) { --stroke: var(--sage-deep); }
/* Picture cards: the coloured art band sits on top, so the stroke goes on it. */
.pgx-acts--1 .pgx-al li { border-top: 0; box-shadow: var(--shadow-sm); }
.pgx-acts--1 .pgx-al__art { box-shadow: inset 0 4px 0 var(--brand); }
.pgx-acts--1 .pgx-al li:nth-child(3n+2) .pgx-al__art { box-shadow: inset 0 4px 0 var(--accent-sun); }
.pgx-acts--1 .pgx-al li:nth-child(3n) .pgx-al__art { box-shadow: inset 0 4px 0 var(--sage-deep); }

/* ---- prog-facts --------------------------------------------------------- */
/* 2. Class pass: a clean terracotta header, no doodle pattern behind the name. */
.pgx-pass__head::before { display: none; }
.pgx-pass__title { font-size: 1.05rem; }
/* 1. Scene board: the labels keep one width so the row reads evenly. */
.pgx-fact--tag .pgx-fact__txt { width: 100%; max-width: 240px; }
/* 3. Storybook: the page numbers are decoration; quieter. */
.pgx-book__no { opacity: .7; }

/* ---- prog-learn ------------------------------------------------------- */
/* 1. Winding trail: room between stops so the cards never touch. */
@media (min-width: 761px) {
  html[data-o-calm] .pgx-stop { height: calc(124px + var(--m) * 2px); }
}
/* Phone: the card takes the full column (the calm desktop max-width leaked in). */
@media (max-width: 760px) {
  html[data-o-calm] .pgx-stop__card,
  html[data-o-calm] .pgx-stop--r .pgx-stop__card,
  html[data-o-calm] .pgx-stop--l .pgx-stop__card { max-width: none; left: auto; right: auto; }
}
/* 2. Storyboard: the drawing stands on the card, not in a box inside a box. */
.pgx-panel__frame { background: var(--canvas-2); border: 0; }
.pgx-panel__frame .pgi > rect:first-child { fill: transparent; }
/* Radii from the tokens, so the corner control retheme reaches the trail tiles. */
.pgx-stop__node .pgi, html[data-o-calm] .pgx-stop__node .pgi { border-radius: var(--r-md); }
/* 3. By the end: an even 2 x 2 for four outcomes, never a lone orphan card. */
@media (min-width: 761px) {
  .pgx-oc--big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- prog-activities ---------------------------------------------------- */
.pgx-acts--2 .pgx-al li { border-radius: calc(var(--r-sm) * .5); }
.pgx-acts--2 .pgx-al__art { border-radius: calc(var(--r-sm) * .35); }
.pgx-acts--2 .pgx-al li::before { border-radius: calc(var(--r-sm) * .25); }

/* ---- prog-levels -------------------------------------------------------- */
.pgx-placed { width: fit-content; max-width: 100%; }
/* ---- prog-people -------------------------------------------------------- */
.mp-teacher__photo--mono { display: grid; place-items: center; border-radius: 50%; background: var(--sage-deep); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1; }
/* No reviews yet: each option still looks finished, and still distinct. */
/* 2. Cards -> one centred profile card */
.mp-people--2.mp-people--solo .mp-cards { grid-template-columns: minmax(0, 560px); justify-content: center; }
.mp-people--2.mp-people--solo .mp-teacher--card { align-items: center; text-align: center; padding: 22px 24px 24px; gap: 12px; }
html[data-o-calm] .mp-people--2.mp-people--solo .mp-teacher__photo { width: 96px; height: 96px; }
.mp-people--2.mp-people--solo .mp-teacher__txt { justify-items: center; }
.mp-people--2.mp-people--solo .mp-teacher__act { width: auto; }
/* 3. Side by side -> large portrait beside the words */
@media (min-width: 761px) {
  .mp-people--3.mp-people--solo .mp-teacher--stack { flex-direction: row; align-items: center; gap: clamp(20px, 3vw, 36px); }
  html[data-o-calm] .mp-people--3.mp-people--solo .mp-teacher__photo { width: 168px; height: 168px; border-radius: var(--r-lg); }
  html[data-o-calm] .mp-people--3.mp-people--solo .mp-teacher__photo--mono { border-radius: 50%; font-size: 3rem; width: 132px; height: 132px; }
  .mp-people--3.mp-people--solo .mp-teacher__txt b { font-size: 1.3rem; }
  .mp-people--3.mp-people--solo .mp-teacher__bio { font-size: .98rem; max-width: 60ch; }
  .mp-people--3.mp-people--solo .mp-teacher__txt { gap: 4px; }
  .mp-people--3.mp-people--solo .mp-teacher__act { margin-left: auto; }
}
html[data-o-calm] .mp-people--3.mp-people--solo .mp-card { padding: clamp(18px, 2.4vw, 28px); }
/* Current: a named teacher without a portrait drops the empty box. */
html[data-o-calm] .people-band .teacher-card__photo:not(:has(img)) { display: none; }
@media (min-width: 720px) {
  html[data-o-calm] .people-band .teacher-card:not(:has(.teacher-card__photo img)) { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---- prog-action -------------------------------------------------------- */
/* 2. Cards: FAQ heading over a full-width two-column list. */
html[data-o-prog-action="2"] .mmo-act .faq-band__grid { grid-template-columns: 1fr; }
/* 3. Two columns: steps and FAQ stay together at the top; the booking card
   scrolls with the page instead of inside its own box. */
@media (min-width: 1000px) {
  html[data-o-prog-action="3"] .mmo-act { grid-template-rows: auto auto 1fr; }
  html[data-o-prog-action="3"] .mmo-act > .booking-band { max-height: none; overflow: visible; }
}

/* ---- More programs (cross-sell): muted gold, not pink next to cream ------ */
html[data-o-calm] .siblings-band { background: var(--accent-yellow); }
html[data-o-calm] .siblings-band .section-head .btn--ghost { --btn-bg: var(--brand); --btn-fg: #fff; background: var(--brand); color: #fff; border-color: var(--brand); min-height: 44px; }
html[data-o-calm] .siblings-band .section-head .btn--ghost:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
/* 2. Storyboard: four across when that fills the rows better (4, 7 or 8 steps). */
@media (min-width: 1100px) {
  .pgx-story:is(:has(> li:nth-child(4):last-child), :has(> li:nth-child(7):last-child), :has(> li:nth-child(8):last-child)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
