/* ================================================================
 * PianoMode Clusters, Frontend design system
 * Part A: tokens, hero, bento, journey map
 * ================================================================ */

:root {
    --pmc-gold:       #D7BF81;
    --pmc-gold-dark:  #BEA86E;
    --pmc-ink:        #1a1a1a;
    --pmc-ink-soft:   #444;
    --pmc-ink-mute:   #6b7280;
    --pmc-line:       rgba(0,0,0,0.08);
    --pmc-surface:    #ffffff;
    --pmc-surface-alt:#fafbfd;
    --pmc-radius-sm:  10px;
    --pmc-radius:     18px;
    --pmc-radius-lg:  28px;
    --pmc-shadow:       0 10px 40px rgba(0,0,0,0.08);
    --pmc-shadow-hover: 0 24px 60px rgba(0,0,0,0.18);
    --pmc-shadow-glow:  0 0 0 1px rgba(215,191,129,0.24), 0 24px 70px rgba(215,191,129,0.28);
    --pmc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --pmc-accent: var(--pmc-gold);
    --pmc-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pmc-cluster,
.pmc-cluster * { box-sizing: border-box; }
/* Long words and pasted URLs wrap instead of forcing horizontal scroll. */
.pmc-cluster p, .pmc-cluster li, .pmc-cluster h1, .pmc-cluster h2,
.pmc-cluster h3, .pmc-cluster h4, .pmc-cluster a { overflow-wrap: break-word; }

.pmc-cluster {
    font-family: var(--pmc-font);
    color: var(--pmc-ink);
    background: var(--pmc-surface);
    overflow: hidden;
}

.pmc-container {
    width: min(1240px, 94%);
    margin: 0 auto;
}

/* ------------------ Icons ------------------ */
.pmc-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ------------------ Buttons ------------------ */
.pmc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s var(--pmc-ease), box-shadow 0.3s var(--pmc-ease), background 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}
.pmc-btn--lg { padding: 18px 34px; font-size: 14.5px; }
.pmc-btn--primary {
    background: var(--pmc-accent);
    color: #111;
    box-shadow: 0 10px 30px rgba(215,191,129,0.35);
}
.pmc-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(215,191,129,0.5);
    background: var(--pmc-gold-dark);
    color: var(--pm-text-on-gold, #1b1505);
}
.pmc-btn--ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pmc-btn--ghost:hover {
    background: rgba(255,255,255,0.95);
    color: var(--pmc-ink);
    transform: translateY(-3px);
}

/* ------------------ Chips ------------------ */
.pmc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: capitalize;
}
.pmc-chip--tier {
    background: var(--pmc-accent);
    color: #111;
    border-color: transparent;
    text-transform: uppercase;
    font-size: 11px;
}
.pmc-chip--tier[data-tier="pro"]     { background: #FF9800; color: #fff; }
.pmc-chip--tier[data-tier="premium"] { background: #8A2BE2; color: #fff; }
.pmc-chip--tier[data-tier="free"]    { background: #4CAF50; color: #fff; }

/* ============================================================
 * 1. HERO
 * ============================================================ */
.pmc-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(40px, 8vh, 100px) 5% clamp(60px, 12vh, 140px);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.pmc-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -3;
    transform: scale(1.05);
    animation: pmc-kenburn 22s ease-in-out infinite alternate;
}
@keyframes pmc-kenburn {
    from { transform: scale(1.05) translate(0,0); }
    to   { transform: scale(1.15) translate(-2%, 2%); }
}
.pmc-hero__overlay {
    position: absolute; inset: 0; z-index: -2;
    background:
      radial-gradient(80% 60% at 15% 100%, rgba(215,191,129,0.45), transparent 60%),
      linear-gradient(160deg, rgba(10,8,4,0.92) 0%, rgba(22,18,10,0.6) 45%, rgba(215,191,129,0.25) 100%);
}
.pmc-hero__particles {
    position: absolute; inset: 0; z-index: -1;
    opacity: 0.8; pointer-events: none;
}

.pmc-breadcrumbs {
    position: absolute;
    top: clamp(18px, 3vh, 34px);
    left: 5%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    z-index: 5;
    padding: 8px 14px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
}
.pmc-breadcrumbs a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.pmc-breadcrumbs a:hover { color: var(--pmc-accent); }
.pmc-breadcrumbs__sep { opacity: 0.4; }
.pmc-breadcrumbs [aria-current] { color: var(--pmc-accent); font-weight: 600; }

.pmc-hero__inner {
    max-width: 1100px;
    position: relative;
    z-index: 2;
}
.pmc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    background: rgba(215,191,129,0.18);
    border: 1px solid rgba(215,191,129,0.4);
    color: var(--pmc-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pmc-hero__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--pmc-accent);
    box-shadow: 0 0 0 0 rgba(215,191,129,0.7);
    animation: pmc-pulse 2s infinite;
}
@keyframes pmc-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(215,191,129,0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(215,191,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(215,191,129,0); }
}

.pmc-hero__title {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.pmc-hero__title .pmc-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: pmc-reveal 0.9s var(--pmc-ease) forwards;
}
@keyframes pmc-reveal {
    to { opacity: 1; transform: translateY(0); }
}

.pmc-hero__subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
    max-width: 720px;
    margin: 0 0 34px;
    font-weight: 400;
}
.pmc-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.pmc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.pmc-hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 3;
}
.pmc-hero__scroll-line {
    width: 1px; height: 52px;
    background: linear-gradient(to bottom, var(--pmc-accent), transparent);
    animation: pmc-scroll-line 2.2s ease-in-out infinite;
}
@keyframes pmc-scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
 * 2. BENTO STATS
 * ============================================================ */
.pmc-bento {
    padding: clamp(60px, 10vh, 120px) 0;
    background: var(--pmc-surface-alt);
    position: relative;
}
.pmc-bento::before {
    content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--pmc-accent), transparent);
    opacity: 0.4;
}
.pmc-bento__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}
.pmc-bento__cell {
    background: #fff;
    border: 1px solid var(--pmc-line);
    border-radius: var(--pmc-radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--pmc-ease), box-shadow 0.4s var(--pmc-ease);
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 170px;
}
.pmc-bento__cell:hover {
    transform: translateY(-6px);
    box-shadow: var(--pmc-shadow-hover);
}
.pmc-bento__cell--wide {
    grid-column: span 6;
    background: linear-gradient(135deg, #111, #1d1a10);
    color: #fff;
    border-color: transparent;
    grid-row: span 2;
    justify-content: space-between;
}
.pmc-bento__cell--feature { min-height: 360px; }
.pmc-bento__cell--wide::after {
    content: '';
    position: absolute;
    inset: -40% -40% auto auto;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--pmc-accent), transparent 70%);
    opacity: 0.25;
    pointer-events: none;
}
.pmc-bento__eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pmc-accent);
    font-weight: 700;
}
.pmc-bento__headline {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}
.pmc-bento__copy {
    color: rgba(255,255,255,0.7);
    margin: 0;
    max-width: 420px;
    line-height: 1.6;
}
.pmc-bento__num {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--pmc-ink);
}
.pmc-bento__num small {
    font-size: 0.4em; font-weight: 600; color: var(--pmc-ink-mute); margin-left: 4px;
}
.pmc-bento__label {
    font-size: 13px;
    color: var(--pmc-ink-mute);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.pmc-bento__cell .pmc-icon {
    position: absolute;
    top: 24px; right: 24px;
    color: var(--pmc-accent);
    opacity: 0.35;
    transition: transform 0.4s var(--pmc-ease), opacity 0.3s;
}
.pmc-bento__cell:hover .pmc-icon {
    transform: rotate(8deg) scale(1.1);
    opacity: 0.8;
}

/* ============================================================
 * 3. BODY + JOURNEY MAP
 * ============================================================ */
.pmc-body {
    padding: clamp(70px, 11vh, 140px) 0;
    background: #fff;
}
.pmc-body__grid {
    display: grid;
    /* minmax(0,…) so the content column can shrink and its wide children (the
       practice keyboard) scroll inside their box instead of widening the page. */
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 80px;
    align-items: flex-start;
}
.pmc-journey-map {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    padding-right: 10px;
    border-right: 1px solid var(--pmc-line);
    max-height: calc(100vh - var(--pm-header-h, 140px));
    overflow-y: auto;
}
.pmc-journey-map__head { margin-bottom: 18px; }
.pmc-journey-map__eyebrow {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--pmc-accent);
    font-weight: 700;
}
.pmc-journey-map__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}
.pmc-journey-map__list li {
    counter-increment: jm;
    font-size: 13px;
    color: var(--pmc-ink-mute);
}
.pmc-journey-map__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s var(--pmc-ease);
    line-height: 1.3;
}
.pmc-journey-map__list a::before {
    content: counter(jm, decimal-leading-zero);
    font-size: 11px;
    color: var(--pmc-ink-mute);
    font-weight: 700;
    min-width: 22px;
    padding: 3px 5px;
    border-radius: 6px;
    background: var(--pmc-surface-alt);
    text-align: center;
    transition: all 0.3s;
}
.pmc-journey-map__list a:hover { color: var(--pmc-ink); background: rgba(215,191,129,0.08); }
.pmc-journey-map__list a:hover::before { background: var(--pmc-accent); color: #111; }
.pmc-journey-map__list li.is-active a { color: var(--pmc-ink); font-weight: 600; }
.pmc-journey-map__list li.is-active a::before { background: var(--pmc-accent); color: #111; transform: scale(1.05); }

.pmc-content { min-width: 0; }

/* ============================================================
 * 4. PROSE (course body typography)
 * ============================================================ */
.pmc-prose {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--pmc-ink-soft);
    max-width: 780px;
}
.pmc-prose h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 3.2em 0 0.7em;
    color: var(--pmc-ink);
    position: relative;
    padding-top: 12px;
    scroll-margin-top: 100px;
}
.pmc-prose h2::before {
    content: '';
    display: block;
    width: 48px; height: 4px;
    background: var(--pmc-accent);
    border-radius: 999px;
    margin-bottom: 14px;
}
.pmc-prose h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 700;
    margin: 2.2em 0 0.5em;
    color: var(--pmc-ink);
    scroll-margin-top: 100px;
}
.pmc-prose h4 { font-size: 1.15rem; font-weight: 700; margin: 1.8em 0 0.4em; color: var(--pmc-ink); }
.pmc-prose p { margin: 0 0 1.3em; }
.pmc-prose > p:first-of-type::first-letter {
    font-size: 3.6em;
    font-weight: 800;
    float: left;
    line-height: 0.9;
    margin: 6px 12px 0 0;
    color: var(--pmc-accent);
    font-family: Georgia, serif;
}
.pmc-prose a { color: var(--pmc-gold-dark); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(215,191,129,0.4); transition: all 0.2s; }
.pmc-prose a:hover { color: var(--pmc-ink); border-bottom-color: var(--pmc-accent); }
.pmc-prose strong { color: var(--pmc-ink); font-weight: 700; }
.pmc-prose ul, .pmc-prose ol { padding-left: 1.4em; margin: 0 0 1.5em; }
.pmc-prose li { margin-bottom: 0.4em; }
.pmc-prose blockquote {
    margin: 2em 0;
    padding: 20px 26px;
    border-left: 4px solid var(--pmc-accent);
    background: linear-gradient(135deg, rgba(215,191,129,0.08), transparent);
    border-radius: 0 var(--pmc-radius-sm) var(--pmc-radius-sm) 0;
    font-style: italic;
    font-size: 1.1em;
    color: var(--pmc-ink);
}
.pmc-prose blockquote p:last-child { margin-bottom: 0; }
.pmc-prose img { max-width: 100%; height: auto; border-radius: var(--pmc-radius); box-shadow: var(--pmc-shadow); margin: 1.6em 0; }
.pmc-prose hr { border: none; height: 1px; background: var(--pmc-line); margin: 3em 0; }
.pmc-prose code { background: var(--pmc-surface-alt); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }

/* ============================================================
 * 5. INTERACTIVE BLOCKS (shortcodes)
 * ============================================================ */
.pmc-block {
    margin: 2.4em 0;
    border-radius: var(--pmc-radius);
    position: relative;
    overflow: hidden;
}
.pmc-block__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 4px;
}
.pmc-block__eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pmc-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pmc-block__title {
    /* Widget header scale: reads as the tool's heading, balanced to the card,
       not a page headline. Caps at ~24px on desktop and scales down smoothly. */
    font-size: clamp(18px, 1.4vw + 12px, 24px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--pmc-ink);
    flex: 1;
}
.pmc-block__outlink {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pmc-ink-mute);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: none !important;
}
.pmc-block__outlink:hover { color: var(--pmc-accent); }

/* --- Piano block --- */
.pmc-block--piano {
    padding: 26px;
    background: linear-gradient(135deg, #fff, #faf6eb);
    border: 1px solid rgba(215,191,129,0.25);
    box-shadow: var(--pmc-shadow);
}
.pmc-piano {
    position: relative;
    background: #1a1a1a;
    border-radius: var(--pmc-radius-sm);
    padding: 20px 16px;
    box-shadow: inset 0 2px 18px rgba(0,0,0,0.5);
    overflow: hidden;
}
.pmc-piano--inline { --pmc-piano-h: 160px; margin-top: 14px; }
.pmc-piano__inner {
    display: flex;
    height: var(--pmc-piano-h, 220px);
    gap: 2px;
    position: relative;
}
.pmc-piano__white {
    flex: 1;
    background: linear-gradient(180deg, #fff 0%, #f2eadc 100%);
    border-radius: 0 0 8px 8px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    font-size: 11px;
    color: var(--pmc-ink-mute);
    font-weight: 600;
    transition: all 0.2s var(--pmc-ease);
    box-shadow: inset 0 -6px 12px rgba(0,0,0,0.06);
    cursor: pointer;
}
.pmc-piano__white:hover { background: linear-gradient(180deg, #fff, #ffe9b8); transform: translateY(2px); }
.pmc-piano__white.is-active {
    background: linear-gradient(180deg, #fff5d9 0%, var(--pmc-accent) 100%);
    box-shadow: inset 0 -6px 12px rgba(190,168,110,0.55), 0 0 18px rgba(215,191,129,0.6);
    color: #111;
}
.pmc-piano__blacks {
    position: absolute;
    top: 20px; left: 16px; right: 16px;
    height: 60%;
    display: flex;
    pointer-events: none;
}
.pmc-piano__black,
.pmc-piano__black-spacer {
    flex: 1;
    position: relative;
}
.pmc-piano__black {
    margin: 0 -3%;
    width: 6%;
    background: linear-gradient(180deg, #333, #000);
    border-radius: 0 0 6px 6px;
    box-shadow: inset 0 -4px 8px rgba(255,255,255,0.1), 0 4px 8px rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    padding-bottom: 6px;
    font-weight: 600;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.2s;
}
.pmc-piano__black.is-active {
    background: linear-gradient(180deg, var(--pmc-gold-dark), #8b7545);
    color: var(--pm-text-on-gold, #1b1505);
    box-shadow: 0 0 16px rgba(215,191,129,0.8);
}
.pmc-piano__legend {
    margin-top: 14px;
    font-size: 13px;
    color: var(--pmc-ink-mute);
    text-align: center;
}
.pmc-piano__legend strong { color: var(--pmc-accent); letter-spacing: 2px; }

/* keys are now <button>s. Reset default UA styling and add a
   pressed/MIDI feedback state. */
.pmc-piano__white,
.pmc-piano__black {
    border: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}
.pmc-piano__white.is-pressed {
    background: linear-gradient(180deg, #fff5d9 0%, var(--pmc-accent) 100%);
    box-shadow: inset 0 -6px 12px rgba(190,168,110,0.55), 0 0 28px rgba(215,191,129,0.85);
    color: #111;
    transform: translateY(2px);
}
.pmc-piano__black.is-pressed {
    background: linear-gradient(180deg, var(--pmc-gold-dark), #8b7545);
    color: var(--pm-text-on-gold, #1b1505);
    box-shadow: 0 0 22px rgba(215,191,129,0.95);
}

/* --- Game iframe --- */
.pmc-block--game { padding: 22px; background: #111; border-radius: var(--pmc-radius); }
.pmc-block--game .pmc-block__eyebrow,
.pmc-block--game .pmc-block__title { color: #fff; }
.pmc-block--game .pmc-block__outlink { color: rgba(255,255,255,0.7); }
.pmc-game-frame {
    position: relative;
    width: 100%;
    height: var(--pmc-game-h, 640px);
    max-height: 80vh;
    border-radius: var(--pmc-radius-sm);
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.5);
}
.pmc-game-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Sheet card --- */
.pmc-block--sheet { }
.pmc-sheet-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--pmc-line);
    border-radius: var(--pmc-radius);
    box-shadow: var(--pmc-shadow);
    transition: all 0.35s var(--pmc-ease);
}
.pmc-sheet-card:hover { box-shadow: var(--pmc-shadow-hover); transform: translateY(-3px); }
.pmc-sheet-card__thumb {
    background-size: cover; background-position: center;
    border-radius: var(--pmc-radius-sm);
    min-height: 180px;
}
.pmc-sheet-card__body h4 { font-size: 1.35rem; font-weight: 700; margin: 0 0 8px; color: var(--pmc-ink); }
.pmc-sheet-card__level {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
    background: rgba(215,191,129,0.15); color: var(--pmc-gold-dark); margin-bottom: 12px;
}
.pmc-sheet-card__body p { color: var(--pmc-ink-mute); line-height: 1.6; margin: 0 0 18px; font-size: 0.95rem; }
.pmc-sheet-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pmc-sheet-card__actions .pmc-btn { padding: 11px 20px; font-size: 12.5px; }

/* --- Tip callout --- */
.pmc-block--tip {
    display: flex;
    gap: 18px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(215,191,129,0.1), rgba(255,255,255,0));
    border-left: 4px solid var(--pmc-accent);
    border-radius: 0 var(--pmc-radius) var(--pmc-radius) 0;
}
.pmc-tip__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--pmc-accent);
    color: #111;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(215,191,129,0.4);
}
.pmc-tip__body h5 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; color: var(--pmc-ink); letter-spacing: 0.3px; }
.pmc-tip__content { color: var(--pmc-ink-soft); line-height: 1.7; font-size: 0.98rem; }
.pmc-tip__content p:last-child { margin-bottom: 0; }

/* --- Exercise checkpoint --- */
.pmc-block--exercise {
    padding: 28px;
    background: linear-gradient(135deg, #0e0e10, #1a1a1f);
    color: #fff;
    border-radius: var(--pmc-radius);
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.pmc-exercise__ribbon {
    position: absolute; top: 22px; right: 22px;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--pmc-accent); color: #111;
    font-size: 10.5px; font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
}
.pmc-block--exercise .pmc-block__title { color: #fff; font-size: clamp(17px, 1.2vw + 11px, 22px); }
.pmc-exercise__meta { display: flex; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.65); }
.pmc-exercise__steps { list-style: none; padding: 0; margin: 18px 0; counter-reset: step; }
.pmc-exercise__steps li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}
.pmc-exercise__steps li:last-child { border-bottom: none; }
.pmc-exercise__step-num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    background: rgba(215,191,129,0.18);
    border: 1px solid rgba(215,191,129,0.5);
    border-radius: 50%;
    color: var(--pmc-accent);
    font-weight: 800; font-size: 12px;
}

/* --- Resource inline --- */
.pmc-resource-inline {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--pmc-line);
    border-radius: var(--pmc-radius);
    transition: all 0.3s var(--pmc-ease);
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--pmc-line) !important;
}
.pmc-resource-inline:hover { box-shadow: var(--pmc-shadow-hover); transform: translateY(-3px); border-color: var(--pmc-accent); color: inherit; }
.pmc-resource-inline__thumb { background-size: cover; background-position: center; border-radius: var(--pmc-radius-sm); min-height: 120px; }
.pmc-resource-inline__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pmc-resource-inline__type {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--pmc-ink-mute); font-weight: 700;
}
.pmc-resource-inline__body h5 { margin: 4px 0 8px; font-size: 1.1rem; font-weight: 700; color: var(--pmc-ink); }
.pmc-resource-inline__body p { color: var(--pmc-ink-mute); margin: 0 0 14px; font-size: 0.94rem; line-height: 1.55; }
.pmc-resource-inline__cta {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; color: var(--pmc-accent);
    text-transform: uppercase; letter-spacing: 1.5px;
}

/* --- Video --- */
.pmc-block--video { }
.pmc-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--pmc-radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 3px rgba(215,191,129,0.3), 0 30px 70px rgba(0,0,0,0.25);
}
.pmc-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Quiz --- */
.pmc-block--quiz {
    padding: 26px;
    background: #fff;
    border: 2px solid rgba(215,191,129,0.3);
    border-radius: var(--pmc-radius);
}
/* The quiz question is a full sentence, so it reads better a notch smaller than
   the other widget headers. Colour is handled by theme: var(--pmc-ink) (dark) on
   the white light-mode card, and ivory on the dark panel (the dark-mode rule). */
.pmc-block--quiz .pmc-block__title {
    font-size: clamp(16px, 0.7vw + 13px, 19px);
    line-height: 1.35;
    font-weight: 700;
}
.pmc-quiz__options { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pmc-quiz__opt {
    width: 100%; text-align: left;
    padding: 14px 20px;
    background: var(--pmc-surface-alt);
    border: 2px solid transparent;
    border-radius: var(--pmc-radius-sm);
    font-size: 14.5px; font-weight: 600;
    color: var(--pmc-ink);
    cursor: pointer;
    transition: all 0.25s var(--pmc-ease);
    font-family: inherit;
}
.pmc-quiz__opt:hover { border-color: var(--pmc-accent); background: rgba(215,191,129,0.08); }
.pmc-quiz__opt.is-correct { background: #e8f5ea; border-color: #4CAF50; color: #1b5e20; }
.pmc-quiz__opt.is-wrong   { background: #fdeaea; border-color: #e53935; color: #b71c1c; }
.pmc-quiz__feedback {
    margin-top: 14px; padding: 14px 18px;
    border-radius: var(--pmc-radius-sm);
    background: var(--pmc-surface-alt);
    font-size: 14px; line-height: 1.6;
    color: var(--pmc-ink-soft);
    border-left: 3px solid var(--pmc-accent);
}

/* --- FAQ --- */
.pmc-block--faq { margin-top: 3em; }
.pmc-faq h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.8em 0 0.4em;
    color: var(--pmc-ink);
    position: relative;
    padding-left: 28px;
}
.pmc-faq h3::before {
    content: '?';
    position: absolute;
    left: 0; top: 2px;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    background: var(--pmc-accent);
    color: #111;
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
}

/* ============================================================
 * 6. RESOURCES ARSENAL
 * ============================================================ */
.pmc-arsenal {
    padding: clamp(70px, 11vh, 140px) 0;
    background: linear-gradient(180deg, var(--pmc-surface-alt) 0%, #fff 100%);
    position: relative;
}
.pmc-section-head { margin-bottom: 48px; }
.pmc-section-head--center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.pmc-section-head__eyebrow {
    display: inline-block;
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--pmc-accent); font-weight: 700;
    margin-bottom: 14px;
}
.pmc-section-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    color: var(--pmc-ink);
    line-height: 1.1;
}
.pmc-section-head p {
    font-size: 1.1rem;
    color: var(--pmc-ink-mute);
    margin: 0;
    line-height: 1.6;
}

.pmc-arsenal__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    justify-content: center;
}
.pmc-arsenal__filter {
    padding: 10px 20px;
    background: #fff;
    border: 1.5px solid var(--pmc-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pmc-ink-soft);
    cursor: pointer;
    transition: all 0.25s var(--pmc-ease);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pmc-arsenal__filter span {
    background: var(--pmc-surface-alt);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--pmc-ink-mute);
}
.pmc-arsenal__filter:hover { border-color: var(--pmc-accent); color: var(--pmc-ink); }
.pmc-arsenal__filter.is-active {
    background: var(--pmc-ink);
    color: #fff;
    border-color: var(--pmc-ink);
}
.pmc-arsenal__filter.is-active span { background: var(--pmc-accent); color: #111; }

.pmc-arsenal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.pmc-arsenal__card {
    position: relative;
    background: #fff;
    border-radius: var(--pmc-radius);
    overflow: hidden;
    border: 1px solid var(--pmc-line);
    transition: transform 0.4s var(--pmc-ease), box-shadow 0.4s var(--pmc-ease), border-color 0.3s;
    display: flex;
    flex-direction: column;
}
.pmc-arsenal__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pmc-shadow-glow);
    border-color: transparent;
}
.pmc-arsenal__card.is-featured {
    box-shadow: 0 0 0 2px var(--pmc-accent);
}
.pmc-arsenal__card.is-hidden { display: none; }
.pmc-arsenal__card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.pmc-arsenal__card-media {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a1a1a, #2a2420) center/cover no-repeat;
    position: relative;
    overflow: hidden;
}
.pmc-arsenal__card[data-type="article"] .pmc-arsenal__card-media:empty::after { content: ''; position: absolute; inset: 0; opacity: 0.5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D7BF81' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h5'/%3E%3C/svg%3E") center / 46px no-repeat; }
.pmc-arsenal__card[data-type="sheet"]   .pmc-arsenal__card-media:empty::after { content: ''; position: absolute; inset: 0; opacity: 0.5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D7BF81' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E") center / 46px no-repeat; }
.pmc-arsenal__card[data-type="lesson"]  .pmc-arsenal__card-media:empty::after { content: ''; position: absolute; inset: 0; opacity: 0.5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D7BF81' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10v6'/%3E%3Cpath d='M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5a6 3 0 0 0 12 0v-5'/%3E%3C/svg%3E") center / 46px no-repeat; }
.pmc-arsenal__card[data-type="game"]    .pmc-arsenal__card-media { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.pmc-arsenal__card[data-type="game"]    .pmc-arsenal__card-media::after { content: ''; position: absolute; inset: 0; opacity: 0.6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D7BF81' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 12h4M8 10v4M15 13h.01M18 11h.01'/%3E%3C/svg%3E") center / 54px no-repeat; }

.pmc-arsenal__card-type {
    position: absolute;
    top: 14px; left: 14px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pmc-arsenal__card-plan {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--pmc-badge-color, var(--pmc-accent));
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.pmc-arsenal__card-star {
    position: absolute;
    bottom: 12px; right: 14px;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    background: var(--pmc-accent);
    color: #111;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(215,191,129,0.5);
}
.pmc-arsenal__card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pmc-arsenal__card-body h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--pmc-ink);
    line-height: 1.35;
}
.pmc-arsenal__card-body p {
    color: var(--pmc-ink-mute);
    font-size: 0.93rem;
    line-height: 1.55;
    margin: 0 0 18px;
    flex: 1;
}
.pmc-arsenal__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pmc-accent);
    transition: gap 0.25s var(--pmc-ease);
}
.pmc-arsenal__card:hover .pmc-arsenal__card-cta { gap: 10px; }
.pmc-arsenal__card-extra {
    display: block;
    padding: 12px 22px;
    background: var(--pmc-surface-alt);
    color: var(--pmc-ink);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-top: 1px solid var(--pmc-line);
    transition: background 0.25s;
}
.pmc-arsenal__card-extra:hover { background: var(--pmc-accent); color: #111; }

/* ============================================================
 * 7. RELATED JOURNEYS
 * ============================================================ */
.pmc-related {
    padding: clamp(60px, 9vh, 120px) 0;
    background: #111;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pmc-related::before {
    content: '';
    position: absolute;
    inset: -20% -20% auto auto;
    width: 560px; height: 560px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(215,191,129,0.2), transparent 70%);
    pointer-events: none;
}
.pmc-related .pmc-section-head h2 { color: #fff; }
.pmc-related .pmc-section-head p { color: rgba(255,255,255,0.65); }
.pmc-related__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.pmc-related .pmc-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.pmc-related .pmc-card__title { color: #fff; }
.pmc-related .pmc-card__subtitle,
.pmc-related .pmc-card__meta { color: rgba(255,255,255,0.7); }

/* ============================================================
 * 8. FLOATING CTA
 * ============================================================ */
.pmc-floating-cta {
    position: fixed;
    bottom: 28px; right: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px 14px 14px;
    background: var(--pmc-accent);
    color: #111;
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(215,191,129,0.45), 0 4px 12px rgba(0,0,0,0.15);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    z-index: 900;
    transition: all 0.35s var(--pmc-ease);
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
}
.pmc-floating-cta.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.pmc-floating-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 20px 55px rgba(215,191,129,0.6);
    background: var(--pmc-gold-dark);
    color: var(--pm-text-on-gold, #1b1505);
}
.pmc-floating-cta__icon {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: #111;
    color: var(--pmc-accent);
    border-radius: 50%;
}
.pmc-floating-cta:hover .pmc-floating-cta__icon { background: #fff; color: var(--pmc-gold-dark); }

/* ============================================================
 * 9. PUBLIC CARDS (tag grid + card grid)
 * ============================================================ */
.pmc-home-section,
.pmc-explore-section {
    padding: clamp(60px, 9vh, 110px) 0;
    background: #fff;
}
.pmc-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.pmc-tag {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--pmc-radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
    transition: transform 0.4s var(--pmc-ease), box-shadow 0.4s var(--pmc-ease);
}
.pmc-tag:hover { transform: translateY(-6px); box-shadow: var(--pmc-shadow-hover); color: #fff; }
.pmc-tag__bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center;
    transition: transform 0.8s var(--pmc-ease);
}
.pmc-tag:hover .pmc-tag__bg { transform: scale(1.08); }
.pmc-tag::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.92));
}
.pmc-tag__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
}
.pmc-tag__body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.pmc-tag__body span {
    font-size: 12px;
    color: var(--pmc-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.pmc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}
.pmc-card {
    display: block;
    background: #fff;
    border-radius: var(--pmc-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--pmc-line);
    transition: all 0.35s var(--pmc-ease);
}
.pmc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pmc-shadow-hover);
    color: inherit;
    border-color: transparent;
}
.pmc-card__media {
    aspect-ratio: 16 / 10;
    background-size: cover; background-position: center;
    position: relative;
}
.pmc-card__tier {
    position: absolute;
    top: 12px; right: 12px;
    padding: 4px 11px;
    background: var(--pmc-accent);
    color: #111;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}
.pmc-card__tier[data-tier="pro"] { background: #FF9800; color: #fff; }
.pmc-card__tier[data-tier="premium"] { background: #8A2BE2; color: #fff; }
.pmc-card__tier[data-tier="free"] { background: #4CAF50; color: #fff; }
.pmc-card__body { padding: 22px; }
.pmc-card__eyebrow {
    display: inline-block;
    font-size: 10.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pmc-accent);
    font-weight: 700;
    margin-bottom: 10px;
}
.pmc-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.pmc-card__subtitle {
    color: var(--pmc-ink-mute);
    font-size: 0.93rem;
    line-height: 1.55;
    margin: 0 0 16px;
}
.pmc-card__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--pmc-ink-mute);
}
.pmc-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: capitalize;
}
.pmc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pmc-accent);
    transition: gap 0.25s var(--pmc-ease);
}
.pmc-card:hover .pmc-card__cta { gap: 10px; }

/* ============================================================
 * 10. DEBUG PANEL
 * ============================================================ */
.pmc-debug {
    background: #1a1a1a;
    color: #0f0;
    padding: 20px;
    font-family: monospace;
    font-size: 12px;
    max-width: 100%;
    overflow-x: auto;
}
.pmc-debug h3 { color: var(--pmc-accent); margin: 0 0 14px; }
.pmc-debug pre { margin: 0; white-space: pre-wrap; }

/* ============================================================
 * 11. RESPONSIVE
 * ============================================================ */
@media (max-width: 1024px) {
    .pmc-body__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .pmc-journey-map { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--pmc-line); padding-bottom: 24px; padding-right: 0; }
    .pmc-journey-map__list { flex-direction: row; flex-wrap: wrap; }
    .pmc-bento__grid { grid-template-columns: repeat(6, 1fr); }
    .pmc-bento__cell { grid-column: span 2; }
    .pmc-bento__cell--wide { grid-column: span 6; grid-row: auto; min-height: 220px; }
    .pmc-bento__cell--feature { min-height: 240px; }
}
@media (max-width: 720px) {
    .pmc-hero { padding: 80px 5% 60px; min-height: 88vh; }
    .pmc-hero__title { font-size: clamp(2.2rem, 9vw, 3.4rem); }
    .pmc-bento__grid { grid-template-columns: 1fr 1fr; }
    .pmc-bento__cell { grid-column: span 1; }
    .pmc-bento__cell--wide, .pmc-bento__cell--feature { grid-column: span 2; }
    .pmc-sheet-card { grid-template-columns: 1fr; }
    .pmc-resource-inline { grid-template-columns: 1fr; }
    .pmc-resource-inline__thumb { min-height: 160px; }
    .pmc-breadcrumbs { font-size: 11px; padding: 6px 10px; }
    .pmc-floating-cta { bottom: 16px; right: 16px; padding: 10px 18px 10px 10px; font-size: 12px; }
    .pmc-floating-cta__icon { width: 32px; height: 32px; }
    .pmc-block--tip { flex-direction: column; gap: 14px; padding: 20px; }
    .pmc-prose > p:first-of-type::first-letter { font-size: 2.8em; }
}

/* ========================================================================
   PROGRESS, round 28
   --------------------------------------------------------------------------
   Two surfaces:
   1. .pmc-chip--progress, gold chip in the hero meta row showing N/M done
                             with a circular SVG ring on the left.
   2. .pmc-arsenal__card.is-done, soft tint + checkmark badge on each
                             arsenal card the user has already consumed.
   ======================================================================== */
.pmc-chip--progress {
    color: var(--pmc-accent, #D7BF81);
    background: rgba(215, 191, 129, 0.12);
    border: 1px solid rgba(215, 191, 129, 0.45);
    font-weight: 600;
    padding: 6px 12px 6px 6px;
    gap: 8px;
}
.pmc-chip-progress-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.pmc-chip-progress-ring svg { width: 100%; height: 100%; }
.pmc-chip-progress-text {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.pmc-arsenal__card-done {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2eb56a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(46, 181, 106, 0.42);
}
.pmc-arsenal__card.is-done {
    /* Subtle ring + slight desaturation so completed cards still read as
       cards but feel "done", the eye scans for the cards without the
       checkmark. */
    border-color: rgba(46, 181, 106, 0.45);
    box-shadow: 0 6px 22px rgba(46, 181, 106, 0.10);
}
.pmc-arsenal__card.is-done .pmc-arsenal__card-media {
    filter: saturate(0.86) brightness(0.92);
}
.pmc-arsenal__card.is-done .pmc-arsenal__card-cta {
    color: rgba(46, 181, 106, 0.95);
}
.pmc-arsenal__card.is-done .pmc-arsenal__card-cta::after {
    content: ', Completed';
    font-weight: 600;
    letter-spacing: 0.04em;
}
html[data-theme="light"] .pmc-chip--progress {
    background: rgba(215, 191, 129, 0.16);
    color: #6b563d;
    border-color: rgba(215, 191, 129, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .pmc-hero__media { animation: none; }
}

/* ================================================================
 * ROUND 35, EDITORIAL CLUSTER LAYOUT
 * Adds 6 new section styles (intro essay, mini trainer, path
 * timeline, featured module, "all resources" big-card grid, other
 * journeys, footer CTA band) that activate on the new meta keys.
 * Mobile-first; large breakpoints add multi-column grids.
 * ================================================================ */

.pmc-cluster--editorial {
    --pmc-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
    --pmc-bg-1: #0B0B0B;
    --pmc-bg-2: #131211;
    --pmc-bg-3: #1A1816;
    --pmc-ivory: #F5F1E8;
    --pmc-warm: #E5DDC8;
    --pmc-muted: rgba(245, 241, 232, 0.55);
    --pmc-muted-2: rgba(245, 241, 232, 0.35);
    --pmc-line: rgba(245, 241, 232, 0.10);
    --pmc-line-2: rgba(245, 241, 232, 0.18);
    --pmc-gold-soft: #E8D9AE;
    --pmc-gold-dim: rgba(215, 191, 129, 0.5);
}

/* Common eyebrow + section head used by every editorial section */
.pmc-cluster--editorial .pmc-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--pmc-accent) !important; /* outranks Blocksy heading defaults */
    margin-bottom: 18px;
}

/* Force Blocksy-proof colors on every editorial section title.
   Blocksy theme has aggressive heading-color rules that were leaking through
   in dark mode (titles ending up dark on dark bg). !important wins. */
.pmc-cluster--editorial .pmc-section-title,
.pmc-cluster--editorial .pmc-intro__pull,
.pmc-cluster--editorial .pmc-step__title,
.pmc-cluster--editorial .pmc-feature__modtitle,
.pmc-cluster--editorial .pmc-trainer__title,
.pmc-cluster--editorial .pmc-other-card__title,
.pmc-cluster--editorial .pmc-footer-cta__title,
.pmc-cluster--editorial .pmc-bigcard__title,
.pmc-cluster--editorial .pmc-rcard__title,
.pmc-cluster--editorial .pmc-prose--editorial h2,
.pmc-cluster--editorial .pmc-prose--editorial h3 {
    color: var(--pmc-ivory) !important;
}
.pmc-cluster--editorial .pmc-section-title em,
.pmc-cluster--editorial .pmc-intro__pull em,
.pmc-cluster--editorial .pmc-feature__title em,
.pmc-cluster--editorial .pmc-other-card__title em,
.pmc-cluster--editorial .pmc-footer-cta__title em,
.pmc-cluster--editorial .pmc-trainer__title em {
    color: var(--pmc-accent) !important;
}
.pmc-cluster--editorial .pmc-section-desc,
.pmc-cluster--editorial .pmc-step__desc,
.pmc-cluster--editorial .pmc-step__desc p,
.pmc-cluster--editorial .pmc-feature__desc,
.pmc-cluster--editorial .pmc-trainer__desc,
.pmc-cluster--editorial .pmc-prose--editorial,
.pmc-cluster--editorial .pmc-prose--editorial p {
    color: var(--pmc-warm) !important;
}

.pmc-cluster--editorial .pmc-section-head {
    margin-bottom: 56px;
}

.pmc-cluster--editorial .pmc-section-head--wide {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.pmc-cluster--editorial .pmc-section-title {
    font-family: var(--pmc-serif);
    font-weight: 300;
    /* Matched up to the design-system display scale (Listen / Learn / Play). */
    font-size: clamp(40px, 5vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--pmc-ivory);
    margin: 0 0 18px;
    max-width: 17ch;
    text-wrap: balance;
}

.pmc-cluster--editorial .pmc-section-title em {
    font-style: italic;
    color: var(--pmc-accent);
}

.pmc-cluster--editorial .pmc-section-desc {
    font-size: 16px;
    line-height: 1.55;
    color: var(--pmc-muted);
    max-width: 56ch;
    margin: 0;
}

/* ---------- 1. HERO refresh, stats column ---------- */
.pmc-cluster--editorial .pmc-hero {
    background: var(--pmc-bg-1);
}

.pmc-cluster--editorial .pmc-hero__inner--with-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: end;
}

@media (min-width: 960px) {
    .pmc-cluster--editorial .pmc-hero__inner--with-stats {
        grid-template-columns: 1.3fr 1fr;
        gap: 72px;
    }
}

.pmc-cluster--editorial .pmc-hero__title {
    font-family: var(--pmc-serif);
    /* Heavier display weight to match the Learn / Play / Listen heroes (the old
       300 read as too thin). Cormorant Garamond is loaded at 600 and 700 now. */
    font-weight: 700;
    font-size: clamp(44px, 6vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    max-width: 14ch;
    text-wrap: balance;
    /* Hero image is always dark (we add a black overlay), so force white
       text regardless of system color scheme. The prefers-color-scheme
       override was flipping this to black = invisible on dark image. */
    color: #F5F1E8 !important;
    text-shadow: 0 2px 28px rgba(0,0,0,0.45);
}

.pmc-cluster--editorial .pmc-hero__title em {
    font-style: italic;
    color: var(--pmc-accent);
}

.pmc-cluster--editorial .pmc-hero__lede {
    font-size: 17px;
    line-height: 1.55;
    /* Force light tone, hero is always dark even in light system mode. */
    color: #E5DDC8 !important;
    max-width: 50ch;
    margin: 0 0 28px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

/* Hero stats redesigned as a 2x2 grid so the counts stop
   reading like a vertical ordered list (06/05/04/01 was confusing). */
.pmc-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-self: end;
    width: 100%;
    max-width: 520px;
}

@media (max-width: 540px) {
    .pmc-hero__stats { grid-template-columns: 1fr; gap: 10px; max-width: 100%; }
}

/* Very small phones: the bento cells go full-width (2 columns with 28px padding
   each squeezed the content too far) and the densest blocks shed padding. */
@media (max-width: 460px) {
    .pmc-bento__grid { grid-template-columns: 1fr; }
    .pmc-bento__cell,
    .pmc-bento__cell--wide,
    .pmc-bento__cell--feature { grid-column: span 1; }
    .pmc-bento__cell { padding: 18px; }
    .pmc-learn-more__props { grid-template-columns: 1fr 1fr; }
}

.pmc-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: rgba(11,11,11,0.55);
    border: 1px solid rgba(245,241,232,0.10);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 220ms var(--pmc-ease), border-color 220ms var(--pmc-ease), background 220ms var(--pmc-ease);
}

.pmc-hero__stat:hover {
    transform: translateY(-3px);
    border-color: rgba(215,191,129,0.35);
    background: rgba(11,11,11,0.7);
}

.pmc-hero__stat-num {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1;
    color: var(--pmc-accent);
    font-feature-settings: 'lnum';
    /* Strip the leading zero "06" to "6" only at display time so the seed
       data stays semantic. CSS string-trick: the seed sends "06" but we
       overlap a transform; instead we just style the number with no extra
       padding and rely on the surrounding card to give context. */
}

.pmc-hero__stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pmc-hero__stat-info b {
    font-size: 14px;
    font-weight: 500;
    color: var(--pmc-ivory);
}

.pmc-hero__stat-info span {
    font-size: 12.5px;
    color: var(--pmc-muted);
}

.pmc-hero__stat-arrow {
    color: var(--pmc-muted-2);
    display: inline-flex;
    transition: transform 180ms var(--pmc-ease), color 180ms var(--pmc-ease);
}

/* ---------- 2. EDITORIAL INTRO ---------- */
.pmc-intro {
    padding: clamp(64px, 10vw, 120px) 0;
    background: var(--pmc-bg-1);
    border-top: 1px solid var(--pmc-line);
    color: var(--pmc-ivory);
}

.pmc-intro__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .pmc-intro__grid {
        grid-template-columns: 320px 1fr;
        gap: 100px;
    }
}

.pmc-intro__aside {
    align-self: start;
}

@media (min-width: 1024px) {
    .pmc-intro__aside {
        position: sticky;
        top: 100px;
        padding-right: 24px;
    }
}

.pmc-intro__label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--pmc-accent);
    display: block;
    margin-bottom: 24px;
}

.pmc-intro__pull {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 36px;
    color: var(--pmc-ivory);
}

.pmc-intro__pull em {
    font-style: italic;
    color: var(--pmc-accent);
}

.pmc-intro__toc {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--pmc-line-2);
}

.pmc-intro__toc li {
    border-bottom: 1px solid var(--pmc-line-2);
}

.pmc-intro__toc a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    font-size: 13.5px;
    color: var(--pmc-muted);
    text-decoration: none;
    transition: color 150ms var(--pmc-ease);
}

.pmc-intro__toc a:hover {
    color: var(--pmc-ivory);
}

.pmc-intro__toc-num {
    font-family: var(--pmc-serif);
    font-size: 14px;
    color: rgba(215, 191, 129, 0.75);   /* --pmc-gold-dim (.5) read 3.4:1 as text; it stays the border tint */
}

.pmc-intro__essay {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.55;
    color: var(--pmc-warm);
    text-wrap: pretty;
    max-width: 60ch;
}

.pmc-intro__essay p {
    margin: 0 0 28px;
}

.pmc-intro__lead {
    font-size: clamp(22px, 2.4vw, 28px) !important;
    line-height: 1.4 !important;
    color: var(--pmc-ivory) !important;
    margin-bottom: 32px !important;
}

.pmc-intro__essay strong {
    color: var(--pmc-ivory);
    font-weight: 500;
}

.pmc-intro__essay a {
    color: var(--pmc-accent);
    border-bottom: 1px solid var(--pmc-gold-dim);
    padding-bottom: 1px;
    text-decoration: none;
    transition: border-color 150ms var(--pmc-ease);
}

.pmc-intro__essay a:hover {
    border-color: var(--pmc-accent);
}

.pmc-intro__quote {
    margin: 44px 0;
    padding: 28px 0 28px 28px;
    border-left: 2px solid var(--pmc-accent);
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.4;
    font-style: italic;
    color: var(--pmc-ivory);
}

.pmc-intro__quote cite {
    display: block;
    margin-top: 18px;
    font-family: var(--pmc-font);
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pmc-accent);
}

/* ---------- 3. MINI TRAINER ---------- */
.pmc-trainer {
    padding: clamp(56px, 8vw, 80px) 0;
    background: var(--pmc-bg-1);
}

.pmc-trainer__card {
    background: linear-gradient(180deg, var(--pmc-bg-2) 0%, var(--pmc-bg-3) 100%);
    border: 1px solid var(--pmc-line-2);
    border-radius: 24px;
    padding: clamp(28px, 5vw, 56px);
    position: relative;
    overflow: hidden;
}

.pmc-trainer__card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(215,191,129,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.pmc-trainer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
}

@media (min-width: 900px) {
    .pmc-trainer__grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 56px;
    }
}

.pmc-trainer__title {
    font-family: var(--pmc-serif);
    font-weight: 300;
    /* Card-header scale: large enough to anchor the trainer card, small enough
       that it does not read as a page or section headline. */
    font-size: clamp(26px, 2.2vw + 14px, 38px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--pmc-ivory);
    max-width: 16ch;
}

.pmc-trainer__title em {
    font-style: italic;
    color: var(--pmc-accent);
}

.pmc-trainer__desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--pmc-muted);
    margin: 0 0 24px;
}

.pmc-trainer__full {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pmc-accent);
    border-bottom: 1px solid var(--pmc-gold-dim);
    padding-bottom: 4px;
    text-decoration: none;
    transition: border-color 150ms var(--pmc-ease);
}

.pmc-trainer__full:hover {
    border-color: var(--pmc-accent);
}

.pmc-trainer__stage {
    background: rgba(11,11,11,0.5);
    border: 1px solid var(--pmc-line);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pmc-trainer__status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pmc-muted);
}

.pmc-trainer__status b {
    color: var(--pmc-accent);
}

.pmc-trainer__play {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: rgba(215,191,129,0.04);
    border: 1px solid rgba(215,191,129,0.15);
    border-radius: 12px;
}

.pmc-trainer__playbtn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pmc-accent);
    color: #1A1816;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 180ms var(--pmc-ease), box-shadow 180ms var(--pmc-ease);
}

.pmc-trainer__playbtn:hover:not(:disabled) {
    transform: scale(1.04);
    box-shadow: 0 0 0 8px rgba(215,191,129,0.10);
}

.pmc-trainer__playbtn.is-playing {
    animation: pmc-trainer-pulse 1.4s ease-in-out infinite;
}

@keyframes pmc-trainer-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(215,191,129,0.6); }
    50%      { box-shadow: 0 0 0 12px rgba(215,191,129,0); }
}

.pmc-trainer__vis {
    flex: 1;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
    transition: opacity 200ms var(--pmc-ease);
}

.pmc-trainer__vis.is-active {
    opacity: 1;
}

.pmc-trainer__bar {
    flex: 1;
    background: linear-gradient(180deg, var(--pmc-accent) 0%, rgba(215,191,129,0.4) 100%);
    border-radius: 1px;
    min-height: 8%;
    height: 12%;
    transition: height 130ms var(--pmc-ease);
}

.pmc-trainer__prompt {
    font-size: 12.5px;
    color: var(--pmc-muted);
    text-align: center;
    margin: 0;
    min-height: 18px;
}

.pmc-trainer__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pmc-trainer__opt {
    background: transparent;
    border: 1px solid var(--pmc-line-2);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: 18px;
    color: var(--pmc-ivory);
    cursor: pointer;
    transition: all 180ms var(--pmc-ease);
    text-align: center;
}

.pmc-trainer__opt:hover:not(:disabled) {
    border-color: var(--pmc-gold-dim);
    background: rgba(215,191,129,0.04);
}

.pmc-trainer__opt.is-correct {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.18);
    color: #a5e8aa;
    box-shadow: 0 0 0 1px rgba(76,175,80,0.6), 0 0 24px rgba(76,175,80,0.45);
    animation: pmc-trainer-correct 600ms ease-out;
}
.pmc-trainer__opt.is-wrong {
    border-color: rgba(220, 80, 80, 0.7);
    background: rgba(220, 80, 80, 0.16);
    color: rgba(245, 180, 180, 1);
    box-shadow: 0 0 0 1px rgba(220,80,80,0.6), 0 0 24px rgba(220,80,80,0.4);
    animation: pmc-trainer-wrong 480ms ease-out;
}
.pmc-trainer__opt:disabled {
    cursor: default;
}
@keyframes pmc-trainer-correct {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}
@keyframes pmc-trainer-wrong {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-4px); }
    50%  { transform: translateX(4px); }
    75%  { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.pmc-trainer__feedback {
    margin: 14px 0 0;
    font-size: 14.5px;
    text-align: center;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}
.pmc-trainer__feedback em { font-style: italic; opacity: 0.85; }
.pmc-trainer__feedback-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
}
.pmc-trainer__feedback.is-success { color: #a5e8aa; }
.pmc-trainer__feedback.is-success .pmc-trainer__feedback-emoji {
    background: rgba(76,175,80,0.25);
    color: #c8f0cb;
}
.pmc-trainer__feedback.is-fail    { color: rgba(245,180,180,1); }
.pmc-trainer__feedback.is-fail .pmc-trainer__feedback-emoji {
    background: rgba(220,80,80,0.25);
    color: rgba(255,210,210,1);
}

/* Finale panel, shown after the last round */
.pmc-trainer__finale {
    margin-top: 18px;
    padding: 22px 18px;
    background: rgba(215,191,129,0.06);
    border: 1px solid rgba(215,191,129,0.25);
    border-radius: 14px;
    text-align: center;
    animation: pmc-trainer-finale 500ms ease-out;
}
@keyframes pmc-trainer-finale {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pmc-trainer__finale-emoji {
    display: block;
    font-size: 36px;
    margin-bottom: 6px;
}
.pmc-trainer__finale-title {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: 24px;
    color: var(--pmc-ivory) !important;
    margin: 0 0 6px;
}
.pmc-trainer__finale-score {
    font-size: 14px;
    color: var(--pmc-warm) !important;
    margin: 0 0 14px;
}
.pmc-trainer__finale-score b {
    color: var(--pmc-accent);
    font-weight: 600;
    font-size: 18px;
}
.pmc-btn--sm {
    padding: 8px 14px;
    font-size: 12px;
}

/* ---------- 4. PATH TIMELINE ---------- */
.pmc-path {
    padding: clamp(64px, 10vw, 120px) 0;
    background: var(--pmc-bg-1);
    color: var(--pmc-ivory);
}

.pmc-path__timeline {
    position: relative;
}

.pmc-path__rail {
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--pmc-line-2) 8%,
        var(--pmc-line-2) 92%,
        transparent 100%);
}

@media (min-width: 720px) {
    .pmc-path__rail {
        left: 33px;
    }
}

.pmc-step {
    display: grid;
    /* minmax(0, 1fr), NOT 1fr: a bare 1fr track has a min size of min-content, so
       the body column refused to shrink below the practice keyboard's intrinsic
       width and the whole step overflowed the phone. minmax(0,…) lets it shrink
       and the keyboard scrolls inside its own box. */
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--pmc-line);
}

@media (min-width: 720px) {
    .pmc-step {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 36px;
        padding: 32px 0;
    }
}

.pmc-step:last-child {
    border-bottom: none;
}

.pmc-step__marker {
    position: relative;
    width: 56px;
    height: 56px;
}

@media (min-width: 720px) {
    .pmc-step__marker {
        width: 68px;
        height: 68px;
    }
}

.pmc-step__num {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--pmc-bg-2);
    border: 1px solid var(--pmc-line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: 22px;
    color: var(--pmc-muted);
    letter-spacing: 0.04em;
}

@media (min-width: 720px) {
    .pmc-step__num {
        font-size: 26px;
    }
}

.pmc-step--done .pmc-step__num {
    background: rgba(215,191,129,0.08);
    border-color: rgba(215,191,129,0.35);
    color: var(--pmc-accent);
}

.pmc-step--active .pmc-step__num {
    background: var(--pmc-accent);
    border-color: var(--pmc-accent);
    color: #1A1816;
    box-shadow: 0 0 0 6px rgba(215,191,129,0.15);
}

.pmc-step__body {
    padding-top: 4px;
    min-width: 0;            /* allow the grid body to shrink so wide drills scroll, not overflow */
}

.pmc-step__header {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.pmc-step__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.pmc-step__stage {
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--pmc-accent);
}

.pmc-step__duration {
    font-size: 12.5px;
    color: var(--pmc-muted);
}

.pmc-step__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(215,191,129,0.10);
    border: 1px solid rgba(215,191,129,0.3);
    color: var(--pmc-accent);
    border-radius: 999px;
}

.pmc-step__tag--done {
    background: transparent;
    border-color: var(--pmc-line-2);
    color: var(--pmc-muted);
}

.pmc-step__title {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    color: var(--pmc-ivory);
    max-width: 22ch;
}

.pmc-step__desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--pmc-muted);
    max-width: 64ch;
    margin: 0 0 18px;
}

.pmc-step__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--pmc-accent);
}

.pmc-step__chev {
    display: inline-flex;
    transition: transform 200ms var(--pmc-ease);
}

.pmc-step.is-open .pmc-step__chev {
    transform: rotate(90deg);
}

.pmc-step__resources {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms var(--pmc-ease), margin-top 300ms var(--pmc-ease);
}

.pmc-step.is-open .pmc-step__resources {
    max-height: 1400px;
    margin-top: 24px;
}

.pmc-rcards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 540px) {
    .pmc-rcards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
    .pmc-rcards { grid-template-columns: repeat(4, 1fr); }
}

.pmc-rcard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: var(--pmc-bg-2);
    border: 1px solid var(--pmc-line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 180ms var(--pmc-ease);
    min-height: 130px;
}

.pmc-rcard:hover {
    border-color: rgba(215,191,129,0.35);
    background: rgba(215,191,129,0.03);
    transform: translateY(-2px);
}

/* Resource card with no resolvable destination: informational, not clickable. */
.pmc-rcard--static { cursor: default; }
.pmc-rcard--static:hover { border-color: var(--pmc-line); background: var(--pmc-bg-2); transform: none; }

.pmc-rcard__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pmc-rcard__type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pmc-rcard__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
}

.pmc-rcard__type--score   { color: #D7BF81; }
.pmc-rcard__type--sheet   { color: #D7BF81; }
.pmc-rcard__type--lesson  { color: #C8A8E0; }
.pmc-rcard__type--article { color: #9DC0DE; }
.pmc-rcard__type--game    { color: #E5A28A; }

.pmc-rcard__access {
    font-size: 9.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid var(--pmc-line-2);
    color: var(--pmc-muted);
}

.pmc-rcard__access--free {
    color: var(--pmc-accent);
    border-color: rgba(215,191,129,0.3);
}

.pmc-rcard__access--member {
    color: var(--pmc-ivory);
}

.pmc-rcard__access--pro,
.pmc-rcard__access--premium {
    color: #1A1816;
    background: var(--pmc-accent);
    border-color: var(--pmc-accent);
}

.pmc-rcard__title {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--pmc-ivory);
    margin: 0;
    flex: 1;
}

.pmc-rcard__meta {
    font-size: 11.5px;
    color: var(--pmc-muted);
    margin: 0;
}

/* ---------- 5. FEATURED MODULE ---------- */
.pmc-feature {
    padding: clamp(64px, 10vw, 120px) 0;
    background: var(--pmc-bg-2);
    border-top: 1px solid var(--pmc-line);
    color: var(--pmc-ivory);
}

.pmc-feature__card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: stretch;
    padding: clamp(20px, 3vw, 32px);
    background: var(--pmc-bg-1);
    border: 1px solid var(--pmc-line-2);
    border-radius: 24px;
}

@media (min-width: 960px) {
    .pmc-feature__card {
        grid-template-columns: 1.05fr 1fr;
        gap: 56px;
    }
}

.pmc-feature__visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pmc-feature__imgwrap {
    position: relative;
    aspect-ratio: 4/3;
    background:
        radial-gradient(circle at 30% 30%, rgba(215,191,129,0.18) 0%, transparent 60%),
        linear-gradient(135deg, #2A241B 0%, #0F0E0C 100%);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: clamp(20px, 4vw, 32px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pmc-feature__tag {
    display: inline-block;
    width: fit-content;
    padding: 5px 12px;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: rgba(215,191,129,0.12);
    border: 1px solid rgba(215,191,129,0.3);
    color: var(--pmc-accent);
    border-radius: 999px;
    margin-bottom: 14px;
}

.pmc-feature__modtitle {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--pmc-ivory);
    max-width: 10ch;
}

.pmc-feature__play {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pmc-ivory);
    color: #1A1816;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 180ms var(--pmc-ease);
}

.pmc-feature__play:hover {
    transform: scale(1.05);
}

.pmc-feature__keys {
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    display: flex;
    gap: 2px;
    padding: 0 24px;
    height: 32px;
    opacity: 0.45;
    pointer-events: none;
}

.pmc-feature__key {
    flex: 1;
    background: rgba(245,241,232,0.15);
    border-radius: 2px 2px 0 0;
}

.pmc-feature__key.is-black {
    background: rgba(11,11,11,0.85);
    height: 70%;
    align-self: flex-start;
    flex: 0.55;
}

.pmc-feature__instructor {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid var(--pmc-line-2);
    border-radius: 12px;
}

.pmc-feature__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pmc-accent) 0%, #B89D5C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1816;
    font-family: var(--pmc-serif);
    font-weight: 500;
    font-size: 17px;
    flex-shrink: 0;
}

.pmc-feature__person b {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--pmc-ivory);
}

.pmc-feature__person span {
    display: block;
    font-size: 12px;
    color: var(--pmc-muted);
}

.pmc-feature__text {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.pmc-feature__desc {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
    color: var(--pmc-warm);
    margin: 0 0 28px;
}

.pmc-feature__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pmc-feature__bullets li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    color: var(--pmc-ivory);
    padding: 12px 0;
    border-top: 1px solid var(--pmc-line);
}

.pmc-feature__bullets li:last-child {
    border-bottom: 1px solid var(--pmc-line);
}

.pmc-feature__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pmc-accent);
    flex-shrink: 0;
}

.pmc-feature__stats {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.pmc-feature__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pmc-feature__stat-num {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1;
    color: var(--pmc-accent);
}

.pmc-feature__stat-lbl {
    font-size: 11.5px;
    color: var(--pmc-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pmc-feature__text .pmc-btn {
    align-self: flex-start;
}

/* ---------- 6. ALL RESOURCES BIG-CARD GRID ---------- */
.pmc-grid-section {
    padding: clamp(64px, 10vw, 120px) 0;
    background: var(--pmc-bg-1);
    border-top: 1px solid var(--pmc-line);
    color: var(--pmc-ivory);
}

.pmc-cluster--editorial .pmc-grid-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pmc-cluster--editorial .pmc-grid-filter {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--pmc-line-2);
    border-radius: 999px;
    color: var(--pmc-muted);
    cursor: pointer;
    transition: all 180ms var(--pmc-ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pmc-cluster--editorial .pmc-grid-filter span {
    opacity: 0.55;
    font-size: 11px;
}

.pmc-cluster--editorial .pmc-grid-filter:hover {
    color: var(--pmc-ivory);
    border-color: var(--pmc-gold-dim);
}

.pmc-cluster--editorial .pmc-grid-filter.is-active {
    background: var(--pmc-accent);
    color: #1A1816;
    border-color: var(--pmc-accent);
}

.pmc-bigcard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 540px) {
    .pmc-bigcard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .pmc-bigcard-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .pmc-bigcard-grid { grid-template-columns: repeat(4, 1fr); }
}

.pmc-bigcard {
    display: flex;
    flex-direction: column;
    background: var(--pmc-bg-2);
    border: 1px solid var(--pmc-line);
    border-radius: 16px;
    overflow: hidden;
    transition: all 200ms var(--pmc-ease);
    position: relative;
}

.pmc-bigcard:hover {
    border-color: rgba(215,191,129,0.35);
    transform: translateY(-3px);
}

.pmc-bigcard.is-hidden { display: none; }
/* Mobile and tablet accordion: collapsed cards hide behind the "Show all"
   toggle so the resources grid stays compact. Desktop has the room, so the
   collapse class only takes effect under 900px (and JS never sets it above). */
@media (max-width: 899px) {
    .pmc-bigcard.is-collapsed { display: none; }
}
.pmc-bigcard-more { margin-top: 18px; text-align: center; }
.pmc-bigcard-more[hidden] { display: none; }
.pmc-bigcard-more__btn { min-width: 220px; justify-content: center; }

.pmc-bigcard__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.pmc-bigcard__visual {
    height: 140px;
    position: relative;
    background-color: var(--pmc-bg-3);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--pmc-line);
    overflow: hidden;
}

.pmc-bigcard__visual--sheet:not([style]),
.pmc-bigcard__visual--score:not([style]) {
    background:
        repeating-linear-gradient(180deg,
            transparent 0 22px, rgba(245,241,232,0.13) 22px 23px, transparent 23px 50px),
        radial-gradient(circle at 70% 30%, rgba(215,191,129,0.15), transparent 60%),
        var(--pmc-bg-3);
}

.pmc-bigcard__visual--lesson:not([style]) {
    background:
        radial-gradient(circle at 50% 50%, rgba(200,168,224,0.12), transparent 60%),
        linear-gradient(135deg, #1F1A24 0%, #0E0D11 100%);
}

.pmc-bigcard__visual--article:not([style]) {
    background:
        repeating-linear-gradient(180deg,
            transparent 0 12px, rgba(157,192,222,0.18) 12px 13px, transparent 13px 28px),
        linear-gradient(135deg, #16202A 0%, #0C1117 100%);
    background-size: 65% 100%, 100% 100%;
    background-position: 16px 22px, 0 0;
}

.pmc-bigcard__visual--game:not([style]) {
    background: linear-gradient(135deg, #2A1B14 0%, #100A07 100%);
}

.pmc-bigcard__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pmc-bigcard__type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pmc-ivory);
    background: rgba(11,11,11,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
}

.pmc-bigcard__plan {
    background: rgba(11,11,11,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pmc-bigcard__star {
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: var(--pmc-accent);
    font-size: 14px;
}

.pmc-bigcard__done {
    position: absolute;
    bottom: 8px;
    left: 12px;
    width: 22px;
    height: 22px;
    background: var(--pmc-accent);
    color: #1A1816;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pmc-bigcard__body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pmc-bigcard__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--pmc-ivory);
    margin: 0;
    flex: 1;
}

.pmc-bigcard__meta {
    font-size: 11.5px;
    color: var(--pmc-muted);
    margin: 0;
}

.pmc-bigcard__cta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pmc-accent);
}

.pmc-bigcard__extra {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(11,11,11,0.7);
    border: 1px solid var(--pmc-line-2);
    border-radius: 999px;
    color: var(--pmc-ivory);
    text-decoration: none;
    backdrop-filter: blur(6px);
}

.pmc-bigcard__extra:hover {
    border-color: var(--pmc-accent);
    color: var(--pmc-accent);
}

/* ---------- 7. OTHER JOURNEYS ---------- */
.pmc-others {
    padding: clamp(64px, 10vw, 120px) 0;
    background: var(--pmc-bg-2);
    border-top: 1px solid var(--pmc-line);
    color: var(--pmc-ivory);
}

.pmc-others__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 720px) {
    .pmc-others__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1080px) {
    .pmc-others__grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(280px, auto);
    }
    .pmc-other-card { grid-column: span 2; }
    .pmc-other-card--wide { grid-column: span 3; }
}

.pmc-other-card {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 3vw, 28px);
    background: var(--pmc-bg-1);
    border: 1px solid var(--pmc-line);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 200ms var(--pmc-ease);
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.pmc-other-card:hover {
    border-color: rgba(215,191,129,0.35);
    background: rgba(215,191,129,0.02);
}

.pmc-other-card:hover .pmc-other-card__arrow {
    color: var(--pmc-accent);
    transform: translate(2px, -2px);
}

.pmc-other-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.pmc-other-card__num {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: 24px;
    color: var(--pmc-gold-dim);
    letter-spacing: 0.04em;
}

.pmc-other-card__arrow {
    color: var(--pmc-muted);
    transition: all 200ms var(--pmc-ease);
    display: inline-flex;
}

.pmc-other-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pmc-other-card__title {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(22px, 2.8vw, 28px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
    color: var(--pmc-ivory);
    max-width: 16ch;
}

.pmc-other-card__desc {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--pmc-muted);
    margin: 0 0 24px;
    max-width: 50ch;
}

.pmc-other-card__meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
    color: var(--pmc-muted);
}

.pmc-other-card__lvl {
    color: var(--pmc-accent);
    margin-right: 4px;
}

.pmc-other-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pmc-other-card__badge {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border: 1px solid var(--pmc-line-2);
    border-radius: 999px;
    color: var(--pmc-muted);
}

/* ---------- 8. FOOTER CTA BAND ---------- */
.pmc-footer-cta {
    padding: clamp(72px, 12vw, 120px) 0 60px;
    background: var(--pmc-bg-1);
    border-top: 1px solid var(--pmc-line);
    color: var(--pmc-ivory);
}

.pmc-footer-cta__inner {
    text-align: center;
    padding: 0 0 60px;
    border-bottom: 1px solid var(--pmc-line);
}

.pmc-footer-cta__title {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(40px, 5.4vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    text-wrap: balance;
}

.pmc-footer-cta__title em {
    font-style: italic;
    color: var(--pmc-accent);
}

.pmc-footer-cta__desc {
    font-size: 16px;
    color: var(--pmc-muted);
    margin: 0 auto 32px;
    max-width: 60ch;
}

.pmc-footer-cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pmc-btn--ghost-light {
    background: transparent;
    color: var(--pmc-ivory);
    border-color: var(--pmc-line-2);
}

.pmc-btn--ghost-light:hover {
    border-color: var(--pmc-gold-dim);
    color: var(--pmc-accent);
    background: transparent;
    transform: none;
}

/* Editorial body fallback when no intro/path is set */
.pmc-narrative {
    padding: clamp(56px, 8vw, 96px) 0;
    background: var(--pmc-bg-1);
    color: var(--pmc-ivory);
    border-top: 1px solid var(--pmc-line);
}

.pmc-narrative__inner {
    max-width: 760px;
}

.pmc-prose--editorial {
    font-size: 17px;
    line-height: 1.7;
    color: var(--pmc-warm);
}

.pmc-prose--editorial h2 {
    font-family: var(--pmc-serif);
    font-weight: 300;
    color: var(--pmc-ivory);
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.15;
    margin: 48px 0 16px;
}

.pmc-prose--editorial h3 {
    font-family: var(--pmc-serif);
    font-weight: 300;
    color: var(--pmc-ivory);
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    margin: 32px 0 14px;
}

.pmc-prose--editorial a {
    color: var(--pmc-accent);
    text-decoration: underline;
    text-decoration-color: var(--pmc-gold-dim);
    text-underline-offset: 3px;
}

.pmc-prose--editorial a:hover {
    text-decoration-color: var(--pmc-accent);
}

/* The editorial light theme now lives in the "CLUSTER LIGHT THEME" block at
 * the end of this file, driven by the site toggle (html[data-theme="light"])
 * rather than the OS prefers-color-scheme, so dark stays the default and the
 * toggle is what flips the page. */

/* ================================================================
 * ROUND 37, JOURNEY PAGE POLISH
 * Hero contrast, scroll reveals, floating-CTA removal,
 * Blocksy chrome hidden so the hero is fullscreen edge-to-edge.
 * ================================================================ */

/* Keep only the Blocksy page-title cover hidden (the cluster hero replaces
   it). The real site header/nav stays so the menu and the scroll-to-top
   control remain available on clusters, mobile and desktop alike. The header
   floats over the hero, so we lift it above the hero with z-index and make
   the decorative hero layers click-through, which keeps every menu link
   tappable (the old full-bleed hack hid the menu entirely). */
body.single-cluster header.entry-header,
body.single-cluster .ct-cover-image {
    display: none !important;
}
body.single-cluster .ct-header,
body.single-cluster .blocksy-header,
body.single-cluster #header {
    z-index: 100;
}
body.single-cluster .pmc-hero__media,
body.single-cluster .pmc-hero__overlay,
body.single-cluster .pmc-hero__particles {
    pointer-events: none;
}

/* Kill the floating CTA, markup is gone too, but hide any cached version. */
.pmc-floating-cta { display: none !important; }

/* Hero, stronger overlay so text legibility is guaranteed on any image. */
.pmc-cluster--editorial .pmc-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 600ms var(--pmc-ease);
}
.pmc-cluster--editorial .pmc-hero {
    position: relative;
    /* taller so the scroll cue + stats grid don't bump into
       the next section. */
    min-height: clamp(640px, 100vh, 980px);
    overflow: hidden;
    color: var(--pmc-ivory);
    background: var(--pmc-bg-1);
    padding: clamp(40px, 9vw, 88px) clamp(20px, 5vw, 56px) 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.pmc-cluster--editorial .pmc-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(160deg, rgba(11,11,11,0.78) 0%, rgba(11,11,11,0.5) 45%, rgba(11,11,11,0.85) 100%),
        radial-gradient(900px 500px at 78% 18%, rgba(215,191,129,0.12), transparent 65%);
    pointer-events: none;
}
.pmc-cluster--editorial .pmc-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    /* more bottom space so the stats grid never bumps the
       "Scroll the journey" cue, especially on mobile. */
    padding-bottom: clamp(96px, 14vw, 180px);
}
.pmc-cluster--editorial .pmc-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
}

/* Replacement for the old .pmc-hero__eyebrow / "USE CASE" tagline:
   a single level pill that doubles as the journey stamp. */
.pmc-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 28px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #D7BF81 !important; /* gold, fixed regardless of color scheme */
    background: rgba(11,11,11,0.55);
    border: 1px solid rgba(215,191,129,0.35);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.pmc-cluster--editorial .pmc-hero__progress-text {
    color: #E5DDC8 !important;
}
.pmc-cluster--editorial .pmc-hero__btn-row a,
.pmc-cluster--editorial .pmc-hero__actions .pmc-btn--ghost {
    color: #F5F1E8 !important;
}
.pmc-cluster--editorial .pmc-hero__stat-num {
    color: #D7BF81 !important;
}
.pmc-cluster--editorial .pmc-hero__stat-info b {
    color: #F5F1E8 !important;
}
.pmc-cluster--editorial .pmc-hero__stat-info span {
    color: rgba(245,241,232,0.65) !important;
}
.pmc-hero__pill .pmc-hero__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pmc-accent);
    box-shadow: 0 0 12px rgba(215,191,129,0.7);
}

/* Hero progress bar (replaces the old .pmc-chip--progress chip). */
.pmc-hero__progress {
    margin-top: 28px;
    max-width: 420px;
}
.pmc-hero__progress-text {
    display: block;
    font-size: 12.5px;
    color: var(--pmc-warm);
    margin-bottom: 8px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.pmc-hero__progress-text strong {
    color: var(--pmc-accent);
    font-weight: 600;
}
.pmc-hero__progress-track {
    display: block;
    height: 4px;
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    overflow: hidden;
}
.pmc-hero__progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pmc-accent), var(--pmc-gold-soft, #E8D9AE));
    border-radius: 999px;
    transition: width 600ms var(--pmc-ease);
}

/* Hero ghost button on dark image, make sure it's white-on-translucent */
.pmc-cluster--editorial .pmc-btn--ghost {
    background: rgba(255,255,255,0.06);
    color: var(--pmc-ivory);
    border-color: rgba(255,255,255,0.28);
}
.pmc-cluster--editorial .pmc-btn--ghost:hover {
    border-color: var(--pmc-accent);
    color: var(--pmc-accent);
}

/* Hero scroll cue */
.pmc-cluster--editorial .pmc-hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--pmc-muted);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.pmc-cluster--editorial .pmc-hero__scroll-line {
    display: block;
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--pmc-accent), transparent);
    animation: pmc-hero-scroll 2s ease-in-out infinite;
}
@keyframes pmc-hero-scroll {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
    50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* Editorial intro TOC, make the link tap target visible against dark bg */
.pmc-cluster--editorial .pmc-intro__toc a:hover .pmc-intro__toc-num {
    color: var(--pmc-accent);
}
.pmc-cluster--editorial .pmc-intro__toc-label {
    flex: 1;
}

/* Step head: meta + title + body with embedded shortcodes, always visible */
.pmc-cluster--editorial .pmc-step__head {
    margin-bottom: 18px;
}

/* Toggle button, opens the details panel */
.pmc-cluster--editorial .pmc-step__toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--pmc-line-2);
    color: var(--pmc-accent);
    padding: 10px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    cursor: pointer;
    transition: all 180ms var(--pmc-ease);
}
.pmc-cluster--editorial .pmc-step__toggle-btn:hover {
    border-color: var(--pmc-accent);
    background: rgba(215,191,129,0.08);
}
.pmc-cluster--editorial .pmc-step.is-open .pmc-step__chev {
    transform: rotate(90deg);
}

/* Step details panel, collapsible by JS, smooth height. Active step opens
   by default (template applies .is-open). */
.pmc-cluster--editorial .pmc-step__details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    transition: max-height 600ms var(--pmc-ease), opacity 400ms var(--pmc-ease), margin-top 400ms var(--pmc-ease);
}
.pmc-cluster--editorial .pmc-step__exercise,
.pmc-step__exercise { min-width: 0; max-width: 100%; }
.pmc-cluster--editorial .pmc-step.is-open .pmc-step__details {
    max-height: 4000px;
    opacity: 1;
    margin-top: 28px;
}
.pmc-cluster--editorial .pmc-step__exercise {
    padding: 0;
}
.pmc-cluster--editorial .pmc-step__rh {
    font-family: var(--pmc-font);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--pmc-muted);
    margin: 0 0 14px;
}
.pmc-cluster--editorial .pmc-step__resources {
    margin-top: 0;
}
.pmc-cluster--editorial .pmc-step__desc p {
    font-family: var(--pmc-font);
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--pmc-warm);
    margin: 0 0 14px;
    max-width: 64ch;
}
.pmc-cluster--editorial .pmc-step__desc p:last-child { margin-bottom: 0; }
.pmc-cluster--editorial .pmc-step__desc strong { color: var(--pmc-ivory); font-weight: 500; }
.pmc-cluster--editorial .pmc-step__desc em { color: var(--pmc-accent); font-style: italic; }
.pmc-cluster--editorial .pmc-step__desc a {
    color: var(--pmc-accent);
    border-bottom: 1px solid var(--pmc-gold-dim);
    padding-bottom: 1px;
    text-decoration: none;
}

/* Featured-module exercise embed slot */
.pmc-feature__exercise {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--pmc-line-2);
    min-height: 380px;
    display: flex;
    flex-direction: column;
}
.pmc-feature__exercise iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: var(--pmc-bg-3);
}
.pmc-feature__exercise .pmc-block {
    border: none;
    border-radius: 0;
    margin: 0;
}

/* Method narrative + FAQ, render the post_content in editorial style */
.pmc-narrative {
    padding: clamp(64px, 10vw, 120px) 0;
    background: var(--pmc-bg-2);
    border-top: 1px solid var(--pmc-line);
    color: var(--pmc-ivory);
}
.pmc-narrative__inner {
    max-width: 760px;
    margin: 0 auto;
}
.pmc-prose--editorial {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--pmc-warm);
}
.pmc-prose--editorial > * + * { margin-top: 22px; }
.pmc-prose--editorial h2 {
    font-family: var(--pmc-serif);
    font-weight: 300;
    color: var(--pmc-ivory);
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.15;
    margin: 56px 0 18px;
}
.pmc-prose--editorial h3 {
    font-family: var(--pmc-serif);
    font-weight: 300;
    color: var(--pmc-ivory);
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    margin: 36px 0 14px;
}
.pmc-prose--editorial strong { color: var(--pmc-ivory); font-weight: 500; }
.pmc-prose--editorial em { color: var(--pmc-accent); font-style: italic; }
.pmc-prose--editorial a {
    color: var(--pmc-accent);
    text-decoration: underline;
    text-decoration-color: var(--pmc-gold-dim);
    text-underline-offset: 3px;
}
.pmc-prose--editorial a:hover {
    text-decoration-color: var(--pmc-accent);
}
.pmc-prose--editorial ol, .pmc-prose--editorial ul {
    padding-left: 1.4em;
}
.pmc-prose--editorial li { margin-bottom: 8px; }

/* FAQ details (when [pmc_faq] is rendered inside the narrative) */
.pmc-prose--editorial .pmc-faq h3 {
    font-family: var(--pmc-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--pmc-ivory);
    margin: 24px 0 8px;
}
.pmc-prose--editorial .pmc-faq p {
    margin: 0 0 14px;
}

/* Scroll reveals, IntersectionObserver toggles .is-visible */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--pmc-ease), transform 700ms var(--pmc-ease);
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal-children] > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--pmc-ease), transform 700ms var(--pmc-ease);
}
[data-reveal-children].is-visible > * {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal-children].is-visible > *:nth-child(1) { transition-delay:   0ms; }
[data-reveal-children].is-visible > *:nth-child(2) { transition-delay:  60ms; }
[data-reveal-children].is-visible > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal-children].is-visible > *:nth-child(4) { transition-delay: 180ms; }
[data-reveal-children].is-visible > *:nth-child(5) { transition-delay: 240ms; }
[data-reveal-children].is-visible > *:nth-child(6) { transition-delay: 300ms; }
[data-reveal-children].is-visible > *:nth-child(7) { transition-delay: 360ms; }
[data-reveal-children].is-visible > *:nth-child(8) { transition-delay: 420ms; }

/* PAINT FAILSAFE (2026-07-19, AUDIT-2 UX finding n°1). The baselines above
   hide content UNCONDITIONALLY in static CSS while the reveal depends on
   cluster-animations.js arming an IntersectionObserver. Any JS failure (an
   exception before arming, a blocked/errored file, an exotic in-app browser)
   left ~45% of a cluster page permanently invisible — for users AND for
   Googlebot's renderer. This is pure CSS: 1.6s after style application,
   anything still hidden eases itself in, JS or no JS. When the observer
   works normally, .is-visible lands well before 1.6s and the failsafe is an
   invisible no-op (identical final values). fill:forwards deliberately locks
   the final state — reveals are one-way by design. */
[data-reveal],
[data-reveal-children] > * {
    animation: pmc-reveal-failsafe 400ms ease-out 1.6s forwards;
}
@keyframes pmc-reveal-failsafe {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal], [data-reveal-children] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .pmc-cluster--editorial .pmc-hero__media { transform: none; }
}

/* Polish: bigger breathing on mobile hero */
@media (max-width: 720px) {
    .pmc-cluster--editorial .pmc-hero {
        min-height: 88vh;
        padding-top: 80px;
    }
    .pmc-cluster--editorial .pmc-hero__inner {
        padding-bottom: 60px;
    }
    .pmc-cluster--editorial .pmc-hero__title {
        font-size: clamp(40px, 11vw, 64px);
    }
}

/* Inline sightreading widget */
.pmc-block--sightreading {
    background: var(--pmc-bg-2);
    border: 1px solid var(--pmc-line);
    border-radius: 16px;
    padding: 24px;
    margin: 18px 0;
    max-width: 100%;
    box-sizing: border-box;
}
/* The real-trainer variant hosts the self-contained sight-reading embed : keep
   its top margin tight (the card already pads + shows the title/desc above) and
   let the raised, fully rounded frame use the full card width. */
/* Inline trainer embeds (ear + sightreading): one identical, polished card, and
   the dark trainer app is framed (rounded corners, soft gold border, shadow,
   matching dark backdrop) so it reads as an intentional device rather than a
   raw iframe dropped onto a light page. */
.pmc-block--sr-trainer,
.pmc-block--et-trainer {
    background: var(--pmc-bg-2);
    border: 1px solid var(--pmc-line);
    border-radius: 16px;
    padding: 22px;
    margin: 18px 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}
.pmc-block--sr-trainer .pm-srt-embed,
.pmc-block--et-trainer .pm-et-embed { margin: 16px 0 0; width: 100%; max-width: 100%; }
.pmc-block--sr-trainer .pm-srt-embed__frame,
.pmc-block--et-trainer .pm-et-embed__frame {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(215,191,129,0.18);
    box-shadow: 0 16px 40px rgba(20,16,10,0.20);
    background: #15120d;
}
/* The "your turn" exercise line under the featured chord-quality trainer. */
.pmc-trainer__do {
    margin: 10px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--pmc-ink-mute);
}
.pmc-trainer__do strong { color: var(--pmc-ink); }
.pmc-et__desc {
    font-size: 14px;
    color: var(--pmc-warm) !important;
    margin: 0 0 4px;
}
.pmc-block--et-trainer .pmc-et__actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 600px) {
    .pmc-block--sightreading { padding: 14px; border-radius: 12px; }
    .pmc-block--et-trainer { padding: 14px; border-radius: 12px; }
}
/* Practice drills section : the easy, form-authored sight-reading exercises
   (cluster editor to Sight-Reading Drills). One trainer per row, full width, so
   each staff has the room it needs. */
.pmc-drills { padding: 64px 0; }
.pmc-drills__grid { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.pmc-drills__grid .pmc-block { margin: 0; }
@media (max-width: 600px) { .pmc-drills { padding: 40px 0; } }
.pmc-sr__desc {
    font-size: 14px;
    color: var(--pmc-warm) !important;
    margin: 0 0 18px;
}
.pmc-sr__stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    background: rgba(11,11,11,0.55);
    border: 1px solid var(--pmc-line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}
@media (min-width: 720px) {
    .pmc-sr__stage { grid-template-columns: 1.6fr 1fr; }
}
.pmc-sr__staff {
    width: 100%;
    height: auto;
    color: var(--pmc-ivory);
    background: rgba(245,241,232,0.04);
    border-radius: 8px;
}
.pmc-sr__readout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px;
    background: rgba(215,191,129,0.06);
    border: 1px solid rgba(215,191,129,0.2);
    border-radius: 10px;
}
.pmc-sr__readout-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--pmc-muted);
}
.pmc-sr__readout-value {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: 32px;
    color: var(--pmc-accent) !important;
    line-height: 1;
}
.pmc-sr__controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.pmc-sr__controls .pmc-btn {
    padding: 10px 18px;
    font-size: 12px;
}
.pmc-sr__controls .pmc-btn.is-active {
    background: var(--pmc-accent);
    color: #1A1816;
}
.pmc-sr__loader {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--pmc-muted);
}
.pmc-sr__loader summary {
    cursor: pointer;
    color: var(--pmc-accent) !important;
    font-weight: 500;
}
.pmc-sr__loader p {
    margin: 8px 0 0;
    color: var(--pmc-muted) !important;
}

/* Learn more (LMS bridge). Sits between Featured Module
   and All Resources. First 2 lessons free, the rest visually locked. */
/* LMS bridge, two-column promo, always rendered.
   Left: pitch + value-prop tiles + dual CTAs + trust line.
   Right: stack of 3-4 lesson cards (linked or fallback). */
.pmc-learn-more {
    padding: clamp(64px, 10vw, 120px) 0;
    background: linear-gradient(180deg, var(--pmc-bg-1) 0%, var(--pmc-bg-2) 100%);
    color: var(--pmc-ivory);
    border-top: 1px solid var(--pmc-line);
    position: relative;
    overflow: hidden;
}
.pmc-learn-more::before {
    /* subtle gold halo top-right */
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(215,191,129,0.10) 0%, transparent 60%);
    pointer-events: none;
}
.pmc-learn-more__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 960px) {
    .pmc-learn-more__inner {
        grid-template-columns: 1.15fr 1fr;
        gap: 64px;
    }
}

/* -- Left column: pitch -- */
.pmc-learn-more__pitch { max-width: 560px; }
.pmc-learn-more__title {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(36px, 4.6vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: var(--pmc-ivory) !important;
    text-wrap: balance;
}
.pmc-learn-more__title em {
    font-style: italic;
    color: var(--pmc-accent) !important;
}
.pmc-learn-more__lede {
    font-size: 16px;
    line-height: 1.6;
    color: var(--pmc-warm) !important;
    margin: 0 0 28px;
    max-width: 50ch;
}

/* Value-prop tiles row */
.pmc-learn-more__props {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 540px) {
    .pmc-learn-more__props { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}
.pmc-learn-more__props li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 14px 12px;
    background: rgba(215,191,129,0.06);
    border: 1px solid rgba(215,191,129,0.18);
    border-radius: 12px;
    text-align: left;
}
.pmc-learn-more__prop-num {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1;
    color: var(--pmc-accent);
    font-feature-settings: 'lnum';
}
.pmc-learn-more__prop-num small { font-size: 0.6em; vertical-align: top; margin-left: 1px; }
.pmc-learn-more__prop-lbl {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.25;
    color: var(--pmc-warm);
}

/* CTA row: primary button + secondary text-link */
.pmc-learn-more__ctas {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.pmc-learn-more__pricing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pmc-ivory);
    text-decoration: none;
    border-bottom: 1px solid var(--pmc-line-2);
    padding-bottom: 2px;
    transition: border-color 180ms var(--pmc-ease), color 180ms var(--pmc-ease);
}
.pmc-learn-more__pricing:hover {
    color: var(--pmc-accent);
    border-bottom-color: var(--pmc-accent);
}

/* Trust line under CTAs */
.pmc-learn-more__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin: 0;
    font-size: 12px;
    color: var(--pmc-muted) !important;
}
.pmc-learn-more__trust .pmc-icon {
    width: 12px; height: 12px;
    color: var(--pmc-accent);
    margin-right: 4px;
}

/* -- Right column: lesson cards -- */
.pmc-learn-more__cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.pmc-learn-more__cards-eyebrow {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--pmc-muted) !important;
    margin: 0 0 4px;
}

.pmc-learn-more__card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: var(--pmc-bg-2);
    border: 1px solid var(--pmc-line);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 220ms var(--pmc-ease), border-color 220ms var(--pmc-ease), background 220ms var(--pmc-ease);
}
.pmc-learn-more__card:hover {
    transform: translateY(-2px);
    border-color: rgba(215,191,129,0.35);
}
.pmc-learn-more__card.is-free {
    background: linear-gradient(135deg, rgba(215,191,129,0.06), var(--pmc-bg-2));
    border-color: rgba(215,191,129,0.30);
}
.pmc-learn-more__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.pmc-learn-more__num {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: 20px;
    color: var(--pmc-gold-dim);
}
.pmc-learn-more__chev { color: var(--pmc-muted); display: inline-flex; }
.pmc-learn-more__card:hover .pmc-learn-more__chev { color: var(--pmc-accent); }
.pmc-learn-more__badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(215,191,129,0.4);
    color: var(--pmc-accent);
}
.pmc-learn-more__card.is-free .pmc-learn-more__badge {
    background: var(--pmc-accent);
    color: #1A1816;
    border-color: var(--pmc-accent);
}
.pmc-learn-more__card.is-locked .pmc-learn-more__badge {
    border-color: rgba(245,241,232,0.18);
    color: var(--pmc-muted);
}
.pmc-learn-more__title-row {
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 6px;
    color: var(--pmc-ivory) !important;
}
.pmc-learn-more__meta {
    font-size: 12.5px;
    color: var(--pmc-muted) !important;
    margin: 0 0 12px;
}
.pmc-learn-more__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pmc-accent);
    margin-top: auto;
}

/* Locked-card overlay (subtle, not blocking) */
.pmc-learn-more__card.is-locked::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11,11,11,0.55);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: inherit;
    pointer-events: none;
}
.pmc-learn-more__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--pmc-accent);
    pointer-events: none;
}
.pmc-learn-more__overlay-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(215,191,129,0.15);
    border: 1px solid rgba(215,191,129,0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pmc-learn-more__overlay-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pmc-accent);
}

/* Gaming break section. Sits between The Path and Featured
   Module. Invites a quick arcade detour (Ledger Line / Note Invaders /
   Piano Hero by default; admin-overridable per cluster). */
.pmc-gaming-break {
    padding: clamp(48px, 7vw, 72px) 0;
    background: var(--pmc-bg-1);
    color: var(--pmc-ivory);
}
.pmc-gaming-break__card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(135deg, rgba(215,191,129,0.08), rgba(215,191,129,0.02));
    border: 1px solid rgba(215,191,129,0.20);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
@media (min-width: 720px) {
    .pmc-gaming-break__card { grid-template-columns: 1.4fr 1fr; gap: 40px; }
}
.pmc-gaming-break__text { position: relative; z-index: 2; }
.pmc-gaming-break__title {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.1;
    margin: 12px 0 14px;
    letter-spacing: -0.015em;
    color: var(--pmc-ivory) !important;
}
.pmc-gaming-break__title em {
    font-style: italic;
    color: var(--pmc-accent) !important;
}
.pmc-gaming-break__title strong {
    font-weight: 500;
    color: var(--pmc-accent) !important;
}
.pmc-gaming-break__blurb {
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--pmc-warm) !important;
    max-width: 50ch;
    margin: 0 0 22px;
}
.pmc-gaming-break__visual {
    position: relative;
    aspect-ratio: 1.6 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pmc-gaming-break__halo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(215,191,129,0.20), transparent 70%),
        repeating-linear-gradient(45deg, rgba(215,191,129,0.04) 0 8px, transparent 8px 18px);
    border-radius: 16px;
}
.pmc-gaming-break__icon {
    position: relative;
    z-index: 1;
    color: var(--pmc-accent);
    filter: drop-shadow(0 4px 24px rgba(215,191,129,0.35));
}
.pmc-gaming-break__icon svg {
    width: 100%;
    height: auto;
    max-width: 96px;
    stroke-width: 1.5;
}
/* Game cover art (pulled from the Play page catalog) replaces the generic
   star when the linked game has an image. Fills the visual slot, art stays
   uncropped-friendly with a soft frame. */
.pmc-gaming-break__img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(215,191,129,0.28);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

/* iframe fallback overlay (504 / load timeout) */
.pmc-game-frame { position: relative; }
.pmc-game-frame__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    gap: 16px;
    background: linear-gradient(180deg, rgba(11,11,11,0.92), rgba(11,11,11,0.96));
    color: var(--pmc-ivory);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pmc-game-frame__fallback p { margin: 0; max-width: 44ch; color: var(--pmc-warm); }
.pmc-game-frame__fallback strong { color: var(--pmc-ivory); }
.pmc-game-frame__fallback-actions {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* LMS mini-piano host inside cluster step layout */
.pmc-cluster--editorial .pmc-block--piano {
    background: var(--pmc-bg-2);
    border: 1px solid var(--pmc-line);
    border-radius: 16px;
    padding: 20px;
    margin: 18px 0;
    overflow: visible; /* don't clip the Listen button on the right */
}
.pmc-cluster--editorial .pmc-block__piano-host {
    width: 100%;
    min-height: 180px;
}
.pmc-cluster--editorial .pmc-block__piano-host .pm-mini-piano-wrapper {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    margin: 0;
    overflow: visible;
}
/* drop the LMS "Interactive Piano" header inside cluster blocks
 * (the cluster block already prints "Practice" eyebrow above; redundant). */
.pmc-cluster--editorial .pmc-block--piano .pm-mini-piano-title { display: none !important; }
.pmc-cluster--editorial .pmc-block--piano .pm-mini-piano-header {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 14px;
    margin: 0;
}
.pmc-cluster--editorial .pmc-block--piano .pm-mini-piano-controls {
    flex-wrap: wrap;
    gap: 6px;
}
.pmc-cluster--editorial .pmc-block--piano .pm-mp-btn {
    flex-shrink: 0;
}
@media (max-width: 540px) {
    .pmc-cluster--editorial .pmc-block--piano .pm-mp-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Exercise header: the title sits on its own line, then a clean chip row
 * (target, BPM, MIDI). The Checkpoint ribbon stays pinned top-right, clear of
 * the title. */
.pmc-cluster--editorial .pmc-block--exercise .pmc-block__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-right: 120px;   /* clear the ribbon on the first line */
    min-height: 36px;
}
.pmc-cluster--editorial .pmc-block--exercise .pmc-block__title { width: 100%; }
.pmc-block--exercise .pmc-exercise__meta {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.pmc-block--exercise .pmc-exercise__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.pmc-block--exercise .pmc-exercise__meta .pmc-midi { margin-left: 0; }
/* Step instructions stay a single readable column, never split into two. */
.pmc-exercise__steps li { columns: auto; column-count: 1; }
.pmc-exercise__steps li > .pmc-exercise__step-num { align-self: flex-start; margin-top: 1px; }
@media (max-width: 540px) {
    .pmc-cluster--editorial .pmc-block--exercise .pmc-block__head {
        padding-right: 0;
        padding-top: 34px; /* push title below the ribbon on narrow screens */
    }
    .pmc-cluster--editorial .pmc-block--exercise .pmc-exercise__ribbon {
        top: 12px;
        right: 12px;
    }
}
/* Inline ear-trainer block sits in step bodies, slightly tighter than the
   page-level trainer card. */
.pmc-cluster--editorial .pmc-block--trainer {
    margin: 18px 0;
}
.pmc-trainer__card--inline {
    padding: clamp(20px, 3vw, 32px) !important;
    margin: 0;
}
.pmc-trainer__card--inline::before { display: none; }

/* audio source indicator + CTA on the inline trainer */
.pmc-trainer__audio-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 12px;
    background: rgba(215,191,129,0.08);
    border: 1px solid rgba(215,191,129,0.25);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--pmc-accent);
    letter-spacing: 0.04em;
}
.pmc-trainer__audio-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pmc-accent);
    box-shadow: 0 0 10px rgba(215,191,129,0.7);
    animation: pmc-trainer-audio-pulse 2.4s ease-in-out infinite;
}
@keyframes pmc-trainer-audio-pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.85); }
    50%      { opacity: 1;    transform: scale(1.1); }
}
.pmc-trainer__cta {
    margin-top: 4px;
}

/* Light mode is driven by the site theme toggle (html[data-theme="light"]),
   not by the OS prefers-color-scheme. The full token flip lives in the
   "CLUSTER LIGHT THEME" block at the end of this file so backgrounds and text
   flip together instead of text flipping on its own (which used to leave dark
   text on a dark band when the OS was light). */

/* ============================================================
 * INTERACTIVE PRACTICE CONSOLE ([pmc_exercise])
 * Modular 2 / 3 / 4 octave keyboard, Listen + guided Your-turn.
 * ============================================================ */
/* The whole console (and the grid/flex cells it lives in) must be allowed to
   shrink so the wide keyboard SCROLLS inside its box instead of pushing the page
   past the screen. This is the min-width:0 + max-width:100% chain. */
.pmc-block--exercise.pmc-ex,
.pmc-feature__visual,
.pmc-feature__exercise { min-width: 0; max-width: 100%; }
.pmc-ex__console {
    margin-top: 16px;
    padding: 16px;
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--pmc-line);
    border-radius: var(--pmc-radius);
    background: linear-gradient(180deg, #ffffff 0%, var(--pmc-surface-alt) 100%);
    box-shadow: var(--pmc-shadow);
}
.pmc-ex__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.pmc-ex__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pmc-ink-mute);
    margin-bottom: 6px;
}
.pmc-ex__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pmc-ex__chip {
    font: 600 13px/1 var(--pmc-font);
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--pmc-line);
    background: #fff;
    color: var(--pmc-ink);
    cursor: pointer;
    transition: transform 0.15s var(--pmc-ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.pmc-ex__chip:hover { transform: translateY(-1px); border-color: var(--pmc-gold); }
.pmc-ex__chip.is-active {
    background: var(--pmc-gold);
    border-color: var(--pmc-gold);
    color: #1b1b1b;
    box-shadow: 0 6px 16px rgba(215,191,129,0.4);
}
.pmc-ex__chip.is-done {
    background: #eafaf0;
    border-color: #8fd6ab;
    color: #1d7a45;
}
.pmc-ex__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Keyboard size selector: match the board to a real piano (25 to 88 keys). */
.pmc-ex__sizewrap { display: inline-flex; align-items: center; gap: 7px; }
.pmc-ex__sizewrap .pmc-ex__eyebrow { margin: 0; }
.pmc-ex__selectbox { position: relative; display: inline-flex; align-items: center; }
.pmc-ex__selectbox svg { position: absolute; right: 8px; pointer-events: none; transform: rotate(90deg); color: var(--pmc-ink-soft); }
.pmc-ex__size {
    appearance: none; -webkit-appearance: none;
    font: 700 12px/1 var(--pmc-font);
    padding: 8px 26px 8px 11px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--pmc-ink);
    cursor: pointer;
}
.pmc-ex__findc {
    font: 700 12px/1 var(--pmc-font);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(212,175,90,0.5);
    border-radius: 999px;
    background: rgba(212,175,90,0.12);
    color: var(--pmc-ink);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.pmc-ex__findc:hover { background: rgba(212,175,90,0.22); border-color: var(--pmc-gold); }
.pmc-ex__expand {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 999px;
    background: #fff; color: var(--pmc-ink-soft);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.pmc-ex__expand:hover { background: #f3f4f8; color: var(--pmc-ink); }
.pmc-ex__expand[aria-pressed="true"] { background: var(--pmc-ink); color: #fff; border-color: var(--pmc-ink); }
.pmc-ex__ctl-gap { flex: 1 1 auto; }

/* Program: the little list of exercises to work through in one console. */
.pmc-ex__program { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.pmc-ex__drills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pmc-ex__drill {
    font: 700 12px/1 var(--pmc-font);
    padding: 8px 13px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--pmc-ink-soft);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pmc-ex__drill:hover { background: #f3f4f8; color: var(--pmc-ink); }
.pmc-ex__drill.is-active { background: var(--pmc-ink); color: #fff; border-color: var(--pmc-ink); }
.pmc-ex__drill:focus-visible { outline: 2px solid var(--pmc-gold); outline-offset: 1px; }

/* Keyboard. The board keeps real, usable key widths and scrolls horizontally
   inside its box, so any size from 25 to 88 keys ALWAYS fits the container. When
   the board is narrower than the box it centres; when wider it scrolls. */
.pmc-ex__keyboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 5px;
    scroll-behavior: smooth;
}
.pmc-ex__kb {
    position: relative;
    width: max-content;
    margin: 0 auto;                       /* centre when it fits */
    --ex-kw: clamp(30px, 4.4vw, 42px);    /* one white key */
    height: clamp(128px, 24vw, 184px);
    user-select: none;
    touch-action: manipulation;
}
.pmc-ex.is-expanded .pmc-ex__kb { --ex-kw: clamp(40px, 4vw, 52px); }
.pmc-ex__whites { display: flex; height: 100%; gap: 0; }
.pmc-ex__white {
    flex: 0 0 var(--ex-kw);
    width: var(--ex-kw);
    height: 100%;
    margin: 0 1px;
    border: 1px solid #d7d7de;
    border-top: 0;
    border-radius: 0 0 7px 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f8 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    cursor: pointer;
    transition: background 0.1s, box-shadow 0.1s;
}
.pmc-ex__blacks { position: absolute; inset: 0; pointer-events: none; }
.pmc-ex__black {
    position: absolute;
    top: 0;
    width: calc(var(--ex-kw) * 0.62);
    height: 62%;
    transform: translateX(-50%);
    border: 1px solid #0b0b0b;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(180deg, #3a3a40 0%, #131316 100%);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 3px 5px rgba(0,0,0,0.4);
}
/* Expand is a DESKTOP-ONLY affordance (the JS guard and the media query below
   keep it off phones and anything under 1024px). It expands the console IN PLACE,
   in normal flow: the keyboard grows bigger and the block breaks out to the full
   content width, so the content above stays put and the content below reflows
   down. No overlay and no dim backdrop, so nothing is ever covered. Click expand
   again or press Escape to collapse. */
.pmc-ex.is-expanded {
    position: relative;
    z-index: 2;
    /* Grow in place, in normal flow. No viewport break-out: an overflow-hidden
       ancestor would clip it (that is why the container did not widen and the
       keyboard got cut). Instead the keyboard reflows to fit the width below. */
    margin-top: clamp(18px, 2.4vw, 30px);
    margin-bottom: clamp(18px, 2.4vw, 30px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.20);
    border-radius: var(--pmc-radius);
    animation: pmc-ex-grow 0.22s ease;
}
/* The expand button only makes sense where the fuller keyboard is comfortable:
   hide it on phones, small tablets and portrait, so the keyboard simply scrolls
   in place there instead. */
.pmc-ex__expand { display: none; }
@media (min-width: 1024px) {
    .pmc-ex__expand { display: inline-flex; }
}
@keyframes pmc-ex-grow { from { opacity: 0.7; } to { opacity: 1; } }
/* The WHOLE keyboard fits the console width at once: every white key shares the
   width equally (flex) so all keys are visible with no horizontal scroll and
   nothing is cut, and the black keys scale from the octave count so they stay
   aligned over the white keys. */
.pmc-ex.is-expanded .pmc-ex__console { overflow: hidden; }
.pmc-ex.is-expanded .pmc-ex__keyboard { width: 100%; overflow: visible; }
.pmc-ex.is-expanded .pmc-ex__kb { width: 100%; height: clamp(150px, 18vw, 220px); margin: 0; }
.pmc-ex.is-expanded .pmc-ex__whites { width: 100%; }
.pmc-ex.is-expanded .pmc-ex__white { flex: 1 1 0; width: auto; min-width: 0; margin: 0; }
.pmc-ex.is-expanded .pmc-ex__black { width: calc(62% / (var(--ex-oct, 3) * 7 + 1)); }
/* Middle-C finder: pulse C4 so the learner can spot it on their own piano. */
.pmc-ex__key.is-findc { z-index: 3; animation: pmc-ex-findc 1.9s ease; }
.pmc-ex__white.is-findc { background: linear-gradient(180deg, #fff3cf 0%, #f6e3a8 100%); }
@keyframes pmc-ex-findc {
    0%, 100% { box-shadow: none; }
    12%, 78% { box-shadow: inset 0 0 0 3px var(--pmc-gold), 0 0 16px rgba(212,175,90,0.75); }
}
/* Preview: the keys you are about to play, lit softly before Your turn, so a
   chord is visibly a chord (all its notes), not one mystery key. */
.pmc-ex__white.is-preview { background: linear-gradient(180deg, #fffaf0 0%, #f6e8c8 100%); box-shadow: inset 0 -4px 0 var(--pmc-gold); }
.pmc-ex__black.is-preview { background: linear-gradient(180deg, #7a6224 0%, #43340f 100%); box-shadow: inset 0 -3px 0 var(--pmc-gold); }
.pmc-ex__lbl { font: 600 11px/1 var(--pmc-font); color: #9aa0aa; pointer-events: none; }
.pmc-ex__white:hover { background: #eef0f6; }
.pmc-ex__black:hover { background: linear-gradient(180deg, #4a4a52 0%, #1c1c20 100%); }

/* Key states */
.pmc-ex__white.is-pressed { background: linear-gradient(180deg, #fbeec6 0%, #f2dca0 100%); }
.pmc-ex__black.is-pressed { background: linear-gradient(180deg, #b9913f 0%, #8a6a22 100%); }
.pmc-ex__key.is-target {
    box-shadow: inset 0 0 0 2px var(--pmc-gold), 0 0 14px rgba(215,191,129,0.7);
    animation: pmc-ex-pulse 1.1s ease-in-out infinite;
}
.pmc-ex__white.is-target { background: linear-gradient(180deg, #fff7e0 0%, #fbedc0 100%); }
.pmc-ex__black.is-target { background: linear-gradient(180deg, #6b561f 0%, #3a2e10 100%); }
.pmc-ex__key.is-correct {
    box-shadow: inset 0 0 0 2px #41b06e;
    animation: none;
}
.pmc-ex__white.is-correct { background: linear-gradient(180deg, #e6f8ee 0%, #c8eed8 100%); }
.pmc-ex__black.is-correct { background: linear-gradient(180deg, #2f8f57 0%, #1c6e40 100%); }
.pmc-ex__key.is-wrong { box-shadow: inset 0 0 0 2px #e0524a; animation: pmc-ex-shake 0.26s; }
@keyframes pmc-ex-pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.07); } }
@keyframes pmc-ex-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.pmc-ex__black.is-target, .pmc-ex__black.is-correct, .pmc-ex__black.is-wrong { transform: translateX(-50%); }

/* Status + progress */
.pmc-ex__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}
.pmc-ex__prompt { margin: 0; font-size: 14px; font-weight: 600; color: var(--pmc-ink); }
.pmc-ex__score { font-size: 13px; font-weight: 700; color: var(--pmc-gold-dark); white-space: nowrap; }
.pmc-ex__progress { display: flex; gap: 6px; margin-top: 12px; }
.pmc-ex__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(0,0,0,0.12); transition: background 0.25s, transform 0.25s; }
.pmc-ex__dot.is-done { background: var(--pmc-gold); transform: scale(1.15); }
.pmc-ex__bpm { font-weight: 700; color: var(--pmc-ink-mute); }
.pmc-btn.is-replay [data-ex-go] { display: inline; }
.pmc-ex__size:focus-visible, .pmc-ex__findc:focus-visible, .pmc-ex__expand:focus-visible, .pmc-ex__chip:focus-visible, .pmc-ex__key:focus-visible { outline: 2px solid var(--pmc-gold); outline-offset: 1px; }

/* MIDI-ready badge, shown on every interactive practice component to signal
   that the learner can connect a real MIDI keyboard and play along. Works on
   both the light component heads and the dark exercise console. */
.pmc-midi {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid rgba(215,191,129,0.32);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pmc-gold);
    background: rgba(215,191,129,0.08);
    white-space: nowrap;
    line-height: 1;
}
.pmc-midi .pmc-icon { color: var(--pmc-gold); flex: 0 0 auto; }
.pmc-exercise__meta .pmc-midi { margin-left: auto; }

@media (max-width: 560px) {
    .pmc-ex__toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    /* Secondary controls (keyboard size, find middle C) wrap onto their own row;
       the two primary actions (Listen, Your turn) get a clear full-width row so
       it is obvious what to press. */
    .pmc-ex__controls { flex-wrap: wrap; gap: 8px; }
    .pmc-ex__sizewrap { flex: 1 1 100%; }
    .pmc-ex__findc { flex: 1 1 auto; justify-content: center; }
    .pmc-ex__ctl-gap { display: none; }
    .pmc-ex__controls [data-ex-listen],
    .pmc-ex__controls [data-ex-go] { flex: 1 1 0; justify-content: center; }
    .pmc-ex__lbl { font-size: 9px; }
    /* Reclaim space on phones: the dark checkpoint card and its console shed
       padding so the keyboard gets the width, and the ribbon sits inline. */
    .pmc-block--exercise { padding: 16px; }
    .pmc-ex__console { padding: 12px; }
    .pmc-exercise__ribbon { position: static; margin-bottom: 10px; }
    .pmc-exercise__steps { margin: 14px 0; }
    .pmc-ex__sizewrap, .pmc-ex__selectbox, .pmc-ex__size { max-width: 100%; }
    /* A soft right-edge fade hints that the keyboard scrolls when it is wider
       than the phone, so it never looks like a cut-off, incomplete keyboard. */
    .pmc-ex__keyboard {
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
        mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
    }
}

/* ============================================================
 * "UNDERSTAND IT" TEACHING SECTION (render-time, cluster-teaching.php)
 * Concept prose + a common-mistakes panel + a worked example.
 * ============================================================ */
.pmc-learn { padding: clamp(40px, 6vw, 72px) 0; }
.pmc-learn__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 28px;
    align-items: start;
}
@media (min-width: 900px) {
    .pmc-learn__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; }
}
.pmc-learn__concept { min-width: 0; }
.pmc-learn__concept p { margin: 0 0 1em; }
.pmc-learn__concept p:last-child { margin-bottom: 0; }

.pmc-learn__mistakes {
    min-width: 0;
    background: var(--pmc-bg-1, #faf7f0);
    border: 1px solid var(--pmc-line-2, #e7e0d2);
    border-radius: 18px;
    padding: clamp(18px, 2.4vw, 26px);
}
.pmc-learn__mh {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 16px;
    font: 600 12px/1 var(--pmc-font);
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--pmc-gold-dark, #9a7b2e);
}
.pmc-learn__mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pmc-learn__mitem { display: flex; flex-direction: column; gap: 5px; padding-left: 18px; position: relative; }
.pmc-learn__mitem::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--pmc-gold, #d7bf81);
}
.pmc-learn__mbad { font-weight: 600; color: var(--pmc-ink, #25221d); }
.pmc-learn__mfix { font-size: 0.95em; color: var(--pmc-ink-soft, #5f5848); }
.pmc-learn__mfix::before { content: 'Fix: '; font-weight: 700; color: var(--pmc-gold-dark, #9a7b2e); }

.pmc-learn__example { margin-top: 32px; }
.pmc-learn__exh {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 12px;
    font: 600 15px/1.3 var(--pmc-font);
    color: var(--pmc-ink, #25221d);
}

/* Deeper layer: advanced insight, practice progression, progress marker. */
.pmc-learn__deepen { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--pmc-line-2, #e7e0d2); }
.pmc-learn__deeper { margin-bottom: 24px; }
.pmc-learn__deeper p { margin: 0 0 1em; }
.pmc-learn__deeper p:last-child { margin-bottom: 0; }
.pmc-learn__deepen-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
@media (min-width: 760px) {
    .pmc-learn__deepen-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
}
.pmc-learn__steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.pmc-learn__steps li { padding-left: 4px; color: var(--pmc-ink, #25221d); }
.pmc-learn__steps li::marker { color: var(--pmc-gold-dark, #9a7b2e); font-weight: 700; }
.pmc-learn__check {
    min-width: 0;
    background: linear-gradient(180deg, rgba(215,191,129,0.12), rgba(215,191,129,0.04));
    border: 1px solid var(--pmc-line-2, #e7e0d2);
    border-radius: 16px;
    padding: clamp(16px, 2.2vw, 22px);
}
.pmc-learn__check-lbl {
    display: flex; align-items: center; gap: 7px;
    font: 600 12px/1 var(--pmc-font);
    letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--pmc-gold-dark, #9a7b2e);
    margin-bottom: 9px;
}
.pmc-learn__check p { margin: 0; color: var(--pmc-ink, #25221d); }

/* ============================================================
 * RECOMMENDED PRODUCTS SLIDER ([pmc_products] / [pmc_product])
 * Short, text led promo band. No product image by design.
 * ============================================================ */
.pmc-products { margin: 28px 0; }
.pmc-products__head {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "eyebrow nav" "title nav" "intro nav";
    align-items: center;
    gap: 2px 16px;
    margin-bottom: 16px;
}
.pmc-products__head .pmc-block__eyebrow { grid-area: eyebrow; }
.pmc-products__title { grid-area: title; margin: 2px 0 0; font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: var(--pmc-ink); }
.pmc-products__intro { grid-area: intro; margin: 4px 0 0; color: var(--pmc-ink-soft); font-size: 15px; max-width: 60ch; }
.pmc-products__nav { grid-area: nav; display: flex; gap: 8px; align-self: start; }
.pmc-products__arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--pmc-line);
    background: #fff;
    color: var(--pmc-ink);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s var(--pmc-ease), opacity 0.2s;
}
.pmc-products__arrow:hover { border-color: var(--pmc-gold); transform: translateY(-1px); }
.pmc-products__arrow[disabled] { opacity: 0.35; cursor: default; transform: none; }
.pmc-products__arrow[data-pmc-prod-prev] svg { transform: rotate(180deg); }
.pmc-products__viewport { overflow: hidden; margin: 0 -4px; }
.pmc-products__track {
    display: flex;
    gap: 14px;
    padding: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.pmc-products__track::-webkit-scrollbar { display: none; }
.pmc-prod-card {
    scroll-snap-align: start;
    flex: 0 0 clamp(240px, 80%, 320px);
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--pmc-line);
    border-radius: var(--pmc-radius);
    background: linear-gradient(180deg, #fff 0%, var(--pmc-surface-alt) 100%);
    box-shadow: var(--pmc-shadow);
    transition: transform 0.25s var(--pmc-ease), box-shadow 0.25s var(--pmc-ease);
}
.pmc-prod-card:hover { transform: translateY(-4px); box-shadow: var(--pmc-shadow-hover); }
.pmc-prod-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 22px; }
.pmc-prod-card__badge {
    font: 700 11px/1 var(--pmc-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(215,191,129,0.18);
    color: var(--pmc-gold-dark);
}
.pmc-prod-card__price { font-weight: 800; color: var(--pmc-ink); font-size: 15px; }
.pmc-prod-card__title { margin: 0 0 6px; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--pmc-ink); }
.pmc-prod-card__blurb { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--pmc-ink-soft); flex: 1; }
.pmc-prod-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pmc-prod-card__preview { margin-top: 12px; border-top: 1px solid var(--pmc-line); padding-top: 10px; }
.pmc-prod-card__preview summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: var(--pmc-gold-dark);
    list-style: none;
}
.pmc-prod-card__preview summary::-webkit-details-marker { display: none; }
.pmc-prod-card__preview summary::before { content: " "; }
.pmc-prod-card__preview[open] summary::before { content: " "; }
.pmc-prod-card__embed { margin-top: 10px; }
.pmc-prod-card__embed iframe { width: 100%; border: 0; border-radius: var(--pmc-radius-sm); }
@media (max-width: 600px) {
    .pmc-products__head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "intro" "nav"; }
    .pmc-products__nav { margin-top: 12px; }
    .pmc-prod-card { flex-basis: 84%; }
}

/* ============================================================
 * MODULAR BLOCK REGION ([pmc_blocks])
 * ============================================================ */
.pmc-blocks { padding: 8px 0; }
.pmc-blocks > .pmc-container > .pmc-block { margin: 26px 0; }
.pmc-richtext__title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--pmc-ink); margin: 0 0 10px; }
.pmc-richtext__body { font-size: 16px; line-height: 1.7; color: var(--pmc-ink-soft); }
.pmc-richtext__body p { margin: 0 0 14px; }

.pmc-cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(20px, 4vw, 34px);
    border-radius: var(--pmc-radius-lg);
    background: linear-gradient(135deg, #1f1d1a 0%, #2c2924 100%);
    color: #fff;
    box-shadow: var(--pmc-shadow);
}
.pmc-cta-band__text { flex: 1 1 280px; }
.pmc-cta-band__text h3 { margin: 0 0 6px; font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: #fff; }
.pmc-cta-band__text p { margin: 0; color: rgba(255,255,255,0.82); font-size: 15px; }
.pmc-cta-band .pmc-btn { flex: 0 0 auto; }

/* ============================================================
 * PRODUCT SHOWCASE GRID (block: product_grid)
 * Icon led, no product photo. Sits between the LMS band and the
 * resources grid. Highlighted, premium cards.
 * ============================================================ */
.pmc-prodgrid {
    margin: 30px 0;
    padding: clamp(22px, 4vw, 38px);
    border-radius: var(--pmc-radius-lg);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(215,191,129,0.14), transparent 55%),
        linear-gradient(180deg, #fffdf8 0%, #faf6ec 100%);
    border: 1px solid rgba(215,191,129,0.35);
    box-shadow: var(--pmc-shadow);
}
.pmc-prodgrid__head { text-align: center; max-width: 64ch; margin: 0 auto 22px; }
.pmc-prodgrid__head .pmc-block__eyebrow { justify-content: center; color: var(--pmc-gold-dark); }
.pmc-prodgrid__heading { margin: 6px 0 4px; font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; color: var(--pmc-ink); }
.pmc-prodgrid__intro { margin: 0; color: var(--pmc-ink-soft); font-size: 15px; }
.pmc-prodgrid__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.pmc-prodgrid__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    border-radius: var(--pmc-radius);
    background: var(--pmc-surface);
    border: 1px solid var(--pmc-line);
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.25s var(--pmc-ease), box-shadow 0.25s var(--pmc-ease), border-color 0.25s;
}
.pmc-prodgrid__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pmc-shadow-glow);
    border-color: rgba(215,191,129,0.6);
}
.pmc-prodgrid__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin-bottom: 14px;
    color: var(--pmc-gold-dark);
    background: linear-gradient(140deg, rgba(215,191,129,0.22), rgba(215,191,129,0.08));
    box-shadow: inset 0 0 0 1px rgba(215,191,129,0.4);
}
.pmc-prodgrid__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font: 700 10px/1 var(--pmc-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--pmc-ink);
    color: #fff;
}
.pmc-prodgrid__title { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--pmc-ink); line-height: 1.25; }
.pmc-prodgrid__blurb { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--pmc-ink-soft); flex: 1; }
.pmc-prodgrid__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; width: 100%; }
.pmc-prodgrid__actions .pmc-btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 480px) {
    .pmc-prodgrid__grid { grid-template-columns: 1fr; }
}

.pmc-sr-deeplink { margin: 10px 0 0; }

/* ============================================================
 * EAR TRAINER PRESET BADGE, STUDIO, AFFILIATE, CONCERT HALL
 * ============================================================ */
.pmc-et__preset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.pmc-et__preset-tag {
    font: 700 12px/1 var(--pmc-font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--pmc-gold);
    color: #1b1b1b;
}
.pmc-et__preset-meta { font-size: 13px; color: var(--pmc-ink-mute); font-weight: 600; }

/* Home studio promo */
.pmc-studio {
    padding: clamp(22px, 4vw, 36px);
    border-radius: var(--pmc-radius-lg);
    background: linear-gradient(135deg, #14171c 0%, #20262e 100%);
    color: #fff;
    box-shadow: var(--pmc-shadow);
}
.pmc-studio__text { max-width: 62ch; }
.pmc-studio .pmc-block__eyebrow { color: var(--pmc-gold); }
.pmc-studio__heading { margin: 6px 0 8px; font-size: clamp(21px, 3vw, 28px); font-weight: 800; color: #fff; }
.pmc-studio__intro { margin: 0 0 14px; color: rgba(255,255,255,0.8); font-size: 15px; }
.pmc-studio__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.pmc-studio__list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.92); }
.pmc-studio__list li svg { color: var(--pmc-gold); flex: 0 0 auto; }

/* Affiliate gear grid (uses the [pm_buy] cards) */
.pmc-affiliate { margin: 28px 0; }
.pmc-affiliate__head { text-align: center; max-width: 62ch; margin: 0 auto 18px; }
.pmc-affiliate__head .pmc-block__eyebrow { justify-content: center; color: var(--pmc-gold-dark); }
.pmc-affiliate__heading { margin: 6px 0 4px; font-size: clamp(20px, 3vw, 27px); font-weight: 800; color: var(--pmc-ink); }
.pmc-affiliate__intro { margin: 0; color: var(--pmc-ink-soft); font-size: 15px; }
.pmc-affiliate__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pmc-affiliate__card { border: 1px solid var(--pmc-line); border-radius: var(--pmc-radius); padding: 16px; background: var(--pmc-surface); box-shadow: var(--pmc-shadow); }
.pmc-affiliate__pitch { margin: 0 0 10px; font-size: 14px; color: var(--pmc-ink-soft); font-weight: 600; }

/* Concert hall break */
.pmc-concert {
    background-size: cover;
    background-position: center;
    border-radius: var(--pmc-radius-lg);
    padding: clamp(34px, 7vw, 70px) clamp(22px, 4vw, 40px);
    text-align: center;
    color: #fff;
    box-shadow: var(--pmc-shadow);
}
.pmc-concert__inner { max-width: 60ch; margin: 0 auto; }
.pmc-concert .pmc-block__eyebrow { justify-content: center; color: var(--pmc-gold); }
.pmc-concert__heading { margin: 8px 0 8px; font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: #fff; }
.pmc-concert__intro { margin: 0 0 20px; color: rgba(255,255,255,0.86); font-size: 16px; }

/* ================================================================
 * "UNDERSTAND IT" TEACHING SECTION, redesign + theme-aware (v2)
 *
 * The cluster reading bands now flip with the site theme toggle
 * (html[data-theme]). Dark is the default (matches Learn / Listen),
 * light activates on html[data-theme="light"]. The worked-example
 * piano card stays light and spotlit on the dark band, the way the
 * Learn page lights its piano stage. Every value goes through the
 * --pmc-read-* tokens so the two themes share one set of rules.
 * ================================================================ */

/* Theme tokens, DARK default (warm near-black, like the Learn stage). */
.pmc-cluster {
    --pmc-read-band:        #0d0b08;
    --pmc-read-hairline:    rgba(245,241,232,0.10);
    --pmc-read-glow:        rgba(215,191,129,0.07);
    --pmc-read-card:        rgba(245,241,232,0.038);
    --pmc-read-card-2:      rgba(245,241,232,0.06);
    --pmc-read-border:      rgba(245,241,232,0.11);
    --pmc-read-border-gold: rgba(215,191,129,0.26);
    --pmc-read-heading:     #FBF8F1;
    --pmc-read-text:        #F1ECE1;
    --pmc-read-prose:       rgba(243,238,228,0.85);
    --pmc-read-text-soft:   rgba(243,238,228,0.62);
    --pmc-read-text-mute:   rgba(243,238,228,0.44);
    --pmc-read-gold:        #E8D9AE;
    --pmc-read-gold-deep:   #D7BF81;
    --pmc-read-wash:        rgba(215,191,129,0.10);
    --pmc-read-shadow:      0 22px 60px rgba(0,0,0,0.45);
}
/* Theme tokens, LIGHT (cream paper). Driven by the site theme toggle. */
html[data-theme="light"] .pmc-cluster {
    --pmc-read-band:        #FAF7F2;
    --pmc-read-hairline:    rgba(20,18,15,0.10);
    --pmc-read-glow:        transparent;
    --pmc-read-card:        #FFFFFF;
    --pmc-read-card-2:      #FBF7EE;
    --pmc-read-border:      rgba(20,18,15,0.10);
    --pmc-read-border-gold: rgba(160,137,74,0.28);
    --pmc-read-heading:     #1A1510;
    --pmc-read-text:        #2A241B;
    --pmc-read-prose:       #4A4336;
    --pmc-read-text-soft:   #6A6354;
    --pmc-read-text-mute:   #8F8676;
    --pmc-read-gold:        #9A7B2E;
    --pmc-read-gold-deep:   #846A2C;
    --pmc-read-wash:        rgba(160,137,74,0.08);
    --pmc-read-shadow:      0 16px 40px rgba(40,33,18,0.10);
}

/* --- Band + header --- */
.pmc-cluster .pmc-learn {
    position: relative;
    background: var(--pmc-read-band);
    border-top: 1px solid var(--pmc-read-hairline);
    border-bottom: 1px solid var(--pmc-read-hairline);
    padding: clamp(48px, 6.5vw, 88px) 0;
    overflow: hidden;
}
.pmc-cluster .pmc-learn::before {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(72% 58% at 88% -4%, var(--pmc-read-glow), transparent 60%);
}
.pmc-cluster .pmc-learn__container { position: relative; z-index: 1; }
.pmc-cluster .pmc-learn__head { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 44px); }
.pmc-cluster .pmc-learn__eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font: 700 11px/1 var(--pmc-font);
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--pmc-read-gold-deep) !important;
    margin: 0 0 16px;
}
.pmc-cluster .pmc-learn__eyebrow svg { width: 14px; height: 14px; }
.pmc-cluster .pmc-learn__title {
    font-family: var(--pmc-serif, Georgia, serif);
    font-weight: 300;
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--pmc-read-heading) !important;
    margin: 0 0 16px;
}
.pmc-cluster .pmc-learn__dek {
    margin: 0;
    color: var(--pmc-read-text-soft);
    font: 400 clamp(15px, 1.5vw, 17px)/1.6 var(--pmc-font);
    max-width: 58ch;
}

/* --- Card system --- */
.pmc-cluster .pmc-learn__card {
    min-width: 0;
    background: var(--pmc-read-card);
    border: 1px solid var(--pmc-read-border);
    border-radius: 20px;
    padding: clamp(22px, 2.6vw, 34px);
}
.pmc-cluster .pmc-learn__kicker {
    display: inline-flex; align-items: center; gap: 7px;
    font: 700 11px/1 var(--pmc-font);
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--pmc-read-gold);
    margin: 0 0 16px;
}
.pmc-cluster .pmc-learn__kicker svg { width: 13px; height: 13px; }
.pmc-cluster .pmc-learn__kicker--gold { color: var(--pmc-read-gold-deep); }

/* Prose inside the cards (beats the editorial !important rules by source order). */
.pmc-cluster .pmc-learn__prose,
.pmc-cluster .pmc-learn__prose p,
.pmc-cluster .pmc-learn__prose li {
    color: var(--pmc-read-prose) !important;
    max-width: none;
}
.pmc-cluster .pmc-learn__prose strong { color: var(--pmc-read-text) !important; font-weight: 600; }
.pmc-cluster .pmc-learn__prose em { color: var(--pmc-read-gold-deep) !important; }
.pmc-cluster .pmc-learn__prose h2,
.pmc-cluster .pmc-learn__prose h3,
.pmc-cluster .pmc-learn__prose h4 { color: var(--pmc-read-heading) !important; }
.pmc-cluster .pmc-learn__prose > :first-child { margin-top: 0; }
.pmc-cluster .pmc-learn__prose > :last-child { margin-bottom: 0; }

/* Free-form content headings inside a step body (and the step resources title)
   follow the reading theme. They render arbitrary editor HTML whose headings
   used the legacy --pmc-ink (always near-black), so an H4 was black-on-black on
   the dark reading band (user: pmc step body H4 invisible in dark mode). The
   --pmc-read-heading token is light on dark and dark on light, so it is correct
   in BOTH themes. */
.pmc-cluster .pmc-step__desc h1,
.pmc-cluster .pmc-step__desc h2,
.pmc-cluster .pmc-step__desc h3,
.pmc-cluster .pmc-step__desc h4,
.pmc-cluster .pmc-step__desc h5,
.pmc-cluster .pmc-step__desc h6,
.pmc-cluster .pmc-step__rh { color: var(--pmc-read-heading) !important; }
.pmc-cluster .pmc-step__desc strong,
.pmc-cluster .pmc-step__desc b { color: var(--pmc-read-text); }

/* Row 1: concept + mistakes */
.pmc-cluster .pmc-learn__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin: 0;
}
@media (min-width: 900px) {
    .pmc-cluster .pmc-learn__grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }
}
.pmc-cluster .pmc-learn__concept .pmc-learn__prose > p:first-child { font-size: 1.1em; line-height: 1.7; }

/* Mistakes card: warm, gold-tinted, hairline-separated items with a Fix chip. */
.pmc-cluster .pmc-learn__mistakes {
    background:
        linear-gradient(180deg, var(--pmc-read-wash), transparent 62%),
        var(--pmc-read-card);
    border-color: var(--pmc-read-border-gold);
}
.pmc-cluster .pmc-learn__mh {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 18px;
    font: 700 12px/1 var(--pmc-font);
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--pmc-read-gold);
}
.pmc-cluster .pmc-learn__mh svg { width: 14px; height: 14px; }
.pmc-cluster .pmc-learn__mlist { list-style: none; margin: 0; padding: 0; }
.pmc-cluster .pmc-learn__mitem { display: grid; gap: 8px; }
.pmc-cluster .pmc-learn__mitem + .pmc-learn__mitem {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--pmc-read-border);
}
.pmc-cluster .pmc-learn__mbad { font-weight: 600; color: var(--pmc-read-text); line-height: 1.5; }
.pmc-cluster .pmc-learn__mfix { font-size: 0.95em; color: var(--pmc-read-text-soft); line-height: 1.55; }
.pmc-cluster .pmc-learn__mfix::before {
    content: 'Fix';
    display: inline-block; margin-right: 8px; padding: 2px 8px;
    border-radius: 999px;
    background: var(--pmc-read-wash);
    border: 1px solid var(--pmc-read-border-gold);
    color: var(--pmc-read-gold-deep);
    font: 700 10px/1.4 var(--pmc-font);
    letter-spacing: 0.05em; text-transform: uppercase;
    vertical-align: 1px;
}

/* Row 2: worked example "lab". Piano card stays light + spotlit inside. */
.pmc-cluster .pmc-learn__example { margin-top: 22px; }
.pmc-cluster .pmc-learn__cardhead { margin-bottom: 6px; }
.pmc-cluster .pmc-learn__exh {
    margin: 0;
    font-family: var(--pmc-serif, Georgia, serif);
    font-weight: 400;
    font-size: clamp(19px, 2.4vw, 26px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--pmc-read-heading) !important;
}
.pmc-cluster .pmc-learn__example .pmc-learn__prose { margin-top: 14px; }
.pmc-cluster .pmc-learn__example .pmc-block { margin: 20px 0 0; }
.pmc-cluster .pmc-learn__example .pmc-block:first-child { margin-top: 0; }

/* Row 3: deepen (Go deeper + a two-up of progression and the marker). */
.pmc-cluster .pmc-learn__deepen { margin-top: 22px; display: grid; gap: 22px; }
.pmc-cluster .pmc-learn__deeper { position: relative; }
.pmc-cluster .pmc-learn__deepen-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}
@media (min-width: 760px) {
    .pmc-cluster .pmc-learn__deepen-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}

/* Practice progression: a numbered vertical stepper (CSS counters). */
.pmc-cluster .pmc-learn__steps {
    list-style: none; counter-reset: pmstep;
    margin: 4px 0 0; padding: 0;
}
.pmc-cluster .pmc-learn__steps li {
    counter-increment: pmstep;
    position: relative;
    padding: 0 0 20px 48px;
    color: var(--pmc-read-text);
    line-height: 1.55;
}
.pmc-cluster .pmc-learn__steps li:last-child { padding-bottom: 0; }
.pmc-cluster .pmc-learn__steps li::before {
    content: counter(pmstep);
    position: absolute; left: 0; top: -1px;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pmc-gold), var(--pmc-gold-dark));
    color: #1c1608;
    font: 800 13px/1 var(--pmc-font);
    box-shadow: 0 4px 14px rgba(215,191,129,0.28);
}
.pmc-cluster .pmc-learn__steps li::after {
    content: '';
    position: absolute; left: 14px; top: 32px; bottom: 6px;
    width: 2px;
    background: var(--pmc-read-border-gold);
}
.pmc-cluster .pmc-learn__steps li:last-child::after { display: none; }

/* "You are improving when" callout: highlighted, gold-tinted. */
.pmc-cluster .pmc-learn__check {
    display: flex; flex-direction: column; justify-content: center;
    background:
        linear-gradient(180deg, var(--pmc-read-wash), transparent),
        var(--pmc-read-card);
    border-color: var(--pmc-read-border-gold);
}
.pmc-cluster .pmc-learn__check-lbl {
    display: flex; align-items: center; gap: 8px;
    font: 700 12px/1.1 var(--pmc-font);
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--pmc-read-gold);
    margin: 0 0 12px;
}
.pmc-cluster .pmc-learn__check-lbl svg { width: 14px; height: 14px; flex: none; }
.pmc-cluster .pmc-learn__check p {
    margin: 0;
    color: var(--pmc-read-text) !important;
    font-size: 1.02em; line-height: 1.6;
}

/* Small-phone tightening. */
@media (max-width: 560px) {
    .pmc-cluster .pmc-learn__card { border-radius: 16px; padding: 20px; }
    .pmc-cluster .pmc-learn__steps li { padding-left: 42px; }
    .pmc-cluster .pmc-learn__steps li::before { width: 27px; height: 27px; font-size: 12px; }
    .pmc-cluster .pmc-learn__steps li::after { left: 12.5px; }
}

/* ================================================================
 * CLUSTER LIGHT THEME (site toggle, html[data-theme="light"])
 *
 * Dark is the default (matches Listen and the design system). When the
 * site toggle is set to light, the cluster flips to a warm cream theme
 * like the Learn page: the token-driven flow bands (intro, trainer, path,
 * feature, others, narrative, footer) turn cream with dark text, while the
 * hardcoded dark stages (hero, the featured visual, the practice console,
 * game embeds) stay dark, so they read as lit
 * stages on paper. One token flip drives the bulk of it.
 * ================================================================ */
html[data-theme="light"] .pmc-cluster--editorial {
    --pmc-bg-1:  #FAF7F2;
    --pmc-bg-2:  #F1EADE;
    --pmc-bg-3:  #E8DFD0;
    --pmc-ivory: #1C1711;
    --pmc-warm:  #322B22;
    --pmc-muted:   rgba(28,23,17,0.68);   /* .60 read 4.4:1 on the second band */
    --pmc-muted-2: rgba(28,23,17,0.40);
    --pmc-line:    rgba(28,23,17,0.10);
    --pmc-line-2:  rgba(28,23,17,0.16);
    --pmc-gold-soft: #7A5F1C;
    --pmc-gold-dim:  rgba(138,109,36,0.45);
}

/* Gold reads too pale on cream, so deepen it for text accents in light mode. */
html[data-theme="light"] .pmc-cluster--editorial .pmc-eyebrow,
html[data-theme="light"] .pmc-cluster--editorial .pmc-block__eyebrow,
html[data-theme="light"] .pmc-cluster--editorial .pmc-section-title em,
html[data-theme="light"] .pmc-cluster--editorial .pmc-intro__pull em,
html[data-theme="light"] .pmc-cluster--editorial .pmc-prose--editorial em,
html[data-theme="light"] .pmc-cluster--editorial .pmc-prose--editorial a {
    color: #7A5F1C !important;   /* #8A6D24 read 4.1:1 at 11 px on the second band (2026-10-17) */
}

/* Other journeys cards carry hardcoded white text, force readable ink on cream. */
html[data-theme="light"] .pmc-cluster--editorial .pmc-other-card,
html[data-theme="light"] .pmc-cluster--editorial .pmc-related .pmc-card {
    background: #fff;
    border-color: var(--pmc-line);
}
html[data-theme="light"] .pmc-cluster--editorial .pmc-other-card__title,
html[data-theme="light"] .pmc-cluster--editorial .pmc-related .pmc-card__title { color: var(--pmc-ivory) !important; }
html[data-theme="light"] .pmc-cluster--editorial .pmc-other-card__meta,
html[data-theme="light"] .pmc-cluster--editorial .pmc-related .pmc-card__meta  { color: var(--pmc-muted) !important; }
html[data-theme="light"] .pmc-cluster--editorial .pmc-related .pmc-section-head h2 { color: var(--pmc-ivory) !important; }
html[data-theme="light"] .pmc-cluster--editorial .pmc-related .pmc-section-head p  { color: var(--pmc-muted)  !important; }

/* The footer CTA ghost button is built for dark, give it cream-friendly ink. */
html[data-theme="light"] .pmc-cluster--editorial .pmc-btn--ghost-light {
    color: var(--pmc-ivory);
    border-color: var(--pmc-line-2);
    background: rgba(28,23,17,0.04);
}

/* Component fixes carried over from the previous OS-based light theme. */
html[data-theme="light"] .pmc-cluster--editorial .pmc-bigcard__type,
html[data-theme="light"] .pmc-cluster--editorial .pmc-bigcard__plan,
html[data-theme="light"] .pmc-cluster--editorial .pmc-bigcard__extra {
    background: rgba(255,255,255,0.85);
    color: #1A1816;
}
html[data-theme="light"] .pmc-cluster--editorial .pmc-feature__play {
    background: #1A1816;
    color: #FAF7F0;
}
html[data-theme="light"] .pmc-cluster--editorial .pmc-feature__avatar {
    color: #FAF7F0;
}

/* ================================================================
 * ROUND 39, RESPONSIVE INLINE COMPONENTS + DARK MODE CONTRAST
 * Mobile-first portrait and landscape fixes for the practice piano,
 * exercise console and sightreading consoles; a lighter dark panel
 * so the inline tools pop; gear and product cards that no longer
 * render as white islands in dark mode; and a clean help-center CTA.
 * ================================================================ */

/* 1. Block head: on a narrow column the eyebrow, title and MIDI badge
   share one flex row and squeeze the title until it breaks one word per
   line. Give the title its own full-width row, eyebrow and badge above it. */
@media (max-width: 560px) {
    .pmc-block__head { align-items: center; row-gap: 8px; }
    .pmc-block__eyebrow { order: 1; }
    .pmc-block__head .pmc-midi { order: 2; margin-left: auto; }
    .pmc-block__title { order: 3; flex: 1 1 100%; font-size: 18px; line-height: 1.25; }
}

/* 2. Practice piano host: tighter padding and full-width control row so the
   keyboard plus the Labels, Middle C and Listen buttons stay inside the
   card on phones. */
@media (max-width: 560px) {
    .pmc-cluster--editorial .pmc-block--piano { padding: 16px; }
    .pmc-cluster--editorial .pmc-block--piano .pm-mini-piano-header {
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    .pmc-cluster--editorial .pmc-block--piano .pm-mini-piano-controls {
        width: 100%;
        justify-content: flex-start;
    }
}

/* 3. Exercise console: lower the per-key floor so more of the keyboard is
   visible before it has to scroll, and reclaim vertical space in landscape.
   The console still scrolls horizontally, this just makes phones usable. */
@media (max-width: 560px) {
    .pmc-ex__kb { --ex-kw: clamp(22px, 6.4vw, 34px); height: clamp(112px, 30vw, 150px); }
    .pmc-ex__console { padding: 12px 10px; }
    .pmc-ex__toolbar { gap: 10px; }
    .pmc-ex__controls { width: 100%; }
    .pmc-ex__lbl { font-size: 9px; }
}
@media (max-width: 900px) and (orientation: landscape) {
    .pmc-ex__kb { height: clamp(96px, 22vh, 132px); }
    .pmc-ex.is-expanded .pmc-ex__kb { height: clamp(110px, 30vh, 150px); }
}

/* 4. Sightreading console: clamp the big readout, give the staff a sane
   floor height, stack the buttons on phones and use the wider grid in
   landscape so the staff and readout sit side by side. */
.pmc-sr__readout-value { font-size: clamp(22px, 6vw, 32px); }
.pmc-sr__staff { min-height: 96px; }
@media (max-width: 520px) {
    .pmc-sr__controls { flex-direction: column; align-items: stretch; }
    .pmc-sr__controls .pmc-btn { width: 100%; justify-content: center; }
}
@media (max-width: 900px) and (orientation: landscape) {
    .pmc-sr__stage { grid-template-columns: 1.5fr 1fr; }
}

/* 5. Help-center CTA: the cluster prose link rule recolours only the bottom
   edge of the pill (a 0.4 alpha gold) so the outline looks broken. Restate
   a clean, even border on all four sides and keep the underline off. */
.pmc-cluster a.pm-faq-foot__cta,
.pmc-block--faq a.pm-faq-foot__cta {
    border: 1px solid var(--pmc-accent);
    text-decoration: none;
}
.pmc-cluster a.pm-faq-foot__cta:hover,
.pmc-cluster a.pm-faq-foot__cta:focus-visible,
.pmc-block--faq a.pm-faq-foot__cta:hover,
.pmc-block--faq a.pm-faq-foot__cta:focus-visible {
    border-color: var(--pmc-accent);
    color: #1c1a17;
}

/* ----------------------------------------------------------------
 * DARK MODE CONTRAST (default theme). Everything below is scoped to
 * html:not([data-theme="light"]) so the cream light toggle keeps the
 * original light styling with no extra resets.
 * ---------------------------------------------------------------- */

/* 6. Lift the interactive consoles onto a warmer, lighter panel so the dark
   piano, buttons and inputs read as objects sitting on a surface instead of
   near-black on near-black, and so they separate clearly from the darker
   reading bands around them. */
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--piano,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--exercise,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--sightreading,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--trainer {
    background: #211D16;
    border: 1px solid var(--pmc-line-2);
    box-shadow: inset 0 1px 0 rgba(245,241,232,0.04), 0 18px 40px rgba(0,0,0,0.35);
}
/* 6b. The quiz and sheet cards keep a hardcoded white background and the tip
   callout fades to transparent, so on the dark page their titles (forced ivory
   by the rule near line 5430) were ivory-on-white or ink-on-near-black. Flip
   each to the same warm dark panel in the default theme only. The light toggle
   keeps the original light cards. */
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--quiz,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-sheet-card {
    background: #211D16;
    border-color: var(--pmc-line-2);
    box-shadow: inset 0 1px 0 rgba(245,241,232,0.04), 0 18px 40px rgba(0,0,0,0.35);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--quiz .pmc-quiz__opt {
    background: rgba(245,241,232,0.05);
    color: var(--pmc-ivory);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--quiz .pmc-quiz__feedback {
    background: rgba(245,241,232,0.05);
    color: var(--pmc-warm);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-sheet-card__body h4 {
    color: var(--pmc-ivory);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-sheet-card__body p {
    color: var(--pmc-warm);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--tip {
    background: linear-gradient(135deg, rgba(215,191,129,0.10), rgba(245,241,232,0.02));
    border-left-color: var(--pmc-accent);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-tip__body h5 {
    color: var(--pmc-ivory);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-tip__content {
    color: var(--pmc-warm);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--piano .pm-mp-btn {
    background: #2E2920;
    border-color: #4A4334;
    color: #EDE6D4;
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--piano .pm-mp-btn:hover,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block--piano .pm-mp-btn.active {
    border-color: var(--pmc-accent);
    color: var(--pmc-accent);
}

/* 7. Recommended gear and product cards were authored light and showed as
   white cards on the dark page. Flip their surface and text tokens to dark
   values, then restate the spots that used --pmc-ink as a dark chip. */
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-prodgrid,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-affiliate,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-products {
    --pmc-surface: #211D16;
    --pmc-ink: var(--pmc-ivory);
    --pmc-ink-soft: var(--pmc-warm);
    --pmc-ink-mute: var(--pmc-muted);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-prodgrid {
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(215,191,129,0.12), transparent 55%),
        linear-gradient(180deg, #1A1610 0%, #131009 100%);
    border-color: rgba(215,191,129,0.20);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-prodgrid__card,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-affiliate__card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-prodgrid__badge {
    background: #0E0B07;
    color: var(--pmc-ivory);
}
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-products__arrow {
    background: #211D16;
    border-color: var(--pmc-line-2);
    color: var(--pmc-ivory);
}

/* ================================================================
 * ROUND 40, DARK MODE FINISH
 * Page level dark base so transparent blocks (gear, products) stop
 * showing the white Blocksy page through them; light inline titles;
 * brighter eyebrows on the gear and product consoles.
 * ================================================================ */

/* 8. The reading bands paint their own dark backgrounds, but the block
   region and the gear / affiliate sections are transparent, so they were
   showing the white WordPress page behind them. Paint the page and the
   article dark in the default theme so every transparent block sits on
   dark. The light toggle keeps its cream page. */
html:not([data-theme="light"]) body.single-cluster {
    background-color: #0B0B0B;
}
html:not([data-theme="light"]) .pmc-cluster--editorial,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-blocks {
    background-color: var(--pmc-bg-1);
}

/* 9. Inline block titles (sightreading, exercise, practice and the rest)
   used the dark ink token, which is invisible on the dark panels. Force a
   light title in the default theme, Blocksy-proof with !important to match
   the section-title rule above. */
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-block__title,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-richtext__title {
    color: var(--pmc-ivory) !important;
}

/* 10. Gear and product eyebrows used the dim gold-dark (meant for a light
   card). Brighten them on the dark sections. */
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-affiliate__head .pmc-block__eyebrow,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-prodgrid__head .pmc-block__eyebrow,
html:not([data-theme="light"]) .pmc-cluster--editorial .pmc-products__head .pmc-block__eyebrow {
    color: var(--pmc-accent);
}

/* ================================================================
 * ROUND 41, NATIVE EAR TRAINER RESPONSIVE
 * The .pmc-trainer stage, play orb, waveform and answer buttons used
 * fixed pixels with only a single 900px grid breakpoint, so nothing
 * inside the card adapted. Make every inner element fluid with clamp
 * (smooth from phone to desktop) and add a landscape pass so the orb
 * and stage stay compact when height is the constraint.
 * ================================================================ */
.pmc-trainer__stage { padding: clamp(14px, 4vw, 24px); gap: clamp(12px, 3vw, 18px); }
.pmc-trainer__play {
    padding: clamp(12px, 3.2vw, 18px) clamp(13px, 3.6vw, 22px);
    gap: clamp(12px, 3vw, 18px);
}
.pmc-trainer__playbtn { width: clamp(44px, 12vw, 52px); height: clamp(44px, 12vw, 52px); }
.pmc-trainer__vis { height: clamp(40px, 11vw, 52px); }
.pmc-trainer__options { gap: clamp(8px, 2.4vw, 10px); }
.pmc-trainer__opt {
    font-size: clamp(15px, 4vw, 18px);
    padding: clamp(11px, 3vw, 14px) clamp(8px, 2.6vw, 16px);
}
/* The decorative accent orb is a fixed 400px; keep it inside the card on
   small screens (the card clips overflow, but cap it so it never dominates). */
.pmc-trainer__card::before { width: min(400px, 70vw); height: min(400px, 70vw); }

/* Very narrow phones: tighten the four answer buttons so the longer labels
   ("Suspended", "Diminished") never overflow their cell. */
@media (max-width: 360px) {
    .pmc-trainer__opt { font-size: 14px; padding: 10px 6px; letter-spacing: 0; }
}

/* Mobile landscape: height is the constraint, so shrink the orb, waveform
   and stage padding to keep the whole card in view. */
@media (max-width: 900px) and (orientation: landscape) {
    .pmc-trainer { padding: clamp(32px, 6vw, 56px) 0; }
    .pmc-trainer__playbtn { width: 44px; height: 44px; }
    .pmc-trainer__vis { height: 44px; }
    .pmc-trainer__stage { padding: 14px 18px; gap: 12px; }
    .pmc-trainer__play { padding: 12px 16px; }
}

/* ================================================================
 * ROUND 42, CONCERT HALL AS ITS OWN PREMIUM COMPONENT
 * The concert hall is a distinct "listen and watch" feature, not a
 * promo card like the recommended-gear / affiliate grids. Give it a
 * taller cinematic stage, a stage-light spotlight, a gold hairline
 * frame and a serif display heading so it clearly reads apart from
 * the gear blocks. Image band stays dark in both themes by design.
 * ================================================================ */
.pmc-concert {
    position: relative;
    min-height: clamp(300px, 46vw, 460px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(215,191,129,0.30);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 130px rgba(0,0,0,0.5);
    overflow: hidden;
}
.pmc-concert::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 0%, rgba(215,191,129,0.18), transparent 60%);
    pointer-events: none;
}
.pmc-concert__inner { position: relative; z-index: 1; }
.pmc-concert .pmc-block__eyebrow { letter-spacing: 0.22em; }
.pmc-concert__heading {
    font-family: var(--pmc-serif);
    font-weight: 300;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.01em;
}
.pmc-concert__intro { font-size: 17px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.pmc-concert .pmc-btn--primary { box-shadow: 0 12px 34px rgba(215,191,129,0.32); }

/* ================================================================
 * THE TWO THEMES, MEASURED (2026-10-17)
 * Gold and pastel TEXT on the cream bands of the light theme: the brand
 * gold read 1.5 to 1.7:1 (labels, stages, tags, the MIDI badge), the type
 * colours of the resource cards 1.6 to 1.8:1. The hero and the dark stages
 * keep their own colours: these selectors only reach the cream bands.
 * ================================================================ */
html[data-theme="light"] .pmc-cluster--editorial .pmc-intro__label,
html[data-theme="light"] .pmc-cluster--editorial .pmc-intro__toc-num,
html[data-theme="light"] .pmc-cluster--editorial .pmc-step__stage,
html[data-theme="light"] .pmc-cluster--editorial .pmc-step__tag,
html[data-theme="light"] .pmc-cluster--editorial .pmc-step--done .pmc-step__num,
html[data-theme="light"] .pmc-cluster--editorial .pmc-rcard__access--free,
html[data-theme="light"] .pmc-cluster--editorial .pmc-rcard__type--score,
html[data-theme="light"] .pmc-cluster--editorial .pmc-rcard__type--sheet,
html[data-theme="light"] .pmc-cluster--editorial .pmc-midi,
html[data-theme="light"] .pmc-cluster--editorial .pmc-midi .pmc-icon { color: #7A5F1C; }
html[data-theme="light"] .pmc-cluster--editorial .pmc-rcard__type--lesson  { color: #6B3F8E; }
html[data-theme="light"] .pmc-cluster--editorial .pmc-rcard__type--article { color: #2F5E86; }
html[data-theme="light"] .pmc-cluster--editorial .pmc-rcard__type--game    { color: #9A4A2C; }

/* The exercise console and the game embeds stay dark in the light theme, but
   the step-body rule above gives every heading the reading ink with
   !important: the console title was #1A1510 on #141414 (seen 2026-10-17, the
   balayage skips gradient grounds). Inside them the light inks come back. */
html[data-theme="light"] .pmc-cluster .pmc-step__desc .pmc-block--exercise :is(h1, h2, h3, h4, h5, h6),
html[data-theme="light"] .pmc-cluster .pmc-step__desc .pmc-block--game :is(h1, h2, h3, h4, h5, h6) { color: #fff !important; }
html[data-theme="light"] .pmc-cluster .pmc-step__desc .pmc-block--exercise :is(strong, b),
html[data-theme="light"] .pmc-cluster .pmc-step__desc .pmc-block--game :is(strong, b) { color: #fff; }
html[data-theme="light"] .pmc-cluster--editorial .pmc-block--exercise .pmc-midi,
html[data-theme="light"] .pmc-cluster--editorial .pmc-block--exercise .pmc-midi .pmc-icon,
html[data-theme="light"] .pmc-cluster--editorial .pmc-block--game .pmc-midi,
html[data-theme="light"] .pmc-cluster--editorial .pmc-block--game .pmc-midi .pmc-icon { color: var(--pmc-gold); }
