/* Transit demo — dark UI, one green accent. Type: 28 / 16 / 13, weights 600 / 400. */
:root {
  --page: #1f1f1f;
  --frame: #141414;
  --surface: #1c1c1c;
  --card: #242424;
  --input: #2e2e2e;
  --text: #ffffff;
  --text-2: #c4c4c4;
  --muted: #9a9a9a;
  --hairline: rgba(255, 255, 255, 0.12);
  --green: #30b566;
  --on-green: #0d1a12;
  --c0: #30b566;
  --c1: #e3c548;
  --c2: #e8913a;
  --c3: #e0524b;
  --l1: #ffcb05;
  --ttc-bus: #c8102e;
  --yrt: #0067b1;
  --l2: #007a37;
  --k-line1: var(--l1);
  --k-line2: var(--l2);
  --k-ttc-bus: var(--ttc-bus);
  --k-yrt: var(--yrt);
  --r: 12px;
  --fs-l: 28px;
  --fs-m: 16px;
  --fs-s: 13px;
  --font: -apple-system, BlinkMacSystemFont, Inter, Roboto, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--page);
  color: var(--text);
  font: 400 var(--fs-m)/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100vh;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
/* Headings get focus on screen change for screen readers; no ring needed there. */
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Device frame ---------- */
.device {
  position: relative;
  width: 390px;
  height: 844px;
  max-height: 100vh;
  background: var(--frame);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 480px) {
  body { display: block; }
  .device { width: 100%; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
}

/* ---------- Footer (desktop field only; link back to portfolio) ---------- */
.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 10px; padding: 0 16px;
  font-size: var(--fs-s); color: var(--text-2); text-align: center;
}
.site-foot a { color: #fff; font-weight: 600; }
.site-foot a:hover { color: var(--green); }
.site-foot__sep { opacity: .5; }
@media (max-width: 480px) { .site-foot { display: none; } }

.statusbar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  height: 32px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-s); font-weight: 600;
  pointer-events: none;
  background: linear-gradient(rgba(20, 20, 20, 0.85), rgba(20, 20, 20, 0));
}
.statusbar-note { font-weight: 400; color: var(--text-2); }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--frame); }
.screen.is-entering { animation: enter 0.22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.screen.is-entering-back { animation: enter-back 0.22s ease-out; }
@keyframes enter-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Shared bits ---------- */
.topbar {
  flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: 32px 8px 4px; border-bottom: 1px solid var(--hairline);
}
.topbar-title { text-align: center; font-size: var(--fs-m); font-weight: 600; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: none; border-radius: 999px; color: var(--text);
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn-spacer { width: 44px; }
.screen-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 24px; }

.section-title { font-size: var(--fs-m); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: var(--fs-s); font-weight: 600; white-space: nowrap;
}
.pill--line1 { background: var(--l1); color: #1a1a1a; }
.pill--ttc-bus { background: var(--ttc-bus); color: #fff; }
.pill--yrt { background: #fff; color: #005a92; display: inline-flex; align-items: center; gap: 4px; }
.pill--yrt .logo { height: 14px; }
.pill--line2 { background: var(--l2); color: #fff; }
.pill--line4 { background: #8b2a7a; color: #fff; }
.pill--go { background: #3d7a2a; color: #fff; }

/* ---------- The two departure tokens ---------- */
.dep { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.dep-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; position: relative; }
.dep--live .dep-dot { background: var(--green); }
/* Only the soonest live departure in a list pulses, so the eye lands on "next". */
.dep--live:first-child .dep-dot { animation: live-ping 2s ease-out infinite; }
@keyframes live-ping {
  0% { box-shadow: 0 0 0 0 rgba(48, 181, 102, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(48, 181, 102, 0); }
}
.dep-due { color: var(--green); }
.dep--sched .dep-dot { border: 2px solid var(--muted); background: transparent; }
.dep-time { font-size: var(--fs-m); font-variant-numeric: tabular-nums; }
.dep--live .dep-time { font-weight: 600; color: var(--text); }
.dep--sched .dep-time { font-weight: 400; color: var(--text-2); }
.dep-unit { font-weight: 400; }
.dep-kind { font-size: var(--fs-s); }
.dep--live .dep-kind { color: var(--green); font-weight: 600; }
.dep--sched .dep-kind { color: var(--muted); }

.crowd {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 8px; border-radius: 999px;
  background: var(--input); font-size: var(--fs-s); color: var(--text); white-space: nowrap;
}
.crowd-meter { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.crowd-meter i { width: 3px; border-radius: 1px; background: rgba(255, 255, 255, 0.22); }
.crowd-meter i:nth-child(1) { height: 5px; }
.crowd-meter i:nth-child(2) { height: 7px; }
.crowd-meter i:nth-child(3) { height: 10px; }
.crowd-meter i:nth-child(4) { height: 12px; }
.crowd--0 .crowd-meter i.on { background: var(--c0); }
.crowd--1 .crowd-meter i.on { background: var(--c1); }
.crowd--2 .crowd-meter i.on { background: var(--c2); }
.crowd--3 .crowd-meter i.on { background: var(--c3); }

/* ---------- Screen A — Home ---------- */
.map { position: absolute; top: 0; left: 0; right: 0; height: 60%; }
.map svg { width: 100%; height: 100%; display: block; }
.map-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.4); opacity: 0; } }

.sheet {
  position: absolute; left: 0; right: 0; top: 10%; height: 90%;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-radius: var(--r) var(--r) 0 0;
  will-change: transform;
  touch-action: none;
}
.sheet-grab { flex: none; display: flex; justify-content: center; padding: 6px 0 2px; cursor: grab; }
.sheet-grab:active { cursor: grabbing; }
.sheet-handle {
  width: 64px; height: 24px; border: 0; background: none; padding: 0; position: relative; border-radius: 999px;
}
.sheet-handle::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 4px; margin: -2px 0 0 -20px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.35);
}
.sheet-body { flex: 1; overflow: hidden; padding: 4px 16px 32px; overscroll-behavior: contain; touch-action: pan-y; }
.sheet.is-expanded .sheet-body { overflow-y: auto; }

.search {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px;
  background: var(--input); border-radius: 999px; border: 1px solid transparent;
}
.search:focus-within { border-color: var(--green); }
.search-icon { width: 20px; height: 20px; flex: none; color: var(--text-2); }
.search-input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; }
.search-input::placeholder { color: var(--text-2); }

.search-list { margin-top: 8px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.search-option { display: flex; flex-direction: column; padding: 10px 14px; cursor: pointer; }
.search-option + .search-option { border-top: 1px solid var(--hairline); }
.search-option[aria-selected="true"], .search-option:hover { background: var(--input); }
.search-option-name { font-weight: 600; }
.search-option-area { font-size: var(--fs-s); color: var(--text-2); }

.chips { display: flex; gap: 8px; margin: 12px -16px 4px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips > * { flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--hairline); background: transparent; font-size: var(--fs-s);
}
.chip svg { width: 16px; height: 16px; color: var(--text-2); }
.chip:hover { border-color: rgba(255, 255, 255, 0.24); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 10px; }
.legend { display: flex; gap: 12px; font-size: var(--fs-s); color: var(--text-2); }
.legend-item { min-height: 0; gap: 6px; }
.legend .dep-dot { width: 8px; height: 8px; }
.legend .dep-dot { animation: none !important; }
.legend .dep--sched .dep-dot { border-width: 1.5px; }

.stop-list { display: flex; flex-direction: column; gap: 10px; }
.stop-card {
  display: block; padding: 12px 14px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--hairline);
}
.stop-card:hover { border-color: rgba(255, 255, 255, 0.24); }
.stop-card-head { display: flex; align-items: center; gap: 8px; }
.stop-card-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-card-walk { font-size: var(--fs-s); color: var(--text-2); white-space: nowrap; }
.stop-card-chev { width: 18px; height: 18px; flex: none; margin-right: -4px; color: var(--muted); transition: transform 0.15s, color 0.15s; }
.stop-card:hover .stop-card-chev { color: var(--text); transform: translateX(2px); }
.stop-card .deps { padding-top: 6px; border-top: 1px solid var(--hairline); }
.stop-card-dir { font-size: var(--fs-s); color: var(--text-2); margin: 4px 0 8px; }
.stop-card .deps { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Screen B — Plan trip ---------- */
.od {
  display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px;
  background: var(--input); border-radius: var(--r);
}
.od-rail { display: flex; flex-direction: column; align-items: center; height: 44px; }
.od-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--text-2); }
.od-dot--end { background: var(--green); border-color: var(--green); }
.od-line { flex: 1; width: 2px; background: var(--hairline); margin: 3px 0; }
.od-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.od-fields dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-swap { flex: none; }

.row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; border-bottom: 1px solid var(--hairline);
}
.row-value { color: var(--text-2); }
.switch {
  width: 48px; height: 28px; padding: 3px; border-radius: 999px; border: 0;
  background: var(--input); display: flex; transition: background 0.2s;
}
.switch span { width: 22px; height: 22px; border-radius: 50%; background: var(--text-2); transition: transform 0.2s, background 0.2s; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"] span { transform: translateX(20px); background: #fff; }

.arrive { margin-top: 20px; }
.arrive-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.arrive-hint { font-size: var(--fs-s); color: var(--text-2); }

.histo {
  position: relative; height: 156px; margin: 0 -16px;
  overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none;
  background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.histo:active { cursor: grabbing; }
.histo {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.histo:focus-visible { outline-offset: -2px; }
.histo-track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; z-index: 1; will-change: transform; }
.hb { position: relative; width: 18px; flex: none; height: 100%; }
.hb-bar {
  position: absolute; left: 3px; right: 3px; bottom: 30px; border-radius: 3px 3px 1px 1px;
  opacity: 0.55; transition: opacity 0.15s;
}
.hb.is-selected .hb-bar { opacity: 1; }
.hb-label {
  position: absolute; bottom: 6px; left: 50%; font-size: var(--fs-s); color: var(--text-2);
  white-space: nowrap; transform: translateX(-50%);
}
.hb-tick { position: absolute; bottom: 24px; left: 50%; width: 1px; height: 4px; background: var(--hairline); }
.histo-cursor {
  position: absolute; z-index: 0; top: 8px; bottom: 26px; left: 50%; width: 24px; margin-left: -12px;
  border-radius: 6px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Crowding levels: colour + pattern so they read in greyscale */
.lv-0 { background: var(--c0); }
.lv-1 { background: var(--c1); }
.lv-2 { background: repeating-linear-gradient(0deg, var(--c2) 0 3px, rgba(232, 145, 58, 0.45) 3px 5px); }
.lv-3 { background: repeating-linear-gradient(135deg, var(--c3) 0 3px, rgba(20, 20, 20, 0.7) 3px 5px); }

.histo-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 14px; font-size: var(--fs-s); color: var(--text-2); }
.histo-legend li { display: flex; align-items: center; gap: 6px; }
.histo-legend .lv { display: inline-block; width: 10px; height: 14px; border-radius: 2px; }

.result { padding: 14px 16px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r); }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.result-top .crowd { margin-left: 0; }
.result-label { display: block; font-size: var(--fs-s); color: var(--text-2); }
.result-time { display: block; font-size: var(--fs-l); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 10px; }
.result-grid dt { font-size: var(--fs-s); color: var(--text-2); }
.result-grid dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.result-reason { font-size: var(--fs-s); color: var(--text-2); padding-top: 10px; border-top: 1px solid var(--hairline); }

.footer-action { flex: none; padding: 12px 16px 24px; border-top: 1px solid var(--hairline); background: var(--frame); }
.btn-primary {
  width: 100%; height: 48px; border: 0; border-radius: 999px;
  background: var(--green); color: var(--on-green); font-weight: 600;
}
.btn-primary:active { filter: brightness(0.92); }

/* ---------- Screen C — Stop detail ---------- */
.stop-title { font-size: var(--fs-l); font-weight: 600; line-height: 1.2; }
.pills { display: flex; gap: 6px; margin: 10px 0 6px; flex-wrap: wrap; }
.stop-to { font-size: var(--fs-s); color: var(--text-2); }
.stop-station { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--green); font-weight: 600; font-size: var(--fs-s); }
.stop-station[hidden] { display: none; }
.stop-station svg { width: 16px; height: 16px; }

.segmented {
  display: flex; margin: 16px 0 4px; padding: 3px; gap: 3px;
  background: var(--input); border-radius: 999px;
}
.segmented button {
  flex: 1; height: 36px; border: 0; border-radius: 999px; background: transparent;
  font-size: var(--fs-s); color: var(--text-2);
}
.segmented button[aria-pressed="true"] { background: var(--frame); color: var(--text); font-weight: 600; }
.segmented.is-static { background: none; padding: 0; }
.info-row {
  display: flex; gap: 10px; align-items: flex-start; width: 100%;
  padding: 10px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--hairline);
  font-size: var(--fs-s); color: var(--text-2);
}
.info-row svg { flex: none; width: 18px; height: 18px; color: var(--text-2); }
.info-row strong { color: var(--text); font-weight: 600; }

.topbar-title--reveal { opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title--reveal.is-shown { opacity: 1; transform: none; }

.tabs { display: flex; margin: 12px -16px 0; border-bottom: 1px solid var(--hairline); }
.tab {
  flex: 1; height: 44px; border: 0; background: none; color: var(--text-2); font-size: var(--fs-m);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--green); }

#panel-deps { padding-top: 14px; }
.notice {
  display: flex; gap: 12px; padding: 12px 14px; margin-bottom: 12px;
  border-radius: var(--r); background: rgba(0, 103, 177, 0.16); border: 1px solid rgba(80, 160, 230, 0.55);
}
.notice svg { flex: none; width: 32px; height: 24px; margin-top: 2px; }
.notice-title { font-weight: 600; }
.notice-text { font-size: var(--fs-s); color: var(--text); }
.panel-note { font-size: var(--fs-s); color: var(--text-2); }
.panel-note:not(:empty) { margin-bottom: 8px; }
.dep-list { display: flex; flex-direction: column; }
.dep-list .dep { min-height: 48px; border-bottom: 1px solid var(--hairline); }
.dep-list .dep:last-child { border-bottom: 0; }
.dep-empty { color: var(--text-2); font-size: var(--fs-s); padding: 12px 0; }

.next-title { margin: 24px 0 12px; }
.next-stops { position: relative; padding-left: 26px; }
.next-stops::before {
  content: ""; position: absolute; left: 6px; top: 20px; bottom: 10px; width: 2px; background: var(--route, var(--green));
}
.next-stops li { position: relative; min-height: 40px; display: flex; align-items: center; }
.next-stops li::before {
  content: ""; position: absolute; left: -25px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--frame); border: 2px solid var(--route, var(--green));
}
.next-stops li.is-here { gap: 8px; font-weight: 600; }
.next-stops li.is-here::before { left: -27px; width: 14px; height: 14px; background: var(--route, var(--green)); box-shadow: 0 0 0 3px var(--frame); }
.here-tag { font-size: var(--fs-s); font-weight: 400; color: var(--text-2); }
/* the line keeps going past the last stop shown */
.next-stops::after {
  content: ""; position: absolute; left: 6px; bottom: -14px; width: 2px; height: 24px;
  background: linear-gradient(var(--route, var(--green)), transparent);
}

/* ---------- Toast ---------- */
.toast {
  position: absolute; z-index: 30; left: 16px; right: 16px; bottom: 96px;
  padding: 12px 16px; border-radius: var(--r); background: #f2f2f2; color: #141414;
  font-size: var(--fs-s); font-weight: 600; text-align: center;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- Screen D — Saved trips ---------- */
.trips-note { font-size: var(--fs-s); color: var(--text-2); margin-bottom: 14px; }
.trip-list { display: flex; flex-direction: column; gap: 10px; }
.trip-card {
  position: relative; padding: 12px 14px 8px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--hairline);
}
.trip-card.is-new { border-color: var(--green); }
.trip-when { display: flex; align-items: center; gap: 6px; padding-right: 40px; font-size: var(--fs-s); color: var(--text-2); }
.trip-when svg { width: 16px; height: 16px; flex: none; }
.trip-tag {
  margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  background: rgba(48, 181, 102, 0.16); color: var(--green); font-weight: 600; white-space: nowrap;
}
.trip-name { margin-top: 10px; font-size: var(--fs-m); font-weight: 600; }
.trip-from { font-size: var(--fs-s); color: var(--text-2); margin-top: 2px; }
.trip-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline);
  font-size: var(--fs-s); color: var(--text-2); font-variant-numeric: tabular-nums;
}
.trip-plan strong { color: var(--text); font-weight: 600; }
.trip-plan .crowd { margin-left: 0; }
.trip-foot { display: flex; justify-content: flex-end; min-height: 8px; }
.trip-edit { position: absolute; top: 2px; right: 2px; color: var(--text-2); }
.trip-edit:hover { color: var(--text); }
.trip-edit svg { width: 22px; height: 22px; }
.trip-start {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  color: var(--green); font-weight: 600;
}
.trip-start:hover { text-decoration: underline; }
a.btn-primary { display: grid; place-items: center; }

/* ---------- Two-button footer + secondary button ---------- */
.footer-action[hidden] { display: none; }
.footer-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.btn-secondary {
  display: grid; place-items: center; height: 48px; border-radius: 999px;
  border: 1px solid var(--green); color: var(--green); font-weight: 600; background: none;
}
.btn-secondary:hover { background: rgba(48, 181, 102, 0.1); }
.btn-stop { border-color: var(--c3); color: #ff8a84; }
.btn-stop:hover { background: rgba(224, 82, 75, 0.12); }

/* ---------- Screen E — Destination ---------- */
.place-scroll { padding: 0 0 24px; }
.place-hero { position: relative; height: 220px; background: var(--card); }
.place-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 96px; background: linear-gradient(rgba(0, 0, 0, 0.6), transparent); pointer-events: none; }
.place-hero svg, .place-hero img { width: 100%; height: 100%; display: block; }
.place-hero img { object-fit: cover; object-position: 50% 40%; }
.hero-btn {
  position: absolute; top: 36px; left: 12px; z-index: 2;
  background: rgba(20, 20, 20, 0.72); border: 1px solid var(--hairline);
}
.place-body { padding: 16px; }
.place-title { font-size: var(--fs-l); font-weight: 600; line-height: 1.2; }
.place-sub { font-size: var(--fs-s); color: var(--text-2); margin-top: 6px; }
.place-open { font-size: var(--fs-s); color: var(--text-2); margin: 2px 0 14px; }
.is-open { color: var(--green); font-weight: 600; }
.info-sec { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.info-sec:last-child { border-bottom: 0; }
.info-sec-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-m); font-weight: 600; margin-bottom: 10px; }
.info-sec-title svg { width: 20px; height: 20px; color: var(--text-2); }
.kv { display: flex; flex-direction: column; gap: 6px; }
.kv > div, .kv > li { display: flex; justify-content: space-between; gap: 12px; }
.kv dt, .kv li span:first-child { color: var(--text-2); }
.kv dd, .kv li span:last-child { font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border-radius: 999px; background: var(--input); font-size: var(--fs-s); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.photo-grid figure { margin: 0; }
.photo-grid svg { width: 100%; aspect-ratio: 4 / 3; display: block; border-radius: var(--r); }
.photo-grid figcaption { font-size: var(--fs-s); color: var(--text-2); margin-top: 4px; }
.about-text { color: var(--text-2); padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.reviews { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.reviews li { padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--hairline); }
.review-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-s); color: var(--text-2); margin-bottom: 4px; }
.stars { color: var(--c1); letter-spacing: 1px; }
.stars span { color: var(--muted); }
#place-panel .panel-note, #screen-place .panel-note { margin-top: 12px; }

/* ---------- Screen F — Route options ---------- */
.od--plain { margin-bottom: 4px; }
.od-hint { color: var(--text-2); }
.tabs--4 .tab { flex: 1; padding-left: 4px; padding-right: 4px; }
.dep-chips { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.dep-chips-label { font-size: var(--fs-s); color: var(--text-2); padding: 0; margin-bottom: 8px; }
.dep-chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.dep-chip { position: relative; flex: none; }
.dep-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dep-chip span {
  display: grid; place-items: center; min-width: 64px; height: 36px; padding: 0 12px; border-radius: 999px;
  background: var(--input); border: 1px solid var(--hairline); font-variant-numeric: tabular-nums;
}
.dep-chip input:checked + span { background: var(--green); color: var(--on-green); border-color: var(--green); font-weight: 600; }
.dep-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.routes-note { font-size: var(--fs-s); color: var(--text-2); margin: 12px 0 10px; }
.route-list { display: flex; flex-direction: column; gap: 10px; }
.route-card {
  display: block; padding: 12px 14px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--hairline);
}
.route-card:hover { border-color: rgba(255, 255, 255, 0.24); }
.route-tag {
  display: inline-block; margin-bottom: 8px; padding: 1px 8px; border-radius: 999px;
  background: rgba(48, 181, 102, 0.16); color: var(--green); font-size: var(--fs-s); font-weight: 600;
}
.rbar { display: flex; align-items: center; gap: 3px; height: 24px; }
.rbar-walk { flex: none; width: 22px; display: grid; place-items: center; color: var(--text-2); }
.rbar-walk svg { width: 18px; height: 18px; }
.rbar-seg {
  min-width: 30px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-s); font-weight: 600; color: #fff;
}
.rbar-seg--line1 { background: var(--l1); color: #1a1a1a; }
.rbar-seg--line2 { background: var(--l2); }
.rbar-seg--ttc-bus { background: var(--ttc-bus); }
.route-main { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.route-dur { font-size: var(--fs-m); font-weight: 600; }
.route-times { color: var(--text-2); font-variant-numeric: tabular-nums; flex: 1; }
.route-price { font-weight: 600; }
.route-why { font-size: var(--fs-s); color: var(--green); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hairline); }
.route-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: var(--fs-s); color: var(--text-2); }

/* ---------- Screen G — Route detail ---------- */
.route-sum { padding: 14px 16px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r); margin-bottom: 18px; }
.route-sum-start { margin-bottom: 10px; }
.route-sum-start strong { font-size: var(--fs-l); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }
.route-sum-grid { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 0; }
.tl { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tl-item { position: relative; display: flex; gap: 12px; }
.tl-muted { color: var(--text-2); font-size: var(--fs-s); font-weight: 400; }
.tl-pin { flex: none; width: 14px; height: 14px; margin: 4px 5px 0; border-radius: 50%; border: 3px solid var(--text-2); }
.tl-pin--end { border-color: var(--green); background: var(--green); }
.tl-place { font-weight: 600; }
.tl-icon { flex: none; width: 24px; display: grid; justify-items: center; color: var(--text-2); }
.tl-icon svg { width: 20px; height: 20px; }
.tl-walk { padding-left: 0; }
.tl-walk::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: -10px; border-left: 2px dotted rgba(255, 255, 255, 0.3); }
.tl-body { flex: 1; min-width: 0; }
.tl-more { margin-top: 4px; }
.tl-more summary {
  cursor: pointer; font-size: var(--fs-s); color: var(--text-2); min-height: 32px; display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.tl-more summary::-webkit-details-marker { display: none; }
.tl-more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.15s; }
.tl-more[open] summary::before { transform: rotate(-135deg) translateY(-2px); }
.tl-dirs { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 2px; font-size: var(--fs-s); }
.tl-dirs .tl-muted { display: inline-block; min-width: 44px; }
.tl-card {
  flex: 1; min-width: 0; padding: 12px 14px 12px 18px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--hairline); position: relative; overflow: hidden;
}
.tl-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line); }
.tl-ride-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tl-ride-head strong { font-weight: 600; }
.tl-ride-head span:last-child { color: var(--text-2); }
.tl-ride-head span:last-child strong { color: var(--text); }
.tl-stop { display: flex; justify-content: space-between; font-weight: 600; }
.tl-stop time { font-variant-numeric: tabular-nums; }
.tl-board { font-size: var(--fs-s); color: var(--text-2); margin-top: 6px; }
.tl-board strong, .cars-best strong { color: var(--text); font-weight: 600; }
.tl-deps { margin: 10px 0 4px; padding: 8px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.tl-deps-label { font-size: var(--fs-s); color: var(--text-2); margin-bottom: 2px; }
.tl-deps .deps, .nav-deps .deps { display: flex; flex-direction: column; gap: 2px; }
.tl-stops { padding: 2px 0 6px 2px; font-size: var(--fs-s); color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }

/* ---------- Screen H — Navigation ---------- */
.screen-nav { background: #16191b; }
.nav-banner { flex: none; padding: 36px 16px 12px; background: var(--frame); border-bottom: 1px solid var(--hairline); }
.nav-banner-main { display: flex; align-items: flex-start; gap: 12px; }
.nav-banner-main svg { flex: none; width: 32px; height: 32px; }
.nav-banner-main p { font-size: var(--fs-m); font-weight: 600; line-height: 1.35; padding-top: 4px; }
.nav-then { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hairline); font-size: var(--fs-s); color: var(--text-2); }
.nav-then svg { width: 18px; height: 18px; flex: none; }
.nav-map { flex: 1; min-height: 120px; position: relative; overflow: hidden; }
.nav-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nm-ride path { stroke-width: 6; stroke-linecap: round; fill: none; }
.nm-walk { stroke: rgba(255, 255, 255, 0.75); stroke-width: 2.5; stroke-dasharray: 1 6; stroke-linecap: round; fill: none; }
.nm-ride.is-done, .nm-walk.is-done, .np-seg.is-done { opacity: 0.35; }
.ns-item.is-done .ns-title { color: var(--muted); font-weight: 400; }
.ns-item.is-done .ns-icon { opacity: 0.5; }
.nm-labels text { fill: #fff; font-size: 13px; font-weight: 600; paint-order: stroke; stroke: #16191b; stroke-width: 4px; }
.nav-sheet {
  flex: none; max-height: 50%; display: flex; flex-direction: column;
  background: var(--frame); border-top: 1px solid var(--hairline); border-radius: var(--r) var(--r) 0 0;
}
.screen-nav.is-expanded .nav-map { display: none; }
.screen-nav.is-expanded .nav-sheet { flex: 1; max-height: none; }
.nav-handle { align-self: center; margin: 2px 0; }
.nav-sheet-body { overflow-y: auto; padding: 0 16px 14px; overscroll-behavior: contain; }
.nav-sum p { font-variant-numeric: tabular-nums; }
.nav-progress { display: flex; gap: 3px; margin: 8px 0 12px; }
.np-seg { height: 6px; border-radius: 999px; min-width: 10px; background: var(--muted); }
.np-line1 { background: var(--l1); } .np-line2 { background: #1fa055; } .np-ttc-bus { background: var(--ttc-bus); }
.np-walk { background: rgba(255, 255, 255, 0.3); }
.np-seg.is-current { box-shadow: 0 0 0 2px var(--frame), 0 0 0 3px #fff; }
.nav-card { padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--hairline); }
.nav-card-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.nav-card-title svg { width: 20px; height: 20px; color: var(--text-2); }
.nav-deps { padding: 8px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.nav-ride-line { font-size: var(--fs-s); color: var(--text-2); margin-top: 8px; }
.nav-ride-line strong { color: var(--text); font-weight: 600; }
.cars-block { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.cars-title { font-size: var(--fs-s); font-weight: 600; margin-bottom: 8px; }
.cars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; height: 44px; }
.car { position: relative; display: flex; align-items: flex-end; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: visible; }
.car:first-child { border-top-left-radius: 14px; }
.car .lv { display: block; width: 100%; border-radius: 3px; }
.car.is-best { outline: 2px solid #fff; outline-offset: 2px; }
.car.is-best::after { content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -5px; border: 5px solid transparent; border-bottom-color: #fff; }
.cars-best { font-size: var(--fs-s); color: var(--text-2); margin-top: 16px; }
.nav-steps { display: flex; flex-direction: column; margin-top: 12px; }
.ns-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline); }
.ns-item time { font-size: var(--fs-s); color: var(--text-2); font-variant-numeric: tabular-nums; }
.ns-icon { display: grid; place-items: center; color: var(--text-2); }
.ns-icon svg { width: 20px; height: 20px; }
.ns-title { font-weight: 600; }
.ns-item.is-current .ns-title { color: var(--green); }
.nav-foot { background: var(--frame); }

/* ---------- Screen I — Service alerts ---------- */
.chip-badge {
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px;
  display: inline-grid; place-items: center; background: var(--c2); color: #1a1a1a; font-size: var(--fs-s); font-weight: 600; line-height: 1;
}
.alert-agency { margin-top: 0; }
.alert-lines { flex-wrap: wrap; margin: 12px 0 0; padding: 0; overflow: visible; }
.chip--toggle[aria-pressed="true"] { background: var(--text); color: var(--frame); border-color: var(--text); font-weight: 600; }
.alert-group { margin-top: 20px; }
.alert-group-title { margin-bottom: 10px; }
.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert-card {
  --tone: var(--c2);
  position: relative; padding: 12px 14px 4px 18px; border-radius: var(--r); overflow: hidden;
  background: var(--card); border: 1px solid var(--hairline);
}
.alert-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tone); }
.alert--closure { --tone: var(--c3); }
.alert--access { --tone: #5aa9e6; }
.alert--detour { --tone: var(--c1); }
.alert--service { --tone: var(--muted); }
.alert-head { display: flex; align-items: flex-start; gap: 10px; }
.alert-icon { flex: none; color: var(--tone); padding-top: 2px; }
.alert-icon svg, .alert-banner-icon svg { width: 22px; height: 22px; display: block; }
.alert-head-text { flex: 1; min-width: 0; }
.alert-type { font-size: var(--fs-s); color: var(--text-2); }
.alert-title { font-size: var(--fs-m); font-weight: 600; }
.alert-pills { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.alert-where { font-weight: 600; margin-top: 8px; }
.alert-when { font-size: var(--fs-s); color: var(--text-2); }
.alert-sum { color: var(--text-2); margin-top: 8px; }
.alert-more { margin-top: 8px; padding: 8px 0 0 16px; list-style: disc; color: var(--text-2); border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 4px; }
.alert-more[hidden] { display: none; }
.alert-toggle { min-height: 44px; padding: 0; border: 0; background: none; color: var(--green); font-weight: 600; }
.alert-toggle:hover { text-decoration: underline; }
.alert-empty { margin-top: 20px; }

/* Compact "Open Notice" banner used on Stop, Route and Navigation */
.stop-alerts:not(:empty) { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.alert-banner {
  --tone: var(--c2);
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r);
  background: rgba(232, 145, 58, 0.12); border: 1px solid var(--tone);
}
.alert-banner.alert--closure { background: rgba(224, 82, 75, 0.12); }
.alert-banner.alert--access { background: rgba(90, 169, 230, 0.12); }
.alert-banner.alert--detour { background: rgba(227, 197, 72, 0.1); }
.alert-banner.alert--service { background: rgba(255, 255, 255, 0.05); }
.alert-banner-icon { flex: none; color: var(--tone); }
.alert-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.alert-banner-text strong { font-weight: 600; }
.alert-banner-text span { font-size: var(--fs-s); color: var(--text-2); }
.alert-banner-cta { flex: none; font-size: var(--fs-s); font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.tl-card .alert-banner, .nav-card .alert-banner { margin: 0 0 10px; }
.route-alert { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-s); color: var(--c2); }
.route-alert svg { width: 16px; height: 16px; flex: none; }

/* ---------- Plan trip: date picker + preferences ---------- */
.row--btn { width: 100%; border: 0; border-bottom: 1px solid var(--hairline); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.row--btn .row-value { margin-left: auto; }
.row-chev { width: 18px; height: 18px; color: var(--muted); margin-left: 6px; flex: none; }
.peak-tag {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px;
  background: rgba(224, 82, 75, 0.18); color: #ff8a84; font-weight: 600;
}
.peak-tag[hidden] { display: none; }
.result-route { margin-top: 12px; }
.result-route-text { font-size: var(--fs-s); color: var(--text-2); margin-top: 6px; }
.prefs { margin-top: 22px; }
.prefs-title { margin-top: 18px; }
.pref-chips { flex-wrap: wrap; margin: 10px 0 0; padding: 0; overflow: visible; }
.prefs-note:not(:empty) { margin-top: 10px; color: var(--c1); }
.dialog-scrim { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.55); }
.dialog-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; padding: 8px 16px 24px;
  background: var(--surface); border-top: 1px solid var(--hairline); border-radius: var(--r) var(--r) 0 0;
  display: flex; flex-direction: column; gap: 14px; animation: sheet-up 0.22s ease-out;
}
.dialog-sheet[hidden], .dialog-scrim[hidden] { display: none; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog-grab { align-self: center; width: 40px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); }
.days-presets { margin: 0; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day {
  height: 44px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--input);
  font-weight: 600; font-size: var(--fs-s);
}
.day[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.trip-route { margin-top: 10px; }

/* ---------- Insight tour ---------- */
.tour-btn {
  position: absolute; top: 36px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--hairline);
  background: rgba(20, 20, 20, 0.8); font-size: var(--fs-s); font-weight: 600;
}
.tour-btn svg { width: 18px; height: 18px; }
.tour-spot {
  position: absolute; z-index: 40; pointer-events: none; border-radius: var(--r);
  outline: 2px solid var(--green); box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.6);
  transition: left 0.25s, top 0.25s, width 0.25s, height 0.25s;
}
.tour-spot[hidden] { display: none; }
.tour {
  position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 41;
  padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.2);
}
.tour.is-top { bottom: auto; top: 40px; }
.tour-photo { display: block; width: calc(100% + 32px); height: 140px; margin: -16px -16px 14px; object-fit: cover; object-position: 50% 62%; border-radius: var(--r) var(--r) 0 0; }
.tour[hidden] { display: none; }
.tour-tag { font-size: var(--fs-s); color: var(--green); font-weight: 600; display: flex; justify-content: space-between; padding-right: 36px; }
.tour-count { color: var(--text-2); font-weight: 400; }
.tour-title { font-size: var(--fs-m); font-weight: 600; margin-top: 4px; }
.tour-body { color: var(--text-2); margin-top: 6px; }
.tour-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tour-actions .btn-primary, .tour-actions .btn-secondary { height: 44px; }
.tour-x { position: absolute; top: 4px; right: 4px; color: var(--text-2); }

/* ---------- Delays ---------- */
.delay-tag { font-size: var(--fs-s); font-weight: 600; color: var(--c2); }
.delay-note { font-size: var(--fs-s); color: var(--c2); margin-top: 10px; }
.trip-slip {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: var(--r);
  background: rgba(232, 145, 58, 0.12); border: 1px solid var(--c2); font-size: var(--fs-s); color: var(--text-2);
}
.trip-slip svg { width: 18px; height: 18px; flex: none; color: var(--c2); }
.trip-slip strong { color: var(--text); font-weight: 600; }

/* ---------- Screen J — Search ---------- */
.search--link { color: var(--text-2); }
.search--link:hover { border-color: rgba(255, 255, 255, 0.24); }
.search-top { flex: none; display: flex; align-items: center; gap: 12px; padding: 36px 16px 12px; border-bottom: 1px solid var(--hairline); }
.search-top .search { flex: 1; }
.search-input::-webkit-search-cancel-button { filter: invert(1); }
.search-cancel { color: var(--green); font-weight: 600; min-height: 44px; display: grid; place-items: center; }
.sr-group + .sr-group { margin-top: 18px; }
.sr-title { font-size: var(--fs-s); font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.sr-list { display: flex; flex-direction: column; }
.sr-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.sr-row:hover .sr-name { text-decoration: underline; }
.sr-icon { flex: none; width: 60px; display: grid; place-items: center; color: var(--text-2); }
.sr-icon svg { width: 22px; height: 22px; }
.sr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-size: var(--fs-s); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-meta { flex: none; font-size: var(--fs-s); color: var(--text-2); font-variant-numeric: tabular-nums; }
.sr-live { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.sr-live .dep-dot { width: 8px; height: 8px; background: var(--green); }
.sr-empty { margin-top: 8px; }

/* ---------- Mode icons + agency marks ---------- */
.mode-icon { width: 20px; height: 20px; flex: none; display: block; }
.rbar-seg { gap: 3px; }
.rbar-seg .mode-icon { width: 15px; height: 15px; }
.stop-card-mode { color: var(--text-2); display: grid; }
.tl-ride-head .mode-icon, .nav-card .tl-ride-head .mode-icon { color: var(--text-2); }
.nav-banner-main .mode-icon { width: 32px; height: 32px; }
.logo { display: inline-block; height: 16px; width: auto; vertical-align: middle; }
.logo--ttc { border-radius: 2px; }
.pill--go { background: #fff; color: #2f5d1c; display: inline-flex; align-items: center; gap: 4px; }
.pill--go .logo { height: 12px; }
.alert-type { display: flex; align-items: center; gap: 6px; }
.alert-agency button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.alert-agency .logo { height: 14px; }
.fare-dd { display: flex; align-items: center; gap: 6px; }
.fare-dd .logo { height: 14px; }
.notice-logos { flex: none; display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: var(--fs-s); padding-top: 2px; }
.notice-logos .logo { height: 16px; }
.agy { font-weight: 800; font-size: 0.82em; letter-spacing: .02em; opacity: .9; }

/* ---------- Reduced motion: state changes stay, movement goes ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
