/* Jeff's Harbour City · design tokens + Stage 1 components */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Metric-matched fallbacks so the swap doesn't shift layout */
@font-face { font-family: "Plex Sans Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 104%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Plex Mono Fallback"; src: local("Courier New"), local("Menlo"), local("Roboto Mono"); size-adjust: 100%; ascent-override: 102%; descent-override: 27%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --bg: #F7F3EC;
  --surface: #FFFFFF;
  --ink: #1F1D1A;
  --muted: #5C564E;
  --rule: #E2DBCF;
  --cbd: #C2410C;
  --north: #0F766E;
  --east: #1D4ED8;
  --inner-west: #B91C1C;
  --daytrip: #3F6212;
  --warn: #9F1239;
  --gold: #FACC15;
  --line: var(--cbd);

  --sans: "Plex Sans", "Plex Sans Fallback", system-ui, sans-serif;
  --mono: "Plex Mono", "Plex Mono Fallback", ui-monospace, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --radius: 4px;
  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --rtabs-h: 48px;
  --fbar-h: 52px;
  --sticky-h: calc(var(--rtabs-h) + var(--fbar-h));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sheet-shadow: 0 -8px 32px rgba(31, 29, 26, .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--sticky-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/24px var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--s5));
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: var(--s3) var(--s4); border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: var(--s2); }

.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Top bar (scrolls away) ---------- */
.topbar { background: var(--ink); color: var(--bg); }
.topbar-in { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s4); max-width: 752px; margin: 0 auto; }
.wordmark { font: 600 19px/24px var(--sans); letter-spacing: -.015em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--bg); }
.wm-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 5px solid var(--gold); flex: none; }

/* ---------- Sticky region tabs + filter row ---------- */
.sticky { display: contents; }
.rtabs, .filterbar { position: sticky; z-index: 20; background: var(--bg); }
.rtabs { top: 0; height: var(--rtabs-h); border-bottom: 1px solid var(--rule); }
.rtabs ul {
  display: flex; height: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--s2); max-width: 752px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.rtabs ul::-webkit-scrollbar { display: none; }
.rtab {
  display: flex; align-items: center; height: 100%; min-height: 44px; padding: 0 var(--s3);
  white-space: nowrap; font: 500 15px/20px var(--sans); color: var(--muted); text-decoration: none;
}
.rtab.is-active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--line); }
.rtab.is-soon { opacity: .5; cursor: default; }
.rtabs li:last-child .rtab { margin-right: var(--s5); }

.filterbar {
  top: var(--rtabs-h); height: var(--fbar-h); display: flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s4); border-bottom: 1px solid var(--rule);
  overflow-x: auto; scrollbar-width: none;
}
.filterbar::-webkit-scrollbar { display: none; }
.fchip, .result-count { flex: none; }
@media (min-width: 768px) { .filterbar { padding-inline: max(var(--s5), calc((100% - 1120px) / 2 + var(--s5))); } }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius);
  font: 500 14px/20px var(--sans); color: var(--ink); white-space: nowrap;
  transition: background-color .12s, color .12s, border-color .12s;
}
.fchip:active { background: var(--bg); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fchip[aria-pressed="true"] .ic { fill: var(--gold); }
.fchip.has-filters { border-color: var(--ink); }
.ic-chip { width: 16px; height: 16px; }
.fcount { font: 500 12px/18px var(--mono); background: var(--ink); color: var(--bg); min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius); text-align: center; }
.result-count { margin-left: auto; font: 400 13px/18px var(--mono); color: var(--ink); white-space: nowrap; }

/* ---------- Region ---------- */
main { max-width: 752px; margin: 0 auto; }
.region[hidden] { display: none !important; }
.region-head { padding: var(--s5) var(--s4) var(--s3); }
.region-head h2 { font: 600 26px/30px var(--sans); letter-spacing: -.015em; }
.rh-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.collapse-all { font-size: 14px; white-space: nowrap; }
.cost-key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s3); margin-top: var(--s3); font: 400 13px/18px var(--mono); color: var(--ink); }
.cost-key { flex-direction: column; gap: 4px; }
.cost-key ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 2px var(--s5); }
@media (min-width: 560px) { .cost-key ul { grid-template-columns: repeat(4, max-content); } }
.ck-label { color: var(--muted); }
.ck-sym { font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s3); }
.chip {
  font: 500 12px/16px var(--mono); color: #fff; background: var(--line);
  padding: 4px 7px; border-radius: var(--radius); letter-spacing: .01em;
}

/* The region "transit line" */
.line { position: relative; margin: 0 var(--s4) 0 10px; padding-left: 26px; }
.line::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 26px; width: 3px; background: var(--line); border-radius: 2px; }

/* Category label = interchange ring on the line */
.cat { padding-top: var(--s4); }
.cat:first-child { padding-top: var(--s4); }
.cat.is-empty { display: none; }
.cat-label { position: relative; margin-bottom: var(--s1); }
.cat-toggle {
  display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; text-align: left;
  font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
  border-radius: var(--radius); transition: background-color .1s;
}
.cat-toggle:active { background: var(--rule); }
.cat-n { color: var(--muted); letter-spacing: 0; }
.cat-n:not(:empty)::before { content: "· "; }
.cat-toggle .caret { margin-left: auto; width: 18px; height: 18px; grid-row: auto; }
.cat.is-collapsed .cards { display: none; }
.cat.is-collapsed { padding-top: 0; }
.cat.is-collapsed + .cat.is-collapsed { margin-top: -4px; }
.cat.is-collapsed + .cat:not(.is-collapsed) { padding-top: var(--s2); }
.cat-label::before {
  content: ""; position: absolute; left: -26px; top: 14.5px; width: 15px; height: 15px; box-sizing: border-box;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--line);
}
.ic-cat { width: 16px; height: 16px; }

/* ---------- Food card ---------- */
.cards { display: grid; gap: var(--s2); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  scroll-margin-top: calc(var(--sticky-h) + 12px);
  transition: border-color .15s, transform .15s var(--ease);
}
/* Station tick: connects every card to the region line */
.card::before { content: ""; position: absolute; left: -20px; top: 20px; width: 19px; height: 3px; background: var(--line); }
.card.is-hidden { display: none; }

.card-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 20px; column-gap: var(--s2); row-gap: 2px;
  width: 100%; padding: 10px var(--s3); text-align: left; border-radius: var(--radius);
  transition: background-color .1s;
}
.card-head:active { background: var(--bg); }
.card-head > .name-row { grid-column: 1; grid-row: 1; }
.card-head > .meta, .card-head > .blurb { grid-column: 1 / -1; }
.name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); }
.name { font: 600 18px/22px var(--sans); letter-spacing: -.01em; }
.badge {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 5px; border-radius: var(--radius);
  background: var(--gold); color: var(--ink); font: 500 11px/16px var(--mono); text-transform: uppercase; letter-spacing: .04em;
}
.ic-badge { width: 11px; height: 11px; }
/* Jeff's fav: a rubber stamp in the region colour */
.fav {
  display: inline-flex; align-items: center; height: 20px; padding: 0 5px; border: 1.5px solid var(--line); border-radius: var(--radius);
  color: var(--line); font: 500 11px/16px var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  transform: rotate(-3deg);
}
.row-head .fav { margin-left: var(--s1); }
.meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 5px; font: 400 14px/20px var(--mono); letter-spacing: -.02em; color: var(--ink); }
.meta .sep { color: var(--muted); }
/* With "Essentials only" on, every main card is essential, so the badge is noise. It returns when the list is mixed. */
.ess-on .list-main .card .badge { display: none; }
.station { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ic-meta { width: 16px; height: 16px; }
.blurb { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { grid-column: 2; grid-row: 1; align-self: center; width: 20px; height: 20px; color: var(--ink); transition: transform .2s var(--ease); }
[aria-expanded="true"] > .caret { transform: rotate(180deg); }
.card-head[aria-expanded="true"] .blurb { display: none; }

/* Expanding panel */
.panel, .more-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .24s var(--ease), visibility 0s .24s; }
.panel-inner { min-height: 0; overflow: hidden; }
.is-open > .panel, .card.is-open > .panel, .g-row.is-open > .panel, .more.is-open > .more-panel {
  grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .24s var(--ease), visibility 0s;
}
.no-js .panel, .no-js .more-panel { grid-template-rows: 1fr; visibility: visible; }
.no-js .caret, .no-js .more-btn { display: none; }
.no-js .card-head .blurb { display: none; }
.panel .pad { padding: 2px var(--s3) var(--s3); }
.blurb-full { margin-bottom: var(--s3); }
.order { border-left: 2px solid var(--line); padding-left: 10px; margin-bottom: var(--s3); }
.order-label { display: block; font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--line); }
.order-dish { display: block; }
.booking { font: 400 14px/20px var(--mono); margin-bottom: var(--s3); }
.map-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; height: 48px;
  border: 1px solid var(--ink); border-radius: var(--radius); text-decoration: none;
  font: 500 15px/20px var(--sans); transition: background-color .1s;
}
.map-btn:active { background: var(--bg); }
.ic-btn { width: 20px; height: 20px; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line); transform: translateY(-2px); }
  .map-btn:hover, .row-map:hover { background: var(--bg); }
  .fchip:not([aria-pressed="true"]):hover { border-color: var(--ink); }
}

/* ---------- KBBQ "pick any" group ---------- */
.group-head { display: grid; row-gap: 2px; padding: 10px var(--s3) var(--s3); }
.group-line { margin-top: 2px; }
.g-rows { border-top: 1px solid var(--rule); }
.g-row + .g-row { border-top: 1px solid var(--rule); }
.g-row-top { display: flex; align-items: stretch; }
.row-head { flex: 1; display: flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s3); text-align: left; border-radius: 0; }
.row-head .name { font-size: 16px; line-height: 22px; }
.row-head .meta { margin-left: auto; }
.row-head .caret { grid-row: auto; }
.row-map { display: flex; align-items: center; justify-content: center; width: 48px; min-height: 48px; border-left: 1px solid var(--rule); color: var(--ink); }
.row-map:active { background: var(--bg); }
.g-row .panel .pad { padding-top: 0; }
.g-row:last-child .g-row-top .row-head, .g-row:last-child .row-map { border-bottom-left-radius: var(--radius); }

/* ---------- More if you've got time ---------- */
.more { position: relative; margin-top: var(--s6); }
.more::before {
  content: ""; position: absolute; left: -26px; top: 18px; width: 15px; height: 15px; box-sizing: border-box;
  border-radius: 50%; background: var(--line); border: 3px solid var(--line);
}
.more.is-empty { display: none; }
.more-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2); width: 100%; min-height: 52px;
  padding: 0 var(--s3); border: 1px solid var(--ink); border-radius: var(--radius); background: var(--surface);
  font: 500 16px/22px var(--sans); text-align: left; transition: background-color .1s;
}
.more-btn:active { background: var(--bg); }
.more-count { font-family: var(--mono); font-size: 14px; }
.more-panel .pad { padding-top: var(--s1); }
.more.is-open.is-settled > .more-panel > .panel-inner { overflow: visible; }
.no-js .more-panel > .panel-inner { overflow: visible; }
.opt.is-unavailable { display: none; }
.more.is-inline .more-btn { display: none; }

/* ---------- Empty state ---------- */
.empty { padding: var(--s6) 0 var(--s4); }
.empty p { margin-bottom: var(--s3); }
.btn-outline { min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 500; background: var(--surface); }
.btn-outline:active { background: var(--bg); }

/* ---------- Footer ---------- */
.footer { max-width: 1120px; margin: var(--s7) auto 0; padding: var(--s4) var(--s4) 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; line-height: 20px; }
@media (min-width: 768px) { .footer { padding-inline: var(--s5); } }
.footer-links { display: flex; gap: var(--s4); margin-top: var(--s2); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 3px; }
.footer p + p { margin-top: var(--s2); }
.updated { font-family: var(--mono); color: var(--ink); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg);
  border-top: 1px solid var(--rule); padding-bottom: var(--safe-b);
}
.tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 560px; margin: 0 auto; height: var(--tabbar-h); }
button.tab { width: 100%; }
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; min-width: 48px;
  text-decoration: none; color: var(--muted); font: 500 11px/14px var(--sans); letter-spacing: .01em;
}
.tab.is-active { color: var(--ink); }
.tab.is-active .ic-tab { color: var(--line); }
.tab.is-soon { opacity: .45; }
.ic-tab { width: 22px; height: 22px; }

/* ---------- Filter bottom sheet ---------- */
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 560px; max-height: 85dvh;
  padding: 0; border: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); color: var(--ink);
  box-shadow: var(--sheet-shadow); display: none; flex-direction: column; overflow: hidden;
}
.sheet[open] { display: flex; animation: sheet-in .26s var(--ease); }
.sheet::backdrop { background: rgba(31, 29, 26, .42); animation: fade-in .2s ease; }
.sheet.is-dragging { animation: none; transition: none; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-grip { display: flex; justify-content: center; align-items: center; height: 28px; flex: none; cursor: grab; touch-action: none; }
.grip { width: 40px; height: 4px; border-radius: 2px; background: var(--rule); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s4) var(--s2); flex: none; }
.sheet-head h2 { font: 600 20px/24px var(--sans); }
.link-btn { min-height: 44px; padding: 0 var(--s1); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.sheet-body { overflow-y: auto; padding: var(--s2) var(--s4) var(--s4); overscroll-behavior: contain; }
/* cost chips: 2 per row on small phones */
.sheet-body fieldset + fieldset { margin-top: var(--s5); }
legend { padding: 0; margin-bottom: var(--s3); font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--surface); font: 500 15px/20px var(--sans); transition: background-color .1s, color .1s;
}
.opt-cost { flex: 1 1 calc(50% - 4px); }
.opt-cost span { width: 100%; flex-direction: column; justify-content: center; min-width: 76px; padding: 6px 12px; gap: 0; }
.opt-cost b { font: 500 15px/20px var(--mono); }
.opt-cost small { font: 400 12px/16px var(--mono); opacity: .8; }
.opt input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt input:active + span { background: var(--bg); }
.opt input:checked:active + span { background: #3a3732; }
.sheet-foot { flex: none; padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-b)); border-top: 1px solid var(--rule); }
.btn-solid { width: 100%; height: 48px; border-radius: var(--radius); background: var(--ink); color: var(--bg); font: 600 16px/20px var(--sans); }
.btn-solid:active { background: #3a3732; }
.btn-solid [data-count] { font-family: var(--mono); font-weight: 500; }

/* ---------- Landscape phones: only the region tabs stick ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .filterbar { position: static; }
  html { scroll-padding-top: calc(var(--rtabs-h) + 8px); }
  .card { scroll-margin-top: calc(var(--rtabs-h) + 12px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ================= Stage 2 ================= */

/* Rail pieces: on phones only the region head and cost key show */
.jump, .rail-filters { display: none; }
.rail-more .cost-key { padding: 0 var(--s4) var(--s3); margin-top: 0; }
.region-head + .rail-more .cost-key { margin-top: calc(-1 * var(--s1)); }

/* Neutral tag (Eat & drink, Day trip) */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 5px; border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 11px/16px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); white-space: nowrap;
}
.tag-day { border-color: var(--daytrip); color: var(--daytrip); }

/* Route card */
.stops { list-style: none; margin: 0 0 var(--s3); padding: 0 0 0 4px; }
.stops li { position: relative; padding: 0 0 10px 22px; line-height: 22px; }
.stops li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); box-sizing: border-box; }
.stops li::after { content: ""; position: absolute; left: 4px; top: 17px; bottom: -6px; width: 3px; background: var(--line); }
.stops li:last-child { padding-bottom: 0; }
.stops li:has(.stop-link) { padding-bottom: 22px; }
.stops li:has(.stop-link):last-child { padding-bottom: 0; }
.stop-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -11px 0; color: var(--ink); text-underline-offset: 3px; }
.stop-link .ic { color: var(--line); }
.stops li:last-child::after { display: none; }
.stops li:first-child::before, .stops li:last-child::before { background: var(--line); }
.booking { display: flex; align-items: center; gap: 6px; }
.btns { display: grid; gap: var(--s2); }
.routes { padding-top: var(--s4); }

/* Plain pages (Skip, Getting around, About) */
.page-plain { padding: 0 var(--s4); }
.page-head { padding: var(--s5) 0 var(--s4); }
.page-head h1 { font: 600 28px/32px var(--sans); letter-spacing: -.015em; }
.lede { margin-top: var(--s3); max-width: 68ch; }
.cat-static { display: flex; align-items: center; gap: 6px; min-height: 32px; margin: var(--s5) 0 var(--s2);
  font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.cat-static::before { display: none; }
.cat-static .cat-n:not(:empty)::before { content: "· "; }
.skip-group:first-child .cat-static { margin-top: var(--s2); }

/* Skip cards */
.skip-list { display: grid; gap: var(--s2); }
.skip-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s3); }
.skip-card.skip-hard { border: 2px solid var(--warn); }
.skip-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--s3); }
.skip-top .name { font: 600 18px/22px var(--sans); letter-spacing: -.01em; margin: 0; }
.status { display: inline-flex; align-items: center; gap: 4px; font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.status, .skip-hard .status, .skip-fence .status { color: var(--warn); }
.status .ic { fill: var(--warn); }
.skip-blurb { margin-top: 6px; }
.instead { margin-top: var(--s2); font-weight: 500; }
.instead ul { display: grid; gap: 0; }
.instead li { min-height: 32px; display: flex; align-items: center; }
.instead .ic { color: var(--muted); }
.instead-label { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.instead a { color: var(--ink); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }

/* Getting around tips */
.tips { list-style: none; padding: 0; margin-left: 0; display: grid; gap: var(--s2); margin-top: var(--s2); }
.tip { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s4); }
.tip-loud { border: 2px solid var(--ink); }
.tip-section { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tip-loud .tip-section { color: var(--ink); }
.tip-loud .tip-section .ic { fill: var(--cbd); }
.tip h2 { font: 600 18px/24px var(--sans); margin: 6px 0 4px; }

/* About */
.prose { max-width: 68ch; }
.prose p { margin-bottom: var(--s3); }
.prose h2 { font: 600 20px/26px var(--sans); margin: var(--s6) 0 var(--s2); }
.legend { margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.legend div { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: var(--s3); }
.legend dt { display: flex; }
.legend dd { margin: 0; }
.prose .cost-key { margin-top: var(--s2); }

/* More sheet */
.sheet-small { max-height: 60dvh; }
.sheet-links { padding: 0 var(--s4) calc(var(--s4) + var(--safe-b)); }
.sheet-links li + li { border-top: 1px solid var(--rule); }
.sheet-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; text-decoration: none; font: 500 17px/22px var(--sans); }
.sheet-link[aria-current="page"] { color: var(--muted); }
.sheet-link:active { background: var(--bg); }

/* Top nav: desktop only */
.topnav { display: none; }

/* ================= Tablet (768+) ================= */
@media (min-width: 768px) {
  main, .topbar-in { max-width: 1120px; }
  .topbar-in { padding-inline: var(--s5); }
  .rtabs ul { max-width: 1120px; padding-inline: var(--s4); }
  main.regions { padding: 0 var(--s5); }
  .region { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--s6); align-items: start; }
  .rail { position: sticky; top: calc(var(--sticky-h) + var(--s4)); max-height: calc(100dvh - var(--sticky-h) - var(--tabbar-h) - var(--s6)); overflow-y: auto; scrollbar-width: thin; padding-bottom: var(--s4); }
  .region-head { padding: var(--s5) 0 var(--s3); }
  .rh-top { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .collapse-all { padding: 0; min-height: 32px; }
  .rail-more .cost-key { padding: 0; margin-top: 0; }
  .cost-key ul { grid-template-columns: max-content; }
  .jump { display: block; margin-top: var(--s4); border-top: 1px solid var(--rule); padding-top: var(--s2); }
  .jump a { display: flex; align-items: center; min-height: 32px; font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; color: var(--ink); }
  .jump a:hover { color: var(--line); }
  .line { margin: var(--s5) 0 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .card::before { display: none; }
  .card.group { grid-column: 1 / -1; }
  .more-btn { max-width: 420px; }

  .page-plain { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: var(--s6); align-items: start; max-width: 1120px; padding: 0 var(--s5); }
  .page-plain .rail { top: var(--s4); max-height: none; }
  .skip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .page-plain .plain-body { padding-top: var(--s5); }
  .prose-page .plain-body { padding-top: var(--s6); }
  .page-plain .jump { margin-top: 0; }
}

/* ================= Desktop (1200+) ================= */
@media (min-width: 1200px) {
  body { padding-bottom: var(--s7); }
  .tabbar { display: none; }
  .topnav { display: block; }
  .topnav > ul { display: flex; align-items: center; gap: var(--s5); }
  .topnav a, .nav-more-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 500 15px/20px var(--sans); color: #D9D2C6; text-decoration: none; cursor: pointer; }
  .topnav a:hover, .nav-more-btn:hover { color: var(--bg); }
  .topnav a.is-active, .nav-more-btn.is-active { color: var(--bg); box-shadow: inset 0 -2px 0 var(--gold); }
  .nav-more { position: relative; }
  .nav-more-btn { list-style: none; }
  .nav-more-btn::-webkit-details-marker { display: none; }
  .nav-more[open] .nav-more-btn .ic { transform: rotate(180deg); }
  .nav-more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; padding: 6px; background: var(--surface);
    border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--sheet-shadow); display: grid; }
  .nav-more-list a { display: flex; width: 100%; padding: 0 var(--s3); color: var(--ink); border-radius: var(--radius); }
  .nav-more-list a:hover { background: var(--bg); color: var(--ink); }
  .nav-more-list a.is-active { box-shadow: inset 3px 0 0 var(--ink); color: var(--ink); }
  .rail { max-height: calc(100dvh - var(--sticky-h) - var(--s6)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #filter-open { display: none; }
  .rail-filters { display: block; margin-top: var(--s4); border-top: 1px solid var(--rule); padding-top: var(--s3); }
  .rail-filters fieldset + fieldset { margin-top: var(--s4); }
  .rail-filters legend { margin-bottom: var(--s2); }
  .rail-filters .opts { gap: 6px; }
  .rail-filters .opt span { min-height: 32px; padding: 0 10px; font-size: 14px; }
  .rail-filters .opt-cost { flex: 1 1 calc(50% - 3px); }
  .rail-filters .opt-cost span { min-height: 44px; padding: 4px 8px; }
  .rail-filters .opt-cost small { font-size: 11px; }
  .rail-filters .link-btn { margin-top: var(--s2); padding: 0; min-height: 32px; font-size: 14px; }
  .rail-filters .opt input:hover + span { border-color: var(--ink); }
}

/* ================= Stage 3: Rule #1, homepage, map ================= */
.no-js .js-only { display: none !important; }

/* Rule #1 footer strip (every page) */
.sun-strip { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s3); color: var(--ink); font: 400 14px/20px var(--sans); }
.sun-strip .ic { width: 18px; height: 18px; color: var(--muted); }
.footer .sun-strip + p { margin-top: 0; }

/* Rule #1 on Getting around */
.tip-sun { position: relative; background: var(--gold); border: 0; padding: var(--s5) var(--s4) var(--s5); }
.tip-sun .sun-icon .ic { width: 56px; height: 56px; color: var(--ink); }
.tip-sun .tip-section { display: block; margin-top: var(--s2); color: var(--ink); font-size: 13px; }
.tip-sun h2 { font: 600 26px/30px var(--sans); letter-spacing: -.015em; margin: 4px 0 var(--s2); max-width: 22ch; }
.tip-sun p { font-size: 17px; line-height: 26px; max-width: 52ch; }
@media (min-width: 560px) {
  .tip-sun { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--s4); padding: var(--s5); }
  .tip-sun .sun-icon { grid-row: 1 / span 3; }
  .tip-sun .sun-icon .ic { width: 64px; height: 64px; }
  .tip-sun .tip-section { margin-top: 0; }
  .tip-sun h2 { font-size: 30px; line-height: 34px; }
}

.sec-title { font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: var(--s6) 0 var(--s3); }

/* Homepage */
.home { padding: 0 var(--s4); }
.intro { padding-top: var(--s3); }
.intro h1 { font: 600 36px/40px var(--sans); letter-spacing: -.025em; margin-bottom: var(--s3); }
.intro p { font-size: 17px; line-height: 25px; max-width: 58ch; }
.intro p + p { margin-top: var(--s3); }
.btn-cta { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-top: var(--s5); text-decoration: none; }
.btn-cta .ic { width: 20px; height: 20px; }

.wsi { display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s4); padding: 10px 0 10px var(--s3);
  border-left: 3px solid var(--warn); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.wsi > .ic { color: var(--warn); width: 20px; height: 20px; margin-top: 2px; }
.wsi p { flex: 1; font-size: 15px; line-height: 22px; padding-top: 1px; }
.wsi-x { flex: none; width: 44px; height: 44px; margin: -10px 0 -10px; display: grid; place-items: center; color: var(--muted); }
.wsi[hidden] { display: none; }

.rules { display: grid; gap: var(--s4); padding: 0; margin: 0; }
.rule { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s2); align-items: start; }
.rule-n { font: 500 32px/32px var(--mono); color: var(--muted); }
.rule p { font-size: 16px; line-height: 24px; padding-top: 4px; }
.rule b { font-weight: 600; }
.rule-loud .rule-n { color: var(--ink); }
.rule-loud b { font-size: 18px; letter-spacing: .01em; }
.rule-sun { background: var(--gold); border-radius: var(--radius); padding: var(--s4) var(--s4) var(--s4) var(--s3); margin: 0 calc(-1 * var(--s1)); }
.rule-sun .rule-n { color: var(--ink); font-size: 40px; line-height: 40px; }
.rule-sun p { padding-top: 0; font-size: 17px; line-height: 25px; }
.rule-sun b { display: block; font: 600 22px/27px var(--sans); letter-spacing: -.01em; margin-bottom: 2px; }
.rule-tag { display: flex; align-items: center; gap: 6px; font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.rule-tag .ic { width: 20px; height: 20px; }

.hw-copy { max-width: 58ch; }

/* Region links under the map */
.region-links { display: grid; gap: var(--s2); margin-top: var(--s4); }
.region-link { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 8px var(--s3); background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; }
.rl-dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); background: var(--surface); flex: none; }
.rl-text { flex: 1; display: grid; min-width: 0; }
.rl-text b { font-weight: 600; }
.rl-text small { font: 400 13px/18px var(--mono); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .region-link:hover { border-color: var(--line); } }

/* ---------- Map ---------- */
.metro { margin-top: var(--s4); }
.metro-frame { position: relative; height: min(70svh, 700px); min-height: 380px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; }
.metro-svg { display: block; width: 100%; height: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ln { fill: none; stroke: var(--c, var(--ink)); stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s; }
.ln-metro { stroke-width: 11; }
.ln-train { stroke-width: 5; }
.ln-lightrail { stroke-width: 5; stroke-dasharray: 0.1 10; }
.ln-ferry { stroke-width: 4; stroke-dasharray: 12 8; stroke-linecap: butt; }
.ln-bus { stroke-width: 3; stroke-dasharray: 0.1 7; }
.st { cursor: pointer; outline: none; transition: opacity .2s; }
.st-hit { fill: transparent; }
.st-dot { fill: var(--surface); stroke: var(--c); stroke-width: 4.5; transition: r .15s; }
.st-dot.is-ix { stroke: var(--ink); stroke-width: 5; }
.st-label { font: 500 21px/1 var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; }
.st-label.is-major { font-weight: 600; }
.st-end { font: 400 18px/1 var(--mono); fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 6px; }
.st:hover .st-dot, .st:focus-visible .st-dot, .st.is-on .st-dot { fill: var(--c); }
.st:focus-visible .st-hit { stroke: var(--ink); stroke-width: 3; }
.st.is-on .st-dot { stroke: var(--ink); }
.is-far .st:not(.is-major) .st-label { display: none; }
.has-focus .ln:not(.is-hl), .has-focus .st:not(.is-hl), .has-focus .st-end:not(.is-hl) { opacity: .25; }

.metro-note { position: absolute; left: var(--s3); top: var(--s2); font: 400 12px/16px var(--mono); color: var(--muted); pointer-events: none; }
.metro-tools { position: absolute; right: var(--s2); bottom: var(--s2); display: grid; gap: 6px; }
.mt-btn { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.mt-btn .ic { width: 20px; height: 20px; }
.mt-btn:active { background: var(--bg); }
.metro-explore { position: absolute; left: var(--s2); bottom: var(--s2); display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  background: var(--ink); color: var(--bg); border-radius: var(--radius); font-weight: 500; font-size: 15px; }
.metro-close { position: absolute; right: var(--s2); top: var(--s2); height: 44px; padding: 0 var(--s4); background: var(--ink); color: var(--bg);
  border-radius: var(--radius); font-weight: 600; }
.metro-close[hidden] { display: none; }
.metro-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: var(--s2); }
.metro-hint { font-size: 14px; color: var(--muted); }
.legend-lines { display: flex; flex-wrap: wrap; gap: 4px var(--s3); font: 400 13px/18px var(--mono); color: var(--muted); }
.legend-lines li { display: inline-flex; align-items: center; gap: 6px; }
.lg-sw { width: 30px; height: 12px; }
.lg-sw .ln { --c: var(--ink); }
.lg-sw .ln-metro { stroke-width: 6; }
.lg-sw .ln-train { stroke-width: 3; }
.lg-sw .ln-lightrail { stroke-width: 3; stroke-dasharray: .1 5; }
.lg-sw .ln-ferry { stroke-width: 2.5; stroke-dasharray: 5 3; }
.lg-sw .ln-bus { stroke-width: 2; stroke-dasharray: .1 4; }

/* Fullscreen "Explore map" */
.metro.is-full .metro-frame { position: fixed; inset: 0; z-index: 60; height: auto; min-height: 0; border: 0; border-radius: 0; }
.metro.is-full .metro-svg { touch-action: none; }
.metro.is-full .metro-explore { display: none; }
.metro.is-full .metro-tools { bottom: calc(var(--s2) + var(--safe-b)); }

/* Station sheet */
.station-sheet .sheet-head { align-items: flex-start; }
.st-region { font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--sc, var(--muted)); }
.st-sub { font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: var(--s4) 0 var(--s1); }
.st-sub:first-child { margin-top: 0; }
.st-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 48px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.st-list a > span { display: grid; }
.st-list small { color: var(--muted); font-size: 14px; line-height: 18px; }
.st-list b { font-weight: 600; }
.st-none { color: var(--muted); font-size: 15px; }
.st-btns { display: grid; gap: var(--s2); margin-top: var(--s5); }
.st-btns a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.st-btns .b1 { background: var(--ink); color: var(--bg); }
.st-btns .b2 { border: 1px solid var(--ink); background: var(--surface); }

@media (min-width: 768px) {
  .home { max-width: 1120px; margin: 0 auto; padding: 0 var(--s5); }
  .intro { padding-top: var(--s6); }
  .rule-n { font-size: 36px; line-height: 36px; }
  .rule { grid-template-columns: 52px minmax(0, 1fr); }
  .region-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metro-explore { display: none; }
}
@media (min-width: 1200px) {
  .intro h1 { font-size: 56px; line-height: 60px; }
  .metro { position: relative; }
  .home-map .sec-title:first-child { margin-top: var(--s6); }
  .metro-frame { height: 700px; }
  .metro-svg { cursor: grab; }
  .metro-svg.is-panning { cursor: grabbing; }
  /* side panel instead of a bottom sheet */
  .station-sheet[open] { animation: fade-in .15s ease; }
  .station-sheet { position: absolute; inset: auto; top: var(--s2); right: var(--s2); left: auto; bottom: auto; width: 320px; max-height: calc(100% - 16px);
    margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--sheet-shadow); }
  .station-sheet .sheet-grip { height: var(--s3); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .ln, .st, .st-dot { transition: none; }
}

/* Skip groups collapse */
.grp-toggle { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; font: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; border-bottom: 1px solid var(--rule); }
.grp-toggle .caret { margin-left: auto; width: 18px; height: 18px; }
.grp-toggle:active { background: var(--rule); }
.skip-group.is-collapsed .skip-list { display: none; }
.skip-group .cat-static { margin-bottom: var(--s2); }
.no-js .grp-toggle .caret { display: none; }

/* Optional stops + rule source link */
.tag-opt { display: inline-block; margin-left: 4px; font-size: 11px; vertical-align: 2px; text-decoration: none; }
.rule-src { white-space: nowrap; font-size: 14px; text-underline-offset: 3px; color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.intro .intro-after { margin-top: var(--s4); }
.skip-group .cat-static { margin-top: var(--s3); }
.skip-group:first-child .cat-static { margin-top: var(--s2); }

/* About: contact */
.contact { display: flex; align-items: center; gap: var(--s2); }
.contact .ic { width: 22px; height: 22px; }

/* 404 */
.nf .plain-body { padding-top: var(--s7); }
.nf-code { font: 500 14px/20px var(--mono); color: var(--muted); letter-spacing: .08em; }
.nf h1 { font: 600 32px/36px var(--sans); letter-spacing: -.02em; margin: var(--s2) 0; }
.nf-btn { max-width: 320px; }
@media (min-width: 768px) { .nf { display: block; } }
/* Without JS every category stays open */
.no-js .cat.is-collapsed .cards { display: grid; }
.no-js .cat.is-collapsed { padding-top: var(--s4); }

/* ---------- Homepage: layout + Talk like an Aussie ---------- */
.words { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.word { display: grid; grid-template-columns: minmax(104px, 34%) minmax(0, 1fr); column-gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.word dt { font-weight: 600; }
.word dd { margin: 0; }
.talk-more { margin-top: var(--s4); }
.talk-more a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; text-underline-offset: 3px; }
.hm-side .region-links { margin-top: var(--s4); }
@media (min-width: 768px) {
  .home .words { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
  .home .word { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .home-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--s7); align-items: start; }
  .home-top .read-first .sec-title { margin-top: var(--s6); }
  .home .words { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .talk { margin-top: var(--s5); }
  .home-map { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s6); align-items: start; margin-top: var(--s5); }
  .hm-side .region-links { grid-template-columns: 1fr; }
  .hm-map .metro { margin-top: var(--s6); position: relative; }
}

/* Souvenirs */
.souvenirs { margin-top: var(--s5); }
.souvenirs .rule-n { color: var(--ink); }

/* Feeling adventurous */
.sub-list { display: grid; gap: var(--s2); }
.sub-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s3) var(--s3) var(--s1); }
.sub-card h2 { font: 600 18px/22px var(--sans); letter-spacing: -.01em; }
.sub-card p { margin-top: 6px; }
.sub-links { display: flex; flex-wrap: wrap; column-gap: var(--s4); }
.sub-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; text-underline-offset: 3px; }
.sub-link .ic { color: var(--line); }
@media (min-width: 768px) { .sub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* Translating Australian */
.sl-group .cat-static { margin: var(--s5) 0 0; }
.sl-group:first-child .cat-static { margin-top: var(--s2); }
.sl-group .words { border-top: 0; }
@media (min-width: 1200px) { .sl-group .words { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); } }
/* Skip: without JS every group stays open */
.no-js .skip-group.is-collapsed .skip-list { display: grid; }
.prose .souvenirs p { margin: 0; padding-top: 4px; }
.souvenirs { gap: var(--s3); }
.prose .lede:first-child { margin-top: 0; }

/* About: contact card */
.contact-card { display: flex; gap: var(--s3); align-items: center; padding: var(--s4); margin-bottom: var(--s6); background: var(--ink); color: var(--bg); border-radius: var(--radius); }
.contact-card .cc-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex: none; }
.contact-card .cc-icon .ic { width: 26px; height: 26px; }
.prose .contact-card h2 { margin: 0 0 2px; font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.prose .contact-card p { margin: 0; font-size: 17px; line-height: 24px; }
.contact-card b { font-weight: 600; }

/* Souvenirs: search links + tips */
.sv-body { padding-top: 4px; }
.sv-tip { display: block; margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--line); font-size: 15px; line-height: 22px; }
.sv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); }
.sv-where { display: inline-flex; align-items: center; gap: 4px; font: 400 13px/18px var(--mono); color: var(--muted); }
.sv-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 500; font-size: 15px; text-underline-offset: 3px; }

/* ---------- Food: Try This ---------- */
.rtab-try { gap: 6px; font-weight: 600; }
.rtab-try .ic { width: 16px; height: 16px; fill: var(--gold); stroke: var(--ink); }
.is-try .filterbar { display: none; }
.is-try { scroll-padding-top: calc(var(--rtabs-h) + 8px); }
.try-intro { margin-top: var(--s2); max-width: 60ch; }
.ic-fav { width: 14px; height: 14px; fill: #B45309; vertical-align: -2px; }
.dishes { display: grid; gap: var(--s2); padding: var(--s4) 0 0; margin: 0; }
ol.dishes { list-style: none; padding-left: 0; }
.dish { list-style: none; position: relative; padding: var(--s3); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.dish::before { content: ""; position: absolute; left: -27px; top: 22px; width: 26px; height: 2px; background: var(--line); }
.dish h3 { display: flex; align-items: baseline; gap: var(--s2); font: 600 18px/24px var(--sans); letter-spacing: -.01em; margin: 0; }
.dish-n { font: 500 13px/24px var(--mono); color: var(--muted); flex: none; }
.dish-body > p { margin-top: 4px; }
.dish-body > .dish-at { margin-top: var(--s3); line-height: 30px; }
.dish-lbl { display: block; font: 500 12px/16px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.dp { white-space: nowrap; margin-right: 4px; }
.dish-place { font-weight: 600; text-underline-offset: 3px; padding: 7px 0; }
.dish-place .ic-fav { margin-left: 3px; }
.dish-at .sep { color: var(--muted); }
.dish-any { display: flex; align-items: flex-start; gap: 6px; margin-top: var(--s2); font-size: 15px; line-height: 22px; color: var(--ink); }
.dish-any .ic { margin-top: 2px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .dish-place:hover { color: var(--cbd); } }
@media (min-width: 768px) {
  .dish::before { display: none; }
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding-top: var(--s5); }
}
@media (min-width: 1200px) { .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
