/* ============================================
   CoMManD — Dark Sci-fi Theme
   ============================================ */

/* Self-hosted fonts (SIL Open Font License, see static/fonts/OFL-*.txt) */
@font-face {
  font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/orbitron-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/orbitron-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Orbitron'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../fonts/orbitron-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/rajdhani-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/rajdhani-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/rajdhani-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/rajdhani-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/rajdhani-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg-primary: #070b14;
  --bg-secondary: #0c1220;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-solid: #0d1424;
  --bg-card-hover: rgba(20, 30, 55, 0.85);
  --accent-blue: #38bdf8;
  --accent-purple: #818cf8;
  --accent-cyan: #22d3ee;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #7c8aa0;
  --border: rgba(56, 189, 248, 0.12);
  --border-bright: rgba(56, 189, 248, 0.3);
  --hairline: rgba(148, 163, 184, 0.14);
  --danger: #f87171;
  --success: #4ade80;

  /* Decision workflows (validated against the dark card surface) */
  --wf-sad: #7b8799;
  --wf-lmad: #bf8228;
  --wf-mad: #11a596;
  --wf-gsd: #9085e9;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --max-width: 1100px;
  --section-padding: 6rem 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) var(--bg-primary);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--accent-cyan); }

::selection {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.num { font-variant-numeric: tabular-nums; }

/* ============================================
   Side Navigation
   ============================================ */
.side-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  text-decoration: none;
}

/* larger invisible hit area */
.nav-dot::before {
  content: '';
  position: absolute;
  inset: -7px;
}

.nav-dot.active {
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
}

.nav-label {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.nav-dot:hover .nav-label,
.nav-dot:focus-visible .nav-label {
  opacity: 1;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,189,248,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(129,140,248,0.06) 0%, transparent 50%);
}

.hero .container {
  position: relative;
  text-align: center;
  width: 100%;
}

.hero-title {
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.8s ease-out 0.1s both;
}

.title-accent {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
  filter: drop-shadow(0 0 30px rgba(56,189,248,0.2));
}

.hero-subtitle {
  text-wrap: balance;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  color: var(--text-primary);
  max-width: 820px;
  margin: 0 auto 1.4rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.keyword-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.keyword-list li {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px solid var(--border-bright);
  background: rgba(56, 189, 248, 0.04);
  padding: 0.2rem 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.35s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-cyan);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-bright);
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  transition: all 0.25s;
}

.btn svg { width: 16px; height: 16px; flex: none; }

.btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--bg-primary);
}

.btn-primary {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-blue);
}

.btn[aria-disabled="true"],
.btn:disabled {
  color: var(--text-muted);
  border-color: var(--hairline);
  background: transparent;
  cursor: not-allowed;
}

/* Key numbers */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 960px;
  margin: 0 auto 3.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 1.1rem 0.6rem 1rem;
  border-left: 1px solid var(--border);
}

.stat:first-child { border-left: none; }

.stat dd {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
}

.stat dt {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Abstract Card */
.abstract-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.abstract-text {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 3rem;
  font-size: 1.04rem;
  line-height: 1.8;
}

.sub-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin: 3.5rem 0 1.2rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--accent-blue);
  line-height: 1.5;
}

.sub-title:first-child { margin-top: 0; }

.block-lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 900px;
  margin-bottom: 1.6rem;
}

.block-lead strong { color: var(--text-primary); font-weight: 600; }

.note {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Generic card grids */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.card h3,
.card-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-index + h3 { padding-right: 3.4rem; }

.card-index {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(56, 189, 248, 0.12);
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  line-height: 1;
}

/* ============================================
   Paper figures + lightbox trigger
   ============================================ */
.paper-figure {
  margin: 0 auto;
}

.paper-figure + .paper-figure,
.card-grid + .paper-figure,
.paper-figure + .card-grid { margin-top: 2.5rem; }

.figure-plate {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  padding: clamp(0.6rem, 2vw, 1.4rem);
  cursor: zoom-in;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.figure-plate:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.08);
}

.figure-plate img {
  display: block;
  width: 100%;
  height: auto;
}

.zoom-hint {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 11, 20, 0.78);
  color: var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.2s;
}

.zoom-hint svg { width: 16px; height: 16px; }

.figure-plate:hover .zoom-hint,
.figure-plate:focus-visible .zoom-hint { opacity: 1; }

@media (hover: none) {
  .zoom-hint { opacity: 0.9; }
}

.paper-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.fig-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-right: 0.4rem;
}

/* ============================================
   Overview
   ============================================ */
#overview .card-grid { margin-top: 3rem; }

/* ============================================
   Environment
   ============================================ */
.entity-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.entity-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.icon-badge {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-bright);
  background: rgba(56, 189, 248, 0.06);
  color: var(--accent-cyan);
}

.icon-badge svg { width: 28px; height: 28px; }

.entity-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.tag {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.tag-air { color: var(--accent-purple); }

.entity-card p { font-size: 0.97rem; }

.env-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.icon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.icon-list strong { color: var(--text-primary); font-weight: 600; }

.icon-list .icon-badge { width: 38px; height: 38px; }
.icon-list .icon-badge svg { width: 22px; height: 22px; }

.faction-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.faction {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid var(--hairline);
  padding: 0.2rem 0.7rem;
}

.faction::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--f);
}

/* Maps */
.map-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem 1.5rem;
}

.map-item { grid-column: span 2; }
.map-item.is-large { grid-column: span 3; }

.map-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 1;
  cursor: zoom-in;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.map-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 25px rgba(56,189,248,0.1);
}

.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.map-card:hover img { transform: scale(1.03); }
.map-card:hover .zoom-hint,
.map-card:focus-visible .zoom-hint { opacity: 1; }

.map-meta {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.map-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
}

.map-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.map-dims {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.map-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-purple);
  border: 1px solid rgba(129, 140, 248, 0.45);
  padding: 0 0.45rem;
}

.scene-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scene-links a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-cyan);
  border: 1px solid var(--border-bright);
  padding: 0.22rem 0.6rem;
  transition: all 0.2s;
}

.scene-links a:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--bg-primary);
}

.link-btn.scene-open { margin: 0 0 1.4rem; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table thead th {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.04);
}

.data-table tbody th {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.data-table td { color: var(--text-secondary); }

.table-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  line-height: 1.65;
}

/* ============================================
   Workflows
   ============================================ */
.formula-card {
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 1.8rem 2rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}

.formula-card .section-label { margin-bottom: 1.2rem; }

.formula {
  display: block;
  width: min(100%, 470px);
  height: auto;
  margin: 0 auto 1.2rem;
}

.formula-legend {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.formula-legend i {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.05em;
  color: var(--text-primary);
}

.wf-card {
  border-top: 3px solid var(--wf);
  display: flex;
  flex-direction: column;
}

.wf-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.wf-name::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wf);
}

.wf-sub {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0.25rem 0 0.9rem;
}

.wf-card p { flex: 1; }

.wf-demand {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.wf-demand b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.model-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1rem;
  margin-top: 2.5rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  text-align: center;
}

.model-chip {
  font-weight: 700;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  padding: 0.25rem 0.8rem;
  background: rgba(56, 189, 248, 0.05);
}

.model-row .model-label {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.model-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

/* workflow key used in tables */
.wf-key {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wf);
  margin-right: 0.45rem;
  vertical-align: 0.08em;
}

/* ============================================
   Evaluation
   ============================================ */
.eval-card .eval-question {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.eval-big {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.eval-big b {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.eval-big span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.spec-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1.1rem;
  font-size: 0.96rem;
}

.spec-list dt {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.32rem;
}

.spec-list dd { color: var(--text-secondary); }

.eval-card .note { margin-top: 1.2rem; font-size: 0.9rem; }

.dim-group h4 {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dim {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--hairline);
}

.dim:first-of-type { border-top: none; padding-top: 0; }

.dim-letter {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--accent-cyan);
  border: 1px solid var(--border-bright);
  background: rgba(56, 189, 248, 0.06);
}

.dim-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.4;
}

.dim-name .range {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.dim p { font-size: 0.93rem; line-height: 1.6; }

.agreement {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 2rem;
  align-items: center;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.mini-stat {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.mini-stat dd {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  white-space: nowrap;
}

.mini-stat dd small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mini-stat dt {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  line-height: 1.35;
}

.agreement .paper-figure { max-width: none; }

/* ============================================
   Results
   ============================================ */
.result-block + .result-block { margin-top: 4.5rem; }

.viz-card {
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  padding: 1.6rem 1.6rem 1.3rem;
}

.viz-card + .viz-card,
.viz-card + .paper-figure,
.paper-figure + .viz-card { margin-top: 2rem; }

.viz-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.viz-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

.viz-foot {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.viz-scroll { overflow-x: auto; }

/* Totals table */
.totals-table {
  width: 100%;
  max-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.totals-table th,
.totals-table td {
  padding: 0.75rem 0.9rem;
  text-align: right;
  border-bottom: 1px solid var(--hairline);
}

.totals-table tbody tr:last-child th,
.totals-table tbody tr:last-child td { border-bottom: none; }

.totals-table thead th {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.totals-table th:first-child { text-align: left; }

.totals-table tbody th {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.totals-table td {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.totals-table .gain {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

.totals-table td.best {
  background: rgba(56, 189, 248, 0.1);
  box-shadow: inset 0 -2px 0 var(--accent-blue);
  font-weight: 700;
}

.totals-table td.best .gain { color: var(--accent-cyan); }

/* Heatmap */
.heatmap {
  border-collapse: separate;
  border-spacing: 2px;
  width: 100%;
  min-width: 480px;
  font-variant-numeric: tabular-nums;
}

.heatmap thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.2rem 0 0.5rem;
  text-align: center;
  transition: color 0.15s;
}

.heatmap thead th abbr { text-decoration: none; cursor: help; }

.heatmap .group-row th {
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.9rem 0 0.3rem;
}

.heatmap .group-row:first-child th { padding-top: 0.2rem; }

.heatmap tbody th[scope="row"] {
  text-align: left;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-right: 0.8rem;
  white-space: nowrap;
  width: 1%;
  transition: color 0.15s;
}

.heatmap td {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  height: 36px;
  min-width: 52px;
  cursor: default;
  transition: box-shadow 0.15s;
}

.heatmap td:hover { box-shadow: inset 0 0 0 2px var(--text-primary); }

.heatmap .is-hot { color: var(--accent-cyan) !important; }

/* sequential blue ramp: low recedes toward the dark surface, high is light */
.heat-0 { background: #0d366b; color: #fff; }
.heat-1 { background: #104281; color: #fff; }
.heat-2 { background: #184f95; color: #fff; }
.heat-3 { background: #1c5cab; color: #fff; }
.heat-4 { background: #256abf; color: #fff; }
.heat-5 { background: #3987e5; color: #07111f; }
.heat-6 { background: #5598e7; color: #07111f; }
.heat-7 { background: #6da7ec; color: #07111f; }
.heat-8 { background: #9ec5f4; color: #07111f; }
.heat-9 { background: #cde2fb; color: #07111f; }

.scale-legend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.scale-ramp {
  display: grid;
  grid-template-columns: repeat(10, 22px);
  gap: 2px;
}

.scale-ramp span { height: 10px; }

.dim-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 0.8rem;
}

.dim-key b {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-primary);
  margin-right: 0.3rem;
}

/* Continuous-run bars */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend span::before {
  content: '';
  width: 14px;
  height: 8px;
  border-radius: 0 3px 3px 0;
  background: var(--wf);
}

.bars-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.bars-table thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  padding: 0 0.8rem 0.6rem 0;
  vertical-align: bottom;
}

.bars-table thead th small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: none;
}

.bars-table .group-row th {
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.85rem 0 0.25rem;
  border-top: 1px solid var(--hairline);
}

.bars-table tbody:first-of-type .group-row th { border-top: none; padding-top: 0.2rem; }

.bars-table tbody th[scope="row"] {
  text-align: left;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  width: 1%;
  padding: 0.22rem 1rem 0.22rem 0;
}

.bars-table td { padding: 0.22rem 0.9rem 0.22rem 0; }

.bars-table tr.bar-row:hover th[scope="row"] { color: var(--text-primary); }

.bar-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bar-track {
  position: relative;
  flex: 1;
  height: 10px;
  background: rgba(148, 163, 184, 0.09);
  border-left: 1px solid rgba(148, 163, 184, 0.35);
}

.bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w);
  background: var(--wf);
  border-radius: 0 4px 4px 0;
  transition: filter 0.15s;
}

.bar-cell:hover .bar { filter: brightness(1.25); }

.bar-val {
  width: 2.9em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.case-card .case-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-decoration: none;
  border: 1px solid var(--border-bright);
  padding: 0.55rem 0.9rem;
  transition: all 0.2s;
}

.link-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--bg-primary);
}

.link-btn svg { width: 14px; height: 14px; }

/* ============================================
   Findings
   ============================================ */
.finding-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.finding-card:hover {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
}

.finding-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(56,189,248,0.12);
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  line-height: 1;
}

.finding-card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
  padding-right: 3.5rem;
  line-height: 1.5;
}

.finding-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.implication-card { border-left: 3px solid var(--accent-purple); }
.implication-card h3 { color: var(--text-primary); }

.scope-note {
  max-width: 860px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Code & Data downloads
   ============================================ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-margin-top: 2rem;
}

.download-card:target {
  animation: targetPulse 1.6s ease-out 1;
  border-color: var(--accent-blue);
}

.download-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.download-head .icon-badge { width: 52px; height: 52px; }

.download-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.download-head p { font-size: 0.95rem; margin-top: 0.15rem; }

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.8rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.file-meta .file-name {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  word-break: break-all;
}

.file-meta.is-empty {
  color: var(--text-muted);
  font-style: italic;
}

.download-card .btn { align-self: flex-start; }

.status-pill {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px dashed var(--hairline);
  padding: 0.7rem 1.2rem;
}

/* ============================================
   Footer / scroll-to-top
   ============================================ */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 900;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--accent-cyan);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  flex-direction: column;
  background: rgba(3, 6, 12, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox.open { display: flex; }

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem 0.8rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.lightbox-hint {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.lightbox-count {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.lightbox-count:empty { display: none; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text-primary);
  background: rgba(7, 11, 20, 0.78);
  border: 1px solid var(--border-bright);
  cursor: pointer;
}

.lightbox-nav:hover {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-close {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

.lightbox-stage {
  flex: 1;
  overflow: auto;
  display: flex;
  padding: 1.5rem;
}

.lightbox-stage img {
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox.zoomed .lightbox-stage img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.lightbox-caption {
  padding: 0.9rem 1.5rem 1.2rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  max-height: 25vh;
  overflow-y: auto;
  line-height: 1.6;
}

body.no-scroll { overflow: hidden; }

/* ============================================
   Tooltip (heatmap cells, bars)
   ============================================ */
.viz-tip {
  position: fixed;
  z-index: 1500;
  pointer-events: none;
  background: #f1f5f9;
  color: #0b1220;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.45rem 0.65rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  max-width: 260px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s, transform 0.12s;
}

.viz-tip.show { opacity: 1; transform: none; }
.viz-tip b { display: block; font-size: 1rem; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes targetPulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55); }
  100% { box-shadow: 0 0 0 18px rgba(56, 189, 248, 0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   Responsive
   ============================================ */
/* the dot navigation only shows where it cannot overlap the content column */
@media (max-width: 1260px) {
  .side-nav { display: none; }
}

@media (max-width: 960px) {
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--border); }
  .agreement { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-padding: 4rem 0; }

  .side-nav { display: none; }

  .card-grid.cols-2,
  .card-grid.cols-3,
  .env-split,
  .download-grid { grid-template-columns: 1fr; }

  .map-gallery { grid-template-columns: repeat(2, 1fr); }
  .map-item, .map-item.is-large { grid-column: span 1; }

  .result-stats { grid-template-columns: 1fr; }

  .abstract-card { padding: 1.5rem; }

  .card { padding: 1.5rem; }
}

@media (max-width: 560px) {
  .container { padding: 0 1rem; }
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .map-gallery { grid-template-columns: 1fr; }
  .lightbox-nav { width: 38px; height: 54px; font-size: 1.8rem; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(n) { border-left: 1px solid var(--border); border-top: none; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat dd { font-size: 1.8rem; }
  .mini-stats { grid-template-columns: 1fr; }
  .abstract-text { text-align: left; }
  .viz-card { padding: 1.2rem 1rem 1rem; }
  .data-table th, .data-table td { padding: 0.7rem 0.8rem; }
  .totals-table th, .totals-table td { padding: 0.65rem 0.45rem; }
  .totals-table td { font-size: 1.05rem; }
  .lightbox-stage { padding: 0.75rem; }
  .lightbox-hint { font-size: 0.78rem; }
  .section-desc { text-align: left; }

  .heatmap { min-width: 0; border-spacing: 2px; }
  .heatmap td { min-width: 0; height: 32px; font-size: 0.8rem; }
  .heatmap thead th { font-size: 0.7rem; }
  .heatmap tbody th[scope="row"] { padding-right: 0.4rem; font-size: 0.8rem; }

  .bars-table { min-width: 0; }
  .bars-table thead th { padding-right: 0.4rem; }
  .bars-table thead th small { font-size: 0.7rem; line-height: 1.25; }
  .bars-table tbody th[scope="row"] { padding-right: 0.5rem; font-size: 0.8rem; }
  .bars-table td { padding-right: 0.4rem; }
  .bar-cell { gap: 0.3rem; }
  .bar-track { min-width: 34px; height: 8px; }
  .bar-val { width: 2.4em; font-size: 0.78rem; }
  .legend { font-size: 0.8rem; gap: 0.3rem 0.9rem; }
}
