@import url('assets/fonts.css');
:root {
  --base: #f7f3ec; --surface: #fff; --text: #20252b; --secondary: #4f5e66;
  --border: #e7e3dc; --neutral: #77808b; --radius: 20px;
  font-family: Inter, Arial, sans-serif; color: var(--text); background: var(--base);
  font-synthesis: none; line-height: 1.4;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: Rubik, Arial, sans-serif; font-weight: 600; }
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
ul { padding: 0; list-style: none; }
#foundation-map { max-width: 1440px; margin: auto; padding: 48px; }
.page-heading { display: grid; gap: 32px; margin-bottom: 32px; }
.page-heading > p { font-size: 1.25rem; color: var(--secondary); }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eyebrow { font-size: .875rem; font-weight: 500; color: var(--secondary); }
.label { font-size: .75rem; font-weight: 500; color: var(--secondary); }
.icon { display: block; width: 48px; height: 36px; object-fit: contain; }
.core-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.core-card { min-width: 0; padding: 24px 20px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.core-card h2 { font-size: 1.5rem; }
.status { display: inline-block; font-size: .75rem; font-weight: 500; color: var(--secondary); background: var(--base); border: 1px solid var(--border); border-radius: 4px; padding: 4px 7px; }
.topics { display: grid; gap: 16px; }
.topic { background: var(--base); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 500; min-height: 49px; }
.dot { width: 8px; height: 8px; flex: 0 0 8px; }
.topic-state { margin-left: auto; color: var(--secondary); font-size: 1.125rem; }
.topic[data-status="coming-soon"] .topic-state { font-size: .625rem; line-height: 1.4; text-transform: uppercase; flex: 0 0 auto; white-space: nowrap; }
.streams { padding: 24px 0 32px; }
/* Match the exported 1344 × 140 canvas without flattening its paths. */
.streams-image { width: 100%; height: auto; aspect-ratio: 1344 / 140; display: block; }
.learning-format { display: flex; align-items: center; gap: 8px; color: var(--secondary); font-size: .875rem; font-weight: 500; }
.format-icon { display: block; width: 24px; height: 18px; flex: 0 0 24px; }
.mobile-stream { display: none; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section-heading { display: grid; gap: 20px; margin-bottom: 20px; }
.description, .encouragement p { color: var(--secondary); font-size: 1.125rem; }
.content-grid { display: grid; gap: 16px; align-items: start; }
.practice-grid { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
.moves-grid, .combo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.practice-grid .content-card { border-radius: 12px; padding: 20px; }
.duration { font-size: .875rem; color: var(--secondary); font-weight: 500; }
.relations { display: grid; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: flex; align-items: center; gap: 8px; background: var(--base); border-radius: 4px; padding: 7px; font-size: .875rem; font-weight: 500; max-width: 100%; }
.tag-icon { width: 20px; height: 15px; object-fit: contain; flex: 0 0 20px; }
.combo-label { margin-top: 8px; }
.progression { color: var(--neutral); text-align: center; font-size: 1.125rem; margin: 32px 0; line-height: 1; }
.encouragement { padding: 32px; }
.encouragement h2 { font-size: 1.75rem; margin-bottom: 12px; }
.learning-path, .main-progression { position: relative; }
/* An open start in the outer gutter keeps this parallel path independent of any skill. */
.learning-path::before { content: ''; position: absolute; top: 0; height: var(--support-branch-height); left: -25px; width: calc(var(--support-branch-end) + 25px); border-left: 1px dashed #aab0b7; border-bottom: 1px dashed #aab0b7; border-radius: 0 0 0 16px; pointer-events: none; }
.support { margin-top: 0; }
.support h2 { font-size: 1.75rem; }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.support-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: 16px; justify-items: start; }
.support-card .icon { width: 32px; height: 24px; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); background: var(--surface); padding: 12px; z-index: 2; color: var(--text); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #5263ff; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (hover: hover) { .content-card:hover { border-color: #b8c0c3; } }
@media (max-width: 1150px) {
  #foundation-map { padding: 32px; }
  .core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .streams { height: 88px; padding: 20px 0; text-align: center; }
  .streams-image { display: none; }
  .mobile-stream { display: inline; color: var(--neutral); font-size: 1.125rem; }
  .learning-path::before { left: -17px; width: calc(var(--support-branch-end) + 17px); }
}
@media (max-width: 650px) {
  #foundation-map { padding: 24px 16px; }
  .page-heading { gap: 20px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  .page-heading > p, .description, .encouragement p { font-size: 1rem; }
  .core-grid, .practice-grid, .moves-grid, .combo-grid, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .core-grid { gap: 16px; }
  .panel, .encouragement { padding: 20px; }
  .content-card { padding: 20px; }
  .section-heading { gap: 16px; }
  .learning-path::before { display: none; }
  .progression { margin: 24px 0; }
  .support { margin-top: 0; }
}

/* Topic buttons inherit the established row styling without changing card geometry. */
button.topic { width: 100%; border: 0; font-family: inherit; line-height: inherit; text-align: left; color: var(--text); cursor: pointer; }
@media (hover: hover) { button.topic:hover { background: #eee9e1; } }
body.topic-is-open { position: fixed; width: 100%; overflow: hidden; }
.topic-dialog > .open-panel { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); overflow: auto; overscroll-behavior: contain; }
.topic-dialog::backdrop { background: rgb(32 37 43 / 38%); }
.topic-dialog-content { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.topic-context { display: flex; align-items: center; gap: 16px; }
.topic-parent-icon { width: 32px; height: 24px; flex: 0 0 32px; }
.topic-context p { flex: 1; font-size: .75rem; font-weight: 500; color: var(--secondary); text-transform: uppercase; }
.topic-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -6px -6px -6px 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.topic-close img { display: block; width: 32px; height: 32px; }
@media (hover: hover) and (pointer: fine) { .topic-close:hover { background: var(--base); } }
.topic-dialog h2 { font-size: 2.25rem; }
#topic-dialog-description { font-size: 1.125rem; color: var(--secondary); }
.topic-demo { display: block; width: 100%; height: 190px; border-radius: 16px; background: var(--base); object-fit: contain; }
.topic-demo-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; color: var(--secondary); text-align: center; padding: 16px; font-size: .875rem; }
.topic-lesson { display: block; align-self: flex-start; max-width: 100%; width: 240px; padding: 16px; border: 0; border-radius: 12px; background: var(--base); color: var(--text); text-align: left; text-decoration: none; font: 500 .875rem/1.4 Inter, Arial, sans-serif; }
.topic-lesson:disabled { color: var(--secondary); cursor: default; }
.topic-lesson span { display: block; margin-top: 4px; font-size: .75rem; font-weight: 400; }
.topic-usage { display: grid; gap: 12px; }
.topic-usage h3 { font: 500 .75rem/1.4 Inter, Arial, sans-serif; color: var(--secondary); }
.topic-usage ul { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-usage li { display: flex; padding: 0; border-radius: 6px; background: var(--base); color: var(--secondary); font-size: .75rem; font-weight: 500; }
@media (max-width: 650px) {
  .topic-dialog > .open-panel { max-height: calc(100dvh - 24px); }
  .topic-dialog-content { padding: 24px 20px; }
  .topic-context { gap: 12px; }
  .topic-dialog h2 { font-size: 1.875rem; }
  #topic-dialog-description { font-size: 1rem; }
  .topic-demo { height: auto; min-height: 160px; aspect-ratio: 504 / 190; }
}

.content-open { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
/* The title remains the semantic button; its hit area covers the card.
   Nested tags sit above it, including unavailable tags that must not activate the card. */
.content-card.is-openable { position: relative; cursor: pointer; }
.content-open::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.content-card.is-openable:has(.content-open:focus-visible) { outline: 3px solid #5263ff; outline-offset: 4px; }
.content-card.is-openable .content-open:focus-visible { outline: none; }
.nested-topic { position: relative; z-index: 2; cursor: default; }
.compact-topic-link { display: flex; align-items: center; gap: 8px; margin: -7px; padding: 7px; border: 0; border-radius: 4px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.compact-topic-status { color: var(--secondary); font-size: .625rem; text-transform: uppercase; }
@media (hover: hover) {
  .content-card.is-openable:hover { border-color: #b8c0c3; }
  .compact-topic-link:hover { background: #eee9e1; }
}
.open-back { align-self: flex-start; border: 0; padding: 8px 0; background: transparent; font: 500 .875rem/1.4 Inter, Arial, sans-serif; color: var(--secondary); cursor: pointer; }
.usage-open { display: flex; align-items: center; width: 100%; height: 100%; margin: 0; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }

.follow-dialog > .open-panel { width: min(1120px, calc(100% - 32px)); border-radius: 16px; }
.follow-dialog-content { padding: 48px; display: flex; flex-direction: column; gap: 32px; }
.follow-identity { display: grid; gap: 16px; }
.follow-dialog h2 { font-size: 2.75rem; }
.follow-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--secondary); font-size: 1.125rem; font-weight: 500; }
.follow-dialog #topic-dialog-description, .follow-practice-note { font: 400 1.125rem/1.4 Inter, Arial, sans-serif; color: var(--secondary); max-width: 626px; }
.follow-trains, .follow-helps { display: grid; gap: 16px; }
.follow-trains h3 { font-size: 1.5rem; }
.follow-trains ul { display: flex; flex-wrap: wrap; gap: 12px; }
.train-tag { display: flex; align-items: center; gap: 9px; padding: 9px; border: 0; border-radius: 5px; background: var(--base); font: 500 1.294rem/1.4 Inter, Arial, sans-serif; color: var(--text); }
.train-tag .tag-icon { width: 28px; height: 21px; flex-basis: 28px; }
button.train-tag, button.follow-related { cursor: pointer; }

.follow-helps h3 { font: 500 .875rem/1.4 Inter, Arial, sans-serif; color: var(--secondary); }
.follow-helps ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.follow-related { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 20px; padding: 20px; background: var(--surface); text-align: left; color: var(--text); }
.follow-related strong { font: 600 1.375rem/1.4 Rubik, Arial, sans-serif; }
.follow-related > span { font: 500 .875rem/1.4 Inter, Arial, sans-serif; color: var(--secondary); }
.follow-action { display: grid; gap: 12px; justify-items: start; }
.action-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; max-width: 100%; min-height: 44px; border: 0; border-radius: 8px; padding: 16px; background: #2f5bea; color: white; font: 500 1.125rem/1.4 Inter, Arial, sans-serif; text-decoration: none; }
.action-cta:disabled { cursor: default; }
.follow-action p { color: var(--secondary); font-size: .875rem; }
@media (max-width: 900px) {
  .follow-dialog-content { padding: 32px; }
  .follow-helps ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .follow-dialog-content { padding: 24px 20px; gap: 24px; }
  .follow-dialog h2 { font-size: 1.875rem; }
  .follow-dialog #topic-dialog-description { font-size: 1rem; }
  .train-tag { font-size: 1rem; }
  .follow-helps ul { grid-template-columns: minmax(0, 1fr); }
}

/* Dance Move Open follows the compact Figma card, with a 16:9 demo. */
.move-dialog-content #topic-dialog-description { max-width: 432px; }
.move-dialog-content .topic-demo { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.move-dialog-content .topic-lesson { width: 300px; font-size: 1rem; }
.move-ingredients { display: grid; gap: 16px; }
.move-ingredients h3 { font: 500 .75rem/1.4 Inter, Arial, sans-serif; color: var(--secondary); }
.move-ingredients ul { display: flex; flex-wrap: wrap; gap: 8px; }
.move-tag { display: flex; align-items: center; gap: 8px; padding: 10px 8px; border: 0; border-radius: 4px; background: var(--base); color: var(--text); font: 500 1.125rem/1.4 Inter, Arial, sans-serif; }
.move-tag .tag-icon { width: 24px; height: 18px; flex-basis: 24px; }
.move-tag .label { font-size: .625rem; text-transform: uppercase; }
button.move-tag { cursor: pointer; }

@media (max-width: 650px) { .move-tag { font-size: 1rem; } }

.combo-move-tag { padding: 12px; }

.core-card.is-openable { position: relative; cursor: pointer; }
.core-card .topics { position: relative; z-index: 2; cursor: default; }
.core-card.is-openable:has(.content-open:focus-visible) { outline: 3px solid #5263ff; outline-offset: 4px; }
.core-card.is-openable .content-open:focus-visible { outline: none; }
@media (hover: hover) { .core-card.is-openable:hover { box-shadow: inset 0 0 0 1px #b8c0c3; } }

.move-dialog-content video.movement-demo, .practice-topic-content video.movement-demo { height: auto; min-height: 0; object-fit: cover; aspect-ratio: 4 / 5; }

.page-heading > p, .section-heading > .description { width: 55%; }
@media (max-width: 1150px) {
  .page-heading > p, .section-heading > .description { width: 100%; }
}

/* Hero A: the map below retains its own existing layout and spacing. */
.hero-inner { max-width: 1440px; margin: 0 auto; padding: 64px; display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 704fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.hero-copy h1 { font-size: 4rem; line-height: 1.09375; letter-spacing: normal; }
.hero-description { max-width: 515px; font-size: 1.25rem; line-height: 1.5; color: var(--secondary); }
.hero-cta { display: inline-block; padding: 20px 24px; border-radius: 8px; background: #2f5bea; color: white; text-decoration: none; font-size: 1.125rem; font-weight: 500; line-height: 20px; }
.hero-photography { position: relative; min-width: 0; }
.hero-photo { position: relative; width: 100%; aspect-ratio: 704 / 568; border-radius: 8px; overflow: hidden; }
.hero-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before, .hero-photo::after { content: ''; position: absolute; width: 14.63%; height: 17.08%; background: var(--base); z-index: 1; }
.hero-photo::before { top: 0; left: 0; }
.hero-photo::after { bottom: 0; right: 0; }
.hero-pulse { position: absolute; left: -44px; top: 24px; width: 24px; height: 24px; }
@media (max-width: 1200px) and (min-width: 901px) {
  .hero-inner { padding: 48px 32px; gap: 32px; }
  .hero-copy h1 { font-size: 3.25rem; }
  .hero-pulse { left: -28px; width: 18px; height: 18px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; gap: 32px; }
  .hero-copy h1 { font-size: 3.5rem; }
  .hero-photo { max-height: 420px; }
  .hero-pulse { left: 0; top: 20px; }
}
@media (max-width: 650px) {
  .hero-inner { padding: 32px 16px; }
  .hero-copy h1 { font-size: clamp(2rem, 8.7vw, 3rem); line-height: 1.12; }
  .hero-description { font-size: 1rem; }
  .hero-photo { max-height: 300px; }
  .hero-cta { padding: 18px 20px; font-size: 1rem; }
}

/* Curated Combo Path extends the existing dialog and related-item components. */
.combo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.combo-actions .topic-lesson, .combo-actions .action-cta { flex: 1 1 190px; width: auto; align-self: stretch; }
.combo-actions .combo-path-action { background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.combo-path-action:hover { background: var(--base); }
.path-navigation .open-back { flex: 1; align-self: center; text-align: left; }
.path-navigation .topic-close { margin-left: auto; }
.path-dialog-content .move-ingredients { gap: 12px; }
.path-dialog-content .combo-group:first-of-type ul { max-width: 340px; }
.path-dialog-content .path-practices ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.path-dialog-content .path-practice-card { flex-direction: row; align-items: center; gap: 12px; padding: 16px; min-height: 60px; border-radius: 12px; }
.path-practice-card .path-practice-copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.path-practice-card strong { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.path-dialog-content .combo-group:has(.combo-move-tag) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.path-dialog-content .combo-move-tag { width: 100%; height: 100%; text-align: left; }
@media (max-width: 650px) {
  .path-dialog-content .combo-group:has(.combo-move-tag) ul { grid-template-columns: minmax(0, 1fr); }
}

/* Sibling browsing stays separate from the overlay's Back history. */
.practice-topic-content, .follow-dialog-content, .combo-dialog-content { touch-action: pan-y pinch-zoom; }
.sibling-navigation { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; padding: 0 28px 28px; background: var(--surface); }
.sibling-navigation button, .sibling-position { font: 500 .875rem/1.3 Inter, Arial, sans-serif; color: var(--secondary); }
.sibling-navigation button { width: 112px; max-width: 100%; min-height: 44px; padding: 8px 0; border: 0; background: transparent; cursor: pointer; }
.sibling-navigation button:last-child { justify-self: end; }
.sibling-navigation button:disabled { opacity: .3; cursor: default; }
.sibling-position { text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 650px) {
  .practice-topic-dialog > .open-panel, .follow-dialog > .open-panel, .combo-sibling-dialog > .open-panel { scroll-padding-bottom: 76px; }
  .practice-topic-dialog .sibling-navigation, .follow-dialog .sibling-navigation, .combo-sibling-dialog .sibling-navigation { position: sticky; bottom: 0; z-index: 1; padding: 8px 20px 20px; }
}

/* The transparent native dialog owns the backdrop; its panel retains the existing geometry. */
.topic-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.topic-dialog[open] { display: grid; place-items: center; }
.topic-close { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.topic-close:focus:not(:focus-visible) { outline: none; }

/* Combo demos share the Practice Topic video sizing above. */
.combo-demo-block { position: relative; width: 100%; }
.combo-music { position: absolute; right: 20px; top: 20px; min-width: 44px; min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: 500 .875rem/1.4 Inter, Arial, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.combo-music[aria-pressed="true"] { background: #2F5BEA; border-color: #2F5BEA; color: #fff; }

/* Follow Along availability: dim content only, with a separate readable status. */
.follow-coming-soon, .path-follow-coming-soon { position: relative; cursor: default; }
.follow-coming-soon .follow-dimmed-content { display: grid; gap: 12px; }
.follow-dimmed-content { opacity: .5; }
.follow-status { position: absolute; top: 16px; right: 16px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--base); color: var(--text); font: 600 10px/1.2 Rubik, Arial, sans-serif; text-transform: uppercase; white-space: nowrap; }
.follow-coming-soon .meta { padding-right: 90px; }
.follow-coming-soon:hover { border-color: var(--border); }
.path-follow-coming-soon .follow-status { top: 8px; right: 12px; }
.path-dialog-content .path-follow-coming-soon .path-practice-card { padding-right: 104px; }
@media (max-width: 400px) {
  .path-dialog-content .path-follow-coming-soon .path-practice-card { padding: 30px 16px 10px; }
}

.support-coming-soon { position: relative; cursor: default; }
.support-card-content { display: grid; gap: 16px; justify-items: start; }
.support-coming-soon .support-card-content { padding-top: 24px; }
.topic[data-status="coming-soon"] > .dot,
.topic[data-status="coming-soon"] > span:not(.topic-state):not(.sr-only) { opacity: .5; }

/* One interactive surface for lessons and curriculum relationships. */
.usage-unavailable { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 10px; }
.usage-unavailable[aria-disabled="true"] > span:not(.status),
.related-unavailable > :not(.status) { opacity: .5; }
.follow-helps .follow-related { justify-content: center; }
@media (hover: hover) and (pointer: fine) {
  a.topic-lesson:hover, .related-lessons button.topic-lesson:hover, .usage-open:hover, button.follow-related:hover,
  button.train-tag:hover, button.move-tag:hover { background: #eee9e1; }
}

.floating-siblings { display: none; }
@media (min-width: 651px) {
  .has-floating-room .floating-siblings { display: contents; }
  .floating-siblings button { position: absolute; top: var(--floating-top); transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--secondary); font: 500 1.25rem/1 Inter, Arial, sans-serif; cursor: pointer; }
  .floating-siblings button:first-child { left: var(--floating-left); }
  .floating-siblings button:last-child { right: var(--floating-right); }
  .floating-siblings button:disabled { opacity: .35; cursor: default; }
}
@media (hover: hover) and (pointer: fine) {
  .floating-siblings button:not(:disabled):hover { background: #eee9e1; border-color: #b8c0c3; }
}

.difficulty-blocks { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.difficulty-block { width: 7px; height: 7px; border: 1px solid #2f5bea; border-radius: 1px; }
.difficulty-block.is-filled { background: #2f5bea; }
.combo-difficulty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--secondary); font: 400 .875rem/1.4 Inter, Arial, sans-serif; }
.difficulty-legend-grid { margin-top: 24px; }
.difficulty-legend { width: 100%; min-width: 0; padding: 24px; border-radius: 12px; background: var(--base); color: var(--secondary); font: 400 .875rem/1.4 Inter, Arial, sans-serif; }
.difficulty-legend h3 { font: 500 .75rem/1.4 Inter, Arial, sans-serif; }
.difficulty-legend > p, .difficulty-legend ul { margin-top: 20px; }
.difficulty-legend ul { display: grid; gap: 20px; }
.difficulty-legend li { display: flex; align-items: center; gap: 16px; }

.related-lessons { display: grid; gap: 16px; }
.related-lessons h3 { font: 500 .875rem/1.4 Inter, Arial, sans-serif; color: var(--secondary); }
.related-lessons ul { display: flex; flex-wrap: wrap; gap: 12px; }
.related-lessons .topic-lesson { width: auto; font-size: .875rem; }

.related-lessons .topic-lesson { display: flex; align-items: center; gap: 8px; }
.related-lessons .topic-lesson > span:last-child { margin-left: auto; }
.related-lessons .topic-lesson > span { margin-top: 0; font: inherit; }

@media (hover: hover) and (pointer: fine) {
  a.action-cta:hover, button.action-cta:not(:disabled):hover { background: #244bc9; }
}

/* Shared compact desktop demos; mobile keeps its full-width treatment. */
@media (min-width: 651px) {
  .practice-topic-content > video.movement-demo,
  .move-dialog-content > video.movement-demo { width: 65%; }
  .combo-demo-block { display: grid; grid-template-columns: 65% minmax(0, 1fr); gap: 16px; align-items: start; }
  .combo-demo-block > .combo-music { position: static; justify-self: start; max-width: 100%; }
}

/* Static learning-method overview — connected desktop progression, stacked mobile. */
.learning-method { max-width: 1440px; margin: auto; padding: 32px 48px; }
.learning-method > h2 { font: 500 .75rem/1.4 Inter, Arial, sans-serif; color: var(--secondary); margin-bottom: 24px; }
.learning-method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; list-style: none; margin: 0; padding: 0; }
.learning-method-steps > li { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 250px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.learning-method-number { font: 500 .875rem/1.3 Inter, Arial, sans-serif; color: var(--secondary); }
.learning-method-steps h3 { font-size: 1.75rem; line-height: 1.3; }
.learning-method-steps p { font-size: 1.125rem; line-height: 1.3; color: var(--secondary); }
.learning-method-steps > li:not(:last-child)::after { content: '→'; position: absolute; left: calc(100% + 1px); top: 50%; width: 48px; text-align: center; transform: translateY(-50%); font: 500 22px/1.4 Inter, Arial, sans-serif; color: var(--secondary); }
@media (max-width: 1000px) {
  .learning-method { padding-inline: 24px; }
  .learning-method-steps { grid-template-columns: 1fr; gap: 16px; }
  .learning-method-steps > li { min-height: 244px; padding: 24px 20px; }
  .learning-method-steps h3 { font-size: 1.625rem; }
  .learning-method-steps > li:not(:last-child)::after { display: none; }
}
@media (max-width: 650px) {
  .learning-method { padding-inline: 16px; }
}

/* One shared section-label rhythm throughout Combo Full Path. */
.path-dialog-content > section > h3 { font: 500 .75rem/1.4 Inter, Arial, sans-serif; letter-spacing: normal; text-transform: uppercase; color: var(--secondary); }
.path-dialog-content > section { gap: 12px; }
.path-dialog-content > section + section { margin-top: 16px; }

/* Compact mobile Music appearance, with a retained 44px touch area. */
@media (max-width: 650px) {
  .combo-music { transform: scale(.8); transform-origin: top right; }
  .combo-music::after { content: ''; position: absolute; inset: -5.5px; }
}

/* Practice Topic Paths reuse Full Path cards, navigation and status styling. */
.topic-path-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.topic-path-actions > * { flex: 1 1 210px; width: auto; }
.topic-path-actions .combo-path-action { background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.topic-path-actions .combo-path-action:hover { background: var(--base); }
.topic-path-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.topic-path-steps > li { position: relative; }
.topic-path-steps .path-practice-card { width: 100%; text-align: left; }
.topic-path-steps .path-practice-copy { gap: 8px; }
.topic-path-note { font-size: .875rem; font-weight: 400; color: var(--secondary); }
.topic-path-content > .combo-group { margin-top: 16px; }

.topic-path-number { font-size: .875rem; flex-shrink: 0; }
.topic-path-steps .path-practice-copy strong { font-family: Rubik, Arial, sans-serif; font-size: 1.125rem; }
.topic-path-content .path-follow-coming-soon .path-practice-card { padding: 38px 16px 16px; }

/* Refined Follow-Along learning access; separate external and internal actions. */
.follow-learning-actions { display: grid; gap: 24px; width: min(504px, 100%); }
.follow-external-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.follow-learning-actions .action-cta, .follow-learning-actions .learning-secondary { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px; border-radius: 12px; font: 500 .875rem/1.4 Inter, Arial, sans-serif; text-decoration: none; text-align: center; align-self: stretch; }
.follow-learning-actions .learning-secondary { border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.follow-learning-actions .learning-secondary:disabled { background: var(--base); color: var(--secondary); cursor: default; opacity: 1; }
.follow-learning-actions .learning-path-action { background: var(--base); }
@media (hover: hover) {
  .follow-learning-actions .learning-secondary:not(:disabled):hover { background: var(--base); }
}
@media (max-width: 650px) {
  .follow-external-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Combo paths stay secondary to the external learning-access row. */
.combo-actions .combo-path-action { flex: 0 0 100%; }
@media (min-width: 651px) {
  .combo-actions .combo-path-action { flex: 0 0 auto; width: fit-content; min-width: 190px; }
  .combo-actions .follow-learning-actions { flex-basis: 100%; }
  .combo-actions:has(.follow-learning-actions) { row-gap: 24px; }
}

/* Supporting Skill detail — approved Practice Screen Hero. */
.topic-dialog.supporting-dialog > .open-panel { width: min(800px, calc(100% - 32px)); }
.supporting-dialog-content { gap: 24px; }
.supporting-navigation .topic-close { margin-left: auto; }
.supporting-intro { display: grid; gap: 12px; }
.supporting-intro > p:not(.label), .supporting-why p { font-size: 18px; line-height: 1.4; color: var(--secondary); }
.supporting-app-visual { display: block; width: 100%; height: auto; border-radius: 12px; }
.supporting-app-action { width: 100%; min-height: 48px; justify-content: center; }
.supporting-why { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--base); }
.supporting-why h3 { font: 600 24px/1.4 Rubik, Arial, sans-serif; }
.supporting-movement { display: grid; gap: 12px; }
.supporting-movement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.supporting-relation { position: relative; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; font: inherit; }
.supporting-relation-content { display: grid; gap: 8px; }
.supporting-relation strong { font: 600 20px/1.4 Rubik, Arial, sans-serif; }
.supporting-relation-content > span { font-size: 14px; line-height: 1.4; color: var(--secondary); }
.supporting-relation .follow-status { top: 16px; right: 16px; }
button.supporting-relation { cursor: pointer; }
@media (hover: hover) { button.supporting-relation:hover { background: var(--base); } }
@media (max-width: 650px) { .supporting-movement-grid { grid-template-columns: minmax(0, 1fr); } }

/* Supporting category with one whole-card navigation target. */
.support-card-open { position: relative; cursor: pointer; }
.support-card-trigger::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.support-card-open:has(.support-card-trigger:focus-visible) { outline: 3px solid #5263ff; outline-offset: 4px; }
.support-card-trigger:focus-visible { outline: none; }
.support-topic-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.support-topic-rows li { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 12px; background: var(--base); border-radius: 10px; font: 500 14px/1.4 Inter, Arial, sans-serif; }
.support-topic-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #2F5BEA; }
@media (hover: hover) { .support-card-open:hover { background: var(--base); } }

@media (hover: hover) { .support-card-open:hover .support-topic-rows li { background: #eee9e1; } }

/* Canonical path context alongside automatically resolved lessons. */
.follow-learning-context { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 650px) { .follow-learning-context { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.related-lessons button.topic-lesson { cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  .follow-learning-actions .learning-secondary.learning-path-action:not(:disabled):hover { background: #eee9e1; }
}

/* Hero community access remains secondary to exploring the map. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.hero-community-cta { display: inline-flex; align-items: center; justify-content: center; padding: 19px 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 1.125rem; font-weight: 500; line-height: 20px; }
@media (hover: hover) { .hero-community-cta:hover { background: var(--base); } }
@media (max-width: 650px) {
  .hero-actions { flex-direction: column; }
  .hero-community-cta { padding: 17px 20px; font-size: 1rem; }
}
