/*
 * Scientific Analysis — Professional UI 2026.1
 * Presentation-only layer. Statistical methods and data APIs remain unchanged.
 */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 154px;
}

body.sci-page {
  --f-serif: "IBM Plex Sans Thai", sans-serif;
  --f-sans: "IBM Plex Sans Thai", sans-serif;
  --f-mono: "IBM Plex Sans Thai", sans-serif;
  --aqm-font: "IBM Plex Sans Thai", sans-serif;
  --aqm-mono: "IBM Plex Sans Thai", sans-serif;
  --sci-blue: #4f8ff7;
  --sci-blue-2: #78b4ff;
  --sci-cyan: #2dd4bf;
  --sci-night: #07111f;
  --sci-night-2: #0a1b31;
  --sci-surface: #ffffff;
  --sci-surface-2: #f7f9fc;
  --sci-ink: #101828;
  --sci-muted: #667085;
  --sci-line: #dce5f0;
  --sci-shadow: 0 18px 50px rgba(15, 23, 42, .075);
  --sci-radius: 18px;
  --sand: #f3f6fa;
  --cream: #f7f9fc;
  --white: var(--sci-surface);
  --border: var(--sci-line);
  --border2: #c7d3e2;
  --ink: var(--sci-ink);
  --ink2: #26364d;
  --ink3: #53627a;
  --muted: var(--sci-muted);
  --muted2: #8b99ad;
  min-height: 100vh;
  margin: 0;
  color: var(--sci-ink);
  background:
    radial-gradient(circle at 8% 15%, rgba(79, 143, 247, .075), transparent 28rem),
    radial-gradient(circle at 93% 38%, rgba(45, 212, 191, .05), transparent 26rem),
    #f4f7fb;
  font-family: var(--f-sans) !important;
  font-weight: 400;
  letter-spacing: -.004em;
}

html[data-aqm-theme] body.sci-page,
html[data-aqm-theme] body.sci-page * {
  font-family: "IBM Plex Sans Thai", sans-serif !important;
}

body.sci-page .topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0;
  background: #08111f;
}

.sci-hero {
  position: relative;
  isolation: isolate;
  min-height: 438px;
  overflow: hidden;
  color: #edf5ff;
  border-bottom: 1px solid rgba(132, 184, 250, .14);
  background:
    radial-gradient(circle at 79% 44%, rgba(32, 111, 211, .25), transparent 23rem),
    radial-gradient(circle at 12% 7%, rgba(45, 212, 191, .075), transparent 25rem),
    linear-gradient(116deg, #07111f 0%, #09192c 52%, #0c2544 100%);
}

.sci-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .45;
  background-image:
    linear-gradient(rgba(121, 176, 245, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 176, 245, .055) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .18) 75%, transparent);
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .18) 75%, transparent);
}

.sci-hero-grid {
  position: absolute;
  z-index: -1;
  left: -18vw;
  bottom: -19rem;
  width: 70vw;
  height: 26rem;
  border: 1px solid rgba(119, 174, 245, .11);
  border-radius: 50%;
  transform: rotate(5deg);
}

.sci-hero-inner {
  width: var(--sci-shell-width, min(calc(100vw - 48px), 1440px));
  min-height: 438px;
  margin-inline: auto;
  padding-block: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 520px);
  gap: clamp(42px, 7vw, 112px);
  align-items: center;
}

.sci-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.sci-hero-kicker,
.sci-visual-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #79b7ff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
}

.sci-hero-kicker span,
.sci-visual-head span {
  width: 22px;
  height: 1px;
  background: currentColor;
}

html[data-aqm-theme] body.sci-page h1#sciHeroTitle {
  max-width: 760px;
  margin: 15px 0 18px;
  color: rgba(230, 240, 253, .72) !important;
  font-size: clamp(2.9rem, 5.2vw, 5.25rem);
  font-weight: 200 !important;
  line-height: .98;
  letter-spacing: -.06em;
}

html[data-aqm-theme] body.sci-page h1#sciHeroTitle strong {
  display: inline-block;
  color: #9ac8ff !important;
  font-weight: 400 !important;
}

.sci-hero-copy > p {
  max-width: 690px;
  margin: 0;
  color: rgba(217, 230, 247, .64);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
}

.sci-hero-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 21px;
}

.sci-hero-tags span {
  padding: 5px 8px;
  border: 1px solid rgba(143, 188, 247, .2);
  border-radius: 7px;
  color: rgba(213, 232, 255, .72);
  background: rgba(5, 15, 29, .44);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .09em;
}

.sci-hero-visual {
  position: relative;
  z-index: 2;
  min-height: 330px;
  padding: 24px 25px 20px;
  overflow: hidden;
  border: 1px solid rgba(137, 184, 246, .19);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 45, 78, .52), rgba(4, 13, 26, .55));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .21), inset 0 1px rgba(255, 255, 255, .045);
  backdrop-filter: blur(20px);
}

.sci-visual-head b {
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid rgba(45, 212, 191, .22);
  border-radius: 999px;
  color: #61dec5;
  background: rgba(45, 212, 191, .075);
  font-size: 8px;
  font-weight: 600;
}

.sci-network {
  width: 100%;
  height: 205px;
  overflow: visible;
}

.sci-network path {
  fill: none;
  stroke: rgba(115, 175, 250, .25);
  stroke-width: 1.2;
  stroke-dasharray: 5 7;
  animation: sciDash 14s linear infinite;
}

.sci-network circle {
  fill: #0b1c31;
  stroke: #6aacf8;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(79, 143, 247, .6));
}

.sci-network circle:nth-of-type(2) {
  fill: rgba(45, 212, 191, .14);
  stroke: #49d6bd;
}

.sci-network text {
  fill: rgba(201, 222, 248, .58);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
}

.sci-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(141, 184, 239, .14);
}

.sci-hero-metrics div {
  display: flex;
  min-height: 55px;
  padding: 13px 14px 0;
  flex-direction: column;
  border-right: 1px solid rgba(141, 184, 239, .12);
}

.sci-hero-metrics div:last-child {
  border-right: 0;
}

.sci-hero-metrics small {
  color: rgba(185, 209, 238, .55);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .1em;
}

.sci-hero-metrics strong {
  margin-top: 3px;
  color: #dfeeff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.03em;
}

.sci-hero-orbit {
  position: absolute;
  z-index: -1;
  right: 4vw;
  top: 50%;
  width: 510px;
  height: 510px;
  border: 1px solid rgba(111, 171, 247, .09);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: sciOrbit 26s linear infinite;
}

.sci-hero-orbit::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 14%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #61b2ff;
  box-shadow: 0 0 18px rgba(97, 178, 255, .82);
}

.sci-hero-orbit--inner {
  right: 10vw;
  width: 330px;
  height: 330px;
  opacity: .78;
  animation-direction: reverse;
  animation-duration: 19s;
}

.sci-module-nav {
  position: relative;
  z-index: 9;
  border-bottom: 1px solid var(--sci-line);
  background: color-mix(in srgb, var(--sci-surface) 94%, transparent);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .035);
  backdrop-filter: blur(18px);
}

.sci-module-nav-inner {
  width: var(--sci-shell-width, min(calc(100vw - 48px), 1440px));
  min-height: 68px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.sci-module-nav a {
  display: flex;
  min-height: 42px;
  padding: 8px 9px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--sci-muted);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.sci-module-nav a span {
  color: #709fe9;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
}

.sci-module-nav a:hover {
  color: var(--sci-ink);
  border-color: rgba(79, 143, 247, .2);
  background: rgba(79, 143, 247, .055);
  transform: translateY(-1px);
}

.sci-module-nav a.is-active {
  color: #205bb7;
  border-color: rgba(79, 143, 247, .27);
  background: linear-gradient(135deg, rgba(79, 143, 247, .1), rgba(45, 212, 191, .04));
  box-shadow: inset 0 -2px #4f8ff7;
}

body.sci-page .ctrl-bar {
  padding: 18px 0 9px;
  border-bottom: 0;
  background: transparent;
}

body.sci-page .ctrl-inner {
  width: var(--sci-shell-width, min(calc(100vw - 48px), 1440px));
  min-height: 78px;
  margin-inline: auto;
  padding: 13px 16px;
  gap: 10px;
  border: 1px solid var(--sci-line);
  border-radius: 15px;
  background: var(--sci-surface);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}

.ctrl-intro {
  min-width: 172px;
  margin-right: 6px;
  padding-right: 16px;
  border-right: 1px solid var(--sci-line);
}

.ctrl-intro small {
  display: block;
  color: #4f8ff7;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .13em;
}

.ctrl-intro strong {
  display: block;
  margin-top: 2px;
  color: var(--sci-ink);
  font-size: 12px;
  font-weight: 500;
}

body.sci-page .ctrl-label {
  color: var(--sci-muted) !important;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .04em;
}

body.sci-page .ctrl-sel {
  min-height: 42px;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--sci-line) !important;
  border-radius: 10px;
  color: var(--sci-ink) !important;
  background: var(--sci-surface-2) !important;
  font-size: 11px;
  font-weight: 500;
}

body.sci-page #rangeSelect {
  min-width: 128px;
}

body.sci-page #stationSelect {
  min-width: 260px;
}

body.sci-page .ctrl-btn {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}

body.sci-page .ctrl-btn.pri {
  border-color: #397ee9;
  background: linear-gradient(135deg, #397ee9, #5a9bf7);
  box-shadow: 0 8px 20px rgba(57, 126, 233, .2);
}

body.sci-page .ctrl-btn.pri:hover {
  box-shadow: 0 12px 28px rgba(57, 126, 233, .29);
}

body.sci-page .ctrl-info {
  max-width: 360px;
  margin-left: auto;
  color: var(--sci-muted) !important;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.45;
}

body.sci-page .fw-badge {
  font-weight: 500;
}

body.sci-page .st-bar {
  width: var(--sci-shell-width, min(calc(100vw - 48px), 1440px));
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(110deg, #0b1a2e, #102b4d);
}

body.sci-page .st-bar-inner {
  width: 100%;
  min-height: 50px;
  padding: 9px 14px;
}

body.sci-page .wrap {
  width: var(--sci-shell-width, min(calc(100vw - 48px), 1440px)) !important;
  max-width: 1440px !important;
  padding: 24px 0 0 !important;
}

body.sci-page .sci-brief,
body.sci-page .sect {
  scroll-margin-top: 0;
}

/*
 * Footer compatibility
 * --------------------
 * Some deployed pages can temporarily serve the legacy footer markup where
 * .aqm-footer-links is a direct child of .aqm-footer-inner.  The current
 * design system uses that class inside three directory groups and therefore
 * sets it to a vertical flex layout.  Scope the bridge to the direct-child
 * legacy structure so the modern grouped footer remains completely intact.
 */
body.sci-page .sect:last-child {
  margin-bottom: 0;
}

body.sci-page .aqm-public-footer {
  margin-top: 24px;
}

body.sci-page .aqm-footer-inner > .aqm-footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--aqm-footer-line, rgba(140, 180, 230, .14));
  border-bottom: 1px solid var(--aqm-footer-line, rgba(140, 180, 230, .14));
}

body.sci-page .aqm-footer-inner > .aqm-footer-links > a {
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(140, 180, 230, .12);
  border-radius: 9px;
  background: rgba(10, 24, 48, .46);
  color: var(--aqm-footer-muted, #8fa6c4);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

body.sci-page .aqm-footer-inner > .aqm-footer-links > a::after {
  content: '\2197';
  flex: 0 0 auto;
  color: rgba(143, 166, 196, .5);
  font-size: 10px;
  transition: color .18s ease, transform .18s ease;
}

body.sci-page .aqm-footer-inner > .aqm-footer-links > a:hover,
body.sci-page .aqm-footer-inner > .aqm-footer-links > a:focus-visible,
body.sci-page .aqm-footer-inner > .aqm-footer-links > a[href$="scientific_analysis.php"] {
  border-color: rgba(122, 183, 255, .24);
  background: rgba(122, 183, 255, .09);
  color: #dceeff;
  transform: translateY(-1px);
}

body.sci-page .aqm-footer-inner > .aqm-footer-links > a:hover::after,
body.sci-page .aqm-footer-inner > .aqm-footer-links > a:focus-visible::after,
body.sci-page .aqm-footer-inner > .aqm-footer-links > a[href$="scientific_analysis.php"]::after {
  color: #7ab7ff;
  transform: translate(1px, -1px);
}

.sci-method-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: -8px 0 28px;
  padding: 13px 16px;
  border: 1px solid color-mix(in srgb, #2dd4bf 28%, var(--sci-line));
  border-radius: 13px;
  background: color-mix(in srgb, #2dd4bf 6%, var(--sci-surface));
  color: var(--sci-muted);
  font-size: 11px;
  line-height: 1.65;
}

.sci-method-note strong {
  flex: 0 0 auto;
  color: var(--sci-ink);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.sci-page .sci-brief {
  gap: 16px;
  margin-bottom: 52px;
  padding: clamp(21px, 3vw, 30px);
  border: 1px solid var(--sci-line);
  border-radius: var(--sci-radius);
  background:
    linear-gradient(125deg, rgba(79, 143, 247, .075), transparent 49%),
    var(--sci-surface);
  box-shadow: 0 14px 38px rgba(15, 23, 42, .05);
}

body.sci-page .sci-kicker {
  padding: 4px 9px;
  border-color: rgba(79, 143, 247, .25);
  color: #397be0;
  background: rgba(79, 143, 247, .075);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
}

body.sci-page .sci-brief h2 {
  max-width: 760px;
  margin-top: 12px;
  color: var(--sci-ink);
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.035em;
}

body.sci-page .sci-brief-copy {
  color: var(--sci-muted);
  font-size: 12.5px;
  line-height: 1.8;
}

body.sci-page .sci-brief-list {
  color: var(--sci-muted);
  font-size: 11px;
}

body.sci-page .sci-brief-list b {
  font-weight: 500;
}

body.sci-page .sci-brief-grid {
  gap: 10px;
}

body.sci-page .sci-brief-card {
  min-height: 126px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--brief-tone) 24%, var(--sci-line));
  border-top-width: 2px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--brief-tone) 6%, var(--sci-surface));
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.sci-page .sci-brief-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sci-shadow);
}

body.sci-page .sci-brief-label {
  color: var(--sci-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
}

body.sci-page .sci-brief-value {
  color: var(--sci-ink);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.035em;
}

body.sci-page .sect {
  margin-bottom: 52px;
}

body.sci-page .sect-hd {
  position: relative;
  min-height: 84px;
  margin-bottom: 14px;
  padding: 15px 18px;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--sci-line);
  border-radius: 15px;
  background:
    linear-gradient(115deg, rgba(79, 143, 247, .068), transparent 45%),
    var(--sci-surface);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

body.sci-page .sect-hd::before {
  content: attr(data-sci-no);
  flex: 0 0 auto;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(79, 143, 247, .19);
  border-radius: 12px;
  color: #5d8dd9;
  background: rgba(79, 143, 247, .065);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
}

body.sci-page .sect-hd::after {
  content: "";
  position: absolute;
  right: -36px;
  top: 50%;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(79, 143, 247, .095);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 25px rgba(79, 143, 247, .022);
}

body.sci-page .sect-hd h2 {
  position: relative;
  z-index: 1;
  color: var(--sci-ink) !important;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -.018em;
}

body.sci-page .sect-hd .badge,
body.sci-page .sect-hd .meta,
body.sci-page .sect-hd .ctrl-btn,
body.sci-page .sect-hd .corr-toggle {
  position: relative;
  z-index: 2;
}

body.sci-page .sect-hd .badge {
  padding: 4px 8px;
  border: 1px solid rgba(79, 143, 247, .15);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .05em;
}

body.sci-page .sect-hd .meta {
  color: var(--sci-muted) !important;
  font-size: 9px;
  font-weight: 400;
}

body.sci-page .panel,
body.sci-page .stat-card,
body.sci-page .test-result,
body.sci-page .reg-metric,
body.sci-page .anomaly-row,
body.sci-page .comfort-cell,
body.sci-page .info-box,
body.sci-page .corr-toggle,
body.sci-page .dq-gauge,
body.sci-page .score-bar-track {
  border-color: var(--sci-line) !important;
}

body.sci-page .panel,
body.sci-page .stat-card,
body.sci-page .test-result,
body.sci-page .reg-metric,
body.sci-page .anomaly-row,
body.sci-page .comfort-cell {
  color: var(--sci-ink) !important;
  background: var(--sci-surface) !important;
}

body.sci-page .panel {
  padding: clamp(17px, 2.2vw, 23px);
  border-radius: 15px;
  box-shadow: none;
}

body.sci-page .panel-title {
  color: var(--sci-ink) !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.008em;
}

body.sci-page .panel-sub {
  color: var(--sci-muted) !important;
  font-size: 10px;
  line-height: 1.6;
}

body.sci-page .panel-2,
body.sci-page .panel-3,
body.sci-page .stat-grid {
  gap: 11px;
}

body.sci-page .stat-card {
  min-height: 128px;
  padding: 16px;
  border-radius: 13px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.sci-page .stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 143, 247, .27) !important;
  box-shadow: var(--sci-shadow);
}

body.sci-page .stat-card::before {
  height: 2px;
  opacity: .82;
}

body.sci-page .stat-card .sc-label {
  color: var(--sci-muted) !important;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .04em;
}

body.sci-page .stat-card .sc-val {
  color: var(--sci-ink) !important;
  font-weight: 400;
  letter-spacing: -.035em;
}

body.sci-page .chart-wrap {
  padding: 12px;
  border-color: var(--sci-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--sci-surface-2) 70%, var(--sci-surface));
}

body.sci-page .sci-table,
body.sci-page .corr-table {
  color: var(--sci-ink);
}

body.sci-page .sci-table th,
body.sci-page .corr-table th,
body.sci-page .corr-table tr td:first-child {
  background: #132238 !important;
  color: #dfeaff !important;
  font-weight: 500;
}

body.sci-page .sci-table td {
  color: #4b5d76;
  border-color: var(--sci-line);
}

body.sci-page .sci-table td:first-child {
  color: var(--sci-ink) !important;
  font-weight: 500;
}

body.sci-page .sci-table tr:nth-child(even) td {
  background: color-mix(in srgb, var(--sci-surface-2) 70%, transparent);
}

body.sci-page .sci-table tr:hover td {
  background: rgba(79, 143, 247, .075);
}

body.sci-page .reg-eq {
  border: 1px solid rgba(126, 177, 243, .15);
  border-radius: 11px;
  color: #9bc8ff;
  background: linear-gradient(120deg, #0b1729, #132b4a);
}

body.sci-page .corr-toggle {
  padding: 3px;
  border: 1px solid var(--sci-line);
  border-radius: 9px;
  background: var(--sci-surface-2);
}

body.sci-page .corr-toggle button {
  border-radius: 7px;
  font-weight: 500;
}

body.sci-page .corr-toggle button.active {
  color: #2d6dcc !important;
  background: rgba(79, 143, 247, .11) !important;
  box-shadow: inset 0 -2px #4f8ff7;
}

body.sci-page .research-copy {
  border-radius: 13px;
  color: var(--sci-ink);
  background: var(--sci-surface-2);
  font-size: 12.5px;
  line-height: 1.9;
}

html[data-aqm-theme="dark"] body.sci-page {
  --sci-surface: #101a2a;
  --sci-surface-2: #0c1624;
  --sci-ink: #edf4ff;
  --sci-muted: #91a2ba;
  --sci-line: rgba(137, 169, 211, .17);
  --sci-shadow: 0 22px 56px rgba(0, 0, 0, .26);
  --sand: #08111e;
  --cream: #0b1523;
  --white: var(--sci-surface);
  --border: var(--sci-line);
  --border2: rgba(137, 169, 211, .24);
  --ink: var(--sci-ink);
  --ink2: #d2ddef;
  --ink3: #9aabc2;
  --muted: var(--sci-muted);
  --muted2: #7d8fa7;
  background:
    radial-gradient(circle at 8% 15%, rgba(79, 143, 247, .105), transparent 28rem),
    radial-gradient(circle at 93% 38%, rgba(45, 212, 191, .055), transparent 26rem),
    #08111e;
}

html[data-aqm-theme="dark"] .sci-module-nav {
  background: rgba(8, 17, 30, .92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

html[data-aqm-theme="dark"] .sci-module-nav a.is-active {
  color: #91bfff;
}

html[data-aqm-theme="dark"] body.sci-page .sci-table td {
  color: #a9b9ce;
}

html[data-aqm-theme="dark"] body.sci-page .sci-table tr:nth-child(even) td,
html[data-aqm-theme="dark"] body.sci-page .sci-table tr:hover td {
  background: rgba(255, 255, 255, .032);
}

html[data-aqm-theme="dark"] body.sci-page .corr-toggle button.active {
  color: #91bfff !important;
}

@keyframes sciDash {
  to { stroke-dashoffset: -120; }
}

@keyframes sciOrbit {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 1100px) {
  .sci-hero-inner {
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 36px;
  }

  html[data-aqm-theme] body.sci-page h1#sciHeroTitle {
    font-size: clamp(2.75rem, 5.6vw, 4.3rem);
  }

  .sci-module-nav-inner {
    grid-template-columns: repeat(8, max-content);
    justify-content: start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sci-module-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .sci-module-nav a {
    min-width: 112px;
  }

  body.sci-page .ctrl-info {
    width: 100%;
    max-width: none;
    margin-left: 188px;
  }
}

@media (max-width: 860px) {
  body.sci-page .aqm-footer-inner > .aqm-footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sci-hero,
  .sci-hero-inner {
    min-height: auto;
  }

  .sci-hero-inner {
    grid-template-columns: 1fr;
    padding-block: 42px;
  }

  .sci-hero-visual {
    min-height: 300px;
  }

  .sci-hero-orbit {
    top: 73%;
  }

  .ctrl-intro {
    width: 100%;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--sci-line);
  }

  body.sci-page .ctrl-info {
    margin-left: 0;
  }

  body.sci-page .sci-brief {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.sci-page {
    --sci-gutter: 14px;
  }

  .sci-hero-inner,
  .sci-module-nav-inner {
    width: var(--sci-shell-width);
  }

  .sci-hero-inner {
    padding-block: 34px;
  }

  html[data-aqm-theme] body.sci-page h1#sciHeroTitle {
    font-size: clamp(2.55rem, 13vw, 3.5rem);
  }

  .sci-hero-copy > p {
    font-size: 12px;
  }

  .sci-hero-visual {
    min-height: 278px;
    padding: 20px 16px 15px;
    border-radius: 18px;
  }

  .sci-network {
    height: 172px;
  }

  .sci-hero-metrics div {
    padding-inline: 8px;
  }

  body.sci-page .ctrl-bar {
    padding: 14px 0 8px;
  }

  body.sci-page .ctrl-inner {
    padding: 14px;
    align-items: stretch;
  }

  body.sci-page .ctrl-label {
    width: 100%;
    margin-top: 4px;
  }

  body.sci-page #rangeSelect,
  body.sci-page #stationSelect,
  body.sci-page .ctrl-btn.pri {
    width: 100%;
    min-width: 0;
  }

  body.sci-page .ctrl-divider {
    display: none;
  }

  body.sci-page .st-bar {
    margin-inline: auto;
  }

  body.sci-page .wrap {
    padding: 18px 0 0 !important;
  }

  body.sci-page .aqm-public-footer {
    margin-top: 18px;
  }

  body.sci-page .aqm-footer-inner > .aqm-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
    padding: 16px 0;
  }

  body.sci-page .sci-brief {
    margin-bottom: 38px;
    padding: 18px;
  }

  body.sci-page .sci-brief-grid,
  body.sci-page .sci-brief-list {
    grid-template-columns: 1fr;
  }

  body.sci-page .sect {
    margin-bottom: 38px;
  }

  body.sci-page .sect:last-child {
    margin-bottom: 0;
  }

  body.sci-page .sect-hd {
    align-items: flex-start;
    min-height: 0;
    padding: 14px;
    flex-wrap: wrap;
  }

  body.sci-page .sect-hd::before {
    width: 34px;
    height: 34px;
  }

  body.sci-page .sect-hd h2 {
    width: calc(100% - 48px);
  }

  body.sci-page .sect-hd .meta {
    width: 100%;
    margin-left: 48px;
  }

  body.sci-page .panel {
    padding: 15px;
  }

  body.sci-page .reg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .sci-hero,
  .sci-module-nav,
  .ctrl-bar,
  .st-bar,
  .topbar {
    display: none !important;
  }

  body.sci-page .wrap {
    max-width: none !important;
    padding: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sci-network path,
  .sci-hero-orbit { animation: none !important; }
  body.sci-page *,
  body.sci-page *::before,
  body.sci-page *::after {
    transition-duration: .01ms !important;
  }
}
