[hidden]{display:none!important}
:root{
  --plot-label:#aabbb4;
  --plot-grid:#3a4b46;
  --plot-cursor:#f0ede1;
  --plot-green:#83e9ab;
  --plot-orange:#ff8d66;
  --plot-blue:#7dd8f0;
}
:root[data-theme="day"]{
  color-scheme:light;
  --bg:#fff8f4;
  --panel:#fffdfb;
  --deep:#fff7ef;
  --raised:#fffdf9;
  --fg:#130d0c;
  --muted:#525b55;
  --line:#d6dcd4;
  --mint:#0f6336;
  --orange:#a63a15;
  --phase:#d7f2dc;
  --plot-label:#4e5b53;
  --plot-grid:#d5dfd8;
  --plot-cursor:#36322c;
  --plot-green:#186940;
  --plot-orange:#a33b18;
  --plot-blue:#2c5f86;
}
.theme-switch{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:2px;
  border:1px solid #075221;
  border-radius:7px;
  background:#d6f5e0;
}
.theme-switch button{
  min-height:31px;
  min-width:42px;
  padding:4px 9px;
  border:1px solid transparent;
  border-radius:4px;
  color:#130d0c;
  background:transparent;
  font-size:13px;
  font-weight:850;
}
.theme-switch button[aria-pressed="true"]{background:#fffdf9;border-color:#487254}
.theme-switch button:hover{background:#eaf9ed;border-color:#487254}
.theme-switch button:focus-visible{outline-color:#130d0c}
:root[data-theme="day"] button:not(.primary):not(.theme-switch button):hover,
:root[data-theme="day"] select:hover{background:#edf5ee}
:root[data-theme="day"] .stage{background:#edf5f8}
:root[data-theme="day"] .stage select{background:#fffdf9}
:root[data-theme="day"] .stage .fallback{background:#edf5f8}
:root[data-theme="day"] .stage-foot{
  background:#f8fbfbea;
  border-color:#cddbd9;
}
:root[data-theme="day"] .axis.n{background:#a63a15}
:root[data-theme="day"] .axis.e{background:#286845}
:root[data-theme="day"] .readout{background:linear-gradient(155deg,#f0f6ef,#fffdfb)}
:root[data-theme="day"] .transport{background:#f6f8f1}
:root[data-theme="day"] .timeline span{background:#b7cbbd}
:root[data-theme="day"] .timeline span.current{background:#a63a15}
.mast nav a[href="#evidence"]{max-width:12rem}
.stage-foot .stage-right{min-width:0}
.summary-list dd{text-align:right}
.sources a{white-space:normal}
@media(max-width:700px){
  .chart-head label{min-width:0;max-width:62%}
  .chart-head select{min-width:0}
  .stage-bar{flex-wrap:wrap}
  .phase{white-space:normal}
  .stage-foot{flex-wrap:wrap}
  .stage-foot .stage-right{flex-wrap:wrap}
}
@media(max-width:540px){
  .mast .wrap{gap:9px;padding-block:8px}
  .mast .brand{min-width:92px}
  .mast nav{display:grid;grid-template-columns:auto auto;gap:5px 8px}
  .mast nav a[href="#evidence"]{grid-column:1/-1;grid-row:2;justify-self:end}
  .theme-switch button{font-size:12px;padding-inline:7px}
}
@media print{
  @page{size:A4;margin:9mm}
  :root{color-scheme:light;background:white}
  :root[data-theme]{
    --plot-label:#244736;
    --plot-grid:#cdcec7;
    --plot-cursor:#46443f;
    --plot-green:#17683c;
    --plot-orange:#9b391c;
    --plot-blue:#31578c;
  }
  body{font-size:12px}
  .intro{margin-bottom:9px}
  h1{font-size:30px}
  .subline{font-size:12px;margin-bottom:7px}
  .stage canvas{display:none!important}
  :root[data-theme] .stage,:root[data-theme] .readout{background:white}
  :root[data-theme] .stage .fallback{display:block!important;background:white;height:191px;padding:5px}
  .readout,.panel,.sources{padding:8px 10px}
  .metric{padding:2px 0}
  .metric-list{margin-top:4px}
  .metric dd{font-size:13px}
  .chart{height:132px}
  .summary-list{font-size:11px;gap:2px 8px;margin-top:7px}
  .summary-list dt,.summary-list dd{padding:2px 0}
  .bottom,.sources{margin-top:8px}
  .sources{break-inside:avoid}
}
