/* ============================================================================
   Mambo Front Desk Hub — the SKELETON's shared CSS (M4-C8a).
   Hand-authored, no framework/CDN/build (DEC-023 / DEC-073 / spec §6).

   ⚠ THIS FILE NO LONGER DECLARES A PALETTE. Until M4-C8a it baked the "Midnight"
   preset in as `:root` defaults and `hub.js` overwrote them per client. Under the
   theme catalog the colour slots belong to the THEME: each theme's generated
   `themes/<slug>/theme.css` fills the DESIGN.md §4.1 vocabulary, and a venue's brand hex
   reaches those slots by DERIVATION (themes/engine.mjs) rather than by storing a bespoke
   palette.
   ⚠ LINK ORDER IS LOAD-BEARING: the template links the theme AFTER this file. Both declare
   `:root`, so they have identical specificity and the LAST one wins — a theme linked first
   would be silently overridden by the fallbacks below and every page would render grey.

   The vocabulary swapped wholesale at C8a — v1 -> §4.1:
     --bg -> --canvas · --text -> --ink · --border -> --line · --accent-ink -> --on-voltage
     --accent -> --voltage (fills, tints, borders, focus rings — 3:1 floor)
              -> --voltage-text (TEXT — 7:1 floor)
   ⚠ That last split is The Two-Voltage Rule (§4.2) and it is the point of the swap, not
   a detail: v1's single `--accent` served both jobs, so every accent-coloured LABEL on
   the shipped hub was being graded against a fill's 3:1 floor. 31 `--accent` uses
   partitioned into 17 graphical and 14 textual.

   What stays here: geometry, spacing, type scale and the universal chrome sizes — the
   things a theme may NOT touch (§3 the theme model).
   ========================================================================== */

:root {
  /* ---- universal (never per-client, never per-theme) ---- */
  --maxw: 520px;
  --nav-h: 64px;
  /* §4.2 — the sticky-header height the menu jumpbar offsets against. C8a part 3 removed the header
     from every route, so it is 0; kept as a token (not hardcoded 0) so a route that reintroduces a
     sticky top can set it once and the jumpbar + scroll-margins follow. */
  --header-h: 0px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
}

/* ⚠ LAST-RESORT FALLBACKS ONLY — never a palette, and never a second Poster.
   If the theme stylesheet fails to load, an unstyled page is unreadable rather than
   merely ugly: `color: var(--ink)` with no `--ink` resolves to nothing and the browser
   paints black-on-black or white-on-white depending on the element. These are the
   achromatic values that keep the page LEGIBLE while being obviously not a theme, so a
   missing stylesheet looks broken to a human instead of passing review. Poster's real
   values live in `themes/poster/theme.css` and are AAA-graded there; duplicating them
   here would be the second-copy-that-drifts path `[gate-built-to-catch-loss-can-lose]`
   names, and the drift would be invisible because both would look right. */
:root {
  --canvas: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #111111;
  --muted: #3F3F3C;
  --line: #767676;
  --voltage: #767676;
  --voltage-text: #111111;
  --on-voltage: #FFFFFF;
  --radius-card: 0px;
  --radius-pill: 100px;
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  /* 16px, the DESIGN.md `body` step. This was 15px until C8a — not a design decision, a value that
     predated the type ramp and sat 1px off it. Every literal font-size in this file is now a step in
     `DESIGN.md` frontmatter (`typography` roles + `typography.scale`); `detect design-system-*` is
     the check that keeps it that way, and a new literal here means either the CSS is wrong or the
     contract under-declares. Decide which — do not add a step to silence a finding. */
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Nav height PLUS a clearance gap. The bare nav height leaves the last line of block 7 flush
     against the fixed bar — measured 1px of separation, which reads as a rendering fault rather
     than as an end. 20px is what DESIGN.md §2.3's block table budgets (84px of bottom-nav
     clearance against a 64px bar). */
  padding-bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom, 0px));
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
/* The focus ring follows the THEME's content shape rather than a literal — a hard-edged theme gets
   square rings, a rounded one gets rounded rings. It was a hardcoded 4px until C8a, which is a
   rounding no theme asked for and which contradicted Poster's own `--radius-card: 0px`. */
:focus-visible { outline: 2px solid var(--voltage); outline-offset: 2px; border-radius: var(--radius-card); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
.display { font-family: var(--font-display); }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The pre-M4 sticky header, hours pill and week panel CSS were DELETED at C8a part 3 with their
   markup and their `renderHeader` builder — no route shell carries `#site-header`/`#hours-panel`
   any more (§2.1). The hours affordance lives in block 1 on `/` and the `.loc-hours` disclosure on
   /location, both styled where they are used. */

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav ul { display: flex; max-width: var(--maxw); margin: 0 auto; list-style: none; padding: 0; }
.bottom-nav li { flex: 1; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  height: var(--nav-h); justify-content: center; font-size: 10px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.02em;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--voltage-text); }
.bottom-nav a.chat { color: var(--on-voltage); }
.bottom-nav a.chat .ico { background: var(--voltage); border-radius: 50%; padding: 7px; display: grid; place-items: center; margin-top: -14px; box-shadow: 0 4px 14px color-mix(in srgb, var(--voltage) 40%, transparent); }
.bottom-nav a.chat .ico svg { width: 22px; height: 22px; }
.bottom-nav a.chat span { color: var(--muted); }

/* ================= THE SEVEN HOME BLOCKS — DESIGN.md §2.1 / §2.2 =====================
   ⚠ SKELETON, not theme. What lives here is the block TREE and its geometry: what contains
   what, what stacks in which direction, what reserves which space. Every colour, rule
   weight, type size and case treatment that gives Poster its character is in
   `themes/poster/theme.css`, because that is the layer §3 lets a theme own. The split's
   working test: deleting the theme stylesheet must leave a page that is plain and legible
   in the right ORDER — never one whose blocks collapse or reflow.
   Added at C8a part 2, replacing the pre-M4 hero / Explore-grid / find-us-preview set. */

/* ---- BLOCK 2 · IDENTITY (the container; block 1 · STATUS is its first child, §2.2) ---- */
/* Positioned, because §2.2 specifies status as the first child of a POSITIONED element:
   that is what lets Poster leave status in flow and Photo-first absolutely position it over
   the hero, from ONE anchor, with no theme moving the block. */
#hub-identity { position: relative; }
/* Full-bleed to the column edges. `--pad` mirrors the .wrap padding, so a block can escape
   the column without knowing the column's width. */
#hub-status { margin: 0 calc(var(--s4) * -1); }
/* ⚠ CLS RESERVATION — load-bearing, not cosmetic. `renderHome` paints this block EMPTY
   (`statusInner: ""`) and fills it when the hours query resolves, deliberately keeping hours off
   the LCP path. Without a reservation it grows 0 -> 58px on that fill and pushes the hero and
   every block below it down: measured at C8a on the live host (lighthouse 12.8.2), that reflow is
   the 0.0668 shift Lighthouse attributes to `#hub-identity > .hero`, plus 58px of the 0.1675 it
   attributes to `#hub-optin` — out of a total CLS of 0.271 against a 0.1 floor.
   58px is the measured height of BOTH filled states that carry a `<details>` (open and closed).
   The degraded "Hours unavailable" state renders a `.line` with no disclosure and is shorter, so
   it under-fills this box rather than shifting — the safe direction. The exceptional-closure state
   (§7.1a) adds a `.msg` line and is TALLER, so a venue in that state still shifts; that residual is
   recorded rather than hidden, and it is bounded by one line of text.
   This does NOT fix blocks 3 and 4, which fill from their own queries and are the larger remaining
   share — see [OI-203]. */
#hub-status { min-height: 58px; }
/* §14.1 (C3 full-body spec, measure-first experiment, 2026-08-27-main-2) — reserve the two
   LATE-GROWING home blocks so their post-paint fills stop shifting everything below them. LH
   attributes shift to the elements that MOVE (#hub-menu 0.1146, #hub-optin 0.0676 — OI-203), but
   the movers are the boxes that GROW: block 3 (#hub-whatson, filled by fillBlock after the updates
   query) and block 4 (#hub-menu, filled after the products query). Same tradeoff #hub-status
   accepted at s206: painted empty at reserved height, filled when data lands.
   ⚠ Keyed on [data-expect], which renderHome ARMS at paint (whatson always — its query always
   runs; menu only when fd.surface.menu is enabled) and the empty-return/catch paths DISARM — an
   unconditional min-height would put a permanent 780px hole on any venue with no live updates and
   the menu module off (both review lenses, pre-deploy), because homeBlocks always emits the empty
   anchors and section.blk:empty only resets margin, not height.
   ⚠ Values are CL-0001's rendered heights at the LH mobile viewport (412w, measured live
   2026-08-27: whatson 497px / menu 283px) — a per-theme CONSTANT serving the §14.2 measurement,
   not a general mechanism; a venue whose rows fill shorter carries the difference as whitespace.
   The durable zero-CLS fix is the full-body one-paint render, which makes these reservations
   obsolete — remove them there. */
#hub-whatson[data-expect] { min-height: 497px; }
#hub-menu[data-expect] { min-height: 283px; }
#hub-status .line { display: flex; gap: var(--s3); align-items: center; padding: 9px var(--s4); }
#hub-status .msg { padding: 10px var(--s4) 0; }
#hub-status details > summary { list-style: none; cursor: pointer; padding: 7px var(--s4);
  display: flex; justify-content: space-between; align-items: center; }
#hub-status summary::-webkit-details-marker { display: none; }
#hub-status summary::after { content: "▾"; font-size: 10px; }
#hub-status details[open] > summary::after { content: "▴"; }
#hub-status .week { padding: 2px var(--s4) 10px; }
#hub-status .week > div { display: flex; justify-content: space-between; }

.masthead { padding: 22px 0 0; }
.masthead h1 { word-break: break-word; }   /* §5.1a — a long venue name must not overflow */
/* §7.7 brandmark — when a logo is present the <h1> wraps it instead of the venue name (name-
   suppression). Cap the height so any wordmark aspect ratio fits the masthead; width follows. */
.masthead h1.has-logo { line-height: 0; margin: 0; }
.masthead .logo { display: block; height: 44px; width: auto; max-width: 100%; }
.masthead .sub { display: flex; justify-content: space-between; gap: var(--s3); }
#hub-identity .hero { margin: 0 calc(var(--s4) * -1); }
#hub-identity .hero-gallery { position: relative; overflow: hidden; touch-action: pan-y; }
#hub-identity .hero-gallery .hero-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px;
  margin-top: -21px; border: 0; border-radius: 999px; background: rgba(18,18,18,.72); color: #fff;
  font: 400 30px/1 system-ui, sans-serif; cursor: pointer; }
#hub-identity .hero-gallery .hero-prev { left: 12px; }
#hub-identity .hero-gallery .hero-next { right: 12px; }
#hub-identity .hero-gallery .hero-arrow:disabled { opacity: .38; cursor: default; }
#hub-identity .hero-dots { position: absolute; z-index: 2; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; gap: 7px; padding: 7px 9px; border-radius: 999px; background: rgba(18,18,18,.62); }
#hub-identity .hero-dots button { width: 8px; height: 8px; padding: 0; border: 1px solid #fff; border-radius: 50%;
  background: transparent; cursor: pointer; }
#hub-identity .hero-dots button[aria-current="true"] { background: #fff; }
#hub-identity .hero-gallery button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* ⚠ `height: auto` is LOAD-BEARING, not tidying. The <img> carries width/height attributes
   (1200×675) so the browser can reserve space before the file arrives — but those attributes
   map to a presentational `height: 675px`, and `aspect-ratio` applies only when one dimension
   is auto. Without this line the hero rendered 412×675: the ratio was in the computed style,
   ignored, and the page was 400px taller than the block table says. Found by measuring the
   live DOM; reading the CSS shows `aspect-ratio: 16/10` and looks correct. */
#hub-identity .hero img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
/* No photo -> the fallback fills the hero slot at full width instead of thumbnail size.
   ⚠ KEYED ON `.hero`, NOT ON `.hero-none` — [OI-141] / C4 MUST-1 requires ONE fallback to serve
   BOTH no-photo states, and the two produce different markup: an empty URL renders
   `.hero.hero-none > .nofoto` at build time, while a URL that FAILS TO LOAD has its <img>
   replaced in place by a bare `.nofoto` inside a plain `.hero` (hub.js wireImageFallbacks adds
   no class). This rule and its three theme-layer counterparts were all keyed on `.hero-none`
   and so styled only the first state — a failed hero rendered as the 96px thumbnail card in
   every shipped theme, Poster included. Swept to `.hero` at C8b slice 2 (2026-08-29-main-6);
   the empty-URL case is unaffected because `.hero.hero-none` is also `.hero`. Guarded by
   scripts/tests/theme-shipped-set.test.mjs. */
#hub-identity .hero .nofoto { width: 100%; height: auto; aspect-ratio: 16/10; }
.intro { margin: 18px 0 4px; }

/* ---- shared block furniture (blocks 3, 4, 6) ---- */
section.blk { margin-top: 34px; }
/* An anchor with nothing to say collapses to zero height but STAYS IN THE TREE — C3 binds
   selectors to these ids and a selector that matches nothing is a silent no-op (§2.2). */
section.blk:empty { margin-top: 0; }

/* ---- BLOCK 3 · WHAT'S ON ---- */
#hub-whatson .row { display: grid; grid-template-columns: 1fr 96px; gap: 14px;
  align-items: center; padding: 16px 0; }
#hub-whatson .row img { width: 96px; height: 96px; object-fit: cover; }

/* ---- §7.3 / C4 MUST-1 · the no-photo fallback — ONE component, BOTH image states ----
   It carries information (venue name, area, hours) rather than decoration, and must read
   deliberate at thumbnail size. It replaces the four gradient + 44px-emoji placeholders. */
.nofoto { width: 96px; height: 96px; background: var(--surface); padding: 7px 6px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }

/* ---- BLOCK 4 · MENU PREVIEW ---- */
#hub-menu .mrow { display: flex; justify-content: space-between; gap: 14px;
  align-items: baseline; padding: 11px 0; }
#hub-menu .mrow .p { white-space: nowrap; }
#hub-menu .see-all { display: inline-block; margin-top: 13px; }

/* ---- BLOCK 5 · OPT-IN (§7.4) ----
   Full-bleed, which is the structural half of "reads as a distinct offer without competing
   with reach-us". The other half is the CTA fill, and it is a RULE rather than a taste:
   `.btn-invert` exists precisely so this button cannot reach for --voltage, which marks the
   primary action ~250px below. Two accent-filled buttons that close together read as one
   hierarchy with a repeated item. */
#hub-optin { margin: 32px calc(var(--s4) * -1) 0; padding: 26px 0 28px; }
#hub-optin .in { padding: 0 var(--s4); }
/* ⚠ The anchor STAYS in the tree when the band does not render (C3 binds to it), so its own box
   must collapse — otherwise every venue with `broadcasts_active = false`, which is the column
   DEFAULT, gets a full-bleed ~86px stripe of empty inverted canvas on `/`. `section.blk:empty`
   does not cover this one: the opt-in block is deliberately not a `.blk` (it is full-bleed, not
   column-width), so it needs its own reset. The theme zeroes its background alongside this. */
#hub-optin:empty { margin: 0; padding: 0; }
#hub-optin .btn { margin-bottom: 0; }

/* ---- BLOCK 6 · REACH US ---- */
#hub-reach address { font-style: normal; margin: 14px 0; }
#hub-reach .hrs-line { margin-top: 11px; }

/* ---- BLOCK 7 · FOOTER ---- */
#hub-footer { margin-top: 34px; padding: 16px 0 0; }
#hub-footer .soc a { margin-right: 12px; }
#hub-footer .mark { margin-top: 7px; }

/* ---------- generic page scaffolding ---------- */
main { padding-top: var(--s5); padding-bottom: var(--s6); position: relative; }
.page-head { text-align: center; margin-bottom: var(--s5); }
.page-head h1 { font-size: 30px; }
.page-head p { color: var(--muted); margin: var(--s2) 0 0; }
/* `.eyebrow` was deleted at C8a part 3 — the route page-heads dropped it (it carried the emoji the
   §7.5/C4.5 §6.2 no-emoji rule removed), and no renderer emits it now. */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: var(--radius-pill); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--voltage); color: var(--on-voltage); }
.btn-primary:hover { transform: translateY(-1px); }
/* §7.5 — a VISIBLE press state, not hover alone: the audience is touch, where :hover never fires.
   The pre-M4 system had five :hover rules and zero :active; the rebuild is where §7.5 binds. */
.btn:active { transform: translateY(1px); opacity: .85; }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
/* §7.4 — the INVERTED button, for a CTA sitting on an inverted band. It deliberately has no
   --voltage fill: on the opt-in band that accent belongs to the primary action below it, and
   the whole point of the separate class is that the opt-in CTA CANNOT reach for it. */
.btn-invert { background: var(--canvas); border-color: var(--canvas); color: var(--voltage-text); }
.btn-outline:hover { border-color: var(--voltage); background: color-mix(in srgb, var(--voltage) 10%, transparent); }
.btn-block { width: 100%; }

/* ---------- content cards (specials / events) ---------- */
.cards { display: flex; flex-direction: column; gap: var(--s4); }
.card { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); transition: border-color .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--voltage) 40%, transparent); transform: translateY(-2px); }
.card-img { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
/* The four `.grad-N` emoji-gradient placeholders were deleted at C8a part 3 — a no-image card now
   renders §7.3's no-photo fallback (`.card-img .nofoto`), carrying name/area rather than an emoji. */
.card-body { padding: var(--s4); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 6px; background: color-mix(in srgb, var(--voltage) 16%, transparent); border: 1px solid var(--line); color: var(--voltage-text); }
/* R-1a.1: sold-out is a GREY/muted pill (NOT the accent promo badge) — reads "unavailable". */
.badge.sold-out { background: color-mix(in srgb, var(--muted) 22%, var(--surface)); border-color: color-mix(in srgb, var(--muted) 30%, transparent); color: var(--muted); margin: 0 0 0 8px; vertical-align: middle; }
.card h2 { font-size: 18px; }
.price { display: inline-flex; align-items: baseline; gap: 2px; flex-shrink: 0; }
.price .cur { font-size: 13px; color: var(--voltage-text); font-weight: 600; }
.price .amt { font-size: 24px; font-weight: 800; color: var(--voltage-text); font-family: var(--font-display); line-height: 1; }
.price .price-usd { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }  /* R-1a.1 muted USD reference */
.card .desc { font-size: 14px; color: var(--muted); margin: var(--s3) 0; }
.card .validity { font-size: 13px; color: var(--muted); }
/* No-photo card: §7.3's fallback fills the 16/9 media slot instead of a thumbnail. */
.card-img .nofoto { width: 100%; height: 100%; aspect-ratio: auto; }

/* R9(b)/(e) — the card's detail is revealed on expand ("earn the tap"): collapsed the card informs,
   expanded it carries the actions and what-else-is-on. Driven by `?u=` on load and by the toggle. */
.card-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: var(--s3); padding: var(--s3) 0 0; border: 0; border-top: 1px solid var(--line);
  background: transparent; color: var(--voltage-text); font-family: var(--font-body);
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.card-toggle::after { content: "▾"; font-size: 10px; }
.card-toggle:active { opacity: .6; }
.card.expanded .card-toggle::after { content: "▴"; }
.card-detail { display: none; }
.card.expanded .card-detail { display: block; margin-top: var(--s3); }
.card.expanded { border-color: var(--voltage); }
.card .actions { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); }
.card .actions .btn { flex: 1; min-width: 120px; }
/* R9(c) — "what else is on": sibling links so a card is not a dead end. */
.also-on { margin-top: var(--s4); font-size: 13px; }
.also-on .lbl { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.also-on a { display: inline-block; margin-right: 12px; color: var(--voltage-text); font-weight: 600; }
/* The sibling-route link at the foot of the list (a plain anchor, not a card). */
.cross-link { display: block; text-align: center; margin-top: var(--s2); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-card); color: var(--voltage-text); font-weight: 600; }

/* event date block on image corner */
.date-block { position: absolute; top: var(--s3); left: var(--s3); background: color-mix(in srgb, var(--canvas) 78%, transparent); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 6px 10px; text-align: center; }
.date-block .d { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--voltage-text); line-height: 1; }
.date-block .m { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.when { color: var(--voltage-text); font-weight: 600; font-size: 13px; }

/* ---------- menu ---------- */
.jumpbar { position: sticky; top: var(--header-h); z-index: 40; display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s3) 0; background: var(--canvas); -ms-overflow-style: none; scrollbar-width: none; }
.jumpbar::-webkit-scrollbar { display: none; }
.jumpbar a { flex-shrink: 0; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.jumpbar a.active { color: var(--on-voltage); background: var(--voltage); border-color: var(--voltage); }
.menu-cat { margin-top: var(--s5); scroll-margin-top: calc(var(--header-h) + 60px); }
.menu-cat > h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--voltage-text); margin-bottom: var(--s3); }
.menu-row { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); align-items: center; }
.menu-row:last-child { border-bottom: none; }
.menu-row .thumb { width: 58px; height: 58px; border-radius: var(--radius-card); object-fit: cover; flex-shrink: 0; }
.menu-row .mr-main { flex: 1; min-width: 0; }
.menu-row .mr-name { font-weight: 600; }
.menu-row .mr-desc { font-size: 13px; color: var(--muted); }
.menu-row .mr-price { color: var(--voltage-text); font-weight: 700; font-family: var(--font-display); white-space: nowrap; }
/* R-1a.1: greyed sold-out row + muted USD reference stacked under the TZS price. */
.menu-row.sold-out { opacity: .72; }
.menu-row .mr-price-usd { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; }

/* ---------- location ---------- */
/* §4.2 — the `.loc-map` fake-embed is gone (it read like a failed embed and discouraged the tap).
   Directions live on the address row; the venue photo is the visual. */
.loc-list { display: flex; flex-direction: column; gap: var(--s2); }
.loc-item { display: flex; gap: var(--s3); align-items: center; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.loc-item svg { width: 22px; height: 22px; color: var(--voltage-text); flex-shrink: 0; }
.loc-item .li-main { flex: 1; min-width: 0; }
/* Opening-hours inline disclosure — the header pill+panel are gone from this route. */
.loc-hours { display: block; padding: 0; }
.loc-hours summary { display: flex; gap: var(--s3); align-items: center; padding: var(--s4); cursor: pointer; list-style: none; }
.loc-hours summary::-webkit-details-marker { display: none; }
.loc-hours summary::after { content: "▾"; font-size: 10px; margin-left: auto; }
.loc-hours[open] summary::after { content: "▴"; }
.loc-hours .week { padding: 0 var(--s4) var(--s4); }
.loc-hours .week > div { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.loc-hours .week > div.today { font-weight: 700; color: var(--voltage-text); }
.loc-hours .week .hours-note { margin-top: var(--s2); font-size: 13px; color: var(--muted); }
.loc-item .li-label { font-size: 13px; color: var(--muted); }
.loc-item .li-val { font-weight: 600; }
.socials { display: flex; gap: var(--s3); justify-content: center; margin-top: var(--s5); }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.socials a:hover { border-color: var(--voltage); color: var(--voltage-text); }
.venue-photo { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-card); border: 1px solid var(--line); margin-top: var(--s5); }

/* ---------- states ---------- */
.state { text-align: center; padding: var(--s7) var(--s4); }
/* `.state .big` (the emoji) deleted at C8a part 3 — states carry a heading + copy, no emoji icon. */
.state h2 { font-size: 18px; margin-bottom: var(--s2); }
/* The failure state's escape hatches. `showError` runs when the client read itself failed, so the
   bottom nav has never unhidden — without these the page has no way out but a browser reload. */
.state-actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-top: var(--s4); }
.state p { color: var(--muted); margin: 0 0 var(--s4); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--voltage); border-radius: 50%; margin: 0 auto var(--s3); animation: spin .8s linear infinite; }
/* ---------- tap targets (s206) ----------
   Every interactive control clears 44x44 CSS px. Measured at the C8a exit critique: 13 controls were
   under it and EVERY ONE failed on HEIGHT alone — widths were already generous — so these add
   vertical room rather than redesigning anything. Measured heights before: `#hub-status` summary 26,
   `.card-toggle` 28.5, `.jumpbar a` 30.5, `.see-all` 17, footer social links 15.5.
   ⚠ `min-height` on a flex/inline-flex box, NOT extra padding: padding would move the text and
   re-open the block-height numbers MUST-5 records, while min-height grows the hit area around a
   glyph that stays where the design put it. `/` measured 2256px before and after. */
#hub-status details > summary,
.card-toggle { min-height: 44px; }
.jumpbar a { display: inline-flex; align-items: center; min-height: 44px; }
.see-all,
.also-on a,
#hub-footer .soc a { display: inline-flex; align-items: center; min-height: 44px; }
/* ⚠ `.also-on a` was NOT in the critique's list of 13, and that is the finding rather than a footnote:
   those links exist only inside an EXPANDED card, and the audit measured the collapsed page. They
   measured 22px. A tap-target sweep that never opens a disclosure reports clean on the controls it
   could not see — so the rule here is the control CLASS, not the enumerated list. Cost is bounded:
   the links share one row, so the row grows 22px per expanded card and only on the list routes;
   `/`'s block 3 uses `.row`, not `.card`, so MUST-5's recorded 2.74 screens is untouched. */

[hidden] { display: none !important; }

/* The `.footer` CSS was deleted at C8a part 3 with the `#footer` shell element and `renderFooter`:
   block 7 (`#hub-footer`) is the footer on `/`, and the four routes end at the bottom nav. */

/* ---------- animation ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .45s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- desktop niceties ---------- */
/* `.hero h1 { font-size: 32px }` was deleted at C8a — DEAD since the s201 block-order rebuild moved
   the venue name into `.masthead`. `.hero` now contains only the hero image element or §7.3's
   `.nofoto` fallback (a `<b>`), so the selector matched nothing on any of the five routes. */
@media (min-width: 560px) { .page-head h1 { font-size: 34px; } }
