/* RotaLab 1.2: operational notebook, cobalt accent and quiet surfaces. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  font-size: 15px;
}
.brand-symbol,
.rail-button.active {
  color: #fff;
}
.wordmark span {
  color: #2455d6;
}
.heading {
  align-items: flex-end;
  margin: 12px 0 30px;
}
.heading h1 {
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 650;
  letter-spacing: -1.6px;
}
.heading p {
  font-size: 16px;
  max-width: 560px;
}
.heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 430px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.3px;
  font-weight: 650;
}
.quick-guide {
  padding: 14px 0;
  margin-bottom: 16px;
}
.quick-guide summary {
  cursor: pointer;
  color: #4d5b70;
  font-size: 14px;
}
.quick-guide summary span {
  float: right;
  font-size: 12px;
}
.quick-guide[open] summary {
  margin-bottom: 20px;
}
.guide-heading {
  display: none;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-bottom: 1px solid #d7dce5;
  margin-bottom: 24px;
}
.section-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  font-size: 13px;
  color: #606c80;
  border-bottom: 2px solid transparent;
}
.section-nav a:hover {
  color: #2455d6;
  border-color: #2455d6;
}
.section-nav strong {
  color: #202b3e;
  font-weight: 600;
}
.section-nav a > span {
  color: #2455d6;
  background: #e7edfc;
  padding: 2px 7px;
  font-size: 11px;
}
.metric,
.control-panel,
.map-panel,
.deliveries-panel,
.events-panel {
  border-radius: 5px;
  box-shadow: none;
}
.metric {
  border-top: 2px solid #d5dce8;
}
.metric-value {
  font-variant-numeric: tabular-nums;
}
.primary,
.optimize-button,
.play-button {
  background: #2455d6;
  color: #fff;
}
.primary:hover,
.optimize-button:hover,
.play-button:hover {
  background: #1c43af;
}
.map-plan-button {
  background: #edf2ff;
  border-color: #bdcdf3;
  color: #244caf;
}
.map-plan-button:hover {
  background: #e2eafb;
  border-color: #8ca8e6;
}
.vehicle-card.selected {
  background: #f4f6fb;
}
.metric-title,
.section-label h2,
.vehicle-name,
.small-copy {
  font-size: 14px;
}
.metric-caption,
.vehicle-name small,
.vehicle-data,
.selection-detail,
.engine-label,
.map-subtitle {
  font-size: 13px;
}
.map-onboarding {
  box-shadow: 0 2px 8px #17203310;
}
.laboratory {
  margin: 30px 0;
  background: #fff;
  border: 1px solid #d7dce5;
  border-top: 3px solid #2455d6;
  border-radius: 5px;
  padding: 28px;
}
.laboratory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.laboratory-heading h2 {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 650;
  letter-spacing: -1px;
  margin: 7px 0 10px;
  line-height: 1.2;
}
.laboratory-heading p {
  max-width: 660px;
  margin: 0;
  color: #576579;
  font-size: 15px;
}
.laboratory-heading button {
  flex-shrink: 0;
}
.experiment-empty {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid #e1e5ec;
  padding-top: 24px;
  margin-top: 26px;
}
.experiment-empty:has(.experiment-context) {
  display: block;
}
.experiment-mark {
  font-size: 44px;
  color: #2455d6;
  line-height: 1;
}
.experiment-empty p {
  color: #576579;
  max-width: 800px;
  margin: 6px 0;
}
.experiment-context {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.experiment-context span {
  color: #657187;
}
.experiment-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(220px, 1fr);
  gap: 28px;
}
.experiment-chart {
  min-width: 0;
}
.chart-title {
  font-size: 14px;
  font-weight: 650;
  color: #202b3e !important;
}
.chart-title span {
  font-weight: 400;
  color: #657187;
  margin-left: 10px;
}
.experiment-chart svg {
  display: block;
  width: 100%;
}
.experiment-chart svg text {
  font-family: inherit;
  font-size: 13px;
  fill: #576579;
}
.chart-axis {
  text-align: center;
  font-size: 12px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 14px;
  font-size: 12px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
}
.experiment-method {
  padding: 22px;
  background: #f5f6f9;
}
.experiment-method h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 10px 0 18px;
  letter-spacing: -0.5px;
}
.experiment-method p {
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.experiment-selector {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
  padding-top: 24px;
  border-top: 1px solid #e1e5ec;
  font-size: 14px;
}
.experiment-selector > div {
  display: flex;
  gap: 6px;
}
.experiment-selector button {
  padding: 10px 16px;
  background: #f0f2f6;
  color: #43516a;
  border: 1px solid transparent;
  border-radius: 4px;
}
.experiment-selector button[aria-pressed="true"] {
  background: #2455d6;
  color: white;
}
.experiment-verdict {
  margin-bottom: 22px;
}
.experiment-verdict h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0;
}
.experiment-verdict p {
  font-size: 14px;
}
.laboratory table {
  width: 100%;
  font-size: 14px;
}
.laboratory caption {
  text-align: left;
  color: #657187;
  margin-bottom: 10px;
  font-size: 13px;
}
.laboratory th {
  text-align: left;
}
.laboratory tbody th {
  font-weight: 500;
  padding: 14px 10px;
  white-space: nowrap;
}
.laboratory td {
  font-variant-numeric: tabular-nums;
}
.series-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--series-color);
  margin-right: 10px;
}
.experiment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.experiment-footer p {
  font-size: 12px;
}
.experiment-footer button {
  flex-shrink: 0;
}
@media (max-width: 1000px) {
  .heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .heading-actions {
    max-width: none;
    justify-content: flex-start;
  }
  .experiment-grid {
    grid-template-columns: 1fr;
  }
  .experiment-method {
    border-left: 2px solid #c9d4ee;
  }
  .experiment-method h3 br {
    display: none;
  }
}
@media (max-width: 650px) {
  .heading h1 {
    font-size: 32px;
  }
  .heading p {
    font-size: 15px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions button {
    flex: 1 1 45%;
    font-size: 13px;
  }
  .section-nav {
    gap: 8px 20px;
  }
  .section-nav a {
    font-size: 12px;
  }
  .section-nav a > span {
    display: none;
  }
  .quick-guide summary {
    font-size: 13px;
  }
  .quick-guide summary span {
    display: none;
  }
  .laboratory {
    padding: 20px 16px;
    margin: 22px 0;
  }
  .laboratory-heading,
  .experiment-context,
  .experiment-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .laboratory-heading button,
  .experiment-footer button {
    width: 100%;
  }
  .experiment-empty {
    gap: 14px;
    align-items: flex-start;
  }
  .experiment-selector {
    gap: 12px;
  }
  .experiment-selector button {
    padding: 10px 12px;
    font-size: 13px;
  }
  .experiment-chart svg text {
    font-size: 17px;
  }
  .metric-value {
    font-size: 30px;
  }
  .metric-title,
  .metric-caption {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
