.admission-gallery figcaption,
.admission-gallery .caption-away-from-faces figcaption {
  top: auto;
  bottom: 24px;
  padding-left: 76px;
  animation: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.admission-gallery figcaption.is-being-dragged {
  z-index: 5;
  cursor: grabbing;
  box-shadow: 0 18px 45px rgb(14 28 55 / 32%);
  background: rgb(30 45 77 / 96%);
}

.caption-drag-handle {
  position: absolute;
  top: 50%;
  left: 17px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #1e2d4d;
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgb(4 15 38 / 24%);
  cursor: grab;
  transform: translateY(-50%);
}

.caption-drag-handle:focus-visible {
  outline: 3px solid #f7c84b;
  outline-offset: 3px;
}

.caption-drag-handle:active {
  cursor: grabbing;
}

.caption-drag-handle .drag-glyph {
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  animation: dragHandleNudge 1.8s ease-in-out infinite;
}

.caption-drag-handle .drag-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  width: max-content;
  padding: 5px 8px;
  color: #fff;
  background: #17243f;
  border-radius: 7px;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.caption-drag-handle:hover .drag-label,
.caption-drag-handle:focus-visible .drag-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes dragHandleNudge {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, 0); }
  50% { transform: translate(0, 2px); }
  75% { transform: translate(-2px, 0); }
}

@media (max-width: 700px) {
  .admission-gallery figcaption,
  .admission-gallery .caption-away-from-faces figcaption {
    top: auto;
    bottom: 14px;
    padding-left: 68px;
  }

  .caption-drag-handle {
    left: 13px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .caption-drag-handle .drag-glyph {
    animation: none;
  }
}

/* Original satellite fly-by replacing the former pink planet decoration. */
.satellite-scene {
  z-index: 1;
  pointer-events: none;
  position: absolute;
  top: 10px;
  right: -20px;
  width: min(46vw, 620px);
  height: 320px;
  overflow: hidden;
  opacity: .9;
}

.fast-earth {
  position: absolute;
  top: 64px;
  right: 86px;
  width: 142px;
  height: 142px;
  overflow: hidden;
  border: 2px solid #b9f2e5a6;
  border-radius: 50%;
  background: radial-gradient(circle at 31% 27%, #76cfe5, #347fa4 58%, #1b3d72 100%);
  box-shadow: inset -23px -17px #14294f80, 0 0 0 10px #72d7c51c, 0 18px 50px #07112678;
}

.fast-earth::before {
  content: "";
  position: absolute;
  top: 13%;
  left: -110%;
  width: 320%;
  height: 76%;
  background:
    radial-gradient(ellipse at 12% 35%, #71c9aa 0 7%, transparent 7.5%),
    radial-gradient(ellipse at 25% 72%, #5bb391 0 5%, transparent 5.5%),
    radial-gradient(ellipse at 40% 28%, #8bd0a3 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 57% 66%, #62b78f 0 7%, transparent 7.5%),
    radial-gradient(ellipse at 73% 24%, #83ca9c 0 6%, transparent 6.5%),
    radial-gradient(ellipse at 89% 66%, #5cab8c 0 8%, transparent 8.5%);
  animation: rapidEarthSpin 3.8s linear infinite;
}

.fast-earth::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(112deg, #fff7 0 8%, transparent 27% 72%, #08193480 93%);
}

.satellite-orbit-line {
  position: absolute;
  top: 32px;
  right: 18px;
  width: 330px;
  height: 245px;
  border: 1px dashed #f5ad216e;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-16deg);
  animation: satelliteOrbitGlow 4s ease-in-out infinite;
}

.flying-satellite {
  position: absolute;
  top: 84px;
  left: -210px;
  width: 190px;
  height: 92px;
  filter: drop-shadow(0 14px 14px #07112670);
  transform-origin: center;
  animation: satelliteFlyBy 7.2s cubic-bezier(.24, .02, .55, 1) infinite;
}

.satellite-body {
  z-index: 3;
  position: absolute;
  top: 29px;
  left: 72px;
  width: 47px;
  height: 35px;
  border: 3px solid #f1d99e;
  border-radius: 7px;
  background: linear-gradient(135deg, #fff4c5, #b98a47 68%, #75522f);
  box-shadow: inset 7px 6px #fff6;
}

.satellite-body::after {
  content: "";
  position: absolute;
  top: 11px;
  right: -19px;
  width: 19px;
  height: 9px;
  border-radius: 0 8px 8px 0;
  background: #f5ad21;
}

.satellite-panel {
  position: absolute;
  top: 33px;
  width: 66px;
  height: 27px;
  border: 3px solid #dbe9f7;
  background:
    repeating-linear-gradient(90deg, transparent 0 13px, #dbe9f750 14px 16px),
    repeating-linear-gradient(0deg, #35619b 0 7px, #223f76 8px 13px);
  box-shadow: inset 0 0 12px #071b49a1;
}

.satellite-panel.panel-left { left: 4px; }
.satellite-panel.panel-right { right: 4px; }

.satellite-dish {
  z-index: 4;
  position: absolute;
  top: 6px;
  left: 82px;
  width: 29px;
  height: 29px;
  border: 4px solid #fff4c5;
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.satellite-dish::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 18px;
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: #fff4c5;
  transform: rotate(-45deg);
  transform-origin: top;
}

.satellite-star {
  position: absolute;
  color: #fff4c5;
  font-style: normal;
  animation: satelliteStarBlink 3.2s ease-in-out infinite;
}

.satellite-star.star-a { top: 43px; left: 20%; font-size: 17px; }
.satellite-star.star-b { right: 7%; bottom: 55px; color: #f5ad21; animation-delay: 1.1s; }
.satellite-star.star-c { top: 42%; right: 46%; color: #a5e6d3; animation-delay: 2s; }

@keyframes rapidEarthSpin {
  from { transform: translateX(0); }
  to { transform: translateX(33.333%); }
}

@keyframes satelliteFlyBy {
  0%, 7% { opacity: 0; transform: translate3d(-40px, 65px, 0) scale(.45) rotate(-12deg); }
  13% { opacity: 1; }
  42% { opacity: 1; transform: translate3d(310px, 2px, 0) scale(1) rotate(4deg); }
  70% { opacity: 1; transform: translate3d(620px, -82px, 0) scale(.62) rotate(13deg); }
  78%, 100% { opacity: 0; transform: translate3d(850px, -154px, 0) scale(.3) rotate(20deg); }
}

@keyframes satelliteOrbitGlow {
  50% { opacity: .38; transform: rotate(-12deg) scale(1.04); }
}

@keyframes satelliteStarBlink {
  50% { opacity: .28; scale: .55; rotate: 90deg; }
}

@media (max-width: 760px) {
  .satellite-scene {
    top: -8px;
    right: -90px;
    width: 470px;
    height: 260px;
    opacity: .62;
    scale: .72;
    transform-origin: top right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fast-earth::before,
  .satellite-orbit-line,
  .flying-satellite,
  .satellite-star {
    animation: none !important;
  }

  .flying-satellite {
    left: 95px;
    opacity: 1;
    transform: scale(.8) rotate(5deg);
  }
}

/* Keep the fly-by decorative and out of the class-card document flow. */
.class-options > .satellite-scene {
  z-index: 1;
  position: absolute !important;
  top: clamp(24px, 4vw, 64px);
  right: clamp(12px, 3vw, 58px);
  width: min(43vw, 560px);
  height: 270px;
  margin: 0;
  opacity: .82;
}

.class-options > .satellite-scene .fast-earth {
  top: 52px;
  right: 62px;
  width: 122px;
  height: 122px;
}

.class-options > .satellite-scene .satellite-orbit-line {
  top: 23px;
  right: 5px;
  width: 295px;
  height: 210px;
}

.class-options > .satellite-scene .flying-satellite {
  top: 72px;
}

@media (max-width: 760px) {
  .class-options > .satellite-scene {
    top: 10px;
    right: -102px;
    width: 450px;
    height: 235px;
    opacity: .52;
    scale: .7;
    transform-origin: top right;
  }
}

/* 2027 fee table: class plus two annual instalments, books and monthly fees. */
.site-header nav {
  gap: clamp(13px, 1.55vw, 30px);
}

.fees .fee-row {
  grid-template-columns: minmax(210px, 1.35fr) repeat(4, minmax(120px, 1fr));
}

@media (max-width: 760px) {
  .fees .fee-row {
    grid-template-columns: 1fr 1fr;
  }

  .fees .fee-row:not(.fee-header) span:first-child {
    grid-column: 1 / -1;
  }
}
