/* Montserrat, the board's lettering (Tim, 2026-11-05), the same as the website. It sits inside the app and is on
   the offline list in sw.js, so a phone with no signal keeps it. SIL Open Font License, fonts/Montserrat-OFL.txt. */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Getting By app. v0.6 visual system, rebuilt 2026-10-13 (v0.5 was flat navy with gold buttons; Tim: "make the app look a lot nicer").
   Direction: the website's own look, on a phone. Deep navy lit from two sides, the logo's BLUE and its GOLD used as the two tones: blue for light and depth,
   gold only for the thing you should press. Real photographs (the website's), glass surfaces, a 3D heart on Home, short entrances (GSAP).
   Palette is still the one MEASURED out of the logo pixels (app/icons/icon-512.png): navy #0a1640, ribbon blue #4283d3, gold #f4cc33.
   Everything decorative is optional: text and buttons never depend on an image, a gradient or an animation, and prefers-reduced-motion switches the motion off.
   Run `node tools/contrast.mjs` after ANY colour change: it reads the real values out of the :root block below (hex values only; the gradients are built from them). */
:root {
  --bg: #0a1640;          /* logo: the navy the heart sits on */
  --ice-1: #10235a;       /* surface: navy mixed toward the logo ribbon blue */
  --ice-2: #17316f;       /* raised surface and pressed state */
  --line: #3f7ccb;        /* logo: lit ribbon blue. Edges of fields and outline controls (3:1 needed, WCAG 1.4.11) */
  --seam: #4283d3;        /* logo: the brightest blue highlight */
  /* Tim, 2026-10-14: "anywhere there is blue the text must be in the bright logo gold and vice versa yellow gets deep
     logo", and asked for it on EVERYTHING, not just headings. So every ink that lands on a blue surface below is now
     the one logo gold. MEASURED against the four blue surfaces this app actually paints: 11.26:1 on the page navy,
     9.60:1 on a card, 7.94:1 on a pressed card, 6.54:1 on the lightest glass. All four clear AA for body text and
     three of them clear AAA. The tonal hierarchy that --muted and --ice used to carry is gone by instruction, so
     hierarchy is now size and weight only - and links, which used to be told apart by being paler blue, are told
     apart by an underline instead (see the `a` rule). Run tools/contrast.mjs after touching any of this. */
  --seam-ink: #F6C522;    /* was #8fbcf0, a pale blue: small text and icons are ink on blue, so they are gold now too */
  --text: #F6C522;        /* was #f4f6fb */
  --muted: #F6C522;       /* was #cdd6e6. Tim chose gold for the quiet text as well, so weight and size carry the hierarchy */
  --ice: #F6C522;         /* was #d9e7f8, pale blue text */
  --gold: #F6C522;        /* logo: the brightest gold. Primary actions only */
  --goldink: #0a1640;    /* Tim, 2026-10-14: "anywhere there is blue the text must be in the bright logo gold and vice versa yellow gets deep logo".
                             So nothing sits on gold in near-black any more: it sits in the logo's own navy. MEASURED 11.26:1, against 11.9:1 for the
                             #1a1300 it replaces - the same readability, in the logo's two colours instead of three. */
  --link: #F6C522;        /* was #a8cdff. Same gold as body text now, so links are marked by an underline instead of a colour */
  --exit: #9e1b30;
  --egg: #ff4b4b;         /* the Easter-egg mark. A SEPARATE red from --exit on purpose - see .eggmark */
  --warn-bg: #1b2a5c; --warn-line: #4a5fa6; --warn-ink: #ffe07a;
  --ok-bg: #0d2a1c; --ok-line: #2f7d55; --ok-ink: #7ee2a8;     /* "Open now" */
  --glass-hi: #1b3b8f;    /* the lightest point of a glass card once its blue light is mixed in (tools/contrast.mjs checks text against it) */
  --hair: rgba(255, 255, 255, .10);
  --sos: 64px;         /* the crisis strip above the tab bar. 52px targets + 6px of padding each side. */
  --tab: 84px;          /* Tim, 2026-10-14, outdoor use: every target is 64px now, and the bar has to hold one */
  --r-ctl: 16px; --r: 22px; --r-tile: 26px; --r-hero: 30px;     /* controls, cards, tiles, hero and banners. Chips are full pills. */
  --ease: cubic-bezier(.23, 1, .32, 1);
  /* the two tones, as fills and as lights */
  /* Tim, 2026-10-15: "make the application match the same look as the website font, colors, etc".
     Taken verbatim from getting-by-site/src/style.css: --gold #F6C522, the ramp below, and the three tones the
     site builds its 3D buttons out of. The app was running a near-miss gold (#f4cc33) and its own 135deg ramp. */
  --g-gold: linear-gradient(180deg, #FFD93F 0%, #F6C522 45%, #E2B01A 100%);   /* site --grad-gold, same stops */
  --gold-mid: #BD840E;      /* site: shaded gold - the side wall of a blue button */
  --gold-deep: #8E5908;     /* site: deepest gold shadow */
  --brand-blue: #102D6F;    /* site: the logo's deep blue - the side wall of a gold button */
  --g-blue: linear-gradient(180deg, #1d4fd8 0%, #13358f 45%, #0A245A 100%);   /* site --face: the blue button face */
  --g-night: linear-gradient(160deg, #17398f 0%, #0c1c56 55%, #081239 100%);
  --g-glass: linear-gradient(165deg, rgba(62, 120, 255, .21) 0%, rgba(22, 48, 118, .76) 44%, rgba(11, 24, 68, .92) 100%);
  --g-ok: linear-gradient(150deg, #3fb37a 0%, #1d6b45 100%);
  --edge: rgba(211, 158, 21, .55);                  /* the site's panel ring: `1px solid rgb(211 158 21 / .55)`. Was a pale blue, which is what made the app's cards read as a different product to the site's */
  --shadow-1: 0 12px 28px rgba(2, 7, 26, .5);       /* hero, tiles, banners */
  --shadow-2: 0 5px 14px rgba(2, 7, 26, .38);       /* list cards: light, because there can be forty of them */
  --shadow-gold: 0 8px 22px rgba(244, 204, 51, .28);
  /* the website's own pair: a serif for headings and buttons, the phone's own face for reading */
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;   /* was a serif until 2026-11-05 */
  color-scheme: dark;
}
/* Bigger text setting. Everything is in rem below this line, so one number moves the whole app. */
html { font-size: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: #050b26; }
html[data-big="1"] { font-size: 125%; }

* { box-sizing: border-box; }
/* The website's background, copied layer for layer from getting-by-site/src/style.css `body` plus its .vignette:
   a blue glow off the top right, a gold one off the left, a navy that falls to near-black down the page, and a
   vignette closing the corners. The site pins it with background-attachment: fixed so it sits still while the page
   moves - that stillness is the "immersive" part Tim is pointing at, and it is one line. The vignette is listed
   FIRST because background layers paint front to back, so it lands on top of the two glows. The flat --bg is kept
   as the last layer: it is what paints if a browser drops the gradients. */
body {
  margin: 0; color: var(--text); min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgb(4 8 23 / .7) 100%),
    radial-gradient(1200px 800px at 85% -10%, rgb(47 107 255 / .35), transparent 60%),
    radial-gradient(900px 700px at 0% 40%, rgb(211 158 21 / .10), transparent 60%),
    linear-gradient(180deg, #060d26, #040817 60%),
    var(--bg);
  background-attachment: fixed;
  font: 1.125rem/1.6 "Montserrat", system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  padding-top: env(safe-area-inset-top);
  -webkit-font-smoothing: antialiased;
}
/* the website's lighting: blue light from the top right, a little gold from the left, fading to night. Fixed and pointer-less, so it never repaints on scroll. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 52% at 88% -6%, rgba(54, 112, 255, .46) 0%, rgba(54, 112, 255, 0) 62%),
    radial-gradient(90% 44% at -8% 40%, rgba(246, 197, 34, .11) 0%, rgba(246, 197, 34, 0) 62%),
    radial-gradient(100% 40% at 100% 96%, rgba(54, 112, 255, .20) 0%, rgba(54, 112, 255, 0) 70%),
    linear-gradient(180deg, #0b1a4c 0%, #08123b 42%, #050b26 100%); }
h1 { font: 800 2.05rem/1.05 var(--font-display); margin: .15em 0 .3em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font: 800 1.4rem/1.05 var(--font-display); margin: 1.3em 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h3 { font: 700 1.12rem/1.25 var(--font-display); margin: 0 0 .25em; overflow-wrap: anywhere; text-wrap: balance; }
p { margin: .4em 0 .8em; max-width: 65ch; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 3px; }   /* colour no longer distinguishes a link from its text, so the underline has to */
/* A link inside a sentence is only as tall as its line of text, about 20 px, and 911 or 9-8-8 is sometimes the thing a cold thumb has to hit. Padding on an INLINE element is hit-tested but takes no room in the layout, so the tap area grows to 48 px and nothing on screen moves (break-app.mjs measured 20 of these under 40 px). */
/* Decorative glow (the heart's halo is 12% wider than its box and pulses) must never widen the page: it pushed the scrollable width to 390-397 px, and on a phone that makes the page wiggle sideways and widens the fixed tab bar (measured: main.scrollWidth 397 vs 390). clip, unlike hidden, makes no scroll container, so nothing sticky breaks. */
main { overflow-x: clip; }
main p a:not(.btn), main .fine a:not(.btn), main li p a:not(.btn) { padding: 12px 10px; margin-inline: -10px; }   /* 12 px, not more: two links on neighbouring lines must not reach each other's middle */
.ic { width: 24px; height: 24px; flex: none; }   /* 24 = the artwork's own grid. See the icon note below. */
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; display: inline-flex; align-items: center; min-height: 64px; background: #fff; color: #000; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.loading, .fine { color: var(--muted); font-size: .94rem; }
.lead { color: var(--muted); font-size: 1.1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* section headings: a small gold bar, then the heading in the website's serif. (Class kept as .tag so every screen picks it up.) */
.tag { display: flex; align-items: center; gap: 10px; margin: 1.9em 0 .6em; font: 800 1.3rem/1.2 var(--font-display); letter-spacing: -.005em; color: var(--text); }
.tag::before { content: ""; flex: none; width: 7px; height: 22px; border-radius: 4px; background: var(--g-gold); box-shadow: 0 0 14px rgba(244, 204, 51, .45); }
h1 + .tag, .lead + .tag { margin-top: 1.3em; }

/* top bar: glass, with a hairline of the two tones along its lower edge. Content scrolls under it. */
.top { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px;
  background: rgba(8, 18, 56, .82); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(66, 131, 211, 0), rgba(66, 131, 211, .7) 30%, rgba(244, 204, 51, .7) 70%, rgba(244, 204, 51, 0)); }
.mark { flex: none; width: 30px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
.brand { display: block; }
.town { display: block; color: var(--muted); font-weight: 600; font-size: .6em; letter-spacing: -.01em; margin-top: .15em; }
.townbtn { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 64px; max-width: 56%; padding: 6px 12px; border-radius: 12px; border: 0; background: var(--g-glass); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; box-shadow: inset 0 0 0 1px var(--edge); touch-action: manipulation; }
.townbtn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Phone-width only. The province is worth 38px of a 108px budget and the town name is worth all of it. The span stays
   in the DOM so nothing the app knows changes - a wider screen still shows "Newmarket, ON". Measured 2026-10-14. */
/* Phone-width only, and both of these buy room for the TOWN NAME, which is the one thing in this button a person
   actually reads. Measured across all 844 real town names at 375px with the weather chip in place:
     as shipped before the chip ......... 125px of name, 83% of towns fit whole
     chip added, nothing else changed ... 114px, 75%   <- 68 towns newly cut off, not acceptable
     + province dropped, pin dropped .... 144px, 90%   <- better than before the chip existed
   The pin is aria-hidden decoration and the province is repeated on Home and in the picker, so neither costs any
   information. Nothing is removed above 420px. */
@media (max-width: 420px) { .townbtn .prov, .townbtn #townIcon { display: none; } }
.townbtn .ic { color: var(--gold); }

main { max-width: 640px; margin: 0 auto; padding: 14px 16px calc(var(--tab) + var(--sos) + 120px + env(safe-area-inset-bottom)); outline: none; }

/* buttons: glass blue by default, gold for the one thing to press. Press feedback is instant (touch-down), not on release. */
/* The website's one button, brought over whole (getting-by-site/src/style.css, the `.btn, .nav nav a:not(.btn)`
   block). It is a pill with real depth: a lit top edge, a shaded base, a solid side WALL underneath it, and a
   coloured cast shadow - and it presses by dropping onto that wall. Two skins, and they trade colours: a blue
   button has a gold wall, a gold button has a brand-blue wall. The app was drawing a flat 16px-radius slab with a
   blue inset ring, which is why it did not read as the same product. Depths are the site's, sizes are ours: the
   64px outdoor floor stays. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 12px 18px; border-radius: 14px; border: 0;   /* square, as on the website (Tim, 2026-11-05) */
  --face: var(--g-blue); --txt: var(--gold); --txt-shadow: 0 1px 1px rgb(8 20 56 / .55);
  --lit: rgb(255 233 138 / .75); --shade: rgb(142 89 8 / .55); --wall: var(--gold-mid); --cast: rgb(211 158 21 / .4);
  background: var(--face); color: var(--txt); text-shadow: var(--txt-shadow); font: 800 1.06rem/1.2 var(--font-display); text-align: center; letter-spacing: .004em; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 var(--lit), inset 0 -2px 5px var(--shade), 0 4px 0 var(--wall), 0 9px 20px var(--cast);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.btn:active { transform: translateY(3px); filter: none; box-shadow: inset 0 2px 6px var(--shade), 0 1px 0 var(--wall), 0 2px 6px var(--cast); }
.btn.gold { --face: var(--g-gold); --txt: var(--goldink); --txt-shadow: 0 1px 0 rgb(255 255 255 / .35);
  --lit: rgb(255 255 255 / .8); --shade: rgb(16 45 111 / .5); --wall: var(--brand-blue); --cast: rgb(47 107 255 / .5); font-weight: 800; }
.btn.exit { flex: none; white-space: normal; text-align: center; line-height: 1.05; font-size: .88rem; max-width: 4.6em; background: linear-gradient(180deg, #c92a47 0%, var(--exit) 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px #e0606f, 0 4px 12px rgba(158, 27, 48, .45); min-height: 64px; padding: 8px 10px; }
/* the logo rides on the one big gold action of a screen (a navy coin, because the heart is blue AND gold and half of it would vanish on gold) */
.btn.gold.block::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg) url(../img/logo-heart.png) center / 20px 17px no-repeat; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
/* one slow glint across that big gold button, once, when its screen opens */
.btn.gold.block { overflow: hidden; }
.btn.gold.block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%); transform: translateX(-120%); animation: glint 1.1s .5s var(--ease) 1 both; pointer-events: none; }
@keyframes glint { to { transform: translateX(120%); } }
.btn.block { display: flex; width: 100%; }
.btn.round { min-width: 64px; padding: 10px; border-radius: 50%; }
/* A full-width choice with its consequence written underneath. .btn is a centred row by default, which put the label
   and its note side by side and squeezed "Me and my children" into 69px, over three lines. Selected, the button turns
   gold, so the note cannot stay --muted against it: it takes the button's own ink instead. */
.btn.stack { flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; padding: 12px 18px; }
.btn.stack small { font: 400 .86rem/1.35 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--muted); }
.btn.stack[aria-pressed="true"] small { color: inherit; opacity: .8; }
.btn.small { min-height: 64px; padding: 10px 14px; font-size: 1.02rem; font-weight: 800; }   /* 64 is the floor everywhere, including "small": a shattered screen and cold hands do not get a smaller target */
.btn[disabled] { opacity: .55; cursor: default; }
.btn[aria-pressed="true"] { --face: var(--g-gold); --txt: var(--goldink); --txt-shadow: 0 1px 0 rgb(255 255 255 / .35);
  --lit: rgb(255 255 255 / .8); --shade: rgb(16 45 111 / .5); --wall: var(--brand-blue); --cast: rgb(47 107 255 / .5); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); filter: brightness(1.1);
  box-shadow: inset 0 1px 0 var(--lit), inset 0 -2px 5px var(--shade), 0 6px 0 var(--wall), 0 14px 28px var(--cast); } }

/* ---- Home: the brand band. It used to open the screen; since 2026-10-13 it closes it.
   A 206 px hero meant the first "I need food" tile began 650 px down a 851 px phone, one row of needs, half of it
   cut off by the fold. The three free lines and the six needs now own screen one, and the brand plays its part on the
   way down to the story. The 3D heart still stands out of the band's top edge. ---- */
.hero { position: relative; isolation: isolate; margin: 34px 0 0; padding: 20px 18px 46px; min-height: 200px; border-radius: var(--r-hero);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(244, 204, 51, .30) 0%, rgba(244, 204, 51, 0) 58%),
    radial-gradient(110% 100% at 0% 100%, rgba(54, 112, 255, .55) 0%, rgba(54, 112, 255, 0) 62%),
    var(--g-night);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(255, 255, 255, .2); }
.hero-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(34% 34% at 72% 24%, rgba(244, 204, 51, .26), rgba(244, 204, 51, 0) 70%), radial-gradient(40% 40% at 18% 82%, rgba(70, 128, 255, .42), rgba(70, 128, 255, 0) 70%); animation: drift 16s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate3d(-4%, -3%, 0) rotate(0deg); } to { transform: translate3d(5%, 4%, 0) rotate(8deg); } }
.hero-copy { max-width: 58%; }
.hero h1, .hero h2 { margin: 0; font: 800 2.1rem/1 var(--font-display); letter-spacing: -.015em; }
.hero .brand { font-style: italic; color: var(--gold); filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .4)); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .brand { background: linear-gradient(180deg, #fff2a8 0%, #f4cc33 52%, #d9a50f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.hero .town { margin-top: .5em; color: var(--ice); font: 650 .5em/1.25 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; }
.hometip { color: var(--ice); font-size: .98rem; line-height: 1.4; margin: 12px 0 0; text-wrap: balance; }
/* the brand band where it now lives: far enough below the last control that the heart clears it */
.hero-brand { margin-top: 58px; padding-bottom: 20px; min-height: 132px; }
.hero-brand .hero-copy { max-width: 64%; }
.hero-brand .town { font-size: .42em; }

/* the one line of reassurance that used to live in the hero. It is the whole reason someone keeps going: no sign-up, no ID. */
.trust { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; color: var(--ice); font-size: .96rem; line-height: 1.4; text-wrap: balance; }
.trust .ic { width: 24px; height: 24px; margin-top: .14em; color: var(--gold); }
.trust + .tag { margin-top: 1.25em; }
/* the last link on Home is still a 48 px target: a plain 24 px line of text is not one */
.footlink { margin-top: 18px; }
/* the negative margin keeps the text on the page's left edge while the tap area reaches the 48px floor in both directions:
   "Done" is only 43px of text, and a 43px-wide target is not one. */
.footlink a { display: inline-flex; align-items: center; min-height: 64px; min-width: 64px; padding-inline: 10px; margin-inline: -10px; }
.hero-art { position: absolute; right: 0; top: -34px; width: 162px; height: 173px; pointer-events: none; }
.hero-art::before { content: ""; position: absolute; inset: 8% -12% 0 -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 204, 51, .42), rgba(54, 112, 255, .26) 55%, rgba(54, 112, 255, 0) 100%); animation: pulse 5s ease-in-out infinite; }
.hero-art .heart, .hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .heart { object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); animation: bob 6s ease-in-out infinite; transition: opacity .6s; }
.hero-art canvas { opacity: 0; transition: opacity .6s; }
.hero-art.gl canvas { opacity: 1; }
.hero-art.gl .heart { opacity: 0; animation: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes pulse { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

/* the three free lines that always work. They open the app: nothing is above them but the town bar. */
.calls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 2px 0 8px; }
.hero + .calls { position: relative; z-index: 3; margin-top: -32px; padding: 0 12px; }
.calls .btn { flex-direction: column; min-height: 76px; font-size: 1.45rem; gap: 0; line-height: 1.15; }
.calls small { font: 600 .8rem/1.2 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; opacity: .92; }
.calls .btn:last-child { background: linear-gradient(180deg, #4a1a2c 0%, #2b1320 100%); color: #ffd6dd; box-shadow: inset 0 1px 0 rgba(255, 190, 200, .22), inset 0 0 0 1px #b04158, 0 5px 12px rgba(2, 7, 26, .4); }   /* 911: emergency, outlined red so it never competes with Quick exit */

/* ---- the front door: six needs as photographs, then one grouped list ---- */
.igrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.itile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-height: 168px; padding: 14px; border-radius: var(--r-tile); color: #fff; text-decoration: none;
  background: var(--g-night); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--edge); transition: transform 120ms var(--ease); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.itile .ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
/* Where to crop each of the six tile photos. The tile is square (164x168 on a phone) and every one of these pictures
   is wider than that, so `cover` has to throw away about 14% of it. Centred, that cut lands on the person's head:
   measured at 390px on 2026-10-14, "Somewhere warm", "A ride" and "Talk to someone" were all showing a headless
   body. The whole point of these photos is a human face, so each one is pinned to its face instead of to the middle
   of the frame. Same idea, and same numbers format, as the banner focal points in js/look.js. */
/* Same for the two wide cards on Home: 760x490 pictures in a 132px-tall strip, so `cover` drops most of the height. */
.itile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 12, 40, .04) 0%, rgba(6, 12, 40, .5) 44%, rgba(6, 12, 40, .94) 100%), var(--tint); }
.itile:not(:has(.ph)) { background: var(--g-glass); }
.itile:not(:has(.ph))::before { background: var(--tint); }
.itile:active { transform: scale(.97); }
.itile b { font: 800 1.2rem/1.12 var(--font-display); letter-spacing: -.005em; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.itile small { color: var(--ice); font-size: .88rem; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.iico { margin-bottom: auto; width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--tg, var(--g-gold)); color: var(--ti, #0a1640); box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
.iico .ic { width: 24px; height: 24px; }
.t-gold { --tg: var(--g-gold); --ti: #0a1640; --tint: linear-gradient(135deg, rgba(246, 197, 34, .26) 0%, rgba(246, 197, 34, 0) 55%); }
.t-blue { --tg: var(--g-blue); --ti: #fff; --tint: linear-gradient(135deg, rgba(54, 112, 255, .38) 0%, rgba(54, 112, 255, 0) 58%); }
@media (hover: hover) and (pointer: fine) { .itile:hover .ph { transform: scale(1.06); } }

/* a feature card: a photograph that fades into a night-blue body. The words sit on the body, never on the photograph, so their contrast does not depend on the picture. */
.feature { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; margin: 14px 0 0; border-radius: var(--r-tile); color: #fff; text-decoration: none;
  background: var(--g-night); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--edge); transition: transform 120ms var(--ease); touch-action: manipulation; }
.feature:active { transform: scale(.985); }
.feature .ph { display: block; width: 100%; height: 230px; object-fit: cover; filter: brightness(1.15) saturate(1.1); -webkit-mask-image: linear-gradient(180deg, #000 38%, transparent 94%); mask-image: linear-gradient(180deg, #000 38%, transparent 94%); }
.fbody { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: -16px; padding: 0 18px 18px; }
.feature .eyebrow { color: var(--gold); font: 800 .78rem/1 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.feature b { font: 800 1.45rem/1.14 var(--font-display); text-wrap: balance; }
.feature .sub { color: var(--ice); font-size: .98rem; line-height: 1.35; }
.feature .go { align-self: stretch; margin-top: 10px; padding: 13px 16px; border-radius: 12px; background: var(--g-gold); color: var(--goldink);
  font: 800 1.04rem/1.15 var(--font-display); text-align: center; letter-spacing: .004em; box-shadow: var(--shadow-gold); }
.feature progress.gv-bar { margin-top: 8px; }
.feature-list { margin-top: 14px; }

/* grouped list: one glass surface, rows split by hairlines, chevron on the right. */
ul.group { list-style: none; margin: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); }
ul.group > li + li { box-shadow: 0 -1px 0 var(--hair); }
ul.group a { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 16px; color: var(--text); text-decoration: none; touch-action: manipulation; transition: background-color 120ms var(--ease); }
ul.group a:active { background: rgba(255, 255, 255, .08); }
@media (hover: hover) and (pointer: fine) { ul.group a:hover { background: rgba(255, 255, 255, .07); } }
.gi { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--tg, var(--g-blue)); color: var(--ti, #fff); box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .4); }
.gi .ic { width: 24px; height: 24px; }
.gt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gt b { font-weight: 700; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.gt small { color: var(--muted); font-size: .88rem; line-height: 1.25; }
.chev { flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2.5px solid var(--gold); border-top: 2.5px solid var(--gold); transform: rotate(45deg); }

/* The red egg that marks an unlocked extra (icons.js EGG). Tim, 2026-10-14: one at the top right of EVERY Easter-egg
   upgrade, so you can see at a glance which parts of the app were given to you and are on no advert anywhere.
   The red is NOT --exit. That red is Quick exit and the 911 button and it means ACT NOW; spending it on something fun
   would wear down the one colour in this app that has to keep meaning danger. This one is lighter and cleaner, so the
   two never read as the same thing. The host element carries .eggpin.
   pointer-events: none because the mark sits on top of a link - a thumb landing on the egg must still open the card. */
.eggpin { position: relative; }
.eggmark { position: absolute; top: 6px; right: 6px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; color: var(--egg); background: rgba(5, 9, 31, .62); box-shadow: 0 1px 6px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .14);
  pointer-events: none; }
.eggmark .ic { width: 14px; height: 14px; }
/* On a full screen (not a card) the mark goes beside the heading instead of floating over the photo banner. */
.eggtitle { display: inline-grid; place-items: center; width: 26px; height: 26px; vertical-align: middle; margin-left: 8px;
  border-radius: 50%; color: var(--egg); background: rgba(5, 9, 31, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.eggtitle .ic { width: 16px; height: 16px; }

/* The three tap eggs (js/egg.js). A Getting By heart beside a heading, dressed as branding: no pointer cursor, no
   hover, no tap highlight, because anything that looked like a control would be the advertising these two screens
   were told not to carry. The padding takes the touch target to 48x44 without changing how big the logo looks, so
   a finger that is not precise still lands on it.

   touch-action: manipulation is not optional here. Ten fast taps in the same spot is exactly the gesture a
   phone reads as double-tap-to-zoom, which would zoom the page instead of counting, and the person would
   never get in. Same reason details.grp > summary carries it. */
.egglogo { width: 26px; height: 22px; padding: 11px; box-sizing: content-box; object-fit: contain;
  vertical-align: middle; margin-left: 2px; opacity: .9; user-select: none; -webkit-user-drag: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nowcard { margin: 0 0 6px; }
.nowcard h2 { margin: 1.1em 0 .45em; font-size: 1.25rem; }
.nowcard .gi { background: var(--g-ok); color: #eafff3; }

/* result lists: each result is a glass card */
ul.res { list-style: none; margin: 0; padding: 0; }
.res > li { position: relative; margin: 0 0 12px; padding: 16px; border-radius: var(--r); background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); }
.res p { margin: .25em 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); font-size: .85rem; font-weight: 650; }
.badge.open { background: var(--ok-bg); color: var(--ok-ink); box-shadow: inset 0 0 0 1px var(--ok-line); }
.badge.shut { background: #2a1116; color: #ffb3bf; box-shadow: inset 0 0 0 1px #7a2634; }
.notice { padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, rgba(244, 204, 51, .16) 0%, rgba(27, 42, 92, .94) 46%); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--warn-line), inset 4px 0 0 var(--gold); margin: 0 0 14px; }
.notice p { margin: .25em 0; }
/* The in-app browser stop (Facebook, Instagram) inside the Home Screen notice: red left bar, loud enough that
   the person reads it before tapping Show me how, which cannot work from inside those apps. (app.js, 2026-11-13.) */
.addhome-stop { margin: 0 -16px 10px !important; padding: 12px 16px; background: rgba(229, 72, 77, .14); border-left: 4px solid #e5484d; border-radius: 0; }
.addhome-stop b { color: #ffd4d6; }
/* Early full-screen sheet shown the instant /app/?add=home opens, before the town picker. The person tapped
   "Put it on my iPhone" expecting instructions, and must not see the town picker first. (app.js, 2026-11-13.) */
#early-addhome { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .78); display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px; overflow-y: auto; animation: ea-fade 180ms ease-out; }
@keyframes ea-fade { from { opacity: 0; } to { opacity: 1; } }
#early-addhome .ea-card { background: #0a1640; color: #e4eaff; border-radius: 16px; padding: 22px 20px; max-width: 520px; width: 100%; box-shadow: 0 16px 48px rgba(0, 0, 0, .55); border: 1px solid rgba(244, 204, 51, .55); font-size: 1rem; line-height: 1.45; }
#early-addhome h2 { font-size: 1.28rem; margin: 0 0 12px; color: #fff; }
#early-addhome p { margin: 0 0 12px; }
#early-addhome ol { list-style: none; padding: 0; margin: 10px 0 14px; }
#early-addhome li { margin: 10px 0; padding: 10px 12px; background: rgba(244, 204, 51, .08); border-radius: 10px; }
#early-addhome b { color: #f4cc33; }
#early-addhome .ea-close { display: block; width: 100%; margin-top: 10px; padding: 14px 16px; background: #f4cc33; color: #0a1640; border: 0; border-radius: 12px; font-size: 1.05rem; font-weight: 700; cursor: pointer; min-height: 48px; }
#early-addhome .ea-close:active { transform: scale(.98); }
#early-addhome .ea-stop { border-color: #e5484d; background: #2a1116; }
#early-addhome .ea-stop h2 { color: #ffd4d6; }
#early-addhome .ea-stop b { color: #ffd4d6; }
#early-addhome .ea-stop .ea-close { background: #ffd4d6; color: #2a1116; }
/* Environment Canada warnings (js/wxalerts.js). The left bar carries ECCC's own risk colour; the words stay readable on the navy. */
.ecw { padding: 8px 0 8px 12px; border-left: 4px solid var(--ecw, #9aa6c8); margin: 0 0 10px; }
.ecw-red { --ecw: #e5484d; } .ecw-orange { --ecw: #f5862e; } .ecw-yellow { --ecw: var(--gold); } .ecw-grey { --ecw: #9aa6c8; }
.ecw-head { font-size: 1.05rem; }
.ecw-full summary { cursor: pointer; color: var(--gold); font-weight: 650; padding: 6px 12px; border-radius: 10px; min-height: 44px; display: flex; align-items: center; }
.ecw-full p { white-space: pre-line; }
.ecw-src { opacity: .8; }
.notice b { color: var(--warn-ink); }
.nearest { color: var(--warn-ink); }
/* "250 m away \00b7 4 min walk" (js/here.js). On a row about a warm place or a food bank this is the number that
   decides whether the person can actually get there, so it gets full-strength ink while the rest of the row's
   detail lines stay a step down at --ink-on-glass-2. No new colour is invented for it: --gold is reserved for
   primary actions and the green is already spoken for by "Open right now". */
.res .near { color: var(--ink-on-glass); font-weight: 650; }
/* Wraps, it does not scroll sideways. As a scroller the row hid whatever did not fit, and there was nothing on screen
   to say more existed: adding a tenth chip ("Find work") pushed "Health care" half off the left edge, so the first
   thing a person saw was a cut-off word. Someone who does not know the list is scrollable never finds the rest.
   Wrapping costs one or two rows of height and shows all ten. Measured at 390px on 2026-10-14. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 16px 8px; margin: 0 -16px 6px; }
.chips::-webkit-scrollbar { display: none; }
/* Narrower and a shade smaller than the other buttons, because ten of these have to fit without a sideways scroll:
   at 16px padding and .98rem they took five rows at 375px and pushed the actual help below the fold. The 48px
   minimum height is NOT negotiable and is untouched - it is the floor for cold hands, a cracked screen and a moving
   bus - so only the horizontal padding and the type come down. Measured at 375px on 2026-10-14. */
/* 64px tall and 16px of side padding meant exactly TWO chips per row on a 375px phone, so ten of them took six
   rows and 364px - more than half the usable window, before the screen said anything. At 48px with tighter
   padding and a slightly smaller face they pack three to a row where the words allow it. 48px still clears the
   44pt minimum a finger needs, and the nav still WRAPS rather than scrolling sideways, which is the thing that
   was decided deliberately: a sideways scroller hid whatever did not fit with nothing on screen to say so. */
.chip { flex: none; min-height: 48px; padding: 6px 11px; border-radius: 99px; border: 0; background: var(--g-glass); color: var(--text); font: 700 .82rem/1.15 var(--font-display); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--edge); touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform 120ms var(--ease); }
.chip:active { transform: scale(.97); }
.chip[aria-current="true"], .chip[aria-pressed="true"] { background: var(--g-gold); color: var(--goldink); box-shadow: var(--shadow-gold); }

/* save (star) button sits in the corner of a result */
.star { position: absolute; top: 8px; right: 8px; min-width: 64px; min-height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--muted); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px var(--edge); }
.star[aria-pressed="true"] { color: var(--gold); }
.star .ic { width: 24px; height: 24px; }
.res > li:has(.star) h3 { padding-right: 52px; }
.res > li:has(.star) .facade.row { padding-right: 58px; }
.res > li:has(video) > .star { display: none; }

/* what to say */
details.say { margin: 12px 0 0; border-radius: var(--r-ctl); background: rgba(8, 18, 56, .55); box-shadow: inset 0 0 0 1px var(--hair); }
details.say > summary { min-height: 64px; display: flex; align-items: center; padding: 10px 14px; font-weight: 700; cursor: pointer; border-radius: var(--r-ctl); }
details.say > summary::marker { color: var(--gold); }
details.say .inner { padding: 0 14px 12px; }
details.say p { color: var(--ice); }

/* forms: 16px+ text so the phone never zooms in, a clear edge, big targets */
.field { display: block; width: 100%; min-height: 64px; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: #071033; color: var(--text); font: inherit; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.field:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(244, 204, 51, .35), inset 0 2px 6px rgba(0, 0, 0, .35); }
select.field { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0; }
ul.towns { list-style: none; margin: 10px 0 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); }
ul.towns li + li { box-shadow: 0 -1px 0 var(--hair); }
ul.towns li button { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; padding: 10px 16px; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
ul.towns li button:active { background: rgba(255, 255, 255, .08); }
ul.towns small { color: var(--muted); }

/* watch and live TV */
.facade { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-ctl); border: 0; background: var(--g-night); color: var(--text); font: 700 1rem/1.2 var(--font-display); cursor: pointer; padding: 12px; text-align: center; touch-action: manipulation; box-shadow: inset 0 0 0 1px var(--edge); }
.facade .ic { width: 48px; height: 48px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(244, 204, 51, .45)); }
.facade.row { aspect-ratio: auto; flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 64px; padding: 10px 14px; text-align: left; }
.facade.row .ic { width: 36px; height: 36px; }
.facade.row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.facade small { display: block; font: 400 .86rem/1.3 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--muted); }
.facade:active { filter: brightness(1.15); }
.res > li:has(.facade.row) { padding: 0; background: none; box-shadow: none; margin-bottom: 8px; }
.facade.row { background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); border-radius: var(--r); }
.embed:has(video), .embed:has(iframe) { background: var(--g-glass); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); }
.embed { position: relative; }
.embed p { margin: 6px 8px 8px; }
.embed iframe, .embed video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-ctl); background: #05091f; }
.embed .row { margin: 10px 8px 8px; }
.vstat { margin: 8px 8px 0; color: var(--muted); font-size: .94rem; }
/* Sound and full screen for any video in the app. The slider is allowed to grow so it stays a real target on a
   narrow phone; the two buttons keep the 48px floor that every other control here keeps. */
/* Close sits on the player itself, top right, where a thumb expects it - not as another button in a stack.
   48px like every other target here: a shattered screen and cold hands do not get a smaller one. */
.vclose { position: absolute; top: 4px; right: 4px; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: rgba(5, 9, 31, .78); color: #fff; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--edge); }
.vclose:hover, .vclose:focus-visible { background: rgba(5, 9, 31, .95); }
.vclose .ic { width: 24px; height: 24px; }
.vctl { align-items: center; }
.vctl .vvol { flex: 1 0 100%; width: 100%; height: 48px; accent-color: var(--gold, #e8b23a); background: transparent; }
.vctl .btn.small { flex: 0 0 auto; }

.linkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.linkgrid .btn { justify-content: space-between; text-align: left; min-height: 66px; padding: 10px 14px; }
.linkgrid .btn span { display: block; line-height: 1.2; }
.linkgrid .btn small { display: block; font: 400 .84rem/1.3 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--muted); margin-top: 2px; }
.linkgrid .btn .ic { width: 24px; height: 24px; color: var(--gold); }
@media (max-width: 360px) { .linkgrid { grid-template-columns: 1fr; } }
/* a collapsible group of channels: heading row with a count and a chevron */
details.grp { margin: 0 0 10px; }
details.grp > summary { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--r); background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); font: 700 1.05rem/1.2 var(--font-display); cursor: pointer; list-style: none; touch-action: manipulation; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary .n { margin-left: auto; color: var(--muted); font: 600 .94rem/1.2 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
details.grp > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 0 2px; border-right: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(45deg); transition: transform 160ms var(--ease); }
details.grp[open] > summary::after { transform: rotate(-135deg); }
details.grp > summary:active { filter: brightness(1.15); }
details.grp > .fine, details.grp > ul { margin-top: 10px; }

/* radio player: a floating glass bar above the tabs, edged in gold */
.player { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(var(--tab) + var(--sos) + env(safe-area-inset-bottom) + 8px); max-width: 640px; margin: 0 auto; padding: 12px 14px; border-radius: var(--r); background: linear-gradient(165deg, rgba(40, 84, 190, .94), rgba(16, 36, 98, .96)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(244, 204, 51, .6), 0 12px 32px rgba(0, 0, 0, .5); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.player[hidden] { display: none; }
.pinfo { display: flex; flex-direction: column; min-width: 0; }
.pinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo span { color: var(--muted); font-size: .9rem; }
.pctl { display: flex; gap: 6px; }
.plink { grid-column: 1 / -1; font-size: .9rem; }

/* bottom tabs: glass bar, a gold mark slides to the open tab. Solid fallback when blur is off or transparency is reduced. */
/* THE CRISIS STRIP, on every screen. Measured 2026-10-19 at 375x812: 911 was 1,169 px down Home - 1.4 screens, past
   the weather, the map and the open-now card - and did not exist anywhere else in the app. The website has had a
   fixed bar like this all along, which meant a donor on a laptop reached 911 sooner than somebody outdoors.
   It sits ON TOP OF the tab bar's own space, never over content: main's padding-bottom reserves --sos for it.
   911 keeps the hold (js/hold.js, delegated), so a bumped pocket cannot dial it. 9-8-8 and 2-1-1 are one tap: they
   are answered by people whose job is to be rung, and a hold on those would only cost somebody time. */
.sos { position: fixed; z-index: 39; left: 0; right: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 8px; height: var(--sos);
  background: linear-gradient(180deg, rgba(9, 22, 60, .97) 0%, rgba(6, 13, 40, .98) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 -1px 0 var(--edge), 0 -10px 28px rgba(2, 7, 26, .5); }
.sos .btn { flex-direction: column; justify-content: center; min-height: 52px; gap: 0; padding: 4px 3px;
  font-size: clamp(.82rem, 3.9vw, 1.05rem); line-height: 1.08; white-space: nowrap; }
.sos small { font: 600 .62rem/1.15 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; opacity: .92; letter-spacing: .01em; }
/* 911 outlined red here for the same reason as on Home: it must never read as the ordinary thing to press. */
.sos .hold911 { background: linear-gradient(180deg, #4a1a2c 0%, #2b1320 100%); color: #ffd6dd;
  box-shadow: inset 0 1px 0 rgba(255, 190, 200, .22), inset 0 0 0 1px #b04158, 0 5px 12px rgba(2, 7, 26, .4); }
.sos .hold911 small { color: #ffe0e4; }
/* "Hold to call" is 74px at .78rem and the sos chip is only 71.5px wide at 320px, so it was cut to
   "Hold to ca". .btn .holdhint (0,2,0) was beating .sos small (0,1,1); this puts it back to the size the
   other three hints in this bar already use. Measured 2026-11-08 at 320, 360 and 375px. */
.sos .btn .holdhint { font-size: .62rem; }
.sos .btn:active { transform: translateY(2px); }
.tabs { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, rgba(14, 30, 84, .9) 0%, rgba(6, 13, 40, .96) 100%); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); box-shadow: 0 -1px 0 var(--edge), 0 -10px 28px rgba(2, 7, 26, .5); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: min(.86rem, 4.2vw); font-weight: 700; min-height: 64px; touch-action: manipulation; transition: color 160ms var(--ease); }   /* min(): at 200% text .86rem is 27 px and five labels ran into each other (HomeTransitDeals) */
.tabs a[aria-current="page"] { color: var(--gold); }
.tabs a[aria-current="page"] .ic { filter: drop-shadow(0 0 8px rgba(244, 204, 51, .6)); }
.tabs .ic { width: 24px; height: 24px; }
.tab-ind { position: absolute; top: 0; left: 0; width: 34px; height: 4px; border-radius: 0 0 6px 6px; background: var(--g-gold); box-shadow: 0 8px 20px 3px rgba(244, 204, 51, .5); pointer-events: none; }
.tab-ind[hidden] { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabs, .top { background: #08102e; } .player { background: #17316f; } }
@media (prefers-reduced-transparency: reduce) { .tabs, .top { background: #08102e; -webkit-backdrop-filter: none; backdrop-filter: none; } .player { background: #17316f; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }   /* ::before and ::after too: a bare * does not reach them, and the hero glow and the button glint live there */

/* A gold halo on the ONE primary "give" action per screen (not every button: a wall of pulsing buttons
   reads as cheap). It is an animated drop-shadow layered over the physical button, so the 3D press, the
   glint and the heart icon are all left untouched, and only the GPU-composited filter moves. The global
   reduced-motion rule above stops the pulse; the override here keeps a steady lit halo instead. */
.btn.glow { animation: glowPulse 2.8s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 1px rgb(244 204 51 / .35)); }
  50%      { filter: drop-shadow(0 0 11px rgb(244 204 51 / .85)); }
}
@media (prefers-reduced-motion: reduce) { .btn.glow { filter: drop-shadow(0 0 7px rgb(244 204 51 / .7)); } }

/* slab, wallet, weather, sonar */
.slab { padding: 16px; border-radius: var(--r); background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); }
.wx { display: flex; align-items: center; gap: 14px; } .wxt { font: 700 3.2rem/1 var(--font-display); letter-spacing: -.03em; }
.wxbig { flex: none; display: inline-flex; color: var(--gold); font-size: 2rem; }
/* The header chip. Third control in a bar that already holds the town button and Quick exit, so it is an icon and a
   number and nothing else - at 390px the three of them plus the logo come to 362px of usable width, and a word here
   is what pushes the town name into an ellipsis. min-height stays at 48px: it is a link, and 48px is the tap floor.
   Added 2026-10-14. Measured at 390px, 360px and 320px. */
.wxchip { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 64px; padding: 6px 8px; border-radius: 99px;
  background: var(--g-glass); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text); text-decoration: none;
  font: 700 .9rem/1 inherit; font-variant-numeric: tabular-nums; touch-action: manipulation; }
.wxchip .ic { width: 24px; height: 24px; }
.wxchip .ic { color: var(--gold); }
/* `display: inline-flex` above BEATS the browser's own `[hidden] { display: none }` on specificity, so without this
   line hiding the chip did nothing and an empty pill sat in the header with no town chosen and with no signal -
   exactly the two cases it is supposed to disappear for. Caught by measuring the header, not by reading the code. */
.wxchip[hidden] { display: none; }
/* Dangerous out. Same red as Quick exit on purpose: it is the one other thing in this bar that means act now. */
.wxchip.danger { background: linear-gradient(180deg, #c92a47 0%, var(--exit) 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px #e0606f; }
.wxchip.danger .ic { color: #fff; }
@media (max-width: 359px) { .wxchip { padding: 6px 7px; gap: 2px; } .townbtn { max-width: 38%; } }
#wallet canvas { max-width: 100%; height: auto; background: #fff; border-radius: 10px; display: block; }
.addcard label { display: block; margin: 12px 0 4px; font-weight: 600; }
/* Kept small on purpose. At 150px this decoration pushed the first real place a third of the way down a phone
   screen, so someone cold and in a hurry scrolled past an animation to reach an address. */
.sonar { position: relative; width: 84px; height: 84px; margin: 2px auto 10px; display: grid; place-items: center; color: var(--gold); }
.sonar span .ic { width: 24px; height: 24px; }
.sonar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: ping 3s ease-out infinite; }
.sonar i:nth-child(2) { animation-delay: 1s; } .sonar i:nth-child(3) { animation-delay: 2s; }
@keyframes ping { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
h1 > .ic { width: 24px; height: 24px; color: var(--gold); vertical-align: -.1em; margin-right: 8px; }

.cost { color: var(--gold); font-weight: 700; }

/* ---- the banner that opens every screen: the screen's own heading on a lit two-tone panel, with a photograph from the website ---- */
.banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 300px; margin: -14px -16px 16px; padding: 20px 18px 22px; border-radius: 0 0 var(--r-hero) var(--r-hero);
  background: radial-gradient(90% 140% at 100% 0%, rgba(244, 204, 51, .30) 0%, rgba(244, 204, 51, 0) 58%), radial-gradient(100% 120% at 0% 100%, rgba(54, 112, 255, .5) 0%, rgba(54, 112, 255, 0) 62%), var(--g-night);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(255, 255, 255, .18); }
.banner .banner-ph { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner.has-photo .banner-ph, .itile .ph { filter: brightness(1.22) saturate(1.12) contrast(1.04); }
.banner:not(.has-photo) .banner-ph { inset: auto -16px auto auto; top: 50%; width: 128px; height: auto; transform: translateY(-50%) rotate(8deg); opacity: .2; object-fit: contain; }
.banner.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6, 13, 42, .96) 0%, rgba(6, 13, 42, .72) 26%, rgba(6, 13, 42, .10) 62%, rgba(6, 13, 42, .34) 100%); }
.banner:not(.has-photo) { min-height: 150px; }
main:has(#mapRoot) .banner { min-height: 190px; margin-bottom: 10px; }   /* the map needs its own screen space, so its banner is the one short one */
/* THE HELP SCREEN IS THE OTHER ONE. It is the only screen that carries a ten-item chip nav under its banner, so
   the banner and the nav together were pushing the answer off the phone. Measured at 375x812 before this: the
   first warm place started at 930px - 1.4 screens down - and the usable window is only 664px once the crisis
   strip (64px) and the tab bar (84px) are taken off. The title also says nothing the sticky header does not
   already say: the town is in the town button and the category is in the lit chip. Same precedent as the map
   rule above. */
main:has(.chips) .banner:not(.has-photo) { min-height: 88px; margin-bottom: 6px; padding-top: 12px; padding-bottom: 12px; }
main:has(.chips) .banner h1 { font-size: 1.5rem; }
.banner h1 { margin: 0; max-width: 86%; font-size: 2.15rem; line-height: 1.08; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.banner h1 > .ic { color: var(--gold); }
.banner + .lead, .banner + p { margin-top: 0; }

/* language help */
.big { font-size: 1.5rem; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; margin: .2em 0 .35em; }
textarea.field.big { font-size: 1.3rem; line-height: 1.45; font-weight: 500; min-height: 12rem; resize: vertical; }
.thumb { display: block; border-radius: var(--r-ctl); margin: 14px 0 0; height: auto; box-shadow: inset 0 0 0 1px var(--hair); }
.langbar { margin: 0 0 8px; }
.show { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; }
.show .huge { font-size: 2.3rem; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; margin: 0; max-width: none; overflow-wrap: anywhere; }
.show .enline { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: none; }

#trBtn { margin-top: 10px; }
button.btn.block[type="submit"] { margin-top: 10px; }

/* ---------- Map (js/map.js, Leaflet) ---------- */
/* One line on a 375 px phone. At the normal h1 size "Map of Newmarket" wrapped onto two lines and ate 60 px of the
   only screen where vertical space is the whole point. */
.maphead { font-size: 1.5rem; margin: .1em 0 .5em; }
.maphead > .ic { margin-right: 6px; }

/* The map box is tall enough to be worth the data it costs, and never taller than the screen. */
.mapbox {
  isolation: isolate;                      /* keeps Leaflet's own z-indexes (up to 1000) inside the map, under the tab bar */
  height: min(62vh, 520px);
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ice-1);
  box-shadow: var(--shadow-2);
}
/* Leaflet draws its own controls; make them readable on this palette and big enough for a thumb. */
.leaflet-container { background: var(--ice-1); font: inherit; }
/* The .leaflet-touch prefix is not decoration: leaflet.css ships `.leaflet-touch .leaflet-bar a { width: 30px }`, which
   outranks a bare `.leaflet-bar a`, so on every touch device, which is every phone this is built for, the zoom buttons
   were 30px while this rule said 40 and lost in silence. Pinch works, but one cold hand on a bus uses the buttons. */
/* .mapbox is ours and is on the map container; it is here for specificity, not decoration. leaflet.css ships
   `.leaflet-touch .leaflet-bar a { width: 30px }` and loads AFTER this file, so an identical selector loses on source
   order and a plain `.leaflet-bar a` loses on specificity, which is why this rule asked for 40px for a long time and
   silently got 30 on every touch device, meaning every phone this is built for. Pinch still works; one cold hand
   on a moving bus uses the buttons. */
/* .wifimap is the Wi-Fi screen's own map container. It was missing from this list, so the 48px above applied on
   #/map and the Wi-Fi map silently kept leaflet's 30x30 - measured 2026-10-20 by walking every screen, not by
   looking at the stylesheet, which reads as though it were already handled. Any NEW map container class has to be
   added here too, for the same reason. */
.wifimap.leaflet-touch .leaflet-bar a, .mapbox.leaflet-touch .leaflet-bar a, .leaflet-bar a, .leaflet-bar a:hover { width: 48px; height: 48px; line-height: 48px; background: var(--ice-2); color: var(--text); border-bottom-color: var(--hair); }
.leaflet-control-attribution { background: rgba(10, 22, 64, .85); color: var(--muted); }
.leaflet-control-attribution a { color: var(--link); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--ice-2); color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 12px 14px; line-height: 1.5; }
.leaflet-popup-content b { font-size: 1.05rem; }
.leaflet-popup-content .btn { margin-top: 8px; }
.leaflet-popup-content .pop-note { color: var(--warn-ink); }
.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 22px; color: var(--text); }


/* The list under the map: the same places, closest first. */
.maplist { margin-top: 6px; }
.maplist .facade { width: 100%; }
.maplist small { display: block; color: var(--muted); font-size: .88rem; font-weight: 500; }

/* "Get there": one panel for every place, rising from the tab bar. It never covers the whole screen, and the map behind it stays usable. */
.sheet { position: fixed; z-index: 45; left: 0; right: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom, 0px)); max-height: min(66dvh, 560px); overflow: auto; overscroll-behavior: contain;
  max-width: 640px; margin: 0 auto; padding: 18px 16px 20px; border-radius: 24px 24px 0 0; background: var(--g-glass), var(--ice-1); color: var(--text);
  box-shadow: 0 -14px 34px rgba(2, 7, 26, .6), 0 0 0 1px var(--edge); }
.sheet[hidden] { display: none; }
.sheet::before { content: ""; display: block; width: 44px; height: 4px; margin: -8px auto 10px; border-radius: 4px; background: var(--hair); }
.sheet h2 { margin: 0 52px .15em 0; font-size: 1.3rem; line-height: 1.2; }
.sheet h2:focus { outline: none; }
.sheet h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.sheet p { margin: .35em 0; }
.sheet .sheet-what { color: var(--ice); font-weight: 650; }
.sheet .sheet-x { position: absolute; top: 12px; right: 12px; }
.sheet .notice { padding: 10px 12px; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stops li { padding: 9px 0; border-top: 1px solid var(--hair); line-height: 1.4; }
.stops li:first-child { border-top: 0; }
@media (prefers-reduced-motion: no-preference) { .sheet:not([hidden]) { animation: sheetUp .28s var(--ease); } }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }


/* ---- Give, contact and Real-Time Rescue screens (added 2026-10-13): the website giving, contact and rescue pages. Only existing colour variables are used, so the contrast check still holds. ---- */
details.gv { margin: 0 0 12px; border-radius: var(--r); background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); scroll-margin-top: 100px; }
details.gv > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; font: 800 1.12rem/1.25 var(--font-display); }
details.gv > summary::-webkit-details-marker { display: none; }
details.gv > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(45deg); transition: transform .2s var(--ease); }
details.gv[open] > summary::after { transform: rotate(-135deg); }
.gv-body { padding: 0 16px 16px; }
.gv-body h2 { margin-top: 1em; font-size: 1.25rem; }
.gv-body h3 { margin-top: 1em; }
.gv-body ul, .gv-body ol { padding-left: 1.2em; }
progress.gv-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 16px; border: 0; border-radius: 99px; background: rgba(5, 11, 38, .75); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5), 0 0 0 1px var(--edge); overflow: hidden; }
progress.gv-bar::-webkit-progress-bar { background: transparent; border-radius: 99px; }
progress.gv-bar::-webkit-progress-value { background: var(--g-gold); border-radius: 99px; box-shadow: 0 0 12px rgba(244, 204, 51, .55); }
progress.gv-bar::-moz-progress-bar { background: var(--g-gold); border-radius: 99px; }
.gv-raised { margin-top: .4em; }
.gv-steps { padding-left: 1.3em; }
.gv-steps > li { margin: 0 0 .9em; }
.gv-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0; }
.gv-copy b { font-size: 1.15rem; overflow-wrap: anywhere; }
.gv-banks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gv-tiers { list-style: none; padding: 0 !important; display: grid; gap: 12px; margin: 12px 0; }
.gv-tiers > li { padding: 16px; border-radius: var(--r); background: linear-gradient(150deg, rgba(246, 197, 34, .14) 0%, rgba(23, 49, 111, .94) 52%); box-shadow: inset 0 0 0 1px var(--edge); }
.gv-tiers img { width: 96px; height: auto; display: block; margin: 0 0 8px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.gv-price { font: 800 1.6rem/1.2 var(--font-display); margin: .1em 0; }
.gv-price span { font: 500 1rem/1.2 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--muted); }
.gv-levels { padding-left: 0 !important; list-style: none; display: grid; gap: 10px; }
.gv-levels > li { padding: 14px; border-radius: var(--r-ctl); background: rgba(8, 18, 56, .55); box-shadow: inset 0 0 0 1px var(--hair); display: grid; gap: 4px; }
.gv-levels small, .rt-ladder small { color: var(--muted); font-size: .94rem; }
.gv-pioneer { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.gv-pioneer img { width: 88px; height: auto; flex: none; }
.gv-names { list-style: none; padding: 0 !important; columns: 2; column-gap: 18px; }
.gv-names li { break-inside: avoid; padding: 3px 0; overflow-wrap: anywhere; }
.gv-logos { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 12px; }
.gv-logos img { max-height: 56px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.gv-cards { list-style: none; padding: 0; display: grid; gap: 12px; margin: 14px 0; }
.gv-card { padding: 16px; border-radius: var(--r); background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); }
.gv-cardtop { display: flex; gap: 14px; align-items: center; }
.gv-cardtop img { width: 68px; height: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }
.gv-cardtop h2 { margin: 0; font-size: 1.25rem; }
.gv-cardtop p { margin: .15em 0; overflow-wrap: anywhere; }
.gv-role { margin: 0 0 .3em; color: var(--muted); }
.gv-mail { list-style: none; padding: 0; }
.gv-mail li { padding: 4px 0; overflow-wrap: anywhere; }
/* A phone number or an address printed in body text is still something people tap, and the Call button underneath is
   no help to someone who taps the number itself. These were 24px tall. The negative margin keeps them visually on the
   same left edge while the tap area reaches the 48px floor. */
.gv-cardtop a, .gv-mail a { display: inline-flex; align-items: center; min-height: 64px; padding-inline: 10px; margin-inline: -10px; }
/* Real-Time Rescue */
.rt-legend { display: grid; gap: 8px; }
.rt-legend span { display: flex; align-items: center; gap: 10px; }
.rt-legend img { height: 40px; width: auto; flex: none; }
.rt-board > li { padding: 14px; }
.rt-top { display: flex; gap: 12px; align-items: flex-start; }
.rt-hand { width: 34px; height: auto; flex: none; margin-top: 4px; }
.rt-meta { margin: .2em 0 .5em; color: var(--muted); }
.rt-ask { color: var(--gold); }
.rt-hand-sm { height: 24px; width: auto; }
dialog.rt-dlg { position: fixed; width: min(94vw, 34rem); max-height: 92dvh; overflow: auto; padding: 18px; border: 0; border-radius: var(--r); background: var(--g-glass), var(--ice-1); color: var(--text); box-shadow: 0 0 0 1px var(--edge), 0 24px 64px rgba(0, 0, 0, .65); }
dialog.rt-dlg::backdrop { background: rgba(3, 8, 28, .78); }
.rt-x { position: absolute; top: 8px; right: 8px; }
.rt-steps { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.rt-step { display: flex; gap: 12px; }
.rt-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ice-2); font-weight: 700; }
.rt-step.on .rt-n { background: var(--g-gold); color: var(--goldink); }
.rt-step h4 { margin: 0 0 .2em; font-size: 1.05rem; }
.rt-step:not(.on):not(.done) h4 { color: var(--muted); }
.rt-threats, .rt-kept, .rt-ladder { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.rt-threats li, .rt-ladder li { display: grid; gap: 4px; padding: 12px; border-radius: var(--r-ctl); background: rgba(8, 18, 56, .55); box-shadow: inset 0 0 0 1px var(--hair); }
.rt-kept li { padding: 2px 0; }
.rt-walk li { margin: 0 0 .6em; }
#rtNext { position: sticky; bottom: 0; }

/* ---------- Games (js/games.js) ----------
   The game runs in a frame so the app's own header, and with it QUICK EXIT, stays on screen while someone plays.
   That costs height, so the frame takes everything left between the header and the bottom tabs and no more.
   dvh first: on a phone, 100vh is the tallest the window ever gets, so with the browser's address bar showing, a
   vh-sized frame runs underneath it and the bottom of the board cannot be reached. dvh is what is actually visible.
   The vh line is left above it for older phones, which is most of them here. */
.gframe { display: block; width: 100%; height: calc(100vh - 230px); height: calc(100dvh - 230px); min-height: 380px; border: 0; border-radius: var(--r); background: #0b1740; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair); }
.gbar { align-items: center; gap: 10px; margin-bottom: 10px; }
.gbar .gname { margin: 0; font: 600 1rem/1.2 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--muted); }

/* Paid advertising (js/sponsor.js). Deliberately quiet and deliberately labelled: an advert that tries to look like
   part of the app is a trick, and the person reading this screen has been tricked enough. The word "Advert" sits
   above it, the box is plainly a box, and it never uses the gold reserved for the app's own primary actions. */
.spon { margin: 1.4em 0; padding: 12px; border-radius: var(--r); background: rgba(10, 22, 64, .55); box-shadow: inset 0 0 0 1px var(--line); }
.spon-tag { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border-radius: 999px; font: 800 .72rem/1.5 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: rgba(63, 124, 203, .3); }
.spon a { display: block; text-decoration: none; color: inherit; border-radius: calc(var(--r) - 4px); overflow: hidden; }
.spon img { display: block; width: 100%; height: auto; border-radius: calc(var(--r) - 4px); }
.spon-line { display: block; margin: 8px 2px 0; font-weight: 700; }
.spon-fine { margin: 8px 2px 0; font-size: .82rem; opacity: .75; }

/* Hold-to-call on the 911 buttons (js/hold.js). Tim, 2026-10-14: "make sure the 911 button needs to be held down so
   it doesn't get bumped by accident." The fill is currentColor because this same class sits on three differently
   coloured buttons - dark red on the home screen, gold on the health screen - and a fixed colour would vanish on one
   of them. The callout/select suppression is for touch: a long press on a tel: link normally raises the phone's own
   "Call / Copy" sheet, which would land on top of the button halfway through the hold. */
.hold911 { overflow: hidden; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.hold911::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: currentColor;
  opacity: .85; border-radius: 0 3px 3px 0; pointer-events: none; z-index: 1; }
.hold911.holding::after { animation: hold911fill 700ms linear forwards; }   /* must match HOLD_MS in js/hold.js */
.hold911.held::after { width: 100%; }
@keyframes hold911fill { from { width: 0; } to { width: 100%; } }
.btn .holdhint { font: 600 .78rem/1.2 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; opacity: .92; }

/* The four-day strip, in the same card as the reading for right now. Tim, 2026-10-14: "weather needs to show real
   time weather and 4 day forecast all in one window." Four equal columns rather than a scroller, because a strip you
   have to swipe hides the day you were looking for; at 390px four columns leave about 85px each, which holds a short
   weekday, an icon and two numbers. The low is dimmed so the high reads first at a glance. */
.wxdays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.wxday { display: grid; justify-items: center; gap: 2px; text-align: center; }
.wxday b { font: 700 .82rem/1.2 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wxdi { display: inline-flex; color: var(--gold); }
.wxdi .ic { width: 24px; height: 24px; }
.wxhi { font: 700 1.05rem/1.2 var(--font-display); }
.wxlo { font: 600 .92rem/1.2 var(--font-display); opacity: .62; }

/* Live emergency-department wait (js/erwait.js). Deliberately NOT red and NOT the same badge as "Open right now":
   a wait time is information, not a verdict, and a person reading it is already frightened enough. It sits on its
   own line with the source and the time it was read directly underneath, because an unattributed number on a
   hospital row would look like a promise this app is in no position to make. */
.erwrap { display: block; margin: 6px 0 2px; }
.erwrap[hidden] { display: none; }
.erwait { display: inline-block; padding: 4px 10px; border-radius: 99px; background: rgba(143, 188, 240, .16);
  box-shadow: inset 0 0 0 1px rgba(143, 188, 240, .5); color: #cfe2fb; font: 800 .94rem/1.25 var(--font-display); }
.erwait-src { display: block; margin-top: 3px; font-size: .78rem; opacity: .7; }
.erwait-note { background: rgba(244, 204, 51, .14); box-shadow: inset 0 0 0 1px rgba(244, 204, 51, .5); color: #f6e3a4; }
/* A temporarily closed emergency department (Nova Scotia publishes these as their own feed). This is the only
   place in the app that uses red, and it has earned it: every other state here is "how long", this one is
   "the door is locked", and somebody reading it at 3 a.m. has to see the difference before they read the words. */
.erwait-shut { background: rgba(214, 94, 94, .18); box-shadow: inset 0 0 0 1px rgba(214, 94, 94, .62); color: #ffc9c9; font-weight: 700; }

/* ---------- Brand flow (Tim, 2026-10-14: "i need more brand logos through out the application and use the logo
   gold for more things so it all has a flow").
   The rule at the top of this file says gold is only for the thing you should press, and that rule is WORTH KEEPING:
   if gold goes everywhere at full strength, nothing is the button any more and the app stops telling a frightened
   person where to tap. So this block does not break it, it extends it into two strengths:
     FULL gold  (var(--g-gold), var(--shadow-gold))  still means PRESS THIS. Nothing below uses it.
     QUIET gold (.1 to .2 alpha, and the mark itself)  means THIS IS GETTING BY. Edges, headings, watermarks.
   The mark is app/img/logo-heart.png, 180x154 native and never drawn above 36px here, so it stays sharp on a 3x
   phone. Where it appears as a silhouette it is used as a MASK, so it picks up the gold token rather than carrying
   its own two colours at 18px, where the blue ribbon would turn to mud. */

/* Second-level headings carry the mark. These are the section headers inside a screen - "Emergency departments",
   "Free TV and movies" - and they were the one piece of structure with no brand on it at all. */
h2:not(.hero h2)::before {
  content: ""; display: inline-block; vertical-align: -.1em; width: 20px; height: 20px; margin-right: 9px;
  background: var(--g-gold);
  -webkit-mask: url(../img/logo-heart.png) center / contain no-repeat;
  mask: url(../img/logo-heart.png) center / contain no-repeat;
}

/* The mark, very quietly, in the corner of the two card surfaces that carry the app's own voice: .notice is where
   Getting By tells you what to do first, .slab is where it reports something. Not on .res list cards - there are
   forty of those on a screen and forty watermarks is wallpaper, not branding. */
.notice, .slab { position: relative; isolation: isolate; overflow: hidden; }
.notice::after, .slab::after {
  content: ""; position: absolute; right: -14px; bottom: -18px; width: 104px; height: 89px; z-index: -1;
  background: url(../img/logo-heart.png) center / contain no-repeat;
  opacity: .07; pointer-events: none;
}
.slab::after { opacity: .05; }

/* Quiet gold on the lit edge of every list card and glass surface, so the whole page shares one light instead of
   the cards being blue and the buttons being gold with nothing between them. */
.res > li, .slab { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(244, 204, 51, .16); }
.wxdays { border-top-color: rgba(244, 204, 51, .22); }

/* The fine print at the foot of a screen signs off with the mark, the way the website does. */
.fine.sign::before {
  content: ""; display: inline-block; vertical-align: -.15em; width: 16px; height: 14px; margin-right: 7px;
  background: var(--g-gold);
  -webkit-mask: url(../img/logo-heart.png) center / contain no-repeat;
  mask: url(../img/logo-heart.png) center / contain no-repeat;
  opacity: .8;
}

/* Trivia (js/trivia.js). The rules the screen has to carry in its look, not just its code: there is NO CLOCK, you
   cannot lose, and a wrong answer shows you the right one. So nothing here flashes, counts down or goes red at you.
   A wrong pick is marked quietly and the right answer lights up in the app's own gold, because the point is to
   leave knowing the answer, not to be told off. Buttons are full width and 56px tall: this gets played one-handed,
   on a bus, on a cracked screen. */
.tq { padding: 18px 16px; border-radius: var(--r); background: var(--g-glass);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(244, 204, 51, .16); }
.tqtop { justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tqcat { font: 700 .86rem/1.2 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--seam-ink);
  text-transform: uppercase; letter-spacing: .06em; }
.tqq { margin: 4px 0 16px; font: 800 1.35rem/1.3 var(--font-display); text-wrap: balance; }
.tqa { display: grid; gap: 10px; }
.btn.tqbtn { width: 100%; min-height: 64px; justify-content: center; text-align: center; font-size: 1.08rem; }
.btn.tqbtn[disabled] { opacity: 1; }                       /* answered, not unavailable: keep it readable */
.btn.tqbtn.tqok { background: var(--g-gold); color: var(--goldink); font-weight: 800; box-shadow: var(--shadow-gold); }
.btn.tqbtn.tqno { background: #2a1116; color: #ffb3bf; box-shadow: inset 0 0 0 1px #7a2634; }
.tqsay { margin: 12px 0 0; min-height: 1.4em; font-weight: 700; color: var(--ice); }
.btn.tqnext { margin-top: 12px; width: 100%; }

/* Tim, 2026-10-15: "these buttons that say get there and share, they all need to match. Above. Because the buttons
   above are lame and shitty ... It needs to have a cohesive flow to it."
   Measured first: Get there, Share and Call already wore the site's 3D pill (a solid side wall, boxShadow `0 4px 0`),
   and nothing above them did - the town pill, the weather chip, Quick exit, the filter chips, the star and the
   "Not sure what to say?" bar were all flat glass with a hairline ring. They now wear the SAME skin, from the same
   four tokens (--lit, --shade, --wall, --cast). Blue face = gold wall; the selected / saved state flips to the gold
   face with a blue wall; the two "act now" controls stay red, with a dark red wall. Sizes and layout are untouched:
   the 64px floor stays. This block is last on purpose so it beats the flat rules above it. */
.townbtn, .wxchip, .chip, .star, details.say > summary {
  --face: var(--g-blue); --txt: var(--gold); --txt-shadow: 0 1px 1px rgb(8 20 56 / .55);
  --lit: rgb(255 233 138 / .75); --shade: rgb(142 89 8 / .55); --wall: var(--gold-mid); --cast: rgb(211 158 21 / .4);
  background: var(--face); color: var(--txt); text-shadow: var(--txt-shadow); border: 0;
  box-shadow: inset 0 1px 0 var(--lit), inset 0 -2px 5px var(--shade), 0 4px 0 var(--wall), 0 9px 20px var(--cast);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.chip[aria-current="true"], .chip[aria-pressed="true"], .star[aria-pressed="true"] {
  --face: var(--g-gold); --txt: var(--goldink); --txt-shadow: 0 1px 0 rgb(255 255 255 / .35);
  --lit: rgb(255 255 255 / .8); --shade: rgb(16 45 111 / .5); --wall: var(--brand-blue); --cast: rgb(47 107 255 / .5);
}
.btn.exit, .wxchip.danger {
  --face: linear-gradient(180deg, #e23a58 0%, #c92a47 45%, #9e1b30 100%); --txt: #fff; --txt-shadow: 0 1px 1px rgb(60 0 10 / .5);
  --lit: rgb(255 255 255 / .4); --shade: rgb(60 0 10 / .5); --wall: #6e1226; --cast: rgb(158 27 48 / .5);
  background: var(--face); color: var(--txt); text-shadow: var(--txt-shadow);
  box-shadow: inset 0 1px 0 var(--lit), inset 0 -2px 5px var(--shade), 0 4px 0 var(--wall), 0 9px 20px var(--cast);
}
.townbtn:active, .wxchip:active, .chip:active, .star:active, details.say > summary:active, .btn.exit:active {
  transform: translateY(3px); filter: none;
  box-shadow: inset 0 2px 6px var(--shade), 0 1px 0 var(--wall), 0 2px 6px var(--cast);
}
@media (hover: hover) and (pointer: fine) {
  .townbtn:hover, .wxchip:hover, .chip:hover, .star:hover, details.say > summary:hover { transform: translateY(-2px); filter: brightness(1.1);
    box-shadow: inset 0 1px 0 var(--lit), inset 0 -2px 5px var(--shade), 0 6px 0 var(--wall), 0 14px 28px var(--cast); }
}
.star { color: var(--gold); }
.star[aria-pressed="true"] { color: var(--goldink); }
.wxchip.danger .ic { color: #fff; }
/* the "what to say" disclosure is now a button, so the box around it goes; the script text sits on the page */
details.say { background: none; box-shadow: none; border-radius: 0; }
details.say > summary { border-radius: 12px; padding: 10px 22px; list-style-position: inside; }
details.say[open] > summary { margin-bottom: 12px; }
details.say .inner { padding: 0 6px 12px; }
.chip { min-width: 84px; justify-content: center; text-align: center; }   /* a one-word chip ("Food") was a 65px circle; a button is a pill */
details.say { margin-bottom: 20px; }   /* the button's wall and glow need air before the first card */

/* First screen: the one-tap "Yes, I'm in X" answer sits on its own, not squeezed into the list's box. */
#yes { margin: 14px 0 6px; }
#yes .btn { min-height: 72px; font-size: 1.2rem; }
#yes .notyet { margin: 14px 2px 0; }
/* 911 is the one call that is deliberately not gold. It keeps its burgundy and gets the same wall as every other button. */
.calls .btn.hold911, .calls .btn:last-child {
  --face: linear-gradient(180deg, #5a2238 0%, #3a1727 45%, #2b1320 100%); --txt: #ffd6dd; --txt-shadow: 0 1px 1px rgb(0 0 0 / .5);
  --lit: rgb(255 190 200 / .32); --shade: rgb(0 0 0 / .5); --wall: #14070f; --cast: rgb(176 65 88 / .45);
  background: var(--face); color: var(--txt);
  box-shadow: inset 0 1px 0 var(--lit), inset 0 -2px 5px var(--shade), 0 4px 0 var(--wall), 0 9px 20px var(--cast);
}

/* Your day (js/day.js): the short briefing at the top of Home, and the first-run questions. */
.dayslab { margin: 0 0 14px; }
.dayl { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.dayline { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.dayline .gi { flex: none; width: 28px; height: 28px; color: var(--gold); }
.dayline .gi svg { width: 28px; height: 28px; }
.dayline .btn { margin-top: 10px; display: flex; }
.needgo { margin: 0 0 14px; min-height: 72px; font-size: 1.15rem; }
.startstep { margin: 6px 0 0; text-transform: uppercase; letter-spacing: .06em; }
.dayfirst .dayline { font-size: 1.2rem; font-weight: 600; }
.daymore { margin: 12px 0 0; }
.daymore > summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 48px; display: flex; align-items: center; }
.daymore > summary { --face: var(--g-blue); --txt: var(--gold); --txt-shadow: 0 1px 1px rgb(8 20 56 / .55); --lit: rgb(255 233 138 / .75); --shade: rgb(142 89 8 / .55); --wall: var(--gold-mid); --cast: rgb(211 158 21 / .4);
  background: var(--face); color: var(--txt); text-shadow: var(--txt-shadow); border-radius: 12px; padding: 10px 22px; min-height: 64px;
  box-shadow: inset 0 1px 0 var(--lit), inset 0 -2px 5px var(--shade), 0 4px 0 var(--wall), 0 9px 20px var(--cast); list-style-position: inside; }
.daymore > summary:active { transform: translateY(3px); box-shadow: inset 0 2px 6px var(--shade), 0 1px 0 var(--wall), 0 2px 6px var(--cast); }
.daymore[open] > summary { margin-bottom: 12px; }

/* 9-8-8 / 2-1-1 / 911: bigger and heavier (Tim, 2026-10-16: "make the text take up 75% of the box and much more
   bold and thick"). These three are the only controls on the screen that work with no data and no battery to
   spare, so they are allowed to shout. Appended, so every gradient, inset and glow set on .btn above still applies
   - this changes size and weight only. The number scales with the viewport because at 375px each button is only
   about 107px wide and a fixed size would push "Hold to call" onto two lines. */
.calls .btn {
  min-height: 72px; padding: 6px 7px; gap: 0;
  font-size: clamp(2.35rem, 9.5vw, 2.6rem); font-weight: 900; line-height: 1.02; letter-spacing: 0;
}
.calls .btn.gold { font-weight: 900; }
.calls small {
  font: 800 clamp(.8rem, 3vw, .98rem)/1.15 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  opacity: 1; letter-spacing: .01em;
}
/* 911's hint has its own rule at .btn .holdhint; match the other two so all three read the same weight. */
.calls .btn .holdhint {
  font: 800 clamp(.8rem, 3vw, .98rem)/1.15 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  opacity: 1; letter-spacing: .01em;
}

/* ===== THE TOP CARD: the brand band and the weather station in one box =====
   Tim, 2026-10-16: "combine both of these into the weather", and use CityVibe's weather layout because the old
   one looked cheap. So the Getting By band and the weather are now one card with one edge round both, and the
   weather inside it is CityVibe's shape: big condition icon beside the temperature, four readings, four days.
   Appended: the .hero and .slab rules above are untouched, their chrome is just switched off INSIDE .topcard. */
.topcard {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 0 10px; border-radius: var(--r-tile, 26px);
  background: var(--g-night, linear-gradient(170deg, #0f2a6e 0%, #0a1a4a 55%, #071235 100%));
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--edge);
}
.topcard .hero-brand { margin: 0; border-radius: 0; box-shadow: none; background: none; padding: 16px 18px 6px; }
.topcard .hero-brand .hero-bg { display: none; }     /* the card already has the background; two of them muddies it */
.topcard #wxBox { margin: 0; border-radius: 0; box-shadow: none; background: none; padding: 2px 16px 16px; }
.topcard #wxBox[hidden] { display: none; }

/* ---- the weather station, as CityVibe draws it (Tim, 2026-10-18: "look at the cityvibe weather and forecast that is
   the way the getting by should look"): a sky scene with the reading in it, four dark readings, the sun's day as a
   bar, and five days with the moon under each. The numbers stay Getting By's gold on navy. ---- */
.wxc { display: grid; gap: 12px; }
.wxc-ico { flex: 0 0 auto; display: block; }
.wxc-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 168px; padding: 15px 15px; border-radius: 18px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), 0 6px 18px rgb(2 7 26 / .4);
  background: linear-gradient(180deg, #2c5b9e 0%, #5b8fd1 55%, #9cc4ee 100%); }
.wxc-hero[data-sky="clear"] { background: linear-gradient(180deg, #1f5fbf 0%, #4f97e8 55%, #a8d4ff 100%); }
.wxc-hero[data-sky="cloud"] { background: linear-gradient(180deg, #4a6d9a 0%, #7f9fc6 60%, #b9cde3 100%); }
.wxc-hero[data-sky="fog"] { background: linear-gradient(180deg, #5d6878 0%, #8c96a4 60%, #b5bcc6 100%); }
.wxc-hero[data-sky="rain"] { background: linear-gradient(180deg, #2b3647 0%, #45546a 60%, #64748b 100%); }
.wxc-hero[data-sky="snow"] { background: linear-gradient(180deg, #52647d 0%, #8497b0 60%, #c7d3e3 100%); }
.wxc-hero[data-sky="storm"] { background: linear-gradient(180deg, #0d1119 0%, #1f2632 60%, #333c4b 100%); }
.wxc-hero[data-sky="night"] { background:
  radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent), radial-gradient(1.2px 1.2px at 27% 68%, #dfe8ff, transparent),
  radial-gradient(1.4px 1.4px at 43% 16%, #fff, transparent), radial-gradient(1px 1px at 55% 78%, #cfdcff, transparent),
  radial-gradient(1.5px 1.5px at 63% 34%, #fff, transparent), radial-gradient(1px 1px at 88% 80%, #dfe8ff, transparent),
  radial-gradient(1.2px 1.2px at 94% 18%, #fff, transparent), radial-gradient(1px 1px at 6% 84%, #cfdcff, transparent),
  radial-gradient(ellipse 120% 90% at 78% 10%, #1b2a55 0%, #0a1024 55%, #03050d 100%); }
.wxc-hero-txt { position: relative; z-index: 1; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 9px 8px 8px; border-radius: 12px;
  background: rgb(8 14 34 / .66); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
.wxc-hero[data-sky="night"] .wxc-hero-txt, .wxc-hero[data-sky="storm"] .wxc-hero-txt { background: none; box-shadow: none; padding-left: 0; }
.wxc-hero-ico { position: relative; z-index: 1; flex: 0 1 auto; display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgb(2 7 26 / .5)); }
/* The living sky: a canvas js/look.js#mountSkyFX draws into, sitting behind the text and icon (both z-index:1 above
   it) and in front of the plain gradient. Starts invisible so the first animation frame is already drawn under it
   before it fades in, never a flash of an empty canvas. */
.wxc-sky { position: absolute; inset: 0; z-index: 0; display: block; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.wxc-sky.on { opacity: 1; }

/* The sky icon gives way to the words. It is drawn at 108px by more.js, which is right on a roomy screen, but the
   hero is a flex row and at 375px that left the text column 157px - enough to break "Feels 10 / H 16 / L 5" onto
   two lines. The icon is the decoration and the numbers are the point, so the icon scales with the screen and the
   text keeps the space it needs. */
.wxc-hero-ico .wxc-ico, .wxc-hero-ico .moon-phase { width: clamp(72px, 24vw, 108px); height: auto; }
/* BIGGER, SO IT READS FROM ARM'S LENGTH. Tim, 2026-10-20: "the weather has to stay at the top. And if you can
   make it double the size so I can see it closer." Everything on this card is scaled together - temperature,
   description, the four stats, the sun bar and the five-day row - because somebody sheltering looks at this with
   the phone propped up, not held to their face. The card keeps its place at the very top of Home.
   Literally doubling it was tried first and measured at 375x812: the hero is a flex row holding the words AND the
   sky icon, so a 6rem temperature forced "See the forecast" onto two lines, broke "Feels 10 / H 16 / L 5" across
   three, and pushed three of the four stats off the card entirely. These are the largest sizes that keep every
   line of this card intact on the narrowest phone, which is about 35% up rather than 100%. */
.wxc-temp { font: 700 clamp(3.5rem, 15vw, 4.5rem)/1 var(--font-display); color: var(--gold); letter-spacing: -.01em; text-shadow: 0 2px 6px rgb(2 7 26 / .55); }
.wxc-temp-u { font-size: .36em; font-weight: 600; color: #ffcd8a; margin-left: 3px; vertical-align: .55em; }
.wxc-desc { margin-top: 3px; font: 700 1.34rem/1.2 var(--font-display); color: #fff; text-shadow: 0 1px 3px rgb(2 7 26 / .6); }
.wxc-feels { font-size: 1rem; font-weight: 600; color: #ffcd8a; }
.wxc-moon { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: .88rem; font-weight: 600; color: #e3ebff; }
.wxc-moon .moon-phase { flex: 0 0 auto; filter: drop-shadow(0 0 3px rgb(255 250 230 / .25)); }

.wxc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wxc-stat { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 2px 10px; text-align: center; border-radius: 12px;
  background: rgb(4 10 32 / .55); border: 1px solid rgb(143 178 255 / .18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), inset 0 0 0 1px rgb(2 7 26 / .3); }
.wxc-stat-v { font: 700 1.42rem/1 var(--font-display); color: #eef2ff; }
.wxc-stat-v em { font-style: normal; font-size: .62em; font-weight: 600; color: var(--muted, #b9c4e8); margin-left: 2px; }
.wxc-stat-l { font: 700 .74rem/1.1 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted, #b9c4e8); }

.wxc-sunbar { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.wxc-sun-end { font: 700 1.1rem/1 var(--font-display); color: #ffcd8a; white-space: nowrap; }
.wxc-sunbar-track { position: relative; flex: 1; height: 10px; border-radius: 99px; background: rgb(255 255 255 / .12);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .6), 0 1px 0 rgb(255 255 255 / .06); }
.wxc-sunbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #ff6a00, #ffb000 60%, #ffe066); box-shadow: 0 0 10px rgb(255 150 0 / .55); }
.wxc-sunbar-dot { position: absolute; top: 50%; left: 0; width: 19px; height: 19px; margin-left: -9.5px; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7c2, #ffc233 55%, #ff8a00); box-shadow: 0 0 12px rgb(255 190 40 / .95), 0 0 0 2px rgb(0 0 0 / .35); }

.wxc-forecast { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding-top: 10px; border-top: 1px solid rgb(143 178 255 / .16); }
.wxc-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; border-radius: 14px; }
.wxc-day-n { font: 700 .94rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: #eef2ff; }
.wxc-day .wxc-ico { filter: none; }
.wxc-day-t { display: flex; gap: 4px; align-items: baseline; font-size: 1.06rem; }
.wxc-day-t b { color: #eef2ff; font-weight: 700; }
.wxc-day-t i { color: var(--muted, #b9c4e8); font-style: normal; }
.wxc-day-p { font-size: .8rem; color: var(--muted, #b9c4e8); min-height: 1em; }
.wxc-day-p.wet { color: #8fb2ff; font-weight: 700; }
.wxc-day-moon { display: block; margin-top: 2px; line-height: 0; opacity: .9; }
.wxc-day-moon .moon-phase { display: inline-block; }

/* 9-8-8 asks call or text when it is pressed; the two answers sit right under the row. */
.choose988 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.choose988[hidden] { display: none; }
.choose988 .btn { min-height: 58px; font-size: 1.1rem; }

@media (max-width: 380px) {
  .wxc-stats { gap: 2px; }
  .wxc-stat-l { font-size: .68rem; letter-spacing: .03em; }
}

/* ===== CHAT: one person to one person =====
   The share code is the whole identity, so it is printed big enough to read out loud down a phone line in a
   noisy place. Block and Report sit at the top of a conversation, not in a menu: on the one screen in this app
   where two people can talk unseen, the way out has to be the easiest thing to find. */
.chatcode { margin: 2px 0 6px; font: 800 clamp(1.5rem, 7vw, 2rem)/1.1 var(--font-display);
  color: var(--gold); letter-spacing: .08em; }
.chatwrap { display: flex; flex-direction: column; gap: 10px; }
.chatacts { gap: 8px; }
.chatacts .btn.danger, .dcrisis .btn.danger { --face: linear-gradient(180deg, #5a2030 0%, #35141f 100%); --txt: #ffd6dd;
  --wall: #b04158; --cast: rgb(176 65 88 / .4); }
/* Getting By dispatch light (2026-11-12). Green and red are never the only signal: the words say it too, so a
   person who cannot tell the two colours apart reads "Online now" or "Offline right now". */
.dlight { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; white-space: nowrap; }
.dlight i { width: 11px; height: 11px; flex: none; border-radius: 50%; background: #8a93a8; box-shadow: 0 0 0 2px rgb(255 255 255 / .18); }
.dlight.on { color: #7ef0ac; }
.dlight.on i { background: #2fbf71; box-shadow: 0 0 0 2px rgb(47 191 113 / .35), 0 0 10px #2fbf71; }
.dlight.off { color: #ffb4a0; }
.dlight.off i { background: #f0643c; box-shadow: 0 0 0 2px rgb(240 100 60 / .35); }
.dlight.nosig, .dlight.wait { color: var(--muted, #b8c2dc); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .dlight.on i { animation: dpulse 2.4s ease-in-out infinite; } }
@keyframes dpulse { 50% { box-shadow: 0 0 0 5px rgb(47 191 113 / .12), 0 0 14px #2fbf71; } }
.dstatus { margin: 6px 0 2px; font-size: 1.15rem; }
.gbar #dLight { margin-left: auto; }
.chatlog { list-style: none; margin: 0; padding: 4px 2px; display: flex; flex-direction: column; gap: 8px;
  min-height: 42vh; max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cmsg { max-width: 82%; padding: 10px 14px; border-radius: 18px; }
.cmsg p { margin: 0; overflow-wrap: anywhere; }
.cmsg.mine { align-self: flex-end; background: var(--g-gold, linear-gradient(180deg, #FFE98A, #D39E15));
  color: #0a1640; border-bottom-right-radius: 6px; }
.cmsg.theirs { align-self: flex-start; background: rgb(8 16 48 / .72); color: var(--ink, #eef2ff);
  box-shadow: inset 0 0 0 1px var(--edge, rgb(143 178 255 / .22)); border-bottom-left-radius: 6px; }
.cwhen { display: block; margin-top: 3px; font-size: .68rem; opacity: .7; }
.chatsend { display: flex; gap: 8px; align-items: flex-end; }
.chatsend textarea { flex: 1 1 auto; min-height: 52px; resize: none; }
.chatsend .btn { flex: 0 0 auto; min-width: 64px; }

/* ---------- Free Wi-Fi locations: map first, then the one you picked ---------- */
/* Tim, 2026-10-16: "It should say free Wi-Fi locations, then the map comes up, and then they pick one, and then it
   shows." The map gets real height on purpose - a 200px map on a 375px phone is a postage stamp nobody can aim a
   cold thumb at - and the picked place sits directly under it, so the map and the answer are on screen together.
   Tokens only, borrowed from .slab, so this frame is the same glass as every other panel in the app. */
.wifimap { height: 440px; border-radius: var(--r); overflow: hidden; margin: 0 0 12px;
  background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); }
.wifimap .wifiload { padding: 16px; }
.wifipick { margin: 0 0 12px; }
.wifione h3 { margin: 0 0 8px; }
.wifione p { margin: 0 0 6px; }

/* ================================================================================================================
   v0.8  THE CHROME PASS, 2026-10-16.

   Tim gave two reference pictures and said the app is to look like them:
     Copilot_20261016_215637.png - the tab bar: a glossy slab with a chrome rail, five lit 3D icons on it.
     Copilot_20261016_113901.png - the home screen: every panel in a THICK CHROME FRAME with blue light burning
                                   inside it, 9-8-8 and 2-1-1 as heavy bevelled gold slabs, 911 the same in red.

   WHERE THE NUMBERS COME FROM. Not from my eye. From the design database the web-craft skill points at,
   ui-ux-pro-max/data/styles.csv, which is the thing this house builds against. The two pictures are rows 13
   (Skeuomorphism) and 40 (Y2K Aesthetic), with row 5 (3D & Hyperrealism) supplying the palette:

     row 13  Design System Variables : --gradient-stops: 8-12, --shadow-layers: 3+,
                                       --texture-overlay: noise+grain, --depth-effect: pronounced
             CSS/Technical Keywords  : background: complex gradient (8-12 stops), box-shadow: realistic
                                       multi-layer, background-image: texture overlay (noise, grain)
     row 40  Design System Variables : --chrome-silver: #C0C0C0,
                                       --glossy-gradient: linear-gradient(180deg, white 0%, transparent 50%),
                                       --glow-blur: 10px
             Effects & Animation     : linear-gradient metallic, glossy buttons, 3D chrome effects
     row  5  Primary Colors          : Deep Navy #001F3F, Gold #FFD700, Silver #C0C0C0
             Secondary Colors        : complex gradients (5-10 stops), shadow variations (20-40% darker)

   The first attempt at this screen used THREE-stop gradients and a 1px white line for the frame. Against a spec
   that says eight to twelve stops and a metallic ramp, that is why it read as flat next to the picture. Every
   ramp below is counted in its own comment.

   APPENDED, never edited in place. Every gradient layer, radial gradient, box-shadow, rgba and glow in the v0.6
   system above this line is untouched - nothing up there has been flattened, merged, shortened or reinterpreted.

   ONE DISAGREEMENT, written down rather than quietly decided: on 2026-10-14 Tim asked for gold ink on every blue
   surface. Both pictures put WHITE on the blue panels and keep gold for the brand, the gold slabs' numbers and the
   icon tiles. The pictures are the newer instruction, so white it is - and gold still carries the brand, the .tag
   bars, the slabs and the tiles, which is where both pictures use it. Two tokens flip it back.
   ================================================================================================================ */
:root {
  /* ---- the materials ---- */

  /* CHROME. Eleven stops. A real polished edge is not a pale line, it is a run of light-dark-light bands: the
     horizon flip at 50% is what makes the eye read "metal" instead of "grey gradient". #C0C0C0 from row 40 sits
     in the middle of this ramp; the rest is that silver walked up to white and down to a blue-grey shadow,
     because chrome on a blue panel picks the blue up. */
  --chrome: linear-gradient(180deg,
    #ffffff 0%, #eaf3ff 5%, #c6dbf3 12%, #93b2d8 21%, #6484b4 30%,
    #c0c0c0 40%, #ffffff 50%, #b9cfe9 59%, #7f9cc6 69%, #5a7aa8 79%,
    #a9c5e4 90%, #f2f8ff 100%);
  /* the same metal lit from the other side, for a rail that sits under something */
  --chrome-under: linear-gradient(180deg,
    #f2f8ff 0%, #a9c5e4 12%, #5a7aa8 26%, #7f9cc6 38%, #ffffff 50%,
    #c0c0c0 62%, #6484b4 74%, #93b2d8 85%, #eaf3ff 95%, #ffffff 100%);

  /* BLUE GLASS. Ten stops. The picture's panels are bright at the top where the light is and fall to near-navy at
     the bottom, with the fall accelerating - that is why the stops bunch up towards the end rather than spacing
     evenly. An even ramp is the thing that looks computer-generated. */
  --panel-blue: linear-gradient(180deg,
    rgba(96, 158, 255, .44) 0%, rgba(66, 128, 238, .36) 7%, rgba(46, 100, 210, .31) 16%,
    rgba(32, 78, 180, .30) 27%, rgba(24, 60, 150, .34) 40%, rgba(19, 48, 124, .43) 54%,
    rgba(15, 38, 101, .57) 67%, rgba(12, 30, 82, .71) 79%, rgba(10, 24, 68, .83) 90%,
    rgba(8, 19, 57, .91) 100%);

  /* GOLD SLAB. Ten stops, the website's own #F6C522 at the fourth. 9-8-8 and 2-1-1 in the picture. */
  --slab-gold: linear-gradient(180deg,
    #fffbe8 0%, #ffef9c 6%, #ffdd52 15%, #f6c522 30%, #eab91d 43%,
    #dba817 55%, #ca9611 67%, #b8830c 79%, #a26e09 90%, #8e5908 100%);
  /* RED SLAB. Ten stops. 911, and Quick exit at a smaller size. */
  --slab-red: linear-gradient(180deg,
    #ffe3e6 0%, #ff9aa3 6%, #ff6470 15%, #f23346 30%, #e01e34 43%,
    #c9152a 55%, #b11021 67%, #980b19 79%, #7e0712 90%, #66040f 100%);
  /* GREEN TILE. Ten stops. The "open now" pin tile in the picture. */
  --slab-green: linear-gradient(180deg,
    #e8fff4 0%, #9ff0c6 7%, #5fd79e 17%, #3fb37a 32%, #35a06c 45%,
    #2c8d5e 57%, #237a50 69%, #1b6743 80%, #145436 90%, #0e4229 100%);

  /* row 40: --glossy-gradient: linear-gradient(180deg, white 0%, transparent 50%). Used verbatim as the sheen
     that sits over the top half of every slab and tile. */
  --glossy: linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .18) 32%, rgba(255, 255, 255, 0) 50%);
  --glow-blur: 10px;   /* row 40 */

  /* row 13: --texture-overlay: noise+grain. One inline SVG turbulence, so there is no file to fetch and the
     app's `default-src 'self'` with `img-src 'self' data:` lets it through. It is what stops a big flat gradient
     looking like a big flat gradient. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");

  /* row 13: --shadow-layers: 3+. Five here: the inner top light, the inner wash, the inner floor shade, the
     contact shadow and the cast. Row 5: shadow variations 20-40% darker. */
  --lit-inside:
    inset 0 16px 32px -12px rgba(120, 186, 255, .62),
    inset 0 0 48px rgba(46, 114, 255, .30),
    inset 0 -18px 30px -16px rgba(3, 9, 32, .70);
  --halo-blue: 0 0 var(--glow-blur) rgba(70, 140, 255, .50), 0 6px 0 -2px rgba(3, 9, 32, .55), 0 16px 34px rgba(2, 7, 26, .62);
  --halo-gold: 0 0 var(--glow-blur) rgba(246, 197, 34, .55), 0 5px 0 -1px #6b4206, 0 14px 30px rgba(2, 7, 26, .62);
  --halo-red:  0 0 var(--glow-blur) rgba(226, 30, 54, .58), 0 5px 0 -1px #4d030c, 0 14px 30px rgba(2, 7, 26, .62);

  /* the lightest point of a v0.8 panel, composited: --panel-blue's top stop rgba(96,158,255,.44) over the
     page navy #0a1640. tools/contrast.mjs checks the two inks below against THIS, not against v0.6's --glass-hi. */
  --glass-hi-2: #305294;
  --ink-on-glass: #ffffff;
  --ink-on-glass-2: #e4edfd;   /* the grey-blue the picture uses for a row's second line */
}

/* ---------------------------------------------------------------------------------------------------------------
   THE CHROME FRAME.
   Two background layers and a transparent border: the panel paints to the padding box, the metal paints to the
   border box, so the border IS the chrome. This is the only way to get a real metallic frame that follows a
   border-radius - an outline or a box-shadow ring can only ever be one flat colour.
   --------------------------------------------------------------------------------------------------------------- */
.slab, ul.group, .notice, .feature, .wifimap, .wifione, .empty, .itile {
  position: relative;
  border: 3px solid transparent;
  border-radius: var(--r);
  background: var(--panel-blue) padding-box, var(--chrome) border-box;
  box-shadow: var(--lit-inside), var(--halo-blue);
  background-origin: border-box;
}
/* the grain, and the gloss over the top half. Two pseudo-elements would collide with the ones v0.6 already uses
   on .itile, so both live in one ::before that sits behind the content. */
.slab::before, ul.group::before, .notice::before, .feature::before, .wifione::before, .empty::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: var(--glossy), var(--grain);
  background-size: auto, 140px 140px;
  mix-blend-mode: soft-light; opacity: .85;
}
.slab > *, ul.group > *, .notice > *, .feature > *, .wifione > *, .empty > * { position: relative; z-index: 1; }

/* A photo tile keeps its picture and gets the frame around it. The photo is inset:0 against the PADDING box, so
   it sits inside the metal rather than under it, which is what the picture does with its images. */
.itile { box-shadow: 0 0 var(--glow-blur) rgba(70, 140, 255, .40), 0 6px 0 -2px rgba(3, 9, 32, .55), 0 16px 34px rgba(2, 7, 26, .62); }
.itile::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  box-shadow: var(--lit-inside);
  background: var(--grain); background-size: 140px 140px; mix-blend-mode: soft-light; opacity: .5;
}
.itile b, .itile small, .itile .iico { position: relative; z-index: 1; }
/* rows inside a group are split by a lit hairline, the way the picture stacks its library rows */
ul.group > li + li > a, ul.group > li + li > button { box-shadow: inset 0 1px 0 rgba(160, 206, 255, .26); }

/* ---------- the ink the pictures use ---------- */
ul.group a, ul.group button, .slab, .notice, .itile, .feature, .wifione { color: var(--ink-on-glass); }
.gt b, .itile b, .feature b, .wifione h3 { color: var(--ink-on-glass); }
.gt small, .itile small, .feature .sub, .wifione p { color: var(--ink-on-glass-2); }
.tag, h1, h2 { color: var(--ink-on-glass); }
.hero .brand { color: var(--gold); }
/* The add-to-home guide (vendor/adhs) draws a white card with an h1 title; the h1 rule above turned it white on white. */
.adhs-container h1 { color: inherit; text-shadow: none; }

/* ---------------------------------------------------------------------------------------------------------------
   9-8-8 and 2-1-1 in bevelled gold, 911 in glossy red. The picture's heaviest objects.
   --------------------------------------------------------------------------------------------------------------- */
.calls .btn {
  border: 3px solid transparent; border-radius: var(--r-ctl);
  background: var(--slab-gold) padding-box, var(--chrome) border-box;
  background-origin: border-box;
  color: var(--goldink); text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  box-shadow: inset 0 -10px 18px -8px rgba(110, 66, 6, .75), var(--halo-gold);
}
.calls .btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--glossy), var(--grain);
  background-size: auto, 140px 140px;
  mix-blend-mode: soft-light; opacity: .9;
}
.calls .btn > * { position: relative; z-index: 1; }
/* 911. v0.6 made it a dark outlined red so it would not compete with Quick exit; both pictures make it a solid
   glossy red slab, so that is what it is. Quick exit stays a different red and a different shape, so the two
   still do not read as the same control. */
.calls .btn:last-child {
  background: var(--slab-red) padding-box, var(--chrome) border-box;
  color: #fff; text-shadow: 0 1px 2px rgba(70, 0, 8, .65);
  box-shadow: inset 0 -10px 18px -8px rgba(77, 3, 12, .75), var(--halo-red);
}
.calls .btn:last-child small { color: #ffe0e4; }
.calls .btn:active { transform: translateY(3px); }
.calls .btn:active::after { opacity: .4; }

/* Quick exit: the picture's small glossy red tablet */
.btn.exit {
  border: 2px solid transparent; border-radius: 12px;
  background: var(--slab-red) padding-box, var(--chrome) border-box;
  background-origin: border-box; color: #fff;
  box-shadow: inset 0 -7px 12px -6px rgba(77, 3, 12, .7), var(--halo-red);
}

/* ---------------------------------------------------------------------------------------------------------------
   The icon tiles: rounded gradient squares in a chrome rim with a gloss across the top.
   --------------------------------------------------------------------------------------------------------------- */
.gi, .iico {
  position: relative; overflow: hidden;
  border: 2px solid transparent; background-origin: border-box;
  background: var(--tg, var(--panel-blue)) padding-box, var(--chrome) border-box;
  box-shadow: inset 0 -6px 10px -5px rgba(0, 0, 0, .55), 0 5px 12px rgba(2, 7, 26, .6);
}
.gi::after, .iico::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--glossy); mix-blend-mode: overlay; opacity: .9;
}
.gi .ic, .iico .ic { position: relative; z-index: 1; }
.t-gold { --tg: var(--slab-gold); --ti: #0a1640; }
.t-blue { --tg: var(--panel-blue); --ti: #fff; }
.t-ok   { --tg: var(--slab-green); --ti: #fff; --tint: linear-gradient(135deg, rgba(63, 179, 122, .34) 0%, rgba(63, 179, 122, 0) 58%); }

/* ---------------------------------------------------------------------------------------------------------------
   THE TAB BAR, from Copilot_20261016_215637.png.
   --------------------------------------------------------------------------------------------------------------- */
.tabs {
  /* ten stops: bright rail light at the top, the face falling away, and the bar's own floor catching a little
     light back at the very bottom, which is what the picture's reflection is doing */
  background: linear-gradient(180deg,
    rgba(72, 132, 240, .95) 0%, rgba(52, 106, 214, .95) 8%, rgba(38, 84, 184, .95) 18%,
    rgba(28, 66, 152, .96) 30%, rgba(21, 52, 124, .96) 44%, rgba(16, 40, 100, .97) 58%,
    rgba(12, 30, 78, .97) 70%, rgba(9, 22, 60, .97) 82%, rgba(11, 27, 72, .97) 93%,
    rgba(16, 38, 96, .97) 100%);
  box-shadow: inset 0 -1px 0 rgba(160, 206, 255, .25), 0 -14px 34px rgba(2, 7, 26, .66);
}
/* the chrome rail along the top edge. A real rail, not a line: the --chrome-under ramp, 4px of it. */
.tabs::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; pointer-events: none;
  background: var(--chrome-under);
  box-shadow: 0 0 calc(var(--glow-blur) + 6px) rgba(120, 185, 255, .75);
}
/* the pool of light each icon stands in */
.tabs a { position: relative; color: #eaf2ff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); gap: 3px; }
.tabs a::before {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 66%; height: 11px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--pool, rgba(96, 164, 255, .6)), transparent 100%);
  opacity: .8; pointer-events: none; transition: opacity 200ms var(--ease);
}
.tabs a[aria-current="page"] { color: #fff; }
.tabs a[aria-current="page"]::before { opacity: 1; height: 14px; }

.tabs .ic3 { width: 34px; height: 34px; }
.tabs a[data-tab="home"], .tabs a[data-tab="transit"] { --pool: rgba(80, 150, 255, .62); }
.tabs a[data-tab="deals"] { --pool: rgba(255, 90, 90, .58); }
.tabs a[data-tab="fun"]   { --pool: rgba(246, 197, 34, .60); }
.tabs a[data-tab="help"]  { --pool: rgba(255, 110, 110, .58); }
.tabs a[data-tab="home"] .ic3, .tabs a[data-tab="transit"] .ic3 {
  filter: drop-shadow(0 0 var(--glow-blur) rgba(72, 146, 255, .9)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.tabs a[data-tab="deals"] .ic3 {
  filter: drop-shadow(0 0 var(--glow-blur) rgba(255, 70, 80, .85)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.tabs a[data-tab="fun"] .ic3 {
  filter: drop-shadow(0 0 var(--glow-blur) rgba(255, 205, 50, .9)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.tabs a[data-tab="help"] .ic3 {
  filter: drop-shadow(0 0 var(--glow-blur) rgba(255, 90, 90, .85)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
/* v0.6 tinted the active icon gold. These carry their own colour, so the active one lifts and brightens instead,
   which is what the picture does. 300ms is row 13's --animation-duration floor; the PRESS stays instant on
   purpose, because touch-down feedback for cold hands beats a 400ms animation and that is not a style question. */
.tabs a .ic3 { transition: transform 300ms var(--ease); }
.tabs a[aria-current="page"] .ic3 { transform: translateY(-2px) scale(1.09); }
@media (prefers-reduced-motion: reduce) { .tabs a .ic3 { transition: none; } }
@media (max-width: 420px) { html[data-big="1"] .tabs .ic3 { width: 26px; height: 26px; } }

/* Backdrop-filter and this much layering is the one combination that can cost a frame on an old phone, so the
   two escape hatches v0.6 already provides are honoured: no blur, flat fills, frame kept. */
@media (prefers-reduced-transparency: reduce) {
  .slab, ul.group, .notice, .feature, .wifione, .empty { background: #12306f padding-box, var(--chrome) border-box; }
  .slab::before, ul.group::before, .notice::before, .feature::before, .wifione::before, .empty::before { opacity: .3; }
}

/* ---------------------------------------------------------------------------------------------------------------
   EVERY OTHER BUTTON. Tim: "I want the whole app to look like this", and the Help screen's filter pills were still
   the flat v0.6 skin while the slabs beside them had turned to metal.
   The v0.6 button keeps ALL of its structure - the lit top edge, the shaded base, the solid side WALL it presses
   down onto, the coloured cast shadow, the two skins trading gold and blue walls. Only two things change: --face
   goes from a 3-stop ramp to a 10-stop one, and a 2px chrome border is added. box-sizing is border-box app-wide,
   so the 64px outdoor tap floor is unchanged - measured, not assumed.
   --slab-blue is the website's OWN --g-blue (#1d4fd8 -> #13358f 45% -> #0A245A) sampled at ten points instead of
   three. Same colours, same path, nothing invented: row 13 asks for 8-12 stops and the site's ramp only had 3.
   --------------------------------------------------------------------------------------------------------------- */
:root {
  --slab-blue: linear-gradient(180deg,
    #1d4fd8 0%, #1b49c9 10%, #1943ba 20%, #1740ab 30%, #15399c 40%,
    #13358f 45%, #113080 58%, #0f2a72 72%, #0d2764 86%, #0a245a 100%);
}
.btn {
  --face: var(--slab-blue);
  border: 2px solid transparent; background-origin: border-box;
  background: var(--face) padding-box, var(--chrome) border-box;
}
.btn.gold, .btn[aria-pressed="true"] { --face: var(--slab-gold); }

/* ---------------------------------------------------------------------------------------------------------------
   HOME, to the reference picture (Copilot_20261016_113901.png). The order is set in js/app.js; these are the three
   things left that the picture does differently to v0.6.

   1. THE "WHAT DO YOU NEED?" CARDS ARE PLAIN BLUE GLASS, not photographs. The picture's Food and A-place-to-stay
      cards are a blue slab, a gold rounded-square icon tile, a heavy white title and a grey second line - no
      image at all. The photographs stay in the markup and are only hidden here, so this is one line to undo.
   2. THE "OPEN NOW NEAR YOU" PINS ARE GREEN in the picture, against the gold used for the map row.
   3. The brand band sat 58px below the header, which pushed the three phone numbers under the fold. In the
      picture the brand is tight to the top and the numbers are on the first screen - which is the whole point of
      them, so this is not a cosmetic change.
   --------------------------------------------------------------------------------------------------------------- */
.igrid .itile .ph { display: none; }
.igrid .itile {
  min-height: 150px;
  background: var(--panel-blue) padding-box, var(--chrome) border-box;
  background-origin: border-box;
}
.igrid .itile::before { background: var(--tint); }
.igrid .itile b { font-size: 1.28rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.igrid .itile small { color: var(--ink-on-glass-2); text-shadow: none; }

.nowcard .gi { --tg: var(--slab-green); --ti: #fff; }

.hero-brand { margin-top: 10px; min-height: 104px; padding-bottom: 12px; }
.hero-brand .hero-art { top: -18px; width: 132px; height: 141px; }
.hero + .calls, .topcard + .calls { margin-top: 12px; }
.topcard { margin-bottom: 4px; }

/* Two defects the first render of the new order showed, both measured on a 375x812 screen:
   1. "9-8-8" wrapped to "9-8-" / "8". The 3px chrome border plus v0.6's 18px side padding left about 65px of
      content box for five characters at 1.45rem. The number is the whole point of the button, so the padding
      gives way and the size becomes fluid - it never has to wrap, at any text setting.
   2. The plain need-cards washed out: --lit-inside is tuned for a full-width panel and on a 164px tile it put a
      bright bloom under white text. The tile keeps the bloom at a third of the strength and gets its bottom
      darkened again, the way the photo version always did, so the title holds its contrast. */
.calls .btn { padding-inline: 6px; white-space: nowrap; font-size: clamp(1.05rem, 5.9vw, 1.45rem); }
.calls .btn small { white-space: nowrap; font-size: clamp(.64rem, 2.9vw, .8rem); }
.igrid .itile::after {
  box-shadow: inset 0 10px 22px -14px rgba(120, 186, 255, .40), inset 0 -16px 26px -12px rgba(3, 9, 32, .55);
}
.igrid .itile::before {
  background: linear-gradient(180deg, rgba(6, 12, 40, 0) 38%, rgba(6, 12, 40, .34) 72%, rgba(6, 12, 40, .62) 100%), var(--tint);
}

/* The need-cards and the rows were coming out a washed grey-blue where the picture has a saturated one. Two
   causes, both measured by pulling the computed background apart: --panel-blue is translucent and its top stop
   (rgba(96,158,255,.44)) sits very light over the page, and --tint then laid a second pale wash over that. The
   cards now take the site's OWN solid ramp (--slab-blue, #1d4fd8 -> #0a245a) and the tint comes off them, which
   is both deeper and more on-brand than anything invented here. The gloss drops from .85 to .62 so the metal
   still reads but the face underneath keeps its colour. */
.igrid .itile {
  background: var(--slab-blue) padding-box, var(--chrome) border-box;
  background-origin: border-box;
}
.igrid .itile::before {
  background: linear-gradient(180deg, rgba(6, 12, 40, 0) 44%, rgba(6, 12, 40, .30) 74%, rgba(6, 12, 40, .58) 100%);
}
.slab::before, .notice::before, .feature::before, .wifione::before, .empty::before { opacity: .62; }
ul.group::before { opacity: .85; }

/* ---------------------------------------------------------------------------------------------------------------
   THE GLOSS WAS DROWNING THE TEXT. Tim, 2026-10-16: "your highlighting and your whiteness is too much, it drowns
   out the text".

   The cause, and it is a real bug rather than a taste call: --glossy is `linear-gradient(180deg, white 0%,
   transparent 50%)` and a percentage in a gradient is a percentage OF THE ELEMENT. On a 96px button that is a
   48px highlight, which is what it was designed as. On the "More help" list, which is six rows and about 420px
   tall, the same rule paints a 210px white wash - four whole rows sitting under near-white with white text on
   top of them.

   Real glass does not do that. A specular highlight is a fixed size set by the light source, not a proportion of
   how long the object is. So the gloss is now painted at a FIXED HEIGHT and not repeated: 72px on a list, 96px
   on a slab. A tall list gets a highlight on its top edge and clean glass under it; a short control looks exactly
   as it did. The grain stays tiled across the whole surface, because grain IS a proportion of area.

   Tim's alternative was to turn the text dark blue wherever it stays light. Not needed once the wash is gone -
   both reference pictures put WHITE text on blue, and that is what is back. If the light is ever wanted at full
   strength again, --ink-on-light below is the dark blue to switch the text to.
   --------------------------------------------------------------------------------------------------------------- */
:root { --ink-on-light: #0a1640; }

ul.group::before {
  background: var(--glossy), var(--grain);
  background-repeat: no-repeat, repeat;
  background-size: 100% 72px, 140px 140px;
  background-position: top left, top left;
  opacity: .62;
}
.slab::before, .notice::before, .feature::before, .wifione::before, .empty::before {
  background: var(--glossy), var(--grain);
  background-repeat: no-repeat, repeat;
  background-size: 100% 96px, 140px 140px;
  background-position: top left, top left;
  opacity: .55;
}
/* The need-cards are 167px, so half of one is 83px of wash over a title sitting at the bottom. Same fix, smaller. */
.igrid .itile::after { background-size: 140px 140px; }

/* The row text goes back to full strength now that nothing is washing it out. */
ul.group .gt b { color: #fff; text-shadow: 0 1px 2px rgba(3, 9, 32, .55); }
ul.group .gt small { color: var(--ink-on-glass-2); text-shadow: 0 1px 2px rgba(3, 9, 32, .45); }

/* Capping the gloss was only half of it. --panel-blue is ALSO a percentage ramp, so on the 732px "More help"
   list its light top stop (rgba(96,158,255,.44)) covered roughly 220px - six rows of near-white under white
   text. Same bug as the gloss, same fix: the bloom is painted at a fixed 180px and the body underneath is a
   SOLID medium-dark blue, so a list is the same colour whether it holds two rows or twenty.
   Measured, as tokens, so tools/contrast.mjs checks them rather than me eyeballing it:
     --row-base #13357f  the body
     --row-lit  #325fb2  the body with the bloom composited on top (96,158,255 at .40 over the base) */
:root { --row-base: #13357f; --row-lit: #204997; }
ul.group {
  background:
    linear-gradient(180deg, rgba(96, 158, 255, .14) 0%, rgba(54, 110, 220, .07) 58%, rgba(20, 52, 130, 0) 100%) top left / 100% 180px no-repeat padding-box,
    linear-gradient(180deg, #163b8c 0%, #13357f 46%, #102c6c 100%) padding-box,
    var(--chrome) border-box;
  background-origin: border-box;
}
ul.group::before { opacity: .45; }
/* the lit hairline between rows reads better on the solid body */
ul.group > li + li > a, ul.group > li + li > button { box-shadow: inset 0 1px 0 rgba(150, 198, 255, .20); }

/* ================================================================================================================
   v0.9  MATCHING THE PICTURE ELEMENT BY ELEMENT (Copilot_20261016_113901.png).
   Four differences left between v0.8 and the reference, each one looked at side by side rather than guessed:

     1. SECTION HEADINGS. The picture has plain white bold sans - "Open now near you", "What do you need?" - with
        NO gold bar in front. v0.6 put a 7x22 gold bar before every .tag.
     2. CHEVRONS are white in the picture. Ours were --gold.
     3. ROWS. This is the big one. In the picture each row is its OWN rounded panel with a lit blue edge, stacked
        with a gap, all sitting inside a larger frame. Ours were flush rows split by a hairline on one surface.
     4. A bright light streak runs across the very top of the page.
   ================================================================================================================ */

/* 1. headings: white, heavy, sans, no bar. */
.tag {
  font: 800 1.34rem/1.22 "Montserrat", system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.01em; color: #fff; gap: 0;
}
.tag::before { display: none; }

/* 2. chevrons: the picture's are a near-white, not gold. */
.chev { border-right-color: #dce9ff; border-top-color: #dce9ff; }

/* 3. every row its own panel.
   The outer list goes DARKER so the rows read as objects sitting on it, gets padding and a gap, and drops the
   overflow:hidden that was clipping the rows' own glow. The hairline between rows comes off - it was there to
   separate rows on one surface and there is no longer one surface.
   #204997 is the row's lightest point and it is the SAME value the AAA pairs are measured against, so a row is
   8.53:1 for its title and 7.24:1 for its second line no matter where it sits in the list. */
ul.group {
  padding: 9px; display: grid; gap: 9px; overflow: visible;
  background:
    linear-gradient(180deg, #16306f 0%, #112554 55%, #0d1c43 100%) padding-box,
    var(--chrome) border-box;
  background-origin: border-box;
}
ul.group::before { display: none; }          /* the sheet-wide gloss belongs to a sheet; there isn't one now */
ul.group > li + li { box-shadow: none; }     /* the hairline separator */
ul.group > li + li > a, ul.group > li + li > button { box-shadow: none; }
ul.group > li { border-radius: 15px; }
ul.group > li > a, ul.group > li > button {
  border-radius: 15px;
  background: linear-gradient(180deg, #204997 0%, #1c4189 34%, #183a78 68%, #153268 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .42),
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -6px 12px -6px rgba(3, 9, 32, .55),
    0 0 10px rgba(70, 140, 255, .30),
    0 3px 8px rgba(2, 7, 26, .5);
}
ul.group > li > a:active, ul.group > li > button:active { transform: translateY(1px); }

/* 4. the light streak across the top of the page, the way the picture opens. */
.top::after {
  height: 2px;
  background: linear-gradient(90deg,
    rgba(120, 180, 255, 0) 0%, rgba(150, 200, 255, .55) 12%, rgba(255, 255, 255, .92) 42%,
    rgba(255, 255, 255, .92) 58%, rgba(246, 197, 34, .70) 85%, rgba(246, 197, 34, 0) 100%);
  box-shadow: 0 0 12px rgba(150, 205, 255, .8), 0 0 26px rgba(90, 160, 255, .45);
}

/* 5. TYPE. One rule runs through the whole reference picture and it took looking at it properly to see:
   the serif is used for the BRAND AND NOTHING ELSE. "Getting By" and "in Newmarket" are the script; every
   other piece of text in that picture - "Language help", "Open now near you", "Newmarket Public Library",
   "What do you need?", "Food", "A place to stay" - is a heavy SANS. v0.6 put var(--font-display) on every
   title in the app, which is why the screens read as a different thing to the picture even once the colours
   and the metal matched.
   The brand keeps the serif. Everything else goes to the phone's own face at weight 800, which is also the
   more legible of the two at 14-16px on a cracked screen. */
.gt b, .itile b, .feature b, .wifione h3, .slab h3, ul.res h3 {
  font-family: "Montserrat", system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-weight: 800; letter-spacing: -.012em;
}
main > h1, main > h2, .empty h2 {
  font-family: "Montserrat", system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-weight: 800; letter-spacing: -.015em; color: #fff;
}
/* the brand is the exception, and stays exactly as it was */
.hero h1, .hero h2, .hero .brand { font-family: var(--font-display); }
.btn { font-family: "Montserrat", system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; font-weight: 800; }
/* the three big numbers keep the serif: in the picture 9-8-8, 2-1-1 and 911 are the one other place it appears */
.calls .btn { font-family: var(--font-display); }

/* ================================================================================================================
   v1.0  THE INK OF THE PICTURE, 2026-10-16.

   What was still different. With the metal, the layout and the type matched, I opened #/transit at 375x812 and
   read the computed colour off every element on it instead of guessing. Every paragraph, every card title and
   every blue button's label came back rgb(246, 197, 34) - the logo gold - because --text, --muted, --ice, --link
   and --seam-ink were ALL set to #F6C522 on 2026-10-14, when Tim asked for gold "anywhere there is blue".

   Why that moves. Both reference pictures say the opposite, and they say it on every single word:
     - Copilot_20261016_113901.png (home): the only gold on the screen is the brand script, the two gold slabs
       and the three round icon tiles. "Open now near you", "What do you need?", every row title, every second
       line, "in Newmarket" - all white.
     - Copilot_20261016_215637.png (tab bar): all five labels are white, INCLUDING the lit one. The selected tab
       is marked by the pool of coloured light under its icon, not by a gold label.
   A picture handed over twice with "I want the whole app to look like this" is a later instruction than the
   sentence it replaces, so the inks move. The gold does not go anywhere - it goes back to being an accent, which
   is where both pictures put it: --gold itself is untouched, and everything that reads as an accent (the brand,
   the icons, the tiles, the gold slabs, the price, the star) still uses it.

   Contrast goes UP, not down. White on the page navy is 17.44:1 where the gold was 11.26:1. tools/contrast.mjs
   reads every :root block in file order, so it grades the values below, and it was re-run after this block.

   Nothing above line 933 is edited. This is a :root AFTER the v0.6 one, so the cascade does the work and the old
   values stay on the record with the reasoning that produced them - one line to put back.
   ================================================================================================================ */
:root {
  --text: #ffffff;        /* was #F6C522 - the body ink of the picture */
  --muted: #d9e6fb;       /* was #F6C522 - the quiet line under a title, and the five tab labels */
  --ice: #e4edfd;         /* was #F6C522 - "in Newmarket", the small line under a tile */
  --link: #ffffff;        /* was #F6C522 - still told apart by its underline, exactly as before */
  --seam-ink: #cfe0fb;    /* was #F6C522 - small text and marks on blue */
}

/* A blue button's label. .btn.gold is the more specific rule and is deliberately left alone, so a gold slab keeps
   its deep navy ink - which is exactly what the picture does with 9-8-8 and 2-1-1. */
.btn { --txt: #ffffff; --txt-shadow: 0 1px 2px rgb(4 12 40 / .7); }

/* The lit tab. The picture gives the selected tab the same white label as the other four. */
.tabs a[aria-current="page"] { color: #ffffff; }

/* THE SERIF, FINALLY PINNED DOWN. In the picture it appears twice, both times in the brand block: "Getting By"
   and "in Newmarket". Everything else is heavy sans. The banner h1 on Transit, Deals, Fun, Help and the rest was
   the last serif outside the brand, which is why those screens still read as a different product from the one in
   the picture even after the colours and the metal matched. */
.hero h1, .hero h2, .banner h1 {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800; letter-spacing: -.01em;
}
.hero-brand h2, .hero .brand, .hero .town { font-family: var(--font-display); }

/* The pills in the top bar and the filter chips, same reasoning as .btn above: in both pictures a word sitting on
   a blue surface is white and the gold is carried by the icon beside it. Measured before this rule: the town pill
   read "Newmarket, ON" in rgb(246,197,34). The .ic rules at lines 130, 423 and 785 are NOT touched, so the sun,
   the pin and the save star stay gold - that is the picture's own pattern, a gold mark next to white words. */
.townbtn, .wxchip, .chip, details.say > summary { --txt: #ffffff; --txt-shadow: 0 1px 2px rgb(4 12 40 / .7); }

/* ================================================================================================================
   THE GAME PAD, 2026-10-17.
   Buttons for a game that was written for a keyboard, built in the same material as everything else in the
   reference picture: a blue slab in a chrome frame, white mark on it, lit along the top edge and pressed in.
   Sizes are not decorative - 64 px is this app's tap floor (Tim, outdoor use), and these are 68 px so a cold
   thumb lands on them while something is moving on screen.
   ================================================================================================================ */
.gpad {
  display: grid; grid-auto-flow: column; justify-content: center; gap: 10px;
  margin: 10px auto 2px; padding: 10px;
  border-radius: 20px; border: 3px solid transparent; background-origin: border-box;
  background: linear-gradient(180deg, #16306f 0%, #112554 55%, #0d1c43 100%) padding-box, var(--chrome) border-box;
  touch-action: none;            /* a thumb held on a button must drive the game, not scroll the page */
}
.gpadb {
  min-width: 68px; min-height: 68px; padding: 6px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 17px; border: 2px solid transparent; background-origin: border-box;
  background: var(--slab-blue) padding-box, var(--chrome) border-box;
  color: #fff; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -6px 12px -6px rgba(3, 9, 32, .55),
    0 0 10px rgba(70, 140, 255, .30), 0 3px 8px rgba(2, 7, 26, .5);
  transition: transform .1s ease, box-shadow .1s ease, filter .1s ease;
}
.gpadb .ic { width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 1px 2px rgba(2, 7, 26, .6)); }
.gpadb span { font: 800 .8rem/1 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .01em; }
/* the action button (Jump) is the one that is pressed most, so it is the gold one and it is wider */
.gpadb.gpada {
  min-width: 108px;
  background: var(--slab-gold) padding-box, var(--chrome) border-box;
  color: var(--goldink); text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -8px 14px -7px rgba(110, 66, 6, .7),
    0 0 12px rgba(246, 197, 34, .3), 0 3px 8px rgba(2, 7, 26, .5);
}
.gpadb:active { transform: translateY(2px); filter: brightness(1.12); box-shadow: inset 0 3px 8px rgba(3, 9, 32, .6); }
@media (prefers-reduced-motion: reduce) { .gpadb { transition: none; } }

/* A game with a pad has to fit the pad ON the screen. Measured at 375x812 before this rule: the frame was 582 px
   tall and the pad's top edge landed at y=888 - 76 px below the bottom of the phone, so the buttons existed and
   could not be reached. The frame gives up the height instead; the game scales itself to whatever it is given. */
.gwrap:has(.gpad) .gframe { height: min(42vh, 400px); }

/* ================================================================================================================
   THE WHITE WASH, THIRD AND LAST TIME, 2026-10-17.

   Tim, 2026-10-16: "your highlighting and your whiteness is too much. It drowns out the text."
   I fixed it for the lists and the slabs by pinning the gloss to a fixed pixel height instead of a percentage.
   I did not fix it for the TALL panels, and on 2026-10-17 it was still there - measured on #/home, the "Your day"
   panel is 353 px tall and gets BOTH halves of the bug at once:
     * its face is --panel-blue, a PERCENTAGE ramp: its light top stop rgba(96,158,255,.44) does not reach the
       dark rgba(8,19,57,.91) until 100%, so on a 353 px panel the top ~140 px is pale.
     * its ::before is --glossy at 100% 96px: rgba(255,255,255,.62) at y=0.
   White over that composites to roughly #aebede, and the panel's own text is white. That is the complaint, still
   on the screen, two days later.

   The fix is the same idea taken all the way: both layers measured in PIXELS, not percentages, so a panel's top
   looks identical whether it is 90 px tall or 400, and the bright part lives entirely inside the panel's padding
   where no text ever sits. The light is not removed - the picture has a bright specular edge along the top of
   every panel. It is a 9 px edge in the picture, not a 96 px wash, and that is what this makes it.

   .slab is deliberately NOT in this list. The weather card is a .slab, Tim looked at it and said it was right,
   and one change at a time.
   ================================================================================================================ */
.feature, .notice, .empty, .wifione {
  background:
    linear-gradient(180deg, #2a55a8 0px, #1d4189 34px, #163372 110px, #112352 100%) padding-box,
    var(--chrome) border-box;
  background-origin: border-box;
}
.feature::before, .notice::before, .empty::before, .wifione::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .50) 0px, rgba(255, 255, 255, .16) 9px,
      rgba(255, 255, 255, .05) 30px, rgba(255, 255, 255, 0) 64px),
    var(--grain);
  background-size: 100% 64px, 140px 140px;
  background-repeat: no-repeat, repeat;
  background-position: top left, top left;
  opacity: .7;
}
/* The one bit of ink on these panels that was not white: a .notice's opening words. On blue the picture puts
   white, and the emphasis is carried by the weight it already has. */
.notice b, .notice strong { color: #ffffff; }

/* .slab, after looking at it. I left .slab out of the block above because the weather card is a .slab and Tim had
   already approved it. Then I measured the "Your day" panel: it is .slab.dayslab, 311 px tall, and it had the full
   wash - white text on a pale blue top, which is the exact thing he complained about. A .slab is as tall as its
   contents like everything else here, so it gets the same pixel-measured treatment. The weather card only gains
   by it: its body goes darker under the same gold readout. */
.slab {
  background:
    linear-gradient(180deg, #2a55a8 0px, #1d4189 34px, #163372 110px, #112352 100%) padding-box,
    var(--chrome) border-box;
  background-origin: border-box;
}
.slab::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .50) 0px, rgba(255, 255, 255, .16) 9px,
      rgba(255, 255, 255, .05) 30px, rgba(255, 255, 255, 0) 64px),
    var(--grain);
  background-size: 100% 64px, 140px 140px;
  background-repeat: no-repeat, repeat;
  background-position: top left, top left;
  opacity: .7;
}

/* ================================================================================================================
   THE BRAND BLOCK AND THE THREE NUMBERS, AGAINST THE PICTURE. 2026-10-17.

   Measured off Copilot_20261017_102021.png, which is 1024 px wide, so every number below is its pixel value
   divided by 1024 and multiplied by the 375 px phone the app is actually read on.

     the heart sits LEFT of the words        in the picture its box is x=118..255, the script starts at x=258
     the heart is about 13% of the width     137/1024 -> 50 px on a 375 phone, not the 162 px it had been
     "in Newmarket" is the SERIF, in white   same face as the page headings, not the sans it had been
     the three slabs are 140 px tall         380/1024 of a 1024-wide image read at 375 -> 51 px, and the numbers
                                             inside them are 44/1024 -> 16 px, half the slab's height

   The stroke icons, the chrome, the gloss and the gradients above are untouched: this moves two things and
   resizes three.
   ================================================================================================================ */

/* ---- the heart goes to the left, and the words sit beside it instead of under it ---- */
.hero-brand { margin-top: 18px; padding-bottom: 14px; min-height: 96px; display: flex; align-items: center; gap: 12px; }
.hero-brand .hero-art {
  position: static;                 /* it was absolutely positioned off the right edge */
  flex: 0 0 auto; width: 76px; height: 82px; margin: 0;
}
.hero-brand .hero-copy { max-width: none; flex: 1 1 auto; min-width: 0; }
.hero-brand .hero-art::before { inset: 4% -16% 0 -16%; }

/* ---- "in Newmarket": the serif, in white, on its own line under the gold script ---- */
.hero-brand .town {
  margin-top: .18em;
  font: 700 .44em/1.15 var(--font-display);
  color: #ffffff;
  letter-spacing: -.005em;
  text-shadow: 0 1px 3px rgb(4 12 40 / .55);
}

/* ---- the three numbers are the biggest thing on the screen after the name, as in the picture ---- */
.calls .btn { min-height: 74px; padding: 10px 8px; font-size: 1.42rem; line-height: 1.05; }
.calls .btn small { font-size: .58rem; margin-top: 3px; letter-spacing: .01em; }

/* ---- the logo in place of the old outline heart, wherever an icon-sized heart is drawn ---- */
.ic-logo { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.gi .ic-logo { width: 28px; height: 28px; }
.btn .ic-logo { filter: drop-shadow(0 1px 2px rgb(4 12 40 / .55)); }

/* Correction, same sitting. Two things the first pass got wrong, both visible in the screenshot:

   1. .hero-art .heart is `position:absolute; inset:0`, so making .hero-art `position:static` did not shrink the
      heart - it made it resolve against .hero instead and stretch across the whole band, straight over the word
      "By". The art box has to stay a positioned ancestor; only its SIZE and PLACE change.
   2. flex put the art after the copy, because that is its order in the DOM. The picture has it before the words.

   And the panel itself: now that the weather has moved down, .topcard is a card drawn around nothing but the
   name. In the picture the brand sits on the navy with the background glow behind it and no frame at all. */
.hero-brand .hero-art { position: relative; order: -1; }
.topcard { background: none; border: 0; box-shadow: none; padding: 0; margin-bottom: 4px; }
.topcard .hero-brand { padding: 10px 4px 2px; }
.hero-brand .hero-art { width: 84px; height: 90px; }
.hero-brand h2 { font-size: 1.95rem; }
.hero-brand .town { font-size: .52em; }

/* Line 1234 paints every tile in the "Open now" panel green, which is right for a place that is open and wrong
   for the map: in the picture that last row's tile is the gold one, because it is not another place, it is the
   way to see all of them. .t-gold already carries the gold slab; this just stops the panel rule overriding it. */
.nowcard .t-gold .gi { --tg: var(--slab-gold); --ti: #0a1640; }

/* The solid tile glyphs (js/icons.js, 2026-10-17). Dimension on these comes from the shape itself plus one
   shadow underneath: on a gold tile the glyph is deep navy and the shadow is what lifts it off the gloss, which
   is exactly how the picture draws the globe, the fork and the bed. A hairline icon needed no shadow because it
   had no body to cast one. */
.ic2 { filter: drop-shadow(0 1px 1.5px rgb(2 7 26 / .45)); }
.gi .ic2, .iico .ic2 { filter: drop-shadow(0 1.5px 2px rgb(2 7 26 / .5)); }
.t-gold .ic2 { filter: drop-shadow(0 1px 1.5px rgb(90 58 4 / .5)); }

/* ---------- What's on: the program guide (js/epg.js) ---------- */
/* Tim asked twice to see what is actually playing. The line sits under the channel's own detail line, in the
   logo gold so it reads as live information rather than more description, and it is hidden until the guide has
   something to put in it - an empty slot must never push the list around. */
.onnow {
  display: block;
  margin-top: .12em;
  font: 700 .78rem/1.3 var(--font-ui, inherit);
  font-style: normal;
  color: var(--slab-gold, #ffd34d);
  text-shadow: 0 1px 2px rgb(4 12 40 / .55);
}
.onnow[hidden] { display: none; }

/* The caution line on a Channel Library row: fenced off from here, not on air all day, or did not answer when
   we asked. Deliberately NOT the gold above - gold is live information somebody can act on, and this is a
   warning. Quieter than the detail line, and it never competes with the channel's name. */
.facade small.chanwarn {
  display: block;
  margin-top: .1em;
  font: 600 .74rem/1.3 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #ffb4a6;
}

/* The "later today" strip inside a guide card. Times in a fixed column so the eye runs straight down them. */
.later { list-style: none; margin: .5em 0 0; padding: 0; border-top: 1px solid rgb(255 255 255 / .14); }
.later li {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  gap: .5em;
  padding: .34em 0;
  font-size: .92rem;
  border-bottom: 1px solid rgb(255 255 255 / .07);
}
.later li:last-child { border-bottom: 0; }
.later .when { font-weight: 700; color: var(--slab-gold, #ffd34d); font-variant-numeric: tabular-nums; }
/* A tile that takes the whole row when a grid has an odd number: the account tile, which carries the longest line. */
.igrid .itile.wide { grid-column: 1 / -1; min-height: 0; }

/* ---- the clock in the top band: the phone's own time, in the gold of the name, at the right of the band ----
   Sized so "Getting By" keeps its one line on a 375px phone: the name needs 149px and this takes what is left. */
.hero-clock { flex: 0 0 auto; display: block; text-align: right; }
.hero-clock b { margin-right: 3px; font: 700 1.5rem/1 var(--font-display); color: var(--gold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgb(4 12 40 / .55); }
.hero-clock .ap { font: 700 .62rem/1 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ice, #cfe0ff); letter-spacing: .05em; }
.hero-clock small { display: block; margin-top: 3px; font: 650 .68rem/1.1 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ice, #cfe0ff); white-space: nowrap; }
.hero-brand { gap: 8px; }

/* ---- timed buses and trains (js/nexttrips.js) ---- */
.deps, .trips, .legs { list-style: none; margin: 0; padding: 0; }
/* Real content on every one of these - verified departure times, not decoration - so the glass treatment the rest
   of the app uses stays out (the same call --shadow-2 already makes: "light, because there can be forty of them").
   What was pure hairline-and-whitespace now carries a faint gradient instead, so the list reads as part of the same
   app as everything around it rather than a plain system list dropped into it. */
.deps .dep { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 12px 10px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(70, 140, 255, .09) 0%, rgba(70, 140, 255, 0) 42%);
  border-top: 1px solid var(--hair); line-height: 1.4; }
.deps .dep:first-child { border-top: 0; }
.dep.hurry { background: linear-gradient(90deg, rgba(255, 176, 32, .13) 0%, rgba(255, 176, 32, 0) 48%); }
.dep-t b { display: block; font-size: 1.2rem; line-height: 1.15; }
.dep-t .soon { display: inline-block; white-space: nowrap; margin-top: 4px; padding: 1px 9px; border-radius: 99px; background: var(--ok-bg); color: var(--ok-ink); box-shadow: inset 0 0 0 1px var(--ok-line); font-size: .85rem; font-weight: 700; }
.trips .trip { padding: 12px 10px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(70, 140, 255, .09) 0%, rgba(70, 140, 255, 0) 42%);
  border-top: 1px solid var(--hair); }
.trips .trip:first-child { border-top: 0; }
.trips .trip.hurry { background: linear-gradient(90deg, rgba(255, 176, 32, .13) 0%, rgba(255, 176, 32, 0) 48%); }
.trips h3 { margin: 0 0 2px; font-size: 1.1rem; }
.legs { margin-top: 8px; }
.legs .leg { padding: 8px 0 8px 14px; border-left: 3px solid var(--hair); line-height: 1.4; }
.legs .leg.ride { border-left-color: var(--gold); }
.legs .leg.walk { color: var(--muted); }
.dep.hurry .soon { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.trips .trip.hurry h3 { color: var(--gold); }
.trips .when { margin: 2px 0; }

/* ---- the Beehive bar: headquarters' messages, above every screen (js/beehive.js) ---- */
/* #updBar is the app-update bar (js/update.js). It is deliberately the same grid and the same .hive chrome as the
   Beehive bar: it is the same kind of thing, a line from Getting By that sits above whatever screen you are on. */
#hiveBar, #updBar { display: grid; gap: 8px; padding: 0 var(--pad, 16px); margin: 8px 0 0; }
#hiveBar[hidden], #updBar[hidden] { display: none; }
.hive { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(244, 204, 51, .18) 0%, rgba(27, 42, 92, .96) 52%); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--warn-line), inset 4px 0 0 var(--gold); }
.hive.warn { background: linear-gradient(135deg, rgba(198, 40, 40, .28) 0%, rgba(27, 42, 92, .96) 52%); box-shadow: var(--shadow-2), inset 0 0 0 1px #7a2634, inset 4px 0 0 #e24a5c; }
.hive-b { min-width: 0; line-height: 1.35; }
.hive-b b { display: block; }
.hive-b small { display: block; color: var(--muted); }
.hive-b .hive-t { font-weight: 700; color: var(--ice); }
.hivecard { padding: 12px 14px; margin: 0 0 8px; border-radius: var(--r); border-top: 0;
  background: linear-gradient(135deg, rgba(244, 204, 51, .14) 0%, rgba(27, 42, 92, .9) 55%);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--warn-line), inset 4px 0 0 var(--gold); }
.hivecard.warn { background: linear-gradient(135deg, rgba(198, 40, 40, .24) 0%, rgba(27, 42, 92, .9) 55%);
  box-shadow: var(--shadow-2), inset 0 0 0 1px #7a2634, inset 4px 0 0 #e24a5c; }
.hivecard:first-child { border-top: 0; }
.hivecard h3 { margin: 0 0 2px; }
/* SHINE (Tim, 2026-11-12: "give it the shine ... never flat"). Every Beehive banner and card gets the v0.8 chrome
   rim, a lit glass fill and a halo in its own colour. Help is green, the open-now tile's slab colour. */
.hive, .hivecard { border: 2px solid transparent; background-origin: border-box;
  background: var(--glossy) padding-box,
    linear-gradient(135deg, rgba(246, 197, 34, .30) 0%, rgba(246, 197, 34, .06) 40%, transparent 70%) padding-box,
    var(--panel-blue) padding-box, linear-gradient(#0a1640, #0a1640) padding-box, var(--chrome) border-box;
  box-shadow: var(--halo-gold), inset 5px 0 0 #f6c522, inset 0 16px 28px -14px rgba(255, 236, 160, .35); }
.hive.warn, .hivecard.warn {
  background: var(--glossy) padding-box,
    linear-gradient(135deg, rgba(242, 51, 70, .42) 0%, rgba(242, 51, 70, .10) 45%, transparent 75%) padding-box,
    var(--panel-blue) padding-box, linear-gradient(#0a1640, #0a1640) padding-box, var(--chrome) border-box;
  box-shadow: var(--halo-red), inset 5px 0 0 #ff6470, inset 0 16px 28px -14px rgba(255, 154, 163, .35); }
.hive.help, .hivecard.help {
  background: var(--glossy) padding-box,
    linear-gradient(135deg, rgba(63, 179, 122, .45) 0%, rgba(63, 179, 122, .12) 45%, transparent 75%) padding-box,
    var(--panel-blue) padding-box, linear-gradient(#0a1640, #0a1640) padding-box, var(--chrome) border-box;
  box-shadow: 0 0 var(--glow-blur) rgba(63, 215, 140, .55), 0 5px 0 -1px #0e4229, 0 14px 30px rgba(2, 7, 26, .62),
    inset 5px 0 0 #5fd79e, inset 0 16px 28px -14px rgba(159, 240, 198, .35); }
.hive-b b, .hivecard h3 { text-shadow: 0 0 12px rgba(150, 200, 255, .45), 0 1px 0 rgba(0, 0, 0, .5); }
.hive.help .btn, .hivecard.help .btn { background: var(--glossy), var(--slab-green); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  box-shadow: 0 0 var(--glow-blur) rgba(63, 215, 140, .6), 0 4px 0 -1px #0e4229, inset 0 -8px 14px -8px rgba(5, 40, 22, .8); }
.hive-qr { display: grid; justify-items: start; gap: 8px; margin: 10px 0 4px; }
.hive-qr canvas { width: 168px; height: auto; border-radius: 14px; padding: 4px; background: var(--chrome);
  box-shadow: var(--halo-gold); }
.hive-qr canvas[hidden] { display: none; }
/* On a phone the two buttons took a third of the width and squeezed the sentence into a column of single words.
   Under 480px the sentence gets the whole row and the buttons sit beneath it. */
@media (max-width: 480px) {
  .hive { grid-template-columns: 1fr auto; }
  .hive-b { grid-column: 1 / -1; }
  .hive > .btn:not(.round) { justify-self: start; }
}

/* HELPING THY NEIGHBOUR (js/neighbour.js). Only the handful of classes the board needs and the app did not
   already have. Everything else on that screen reuses .res, .chips, .chip, .field, .notice, .badge, .btn. */
label.f { display: block; margin: 0 0 14px; font-weight: 650; }
label.f .field, label.f textarea.field { margin-top: 6px; font-weight: 400; }
label.f em { font-weight: 400; font-style: normal; color: var(--muted); }
label.f small { display: block; margin-top: 6px; font-weight: 400; }
/* The disclaimer's tick box. A default checkbox is 13px across; this screen is read by somebody outdoors with
   cold hands, and it is the one control standing between them and a clause about negligence. 32px, and the
   whole row is the target. */
.agreebox { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0 14px; padding: 16px;
  border-radius: var(--r); background: var(--g-glass); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; }
.agreebox input { flex: 0 0 auto; width: 32px; height: 32px; margin: 0; accent-color: var(--gold); }
.nbtop { margin: 0 0 8px; }
.nbreport { margin: 10px 0 0; }
.nbcard.need { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge), inset 4px 0 0 var(--gold); }
.nbcard.offer { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge), inset 4px 0 0 var(--ok-line, #2e7d5b); }

/* ---------- Cheapest fuel (js/fuel.js) ---------- */
/* Prices as squares, big enough to read at arm's length in a parking lot with the engine running. Green is the
   cheapest third of the province this week, red the dearest - ranked each week, never a fixed "cheap is under
   170" line that would be wrong by Christmas. Colour is never the only signal: every square carries the number
   and the place name, so it works for a colour-blind reader and in bright sun. */
.fx-you { display: block; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); margin: 10px 0 4px; background: var(--card); }
.fx-you.lo { border-color: #35c06a; }
.fx-you.mid { border-color: var(--gold); }
.fx-you.hi { border-color: #e4674f; }
.fx-lab { display: block; font-size: .82rem; opacity: .85; }
.fx-big { display: block; font-size: 2.6rem; line-height: 1.1; font-weight: 800; color: var(--gold); }
.fx-big small { font-size: .9rem; font-weight: 600; opacity: .8; margin-left: 4px; color: var(--ink); }
.fx-vs { display: block; font-size: .92rem; margin-top: 2px; }
.fx-grid { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.fx-sq { border-radius: 14px; padding: 10px 8px; text-align: center; border: 2px solid var(--line); background: var(--card); }
.fx-sq.lo { border-color: #35c06a; background: color-mix(in srgb, #35c06a 12%, var(--card)); }
.fx-sq.mid { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--card)); }
.fx-sq.hi { border-color: #e4674f; background: color-mix(in srgb, #e4674f 12%, var(--card)); }
.fx-sq.me { outline: 3px solid var(--gold); outline-offset: 2px; }
.fx-p { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.fx-p small { font-size: .7rem; font-weight: 600; opacity: .75; }
.fx-n { display: block; font-size: .8rem; margin-top: 2px; }
.fx-k { display: block; font-size: .72rem; opacity: .75; }
.fx-dn, .fx-up, .fx-same { display: block; font-size: .72rem; margin-top: 2px; }
.fx-dn { color: #35c06a; }
.fx-up { color: #e4674f; }
.fx-same { opacity: .7; }
.notice.good { border-color: #35c06a; }
@media (prefers-reduced-motion: no-preference) { .fx-sq { transition: outline-color .2s; } }

/* ---------- Free to take, and the collection run (js/neighbour.js) ---------- */
/* The two hands are the app's whole visual language for this and they must not lie: a gold hand reaching up is
   somebody asking, a blue hand reaching down is somebody holding something out. A giveaway is the second one, so
   its card carries the blue hand and a blue edge, the same blue as the hand itself. Colour is never the only
   signal - the badge on every card says "Free to take" in words. */
.nbcard.free { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge), inset 4px 0 0 #3f7fbf; }
.nb-hand { float: right; width: 38px; height: auto; margin: 0 0 6px 12px; }

/* (This block used to be here twice, word for word. One copy removed 2026-11-12 when the map was redrawn.) */
/* ---------- The map square, and the neighbour button (Home) ---------- */
/* Tim, 2026-10-18: "make that a big square and show like a map in the background, so people understand what it
   is", sitting directly under the weather, which stays where it is. The streets are DRAWN, not a photograph and
   not a live map: a real mini-map pulls tiles off the network, so on a dead connection it would be a grey hole
   in the middle of the first screen. These render the same with no signal at all. */
.mapsq { position: relative; display: block; overflow: hidden; margin: 14px 0 0; aspect-ratio: 16 / 9;
  border-radius: var(--r); text-decoration: none; color: inherit;
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); }
@media (min-width: 560px) { .mapsq { aspect-ratio: 21 / 9; } }
.mapsq-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Redrawn 2026-11-12: the colours now live in the drawing itself (app.js). */
/* The words sit on a gradient, never straight on the streets: white on a road line is unreadable in sunlight. */
.mapsq-words { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(to top, rgb(5 12 28 / .94), rgb(5 12 28 / .72) 55%, transparent); }
.mapsq-words b { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--gold); }
.mapsq-words small { display: block; margin-top: 2px; font-size: .86rem; color: #cfe0ff; }
.mapsq-pin { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -34px 0 0 -23px;
  display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #0b1733;
  box-shadow: 0 0 0 3px #fff, 0 8px 22px rgb(0 0 0 / .55); }
.mapsq-pin svg { width: 26px; height: 26px; }
/* "You are here": one slow ring out of the gold pin, the only thing on Home that moves by itself. */
.mapsq-pin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.mapsq:hover .mapsq-pin, .mapsq:focus-visible .mapsq-pin { transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .mapsq-pin { transition: transform .15s ease; }
  .mapsq-pin::before { animation: mqPulse 2.6s ease-out infinite; }
  .mapsq-bg { transition: transform .4s ease; }
  .mapsq:hover .mapsq-bg { transform: scale(1.03); }
}
@keyframes mqPulse { 0% { box-shadow: 0 0 0 0 rgb(255 211 77 / .6); } 100% { box-shadow: 0 0 0 22px rgb(255 211 77 / 0); } }

/* "Helping thy neighbour has to be a big button that takes you into another UI" - same message. */
.bigbtn { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 16px 14px;
  border-radius: var(--r); text-decoration: none; color: inherit; background: var(--g-glass);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge), inset 4px 0 0 var(--gold); }
.bigbtn-ico { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--gold); color: #0b1733; }
.bigbtn-ico svg { width: 26px; height: 26px; }
.bigbtn-words { flex: 1 1 auto; min-width: 0; }
.bigbtn-words b { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--gold); }
.bigbtn-words small { display: block; margin-top: 2px; font-size: .86rem; color: var(--ink-soft, #cfe0ff); }

/* Guardian card, QR boxes and the sign-up checks (js/guardian.js) */
/* The Gift Guardian card, drawn rather than laid out: see the note by cardPng in js/guardian.js.
   It is one 1000x1048 drawing (three squares since 2026-11-08) scaled to whatever width the phone has, so the card on screen and the
   card in the saved picture cannot drift apart. The .gc-* rules below it are what the old HTML
   version used and are no longer drawn by anything. */
.idcard-wrap { margin: 14px 0; }
.idcard { display: block; width: 100%; height: auto; border-radius: 14px; background: #f5f8fd;
  box-shadow: 0 14px 34px rgb(0 0 0 / .45); }

.gcard { position: relative; margin: 0 0 14px; padding: 20px; border-radius: var(--r); background: linear-gradient(135deg, rgba(244, 204, 51, .18) 0%, rgba(27, 42, 92, .96) 46%); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--warn-line), inset 5px 0 0 var(--gold); }
.gc-org { display: block; font: 800 .95rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gc-name { margin: .35em 0 .1em; font: 800 1.9rem/1.1 var(--font-display); overflow-wrap: anywhere; }
.gc-role { margin: 0 0 .5em; color: var(--muted); font-weight: 650; }
.gc-lines { list-style: none; margin: 0 0 .6em; padding: 0; overflow-wrap: anywhere; }
.gc-id { margin: .4em 0 .8em; font: 800 1.7rem/1.1 var(--font-display); letter-spacing: .06em; color: var(--gold); }
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0; }
.qrbox canvas { width: min(100%, 280px); height: auto; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.gchecks { margin: 14px 0; padding: 0; border: 0; }
.gchecks legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
.gchecks label { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.gchecks input[type="checkbox"] { flex: none; width: 28px; height: 28px; accent-color: var(--gold); }
.gstep { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0; font-size: 1.2rem; }

/* Guardian door: the three steps (js/guardian.js) */
.gsteps { list-style: none; counter-reset: gs; margin: 0 0 14px; padding: 0; }
.gsteps li { counter-increment: gs; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 16px 16px 16px 60px; border-radius: var(--r); background: var(--g-glass); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--edge); }
.gsteps li::before { content: counter(gs); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--goldink); font: 800 1.15rem/34px var(--font-display); text-align: center; }
.gsteps li span { color: var(--muted); }

/* Guardian card: photo, ID label, barcode (js/guardian.js) */
.gc-head { display: flex; align-items: center; gap: 14px; margin: 0 0 .5em; }
.gc-photo { flex: none; width: 150px; height: 150px; border-radius: 20px; object-fit: cover; border: 3px solid var(--gold); background: #071033; }
.gc-nophoto { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 150px; height: 150px; border-radius: 20px; border: 2px dashed var(--gold); color: var(--gold); text-align: center; font-weight: 700; font-size: .9rem; text-decoration: none; }
.gc-head .gc-name { margin: .1em 0; font-size: 1.5rem; }
.gc-idlabel { margin: .6em 0 0; font: 700 .8rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.qrbox canvas.bar { width: min(100%, 280px); height: auto; border-radius: 8px; image-rendering: pixelated; }

/* The Guardian card as an organisation ID: light card stock, navy header band (js/guardian.js) */
.gcard { padding: 0 0 16px; overflow: hidden; background: linear-gradient(180deg, #f7f9fd, #e8eef9); color: #0a1640; box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(10, 22, 64, .2); }
.gcard::before { content: "GETTING BY  \00B7  GIFT GUARDIAN"; display: block; margin: 0 0 14px; padding: 14px 16px; background: #0a1640; color: var(--gold); font: 800 .95rem/1 var(--font-display); letter-spacing: .14em; border-bottom: 5px solid var(--gold); }
.gcard > * { margin-inline: 16px; }
.gcard .gc-org { color: #5a6b95; }
.gcard .gc-name, .gcard .gc-lines, .gcard .gc-id { color: #0a1640; }
.gcard .gc-role { color: #33437a; }
.gcard .gc-id { font-family: ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.gcard .gc-idlabel, .gcard .qrbox .fine { color: #5a6b95; }
.gcard .gc-photo { border-color: #0a1640; }
.gcard .gc-nophoto { color: #0a1640; border-color: #0a1640; }
.gcard .gc-fine { margin: .8em 16px 0; font-size: .82rem; color: #33437a; }

/* ================================================================================================================
   MAP PINS AND PLACE MARKS (js/pins.js). Replaces the 64 px blue disc with a heavy navy outline.
   A known shop shows its sign on a white tile; every other place shows a Phosphor Light glyph on a soft tinted disc.
   Both sit in a thin translucent ring with a wide, low shadow, so they read as objects on the map. The touch target
   stays 64 px: the wrapper is that size and the drawn pin is centred in it.
   ================================================================================================================ */
.pin2 { background: none; border: 0; display: grid; place-items: center; }
.pin2 .bp, .pin2 .cp {
  position: relative; display: grid; place-items: center; box-sizing: border-box; padding: 3px;
  background: rgba(8, 18, 54, .52);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .34), 0 14px 26px -10px rgba(2, 7, 26, .6);
  transition: transform .45s cubic-bezier(.32, .72, 0, 1), box-shadow .45s cubic-bezier(.32, .72, 0, 1);
}
.pin2 .bp { width: 72px; height: 50px; border-radius: 20px; }
.pin2 .cp { width: 52px; height: 52px; border-radius: 50%; }
.pin2 .bp-in, .pin2 .cp-in { display: grid; place-items: center; width: 100%; height: 100%; }
.pin2 .bp-in { border-radius: 17px; background: #fff; box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px rgba(10, 22, 64, .1); }
/* Leaflet's own stylesheet says `.leaflet-marker-pane img { max-width: none !important }`, which let a 128 px site icon fill the map, so these say it back. */
.leaflet-container .pin2 .bp-img { max-width: 54px !important; max-height: 30px !important; width: auto; height: auto; object-fit: contain; }
.pin2 .cp-in {
  border-radius: 50%; color: #0a1640;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 62%), var(--pc, #8fbcf0);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -2px 4px rgba(10, 22, 64, .12);
}
.pin2 .cp .ph { width: 27px; height: 27px; }
.cp-food { --pc: #f4cc33; } .cp-bed { --pc: #ffa94d; } .cp-warm { --pc: #7ee2a8; } .cp-wifi { --pc: #a9cdf6; }
.cp-health { --pc: #ff8fa3; } .cp-help { --pc: #c9a8ff; } .cp-park { --pc: #9fd2ff; }
/* A pin placed on the right street but not at a known door: hollow and dashed, never the same look as a door. */
.pin2 .cp.rough { background: rgba(8, 18, 54, .78); }
.pin2 .cp.rough .cp-in { background: rgba(10, 22, 64, .9); color: var(--pc, #8fbcf0); box-shadow: inset 0 0 0 2px var(--pc, #8fbcf0); }
.pin2 .cp.rough .cp-in::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed var(--pc, #8fbcf0); pointer-events: none; }
/* The wifi dot on the corner: green when you can walk in and buy nothing, blue when they expect an order. */
.pin2 .pin-w {
  position: absolute; top: -7px; right: -5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #2f7be8; color: #fff; box-shadow: 0 0 0 2.5px rgba(8, 18, 54, .92), 0 6px 12px -4px rgba(2, 7, 26, .6);
}
.pin2 .pin-w.pin-free { background: #14a06a; }
.pin2 .pin-w .ph { width: 13px; height: 13px; }
.pin2.sel .bp, .pin2.sel .cp { box-shadow: 0 0 0 3px #ffd34a, 0 14px 26px -10px rgba(2, 7, 26, .6); transform: scale(1.08); }
.pin2:focus-visible .bp, .pin2:focus-visible .cp { box-shadow: 0 0 0 3px #ffd34a, 0 14px 26px -10px rgba(2, 7, 26, .6); }
.pin2:active .bp, .pin2:active .cp { transform: scale(.94); }
@media (hover: hover) { .pin2:hover .bp, .pin2:hover .cp { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .pin2 .bp, .pin2 .cp { transition: none; } }
.wifileg { margin: 0 0 12px; }
.wifileg .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #2f7be8; margin: 0 2px 0 0; vertical-align: -1px; }
.wifileg .dot.g { background: #14a06a; }

/* The same mark on a card, a sheet or a list row. */
.pmark-row { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; }
.pmark-row > div { min-width: 0; }
.pmark-row h2, .pmark-row h3 { margin: 0 0 2px; }
.pmark-row p { margin: 0; }
.pmark { display: inline-grid; place-items: center; flex: none; box-sizing: border-box; }
.pmark-logo {
  width: 80px; height: 54px; padding: 7px 10px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 14px 26px -12px rgba(2, 7, 26, .65), inset 0 -2px 4px rgba(10, 22, 64, .08);
}
.pmark-logo .bmark { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pmark-glyph {
  width: 54px; height: 54px; border-radius: 50%; color: #0a1640;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 62%), var(--pc, #a9cdf6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 14px 26px -12px rgba(2, 7, 26, .65), inset 0 1px 1px rgba(255, 255, 255, .8);
}
.pmark-glyph .ph { width: 29px; height: 29px; }
.pmark-glyph[data-k="food"] { --pc: #f4cc33; } .pmark-glyph[data-k="bed"] { --pc: #ffa94d; } .pmark-glyph[data-k="warm"] { --pc: #7ee2a8; }
.pmark-glyph[data-k="health"] { --pc: #ff8fa3; } .pmark-glyph[data-k="help"] { --pc: #c9a8ff; } .pmark-glyph[data-k="park"] { --pc: #9fd2ff; }
/* Phosphor Light controls (icons.js): filled paths, so they take their colour from `color` like every other icon. */
.ic-ph { fill: currentColor; }
/* In the Get there sheet the close button sits top right, so the title block keeps clear of it, and the long description reads as a description. */
.sheet .pmark-row { padding-right: 56px; align-items: flex-start; }
.sheet .pmark-row .sheet-what { font-size: .95rem; font-weight: 500; line-height: 1.4; margin-top: 4px; }

/* GUARDIAN COURSE and field guide (js/join.js, js/course.js). Text and links follow the app's own gold-on-navy rule. */
.gch { font: 800 1.15rem/1.2 var(--font-display); margin: 22px 0 6px; }
.gcbody p, .gcbody ul, .gcbody ol { margin: 0 0 12px; }
.gcbody ul, .gcbody ol { padding-left: 22px; }
.gcbody li { margin-bottom: 7px; }
.callout { padding: 14px 16px; border-radius: var(--r); background: var(--g-glass); box-shadow: inset 0 0 0 1px var(--warn-line), inset 5px 0 0 var(--gold); margin: 0 0 14px; }
.callout p { margin: 0; }
.cvids { display: grid; gap: 14px; margin: 8px 0 16px; }
.cvid { border-radius: var(--r); overflow: hidden; background: var(--g-glass); box-shadow: inset 0 0 0 1px var(--edge); }
.cvid-frame { aspect-ratio: 16 / 9; display: flex; background: #000; }
.cvid-frame iframe { width: 100%; height: 100%; border: 0; }
.cvid-go { all: unset; box-sizing: border-box; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center; cursor: pointer; min-height: 64px; background: linear-gradient(135deg, var(--ice-2), var(--bg)); color: var(--text); }
.cvid-go:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.cvid-play { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--goldink); display: grid; place-items: center; font-size: 22px; transition: transform .2s var(--ease); }
.cvid-go:active .cvid-play { transform: scale(.94); }
.cvid-t { font: 800 1rem/1.2 var(--font-display); }
.cvid-b { font-size: .85rem; }
.cvid .fine { margin: 0; padding: 8px 14px 12px; }
.cnav { margin: 20px 0 8px; }
.cnav .btn { flex: 1 1 220px; }
.gsteps-plain li > span { margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .cvid-play { transition: none; } }

/* THE INLINE STYLES THAT WERE NEVER APPLYING. Measured 2026-11-01 in a browser: index.html sets
   style-src 'self', so every style="..." attribute this app wrote from JavaScript was blocked and
   thrown away with a console error. The person's own CODE on the Account screen was among them, so
   the one string they have to read out loud was rendering at body size. Classes instead, because a
   class is not inline and a class cannot be silently dropped. */
.pre      { white-space: pre-wrap; }
.code-xl  { font: 700 1.9rem/1.1 var(--font-display); letter-spacing: .06em; }
.code-lg  { font: 700 1.6rem/1.2 var(--font-display); letter-spacing: .06em; }
.code-md  { font: 700 1.3rem/1.2 var(--font-display); letter-spacing: .08em; }
.code-raw { font: 600 .82rem/1.45 var(--font-mono, monospace); word-break: break-all; }

/* The board's glow, as on the website (Tim, 2026-11-05). Headings glow in their own colour. */
h1 { text-shadow: 0 0 18px color-mix(in srgb, currentColor 45%, transparent), 0 0 40px color-mix(in srgb, currentColor 20%, transparent), 0 3px 10px rgb(0 0 0 / .5); }
h2 { text-shadow: 0 0 14px color-mix(in srgb, currentColor 30%, transparent), 0 2px 8px rgb(0 0 0 / .45); }

/* ==========================================================================
   MOBILE APP 2.1, from Tim's board (2026-11-05). Brand lockup with the tagline, a greeting with the weather,
   the red and blue doors, six lit tiles and the Christmas banner. Gradients and glow are the point: do not
   flatten them. The header, Quick exit, the crisis strip and the tabs are untouched.
   ========================================================================== */
.hero-brand .brand { white-space: nowrap; }
.hero-brand .tagline { display: block; margin: 2px 0 4px; white-space: nowrap; font: 700 .58rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #9fb8ff; text-shadow: none; }
.ah-greet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 14px; }
.ah-greet b { display: block; font: 700 1.35rem/1.15 var(--font-display); color: #fff; }
.ah-greet small { display: block; margin-top: 3px; font: 500 .86rem/1.3 var(--font-display); color: #c9d6ff; }
.ah-wx { flex: none; text-decoration: none; color: #fff; }
.ah-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ah-bigtile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 128px; padding: 14px 10px;
  border-radius: 16px; text-align: center; text-decoration: none; color: #fff;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.ah-bigtile b { font: 800 1rem/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.ah-bigtile small { font: 500 .78rem/1.2 var(--font-display); opacity: .92; }
.ah-bigtile .ah-ico svg { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .35)); }
.ah-red {
  background: linear-gradient(180deg, #ff6a5c 0%, #e0252f 55%, #a5121e 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 0 1px rgb(255 160 150 / .7), 0 10px 24px rgb(0 0 0 / .4), 0 0 26px rgb(255 60 60 / .45);
}
.ah-blue {
  background: linear-gradient(180deg, #5b97ff 0%, #2459e0 55%, #163c9e 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 0 1px rgb(160 195 255 / .75), 0 10px 24px rgb(0 0 0 / .4), 0 0 26px rgb(47 107 255 / .5);
}
.ah-bigtile:active, .ah-tile:active, .ah-xmas:active { transform: scale(.98); }
.ah-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ah-tile {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, #16316f 0%, #0b1b49 100%); border: 1px solid rgb(120 165 255 / .4);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 6px 16px rgb(0 0 0 / .35), 0 0 16px rgb(47 107 255 / .18);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.ah-tile b { display: block; font: 700 .86rem/1.15 var(--font-display); }
.ah-tile small { display: block; margin-top: 2px; font: 500 .66rem/1.25 var(--font-display); color: #b9c8f2; }
.ah-tico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff;
  background: linear-gradient(180deg, #5b97ff, #1f4fcf); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 0 12px rgb(47 107 255 / .45); }
.ah-tico svg { width: 22px; height: 22px; }
.ah-tico.ah-gold { color: #1d1400; background: linear-gradient(180deg, #FFE68A, #F6C522 50%, #DDA30F); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 0 12px rgb(246 197 34 / .45); }
.ah-xmas {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(100deg, #b3141f 0%, #7d0f1c 45%, #2a0b2e 100%); border: 1px solid rgb(246 197 34 / .55);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 10px 24px rgb(0 0 0 / .4), 0 0 22px rgb(246 197 34 / .22);
}
.ah-xmas b { display: block; font: 800 1rem/1.15 var(--font-display); }
.ah-xmas small { display: block; margin-top: 2px; font: 500 .78rem/1.25 var(--font-display); color: #ffe6b3; }
.ah-xico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #1d1400;
  background: linear-gradient(180deg, #FFE68A, #F6C522 50%, #DDA30F); box-shadow: 0 0 14px rgb(246 197 34 / .5); }
.ah-xico svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { .ah-bigtile, .ah-tile { transition: none; } }

/* ==========================================================================
   MOBILE APP 2.1, second pass against Tim's board (2026-11-05: "it needs to look like this").
   1. The lockup: the clock beside it squeezed "Getting By" to "Getting B" (175px of word in a 160px box,
      measured). The board's lockup is the heart, the name and the tagline, with no clock, so the clock goes
      from Home's lockup and the name gets the room.
   2. The greeting's weather sits in a row like the board's: the icon, then the temperature.
   3. The six tiles are compact like the board's, each icon lit in its own colour (gold home, blue crisis,
      green map, sky weather, green safety, red Gift Guardian).
   4. The Christmas banner carries the tree photograph on its right, as on the board.
   ========================================================================== */
.hero-brand .hero-clock { display: none; }
.hero-brand .hero-copy { flex: 1 1 auto; min-width: 0; }
.ah-wx { display: flex; align-items: center; gap: 6px; font: 800 1.35rem/1 var(--font-display); }
.ah-wx svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 8px rgb(255 214 102 / .45)); }
.ah-tile { min-height: 62px; padding: 8px 10px; gap: 9px; }
.ah-tile b { font-size: .8rem; line-height: 1.15; }
.ah-tile small { font-size: .64rem; line-height: 1.2; }
.ah-tico { width: 34px; height: 34px; border-radius: 9px; }
.ah-tico svg { width: 20px; height: 20px; }
.ah-grid .ah-tile:nth-child(1) .ah-tico { color: #2a1a00; background: linear-gradient(180deg, #FFD36B, #F2A516); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 0 12px rgb(242 165 22 / .45); }
.ah-grid .ah-tile:nth-child(2) .ah-tico { background: linear-gradient(180deg, #6FA8FF, #2459E0); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 12px rgb(47 107 255 / .5); }
.ah-grid .ah-tile:nth-child(3) .ah-tico { background: linear-gradient(180deg, #5EE0A0, #13A35F); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 12px rgb(19 163 95 / .45); }
.ah-grid .ah-tile:nth-child(4) .ah-tico { background: linear-gradient(180deg, #8FD3FF, #2C8FE0); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 12px rgb(44 143 224 / .45); }
.ah-grid .ah-tile:nth-child(5) .ah-tico { background: linear-gradient(180deg, #5EE0A0, #13A35F); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 12px rgb(19 163 95 / .45); }
.ah-grid .ah-tile:nth-child(6) .ah-tico { color: #fff; background: linear-gradient(180deg, #FF6A5C, #C81E2A); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 12px rgb(255 60 60 / .45); }
.ah-xmas { position: relative; overflow: hidden; min-height: 64px;
  background: linear-gradient(100deg, #b3141f 0%, #7d0f1c 48%, rgb(42 11 46 / .55) 72%, rgb(42 11 46 / 0) 100%), url('../img/xmas-tree.jpg') right center / auto 150% no-repeat, #2a0b2e; }

/* The weather card, second look (Tim, 2026-11-05: "needs to be better looking and have the 5 day forecast"). The
   five days sit in lit glass cells, today in gold, the hero gets the board's blue rim and glow, and the greeting's
   small reading hides while this card is up so the temperature is not said twice in one glance. */
.topcard #wxBox .wxc-hero { border: 1px solid rgb(120 165 255 / .45);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 10px 24px rgb(2 7 26 / .45), 0 0 22px rgb(47 107 255 / .25); }
.wxc-forecast { gap: 6px; padding-top: 0; border-top: 0; }
.wxc-day { gap: 4px; padding: 9px 2px 8px; border-radius: 12px; background: linear-gradient(180deg, rgb(22 49 111 / .75), rgb(11 27 73 / .75));
  border: 1px solid rgb(120 165 255 / .3); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 4px 12px rgb(0 0 0 / .3); }
.wxc-day:first-child { border-color: rgb(246 197 34 / .75); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 14px rgb(246 197 34 / .3); }
.wxc-day:first-child .wxc-day-n { color: var(--gold); }
.wxc-day .wxc-ico { width: clamp(30px, 9vw, 42px); height: auto; }
.wxc-day-n { font-size: .78rem; }
.wxc-day-t { font-size: .95rem; }
.topcard:has(#wxBox:not([hidden])) ~ .ah-greet .ah-wx { display: none; }

/* Square, like every other button since Tim's ruling (2026-11-05: "stay consistant with the squares"). The map's
   filter chips and the header weather chip were the last pills. Progress bars and small badges stay round: they
   are not buttons. */
.chip { border-radius: 12px; }
.wxchip { border-radius: 14px; }
/* "Show where I am", on the map itself (Tim, 2026-11-05: "make sure the map shows you where you are"). */
.map-locate { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  color: var(--goldink, #1d1400); background: var(--g-gold, linear-gradient(180deg, #FFE68A, #F6C522 50%, #DDA30F));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 4px 12px rgb(0 0 0 / .35), 0 0 14px rgb(246 197 34 / .4); }
.map-locate svg { width: 26px; height: 26px; }
.map-locate:active { transform: scale(.96); }
.map-locate:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* THE SILVER EDGE ON EVERY BUTTON (Tim, 2026-11-05: "put the same nice silver around all the buttons throughout
   the applicattion"). The .btn family, the call strip, Quick exit and the icon tiles already wear --chrome as a
   real border. Measured the same day across ten screens, these did not: the filter chips, the town and weather
   buttons, Home's two doors, six tiles and Christmas banner, the neighbour button, the map's list rows and its
   locate button, the stars, the fold-open headings, the gold "go" labels and the hold-to-call 911.
   Their fills differ and are set in several places, so restating each one as a padding-box layer would be fragile.
   Instead the same metal is drawn as a 2px ring in a pseudo-element, masked to the edge only, which keeps every
   fill exactly as it was. ::after is free on all of them except two: 911's ::after is the hold fill and a fold-open
   heading's ::after is its arrow (details.grp, details.gv), so those two carry the ring in ::before. */
.chip, .townbtn, .wxchip, .ah-bigtile, .ah-tile, .bigbtn, .facade.row, details > summary, .feature .go { position: relative; }
.chip::after, .townbtn::after, .wxchip::after, .ah-bigtile::after, .ah-tile::after, .ah-xmas::after, .bigbtn::after,
.facade.row::after, .map-locate::after, .leaflet-control-zoom::after, .star::after, details > summary::before, .feature .go::after, .btn.hold911::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  padding: 2px; background: var(--chrome);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}

/* ==========================================================================
   GUARDIAN GIVE & GET (Tim, 2026-11-05). THE LOCK: GOLD = NEED, the neighbour receiving. BLUE = HAVE, the
   neighbour giving. Every control keeps its colour and wears the silver chrome edge (--chrome border-box).
   ========================================================================== */
.gg-head { text-align: center; margin: 4px 0 12px; }
/* heart-3d.webp is 520x556 with the artwork in the top 456 rows; aspect-ratio + object-fit trims the empty bottom */
.gg-head .gg-heart { display: block; width: min(210px, 56vw); height: auto; aspect-ratio: 520 / 456; object-fit: cover; object-position: 50% 0; margin: 0 auto 6px; filter: drop-shadow(0 8px 24px rgb(47 107 255 / .35)); }
.gg-guard { margin: 0; font: 700 .78rem/1 var(--font-display); letter-spacing: .5em; color: var(--gold); }
.gg-word { margin: 4px 0 2px; font: 900 clamp(2.4rem, 12vw, 3.4rem)/1 var(--font-display); letter-spacing: -.02em; text-shadow: none; }
.g-give { background: linear-gradient(180deg, #bcd6ff, #4f8dff 45%, #1d4fd8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgb(47 107 255 / .5)); }
.g-amp, .g-get { background: linear-gradient(180deg, #fff3b0, #ffd93f 40%, #d9a514); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgb(246 197 34 / .45)); }
/* Tim, 2026-11-10: the blue word gets a yellow outline and the yellow words get a blue one. Header only.
   The outline is a copy of the word (data-t) painted BEHIND the gradient word, so only the outer half of the stroke
   shows and the font's overlapping contours cannot leave seams inside the letters. */
.gg-word .g-give, .gg-word .g-amp, .gg-word .g-get { position: relative; }
.gg-word .g-give::before, .gg-word .g-amp::before, .gg-word .g-get::before { content: attr(data-t); position: absolute; left: 0; top: 0; z-index: -1; line-height: normal; white-space: nowrap; -webkit-text-stroke: 7px; filter: none; pointer-events: none; }
.gg-word .g-give::before { color: #ffd93f; -webkit-text-stroke-color: #ffd93f; }
.gg-word .g-amp::before, .gg-word .g-get::before { color: #1d4fd8; -webkit-text-stroke-color: #1d4fd8; }
.gg-ask { margin: 6px 0 0; font: 700 .72rem/1.3 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: #e4edfd; }
.gg-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.gg-door { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 124px;
  padding: 14px 10px; border-radius: 16px; text-align: center; text-decoration: none; border: 2px solid transparent; background-origin: border-box; }
.gg-door b { font: 900 1rem/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.gg-door small { font: 600 .76rem/1.2 var(--font-display); opacity: .92; }
.gg-dico svg { width: 34px; height: 34px; }
.gg-door.need, .gg-act.need, .chip.need[aria-current="true"], .chip.need[aria-pressed="true"],
.gg-form.need .chip[aria-pressed="true"] { background: var(--slab-gold) padding-box, var(--chrome) border-box; color: #2a1f02; }
.gg-door.have, .gg-act.have, .chip.have[aria-current="true"],
.gg-form.have .chip[aria-pressed="true"] { background: linear-gradient(180deg, #a9c8ff 0%, #5b97ff 16%, #2f6bff 45%, #1d4fd8 75%, #163c9e 100%) padding-box, var(--chrome) border-box; color: #fff; }
.gg-door.need { box-shadow: inset 0 -10px 18px -8px rgb(110 66 6 / .7), var(--halo-gold); }
.gg-door.have { box-shadow: inset 0 -10px 18px -8px rgb(8 20 70 / .7), var(--halo-blue); }
.gg-door:active { transform: scale(.98); }
.gg-prom { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 14px; padding: 0; }
.gg-prom li { text-align: center; border-left: 1px solid rgb(246 197 34 / .35); padding: 2px 2px; }
.gg-prom li:first-child { border-left: 0; }
.gg-prom b { display: block; font: 800 .74rem/1.1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.gg-prom small { display: block; font-size: .62rem; letter-spacing: .04em; color: #c9d6ff; text-transform: uppercase; }
.gg-cards { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.gg-card > a, .gg-card > div { position: relative; display: grid; gap: 3px; padding: 12px 12px 12px 18px; border-radius: 14px; text-decoration: none; color: #fff;
  border: 2px solid transparent; background: linear-gradient(160deg, #16316f 0%, #0b1b49 100%) padding-box, var(--chrome) border-box;
  box-shadow: 0 6px 16px rgb(0 0 0 / .35); }
.gg-card > a::before, .gg-card > div::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 5px; border-radius: 4px; }
.gg-card.need > a::before, .gg-card.need > div::before { background: var(--slab-gold); box-shadow: 0 0 10px rgb(246 197 34 / .6); }
.gg-card.have > a::before, .gg-card.have > div::before { background: linear-gradient(180deg, #5b97ff, #1d4fd8); box-shadow: 0 0 10px rgb(47 107 255 / .6); }
.gg-badge { font: 800 .68rem/1 var(--font-display); letter-spacing: .12em; }
.need .gg-badge, .gg-form.need .gg-badge, .gg-post.need .gg-badge { color: var(--gold); }
.have .gg-badge, .gg-form.have .gg-badge, .gg-post.have .gg-badge { color: #9cc0ff; }
.gg-card b { font: 700 1rem/1.25 var(--font-display); }
.gg-card small { color: #c9d6ff; font-size: .78rem; }
.gg-st { font-weight: 700; font-size: .8rem; color: #7fe3a8; }
/* red is urgency and nothing else; gold and blue together is a match; green is live and help delivered */
.gg-urgent { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 6px; background: #c8283c; color: #fff;
  letter-spacing: .1em; vertical-align: 1px; box-shadow: 0 0 10px rgb(200 40 60 / .45); }
.gg-urg-w { color: #ff8090; font-weight: 700; }
.gg-st.st-matched { justify-self: start; display: inline-block; padding: 2px 8px; border-radius: 6px; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .45);
  background: linear-gradient(90deg, rgb(246 197 34 / .6), rgb(47 107 255 / .7)); }
.gg-st.st-expired, .gg-st.st-review, .gg-st.st-flagged, .gg-st.st-removed { color: #c9d6ff; }
.gg-status { margin: 6px 0; }
.gg-card .gg-act { justify-self: start; margin-top: 6px; padding: 7px 14px; border-radius: 12px; font: 800 .82rem/1 var(--font-display); }
.gg-post, .gg-form { border-radius: 16px; padding: 14px; margin: 0 0 12px; border: 2px solid transparent;
  background: linear-gradient(160deg, #16316f 0%, #0b1b49 100%) padding-box, var(--chrome) border-box; }
.gg-post h1, .gg-form h1 { margin: 6px 0; }
.gg-form.have h1, .gg-post.have h1 { color: #cfe0ff; }
.gg-form.need h1, .gg-post.need h1 { color: var(--gold); }
.gg-body { white-space: normal; }
/* The photo on a post (2026-11-10): a cropped thumbnail on the board, the whole picture on the post and in the form. */
.gg-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin: 0 0 6px; background: rgb(255 255 255 / .06); }
.gg-photo { display: block; width: 100%; max-height: 380px; object-fit: contain; border-radius: 12px; margin: 8px 0; background: rgb(0 0 0 / .25); }
.gg-photo-pick { margin: 12px 0; }
.gg-addphoto { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.gg-addphoto svg { width: 20px; height: 20px; flex: none; }
.bigbtn.gg-home .bigbtn-ico { background: none; box-shadow: none; overflow: visible; }
.bigbtn.gg-home .bigbtn-ico img { width: 64px; height: auto; display: block; filter: drop-shadow(0 4px 10px rgb(47 107 255 / .4)); }

/* In Give & Get gold only ever means NEED, so a selected filter that is not about needs is blue, not the app's usual gold. */
.gg-filters .chip[aria-current="true"]:not(.need), .gg-cats .chip[aria-current="true"] {
  background: linear-gradient(180deg, #a9c8ff 0%, #5b97ff 16%, #2f6bff 45%, #1d4fd8 75%, #163c9e 100%) padding-box, var(--chrome) border-box; color: #fff; }

/* ==========================================================================
   HOME, THE REFERENCE SCREEN (Tim's facelift brief, 2026-11-05). Deep navy, luminous sapphire, metallic gold,
   controlled silver. GOLD = NEED / receiving, BLUE = GIVE / giving. Every surface wears --chrome as its edge and
   keeps its own colour. Once Tim approves this screen, its language is the law for the rest of the app.
   ========================================================================== */
.home-greet { padding: 2px 16px 16px; }
.home-greet b { display: block; font: 800 1.6rem/1.1 var(--font-display); color: #fff; letter-spacing: -.01em;
  text-shadow: 0 0 18px rgb(120 170 255 / .35); }
.home-greet span { display: block; margin-top: 4px; font: 600 .98rem/1.3 var(--font-display); color: #c9d6ff; }
.home-dest { display: grid; gap: 12px; margin: 14px 0 6px; }
.dest { position: relative; isolation: isolate; overflow: hidden; display: flex; text-decoration: none; color: #fff;
  border: 2px solid transparent; border-radius: 18px; background-origin: border-box; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.dest:active { transform: scale(.985); }
.dest-words { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.dest-words b { font: 900 1.25rem/1.1 var(--font-display); letter-spacing: .01em; }
.dest-words small { font: 600 .8rem/1.3 var(--font-display); }

/* FIND HELP: the heaviest door. Gold, because help is for the person receiving it. */
.dest-help { min-height: 168px; padding: 16px 16px 14px; flex-direction: column; justify-content: space-between; color: #241900;
  background: linear-gradient(115deg, #fff1a6 0%, #ffd93f 22%, #f6c522 46%, rgb(214 160 18 / .92) 62%, rgb(170 115 8 / .25) 100%) padding-box,
    linear-gradient(180deg, #3a2a05, #1d1400) padding-box, var(--chrome) border-box;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -14px 24px -12px rgb(110 66 6 / .55), 0 0 30px rgb(246 197 34 / .35), 0 14px 30px rgb(2 7 26 / .6); }
.dest-help .dest-ph { position: absolute; z-index: 0; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; object-position: 50% 8%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.dest-help::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(246 197 34 / .96) 0%, rgb(246 197 34 / .82) 40%, rgb(246 197 34 / 0) 66%); }
.dest-help .dest-ico { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid transparent; background: linear-gradient(180deg, #2a1f02, #4a3507) padding-box, var(--chrome) border-box; color: var(--gold); }
.dest-help .dest-ico svg { width: 26px; height: 26px; }
.dest-help .dest-words { max-width: 56%; }
.dest-help .dest-words b { font-size: 1.55rem; text-transform: uppercase; }
.dest-help .dest-words small { color: #3a2a05; font-weight: 700; }
.dest-go { position: relative; z-index: 2; align-self: flex-start; margin-top: 8px; padding: 8px 14px; border-radius: 12px; font: 800 .82rem/1 var(--font-display);
  color: #fff; border: 2px solid transparent; background: linear-gradient(180deg, #2b2105, #120d00) padding-box, var(--chrome) border-box;
  box-shadow: 0 4px 10px rgb(0 0 0 / .35); }

/* GUARDIAN GIVE & GET: the two colours meet, the way the handshake does. */
.dest-gg { min-height: 132px; padding: 14px 16px; align-items: center;
  background: radial-gradient(120% 140% at 0% 50%, rgb(246 197 34 / .30) 0%, rgb(246 197 34 / 0) 46%) padding-box,
    radial-gradient(120% 140% at 100% 50%, rgb(47 107 255 / .45) 0%, rgb(47 107 255 / 0) 50%) padding-box,
    linear-gradient(160deg, #142c66 0%, #0a1842 100%) padding-box, var(--chrome) border-box;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 26px rgb(47 107 255 / .3), 0 14px 30px rgb(2 7 26 / .6); }
.dest-gg .dest-heart { position: absolute; z-index: 0; right: -14px; top: 50%; width: 172px; height: auto; transform: translateY(-50%);
  filter: drop-shadow(0 6px 18px rgb(47 107 255 / .45)); }
.dest-gg .dest-words { max-width: 58%; }
.dest-kick { font: 700 .66rem/1 var(--font-display); letter-spacing: .42em; color: var(--gold); }
.dest-gg .dest-words b { font-size: 1.7rem; letter-spacing: -.01em; }
.dest-gg .dest-words small { color: #d6e2ff; }
.dest-pair { position: absolute; z-index: 2; left: 16px; bottom: 12px; display: flex; gap: 6px; }
.dest-pair span { padding: 4px 10px; border-radius: 9px; font: 800 .7rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  border: 2px solid transparent; }
.dest-pair .need { color: #2a1f02; background: var(--slab-gold) padding-box, var(--chrome) border-box; }
.dest-pair .have { color: #fff; background: linear-gradient(180deg, #5b97ff, #1d4fd8) padding-box, var(--chrome) border-box; }
.dest-gg { padding-bottom: 46px; }

/* the two lighter doors, side by side: a photo on top, the words under it, so no face ever carries text */
.dest-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dest-guard, .dest-xmas { flex-direction: column; min-height: 168px; }
.dest-top { display: block; width: 100%; height: 86px; object-fit: cover; }
.dest-guard .dest-top { object-position: 40% 22%; }
.dest-xmas .dest-top { object-position: 50% 40%; }
.dest-guard .dest-words, .dest-xmas .dest-words { padding: 10px 12px 12px; }
.dest-guard .dest-words b, .dest-xmas .dest-words b { font-size: 1rem; }
.dest-guard { background: linear-gradient(180deg, #2f6bff 0%, #1d4fd8 55%, #163c9e 100%) padding-box, var(--chrome) border-box;
  box-shadow: inset 0 -10px 18px -8px rgb(8 20 70 / .6), 0 0 22px rgb(47 107 255 / .35), 0 12px 26px rgb(2 7 26 / .55); }
.dest-guard small { color: #dfe9ff; }
.dest-xmas { background: linear-gradient(180deg, #b3141f 0%, #8a0f1c 55%, #5e0a16 100%) padding-box, var(--chrome) border-box;
  box-shadow: inset 0 -10px 18px -8px rgb(40 0 8 / .6), 0 0 22px rgb(246 197 34 / .22), 0 12px 26px rgb(2 7 26 / .55); }
.dest-xmas small { color: #ffe6b3; }
.dest-raised { font-weight: 800 !important; color: var(--gold) !important; }
.home-wx { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .dest { transition: none; } }

/* The clock under Home's logo (2026-11-06). Out of the lockup, so the .hero-brand rule that hides it no longer
   applies; it lines up with the greeting under it instead of hugging the right edge. */
.home-clock { text-align: left; margin: 4px 0 6px; padding: 0 2px; }

/* ==========================================================================
   DESKTOP, 2026-11-30. gettingby.ca/app/ serves this same build to anybody who
   has no phone. MEASURED that day at 1600x900: main was pinned at 640px and sat
   at x=473, while the header, the crisis strip and the tab bar all spanned the
   full 1585px either side of it. The app was being read through a letterbox with
   its own furniture flung into the far corners.
   Every rule below is behind min-width, so NO phone and NO tablet rule changes:
   a 375px or 768px screen never matches this block at all. That is also why it is
   safe in the APK copy, which has to stay identical to the web copy file for file.
   ========================================================================== */
@media (min-width: 1000px) {
  /* The column. 1120 is as wide as the home doors go on still reading as doors. */
  main { max-width: 1120px; }

  /* The three bars stay full-bleed, so the glass still reaches both edges, but
     their contents line up with the column instead of the screen corners. Padding
     rather than repositioning, because look.js moveTabs() measures a.offsetLeft
     against this same padding box to place the sliding gold mark. */
  .top  { padding-inline: max(10px, calc((100% - 1120px) / 2)); }
  /* the town button is flex:1 and was taking 628px to say "Newmarket, ON" */
  .townbtn { flex: 0 1 auto; max-width: 320px; }
  .sos  { padding-inline: max(8px,  calc((100% - 820px)  / 2)); }
  .tabs { padding-inline: max(0px,  calc((100% - 820px)  / 2)); }

  /* Home's four doors: two across, instead of one stack three screens tall. */
  .home-dest { grid-template-columns: 1fr 1fr; align-items: start; }
  .dest-two  { grid-column: 1 / -1; }

  /* These grids were drawn two across for a 343px column. At 1088 that is a pair
     of 538px tiles with a 40px icon and four words in each. */
  .igrid, .linkgrid, .ah-grid { grid-template-columns: repeat(3, 1fr); }

  /* The hero art is a fixed 162px pinned to the right edge, so at this width the
     copy no longer has to keep clear of a third of the card. */
  .hero-copy, .hero-brand .hero-copy { max-width: 58%; }

  /* The radio bar floats above the tabs and was centred on 640. It sits over the
     column now so it does not read as belonging to some narrower page. */
  .player { max-width: 820px; }
}

/* ==========================================================================
   THE HEART EGG, Christmas 2026. Tim, 2026-11-30: seven taps on the little heart
   in the top left opens the Channel Library, and "jazz it up some more ... a nice
   christmas treat". js/xmasegg.js builds all of it; nothing here is on screen
   until somebody has tapped the heart three times.
   Motion is behind prefers-reduced-motion at the bottom of the block: the snow,
   the unwrapping and the shake all stop, and the card alone is left.
   ========================================================================== */
.mark { cursor: pointer; }
.xegg-pop { animation: xeggPop 420ms var(--ease); }
@keyframes xeggPop {
  0% { transform: scale(1); filter: none; }
  35% { transform: scale(1.35) rotate(-7deg); filter: drop-shadow(0 0 10px var(--gold)); }
  70% { transform: scale(1.1) rotate(5deg); filter: drop-shadow(0 0 6px var(--gold)); }
  100% { transform: scale(1); filter: none; }
}

/* the lights strip: one bulb per tap, hung under the header */
.xegg-lights {
  position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 56px);
  z-index: 60; display: flex; gap: 14px; justify-content: center; pointer-events: none;
  opacity: 0; transition: opacity 180ms linear;
}
.xegg-lights.on { opacity: 1; }
.xegg-lights i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px 2px rgba(246, 197, 34, .75);
  animation: xeggBulb 1.6s var(--d, 0ms) infinite ease-in-out, xeggDrop 320ms var(--ease) backwards;
}
.xegg-lights i:nth-child(2n) { background: #ff4b4b; box-shadow: 0 0 10px 2px rgba(255, 75, 75, .7); }
.xegg-lights i:nth-child(3n) { background: #49d17a; box-shadow: 0 0 10px 2px rgba(73, 209, 122, .7); }
.xegg-lights i:nth-child(4n) { background: var(--seam); box-shadow: 0 0 10px 2px rgba(66, 131, 211, .7); }
@keyframes xeggBulb { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes xeggDrop { from { transform: translateY(-14px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* the reveal */
body.xegg-open { overflow: hidden; }
.xegg-wrap {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 24px; background: rgba(5, 11, 32, .9); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 260ms linear;
}
.xegg-wrap.in { opacity: 1; }
.xegg-card {
  position: relative; z-index: 2; max-width: 420px; width: 100%; text-align: center;
  padding: 26px 22px 22px; border-radius: var(--r-hero);
  background: linear-gradient(180deg, var(--ice-2), var(--ice-1));
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(246, 197, 34, .25) inset;
  transform: translateY(16px) scale(.96); transition: transform 320ms var(--ease);
}
.xegg-wrap.in .xegg-card { transform: none; }
.xegg-kicker { margin: 10px 0 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--seam-ink); }
.xegg-h { margin: 2px 0 8px; font-size: 1.7rem; line-height: 1.1; }
.xegg-p { margin: 0 0 16px; }
.xegg-fine { margin: 12px 0 0; font-size: .8rem; opacity: .85; }
.xegg-go { width: 100%; }

/* the present, which unwraps itself once */
.xegg-gift { position: relative; width: 96px; height: 86px; margin: 0 auto; }
.xegg-gift span { position: absolute; display: block; }
.xegg-box { left: 8px; bottom: 0; width: 80px; height: 58px; border-radius: 6px; background: linear-gradient(180deg, #2a55a8, #15306e); border: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0, 0, 0, .35); }
/* the ribbon: the upright down the front of the box, and one band across it.
   NOT box-shadow copies - a shadow repeats the element's own 12x58 shape, so the first version drew three gold
   uprights and read as a bundle of sticks (seen on screen, 2026-11-30). */
.xegg-ribbon { left: 42px; bottom: 0; width: 12px; height: 58px; background: var(--g-gold); }
.xegg-ribbon::after { content: ''; position: absolute; left: -34px; top: 22px; width: 80px; height: 10px; background: #E2B01A; }
/* The lid tilts off to one side rather than hovering straight up, and the bow rides on it: a lid and a bow both
   rising vertically read as a T, which is what the first version drew (measured on screen, 2026-11-30). */
.xegg-lid { left: 0; bottom: 56px; width: 96px; height: 16px; border-radius: 5px; background: var(--g-gold); transform-origin: 14% 100%; animation: xeggLid 1.1s var(--ease) 260ms both; }
.xegg-bow { left: 34px; bottom: 68px; width: 28px; height: 18px; border-radius: 50% 50% 40% 40%; background: var(--g-gold); box-shadow: inset 0 -4px 0 rgba(142, 89, 8, .35); transform-origin: 20% 100%; animation: xeggBow 1.1s var(--ease) 260ms both; }
@keyframes xeggLid { 0% { transform: none; } 45% { transform: translate(6px, -12px) rotate(-16deg); } 100% { transform: translate(10px, -16px) rotate(-26deg); } }
@keyframes xeggBow { 0% { transform: none; } 45% { transform: translate(10px, -16px) rotate(-16deg) scale(1.06); } 100% { transform: translate(16px, -24px) rotate(-26deg); } }

/* the snow */
.xegg-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.xegg-snow i {
  position: absolute; top: -6%; left: var(--x); width: var(--s); height: var(--s);
  border-radius: 50%; background: #fff; opacity: var(--o);
  animation: xeggFall var(--t) linear var(--d) infinite;
}
@keyframes xeggFall {
  from { transform: translate3d(0, -10vh, 0); }
  to { transform: translate3d(14px, 110vh, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .xegg-pop, .xegg-lights i, .xegg-lid, .xegg-bow, .xegg-snow i { animation: none !important; }
  .xegg-wrap, .xegg-card { transition: none !important; }
  .xegg-snow { display: none; }
  .xegg-lid { transform: translate(10px, -16px) rotate(-26deg); }
  .xegg-bow { transform: translate(16px, -24px) rotate(-26deg); }
}
