/* Match the parent page when the galaxy is embedded in the journey. */
body.galaxy-page.is-embedded {
  background-color: #fff;
  background-image: linear-gradient(rgba(57,72,82,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(57,72,82,.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.galaxy-page.is-embedded .hero-gridwash,
.galaxy-page.is-embedded .route-detail-screen::before { display: none; }
.galaxy-page.is-embedded .start-stage-gridwash {
  background-image: radial-gradient(ellipse at center, rgba(116,84,202,.04), transparent 68%);
  background-size: 100% 100%;
  background-position: center;
}
.galaxy-page.is-embedded .fourth-nebula-canvas { background-color: transparent; }
.galaxy-page.is-embedded .fourth-nebula-fallback { background: transparent; }

/* Hide the footer strip in the embedded first screen. */
.galaxy-page.is-embedded .galaxy-footer { display: none; }

.mobile-start-routes, .mobile-for-who, .mobile-main-route { display: none; }

@media (max-width: 620px) {
  /* The mobile hero had an explicit top alignment and padding, leaving half the screen empty. */
  .galaxy-page.is-embedded .galaxy-main { align-items: center; }
  .galaxy-page.is-embedded .galaxy-intro { padding-top: 0; }
  .galaxy-page.is-embedded:not(.is-start-view):not(.is-expanded) .galaxy-intro { translate: 0 -32px; }

  /* Replace the orbiting square hit areas with three direct route controls. */
  .galaxy-page.is-embedded .start-frame-overlay { display: none; }
  .galaxy-page.is-embedded .start-stage-topline {
    top: max(14px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    justify-content: center;
  }
  .galaxy-page.is-embedded .start-stage-heading {
    width: min(100%, 360px);
    gap: 8px;
  }
  .galaxy-page.is-embedded .mobile-start-routes {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 5px;
  }
  .galaxy-page.is-embedded .mobile-start-routes button {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border: 0;
    border-left: 2px solid #7066f3;
    border-radius: 0;
    background: #272727;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .16);
    color: #fff !important;
    cursor: pointer;
    font-size: clamp(10px, 3vw, 12px);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .2s ease, box-shadow .25s ease, transform .2s ease;
  }
  .galaxy-page.is-embedded .mobile-start-routes button i {
    color: #fff !important;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
  }
  .galaxy-page.is-embedded .mobile-start-routes button > * { color: #fff !important; }
  .galaxy-page.is-embedded .mobile-start-routes button:hover,
  .galaxy-page.is-embedded .mobile-start-routes button:focus-visible,
  .galaxy-page.is-embedded .mobile-start-routes button:active {
    background: #7066f3;
    box-shadow: 0 7px 20px rgba(112, 102, 243, .24);
    transform: translateY(-2px);
  }
  .galaxy-page.is-embedded .mobile-start-routes button:hover i,
  .galaxy-page.is-embedded .mobile-start-routes button:focus-visible i { transform: translate(2px, -2px); }
  .galaxy-page.is-embedded .start-stage-description { display: none; }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .galaxy-intro.hero-copy,
  .galaxy-page.is-embedded .start-stage-heading {
    width: min(100%, calc(100vw - max(20px, env(safe-area-inset-left)) - max(20px, env(safe-area-inset-right)) - 56px));
  }

  .galaxy-page.is-embedded.is-start-view .start-stage:not(.is-route-detail) .start-sphere-canvas {
    scale: 2;
  }

  .galaxy-page.is-embedded :is(h1, h2, h3) {
    text-align: center;
  }

  .galaxy-page.is-embedded .start-stage-topline {
    top: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    transform: none;
  }

  .galaxy-page.is-embedded .mobile-start-routes {
    width: min(100%, 224px);
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 24px;
    pointer-events: auto;
  }

  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-screen-heading {
    top: calc(50% - 188px);
    text-align: center;
  }

  .galaxy-page.is-embedded.is-expanded:not(.is-course-view):not(.is-nebula-returning) .path-nodes:not([hidden]) {
    top: calc(50% - 40px);
    right: 0;
    bottom: auto;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .galaxy-page.is-embedded.is-expanded:not(.is-course-view):not(.is-nebula-returning) .path-node {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: min(224px, 85vw);
    transform: none !important;
  }

  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node .node-face,
  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node:hover .node-face,
  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node:focus-visible .node-face {
    width: 100%;
    height: 40px;
    gap: 9px;
  }

  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node .node-label {
    max-width: none;
    opacity: 1;
    font-size: 12px;
  }

  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node .node-face,
  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node:is(:hover, :focus-visible, [aria-pressed="true"]) .node-face {
    background: #fff;
    border-color: #8983e3;
  }

  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node .node-label,
  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node .node-icon {
    color: #7066d9 !important;
  }

  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node .node-icon svg {
    stroke: #7066d9;
  }

  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-node[aria-pressed="true"] .node-face {
    box-shadow: 0 0 0 2px rgba(112, 102, 217, .3), 0 5px 16px rgba(40, 28, 72, .14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .galaxy-page.is-embedded .mobile-start-routes button,
  .galaxy-page.is-embedded .mobile-start-routes button i { transition: none; }
  .galaxy-page.is-embedded .mobile-start-routes button:hover,
  .galaxy-page.is-embedded .mobile-start-routes button:focus-visible,
  .galaxy-page.is-embedded .mobile-start-routes button:active { transform: none; }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .start-stage-topline {
    display: block;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 64px 0 48px;
    pointer-events: auto;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  .galaxy-page.is-embedded .start-stage-topline::-webkit-scrollbar { display: none; }
  .galaxy-page.is-embedded .start-stage-heading { margin: 0 auto; }
  .galaxy-page.is-embedded .mobile-start-routes { display: none; }
  .galaxy-page.is-embedded .mobile-for-who {
    display: grid;
    width: 100%;
    gap: 200px;
    margin-top: 48px;
    text-align: center;
  }
  .mobile-for-who-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .mobile-for-who-card p, .mobile-for-who-card h3 { margin: 0; }
  .mobile-for-who-overline, .mobile-for-who-english { color: #7066f3 !important; font-size: 10px !important; letter-spacing: .08em; }
  .mobile-for-who-lead { color: #777 !important; font-size: 13px !important; font-weight: 700; }
  .mobile-for-who-title { font-size: 24px; line-height: 1.2; }
  .mobile-for-who-progress { width: 100%; height: 0; border-top: 2px dashed #7066f3; font-size: 0; line-height: 0; }
  .mobile-for-who-description { color: #777 !important; font-size: 13px; font-weight: 400 !important; line-height: 1.5; }
  .mobile-for-who-tags { display: none; }
  .mobile-for-who-cta { display: flex; width: min(100%, 208px); min-height: 44px; align-items: center; justify-content: center; margin-top: 4px; padding: 11px 15px; border: 0; border-left: 3px solid #7066f3; background: #272727; color: #fff !important; font-size: 13px !important; font-weight: 700; text-align: center; text-decoration: none; }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .mobile-main-route {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 192px;
    margin-bottom: 25vh;
    text-align: center;
  }
  .mobile-main-route h2, .mobile-main-route p { margin: 0; }
  .mobile-main-route h2 { font-size: 26px; line-height: 1.2; }
  .mobile-main-route p { color: #777 !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1.5; }
  .mobile-main-kicker { font-size: 12px; letter-spacing: .12em; }
  .mobile-main-kicker span { display: inline-grid; width: 30px; height: 30px; margin-right: 8px; place-items: center; background: #e8e8e8; font-size: 20px; }
  .mobile-main-route-buttons { display: grid; width: min(100%, 280px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .mobile-main-route-buttons button { min-height: 40px; padding: 0; border: 0; border-left: 3px solid #8983e3; background: #272727; color: #fff !important; cursor: pointer; }
  .mobile-main-route-buttons button:not(:last-child) { aspect-ratio: 1; }
  .mobile-main-route-buttons button:last-child { grid-column: 1 / -1; min-height: 64px; }
  .mobile-main-route-buttons button:not(:last-child) .node-face { height: 100%; flex-direction: column; }
  .mobile-main-route-buttons button:last-child .node-face { min-height: 64px; }
  .mobile-main-route-buttons .node-face { display: flex; width: 100%; min-width: 0; min-height: 0; flex-direction: column; align-items: center; justify-content: center; gap: 9px; transform: none; }
  .mobile-main-route-buttons .node-label { max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; color: #fff !important; font-size: 11px !important; font-weight: 700; letter-spacing: 0; text-shadow: none; }
  .mobile-main-route-buttons .node-icon { order: -1; width: 24px; height: 24px; flex: 0 0 24px; margin: 0; border: 0; background: none; box-shadow: none; color: #fff !important; transform: none; }
  .mobile-main-route-buttons .node-icon svg { width: 24px; height: 24px; stroke: #fff; }
  .galaxy-page.is-embedded.is-start-view .start-sphere-canvas { transition: filter .8s ease, opacity .8s ease, scale .8s ease; }
  .galaxy-page.is-embedded[data-mobile-route="1"] .start-sphere-canvas { filter: hue-rotate(55deg); }
  .galaxy-page.is-embedded[data-mobile-route="2"] .start-sphere-canvas { filter: hue-rotate(115deg); }
  .galaxy-page.is-embedded[data-mobile-route="3"] .start-sphere-canvas { filter: hue-rotate(190deg); scale: 1.4 !important; }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded.is-mobile-continuous:not(.is-route-detail-view) .start-stage {
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
  }
  .galaxy-page.is-embedded.is-mobile-continuous:not(.is-route-detail-view) .start-stage-topline {
    left: 32px;
    right: 32px;
  }
  .galaxy-page.is-embedded.is-mobile-continuous .start-stage-topline { padding-top: 0; }
  .galaxy-page.is-embedded.is-mobile-continuous .galaxy-intro.hero-copy {
    display: flex;
    min-height: calc(100% + 48px);
    width: min(100%, calc(100vw - 96px));
    margin: 0 auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1;
    transform: none;
    translate: none;
    filter: none;
    pointer-events: auto;
  }
  .galaxy-page.is-embedded.is-mobile-continuous .first-screen-next { display: none; }
  .galaxy-page.is-embedded.is-mobile-continuous .start-stage-heading { padding-top: 64px; animation: none; }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded.is-mobile-continuous .fox-canvas {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transform: none;
  }
}

@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .galaxy-page.is-embedded.is-mobile-continuous .mobile-reveal,
  .galaxy-page.is-embedded.is-mobile-continuous .galaxy-intro.hero-copy.mobile-reveal {
    opacity: 0;
    translate: 0 12px;
    transition: opacity .65s ease, translate .65s cubic-bezier(.2,.7,.2,1);
  }
  .galaxy-page.is-embedded.is-mobile-continuous .mobile-reveal.mobile-reveal-visible,
  .galaxy-page.is-embedded.is-mobile-continuous .galaxy-intro.hero-copy.mobile-reveal.mobile-reveal-visible {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .mobile-for-who { gap: 0; }
  .galaxy-page.is-embedded .mobile-for-who-card { grid-area: 1 / 1; align-self: end; }
  .galaxy-page.is-embedded .mobile-for-who-card:not(.is-active) { visibility: hidden; pointer-events: none; }
  .mobile-route-controls { grid-area: 2 / 1; justify-self: center; display: flex; align-items: center; justify-content: space-between; width: 160px; min-height: 40px; margin-top: 56px; padding: 3px; border-radius: 24px; background: #8983e3; color: #fff; }
  .mobile-route-controls button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #222 !important; font-size: 24px !important; line-height: 1; cursor: pointer; }
  .mobile-route-controls span { color: #fff !important; font-size: 12px; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .galaxy-page.is-embedded .mobile-for-who-card.is-exiting { animation: mobile-route-exit .24s ease both; }
  .galaxy-page.is-embedded .mobile-for-who-card.is-entering { animation: mobile-route-enter .36s ease both; }
  @keyframes mobile-route-exit { to { opacity: 0; transform: translateY(10px); } }
  @keyframes mobile-route-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .mobile-main-route-buttons {
    width: 100%;
    gap: 10px;
    margin-top: 12px;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button {
    position: relative;
    overflow: hidden;
    border: 1px solid #373741;
    background: #232329;
    box-shadow: 0 5px 14px rgba(24, 23, 35, .1);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #aaa5ee;
    border-left: 1px solid #aaa5ee;
    opacity: .85;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::after {
    content: '';
    position: absolute;
    right: 7px;
    bottom: 6px;
    width: 13px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #8983e3 0 2px, transparent 2px 4px);
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:is(:hover, :focus-visible, :active) {
    border-color: #aaa5ee;
    background: #343147;
    outline: none;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-face { gap: 7px; padding: 8px 4px; }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-icon svg { width: 25px; height: 25px; stroke: #bdb9ff; }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-label { font-size: 10px !important; font-weight: 600; line-height: 1.25; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child { min-height: 56px; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child .node-face { min-height: 56px; flex-direction: row; gap: 12px; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child .node-label { font-size: 13px !important; }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .mobile-main-route-buttons {
    width: min(100%, 250px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:not(:last-child) {
    aspect-ratio: auto;
    min-height: 92px;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button {
    background-image: linear-gradient(90deg, transparent calc(100% - 1px), rgba(181, 177, 234, .07) calc(100% - 1px)), linear-gradient(transparent calc(100% - 1px), rgba(181, 177, 234, .07) calc(100% - 1px));
    background-size: 24px 24px;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::before { top: 10px; left: 10px; width: 10px; height: 10px; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::after { right: 11px; bottom: 10px; width: 17px; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:not(:last-child) .node-face {
    min-height: 90px;
    padding: 12px 8px;
    gap: 8px;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:not(:last-child) .node-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:not(:last-child) .node-icon svg { width: 30px; height: 30px; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:not(:last-child) .node-label { font-size: 11px !important; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child,
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child .node-face { min-height: 58px; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child { border-color: #8983e3; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child .node-label { font-size: 11px !important; }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .mobile-main-route-buttons button {
    border-color: #dcd9ef;
    background-color: #f7f6fc;
    background-image: linear-gradient(90deg, transparent calc(100% - 1px), rgba(137, 131, 227, .07) calc(100% - 1px)), linear-gradient(transparent calc(100% - 1px), rgba(137, 131, 227, .07) calc(100% - 1px));
    box-shadow: 0 4px 12px rgba(84, 76, 146, .06);
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::before { border-color: #8983e3; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::after { background: repeating-linear-gradient(90deg, #8983e3 0 2px, transparent 2px 4px); }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:is(:hover, :focus-visible, :active) { border-color: #8983e3; background-color: #eeecfb; }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-label { color: #343244 !important; }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-icon { color: #7066d9 !important; }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-icon svg { stroke: #7066d9; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child { background-color: #eeecfa; border-color: #c9c5ed; }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .mobile-main-route-buttons button,
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child {
    background: transparent;
    border-color: #242429;
    box-shadow: none;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:is(:hover, :focus-visible, :active) {
    background: rgba(137, 131, 227, .08);
  }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .mobile-main-route-buttons button {
    border-color: #28282d;
    background-color: #f7f7f7;
    background-image: linear-gradient(90deg, transparent calc(100% - 1px), rgba(35, 35, 41, .05) calc(100% - 1px)), linear-gradient(transparent calc(100% - 1px), rgba(35, 35, 41, .05) calc(100% - 1px));
    box-shadow: 0 4px 12px rgba(24, 24, 30, .06);
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::before { border-color: #28282d; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::after { background: repeating-linear-gradient(90deg, #28282d 0 2px, transparent 2px 4px); }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-label,
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-icon { color: #28282d !important; }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-icon svg { stroke: #28282d; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child { border-color: #28282d; background-color: #eee; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:is(:hover, :focus-visible, :active) { border-color: #111; background-color: #e9e9e9; }
}

@media (max-width: 600px) {
  .galaxy-page.is-embedded .mobile-main-route-buttons button,
  .galaxy-page.is-embedded .mobile-main-route-buttons button:last-child {
    border-color: #dcd9ef;
    background: transparent;
    box-shadow: none;
  }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::before { border-color: #8983e3; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button::after { background: repeating-linear-gradient(90deg, #8983e3 0 2px, transparent 2px 4px); }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-label { color: #343244 !important; }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-icon { color: #7066d9 !important; }
  .galaxy-page.is-embedded .mobile-main-route-buttons .node-icon svg { stroke: #7066d9; }
  .galaxy-page.is-embedded .mobile-main-route-buttons button:is(:hover, :focus-visible, :active) { border-color: #8983e3; background: rgba(137, 131, 227, .08); }
}

.mobile-course-main-title { display: none; }
@media (max-width: 600px) {
  .galaxy-page.is-embedded .mobile-main-route { display: none !important; }
  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-screen-heading,
  .galaxy-page.is-embedded.is-expanded:not(.is-course-view) .path-nodes { display: none !important; }
  .galaxy-page.is-embedded.is-course-view .mobile-course-main-title {
    display: block;
    margin-bottom: 56px;
    color: #111;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.04em;
    text-align: center;
  }
  .galaxy-page.is-embedded.is-course-view .course-view-stack { top: 50%; max-height: calc(100% - 24px); gap: 10px; }
  .galaxy-page.is-embedded.is-course-view .selected-path-panel,
  .galaxy-page.is-embedded.is-course-view .course-list { max-height: min(36svh, 330px); }
}

.mobile-course-inline { display: none; }
@media (max-width: 600px) {
  .galaxy-page.is-embedded .start-stage-topline { overscroll-behavior-y: auto; }
  .galaxy-page.is-embedded .mobile-course-inline { display: flex; width: 100%; margin: 192px 0 80px; flex-direction: column; align-items: center; text-align: center; }
  .mobile-course-overline { justify-content: center; margin-bottom: 8px; }
  .mobile-course-inline > h2 { margin: 0 0 56px; color: #111; font-size: 26px; line-height: 1.2; }
  .mobile-course-heading { width: 100%; }
  .mobile-course-heading h3 { margin: 0 0 9px; font-size: 24px; }
  .mobile-course-heading h3::before { content: '[ '; color: #aaa3bf; }
  .mobile-course-heading h3::after { content: ' ]'; color: #aaa3bf; }
  .mobile-course-heading p { margin: 0; color: #777 !important; font-size: 13px !important; line-height: 1.5; }
  .mobile-course-summary { margin-top: 10px; color: #7652d9; font-size: 11px; }
  .mobile-course-panel { width: 100%; margin-top: 18px; padding: 16px 12px; border: 1px solid #b7a7ed; background: rgba(255,255,255,.72); text-align: left; }
  .mobile-course-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 12px; color: #484153; font-size: 14px; }
  .mobile-course-panel-heading span { color: #968da3; font-size: 10px; }
  .mobile-course-list { max-height: 406px; overflow-y: auto; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; }
  .mobile-course-list .course-directory-row { grid-template-columns: 30px minmax(0,1fr) auto; gap: 4px 8px; padding: 11px 8px; }
  .mobile-course-list .course-directory-index { grid-row: 1 / span 2; color: #968bab; font-size: 10px; }
  .mobile-course-list .course-directory-category { grid-column: 2; color: #7956dc; font-size: 10px; }
  .mobile-course-list .course-directory-name { grid-column: 2; color: #241f2d; font-size: 12px; font-weight: 650; }
  .mobile-course-list .course-directory-count { grid-column: 3; grid-row: 1 / span 2; color: #76668e; font-size: 10px; }
  .mobile-course-switcher { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .mobile-course-switcher .route-switcher-button { position: relative; width: 42px; height: 42px; flex-basis: 42px; }
  .mobile-course-switcher .route-switcher-tip { display: none; }
  .mobile-course-switcher .route-switcher-button[aria-pressed="true"] { border-color: #8983e3; }
}
