:root {
  color-scheme: dark;
  --bg: #081017;
  --surface: #0e1922;
  --surface-2: #13212c;
  --line: #263643;
  --text: #eff7f8;
  --muted: #91a4ad;
  --green: #61e5a1;
  --lime: #b7ef74;
  --amber: #f1c75b;
  --red: #ef716b;
  --blue: #68a9cf;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 74px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
}
.brand b {
  color: var(--muted);
  font-weight: 520;
}
.brand-mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--green);
  border-radius: 50%;
  box-shadow: inset 5px 0 0 var(--green);
  transform: rotate(-28deg);
}
nav {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}
nav a:hover {
  color: var(--text);
}
main {
  overflow: hidden;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 620px;
  padding: 72px clamp(20px, 7vw, 112px) 54px;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  align-self: center;
  max-width: 620px;
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6.8vw, 104px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
h1 em {
  color: var(--green);
  font-weight: 400;
}
.lead {
  max-width: 540px;
  margin: 35px 0 22px;
  color: var(--muted);
  font-size: 18px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
}
.meta span + span {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.orbit-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 450px;
  color: #416176;
}
.visibility {
  position: absolute;
  right: 2%;
  bottom: 7%;
  display: flex;
  width: min(365px, 58%);
  flex-direction: column;
  padding: 17px 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
}
.visibility-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.visibility span,
.visibility small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.visibility strong {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}
.visibility small {
  margin-top: 7px;
  line-height: 1.4;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.metric-row article {
  min-height: 154px;
  padding: 30px clamp(20px, 3vw, 48px);
  border-right: 1px solid var(--line);
}
.metric-row article:last-child {
  border: 0;
}
.metric-row span,
.metric-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.metric-row strong {
  display: block;
  margin: 6px 0;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
}
.section {
  padding: 100px clamp(20px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
}
h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.03;
}
.legend {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}
.quiet {
  background: var(--green);
}
.active {
  background: var(--amber);
}
.storm {
  background: var(--red);
}
.chart-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.chart {
  height: 420px;
}
.chart.small {
  height: 260px;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}
.chart-foot a {
  color: var(--green);
}
.explainer {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 45px;
  margin-top: 38px;
  padding: 38px 0 0;
  border-top: 1px solid var(--line);
}
.explainer .number {
  font-family: Georgia, serif;
  font-size: 42px;
  color: var(--green);
}
h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}
.explainer p,
.section-copy {
  margin: 0;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}
.section-copy {
  max-width: 480px;
  margin-top: 25px;
}
.solar-card {
  position: relative;
  height: 440px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}
.solar-label {
  position: absolute;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.sun-label {
  left: 7%;
  top: 50%;
}
.earth-label {
  right: 7%;
  top: 50%;
}
.solar-readout {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  border: 1px solid #334853;
  background: rgba(5, 11, 16, 0.8);
}
.solar-readout span {
  color: #8fa3ac;
  font-size: 9px;
  text-transform: uppercase;
}
.solar-readout strong {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}
.player {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}
.player button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.player input {
  accent-color: var(--green);
}
.player time {
  grid-column: 2;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.wind-card {
  grid-column: 1/-1;
}
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.flare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.flare-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border: 0;
  background: var(--bg);
  transition: background 0.2s;
}
.flare-row:hover {
  background: var(--surface);
}
.flare-class {
  position: relative;
  font-family: Georgia, serif;
  font-size: 24px;
  cursor: help;
}
.flare-class:hover::after,
.flare-class:focus::after {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: calc(100% + 10px);
  width: 250px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  color: var(--text);
  content: attr(data-tip);
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
.flare-row span {
  color: var(--muted);
  font-size: 12px;
}
.flare-row time {
  text-align: right;
  font-family: ui-monospace, monospace;
  font-size: 9px;
}
.empty {
  padding: 30px;
  color: var(--muted);
}
.source-link {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 30px clamp(20px, 7vw, 112px);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .topbar nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }
  .orbit-card {
    min-height: 380px;
  }
  .metric-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-row article:nth-child(2) {
    border-right: 0;
  }
  .explainer {
    grid-template-columns: auto 1fr;
  }
  .explainer div:last-child {
    grid-column: 2;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .flare-row {
    grid-template-columns: 80px 1fr 120px;
  }
  .flare-row span:nth-child(3) {
    display: none;
  }
}
@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }
  .orbit-card {
    min-height: 320px;
  }
  .visibility {
    right: 0;
  }
  .metric-row {
    grid-template-columns: 1fr;
  }
  .metric-row article {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .section-head {
    display: block;
  }
  .legend {
    margin-top: 20px;
  }
  .chart {
    height: 340px;
  }
  .explainer {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .explainer div:last-child {
    grid-column: auto;
  }
  .solar-card {
    min-height: 330px;
  }
  .chart-foot {
    gap: 10px;
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2f1;
  --surface: #f8faf9;
  --surface-2: #fff;
  --line: #cbd7d5;
  --text: #10201f;
  --muted: #60716f;
  --green: #087a55;
  --lime: #5f8e29;
  --amber: #a37209;
  --red: #b4413d;
  --blue: #34789e;
  --shadow: 0 24px 70px rgba(32, 52, 49, 0.1);
}

@media (max-width: 560px) {
  .solar-card {
    height: 330px;
    min-height: 0;
  }
}

.region-list {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  gap: 0;
  margin-top: 54px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.region-list > div {
  min-height: 145px;
  padding: 24px;
  border-right: 1px solid var(--line);
}
.region-list > div:last-child {
  border-right: 0;
}
.region-list .eyebrow {
  margin-bottom: 10px;
}
.region-list h3 {
  font-size: 20px;
}
.region-list strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.region-list p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}
.region-list small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .region-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .region-list > div {
    border-bottom: 1px solid var(--line);
  }
  .region-list > div:nth-child(even) {
    border-right: 0;
  }
  .region-list > div:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 560px) {
  .region-list {
    grid-template-columns: 1fr;
  }
  .region-list > div {
    min-height: 0;
    border-right: 0;
  }
  .region-list > div:last-child {
    border-bottom: 0;
  }
}

.heliosphere {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 12% 50%,
    rgba(216, 120, 47, 0.08),
    transparent 38%
  );
}
.orbit-grid {
  fill: none;
  stroke: #466171;
  stroke-width: 1;
  opacity: 0.2;
  stroke-dasharray: 4 7;
}
.wind-field {
  fill: url(#wind-field);
}
.wind-fronts {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  opacity: 0.48;
  stroke-dasharray: 10 10;
  animation: wind-pulse 3.2s linear infinite;
  animation-play-state: paused;
}
.sun-halo {
  fill: #dc8336;
  filter: url(#solar-glow);
  opacity: 0.32;
}
.sun {
  fill: url(#sun-core);
}
.earth circle {
  fill: url(#earth-core);
  stroke: #b9e9ed;
  stroke-width: 1;
}
.earth path {
  fill: none;
  stroke: #68a9cf;
  stroke-width: 1;
  opacity: 0.5;
}
.distance-line {
  fill: none;
  stroke: #49616d;
  stroke-width: 1;
}
.heliosphere text {
  fill: #718994;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1.5px;
}
.cme-marker {
  fill: none;
  transition: transform 0.09s linear;
}
.cme-marker line {
  stroke: var(--green);
  stroke-width: 1;
}
.cme-marker text {
  fill: var(--green);
}
@keyframes wind-pulse {
  to {
    stroke-dashoffset: -40;
  }
}
.flare-row span:nth-child(3) {
  display: none;
}
.flare-list .empty {
  grid-column: 1/-1;
  margin: 0;
  background: var(--bg);
}
@media (max-width: 900px) {
  .flare-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .flare-row {
    grid-template-columns: 58px 1fr;
    gap: 4px 12px;
  }
  .flare-row .flare-class {
    grid-row: 1 / span 2;
  }
  .flare-row time {
    display: block;
    grid-column: 2;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wind-fronts {
    animation: none;
  }
}

.section-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.section-tools .source-link {
  align-self: flex-end;
}
@media (max-width: 560px) {
  .section-tools {
    margin-top: 18px;
    align-items: flex-start;
  }
  .section-tools .source-link {
    align-self: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cme-marker {
    transition: none;
  }
}

.solar-card.is-playing .wind-fronts {
  animation-play-state: running;
}
@media (prefers-reduced-motion: reduce) {
  .solar-card.is-playing .wind-fronts {
    animation: wind-pulse 3.2s linear infinite;
  }
}

.orbit-card .visibility {
  z-index: 2;
}

.europe-map {
  position: relative;
  width: min(100%, 650px);
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
  isolation: isolate;
}
.europe-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  filter: brightness(0.42) contrast(1.12) saturate(0.75) hue-rotate(225deg);
  -webkit-mask-image: radial-gradient(
    ellipse 72% 72% at 50% 48%,
    #000 50%,
    rgba(0, 0, 0, 0.88) 68%,
    rgba(0, 0, 0, 0.35) 86%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 72% 72% at 50% 48%,
    #000 50%,
    rgba(0, 0, 0, 0.88) 68%,
    rgba(0, 0, 0, 0.35) 86%,
    transparent 100%
  );
}
.map-aurora-overlay {
  position: absolute;
  z-index: 1;
  top: 12%;
  right: 1%;
  left: 1%;
  height: 30%;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(97, 229, 161, 0.46) 0,
    rgba(97, 229, 161, 0.22) 42%,
    rgba(97, 229, 161, 0.07) 66%,
    transparent 78%
  );
  filter: none;
  mix-blend-mode: screen;
  transition: transform 0.8s ease;
}
.map-aurora-overlay span {
  position: absolute;
  right: 13%;
  bottom: 12%;
  padding: 4px 7px;
  background: rgba(6, 15, 21, 0.78);
  color: #c9f7df;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.orbit-card[data-activity="quiet"] .map-aurora-overlay {
  transform: translateY(-35px);
}
.orbit-card[data-activity="active"] .map-aurora-overlay {
  transform: translateY(0);
}
.orbit-card[data-activity="storm"] .map-aurora-overlay {
  transform: translateY(55px);
}
.orbit-card[data-activity="high"] .map-aurora-overlay {
  transform: translateY(105px);
}
.europe-map figcaption {
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 7px;
  padding: 3px 6px;
  background: rgba(6, 15, 21, 0.8);
  color: #a7b5bb;
  font-size: 7px;
}
.europe-map figcaption a {
  color: #dce5e7;
  text-decoration: underline;
}

.flare-scale {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) repeat(5, minmax(80px, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.flare-scale > p,
.flare-scale-item {
  min-height: 76px;
  margin: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.flare-scale > p {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flare-scale > p strong {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}
.flare-scale > p span,
.flare-scale-item small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}
.flare-scale-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  cursor: help;
}
.flare-scale-item:last-child {
  border-right: 0;
}
.flare-scale-item b {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}
.level-c b {
  color: var(--green);
}
.level-m b {
  color: var(--amber);
}
.level-x b {
  color: var(--red);
}
.flare-scale-item:hover,
.flare-scale-item:focus {
  background: var(--surface-2);
}
.flare-scale-item:focus-visible,
.flare-class:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.flare-scale-item:hover::after,
.flare-scale-item:focus::after {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: calc(100% + 9px);
  width: 240px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  color: var(--text);
  content: attr(data-tip);
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .flare-scale {
    grid-template-columns: repeat(5, 1fr);
  }
  .flare-scale > p {
    grid-column: 1/-1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .flare-scale-item {
    min-width: 0;
    padding: 12px 8px;
  }
  .flare-scale-item small {
    display: none;
  }
}

/* Soft geographic framing and aurora falloff. */
.europe-map::after {
  position: absolute;
  z-index: 3;
  inset: -1px;
  pointer-events: none;
  border-radius: 18px;
  background: radial-gradient(
    ellipse 72% 72% at 50% 48%,
    transparent 48%,
    color-mix(in srgb, var(--bg) 10%, transparent) 65%,
    color-mix(in srgb, var(--bg) 58%, transparent) 84%,
    var(--bg) 100%
  );
  content: "";
}
.map-aurora-overlay::before {
  position: absolute;
  inset: 14% 4%;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    transparent 51%,
    color-mix(in srgb, var(--green) 7%, transparent) 57%,
    color-mix(in srgb, var(--green) 28%, transparent) 65%,
    color-mix(in srgb, var(--green) 12%, transparent) 72%,
    transparent 82%
  );
  filter: blur(5px);
  content: "";
}

.cme-front-halo {
  stroke: url(#front-stroke);
  stroke-width: 28;
  stroke-linecap: round;
  opacity: 0.58;
}
.cme-front-tail {
  stroke: url(#front-stroke);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0.38;
}
.cme-front-core {
  stroke: url(#front-stroke);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.92;
}
.cme-callout {
  fill: none;
  stroke: var(--green);
  stroke-width: 1;
  opacity: 0.65;
}
.cme-marker text {
  fill: #9aeabe;
}
.solar-card.is-playing .cme-front-halo {
  animation: front-breathe 2.4s ease-in-out infinite;
}
@keyframes front-breathe {
  50% {
    opacity: 0.82;
    stroke-width: 36;
  }
}
@media (prefers-reduced-motion: reduce) {
  .solar-card.is-playing .cme-front-halo {
    animation: none;
  }
}

.heliosphere {
  border-radius: 18px;
  mask-image: radial-gradient(
    ellipse 82% 78% at 50% 50%,
    #000 55%,
    rgba(0, 0, 0, 0.88) 70%,
    transparent 100%
  );
}

.wind-field {
  filter: blur(18px);
  opacity: 0.62;
}
[data-theme="light"] .europe-map figcaption {
  border: 1px solid rgba(16, 32, 31, 0.14);
  background: rgba(248, 250, 249, 0.92);
  box-shadow: 0 4px 16px rgba(32, 52, 49, 0.12);
  color: #526563;
}
[data-theme="light"] .europe-map img {
  filter: brightness(0.78) contrast(1.05) saturate(0.8) hue-rotate(225deg);
}
[data-theme="light"] .europe-map figcaption a {
  color: #086b4b;
}
[data-theme="light"] .solar-readout {
  border-color: rgba(16, 32, 31, 0.18);
  background: rgba(248, 250, 249, 0.9);
  box-shadow: 0 8px 28px rgba(7, 17, 23, 0.18);
}
[data-theme="light"] .solar-readout span {
  color: #60716f;
}
[data-theme="light"] .solar-readout strong {
  color: #10201f;
}
[data-theme="light"] .solar-label {
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(248, 250, 249, 0.78);
  color: #435957;
}
[data-theme="light"] .map-aurora-overlay span {
  background: rgba(248, 250, 249, 0.88);
  color: #075a40;
}

.magnetosphere {
  fill: none;
}
.bow-shock {
  stroke: #7fc4de;
  stroke-width: 1;
  stroke-dasharray: 4 5;
  opacity: 0.42;
}
.magnetopause {
  stroke: #68a9cf;
  stroke-width: 1.2;
  opacity: 0.58;
}
.field-line {
  stroke: #82c6dc;
  stroke-width: 1;
  opacity: 0.62;
}
.field-line.inner {
  opacity: 0.42;
}
.magnetic-axis {
  stroke: #b4dce7;
  stroke-width: 0.8;
  stroke-dasharray: 2 3;
  opacity: 0.46;
}
.earth circle {
  fill: url(#earth-core);
  stroke: #d6f4f5;
  stroke-width: 1.2;
}
.earth .continent {
  fill: #82caaa;
  stroke: none;
  opacity: 0.82;
}

.model-legend .gfz {
  background: var(--green);
}
.model-legend .gfz-max {
  border: 1px dashed var(--muted);
  background: transparent;
}
.model-legend .noaa {
  background: var(--blue);
}

.model-definitions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
}
.model-definitions p {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.model-definitions p:last-child {
  border-right: 0;
}
.model-definitions i {
  grid-row: 1/3;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
}
.model-definitions .gfz {
  background: var(--green);
}
.model-definitions .gfz-max {
  border: 1px dashed var(--muted);
}
.model-definitions .noaa {
  background: var(--blue);
}
.model-definitions strong {
  font-size: 12px;
  font-weight: 600;
}
.model-definitions span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .model-definitions {
    grid-template-columns: 1fr;
  }
  .model-definitions p {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .model-definitions p:last-child {
    border-bottom: 0;
  }
}

.theme-switch {
  position: relative;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  align-items: center;
  width: 96px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}
.theme-switch button {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.theme-switch button[aria-pressed="true"] {
  color: var(--text);
}
.theme-switch button:focus-visible {
  border-radius: 50%;
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.theme-thumb {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--line) 65%, var(--text));
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s;
}
[data-theme="light"] .theme-thumb {
  transform: translateX(30px);
}
[data-theme="aurora"] .theme-thumb {
  transform: translateX(60px);
  border-color: #ff70d2;
  background: #31204d;
  box-shadow: 0 0 12px rgba(255, 91, 213, 0.42);
}
.ks-note {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 45px;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.ks-note .number {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 42px;
}
.ks-note p {
  margin: 0;
  color: var(--muted);
}
.regional-chart {
  height: 390px;
}
[data-theme="aurora"] {
  color-scheme: dark;
  --bg: #09051a;
  --surface: #121027;
  --surface-2: #20163b;
  --line: #443267;
  --text: #fff5fc;
  --muted: #b9a8ca;
  --green: #5fffd7;
  --lime: #c8ff5f;
  --amber: #ffe26b;
  --red: #ff668f;
  --blue: #ff65d4;
  --shadow: 0 24px 80px rgba(2, 0, 18, 0.38);
}
[data-theme="aurora"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(66, 255, 213, 0.1), transparent 28%),
    radial-gradient(
      circle at 88% 32%,
      rgba(255, 82, 207, 0.09),
      transparent 25%
    );
}
[data-theme="aurora"] .topbar {
  border-color: #4d3974;
  background: rgba(9, 5, 26, 0.86);
}
[data-theme="aurora"] h1 em,
[data-theme="aurora"] .eyebrow {
  color: #64ffda;
  text-shadow: 0 0 16px rgba(95, 255, 215, 0.3);
}
[data-theme="aurora"] .brand-mark {
  border-color: #ff65d4;
  box-shadow:
    inset 5px 0 0 #5fffd7,
    0 0 12px rgba(255, 101, 212, 0.35);
}
[data-theme="aurora"] .chart-card,
[data-theme="aurora"] .solar-card,
[data-theme="aurora"] .europe-map {
  box-shadow:
    0 18px 60px rgba(59, 18, 100, 0.28),
    0 0 0 1px rgba(95, 255, 215, 0.06);
}
[data-theme="aurora"] .map-aurora-overlay {
  filter: hue-rotate(35deg);
}
[data-theme="aurora"] .europe-map img {
  filter: brightness(0.48) contrast(1.14) saturate(0.9) hue-rotate(270deg);
}
@media (max-width: 900px) {
  .ks-note {
    grid-template-columns: auto 1fr;
  }
  .ks-note div:last-child {
    grid-column: 2;
  }
}
@media (max-width: 560px) {
  .theme-switch {
    width: 87px;
    grid-template-columns: repeat(3, 27px);
  }
  .theme-switch button {
    width: 27px;
  }
  .theme-thumb {
    width: 27px;
  }
  [data-theme="light"] .theme-thumb {
    transform: translateX(27px);
  }
  [data-theme="aurora"] .theme-thumb {
    transform: translateX(54px);
  }
  .ks-note {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ks-note div:last-child {
    grid-column: auto;
  }
  .regional-chart {
    height: 430px;
  }
}

/* Operational NOAA status and short-term aurora nowcast. */
.space-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  max-width: 540px;
  margin-top: 28px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    border-color 0.25s,
    background 0.25s;
}
.space-alert:hover {
  border-color: var(--green);
}
.space-alert .alert-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
}
.space-alert span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.space-alert small,
.space-alert em {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.space-alert strong {
  font-size: 13px;
  font-weight: 650;
}
.space-alert > b {
  color: var(--muted);
  font-weight: 400;
}
.space-alert.is-warning {
  border-color: color-mix(in srgb, var(--amber) 65%, var(--line));
  background: color-mix(in srgb, var(--amber) 9%, var(--surface));
}
.space-alert.is-warning .alert-icon {
  border-color: var(--amber);
  color: var(--amber);
}
.space-alert.is-severe {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 11%, var(--surface));
  box-shadow: 0 0 28px color-mix(in srgb, var(--red) 22%, transparent);
}
.space-alert.is-severe .alert-icon {
  border-color: var(--red);
  color: var(--red);
  animation: alert-pulse 1.8s ease-in-out infinite;
}
.space-alert + .lead {
  margin-top: 24px;
}
@keyframes alert-pulse {
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 12%, transparent);
  }
}
.ovation-inline {
  display: grid;
  max-width: 540px;
  min-width: 0;
  grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1.15fr);
  margin: 0 0 21px;
  padding: 13px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.ovation-inline b {
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}
.ovation-inline span {
  margin-bottom: 5px;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  line-height: 1.4;
}
.ovation-inline small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: 18px;
  border-left: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.5;
  text-transform: none;
}
.space-alert.is-quiet {
  grid-template-columns: auto 1fr;
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.space-alert.is-quiet:hover {
  border-color: transparent;
}
.space-alert.is-quiet .alert-icon {
  width: 27px;
  height: 27px;
  border-color: color-mix(in srgb, var(--green) 50%, var(--line));
  color: var(--green);
  font-size: 9px;
}
.space-alert.is-quiet small {
  display: none;
}
.space-alert.is-quiet strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.space-alert.is-quiet em {
  font-size: 8px;
}
.space-alert.is-quiet > b {
  display: none;
}

/* Measured L1 solar wind, kept visually separate from the ENLIL model. */
.live-wind-card {
  grid-column: 1/-1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.live-wind-head {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  align-items: flex-start;
  padding: 25px 28px 21px;
}
.live-wind-head .eyebrow {
  margin-bottom: 7px;
}
.live-wind-head h3 {
  margin-bottom: 4px;
}
.live-wind-head p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.live-wind-head p:last-child strong {
  color: var(--text);
  font-weight: 650;
}
.live-wind-head .source-link {
  flex: none;
}
.live-wind-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.live-wind-values > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 17px 21px;
  border-right: 1px solid var(--line);
}
.live-wind-values > div:last-child {
  border-right: 0;
}
.live-wind-values span {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.live-wind-values strong {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}
.live-wind-values small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 9px;
}
.live-wind-values .is-southward strong {
  color: var(--red);
}
.live-wind-chart {
  height: 290px;
}
@media (prefers-reduced-motion: reduce) {
  .space-alert.is-severe .alert-icon {
    animation: none;
  }
}
@media (max-width: 760px) {
  .visibility {
    bottom: 2%;
    width: min(365px, 70%);
  }
  .ovation-inline {
    grid-template-columns: 1fr;
  }
  .ovation-inline small {
    grid-column: 1;
    grid-row: auto;
    margin-top: 6px;
    padding-left: 0;
    border-left: 0;
  }
  .live-wind-head {
    display: block;
  }
  .live-wind-head .source-link {
    display: inline-block;
    margin-top: 14px;
  }
  .live-wind-values {
    grid-template-columns: repeat(2, 1fr);
  }
  .live-wind-values > div:nth-child(2) {
    border-right: 0;
  }
  .live-wind-values > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .space-alert {
    grid-template-columns: auto 1fr;
  }
  .space-alert > b {
    display: none;
  }
  .orbit-card {
    align-content: center;
  }
  .visibility {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 8px;
  }
  .live-wind-values {
    grid-template-columns: 1fr;
  }
  .live-wind-values > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .live-wind-values > div:last-child {
    border-bottom: 0;
  }
}

/* Shared legal footer. */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px clamp(20px, 7vw, 112px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-transform: none;
}
.footer-brand .brand {
  width: max-content;
}
.footer-brand p,
.footer-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-transform: uppercase;
}
.footer-links {
  gap: 24px;
  font-size: 11px;
  text-transform: uppercase;
}
.footer-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] {
  border-color: var(--green);
  color: var(--text);
}
.footer-note {
  justify-self: end;
  margin: 0;
  text-align: right;
}
.footer-note span {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

/* Standalone imprint page. */
.legal-page main {
  overflow: visible;
}
.legal-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 110px;
}
.legal-hero {
  max-width: 830px;
  margin-bottom: 55px;
}
.legal-hero .eyebrow {
  margin-bottom: 14px;
}
.legal-hero h1 {
  font-size: clamp(58px, 9vw, 112px);
}
.legal-hero > p:last-child {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.legal-draft {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) 1fr;
  gap: 30px;
  margin-bottom: 35px;
  padding: 22px 25px;
  border: 1px solid var(--amber);
  background: color-mix(in srgb, var(--amber) 8%, var(--surface));
}
.legal-draft strong {
  color: var(--amber);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal-draft p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.legal-draft.secondary {
  margin: 35px 0 0;
  border-color: var(--line);
  background: var(--surface);
}
.legal-draft.secondary strong {
  color: var(--muted);
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.legal-grid section {
  position: relative;
  min-height: 300px;
  padding: 34px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.legal-number {
  display: block;
  margin-bottom: 35px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 30px;
}
.legal-grid h2,
.legal-copy h2 {
  font-size: 27px;
}
.legal-grid address,
.legal-grid dl,
.legal-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.9;
}
.legal-grid dl div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.legal-grid dl div:last-child {
  border-bottom: 0;
}
.legal-grid dt {
  color: var(--muted);
}
.legal-grid dd {
  margin: 0;
  color: var(--text);
}
.legal-grid .legal-optional {
  line-height: 1.55;
}
.legal-copy {
  margin-top: 35px;
  padding: 35px 36px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.legal-copy p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
}
@media (max-width: 820px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-links {
    justify-self: end;
  }
  .footer-note {
    grid-column: 1/-1;
    justify-self: start;
    text-align: left;
  }
  .legal-main {
    padding-top: 65px;
  }
  .legal-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .site-footer {
    display: block;
  }
  .site-footer span {
    display: inline;
    margin: 0;
  }
  .site-footer .brand-mark {
    display: inline-block;
  }
  .footer-links {
    margin: 26px 0;
  }
  .footer-note {
    text-align: left;
  }
  .legal-main {
    width: min(100% - 32px, 1120px);
    padding: 55px 0 75px;
  }
  .legal-hero {
    margin-bottom: 38px;
  }
  .legal-draft {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .legal-grid section {
    min-height: 0;
    padding: 28px 24px;
  }
  .legal-grid dl div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-copy {
    padding: 28px 24px;
  }
}
.section-copy strong {
  color: var(--text);
  font-weight: 650;
}
.visibility strong {
  color: var(--text);
}
