/* Cosmic Glass applies only to the Astronomy homepage and product preview. */
.cosmic {
  --cg-navy: #0b2a4d;
  --cg-blue: #0a6faf;
  --cg-cyan: #33a7dd;
  --cg-ice: #eaf3fa;
  --cg-space: #04101e;
  --cg-surface: #0a1d31;
  --cg-steel: #b8cfe0;
  --cg-light: #8bd6f5;
  --cg-line: rgba(139, 214, 245, .22);
  --cg-radius: 1.35rem;
  --cg-gutter: clamp(1rem, 5vw, 4.75rem);
  --cg-section-gap: clamp(3.7rem, 6.2vw, 6.4rem);
  display: flow-root;
  min-height: 100vh;
  background: var(--cg-space);
  color: var(--cg-ice);
  color-scheme: dark;
}
.cosmic [hidden] { display: none !important; }
.cosmic a { color: var(--cg-light); }
.cosmic :is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cg-light);
  outline-offset: 4px;
}
.cosmic #main { scroll-margin-top: 6rem; }
.cosmic #main:focus { outline: none; }
.cosmic .skip {
  z-index: 30;
  border-radius: .45rem;
  color: var(--cg-navy);
}
.cosmic :is(section, [id^="topic-"], [id^="reading-"]) { scroll-margin-top: 6.5rem; }
.cg-shell { width: min(100% - 2 * var(--cg-gutter), 77.5rem); margin-inline: auto; }
.cg-section { padding-top: var(--cg-section-gap); }
.cg-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.05rem);
}
.cg-section-head > p { max-width: 34ch; color: var(--cg-steel); }
.cosmic h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  letter-spacing: -.054em;
  font-weight: 720;
}
.cosmic h3 { font-weight: 690; line-height: 1.17; }
.cg-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .9rem;
  color: var(--cg-light);
  font-size: .72rem;
  line-height: 1.5;
  font-weight: 710;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cg-kicker::before { content: ""; height: 1px; width: 1.5rem; flex: none; background: currentColor; }
.cg-lead {
  max-width: 35ch;
  margin-top: 1.35rem;
  color: var(--cg-steel);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.6;
}
.cg-ice-type {
  color: var(--cg-light);
  background: linear-gradient(145deg, #fff 6%, #a1e1fa 49%, var(--cg-cyan) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cg-glass {
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: linear-gradient(140deg, rgba(77, 154, 205, .13), transparent 72%), rgba(10, 29, 49, .84);
  box-shadow: inset 0 1px rgba(234, 243, 250, .045), 0 18px 45px rgba(0, 0, 0, .14);
}
.cg-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.cg-icon {
  width: 1.12em;
  height: 1.12em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cg-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }
.cosmic .cg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.85rem;
  padding: .65rem 1.08rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: var(--cg-ice);
  font: inherit;
  font-size: .88rem;
  font-weight: 680;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.cosmic .cg-button-primary {
  border-color: #a9e7ff;
  background: #8bd6f5;
  color: #051b2f;
  box-shadow: 0 7px 24px rgba(51, 167, 221, .19);
}
.cosmic .cg-button-primary:hover { background: #b9eaff; box-shadow: 0 8px 32px rgba(51, 167, 221, .35); }
.cosmic .cg-button-outline { border-color: var(--cg-line); background-color: rgba(11, 42, 77, .58); }
.cosmic .cg-button-outline:hover { border-color: var(--cg-light); background-color: var(--cg-navy); }
.cosmic .cg-link {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-height: 2.75rem;
  font-weight: 670;
  font-size: .89rem;
  line-height: 1.35;
  text-decoration: none;
}
.cosmic .cg-link:hover { text-decoration: underline; }
.cg-link .cg-icon { transition: transform .22s ease; }
.cg-link:hover .cg-icon { transform: translateX(.18rem); }
.cg-status {
  display: inline-flex;
  align-items: center;
  gap: .44rem;
  width: fit-content;
  padding: .23rem .55rem;
  border: 1px solid var(--cg-line);
  border-radius: 2rem;
  background: #102d45;
  color: #d0e8f6;
  font-size: .69rem;
  line-height: 1.4;
  font-weight: 660;
}
.cg-status-live { background: #113c55; color: #bdecff; }
.cg-status-live::before { content: ""; width: .38rem; height: .38rem; background: var(--cg-light); border-radius: 50%; }
.cg-emblem {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--cg-line);
  border-radius: .72rem;
  background: rgba(51, 167, 221, .095);
  color: var(--cg-light);
  font-size: 1.25rem;
}

/* Floating navigation and footer */
.cg-header { position: sticky; top: .85rem; z-index: 12; margin-top: 1.25rem; }
.cg-nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.3rem;
  min-height: 4.15rem;
  padding: .35rem .7rem .35rem 1.05rem;
  border-radius: 1rem;
  background: rgba(9, 25, 42, .94);
}
.cg-brand { display: inline-flex; flex: none; align-items: center; border-radius: .35rem; }
.cg-brand img { display: block; width: 8.15rem; height: auto; }
.cg-nav { display: flex; align-items: center; gap: clamp(.1rem, 1.55vw, 1.3rem); }
.cosmic .cg-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .42rem .65rem;
  border-radius: .55rem;
  color: var(--cg-steel);
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.cosmic .cg-nav a:hover { color: #fff; background: rgba(51, 167, 221, .12); }
.cosmic .cg-nav .cg-nav-schools { border: 1px solid var(--cg-line); padding-inline: .94rem; color: var(--cg-ice); }
.cosmic .cg-menu-toggle { display: none; background: #102d45; border-color: var(--cg-line); cursor: pointer; }
.cg-menu-toggle[aria-expanded="false"] .cg-menu-close,
.cg-menu-toggle[aria-expanded="true"] .cg-menu-open { display: none; }
.cg-footer {
  margin-top: var(--cg-section-gap);
  padding: clamp(2rem, 5vw, 4.2rem) 0 1.4rem;
  border-top: 1px solid var(--cg-line);
  background: linear-gradient(120deg, #0a2036, var(--cg-space) 70%);
}
.cg-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.65rem 2.6rem;
}
.cg-footer .cg-brand img { width: 10rem; }
.cg-footer-brand p { margin-top: .55rem; color: var(--cg-steel); font-size: .86rem; }
.cg-footer-grid h2 { margin-bottom: .65rem; color: #fff; font-size: .97rem; letter-spacing: -.015em; text-wrap: nowrap; }
.cg-footer-grid > div:not(:first-child) a { display: block; width: fit-content; padding-block: .46rem; }
.cg-footer a { font-size: .84rem; text-decoration: none; }
.cg-footer a:hover { text-decoration: underline; }
.cg-footer-end {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  margin-top: 1.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cg-line);
  color: var(--cg-steel);
  font-size: .8rem;
}

/* Observatory */
.cg-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: -5.5rem;
  padding-top: 5.5rem;
}
.cg-hero-field { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.cg-hero-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(cosmic-field.webp) 68% 52% / cover;
  filter: grayscale(1);
  opacity: .46;
}
.cg-hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--cg-space) 0%, transparent 34%, transparent 72%, rgba(4, 16, 30, .72) 100%),
    linear-gradient(96deg, #04101e 3%, rgba(4, 16, 30, .92) 19%, rgba(4, 16, 30, .47) 61%, rgba(4, 16, 30, .36) 100%),
    radial-gradient(ellipse at 76% 58%, rgba(51, 167, 221, .39), rgba(10, 111, 175, .23) 31%, transparent 62%);
}
.cg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.11fr;
  align-items: center;
  min-height: clamp(34rem, 46vw, 45rem);
  padding-block: 1.5rem 2rem;
}
.cg-hero-copy { z-index: 2; padding-bottom: 1.1rem; }
.cg-hero h1 {
  color: #fff;
  font-size: clamp(3.85rem, 7.5vw, 7.3rem);
  line-height: .99;
  letter-spacing: -.048em;
  font-weight: 760;
  text-wrap: wrap;
}
.cg-observatory {
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: 1.07;
  isolation: isolate;
}
.cg-celestial { position: absolute; inset: 0; pointer-events: none; transform: translateY(var(--cg-drift, 0)); }
.cg-moon-halo {
  position: absolute;
  inset: -2% -11% -6% 3%;
  background: radial-gradient(ellipse at 56% 43%, rgba(51, 167, 221, .28), rgba(10, 111, 175, .14) 45%, transparent 67%);
}
.cg-moon {
  position: absolute;
  top: 11%;
  left: 16%;
  width: 73%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #102a44;
  box-shadow: 2px -2px 14px rgba(149, 217, 255, .26), 0 0 80px rgba(51, 167, 221, .24);
}
.cg-moon img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.04); }
.cg-moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 84% 21%, transparent 10%, rgba(11, 42, 77, .19) 41%, rgba(4, 16, 30, .84) 79%, #04101e 100%),
    linear-gradient(150deg, rgba(117, 196, 246, .27), transparent 46%, rgba(8, 45, 73, .54));
}
.cg-axis { position: absolute; opacity: .4; }
.cg-axis-x {
  top: 48%;
  left: 0;
  width: 104%;
  border-top: 1px dashed rgba(139, 214, 245, .36);
}
.cg-axis-y { top: 3%; left: 53%; height: 88%; border-left: 1px dashed rgba(139, 214, 245, .32); }
.cg-orbit { position: absolute; border: 1px solid rgba(139, 214, 245, .29); border-radius: 50%; }
.cg-orbit-wide { inset: 21% -8% 22% -5%; transform: rotate(-25deg); }
.cg-orbit-mid { inset: 4% 12% 7% 16%; transform: rotate(31deg); border-style: dashed; opacity: .7; }
.cg-orbit-front { inset: 24% 0 26% 1%; transform: rotate(-24deg); border-color: rgba(139, 214, 245, .34); }
.cg-satellite {
  position: absolute;
  left: 0;
  top: 0;
  width: .52rem;
  height: .52rem;
  border-radius: 50%;
  background: #d4f2ff;
  box-shadow: 0 0 0 .27rem rgba(139, 214, 245, .1), 0 0 18px .35rem rgba(51, 167, 221, .62);
  offset-path: ellipse(50% 50% at 50% 50%);
  offset-distance: 11%;
}
.cg-star { position: absolute; width: .27rem; aspect-ratio: 1; border-radius: 50%; background: #a9dcf7; box-shadow: 0 0 12px 2px #4298ca; }
.cg-star-one { top: 14%; left: 17%; }
.cg-star-two { top: 18%; right: 5%; width: .18rem; }
.cg-star-three { bottom: 14%; right: 16%; }
.cosmic .cg-target {
  position: absolute;
  left: 3%;
  bottom: 10%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .68rem;
  min-width: 12rem;
  padding: .68rem .9rem;
  border-radius: .75rem;
  color: #fff;
  background: rgba(7, 25, 43, .94);
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .22s ease, background-color .22s ease;
}
.cosmic .cg-target:hover { border-color: var(--cg-light); background-color: var(--cg-navy); }
.cg-target small { display: block; margin-top: .08rem; color: var(--cg-light); font-size: .71rem; }
.cg-target .cg-icon { margin-left: .4rem; color: var(--cg-light); }
.cg-target-sight {
  display: block;
  width: 1.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--cg-light);
  background: radial-gradient(circle, var(--cg-light) 0 15%, transparent 17% 41%, var(--cg-line) 43% 49%, transparent 51%);
}
@supports (backdrop-filter: blur(14px)) {
  .cg-nav-bar, .cosmic .cg-target { backdrop-filter: blur(14px); }
  .cg-nav-bar { background: rgba(9, 25, 42, .76); }
  .cosmic .cg-target { background: rgba(7, 25, 43, .76); }
}

/* The collection and shared development jacket */
.cg-shelf { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 1rem; }
.cg-shelf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.2rem, .72fr);
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  min-height: 19rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 79% 37%, rgba(51, 167, 221, .26), transparent 60%),
    linear-gradient(145deg, #0e2b47, #081a2b 72%);
}
.cg-shelf-textbook { grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); }
.cg-shelf-workbook {
  background:
    radial-gradient(ellipse at 85% 42%, rgba(51, 167, 221, .14), transparent 55%),
    linear-gradient(145deg, #0b233a, #091b2e 65%);
}
.cg-shelf h3 { margin-top: .75rem; color: #fff; font-size: clamp(1.32rem, 2.55vw, 2.24rem); letter-spacing: -.055em; text-wrap: wrap; }
.cg-shelf p { margin-top: .65rem; color: var(--cg-steel); font-size: .91rem; }
.cg-shelf .cg-link { margin-top: .55rem; }
.cg-textbook-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.6rem, 1.6vw, 1.25rem);
  width: min(100%, 27rem);
  margin-inline: auto;
}
:is(.cg-textbook-covers, .cg-workbook-cover) img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .2rem;
  box-shadow: 0 .65rem 1.35rem rgba(0, 0, 0, .46);
}
:is(.cg-textbook-covers, .cg-workbook-cover) figcaption {
  margin-top: .55rem;
  color: var(--cg-ice);
  text-align: center;
  font-size: .8rem;
}
.cg-workbook-cover { width: min(100%, 9rem); margin-inline: auto; }
.cg-resource--workbook {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.8rem, .46fr);
  align-items: start;
  gap: clamp(.6rem, 2vw, 1.4rem);
}

/* Course atlas and progressively enhanced tab lists */
.cg-atlas { padding: clamp(1rem, 2.7vw, 2rem); }
.cg-paper-tabs, .cg-reader-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.cg-paper-tabs a, .cg-reader-tabs a, .cg-topic-tabs a {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .55rem .78rem;
  border: 1px solid var(--cg-line);
  border-radius: .55rem;
  background: rgba(4, 16, 30, .43);
  color: var(--cg-ice);
  font-size: .87rem;
  font-weight: 590;
  text-decoration: none;
}
.cg-paper-tabs a span, .cg-topic-tabs a span {
  color: var(--cg-light);
  font-size: .7rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cg-paper-tabs a:hover, .cg-reader-tabs a:hover, .cg-topic-tabs a:hover { border-color: var(--cg-light); }
.cg-paper-tabs a[aria-selected="true"], .cg-reader-tabs a[aria-selected="true"], .cg-topic-tabs a[aria-selected="true"] {
  border-color: #72bcdf;
  background: #153b58;
  color: #fff;
}
.cg-paper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .28rem .85rem;
  margin-block: 1.1rem .84rem;
  color: var(--cg-steel);
  font-size: .81rem;
}
.cg-paper-meta strong { color: var(--cg-ice); }
.cg-topic-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 1rem; }
.cg-topic-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .48rem; align-items: stretch; }
.cg-topic-tabs a { min-height: 3.25rem; line-height: 1.27; }
.cg-topic-note {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1rem, 2.5vw, 1.65rem);
  border: 1px solid rgba(139, 214, 245, .24);
  border-radius: .8rem;
  background:
    radial-gradient(ellipse at 110% 0, rgba(51, 167, 221, .22), transparent 63%),
    linear-gradient(150deg, #0e2d49, #091d31 84%);
  color: var(--cg-steel);
  font-size: .9rem;
}
.cg-topic-note h3 { margin: .37rem 0 .5rem; color: #fff; font-size: clamp(1.36rem, 2.8vw, 2.02rem); text-wrap: wrap; }
.cg-topic-code { color: var(--cg-light); font-size: .73rem; font-weight: 700; letter-spacing: .09em; }
.cg-topic-note .cg-topic-question { color: var(--cg-ice); font-weight: 660; }
.cg-topic-note p + p { margin-top: .42rem; }
.cg-topic-note .cg-link { margin-top: auto; padding-top: .3rem; }
.cg-atlas:not(.cg-tabs-ready) .cg-atlas-paper + .cg-atlas-paper,
.cg-topic-layout:not(.cg-tabs-ready) .cg-topic-note + .cg-topic-note,
.cg-reader:not(.cg-tabs-ready) .cg-reader-page + .cg-reader-page { margin-top: .85rem; }

/* Simulation catalogue and scientific illustrations */
.cg-simulation-zone { position: relative; isolation: isolate; }
.cg-simulation-zone::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 32% 63%, rgba(10, 111, 175, .19), transparent 64%);
  pointer-events: none;
}
.cg-sim-grid { display: grid; grid-template-columns: 1.22fr 1fr; gap: .85rem; }
.cg-sim {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 11rem;
  padding: clamp(1rem, 2.4vw, 1.55rem);
  overflow: hidden;
}
.cg-sim--lunar { grid-row: span 2; min-height: 23rem; background: #0a1d31; }
.cg-sim-copy { position: relative; width: min(100%, 24rem); }
.cg-sim h3 { margin-top: .55rem; color: #fff; font-size: clamp(1.23rem, 2.6vw, 1.88rem); letter-spacing: -.045em; text-wrap: wrap; }
.cg-sim p { margin-top: .4rem; color: var(--cg-steel); font-size: .87rem; }
.cg-sim-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .32rem .63rem; color: var(--cg-light); font-size: .7rem; font-weight: 640; }
.cg-sim-art, .cg-reader-art { position: absolute; inset: 0; pointer-events: none; }
.cg-sim-art { z-index: -1; }
.cg-sim--lunar .cg-sim-art {
  background:
    linear-gradient(0deg, #071727 5%, rgba(7, 23, 39, .84) 24%, transparent 63%),
    radial-gradient(ellipse at 66% 33%, rgba(51, 167, 221, .34), transparent 68%), #091d32;
}
.cg-sim--lunar .cg-sim-art span, .cg-reader-art--phases span {
  position: absolute;
  top: 14%;
  right: 12%;
  width: 68%;
  height: 50%;
  border: 1px solid rgba(139, 214, 245, .52);
  border-radius: 50%;
  transform: rotate(-19deg);
}
.cg-sim--lunar .cg-sim-art span::after, .cg-reader-art--phases span::after {
  content: "";
  position: absolute;
  inset: 19%;
  border: 1px dashed rgba(139, 214, 245, .42);
  border-radius: 50%;
}
.cg-sim--lunar .cg-sim-art i, .cg-reader-art--phases i {
  position: absolute;
  top: 20%;
  right: 40%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 2rem rgba(51, 167, 221, .5);
  background: radial-gradient(circle at 64% 25%, #b8edff, #388bb8 28%, #153c5f 55%, #061729 79%);
}
.cg-sim--lunar .cg-sim-art::after, .cg-reader-art--phases::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 16%;
  width: 10%;
  aspect-ratio: 1;
  border: 1px solid rgba(139, 214, 245, .26);
  border-radius: 50%;
  background: linear-gradient(110deg, rgba(4, 16, 30, .8), transparent), url(cosmic-moon-small.webp) center / cover;
  box-shadow: 0 0 1rem rgba(139, 214, 245, .28);
}
.cg-sim--stellar .cg-sim-art {
  background:
    linear-gradient(90deg, #0a1d31 13%, transparent 73%),
    radial-gradient(circle at 79% 24%, rgba(51, 167, 221, .23), transparent 41%);
}
.cg-sim--stellar .cg-sim-art span {
  position: absolute;
  top: 13%;
  right: 7%;
  width: 33%;
  height: 72%;
  border: 1px solid rgba(139, 214, 245, .24);
  border-radius: .45rem;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(139, 214, 245, .17) 1px) 0 0 / 20% 100%,
    linear-gradient(0deg, transparent calc(100% - 1px), rgba(139, 214, 245, .17) 1px) 0 0 / 100% 25%;
  mask-image: linear-gradient(to right, transparent, #fff 39%);
}
.cg-sim--stellar .cg-sim-art i {
  position: absolute;
  top: 28%;
  right: 26%;
  width: .24rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c7f3ff;
  transform: rotate(19deg);
  box-shadow: 13px 10px #a1dcf9, 25px 14px #64bbdf, 31px 12px #d5f6ff, 39px 31px #87d2ef,
              53px 39px #97d5f0, 70px 45px #55a9d6, 77px 68px #a4d8f6, 92px 57px #9ed0ed;
}
.cg-sim--orbital .cg-sim-art {
  background: radial-gradient(ellipse at 83% 40%, rgba(51, 167, 221, .19), transparent 57%);
}
.cg-sim--orbital .cg-sim-art span {
  position: absolute;
  top: 18%;
  right: 3%;
  width: 38%;
  height: 61%;
  border: 1px solid rgba(139, 214, 245, .45);
  border-radius: 50%;
  transform: rotate(-27deg);
  mask-image: linear-gradient(to right, transparent, #fff 55%);
}
.cg-sim--orbital .cg-sim-art span::before, .cg-sim--orbital .cg-sim-art span::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(139, 214, 245, .31);
  border-radius: 50%;
}
.cg-sim--orbital .cg-sim-art span::after { inset: 31%; }
.cg-sim--orbital .cg-sim-art i {
  position: absolute;
  top: 38%;
  right: 18%;
  width: .68rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #a9e8fe;
  box-shadow: 0 0 .9rem #33a7dd;
}
.cg-sim--stellar .cg-sim-art::after, .cg-sim--orbital .cg-sim-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(85deg, #0a1d31 41%, rgba(10, 29, 49, .73) 58%, transparent 85%);
}
.cg-catalogue { margin-top: .85rem; background: #0a1d31; box-shadow: none; }
.cg-catalogue summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .85rem 1.15rem;
  color: var(--cg-ice);
  list-style: none;
  font-size: .9rem;
  border-radius: inherit;
}
.cg-catalogue summary::-webkit-details-marker { display: none; }
.cg-catalogue summary .cg-icon { color: var(--cg-light); }
.cg-catalogue[open] summary .cg-icon { transform: rotate(180deg); }
.cg-catalogue-list { margin: 0; padding: 0 1.15rem .45rem; list-style: none; }
.cg-catalogue-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding-block: .63rem;
  border-top: 1px solid var(--cg-line);
  font-size: .88rem;
  color: var(--cg-steel);
}
.cg-live-lab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: .85rem;
  padding: clamp(1rem, 2.6vw, 1.6rem);
  background: linear-gradient(111deg, #103551, #09223b 65%);
}
.cg-live-lab h3 { margin-top: .45rem; color: #fff; font-size: 1.35rem; }
.cg-live-lab p { margin-top: .32rem; color: var(--cg-steel); font-size: .88rem; }
.cg-live-lab .cg-button { flex: none; }

/* Distinct starting points */
.cg-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.1rem); }
.cg-path-grid article { border-top: 1px solid var(--cg-line); padding: 1.35rem .4rem 0 0; }
.cg-path-grid h3 { margin-top: .86rem; margin-bottom: .5rem; color: #fff; font-size: 1.33rem; text-wrap: wrap; }
.cg-path-grid p { color: var(--cg-steel); font-size: .92rem; }
.cg-path-grid .cg-link { margin-top: .43rem; }

/* Product stage and reader */
.cg-product-top {
  position: relative;
  padding-top: 1.8rem;
  background: radial-gradient(ellipse at 37% 28%, rgba(10, 111, 175, .19), transparent 64%);
}
.cg-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: .8rem;
  color: var(--cg-steel);
  font-size: .81rem;
}
.cg-crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.cg-product-grid {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  grid-template-areas: "stage copy";
  align-items: center;
  gap: clamp(1.8rem, 6vw, 5.5rem);
}
.cg-product-stage {
  grid-area: stage;
  display: grid;
  align-items: center;
  min-height: clamp(22rem, 36vw, 33rem);
  padding: 1.4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 49% 53%, rgba(51, 167, 221, .3), transparent 62%),
    linear-gradient(155deg, rgba(9, 36, 58, .72), #061526 88%),
    url(cosmic-field.webp) center / cover;
}
.cg-product-copy { grid-area: copy; }
.cg-product-copy h1 {
  color: #fff;
  font-size: clamp(2.78rem, 5.25vw, 4.95rem);
  font-weight: 735;
  line-height: 1;
  letter-spacing: -.047em;
  text-wrap: wrap;
}
.cg-product-copy .cg-ice-type { display: block; }
.cg-product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.35rem;
  margin: 1.4rem 0 0;
  padding-block: .95rem;
  border-block: 1px solid var(--cg-line);
}
.cg-product-facts dt { color: var(--cg-steel); font-size: .78rem; }
.cg-product-facts dd { margin: .2rem 0 0; color: #fff; font-size: .87rem; font-weight: 650; }
.cg-product-notice { margin-top: .82rem; color: var(--cg-steel); font-size: .82rem; }
.cg-reader { padding: clamp(.7rem, 2vw, 1.25rem); }
.cg-reader-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-bottom: .78rem; }
.cg-reader-controls { display: flex; align-items: center; gap: .5rem; }
.cg-reader-controls button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--cg-line);
  border-radius: .55rem;
  color: var(--cg-ice);
  background: #10283e;
  cursor: pointer;
}
.cg-reader-controls button:first-child .cg-icon { transform: rotate(180deg); }
.cg-reader-controls button[aria-disabled="true"] { color: #8eabc0; cursor: default; }
.cg-reader-controls button:not([aria-disabled="true"]):hover { border-color: var(--cg-light); background: #153b58; }
.cg-reader-page {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  overflow: hidden;
  border: 1px solid var(--cg-line);
  border-radius: .88rem;
  color: var(--cg-navy);
  background: var(--cg-ice);
  color-scheme: light;
}
.cg-paper { display: flex; flex-direction: column; align-items: start; padding: clamp(1.2rem, 4vw, 3rem); }
.cg-paper .cg-kicker { color: #0a5a8e; }
.cg-paper h3 { margin-bottom: .65rem; font-size: clamp(1.5rem, 3.7vw, 2.5rem); letter-spacing: -.059em; text-wrap: wrap; }
.cg-paper-question { font-weight: 680; }
.cg-paper p + p { margin-top: .52rem; }
.cg-paper .cg-link { color: #094b75; }
.cg-paper .cg-link:focus-visible { outline-color: var(--cg-blue); }
.cg-folio { margin-top: auto; padding-top: .7rem; color: #365874; font-size: .77rem; }
.cg-reader-art {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 54% 46%, rgba(51, 167, 221, .33), transparent 63%),
    linear-gradient(145deg, #0c2843, #071728);
}
.cg-reader-art--moon span {
  position: absolute;
  top: 11%;
  left: 17%;
  width: min(66%, 20rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(124deg, rgba(4, 16, 30, .68), transparent 70%), url(cosmic-moon-small.webp) center / cover;
  box-shadow: 0 0 2rem rgba(51, 167, 221, .36);
}
.cg-reader-art--moon i {
  position: absolute;
  inset: 17% 11%;
  border: 1px solid rgba(139, 214, 245, .42);
  border-radius: 50%;
  transform: rotate(-22deg);
}
.cg-reader-art--phases span { top: 23%; right: 10%; width: 78%; height: 47%; }
.cg-reader-art--phases i { top: 30%; right: 43%; }
.cg-reader-art--phases::after { top: 24%; }
.cg-reader-art--sky { background: linear-gradient(140deg, rgba(4, 16, 30, .88), rgba(11, 42, 77, .51)), url(cosmic-field.webp) center / cover; }
.cg-reader-art--sky span {
  position: absolute;
  top: 50%;
  left: 23%;
  width: .37rem;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotate(-12deg);
  background: #9bddf5;
  box-shadow: 0 0 .65rem #bdeeff, 42px 8px #9bddf5, 86px 11px #9bddf5, 128px 8px #9bddf5, 173px -6px #9bddf5;
}
.cg-reader-art--sky i { position: absolute; inset: 22% 12%; border: 1px dashed rgba(139, 214, 245, .44); border-radius: 50%; transform: rotate(-12deg); }
.cg-contents { padding: clamp(.9rem, 2.6vw, 1.7rem); }
.cg-content-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; margin: 0 0 .55rem; padding: 0; list-style: none; }
.cg-content-list a { display: flex; align-items: center; gap: .7rem; min-height: 2.8rem; padding: .6rem .2rem; border-bottom: 1px solid var(--cg-line); color: var(--cg-ice); text-decoration: none; }
.cg-content-list a:hover { text-decoration: underline; }
.cg-content-list span { color: var(--cg-light); font-size: .74rem; font-weight: 680; }
.cg-format-grid, .cg-resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.cg-format, .cg-resource { padding: clamp(1.12rem, 3vw, 1.8rem); }
.cg-format .cg-emblem { margin-right: .45rem; vertical-align: middle; }
.cg-format h3, .cg-resource h3 { margin-top: .75rem; color: #fff; font-size: 1.35rem; text-wrap: wrap; }
.cg-format p, .cg-resource p { margin-top: .5rem; color: var(--cg-steel); font-size: .91rem; }
.cg-resource .cg-link { margin-top: .55rem; }

/* A short entrance, one-time reveals and bounded parallax. */
@media (prefers-reduced-motion: no-preference) {
  .cg-satellite { animation: cg-orbit-entry 4.4s cubic-bezier(.17, .64, .41, 1) both; }
  .cg-star { animation: cg-shimmer 3.6s ease-out both; }
  .cg-star-two { animation-delay: .65s; }
  .cg-star-three { animation-delay: .9s; }
  .cg-revealed { animation: cg-reveal .52s cubic-bezier(.2, .7, .35, 1) both; }
  .cg-tabs-ready :is(.cg-topic-note, .cg-reader-page):not([hidden]) { animation: cg-panel-in .23s ease-out; }
  @keyframes cg-orbit-entry { from { offset-distance: -28%; opacity: .35; } to { offset-distance: 11%; opacity: 1; } }
  @keyframes cg-shimmer { 0%, 100% { opacity: .75; } 46% { opacity: 1; } }
  @keyframes cg-reveal { from { transform: translateY(.6rem); opacity: .65; } to { transform: translateY(0); opacity: 1; } }
  @keyframes cg-panel-in { from { opacity: .8; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .cosmic *, .cosmic *::before, .cosmic *::after { animation: none !important; transition: none !important; }
  .cg-celestial { transform: none; }
  .cg-link:hover .cg-icon { transform: none; }
}
@media (forced-colors: active) {
  .cg-ice-type { background: none; -webkit-text-fill-color: currentColor; }
  .cosmic :focus-visible { outline-color: Highlight; }
  .cosmic [role="tab"][aria-selected="true"] { border: 2px solid Highlight; }
}

@media (max-width: 1050px) {
  .cg-hero-grid { min-height: 34rem; grid-template-columns: 1.05fr 1fr; }
  .cg-product-grid { gap: 2.3rem; }
}
@media (max-width: 820px) {
  .cg-section-head { align-items: start; flex-direction: column; }
  .cg-section-head > p { max-width: 51ch; }
  .cg-topic-layout { grid-template-columns: 1fr; }
  .cg-topic-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cg-topic-tabs a { align-items: start; flex-direction: column; gap: .2rem; }
  .cg-shelf { grid-template-columns: 1fr; }
  .cg-shelf-card { min-height: 16rem; }
  .cosmic .cg-hero .cg-button { padding-inline: .8rem; font-size: .83rem; }
}
@media (max-width: 760px) {
  .cg-header { margin-top: .7rem; top: .55rem; }
  .cg-header:not(.cg-menu-ready) { position: relative; top: auto; }
  .cg-nav-bar { min-height: 3.75rem; flex-wrap: wrap; padding: .38rem .55rem .38rem .8rem; }
  .cg-brand img { width: 7.15rem; }
  .cg-nav { flex-wrap: wrap; }
  .cg-menu-ready .cg-menu-toggle { display: inline-flex; }
  .cg-menu-ready .cg-nav {
    position: absolute;
    top: calc(100% + .4rem);
    inset-inline: 0;
    display: grid;
    gap: .13rem;
    padding: .45rem;
    border: 1px solid var(--cg-line);
    border-radius: .8rem;
    background: #0c2338;
    box-shadow: 0 .9rem 2.1rem rgba(0, 0, 0, .42);
  }
  .cg-menu-ready .cg-nav a { justify-content: space-between; font-size: .94rem; padding-inline: .7rem; }
  .cg-menu-ready .cg-nav .cg-nav-schools { margin-top: .2rem; }

  .cg-shelf-card { grid-template-columns: 1fr minmax(6.15rem, .59fr); }
  .cg-sim-grid { grid-template-columns: 1fr; }
  .cg-sim--lunar { grid-row: auto; min-height: 21rem; }
  .cg-sim--lunar .cg-sim-art span { right: 19%; width: 62%; }
  .cg-sim--lunar .cg-sim-art i { width: 20%; }
  .cg-sim--lunar .cg-sim-art::after { right: 22%; width: 9%; }
}
@media (max-width: 680px) {
  .cg-hero { margin-top: -4.55rem; padding-top: 4.55rem; }
  .cg-hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 3.1rem .5rem; min-height: 0; }
  .cg-hero-copy { padding-bottom: 0; }
  .cg-hero h1 { font-size: clamp(3.37rem, 11.4vw, 5.55rem); }
  .cg-hero-field::before { background-position: 65% 58%; }
  .cg-hero-field::after {
    background:
      linear-gradient(0deg, var(--cg-space) 0%, transparent 35%, rgba(4, 16, 30, .83) 66%, rgba(4, 16, 30, .78) 100%),
      radial-gradient(ellipse at 66% 72%, rgba(51, 167, 221, .28), rgba(10, 111, 175, .19) 28%, transparent 61%);
  }
  .cg-observatory { justify-self: center; width: min(100%, 29rem); margin-top: 1rem; }
  .cosmic .cg-target { left: 0; bottom: 8%; }
  .cg-lead { margin-top: 1.08rem; }
  .cg-actions { margin-top: 1.2rem; }
  .cg-topic-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-topic-tabs a { flex-direction: row; align-items: center; gap: .4rem; padding-inline: .55rem; }
  .cg-footer-grid { grid-template-columns: 1fr 1fr; }
  .cg-footer-brand { grid-column: 1 / -1; }
  .cg-product-top { padding-top: .85rem; }
  .cg-product-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "stage"; gap: 1.3rem; }
  .cg-product-stage { min-height: 0; }
  .cg-product-copy h1 { font-size: clamp(2.7rem, 9.8vw, 4.3rem); }
  .cg-product-copy .cg-kicker { letter-spacing: .085em; }
  .cg-reader-page { grid-template-columns: 1fr; }
  .cg-reader-art { min-height: 10.5rem; }
  .cg-reader-art--moon span { top: 7%; left: 29%; width: min(43%, 11rem); }
  .cg-reader-art--moon i { inset: 20% 21%; }
  .cg-reader-art--phases i { width: 18%; }
}
@media (max-width: 480px) {
  .cg-section-head { gap: .65rem; }
  .cg-kicker { letter-spacing: .09em; }
  .cg-hero .cg-actions { gap: .5rem; }
  .cosmic :is(.cg-hero, .cg-product-copy) .cg-button { padding-inline: .69rem; font-size: .79rem; }
  .cg-hero .cg-lead { max-width: 30ch; }
  .cosmic .cg-target { left: 0; bottom: 6%; min-width: 0; gap: .48rem; padding: .5rem .64rem; font-size: .78rem; }
  .cg-target small { font-size: .65rem; }
  .cg-target-sight { width: 1.2rem; }
  .cg-target .cg-icon { margin-left: .12rem; }
  .cg-shelf-card { grid-template-columns: minmax(0, 1fr) minmax(4.85rem, .53fr); gap: .55rem; padding: 1rem; min-height: 15rem; }
  .cg-shelf-textbook { grid-template-columns: minmax(0, 1fr); gap: .95rem; }
  .cg-paper-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cg-paper-tabs a { flex-direction: column; align-items: start; gap: .15rem; padding-inline: .54rem; font-size: .81rem; }
  .cg-topic-tabs a { flex-direction: column; align-items: start; justify-content: center; gap: .15rem; min-height: 3.45rem; font-size: .8rem; }
  .cg-live-lab { flex-direction: column; align-items: flex-start; }
  .cg-path-grid { grid-template-columns: 1fr; gap: .9rem; }
  .cg-path-grid article { padding-block: .95rem .2rem; }
  .cg-footer-grid { gap: 1.5rem .7rem; }
  .cg-footer-grid h2 { text-wrap: wrap; }
  .cg-footer-end { flex-direction: column; }
  .cg-content-list, .cg-format-grid, .cg-resource-grid { grid-template-columns: 1fr; }
  .cg-reader-tabs { gap: .35rem; }
  .cg-reader-tabs a { padding-inline: .49rem; font-size: .77rem; }
  .cg-reader-controls { width: 100%; justify-content: flex-end; }
}

@media print {
  .cosmic { background: #fff; color: #000; color-scheme: light; }
  .cg-header, .cg-footer, .cg-observatory, .cg-hero-field, .cg-reader-controls { display: none; }
  .cg-hero { margin-top: 0; padding-top: 0; }
  .cosmic h1, .cosmic h2, .cosmic h3, .cosmic p, .cosmic a { color: #000; }
  .cg-ice-type { background: none; -webkit-text-fill-color: currentColor; }
}

@media screen {
  .cosmic .page-head { padding-block:clamp(2rem,6vw,6rem); border-bottom:1px solid #34536b }
  .cosmic .page-head h1 { letter-spacing:-.045em; line-height:1.06 }
  .cosmic .page-head .kicker { color:#91d8ff }
  .cosmic .lab-controls, .cosmic .chart { border-radius:1.2rem; border:1px solid #365572 }
}
