@font-face {
  font-family: Barlow Condensed;
  src: url('./fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url('./fonts/barlow-condensed-800-italic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #252c25;
  --muted: #596254;
  --line: #c9ccbd;
  --paper: #f7f7ee;
  --panel: #fdfcf5;
  --orange: #ff8050;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font:
    100%/1.45 'Helvetica Neue',
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #858e77 var(--paper);
  accent-color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select,
input[type='radio'],
input[type='range'] {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  padding: 0;
}
svg:not(.symbols):not(.compass) {
  display: block;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
:focus-visible {
  outline: 3px solid #287092;
  outline-offset: 3px;
}
::selection {
  background: #ffd5bd;
  color: var(--ink);
}
.wrap {
  width: min(clamp(1496px, 85vw, 2800px), calc(100% - clamp(32px, 6.8vw, 112px)));
  margin-inline: auto;
}
.masthead {
  background: #232923;
  color: #f8f8ec;
}
.mast-inner {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand,
.info-button,
.transport,
.title-line,
.primary,
.square,
.clock,
.views,
.zoom,
.panel-heading,
.slider-label,
.metric-title,
.reading {
  display: flex;
  align-items: center;
}
.brand {
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font: italic 800 clamp(1.25rem, 2.3vw, 1.73rem) / 1 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand-accent {
  color: #ff9b70;
}
.info-button {
  gap: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #edeedc;
  min-height: 40px;
  padding-inline: 10px;
  border-radius: 5px;
}
.info-button:hover {
  background: #3b4339;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: clamp(23px, 3.5vh, 43px) 0 clamp(21px, 3vh, 34px);
}
.title-line {
  gap: 17px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
}
h1 {
  font-size: clamp(3.1rem, 5vw, 4.8rem);
  letter-spacing: -0.025em;
}
.route {
  font:
    bold 0.86rem/1.05 Arial,
    sans-serif;
  color: #fbfae9;
  background: #42657b;
  border: 2px solid #42657b;
  outline: 1px solid #42657b;
  outline-offset: 1px;
  box-shadow: inset 0 0 0 1px #e0e8dc;
  padding: 4px 7px 3px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  transform: translateY(3px);
}
.intro p {
  margin-top: 8px;
  text-wrap: balance;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.24vw, 1.05rem);
}
.transport {
  gap: 8px;
}
.primary,
.square {
  min-height: 44px;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
}
.primary {
  background: var(--orange);
  border: 1px solid #da7245;
  padding: 0 18px;
  gap: 8px;
  min-width: 136px;
}
.primary:hover {
  background: #ff9769;
}
.square {
  min-width: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.square:hover,
.views button:not([aria-pressed='true']):hover,
.zoom button:enabled:hover {
  background: #e4e8da;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(275px, 23.1vw, 350px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 36px;
}
.world {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.viewport {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 1;
  border: 1px solid #b9c1ad;
  border-radius: 10px;
  overflow: hidden;
  background-color: #e9ede0;
  background-image: radial-gradient(#bfc8b3 0.85px, transparent 0.95px);
  background-size: 13px 13px;
}
.viewport-top {
  position: absolute;
  inset: 16px 16px auto 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}
.clock {
  min-height: 31px;
  padding: 6px 9px;
  gap: 10px;
  background: var(--panel);
  border: 1px solid #bac4ab;
  border-radius: 4px;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #405e38;
  text-transform: uppercase;
  font-weight: 750;
  font-size: 0.75rem;
  letter-spacing: 0.085em;
}
.status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b934c;
}
.status.paused {
  color: #755037;
}
.status.paused::before {
  background: #b77c48;
}
.clock time {
  border-left: 1px solid var(--line);
  padding-left: 10px;
  letter-spacing: 0.04em;
}
.compass {
  width: 34px;
  height: 42px;
  fill: #52614f;
  font:
    700 11px Arial,
    sans-serif;
}
#stage {
  position: relative;
  flex: 1;
  min-height: clamp(320px, 26.4vw, 418px);
  margin: 25px 0 0;
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 340px;
}
#scene {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#scene.dragging { cursor: grabbing; }
#scene:focus-visible { outline-offset: -3px; }
.map-nav {
  display: flex;
  align-items: stretch;
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid #b7c0ab;
  border-radius: 5px;
}
.map-nav button {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 36px;
  border-radius: 4px;
}
.map-nav button:hover { background: #e8ecdf; }
.map-nav button:active { background: #d7decf; }
.map-nav .compass { width: 26px; height: 32px; background: none; }
@media (pointer: coarse) {
  .map-nav button { width: 44px; min-height: 44px; }
}
#vehicle-tooltip {
  position: absolute;
  inset: 0 auto auto 0;
  translate: var(--tooltip-x, 0px) var(--tooltip-y, 0px);
  width: min(15rem, calc(100% - 16px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 5px 5px 5px 9px;
  border-radius: 5px;
  background: var(--panel);
  box-shadow: 0 2px 7px #252c2540;
  font-size: 0.75rem;
  line-height: 1.25;
  pointer-events: none;
}
#vehicle-tooltip::after {
  content: '';
  position: absolute;
  left: var(--tooltip-arrow, 50%);
  bottom: 0;
  width: 8px;
  height: 8px;
  background: var(--panel);
  translate: -50% 50%;
  rotate: 45deg;
}
#vehicle-tooltip.below-vehicle::after {
  top: 0;
  bottom: auto;
  translate: -50% -50%;
}
#vehicle-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 6px;
  margin: 0;
}
#vehicle-stats dt {
  color: var(--muted);
}
#vehicle-stats dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}
#clear-map-car {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  font-size: 1rem;
  pointer-events: auto;
}
#clear-map-car:hover {
  background: #e8ecdf;
}
@media (pointer: coarse) {
  #clear-map-car {
    width: 44px;
    height: 44px;
  }
}
.view-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 15px 14px;
  z-index: 1;
}
.views,
.zoom {
  border: 1px solid #b7c0ab;
  border-radius: 5px;
  background: #f7f9ee;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 600;
}
.views {
  padding: 3px;
  gap: 2px;
}
.views button,
.zoom button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
}
.views button {
  padding: 0 9px;
  border-radius: 3px;
}
.views button[aria-pressed='true'] {
  background: #354134;
  color: #fbfcee;
}
.zoom button {
  width: 32px;
  min-height: 36px;
}
.zoom button:disabled {
  opacity: 0.32;
  cursor: default;
}
.zoom output {
  min-width: 45px;
  text-align: center;
  font:
    600 0.74rem/1.2 ui-monospace,
    monospace;
}
.zoom button:focus-visible,
.views button:focus-visible {
  outline-offset: -3px;
}
.telemetry {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-block: 1px solid var(--line);
  padding: 16px 0;
}
.metric {
  min-width: 0;
  padding: 0 clamp(10px, 1.35vw, 22px);
  border-left: 1px solid var(--line);
}
.metric:first-child {
  padding-left: 2px;
  border-left: 0;
}
.metric:last-child {
  padding-right: 4px;
}
.metric-title {
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.metric-title svg {
  width: 17px !important;
  height: 17px !important;
}
.reading {
  gap: 6px;
  flex-wrap: nowrap;
  align-items: baseline;
  min-height: 44px;
}
.reading strong {
  font: 700 clamp(2.2rem, 3.3vw, 3.2rem) / 1.08 var(--display);
  font-variant-numeric: tabular-nums;
}
.reading span {
  font-size: 0.77rem;
  color: var(--muted);
}
.reading canvas {
  max-width: 39%;
  min-width: 0;
  width: 76px;
  height: 30px;
  margin-left: auto;
  align-self: center;
}
.parameters {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.panel-heading {
  flex: none;
  padding: 16px 20px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.panel-heading svg {
  color: #485642;
}
h2 {
  font-size: 1.8rem;
  letter-spacing: -0.012em;
}
.panel-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 18px 20px 22px;
}
/* The map column sets the workspace height; the controls scroll inside it. */
@media (min-width: 781px) {
  .parameters {
    height: 0;
    min-height: 100%;
  }
}
.field-label,
legend,
.slider-label label {
  font-weight: 650;
  font-size: 0.88rem;
}
.select-wrap {
  position: relative;
  margin-top: 7px;
}
.select-wrap select {
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid #aab19f;
  background: var(--panel);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 550;
}
.select-wrap svg {
  pointer-events: none;
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
}
.lanes {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  width: 100%;
  padding: 0;
  margin-bottom: 7px;
}
legend small {
  float: right;
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--muted);
}
.segments {
  display: flex;
  border: 1px solid #b5bcaa;
  border-radius: 4px;
  overflow: hidden;
}
.segments label {
  position: relative;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.segments label + label {
  border-left: 1px solid #b5bcaa;
}
.segments input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
}
.segments span {
  display: grid;
  place-items: center;
  height: 36px;
  font-size: 0.91rem;
  font-weight: 650;
  pointer-events: none;
}
.segments label:hover span {
  background: #e8ecdf;
}
.segments input:checked + span {
  background: #354134;
  color: #fffef0;
}
.segments input:focus-visible + span {
  outline: 3px solid #438ba5;
  outline-offset: -3px;
}
.slider {
  padding-top: 14px;
  border-top: 1px solid #dcdfd0;
}
.slider + .slider {
  margin-top: 13px;
}
.slider-label,
.limits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.slider-label output {
  font:
    700 0.84rem/1.3 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #844121;
  font-variant-numeric: tabular-nums;
}
.slider input {
  appearance: none;
  display: block;
  width: 100%;
  height: 24px;
  margin: 4px 0 0;
  padding: 0;
  background: transparent;
  --percent: 50%;
  --track: linear-gradient(to right, #687b57 var(--percent), #d6dbca var(--percent));
}
.slider input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: var(--track);
}
.slider input::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--track);
}
.slider input::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 2px solid #38482f;
  border-radius: 50%;
  background: #f6f8e9;
}
.slider input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #38482f;
  border-radius: 50%;
  background: #f6f8e9;
}
.demand-band {
  height: 5px;
  margin: -4px 8px 3px;
}
#demand-band {
  display: block;
  min-width: 1px;
  height: 100%;
  border-block-end: 2px solid #54704a;
  border-inline-end: 2px solid #54704a;
}
#demand-equilibrium {
  display: block;
  min-height: 1lh;
  margin-top: 3px;
}
.limits {
  color: var(--muted);
  font-size: 0.75rem;
}
dialog {
  width: min(480px, calc(100% - 32px));
  max-height: 85dvh;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 23px;
  box-shadow: 0 18px 60px #25302538;
}
dialog::backdrop {
  background: #1b281e80;
}
dialog form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
dialog h3 {
  margin: 20px 0 6px;
  font-size: 1.4rem;
}
dialog p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #45503e;
}
dialog p + p {
  margin-top: 14px;
}
@media (min-width: 1650px) {
  .intro {
    margin-block: 38px;
  }
}
@media (max-width: 980px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 12px;
  }
  .panel-heading,
  .panel-body {
    padding-inline: 16px;
  }
  .metric-title {
    font-size: 0.79rem;
  }
  .reading canvas {
    max-width: 29%;
  }
  .world {
    gap: 12px;
  }
}
@media (max-width: 780px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro {
    margin-block: 23px 18px;
  }
  .panel-body {
    max-height: 48svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
  }
  .field-label {
    grid-column: 1;
    align-self: start;
  }
  .select-wrap {
    grid-column: 1;
    grid-row: 2;
    margin-top: -12px;
  }
  .slider + .slider {
    margin: 0;
  }
  .slider {
    align-self: end;
  }
  .panel-heading {
    padding: 13px 16px;
  }
  #stage {
    min-height: clamp(245px, 44.8vw, 335px);
  }
  .reading canvas {
    max-width: 45%;
  }
  .telemetry {
    padding: 12px 0;
  }
}
@media (max-width: 540px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .mast-inner {
    min-height: 56px;
  }
  .brand {
    gap: 8px;
    font-size: 1.22rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .info-button {
    gap: 5px;
    padding: 0 3px;
    font-size: 0.75rem;
  }
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 4px;
  }
  .intro > div:first-child {
    display: contents;
  }
  .title-line {
    gap: 9px;
    align-self: center;
  }
  .intro h1 {
    font-size: clamp(2.5rem, 9.2vw, 3.1rem);
  }
  .route {
    font-size: 0.75rem;
    padding: 3px 4px;
    transform: none;
  }
  .intro p {
    grid-column: 1/-1;
    grid-row: 2;
    font-size: 0.88rem;
    max-width: 42ch;
    margin-top: 7px;
  }
  .transport {
    gap: 4px;
    align-self: center;
  }
  .primary,
  .square {
    min-height: 37px;
  }
  .primary {
    padding: 0 8px;
    min-width: 0;
    font-size: 0.75rem;
    gap: 4px;
  }
  .square {
    min-width: 35px;
  }
  .view-tools {
    padding: 0 8px 8px;
  }
  .viewport-top {
    inset: 9px 9px auto;
  }
  .views button {
    padding: 0 6px;
    font-size: 0.75rem;
  }
  .zoom button {
    width: 27px;
  }
  .zoom output {
    min-width: 35px;
  }
  .metric {
    padding-inline: 8px;
  }
  .metric-title {
    min-height: 2.4em;
    gap: 4px;
    font-size: 0.75rem;
    line-height: 1.2;
  }
  .metric-title svg {
    width: 13px !important;
    height: 13px !important;
  }
  .reading {
    gap: 3px;
    min-height: 37px;
  }
  .reading strong {
    font-size: 2rem;
  }
  .reading span {
    font-size: 0.75rem;
  }
  .reading canvas {
    display: none;
  }
  .panel-body {
    display: block;
    padding: 16px;
  }
  .select-wrap {
    margin-top: 6px;
  }
  .slider + .slider {
    margin-top: 13px;
  }
  .compass {
    width: 28px;
    height: 33px;
  }
  #stage {
    min-height: clamp(184px, 45vw, 236px);
  }
}
@media (max-width: 360px) {
  .primary span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .primary {
    min-width: 36px;
  }
  .brand {
    font-size: 1.1rem;
  }
}
@media (pointer: coarse) {
  .select-wrap select,
  .segments span,
  .views button,
  .zoom button,
  .primary,
  .square,
  .info-button {
    min-height: 44px;
  }
  .zoom button {
    min-width: 34px;
  }
  .slider input {
    height: 36px;
  }
}
@media (forced-colors: active) {
  .slider input {
    appearance: auto;
  }
  .segments input:checked + span,
  .views button[aria-pressed='true'] {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
  .status::before {
    background: CanvasText;
  }
}
.lane-pair,
.city-lane-pair {
  display: grid;
  gap: 12px;
}
.panel-body > :is(.lane-pair, .city-lanes) {
  grid-column: 1 / -1;
  margin-block: 14px 18px;
}
.lane-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.lane-pair .lane-note {
  grid-column: 1 / -1;
  margin: 0;
}
@media (pointer: coarse) {
  :is(.lane-pair, .city-lanes) .segments span {
    min-height: 48px;
  }
}
.segments input:disabled {
  cursor: not-allowed;
}
.segments input:disabled + span {
  color: #73776b;
  background: #eceee4;
  text-decoration: line-through;
}

.style-field {
  margin-bottom: 16px;
}
@media (min-width: 541px) and (max-width: 780px) {
  .style-field {
    margin: 0;
  }
  .style-field .select-wrap {
    margin: 6px 0 0;
  }
}
.viewport {
  min-height: 365px;
  background: #b6c981;
}
@media (min-width: 1280px) and (min-height: 800px) {
  .viewport {
    min-height: clamp(365px, calc(100dvh - 26rem), 72dvh);
  }
  .parameters {
    align-self: start;
  }
}
#stage {
  position: absolute;
  inset: 0;
  margin: 0;
  min-height: 0;
}
.view-tools {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}
.view-tools > div {
  pointer-events: auto;
}
.compass {
  background: #f7f9eee8;
  border-radius: 4px;
}
.approach-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  margin: 14px 0 15px;
  cursor: pointer;
}
.approach-option input {
  width: 17px;
  height: 17px;
  margin: 0;
}
@media (max-width: 780px) {
  .viewport {
    min-height: clamp(260px, 52vw, 390px);
  }
  .approach-option {
    margin: 0;
  }
}
@media (max-width: 540px) {
  .viewport {
    min-height: clamp(240px, 62vw, 320px);
  }
  .approach-option {
    margin: 14px 0 15px;
  }
}

:is(.comparison, .research, .merge-evidence) {
  margin: -12px 0 28px;
  border-block: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.91rem;
}
.comparison[open] {
  padding-bottom: 20px;
}
.comparison p {
  margin: 5px 0 0;
  font-size: 0.89rem;
  color: var(--muted);
}
.comparison #compare-summary {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  margin-block: 12px;
  max-width: 65ch;
}
.comparison form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 22px;
  margin-top: 14px;
}
.comparison label {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 650;
}
.comparison input,
.comparison select,
.comparison output,
.compare-run {
  border-radius: 5px;
  min-height: 42px;
  padding: 8px 11px;
  font: inherit;
}
.comparison input,
.comparison select {
  border: 1px solid var(--line);
  background: #fbfbf4;
  color: var(--ink);
  width: 9rem;
}
.comparison output {
  display: flex;
  align-items: center;
  padding-inline: 0;
  font-variant-numeric: tabular-nums;
}
.compare-run {
  background: #364532;
  color: white;
  font-weight: 650;
}
.compare-run:disabled {
  opacity: 0.65;
  cursor: progress;
}
.compare-run:enabled:hover {
  background: #263722;
}
.comparison progress {
  margin-top: 12px;
  accent-color: #6f844e;
}
#compare-status:empty {
  display: none;
}
#compare-result {
  margin-top: 18px;
  max-width: 46rem;
}
.result-scroll {
  max-width: 100%;
  overflow: auto;
}
.result-scroll table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.87rem;
  font-variant-numeric: tabular-nums;
}
.result-scroll caption {
  text-align: start;
  font-weight: 700;
  padding-bottom: 8px;
}
.result-scroll th,
.result-scroll td {
  text-align: end;
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
}
.result-scroll th:first-child {
  text-align: start;
  position: sticky;
  inset-inline-start: 0;
  background: var(--paper, #f7f7ef);
}
.result-scroll thead th {
  background: #e9ecdf;
  white-space: nowrap;
}
.result-scroll tbody th {
  font-weight: 500;
}
#compare-accounting {
  max-width: 74ch;
}
#compare-context {
  font-size: 0.78rem;
}
@media (max-width: 420px) {
  .comparison form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .comparison input,
  .comparison select {
    width: 100%;
    min-width: 0;
  }
  .result-scroll th,
  .result-scroll td {
    padding: 6px 3px;
  }
}
:is(.comparison, .research, .merge-evidence) summary {
  width: fit-content;
  cursor: pointer;
  padding: 13px 1px;
  font-weight: 650;
}
:is(.comparison, .research, .merge-evidence) ul {
  max-width: 82ch;
  margin: 0;
  padding: 0 0 20px 20px;
}
:is(.comparison, .research, .merge-evidence) li + li {
  margin-top: 12px;
}
:is(.comparison, .research, .merge-evidence) a {
  color: #385f55;
  text-underline-offset: 3px;
}
:is(.comparison, .research, .merge-evidence) li p {
  margin: 0 0 3px;
}
@media (max-width: 540px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .intro h1 {
    font-size: clamp(2.2rem, 9vw, 3.1rem);
  }
  .transport {
    justify-self: start;
  }
  .primary span {
    position: static;
    clip-path: none;
    width: auto;
    height: auto;
  }
  .workspace {
    margin-bottom: 22px;
  }
}

.language {
  display: inline-flex;
  align-items: center;
  margin-inline-start: auto;
  background: #30392f;
  color: #f7f9ed;
  padding: 6px 10px;
  font-size: 0.82rem;
  border: 1px solid #778171;
  border-radius: 4px;
  text-decoration: none;
}
.language:hover {
  background: #465142;
}
.error-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.error-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: #385f55;
  text-underline-offset: 3px;
}
@media (pointer: coarse) {
  .language {
    min-height: 44px;
  }
}
.balance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  align-items: center;
  padding: 0 2px 11px;
}
.balance h2 {
  font-size: 1.24rem;
  margin-bottom: 2px;
}
.balance small {
  color: var(--muted);
  font-size: 0.75rem;
}
.balance table {
  border-collapse: collapse;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.balance th,
.balance td {
  text-align: right;
  padding: 2px 7px;
}
.balance th:first-child {
  text-align: left;
}
.balance thead {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.balance tbody th {
  font-weight: 500;
}
.metric-note {
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
#queue-note {
  display: block;
}
#queue-note > span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .info-button {
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
  }
  .info-button span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .mast-inner {
    gap: 6px;
  }
}

#queue-marker {
  position: absolute;
  background: #623a22;
  color: #fff3dd;
  border: 1px solid #ffdaa4;
  border-radius: 3px;
  padding: 2px 6px;
  font:
    650 11px/1.35 system-ui,
    sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  white-space: nowrap;
}
.result-scroll td small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
}
#compare-fraction {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.project-footer {
  background: #2e2e2e;
  color: #f5f2f3;
  font-family: Arial, Helvetica, sans-serif;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding-block: clamp(24px, 4vw, 48px);
}
.footer-inner img {
  width: 132px;
  height: auto;
}
.footer-credit p {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
}
.footer-credit nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
}
.footer-credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ff70a5;
  font-size: 0.92rem;
  text-underline-offset: 0.2em;
}
.footer-credit a + a::before {
  content: '';
  width: 1px;
  height: 1em;
  background: #776e73;
  margin-right: 12px;
}
.footer-credit a:focus-visible {
  outline: 2px solid #ff70a5;
  outline-offset: 2px;
}
@media (max-width: 500px) {
  .footer-inner {
    display: grid;
    gap: 12px;
  }
  .footer-credit nav {
    column-gap: 8px;
  }
  .footer-credit a + a::before {
    margin-right: 8px;
  }
}

@media (max-width: 380px) {
  .footer-credit nav {
    column-gap: 6px;
  }
  .footer-credit a {
    font-size: 0.8125rem;
  }
  .footer-credit a + a::before {
    margin-right: 6px;
  }
}
.capacity {
  margin-block: 2.5rem;
  padding-block: 1.25rem;
  border-top: 2px solid var(--ink);
}
.capacity > p, .capacity details p {
  max-width: 75ch;
  margin: .55rem 0 1.2rem;
  color: var(--muted);
}
.capacity-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(18rem, 2fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 3.5rem);
}
.capacity-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem .5rem;
}
.capacity-controls > label, .capacity-controls legend {
  font-size: .9rem;
  font-weight: 650;
}
.capacity-controls output { font-variant-numeric: tabular-nums; }
.capacity-controls > input, .capacity-controls fieldset, #capacity-unavailable {
  grid-column: 1 / -1;
}
.capacity-controls > input { width: 100%; margin: 0; height: 2.5rem; }
.capacity-controls fieldset { min-width: 0; margin: .45rem 0 0; padding: 0; border: 0; }
.capacity-controls fieldset label { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .3rem; margin-right: .65rem; }
.capacity-controls fieldset input { margin: 0; }
#capacity-table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-variant-numeric: tabular-nums; }
#capacity-table caption { text-align: left; font-weight: 650; margin: 0 0 .45rem 3px; }
#capacity-table th, #capacity-table td { padding: .6rem .25rem; text-align: center; }
#capacity-table th { font-size: .85rem; }
#capacity-table th:first-child { text-align: left; }
#capacity-table td { color: var(--muted); }
#capacity-table [data-layout] { color: #292b22; font-weight: 700; background: #e1e9d1; }
#capacity-table [data-band="1"] { background: #eee5bd; }
#capacity-table [data-band="2"] { background: #f3ce99; }
#capacity-table [data-band="3"] { background: #ecab73; }
#capacity-table [data-band="4"] { background: #df865c; }
.capacity > .capacity-legend { margin-top: 1rem; font-size: .9rem; }
.capacity summary { cursor: pointer; font-weight: 650; padding-block: .65rem; }
#modellvergleich { border-top: 1px solid var(--line); }
#modellvergleich ul { max-width: 72ch; padding-inline-start: 1.4rem; }
#modellvergleich li + li { margin-top: 1.15rem; }
#modellvergleich li p { margin: .25rem 0; }
@media (max-width: 650px) {
  .capacity-layout { grid-template-columns: minmax(0, 1fr); }
}
.scene-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#stage:not(.has-frame) #scene {
  visibility: hidden;
}

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.map-picker {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
}
.map-picker .segments span { min-width: 6rem; padding-inline: 1rem; }
#map-load-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
#map-load-status:not(:empty) {
  margin-block-end: 12px;
}
.start-guide {
  padding-block-start: 9px;
  border-block-start: 1px solid var(--line);
}
.start-guide summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 650;
}
.start-guide ol {
  margin-block: 8px;
  padding-inline-start: 1.5rem;
  color: var(--muted);
}
#start-guide-dismiss {
  min-height: 44px;
  padding-inline: 8px;
  margin-inline-start: -8px;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.city-lanes .outer-lane { margin-top: 12px; }
.outer-lane :where(.segments) span { min-height: 36px; height: 100%; text-align: center; }
#city-lane-comparison {
  min-block-size: 2lh;
  margin: 0 0 6px;
}
.map-attribution { align-self: flex-end; margin-top: -9px; font-size: .75rem; }
.map-attribution a { color: var(--muted); }
.dispatch > span, .dispatch output {
  font-size: .82rem;
  color: var(--muted);
}
.dispatch {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}
.dispatch-actions {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 6px 0;
}
.dispatch-actions :is(select, button) {
  border: 1px solid #aab19f;
  border-radius: 4px;
  min-height: 40px;
  font-size: .88rem;
  padding-inline: 7px;
}
.dispatch-actions select { background: var(--panel); min-width: 0; flex: 1; }
.dispatch-actions button { background: #354134; color: #fffef0; font-weight: 650; }
.dispatch-actions button:enabled:hover { background: #485843; }
.dispatch-actions :disabled { opacity: .65; cursor: default; }
.dispatch output { font-variant-numeric: tabular-nums; }
#locate-mission { display: block; text-decoration: underline; font-size: .85rem; padding-block: 4px; }
.city-readings h2 { font-size: 1.3rem; }
.city-readings dl { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 8px 0; }
.city-readings dt { font-size: .82rem; color: var(--muted); }
.city-readings dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (min-width: 541px) and (max-width: 780px) {
  .dispatch { grid-column: 1 / -1; margin-top: 0; }
  .dispatch-actions { max-width: 26rem; }
}

#capacity-table small {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.share-scenario { margin-block: 0 1.25rem; }
#share-scenario,
#compare-export {
  min-block-size: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  color: var(--ink);
  background: var(--panel);
  font-weight: 650;
}
#share-scenario:hover, #compare-export:hover { border-color: var(--ink); }
#share-scenario-url {
  display: block;
  inline-size: min(100%, 42rem);
  padding: .45rem .65rem;
  border-radius: .25rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
#share-scenario-status, #compare-export-status { margin: .35rem 0; font-size: .88rem; }
#share-scenario-status:empty, #compare-export-status:empty { margin: 0; }
#compare-export { margin-block-start: .9rem; }

.static-page {
  display: flex;
  flex-direction: column;
}
.static-page > main { flex: 1; }
.static-page > .error-page { padding-block-end: 2rem; }
.throughput-page { max-width: 55rem; margin-block: clamp(2rem, 6vw, 4.5rem); }
.throughput-page h1 {
  margin: 0;
  font: 700 clamp(2.125rem, 7vw, 4.4rem)/1.02 var(--display);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.throughput-page h2 { margin: 1.75rem 0 .5rem; }
.throughput-page h3 { margin: 0; font-size: 1.07rem; }
.throughput-page p { max-width: 72ch; margin: .5rem 0 1rem; }
.throughput-page a { color: inherit; overflow-wrap: anywhere; text-underline-offset: .14em; }
.throughput-findings section {
  padding-block: .8rem;
  border-block-start: 1px solid var(--line);
}
.throughput-findings section:last-child { border-block-end: 1px solid var(--line); }
.throughput-findings p { margin: .35rem 0 0; }

.mast-links {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 16px);
  margin-inline-start: auto;
}
.mast-faq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 44px;
  color: inherit;
  font-size: .85rem;
  font-weight: 650;
  text-underline-offset: .2em;
}
.mast-faq:hover,
.mast-faq[aria-current="page"] { color: #ff9b70; }
.mast-faq[aria-current="page"] { text-decoration-thickness: .15em; }
.masthead :focus-visible { outline-color: #ff9b70; }

.faq-page {
  max-inline-size: 68rem;
  padding-block: 1.5rem 4rem;
}
.faq-detail { max-inline-size: 52rem; }
.faq-photo { margin: 1.5rem 0 2rem; }
.faq-photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.faq-photo figcaption { margin-top: .4rem; font-size: .82rem; color: var(--muted); }
.faq-page a {
  color: inherit;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.faq-page a:hover { text-decoration-thickness: .12em; }
.faq-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}
.faq-breadcrumb li {
  display: flex;
  align-items: baseline;
  min-inline-size: 0;
}
.faq-breadcrumb li + li::before {
  display: inline-block;
  content: '';
  inline-size: .36rem;
  flex-shrink: 0;
  block-size: .36rem;
  margin-inline: .65rem .8rem;
  border-block-start: 1px solid;
  border-inline-end: 1px solid;
  transform: rotate(45deg) translateY(-.05rem);
}
.faq-breadcrumb [aria-current="page"] { font-weight: 650; }
.faq-heading {
  padding-block-end: 1.75rem;
  border-block-end: 1px solid var(--line);
}
.faq-heading h1 {
  margin: 0;
  max-inline-size: 24ch;
  font: 700 3.75rem/1 var(--display);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.faq-heading p {
  max-inline-size: 66ch;
  margin: .85rem 0 0;
  font-size: 1.125rem;
  line-height: 1.52;
}
.faq-directory {
  display: grid;
  gap: 1.5rem;
  margin-block-start: 1.75rem;
}
.faq-topics {
  align-self: start;
  font-size: .9rem;
}
.faq-topics p {
  margin: 0 0 .35rem;
  font-weight: 700;
}
.faq-topics ul, .faq-questions {
  list-style: none;
  margin: 0;
  padding: 0;
}
.faq-topics a {
  display: inline-block;
  padding-block: .35rem;
}
.faq-topic + .faq-topic { margin-block-start: 1.75rem; }
.faq-topic h2, .faq-answer-section h2 {
  margin: 0 0 .5rem;
  font: 700 1.65rem/1.15 var(--display);
}
.faq-questions li {
  padding-block: .9rem;
  border-block-start: 1px solid var(--line);
}
.faq-questions h3 {
  margin: 0;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
}
.faq-questions p {
  max-inline-size: 70ch;
  margin: .35rem 0 0;
  color: var(--muted);
}
.faq-answer-section {
  max-inline-size: 72ch;
  margin-block: 1.75rem 0;
  line-height: 1.62;
}
.faq-answer-section p { margin: .5rem 0 0; }
.faq-answer-section :is(ul, ol) {
  margin: .5rem 0 0;
  padding-inline-start: 1.25rem;
}
.faq-answer-section li + li { margin-block-start: .5rem; }
.faq-table {
  margin-block-start: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--panel);
}
.faq-table table {
  inline-size: 100%;
  border-collapse: collapse;
  text-align: start;
  font-variant-numeric: tabular-nums;
}
.faq-table caption {
  padding: .65rem .75rem;
  color: var(--muted);
  font-size: .9rem;
  text-align: start;
}
.faq-table :is(th, td) {
  padding: .55rem clamp(.45rem, 2vw, .9rem);
  border-block-start: 1px solid var(--line);
  text-align: end;
  line-height: 1.35;
}
.faq-table thead th {
  background: #e9ebdf;
  font-size: .9rem;
}
.faq-table :is(th, td):first-child { text-align: start; }
.faq-table td { white-space: nowrap; }
.faq-table tbody tr:nth-child(even) { background: #f3f4ea; }
.faq-citation {
  margin-inline-start: .15em;
  line-height: 0;
}
.faq-citation a {
  color: #8b3921;
  font-weight: 700;
}
.faq-backlinks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .15rem .55rem;
  margin-inline-start: .35rem;
  font-size: .9em;
}
.faq-detail :is(.faq-citation a, .faq-sources li):target {
  scroll-margin-block-start: 4.5rem;
  background: #ffe0cc;
  outline: .15rem solid #ffe0cc;
}
.faq-experiment {
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid #c4cab8;
  border-radius: .55rem;
  background: #e9ebdf;
}
.faq-experiment-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 1rem 1.25rem;
}
.faq-experiment ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-block-start: .8rem;
  padding: 0;
  list-style: none;
}
.faq-experiment li + li { margin-block-start: 0; }
.faq-experiment li a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  gap: .45rem;
  padding: .4rem .75rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  background: var(--ink);
  color: var(--panel);
  font-weight: 650;
  font-size: .9rem;
  text-decoration: none;
}
.faq-experiment li a:hover { text-decoration: underline; }
.faq-experiment li a span {
  color: #ff9b70;
  font-size: .76em;
}
.faq-experiment figure { margin: 0; }
.faq-experiment img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: .3rem;
}
.faq-experiment figcaption {
  margin-block-start: .45rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.faq-sources, .faq-related {
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--line);
}
@media (min-width: 760px) {
  .faq-directory-with-topics {
    grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
    column-gap: 2.5rem;
  }
}
@media (max-width: 540px) {
  .faq-heading h1 { font-size: 2.5rem; }
  .faq-heading p { font-size: 1.05rem; }
  .faq-experiment-with-image { grid-template-columns: minmax(0, 1fr); }
}
