/* Exhibition-scale world map and more readable dashboard typography. */
body {
  font-size: 14px;
}

.brand {
  font-size: 15px;
}

.brand small {
  font-size: 10px;
}

.top-center,
.top-actions {
  font-size: 11px;
}

.mode-tag {
  font-size: 10px;
}

.rail-label,
.section-label,
.panel-kicker,
.eyebrow,
.scenario-index,
.event-time,
.event-tag,
.map-topline,
.map-footer,
.map-legend,
.metric-caption,
.range-ends,
.resource-row,
.right-foot,
.footer-note,
.future-label,
.dependency-box > span {
  font-size: 10px;
}

.rail-item {
  font-size: 13px;
}

.rail-item span {
  font-size: 17px;
}

.side-act span {
  font-size: 10px;
}

.side-act b {
  font-size: 11px;
}

.scenario-index,
.scenario-status {
  font-size: 9px;
}

.scenario-card strong {
  font-size: 14px;
}

.scenario-sub,
.rail-bottom {
  font-size: 11px;
}

.new-scenario,
.right-heading,
.slider-label,
.constraint-card b,
.check-row b,
.event-copy b,
.agent-strip > div {
  font-size: 12px;
}

.constraint-card p,
.check-row small,
.scenario-title small,
.agent-strip small {
  font-size: 10px;
}

.button,
.response-button,
.compare-button,
.outline-button,
.text-link,
.ai-badge {
  font-size: 11px;
}

.step-num,
.step-mark,
.confidence,
.cost {
  font-size: 9px;
}

.stage-kicker,
.act-choice > span,
.act-choice > b,
.act-utility,
.act-caption p {
  font-size: 10px;
}

.rail-bottom small {
  font-size: 10px;
}

.hero-panel {
  height: clamp(440px, 56vh, 720px);
  min-height: 440px;
}

.hero-art {
  opacity: 0.9;
  filter: saturate(1.05) hue-rotate(5deg);
}

.map-topline {
  top: 20px;
  left: 24px;
  right: 24px;
  font-size: 11px;
}

.map-topline button {
  width: 38px;
  height: 36px;
  font-size: 20px;
}

.map-center {
  width: 210px;
  height: 210px;
}

.earth-core {
  width: 116px;
  height: 116px;
  font-size: 10px;
}

.earth-core b {
  font-size: 19px;
}

.center-caption {
  top: 190px;
  font-size: 10px;
}

.node {
  min-width: 124px;
  padding: 10px 12px;
}

.node-icon {
  font-size: 20px;
  line-height: 22px;
  margin-right: 8px;
}

.node-name {
  font-size: 10px;
}

.node-state {
  font-size: 9px;
}

.node-meter {
  height: 3px;
}

.map-legend {
  left: 24px;
  bottom: 42px;
  gap: 18px;
  font-size: 11px;
}

.map-footer {
  left: 24px;
  right: 24px;
  bottom: 16px;
  font-size: 10px;
}

.map-footer b {
  font-size: 11px;
}

.panel-head h2 {
  font-size: 18px;
}

.panel-kicker {
  font-size: 10px;
}

.insight-card {
  gap: 12px;
  padding: 14px;
}

.insight-card b,
.step-text b,
.event-copy b {
  font-size: 12px;
}

.insight-card p,
.step-text small,
.event-copy small {
  font-size: 11px;
}

.event-row {
  min-height: 40px;
}

.metric-row {
  font-size: 11px;
}

.metric-caption {
  font-size: 9px;
}

.hero-panel.focused {
  position: fixed;
  inset: clamp(12px, 1.5vw, 28px);
  z-index: 40;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  border-radius: 8px;
  box-shadow: 0 0 0 100vmax #02070de8, 0 24px 90px #000;
}

body.map-focused {
  overflow: hidden;
}

@media (min-width: 1400px) {
  .app-shell {
    max-width: 1920px;
    grid-template-columns: 220px minmax(650px, 1fr) 290px;
  }

  .hero-panel {
    height: min(58vh, 740px);
    min-height: 460px;
  }
}

@media (max-width: 1050px) and (min-width: 681px) {
  .hero-panel {
    height: clamp(390px, 54vh, 600px);
    min-height: 390px;
  }

  .node {
    min-width: 112px;
    padding: 8px 9px;
  }
}

@media (max-width: 680px) {
  .hero-panel {
    height: clamp(360px, 58vh, 520px);
    min-height: 360px;
  }

  .map-center {
    width: 116px;
    height: 116px;
  }

  .earth-core {
    width: 72px;
    height: 72px;
    font-size: 8px;
  }

  .earth-core b {
    font-size: 13px;
  }

  .center-caption {
    top: 104px;
    font-size: 7px;
  }

  .node {
    min-width: 82px;
    padding: 6px;
  }

  .node-icon {
    font-size: 14px;
    line-height: 16px;
    margin-right: 4px;
  }

  .node-name {
    font-size: 8px;
  }

  .node-state {
    font-size: 7px;
  }

  .map-topline {
    left: 12px;
    right: 12px;
    top: 12px;
    font-size: 9px;
  }

  .map-legend {
    left: 12px;
    bottom: 38px;
    gap: 9px;
    font-size: 9px;
  }

  .map-footer {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 8px;
  }
}

/* Optional large-screen view for the live school presentation. */
body.presentation-mode .app-shell {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 20vw);
  max-width: 2048px;
}

body.presentation-mode .left-rail { display: none; }
body.presentation-mode .workspace { padding: clamp(22px, 3vw, 54px); }
body.presentation-mode .journey-head p { font-size: 13px; }
body.presentation-mode .act-choice { min-height: 42px; padding: 9px 11px; }
body.presentation-mode .act-choice > span { font-size: 10px; }
body.presentation-mode .act-choice > b { font-size: clamp(9px, .72vw, 13px); }
body.presentation-mode .story-stage { height: clamp(520px, 59vh, 840px); }
body.presentation-mode .stage-copy { width: min(62%, 760px); }
body.presentation-mode .stage-copy h1 { font-size: clamp(50px, 5.2vw, 88px); }
body.presentation-mode .stage-copy > p { max-width: 580px; font-size: 15px; }
body.presentation-mode .stage-side { width: min(280px, 24%); }
body.presentation-mode .stage-readout { padding: 15px; }
body.presentation-mode .stage-readout > span,
body.presentation-mode .stage-readout > small { font-size: 10px; }
body.presentation-mode .stage-readout > b { font-size: 32px; }
body.presentation-mode .stage-readout.second > b { font-size: 14px; }
body.presentation-mode .hero-panel { height: clamp(580px, 70vh, 920px); }
body.presentation-mode .node { min-width: 140px; padding: 12px 15px; }
body.presentation-mode .node-name { font-size: 11px; }
body.presentation-mode .map-center { width: 250px; height: 250px; }
body.presentation-mode .earth-core { width: 138px; height: 138px; font-size: 12px; }
body.presentation-mode .earth-core b { font-size: 22px; }
body.presentation-mode .center-caption { top: 226px; font-size: 11px; }
body.presentation-mode .topbar { position: sticky; top: 0; z-index: 30; }
.presentation-toggle { min-height: 30px; padding: 0 12px; border: 1px solid #58c9d15c; border-radius: 3px; color: #a8fff1; background: linear-gradient(110deg,#13303a,#0a1720); font: 9px var(--mono); letter-spacing: .08em; transition: .2s; }
.presentation-toggle:hover,.presentation-toggle[aria-pressed="true"] { border-color: #8af4ed; color: #fff; box-shadow: 0 0 22px #50e7df24; }

/* Command-centre expansion: restrained motion, shared-model status and a readable ten-node network. */
.environment-nav { display: grid; gap: 4px; margin: 9px 0 14px; }
.environment-link { display:flex; align-items:center; gap:8px; min-height:32px; padding:6px 7px; border:1px solid transparent; border-radius:3px; color:#9aabb5; background:transparent; text-align:left; font:9px var(--mono); line-height:1.35; transition:background .2s,border-color .2s,color .2s,transform .2s; }
.environment-link i { width:14px; color:#61d9e4; font-style:normal; font-size:13px; text-align:center; }
.environment-link:hover,.environment-link.active { color:#e8fbff; border-color:#48cbd255; background:linear-gradient(100deg,#12313b,#0c1b24); }
.environment-link:hover { transform:translateX(2px); }
.environment-link.under-development { color:#697982; cursor:not-allowed; }
.environment-link.under-development small { margin-left:auto; color:#d1a36c; font:7px var(--mono); }
.environment-link.under-development:hover { transform:none; background:transparent; border-color:transparent; }
.command-overview { position:relative; overflow:hidden; margin:0 0 18px; padding:clamp(16px,2vw,28px); border:1px solid #4ad0d144; border-radius:7px; background:radial-gradient(ellipse at 86% -15%,#24cdd31a,transparent 44%),linear-gradient(140deg,#0c1822,#08121c 62%,#0a1c24); box-shadow:inset 0 1px #9afff01a,0 20px 55px #0005; }
.command-overview::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.28; background:repeating-linear-gradient(120deg,transparent 0 56px,#69e6e414 57px,transparent 58px 114px); mask-image:linear-gradient(90deg,transparent,#000); }
.command-heading { position:relative; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.command-heading .panel-kicker { letter-spacing:.15em; }
.command-heading h2 { margin:8px 0 0; font-size:clamp(21px,2vw,34px); letter-spacing:-.045em; }
.command-heading h2 em { color:#8bf3e6; font-style:normal; }
.command-live { display:inline-block; width:7px; height:7px; margin-left:8px; border-radius:50%; background:#75efcb; box-shadow:0 0 13px #75efcb; animation:commandPulse 2s ease-in-out infinite; }
.command-badge { display:flex; align-items:center; gap:10px; color:#9fb7c0; font:8px var(--mono); letter-spacing:.1em; white-space:nowrap; }
.command-badge b { display:inline-block; margin-top:5px; color:#66d9df; font-size:7px; }
.command-orbit { display:grid; place-items:center; width:42px; height:42px; border:1px solid #69e5de70; border-radius:50%; color:#a3fff1; font-size:22px; box-shadow:0 0 27px #34e5df26,inset 0 0 18px #34e5df18; animation:commandOrbit 12s linear infinite; }
.command-metrics { position:relative; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:18px 0 14px; }
.command-metrics article { min-height:75px; padding:11px 12px; border:1px solid #87d9e01b; border-radius:4px; background:#06111ab5; }
.command-metrics article>span { display:block; color:#85a3ae; font:8px var(--mono); letter-spacing:.12em; }
.command-metrics article>b { display:block; margin-top:5px; color:#f0fbff; font:23px var(--mono); letter-spacing:-.04em; }
.command-metrics article>b i { margin-left:2px; color:#83e8e4; font-size:13px; font-style:normal; }
.command-metrics article>small { display:block; margin-top:4px; color:#708993; font-size:8px; }
.domain-status-grid { position:relative; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.domain-status { min-width:0; padding:9px 10px 8px; border:1px solid #b0dbe01b; border-radius:4px; color:#e1f2f5; background:linear-gradient(145deg,#12212a,#09141d); text-align:left; opacity:0; transform:translateY(7px); animation:domainArrive .55s cubic-bezier(.2,.7,.2,1) forwards; animation-delay:var(--domain-delay); transition:border-color .22s,background .22s,transform .22s,box-shadow .22s; }
.domain-status:hover,.domain-status.is-selected { transform:translateY(-2px); border-color:#62e5dc80; background:linear-gradient(145deg,#18313a,#0b1922); box-shadow:0 8px 22px #0004,0 0 20px #43e6dc12; }
.domain-status-top,.domain-status-bottom { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.domain-status-top>i { color:#708995; font:8px var(--mono); font-style:normal; }
.domain-status-top>b { color:#79e9e5; font-size:14px; font-weight:500; }
.domain-risk { color:#75dfbd; font:7px var(--mono); font-style:normal; letter-spacing:.08em; }
.domain-status[data-level="stressed"] .domain-risk { color:#ffc16d; }
.domain-status[data-level="critical"] .domain-risk { color:#ff7785; }
.domain-status>strong { display:block; min-height:26px; margin:6px 0 7px; font-size:10px; line-height:1.35; }
.domain-pressure-track { flex:1; height:3px; overflow:hidden; border-radius:4px; background:#253a43; }
.domain-pressure-track i { display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#62e8cb,#f2bc69,#ff6b7e); transition:width .45s ease; }
.domain-status[data-level="stressed"] .domain-pressure-track i { background:#ffbe69; }
.domain-status[data-level="critical"] .domain-pressure-track i { background:#ff6b7e; }
.domain-pressure { color:#a7c3ca; font:8px var(--mono); }
.model-observatory { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:20px; margin-top:11px; padding:17px; }
.model-observatory h2 { margin:5px 0; font-size:17px; }
.model-observatory p { max-width:560px; margin:0; color:#8fa4ae; font-size:9px; line-height:1.7; }
.model-facts { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.model-facts span { padding:9px; border:1px solid #ffffff12; color:#7f969f; font:7px var(--mono); letter-spacing:.08em; }
.model-facts b { display:block; margin-bottom:4px; color:#cbf4f1; font-size:10px; }
.network-nodes { position:absolute; inset:0; z-index:3; pointer-events:none; }
.node { left:var(--node-x); top:var(--node-y); transform:translate(-50%,-50%); pointer-events:auto; background:#06111eef; backdrop-filter:none; }
.node:hover,.node.is-selected { transform:translate(-50%,-54%); border-color:#8ffff2; box-shadow:0 0 24px #45dfe65c; }
.node.is-selected { z-index:5; }
.node-name { font-size:8px; }
.node-icon { color:#80eff0; }
.connections .link { stroke:#74e8f24f; stroke-width:1.3; marker-end:url(#networkArrow); transition:opacity .25s,stroke .25s,stroke-width .25s; }
.connections .flow { stroke-width:2.2; opacity:.7; animation-delay:var(--flow-delay); filter:none; }
.connections .link.path-highlight { stroke:#b0fff3; stroke-width:2.8; opacity:1; }
.hero-panel:has(.node.is-selected) .connections .link:not(.path-highlight),.hero-panel:has(.node.is-selected) .connections .flow { opacity:.12; }
.dependency-box>div { display:block; }
.dependency-group { display:flex; flex-wrap:wrap; gap:6px; margin:9px 0 13px; }
.dependency-group>b { flex-basis:100%; color:#85a5ae; font:7px var(--mono); letter-spacing:.1em; }
.dependency-group .dep-chip { display:inline-flex; align-items:center; gap:3px; }
.dep-chip small { display:block; margin-left:5px; color:#82a2ad; font-size:7px; }
.dependency-none { color:#8799a1; font-size:8px; }
.domain-resilience { display:grid; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid #ffffff12; }
.domain-resilience span { color:#acbbc1; font-size:8px; line-height:1.5; }
.domain-resilience b { display:block; margin-bottom:3px; color:#70d8dd; font:7px var(--mono); letter-spacing:.08em; }
.command-overview,.model-observatory,.hero-panel,.lower-grid,.event-panel { scroll-margin-top:78px; }
@keyframes commandPulse { 50% { opacity:.48; box-shadow:0 0 4px #75efcb; } }
@keyframes commandOrbit { to { transform:rotate(360deg); } }
@keyframes domainArrive { to { opacity:1; transform:translateY(0); } }

@media (max-width: 1180px) {
  .domain-status-grid { grid-template-columns:repeat(5,minmax(90px,1fr)); }
  .node { min-width:84px; }
  .environment-link { font-size:8px; }
}
@media (max-width: 820px) {
  .command-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .domain-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .model-observatory { grid-template-columns:1fr; }
  .command-heading h2 { max-width:570px; }
}
@media (prefers-reduced-motion: reduce) {
  .command-live,.command-orbit,.domain-status,.connections .flow { animation:none !important; }
  .domain-status { opacity:1; transform:none; }
  *,*::before,*::after { scroll-behavior:auto !important; }
}

@media (max-width: 1050px) {
  body.presentation-mode .app-shell { grid-template-columns: minmax(0, 1fr) 250px; }
  body.presentation-mode .workspace { padding: 18px; }
  body.presentation-mode .story-stage { height: 560px; }
  body.presentation-mode .hero-panel { height: 62vh; min-height: 460px; }
}

@media (max-width: 680px) {
  body.presentation-mode .app-shell { display: block; }
  body.presentation-mode .right-rail { display: none; }
  body.presentation-mode .workspace { padding: 16px 12px; }
  body.presentation-mode .story-stage { height: 490px; min-height: 470px; }
  body.presentation-mode .stage-copy h1 { font-size: 38px; }
  body.presentation-mode .hero-panel { height: 58vh; min-height: 360px; }
  body.presentation-mode .center-caption { top: 104px; font-size: 7px; }
  .presentation-toggle { font-size: 7px; padding: 0 7px; }
}
