/* CrushEats community. Every colour, size and font comes from tokens.css (The Fig: Cormorant Garamond + Jost).
   Light and fresh, playful and grown-up: the photo is the star, mission is saved for the crush, italic Cormorant
   Garamond is the one wink on a screen. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.c {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: 400 var(--t-md)/var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; flex: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.015em; margin: 0; font-optical-sizing: auto; }
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
h1 em, h2 em, h3 em, .sidenav-tag em { font-style: italic; font-weight: 500; color: var(--c-rose); }
p { margin: 0 0 var(--s-3); }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--c-card); padding: var(--s-2) var(--s-3); z-index: 99; }
.skip:focus { left: var(--s-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--c-ink-3); }
.small { font-size: var(--t-sm); }
.strong { font-weight: 700; }
.center { text-align: center; }
.row.center { justify-content: center; }
.plain { text-decoration: none; }

/* ---------------------------------------------------------------- frame: phone first */
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.logo img { height: 27px; width: auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--h-topbar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0 16px;
  background: rgba(250, 247, 245, 0.92);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.topbar-actions { display: flex; align-items: center; gap: var(--s-1); }
.shell { display: block; overflow-x: clip; }  /* a card flying off the deck must never widen the page */
.column { padding: var(--s-4) 16px calc(var(--h-tabbar) + env(safe-area-inset-bottom) + var(--s-6)); max-width: var(--w-column); margin: 0 auto; }
.sidenav, .rail { display: none; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  height: calc(var(--h-tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--c-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.6875rem; font-weight: 600; color: var(--c-ink-3); text-decoration: none; padding: 6px 0; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--c-rose); }
.tabbar a[aria-current="page"] svg use { stroke-width: 2.2; }
.tabbar a[aria-current="page"] .avatar { box-shadow: 0 0 0 2px var(--c-paper), 0 0 0 3.5px var(--c-rose); }
.tabbar .tab-post { justify-self: center; width: 52px; height: 40px; border-radius: 16px; background: var(--c-rose); color: #fff; justify-content: center; padding: 0; box-shadow: 0 6px 16px rgba(91, 43, 59, 0.28); }
.tabbar .tab-post[aria-current="page"] { color: #fff; background: var(--c-rose-deep); }
/* WCAG 2.4.11: keyboard focus is scrolled clear of the fixed tab bar, never under it (compose has its own, taller) */
@media (max-width: 999px) { html { scroll-padding-bottom: calc(var(--h-tabbar) + env(safe-area-inset-bottom) + 12px); } }

@media (min-width: 1000px) {
  .topbar, .tabbar { display: none; }
  .shell {
    display: grid;
    grid-template-columns: var(--w-nav) minmax(0, var(--w-column)) var(--w-rail);
    gap: 48px;
    justify-content: center;
    padding: 0 32px;
  }
  .column { padding: var(--s-6) 0 var(--s-8); margin: 0; width: 100%; }
  .sidenav, .rail { display: block; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow: auto; padding: var(--s-6) 0; }
  .sidenav .logo img { height: 36px; }
  .sidenav-tag { font-family: var(--f-display); color: var(--c-ink-2); font-size: 1.05rem; margin: 10px 0 var(--s-5); }
  .sidenav ul { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
  .sidenav li a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; margin: 0 -12px; border-radius: var(--r-md); text-decoration: none; font-weight: 600; color: var(--c-ink-2); font-size: 1.0625rem; }
  .sidenav li a:hover { background: var(--c-card); color: var(--c-ink); }
  .sidenav li a[aria-current="page"] { color: var(--c-rose-ink); background: var(--c-blush-wash); }
}
.pledge { font-size: var(--t-xs); color: var(--c-ink-3); margin-top: var(--s-5); line-height: 1.5; }
.rail .pledge { border-top: 1px solid var(--c-line); padding-top: var(--s-4); }
.side-door { font-size: var(--t-xs); color: var(--c-ink-3); }
/* M29: the trust line used to live only in the rail/sidenav, both display:none below 1000px - a phone never saw
   it. .trust-mobile repeats it where the rail can't reach (the guest feed intro, Discover). */
.trust-line { font-size: var(--t-xs); color: var(--c-ink-3); line-height: 1.5; background: var(--c-card); border-radius: var(--r-md); padding: 10px 14px; margin: 0 0 var(--s-4); }
.trust-line strong { color: var(--c-ink-2); font-family: var(--f-display); font-size: var(--t-sm); display: block; margin-bottom: 2px; }
@media (min-width: 1000px) { .trust-mobile { display: none; } }
.side-door a { color: var(--c-basil-ink); font-weight: 700; }

/* ---------------------------------------------------------------- buttons and controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid var(--c-line-2);
  background: var(--c-card); color: var(--c-ink);
  font-weight: 700; font-size: 0.9375rem; text-decoration: none; cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.btn:hover { border-color: var(--c-ink-3); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--c-rose); border-color: var(--c-rose); color: #fff; }
.btn-primary:hover { background: var(--c-rose-deep); border-color: var(--c-rose-deep); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--c-ink-2); }
.btn-quiet:hover { border-color: transparent; color: var(--c-ink); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: var(--t-sm); }
.btn-block { width: 100%; margin-bottom: var(--s-2); }
.btn-on { background: var(--c-pistachio-wash); border-color: var(--c-basil); color: var(--c-basil-ink); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--c-ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: rgba(52, 32, 42, 0.05); }
.inline { display: inline; margin: 0; }
.row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.spacer { flex: 1; }
.grow { flex: 1; }

.crush {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px 0 10px;
  border-radius: var(--r-pill); border: 1px solid var(--c-line-2);
  background: var(--c-card); color: var(--c-ink); font-weight: 700; font-size: var(--t-sm); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.crush svg { width: 22px; height: 22px; }
.crush .ico-on { display: none; }
.crush[aria-pressed="true"] { background: var(--c-rose); border-color: var(--c-rose); color: #fff; }
.crush[aria-pressed="true"] .ico-on { display: block; }
.crush[aria-pressed="true"] .ico-off { display: none; }
.crush .range { font-weight: 600; opacity: 0.85; }
/* 2026-10-15: the pill never wraps to two lines. A post's action row (feed, post page) is the pill plus three
   44 px icon buttons; on a phone (<= 420 px) "I'm crushing on this" plus a count chip doesn't fit beside them, so the
   pill shows the short word ("Crush" / "Crushed") there. Its accessible name is its aria-label either way. */
.crush { white-space: nowrap; flex: none; }
.crush .crush-short { display: none; }
.post-actions > form, .post-actions > .icon-btn { flex: none; }
@media (max-width: 420px) {
  .post-actions .crush .crush-label { display: none; }
  .post-actions .crush .crush-short { display: inline; }
}
.crush.pop { animation: pop .42s var(--spring); }
@keyframes pop { 35% { transform: scale(1.16); } 70% { transform: scale(0.96); } }

.chips {
  display: flex; gap: var(--s-2); overflow-x: auto; padding: 2px 16px var(--s-2); scrollbar-width: none; margin: 0 -16px var(--s-2);
  /* A hint that the row scrolls sideways: the edge chips fade instead of just stopping dead (M29 - Discover's
     neighborhood row had no affordance at all). Masks the row's own box, not the viewport, so it still respects
     the column's padding. */
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); background: var(--c-card); text-decoration: none; font-size: var(--t-sm); font-weight: 600; color: var(--c-ink-2); white-space: nowrap; }
.chip[aria-current="true"], .chip.on { background: var(--c-blush); border-color: var(--c-blush); color: var(--c-rose-ink); }
@media (min-width: 1000px) {
  .chips { margin: 0 0 var(--s-2); padding-left: 0; padding-right: 0; flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
}

.seg { display: inline-grid; grid-auto-flow: column; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 3px; }
.seg a { min-height: 34px; display: grid; place-items: center; padding: 0 16px; border-radius: var(--r-pill); text-decoration: none; font-weight: 700; font-size: var(--t-sm); color: var(--c-ink-3); }
.seg a[aria-current="page"] { background: var(--c-blush); color: var(--c-rose-ink); }

.tabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s-5); }
.tabs a { padding: 10px 0; text-decoration: none; color: var(--c-ink-3); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--c-ink); border-color: var(--c-rose); }

/* ---------------------------------------------------------------- home: the head above the deck or feed */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 6px var(--s-3); flex-wrap: wrap; margin: 0 0 var(--s-3); }
.home-title { font-size: 1.5rem; }
.home-sub { flex-basis: 100%; order: 3; margin: -4px 0 0; color: var(--c-ink-2); font-size: var(--t-sm); }
.home-sub em { font-family: var(--f-display); color: var(--c-rose); }
@media (min-width: 1000px) { .front-foot { display: none; } }
.front-foot { text-align: center; font-size: var(--t-xs); color: var(--c-ink-3); margin: var(--s-4) 0 0; }
.front-foot a { color: var(--c-basil-ink); font-weight: 700; }
@media (min-width: 1000px) { .home-title { font-size: 2.25rem; } }

/* ---------------------------------------------------------------- the deck: one find at a time, TikTok-feel */
.deck { position: relative; }
.deck-stack {
  position: relative;
  height: clamp(360px, calc(100svh - var(--h-topbar) - var(--h-tabbar) - 222px), 660px);
  margin: 0 -6px;
}
body.home.is-deck .column { padding-top: var(--s-3); }
.deck-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--c-blush-wash);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden; isolation: isolate;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform .34s var(--ease), opacity .34s var(--ease);
  transform-origin: 50% 90%;
}
.deck-card:not(.is-top) { transform: scale(0.965) translateY(10px); }
.deck-card.is-top { transform: none; }
.deck-card.gone-left { transform: translateX(-135%) rotate(-14deg) !important; opacity: 0; }
.deck-card.gone-right { transform: translateX(135%) rotate(14deg) !important; opacity: 0; }
.deck-media { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.deck-fill { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) saturate(1.15) brightness(1.06); opacity: 0.9; z-index: -1; }
.deck-photo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;             /* full-bleed: the demo's HD sources (>= 2000 px) fill the card without enlarging */
  pointer-events: none;
}
.deck-card .tag-badge { top: 14px; left: 14px; z-index: 2; }
.deck-card .count-badge { top: 14px; right: 14px; z-index: 2; }
.deck-card .placeholder-note { z-index: 2; }
.deck-placard {
  position: relative; z-index: 2;
  margin: 0 10px 10px; padding: 14px 16px 12px;
  background: rgba(250, 247, 245, 0.93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 10px rgba(52, 32, 42, 0.06);
}
.deck-title { font-size: 1.625rem; margin: 0 0 2px; }
.deck-title a { text-decoration: none; }
.deck-placard .credit { margin: 0 0 6px; }
.deck-by { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--t-xs); color: var(--c-ink-3); }
.deck-by a { color: var(--c-ink-2); font-weight: 700; text-decoration: none; }
.dot-sep { opacity: .6; }
.stamp {
  position: absolute; top: 56px; z-index: 3;
  font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.75rem;
  padding: 2px 16px; border-radius: 14px; border: 3px solid; opacity: 0;
  background: rgba(250, 247, 245, 0.92); pointer-events: none;
}
.stamp.yes { left: 22px; color: var(--c-rose); transform: rotate(-12deg); }
.stamp.no { right: 22px; color: var(--c-ink-3); transform: rotate(10deg); }
.deck-controls { display: flex; justify-content: center; align-items: center; gap: var(--s-6); margin-top: var(--s-3); }
.deck-controls button { display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 50%; cursor: pointer; transition: transform .12s var(--ease), box-shadow .15s var(--ease); }
.deck-controls button:active { transform: scale(0.92); }
.deck-no { width: 64px; height: 64px; border: 1px solid var(--c-line-2); background: var(--c-card); color: var(--c-ink-3); box-shadow: var(--shadow-1); }
.deck-no svg { width: 22px; height: 22px; }
.deck-controls button span { font-size: 0.625rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.deck-yes { width: 76px; height: 76px; border: 0; background: var(--c-rose); color: #fff; box-shadow: 0 10px 24px rgba(91, 43, 59, 0.32); }
.deck-yes svg { width: 30px; height: 30px; }
.deck-help { display: none; text-align: center; font-size: var(--t-xs); color: var(--c-ink-3); margin: var(--s-2) 0 0; }
@media (min-width: 1000px) { .deck-help { display: block; } }
.deck-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--s-6); background: var(--c-card); border-radius: var(--r-xl); border: 1px dashed var(--c-line-2); }
.deck-empty[hidden] { display: none; }
.deck-empty-mark { width: auto; height: 64px; margin-bottom: var(--s-3); }
.deck-empty h2 { margin-bottom: var(--s-2); }
.deck-empty p { color: var(--c-ink-2); max-width: 26em; }
@media (min-width: 1000px) {
  .deck-stack { height: min(70vh, 660px); margin: 0; }
  .deck-card { max-width: 560px; margin: 0 auto; }
}

/* the crush burst: little hearts fly out of the photo */
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.burst i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; color: var(--c-rose); opacity: 0; animation: fly .9s var(--ease) forwards; }
.burst i:nth-child(2n) { color: var(--c-blush); }
.burst i:nth-child(3n) { color: var(--c-butter); }
.burst i svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(52, 32, 42, 0.18)); }
.burst b { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; color: #fff; animation: big .8s var(--spring) forwards; }
.burst b svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 18px rgba(91, 43, 59, 0.45)); }
@keyframes fly { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); } }
@keyframes big { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; transform: scale(1.1); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }

/* the match moment */
.match, .nudge {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 24px;
  background: rgba(250, 247, 245, 0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.match[hidden], .nudge[hidden] { display: none; }
.match-card, .nudge-card {
  position: relative; width: min(360px, 100%);
  background: var(--c-card); border-radius: var(--r-xl); box-shadow: var(--shadow-3);
  padding: 32px 24px 22px; text-align: center; overflow: hidden;
}
.match.on .match-card, .nudge.on .nudge-card { animation: rise .5s var(--spring); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.match-photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; box-shadow: 0 0 0 5px var(--c-blush), var(--shadow-2); }
.match-title { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 2.5rem; line-height: 1; color: var(--c-rose); margin: 0 0 8px; }
.match-dish { font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; margin: 0 0 4px; }
.match-faces { display: flex; justify-content: center; margin: 4px 0 6px; }
.match-faces:empty { display: none; }
.match-faces .avatar { width: 30px; height: 30px; font-size: 0.8rem; margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.match-faces .avatar:first-child { margin-left: 0; }
.match-line { font-size: 1.0625rem; color: var(--c-ink-2); margin: 0 0 18px; }
.match-hearts { position: absolute; inset: 0; pointer-events: none; }
.match-hearts i { position: absolute; bottom: -20px; width: 14px; height: 14px; background: var(--c-blush); clip-path: path("M7 13C3 10 0 7.6 0 4.6 0 2 2 0 4.3 0 5.5 0 6.4.6 7 1.6 7.6.6 8.5 0 9.7 0 12 0 14 2 14 4.6 14 7.6 11 10 7 13Z"); opacity: 0; }
.match.on .match-hearts i { animation: float 2.2s var(--ease) infinite; }
.match-hearts i:nth-child(1) { left: 8%; animation-delay: 0s; }
.match-hearts i:nth-child(2) { left: 22%; animation-delay: .5s; background: var(--c-rose); }
.match-hearts i:nth-child(3) { left: 36%; animation-delay: 1.1s; }
.match-hearts i:nth-child(4) { left: 50%; animation-delay: .2s; background: var(--c-butter); }
.match-hearts i:nth-child(5) { left: 64%; animation-delay: .8s; }
.match-hearts i:nth-child(6) { left: 78%; animation-delay: 1.4s; background: var(--c-rose); }
.match-hearts i:nth-child(7) { left: 88%; animation-delay: .35s; }
.match-hearts i:nth-child(8) { left: 14%; animation-delay: 1.7s; background: var(--c-pistachio); }
@keyframes float { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-340px) scale(1.2) rotate(18deg); } }
.nudge-mark { width: 48px; height: 48px; color: var(--c-rose); margin: 0 auto 10px; }
.nudge-card h2 { font-size: 1.625rem; margin-bottom: 8px; }
.nudge-card p { color: var(--c-ink-2); }

/* ---------------------------------------------------------------- a post, Instagram-quality */
.post { background: var(--c-card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); margin: 0 -6px var(--s-5); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-who { flex: none; text-decoration: none; }
.post-meta { flex: 1; min-width: 0; line-height: 1.25; }
.post-handle { font-weight: 800; text-decoration: none; font-size: var(--t-sm); }
.post-place { display: flex; align-items: center; gap: 3px; font-size: var(--t-xs); color: var(--c-ink-3); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-place svg { width: 13px; height: 13px; }
.post-place span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.role-chip { white-space: nowrap; font-size: 0.6875rem; font-weight: 700; color: var(--c-basil-ink); background: var(--c-pistachio-wash); padding: 1px 7px; border-radius: var(--r-pill); margin-left: 4px; }
.follow-chip { min-height: 32px; padding: 0 14px; border-radius: var(--r-pill); border: 0; background: var(--c-blush); color: var(--c-rose-ink); font-weight: 800; font-size: var(--t-sm); cursor: pointer; }
.follow-chip[aria-pressed="true"] { background: var(--c-pistachio-wash); color: var(--c-basil-ink); }
.post-media { position: relative; }
.frame { position: relative; overflow: hidden; background: var(--c-blush-wash); aspect-ratio: 4 / 5; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.slide-fill { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(24px) saturate(1.1) brightness(1.05); z-index: -1; }
.slide-photo, .slide video { width: 100%; height: 100%; object-fit: contain; }
.slide .processing { color: var(--c-ink-3); font-size: var(--t-sm); }
.dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-line-2); }
.dots i.on { background: var(--c-rose); }
.count-badge { position: absolute; top: 12px; right: 12px; background: rgba(250, 247, 245, 0.94); color: var(--c-ink); font-size: var(--t-xs); font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }
.tag-badge { position: absolute; top: 12px; left: 12px; background: rgba(250, 247, 245, 0.95); color: var(--c-ink); font-size: 0.75rem; font-weight: 800; padding: 5px 11px; border-radius: var(--r-pill); box-shadow: 0 2px 8px rgba(52, 32, 42, 0.08); }
.tag-badge.gem { background: var(--c-butter); }
.placeholder-note { position: absolute; left: 10px; bottom: 10px; background: rgba(250, 247, 245, 0.9); color: var(--c-ink-3); font-size: 0.625rem; padding: 2px 6px; border-radius: 4px; }
.deck-card .placeholder-note { left: auto; right: 12px; bottom: 8px; z-index: 2; }
.post-actions { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0 10px; }
.post-body { padding: 4px 16px 14px; }
.kicker { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; color: var(--c-basil-ink); margin: 0 0 4px; }
.kicker svg { width: 15px; height: 15px; }
.piece-title { font-size: 1.5rem; margin: 0 0 4px; }
.piece-title a { text-decoration: none; }
.piece-title a:hover { text-decoration: underline; }
.credit { font-size: var(--t-sm); color: var(--c-ink-2); margin: 0 0 var(--s-2); }
.credit .maker { font-family: var(--f-display); font-style: italic; font-size: 1.05em; color: var(--c-ink); }
.credit a { font-weight: 700; color: var(--c-ink); text-decoration: none; }
.credit a:hover { text-decoration: underline; }
.crush-here { display: block; margin: 0 0 var(--s-2); padding: var(--s-2); border: 1px solid var(--c-line); border-radius: var(--r-sm); text-decoration: none; color: inherit; }
.crush-here:hover, .crush-here:focus-visible { border-color: var(--c-ink-3); }
.crush-here-label { margin: 0 0 2px; font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-ink-2); }
.crush-here-label::after { content: "›"; float: right; font-weight: 700; color: var(--c-ink-3); }
.crush-here-dish { margin: 0; font-weight: 700; }
.crush-here-how { margin: 2px 0 0; color: var(--c-ink-2); }
.caption { margin: 0 0 var(--s-2); }
.caption .by { font-weight: 800; text-decoration: none; margin-right: 6px; }
.post-foot { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.when { font-size: var(--t-xs); color: var(--c-ink-3); }
.report-link { color: var(--c-ink-3); display: inline-flex; padding: 6px; }
.report-link svg { width: 16px; height: 16px; }
.held-note { font-size: var(--t-sm); background: var(--c-butter); color: var(--c-ink); padding: 8px 12px; border-radius: var(--r-md); margin: 0 0 var(--s-3); }
.save-btn[aria-pressed="true"] { color: var(--c-basil); }
.save-btn .ico-on { display: none; }
.save-btn[aria-pressed="true"] .ico-on { display: block; }
.save-btn[aria-pressed="true"] .ico-off { display: none; }
.group-line { font-size: var(--t-xs); color: var(--c-ink-3); margin: 0 0 4px; }
.group-line a { color: var(--c-basil-ink); font-weight: 700; text-decoration: none; }
@media (min-width: 1000px) { .post { margin: 0 0 var(--s-6); } }

/* ---------------------------------------------------------------- page heads, sections, cards */
.page-head { margin: var(--s-2) 0 var(--s-4); }
.page-head h1 { font-size: 2.125rem; }
.page-head p { color: var(--c-ink-2); margin-top: var(--s-2); }
.eyebrow { font-size: var(--t-sm); font-weight: 700; color: var(--c-basil-ink); margin: 0 0 var(--s-1); }
.eyebrow a { text-decoration: none; }
.section { margin: var(--s-6) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.section-head a { font-size: var(--t-sm); font-weight: 700; color: var(--c-basil-ink); text-decoration: none; }
.card { background: var(--c-card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--s-5); margin-bottom: var(--s-4); }
.card h2, .card h3 { margin-bottom: var(--s-2); }
.card.flush { padding: 0 20px; }
.notice { background: var(--c-pistachio-wash); color: var(--c-basil-ink); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: var(--s-4); font-size: var(--t-sm); font-weight: 600; }
.notice.warn { background: var(--c-butter); color: var(--c-ink); font-weight: 500; }
.error { color: var(--c-rose-ink); font-size: var(--t-sm); font-weight: 600; margin: 6px 0 0; }
.empty { text-align: center; padding: var(--s-7) var(--s-4); color: var(--c-ink-2); }
.empty h2 { margin-bottom: var(--s-2); }
.promise-card h3 { font-size: 1.375rem; }
.door-card { display: flex; gap: 12px; align-items: flex-start; }
.door-card img { flex: none; }
.door-card h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.door-card p { margin-bottom: 4px; color: var(--c-ink-2); }
.door-card a { color: var(--c-basil-ink); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.list li:last-child { border-bottom: 0; }
.list .rank { font-family: var(--f-display); font-style: italic; font-size: var(--t-xl); font-weight: 500; width: 28px; color: var(--c-rose); text-align: center; }
.list .name { font-weight: 700; text-decoration: none; display: block; }
.list .meta { font-size: var(--t-sm); color: var(--c-ink-3); }
.list .aside { margin-left: auto; font-size: var(--t-sm); font-weight: 700; color: var(--c-ink-2); white-space: nowrap; }
.thumb { width: 56px; height: 56px; border-radius: var(--r-md); object-fit: cover; background: var(--c-blush-wash); flex: none; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery > p { grid-column: 1 / -1; }
.tile { display: block; text-decoration: none; background: var(--c-card); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--c-blush-wash); }
/* A deliberate placeholder for a photo that can't be shown yet (still processing, or held by the safety check):
   a quiet filled block instead of a request that 404s and a broken-image icon over the alt text. */
.img-ph { display: block; background: var(--c-blush-wash); }
.tile .img-ph { width: 100%; aspect-ratio: 1 / 1; }
.live-item .img-ph { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.tile .t { display: block; padding: 8px 10px 10px; }
.tile .t strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.tile .t span { font-size: var(--t-xs); color: var(--c-ink-3); }
.gallery.three { gap: 4px; }
.gallery.three .tile { border-radius: 4px; box-shadow: none; }
@media (min-width: 700px) { .gallery.three { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- search and the Discover map */
.search { position: relative; margin: 0 0 var(--s-3); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-ink-3); width: 20px; height: 20px; }
.search input[type="search"] { padding-left: 44px; border-radius: var(--r-pill); }
.crushmap { margin: var(--s-2) 0 var(--s-4); }
.crushmap-box {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background:
    linear-gradient(28deg, transparent 48.6%, rgba(255, 255, 255, 0.95) 48.6%, rgba(255, 255, 255, 0.95) 51.4%, transparent 51.4%),
    linear-gradient(-62deg, transparent 58%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.9) 60%, transparent 60%),
    linear-gradient(90deg, transparent 31%, rgba(255, 255, 255, 0.85) 31%, rgba(255, 255, 255, 0.85) 32.4%, transparent 32.4%),
    linear-gradient(0deg, transparent 64%, rgba(255, 255, 255, 0.85) 64%, rgba(255, 255, 255, 0.85) 65.6%, transparent 65.6%),
    radial-gradient(circle at 78% 22%, rgba(207, 227, 193, 0.9) 0 12%, transparent 12.5%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(79, 122, 94, 0.07) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(79, 122, 94, 0.07) 38px 39px),
    var(--c-pistachio-wash);
  border: 1px solid var(--c-line);
}
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; text-decoration: none; z-index: 1; }
.pin svg { width: 30px; height: 30px; color: var(--c-rose); filter: drop-shadow(0 3px 5px rgba(52, 32, 42, 0.25)); transition: transform .15s var(--spring); }
.pin.gem svg { color: var(--c-basil); }
.pin.hot svg { width: 38px; height: 38px; color: var(--c-rose); }
.pin-label { margin-top: 2px; background: rgba(255, 255, 255, 0.95); color: var(--c-ink); font-size: 0.6875rem; font-weight: 800; padding: 2px 7px; border-radius: var(--r-pill); white-space: nowrap; box-shadow: 0 1px 4px rgba(52, 32, 42, 0.12); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.pin:hover, .pin:focus-visible { z-index: 3; }
.pin:hover svg, .pin:focus-visible svg { transform: scale(1.18); }
.crushmap-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--c-ink-2); margin: 0; }
.crushmap-key { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--t-xs); color: var(--c-ink-2); margin: 8px 2px 0; }
.crushmap-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.k-hot { background: var(--c-rose); }
.k-gem { background: var(--c-basil); }
@media (max-width: 420px) { .pin-label { font-size: 0.625rem; max-width: 120px; } .crushmap-box { aspect-ratio: 1 / 1; } }

/* the real Leaflet map (a zoomable OpenStreetMap, Discover only) */
.discover-map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-pistachio-wash); }
.discover-map .leaflet-popup-content-wrapper { border-radius: var(--r-md); }
.discover-map .leaflet-popup-content { font: 400 var(--t-sm)/1.4 var(--f-body); margin: 10px 12px; }
.discover-map-pop strong { display: block; font-family: var(--f-display); font-size: var(--t-md); margin-bottom: 2px; }
.discover-map-pop .meta { color: var(--c-ink-3); font-size: var(--t-xs); margin-bottom: 6px; }
.discover-map-pop a { font-weight: 700; color: var(--c-rose-ink); }
@media (max-width: 420px) { .discover-map { aspect-ratio: 1 / 1; } }

/* live search suggestions (debounced fetch to discover_search; the plain form still works with no JS) */
.search { position: relative; }
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--c-card); border: 1px solid var(--c-line-2); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(52, 32, 42, 0.14); max-height: 60vh; overflow: auto; padding: 6px; }
.search-suggest h6 { margin: 8px 8px 2px; font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-3); }
.search-suggest a { display: block; padding: 8px; border-radius: var(--r-sm, 8px); text-decoration: none; }
.search-suggest a:hover, .search-suggest a:focus-visible { background: var(--c-blush-wash); }
.search-suggest a strong { display: block; font-weight: 700; }
.search-suggest a span { display: block; font-size: var(--t-xs); color: var(--c-ink-3); }
.search-suggest .empty { padding: 8px; color: var(--c-ink-3); font-size: var(--t-sm); }

/* filters (kind/cuisine today; price, dietary and open-now noted, not faked - see the note in the form) */
.filters { margin: 0 0 var(--s-3); }
.filters .chips-field { margin-top: 0; }
.filters-note { margin: 6px 0 0; }
.clear-filters { display: inline-block; margin-top: 6px; font-size: var(--t-sm); font-weight: 700; }

/* ---------------------------------------------------------------- place (a Page) */
.place-cover { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: var(--s-4); background: var(--c-blush-wash); }
.place-cover img, .place-cover .img-ph { width: 100%; height: 100%; object-fit: cover; }
.place-cover img:first-child, .place-cover .img-ph:first-child { grid-row: span 2; }
.place-cover.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.place-name { font-size: 2.25rem; margin: 0 0 6px; }
.place-meta { color: var(--c-ink-2); margin: 0 0 var(--s-3); }
.stats { display: flex; gap: var(--s-5); margin: var(--s-3) 0 var(--s-4); flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--f-display); font-size: var(--t-xl); font-weight: 600; line-height: 1.1; }
.stat span { font-size: var(--t-xs); color: var(--c-ink-3); }
.address { display: flex; gap: var(--s-3); align-items: flex-start; }
/* M29: "Claim this Page" lives in the rail, which is display:none below 1000px - a phone never saw it (fix:
   A_claim_cta_phone). .claim-cta-mobile repeats the same include in the main column; above 1000px the rail
   is visible again, so hide this copy there to avoid showing the card twice. */
.claim-cta-mobile { margin-bottom: var(--s-4); }
@media (min-width: 1000px) { .claim-cta-mobile { display: none; } }
.pin-map {
  flex: none; width: 88px; height: 88px; border-radius: var(--r-md); position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(0deg, transparent 30%, #fff 30%, #fff 36%, transparent 36%),
    linear-gradient(35deg, transparent 62%, #fff 62%, #fff 66%, transparent 66%),
    var(--c-pistachio-wash);
  border: 1px solid var(--c-line);
}
.pin-map svg { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 30px; height: 30px; color: var(--c-rose); fill: #fff; }
.website-link { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 14px 18px; border: 1px solid var(--c-line-2); border-radius: var(--r-md); background: var(--c-card); text-decoration: none; font-weight: 700; margin: var(--s-3) 0; }
.website-link small { display: block; font-weight: 400; color: var(--c-ink-3); }
.dish-row .crush { min-height: 34px; }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-3); }
.page-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); background: var(--c-card); font-weight: 700; font-size: var(--t-sm); text-decoration: none; }
.page-link svg { width: 14px; height: 14px; color: var(--c-ink-3); }
.page-link-order_url, .page-link-reserve_url { background: var(--c-blush); border-color: var(--c-blush); color: var(--c-rose-ink); }

/* ---------------------------------------------------------------- people */
.person-head { display: flex; gap: var(--s-4); align-items: center; margin: var(--s-2) 0 var(--s-3); }
.person-id h1 { font-size: 1.875rem; }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--c-blush); display: grid; place-items: center; font-family: var(--f-display); font-size: 2rem; font-weight: 600; color: var(--c-rose-ink); flex: none; }
.avatar.xl { width: 96px; height: 96px; font-size: 2.4rem; box-shadow: 0 0 0 3px var(--c-paper), 0 0 0 5px var(--c-blush); }
.avatar.md { width: 38px; height: 38px; font-size: 1rem; }
.avatar.sm { width: 32px; height: 32px; font-size: 0.9rem; }
.avatar.xs { width: 20px; height: 20px; font-size: 0.625rem; }
.avatar.tab { width: 26px; height: 26px; font-size: 0.75rem; }
.role-badge { display: inline-block; font-size: 0.75rem; font-weight: 800; background: var(--c-pistachio-wash); color: var(--c-basil-ink); padding: 3px 10px; border-radius: var(--r-pill); margin-top: 6px; }
.handle { color: var(--c-ink-3); font-size: var(--t-sm); margin: 2px 0 0; }
.bio { margin: 0 0 var(--s-2); }
.person-actions { margin: var(--s-3) 0 var(--s-5); }
.person-actions .btn { min-width: 132px; }
.links { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: var(--s-3) 0; }
.links a { font-size: var(--t-sm); font-weight: 600; text-decoration: none; border: 1px solid var(--c-line-2); border-radius: var(--r-pill); padding: 6px 12px; display: inline-flex; gap: 6px; align-items: center; background: var(--c-card); }
.links a svg { width: 14px; height: 14px; }
details.menu { position: relative; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu .menu-body { position: absolute; right: 0; top: 48px; z-index: 10; background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px; min-width: 210px; }
.menu-body button, .menu-body a { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font-size: var(--t-sm); text-decoration: none; cursor: pointer; }
.menu-body button:hover, .menu-body a:hover { background: var(--c-paper); }
.menu-body .danger { color: var(--c-rose-ink); }
.top5-list { list-style: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding-left: 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.top5-list::-webkit-scrollbar { display: none; }
.top5-list li { scroll-snap-align: start; }
.top5-list a { position: relative; display: block; text-decoration: none; background: var(--c-card); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
.top5-list img, .top5-list .img-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--c-blush-wash); }
.top5-list .n { position: absolute; top: 6px; left: 8px; font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 2.25rem; line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(52, 32, 42, 0.45); }
.top5-list .t { display: block; padding: 8px 10px 10px; }
.top5-list .t strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.top5-list .t span { font-size: var(--t-xs); color: var(--c-ink-3); }
@media (min-width: 700px) { .top5-list { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; margin: 0; padding: 0; overflow: visible; } }
.lists { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lists a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow-1); text-decoration: none; }
.lists svg { color: var(--c-basil); width: 20px; height: 20px; }
.lists .name { font-weight: 700; flex: 1; }
.lists .meta { font-size: var(--t-sm); color: var(--c-ink-3); }

/* ---------------------------------------------------------------- comments */
.comments { margin-top: var(--s-5); }
.comment { display: flex; gap: var(--s-3); padding: 12px 0; }
.comment .body { flex: 1; min-width: 0; }
.comment .who { font-weight: 800; font-size: var(--t-sm); text-decoration: none; }
.comment .text { margin: 2px 0 4px; overflow-wrap: anywhere; }
.comment .tools { display: flex; gap: var(--s-3); font-size: var(--t-xs); color: var(--c-ink-3); align-items: center; }
.comment .tools a, .comment .tools button { color: var(--c-ink-3); background: none; border: 0; padding: 0; cursor: pointer; font-size: var(--t-xs); font-weight: 700; text-decoration: none; }
.replies { margin-left: 44px; border-left: 2px solid var(--c-line); padding-left: var(--s-3); }
.comment-form { display: flex; gap: var(--s-2); align-items: flex-end; margin-top: var(--s-3); }
.comment-form textarea { flex: 1; min-height: 44px; }

/* ---------------------------------------------------------------- forms */
.form label, .form .label { display: block; font-weight: 700; font-size: var(--t-sm); margin: var(--s-4) 0 6px; }
.form .hint { font-size: var(--t-xs); color: var(--c-ink-3); margin: 4px 0 0; font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--c-line-2); border-radius: var(--r-md); background: var(--c-card); font-size: 1rem;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-rose); box-shadow: 0 0 0 3px rgba(91, 43, 59, 0.14); }
/* WK-1: Safari ignores padding, height and radius on a native <select> (it collapses to a ~24px system pill).
   One rule for every single-choice select: drop the native look, draw the chevron in the text colour. */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 40px; text-overflow: ellipsis; }
select:not([multiple]):not([size]):disabled { opacity: .55; cursor: not-allowed; }
/* M29: a plain <input type=file> (the profile photo picker, _profile_fields.html) was pure browser-default
   square UI - everything else in the form already looks like the design system. Not a full .dropzone (that
   needs the drag-and-drop JS the compose flow has), but the native control dressed to match it.
   :not(.visually-hidden) matters: the compose flow's own #photos input IS a type=file, kept screen-reader-only
   (.visually-hidden, so its own real UI is the dropzone label) - this selector is more specific than that single
   class, and had started overriding its width/height and pushing it into view, causing a 390px overflow. */
input[type="file"]:not(.visually-hidden) {
  width: 100%; padding: 10px 14px; border: 1.5px dashed var(--c-rose); border-radius: var(--r-md);
  background: var(--c-blush-wash); color: var(--c-ink-2); font-size: var(--t-sm);
}
input[type="file"]:not(.visually-hidden)::file-selector-button {
  margin-right: 10px; border: 0; border-radius: var(--r-pill); padding: 8px 14px; background: var(--c-rose);
  color: #fff; font-weight: 700; font-size: var(--t-sm); cursor: pointer;
}
input[type="file"]:not(.visually-hidden)::file-selector-button:hover { background: var(--c-rose-deep); }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.radio-cards label { margin: 0; display: flex; align-items: center; gap: 8px; border: 1px solid var(--c-line-2); border-radius: var(--r-md); padding: 12px; background: var(--c-card); font-weight: 600; cursor: pointer; }
.radio-cards input { accent-color: var(--c-rose); }
.radio-cards label:has(input:checked) { border-color: var(--c-rose); background: var(--c-blush-wash); box-shadow: inset 0 0 0 1px var(--c-rose); }
.dropzone { display: grid; place-items: center; text-align: center; gap: 6px; border: 1.5px dashed var(--c-rose); border-radius: var(--r-lg); padding: var(--s-6) var(--s-4); background: var(--c-blush-wash); cursor: pointer; color: var(--c-ink-2); }
.dropzone svg { width: 32px; height: 32px; color: var(--c-rose); }
.dropzone:has(+ input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }  /* a11y: its file input is visually hidden */
.previews { display: flex; gap: 8px; overflow-x: auto; margin-top: var(--s-3); }
.previews img, .previews .vid { width: 84px; height: 105px; object-fit: cover; border-radius: 8px; flex: none; background: var(--c-blush-wash); }
.form-actions { margin-top: var(--s-5); display: flex; gap: var(--s-2); }
.hp { position: absolute; left: -5000px; }

/* ---------------------------------------------------------------- magazine (behind RB_COMMUNITY_EXTRAS) */
.mag-mast { border-bottom: 1px solid var(--c-line-2); padding-bottom: var(--s-3); margin-bottom: var(--s-5); display: flex; align-items: baseline; justify-content: space-between; }
.mag-mast h1 { font-size: var(--t-3xl); font-style: italic; font-weight: 500; }
.mag-mast span { font-size: var(--t-xs); color: var(--c-ink-3); }
.lead { text-decoration: none; display: block; margin-bottom: var(--s-6); position: relative; }
.lead img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--s-4); background: var(--c-blush-wash); }
.lead h2 { font-size: 2.25rem; margin-bottom: var(--s-2); }
.dek { font-family: var(--f-display); font-style: italic; font-size: var(--t-lg); color: var(--c-ink-2); line-height: 1.35; }
.byline { font-size: var(--t-xs); color: var(--c-ink-3); margin-top: var(--s-2); }
.mag-row { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-4); text-decoration: none; padding: var(--s-4) 0; border-top: 1px solid var(--c-line); }
.mag-row img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--r-md); background: var(--c-blush-wash); }
.mag-row h3 { font-size: 1.25rem; margin: 4px 0; }
.article { font-size: 1.0625rem; line-height: 1.7; }
.article h1 { font-size: 2.5rem; margin-bottom: var(--s-3); }
.article figure { margin: var(--s-5) 0; }
.article figcaption { font-size: var(--t-xs); color: var(--c-ink-3); margin-top: 6px; }
.feature-card { display: block; text-decoration: none; background: var(--c-card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); margin-bottom: var(--s-5); }
.feature-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--c-blush-wash); }
.feature-card .t { padding: var(--s-4) 20px 20px; }
.feature-card h2 { font-size: 1.5rem; margin: 4px 0 6px; }

/* ---------------------------------------------------------------- events (behind RB_COMMUNITY_EXTRAS) */
.event-date { flex: none; width: 56px; text-align: center; border: 1px solid var(--c-line-2); border-radius: var(--r-md); background: var(--c-card); padding: 6px 0; }
.event-date b { display: block; font-family: var(--f-display); font-size: 1.375rem; line-height: 1; }
.event-date span { font-size: 0.625rem; text-transform: uppercase; color: var(--c-rose-ink); font-weight: 800; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; top: calc(var(--h-topbar) + env(safe-area-inset-top) + 12px); transform: translateX(-50%); background: var(--c-card); color: var(--c-ink); border: 1px solid var(--c-line); padding: 10px 18px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 700; z-index: 70; box-shadow: var(--shadow-2); white-space: nowrap; }
@media (min-width: 1000px) { .toast { top: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* never show a photo wider than its source looks sharp: the library tops out near 960-1400 px */
@media (min-width: 1000px) { .slide-photo { max-width: 480px; } }

/* ---------------------------------------------------------------- Founding Crushers, the live strip, love mechanics */
.founder-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: var(--r-pill); background: var(--c-butter); color: var(--c-ink); font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.founder-badge svg { width: 13px; height: 13px; color: var(--c-rose); }
.founder-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: var(--c-butter); vertical-align: -2px; }
.founder-dot svg { width: 10px; height: 10px; color: var(--c-rose); }
.founder-invite { background: var(--c-card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 16px 18px; margin-bottom: var(--s-4); border-left: 4px solid var(--c-butter); }
.founder-invite p { margin: 8px 0 0; }
.code-toggle { margin-top: var(--s-4); }
.code-toggle summary { cursor: pointer; font-weight: 700; font-size: var(--t-sm); color: var(--c-rose-ink); }
.code-toggle input { margin-top: 8px; }
.form input[name="code"] { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

.live { margin: 0 -16px var(--s-3); }
.live-head { display: flex; align-items: center; gap: 8px; padding: 0 16px 6px; font-size: var(--t-xs); font-weight: 800; color: var(--c-rose-ink); }
.live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c-rose); box-shadow: 0 0 0 0 rgba(91, 43, 59, 0.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(91, 43, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 43, 59, 0); } }
.live-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.live-row::-webkit-scrollbar { display: none; }
.live-item { flex: none; display: flex; align-items: center; gap: 8px; max-width: 250px; padding: 5px 12px 5px 5px; border-radius: var(--r-pill); background: var(--c-card); box-shadow: var(--shadow-1); text-decoration: none; scroll-snap-align: start; }
.live-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.live-item span { min-width: 0; font-size: 0.75rem; line-height: 1.25; }
.live-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.live-item i { display: block; font-style: normal; color: var(--c-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1000px) { .live { margin: 0 0 var(--s-3); } .live-head, .live-row { padding-left: 0; padding-right: 0; } }

.crushed-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--s-2); padding: 4px 12px 4px 8px; border-radius: var(--r-pill); background: var(--c-pistachio-wash); color: var(--c-basil-ink); font-size: var(--t-xs); font-weight: 800; }
.crushed-back svg { width: 14px; height: 14px; color: var(--c-rose); }
.crushback-btn { min-height: 34px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--c-basil); background: var(--c-card); color: var(--c-basil-ink); font-weight: 800; font-size: var(--t-xs); cursor: pointer; }
.crushback-btn[aria-pressed="true"] { background: var(--c-basil); color: #fff; }

.taste { display: flex; gap: 12px; align-items: center; background: var(--c-card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 14px 16px; margin: 0 0 var(--s-4); }
.taste-ring { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--c-rose) calc(var(--p) * 1%), var(--c-blush) 0); }
.taste-ring b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-card); font-family: var(--f-display); font-size: 0.95rem; }
.taste p { margin: 0; }
.taste .small { color: var(--c-ink-3); }

.top5-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.top5-edit li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow-1); touch-action: none; }
.top5-edit li.dragging { opacity: 0.6; box-shadow: var(--shadow-2); }
.top5-edit .n { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.5rem; color: var(--c-rose); width: 24px; text-align: center; }
.top5-edit img, .top5-edit .img-ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.top5-edit .t { flex: 1; min-width: 0; }
.top5-edit .t strong { display: block; font-family: var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top5-edit .t span { font-size: var(--t-xs); color: var(--c-ink-3); }
.grip { cursor: grab; color: var(--c-ink-3); padding: 6px; border: 0; background: none; }
.grip svg { width: 20px; height: 20px; }
.mini { min-height: 32px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); background: var(--c-card); font-weight: 700; font-size: var(--t-xs); cursor: pointer; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pick { position: relative; display: block; border: 0; padding: 0; background: none; cursor: pointer; border-radius: var(--r-md); overflow: hidden; text-align: left; }
.pick img, .pick .img-ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pick span { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(250, 247, 245, 0.92); border-radius: 8px; padding: 3px 6px; font-size: 0.6875rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--c-rose); }
.pick[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--c-rose); color: #fff; font-size: 0.75rem; font-weight: 800; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.notes li.unread { font-weight: 700; }
.notes .ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-pistachio-wash); color: var(--c-rose); }
.notes .ico svg { width: 20px; height: 20px; }
.notes p { margin: 0; }
.notes .when { display: block; font-weight: 400; }
.tab-dot { position: absolute; top: 4px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--c-rose); box-shadow: 0 0 0 2px #fff; }
.tabbar a { position: relative; }
.codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.codes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.codes code { font-weight: 800; letter-spacing: 0.06em; font-size: 1rem; }
.codes .used { color: var(--c-ink-3); text-decoration: line-through; }
.optins { border: 0; padding: 0; margin: var(--s-4) 0 0; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; margin: 10px 0 0; }
.form .check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--c-rose); flex: none; }
body.home.has-live .deck-stack { height: clamp(340px, calc(100svh - var(--h-topbar) - var(--h-tabbar) - 300px), 640px); }
@media (min-width: 1000px) { body.home.has-live .deck-stack { height: min(64vh, 620px); } }
.taste-mark { flex: none; display: grid; place-items: center; grid-template-columns: auto auto; width: 58px; height: 58px; border-radius: 50%; background: var(--c-blush-wash); }
.taste-mark svg { width: 20px; height: 20px; color: var(--c-rose); margin: 0 -3px; }
.taste-mark svg + svg { color: var(--c-basil); }
.taste-label { font-family: var(--f-display); font-style: italic; color: var(--c-rose); font-size: 1.125rem; }
.staff-chip { background: var(--c-butter); color: var(--c-ink); }
.manager-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin: 0 0 var(--s-3); border-radius: var(--r-md); background: var(--c-pistachio-wash); color: var(--c-basil-ink); font-weight: 700; font-size: var(--t-sm); }
.manager-bar svg { width: 18px; height: 18px; color: var(--c-rose); flex: none; }
.top5-edit li:first-child [data-move="-1"], .top5-edit li:last-child [data-move="1"] { visibility: hidden; }
.grip { cursor: grab; touch-action: none; }
.slide-fill { opacity: 0.35; }
.frame { background: var(--c-blush-wash); }
@media (min-width: 1000px) { .rail .pledge { display: none; } }
@media (max-width: 480px) { .top5-edit .grip { display: none; } .top5-edit li { gap: 8px; } .top5-edit .mini { padding: 0 8px; } }

/* rank labels explain themselves: tap for the plain rule */
.why { position: relative; }
.why > summary { list-style: none; cursor: pointer; }
.why > summary::-webkit-details-marker { display: none; }
.why-i { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: var(--c-blush); color: var(--c-rose-ink); font-style: normal; font-size: 0.6875rem; font-weight: 800; vertical-align: 1px; }
.why-pop { margin: 8px 0 0; padding: 10px 12px; max-width: 280px; border-radius: var(--r-md); background: var(--c-card); box-shadow: var(--shadow-2); font-size: var(--t-sm); color: var(--c-ink-2); font-weight: 500; line-height: 1.4; }
.stat.why .why-pop { position: absolute; z-index: 5; left: 0; top: 100%; width: 240px; }
.why-line { margin: -4px 0 8px; font-size: var(--t-sm); color: var(--c-ink-3); }
.why[open] .why-i { background: var(--c-rose); color: #fff; }
.clip-badge { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 7px; border-radius: var(--r-pill); background: rgba(250, 247, 245, 0.94); color: var(--c-ink); font-size: 0.75rem; font-weight: 800; }
.clip-badge svg { width: 13px; height: 13px; color: var(--c-rose); }

/* the crush share card sheet */
.share-sheet { position: fixed; inset: 0; z-index: 65; display: grid; place-items: end center; background: rgba(52, 32, 42, 0.28); padding: 16px; }
.share-sheet[hidden] { display: none; }
.share-card { width: min(380px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--c-card); border-radius: var(--r-xl); box-shadow: var(--shadow-3); padding: 16px; animation: rise .4s var(--spring); }
.share-card img { display: block; width: 58%; margin: 0 auto 14px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-2); background: var(--c-blush-wash); }
@media (min-width: 700px) { .share-sheet { place-items: center; } }

/* M29: save-to-a-list sheet (the save button used to save straight to one hidden default list with no choice) -
   shares the share-sheet's backdrop/positioning, with its own list of lists. */
.save-sheet-card h3 { margin: 0 0 10px; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; }
.save-sheet-lists { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; max-height: 40vh; overflow-y: auto; }
.save-sheet-lists button { width: 100%; text-align: left; min-height: 44px; padding: 0 14px; border: 1px solid var(--c-line-2); border-radius: var(--r-md); background: var(--c-card); font-weight: 600; font-size: 1rem; cursor: pointer; }
.save-sheet-lists button:hover, .save-sheet-lists button:focus-visible { border-color: var(--c-rose); background: var(--c-blush-wash); }
.save-sheet-new { display: flex; gap: 8px; margin-bottom: 10px; }
.save-sheet-new input { flex: 1; min-height: 44px; }

/* ---------------------------------------------------------------- Post a crush: tray, chips, type-ahead, crop */
.compose-head { margin-bottom: var(--s-3); }
.compose { padding-bottom: 12px; }
.compose .dropzone { padding: var(--s-7) var(--s-4); }
.tray { list-style: none; margin: 0; padding: 2px 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tray::-webkit-scrollbar { display: none; }
.tray-item { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--c-blush-wash); aspect-ratio: 4 / 5; box-shadow: var(--shadow-1); }
.tray-item img, .tray-clip { width: 100%; height: 100%; object-fit: cover; }
.tray-clip { display: grid; place-items: center; font-weight: 800; color: var(--c-rose-ink); }
.tray-item .cover { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(250, 247, 245, 0.95); font-size: 0.6875rem; font-weight: 800; }
.tray-tools { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; gap: 4px; justify-content: space-between; }
.tray-tools button { min-width: 28px; height: 28px; padding: 0 6px; border: 0; border-radius: var(--r-pill); background: rgba(250, 247, 245, 0.95); color: var(--c-ink); font-weight: 800; font-size: 0.75rem; cursor: pointer; }
.tray-tools button[disabled] { opacity: 0.35; }
.tray-add label { display: grid; place-items: center; height: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-md); border: 1.5px dashed var(--c-rose); color: var(--c-rose); font-size: 2rem; cursor: pointer; background: var(--c-card); }
.chips-field { border: 0; padding: 0; margin: var(--s-4) 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-field legend:not(.visually-hidden) { width: 100%; margin-bottom: 6px; }
.chip-radio { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); background: var(--c-card); font-weight: 700; font-size: var(--t-sm); cursor: pointer; margin: 0 !important; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio svg { width: 18px; height: 18px; }
.chip-radio:has(input:checked) { background: var(--c-blush); border-color: var(--c-blush); color: var(--c-rose-ink); }
.chip-radio:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.field-where { position: relative; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 24px); background: var(--c-card); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 4px; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.suggest button:hover, .suggest button:focus { background: var(--c-blush-wash); }
.suggest b { display: block; font-weight: 800; }
.suggest span { font-size: var(--t-xs); color: var(--c-ink-3); }
.more-details { margin-top: var(--s-4); }
.more-details summary { cursor: pointer; font-weight: 700; font-size: var(--t-sm); color: var(--c-rose-ink); }
.compose-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--h-tabbar) + env(safe-area-inset-bottom)); z-index: 25; padding: 10px 16px; background: rgba(250, 247, 245, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--c-line); }
.compose-bar .btn { margin: 0; min-height: 50px; }
@media (min-width: 1000px) { .compose-bar { position: sticky; bottom: 0; margin: var(--s-5) -16px 0; } }
.draft-note { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--c-rose-ink); text-decoration: underline; cursor: pointer; }
.crop-sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(250, 247, 245, 0.9); backdrop-filter: blur(6px); }
.crop-sheet[hidden] { display: none; }
.crop-card { width: min(380px, 100%); background: var(--c-card); border-radius: var(--r-xl); box-shadow: var(--shadow-3); padding: 16px; }
.crop-stage { position: relative; width: 100%; max-height: 60svh; border-radius: var(--r-md); overflow: hidden; background: var(--c-blush-wash); touch-action: none; cursor: grab; margin: 0 auto 8px; }
.crop-stage img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.crop-aspects { margin: 6px 0 12px; }
.crop-aspects .chip.on { background: var(--c-blush); border-color: var(--c-blush); color: var(--c-rose-ink); }
.compose .dropzone[hidden], .tray[hidden], .compose .hint[hidden] { display: none; }
.form .chip-radio { display: inline-flex; margin: 0; font-size: var(--t-sm); }
.chip-radio svg { margin: 0; }
.tray { grid-auto-columns: 148px; }
.tray-tools button { min-width: 30px; height: 30px; }
html:has(body.is-compose) { scroll-padding-bottom: 170px; }
body.is-compose .column { padding-bottom: calc(var(--h-tabbar) + 120px); }
.compose .dropzone strong { display: block; }
.draft-note[hidden] { display: none; }
/* posting: no second red button fighting the Post bar */
body.is-compose .tabbar { display: none; }
body.is-compose .compose-bar { bottom: env(safe-area-inset-bottom); }
body.is-compose .column { padding-bottom: 110px; }
/* tile tools only on the tile you tapped */
.tray-tools { opacity: 0; pointer-events: none; transition: opacity .15s; }
.tray-item.active .tray-tools, .tray-item:focus-within .tray-tools { opacity: 1; pointer-events: auto; }
.tray-item.active { box-shadow: 0 0 0 3px var(--c-rose); }
.tray-item::after { content: "Tap to edit"; position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: var(--r-pill); background: rgba(250, 247, 245, 0.9); font-size: 0.625rem; font-weight: 800; }
.tray-item.active::after { display: none; }
/* explanations open inline, pushing content down */
.stat.why .why-pop { position: static; width: auto; box-shadow: none; background: var(--c-blush-wash); }
.stats:has(.why[open]) { flex-wrap: wrap; }
.stat.why[open] { flex-basis: 100%; }
.deck-card:not(.is-top) { box-shadow: 0 4px 14px rgba(52, 32, 42, 0.06); }
.push-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.push-row p { flex-basis: 100%; margin: 0; }
.btn[hidden], .chip[hidden] { display: none; }

/* M33: the birthday sits inside the sign-up form (no separate first screen) */
fieldset.birth { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
fieldset.birth legend { padding: 0; }
fieldset.birth .hint { margin: 8px 0 0; }

/* M33: the restaurant's own suggestion on its Page, apart from eaters' crushes */
.owner-pick { border-left: 4px solid var(--c-ink); }
.owner-pick-label { margin: 0 0 2px; font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-ink-2); }
.owner-pick h2 { margin: 0 0 4px; }
.owner-pick-dish { margin: 0; font-weight: 700; font-size: var(--t-lg, 1.1rem); }
.owner-pick-how { margin: 4px 0 0; color: var(--c-ink-2); }
/* 2026-10-14: restaurants' own notes atop the home feed, in their own strip */
.feed-news { margin-bottom: 14px; }
.feed-news-item { padding: 8px 0; border-top: 1px solid var(--c-line, #E5DBD8); }
.feed-news-item:first-of-type { border-top: 0; padding-top: 4px; }
.feed-news-place { font-weight: 800; }
.feed-news .restaurant-post { margin: 2px 0; overflow-wrap: anywhere; }

/* M32: legal pages and the footer links under every page */
.legal-links { margin: 32px 0 8px; text-align: center; }
.legal-links a { color: inherit; text-decoration: underline; padding: 8px 4px; }
.legal-prose h2 { margin: 28px 0 8px; font-size: 1.15rem; }
.legal-prose p, .legal-prose li { color: var(--c-ink-2, inherit); line-height: 1.55; }
.legal-prose ul { padding-left: 1.2rem; }

/* ---------------------------------------------------------------- a11y: phone tap targets
   On a phone everything tapped is at least 44 x 44 px. Small links that sit in a line of text-like UI (the handle,
   the place, Directions) grow their tap area with padding pulled back by a negative margin, so nothing moves. */
@media (max-width: 999px) {
  .btn-small, .chip, .chip-radio, .crush, .tabbar .tab-post, .tabs a, .linkish, .clear-filters { min-height: 44px; }
  .linkish, .clear-filters { display: inline-flex; align-items: center; }
  .report-link { padding: 14px; margin: -8px; }
  .logo { min-height: 44px; }
  .seg a, .skip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .post-handle, .post-place, a.small, .list a.name, a.stat, .piece-title a, .section-head a, .eyebrow a {
    padding-block: 15px; margin-block: -15px; }
  .post-handle, a.small, .list a.name, .piece-title a, .section-head a, .eyebrow a { display: inline-block; }
  .section-head a, .eyebrow a { min-width: 44px; }
  a.stat { min-width: 44px; }
  summary:not([class]) { min-height: 44px; padding-block: 10px; }
  .leaflet-touch .leaflet-bar a.leaflet-control-zoom-in, .leaflet-touch .leaflet-bar a.leaflet-control-zoom-out {
    width: 44px; height: 44px; line-height: 44px; }
  /* QA sweep 2026-10-15: the last few under 44 px on a 390 px phone */
  .dish-row .crush, .follow-chip, .page-link { min-height: 44px; }
  .top5-edit { grid-template-columns: minmax(0, 1fr); } /* the row never overflows */
  .top5-edit .mini { min-width: 44px; min-height: 44px; padding: 0; }
  .legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
  .hint a, .is-yours a { display: inline-block; padding-block: 13px; margin-block: -13px; }
  .comment .tools a, .comment .tools button { display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; min-width: 44px; margin-block: -12px; }
  .comment .tools { gap: 4px; }
  .comment .tools > span { margin-right: 4px; }
}

/* QA sweep 2026-10-15 */
.nowrap { white-space: nowrap; }
.list li > div > a.name + .meta { display: block; } /* a place's name never runs into its category */
.k-place { background: var(--c-ink-3); }
.ce-pin { background: none; border: 0; }
.ce-pin svg { display: block; width: 100%; height: 100%; color: var(--c-ink-3); filter: drop-shadow(0 2px 3px rgba(52, 32, 42, 0.3)); }
.ce-pin.hot svg { color: var(--c-rose); }
.ce-pin.gem svg { color: var(--c-basil); }
.ce-zoom { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 1px 5px rgba(52, 32, 42, 0.25); }
.ce-zoom button { width: 44px; height: 44px; border: 0; background: var(--c-card); color: var(--c-ink); font: 700 1.25rem/1 var(--f-body); cursor: pointer; display: grid; place-items: center; }
.ce-zoom button + button { border-top: 1px solid var(--c-line); }
.ce-zoom button:hover { background: var(--c-blush-wash); }
.ce-zoom button:disabled { color: var(--c-ink-3); cursor: default; background: var(--c-card); }
.ce-zoom button:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -3px; }
.rail-city { margin: var(--s-4) 0 0; font-size: var(--t-xs); font-family: var(--f-body); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-2); }
.rail .rail-city + .list li { padding: 8px 0; }
.chip-city { flex: none; align-self: center; font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-2); white-space: nowrap; padding-left: 4px; }
.chip-group { display: flex; flex: none; align-items: center; gap: var(--s-2); }
.chip-group + .chip-group { margin-left: 10px; }
@media (min-width: 1000px) { .chip-group { flex: 0 1 auto; flex-wrap: wrap; } .chip-group + .chip-group { margin-left: 0; } }
/* Discover's pickers: every chip row (City, Neighborhood, Kind) has the same small label above it and the same gap */
.filter-label { display: block; margin: var(--s-3) 0 6px; font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-2); }
.filter-note { margin: 0 0 var(--s-2); }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-3) 0 6px; }
.filter-head .filter-label { margin: 0; }
.filter-head .clear-filters { margin: 0; }
.kind-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.kind-chips .chip-radio { flex: none; white-space: nowrap; }
/* Top-5 editor (QA follow-up 2026-10-15): the dish name wraps instead of being cut to "Tofu bibi..."; on a phone the
   three 44px controls sit under the text, not beside it */
.top5-edit .ctl { display: flex; gap: 6px; flex: none; }
.top5-edit .t strong { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; overflow-wrap: anywhere; }
.top5-edit .t span { display: block; }
@media (max-width: 480px) {
  .top5-edit li { display: grid; grid-template-columns: 24px 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 8px; align-items: center; }
  .top5-edit .n { grid-row: 1 / span 2; }
  .top5-edit li > img, .top5-edit li > .img-ph { grid-row: 1 / span 2; grid-column: 2; }
  .top5-edit .t { grid-column: 3; grid-row: 1; }
  .top5-edit .ctl { grid-column: 3; grid-row: 2; }
}
/* Polish 2 (2026-10-15): the last links under 44 px on a 390 px phone. The avatar link round a post keeps its 38 px
   picture inside a 44 px box (the extra comes out of the margin, so nothing moves); a commenter's name and the
   sign-in hint's "Join" get a 44 px tall hit area without growing the line; a short place name ("Raku") is never
   narrower than 44 px. */
.post-who { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin: -3px; }
.comment .who { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.hint a { min-width: 44px; text-align: center; }
.list .name { min-width: 44px; }
/* QA sweep 2 (2026-10-15). The map: its panes (z-index 400+) stay inside the map's own stacking context, so they never
   paint over the fixed bottom tab bar when the map scrolls under it. Tiles a hair larger than their 256 px grid
   step, painted normally, close the thin white seams Chrome leaves between them at device scale 3 (Leaflet's own
   plus-lighter blend adds an overlap twice, which is what drew the seams white). */
.leaflet-container { isolation: isolate; z-index: 0; }
.discover-map .leaflet-tile-container img.leaflet-tile { width: 256.5px !important; height: 256.5px !important; mix-blend-mode: normal; }
/* map pins: a 44 x 44 tap box with the pin drawn at its bottom centre (the point stays on the place) */
.ce-pin { display: flex; align-items: flex-end; justify-content: center; }
.ce-pin svg { width: 24px; height: 32px; flex: none; }
.ce-pin.hot svg, .ce-pin.gem svg { width: 30px; height: 40px; }
.ce-pin:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; border-radius: 8px; }
.ce-pin.ce-group { align-items: center; }
.ce-group span { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; background: var(--c-rose);
  color: #fff; font: 700 0.875rem/1 var(--f-body); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(52, 32, 42, 0.35); }
.discover-map-pop ul { list-style: none; margin: 0; padding: 0; }
.discover-map-pop li a { display: inline-flex; align-items: center; min-height: 32px; }
/* WCAG 2.5.8 (AA) on a wide screen too: the small inline links in a post's header and in small print are at least
   24 px tall (on a phone the tap-target block makes them 44). Padding pulled back by a negative margin: nothing moves. */
@media (min-width: 1000px) {
  .post-handle, .post-place, a.small, .piece-title a, .eyebrow a { padding-block: 4px; margin-block: -4px; }
  .post-handle, a.small, .piece-title a, .eyebrow a { display: inline-block; }
}
/* the rest of the links under 44 px: the swipe card's dish, place and @handle, a profile's own links, inline @handle
   links in small print, and the notification checkboxes (the whole row is the label) */
.deck-title a, .deck-placard .credit a, .deck-by a, .links a, p.small a[href*="/u/"], p.eyebrow a[href*="/u/"] {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.deck-title a, .deck-placard .credit a, .deck-by a, p.small a[href*="/u/"], p.eyebrow a[href*="/u/"] { margin-block: -12px; }
.deck-title a { margin-block: -4px; }
.deck-placard .credit { margin-bottom: 10px; }
.sheet .check, .form label.check { min-height: 44px; align-items: center; }
.sheet .check input[type=checkbox] { width: 22px; height: 22px; flex: none; }
details.menu .menu-body button, details.menu .menu-body a { min-height: 44px; }

/* ---------------------------------------------------------------- beta fixes 2026-10-16 */
.form .field-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 12px; }
.form .field-row > div { min-width: 0; }
.form [data-hood-field][hidden] { display: none; }
.manager-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 12px; }
.is-yours p { margin: 0 0 4px; }
@media (max-width: 999px) {
  /* the swipe deck's dish, place and @handle links: 44 px on the top card already, but the cards stacked behind it are
     drawn at 96.5% (42 px as measured); 46 px keeps every one of them at least 44 px as drawn */
  .deck-title a, .deck-placard .credit a, .deck-by a { min-height: 46px; }
}
