/* Foodish · "Blue Hour" design. Two looks, switched by <html data-look="night|day"> (see sky.js / app.js).
   Lit (yellow) = on now · outlined = later today · blue band = all day · deals that have ended aren't shown.
   Rules: square corners, no shadows or gradients, no emoji. */

:root {
  --f-num: "Sofia Sans Extra Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-name: "Bodoni Moda", Didot, Georgia, serif;
  --f-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #121A3A;
  --ember: #FF6A3D;
  --building: #24316B;
  --gutter: 16px;
}
html[data-look="night"] {
  --ground: #121A3A; --deep: #0B1026; --raised: #24316B; --rule: #343D6E;
  --text: #F3EEE2; --muted: #8E9AC9;
  --lamp: #F7C948; --glow: #FFE9A8; --frame: none;
  --count: #F7C948; --sel-bg: #F7C948; --sel-fg: #121A3A; --sup: #F7C948;
  --needle: #FF6A3D; --win-dark: #0B1026; --win-later: #8E9AC9;
  --band: #24316B; --band-text: #F3EEE2;
  --allday-bg: #7C8BD0; --allday-text: #121A3A; --allday-price: #121A3A; --allday-sub: #121A3A; --allday-rule: rgba(18,26,58,.22);
  --ended-bg: #0B1026; --off: #7E89B5;
  --input-bg: #24316B; --input-line: transparent;
  --grain-blend: soft-light; --grain-op: .06;
  color-scheme: dark;
}
html[data-look="day"] {
  --ground: #E6E3DA; --deep: #DAD6CC; --raised: #F3F0E8; --rule: #B5B2AA;
  --text: #121A3A; --muted: #4B5580;
  --lamp: #F5C033; --glow: #F5C033; --frame: inset 0 0 0 2px #121A3A;
  --count: #121A3A; --sel-bg: #121A3A; --sel-fg: #F3EEE2; --sup: #24316B;
  --needle: #121A3A; --win-dark: #8E9AC9; --win-later: #E6E3DA;
  --band: #F3F0E8; --band-text: #121A3A;
  --allday-bg: #24316B; --allday-text: #F3EEE2; --allday-price: #F5C033; --allday-sub: #C9CFEA; --allday-rule: rgba(243,238,226,.2);
  --ended-bg: #DAD6CC; --off: #565A70;
  --input-bg: #F3F0E8; --input-line: #B5B2AA;
  --grain-blend: multiply; --grain-op: .08;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground); color: var(--text);
  font-family: var(--f-body); font-size: 15px; line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  transition: background-color 1s ease, color 1s ease;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { body, body * { transition: none !important; animation: none !important; } }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius); }
input { font: inherit; border-radius: var(--radius); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.blk :focus-visible, .allday :focus-visible { outline-color: currentColor; }
svg { flex: 0 0 auto; }
svg path, svg circle, svg ellipse { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; opacity: var(--grain-op); mix-blend-mode: var(--grain-blend); }
.grain rect { stroke: none; }
.desk-only, .search-desk, .days-desk { display: none !important; }
.caps { font-family: var(--f-num); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 8px 0 var(--gutter); }
.wordmark { font-family: var(--f-name); font-style: italic; font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.01em; text-decoration: none; }
.city-btn { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; margin-left: 6px; border: 0; background: transparent; font-weight: 500; font-size: 15px; }
.grow { flex: 1 1 auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; border: 0; background: transparent; padding: 0 6px; font-size: 14px; font-weight: 500; }
.alerts-dot { position: absolute; top: 9px; left: 26px; width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 2px var(--ground); }
.city-panel { margin: 0 var(--gutter); border-top: 1px solid var(--rule); }
.city-panel button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; min-height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; }
.city-panel .desc-s { font-size: 14px; line-height: 1.3; font-weight: 500; overflow-wrap: break-word; }
.nm { font-family: var(--f-name); font-style: italic; font-weight: 500; font-size: 22px; }
.city-panel [aria-pressed="true"] .nm { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.city-panel .tz { font-family: var(--f-num); font-weight: 600; font-size: 17px; letter-spacing: .06em; color: var(--muted); }
.search-row { padding: 0 var(--gutter) 8px; }
.search-field, .search-desk { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: var(--input-bg); box-shadow: inset 0 0 0 1px var(--input-line); }
.search-field input, .search-desk input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-field input::placeholder, .search-desk input::placeholder, .line-field input::placeholder { color: var(--muted); opacity: 1; }

/* ---------- hero ---------- */
.hero { padding: 14px var(--gutter) 0; }
.kicker { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.loc-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: underline dashed; text-underline-offset: 4px; }
.count-row { display: flex; align-items: flex-end; gap: 14px; margin-top: 4px; }
.count { font-family: var(--f-num); font-weight: 800; font-size: 120px; line-height: .8; color: var(--count); letter-spacing: -.01em; }
.count-words { margin: 0 0 4px; font-size: 20px; font-weight: 500; line-height: 1.2; }
.radius-btn { border: 0; background: transparent; padding: 0; min-height: 32px; font-weight: 700; text-decoration: underline dashed 1.5px; text-underline-offset: 5px; }
.street-wrap { position: relative; margin-top: 18px; }
.sky-arc { display: none; width: 100%; height: 70px; }
.sky-arc path { stroke: #9B98A0; stroke-width: 1.25; stroke-dasharray: 3 5; }
.sun { display: none; position: absolute; top: 0; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 2px var(--ink); }
html[data-look="day"] .sky-arc, html[data-look="day"] .sun { display: block; }
html[data-look="night"] .street-wrap { margin-top: 26px; }
.street { display: flex; align-items: flex-end; gap: 5px; height: 152px; border-bottom: 2px solid var(--rule); }
html[data-look="day"] .street { border-bottom-color: var(--ink); }
.bldg { overflow: hidden; flex: 1 1 0; min-width: 0; max-width: 39px; display: grid; grid-template-columns: repeat(2, 12px); justify-content: center; align-content: start; gap: 6px 5px; padding-top: 9px; background: var(--building); text-decoration: none; transition: height .4s; }
.win { display: block; width: 12px; height: 16px; background: var(--win-dark); transition: background-color 1s; }
.win.w-later { background: transparent; box-shadow: inset 0 0 0 1.5px var(--win-later); }
.win.lit { background: var(--lamp); animation: lightOn .7s linear both; }
@keyframes lightOn { 0%, 55% { background: var(--win-dark); } 62% { background: var(--lamp); } 70% { background: var(--win-dark); } 78%, 100% { background: var(--lamp); } }
.street-km { display: flex; gap: 5px; margin-top: 6px; }
.street-km span { flex: 1 1 0; min-width: 0; max-width: 39px; text-align: center; font-family: var(--f-num); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.subline { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.status { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.status:empty { display: none; }
.link-btn { border: 0; background: transparent; padding: 0; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- days + categories ---------- */
.days { display: flex; gap: 6px; }
.days-phone { padding: 26px var(--gutter) 0; }
.days button { flex: 1 1 0; min-width: 0; max-width: 46px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; padding: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.days button .l { font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1; }
.days button .n { font-family: var(--f-num); font-weight: 800; font-size: 26px; line-height: 1; }
.days button[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-fg); box-shadow: none; }
.cats-row { margin-top: 18px; }
.cats { display: flex; align-items: center; gap: 4px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats .sep { flex: 0 0 auto; font-family: var(--f-num); font-weight: 600; font-size: 22px; color: var(--rule); }
.cats button { flex: 0 0 auto; min-height: 44px; padding: 0 6px; border: 0; background: transparent; font-family: var(--f-num); font-weight: 600; font-size: 22px; letter-spacing: .05em; white-space: nowrap; text-transform: uppercase; }
.cats button.none { color: var(--muted); }
.cats button sup { font-size: 12px; margin-left: 2px; color: var(--sup); }
.cats button[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-fg); }
.cats button[aria-pressed="true"] sup { color: inherit; }
/* phone control bar: distance and list/map in one row that stays put in both views */
.ctl-bar { display: flex; gap: 8px; padding: 12px var(--gutter) 0; }
.ctl-bar .dist { flex: 1 1 auto; position: relative; }
.ctl-bar .dist::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ctl-bar select { width: 100%; min-height: 44px; padding: 0 36px 0 12px; border: 0; border-radius: var(--radius); -webkit-appearance: none; appearance: none; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--rule); font-family: var(--f-num); font-weight: 800; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.ctl-bar .seg-view { display: flex; flex: 0 0 auto; }
.ctl-bar .seg-view button { min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--rule); font-family: var(--f-num); font-weight: 800; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.ctl-bar .seg-view button[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-fg); box-shadow: none; }
body.view-map .ctl-bar { padding-bottom: 10px; }

/* ---------- groups ---------- */
.list { padding-bottom: 0; }
.group { margin-top: 48px; }
.ghead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 var(--gutter); padding-top: 10px; border-top: 1px solid var(--rule); }
.ghead h2 { margin: 0; white-space: nowrap; font-family: var(--f-num); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.ghead .meta { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.ghead .meta.hot { color: var(--ember); }
html[data-look="day"] .ghead .meta.hot { color: #B33A12; }
.empty { margin: 40px var(--gutter) 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.empty .big { margin: 0; font-family: var(--f-name); font-style: italic; font-weight: 700; font-size: 26px; line-height: 1.15; }
.empty p { margin: 8px 0 0; color: var(--muted); }

/* ---------- lit blocks ---------- */
.blk { --blk-bg: var(--lamp); position: relative; background: var(--blk-bg); color: var(--ink); box-shadow: var(--frame); animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.blk.glow { --blk-bg: var(--glow); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.blk a, .blk button { color: var(--ink); }
.ember { position: absolute; top: 0; right: 0; width: 8px; height: 8px; background: var(--ember); }
.inset { margin: 0 var(--gutter); }
.num { font-family: var(--f-num); font-weight: 800; line-height: .85; }
.unit { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; }
.nm { font-family: var(--f-name); font-style: italic; font-weight: 700; line-height: 1.05; margin: 0; }
.km { font-family: var(--f-num); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; box-shadow: inset 0 0 0 1.5px currentColor; }
.blk-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 14px; margin-top: 8px; }
.blk-foot .acts { display: flex; flex-wrap: wrap; gap: 0 14px; }
.blk-foot .acts { gap: 0 4px; }
.blk-foot .ico { gap: 5px; text-decoration: none; }
.blk-foot a, .blk-foot button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.more-text { margin: 12px 0 0; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 14px; }
.more-text p { margin: 0 0 8px; }
.timebar { margin-top: 18px; }
.timebar .bar { position: relative; height: 6px; background: rgba(18,26,58,.25); }
.timebar .done { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ember); }
html[data-look="day"] .timebar .done { background: var(--ink); }
.timebar .tick { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--ink); }
.timebar .ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }

/* ---------- places on now: one plain row each ---------- */
.group .rows { margin: 8px var(--gutter) 0; }
.nrow { padding: 12px 0 2px; border-bottom: 1px solid var(--rule); }
.nrow-main { display: flex; align-items: baseline; gap: 12px; }
.nrow .txt { flex: 1 1 auto; min-width: 0; }
.nrow .nm { font-size: 22px; }
.nrow .deals { margin: 4px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.nrow .km { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.nrow .blk-foot { margin-top: 0; color: var(--muted); }
.nrow .blk-foot a, .nrow .blk-foot button { color: inherit; font-size: 13px; }
.nrow .more-text { border-top: 1px solid var(--rule); color: var(--muted); }

/* ---------- later today ---------- */
.later { margin-top: 64px; padding: 0 var(--gutter); }
.later .eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.outline-num { font-family: var(--f-num); font-weight: 800; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.later-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 6px; }
.later-hero .outline-num { display: flex; align-items: flex-start; gap: 4px; margin: 0; }
.later-hero .outline-num .t { font-size: clamp(96px, 36vw, 168px); }
.later-hero .outline-num.long .t { font-size: clamp(72px, 26vw, 150px); }
.later-hero .outline-num .ap { font-size: 28px; line-height: 1; }
.later-hero .in { margin: 0 0 6px; font-size: 14px; color: var(--muted); text-align: right; }
.rail { position: relative; margin-top: 20px; border-bottom: 1px solid var(--rule); }
.rail .r { position: absolute; height: 12px; box-shadow: inset 0 0 0 1.5px var(--text); }
.rail .needle { position: absolute; top: -4px; bottom: -6px; width: 2px; background: var(--needle); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.rail-axis { position: relative; height: 18px; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.rail-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rail-axis span:first-child { transform: none; }
.rail-axis span:last-child { transform: translateX(-100%); }
.lrow { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.lrow .txt { flex: 1 1 auto; min-width: 0; }
.lrow .nm { font-size: 21px; line-height: 1.1; }
.lrow .sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.outline-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--text); background: transparent; font-size: 14px; font-weight: 500; text-decoration: none; }
.start-group { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.start-group > .outline-num { flex: 0 0 112px; font-size: 76px; }
.start-group .places { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.start-group .when { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.start-group .place .nm { font-size: 18px; }
.start-group .place .sub { margin: 1px 0 0; font-size: 13px; color: var(--muted); }
.start-group .place .cal { min-height: 32px; padding: 0; border: 0; background: transparent; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- alerts band ---------- */
.alerts-band { margin-top: 64px; padding: 26px var(--gutter); background: var(--band); color: var(--band-text); display: flex; gap: 16px; align-items: flex-start; }
html[data-look="day"] .alerts-band { box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
.lamp { width: 64px; height: 72px; color: var(--lamp); }
html[data-look="day"] .lamp { color: var(--ink); }
html[data-look="day"] .lamp .shade { fill: var(--lamp); }
.lamp path, .lamp circle { stroke-width: 2; }
.alerts-body { flex: 1 1 auto; min-width: 0; }
.alerts-body h2 { margin: 0; font-family: var(--f-name); font-style: italic; font-weight: 700; font-size: 26px; line-height: 1.1; }
.alerts-body > p { margin: 6px 0 0; }
.alerts-band .hint, .alerts-band .line-field { color: var(--band-text); }
.toggles { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0; border: 0; background: transparent; text-align: left; font-size: 14px; }
.toggle .track { flex: 0 0 52px; height: 32px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; display: flex; justify-content: flex-start; transition: background-color .2s; }
.toggle .thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--muted); }
.toggle[aria-pressed="true"] .track { justify-content: flex-end; background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.toggle[aria-pressed="true"] .thumb { background: var(--lamp); }
.toggle:disabled { opacity: .5; cursor: not-allowed; }
.line-field { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.line-field input { height: 44px; border: 0; border-bottom: 1px solid var(--text); background: transparent; color: var(--text); font-size: 16px; font-weight: 400; letter-spacing: 0; outline-offset: 2px; }

/* ---------- all day ---------- */
.allday { padding: 26px var(--gutter) 22px; background: var(--allday-bg); color: var(--allday-text); }
.allday .ghead2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.allday h2 { margin: 0; font-family: var(--f-num); font-weight: 800; font-size: 40px; line-height: 1; }
.allday .rows { margin-top: 12px; border-top: 1px solid var(--allday-rule); }
.arow { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--allday-rule); text-decoration: none; }
.arow .num { flex: 0 0 96px; font-size: 26px; line-height: 1; color: var(--allday-price); overflow-wrap: anywhere; }
.arow .num.word { font-size: 19px; }
.arow .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.arow .what { font-size: 15px; font-weight: 500; line-height: 1.25; }
.arow .where { font-size: 13px; line-height: 1.3; color: var(--allday-sub); }
.arow .d { flex: 0 0 auto; font-family: var(--f-num); font-weight: 600; font-size: 16px; letter-spacing: .04em; }
.show-more { margin: 16px var(--gutter) 0; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--text); background: transparent; font-weight: 700; font-size: 15px; }
.allday .show-all { margin-top: 16px; min-height: 48px; padding: 0 18px; border: 1.5px solid currentColor; background: transparent; font-weight: 700; font-size: 15px; }


/* ---------- another day / coming up ---------- */
.sched { margin: 16px var(--gutter) 0; }
.srow { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.srow .t { flex: 0 0 92px; font-family: var(--f-num); font-weight: 800; font-size: 22px; line-height: 1.05; }
.srow .txt { flex: 1 1 auto; min-width: 0; }
.srow .nm { font-size: 19px; }
.srow .sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.srow .p { flex: 0 0 auto; font-family: var(--f-num); font-weight: 800; font-size: 24px; color: var(--text); max-width: 40%; text-align: right; overflow-wrap: anywhere; }
.soon { list-style: none; margin: 12px 0 0; padding: 0; }
.soon button { width: 100%; display: flex; gap: 12px; align-items: baseline; min-height: 56px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; }
.soon .when { flex: 0 0 92px; font-family: var(--f-num); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.soon .what { flex: 1 1 auto; }
.soon .what small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */
.foot { padding: 30px var(--gutter) 36px; background: var(--ended-bg); border-top: 1px solid var(--rule); }
.foot h2 { margin: 0; font-family: var(--f-name); font-style: italic; font-weight: 700; font-size: 28px; line-height: 1.1; }
.foot .caps-title { font-family: var(--f-num); font-style: normal; font-weight: 800; font-size: 20px; letter-spacing: .1em; }
.tell-fields { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.lamp-btn { margin-top: 18px; min-height: 48px; padding: 0 22px; border: 0; background: var(--lamp); color: var(--ink); box-shadow: var(--frame); font-weight: 700; font-size: 15px; }
.lamp-btn:disabled { opacity: .6; }
.settings { margin-top: 36px; }
.set-label { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.seg { display: flex; gap: 2px; }
.seg button { flex: 1 1 0; min-height: 48px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); font-weight: 700; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ground); }
.settings .toggle { margin-top: 10px; }
.links { margin: 12px 0 0; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }
.fine { margin: 24px 0 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
html[data-look="night"] .foot .fine, html[data-look="night"] .foot .hint, html[data-look="night"] .foot .set-label, html[data-look="night"] .foot .line-field { color: #8E9AC9; }

/* ---------- dock ---------- */
.dock { position: sticky; bottom: 0; z-index: 30; display: flex; height: 64px; padding-bottom: env(safe-area-inset-bottom); background: var(--ground); border-top: 1px solid var(--rule); transition: background-color 1s; }
.dock button { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font-family: var(--f-num); font-weight: 600; font-size: 18px; letter-spacing: .08em; }
.dock button[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 3px 0 var(--sel-bg); }

/* ---------- map ---------- */
.map-pane { display: none; position: relative; }
body.view-map .map-pane { display: block; }
body.view-map .list, body.view-map .foot, body.view-map .hero, body.view-map .days-phone, body.view-map .cats-row { display: none; }
body.view-map .cats-row.on-map { display: block; margin-top: 0; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.map { position: relative; isolation: isolate; z-index: 0; height: calc(100vh - 64px - 64px - 53px); height: calc(100dvh - 64px - 64px - 53px); min-height: 360px; background: var(--ground); }
html[data-look="night"] .map .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(.75) saturate(.6); }
html[data-look="day"] .map .leaflet-tile-pane { filter: grayscale(1) sepia(.12) contrast(.9) brightness(1.03); }
.map .leaflet-container, .leaflet-container { background: var(--ground); font-family: var(--f-body); }
.leaflet-control-attribution { background: var(--ground) !important; color: var(--muted) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--text) !important; }
.leaflet-bar a { background: var(--ground) !important; color: var(--text) !important; border-radius: 0 !important; border-color: var(--rule) !important; }
.leaflet-bar { border-radius: var(--radius) !important; overflow: hidden; border: 1px solid var(--rule) !important; box-shadow: none !important; }
.mk { display: grid !important; place-items: center; font-family: var(--f-num); font-weight: 800; color: var(--ink); line-height: 1; }
.mk-now { background: var(--lamp); box-shadow: 0 0 0 2px var(--ink); font-size: 18px; }
.mk-glow { background: var(--glow); }
.mk-later { background: var(--ground); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); font-size: 14px; }
.mk-all { background: #7C8BD0; }
.mk-sel { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--text); z-index: 1000 !important; }
.mk-later.mk-sel { box-shadow: inset 0 0 0 2px var(--text), 0 0 0 2px var(--ink); }
.me-dot { border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--ground); }
.me-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px var(--text); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 800; max-height: 70%; overflow-y: auto; padding: 10px var(--gutter) 16px; background: var(--lamp); color: var(--ink); box-shadow: var(--frame); animation: sheet .45s cubic-bezier(.2,.7,.2,1) both; }
.sheet.glow { background: var(--glow); }
.sheet.is-later { background: #7C8BD0; }
@keyframes sheet { from { transform: translateY(40px); } to { transform: none; } }
.sheet .grab { display: block; margin: 0 auto; width: 40px; height: 4px; background: var(--ink); }
.sheet .close { position: absolute; right: 8px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; }
.sheet h2 { margin: 14px 44px 0 0; font-family: var(--f-name); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1.02; }
.sheet .meta { margin: 6px 0 0; font-family: var(--f-num); font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.sheet .lines { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.sheet .line { display: flex; align-items: baseline; gap: 10px; }
.sheet .line .num { font-size: 56px; line-height: .95; }
.sheet .lines.many .line .num { font-size: 36px; }
.sheet .line .num.word { font-size: 26px; }
.sheet .when { margin: 12px 0 0; font-size: 14px; font-weight: 500; }
.sheet .btns { display: flex; gap: 8px; margin-top: 16px; }
.sheet .btns a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; text-decoration: none; font-weight: 700; font-size: 15px; }
.sheet .btns .solid { background: var(--ink); color: #F3EEE2; }
.sheet .btns .ghost { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 500; font-size: 14px; }
.map-note { margin: 10px var(--gutter) 0; font-size: 13px; color: var(--muted); }

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 0px; }
  body { font-size: 15px; }
  .desk-only { display: revert !important; }
  .phone-only, .days-phone, .dock, .ctl-bar, .phone-street, .search-row { display: none !important; }
  .top, .hero, .cats-row, .cols, .foot > * { max-width: 1296px; margin-left: auto; margin-right: auto; }
  .top { height: auto; flex-wrap: wrap; gap: 12px 20px; padding: 16px 32px; border-bottom: 1px solid var(--rule); max-width: 1360px; }
  .wordmark { font-size: 30px; }
  .city-wrap { position: relative; }
  .city-panel { max-width: 420px; margin: 0 auto 0 32px; }
  .search-desk { display: flex !important; flex: 1 1 280px; max-width: 360px; height: 44px; }
  .days-desk { display: flex !important; gap: 4px; }
  .days-desk button { flex: 0 0 44px; width: 44px; height: 44px; }
  .days-desk button .l { font-size: 10px; }
  .days-desk button .n { font-size: 20px; }
  .top-link { display: inline-flex !important; align-items: center; min-height: 44px; font-weight: 500; font-size: 14px; text-underline-offset: 4px; }
  .icon-btn .desk-only { display: inline !important; }
  .alerts-dot { left: 20px; }
  .hero { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; padding: 44px 32px 0; max-width: 1360px; }
  .hero-main { flex: 1 1 280px; }
  .count { font-size: 144px; }
  .count-words { font-size: 24px; }
  html[data-look="day"] .sun-badge { display: inline-block !important; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 2px var(--ink); }
  html[data-look="night"] .sun-badge { display: none !important; }
  .timetable { display: block !important; flex: 999 1 640px; min-width: 0; }
  .cats-row { display: flex; align-items: center; gap: 12px; margin-top: 36px; padding: 10px 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 1360px; }
  .cats { flex: 1 1 auto; flex-wrap: wrap; overflow: visible; padding: 0; }
  .radius-group { display: flex !important; gap: 2px; }
  .radius-group button { min-height: 40px; padding: 0 12px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); font-family: var(--f-num); font-weight: 800; font-size: 17px; letter-spacing: .06em; white-space: nowrap; }
  .radius-group button[aria-pressed="true"] { background: var(--text); color: var(--ground); box-shadow: none; }
  .cols { display: flex; gap: 40px; align-items: flex-start; padding: 40px 32px 64px; max-width: 1360px; }
  .list { flex: 999 1 560px; min-width: 0; }
  .map-pane, body.view-map .map-pane { display: block; flex: 1 1 440px; min-width: 0; position: sticky; top: 16px; }
  .map { height: 760px; box-shadow: inset 0 0 0 1px var(--rule); }
  .sheet { left: auto; right: 16px; bottom: auto; top: 16px; width: 290px; max-height: calc(100% - 32px); padding: 16px; }
  .sheet .grab { display: none; }
  .sheet h2 { font-size: 24px; margin-top: 0; }
  .sheet .line .num { font-size: 36px; }
  .sheet .lines.many .line .num { font-size: 28px; }
  .group:first-child { margin-top: 0; }
  .later { padding: 0; }
  .allday { padding: 22px; margin-top: 8px; }
  .allday { margin-top: 32px; }
  .allday .rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 28px; border-top: 0; }
  .allday .arow { border-top: 1px solid var(--allday-rule); border-bottom: 0; }
  .ghead { margin: 0; }
  .group .rows { margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 28px; }
  .empty, .sched { margin-left: 0; margin-right: 0; }
  .foot { padding: 40px 32px; }
  .foot-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; }
  .foot-grid > * { flex: 1 1 380px; }
  .tell-fields { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; }
  .tell-fields .line-field { flex: 1 1 200px; }
  .settings { margin-top: 0; }
  /* timetable */
  .tt-rows { position: relative; display: flex; flex-direction: column; gap: 4px; }
  .tt-row { display: flex; align-items: center; gap: 16px; height: 30px; }
  .tt-row .nm { flex: 0 0 230px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; font-size: 18px; }
  .tt-row.is-later .nm { color: var(--muted); }
  .tt-track { flex: 1 1 auto; position: relative; height: 30px; box-shadow: inset 0 -1px 0 var(--rule); }
  .tt-bar { position: absolute; top: 3px; height: 24px; padding: 0 8px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; background: var(--lamp); color: var(--ink); box-shadow: var(--frame); font-family: var(--f-num); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
  .tt-bar.glow { background: var(--glow); }
  .tt-bar.is-later { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
  .tt-marks { position: absolute; left: 246px; right: 0; top: -14px; bottom: 0; pointer-events: none; }
  .tt-marks .needle { position: absolute; top: 0; bottom: -4px; width: 2px; background: var(--needle); }
  .tt-marks .flag { position: absolute; top: -8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--needle); white-space: nowrap; }
  .tt-marks .sunset { position: absolute; top: 0; bottom: -4px; border-left: 1.5px dashed var(--building); }
  .tt-marks .sunset-flag { position: absolute; top: -8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--building); white-space: nowrap; }
  html[data-look="night"] .tt-marks .sunset, html[data-look="night"] .tt-marks .sunset-flag { display: none; }
  .tt-axis { position: relative; height: 20px; margin: 8px 0 0 246px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
  .tt-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
  .tt-axis span:first-child { transform: none; }
  .tt-axis span:last-child { transform: translateX(-100%); }
  .tt-empty { color: var(--muted); }
}

/* Long names and descriptions never push the page sideways. */
.stack-head .nm, .split-head .nm, .cut-head .nm, .lad-head .nm, .banner .nm, .stamp-wrap .nm, .lrow .nm, .srow .nm, .sheet h2 { min-width: 0; overflow-wrap: anywhere; }
.stack .row > :last-child, .sheet .line > :last-child, .banner .txt > * { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }

/* "Something wrong? Tell us" under a place, and the footer's robot / privacy links */
.fix { margin: 8px 0 0; font-size: 13px; }
.fix a, .fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.fix a:hover, .fine a:hover { color: var(--text); }

/* ---------- phone first screen: count and street side by side, so a real deal shows without scrolling ---------- */
@media (max-width: 1023px) {
  .dock { display: none; }
  .hero { padding-top: 8px; }
  .hero-main { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: end; }
  .kicker, .status { grid-column: 1 / -1; }
  .count-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .count { font-size: 76px; }
  .count-words { font-size: 16px; }
  .street-wrap, html[data-look="night"] .street-wrap { margin-top: 0; }
  .sky-arc, .sun, html[data-look="day"] .sky-arc, html[data-look="day"] .sun, .street-km, .subline { display: none; }
  .street { gap: 3px; }
  .bldg { grid-template-columns: repeat(2, 7px); gap: 4px 3px; padding-top: 5px; }
  .win { width: 7px; height: 9px; }

  .days-phone { padding-top: 14px; }
  .days button { height: 46px; }
  .days button .n { font-size: 21px; }
  .cats-row { margin-top: 6px; }
  .cats button { font-size: 18px; min-height: 40px; }

  .group { margin-top: 24px; }
  .ghead h2 { font-size: 30px; }

  /* mornings: when deals switch on later, skip the "nothing on" note and lead with the first places */
  .empty { margin-top: 14px; padding-top: 12px; }
  .empty .big { font-size: 19px; }
  .empty.has-later { display: none; }
  .later { margin-top: 18px; display: flex; flex-direction: column; }
  .later > * { order: 1; }
  .later > .rail-wrap { order: 2; margin-top: 18px; }
  .later-hero .outline-num .t, .later-hero .outline-num.long .t { font-size: 64px; }
  .later-hero .outline-num .ap { font-size: 20px; }
}
.srow .t:empty { display: none; }  /* all-day rows have no start time: no blank column */

/* picture-first: food pictures, numbers and familiar icons instead of words */
.ctl-bar .dist .pin { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ctl-bar select { padding-left: 38px; }
.ctl-bar .seg-view button { display: flex; align-items: center; justify-content: center; width: 52px; padding: 0; }
.cats { gap: 6px; }
.cats button.pic { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-width: 64px; min-height: 64px; padding: 6px 8px 4px; box-shadow: inset 0 0 0 1px var(--rule); font-family: inherit; letter-spacing: .04em; }
.cats button.pic .e { display: flex; line-height: 1; }
.cats button.pic .w { margin-top: 4px; font-size: 10px; font-weight: 700; line-height: 1; }
.cats button.pic sup { position: absolute; top: 3px; right: 5px; margin: 0; font-family: var(--f-num); font-weight: 800; }
.cats button.pic[aria-pressed="true"] { box-shadow: none; }
.nrow .deals { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.nrow .deals .dl { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.nrow .deals .dl b { font-weight: 800; }
.nrow .deals .more-n { color: var(--muted); padding-left: 28px; }
.nrow .deals .e { display: flex; color: var(--muted, currentColor); }
.km { display: inline-flex; align-items: center; gap: 3px; }
.km svg { width: 15px; height: 15px; }
.blk-foot .acts { gap: 8px; }
.blk-foot .ico { justify-content: center; width: 48px; min-height: 44px; box-shadow: inset 0 0 0 1.5px var(--rule); }
.blk-foot .ico.go { background: var(--sel-bg); color: var(--sel-fg); box-shadow: none; }
.blk-foot .ico.go svg path { stroke: var(--sel-fg); }
.blk-foot .ico.more { width: 44px; box-shadow: none; }
.blk-foot .ico.more.is-open svg { transform: rotate(180deg); }

/* modern rounded corners: one radius everywhere, joined pairs read as one control */
:root { --radius: 12px; --radius-sm: 8px; }
.search-field, .search-desk, .outline-btn, .show-more, .allday .show-all, .blk-foot .ico, .sheet .btns a, .map { border-radius: var(--radius); }
.tag, .mk, .tt-bar, .rail .r { border-radius: var(--radius-sm); }
.ctl-bar .seg-view button:first-child, .seg button:first-child, .radius-group button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.ctl-bar .seg-view button:last-child, .seg button:last-child, .radius-group button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.radius-group button:not(:first-child):not(:last-child), .seg button:not(:first-child):not(:last-child) { border-radius: 0; }
.sheet { border-radius: 20px 20px 0 0; }
.days button, .cats button.pic { border-radius: var(--radius); }
.nrow .deals[data-open] { cursor: pointer; }
