/* =============================================================================================
   FIND THE BUS: the map + schedule page (/map/). Styles for this page only, not shared with any
   other page. Bump the ?cb= number on this file in index.html whenever it changes: the site caches
   static files for a day.

   One theme: the cream, light version, with the site's gold. The map is Google's standard map and
   is not styled here. The page has no sign-up, so there are no form parts at all.
   ============================================================================================= */
:root {
    --gold: #f6d449;
    --gold-bright: #ffd700;
    --on-gold: #000000;
    --font: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --serif: Georgia, "Times New Roman", Times, serif;

    --bg: #fbf9f4;
    --panel: #ffffff;
    --panel-2: #f4f1e9;
    --float: rgba(255, 255, 255, .97);
    --line: #e2ddd0;
    --line-strong: #c9c2b0;
    --text: #131313;
    --soft: #3f3c36;
    --muted: #6a665d;
    --time: #131313;
    --link-line: #e3b800;
    --sel-bg: #131313;
    --sel-text: #ffffff;
    --prog: #e3b800;
    /* "Near you" is Bootstrap's success green #198754 with white words (Kaz, 2026-11-25, after orange, brick red, forest and bright greens): the dots,
       the legend and the bus tags in the bright green; the "Closest to you" flag in a deeper green so it reads on
       white. */
    --good: #198754;
    --near-dot: #198754;
    --good-on-dark: #75b798;
    /* A day with a bus near you (Kaz, 2026-11-25, option A of the chip round): a pale green chip with a green edge
       and number; picked, it turns solid green. */
    --near-soft: #e6f2ec;
    --near-deep: #0f5132;
    --near-map: #198754;
    --quiet: #a6a299;
    --me: #1a73e8;
    --focus: #131313;
    --shadow: 0 10px 28px rgba(40, 30, 0, .18);
    --shadow-soft: 0 4px 14px rgba(40, 30, 0, .12);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.4; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The company logo (logo.png, made from Kaz's black-on-white logo, 2026-11-24; was a stand-in set in type). */
.wm { display: inline-block; line-height: 0; color: var(--text); text-decoration: none; }
.wm img { display: block; width: 104px; height: auto; }
/* The logo laid over the map, on a white plate of its own, with clear space around it as in the artwork. */
.wm--float { position: absolute; z-index: 5; top: 12px; left: 12px; padding: 7px 9px; background: var(--float); box-shadow: var(--shadow-soft); }
.wm--float img { width: 84px; }

.linkish { background: none; border: 0; padding: 0; color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- day picker ----------
   The arrows are black, and turn light under the pointer or the finger. The day's name between them is a button
   that opens the calendar. */
.dn { display: flex; align-items: center; gap: 8px; }
.dn__arrow { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--sel-bg); background: var(--sel-bg); color: var(--sel-text); transition: background .15s, color .15s, border-color .15s; }
.dn__arrow svg { width: 20px; height: 20px; }
@media (hover: hover) { .dn__arrow:hover:not(:disabled) { background: var(--panel); border-color: var(--line-strong); color: var(--text); } }
.dn__arrow:active:not(:disabled) { background: var(--panel); border-color: var(--line-strong); color: var(--text); }
.dn__arrow:disabled { opacity: .22; cursor: default; }
.dn__mid { flex: 0 1 auto; min-width: 0; margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 10px 4px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text); white-space: nowrap; transition: background .15s, border-color .15s; }
.dn__words { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.dn__rel { font-size: 19px; font-weight: 800; }
.dn__date { font-size: 15px; font-weight: 700; color: var(--muted); }
/* The calendar picture says the day's name opens a calendar (Kaz, 2026-12-01). */
.dn__cal { flex: none; width: 20px; height: 20px; margin-left: 2px; color: var(--text); }
.dn__caret { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
@media (hover: hover) { .dn__mid:hover { background: var(--panel); border-color: var(--line-strong); } }
.dn__mid[aria-expanded="true"] { background: var(--panel); border-color: var(--line-strong); }
.dn__mid[aria-expanded="true"] .dn__caret { transform: rotate(180deg); }

/* ---------- the calendar behind the day's name ----------
   Computer and tablet: it drops down under the day's name. Phone: a sheet at the foot of the screen. */
.cal { position: fixed; z-index: 40; padding: 12px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); }
.cal--sheet { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-height: calc(100% - 20px); padding: 14px 14px 12px; border-radius: 20px; box-shadow: 0 -8px 34px rgba(40, 30, 0, .30), var(--shadow); }
.cal__head { display: flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 0 8px 8px; }
.cal__title { flex: 1 1 auto; font-size: 16.5px; font-weight: 800; }
.cal__nav, .cal__close { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); transition: background .15s; }
.cal__nav svg, .cal__close svg { width: 18px; height: 18px; }
.cal__nav:hover:not(:disabled), .cal__close:hover { background: var(--panel-2); }
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__close { display: none; margin-left: 4px; color: var(--muted); }
.cal--sheet .cal__close { display: grid; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dow span { padding: 2px 0 6px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal__grid { gap: 2px; }
.cal__day { position: relative; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font-size: 15.5px; font-weight: 800; line-height: 1.15; transition: background .15s, color .15s, border-color .15s; }
.cal--sheet .cal__day { height: 44px; font-size: 16.5px; }
button.cal__day:hover { border-color: var(--text); }
.cal__day.is-none { color: var(--quiet); }
.cal__day.is-off { color: var(--line-strong); font-weight: 500; opacity: .7; }
/* No today mark in the calendar either (2026-11-25): it fought with the dot, and the days before today are faded. */
.cal__day.is-on { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-text); }
.cal__day.is-on .cal__num { box-shadow: none; }
.cal__dot { display: none; }
.cal__day.is-near { background: var(--near-soft); border-color: var(--near-dot); color: var(--near-deep); }
button.cal__day.is-near:hover { border-color: var(--near-deep); }
.cal__day.is-on.is-near { background: var(--near-dot); border-color: var(--near-dot); color: #fff; }

/* ---------- seven dates in a row ---------- */
/* One row of every day, swiped sideways, seven chips across. The scroll bar is hidden; a soft fade at an edge
   shows there is more that way. */
.week { position: relative; }
.week__days { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.week__days::-webkit-scrollbar { display: none; }
.week__days > .day { flex: 0 0 calc((100% - 36px) / 7); min-width: 0; scroll-snap-align: start; }
.week::before, .week::after { content: ''; position: absolute; top: 0; bottom: 0; width: 18px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.week::before { left: 0; background: linear-gradient(to right, var(--bg), rgba(251, 249, 244, 0)); }
.week::after { right: 0; background: linear-gradient(to left, var(--bg), rgba(251, 249, 244, 0)); }
.week.is-more-left::before, .week.is-more-right::after { opacity: 1; }
.day.is-first .day__dow { color: var(--text); }
/* A mouse can grab the row and drag it. While dragging, the row follows the pointer freely, then snaps on release. */
@media (hover: hover) and (pointer: fine) { .week__days { cursor: grab; } .week__days .day { cursor: pointer; } }
.week.is-dragging .week__days { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.week.is-dragging .week__days .day { cursor: grabbing; pointer-events: none; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; padding: 13px 2px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); transition: background .15s, color .15s, border-color .15s; }
.day:hover { border-color: var(--text); }
.day__dow { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.day__num { font-size: 20px; font-weight: 800; line-height: 1.15; }
.day.is-none .day__num { color: var(--quiet); }
/* No mark for today on the chips (Kaz, 2026-11-25): the underline fought with the "near" dot, and the heading says "Today". */
.day.is-on { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-text); }
.day.is-on .day__dow { color: inherit; opacity: .72; }
.day.is-on .day__num { color: inherit; box-shadow: none; }
/* No dot on the chips since option A (2026-11-25): the chip's own color says a bus is near; the padding makes up its room. */
.day__dot { display: none; }
.day.is-near { background: var(--near-soft); border-color: var(--near-dot); }
.day.is-near:hover { border-color: var(--near-deep); }
.day.is-near .day__dow { color: var(--near-dot); }
.day.is-near .day__num { color: var(--near-deep); }
.day.is-on.is-near { background: var(--near-dot); border-color: var(--near-dot); }
.day.is-on.is-near .day__dow, .day.is-on.is-near .day__num { color: #fff; }
.day.is-on.is-near .day__dow { opacity: .85; }

/* ---------- a stop as a row in a list ---------- */
.sl-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; text-align: left; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); transition: border-color .15s, background .15s; }
.sl-row + .sl-row { margin-top: 8px; }
.sl-row:hover, .sl-row.is-sel { border-color: var(--text); }
/* The picked stop is reversed: black with white words, like the picked date. */
.sl-row.is-sel { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-text); }
.sl-row.is-sel .sl-serving { color: rgba(255, 255, 255, .72); }
.sl-row.is-sel .sl-sub, .sl-row.is-sel.is-near .sl-sub { color: var(--gold); }
.sl-row.is-sel .sl-time { color: var(--sel-text); }
.sl-row.is-sel .sl-flag { color: var(--good-on-dark); }
.sl-bus { flex: none; width: 38px; }
.sl-bus img { display: block; width: 100%; height: auto; }
.sl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sl-flag { align-self: flex-start; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--good); }
/* A job's name can be long ("Peterson's North Branch Mill Santa Day"), so it may run to a second line, and to a third in a narrow rail, before it is cut. */
.sl-name { margin-bottom: 2.5px; font-size: 17px; font-weight: 800; line-height: 1.25; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sl-sub { font-size: 13px; color: var(--muted); overflow: hidden; }
/* The town and the miles are two pieces with a dot between them. Each piece starts with a 14px slot that holds
   the dot; the row of pieces is pulled 14px to the left, so a slot at the start of a line is cut away. That way
   the miles can drop to a second line in a narrow rail without a stray dot. */
.sl-sub__in { display: flex; flex-wrap: wrap; margin-left: -14px; }
.sl-sub__in > span { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-sub__in i { display: inline-block; width: 14px; text-align: center; font-style: normal; }
/* (A stop near the visitor used to get a coloured town line. Kaz, 2026-11-24: plain like the rest.) */
/* The times, with "Serving" over them in the same small type as the town under the name. */
.sl-when { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sl-serving { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sl-time { font-size: 16px; font-weight: 800; color: var(--time); white-space: nowrap; }
/* A stop that has finished serving for the day (Kaz, 2026-11-24): "Done for today" in grey in place of the times, the
   row faded and moved below the stops still to come. Its bus is faded on the map, and its card has no Directions. */
.sl-done { font-size: 14px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.sl-row.is-done:not(.is-sel) { opacity: .62; }
.sl-row.is-sel .sl-done { color: rgba(255, 255, 255, .72); }
.bus-pin.is-done { opacity: .55; }
.bus-pin.is-done.is-sel, .bus-pin.is-done:hover { opacity: 1; }
.sl-empty { padding: 16px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 15px; }
.sl-empty strong { color: var(--text); }

/* ---------- map pieces ---------- */
/* The color behind the map until Google's tiles arrive. */
.map { isolation: isolate; background: #f1f0ec; }
.map__in { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/* Our own zoom buttons, in the page's own look. */
.zoomctl { position: absolute; z-index: 4; display: grid; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.zoomctl button { width: 36px; height: 36px; padding: 0; border: 0; background: var(--panel); color: var(--text); font: 700 22px/1 var(--font); cursor: pointer; }
.zoomctl button + button { border-top: 1px solid var(--line); }
.zoomctl button:hover { background: var(--sel-bg); color: var(--sel-text); }
.zoomctl--topright { top: 12px; right: 12px; }
.zoomctl--bottomright { bottom: 30px; right: 12px; }
/* Said in place of the map when it cannot be drawn (no connection, or Google refused the key for this address).
   Google's own error box is hidden under it; the schedule works the same without the map. */
.map-off { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; padding: 24px 36px; text-align: center; font-size: 15.5px; color: var(--muted); }
.map.is-off .map__in { visibility: hidden; }
.no-map .zoomctl, .no-map .empty-chip { display: none !important; }
/* A bus sits with its wheels on the stop: the box is hung up and to the left of the point it is placed at.
   The drawing is 100 x 100 and is shown at half that, so it stays sharp on a phone's screen. */
.bus-pin { position: absolute; width: 50px; height: 50px; margin: -48px 0 0 -25px; cursor: pointer; font-family: var(--font); transition: opacity .2s; }
.bus-pin:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.bus-pin__bus { display: block; width: 50px; height: 50px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .38)); transform-origin: 50% 92%; transition: transform .16s ease; }
.bus-pin__bus img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; user-select: none; }
.bus-pin:hover .bus-pin__bus { transform: scale(1.12); }
.bus-pin.is-sel .bus-pin__bus { transform: scale(1.16); filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)) drop-shadow(0 0 8px rgba(0, 0, 0, .55)); }
.bus-pin__tag { position: absolute; left: 50%; top: 51px; transform: translateX(-50%); padding: 2px 7px 3px; border-radius: 999px; background: rgba(0, 0, 0, .84); color: #ffffff; font-size: 11.5px; font-weight: 800; line-height: 1.5; white-space: nowrap; pointer-events: none; }
.bus-pin:hover { z-index: 500000 !important; }
/* Every bus within 15 miles of the visitor wears its tag in the green of the "near" dots (Kaz, 2026-11-25).
   Words in a white with a slight yellow tint, with a faint shadow (Kaz, 2026-11-25: black did not read well; shadow toned down). */
.bus-pin.is-near .bus-pin__tag { background: var(--near-map); color: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .84); text-shadow: none; }
/* The visitor, once they have shared where they are: a blue dot in a soft yellow circle (the yellow alone, no line). */
.me-circle { stroke: none; fill: var(--gold); fill-opacity: .34; }
.me-ring { position: absolute; width: 0; height: 0; pointer-events: none; }
.me-ring svg { position: absolute; left: 0; top: 0; overflow: visible; }
.me-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; }
.me-dot span { display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: var(--me); border: 3px solid #ffffff; box-shadow: 0 1px 5px rgba(0, 0, 0, .45); }
/* The card over a bus. It hangs from the point it is placed at: centered, with its tip just above the bus. */
.bubble { position: absolute; z-index: 1; transform: translate(-50%, -100%); margin-top: -54px; padding-bottom: 10px; cursor: default; font-family: var(--font); }
.bubble__box { width: max-content; min-width: 232px; max-width: 292px; padding: 14px 16px; background: var(--panel); color: var(--text); border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; }
.bubble__tip { position: absolute; left: 50%; bottom: 3px; width: 14px; height: 14px; margin-left: -7px; background: var(--panel); border: solid var(--line); border-width: 0 1px 1px 0; transform: rotate(45deg); }
/* The header of the card: the serving day on the left, the serving times on the right, white on black.
   It runs out over the card's own edge so the black meets the rounded corners. */
.pop__when { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: -15px -17px 12px; padding: 11px 17px 10px; border-radius: 14px 14px 0 0; background: var(--sel-bg); color: var(--sel-text); font-size: 16.5px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.pop__name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.pop__addr { font-size: 13px; color: var(--muted); }
.pop__row { display: flex; align-items: flex-start; gap: 10px; }
.pop__row .pop__addr { flex: 1; min-width: 0; }
.pop__mi { flex: none; margin-top: 1px; font-size: 12.5px; line-height: 1.3; color: var(--muted); text-align: right; white-space: nowrap; }
/* One row (Kaz, 2026-12-02, round 6 look 3): a quiet "Remind" at the left, Get Directions (gold, black edge) filling the rest. */
.pop__btns { display: flex; gap: 8px; margin-top: 12px; }
.pop__cal, .pop__dir { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #131313; font-family: inherit; font-size: 14px; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; }
.pop__cal svg, .pop__dir svg { width: 16px; height: 16px; flex: none; }
/* Quiet: soft fill, dark grey words and bell, a light grey edge. */
.pop__cal { flex: none; width: auto; padding: 10px 10px; gap: 5px; font-size: 13px; white-space: nowrap; background: var(--panel-2); color: #58554f; box-shadow: inset 0 0 0 1.5px #9c968a; }
.pop__cal:hover { background: var(--line); }
.pop__dir { flex: 1; min-width: 0; white-space: nowrap; background: var(--gold); color: var(--on-gold) !important; }
.pop__dir:hover { background: var(--gold-bright); }

/* The "Add to Calendar" chooser: a sheet from the bottom on a phone, a small menu under the button on a wider screen. */
.calsheet { position: fixed; inset: 0; z-index: 1000; font-family: var(--font); }
.calsheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
.calsheet__box { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 24px); overflow-y: auto; padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--panel); color: var(--text); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 28px rgba(0, 0, 0, .18); animation: calsheet-up .2s ease; }
@keyframes calsheet-up { from { transform: translateY(100%); } to { transform: none; } }
.calsheet__grab { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--line-strong); }
.calsheet__head { font-size: 18px; font-weight: 800; }
.calsheet__sub { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.calsheet__lbl { margin: 4px 8px 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.calsheet__note { margin: 8px 8px 0; font-size: 12.5px; color: var(--muted); }
.calopt { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.calopt:first-of-type { border-top: 0; }
.calopt:hover, .calopt:focus-visible { background: var(--panel-2); outline: none; }
.calopt__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 800; }
.calopt__ic--apple { background: #fff; color: #e0342b; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; }
.calopt__ic--google { background: #1a73e8; }
.calopt__ic--outlook { background: #0f6cbd; }
.calopt__ic--office { background: #0a4b8c; font-size: 12px; }
.calopt__ic--file { background: #131313; font-size: 12px; }
.calopt__txt { min-width: 0; }
.calopt__t { display: block; font-size: 15px; font-weight: 800; }
.calopt__s { display: block; font-size: 12.5px; color: var(--muted); }
.calopt__tag { margin-left: auto; padding: 3px 7px; border-radius: 999px; background: var(--near-soft); color: var(--near-deep); font-size: 11px; font-weight: 800; white-space: nowrap; }
.calsheet__x { display: block; width: 100%; margin-top: 10px; padding: 11px; border: 0; border-radius: 10px; background: var(--panel-2); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.calsheet--menu .calsheet__scrim { background: transparent; }
.calsheet--menu .calsheet__box { right: auto; bottom: auto; width: 300px; max-height: none; padding: 8px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); animation: none; }
.calsheet--menu .calsheet__grab, .calsheet--menu .calsheet__head, .calsheet--menu .calsheet__x { display: none; }
.calsheet--menu .calsheet__sub { margin: 4px 8px 6px; }

.empty-chip { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 16px 20px; border-radius: 14px; background: var(--float); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 16px; text-align: center; }
.empty-chip button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 15px; font-weight: 800; }
.empty-chip button svg { width: 15px; height: 15px; }
/* Centred by left: 50%, the chip would otherwise only get the right half of the map to fit in, and below about
   510 px its line and button broke onto two rows. Its own width, one row each. */
.empty-chip strong, .empty-chip button { white-space: nowrap; }

/* ---------- the rail layout ----------
   Computer and tablet: the schedule in a rail down the left, the full height of the window, and the map in the rest.
   Phone: the map on top and the schedule underneath it. The map ends where the schedule begins, so Google's logo
   at the foot of the map stays in view. */
html, body { height: 100%; }
body.rail-page { display: flex; overflow: hidden; }
@supports (height: 100dvh) { body.rail-page { height: 100dvh; } }
.rail { position: relative; z-index: 2; flex: none; width: 420px; height: 100%; display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--line); box-shadow: 2px 0 16px rgba(40, 30, 0, .10); }
.rail__head { flex: none; padding: 26px 24px 0; }
.rail__title { margin-top: 20px; font-size: 32px; line-height: 1.06; font-weight: 800; letter-spacing: -.01em; }
.rail__lede { margin-top: 8px; font-size: 15.5px; color: var(--soft); }
.rail__nav { flex: none; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.rail__nav .dn__arrow { width: 40px; height: 40px; }
.rail__nav .week { margin-top: 12px; }
.rail__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 24px; }
.stage { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; }
.stage > .map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.rail-page .wm--float { display: none; }
@media (max-width: 1179px) {
    .rail { width: 348px; }
    .rail__head { padding: 20px 16px 0; }
    .rail__title { margin-top: 16px; font-size: 27px; }
    .rail__lede { font-size: 14.5px; }
    .rail__nav { padding: 16px 14px 14px; }
    .rail__body { padding: 14px 14px 20px; }
    .day__num { font-size: 18px; }
    .sl-row { gap: 10px; padding: 10px 12px; }
    .sl-bus { width: 34px; }
    .sl-name { font-size: 16.5px; }
    .sl-time { font-size: 15px; }
}
@media (max-width: 719px) {
    body.rail-page { flex-direction: column-reverse; }
    /* Map 52%, schedule 48% (Kaz 2026-11-23: a little more room for the map on a phone). */
    .rail { width: 100%; height: 48%; border-right: 0; border-top: 1px solid var(--line-strong); box-shadow: 0 -4px 16px rgba(40, 30, 0, .12); }
    /* The page title is kept for screen readers; on a phone the wordmark sits on the map instead. */
    .rail__head { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .rail__nav { padding: 10px 12px 10px; }
    .rail__nav .week { margin-top: 8px; }
    .rail__body { padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); }
    /* Kaz 2026-11-23: 4px shorter; 2026-11-24: the dot was crowded at the foot, so 4px back under it. */
    .day { padding: 10px 2px 10px; }
    .stage { width: 100%; height: auto; min-height: 0; }
    .rail-page .wm--float { display: inline-flex; }
    /* + and - at the foot of the map, as on a computer, a little bigger for a finger (Kaz 2026-11-23). */
    .zoomctl--bottomright { bottom: 28px; right: 10px; }
    .zoomctl button { width: 40px; height: 40px; }
}

/* ---------- the location question ----------
   Computer and tablet: a card floated at the top right of the map.
   Phone: a card that slides up from the foot of the screen once, over the schedule. */
.ask__text strong { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.ask__text span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.ask__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.ask__yes { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-size: 15.5px; font-weight: 800; }
.ask__yes:hover { background: var(--gold-bright); }
.ask__yes svg { flex: none; width: 19px; height: 19px; }
.ask__yes:disabled { opacity: .6; cursor: default; }
.ask__no { font-size: 14.5px; }

/* Floated at the top right of the map. The card is as wide as its longest line, so the header and the line under
   it each stay on one row, whatever font the device draws them in. */
.ask--float .ask__go { flex-wrap: nowrap; }
/* "Not now" sits in the middle of the room to the left of the button. */
.ask--float .ask__no { margin: 0 auto; }
.ask--float { position: absolute; z-index: 6; top: 14px; right: 14px; width: max-content; max-width: calc(100% - 28px); padding: 16px 18px; border-radius: 16px; background: var(--float); border: 1px solid var(--line); box-shadow: var(--shadow); }
/* On an upright tablet the map is narrow (the window less the 348 rail), so the line under the header is drawn a
   touch smaller there and still fits on its one row. From 775 wide it is the full 13.5. */
.ask--float .ask__text span { font-size: clamp(11.5px, calc((100vw - 410px) / 27), 13.5px); }
/* A longer message (the browser did not share the location) wraps inside the width the question had. */
.ask--float.is-note { width: 384px; }

/* The phone card: it slides up from the foot of the screen once, over the schedule. */
.ask--welcome { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 14px; padding: 18px 18px 8px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 -8px 34px rgba(40, 30, 0, .30), var(--shadow); transform: translateY(calc(100% + 40px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ask--welcome.is-in { transform: none; }
.ask__bus { width: 58px; }
.ask__bus img { display: block; width: 100%; height: auto; }
.ask--welcome .ask__text strong { font-size: 18px; }
.ask--welcome .ask__yes { grid-column: 1 / -1; justify-content: center; min-height: 50px; margin-top: 14px; font-size: 17px; }
.ask--welcome .ask__no { grid-column: 1 / -1; justify-self: center; padding: 12px 16px; font-size: 15px; }

/* The line under the dates once a location is in use: what the red dot means, and the way out. */
.near { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.near i { flex: none; width: 12px; height: 14px; border-radius: 4px; background: var(--near-soft); border: 1.5px solid var(--near-dot); }
.near span { flex: 1 1 auto; min-width: 0; }
.near .linkish { flex: none; font-size: 13px; }

/* The round "where am I" button on the map. It takes the question's place once the question is answered. */
.locbtn { position: absolute; z-index: 5; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); box-shadow: var(--shadow-soft); }
.locbtn svg { width: 22px; height: 22px; }
.locbtn:hover { background: var(--sel-bg); color: var(--sel-text); }
.locbtn.is-on { color: var(--me); }
.locbtn.is-on:hover { background: var(--panel-2); color: var(--me); }
.locbtn.is-busy { opacity: .55; pointer-events: none; }

@media (max-width: 719px) {
    .locbtn { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* =====================================================================================================
   THE APP AND ITS BUS ALERTS (2026-12-01, Specifications/subscriber-bus-alerts/PLAN.md section 9).
   Taken from the approved round 6 prototype (Discovery\subscriber-bus-alerts\phase-2\round-6, core.css):
   the gold bar at the foot of the schedule ("Get the app" on the website, "Turn on alerts" in the app),
   the app sheet, the Alerts steps in the schedule's place, the "tap the map" pointer, the draggable dot,
   the splash, and the "Alerts on" line under the dates.
   Everything above this line is the map page as it was before.
   ===================================================================================================== */

:root { --placeholder: #a39d8f; --field: #ffffff; --warn: #a8501c; --bad: #c62828; --ring: rgba(246, 212, 73, .6); }

input { font: inherit; color: inherit; }

/* The round "where am I" button now sits in the corner box, which also moves it under a card on the map. */
.corner .locbtn { position: static; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* The corner of the map: the round "where am I" button, which takes the question's place once the question is
   answered, and beside it (phase 2) the way back to the sign-up. */
.corner { position: absolute; z-index: 5; top: 14px; right: 14px; display: flex; align-items: center; gap: 8px; }


@media (max-width: 719px) {
    .corner { top: 12px; right: 12px; }
}


/* ---------- the Alerts steps (subscriber.js) ---------- */

/* ---------- form parts (as round 3 had them) ---------- */
.lab { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }

.lab span { font-weight: 400; color: var(--muted); }

.inp { display: block; width: 100%; height: 50px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--field); color: var(--text); font-size: 17px; font-weight: 700; letter-spacing: .01em; }

.inp::placeholder { color: var(--placeholder); font-weight: 400; }

.inp:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }

.inp.is-bad { border-color: var(--bad); }

.err { font-size: 13px; color: var(--bad); margin-top: 5px; }

.err:empty { display: none; }

.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }

.seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 54px; padding: 0; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--field); color: var(--text); font-size: 19px; font-weight: 800; line-height: 1; transition: background .15s, color .15s, border-color .15s; }

.seg button small { margin-top: 3px; font-size: 11px; font-weight: 700; opacity: .7; }

.seg button:hover { border-color: var(--text); }

.seg button.is-on { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 12px 20px; border: 0; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-size: 18px; font-weight: 800; text-decoration: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16); transition: background .15s, transform .05s; }

.btn:hover { background: var(--gold-bright); }

.btn:active { transform: translateY(1px); }

.locate { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 50px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); font-size: 15px; font-weight: 700; white-space: nowrap; transition: border-color .15s, background .15s; }

.locate svg { width: 18px; height: 18px; }

.locate:hover { border-color: var(--text); }

.locate.is-busy { opacity: .5; pointer-events: none; }

.note { font-size: 14px; color: var(--muted); }

.note:empty { display: none; }

.note strong { color: var(--text); }

.fine { font-size: 11.5px; line-height: 1.45; color: var(--muted); }


/* ---------- the sign-up, one question at a time ---------- */
.wz__title { font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.005em; }

.wz__lede { margin-top: 6px; font-size: 14.5px; color: var(--soft); }

.wz[data-step="2"] .wz__lede, .wz[data-step="3"] .wz__lede { display: none; }

.wz__prog { display: flex; align-items: center; gap: 6px; margin: 14px 0 14px; }

.wz__prog span { height: 5px; flex: 1 1 0; border-radius: 3px; background: var(--line); transition: background .2s; }

.wz__prog span.is-on { background: var(--prog); }

.wz__prog em { flex: none; margin-left: 6px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.wz__back { display: inline-block; margin-bottom: 8px; font-size: 13.5px; }

.wz__q h3 { margin: 0; font-size: 18.5px; line-height: 1.2; font-weight: 800; }

/* The pizza emoji stands in for the word in "How far would you go for pizza?": a size bigger than the letters so it
   carries the sentence, and read out as "pizza" (subscriber.js). */
.wz__pizza { font-size: 1.3em; line-height: 1; vertical-align: -0.08em; }

.wz__q p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

.wz__a { margin-top: 12px; }

.wz__where { display: flex; align-items: center; gap: 10px; }

.wz__zip { flex: 0 0 124px; }

.wz__where .locate { flex: 1 1 auto; }

.wz__place { margin-top: 8px; }

/* (.wz__nextup, the "Next one near you" box on the distance step, was removed 2026-12-01.) */

.wz__go { margin-top: 14px; }

.wz__small { margin-top: 12px; }

.fine a { color: inherit; }


.done { text-align: center; }

.done__mark { width: 54px; height: 54px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); }

.done__mark svg { width: 28px; height: 28px; }

.done__title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }

.done__text { font-size: 15.5px; color: var(--text); margin-bottom: 8px; }


/* ---------- on the map ---------- */
/* "Tap the map" pointer, at the foot of the map, shown while the sign-up asks where the visitor is. Taps pass
   straight through it. */
.hint { position: absolute; z-index: 4; left: 50%; bottom: 34px; --hint-x: -50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 12px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 14.5px; font-weight: 800; white-space: nowrap; box-shadow: var(--shadow-soft); pointer-events: none; animation: hint-nudge 2.4s ease-in-out infinite; }

.hint svg { flex: none; width: 20px; height: 20px; }

@keyframes hint-nudge { 0%, 70%, 100% { transform: translate(var(--hint-x, 0), 0); } 80% { transform: translate(var(--hint-x, 0), -5px); } 90% { transform: translate(var(--hint-x, 0), 0); } }

/* A bus outside the visitor's circle is drawn solid, like the ones inside it (Kaz, 2026-12-01). It used to be
   fainter (.bus-pin.is-far); that class is gone from maps.js too. */

/* The visitor's dot while the sign-up is on "where" or "how far": it can be dragged, so it is given a halo and a
   bigger area to take hold of. */
.me-dot.is-drag { z-index: 300000; width: 38px; height: 38px; margin: -19px 0 0 -19px; pointer-events: auto; cursor: grab; touch-action: none; }

.me-dot.is-drag span { margin: 10px; box-shadow: 0 0 0 6px rgba(26, 115, 232, .22), 0 1px 5px rgba(0, 0, 0, .45); }

.me-dot.is-drag.is-held { cursor: grabbing; }


/* ---------- the sign-up in the card on the map (computer and tablet) ----------
   The same corner and the same card as the location question. It is as wide as round 3's sign-up card was, and
   scrolls inside itself when the window is short. */
.ask--float.ask--signup { width: 384px; max-height: calc(100% - 124px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 18px; }

.ask__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); transition: background .15s; }

.ask__close svg { width: 18px; height: 18px; }

.ask__close:hover { background: var(--panel-2); color: var(--text); }

.ask--signup .wz__title, .ask--signup .wz__back { margin-right: 30px; }

.ask--signup .done { padding-top: 6px; }


/* ---------- the sign-up in the schedule's place ----------
   On a phone, always. On a computer and a tablet, on the page whose sign-up lives in the schedule. The wordmark
   stays; the title, the dates and the list give way to the steps, with a way back above them. */
.rail__signup { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 24px; }

.rail.is-signup .rail__title, .rail.is-signup .rail__lede, .rail.is-signup .rail__nav, .rail.is-signup .rail__body { display: none; }

.signup__back { display: inline-block; margin-bottom: 16px; font-size: 14px; }


/* The gold bar at the foot of the schedule: the offer of texts, always in view. Once they are signed up it says so. */
.textsbar { flex: none; display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 20px 13px 24px; border: 0; border-top: 1px solid var(--line-strong); background: var(--gold); color: var(--on-gold); text-align: left; transition: background .15s; }

.textsbar:hover { background: var(--gold-bright); }

.textsbar__bus { flex: none; width: 46px; }

.textsbar__bus img { display: block; width: 100%; height: auto; }

.textsbar__words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.textsbar__words strong { font-size: 15.5px; font-weight: 800; line-height: 1.2; }

.textsbar__words span { margin-top: 2px; font-size: 12.5px; line-height: 1.3; opacity: .82; }

.textsbar__go { display: inline-flex; align-items: center; gap: 7px; border: 0; font-family: inherit; line-height: 1.1; cursor: pointer; flex: none; padding: 9px 13px; border-radius: 9px; background: var(--sel-bg); color: var(--sel-text); font-size: 14.5px; font-weight: 800; white-space: nowrap; }

/* Round 5: the bar holds buttons. "Get the app" in black. */
.textsbar:hover { background: var(--gold); }

.textsbar__btns { flex: none; display: flex; gap: 8px; }

.textsbar__go svg { flex: none; width: 18px; height: 18px; }

.textsbar__go:hover { background: #333; }

.textsbar__go:focus-visible { outline: 3px solid var(--sel-bg); outline-offset: 2px; }


/* The line under the dates once they are signed up. */
.near__ok { flex: none; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--good); color: #ffffff; }

.near__ok svg { width: 10px; height: 10px; }


@media (max-width: 1179px) {
    .rail__signup { padding: 14px 16px 20px; }
    .textsbar { padding: 12px 14px 12px 16px; gap: 10px; }
    .textsbar__words span { display: none; }
    .wz__title { font-size: 21px; }
}

@media (max-width: 719px) {
    /* The steps take the schedule's place under the map. The panel is only as tall as the step needs, so the first
       two steps leave more of the map in view for tapping; the map ends where the panel begins. */
    .rail.is-signup { height: auto; max-height: 70%; }
    .rail__signup { padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); }
    .signup__back { margin-bottom: 10px; }
    .rail__signup .wz__title { font-size: 20px; }
    .rail__signup .wz__lede { display: none; }
    .rail__signup .wz[data-step="2"] .wz__head, .rail__signup .wz[data-step="3"] .wz__head { display: none; }
    .rail__signup .wz[data-step="2"] .wz__prog, .rail__signup .wz[data-step="3"] .wz__prog { margin-top: 0; }
    .wz__prog { margin: 10px 0 10px; }
    .wz__q p { font-size: 14px; }
    .textsbar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 14px; }
    .textsbar__words strong { font-size: 15px; }
    /* Set to the left, so it keeps clear of the + and - at the right. */
    .hint { bottom: 26px; left: 10px; --hint-x: 0; transform: none; font-size: 13.5px; }
}

.wz--app .err[data-f="err-how"]:not(:empty) { margin-top: 10px; }

.btn svg { flex: none; width: 22px; height: 22px; }


/* The splash: what the app shows while it opens. The icon's yellow (Kaz, 2026-12-01; it was black with the logo).
   KEEP THE YELLOW EQUAL TO manifest.json's background_color and to the icon's own yellow (#F6EB15): the phone
   draws its own opening screen from those two first, and any difference shows as a flash.
   index.html carries a copy of these rules in its head, so the splash is drawn with the page's first paint,
   before this file has arrived. CHANGE BOTH TOGETHER.
   The picture (Kaz, 2026-12-02) is splash.png, his bus over the logo, in the middle of the screen, rising in once
   it has loaded ("is-in"). It is NOT lined up with the icon on the phone's own screen: every phone draws that
   icon at its own size, so the yellow carries over and the picture arrives as a second beat.
   The art sits a little left of and below the middle of the 512 px file: the "translate" puts the art itself,
   not the file, on the middle of the screen. Measure again if the file is replaced. */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #F6EB15; transition: opacity .4s; }

.splash img { width: min(300px, 80vw); height: auto; aspect-ratio: 1; opacity: 0; transform: translate(.88%, -.98%); }

.splash img.is-in { opacity: 1; animation: splash-rise .6s cubic-bezier(.2, .8, .2, 1); }

@keyframes splash-rise { from { opacity: 0; transform: translate(.88%, calc(-.98% + 28px)); } }

@media (prefers-reduced-motion: reduce) { .splash img.is-in { animation: none; } }

.splash.is-gone { opacity: 0; pointer-events: none; }


/* "Get the app": a sheet over the page, from the foot of the screen on a phone. */
.appsheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(19, 19, 19, .45); }

.appsheet[hidden] { display: none; }

.appsheet__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100% - 8px); overflow-y: auto; padding: 24px 24px 20px; border-radius: 16px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }

.appsheet__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }

.appsheet__x:hover { background: var(--panel-2); }

.appsheet__x svg { width: 18px; height: 18px; }

.appsheet__head { display: flex; align-items: center; gap: 14px; margin: 0 34px 16px 0; }

.appsheet__head img { flex: none; width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

/* The title stays on ONE row: no wrapping, sized to fit the usual fonts, and maps.js steps it down when a wider
   font (a computer that has Gotham installed) still does not fit. */
.appsheet__head > div { flex: 1 1 auto; min-width: 0; }

.appsheet__head h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; }

.appsheet__head span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }

.appsheet__why { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }

.appsheet__why li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.35; }

.appsheet__why li svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--text); }

.appsheet__why strong { color: var(--text); }

.appsheet__how { margin: 0 0 8px; font-size: 14px; font-weight: 800; }

.appsheet__steps { list-style: none; margin: 0 0 16px; padding: 12px 14px; display: grid; gap: 10px; border-radius: 10px; background: var(--bg); }

.appsheet__steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }

.appsheet__steps b { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--sel-bg); color: var(--sel-text); font-size: 13px; }

.appsheet__steps svg { width: 20px; height: 20px; vertical-align: -4px; color: #1a73e8; }

/* The line under the iPhone steps, for a Safari that keeps Share inside a menu (see maps.js). */
.appsheet__alt { margin: -6px 0 16px; font-size: 13px; line-height: 1.4; color: var(--muted); }

.appsheet__alt svg { width: 16px; height: 16px; vertical-align: -3px; color: #1a73e8; }

.appsheet__small { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* THE INSTALL IS RUNNING (2026-12-02): the yellow button they pressed goes pale and says "Installing" beside a
   turning ring, and the gold bar's black button says the same. The ring only turns: a page is never told how far
   an install has got. With motion turned off on the device the ring stands still and the word carries it. */
.btn.is-busy, .btn.is-busy:hover { background: #f3e7a6; box-shadow: none; cursor: default; }

.btn.is-busy:active { transform: none; }

.spin { flex: none; box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .18); border-top-color: var(--on-gold); animation: spin-turn .8s linear infinite; }

.textsbar__go .spin { width: 16px; height: 16px; border-width: 2.5px; border-color: rgba(255, 255, 255, .3); border-top-color: var(--sel-text); }

@keyframes spin-turn { to { transform: rotate(360deg); } }

@media (max-width: 719px) {
    .appsheet { align-items: flex-end; padding: 0; }
    .appsheet__box { max-width: none; border-radius: 16px 16px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    .appsheet__head { gap: 12px; margin-right: 28px; }
    .appsheet__head img { width: 52px; height: 52px; border-radius: 12px; }
    .appsheet__head h2 { font-size: clamp(14px, 4.5vw, 19px); }
    .textsbar__btns { flex-direction: column; gap: 6px; }
    .textsbar__go { padding: 8px 11px; font-size: 13.5px; }
}


/* ---------- ROUND 6: one way in. The app, notifications, a circle you can move, and a number for later ---------- */
.wz__prog span[hidden] { display: none; }

/* "You can move your circle": said on the steps and on the Alerts screen, so nobody thinks the first answer is final. */
.wz__move { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: 13.5px; line-height: 1.4; color: var(--soft); text-align: left; }

.wz__move svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--text); }

.wz__move strong { color: var(--text); }

.wz__place { margin-top: 10px; }

/* What turning notifications on will do, in one sentence, before the device asks. */
.wz__sum { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); font-size: 15px; line-height: 1.4; color: var(--soft); }

.wz__sum svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--text); }

.wz__sum strong { color: var(--text); }

.done__links { margin-top: 12px; font-size: 14.5px; }

.done__links--off { margin-top: 14px; font-size: 13.5px; }

.done__links--off .linkish { font-weight: 400; color: var(--muted); text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; }

/* The extra, after the alerts are on: a mobile number for texts that may come one day. */
.later { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: left; }

.later__title { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; }

.later__title span { font-weight: 400; color: var(--muted); }

.later__text { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--soft); }

.later__row { display: flex; gap: 8px; margin-top: 10px; }

.later__row .inp { flex: 1 1 auto; min-width: 0; }

.later__row .btn { flex: none; width: auto; min-height: 50px; padding: 0 18px; font-size: 16px; }

.btn--line { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--text); }

.btn--line:hover { background: #f1ede2; }

.later .err:empty { display: none; }

.later .fine { margin-top: 10px; }

.later__saved { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; font-size: 15px; }

.later__saved svg { flex: none; width: 18px; height: 18px; color: var(--good); }

.later__saved span { flex: 1 1 auto; min-width: 0; }

.later__saved .linkish { flex: none; font-size: 13.5px; }

/* A line in the app sheet when this device cannot have alerts, or the browser has no install button of its own. */
.appsheet__note { margin: 0 0 18px; font-size: 14px; line-height: 1.45; color: var(--soft); }

/* Each point stays on one line down to a 360 px wide phone. */
@media (max-width: 379px) { .appsheet__why li { font-size: 13px; } }
