@charset "UTF-8";

/* Course journey: fonts and artwork come from the existing local site. */
#course-journey {
  --cj-top: 86px;
  --cj-drift: 0;
  --cj-progress: 0;
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow-anchor: none;
  min-width: 0;
  margin-top: 24px;
  color: var(--text, #f3f4ec);
  font-family: inherit;
}
#course-journey:not(.cj-ready),
#course-journey[hidden] { display: none !important; }
#course-journey.cj-ready { display: block; }
#course-journey button { font-family: inherit; }

.cj-stage {
  --cj-tint: 37, 68, 47;
  position: relative;
  top: auto;
  height: calc(100vh - var(--cj-top));
  height: calc(100svh - var(--cj-top));
  max-height: 800px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 23px 28px 20px;
  overflow: clip;
  isolation: isolate;
  border: 1px solid #394435;
  border-radius: 6px;
  background: #0c130e;
  box-shadow: 0 30px 70px #0003;
}
.cj-stage[data-phase="1"] { --cj-tint: 49, 58, 68; }
.cj-stage[data-phase="2"] { --cj-tint: 66, 56, 35; }
.cj-stage:focus-visible { outline: 1px solid #ff9d4380; outline-offset: -5px; }
.cj-static .cj-stage { position: relative; top: auto; }
.cj-atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 42%, rgba(var(--cj-tint), .67), transparent 64%),
    radial-gradient(ellipse at 68% 80%, #ff9d430a, transparent 52%),
    linear-gradient(115deg, #0b130e 15%, #101a12 60%, #090f0c);
  transition: background-color .6s ease;
}
.cj-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #07100bd9, transparent 51%),
    linear-gradient(0deg, #0b130eef, transparent 38%, transparent 87%, #0b130e66);
}
.cj-atmosphere::after {
  content: "";
  position: absolute;
  width: 54%;
  height: 62%;
  right: -8%;
  top: 6%;
  border-radius: 50%;
  border: 1px solid #acbd9230;
  box-shadow: 0 0 85px #86a36b08, inset 0 0 80px #86a36b06;
  transform: translate3d(calc(var(--cj-drift) * 25px), 0, 0) rotate(-28deg);
}
.cj-grid {
  position: absolute;
  z-index: -1;
  left: 70%;
  bottom: -22%;
  width: 165%;
  height: 74%;
  pointer-events: none;
  transform-origin: center top;
  transform: translateX(-50%) perspective(620px) rotateX(66deg) translateY(calc(var(--cj-drift) * 32px));
  background-image:
    linear-gradient(#a9bd8619 1px, transparent 1px),
    linear-gradient(90deg, #a9bd8619 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(transparent 2%, #000 27%, #000 64%, transparent 96%);
  opacity: .55;
}
.cj-orbit {
  position: absolute;
  z-index: -1;
  left: 73%;
  top: 46%;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid #b7c49320;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotateX(70deg) rotateZ(calc(-18deg + var(--cj-drift) * 12deg));
}
.cj-orbit::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid #ff9d4320;
  border-radius: 50%;
}
.cj-orbit + .cj-orbit,
.cj-orbit.cj-orbit-secondary {
  width: 81%;
  top: 43%;
  opacity: .45;
  transform: translate(-50%, -50%) rotateX(76deg) rotateZ(calc(22deg - var(--cj-drift) * 8deg));
}

.cj-topline {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1.5px;
  color: #a8b29d;
}
.cj-topline > :first-child { display: inline-flex; align-items: center; gap: 9px; }
.cj-topline > :first-child::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--accent, #ff9d43);
  box-shadow: 0 0 12px #ff9d4355;
}
.cj-position { white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.cj-position strong { color: var(--accent, #ff9d43); font-weight: 550; }
.cj-main {
  position: relative;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr);
  gap: 22px;
  align-items: center;
}
.cj-copy { position: relative; z-index: 4; min-width: 0; text-align: left; }
.cj-phase-label {
  display: block;
  margin-bottom: 12px;
  color: #a7b69a;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1.3px;
}
.cj-day-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #a8b29d;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1.5px;
}
.cj-day-label strong {
  color: var(--accent, #ff9d43);
  font-size: clamp(64px, 6.8vw, 96px);
  line-height: .92;
  letter-spacing: -4px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.cj-day-label span { font-size: 12px; letter-spacing: 0; color: #7d8c74; }
.cj-topic { display: block; margin: 20px 0 7px; font-size: 11px; line-height: 1.5; color: var(--accent, #ff9d43); letter-spacing: .6px; }
.cj-title,
.cj-title h3 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.5px;
  color: #f3f4ec;
  text-align: left;
  overflow-wrap: anywhere;
}
.cj-description,
.cj-description p {
  margin: 12px 0 0;
  color: #aab7a0;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
  overflow-wrap: anywhere;
}
.cj-description p { margin: 0; }
.cj-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 40px;
  margin-top: 20px;
  padding: 9px 14px;
  background: #ff9d430d;
  border: 1px solid #ff9d4370;
  border-radius: 3px;
  color: var(--accent, #ff9d43);
  font-size: 12px;
  line-height: 1.5;
  transition: background .2s ease, border-color .2s ease;
}
.cj-open:hover { background: #ff9d4320; border-color: var(--accent, #ff9d43); }
.cj-open > span:last-child { font-size: 17px; line-height: 1; }

.cj-scene {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  perspective: 1100px;
  perspective-origin: 50% 43%;
}
.cj-world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--cj-drift) * -24px), calc(var(--cj-drift) * 7px), calc(var(--cj-drift) * 58px)) rotateY(calc(var(--cj-drift) * -4deg));
}
.cj-board-prev,
.cj-board-next {
  position: absolute;
  top: 46%;
  width: 63%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #8da07852;
  border-radius: 4px;
  background: #080e0b;
  opacity: .48;
  filter: saturate(.7) brightness(.72);
  box-shadow: 0 15px 35px #0005;
  pointer-events: none;
  backface-visibility: hidden;
}
.cj-board-prev { left: 13%; transform: translate3d(-50%, -50%, -210px) rotateY(37deg) rotateZ(-3deg); }
.cj-board-next { left: 89%; transform: translate3d(-50%, -50%, -245px) rotateY(-37deg) rotateZ(3deg); }
.cj-board-prev img,
.cj-board-next img { width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 3px; }
.cj-board-current {
  position: absolute;
  z-index: 2;
  left: 51%;
  top: 46%;
  width: 78%;
  max-width: 650px;
  min-width: 0;
  padding: 0;
  background: #080e0bee;
  color: var(--text, #f3f4ec);
  text-align: left;
  border: 1px solid #a1b38980;
  border-radius: 5px;
  box-shadow: 0 25px 55px #0007, 0 0 40px #adbc8709;
  transform: translate3d(-50%, -50%, 60px) rotateY(calc(var(--cj-drift) * 2deg));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.cj-board-current:hover { border-color: var(--accent, #ff9d43); box-shadow: 0 25px 55px #0007, 0 0 30px #ff9d4314; }
.cj-board-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060b0800;
  border-radius: 4px 4px 0 0;
}
.cj-board-image picture { display: block; width: 100%; height: 100%; }
.cj-board-image img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: center; border-radius: 4px 4px 0 0; }
.cj-board-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid #b0c49526;
  font-size: 10px;
  line-height: 1.5;
  color: #b1bea6;
}
.cj-board-caption > :last-child { color: var(--accent, #ff9d43); }
.cj-flight-path {
  position: absolute;
  z-index: -1;
  left: -12%;
  bottom: -5%;
  width: 124%;
  height: 36%;
  overflow: visible;
  color: var(--accent, #ff9d43);
  pointer-events: none;
  opacity: calc(.34 + var(--cj-progress) * .22);
  transform: translateZ(-80px) rotateX(42deg);
  transform-origin: center bottom;
}
.cj-flight-path path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cj-flight-path path:first-child { opacity: .24; }
.cj-flight-path .cj-route-progress { stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - var(--cj-progress) * 1000); }
.cj-flight-path .cj-path-travel { stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--cj-progress)); }
.cj-flight-path circle { fill: var(--accent, #ff9d43); stroke: none; }
.cj-horizon {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  color: #77896b;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 2px;
  white-space: nowrap;
  pointer-events: none;
}

.cj-bottom { position: relative; z-index: 5; min-width: 0; display: grid; gap: 9px; }
.cj-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; }
.cj-browse-guide { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cj-continue { display: inline-flex; align-items: center; gap: 8px; color: var(--studio-green, var(--accent)); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.cj-continue:hover { text-decoration: underline; text-underline-offset: 4px; }
.cj-continue:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.cj-scroll-hint { display: inline-flex; align-items: center; gap: 8px; color: #9ba98e; font-size: 10px; line-height: 1.5; letter-spacing: .5px; }
.cj-scroll-hint::before { content: "↓"; color: var(--accent, #ff9d43); font-size: 16px; line-height: 1; }
.cj-scroll-hint > span[aria-hidden="true"] { display: none; }
.cj-static .cj-scroll-hint::before { content: "○"; font-size: 11px; }
.cj-actions { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cj-actions button {
  min-height: 33px;
  padding: 7px 11px;
  border: 1px solid #56644a;
  border-radius: 3px;
  background: #0e170ed9;
  color: #bcc7b3;
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cj-actions button:hover:not(:disabled) { color: #f3f4ec; border-color: #a6b590; background: #263123; }
.cj-actions button[aria-pressed="true"] { color: var(--accent, #ff9d43); border-color: #ff9d4370; background: #ff9d4310; }
.cj-actions button:disabled { opacity: .3; }
.cj-phase-nav, .cj-day-nav { position: static; inset: auto; width: 100%; padding: 0; margin: 0; border: 0; background: none; }
.cj-phase-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.cj-phase-nav button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid #3c4a34;
  border-radius: 3px;
  background: #101a12c9;
  color: #a9b69e;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
}
.cj-phase-nav button > span { color: #798b6a; font-size: 10px; font-variant-numeric: tabular-nums; }
.cj-phase-nav button strong { font-size: 13px; font-weight: 500; line-height: 1.45; }
.cj-phase-nav button small { color: #7f9172; font-size: 8px; line-height: 1.5; letter-spacing: .3px; white-space: nowrap; }
.cj-phase-nav button:hover { border-color: #819570; }
.cj-phase-nav button[aria-current="step"],
.cj-phase-nav button[aria-current="true"],
.cj-phase-nav button.active { border-color: #ff9d4370; background: #ff9d430c; }
.cj-phase-nav button[aria-current="step"] strong,
.cj-phase-nav button[aria-current="true"] strong,
.cj-phase-nav button.active strong { color: var(--accent, #ff9d43); }
.cj-day-nav { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.cj-day-nav button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 29px;
  padding: 3px 0;
  border: 1px solid #3c4b33;
  border-radius: 3px;
  background: #101a12b3;
  color: #98aa88;
  font-size: 10px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cj-day-nav button:hover { color: #e5eddb; border-color: #93aa7c; }
.cj-day-nav button[aria-current="step"],
.cj-day-nav button[aria-current="true"],
.cj-day-nav button.active { color: #162012; border-color: var(--accent, #ff9d43); background: var(--accent, #ff9d43); font-weight: 650; }
.cj-progress {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  margin: 1px 0 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #35432c;
  color: var(--accent, #ff9d43);
}
.cj-progress::-webkit-progress-bar { background: #35432c; }
.cj-progress::-webkit-progress-value { background: var(--accent, #ff9d43); }
.cj-progress::-moz-progress-bar { background: var(--accent, #ff9d43); }

.cj-stage.cj-entering .cj-copy { animation: cj-copy-enter .52s cubic-bezier(.21, .74, .28, 1) both; }
.cj-stage.cj-entering .cj-board-current { animation: cj-board-enter .62s cubic-bezier(.21, .74, .28, 1) both; }
@keyframes cj-copy-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cj-board-enter {
  from { opacity: .1; transform: translate3d(-50%, calc(-50% + 16px), -50px) rotateY(-5deg); }
  to { opacity: 1; transform: translate3d(-50%, -50%, 60px) rotateY(calc(var(--cj-drift) * 2deg)); }
}

/* The original syllabus remains the full, readable fallback. */
.cj-outline { margin-top: 28px; border-top: 1px solid #43513a; border-bottom: 1px solid #43513a; }
.cj-outline > summary { display: flex; align-items: center; gap: 18px; padding: 22px 0; list-style: none; cursor: pointer; font-size: 14px; line-height: 1.65; color: #d0dac6; }
.cj-outline > summary::-webkit-details-marker { display: none; }
.cj-outline > summary::after { content: "＋"; margin-left: auto; color: var(--accent, #ff9d43); font-size: 22px; font-weight: 400; line-height: 1; }
.cj-outline[open] > summary::after { content: "－"; }
.cj-outline > summary:hover { color: var(--accent, #ff9d43); }
.cj-outline > summary small { color: #94a285; font-size: 11px; font-weight: 400; }
.cj-outline:not([open]) .curriculum-layout { display: none; }
.cj-outline[open] .curriculum-layout { display: grid; margin: 7px 0 26px; }

@media (max-width: 1100px) {
  .cj-stage { padding-inline: 22px; }
  .cj-main { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 15px; }
  .cj-title, .cj-title h3 { font-size: 26px; }
  .cj-phase-nav button { gap: 8px; padding-inline: 10px; }
  .cj-phase-nav button small { font-size: 7px; }
}
@media (max-width: 900px) {
  #course-journey { --cj-top: 76px; }
  .cj-phase-nav button { grid-template-columns: auto 1fr; gap: 3px 8px; padding-block: 7px; }
  .cj-phase-nav button small { grid-column: 2; }
  .cj-controls { gap: 9px; }
  .cj-actions { gap: 5px; }
  .cj-actions button { padding-inline: 8px; }
  .cj-scroll-hint { font-size: 9px; letter-spacing: 0; }
}
@media (max-width: 760px) {
  .cj-stage { gap: 12px; padding: 15px 14px 14px; border-radius: 4px; }
  .cj-topline { font-size: 8px; letter-spacing: .9px; gap: 8px; }
  .cj-position { font-size: 8px; letter-spacing: .4px; }
  .cj-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 4px; align-items: stretch; }
  .cj-copy { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .cj-phase-label { grid-column: 1 / -1; margin-bottom: 4px; font-size: 9px; letter-spacing: .9px; }
  .cj-day-label { grid-column: 1; grid-row: 2 / span 4; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 9px; letter-spacing: 1px; }
  .cj-day-label strong { font-size: 52px; letter-spacing: -2px; }
  .cj-day-label span { font-size: 9px; }
  .cj-topic { grid-column: 2; margin: 0; font-size: 10px; line-height: 1.4; }
  .cj-title { grid-column: 2; }
  .cj-title, .cj-title h3 { font-size: 23px; line-height: 1.4; letter-spacing: -.3px; }
  .cj-description { grid-column: 2; }
  .cj-description, .cj-description p { font-size: 11px; line-height: 1.7; margin: 3px 0 0; }
  .cj-description p { margin: 0; }
  .cj-open { grid-column: 2; justify-self: start; min-height: 31px; margin: 7px 0 0; padding: 6px 10px; font-size: 10px; gap: 14px; }
  .cj-open > span:last-child { font-size: 14px; }
  .cj-scene { perspective: 800px; perspective-origin: 50% 45%; }
  .cj-world { transform: translate3d(calc(var(--cj-drift) * -10px), calc(var(--cj-drift) * 5px), calc(var(--cj-drift) * 25px)) rotateY(calc(var(--cj-drift) * -3deg)); }
  .cj-board-current { left: 50%; top: 45%; width: 94%; max-width: 580px; }
  .cj-board-prev, .cj-board-next { width: 78%; top: 43%; opacity: .38; }
  .cj-board-prev { left: 2%; transform: translate3d(-50%, -50%, -215px) rotateY(39deg) rotateZ(-4deg); }
  .cj-board-next { left: 99%; transform: translate3d(-50%, -50%, -235px) rotateY(-39deg) rotateZ(4deg); }
  .cj-board-caption { padding: 7px 9px; gap: 8px; font-size: 9px; }
  .cj-flight-path { bottom: -2%; height: 33%; width: 140%; left: -20%; }
  .cj-horizon { bottom: 1%; font-size: 7px; letter-spacing: 1.5px; }
  .cj-grid { left: 50%; width: 260%; height: 57%; bottom: -19%; background-size: 46px 46px; opacity: .35; }
  .cj-orbit { left: 50%; top: 60%; width: 140%; }
  .cj-orbit + .cj-orbit, .cj-orbit.cj-orbit-secondary { width: 170%; top: 58%; }
  .cj-atmosphere::before { background: linear-gradient(0deg, #0a120ee6, transparent 45%, #0b130e75 82%); }
  .cj-atmosphere::after { width: 100%; height: 48%; right: -22%; top: 35%; }
  .cj-bottom { gap: 7px; }
  .cj-controls { flex-direction: column; align-items: stretch; gap: 6px; }
  .cj-scroll-hint { font-size: 9px; line-height: 1.5; }
  .cj-scroll-hint::before { font-size: 13px; }
  .cj-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; width: 100%; }
  .cj-actions button { min-height: 31px; padding: 5px 3px; font-size: 9px; }
  .cj-phase-nav { gap: 5px; }
  .cj-phase-nav button { grid-template-columns: auto 1fr; min-height: 49px; gap: 2px 5px; padding: 7px; }
  .cj-phase-nav button > span { font-size: 8px; }
  .cj-phase-nav button strong { font-size: 11px; }
  .cj-phase-nav button small { font-size: 7px; line-height: 1.4; letter-spacing: 0; }
  .cj-day-nav { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
  .cj-day-nav button { min-height: 26px; padding: 3px 0; font-size: 10px; }
  .cj-outline { margin-top: 22px; }
  .cj-outline > summary { gap: 10px; font-size: 12px; padding-block: 18px; }
  .cj-outline > summary small { font-size: 9px; }
}

/* Compact view retains every control and every line of course text. */
@media (max-height: 620px) and (min-width: 761px) {
  .cj-stage { padding: 12px 22px; gap: 9px; }
  .cj-topline { font-size: 8px; }
  .cj-copy { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .cj-phase-label { grid-column: 1 / -1; margin: 0 0 2px; font-size: 8px; }
  .cj-day-label { grid-column: 1; grid-row: 2 / span 4; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 8px; }
  .cj-day-label strong { font-size: 46px; letter-spacing: -2px; }
  .cj-day-label span { font-size: 8px; }
  .cj-topic { grid-column: 2; margin: 0; font-size: 9px; }
  .cj-title { grid-column: 2; }
  .cj-title, .cj-title h3 { font-size: 21px; line-height: 1.35; }
  .cj-description { grid-column: 2; }
  .cj-description, .cj-description p { margin: 2px 0 0; font-size: 11px; line-height: 1.65; }
  .cj-description p { margin: 0; }
  .cj-open { grid-column: 2; justify-self: start; min-height: 29px; margin-top: 5px; padding: 5px 10px; font-size: 10px; }
  .cj-board-current { width: min(78%, calc((100svh - 340px) * 1.778)); }
  .cj-board-caption { padding: 6px 9px; font-size: 9px; }
  .cj-board-prev, .cj-board-next { width: 48%; }
  .cj-bottom { gap: 6px; }
  .cj-actions button { min-height: 28px; padding-block: 4px; font-size: 9px; }
  .cj-phase-nav button { min-height: 41px; padding-block: 6px; }
  .cj-phase-nav button strong { font-size: 11px; }
  .cj-day-nav button { min-height: 24px; font-size: 9px; }
  .cj-horizon { bottom: 0; font-size: 7px; }
}
@media (max-height: 620px) and (max-width: 760px) {
  .cj-stage { padding: 9px 12px; gap: 6px; }
  .cj-topline { font-size: 7px; line-height: 1.4; }
  .cj-copy { grid-template-columns: 54px minmax(0, 1fr); gap: 2px 10px; }
  .cj-phase-label { margin-bottom: 1px; font-size: 8px; }
  .cj-day-label { gap: 4px; font-size: 8px; }
  .cj-day-label strong { font-size: 39px; }
  .cj-day-label span { font-size: 8px; }
  .cj-topic { font-size: 8px; }
  .cj-title, .cj-title h3 { font-size: 18px; line-height: 1.35; }
  .cj-description, .cj-description p { font-size: 10px; line-height: 1.5; margin-top: 2px; }
  .cj-description p { margin: 0; }
  .cj-open { min-height: 25px; padding: 4px 8px; margin-top: 4px; font-size: 9px; }
  .cj-board-current { width: min(94%, calc((100svh - 430px) * 1.778)); }
  .cj-board-prev, .cj-board-next { width: 46%; opacity: .22; }
  .cj-board-caption { padding: 4px 6px; font-size: 7px; }
  .cj-bottom { gap: 4px; }
  .cj-controls { gap: 3px; }
  .cj-scroll-hint { font-size: 8px; }
  .cj-actions button { min-height: 25px; padding: 4px 2px; font-size: 8px; }
  .cj-phase-nav button { min-height: 38px; padding: 4px 5px; gap: 1px 4px; }
  .cj-phase-nav button strong { font-size: 9px; }
  .cj-phase-nav button small { font-size: 6px; }
  .cj-day-nav { gap: 3px; }
  .cj-day-nav button { min-height: 20px; padding: 2px 0; font-size: 8px; }
  .cj-horizon { display: none; }
}
@media (max-height: 480px) {
  #course-journey.cj-ready { height: auto !important; }
  .cj-stage { position: relative; top: auto; height: auto; max-height: none; grid-template-rows: auto auto auto; gap: 14px; padding: 18px; }
  .cj-main { min-height: 250px; }
  .cj-scene { min-height: 235px; }
  .cj-board-current { width: 78%; }
  .cj-board-prev, .cj-board-next { width: 56%; }
  .cj-horizon { display: block; }
  .cj-bottom { gap: 8px; }
  .cj-phase-nav button { min-height: 45px; }
  .cj-day-nav button { min-height: 28px; }
}
@media (max-height: 480px) and (max-width: 760px) {
  .cj-stage { padding: 15px 13px; }
  .cj-main { grid-template-rows: auto 240px; gap: 10px; }
  .cj-copy { grid-template-columns: 62px minmax(0, 1fr); gap: 4px 12px; }
  .cj-day-label strong { font-size: 46px; }
  .cj-title, .cj-title h3 { font-size: 22px; }
  .cj-description, .cj-description p { font-size: 11px; line-height: 1.7; }
  .cj-board-current { width: 94%; }
  .cj-board-caption { font-size: 9px; padding: 7px 9px; }
  .cj-actions button { min-height: 30px; font-size: 9px; }
  .cj-phase-nav button strong { font-size: 11px; }
  .cj-phase-nav button small { font-size: 7px; }
  .cj-day-nav button { font-size: 10px; }
}

/* User and system preferences share the same calm, complete layout. */
.cj-gentle .cj-world,
.cj-gentle.cj-stage .cj-world { transform: none; transform-style: flat; }
.cj-gentle .cj-board-current,
.cj-gentle.cj-stage .cj-board-current { transform: translate(-50%, -50%); transform-style: flat; }
.cj-gentle .cj-board-prev,
.cj-gentle.cj-stage .cj-board-prev { transform: translate(-50%, -50%) scale(.73); }
.cj-gentle .cj-board-next,
.cj-gentle.cj-stage .cj-board-next { transform: translate(-50%, -50%) scale(.69); }
.cj-gentle .cj-grid,
.cj-gentle.cj-stage .cj-grid { left: 50%; bottom: 0; height: 28%; transform: translateX(-50%); opacity: .15; }
.cj-gentle .cj-orbit,
.cj-gentle.cj-stage .cj-orbit { transform: translate(-50%, -50%); opacity: .08; }
.cj-gentle .cj-flight-path,
.cj-gentle.cj-stage .cj-flight-path { transform: none; }
.cj-gentle .cj-atmosphere::after,
.cj-gentle.cj-stage .cj-atmosphere::after { transform: rotate(-28deg); }
.cj-gentle *, .cj-gentle *::before, .cj-gentle *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  #course-journey *, #course-journey *::before, #course-journey *::after { animation: none !important; transition: none !important; }
  .cj-world { transform: none; transform-style: flat; }
  .cj-board-current { transform: translate(-50%, -50%); transform-style: flat; }
  .cj-board-prev { transform: translate(-50%, -50%) scale(.73); }
  .cj-board-next { transform: translate(-50%, -50%) scale(.69); }
  .cj-grid { left: 50%; bottom: 0; height: 28%; transform: translateX(-50%); opacity: .15; }
  .cj-orbit, .cj-orbit + .cj-orbit, .cj-orbit.cj-orbit-secondary { transform: translate(-50%, -50%); opacity: .08; }
  .cj-flight-path { transform: none; }
  .cj-atmosphere::after { transform: rotate(-28deg); }
}
