/* Sustainability. The hero fills the first screen with the 3D town (Without Ugo / With Ugo). Then the
   UN goals Ugo is designed to support, the driver shortage on an LED notice, climate, the kit's life
   and one day of service. Palette: the site's dark violet, plum for autonomous buses, amber (--signal)
   for LEDs and people waiting; the official SDG colours only on the goal numbers. */

.sus-ref { display: inline-block; margin-left: 3px; vertical-align: super; font-size: 10px; line-height: 1; color: var(--accent); text-decoration: none; }
.sus-ref:hover { color: var(--accent-2); }
.sus-sec__lead { margin-top: 18px; max-width: 46ch; }

/* keys used in the scene caption */
.k-driven, .k-ugo, .k-car, .k-pax, .k-smoke { display: inline-block; flex: none; width: 14px; height: 7px; border-radius: 2px; }
.k-driven { background: #e9e2ea; }
.k-ugo { background: #d9a6d0; box-shadow: 0 0 8px rgba(217, 166, 208, .6); }
.k-car { width: 11px; height: 6px; background: #8e8599; }
.k-pax { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.k-smoke { width: 12px; height: 9px; border-radius: 50%; background: radial-gradient(circle, #8f857a 30%, rgba(143, 133, 122, 0) 72%); }

/* a stop on the line: the section marker */
.stop-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--fg); font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.stop-label i { width: 16px; height: 16px; border-radius: 50%; border: 3.5px solid var(--accent); background: var(--bg); }

/* ---------- hero: the title and the town fill the first screen ---------- */
.sus-hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(18px, 2.4vw, 32px)); }
.sus-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 55% at 40% 62%, rgba(116, 31, 106, .2), transparent 70%);
}
.sus-hero .wrap { position: relative; }
.sus-hero__inner {
  display: flex; flex-direction: column; gap: clamp(16px, 2.2vw, 28px);
  height: calc(100vh - var(--header-h) - clamp(18px, 2.4vw, 32px) - 18px);
  height: calc(100svh - var(--header-h) - clamp(18px, 2.4vw, 32px) - 18px);
  min-height: 540px; max-height: 1100px;
}
.sus-hero__head { display: grid; gap: 12px; flex: none; }
@media (min-width: 1000px) { .sus-hero__head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: end; } }
.sus-hero__head .label { margin-bottom: 14px; }
.sus-hero h1 { max-width: 16ch; font-size: clamp(2.1rem, 4.2vw, 4.1rem); line-height: .98; letter-spacing: -.04em; }
.sus-hero .t-lead { max-width: 36ch; font-size: clamp(1rem, 1.3vw, 1.2rem); }
@media (max-width: 599px) { .sus-hero .t-lead { font-size: 15.5px; } }
@media (max-height: 760px) and (min-width: 600px) { .sus-hero h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); } }

.net { position: relative; margin: 0; min-width: 0; flex: 1 1 auto; min-height: 300px; display: flex; flex-direction: column; }
.net__below { padding-top: 14px; padding-bottom: clamp(48px, 6vw, 80px); }

/* the scene: a window onto the town (3D), or the flat drawing of it where WebGL is missing */
.net__stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.net__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .35s var(--ease); }
.net.is-3d .net__stage {
  border-radius: 20px; background: linear-gradient(#a3907a, #b9ae9c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 90px rgba(0, 0, 0, .5);
}
@media (max-width: 599px) { .net.is-3d .net__stage { border-radius: 16px; margin-inline: calc(var(--gutter) * -.5); } }
/* the flat fallback keeps its own proportions */
.sus-hero__inner:has(.net.is-live:not(.is-3d)) { height: auto; max-height: none; }
.net.is-live:not(.is-3d) .net__stage { flex: none; }
.net:not(.is-3d) .net__canvas {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 92%, transparent);
  mask-composite: intersect;
}
.net__nojs { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center; color: var(--fg-2); font-size: 15px; }
.net.is-live .net__nojs { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.net.is-cut .net__canvas { opacity: .08; }

/* on the scene: the switch and the air readout, always at the top so phones see them */
.net__bar { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
.net__bar > * { pointer-events: auto; }
.net__ctrl { background: rgba(14, 12, 17, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.net__ctrl button { padding: 9px 16px; font-size: 14.5px; font-weight: 600; }
.net__air {
  display: flex; gap: 14px; margin: 0; padding: 10px 15px; border-radius: 999px;
  background: rgba(14, 12, 17, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #c9c3cf; font-size: 14px; line-height: 1.25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.net__air[hidden] { display: none; }
.net__air span { display: inline-flex; gap: 6px; white-space: nowrap; }
.net__air b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; transition: color .5s var(--ease); }
.net__air [data-air-q]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.net__air[data-air="smoggy"] [data-air-q] { color: #f0a15c; }
.net__air[data-air="hazy"] [data-air-q] { color: #ecd28f; }
.net__air[data-air="clear"] [data-air-q] { color: #8fe0a6; }
.net__labels { display: none; }
.net.is-3d .net__labels { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.net__labels span {
  position: absolute; left: 0; top: 0; padding: 4px 10px 4px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(14, 12, 17, .8); color: #f3eff5; font-size: 13px; font-weight: 600; transition: opacity .3s var(--ease);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.net__labels span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #a39cab; vertical-align: 1px; }
.net__labels span[data-tone="bad"]::before { background: #f0a15c; }
.net__labels span[data-tone="good"]::before { background: #8fe0a6; }
@media (max-width: 599px) {
  .net__bar { top: 10px; left: 10px; right: 10px; gap: 6px; }
  .net__ctrl button { padding: 8px 12px; font-size: 13.5px; }
  .net__air { padding: 8px 12px; font-size: 13px; gap: 10px; }
  .net__labels span { font-size: 11.5px; padding: 3px 8px; }
}
@media (max-width: 420px) { .net__air-cars { display: none !important; } }

/* on the scene, bottom left: the story, step by step */
.net__caption {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; display: grid; gap: 10px; width: min(560px, calc(100% - 28px));
  padding: 13px 16px 14px; border-radius: 16px; background: rgba(14, 12, 17, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
}
.net__caption[hidden], .net:not(.is-3d) .net__caption { display: none; }
.net__steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.net__steps li {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  color: #a39cab; font-size: 13px; font-weight: 500; transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.net__steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #d6d0dc; font-size: 12px; font-weight: 700; transition: background-color .35s var(--ease), color .35s var(--ease); }
.net__steps li.is-on { color: #d6d0dc; border-color: rgba(217, 166, 208, .45); }
.net__steps li.is-on b { background: var(--accent); color: #2a0b26; }
.net__steps li.is-now { color: #fff; border-color: var(--accent); background: rgba(217, 166, 208, .16); }
.net__caption p { margin: 0; color: #fff; font-size: 16px; line-height: 1.4; font-weight: 500; letter-spacing: -.005em; }
@media (max-width: 599px) {
  .net__caption { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 10px 12px 11px; gap: 8px; }
  .net__steps li { padding: 3px; }
  .net__steps li span { display: none; }
  .net__steps li.is-now { padding-right: 10px; }
  .net__steps li.is-now span { display: inline; }
  .net__caption p { font-size: 14px; }
}
.net__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 13px; }
.net__key { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); }
.net__note { margin-top: 8px; color: var(--fg-3); font-size: 13px; max-width: 86ch; }

.net-ctrl {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(17, 15, 21, .6);
}
.net-ctrl[hidden] { display: none; }
.net-ctrl button {
  padding: 9px 15px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--fg-2); font: inherit; font-size: 14.5px; font-weight: 500;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.net-ctrl button:hover { color: var(--fg); }
.net-ctrl button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ---------- the LED service notice ---------- */
.led-sign {
  position: relative; background: #050407; border: 1px solid var(--line-2); border-radius: 4px;
  padding: 14px; box-shadow: inset 0 0 0 1px #000, inset 0 12px 30px rgba(0, 0, 0, .6);
}
.led-sign canvas { display: block; width: 100%; height: clamp(40px, 6vw, 84px); }
.led-sign::after { content: ""; position: absolute; inset: 14px; pointer-events: none; background: linear-gradient(to bottom, rgba(255, 255, 255, .05), transparent 40%); }
.led-sign__text { margin: 0; color: var(--signal); font-size: 15px; font-weight: 600; }
.led-sign:not(.is-live) canvas { display: none; }
.led-sign.is-live .led-sign__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sus-notice__body { display: grid; gap: 22px; margin-top: clamp(36px, 4.5vw, 60px); }
@media (min-width: 900px) { .sus-notice__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(40px, 6vw, 96px); } .sus-notice__body h2 { grid-row: span 2; } }
.sus-notice__body h2 { max-width: 12ch; }
.sus-notice__fig { color: var(--fg-2); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; max-width: 34ch; }
.sus-notice__fig b { display: block; margin-bottom: 10px; color: var(--signal); font-size: clamp(3.4rem, 7.5vw, 6.4rem); line-height: .92; letter-spacing: -.045em; font-weight: 600; font-variant-numeric: tabular-nums; }
.sus-notice__text { color: var(--fg-2); max-width: 50ch; }
@media (min-width: 900px) { .sus-notice__text { margin-top: 14px; } }

/* ---------- climate ---------- */
.sus-climate h2 { max-width: 20ch; }
.climate { display: grid; gap: 40px; margin-top: clamp(36px, 4.5vw, 56px); }
@media (min-width: 1000px) { .climate { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(48px, 6vw, 96px); align-items: end; } }
.co2 { margin: 0; }
.co2__title { display: grid; gap: 4px; color: var(--fg); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.co2__title span { color: var(--fg-3); font-size: 13.5px; font-weight: 400; letter-spacing: 0; }
.co2__bars { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.co2__bars li { display: grid; grid-template-columns: minmax(78px, 9.5em) minmax(0, 1fr); align-items: center; gap: 16px; }
.co2__mode { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 15px; }
.co2__mode svg { flex: none; width: 34px; height: 17px; fill: currentColor; opacity: .85; }
.co2__bar { display: flex; align-items: center; gap: 12px; min-height: 40px; border-left: 1px solid var(--line-2); }
.co2__bar i { display: block; flex: none; width: calc(var(--v) / 160 * (100% - 64px)); height: 30px; border-radius: 0 4px 4px 0; background: #625a6c; }
.co2__bar b { color: var(--fg-2); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co2__bars .is-bus .co2__mode { color: var(--fg); font-weight: 600; }
.co2__bars .is-bus i { background: var(--accent); box-shadow: 0 0 22px rgba(217, 166, 208, .25); }
.co2__bars .is-bus b { color: var(--fg); font-size: 17px; }
@media (max-width: 560px) {
  .co2__bars { gap: 14px; }
  .co2__bars li { grid-template-columns: 1fr; gap: 6px; }
  .co2__bar { min-height: 32px; }
  .co2__bar i { height: 24px; }
}
.co2__note { margin-top: 18px; color: var(--fg-3); font-size: 13.5px; max-width: 60ch; }
.sus-notes { display: grid; gap: 18px; }
.sus-notes p { color: var(--fg-2); font-size: 15px; max-width: 46ch; }
.sus-notes b, .sus-carbon b { color: var(--fg); font-weight: 600; }

/* ---------- circular: the kit moves from one bus to the next ---------- */
.sus-life h2 { max-width: 20ch; }
.kit { margin: clamp(32px, 4vw, 52px) 0 0; }
.kit__svg { display: block; width: 100%; height: auto; overflow: visible; }
.kit__ground { stroke: var(--line-2); stroke-width: 1.5; }
/* the two buses are side renders of the 3D Ugo model (assets/img/ugo-side.webp), the pod is the roof kit */
.kit__label { fill: var(--fg-2); font-size: 15px; font-weight: 500; }
.kit__retired { fill: var(--fg-3); font-size: 14px; font-weight: 600; text-anchor: middle; transition: opacity .6s var(--ease); }
.kit__bus { transition: opacity .9s var(--ease); }
.kit__bus--a { opacity: .45; }                     /* final state: the first bus has retired */
.kit__path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 7; opacity: .55; }
.kit__pod circle { fill: #f6e3f2; }
.kit__pod .kit__ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.kit__pod { filter: drop-shadow(0 0 10px rgba(217, 166, 208, .55)); }
.kit__marks circle { fill: var(--bg); stroke: var(--fg-2); stroke-width: 1.5; }
.kit__marks text { fill: var(--fg); font-size: 14px; font-weight: 600; text-anchor: middle; }
.kit__marks > g { transition: opacity .5s var(--ease); }
@media (max-width: 640px) {
  .kit__label { font-size: 34px; }
  .kit__retired { font-size: 30px; }
  .kit__marks circle { r: 24px; }
  .kit__marks text { font-size: 28px; transform: translateY(4px); }
}
.kit__steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: kit; display: grid; gap: 14px; }
@media (min-width: 760px) { .kit__steps { grid-template-columns: repeat(2, 1fr); gap: 18px 32px; } }
@media (min-width: 1100px) { .kit__steps { grid-template-columns: repeat(4, 1fr); } }
.kit__steps li { counter-increment: kit; position: relative; padding-left: 36px; color: var(--fg-2); font-size: 15.5px; transition: opacity .5s var(--ease); }
.kit__steps li::before {
  content: counter(kit); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--fg-2); color: var(--fg); font-size: 12.5px; font-weight: 600; display: grid; place-items: center;
}
.kit__steps b { color: var(--fg); font-weight: 600; }
/* played once by kit.js: the kit starts on the first bus, rides the arc, lands on the next */
.kit.is-armed .kit__bus--a { opacity: 1; }
.kit.is-armed .kit__retired { opacity: 0; }
.kit.is-moved .kit__retired { opacity: 1; }
.kit.is-armed .kit__bus--b { opacity: .35; }
.kit.is-armed .kit__marks > g, .kit.is-armed .kit__steps li { opacity: .28; }
.kit.is-armed .kit__marks > g.is-on, .kit.is-armed .kit__steps li.is-on { opacity: 1; }
.kit.is-moved .kit__bus--a { opacity: .45; }
.kit.is-landed .kit__bus--b { opacity: 1; }
.kit.is-updating .kit__ring { animation: kit-update 1.4s var(--ease) 2; }
@keyframes kit-update { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.sus-carbon { margin-top: clamp(36px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 15px; max-width: 82ch; }

/* ---------- the UN goals ---------- */
.sus-sdg-band h2 { max-width: 22ch; }
.sdg { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .sdg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sdg { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sdg__goal {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 18px 20px;
  border: 1px solid var(--line-2); border-radius: var(--r-card, 14px); background: var(--bg-1); overflow: hidden;
}
.sdg__goal::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--sdg); }
.sdg__num { color: var(--sdg); font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sdg__name { margin-top: 4px; color: var(--fg); font-size: 16.5px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.sdg__target { color: var(--fg-3); font-size: 13px; font-weight: 500; }
.sdg__goal p { margin-top: 6px; color: var(--fg-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 639px) {                                /* phones: number beside the text, so five goals stay short */
  .sdg__goal { grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 16px 16px 18px; }
  .sdg__num { grid-row: 1 / span 3; font-size: 2.5rem; }
  .sdg__name { margin-top: 2px; }
  .sdg__goal p { grid-column: 2; margin-top: 4px; font-size: 14.5px; }
}
.sdg__note { margin-top: 18px; color: var(--fg-3); font-size: 13.5px; max-width: 80ch; }

/* ---------- community: one day of service on two lines ---------- */
.sus-community h2 { max-width: 20ch; }
.day { margin: clamp(28px, 3.5vw, 44px) 0 0; }
.day__ctrl { margin-bottom: 22px; }
.day__chart { --h0: 5; --span: 19; display: grid; gap: 14px; }
.day__row { display: grid; gap: 8px; }
@media (min-width: 760px) { .day__row, .day__axis { grid-template-columns: 13rem minmax(0, 1fr); align-items: center; gap: 24px; } .day__axis::before { content: ""; } }
.day__name { display: grid; gap: 2px; margin: 0; }
.day__name b { color: var(--fg); font-size: 16px; font-weight: 600; }
.day__freq { color: var(--fg-2); font-size: 13.5px; }
.day__freq .is-ugo, .day[data-state="today"] .day__freq .is-today { display: inline; }
.day__freq .is-today, .day[data-state="today"] .day__freq .is-ugo { display: none; }
.day[data-state="ugo"] .day__freq .is-ugo { color: var(--accent-2); }
.day__track {
  position: relative; height: 44px; border-radius: 10px; background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px calc(100% / 19)), #120f16;
  border: 1px solid var(--line);
}
.day__band {
  position: absolute; top: 9px; bottom: 9px;
  left: calc((var(--s) - 5) / 19 * 100%); width: calc((var(--e) - var(--s)) / 19 * 100%);
  background-image: linear-gradient(90deg, var(--c, #e9e2ea) 0 var(--mw, 2px), transparent var(--mw, 2px));
  background-size: calc(100% / var(--n)) 100%; background-repeat: repeat-x;
  transition: clip-path .9s var(--ease), opacity .4s var(--ease); clip-path: inset(0 0 0 0);
}
.day__band--ugo { --c: var(--accent); filter: drop-shadow(0 0 4px rgba(217, 166, 208, .5)); }
.day__band--new { --c: #f1eef4; filter: none; }
.day[data-state="ugo"] .day__band--today { opacity: 0; }
.day[data-state="today"] .day__band--ugo { clip-path: inset(0 100% 0 0); opacity: 0; }
.day__tag {
  position: absolute; bottom: calc(100% + 6px); left: calc((var(--s) - 5) / 19 * 100%); width: calc((var(--e) - var(--s)) / 19 * 100%);
  display: flex; justify-content: center; border-bottom: 2px solid var(--accent); color: var(--accent-2); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: opacity .4s var(--ease) .5s;
}
.day[data-state="today"] .day__tag { opacity: 0; transition-delay: 0s; }
@media (max-width: 759px) { .day__tag { justify-content: flex-end; } .day__band--ugo { --mw: 1px; } }   /* the label runs left from the end of the day, never off screen */
.day__row:first-child { margin-top: 26px; }
.day__none {
  position: absolute; inset: 0; display: grid; place-items: center; color: #f0a15c; font-size: 13.5px; font-weight: 600;
  background: repeating-linear-gradient(135deg, rgba(240, 161, 92, .08) 0 8px, transparent 8px 16px); border-radius: 10px;
  transition: opacity .4s var(--ease);
}
.day[data-state="ugo"] .day__none { opacity: 0; }
.day__axis { position: relative; display: grid; color: var(--fg-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.day__axis span { position: absolute; left: calc((var(--h) - 5) / 19 * 100%); transform: translateX(-50%); }
@media (min-width: 760px) {
  .day__axis { height: 18px; }
  .day__axis span { left: calc(13rem + 24px + (100% - 13rem - 24px) * (var(--h) - 5) / 19); }
}
@media (max-width: 759px) { .day__axis { height: 18px; } .day__axis span:last-child { transform: translateX(-100%); } }
.day__who { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .day__who { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; } }
.day__who li { display: grid; gap: 2px; padding: 12px 14px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-1); }
.day__who time { color: var(--signal); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.day__who b { color: var(--fg); font-size: 15px; font-weight: 600; }
.day__who span { color: var(--fg-2); font-size: 14px; }
@media (max-width: 699px) {                                /* phones: one line per rider, not a stack of cards */
  .day__who { gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
  .day__who li { grid-template-columns: 3.3rem minmax(0, 1fr); column-gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .day__who time { grid-row: 1 / span 2; padding-top: 2px; }
}
.day__note { margin-top: 16px; color: var(--fg-3); font-size: 13.5px; max-width: 80ch; }

/* ---------- sources ---------- */
.band--sources { padding-block: clamp(48px, 6vw, 80px); }
.sus-sources__title { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--fg-2); }
.sources { counter-reset: src; display: grid; gap: 10px; }
.sources li { counter-increment: src; position: relative; padding-left: 28px; color: var(--fg-3); font-size: 14px; line-height: 1.5; max-width: 72ch; }
.sources li::before { content: counter(src); position: absolute; left: 0; top: 1px; font-size: 12px; color: var(--accent); }
.sources a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sources a:hover { color: var(--fg); text-decoration-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .net-ctrl button, .kit__bus, .kit__steps li, .kit__marks > g, .day__band, .day__tag, .day__none { transition: none; }
}
