/* ============================================================
   MCH — site stylesheet, ported from the approved mockup.
   Tokens and @font-face live in tokens.css.
   Conversions from the mockup source:
   - [data-viewport="desktop"] …  →  @media (min-width: 1024px)
   - approved variants resolved (cardStyle "soft", hero "photo");
     unused variants dropped
   - prototype-only selectors (device frame, tweaks panel,
     image-slot) stripped
   ============================================================ */

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: var(--t-base);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -.012em; }
p { margin: 0; }
::selection { background: var(--blue-200); color: var(--blue-900); }

/* site shell */
.site-root { min-height: 100vh; display: flex; flex-direction: column; }
.site-root > .page { flex: 1; }
.page { min-height: 100%; display: flex; flex-direction: column; }
/* flexbox overflow guard: stop any child from forcing the column wider than
   the screen. min-width:0 is the actual flex fix — do NOT add max-width here. */
.page { min-width: 0; }
.page > * { min-width: 0; }
.recipe-grid > *, .det-cols > * { min-width: 0; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideL { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }

/* ============================================================
   Paper texture (asset substitute — fractal grain)
   ============================================================ */
.paper-grain { position: relative; }
.paper-grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .055;
  mix-blend-mode: multiply;
}
/* coloured multiply washes */
.tex-blue   { background-color: var(--blue-500); }
.tex-sienna { background-color: var(--sienna-500); }

/* ============================================================
   Type utilities
   ============================================================ */
.kicker {
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.kicker--sienna { color: var(--sienna-500); }
.kicker--light  { color: var(--blue-200); }
.display { font-family: var(--font-display); font-weight: 300; letter-spacing: -.02em; }
/* Menu title "Shared prefix — Name": the whole line takes one soft muted tone, with
   the name after the dash kept bold (Newsreader 600, the heaviest face loaded → crisp).
   The weight leads the eye, so the line reads soft and even instead of two-tone. */
.menu-title { color: var(--ink-mute); }
.menu-title strong { font-weight: 600; }
.display-i { font-style: italic; }
.serif-body { font-family: var(--font-body); }
.lede { font-size: var(--t-md); line-height: 1.5; color: var(--ink-soft); font-weight: 300; }
/* Books list: prestige seal for the international distinction (Prix de la Littérature mark). */
.book-distinction { display: inline-flex; align-items: center; gap: 22px; max-width: 60ch;
  margin: 2px 0 4px; padding: 16px 24px;
  background: var(--paper-raise); border: 1px solid var(--paper-edge); border-radius: 14px; }
.book-distinction-logo { width: 116px; height: auto; flex: 0 0 auto; }
.book-distinction-body { padding-left: 22px; border-left: 1px solid var(--paper-edge); }
.book-distinction-eyebrow { font-family: var(--font-ui); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sienna-500); margin-bottom: 5px; }
.book-distinction-text { margin: 0; font-family: var(--font-ui); font-size: var(--t-sm);
  line-height: 1.5; color: var(--sienna-700); }
.book-distinction-text strong { font-weight: 600; color: var(--sienna-800); }
@media (max-width: 520px) {
  .book-distinction { gap: 16px; padding: 14px 16px; }
  .book-distinction-logo { width: 88px; }
  .book-distinction-body { padding-left: 16px; }
}
.meta {
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  letter-spacing: .04em;
  color: var(--ink-mute);
}
.ui { font-family: var(--font-ui); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   Placeholder art — deterministic hue-from-slug entity imagery
   (no photos of fictional establishments on real seeded data),
   rendered inside .card-media / .dethero-media frames
   ============================================================ */
.ph-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  container-type: inline-size;
  padding: 10%;
  background:
    radial-gradient(120% 90% at 22% 0%, hsl(var(--ph-hue) 22% 96% / .85), transparent 62%),
    linear-gradient(150deg, hsl(var(--ph-hue) 17% 90%) 0%, hsl(var(--ph-hue) 16% 80%) 100%);
}
/* The entity name as a faint watermark: display serif, very low contrast, sized
   to the frame (cqi) and capped so it reads from a 72px chip up to a hero. */
.ph-art .ph-name {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(11px, 13cqi, 30px); line-height: 1.1;
  text-align: center; letter-spacing: .01em;
  color: hsl(var(--ph-hue) 24% 26%); opacity: .19;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   Buttons (C04)
   ============================================================ */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-600); box-shadow: var(--sh-md); }
.btn-secondary { background: transparent; color: var(--blue-700); border-color: var(--blue-300); }
.btn-secondary:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(42,37,33,.05); }
.btn-on-photo { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(6px); }
.btn-on-photo:hover { background: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: var(--t-xs); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: var(--t-base); }

/* icon button */
.iconbtn {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: transparent; border: none; color: var(--ink);
  transition: background .15s var(--ease);
}
.iconbtn:hover { background: rgba(42,37,33,.06); }
.iconbtn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ============================================================
   Chips / tags (C19)
   ============================================================ */
.chip {
  font-family: var(--font-ui);
  font-size: var(--t-sm); font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--paper-edge);
  background: var(--paper-raise);
  color: var(--ink-soft);
  transition: all .16s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--blue-300); color: var(--blue-700); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--blue-500); border-color: var(--blue-500); color: #fff;
}
.chip-sm { min-height: 32px; padding: 0 12px; font-size: var(--t-xs); }

/* little label tag (badge) */
.tag {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: var(--r-sm);
  background: var(--blue-50); color: var(--blue-700);
}
.tag--sienna { background: var(--sienna-100); color: var(--sienna-700); }
.tag--badge { background: var(--blue-500); color: #fff; }
.tag--outline { background: transparent; border: 1px solid currentColor; color: var(--sienna-600); }

/* ============================================================
   Cards (C08 anchor — approved "soft" style)
   ============================================================ */
.card {
  position: relative;
  background: var(--paper-raise);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
/* SSR stretched link: the title anchor covers the whole card (the mockup
   attached onClick to the article) */
.card-link::after { content: ""; position: absolute; inset: 0; }
.card.is-link { cursor: pointer; }
.card.is-link:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--blue-200); }
.card-media { position: relative; width: 100%; background: var(--paper-sunk); overflow: hidden; display: block; }
.card-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-body { padding: var(--s-4); }
.card-pin { position: absolute; left: 10px; top: 10px; z-index: 2; font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: var(--r-pill);
  background: rgba(251,248,241,.92); color: var(--sienna-700); backdrop-filter: blur(4px); }
/* Selo MCH: round McH seal pinned top-right of the card photo, marking a
   restaurant with a complete Menu com História. White disc so the blue mark
   stays legible over any photo. */
.card-badge { position: absolute; right: 10px; top: 10px; z-index: 2; width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255,255,255,.94); box-shadow: var(--sh-sm); backdrop-filter: blur(4px); }
.card-badge img { width: 78%; height: 78%; object-fit: contain; display: block; }
.card-ribbon { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--r-pill);
  white-space: nowrap; background: var(--blue-500); color: #fff; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.avatar-dot { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: inline-block; background: var(--paper-sunk); position: relative; }
/* Covers have varied aspect ratios: show them whole (no crop), centred, at a
   fixed cell height. Margins take the page background so they read as nothing —
   no frame, no shadow, no sunk well. */
.bookcover { background: var(--paper); box-shadow: none; }
.bookcover img { object-fit: contain; }
.cardS--h { display: grid; grid-template-columns: 110px 1fr; align-items: stretch; }
.cardS--h .card-media { height: 100%; aspect-ratio: auto !important; }

/* ============================================================
   Inputs (C05)
   ============================================================ */
.field { position: relative; }
.input {
  font-family: var(--font-ui);
  font-size: var(--t-base);
  width: 100%;
  min-height: 52px;
  padding: 18px 16px 6px;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-sm);
  background: var(--paper-raise);
  color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:focus { outline: none; border-color: var(--blue-400); box-shadow: var(--ring); }
.field label {
  position: absolute; left: 16px; top: 16px;
  font-family: var(--font-ui); font-size: var(--t-base); color: var(--ink-mute);
  pointer-events: none; transition: all .15s var(--ease);
}
.input:focus + label, .input:not(:placeholder-shown) + label {
  top: 7px; font-size: 11px; letter-spacing: .04em; color: var(--blue-600); font-weight: 600;
}

/* ============================================================
   Monogram (cropped shield from the lockup)
   ============================================================ */
.monogram {
  /* chef-head mark occupies x0–2328 of the 5736-wide McH_Logo_H_2L lockup */
  position: relative; overflow: hidden; flex: 0 0 auto;
  aspect-ratio: 2328 / 2568;
}
.monogram img {
  position: absolute; left: 0; top: 0; height: 100%;
  width: auto; max-width: none;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-4); }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.scroll-x {
  display: flex; gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; flex: 0 0 auto; }

.divider { height: 1px; background: var(--paper-edge); border: none; }
.section { padding: var(--s-8) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }

.eyebrow-link {
  font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 600;
  color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px;
}
.eyebrow-link:hover { gap: 10px; }

/* reveal-on-scroll — the hidden initial state only applies once JS has
   tagged <html class="js">, so content stays visible without JS */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   AppBar (C01)
   ============================================================ */
.appbar { position: sticky; top: 0; z-index: 40; transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.appbar--solid { background: rgba(244,238,227,.86); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--paper-edge); }
.appbar--photo { background: transparent; border-bottom: 1px solid transparent; }
.appbar-inner { display: flex; align-items: center; gap: 8px; height: 72px; padding: 0 8px 0 8px; max-width: var(--maxw); margin: 0 auto; }
.appbar-logo { background: none; border: none; padding: 4px 8px; display: flex; align-items: center; }
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.appbar-nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.appbar-link { font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 500; color: var(--ink-soft);
  background: none; border: none; padding: 8px 12px; border-radius: var(--r-sm); transition: color .15s, background .15s; }
.appbar-link:hover { color: var(--blue-700); background: var(--blue-50); }
.appbar-link.is-active { color: var(--blue-700); font-weight: 600; }

/* SSR viewport switch (the mockup swapped these in JS):
   mobile = burger + monogram; desktop = lockup + nav + account actions */
.appbar-monogram { height: 56px; }
.appbar-lockwrap { display: none; }
/* the H_2L lockup is two-lined and squarer: a touch taller than the old one */
.appbar-lockwrap img { height: 54px; width: auto; }
.appbar-nav { display: none; }
.appbar-cta { display: none; }
/* the burger only does something once site.js wires the drawer */
html:not(.js) .appbar-burger { display: none; }
@media (min-width: 1024px) {
  .appbar-inner { height: 88px; padding: 0 32px; }
  .appbar-burger { display: none; }
  .appbar-monogram { display: none; }
  .appbar-lockwrap { display: block; }
  .appbar-nav { display: flex; }
  .appbar-cta { display: inline-flex; }
}

/* over-photo colours (the mockup applied these as inline styles) */
.appbar .logo-white { display: none; }
.appbar--photo .logo-blue { display: none; }
.appbar--photo .logo-white { display: block; }
.appbar--photo .iconbtn { color: #fff; }
.appbar--photo .iconbtn:hover { background: rgba(255,255,255,.12); }
.appbar--photo .appbar-link { color: rgba(255,255,255,.92); }
.appbar--photo .appbar-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.appbar--photo .appbar-cta.btn-primary { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(6px); }
.appbar--photo .appbar-cta.btn-primary:hover { background: #fff; }

/* ============================================================
   NavDrawer (C02)
   ============================================================ */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(35,38,66,.4); backdrop-filter: blur(2px);
  animation: fade .2s var(--ease); }
.drawer-scrim[hidden] { display: none; }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: min(82%, 340px); background: var(--paper);
  box-shadow: var(--sh-lg); display: flex; flex-direction: column; animation: slideL .26s var(--ease); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--paper-edge); }
.drawer-top .drawer-lockup { height: 22px; width: auto; }
.drawer-nav { padding: 12px 8px; flex: 1; }
.drawer-link { width: 100%; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: var(--t-xl); color: var(--ink); background: none; border: none;
  padding: 14px 14px; border-radius: var(--r-sm); }
.drawer-link:hover { background: var(--blue-50); color: var(--blue-700); }
.drawer-link svg { color: var(--ink-mute); }
.drawer-foot { padding: 16px; border-top: 1px solid var(--paper-edge); }

/* ============================================================
   Footer (C03)
   ============================================================ */
.footer { color: #fff; margin-top: auto; }
.footer-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 40px; display: grid; gap: 40px; }
.footer-brand img { height: 173px; width: auto; }
.footer-tag { font-size: var(--t-xl); color: rgba(255,255,255,.9); margin-top: 14px; }
/* Social follow (brand block): line-icon + handle, quiet white that lifts on hover. */
.footer-social { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px;
  font-family: var(--font-ui); font-size: var(--t-sm); color: rgba(255,255,255,.9); }
.footer-social:hover { color: #fff; }
.footer-social:hover span { text-decoration: underline; text-underline-offset: 3px; }
/* Partner bar (the team's "barra parceiros" artwork: marks + text, white on the
   sienna footer) — sits under the brand lockup and tagline. */
.footer-brand .footer-partners { height: auto; width: 100%; max-width: 460px; margin-top: 26px; opacity: .9; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-h { font-family: var(--font-ui); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 14px; font-weight: 600; }
.footer-link { display: block; font-family: var(--font-body); font-size: var(--t-sm); color: rgba(255,255,255,.9);
  background: none; border: none; padding: 7px 0; text-align: left; }
.footer-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.16); width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal .meta { color: rgba(255,255,255,.7); }
.footer-legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.footer-legal-link { background: none; border: none; color: rgba(255,255,255,.7); }
.footer-legal-link:hover { color: #fff; }
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: 1.4fr 2fr; padding: 72px 32px 48px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   MiniMap (C18)
   ============================================================ */
.minimap { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--paper-edge); }
.minimap-canvas { position: absolute; inset: 0; background:
  radial-gradient(120% 100% at 30% 0%, var(--sienna-100), var(--paper-sunk) 70%); }
.minimap-grid line { stroke: var(--sienna-300); stroke-width: .5; opacity: .5; }
.minimap-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.minimap-river { fill: none; stroke: var(--blue-300); stroke-width: 3; opacity: .55; }
.minimap-pin { position: absolute; transform: translate(-50%, -100%); background: none; border: none; color: var(--blue-600); z-index: 2; transition: transform .15s, color .15s; }
.minimap-pin:hover, .minimap-pin.is-active { color: var(--blue-700); transform: translate(-50%, -110%) scale(1.12); }
.minimap-tip { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: var(--r-sm); margin-bottom: 4px; }
/* SSR pins are real links: tooltip on hover/focus (the mockup toggled it in JS) */
.minimap-pin .minimap-tip { display: none; }
.minimap-pin:hover .minimap-tip, .minimap-pin:focus-visible .minimap-tip { display: block; }
.minimap-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-xs); font-weight: 600; padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(251,248,241,.94); color: var(--blue-700); box-shadow: var(--sh-sm); }

/* ============================================================
   BenefitCard
   ============================================================ */
.benefit { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r-md);
  background: var(--paper-raise); border: 1px solid var(--blue-200); box-shadow: var(--sh-sm); flex-wrap: wrap; }
.benefit--compact { padding: 14px 16px; gap: 12px; flex-wrap: nowrap; }
.benefit-star { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-500); }

/* ============================================================
   SignupBand
   ============================================================ */
.signupband { color: #fff; }
.signupband-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
@media (min-width: 1024px) {
  .signupband-inner { padding: 96px 32px; }
}

/* ============================================================
   HERO (C22 — approved "photo" treatment)
   ============================================================ */
.hero { position: relative; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(155deg, var(--blue-700) 0%, var(--sienna-700) 100%); }
.hero-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(35,38,66,.78) 0%, rgba(35,38,66,.32) 45%, rgba(35,38,66,.12) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 24px var(--s-4); }

/* home hero specifics */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
/* portrait phones: a landscape hero video is cropped at the sides — centre it
   horizontally so the framing isn't pushed off to one side */
@media (orientation: portrait) {
  video.hero-photo { object-position: 50% 50%; }
}
/* carousel: cross-fading photo slides */
.hero-slide { opacity: 0; transition: opacity 1.1s var(--ease); transform: scale(1.04); }
.hero-slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.1s var(--ease), transform 7s linear; }
/* carousel: cross-fading copy (all share one grid cell) */
.hero-copystack { display: grid; }
.hero-copy { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero-copy.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-actions { margin-top: 26px; }
/* dots */
.hero-dots { display: flex; gap: 9px; margin-top: 24px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .2s var(--ease), width .25s var(--ease); }
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.is-active { background: #fff; width: 26px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-copy { transition: opacity .3s; transform: none; }
  .hero-slide.is-active { transform: none; transition: opacity .3s; }
}
.homehero { min-height: 580px; display: flex; align-items: flex-end; }
/* pull the hero UP behind the transparent sticky app bar so the white
   logo/nav sit over the dark hero (not over the cream page); notice strips
   never take flow space here (.appbar[data-transparent] ~ .strips overlays) */
.homehero { margin-top: -72px; }
/* darken the TOP (under the transparent app bar) AND bottom (under the headline) */
.homehero .hero-scrim {
  background: linear-gradient(to bottom,
    rgba(20,16,12,.62) 0%, rgba(20,16,12,.14) 22%,
    rgba(20,16,12,.18) 46%, rgba(20,16,12,.82) 100%);
}
.homehero .hero-inner { padding-bottom: 40px; padding-top: 90px; }
.homehero-kicker { color: rgba(255,255,255,.85); }
.homehero-title { color: #fff; font-size: var(--t-3xl); line-height: 1.05; margin-bottom: 18px; max-width: 15ch; }
.homehero-sub { color: rgba(255,255,255,.88); font-size: var(--t-md); max-width: 40ch; margin-bottom: 26px; font-weight: 300; }
@media (min-width: 1024px) {
  .homehero { margin-top: -88px; min-height: 660px; }
  .homehero-title { font-size: var(--t-5xl); max-width: 16ch; }
  .homehero .hero-inner { padding-bottom: 64px; }
}

/* hero "bar" variant: a short full-width strip for a single announcement
   (an event, a new book) — not the full-bleed top hero. Sits in normal flow
   (no negative top margin) so it can appear anywhere in the block order. */
.homehero--bar { min-height: 0; margin-top: 0; align-items: center; }
.homehero--bar .hero-scrim {
  background: linear-gradient(to right, rgba(20,16,12,.78) 0%, rgba(20,16,12,.45) 60%, rgba(20,16,12,.30) 100%);
}
.homehero--bar .hero-inner { padding-top: 30px; padding-bottom: 30px; }
.homehero--bar .homehero-title { font-size: var(--t-xl); margin-bottom: 8px; max-width: 24ch; }
.homehero--bar .homehero-sub { font-size: var(--t-sm); margin-bottom: 16px; max-width: 52ch; }
.homehero--bar .hero-actions { margin-top: 14px; }
@media (min-width: 1024px) {
  .homehero--bar { min-height: 0; margin-top: 0; }
  .homehero--bar .homehero-title { font-size: var(--t-2xl); max-width: 28ch; }
  .homehero--bar .hero-inner { padding-top: 40px; padding-bottom: 40px; }
}

/* hero full-viewport: occupy the whole visible screen. svh (small viewport)
   keeps the CTA visible on load instead of hiding behind the mobile toolbar;
   vh is the fallback for old browsers. */
.homehero.is-fullviewport { min-height: 100vh; min-height: 100svh; }
/* safe-area padding so overlaid copy clears notches/rounded corners */
.homehero.is-fullviewport .hero-inner {
  padding-left: max(var(--s-4), env(safe-area-inset-left));
  padding-right: max(var(--s-4), env(safe-area-inset-right));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}
/* short landscape phones: don't squash — let it grow and scroll */
@media (orientation: landscape) and (max-height: 480px) {
  .homehero.is-fullviewport { min-height: 100svh; height: auto; }
}

/* hero foot: a controls row (pause + dots) with the progress bar stacked below,
   the bar spanning the same width — from the pause button to the last dot. */
.hero-foot { margin-top: 24px; display: inline-flex; flex-direction: column; gap: 10px; }
.hero-controls { display: flex; align-items: center; gap: 16px; }
.hero-controls .hero-dots { margin-top: 0; }
/* Single video (no dots): the controls row is just the pause button, so give the
   bar an explicit width instead of letting it collapse to the button. */
.hero-foot--solo .hero-progress { width: 220px; max-width: 70vw; }

/* Two-layer progress bar (track + buffered + played), light over the photo to
   match the dots. Spans the full controls-row width via the inline-flex column. */
.hero-progress {
  position: relative; width: 100%; height: 4px; border-radius: 3px;
  background: rgba(255,255,255,.22); overflow: hidden;
}
.hero-progress[hidden] { display: none; }
.hero-progress-buffered, .hero-progress-played {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 3px; transform-origin: left center;
}
.hero-progress-buffered { background: rgba(255,255,255,.4); transition: width .25s linear; }
.hero-progress-played { background: #fff; transition: width .12s linear; }
/* While the video buffers, pulse the bar so the wait reads as "loading". */
.hero-progress.is-buffering { background: rgba(255,255,255,.16); }
.hero-progress.is-buffering .hero-progress-buffered { animation: heroBufferPulse 1.1s ease-in-out infinite; }
@keyframes heroBufferPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-progress-buffered, .hero-progress-played { transition: none; }
  .hero-progress.is-buffering .hero-progress-buffered { animation: none; }
}
.hero-pause {
  width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.45); background: rgba(20,16,12,.35);
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s var(--ease);
}
.hero-pause:hover { background: rgba(20,16,12,.6); }

/* sound toggle on a video hero — frosted dark circle, bottom-right; the icon
   shows muted (slashed speaker) by default and switches to waves when sound is on */
.hero-mute {
  position: absolute; right: 20px; bottom: 20px; z-index: 4;
  width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer; color: #fff;
  border: 1px solid rgba(255,255,255,.45); background: rgba(20,16,12,.35);
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s var(--ease);
}
.hero-mute:hover { background: rgba(20,16,12,.6); }
.hero-mute[hidden] { display: none; }
.hero-mute-ic--on { display: none; }
.hero-mute.is-on .hero-mute-ic--off { display: none; }
.hero-mute.is-on .hero-mute-ic--on { display: inline-block; }

/* pause icon (two bars) → play icon (triangle) when the carousel is paused */
.hero-pause-ic { width: 12px; height: 12px; position: relative; display: inline-block; }
.hero-pause-ic::before, .hero-pause-ic::after {
  content: ""; position: absolute; top: 0; width: 4px; height: 12px; background: #fff; border-radius: 1px;
}
.hero-pause-ic::before { left: 1px; }
.hero-pause-ic::after { right: 1px; }
.is-paused .hero-pause-ic::before {
  left: 1px; top: 0; width: 0; height: 0; background: none; border-radius: 0;
  border-left: 11px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.is-paused .hero-pause-ic::after { display: none; }

/* scroll hint on a full-viewport hero: a soft bouncing chevron */
.hero-scrollhint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 3; width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: none; background: none; -webkit-tap-highlight-color: transparent;
}
.hero-scrollhint::after {
  content: ""; position: absolute; left: 50%; top: 40%; width: 13px; height: 13px;
  margin-left: -7px; border-right: 2px solid rgba(255,255,255,.85);
  border-bottom: 2px solid rgba(255,255,255,.85); transform: rotate(45deg);
  animation: heroChevron 1.8s var(--ease) infinite;
}
@keyframes heroChevron { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: .6; } 50% { transform: rotate(45deg) translate(3px,3px); opacity: 1; } }

/* rotate hint: a small dismissible chip; CSS allows it only on touch portrait
   phones (JS also gates it to the video slide and auto-hides it). */
.hero-rotate {
  position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%);
  z-index: 4; display: inline-flex; align-items: center; gap: 9px; max-width: calc(100% - 32px);
  padding: 9px 12px 9px 14px; border-radius: 999px; color: #fff; font-size: var(--t-sm); line-height: 1.2;
  background: rgba(20,16,12,.62); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-rotate[hidden] { display: none; }
.hero-rotate-ic {
  flex: none; width: 16px; height: 20px; border: 2px solid #fff; border-radius: 4px;
  transform: rotate(32deg); opacity: .95;
}
.hero-rotate-x {
  flex: none; margin-left: 2px; width: 22px; height: 22px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}
/* never on desktop or landscape, whatever JS does */
@media (orientation: landscape), (pointer: fine) and (hover: hover) {
  .hero-rotate { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scrollhint::after { animation: none; }
}

/* detail hero */
.dethero { position: relative; }
.dethero-media { aspect-ratio: 4 / 3; position: relative; background: linear-gradient(155deg, var(--blue-700) 0%, var(--sienna-700) 100%); }
/* story longform variant (mockup A5): 3:2 on mobile, the shared 21:9 on desktop */
.dethero-media--story { aspect-ratio: 3 / 2; }
@media (min-width: 1024px) {
  .dethero-media, .dethero-media--story { aspect-ratio: 21 / 9; }
}

/* ============================================================
   Search (reused by the /pesquisa page)
   ============================================================ */
.search-bar { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--paper-edge);
  position: sticky; top: 0; background: var(--paper); }
.search-input { flex: 1; font-family: var(--font-display); font-size: var(--t-xl); border: none; background: none; color: var(--ink); }
.search-input:focus { outline: none; }
.search-input::placeholder { color: var(--ink-mute); }
.search-body { padding: 16px 16px 40px; max-width: 880px; margin: 0 auto; }
.search-group + .search-group { margin-top: 26px; }
/* result rows (mockup C17 Row — hover was inline JS there) */
.search-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px;
  border-radius: var(--r-sm); transition: background .15s var(--ease); }
.search-row:hover, .search-row:focus-visible { background: var(--blue-50); }

/* ============================================================
   Generic page chrome
   ============================================================ */
/* Sticks just below the (also-sticky) appbar so it stays pinned while scrolling;
   top offset = appbar height (72px mobile / 88px desktop, see .appbar-inner). */
.detail-topbar { position: sticky; top: 72px; z-index: 30; background: rgba(244,238,227,.9);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--paper-edge); }
/* When a dish link jumps back to #os-pratos, clear the stacked sticky bars
   (appbar + detail-topbar) plus a little breathing room, so the "Os pratos"
   heading lands clearly below them instead of tucked under the bottom bar.
   Stack ≈ 72 + 60 mobile / 88 + 64 desktop; add ~20px of gap. */
#os-pratos { scroll-margin-top: 152px; }
@media (min-width: 1024px) { #os-pratos { scroll-margin-top: 172px; } }
.detail-topbar-inner { display: flex; align-items: center; gap: 6px; width: 100%;
  max-width: var(--maxw); margin: 0 auto; padding: 8px var(--s-2); }
.detail-topbar .spacer { flex: 1; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; min-width: 0;
  font-family: var(--font-ui); font-size: var(--t-sm); }
.crumb { color: var(--ink-soft); text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
.crumb:hover { color: var(--blue-700); }
.crumb-sep { color: var(--ink-mute); flex: 0 0 auto; }
.crumb-current { color: var(--ink); font-weight: 600; flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) {
  .detail-topbar { top: 88px; }
  .detail-topbar-inner { padding: 10px var(--s-6); }
}

/* prose */
.prose p { font-size: var(--t-base); line-height: 1.62; color: var(--ink); margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose-quote { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: var(--t-xl);
  line-height: 1.32; color: var(--blue-700); border-left: 2px solid var(--blue-300); padding-left: 22px; margin: 28px 0; }
.prose-quote cite { display: block; font-size: var(--t-sm); font-style: normal; color: var(--ink-mute); margin-top: 10px; font-family: var(--font-ui); }
.prose-fig { margin: 26px 0; }
.prose-fig figcaption { font-family: var(--font-ui); font-size: var(--t-xs); color: var(--ink-mute); margin-top: 8px; }
/* markdown blockquotes inside prose get the original-quote treatment */
.prose blockquote {
  background: var(--paper-sunk); border: 1px solid var(--paper-edge); border-radius: var(--r-md);
  padding: 22px; font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: var(--t-md); line-height: 1.5; color: var(--sienna-700); margin: 1.4em 0;
}
@media (min-width: 1024px) {
  .prose p { font-size: 1.0625rem; }
}

/* original-text excerpt */
.original-quote { background: var(--paper-sunk); border: 1px solid var(--paper-edge); border-radius: var(--r-md);
  padding: 22px; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: var(--t-md);
  line-height: 1.5; color: var(--sienna-700); position: relative; }
.original-quote::before { content: "“"; font-size: 60px; line-height: 0; position: absolute; left: 12px; top: 26px; color: var(--sienna-300); }

/* info grid */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--paper-edge); border: 1px solid var(--paper-edge); border-radius: var(--r-md); overflow: hidden; }
.info-cell { background: var(--paper-raise); padding: 16px 18px; }
.info-cell .meta { margin-bottom: 4px; }
.info-cell .v { font-family: var(--font-body); font-size: var(--t-base); color: var(--ink); }
@media (min-width: 1024px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff;
  font-family: var(--font-ui); font-size: var(--t-sm); padding: 12px 18px; border-radius: var(--r-pill); box-shadow: var(--sh-lg);
  display: inline-flex; align-items: center; gap: 8px; animation: slideUp .3s var(--ease); }

/* Share menu — a <details> disclosure in the detail topbar. The summary is
   styled as an .iconbtn (its native marker is removed); the popover floats below
   it, right-aligned so it never spills past the bar edge. */
.share { position: relative; }
.share > summary { list-style: none; cursor: pointer; }
.share > summary::-webkit-details-marker { display: none; }
.share > summary::marker { content: ""; }
.share-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 210px;
  padding: 6px; background: var(--paper-raise); border: 1px solid var(--paper-edge);
  border-radius: var(--r-md); box-shadow: var(--sh-lg); display: flex; flex-direction: column; gap: 1px;
  animation: slideUp .16s var(--ease); }
.share-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 9px 10px; border: none; background: none; border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 500; color: var(--ink); text-decoration: none; }
.share-item:hover { background: var(--paper-sunk); color: var(--blue-700); }
.share-item svg { flex: none; color: var(--ink-soft); }
.share-item:hover svg { color: var(--blue-600); }
.share-item[hidden] { display: none; }

/* ============================================================
   Screen layouts
   ============================================================ */
/* responsive card row: mobile = horizontal scroll aligned to the page gutter
   (NOT bled to the edge — keeps a consistent left margin with section heads) */
.cardrow { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 6px; }
.cardrow::-webkit-scrollbar { display: none; }
.cardrow > * { scroll-snap-align: start; }
@media (min-width: 1024px) {
  .cardrow { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 3), 1fr);
    grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 24px; }
}

/* section rhythm — vertical only, so .wrap keeps its horizontal gutter */
.s-pad { padding-top: 48px; padding-bottom: 48px; }
.s-pad-sm { padding-top: 36px; padding-bottom: 36px; }
@media (min-width: 1024px) {
  .s-pad { padding-top: 80px; padding-bottom: 80px; }
}

/* alt background band */
.band-paper { background: var(--paper-sunk); }
.band-blue { background: var(--blue-700); color: #fff; }

/* ---------- home: restaurantes-destaque ---------- */
.pillar-map { margin-bottom: 24px; }
.pillar-map-link { margin-top: 14px; }
/* "Ver todos os restaurantes" block button (mobile only — the mockup gated it on viewport in JS) */
.pillar-cta { margin-top: 18px; }
@media (min-width: 1024px) {
  .pillar { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
  .pillar-map { margin-bottom: 0; position: sticky; top: 108px; }
  .pillar .cardrow { grid-template-columns: repeat(2, 1fr); }
  .pillar-cta { display: none; }
}

/* ---------- home: bloco introdutório (manifesto) ---------- */
.intro-manifesto { max-width: 760px; margin: 0 auto; text-align: center; }
.intro-manifesto .kicker { margin-bottom: 18px; }
.intro-lead { font-size: var(--t-xl); line-height: 1.28; color: var(--ink); font-weight: 300; margin-bottom: 22px; }
.intro-body { font-size: var(--t-md); line-height: 1.6; color: var(--ink-soft); font-weight: 300; margin: 0 auto 24px; max-width: 660px; }
.intro-close { font-size: var(--t-lg); line-height: 1.4; color: var(--blue-700); margin-bottom: 30px; }
.intro-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (min-width: 1024px) {
  .intro-lead { font-size: var(--t-2xl); }
}

/* ---------- como funciona (chain) ---------- */
.chain { display: grid; gap: 0; }
.chain-node { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.chain-ic { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-raise); border: 1px solid var(--blue-200); color: var(--blue-600); }
.chain-step { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.chain-name { font-family: var(--font-display); font-size: var(--t-md); }
.chain-line { width: 1px; height: 22px; background: var(--blue-200); margin-left: 26px; }
@media (min-width: 1024px) {
  .chain { grid-auto-flow: column; grid-auto-columns: 1fr; align-items: start; }
  .chain-node { flex-direction: column; text-align: center; gap: 10px; padding: 0 8px; }
  .chain-line { width: 100%; height: 1px; margin: 26px 0 0; align-self: start; position: relative; top: 26px; }
}

/* partners strip */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; }
.partner-logo { font-family: var(--font-display); font-style: italic; font-size: var(--t-md); color: var(--sienna-400);
  opacity: .8; padding: 8px 0; }

/* ---------- detail page generic ---------- */
.detail-wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.detail-wide { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) {
  .detail-wrap { padding: 0 32px; }
  /* two-col detail on desktop */
  .det-cols { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
  .det-aside { position: sticky; top: 104px; }
}

/* ---------- quem somos ---------- */
.quemsomos { padding-top: 40px; padding-bottom: 64px; }
.quemsomos-head { text-align: center; }
.quemsomos-hook { font-size: var(--t-xl); line-height: 1.32; color: var(--blue-700); max-width: 560px;
  margin: 0 auto; padding-bottom: 28px; border-bottom: 1px solid var(--paper-edge); }
.quemsomos-cta { text-align: center; margin-top: 40px; }
.quemsomos-cta p { font-family: var(--font-display); font-style: italic; font-size: var(--t-lg);
  line-height: 1.45; color: var(--ink); max-width: 600px; margin: 0 auto 24px; }
.quemsomos-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.quemsomos-motto { text-align: center; margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--paper-edge); }
.quemsomos-motto-line { font-size: var(--t-2xl); line-height: 1.1; color: var(--blue-700); }
.quemsomos-motto-sub { font-family: var(--font-body); font-size: var(--t-md); color: var(--ink-soft);
  font-weight: 300; margin-top: 14px; }
@media (min-width: 1024px) {
  .quemsomos-hook { font-size: var(--t-2xl); }
}

.identbar { display: flex; flex-direction: column; gap: 14px; }
.ident-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 1024px) {
  .identbar { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* chef quote pull */
.chefquote { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: var(--t-xl); line-height: 1.3;
  color: var(--blue-700); }

/* menu: prato chips + selected dish */
.pratos-chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.pratos-chips::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .pratos-chips { flex-wrap: wrap; margin: 0; padding: 0; }
}
.prato-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25);
  font-size: 11px; font-weight: 700; }
.chip.is-active .prato-num { background: rgba(255,255,255,.28); }

/* menu: selected-dish photo, rotating between the plate and the plating shot */
.dish-shots { position: relative; margin: 0; }
.dish-shots-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--paper-sunk); }
.dish-shots.is-enhanced .dish-shots-frame { cursor: pointer; }
/* legibility scrim behind the overlaid control (only when rotation is available) */
.dish-shots.is-enhanced .dish-shots-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(20,20,20,.5), transparent); pointer-events: none; }
.dish-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.dish-shot.is-active { opacity: 1; }
.dish-shots-bar { position: absolute; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px; pointer-events: none; }
.dish-shots.is-enhanced .dish-shots-bar { display: flex; }
.dish-shots-label { pointer-events: none; color: #fff; font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em;
  background: rgba(0,0,0,.42); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 999px; }
.dish-shots-rotate { pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border: 0;
  color: #fff; background: rgba(0,0,0,.42); backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 999px;
  font-size: var(--t-xs); font-weight: 600; transition: background .16s var(--ease); }
.dish-shots-rotate:hover { background: rgba(0,0,0,.66); }
.dish-shots-rotate svg { transition: transform .4s var(--ease); }
.dish-shots-rotate:hover svg { transform: rotate(-45deg); }

.recipe-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) {
  .recipe-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; }
}
.recipe-steps { counter-reset: step; display: grid; gap: 16px; }
.recipe-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.recipe-step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: var(--t-lg);
  color: var(--blue-500); line-height: 1; padding-top: 2px; }
.ing-list { list-style: none; padding: 0; margin: 0; columns: 1; }
.ing-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--paper-edge); font-size: var(--t-base); }
.ing-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-400); flex: 0 0 auto; transform: translateY(-2px); }

/* phase-2 tab hint on dish (acomodar expansão) */
.tab-hint { display: flex; gap: 8px; border-bottom: 1px solid var(--paper-edge); margin-bottom: 22px; overflow-x:auto; scrollbar-width:none; }
.tab-hint::-webkit-scrollbar{display:none;}
.tab-hint button { font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 600; color: var(--ink-mute);
  background: none; border: none; padding: 12px 4px; border-bottom: 2px solid transparent; white-space: nowrap; position: relative; }
.tab-hint button.is-active { color: var(--blue-700); border-color: var(--blue-500); }
.tab-hint button:disabled { opacity: .55; cursor: default; }
.tab-soon { font-size: 9px; font-weight: 700; letter-spacing: .06em; background: var(--sienna-200); color: var(--sienna-700);
  padding: 2px 5px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
/* favorites counter, pushed to the end of the section-tabs row */
.tab-fav { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.tab-fav svg { color: var(--blue-500); flex: none; }

/* directory / browse toolbar */
.dir-toolbar { position: sticky; top: 72px; z-index: 20; background: rgba(244,238,227,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-edge); padding: 12px 0; }
.dir-searchrow { display: flex; align-items: center; gap: 12px; }
.dir-search { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 16px;
  background: var(--paper-raise); border: 1px solid var(--paper-edge); border-radius: var(--r-pill); transition: border-color .15s, box-shadow .15s; }
.dir-search:focus-within { border-color: var(--blue-400); box-shadow: var(--ring); }
.dir-search input { flex: 1; min-width: 0; border: none; background: none; font-family: var(--font-ui); font-size: var(--t-base);
  color: var(--ink); padding: 12px 0; }
.dir-search input:focus { outline: none; }
.dir-search input::placeholder { color: var(--ink-mute); }
.dir-facet { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; }
.dir-facet-label { font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.dir-list { display: grid; gap: 18px; }
@media (min-width: 1024px) {
  .dir-toolbar { top: 88px; }
  .dir-facet { grid-template-columns: 80px 1fr; }
  .dir-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.viewtoggle { display: inline-flex; background: var(--paper-sunk); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
/* SSR renders the toggle as links; the mockup used buttons */
.viewtoggle button, .viewtoggle a { display: inline-flex; align-items: center; font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 600; border: none; background: none;
  color: var(--ink-soft); padding: 8px 16px; border-radius: var(--r-pill); }
.viewtoggle button.is-active, .viewtoggle a.is-active { background: var(--paper-raise); color: var(--blue-700); box-shadow: var(--sh-sm); }

/* sticky bottom CTA (mobile only — the mockup gated it on viewport in JS) */
.sticky-cta { position: sticky; bottom: 0; z-index: 25; padding: 12px 16px; background: rgba(244,238,227,.94);
  backdrop-filter: blur(12px); border-top: 1px solid var(--paper-edge); display: flex; gap: 10px; align-items: center; }
.sticky-cta .sc-text { flex: 1; min-width: 0; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* confirmation */
.confirm-code { font-family: var(--font-ui); font-size: var(--t-xl); font-weight: 700; letter-spacing: .14em; color: var(--blue-700);
  background: var(--blue-50); border: 1px dashed var(--blue-300); border-radius: var(--r-md); padding: 16px; text-align: center; }

/* ============================================================
   Server-rendered notice strips (verify-email banner, Django
   messages) — toast-adjacent, but static under the appbar
   ============================================================ */
.strip { font-family: var(--font-ui); font-size: var(--t-sm); background: var(--blue-50); color: var(--blue-800);
  border-bottom: 1px solid var(--paper-edge); }
/* on transparent-appbar pages the strips float over the hero photo instead of
   taking flow space, so the hero can still tuck behind the bar (prototype
   behaviour); their solid background keeps them readable */
.appbar[data-transparent] ~ .strips { position: absolute; top: 72px; left: 0; right: 0; z-index: 35; }
@media (min-width: 1024px) {
  .appbar[data-transparent] ~ .strips { top: 88px; }
}
.strip-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.strip--error, .strip--warning { background: var(--sienna-100); color: var(--sienna-800); }

/* cookie banner (server-rendered, .toast-like) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 680px; margin: 0 auto;
  background: var(--ink); color: #fff; font-family: var(--font-ui); font-size: var(--t-sm); line-height: 1.5;
  padding: 16px 18px; border-radius: var(--r-md); box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; animation: slideUp .3s var(--ease); }
.cookie-banner p { flex: 1; min-width: 220px; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.cookie-banner button { font-family: var(--font-ui); font-weight: 600; font-size: var(--t-sm); white-space: nowrap;
  background: #fff; color: var(--ink); border: none; border-radius: var(--r-pill); min-height: 38px; padding: 0 18px; cursor: pointer; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .cookie-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.cookie-banner .cookie-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   Islands
   ============================================================ */
/* Favorite-button mount point.
   Markup convention: <span data-island="favorite" data-kind="dish|restaurant"
   data-id="…" data-favorited="0|1"> — main.js replaces the ♡ placeholder
   with the React button. Styled as an .iconbtn (BUILD 5). */
[data-island="favorite"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
}
.fav-btn {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: transparent; border: none;
  color: var(--blue-600); font-size: 20px; line-height: 1;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.fav-btn:hover { background: rgba(42,37,33,.06); }
.fav-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.fav-btn[aria-pressed="true"] { color: var(--blue-500); }
.fav-notice { font-size: var(--t-xs); color: var(--ink-soft); }

/* Leaflet map island mount point, framed by .minimap on /restaurantes/?vista=mapa */
#map {
  height: 24rem;
  background: var(--paper-sunk);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.minimap #map { height: 320px; border: none; border-radius: 0; margin-bottom: 0; }
@media (min-width: 1024px) { .minimap #map { height: 460px; } }
/* popup cards in site tokens (#map outweighs the leaflet stylesheet loaded later) */
#map .leaflet-popup-content-wrapper { background: var(--paper-raise); color: var(--ink);
  border-radius: var(--r-sm); box-shadow: var(--sh-md); font-family: var(--font-ui); font-size: var(--t-sm); }
#map .leaflet-popup-content a { color: var(--blue-600); font-weight: 600; }
#map .leaflet-popup-tip { background: var(--paper-raise); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; }
}
