:root {
  --bg: #faf7f2; --surface: #ffffff; --ink: #1f1b16; --muted: #6f665c; --line: #e8e1d6;
  /* Brand orange, one step deeper than the logo's #d9480f so it passes WCAG AA as text and
     under white text (#464): on --bg 4.85:1, on --surface 5.2:1, white on it 5.2:1
     (#d9480f was 4.0 / 4.3). tests/test_spa_a11y.py checks every pair. */
  --accent: #c2410c; --accent-ink: #ffffff; --star: #f2a900; --chip: #f1ebe2; --ok: #1f7a4d;
  --ok-ink: #ffffff;
  --shadow: 0 1px 2px rgba(31,27,22,.06), 0 4px 16px rgba(31,27,22,.06);
  --link: #b23a0a; color-scheme: light;
  /* Primary action buttons (Directions): the accent, white text 5.2:1. */
  --primary: #c2410c; --primary-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15130f; --surface: #1f1c17; --ink: #f3eee6; --muted: #a59b8e; --line: #322d26;
    --accent: #ff7a3d; --accent-ink: #15130f; --chip: #2a261f; --shadow: none; --ok: #5cc98f;
    --ok-ink: #15130f;  /* white on the light green is 2:1 */
    /* color-scheme: native date/time pickers, selects and scrollbars draw dark too (#302) */
    --link: #ff9a66; color-scheme: dark;
    --primary: var(--accent); --primary-ink: var(--accent-ink);  /* 7.2:1 */
  }
}
/* In-text links (About, Privacy, "their website", "Sign in"): our color, not the browser's
   #0000EE, which is unreadable on the dark background (#302). Zero specificity: every styled
   link keeps its own color. */
:where(a) { color: var(--link); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
header { position: sticky; top: 0; z-index: 5; background: var(--bg);
  border-bottom: 1px solid var(--line); }
.bar { max-width: 1240px; margin: 0 auto; padding: 14px 16px 0; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.brand span { color: var(--muted); font-size: 14px; }
nav { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
nav button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600;
  padding: 10px 12px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
nav button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
/* Alerts tab (notify.py): unread count on the bell */
nav button { position: relative; }
.nav-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; box-sizing: border-box;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink, #fff); font-size: 11px; font-weight: 700;
  line-height: 18px; text-align: center; vertical-align: 1px; }
.nav-badge[hidden] { display: none; }
.al-new { border-color: var(--accent); }
.al-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, #fff); vertical-align: 2px; }
.al-push { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 18px; }
/* Search from anywhere: the header's magnifier opens a field over the brand row (no
   reflow, keyboard up at once); Back to top shows on the way up after a long scroll. 36px circles
   with a 44px tap area, so the header keeps its height. */
.brand { position: relative; }
.hdr-search, .to-top { position: relative; flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.hdr-search { border: 0; background: var(--chip); }
.hdr-search::after, .to-top::after { content: ""; position: absolute; inset: -4px; }
.hdr-search .ico, .to-top .ico { width: 19px; height: 19px; }
.hdr-sform { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; gap: 6px; background: var(--bg); }
.hdr-sform[hidden], .to-top[hidden] { display: none; }
.hdr-sform input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.hdr-sx { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.to-top { position: fixed; z-index: 15; right: max(12px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  border: 1px solid var(--line); background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
@media (max-width: 640px) { .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); } }  /* above the tab bar */
body:has(> .install, .tw-planbar, .dp-bar, dialog[open]) .to-top { display: none; }
main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 60px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.controls input[type=search] { flex: 1 1 220px; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: inherit; }
.controls select, .controls label { font: inherit; color: var(--ink); }
.controls select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); }
.chips { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; margin-bottom: 22px;
  border-bottom: 1px solid var(--line); }
.chip { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px;
  font-weight: 600; padding: 4px 0 10px; cursor: pointer; display: flex; flex: 0 0 auto;
  flex-direction: column; align-items: center; gap: 4px; border-bottom: 2px solid transparent;
  max-width: 84px; }
/* A label wraps to at most two centered lines, then an ellipsis (never stretches the strip). */
.chip .lb { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-clamp: 2; overflow: hidden; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.chip .ic { font-size: 24px; line-height: 1; filter: grayscale(.2); }
.chip:hover { opacity: 1; }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); opacity: 1; }
.grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: flex; flex-direction: column; }
.photo { position: relative; aspect-ratio: 1 / 0.95; background: var(--chip); border-radius: 14px;
  overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block; }
.photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.photo .ph .ico { width: 34px; height: 34px; stroke-width: 1.5; }
.photo .credit { position: absolute; left: 6px; bottom: 6px; max-width: 80%; font-size: 10px;
  color: #fff; background: rgba(0,0,0,.5); padding: 2px 6px; border-radius: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.share-btn { position: absolute; top: 8px; right: 52px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); font-size: 17px; cursor: pointer; color: #555; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 2; }
.share-btn:hover { color: #111; }
.plan-btn { position: absolute; top: 8px; right: 96px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); cursor: pointer; color: #555; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 2;
  display: grid; place-items: center; padding: 0; }
.plan-btn:hover { color: #111; }
/* "Pick for me": a quiet link-style button, then a mood choice and a hopping pin in a dialog. */
.lucky-btn { font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 7px 12px;
  border-radius: 999px; border: 1px dashed var(--line); background: none; color: var(--muted); cursor: pointer; }
.lucky-btn:hover { color: var(--ink); border-color: var(--ink); }
.listhead { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.lucky { border: 0; border-radius: 22px; padding: 20px 20px 18px; max-width: 400px; width: calc(100% - 32px);
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: center; }
.lucky::backdrop { background: rgba(0,0,0,.45); }
.lucky h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 22px; }
.lucky .sub { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.lucky .x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
.lucky-pick { margin-top: 14px; text-align: left; display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center;
  animation: rise .25s ease-out; }
.lucky-pick img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: var(--chip); }
.lucky-pick .why { font-size: 12px; font-weight: 700; color: var(--accent); }
.lucky-pick .nm { font-weight: 700; font-size: 17px; line-height: 1.25; }
.lucky-acts { display: flex; gap: 8px; margin-top: 14px; }
.lucky-acts button { flex: 1; font: inherit; font-weight: 600; padding: 11px 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.lucky-acts .go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lucky .hint { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.install { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 12px 14px;
  display: flex; gap: 12px; align-items: center; max-width: 520px; margin: 0 auto;
  animation: rise .25s ease-out; }
/* While the sheet is up the page can scroll past it, so it never hides the last thing on the
   page (it covered "Plan a visit", #302). */
body:has(> .install) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.install img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.install .txt { flex: 1; font-size: 14px; line-height: 1.35; }
.install .txt b { display: block; font-size: 15px; }
.install button { border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 600;
  cursor: pointer; }
.install .go { background: var(--accent); color: var(--accent-ink); }
.install .x { background: none; color: var(--muted); padding: 6px 8px; font-size: 18px; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
nav .ic { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px;
  border-radius: 10px; font-size: 14px; z-index: 100; box-shadow: 0 6px 20px rgba(0,0,0,.3);
  top: auto; right: auto; margin: 0; border: 0; overflow: visible; max-width: calc(100vw - 32px); width: max-content;
  display: flex; align-items: center; gap: 4px 14px; }  /* top/right/margin/border: undo [popover] UA styles */
.toast:not(:popover-open)[popover] { display: none; }
.toast-act { font: inherit; font-weight: 700; color: #fff; background: none; border: 0; padding: 0 2px; min-height: 44px;
  margin: -12px -6px -12px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.toast-act:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.toast:has(.toast-note) { flex-wrap: wrap; width: min(420px, calc(100vw - 32px)); }
.toast-note { flex-basis: 100%; font-size: 13px; line-height: 1.4; color: #e8e8e8; padding-bottom: 2px; }
.toast-note a { color: #fff; font-weight: 700; text-underline-offset: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toastIn .18s ease-out; } }
.star { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); font-size: 20px; cursor: pointer; line-height: 1;
  color: #8a8178; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.star.on { color: var(--star); }
.body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.meta { color: var(--muted); font-size: 13px; }
.desc { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 2px; }
.nrow { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.nrow .name { min-width: 0; }
.stars-n { flex: none; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.stars-n b { color: var(--star); font-weight: 600; }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--muted); }
.social .st { color: var(--ink); font-weight: 600; } .social .st b { color: var(--star); }
.stag { font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--chip); color: var(--ink); white-space: nowrap; }
.stag.new { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.stag.feat.award { font-weight: 600; }
.dp-feats ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dp-feats li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.dp-feats .meta { font-size: 13px; }
.biz-diet { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 2px 0 6px; }
.biz-diet label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.biz-diet input { width: auto; margin: 0; }
.rv { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 14px 0; background: var(--surface); }
.rv-q { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.rv-row { display: flex; gap: 8px; }
.rv-row button { flex: 1; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.rv-row button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rv-tags button { font: inherit; font-size: 13px; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.rv-tags button[aria-pressed="true"] { background: var(--chip); border-color: var(--ink); font-weight: 600; }
.rv-msg { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
/* Member amenity confirmations (contrib.py): one compact row per question, fixed height. */
.am { display: grid; gap: 6px; margin: 0 0 14px; }
.am-row { display: flex; align-items: center; gap: 8px; min-height: 40px; flex-wrap: wrap; }
.am-q { flex: 1 1 140px; font-size: 14px; font-weight: 600; }
.am-q small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.am-row button { font: inherit; font-size: 13px; min-height: 36px; min-width: 56px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.am-row button[aria-pressed="true"] { background: var(--chip); border-color: var(--ink); font-weight: 600; }
.sug-kind { display: flex; gap: 6px; flex-basis: 100%; }
.sug-kind label { flex: 1; text-align: center; padding: 8px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.sug-kind input { position: absolute; opacity: 0; }
.sheet .acc-form [hidden] { display: none; }
.sheet .acc-form .sug-here { flex-direction: row; align-items: center; font-weight: 400; }
.sheet .acc-form .sug-here input { width: auto; }
.sheet .acc-form .sug-owner { min-height: 44px; gap: 10px; }
.sheet .acc-form .sug-owner input { width: 20px; height: 20px; flex: none; margin: 0; }
.acc-locs .sug-claim { font-weight: 600; color: var(--ink); text-decoration: underline; }
.fb-kind { flex-wrap: wrap; }
.fb-kind label { flex: 1 1 auto; font-size: 14px; }
.sug-kind label:has(input:checked) { background: var(--chip); border-color: var(--ink); font-weight: 600; }
/* "Add your local small restaurant or business" (#203): home feed (after the first day; top of the grid when days sit side by side), city hubs, /for-business
   (weekends/addbiz.py draws the server copy). Customer / owner paths in the Suggest sheet. */
.addbiz { display: flex; align-items: center; gap: 14px; margin: 24px 0; padding: 14px 16px; border-radius: 18px;
  border: 1.5px dashed var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--ink);
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.addbiz:hover, .addbiz:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217, 72, 15, .18); }
.addbiz-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface); font-size: 28px; color: var(--accent, #c2410c); }
.addbiz-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.addbiz-t small { color: var(--muted); font-size: 13px; font-weight: 600; }
.addbiz-t b { font-size: 17px; line-height: 1.25; }
.addbiz-t span { color: var(--muted); font-size: 14px; }
.addbiz-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 22px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .addbiz { transition: none; } .addbiz:hover { transform: none; } }
.sug-role { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex-basis: 100%; }
.sug-role label { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; line-height: 1.25; }
.sug-role label small { font-weight: 400; color: var(--muted); font-size: 13px; }
.sug-role input { position: absolute; opacity: 0; }
/* The hidden radios sit inside their own pill: a full-width input placed against the sheet made it
   scroll sideways on phones (390px sheet, 607px of content). */
.sug-role label, .sug-kind label { position: relative; }
.sheet .acc-form .sug-role input, .sheet .acc-form .sug-kind input { inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; }
.sug-role label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.sug-role label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.sug-ownnote { flex-basis: 100%; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--chip); font-size: 14px; line-height: 1.45; }
.sug-ownnote a { color: var(--ink); font-weight: 600; }
.sug-claim { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 10px;
  flex-basis: 100%; width: 100%; min-width: 0; box-sizing: border-box; }
.sug-claim legend { font-weight: 700; padding: 0 4px; }
.sheet-acts a.primary { flex: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 600; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--ink); }
.sheet .acc-form select, .sheet .acc-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.actions { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.actions button, .actions a { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer;
  text-decoration: none; }
.actions .on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.days { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.days > .addbiz-feed { grid-column: 1 / -1; } .days > .addbiz-feed .addbiz { margin: 0; }
/* This weekend: one day per row, its events in as many columns as fit (one on phones). A lone
   day used to sit in the first auto-fit track next to empty ones, a narrow column on desktop. */
.days > .day { grid-column: 1 / -1; min-width: 0; }
.ev-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ev-grid > .event { margin: 0; min-width: 0; }
.more-ev > .ev-grid { margin-bottom: 10px; }
/* In a grid cell the buttons go under the title, so the title keeps the card's width (phones keep
   their own stacked layout, below). */
@media (min-width: 641px) {
  .ev-grid > .event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "time body img" ". act img"; column-gap: 12px; row-gap: 8px; align-content: start; }
  .ev-grid > .event .time { grid-area: time; }
  .ev-grid > .event > div:nth-child(2) { grid-area: body; }
  .ev-grid > .event img, .ev-grid > .event .ev-ph { grid-area: img; align-self: start; }
  .ev-grid > .event .ev-btns { grid-area: act; justify-self: start; align-self: end; }
  .ev-grid > .event.nt { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "body img" "act img"; }
}
.day h2 { font-size: 18px; margin: 0 0 10px; }
.event { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.event .time { font-weight: 700; min-width: 64px; color: var(--accent); font-size: 14px; }
.event .time.tbd { color: var(--muted); font-weight: 600; }
.event .t { font-weight: 600; }
.event img, .event .ev-ph { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.event .ev-ph { display: grid; place-items: center; background: var(--chip); color: var(--muted); }
.event .ev-ph .ico { width: 26px; height: 26px; }
.event.nt .time { display: none; }  /* no stated time: no empty column (the day is the heading) */
h3.section { margin: 28px 0 12px; font-size: 18px; }
.empty { color: var(--muted); padding: 24px 0; }
.more { display: block; margin: 22px auto 0; font: inherit; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }

dialog.place { border: 0; padding: 0; border-radius: 18px; width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 40px); background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.place::backdrop { background: rgba(20,16,12,.55); }
.pd-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 150px; gap: 6px; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.pd-gallery img:first-child { grid-row: span 2; }
.pd-gallery.one { grid-template-columns: 1fr; grid-auto-rows: 300px; }
.pd-close { position: sticky; top: 10px; float: right; margin: 10px 10px -48px 0; z-index: 2; width: 38px;
  height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 18px; cursor: pointer; }
.pd-body { padding: 18px 22px 22px; }
.pd-body h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.01em; }
.pd-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pd-links a, .pd-links button { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.pd-desc { font-size: 15px; margin: 8px 0 4px; }
.note-21 { display: inline-block; margin: 4px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.pd-credit { font-size: 11px; color: var(--muted); }
.comments h3 { font-size: 17px; margin: 22px 0 10px; border-top: 1px solid var(--line); padding-top: 18px; }
/* ---- member photo uploads ---- */
.addph { margin: 14px 0 4px; }
.addph-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 15px; font-weight: 600;
  padding: 10px 16px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; cursor: pointer; }
.addph-btn.ghost { background: var(--chip); color: var(--ink); }
.addph-btn:disabled { opacity: .6; cursor: progress; }
.addph-tray { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.addph-tray:empty { display: none; }
.addph-item { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--chip); }
.addph-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.addph-item .bar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.7); }
.addph-item .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width .2s; }
.addph-item .tag { position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px;
  background: rgba(0,0,0,.65); color: #fff; }
.addph-item.bad img { opacity: .35; }
.addph-msg { margin: 8px 0 0; font-size: 14px; }
.addph-msg:empty { display: none; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment .who { font-weight: 600; font-size: 14px; }
.rvl-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rvl-item .who { font-weight: 600; font-size: 14px; } .rvl-item .who.anon { font-weight: 500; color: var(--muted); }
.rvl-item .when { font-size: 12px; color: var(--muted); margin-left: 6px; }
.rvl-item p { margin: 4px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rvl-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.v-cap .mb-mini { color: rgba(255,255,255,.85); }
.namecr-earlier { margin: 2px 0 8px; } .linkish { border: 0; background: none; padding: 0; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.comment .when { color: var(--muted); font-size: 12px; margin-left: 6px; }
.comment .del { float: right; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.comment .rep { float: right; }
.rep { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; padding: 0 0 0 8px; text-decoration: underline; }
.rvl-h .rep { float: right; }
.v-cap .rep { color: rgba(255,255,255,.85); padding: 0; }
.rep-why { display: grid; gap: 8px; }
.rep-why label { display: flex; gap: 8px; align-items: center; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; }
.cform { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }  /* a wide row never widens the form past the phone */
.cform input, .cform textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); }
.cform textarea { min-height: 80px; resize: vertical; }
.cform .cnote, .cform .cas { margin: 0; font-size: 13px; }
.cform .cas button { border: 0; background: none; padding: 0; font: inherit; color: var(--accent, inherit); text-decoration: underline; cursor: pointer; justify-self: auto; font-weight: 400; }
.comment.pending { opacity: .75; }
.comment .oreply { margin: 8px 0 2px 12px; padding: 4px 0 4px 12px; border-left: 3px solid var(--accent); }
.comment .oreply-h { font-size: 13px; }
.comment .oreply p { margin: 2px 0 0; }
.comment.pinned { background: var(--chip); border-radius: 12px; padding: 10px 12px; border-bottom: 0; margin-bottom: 6px; }
.ph-replies { display: grid; gap: 10px; margin: 12px 0 4px; }
.ph-reply { display: flex; gap: 10px; align-items: flex-start; }
.ph-reply img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.ph-reply p { margin: 2px 0 0; white-space: pre-wrap; }
.ph-reply .oreply { padding: 0 0 0 10px; border-left: 3px solid var(--accent); }
.ph-reply .oreply-h, .ph-reply .when { font-size: 13px; } .ph-reply .when { color: var(--muted); }
.comment .badge { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.cform button { justify-self: end; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px;
  border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.card .photo, .card .name { cursor: pointer; }

.brand { justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
/* Fixed width (the phone rules below cap it): picking a place with a longer or shorter name never
   resizes the button or moves the header around it; long names end in an ellipsis. */
.near-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow); width: 14em; max-width: 100%; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Top-anchored (not UA-centered): if anything below the map grows, the sheet extends downward
   instead of re-centering and moving everything already on screen. */
dialog.loc { border: 0; border-radius: 16px; padding: 18px 20px; width: min(620px, calc(100vw - 24px));
  margin: min(6vh, 48px) auto auto; max-height: calc(100dvh - min(6vh, 48px) - 12px); overflow-y: auto;
  background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.loc::backdrop { background: rgba(20,16,12,.45); }
dialog.loc h2 { margin: 0 0 12px; font-size: 18px; }
.loc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.loc-head h2 { margin: 0 !important; }
/* Everything in the sheet has its final size before data arrives: one scrolling chip row, a fixed
   map box (MapLibre's CSS can land after its JS), fixed-height city chips. */
.travel-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.travel-row .meta { margin-right: 2px; }
.region-chips { display: flex; gap: 6px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.region-chips::-webkit-scrollbar { display: none; }
.region-chips .pill-f { flex: none; }
.loc-map { position: relative; overflow: hidden; height: 300px; border-radius: 12px; margin-bottom: 6px; background: var(--chip); }
.loc-map.off { display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.loc-hint { margin: 0 0 10px; }
.loc-map .maplibregl-ctrl-attrib, .dp-map .maplibregl-ctrl-attrib { font-size: 10px; line-height: 1.3; }
/* Phones: the credit stays visible (OSM requires it), just smaller (#302). */
@media (max-width: 600px) { :is(.loc-map, .dp-map) .maplibregl-ctrl-attrib { font-size: 9px; line-height: 1.2; max-width: 70%; }
  :is(.loc-map, .dp-map) .maplibregl-ctrl-attrib-inner { padding: 1px 4px; } }
.loc-saved:empty { display: none; }
.loc-opt[disabled] { opacity: .55; cursor: default; }
.loc-save summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 2px; }
.where { display: flex; gap: 8px; margin-bottom: 10px; }
.where input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.where button { font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.city-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; margin-bottom: 14px; height: 120px; overflow-y: auto; }
.pill-f.sk { color: transparent; pointer-events: none; }
.loc-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit;
  padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; margin-bottom: 8px; }
.loc-opt[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.loc-opt .sub { color: var(--muted); font-size: 12px; display: block; }
.loc-opt .x { margin-left: auto; color: var(--muted); padding: 0 4px; }
.loc-msg { color: var(--accent); font-size: 13px; min-height: 18px; margin: 4px 0; }
.banner .cov-launch:not(:empty) { display: block; margin-top: 8px; }
.banner { background: var(--chip); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  margin-bottom: 14px; font-size: 14px; }

/* card photo carousel */
.slides { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
/* #465: a carousel (2+ photos) is a focusable group, so arrow keys scroll it; one photo never scrolls. */
.slides:has(> img:only-child) { overflow: hidden; }
.slides:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.slides img { position: static; flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover;
  scroll-snap-align: start; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: #222; font-size: 18px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .15s; box-shadow: 0 1px 4px rgba(0,0,0,.25); z-index: 2; }
.nav.prev { left: 8px; } .nav.next { right: 8px; }
.photo:hover .nav { opacity: 1; }
@media (hover: none) { .nav { display: none; } }
.dots { position: absolute; bottom: 9px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px;
  pointer-events: none; z-index: 2; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.dots i.on { background: #fff; }
/* idea rows */
.rowhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.rowhead .right { display: flex; align-items: center; gap: 8px; }
.pager { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease); text-decoration: none !important; }
.pager:hover:not([disabled]) { box-shadow: 0 2px 8px rgba(0,0,0,.15); transform: scale(1.04); }
.pager[disabled] { opacity: .3; cursor: default; }
.rowhead h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.rowhead [data-seeall] { border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink);
  text-decoration: underline; cursor: pointer; white-space: nowrap; margin-right: 6px; }
.strip { display: grid; grid-auto-flow: column; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
  /* exactly N cards per view, like Airbnb: 2 on phones up to 6 on wide screens */
  grid-auto-columns: calc((100% - 18px * (var(--per) - 1)) / var(--per)); --per: 2; }
.strip::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .strip { --per: 3; } }
@media (min-width: 1000px) { .strip { --per: 4; } }
@media (min-width: 1400px) { .strip { --per: 5; } }
@media (max-width: 719px) { .strip { grid-auto-columns: 72%; scroll-snap-type: x proximity; } .pager { display: none; } }
.strip .card { scroll-snap-align: start; }
.strip .desc { -webkit-line-clamp: 2; }
.strip .actions { display: none; }
.signin { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.signin:hover { background: var(--chip); }
.acct { position: relative; } .acct summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.acct summary::-webkit-details-marker { display: none; }
.acct-menu { position: absolute; right: 0; top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 10px; display: grid; gap: 6px; min-width: 200px; z-index: 20; }
.acct-menu a, .acct-menu button { font: inherit; font-size: 14px; text-align: left; padding: 8px; border-radius: 8px; border: 0;
  background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--chip); }
.ev-free { display: inline-block; font-size: 11px; font-weight: 700; color: var(--ink); border: 1px solid currentColor;
  border-radius: 6px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }
.foryou { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent);
  border-radius: 999px; padding: 2px 7px; margin-right: 6px; vertical-align: 1px; }
.datepick { display: inline-flex; align-items: center; gap: 4px; }
.datepick input { border: 0; background: none; font: inherit; color: inherit; width: 8.5em; }
.weekpick { display: flex; gap: 8px; align-items: center; margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.weekpick::-webkit-scrollbar { display: none; }
.weekpick.evnear { margin-top: -10px; }
.weekpick .meta { white-space: nowrap; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; align-items: center; }
.pills::-webkit-scrollbar { display: none; }
/* Arrows for horizontal rows (filters, categories) for mice without sideways scroll: shown only on
   hover-capable screens and only on the side that has more to scroll to. */
.row-wrap { position: relative; }
.row-arr { position: absolute; top: 0; bottom: 0; margin: auto 0; height: 32px; width: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); z-index: 3; display: none; }
.row-arr.prev { left: -6px; } .row-arr.next { right: -6px; }
.row-wrap.can-prev .row-arr.prev, .row-wrap.can-next .row-arr.next { display: block; }
@media (hover: none) { .row-arr { display: none !important; } }
.pill-f { font: inherit; font-size: 13px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s var(--ease); }
.pill-f:hover { border-color: var(--ink); }
.pill-f[aria-pressed="true"], .pill-f.datepick[data-on="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pills .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex: none; }
/* "Open now" filter: a checkbox chip; the box is always there, so ticking it never shifts the row */
.pill-f .ck { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px;
  border: 1.5px solid currentColor; border-radius: 4px; font-size: 11px; line-height: 1; }
.pill-f[aria-pressed="true"] .ck::after { content: "✓"; }
/* card photo, top left (star + share are top right): green "Open now", amber "Closes 9pm" */
.open-b { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: #1f7a4d; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); pointer-events: none; }
.open-b.soon { background: #b45309; }
/* #272 card photo, bottom right: "3.2 mi · ~11 min" from your 📍 location (dark glass: legible on
   any photo in light and dark mode); lifted above the photo dots, credit shortened to fit */
.dist-b { position: absolute; right: 8px; bottom: 22px; font-size: 12px; font-weight: 600; padding: 4px 9px;
  border-radius: 999px; background: rgba(20,18,16,.72); color: #fff; white-space: nowrap; pointer-events: none;
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.oc-photo .dist-b { bottom: 8px; }
.photo:has(.dist-b) .credit { max-width: calc(100% - 150px); }
.filterbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.filterbar .chip-on { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; }
.cta { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 0;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; }
/* gallery in place dialog + lightbox */
.pd-gallery img { cursor: zoom-in; }
.pd-more { position: absolute; right: 12px; bottom: 12px; font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: 8px; border: 1px solid #222; background: #fff; color: #222; cursor: pointer; }
.pd-gwrap { position: relative; }


.cal { margin: 4px 0 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  display: grid; gap: 10px; }
.cal .r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal select, .cal input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); }
.cal a, .cal button { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); text-decoration: none; cursor: pointer; }
#wk-opens[aria-busy] { min-height: 230px; }  /* its row fills in late: nothing below it jumps */
#wk-opens:not(:empty) { margin-bottom: 26px; }  /* its cards' last line never runs into the day heading */
.open-card { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; scroll-snap-align: start; }
.oc-photo { position: relative; aspect-ratio: 1 / .95; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--chip), var(--line)); font-size: 34px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.oc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-art { position: absolute; inset: 0; display: grid; place-items: center; background: var(--chip); color: var(--muted); }
.oc-art .ico { width: 36px; height: 36px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 12px; padding: 5px 9px; border-radius: 999px; background: #fff; color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.badge.coming_soon { background: #222; color: #fff; }
/* ---- restaurant of the week (#101): right column on This weekend / Discover at >=1100px, a card
   in the feed below that. The column is outside #main, so re-renders never move it. ---- */
.page-cols > aside { display: none; }
@media (min-width: 1100px) {
  body.with-side .page-cols { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: grid;
    grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; align-items: start; }
  body.with-side .page-cols > main { max-width: none; margin: 0; padding-left: 0; padding-right: 0; min-width: 0; }
  body.with-side .page-cols > aside { display: block; position: sticky; top: 104px; padding-top: 18px; }
  body.with-side .page-cols > aside .rotw { min-height: calc(100vh - 150px); display: flex; flex-direction: column; }
  body.with-side .page-cols > aside .rotw .go { margin-top: auto; }
  body.with-side main .strip { --per: 3; }
  body.with-side main .rotw-feed { display: none; }
}
/* A sidebar "ad": warm orange frame, ribbon, big photo, a clear button. */
.rotw { position: relative; display: block; color: inherit; text-decoration: none; border-radius: 22px; padding: 14px;
  background: linear-gradient(160deg, #ffe6c7 0%, #ffd0a8 55%, #ffb88a 100%); border: 2px solid var(--accent);
  box-shadow: 0 10px 28px rgba(217, 72, 15, .22); transition: transform .18s ease, box-shadow .18s ease; }
.rotw:hover, .rotw:focus-visible { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 16px 36px rgba(217, 72, 15, .3); }
.rotw .k { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  padding: 6px 12px 6px 10px; font-size: 13px; font-weight: 800; margin: 0 0 12px; box-shadow: 0 3px 0 #a8360b; }
.rotw .k .trophy { font-size: 16px; display: inline-block; animation: rotw-wiggle 2.8s ease-in-out infinite; }
.rotw .oc-photo { aspect-ratio: 4 / 4.4; margin-bottom: 12px; border-radius: 16px; border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(31, 27, 22, .18); }
.rotw .name { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 24px; line-height: 1.12;
  letter-spacing: -.015em; color: #1f1b16; }
.rotw .meta { color: #5a4a3c; margin-top: 3px; }
.rotw .why { display: inline-block; font-size: 14px; font-weight: 700; margin-top: 8px; color: #8a2f08; }
.rotw .go { display: block; margin-top: 14px; text-align: center; background: #1f1b16; color: #fff; border-radius: 12px;
  padding: 11px 12px; font-weight: 800; font-size: 15px; }
.rotw:hover .go { background: var(--accent); }
.rotw .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: -4px 0 12px; }
.rotw .thumbs span { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid #fff; background: #f6dcc4; }
.rotw .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rotw .sum { font-size: 14px; line-height: 1.5; color: #3a2f25; margin: 10px 0 0; }
.rotw .try { margin: 12px 0 0; padding: 10px 12px; background: rgba(255, 255, 255, .6); border-radius: 12px; font-size: 14px; }
.rotw .try b { display: block; font-size: 12px; color: #8a2f08; margin-bottom: 4px; }
.rotw .try li { display: flex; justify-content: space-between; gap: 8px; list-style: none; padding: 2px 0; }
.rotw .try ul { margin: 0; padding: 0; } .rotw .try span { color: #6b5848; white-space: nowrap; }
.rotw .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rotw .facts span { background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; color: #3a2f25; }
.rotw-feed .rotw .thumbs, .rotw-feed .rotw .sum, .rotw-feed .rotw .try, .rotw-feed .rotw .facts { display: none; }
@keyframes rotw-wiggle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .rotw, .rotw .k .trophy { transition: none; animation: none; } .rotw:hover { transform: none; } }
.rotw-all { display: inline-block; margin: 8px 2px 0; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.rotw-all:hover { color: var(--ink); text-decoration: underline; }
.rotw-feed { margin: 8px 0 22px; }
.rotw-feed .rotw { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.rotw-feed .rotw .name { font-size: 20px; } .rotw-feed .rotw .go { grid-column: 1 / -1; }
.rotw-feed .rotw .k { grid-column: 1 / -1; justify-self: start; margin-bottom: 6px; }
.rotw-feed .rotw .oc-photo { margin: 0; grid-row: span 3; }
.rotw-page { max-width: 760px; margin: 0 auto; }
.rotw-page h1 { font-size: 28px; margin: 6px 0 12px; } .rotw-page h2 { font-size: 20px; margin: 30px 0 10px; }
.rotw-page p, .rotw-page li { line-height: 1.6; } .rotw-page a { color: var(--ink); }
.rotw-ph { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--chip); }
.rotw-ph::before { content: "🍽️"; font-size: 44px; opacity: .6; }  /* shows until (or unless) the photo loads */
.rotw-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rotw-meta, .rotw-past span { color: var(--muted); } .rotw-why { font-weight: 600; }
.rotw-past ul, .rotw-shared { padding-left: 18px; } .rotw-page h3 { font-size: 18px; margin: 22px 0 8px; }
/* Phone tap targets (>= 44px) for the standalone links on server-rendered pages. */
.rotw-sec > p:last-child > a, .rotw-past li > a { display: inline-flex; align-items: center; min-height: 44px; }
/* Ad-safe mode (#223): server pages mark storefront-only parts data-disp. */
html.adsafe [data-disp], html.adsafe a[href*="/dispensaries"] { display: none !important; }
/* Server-rendered 404 (hubs.NOT_FOUND_MAIN). */
.nf { max-width: 520px; margin: 48px auto; text-align: center; }
.nf-ic { font-size: 48px; } .nf h1 { font-size: 28px; margin: 8px 0; } .nf p { color: var(--muted); line-height: 1.55; }
.nf-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.nf-go a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700;
  text-decoration: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.nf-go a:first-child { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.more-ev summary { cursor: pointer; font-weight: 600; text-decoration: underline; padding: 6px 0 12px; list-style: none; }
.more-ev summary::-webkit-details-marker { display: none; }
.event .addcal { align-self: center; font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }

/* ---- photo tour (white sheet) + viewer (black), Airbnb-style motion ---- */
:root { --ease: cubic-bezier(.2, 0, 0, 1); }
.tour, .viewer { position: fixed; inset: 0; z-index: 50; overflow: hidden; margin: 0; padding: 0; border: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none; color: inherit; }
.tour::backdrop, .viewer::backdrop { background: transparent; }
.tour { background: var(--bg); overflow-y: auto; transform: translateY(100%); transition: transform .4s var(--ease); }
.tour.in { transform: none; }
.tour-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 24px; background: var(--bg); }
.tour-bar .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: inherit; font-size: 20px;
  cursor: pointer; display: grid; place-items: center; transition: background .2s var(--ease); }
.round:hover { background: var(--chip); }
.pill { font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; border: 0; background: none;
  color: inherit; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pill:hover { background: var(--chip); }
.tour-grid { max-width: 760px; margin: 8px auto 60px; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tour-grid img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; aspect-ratio: 3 / 2;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease), filter .2s; }
.tour-grid img.seen { opacity: 1; transform: none; }
.tour-grid img:hover { filter: brightness(.9); }
.tour-grid img.wide { grid-column: span 2; aspect-ratio: 16 / 10; }
/* Who a photo is from (web.label_photos): business / visitors / other, as tour sections and a
   caption in the viewer. */
.tour-sec { max-width: 760px; margin: 18px auto 0; padding: 0 24px; font-size: 17px; }
.tour-sec small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.tour-sec + .tour-grid { margin-bottom: 18px; }
.v-cap { text-align: center; font-size: 13px; padding: 0 16px 18px; color: rgba(255,255,255,.85); min-height: 1.4em; }
.v-cap a { color: #fff; }
.viewer { background: #000; color: #fff !important; opacity: 0; transition: opacity .25s var(--ease); display: flex;
  flex-direction: column; touch-action: pan-y; }
.viewer.in { opacity: 1; }
.v-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; font-size: 14px; }
.v-bar .close { font: inherit; font-weight: 600; color: #fff; background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 8px; display: flex; gap: 8px; align-items: center; }
.v-bar .close:hover { background: rgba(255,255,255,.12); }
.v-stage { position: relative; flex: 1; display: grid; place-items: center; padding: 10px 96px 60px; min-height: 0; }
.v-stage img { grid-area: 1 / 1; max-width: min(100%, 1200px); max-height: min(calc(100vh - 170px), 1000px); object-fit: contain; border-radius: 4px;
  transition: opacity .35s var(--ease), transform .35s var(--ease); user-select: none; -webkit-user-drag: none; }
.v-stage img.out-l { opacity: 0; transform: translateX(-40px); }
.v-stage img.out-r { opacity: 0; transform: translateX(40px); }
.v-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: none; color: #fff; font-size: 22px; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.v-arrow:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.v-arrow:active { transform: translateY(-50%) scale(.94); }
.v-arrow[disabled] { opacity: .25; cursor: default; }
.v-prev { left: 24px; } .v-next { right: 24px; }
@media (max-width: 700px) { .v-stage { padding: 0 0 30px; } .v-arrow { display: none; }
  .tour-sec { padding: 0 12px; }
  .tour-grid { grid-template-columns: 1fr; padding: 0 12px; } .tour-grid img.wide { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .tour, .viewer, .v-stage img, .tour-grid img { transition: none !important; } }
body.locked { overflow: hidden; }

/* ---- deep page ---- */
.dp { max-width: 1120px; margin: 0 auto; }
.dp-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 2px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.dp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dp-head h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.02em; }
.dp-acts { display: flex; gap: 4px; }
.dp-grid { position: relative; display: grid; gap: 8px; border-radius: 16px; overflow: hidden; height: min(440px, 52vw);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr));
  background: var(--chip); }
.dp-grid img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: filter .2s var(--ease); }
.dp-grid img:hover { filter: brightness(.88); }
.dp-grid img:first-child { grid-row: span 2; }
.dp-grid.n1 { grid-template-columns: minmax(0, 1fr); } .dp-grid.n1 img:first-child { grid-row: span 2; }
.dp-grid.n2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .dp-grid.n2 img:nth-child(2) { grid-row: span 2; }
.dp-grid.n3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.dp-grid.n4 { grid-template-columns: 2fr 1fr 1fr; } .dp-grid.n4 img:nth-child(4) { grid-column: span 2; }
.dp-grid.n0 { display: grid; place-items: center; height: 160px; grid-template-columns: 1fr; }
.dp-grid .ph { color: var(--muted); } .dp-grid .ph .ico { width: 44px; height: 44px; stroke-width: 1.5; }
/* Photo credit line under the place photo: one line reserved (skeleton + page) so nothing shifts. */
.dp-credit { min-height: 1.5em; margin: 6px 0 10px; }
/* Restaurant of the Week banner under the place name (web.rotw_html / rotwHtml). */
.rotw-award { display: grid; gap: 4px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.rotw-award.cur { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); padding: 12px 16px; }
.rotw-award > span { display: flex; align-items: baseline; gap: 8px; line-height: 1.35; }
.rotw-award .ra-cur { font-size: 17px; }
.rotw-award .ra-past { font-size: 14px; }
.rotw-award.cur .ra-past { opacity: .9; }
.rotw-award:not(.cur) .ra-past b { color: var(--ink); }
.rotw-award .ra-ic { flex: none; }
.rotw-award:hover > span > span:last-child { text-decoration: underline; text-underline-offset: 2px; }
.dp-hours-other { margin: 6px 0 0; font-size: 14px; }
.dp-all { position: absolute; right: 16px; bottom: 16px; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px;
  border-radius: 8px; border: 1px solid #222; background: #fff; color: #222; cursor: pointer; }
.dp-body { display: grid; grid-template-columns: 1fr 340px; gap: 56px; margin-top: 28px; align-items: start; }
.dp-sec { border-top: 1px solid var(--line); padding: 22px 0; }
.dp-sec h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -.01em; }
.dp-about { font-size: 16px; line-height: 1.6; margin: 0; }
.dp-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; }
.tag { font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); }
.tag.soft { background: none; }
.dp-hours { border-collapse: collapse; width: 100%; max-width: 380px; }
.dp-hours td { padding: 6px 0; } .dp-hours td:last-child { text-align: right; }
.dp-hours tr.today td { font-weight: 700; }
/* Top card (#316): where it is + how to reach it (+ open now in the app), first on the page. The
   server page prints the same markup (seo.visit_html) without the open-now line. */
.visit { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 6px 16px 14px; margin: 0 0 12px; max-width: 1120px; }
.visit .v-line { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none;
  font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.visit .v-line > .ico { width: 20px; height: 20px; margin: 0 1px; color: var(--muted); }
.visit .v-line address { font-style: normal; color: var(--ink); }
.visit .v-line:hover > :last-child { text-decoration: underline; text-underline-offset: 2px; }
.visit .v-open { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; font-size: 16px; }
.visit .v-open::before { content: ""; flex: none; width: 10px; height: 10px; margin: 0 6px; border-radius: 50%; background: var(--line); }
.visit .v-open.on::before { background: var(--ok); } .visit .v-open.on b { color: var(--ok); }
.visit .v-open.off { color: var(--muted); } .visit .v-open.off b { color: var(--ink); }
.visit .v-acts { display: flex; gap: 10px; margin-top: 8px; max-width: 440px; }
.visit .v-acts:empty { display: none; }
.visit .v-btn { flex: 1; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px;
  border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px; text-decoration: none; }
.visit .v-btn.alt { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.visit .v-btn.primary, .pd-acts .primary, .dp-bar .primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
/* Inline icons (the #i-* sprite at the top of <body>): currentColor strokes, sized to the text. */
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
[aria-pressed="true"] > .ico-star { fill: currentColor; }
.visit .v-acts:has(> :nth-child(3)) { max-width: 560px; }
.visit .v-acts .v-btn { white-space: nowrap; padding-inline: 8px; }
/* Directions · Call · Website right under the name in the quick view (#pd). */
.pd-acts { display: flex; gap: 8px; margin: 12px 0 4px; }
.pd-acts a { flex: 1; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 12px;
  border-radius: 12px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none; }
/* Phones: Directions · Call · Star stay one tap away at the bottom of a place page, above the tabs. */
.dp-bar { display: none; }
@media (max-width: 640px) {
  .dp-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; z-index: 20;
    bottom: calc(60px + env(safe-area-inset-bottom)); padding: 8px 12px; background: var(--bg);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0,0,0,.06); }
  .dp-bar > * { flex: 1; display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
    border-radius: 12px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink);
    font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
  main:has(> article.dp .dp-bar) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}
/* Lookup block (#274): hours + menu + Star / Add to a list, before the photos. */
.dp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.dp-quick h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.dp-quick p { margin: 0 0 6px; } .dp-q-today { font-size: 17px; }
.dp-quick summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 32px; }
.dp-save { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dp-btn { font: inherit; font-size: 16px; font-weight: 700; min-height: 44px; padding: 10px 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.dp-btn.alt { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.dp-btn[aria-pressed="true"] { background: var(--surface); color: var(--accent); }
.dp-menulink { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--ink); }
.dp-menu, .dp-specials { list-style: none; padding: 0; margin: 0; }
.dp-menu li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.dp-specials li { padding: 6px 0; } .dp-specials li::before { content: "✦ "; color: var(--accent); }
.site-foot { max-width: 1240px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot a { color: inherit; font-weight: 600; }
.credits h1 { font-size: 28px; margin: 6px 0 12px; } .credits h2 { font-size: 18px; margin: 26px 0 8px; }
.credits p, .credits li { line-height: 1.6; max-width: 760px; } .credits a { color: var(--ink); }
.dp-maplink { display: inline-block; margin-top: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; background: var(--surface); }
.dp-claim { margin: 14px 4px 6px; } .dp-claim button { border: 0; background: none; padding: 0; font: inherit; font-size: 13px;
  color: var(--muted); text-decoration: underline; cursor: pointer; text-align: left; }
/* ---- claim a place + owner edits (issue #11) ---- */
.owner-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  vertical-align: middle; background: var(--chip); color: var(--ink); }
.claim-box { margin: 14px 4px 6px; } .claim-box h3 { font-size: 15px; margin: 0 0 6px; }
.claim-box .cform { margin-top: 8px; } .claim-box .meta { font-size: 13px; }
#req-form, #claim-box { scroll-margin-top: 76px; }  /* ?edit=1 scrolls here: clear of the sticky header */
.claim-hours { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 8px; align-items: center; font-size: 13px; }
.claim-edits { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.claim-edits li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.claim-edits button, .claim-alt { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.req-photos { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.req-photos legend { font-size: 13px; padding: 0 0 4px; }
.req-photos label { display: flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.req-photos img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; display: block; }
.req-photos input:checked + img, .req-photos input:checked + span { outline: 2px solid var(--accent, currentColor); outline-offset: 1px; border-radius: 6px; }
.req-photos[hidden], .req-copy[hidden] { display: none; }
.dp-reqform select { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.dp-ev { display: flex; gap: 16px; padding: 10px 8px; margin: 0 -8px; border-bottom: 1px dashed var(--line); cursor: pointer;
  border-radius: 10px; align-items: flex-start; transition: background .15s var(--ease); }
.dp-ev:hover, .dp-ev:focus-visible { background: var(--chip); outline: none; }
.dp-ev .what { flex: 1; }
.dp-ev .ev-cal { opacity: .45; transition: opacity .15s var(--ease); }
.dp-ev:hover .ev-cal { opacity: 1; }
.ev-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-weight: 400; }
.ev-acts a, .ev-acts button { font: inherit; font-size: 13px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.ev-acts a:hover, .ev-acts button:hover { border-color: var(--ink); }
.dp-ev .when { min-width: 92px; font-weight: 700; font-size: 14px; } .dp-ev .when span { font-weight: 400; color: var(--muted); }
.dp-ev .what { font-weight: 600; }
.dp-map { width: 100%; height: 320px; border: 0; border-radius: 14px; margin-top: 8px; background: var(--chip); }
.dp-side { position: sticky; top: 130px; }
.dp-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface);
  box-shadow: 0 6px 20px rgba(0,0,0,.08); display: grid; gap: 12px; }
.dp-card h3 { margin: 0; font-size: 20px; }
.dp-card .cal { border: 0; padding: 0; background: none; }
.dp-links { display: grid; gap: 8px; }
.dp-links a, .dp-beenbtn { display: block; text-align: center; font: inherit; font-weight: 600; padding: 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; cursor: pointer; width: 100%; }
/* Icon + label controls on the place sheet and page (after their own rules, so these win). */
.visit .v-btn, .pd-acts a, .dp-bar > *, .dp-btn { gap: 6px; }
.dp-links a, .dp-maplink, .pd-links a, .pd-links button, .pill, .dp-all, .pd-more, .dp-menulink { display: inline-flex; align-items: center; gap: 6px; }
.dp-links a { display: flex; justify-content: center; }
.dp-btn { display: inline-flex; align-items: center; justify-content: center; }
.dp-quick h2 .ico, .dp-sec h2 .ico { margin-right: 4px; }
@media (max-width: 900px) { .dp-body { grid-template-columns: 1fr; gap: 0; } .dp-side { position: static; order: -1; margin-bottom: 8px; }
  .dp-grid { grid-template-columns: 1fr !important; grid-template-rows: 1fr; height: 62vw; } .dp-grid img:not(:first-child) { display: none; } }
/* ---- Phones: compact header, app-style bottom tab bar, stacked event rows ---- */
@media (max-width: 640px) {
  .bar { padding: 10px 16px 8px; }
  .brand { align-items: center; flex-wrap: nowrap; }
  .brand h1 { font-size: 19px; white-space: nowrap; }
  .brand > div:first-child > span { display: none; }
  .near-btn { padding: 7px 11px; font-size: 13px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #acct a, #acct button, #acct summary { font-size: 13px; padding: 7px 10px; white-space: nowrap; }  /* = .near-btn height: no header growth when it fills in */
  nav[role="tablist"] { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; gap: 0;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around; overflow: visible; }
  nav[role="tablist"] button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; font-size: 11px; border: 0; min-height: 52px; }
  nav[role="tablist"] button[aria-selected="true"] { color: var(--accent); }
  nav .ic { display: block; font-size: 20px; line-height: 1; height: 22px; }
  .nav-badge { position: absolute; top: 3px; left: calc(50% + 4px); margin: 0; }
  main { padding: 14px 16px calc(84px + env(safe-area-inset-bottom)); }
  .install { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.install) .toast { bottom: calc(160px + env(safe-area-inset-bottom)); }  /* above the account/install nudge */
  .days { grid-template-columns: 1fr; }
  .event { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "time img" "body img" "act img"; column-gap: 12px; row-gap: 4px; }
  .event .time { grid-area: time; min-width: 0; font-size: 13px; }
  .event > div:nth-child(2) { grid-area: body; }
  .event img, .event .ev-ph { grid-area: img; width: 84px; height: 84px; align-self: start; }
  .event.nt { grid-template-areas: "body img" "act img"; }
  .event .ev-btns { grid-area: act; justify-self: start; align-self: end; margin-top: 4px; }
}
/* ---- Loading: shimmer behind photos, fade-in when they arrive, skeleton cards ---- */
/* Opacity, not background-position: the compositor runs it, so dozens of loading cards don't repaint every frame (#517). */
@keyframes shimmer { from { opacity: 1; } to { opacity: .55; } }
/* Every photo box reserves its final size in CSS (aspect-ratio / fixed rows), so nothing moves
   when a photo arrives. The box shimmers until its photos are done (.ld on the box), each photo
   fades in on load, and a broken one (.bad) keeps its box and shows the placeholder behind it. */
.photo, .oc-photo, .event img, .dp-grid, .pd-gallery, .sk, .sk-ghost { background-color: var(--chip);
  background-image: linear-gradient(90deg, transparent 0, rgba(255,255,255,.35) 50%, transparent 100%);
  background-size: 400px 100%; background-repeat: no-repeat; animation: shimmer .9s ease-in-out infinite alternate; }
.photo.ld, .oc-photo.ld, .event img.ld, .event img.bad, .dp-grid.ld, .pd-gallery.ld { animation: none; background-image: none; }
main img, dialog.place img { opacity: 0; transition: opacity .35s ease; }
main img.ld, dialog.place img.ld { opacity: 1; }
main .event img { opacity: 1; transition: none; }  /* the thumbnail is its own shimmer box */
img.bad { visibility: hidden; }
img[data-src]:not([src]) { color: transparent; }  /* queued (#283): no alt text flash */
/* Footer stays below the fold, so skeleton -> content (and Discover's two-step render: controls,
   then results) never moves it. On a short page it costs a footer's height of scroll. */
main#main { min-height: 100vh; }
.sk { border-radius: 10px; }
.sk-line { height: 12px; margin: 8px 0; width: 70%; }
.sk-line.short { width: 40%; }
.sk-title { height: 22px; width: 220px; margin: 6px 0 16px; }
.sk-grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }  /* = .grid */
.sk-card { pointer-events: none; }
.sk-card .photo { margin: 0; }
/* ---- Loading feedback: top bar, busy controls, dimmed results, slow / failed notes ---- */
#topbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; overflow: hidden;
  pointer-events: none; opacity: 0; transition: opacity .25s ease .1s; }
#topbar.on { opacity: 1; transition: none; }  /* appears the moment a request starts */
#topbar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 0 3px 3px 0;
  background: var(--accent); animation: topbar 1.1s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes topbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes busy { from { opacity: 1; } to { opacity: .45; } }
.is-busy { animation: busy .7s ease-in-out infinite alternate; cursor: progress; }
#results.loading > :not(.load-note) { opacity: .45; pointer-events: none; transition: opacity .12s; }
.load-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); pointer-events: auto; }
.load-note.fail { border-color: var(--accent); }
.load-note button { font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 0;
  background: var(--ink); color: var(--bg); cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  #topbar::before { animation: none; width: 100%; opacity: .75; }
  .is-busy { animation: none; opacity: .6; }
  #results.loading > :not(.load-note) { transition: none; }
}
.sk-photo { aspect-ratio: 1 / 0.95; border-radius: 14px; }
/* Text-shaped bars: an inline block inside a real line box, so a skeleton line is exactly as
   tall as the text that replaces it. .sk-ghost: real control markup, text hidden, same size. */
.sk-tx { display: inline-block; height: .8em; max-width: 100%; vertical-align: -.06em; border-radius: 6px; }
.sk-ghost { color: transparent !important; border-color: transparent !important; box-shadow: none !important; pointer-events: none; }
.sk-inl { color: transparent; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sk-page { pointer-events: none; }
.pd-body.sk-page { min-height: 100vh; }  /* the sheet opens at its full height, not grows into it */
.pd-gallery .sk-cell:first-child { grid-row: span 2; }
@media (prefers-reduced-motion: reduce) { .photo, .oc-photo, .event img, .dp-grid, .pd-gallery, .sk, .sk-ghost { animation: none; background-image: none; }
  main img, dialog.place img { transition: none; } }
.pd-details { display: block; text-align: center; margin: 14px 0 10px; padding: 14px 18px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.pd-details:hover { filter: brightness(1.05); }
.pd-group { margin: 12px 0 4px; }
.pd-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 6px; }
.pd-group .pd-links { margin: 0; }
.dp-acts { flex-wrap: wrap; align-items: center; gap: 6px; }
.dp-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.acc { max-width: 640px; margin: 0 auto; }
.acc h1 { font-size: 28px; margin: 8px 0 16px; }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.acc-card h2 { font-size: 18px; margin: 0 0 10px; }
.acc-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0; }
.acc-form label { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.acc-form input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); flex: 1 1 160px; }
.acc-form button, .acc-danger button, #acc-push button { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
#acc-push button { margin-top: 10px; }
.acc-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.acc-locs { list-style: none; padding: 0; margin: 8px 0; }
.acc-locs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.acc-x { font: inherit; font-size: 13px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink); cursor: pointer; }
.acc-signout { display: block; text-align: center; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px; }
.acc-signout-form { margin: 0; }
.acc-signout-form button { display: block; width: 100%; font: inherit; font-weight: 600; text-align: center; color: var(--ink); background: none; border: 0; padding: 6px; cursor: pointer; }
.acc-signout-form.all button { font-weight: 400; font-size: 13px; color: var(--muted); text-decoration: underline; }
.acct-menu form { margin: 0; display: grid; }
.acc-danger { margin: 28px 0 10px; color: var(--muted); font-size: 13px; }
.acc-danger summary { cursor: pointer; text-decoration: underline; }
.acc-danger label { display: block; margin: 10px 0; }
.acc-danger input { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; margin-left: 6px; width: 120px; }
.acc-danger button { background: #b42318; color: #fff; }
.acc-danger button:disabled { opacity: .4; cursor: not-allowed; }
.a2hs { border: 0; border-radius: 20px; padding: 22px; max-width: 420px; width: calc(100% - 32px);
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: visible; }
.a2hs::backdrop { background: rgba(0,0,0,.45); }
.a2hs-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.a2hs-head img { width: 52px; height: 52px; border-radius: 12px; }
.a2hs ol { padding-left: 22px; line-height: 1.5; } .a2hs li { margin: 10px 0; }
.a2hs-arrow { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  color: #fff; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6); animation: bob 1s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 8px); } }
.a2hs-link { display: block; text-align: center; font-weight: 600; padding: 8px; }
/* ---- Brand ---- */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.logo img { width: 36px; height: 36px; border-radius: 10px; flex: none; box-shadow: 0 2px 8px rgba(217,72,15,.35);
  transition: transform .3s ease; }
.logo:hover img { transform: rotate(-8deg) scale(1.05); }
.wm { display: flex; flex-direction: column; line-height: 1.05; }
.brand .wm h1 { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin: 0; }
.wm .slogan { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent); display: block !important; }
/* Holiday art by date (#513): a tinted header and a light band under it; the logo stays. No images, no motion. */
html[data-holiday="thanks"] header { background: #fdf3e3; }
html[data-holiday="xmas"] header { background: #eef7f0; }
.hol-band { display: none; align-items: center; justify-content: center; gap: 8px; padding: 3px 16px; color: #3b2a1a;
  font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 15px; letter-spacing: -.01em; line-height: 1.15; }
.hol-band .art { font-size: 20px; line-height: 1; }  /* a slim strip (#597): the picks own the first screen */
.hol-band .art2 { font-size: 15px; line-height: 1; }
html[data-holiday] .hol-band { display: flex; }
html[data-holiday="thanks"] .hol-band { background: #fbe7cb; }
html[data-holiday="xmas"] .hol-band { background: #dcefe1; color: #173a24; }
@media (prefers-color-scheme: dark) {
  html[data-holiday="thanks"]:not([data-theme="light"]) header { background: #2a1e12; }
  html[data-holiday="xmas"]:not([data-theme="light"]) header { background: #14241a; }
  html[data-holiday="thanks"]:not([data-theme="light"]) .hol-band { background: #3a2a18; color: #fbeeda; }
  html[data-holiday="xmas"]:not([data-theme="light"]) .hol-band { background: #1b3324; color: #e6f5ea; }
}
html[data-holiday="thanks"][data-theme="dark"] header { background: #2a1e12; }
html[data-holiday="xmas"][data-theme="dark"] header { background: #14241a; }
html[data-holiday="thanks"][data-theme="dark"] .hol-band { background: #3a2a18; color: #fbeeda; }
html[data-holiday="xmas"][data-theme="dark"] .hol-band { background: #1b3324; color: #e6f5ea; }
/* #305 seasons + holidays: a glyph after the tagline, a one-line greeting, the seasonal row */
.wm .slogan .hol { font-size: 1em; line-height: 1; vertical-align: -1px; }
.hol-greet { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.season-evs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.season-evs > [role="listitem"] { display: flex; min-width: 0; max-width: 100%; }
.season-evs .pill-f { text-decoration: none; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-row:empty { display: none; }
.days > .season-row { grid-column: 1 / -1; min-width: 0; }  /* a 1fr track must not grow to the strip */
.days > #wk-explore { grid-column: 1 / -1; min-width: 0; }  /* the tile row spans the list, not one 300px track */
.season-row .season-evs { margin-top: 10px; }
@media (max-width: 640px) { .logo img { width: 30px; height: 30px; } .brand .wm h1 { font-size: 20px; } .wm .slogan { font-size: 11px; } }
/* ---- Plans ---- */
.plans-h { font-family: "Fraunces", Georgia, serif; font-size: 30px; margin: 6px 0 8px; }
.plan-list { display: grid; gap: 10px; margin-top: 16px; max-width: 640px; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; transition: transform .14s ease; }
.plan-row:active { transform: scale(.98); }
.plan-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--chip); }
.plan-badge.set { background: #1f7a4d; color: #fff; }
.plan { max-width: 680px; margin: 0 auto; }
/* Plan invites (#430): photo header, the organizer's "Send the invite", the invitee's "Are you in?" */
.dp-btn.friends { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
.pi-hero { margin: 4px 0 12px; }
.pi-photos { display: grid; gap: 4px; grid-template-columns: repeat(var(--n, 1), 1fr); height: 190px; border-radius: 18px; overflow: hidden; margin-bottom: 14px; background: var(--chip); }
.pi-photos.n2 { --n: 2; } .pi-photos.n3 { --n: 3; }
.pi-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.pi-hero .plans-h { margin: 0 0 4px; line-height: 1.15; }
.pi-facts { margin: 0; font-size: 15px; }
.pi-send { background: #fff1e8; border-color: #f6c9ad; color: #1f1b16; }
.pi-send .meta { color: #6f665c; }
.pi-cta { display: block; width: 100%; min-height: 54px; margin-top: 12px; border: 0; border-radius: 14px; background: var(--ok); color: var(--ok-ink);
  font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.pi-cta:active, .pi-join button:active { transform: scale(.98); }
.pi-join { border-color: var(--accent); }
.pi-join button[type=submit] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pi-own .plan-adds { justify-content: flex-start; align-items: center; }
.pi-own .pd-details { margin: 6px 0; }
.tw-planbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--ink); color: var(--bg);
  box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; }
@media (max-width: 640px) { .tw-planbar { bottom: calc(76px + env(safe-area-inset-bottom)); } }  /* above the tab bar */
.tw-planbar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-planbar a { flex: none; padding: 10px 14px; border-radius: 12px; background: var(--ok); color: var(--ok-ink); font-weight: 800; text-decoration: none; }
.tw-planbar button { flex: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; padding: 8px; cursor: pointer; }
.plan-members { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pm { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--chip); }
.pm.me { background: var(--accent); color: var(--accent-ink); }
.plan-set { background: #1f7a4d; color: #fff; border-radius: 16px; padding: 16px; margin: 10px 0 14px; }
.plan-set .meta { color: rgba(255,255,255,.8); } .plan-set b { font-size: 20px; display: block; }
.plan-set .pd-details { background: #fff; color: #1f7a4d; margin-bottom: 0; }
.pt-list { display: grid; gap: 8px; margin-bottom: 10px; }
.pt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; text-align: left; font: inherit;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.pt.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pt.won { background: #e8f5ee; border-color: #1f7a4d; }
.pt-lock, .po-lock { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.po { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.po:first-of-type { border-top: 0; }
.po img, .po-ph { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.po-ph { display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--muted); background: var(--chip); }
.po.won { background: #e8f5ee; border-radius: 12px; padding: 12px; }
.po-body { flex: 1; min-width: 0; }
.po-votes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.po-votes button { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .14s ease, background-color .14s ease; }
.po-votes button:active { transform: scale(.94); }
.po-votes button.on { background: var(--chip); border-color: var(--ink); font-weight: 700; }
.po-more { font-size: 13px; margin-left: auto; }
.po-vetoed { margin-top: 10px; color: var(--muted); } .po-vetoed summary { cursor: pointer; }
.pp-list { display: grid; gap: 8px; }
.pp-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer; }
.plan-pick .acc-form label { flex-basis: 100%; }
/* Undated list (#270): "No date yet" checkbox in the create forms, ✕ remove on an option. */
.acc-form label.pl-nodate { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.acc-form label.pl-nodate input { width: auto; margin: 0; padding: 0; flex: none; }
.acc-form label.pl-when[hidden], #plan-time[hidden] { display: none; }
.po-remove { margin-left: 4px; color: var(--muted); }
/* Quick "＋ Plan" picker (quickPlan): bottom sheet on phones, a popover by the button on wider screens. */
.qp .qp-what { margin: 0 0 12px; }
.qp-list { display: grid; gap: 8px; }
.qp-list .meta { margin: 0; }
.qp-row, .qp-new { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; padding: 12px 14px;
  min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer; }
.qp-row:hover, .qp-new:hover { border-color: var(--ink); }
.qp-row:focus-visible, .qp-new:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qp-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-ck { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); font-weight: 700; color: var(--muted); }
.qp-row[aria-pressed="true"] .qp-ck { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
.qp-new { margin-top: 8px; border-style: dashed; font-weight: 600; }
.qp-new[hidden], .qp-form[hidden] { display: none; }
.qp-form { margin-top: 10px; }
.qp-sk { height: 52px; border-radius: 12px; background: var(--chip); }
dialog.sheet.pop { position: fixed; inset: auto; margin: 0; width: 340px; max-width: calc(100vw - 16px);
  max-height: min(520px, calc(100dvh - 16px)); padding: 16px; border-radius: 16px; }
dialog.sheet.pop::backdrop { background: rgba(20,16,12,.12); }
dialog.sheet.pop h2 { font-size: 17px; }
/* ---- Sheet (openSheet): every in-app ask. Card on wide screens, bottom sheet on phones. ---- */
dialog.sheet { border: 0; border-radius: 20px; padding: 22px; width: calc(100% - 32px); max-width: 440px;
  max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.sheet::backdrop { background: rgba(20,16,12,.45); }
dialog.sheet:focus { outline: none; }
dialog.sheet h2 { margin: 0 0 6px; font-size: 20px; }
.sheet-grab { display: none; }
.sheet-acts { display: flex; gap: 8px; margin-top: 16px; flex-basis: 100%; }
.sheet-acts button { flex: 1; font: inherit; font-weight: 600; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: transform .12s ease; }
.sheet-acts button:active { transform: scale(.97); }
.sheet-acts .primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sheet-acts .danger { background: #b42318; color: #fff; border-color: #b42318; }
.sheet-acts button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet-acts button:disabled { opacity: .5; cursor: progress; }
.sheet .acc-form label { flex-basis: 100%; }
.sheet-num { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.sheet-num input { max-width: 120px; }
.sheet-err { flex-basis: 100%; margin: 0; color: #b42318; font-size: 14px; }
.sheet-err[hidden] { display: none; }
dialog.sheet[open] { animation: sheetIn .2s cubic-bezier(.2,.9,.3,1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (max-width: 640px) {
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0;
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px); }
  .sheet-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
  dialog.sheet[open] { animation: sheetUp .28s cubic-bezier(.2,.9,.3,1); }
}
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
.pn-field[hidden] { display: none; } .pn-as { flex-basis: 100%; margin: 0; } .pn-as a { color: inherit; text-decoration: underline; }
/* labels stack their input; the input must not stretch to fill the column */
.acc-form label input { flex: none; width: 100%; }
@media (max-width: 640px) {
  .brand { gap: 8px; }
  /* The wordmark never shrinks under the buttons (#277: "Any Da" ran under "Near Fontana" once
     the Badges chip filled in); the place button gives way instead, with its ellipsis. */
  .logo { flex: none; }
  .brand > div:last-child { min-width: 0; }
  .brand .wm h1 { font-size: 18px; white-space: nowrap; }
  .near-btn { max-width: 34vw; min-width: 0; flex: 0 1 auto; }
}
@media (max-width: 360px) { .wm .slogan { display: none !important; } }
/* iOS zooms the page in when a field under 16px gets focus, and leaves it zoomed: full-width
   sheets then run off the right edge (the place sheet's close button was clipped). */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
/* Phones: iOS Safari's 100vh is taller than the visible area (toolbars), which pushed the modal's
   top, and its close button, off screen. Use the dynamic viewport and make it a full-screen sheet. */
dialog.place { max-height: calc(100dvh - 40px); }
@media (max-width: 640px) {
  /* inset/100% instead of 100vw: on iOS 100vw is the layout viewport, which is wider than the
     screen whenever anything on the page overflows, and that pushed the close button and the
     right edge of the sheet off screen. */
  dialog.place { inset: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0;
    border-radius: 0; overflow-x: hidden; box-sizing: border-box; }
  dialog.place .pd-close { margin-right: max(10px, env(safe-area-inset-right)); }
  dialog.place .pd-close { top: calc(10px + env(safe-area-inset-top)); width: 44px; height: 44px; font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.25); }
}
/* ---- Pick for me: hopping pin ---- */
.pick-stage { position: relative; height: 190px; margin: 6px 0 4px; }
.bubs { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bub { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; position: relative; background: var(--chip);
  box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; font-weight: 700; color: var(--muted);
  animation: bubIn .45s cubic-bezier(.3,1.4,.5,1) both; animation-delay: var(--d); transition: transform .3s, box-shadow .3s, opacity .3s; }
.bub img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.pick-stage.done .bub:not(.chosen) { opacity: .45; transform: scale(.9); }
.bub.chosen { transform: scale(1.18); box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent), 0 8px 18px rgba(217,72,15,.35); z-index: 1; }
@keyframes bubIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pal { position: absolute; left: 0; top: 0; width: 48px; height: 60px; z-index: 2; transform: translate(calc(50% + 100px), 0); }
.pal-svg { width: 48px; height: 60px; overflow: visible; }
.pal-body { transform-box: fill-box; transform-origin: 50% 100%; }
.pal-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 3.6s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.heart { position: absolute; color: #e64980; font-size: 14px; pointer-events: none; z-index: 3; }
.lucky-pick[data-open] { cursor: pointer; border-radius: 14px; padding: 8px; margin-left: -8px; margin-right: -8px; transition: background-color .15s; }
.lucky-pick[data-open]:hover, .lucky-pick[data-open]:focus-visible { background: var(--chip); }
@media (prefers-reduced-motion: reduce) { .bub { animation: none; } .pal-eyes { animation: none; } }
.moods { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 6px; }
.moods button { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .14s ease, background-color .14s ease; }
.moods button:active { transform: scale(.95); }
.moods button.last { border-color: var(--muted); }
.moods button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mood-now { display: none; font: inherit; font-size: 14px; background: none; border: 0; color: var(--muted); cursor: pointer; margin: 0 auto 2px; }
.lucky.mooded .moods { display: none; } .lucky.mooded .mood-now { display: block; }
.lucky { max-height: calc(100dvh - 32px); overflow-y: auto; }
.dp-map { overflow: hidden; }
.map-pin svg { width: 36px; height: 45px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
/* "You are here": accent dot, white ring, soft drop shadow and a slow halo. */
.origin-dot { width: 16px; height: 16px; border-radius: 50%; background: #d9480f; border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(31,27,22,.35); position: relative; }
.origin-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: rgba(217,72,15,.18);
  animation: halo 2.4s ease-out infinite; z-index: -1; }
@keyframes halo { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .origin-dot::after { animation: none; } }
.pick-near { display: block; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.pick-near select { font: inherit; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.tour-acts { display: flex; align-items: center; gap: 8px; flex: none; }
/* ---- About ---- */
.about { max-width: 680px; margin: 0 auto; padding-bottom: 24px; }
.ab-hero { text-align: center; padding: 8px 0 18px; }
.ab-map { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto 6px; overflow: visible; }
.ab-hills { fill: #f3e6d6; }
.ab-route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .012 .018;
  stroke-dashoffset: 0; }
.ab-town circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.ab-town text { font: 600 13px/1 system-ui, sans-serif; fill: var(--muted); }
@media (max-width: 640px) { .ab-town text { font-size: 22px; } .ab-town circle { r: 7; } }
.ab-walker { offset-path: path("M30 150 C 90 60, 160 170, 230 110 S 360 40, 420 120 S 540 180, 610 70");
  offset-distance: 100%; offset-rotate: 0deg; animation: walk 4.2s cubic-bezier(.45,.05,.3,1) .3s both; }
@keyframes walk { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.ab-hero h1 { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: clamp(30px, 7vw, 46px);
  line-height: 1.05; letter-spacing: -.02em; margin: 6px auto 12px; max-width: 16ch; text-wrap: balance; }
.ab-lede { font-size: 18px; color: var(--muted); max-width: 34ch; margin: 0 auto; text-wrap: pretty; }
.ab-story { font-size: 18px; line-height: 1.65; margin: 26px 0 8px; }
.ab-story p { margin: 0 0 16px; max-width: 62ch; }
.ab-story p:first-child { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 700; }
.ab-sign { font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--accent); }
.ab-addr { font-style: normal; margin-bottom: 4px; color: var(--ink); }
.about h2 { font-family: "Fraunces", Georgia, serif; font-size: 24px; margin: 34px 0 12px; }
.biz a:not([class]) { color: var(--accent); font-weight: 600; text-underline-offset: 2px; }  /* /for-business inline links: brand color, not default blue */
.ab-sources dl { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 10px 18px; }
.ab-sources dt { font-weight: 700; }
.ab-sources dd { margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 520px) { .ab-sources dl { grid-template-columns: 1fr; gap: 2px; } .ab-sources dd { margin-bottom: 12px; } }
.ab-promises ul { list-style: none; padding: 0; margin: 0; }
.ab-promises li { padding: 12px 0 12px 34px; position: relative; border-top: 1px solid var(--line); line-height: 1.5; }
.ab-promises li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 16px; height: 20px;
  background: var(--accent); clip-path: path("M8 0C3.6 0 0 3.4 0 7.7 0 13 8 20 8 20S16 13 16 7.7C16 3.4 12.4 0 8 0Z"); }
.ab-contact { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 18px; margin-top: 34px; }
.ab-contact h2 { margin-top: 0; }
.ab-mail { display: inline-block; margin-top: 6px; font-size: 20px; font-weight: 700; color: var(--accent);
  text-decoration: none; border-bottom: 2px solid currentColor; }
@media (prefers-reduced-motion: reduce) { .ab-walker { animation: none; } }
@media (max-width: 640px) {
  .brand .wm h1 { font-size: 17px; }
  .near-btn { max-width: 36vw; padding: 7px 9px; }  /* shrinks (flex) when the Badges chip shows; "Riverside" fits without it */
}
@media (max-width: 400px) { .wm .slogan { font-size: 10px; } }
.a2hs-tip { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); z-index: 60;
  background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 14px; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: rise .25s ease-out; }
.a2hs-tip b { display: block; font-size: 15px; } .a2hs-tip span { font-size: 13px; opacity: .8; }
.a2hs-foot { display: none; } @media (pointer: coarse) { .a2hs-foot { display: inline; } .a2hs-foot::after { content: " ·"; } }
.ev-btns { display: inline-flex; gap: 8px; align-self: center; flex: none; }
.plan-cal { margin: 10px 0 14px; text-align: center; }
.plan-cal .pd-details { margin-bottom: 6px; }
.plan-cal-done { margin: 8px 0 14px; color: #1f7a4d; font-weight: 600; }
.linkish { font: inherit; font-size: 13px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.plan-adds { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
/* Taste: first-visit "what are you into?" chips (#40) + "Because you starred X" on picks */
.card-why { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Intent search (#86): why each place matched + an honest note when evidence is thin */
.card-evidence { font-size: 12px; font-weight: 600; color: var(--ok); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-evidence a { color: inherit; font-weight: 500; }
.intent-note { font-size: 14px; color: var(--muted); background: var(--chip); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.intent-note b { color: var(--ink); }
.osm-credit { margin-top: 10px; }
.ob { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px 16px 14px; margin: 0 0 18px; }
.ob h3 { margin: 0; font-size: 18px; }
.ob .sub { color: var(--muted); font-size: 13.5px; margin: 2px 0 12px; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip { font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--ink);
  cursor: pointer; transition: transform .12s, background .12s; -webkit-tap-highlight-color: transparent; }
.ob-chip:active { transform: scale(.96); }
.ob-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.ob-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ob-foot .cta:disabled { opacity: .45; cursor: default; }
.ob-foot .note { flex: 1 1 220px; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .ob { border-radius: 14px; padding: 14px 12px 12px; } .ob-chip { font-size: 13.5px; padding: 7px 11px; } }
/* Weekly email, business editor, /for-business (static/grow.js) */
.cform[hidden], .claim-box[hidden] { display: none; }  /* .cform sets display: grid, which beat [hidden] */
.nl-card { display: grid; gap: 10px; margin: 28px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.nl-card > div { display: grid; gap: 2px; }
.nl-card form, .nl-foot form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nl-card input, .nl-card select, .nl-foot input, .nl-foot select { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; min-width: 0; }
.nl-card input, .nl-foot input { flex: 1 1 200px; }
.nl-card button, .nl-foot button { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px; border: 0; background: var(--ink, #222); color: var(--bg, #fff); cursor: pointer; }
.nl-card [data-msg], .nl-foot [data-msg] { flex-basis: 100%; }
.nl-foot { margin: 0 0 14px; } .nl-foot b { display: block; margin-bottom: 6px; color: var(--ink, inherit); }
.biz-row { display: flex; gap: 8px; align-items: center; } .biz-row > input, .biz-row > select { flex: 1 1 auto; min-width: 0; }
.biz-row .biz-price { flex: 0 0 5.5em; }
.cform .biz-x, .cform .cnote .claim-alt, .biz-live .claim-alt { justify-self: auto; border: 0; background: none; padding: 0 4px; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; }
.cform .biz-x { font-size: 20px; text-decoration: none; color: var(--muted); } .biz-pro a { color: inherit; font-weight: 600; }
.biz-post { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.biz-live { list-style: none; padding: 0; margin: 0; } .biz-live li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.biz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.biz-tiles div { display: grid; padding: 10px; border: 1px solid var(--line); border-radius: 10px; } .biz-tiles b { font-size: 20px; }
.biz-int { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.biz-cmp { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 14px; }
.biz-cmp th, .biz-cmp td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.biz-cmp thead th { border-top: 0; text-align: center; } .biz-cmp tbody th { text-align: left; font-weight: 400; }
.biz-cmp td { text-align: center; width: 4.5em; font-weight: 700; color: var(--ok); }
.dp-cta { display: block; text-align: center; margin-top: 10px; padding: 10px 14px; border-radius: 10px; font-weight: 700; background: var(--ink, #222); color: var(--bg, #fff); text-decoration: none; }
/* Owner dashboard /business/<place> (static/owner.js) + pinned special / post dates on place pages */
.owner-tag.soft { background: var(--chip); color: var(--muted); }
.own h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.own-pitch { background: var(--chip); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.own-pitch p { margin: 0 0 8px; }
.own-go { font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; margin-right: 10px; }
.own-go:disabled { opacity: .5; cursor: default; }
.own-bar { height: 6px; border-radius: 999px; background: var(--chip); overflow: hidden; margin: 0 0 8px; }
.own-bar span { display: block; height: 100%; background: var(--ok); }
.own-check, .own-metrics { list-style: none; padding: 0; margin: 0; }
.own-check li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.own-tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.own-check li.ok .own-tick { border-color: var(--ok); background: var(--ok); color: var(--surface); }
.own-fix { font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.own-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.own-head h2 { margin: 0; }
.own-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.own-seg button { font: inherit; font-size: 13px; border: 0; background: none; color: var(--muted); padding: 6px 12px; cursor: pointer; }
.own-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.own-metrics li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.own-metrics li:first-child { border-top: 0; margin-top: 8px; }
.own-ml b { font-size: 18px; }
.own-spark { flex: 0 0 auto; color: var(--accent); }
.own-chg { font-size: 13px; font-weight: 700; } .own-chg.up { color: var(--ok); } .own-chg.down { color: var(--muted); }
.own-posts li { align-items: center; border-top: 1px solid var(--line); padding: 8px 0; }
.own-pacts { display: flex; gap: 10px; flex: 0 0 auto; }
.own-cta-prev { display: inline-block; margin: 0; }
.own-toggle { display: flex; gap: 8px; align-items: center; }
.own-locked p { color: var(--muted); }
.dp-pin { border: 2px solid var(--accent); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.dp-pin b { display: block; } .dp-pin .meta { display: block; margin-top: 4px; }
.dp-specials .when { color: var(--muted); font-size: 13px; }
.biz-cta-prev { margin: 4px 0 0; } .biz-cta-help { margin: 0; }
.biz-form select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.biz-form input, .biz-form textarea, .biz-form select { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 900px) { .dp-body { grid-template-columns: minmax(0, 1fr); } .dp-main, .dp-side { min-width: 0; } }
/* Server-rendered pages (#267). Place, hub, event, home and area pages arrive with plain HTML in
   #main (hubs and events keep it; the app swaps the others). It is on screen before any script
   runs, so it gets the app's look here, in the first stylesheet: no numbered breadcrumb, no blue
   underlined links, no bullets. :where() keeps it at element weight so app rules always win. The
   place heading sits where the app's skeleton puts it (crumbs = the 44px "Back" row). */
.crumbs { display: block; max-width: 1080px; margin: 0 auto 2px; overflow: visible; }
.crumbs[hidden] { display: none; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 .4em; font-size: 14px; color: var(--muted); min-height: 44px; }
.crumbs li + li::before { content: "›"; margin-right: .4em; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted);
  text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
:where(.ssr, #main > article:not([class])) h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 4px; overflow-wrap: anywhere; }
:where(#main > article:not([class])) > h1 + p { color: var(--muted); margin-top: 0; }
:where(.ssr, #main > article:not([class])) h2 { font-size: 18px; margin: 26px 0 10px; }
:where(.ssr, #main > article:not([class])) :is(p, address, dd) { line-height: 1.55; }
:where(.ssr, #main > article:not([class])) address { font-style: normal; color: var(--muted); }
:where(.ssr, #main > article:not([class])) a { color: var(--ink); text-underline-offset: 2px; }
:where(.ssr, #main > article:not([class])) > img { display: block; width: 100%; max-height: 380px;
  object-fit: cover; border-radius: 14px; margin: 12px 0; background: var(--chip); }
:where(.ssr, #main > article:not([class])) dl { display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px; margin: 10px 0; }
:where(.ssr, #main > article:not([class])) dt { color: var(--muted); font-weight: 600; }
:where(.ssr, #main > article:not([class])) dd { margin: 0; overflow-wrap: anywhere; }
:where(.ssr, #main > article:not([class])) ul.chips { list-style: none; padding: 0; margin: 6px 0; gap: 6px;
  flex-wrap: wrap; border: 0; overflow: visible; }
:where(.ssr, #main > article:not([class])) ul.chips li { background: var(--chip); border-radius: 999px;
  padding: 3px 10px; font-size: 13px; }
:where(.ssr, #main > article:not([class])) nav { display: block; margin: 0; overflow: visible; }
/* Link lists on server pages ("More in Anaheim", nearby cities): the header's `nav` rule (a
   scrolling flex row) made the heading and the pills share one row, squeezing pills into circles
   (#302). Real specificity here, since :where() above loses to that element rule. */
.hub nav, .ssr nav:not(.crumbs), #main > article:not([class]) nav { display: block; margin: 0; overflow: visible; }
:where(.ssr, #main > article:not([class])) nav ul { list-style: none; padding: 0; margin: 0; display: flex;
  flex-wrap: wrap; gap: 8px; }
:where(.ssr, #main > article:not([class])) nav li { display: flex; align-items: center; }
:where(.ssr, #main > article:not([class])) nav li a { display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 15px; }
:where(.ssr, #main > article:not([class])) nav li span { color: var(--muted); font-size: 13px; margin-left: 6px; }
:where(.ssr, #main > article:not([class])) section > ul:not(.chips) { padding-left: 20px; }
/* Quick filters (#265): the "What are you into?" chips (weekends/taste.py CHIPS) on every list
   page, sticky under the header so a filter is always in reach after the first screen. */
.quick { position: sticky; top: var(--hdr-h, 0px); z-index: 4; background: var(--bg); display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 8px 0; align-items: center;
  box-shadow: 0 8px 8px -8px rgba(0,0,0,.14); }  /* an edge: what scrolls under it reads as scrolled, not cut */
.quick::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .quick { flex-wrap: wrap; overflow: visible; } }
.quick .pill-f { flex: none; min-height: 36px; }
.quick .pill-f[hidden] { display: none; }
.quick .q-ic { margin-right: 5px; }
/* This weekend's photo cards at the top of the home page (weekends/this_weekend.py). */
.wkp { margin: 0 0 12px; }
.wkp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.wkp-h h2 { font-size: 18px; margin: 0; }
.wkp-h h2 .meta { font-size: 14px; font-weight: 500; margin-left: 4px; white-space: nowrap; }
.wkp-h h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wkp-all { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.wkp-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(64%, 240px); gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.wkp-row::-webkit-scrollbar { display: none; }
.wkp-c { display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start; color: var(--ink); text-decoration: none; min-width: 0; }
.wkp-im { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--chip); }
.wkp-im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wkp-im .wkp-ic { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.wkp-im .wkp-ic .ico { width: 30px; height: 30px; }
/* `/`'s one-line "what this is" (#597): SSR <h1> and the app's <p> look the same. */
.home-value { font-size: 17px; line-height: 1.35; font-weight: 400; letter-spacing: 0; margin: 2px 0 10px; }
.home-value b { font-weight: 700; } .home-value .meta { font-size: 15px; }
.wkp-k { font-size: 12px; font-weight: 700; color: var(--accent); }
/* New this week near you (#620, weekends/new_this_week.py) */
.nw-since { margin: -4px 0 8px; font-size: 14px; }
.wkp-k .nw { color: var(--ink); background: var(--chip); border-radius: 6px; padding: 0 5px; margin-right: 4px; }
.wkp-n { font-size: 12px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Seasonal banner + accent (this_weekend.py SEASONS; weekly page and app) */
[data-season="fall"]{--season:#9a3412}
[data-season="winter"]{--season:#166534}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) [data-season="fall"]{--season:#fb923c}
:root:not([data-theme="light"]) [data-season="winter"]{--season:#4ade80}}
:root[data-theme="dark"] [data-season="fall"]{--season:#fb923c}
:root[data-theme="dark"] [data-season="winter"]{--season:#4ade80}
.tw[data-season] .twc .k,[data-season] .wkp-k{color:var(--season)}
.tw-season{margin:10px 0 4px;padding:10px 12px;border-left:4px solid var(--season,var(--line));
 border-radius:10px;background:var(--surface)}
.tw-season b{display:block;color:var(--season,var(--ink));font-size:15px;margin-bottom:4px}
.tw-season ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 14px}
.tw-season a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-size:14px;
 font-weight:600;overflow-wrap:anywhere;text-underline-offset:2px}
.wkp-c b { font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wkp-c small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Next steps on place + event pages (#504, next_step.py): the same cards after the page's own content. */
.nx { margin: 26px 0 14px; }
.nx-go { margin: 22px 0; }
.nx-go a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
/* "Explore the Inland Empire" (weekends/explore.py): one inline row of photo/icon tiles that
   scrolls sideways on phones. Same markup from the SPA and the server pages (weekly page, IE hubs). */
.xp { margin: 22px 0 18px; min-width: 0; }
.grid > .xp { grid-column: 1 / -1; margin: 6px 0; }
.xp .xp-h { font-size: 18px; margin: 0 0 10px; }
.xp .xp-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(38%, 168px); gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 0 4px; margin: 0; list-style: none; }
.xp .xp-row::-webkit-scrollbar { display: none; }
.xp .xp-t { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 3px; aspect-ratio: 4 / 5; padding: 12px; border-radius: 16px; color: #fff; text-decoration: none; scroll-snap-align: start;
  box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: transform .15s ease; }
.xp .xp-t:hover { transform: translateY(-2px); }
.xp .xp-t:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.xp .xp-t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.xp .xp-t::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.38), rgba(0,0,0,0) 60%); }
.xp .xp-ph::after { background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.1) 70%); }
.xp .xp-ic { position: absolute; top: 10px; left: 11px; font-size: 30px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.xp .xp-ph .xp-ic { font-size: 22px; }
/* A Commons fallback photo's credit (explore.FALLBACK), on the photo like every Commons credit. */
.xp .xp-cr { position: absolute; top: 6px; right: 8px; left: 8px; text-align: right; font-size: 9px; line-height: 1.2;
  color: rgba(255,255,255,.88); text-shadow: 0 1px 2px rgba(0,0,0,.7); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xp .xp-t b { font-size: 15px; line-height: 1.2; color: #fff; }
.xp .xp-t small { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,.92); display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.xp-coral { background: linear-gradient(140deg, #ff8a5c, #e5466b); }
.xp-night { background: linear-gradient(140deg, #233067, #7b3fa0); }
.xp-teal { background: linear-gradient(140deg, #14a38b, #0d6e8c); }
.xp-gold { background: linear-gradient(140deg, #f2b33d, #d4672a); }
.xp-blue { background: linear-gradient(140deg, #3d8bfd, #3b4fd8); }
.xp-violet { background: linear-gradient(140deg, #a259ff, #6a3fd1); }
.xp-green { background: linear-gradient(140deg, #34b36b, #1f7a5a); }
@media (min-width: 900px) { .xp .xp-row { grid-auto-columns: 176px; } }
.acct-menu .xp-menu { display: grid; gap: 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.acct-menu .xp-menu[hidden] { display: none; }
.acct-menu .xp-menu .meta { padding: 4px 8px 0; font-size: 12px; }
.listhead:has(.ob-tune) { justify-content: space-between; gap: 8px; }
.ob-tune .pill-f { font-size: 13px; }
/* First visit: the "What are you into?" picker has the same chips; one set at a time (#285). */
#main:has(.ob) .quick { display: none; }
/* Desktop Discover (#285): quick chips and filter pills flow as one wrapping block instead of
   two rows (plus the category icons). Phones keep the sticky chip row + the scrolling pills. */
@media (min-width: 900px) {
  .disc-filters { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; margin: 0 0 14px;
    overflow-x: auto; scrollbar-width: none; }
  .disc-filters::-webkit-scrollbar { display: none; }
  .disc-filters > .quick, .disc-filters > .row-wrap, .disc-filters .pills { display: contents; }
  .disc-filters .pill-f { flex: none; }
  .disc-filters .row-arr { display: none !important; }  /* the inner row's ‹ ›; the block has its own */
  .disc-filters .pills::before { content: ""; width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
}

/* Icons + accents (#530). Line icons: one weight, currentColor. Flat surfaces, one accent. */
.ico { stroke-width: 1.75; }
nav .ic .ico { width: 22px; height: 22px; display: block; margin: 0 auto; }
.chip .ic { filter: none; font-size: 22px; }
.chip .ic .ico { width: 24px; height: 24px; }
.q-ic .ico, .ob-chip .ico { width: 16px; height: 16px; vertical-align: -3px; }
.pill-f > .ico, .addcal > .ico, .plan-adds .ico, .pd-details > .ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.q-ic { margin-right: 5px; }
.qp-ck .ico { width: 16px; height: 16px; }
/* Round icon buttons: the grid centers the icon exactly (the base button's padding pushed it off by 4 px). */
.star, .share-btn, .plan-btn { display: grid; place-items: center; padding: 0; line-height: 1; }
.star .ico, .share-btn .ico, .plan-btn .ico { width: 18px; height: 18px; display: block; }
/* Optical nudges: a star's and a share tray's visual weight sits below the middle of their box. */
.star .ico { transform: translateY(-.5px); }
.share-btn .ico { transform: translateY(-1px); }
/* The ‹ › glyphs sit low in their line: 3 px of bottom padding lifts them to the middle. */
.pager, .row-arr, .nav { display: grid; place-items: center; line-height: 1; padding: 0 0 3px; }
@media (hover: none) { .nav { display: none; } }
.star.on .ico { fill: currentColor; }
.near-btn::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
/* The accent follows the same date switch as the holiday art (data-holiday); after Jan 4: brand. */
html[data-holiday="thanks"] { --accent: #9a3412; --link: #9a3412; --primary: #9a3412; }
html[data-holiday="xmas"] { --accent: #166534; --link: #166534; --primary: #166534; }
@media (prefers-color-scheme: dark) {
  html[data-holiday="thanks"]:not([data-theme="light"]) { --accent: #fb923c; --link: #fdba74; --primary: #fb923c; }
  html[data-holiday="xmas"]:not([data-theme="light"]) { --accent: #4ade80; --link: #86efac; --primary: #4ade80; }
}
html[data-holiday="thanks"][data-theme="dark"] { --accent: #fb923c; --link: #fdba74; --primary: #fb923c; }
html[data-holiday="xmas"][data-theme="dark"] { --accent: #4ade80; --link: #86efac; --primary: #4ade80; }
/* Buttons: squarer, still 40 px tall to tap. Small status badges stay round. */
.pill-f, .near-btn, .moods button, .rv-tags button, .am-row button, .po-votes button, .install button, .nf-go a, .nx-go a,
.filterbar .chip-on, .tag { border-radius: 10px; }
.pill-f, .near-btn { min-height: 40px; }
/* Long city names wrap to two lines instead of being cut off, in the same 40 px (#544). */
@media (max-width: 640px) { .near-btn { display: inline-flex; align-items: center; white-space: normal; text-align: left; font-size: 12.5px; line-height: 1.1;
    padding: 4px 8px; max-width: none; height: 40px; overflow: hidden; text-overflow: clip; min-width: 0; flex: 0 1 auto; }
  .near-btn::before { flex: none; width: 13px; height: 13px; margin-right: 4px; } }
/* Small phones: drop the pin, then the wordmark, so the whole city name still fits. */
@media (max-width: 379px) { .near-btn::before { display: none; } }
@media (max-width: 349px) { .brand .wm { display: none; } }
.pill-f { display: inline-flex; align-items: center; }
/* Restaurant of the week: a flat card, no gradient, tilt or wiggle. */
.rotw { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.rotw:hover, .rotw:focus-visible { transform: none; box-shadow: none; border-color: var(--ink); }
.rotw .k { background: none; color: var(--accent); box-shadow: none; padding: 0; border-radius: 0; font-weight: 700; }
.rotw .k .trophy { animation: none; display: none; }
.rotw .oc-photo { border: 0; box-shadow: none; border-radius: 12px; }
.rotw .name { font-family: inherit; font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.rotw .meta { color: var(--muted); }
.rotw .why { color: var(--accent); font-weight: 600; }
.rotw .go { background: var(--ink); color: var(--bg); box-shadow: none; }
html[data-holiday] .tw-season { --season: var(--accent); }
.rotw .facts span { background: var(--chip); color: var(--ink); border-radius: 8px; }
/* Explore tiles: flat, photo tiles keep the scrim that makes their label readable. */
.xp .xp-t { background: var(--chip); color: var(--ink); box-shadow: none; }
.xp .xp-t:not(.xp-ph)::after { display: none; }
.xp .xp-t:not(.xp-ph) b, .xp .xp-t:not(.xp-ph) small, .xp .xp-t:not(.xp-ph) span { color: var(--ink); text-shadow: none; }
.xp .xp-ic { display: none; }
.xp .xp-t:hover { transform: none; }
.oc-photo { background: var(--chip); }
/* One sign-up per page: the footer box steps aside when the page has its own. */
body:has(#main form[data-nl]) .nl-foot{display:none}
