:root {
  --bg: #eef2f4;
  --surface: #ffffff;
  --ink: #16222b;
  --muted: #3e505c;
  --line: #b9c6ce;
  --rail: #8d9ca6;
  --sign: #0b5e3f;
  --sign-ink: #ffffff;
  --sign-soft: #dcebe3;
  --yellow: #f2c230;
  --yellow-ink: #241c00;
  --warn-bg: #fff4cf;
  --warn-line: #8a6a00;
  --focus: #0b63c4;
  --car: #e0462f;
  --car-line: #1b1b1b;
  --car-glass: #cfe8f7;
  --l-bg: #ffffff;
  --l-ink: #000000;
  --l-soft: #2c2c2c;
  --l-hi: #0b5e3f;
  --l-line: #000000;
  --l-btn: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10181d;
    --surface: #172229;
    --ink: #ecf1f4;
    --muted: #b3c2cb;
    --line: #3a4a54;
    --rail: #6b7c87;
    --sign: #1d7a53;
    --sign-ink: #ffffff;
    --sign-soft: #183528;
    --yellow: #f2c230;
    --yellow-ink: #241c00;
    --warn-bg: #352b10;
    --warn-line: #f2c230;
    --focus: #8cc0ff;
    --car: #ff6a4d;
    --car-line: #0a0a0a;
    --car-glass: #bfe0f5;
    --l-bg: #000000;
    --l-ink: #ffffff;
    --l-soft: #e6e6e6;
    --l-hi: #ffd23f;
    --l-line: #ffffff;
    --l-btn: #111111;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3, .live-l1, .live-l2, .fb, .btn { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.2; }
a { color: var(--sign); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: #7fd3a9; } }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 60; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: a highway sign */
.top { padding: 20px 0 6px; }
.sign {
  display: inline-block;
  background: var(--sign);
  color: var(--sign-ink);
  border-radius: 14px;
  padding: 12px 22px 14px;
  box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 7px var(--sign-ink);
}
.sign h1 { margin: 0; font-size: clamp(27px, 6vw, 42px); font-weight: 800; letter-spacing: -0.01em; }
.lede { max-width: 62ch; margin: 12px 0 0; font-size: 18px; }

/* the tool */
.tool { padding-top: 14px; padding-bottom: 8px; }
.cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 920px) { .cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: start; } }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend, .stops-h { font-weight: 800; font-size: 20px; margin: 0 0 8px; padding: 0; font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif; }
.stops-sub { font-weight: 400; font-size: 16px; color: var(--muted); font-family: system-ui, sans-serif; }
label { display: block; font-size: 16px; color: var(--ink); }
input[type="text"], input[type="date"], input[type="time"], select {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; min-height: 44px; padding: 7px 10px; max-width: 100%;
}
input[type="text"]:focus, input[type="date"]:focus, input[type="time"]:focus, select:focus { border-color: var(--sign); }
label > input[type="text"], label > input[type="date"], label > input[type="time"], label > select { display: block; width: 100%; margin-top: 3px; }
.leave { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
.leave input { min-width: 0; }
.leave .f-from { grid-column: 1 / -1; }
@media (min-width: 560px) { .leave { grid-template-columns: 1.4fr 1fr 0.9fr; } .leave .f-from { grid-column: auto; } }
.kids { display: grid; gap: 10px 12px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 560px) { .kids { grid-template-columns: 1fr 1fr; } .kids .wide { grid-column: 1 / -1; } }
.hint { color: var(--muted); font-size: 16px; margin: 6px 0 0; }

/* stops: rows joined by a road line through their pictures */
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stops::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 30px; border-left: 4px dotted var(--rail); }
.stop { position: relative; padding: 0 0 16px 58px; }
.s-pic { position: absolute; left: 0; top: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); }
.dest .s-pic { border-color: var(--sign); background: var(--sign-soft); }
.s-pic .pic { width: 30px; height: 30px; }
.emo { font-size: 26px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.s-head { display: flex; gap: 6px; align-items: flex-end; }
.s-name-l { flex: 1; min-width: 0; }
.s-lab { font-weight: 700; }
.s-move { display: flex; gap: 2px; flex: none; }
.ib { width: 40px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.ib:hover:not([disabled]) { background: var(--sign-soft); }
.ib[disabled] { opacity: 0.35; cursor: default; }
@media (max-width: 400px) { .ib { width: 34px; } }
.s-get { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 8px; }
.seg2 { display: inline-flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; flex: none; }
.seg2 label { display: block; position: relative; }
.seg2 input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg2 span { display: block; padding: 9px 12px; min-height: 42px; font-size: 16px; white-space: nowrap; }
.seg2 input:checked + span { background: var(--sign); color: var(--sign-ink); font-weight: 700; }
.seg2 input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.s-drive { width: 7.5em; }
.s-at { width: 8.5em; }
.s-read { color: var(--muted); font-size: 16px; }
.s-stay { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.s-stay label { display: flex; align-items: center; gap: 8px; }
.s-stay select, .s-stay input { width: auto; margin: 0; }
.s-more { margin-top: 6px; }
.s-more summary { cursor: pointer; color: var(--muted); font-size: 16px; min-height: 44px; display: flex; align-items: center; width: fit-content; }
.s-more-in { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.s-more-in label { flex: 1 1 160px; }
.add-row { margin: 2px 0 22px 58px; }

/* buttons */
.btn { font: inherit; font-weight: 700; font-size: 17px; min-height: 46px; padding: 9px 16px; border-radius: 10px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn:hover:not([disabled]) { background: var(--sign-soft); }
.btn.primary { background: var(--sign); border-color: var(--sign); color: var(--sign-ink); }
.btn.primary:hover { background: #094d34; }
.btn.go { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.btn.go:hover:not([disabled]) { background: #e0b020; }
.btn.quiet { border-color: transparent; background: transparent; text-decoration: underline; font-weight: 600; padding-left: 4px; padding-right: 4px; }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: 16px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* the result: the one card */
.out { background: var(--surface); border-radius: 14px; padding: 18px 18px 20px; border: 1.5px solid var(--line); }
.out h2 { margin: 0 0 6px; font-size: 22px; }
.summary { margin: 0 0 10px; font-size: 18px; }
.problems { margin: 0 0 12px; padding: 10px 12px 10px 30px; background: var(--warn-bg); border-radius: 8px; }
.problems li { margin: 2px 0; }
.road-list { list-style: none; margin: 0 0 18px; padding: 0; }
.road-list .cp { display: flex; gap: 12px; align-items: center; }
.cp-pic { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; }
.cp-pic .pic { width: 26px; height: 26px; }
.cp-pic .emo { font-size: 22px; }
.road-list .end .cp-pic { border-color: var(--sign); background: var(--sign-soft); }
.cp-t { display: flex; flex-direction: column; min-width: 0; }
.cp-t b { overflow-wrap: anywhere; }
.cp-t span { color: var(--muted); }
.cp-t .tz { color: var(--ink); font-weight: 600; }
.road-list .leg { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; min-height: 30px; }
.leg-line { width: 42px; align-self: stretch; background: linear-gradient(var(--yellow), var(--yellow)) center / 4px 100% no-repeat; }
.print-opts { border-top: 1.5px solid var(--line); padding-top: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.seg legend { font-size: 18px; width: 100%; }
.seg label { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 44px; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--sign); background: var(--sign-soft); font-weight: 700; }
.seg input { width: 18px; height: 18px; accent-color: var(--sign); }
.opt-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--sign); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.note { background: var(--warn-bg); padding: 10px 12px; border-radius: 8px; margin: 0 0 12px; }
.small-note { margin-top: 12px; }
.bar { background: var(--warn-bg); border: 1.5px solid var(--warn-line); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.bar p { margin: 0 0 8px; }
.bar-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm { margin-top: 14px; }
.more-row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-start; margin-top: 16px; }
.kept summary { cursor: pointer; min-height: 46px; display: flex; align-items: center; font-weight: 700; }
.kept ul { list-style: none; margin: 4px 0 0; padding: 0; }
.kept li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.k-why { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; pointer-events: none; }
.toast .btn { pointer-events: auto; border-color: var(--bg); background: transparent; color: var(--bg); }

/* explanation below the tool */
.info { padding-top: 26px; padding-bottom: 30px; max-width: 760px; }
.info h2 { font-size: 24px; margin: 28px 0 8px; }
.info p { margin: 0 0 12px; }
.faq h3 { font-size: 19px; margin: 20px 0 4px; }
.site-foot { border-top: 1.5px solid var(--line); padding: 18px 0 30px; color: var(--muted); }
.sb-footer p { margin: 0 0 10px; font-size: 16px; overflow-wrap: anywhere; }
.sb-more a, .sb-privacy a { color: inherit; }
.sb-credit a { color: var(--ink); }

/* ---------- live view: high contrast, big words ---------- */
body.live-on { overflow: hidden; }
.live { position: fixed; inset: 0; z-index: 50; background: var(--l-bg); color: var(--l-ink); overflow-y: auto; padding: 12px 16px 32px; display: flex; flex-direction: column; gap: 10px; }
.live-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.live-title { margin: 0; font-size: 20px; text-align: center; flex: 1; }
.lbtn { font: inherit; font-weight: 700; font-size: 17px; min-height: 48px; padding: 8px 14px; border-radius: 10px; border: 3px solid var(--l-line); background: var(--l-btn); color: var(--l-ink); cursor: pointer; }
.live-warn { margin: 0; font-size: 17px; font-weight: 600; border: 2px solid var(--l-line); border-radius: 10px; padding: 8px 12px; }
.live-main { text-align: center; padding: 8px 0 0; }
.live-pic { display: grid; place-items: center; }
.live-pic .lp { width: 92px; height: 92px; color: var(--l-ink); }
.live-pic .emo { font-size: 84px; }
.live-l1 { font-size: clamp(30px, 7.5vw, 56px); font-weight: 800; margin: 6px 0 0; line-height: 1.15; overflow-wrap: anywhere; }
.live-l2 { font-size: clamp(38px, 10vw, 84px); font-weight: 900; margin: 4px 0 0; line-height: 1.05; color: var(--l-hi); overflow-wrap: anywhere; }
.live-l3 { font-size: clamp(22px, 5vw, 34px); font-weight: 700; margin: 10px 0 0; line-height: 1.25; overflow-wrap: anywhere; }
.live.big .live-l1 { font-size: clamp(36px, 10vw, 72px); }
.live.big .live-l2 { font-size: clamp(46px, 13vw, 104px); }
.live.big .live-l3 { font-size: clamp(26px, 7vw, 44px); }
.live.big .live-list { font-size: 28px; }
.live-road { padding: 52px 30px 30px; }
.track { position: relative; height: 34px; background: #2a2f33; border-radius: 6px; border: 3px solid var(--l-line); }
.track::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, #f2c230 0 18px, transparent 18px 32px); }
.done-part { position: absolute; left: 0; bottom: -12px; height: 7px; background: #1ba26a; border-radius: 4px; }
.mk { position: absolute; bottom: 38px; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--l-bg); border: 3px solid var(--l-line); display: grid; place-items: center; }
.mk:has(.mp), .mk:has(.emo) { width: 44px; height: 44px; }
.mk .mp { width: 28px; height: 28px; color: var(--l-ink); }
.mk .emo { font-size: 24px; }
.mk.done { border-color: #1ba26a; }
.mk.skipped { border-style: dashed; }
.mk.up { bottom: 88px; }
.mk.up::after { content: ""; position: absolute; left: 50%; top: 100%; height: 6px; border-left: 3px solid var(--l-line); }
.live-road.two { padding-top: 100px; }
.mk.next, .mk.here { border-width: 5px; border-color: var(--l-hi); }
.car-at { position: absolute; top: -8px; transform: translateX(-50%); width: 60px; }
.car-at .car { width: 60px; height: 38px; display: block; }
@media (prefers-reduced-motion: no-preference) { .car-at, .done-part { transition: left 1.2s ease, width 1.2s ease; } }
.live-list { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 720px; font-size: 22px; }
.live-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 2px solid var(--l-line); }
.live-list .li-pic { width: 46px; height: 46px; border: 3px solid var(--l-line); border-radius: 50%; display: grid; place-items: center; }
.live-list .li-pic .pic { width: 30px; height: 30px; }
.live-list .li-pic .emo { font-size: 24px; }
.live-list .li-name { font-weight: 800; overflow-wrap: break-word; min-width: 0; }
.live-list .li-time { font-weight: 700; text-align: right; }
.live-list .li-time .t { white-space: nowrap; }
.live-list .li-time .d { display: inline-block; }
.live-list .next .li-pic, .live-list .here .li-pic { border-color: var(--l-hi); border-width: 5px; }
.front { max-width: 720px; width: 100%; margin: 8px auto 0; border: 3px solid var(--l-line); border-radius: 12px; }
.front summary { cursor: pointer; font-size: 20px; font-weight: 800; padding: 12px 14px; min-height: 52px; }
.front-btns { padding: 0 12px 14px; display: grid; gap: 12px; }
.frow { display: flex; flex-wrap: wrap; gap: 10px; }
.fgroup { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; border-top: 2px solid var(--l-line); padding-top: 12px; }
.fgroup label { color: var(--l-ink); font-size: 18px; }
.fgroup input, .fgroup select { font-size: 18px; background: var(--l-bg); color: var(--l-ink); border: 2px solid var(--l-line); margin-top: 3px; }
.fgroup label:first-child { flex: 1 1 180px; }
.fgroup label:first-child input, .fgroup label:first-child select { width: 100%; display: block; }
.fb { font-size: 19px; font-weight: 800; min-height: 56px; padding: 10px 16px; border-radius: 12px; border: 3px solid var(--l-line); background: var(--l-btn); color: var(--l-ink); cursor: pointer; flex: 1 1 auto; }
.fb.main { background: #f2c230; color: #1a1400; border-color: #1a1400; flex-basis: 100%; }
.fb.quiet { font-weight: 600; text-decoration: underline; border-style: dashed; }
.live .confirm { max-width: 720px; width: 100%; margin: 0 auto; color: var(--ink); }
.live .toast { bottom: 12px; }

/* ---------- printing ---------- */
.print-root { display: none; }
@page { margin: 0.4in; }
@page fold { size: landscape; margin: 0.4in; }
@media print {
  body { background: #fff; color: #000; }
  body > *:not(#print) { display: none !important; }
  .print-root { display: block !important; color: #111; font-family: ui-rounded, "Arial Rounded MT Bold", "Nunito", "Helvetica Neue", Arial, sans-serif; }
  .sheet { break-after: page; position: relative; overflow: hidden; }
  .sheet:last-child { break-after: auto; }
  .ps, .sc { color: #111; }
  .emo { font-size: 0.5in; }
  .name-line { display: inline-block; width: 1.6in; border-bottom: 2px solid #111; height: 0.3in; vertical-align: bottom; }
  .who { margin: 0; font-size: 22pt; font-weight: 800; line-height: 1.1; }
  .part { font-size: 12pt; font-weight: 600; white-space: nowrap; }
  .sub { margin: 3pt 0 0; font-size: 11pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .is-strip .who { font-size: 20pt; overflow-wrap: anywhere; }
  .how { margin: 4pt 0 0; font-size: 11pt; font-weight: 700; }

  /* strips: two tall strips a page, a cut line between */
  .strip-page { width: 7.4in; height: 10.05in; display: flex; }
  .col { width: 3.55in; flex: none; display: flex; flex-direction: column; padding: 0 0.08in; }
  .col.empty { visibility: hidden; }
  .cut-h { width: 0.2in; flex: none; border-left: 2px dashed #555; margin-left: 0.08in; position: relative; }
  .cut-h .sc { position: absolute; top: 0.1in; left: -0.13in; width: 0.24in; height: 0.24in; background: #fff; transform: rotate(90deg); }
  .col-head { height: 1.25in; flex: none; overflow: hidden; }
  .col-road { flex: none; }
  .is-strip .u { display: flex; align-items: center; position: relative; }
  .is-strip .lane { width: 1.1in; height: 100%; border-left: 3px solid #111; border-right: 3px solid #111; display: grid; place-items: center; flex: none; }
  .is-strip .cp-txt { padding-left: 0.14in; display: flex; flex-direction: column; min-width: 0; flex: 1; overflow-wrap: anywhere; }
  .ring { border: 3px solid #111; border-radius: 50%; background: #fff; display: grid; place-items: center; }
  .ring .ps { width: 62%; height: 62%; }
  .end .ring { border-width: 4px; }
  .box { display: block; border: 2.5px solid #111; border-radius: 4px; background: #fff; }
  .cp-name { font-size: 15pt; font-weight: 800; line-height: 1.1; overflow-wrap: break-word; }
  .cp-name.big { font-size: 19pt; }
  .cp-name.line { display: block; width: 1.9in; border-bottom: 2px solid #111; height: 0.32in; }
  .cp-time, .cp-sub { font-size: 12pt; font-weight: 600; margin-top: 1pt; }
  .cp-time.line { display: block; width: 1.7in; border-bottom: 2px solid #111; height: 0.28in; }
  .cp-tz { font-size: 10.5pt; font-style: italic; }
  .is-strip .day { margin-left: 0.14in; font-size: 12pt; font-weight: 800; border: 2px solid #111; border-radius: 5px; padding: 0 5pt; }
  .is-strip .to { margin-left: 0.14in; font-size: 12pt; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .join { margin: 4pt 0 0; font-size: 11pt; font-weight: 700; border-top: 2px dashed #555; padding-top: 3pt; }

  /* fold-out: landscape pages, the road runs across and joins on glue tabs */
  .is-fold .sheet { page: fold; width: 10.1in; height: 7.3in; }
  .fold-row { position: relative; height: 3.55in; overflow: hidden; }
  .cut-row { position: relative; height: 0.2in; }
  .cut-row::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #555; }
  .cut-row .sc { position: absolute; left: 0.5in; top: -0.02in; width: 0.24in; height: 0.24in; background: #fff; }
  .fold-head { display: flex; justify-content: space-between; gap: 0.3in; height: 0.75in; padding-left: 0.35in; }
  .is-fold .who { font-size: 18pt; }
  .is-fold .sub { white-space: normal; overflow: visible; font-size: 10.5pt; }
  .cont .fold-head { padding-left: 0.6in; }
  .pg { margin: 0 0.15in 0 0; font-size: 12pt; font-weight: 700; white-space: nowrap; }
  .cut-v { position: absolute; left: 0.3in; top: 0; bottom: 0; border-left: 2px dashed #555; }
  .cut-v .sc { position: absolute; top: 0.05in; left: -0.13in; width: 0.24in; height: 0.24in; background: #fff; transform: rotate(90deg); }
  .fold-road { position: absolute; left: 0.3in; right: 0; top: 1.1in; display: flex; }
  .road-row { display: flex; flex: 1; min-width: 0; }
  .is-fold .u { position: relative; flex: none; height: 1.15in; }
  .is-fold .u.fill { flex: 1; }
  .is-fold .lane { position: absolute; inset: 0; border-top: 3px solid #111; border-bottom: 3px solid #111; display: grid; place-items: center; }
  .is-fold .ring { width: 0.95in; height: 0.95in; }
  .is-fold .end .ring { width: 1.05in; height: 1.05in; }
  .is-fold .box { width: 0.46in; height: 0.46in; }
  .is-fold .cp-name { font-size: 14pt; }
  .is-fold .cp-name.big { font-size: 17pt; }
  .is-fold .cp-time, .is-fold .cp-sub { font-size: 11pt; }
  .is-fold .cp-txt { position: absolute; top: 1.22in; left: 0.04in; right: 0.04in; text-align: center; display: flex; flex-direction: column; }
  .is-fold .cp-name.line { width: auto; }
  .is-fold .cp-time.line { width: auto; }
  .is-fold .day { position: absolute; bottom: 1.22in; left: 0; font-size: 12pt; font-weight: 800; border: 2px solid #111; border-radius: 5px; padding: 0 5pt; white-space: nowrap; }
  .is-fold .to { position: absolute; bottom: 1.22in; left: 0.05in; width: 3in; font-size: 12pt; font-weight: 700; }
  .glue { width: 0.6in; flex: none; position: relative; height: 1.15in; }
  .glue .lane { position: absolute; inset: 0; border-top: 3px dotted #777; border-bottom: 3px dotted #777; }
  .glue-t { position: absolute; top: -0.3in; bottom: -1.3in; left: 0; right: 0; border: 2px dotted #777; border-right: 0; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: flex-end; padding-bottom: 0.12in; font-size: 10.5pt; font-weight: 700; color: #444; line-height: 1.15; }
  .glue-t span { text-align: center; }
}
@media screen and (max-width: 480px) { .live-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* stop rows: the break and "Picture and clocks" share a line when they fit; tighter rows on phones */
.s-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 6px; }
.s-foot .s-stay { margin-top: 0; }
.s-foot .s-more { margin-top: 0; }
.s-foot .s-more[open] { flex-basis: 100%; }
@media (max-width: 560px) {
  .stop { padding: 0 0 10px 48px; }
  .stops::before { left: 18px; }
  .s-pic { width: 40px; height: 40px; top: 24px; }
  .s-pic .pic { width: 26px; height: 26px; }
  .add-row { margin-left: 48px; }
  .s-get { margin-top: 6px; gap: 6px 8px; }
  .seg2 span { padding: 9px 9px; }
  .s-drive { width: 6.2em; }
  .s-stay label { gap: 6px; }
}

/* "Picture and clocks" looks like something to open */
.s-more summary { list-style: none; gap: 6px; }
.s-more summary::-webkit-details-marker { display: none; }
.s-more summary::before { content: "▸"; font-size: 15px; width: 1em; }
.s-more[open] summary::before { content: "▾"; }
.live-nudge { border-width: 3px; border-color: var(--l-hi); font-size: 19px; }

/* live view on a phone held sideways: the road and car on the first screen */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .live { padding-top: 6px; gap: 4px; }
  .live-top { position: relative; }
  .lbtn { min-height: 44px; padding: 6px 12px; }
  .live-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .live-warn { font-size: 16px; padding: 4px 10px; }
  .live-pic { display: none; }
  .live-main { padding-top: 0; }
  .live-l1, .live.big .live-l1 { font-size: clamp(22px, 8vh, 40px); margin-top: 0; }
  .live-l2, .live.big .live-l2 { font-size: clamp(28px, 11vh, 52px); }
  .live-l3, .live.big .live-l3 { font-size: clamp(18px, 5.5vh, 26px); margin-top: 4px; }
  .live-road { padding: 50px 30px 20px; }
  .live-road.two { padding-top: 96px; }
}

/* narrow phones: the time goes under the name, so long names keep their words whole */
@media (max-width: 520px) {
  .live-list li { grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; }
  .live-list .li-pic { grid-row: span 2; }
  .live-list .li-time { grid-column: 2; text-align: left; font-weight: 600; }
}
@media (max-width: 360px) {
  .live-list { font-size: 20px; }
  .live-list .li-pic { width: 40px; height: 40px; }
  .live-list .li-pic .pic { width: 26px; height: 26px; }
}
