/* Sunday in Lisbon: the shell. Base, type, surfaces, the brand's shared components, header, menu, bar, footer.
   Owner: shell (contrato.md). Needs /assets/fonts/fonts.css and /assets/css/tokens.css (a copy of
   brand/tokens.css) loaded before it. Values come from the tokens; this file adds no colour of its own.
   Every page has its own CSS and never redefines a token; a new shared piece is asked from the lead.
   How to use each class: site/src/LEIA-ME.md. */

:root {
  --barra-h: 68px;                       /* the phone bar: 48 px button + 10 px above and below */
  --cabecalho-h: var(--header-h);
  --logo-h: clamp(26px, 0.7vw + 23.8px, 34px);
}
@media (min-width: 75em) { :root { --cabecalho-h: 76px; } }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--color-surface);
  scroll-padding-top: var(--space-m);
  scrollbar-color: var(--navy-muted) var(--cream-deep);
}
/* below 75em the phone bar covers the last 68 px: focus and anchors stop above it */
@media (max-width: 74.99em) {
  html { scroll-padding-bottom: calc(var(--barra-h) + env(safe-area-inset-bottom, 0px) + var(--space-s)); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  color: var(--color-text);
  font: var(--weight-text) var(--step-0) / var(--leading-body) var(--font-text);
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; display: block; overflow-x: clip; }

img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }

a { color: inherit; text-decoration-thickness: var(--rule); text-underline-offset: .2em; }
a, button, summary, [role="button"], label { touch-action: manipulation; }
button { font: inherit; color: inherit; }
button, .btn, .circulo { -webkit-user-select: none; user-select: none; }
input, select, textarea { font: inherit; font-size: max(16px, var(--step-0)); color: inherit; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
b, strong { font-weight: var(--weight-strong); }

.num, .preco, time { font-variant-numeric: var(--numeric); }
.nowrap { white-space: nowrap; }
/* the hidden attribute always wins: a class that sets display (.ligacao, .btn) never brings back what the markup hides */
[hidden] { display: none !important; }

/* visually hidden, still read */
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* skip link: the first thing a keyboard reaches */
.salto {
  position: absolute; z-index: var(--z-skip-link); top: var(--space-2xs); left: var(--space-2xs);
  padding: var(--space-xs) var(--space-s); border-radius: var(--radius);
  background: var(--cream); color: var(--navy); border: var(--rule) solid var(--navy);
  font-weight: var(--weight-label); text-decoration: none;
  transform: translateY(calc(-100% - var(--space-s)));
}
.salto:focus-visible { transform: none; }

/* icons: Phosphor Light sprite, 20 px or more, colour from the text */
.ico { display: inline-block; width: 1.25em; height: 1.25em; min-width: 20px; min-height: 20px; flex: none; fill: currentColor; vertical-align: -0.28em; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--space-gutter));
  margin-inline: auto;
  padding-left: max(var(--space-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-gutter), env(safe-area-inset-right, 0px));
}
.wrap--estreito { max-width: calc(var(--wrap-narrow) + 2 * var(--space-gutter)); }

.sec { padding-block: var(--space-section); }
.sec--curta { padding-block: var(--space-xl); }
.sec + .sec:not([data-surface]):not(.campo) { padding-top: 0; }

/* 4 columns on a phone, 8 from 768 px, 12 from 1120 px */
.grelha { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-m); row-gap: var(--space-xl); }
@media (min-width: 48em) { .grelha { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 70em) { .grelha { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-l); } }

.pilha > * + * { margin-top: var(--space-m); }

@media (max-width: 74.99em) { .so-largo { display: none !important; } }
@media (min-width: 75em) { .so-estreito { display: none !important; } }

/* ---------- type ---------- */

/* Melodrama only from 32 px up and never with figures (brand-brief.md, «Letra») */
.titulo, .h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-feature-settings: var(--font-feature-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
}
.titulo { font-size: var(--step-4); }
.titulo--grande { font-size: var(--step-5); }
.h2 { font-size: var(--step-3); line-height: var(--leading-heading); }
/* one .ln per real line, broken by hand; the padding keeps the «y» tail and the accents inside the mask */
.titulo .ln, .h2 .ln { display: block; padding-block: .06em .16em; margin-block: -.06em -.16em; }
.titulo .ln > span, .h2 .ln > span { display: inline-block; }
.js .titulo .ln, .js .h2 .ln { overflow: hidden; }

.h3 { font: var(--weight-label) var(--step-2) / var(--leading-heading) var(--font-text); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 34em; }
.texto { max-width: var(--measure); }
.texto > * + * { margin-top: var(--space-s); }
.nota { font-size: var(--step--1); color: var(--color-text-muted); line-height: var(--leading-ui); }
.rotulo { font: var(--weight-strong) var(--step--1) / 1 var(--font-text); letter-spacing: var(--tracking-label); text-transform: uppercase; }

/* ---------- surfaces ---------- */

/* A navy field. Its top edge is the wave with echo (the default edge of the brand); the field above shows
   through the cut. Between two navy fields there is always a cream one. */
.campo {
  --color-surface: var(--navy);
  position: relative;
  margin-top: var(--wave-edge-h);
  background: var(--navy);
  color: var(--white);
}
.campo::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--wave-edge-h);
  background: url("/assets/img/padroes/onda-borda-eco.svg?v=e9d6ab3d") repeat-x left bottom / auto 100%;
  pointer-events: none;
}
.campo--simples::before { background-image: url("/assets/img/padroes/onda-borda.svg?v=d9545254"); }
/* a cream field after a navy one: its edge enters the navy above */
.campo--creme { --color-surface: var(--cream); background: var(--cream); color: var(--navy); margin-top: 0; }
.campo--creme::before { background-image: url("/assets/img/padroes/onda-borda-eco-creme.svg?v=f9a9a434"); }
.campo--creme.campo--simples::before { background-image: url("/assets/img/padroes/onda-borda-creme.svg?v=a389a9bd"); }
.campo--creme-fundo { --color-surface: var(--cream-deep); background: var(--cream-deep); color: var(--navy); }

/* ---------- the wave and the patterns ---------- */

/* the divider: three periods, starts and ends at the top of an arch; data-onda lets motion draw it */
.onda {
  display: block; width: calc(var(--wave-divider-h) * 5.405); max-width: 100%; height: var(--wave-divider-h);
  background: url("/assets/img/padroes/onda-divisoria.svg?v=ff83234c") repeat-x left center / auto 100%;
}
[data-surface="navy"] .onda, .on-navy .onda, .campo:not(.campo--creme) .onda { background-image: url("/assets/img/padroes/onda-divisoria-creme.svg?v=25ea3bc8"); }
.onda--larga { width: 100%; }

/* bands: never behind running text */
.faixa-ondas {
  min-height: clamp(220px, 30vw, 380px);
  background: var(--cream) url("/assets/img/padroes/onda-padrao.svg?v=b8f3e25c") repeat 0 0 / var(--wave-pattern-size) auto;
}
.faixa-ondas--inversa { background: var(--navy) url("/assets/img/padroes/onda-padrao-inverso.svg?v=285d4622") repeat 0 0 / var(--wave-pattern-size) auto; }
.faixa-every {
  min-height: clamp(220px, 30vw, 380px);
  background: var(--cream) url("/assets/img/padroes/every-day-padrao.svg?v=acf2af48") repeat 0 0 / var(--wave-every-size) auto;
}
.faixa-every--inversa { background: var(--navy) url("/assets/img/padroes/every-day-padrao-inverso.svg?v=308e9553") repeat 0 0 / var(--wave-every-size) auto; }

/* the seal: a navy disc with a white Phosphor Light icon, decorative (aria-hidden), never a button */
.selo {
  position: absolute; z-index: 2;
  width: var(--seal); height: var(--seal); border-radius: var(--radius-round);
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
}
.selo .ico { width: 50%; height: 50%; min-width: 0; min-height: 0; }
.selo--td { top: calc(var(--seal) * -0.4); right: calc(var(--seal) * -0.4); }
.selo--te { top: calc(var(--seal) * -0.4); left: calc(var(--seal) * -0.4); }
.selo--creme, [data-surface="navy"] .selo, .campo:not(.campo--creme) .selo { background: var(--cream); color: var(--navy); }
.selo--solto { position: relative; top: auto; right: auto; left: auto; }

/* the seal with the ring «Every day feels like Sunday»; data-selo-gira lets motion turn the ring */
.selo-anel { position: relative; width: var(--selo-anel, clamp(150px, 12vw + 110px, 240px)); aspect-ratio: 1; flex: none; }
.selo-anel__anel, .selo-anel__centro { position: absolute; display: block; }
.selo-anel__anel { inset: 0; width: 100%; height: 100%; }
.selo-anel__centro { inset: 25%; width: 50%; height: 50%; }

/* the menu's rule box: 1 px navy rule, the title cuts the top rule, the seal sits on the corner */
.caixa {
  position: relative;
  border: var(--rule) solid var(--color-rule);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-m) var(--space-m);
  margin-top: calc(var(--step-1) / 2);
}
.caixa__titulo {
  position: absolute; top: 0; left: var(--space-m); transform: translateY(-50%);
  margin: 0; padding: 0 var(--space-2xs);
  background: var(--color-surface);
  font: var(--weight-strong) clamp(1rem, 0.9rem + 0.5vw, 1.375rem) / 1 var(--font-text);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
}
.caixa > .selo--td { top: calc(var(--seal) * -0.4); right: calc(var(--seal) * -0.4); }
.caixa:has(> .selo--td) { margin-right: max(0px, calc(var(--seal) * 0.4 - var(--space-gutter) + 4px)); }
.caixa .foto { max-width: 360px; aspect-ratio: 4 / 5; }

/* the drinks' filled label: navy with the title in white */
.etiqueta {
  display: inline-block; padding: var(--space-2xs) var(--space-s); border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  font: var(--weight-strong) var(--step-1) / 1.1 var(--font-text); letter-spacing: var(--tracking-label); text-transform: uppercase;
}
[data-surface="navy"] .etiqueta, .campo:not(.campo--creme) .etiqueta { background: var(--cream); color: var(--navy); }

/* ---------- photographs (brand/fotografia/README.md): whole, no veil, no text on top, anchored ---------- */

.foto { display: block; margin: 0; position: relative; z-index: 1; }
.foto img, .foto picture { display: block; width: 100%; height: 100%; }
.foto img { object-fit: cover; border-radius: var(--radius-photo); background: var(--cream-deep); }

/* from 768 px the photo crosses the wave, half on each side */
@media (min-width: 48em) {
  .foto--sobe { margin-top: calc(-1 * (var(--wave-edge-h) + var(--space-2xl))); }
  .foto--desce { margin-bottom: calc(-1 * (var(--wave-edge-h) + var(--space-2xl))); }
}
/* the content edge of .wrap sits max(gutter, (100vw - wrap) / 2) from the screen; main clips the scrollbar's
   share of 100vw, so a bleed never makes the page scroll sideways */
.foto--sangra-esq { margin-left: calc(-1 * max(var(--space-gutter), (100vw - var(--wrap)) / 2)); }
.foto--sangra-dir { margin-right: calc(-1 * max(var(--space-gutter), (100vw - var(--wrap)) / 2)); }
@media (max-width: 47.99em) {
  .foto--sangra-esq, .foto--sangra-dir { margin-left: calc(-1 * var(--space-gutter)); margin-right: calc(-1 * var(--space-gutter)); }
  .foto--sangra-esq .selo--td, .foto--sangra-dir .selo--td { right: var(--space-gutter); }
  .foto--sangra-esq .selo--te, .foto--sangra-dir .selo--te { left: var(--space-gutter); }
}

/* the cut-out dish on the navy field: one photo, phone width only (brand/fotografia/README.md, «Recorte») */
.recorte { position: relative; overflow: hidden; margin: 0; padding-top: 12vw; }
.recorte img { position: relative; z-index: 1; width: 118%; max-width: none; height: auto; margin-left: -9%; }
.recorte::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24vw;
  background: url("/assets/img/padroes/onda-divisoria-creme.svg?v=25ea3bc8") repeat-x left center / auto 100%;
}
@media (min-width: 48em) { .recorte { display: none; } }

/* ---------- buttons and links ---------- */

/* the drinks' filled label as a button: 48 px, radius 4 px, Figtree 600 in capitals; one CTA form, infinitive */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: var(--button-h); padding: 0 var(--space-m);
  border: var(--rule) solid var(--color-action); border-radius: var(--radius);
  background: var(--color-action); color: var(--color-action-text);
  font: var(--weight-label) var(--step--1) / 1.1 var(--font-text);
  letter-spacing: var(--tracking-label); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) ease, border-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.btn .ico { font-size: 1.15em; }
.btn--linha { background: transparent; color: var(--color-action); }
.btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--cream-deep); border-color: var(--cream-deep); color: var(--navy-muted); cursor: not-allowed; }

/* a strong text link with an arrow */
.ligacao {
  display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: var(--tap); white-space: nowrap;
  font-weight: var(--weight-label); text-decoration: underline; text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-hover) ease;
}
.ligacao .ico { transition: transform var(--dur-micro) var(--ease-out); }
.ligacao:active { opacity: .72; }

/* round control: the icon button and the language switch */
.circulo {
  display: inline-grid; place-items: center; flex: none;
  width: var(--tap); height: var(--tap); padding: 0;
  border: var(--rule) solid currentColor; border-radius: var(--radius-round);
  background: transparent; color: inherit;
  font: var(--weight-label) var(--step--1) / 1 var(--font-text); letter-spacing: .04em; text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) ease;
}
.circulo .ico { width: 22px; height: 22px; }
.circulo:active { transform: scale(.94); }

.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--color-action-hover); border-color: var(--color-action-hover); }
  .btn--linha:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--color-ghost-hover); border-color: var(--color-action); }
  .ligacao:hover { text-decoration-color: currentColor; }
  .ligacao:hover .ico { transform: translateX(3px); }
  .circulo:hover { background: var(--color-ghost-hover); }
}

/* ---------- form field (labels above, white field, 48 px, error with icon and text) ---------- */

.controlo { display: grid; gap: var(--space-2xs); max-width: 28rem; }
.controlo__rotulo { font-weight: var(--weight-ui); }
.controlo__campo {
  width: 100%; min-height: 48px; padding: 0 var(--space-s);
  background: var(--color-surface-raised); color: var(--navy);
  border: var(--rule) solid var(--navy); border-radius: var(--radius);
}
textarea.controlo__campo { min-height: 7.5rem; padding-block: var(--space-xs); resize: vertical; }
.controlo__campo:focus-visible { outline: var(--rule-strong) solid var(--color-focus); outline-offset: 1px; }
.controlo__ajuda { font-size: var(--step--1); color: var(--color-text-muted); }
.controlo__erro { display: flex; gap: var(--space-2xs); align-items: flex-start; font-size: var(--step--1); color: var(--color-error); }
.controlo__erro .ico { margin-top: .1em; }
.controlo.is-erro .controlo__campo, .controlo__campo[aria-invalid="true"] { border: var(--rule-strong) solid var(--color-error); }

/* ---------- ratings line (_partes/avaliacoes.mjs): the number, then source and date in words ---------- */

.avaliacoes { display: grid; gap: var(--space-s); }
.avaliacao { margin: 0; }
.avaliacao__ligacao {
  display: inline-grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-s); align-items: center;
  min-height: var(--tap); color: inherit; text-decoration: none;
}
.avaliacao__nota { font: var(--weight-text-light) var(--step-3) / 1 var(--font-text); font-variant-numeric: var(--numeric); }
.avaliacao__texto { font-size: var(--step--1); line-height: var(--leading-ui); color: var(--color-text-muted); max-width: 26ch; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--dur-hover) ease; }
@media (hover: hover) and (pointer: fine) { .avaliacao__ligacao:hover .avaliacao__texto { text-decoration-color: currentColor; } }

/* ---------- hours (_partes/horario.mjs) ---------- */

.horario { --rotulo: 7.5rem; --horario-hoje: var(--color-text); --trilho: var(--cream-deep); display: grid; gap: var(--space-l); }
@media (min-width: 40em) { .horario { --rotulo: 12.5rem; } }
[data-surface="navy"] .horario, .campo:not(.campo--creme) .horario { --horario-hoje: var(--yellow); --trilho: var(--rule-soft-inverse); }

.horario__estado, .horario-curto__estado { display: flex; align-items: flex-start; gap: var(--space-2xs); font-weight: var(--weight-label); }
.horario__estado { font-size: var(--step-1); line-height: var(--leading-ui); }
.horario__estado .ico, .horario-curto__estado .ico { margin-top: .08em; }

.horario__fechos, .horario-curto__fechos { list-style: none; display: grid; gap: var(--space-2xs); font-size: var(--step--1); }
.horario__fechos li, .horario-curto__fechos li { display: flex; gap: var(--space-2xs); align-items: flex-start; }

/* today's ruler: the menu periods as rows on the day's axis, the marker for now crossing them */
.horario__periodos { position: relative; list-style: none; display: grid; row-gap: var(--space-s); }
.horario__periodo { display: grid; grid-template-columns: var(--rotulo) minmax(0, 1fr); column-gap: var(--space-s); align-items: center; }
.horario__nome { font-size: var(--step--1); font-weight: var(--weight-ui); line-height: var(--leading-ui); }
.horario__intervalo { display: block; font-weight: var(--weight-text); color: var(--color-text-muted); font-variant-numeric: var(--numeric); }
.horario__periodo.is-fechado .horario__nome { color: var(--color-text-muted); }
.horario__trilho { position: relative; height: 12px; border-radius: var(--radius); background: var(--trilho); }
.horario__bloco {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--i) * 100%); right: calc((1 - var(--f)) * 100%);
  border-radius: var(--radius); background: var(--color-text);
}
.horario__bloco--fechado { background: transparent; border: var(--rule) solid var(--color-text-muted); }
.horario__agora {
  position: absolute; top: calc(-1 * var(--space-2xs)); bottom: calc(-1 * var(--space-2xs)); width: var(--rule-strong);
  left: calc(var(--rotulo) + var(--space-s) + (100% - var(--rotulo) - var(--space-s)) * var(--x) - 1px);
  background: var(--horario-hoje); list-style: none; pointer-events: none;
  box-shadow: 0 0 0 2px var(--color-surface);   /* a gap of the surface around the line, so it reads across a block */
}
.horario__agora::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px;
  border-radius: var(--radius-round); background: inherit; transform: translateX(-50%);
}
.horario__agora.is-fora { display: none; }
.horario__eixo {
  position: relative; height: 1.5em; margin: var(--space-2xs) 0 0 calc(var(--rotulo) + var(--space-s));
  font-size: var(--step--1); color: var(--color-text-muted); font-variant-numeric: var(--numeric);
}
.horario__eixo span { position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-50%); white-space: nowrap; }
.horario__eixo span:first-child { transform: none; }
.horario__eixo span:last-child { transform: translateX(-100%); }
/* a phone: each period's name and hours sit above a full-width track, and the axis keeps only its ends. The
   names and the axis labels carry the surface behind them, so the now-marker passes behind the letters
   (the ruler of the identity page) */
@media (max-width: 39.99em) {
  .horario__periodos { row-gap: var(--space-m); }
  .horario__periodo { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xs); }
  .horario__nome { position: relative; z-index: 1; justify-self: start; padding-right: 4px; background: var(--color-surface); }
  .horario__agora { left: calc(100% * var(--x) - 1px); }
  .horario__eixo { margin-left: 0; }
  .horario__eixo span { z-index: 1; padding-inline: 4px; background: var(--color-surface); }
  .horario__eixo span:first-child { padding-left: 0; }
  .horario__eixo span:last-child { padding-right: 0; }
  .horario__eixo span:not(:first-child):not(:last-child) { display: none; }
}
@media (min-width: 40em) {
  .horario__intervalo { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* the week: one ruler row per weekday, today in weight and colour */
.horario__semana { list-style: none; display: grid; row-gap: var(--space-2xs); }
.horario__linha {
  display: grid; grid-template-columns: minmax(5.5rem, var(--rotulo)) minmax(3rem, 1fr) minmax(0, auto);
  column-gap: var(--space-s); align-items: center; min-height: 2rem;
}
.horario__linha .horario__trilho { height: 8px; }
.horario__linha .horario__bloco { background: var(--color-text-muted); }
.horario__linha .horario__bloco--fechado { background: transparent; }
.horario__horas { font-variant-numeric: var(--numeric); text-align: right; }
.horario__horas .ico, .horario__fecho-servico .ico { margin-right: 4px; }
.horario__fecho-servico { display: block; font-size: var(--step--1); }
/* from 40em every row shares one track width (subgrid), so the rulers line up from Monday to Sunday */
@media (min-width: 40em) {
  .horario__semana { grid-template-columns: var(--rotulo) minmax(3rem, 1fr) auto; column-gap: var(--space-s); }
  .horario__linha { grid-column: 1 / -1; grid-template-columns: subgrid; }
}
.horario__linha.is-fechado { color: var(--color-text-muted); }
.horario__linha.is-hoje { font-weight: var(--weight-strong); color: var(--horario-hoje); }
.horario__linha.is-hoje .horario__bloco:not(.horario__bloco--fechado) { background: var(--horario-hoje); }
.horario__nota { font-size: var(--step--1); color: var(--color-text-muted); }
/* a phone: the day and its hours on one line, the ruler under them */
@media (max-width: 39.99em) {
  .horario__semana { row-gap: var(--space-xs); }
  .horario__linha { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; min-height: 0; }
  .horario__linha .horario__trilho { grid-column: 1 / -1; grid-row: 2; height: 6px; }
}

/* the short version: the sentence, then the days grouped */
.horario-curto { display: grid; gap: var(--space-s); }
.horario-curto__lista { display: grid; gap: var(--space-xs); margin: 0; }
.horario-curto__lista dt { color: var(--color-text-muted); font-size: var(--step--1); }
.horario-curto__lista dd { margin: 0; font-variant-numeric: var(--numeric); }

/* ---------- header: the awning. Navy band, the logo between two thin white rules ---------- */

/* phone and tablet: [menu] — logo — [EN]; from 75em: four links — logo — Encomendar, «Reservar mesa», EN */
.cabecalho { position: relative; z-index: var(--z-header); view-transition-name: cabecalho; }
.cabecalho__barra {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  column-gap: var(--space-xs); min-height: var(--cabecalho-h);
}
.cabecalho__lado { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.cabecalho__lado--fim { justify-content: flex-end; }
.cabecalho__centro { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); min-width: 0; }
.cabecalho__filete { flex: 1 1 0; min-width: 0; max-width: 72px; height: var(--rule); background: var(--color-rule); }
.cabecalho__marca { display: block; flex: none; padding: var(--space-2xs) 0; text-decoration: none; }
.cabecalho__marca img { height: var(--logo-h); width: auto; }
.cabecalho__lista { display: none; list-style: none; }
.cabecalho__lista a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-2xs);
  font-weight: var(--weight-ui); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .45em;
  white-space: nowrap; transition: text-decoration-color var(--dur-hover) ease;
}
.cabecalho__lista a[aria-current="page"] { text-decoration-color: currentColor; }
.cabecalho__lista a:active { opacity: .72; }
.cabecalho__reservar { display: none; }
@media (hover: hover) and (pointer: fine) { .cabecalho__lista a:hover { text-decoration-color: currentColor; } }

@media (min-width: 75em) {
  .cabecalho__barra { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: var(--space-m); }
  .cabecalho__lista { display: flex; gap: var(--space-2xs); }
  .cabecalho__lado > .cabecalho__lista:first-child, .cabecalho__menu + .cabecalho__lista { margin-left: calc(-1 * var(--space-2xs)); }
  .cabecalho__reservar { display: inline-flex; }
  .cabecalho__barra:not(.menu__topo) .cabecalho__menu { display: none; }
  .cabecalho__filete { flex: 0 0 clamp(24px, 2.4vw, 48px); }
  .cabecalho__centro { gap: var(--space-s); }
}

/* the demo strip, right under the awning */
.faixa-demo { background: var(--cream-deep); color: var(--navy); font-size: var(--step--1); line-height: var(--leading-ui); }
.faixa-demo p { display: flex; gap: var(--space-2xs); align-items: flex-start; padding-block: var(--space-2xs); }

/* ---------- the phone menu: a modal dialog that unrolls from the awning ---------- */

.menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; overflow-y: auto; overscroll-behavior: contain;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-drawer-out) var(--ease-drawer), display var(--dur-drawer-out) allow-discrete, overlay var(--dur-drawer-out) allow-discrete;
}
.menu[open] { display: flex; clip-path: inset(0); transition-duration: var(--dur-drawer-in); }
@starting-style { .menu[open] { clip-path: inset(0 0 100% 0); } }
.menu::backdrop { background: transparent; }
html.menu-aberto, html:has(.menu[open]) { overflow: hidden; }
.menu__topo { flex: none; }
.menu__nav { flex: 1 0 auto; padding-block: var(--space-xl); }
.menu__lista { list-style: none; display: grid; gap: var(--space-2xs); }
.menu__lista a {
  display: block; padding-block: var(--space-2xs);
  font-family: var(--font-display); font-weight: var(--weight-display); font-feature-settings: var(--font-feature-display);
  font-size: var(--step-4); line-height: var(--leading-display); text-decoration: none;
}
.menu__lista a[aria-current="page"] { color: var(--yellow); }
.menu__lista a:active { opacity: .72; }
.menu__acoes { flex: none; padding-block: 10px; }
@media (min-width: 75em) { .menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .menu { clip-path: none; opacity: 0; transition: opacity var(--dur-fade-reduced) ease, display var(--dur-fade-reduced) allow-discrete, overlay var(--dur-fade-reduced) allow-discrete; }
  .menu[open] { opacity: 1; }
  @starting-style { .menu[open] { opacity: 0; } }
}

/* ---------- the phone bar: «Reservar» and «Encomendar», fixed, below 75em only ---------- */

.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-action-bar);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  view-transition-name: barra;
}
.barra__acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs); }
.barra__acoes.wrap { max-width: calc(34rem + 2 * var(--space-gutter)); }
.barra__acoes .btn { width: 100%; padding-inline: var(--space-xs); }
/* below 384 px «Encomendar» needs the whole button: the icons go */
@media (max-width: 23.99em) { .barra__acoes .btn .ico { display: none; } }
@media (min-width: 75em) { .barra { display: none; } }
/* a page that needs the bottom of the screen for itself (a booking step) sets <body data-sem-barra> */
[data-sem-barra] .barra { display: none; }

/* ---------- footer: a navy field with the wave edge, one grid for the columns and the legal row ---------- */

.rodape {
  position: relative; margin-top: calc(var(--wave-edge-h) + var(--space-section));
  padding: var(--space-2xl) 0 var(--space-xl);
}
.rodape::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--wave-edge-h);
  background: url("/assets/img/padroes/onda-borda-eco.svg?v=e9d6ab3d") repeat-x left bottom / auto 100%;
  pointer-events: none;
}
/* a page that ends on a navy field keeps a cream gap before the footer: two navy fields never touch */
@media (max-width: 74.99em) {
  .rodape { padding-bottom: calc(var(--space-xl) + var(--barra-h) + env(safe-area-inset-bottom, 0px)); }
  [data-sem-barra] .rodape { padding-bottom: var(--space-xl); }
}
@media (pointer: fine) { .rodape { --tap-rodape: 2rem; } }
.rodape__grelha {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-m); row-gap: var(--space-xl); align-items: start;
}
.rodape__col--marca { grid-column: 1 / -1; }
.rodape__marca { display: inline-block; }
.rodape__marca img { width: clamp(150px, 8vw + 120px, 200px); height: auto; }
.rodape__titulo {
  margin: 0 0 var(--space-s);
  font: var(--weight-label) var(--step--1) / var(--leading-ui) var(--font-text);
  color: var(--color-text-muted);
}
.rodape__morada { margin-bottom: var(--space-2xs); }
.rodape__lista { list-style: none; display: grid; }
.rodape__lista a { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: var(--tap-rodape, var(--tap)); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--dur-hover) ease; }
.rodape__lista a[aria-current="page"] { text-decoration-color: currentColor; }
.rodape__lista a:active { opacity: .72; }
.rodape .horario-curto { gap: var(--space-xs); }
.rodape .horario-curto__estado { font-weight: var(--weight-label); }

/* the legal row sits on the same columns as the rest (subgrid), one baseline, never loose lines */
.rodape__legal {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: var(--space-s); align-items: start;
  list-style: none; padding-top: var(--space-m); border-top: var(--rule) solid var(--color-rule-soft);
  font-size: var(--step--1); line-height: var(--leading-ui); color: var(--color-text-muted);
}
.rodape__legal li:nth-child(n + 3) { grid-column: 1 / -1; }
/* the legal links stay inline so every item starts on the same line; the touch area grows around them */
.rodape__legal a { position: relative; color: var(--white); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--dur-hover) ease; }
.rodape__legal a::after { content: ""; position: absolute; inset: calc((var(--tap-rodape, var(--tap)) - 1.3em) / -2) -4px; }
.rodape__legal a:active { opacity: .72; }
@media (hover: hover) and (pointer: fine) {
  .rodape__lista a:hover, .rodape__legal a:hover { text-decoration-color: currentColor; }
}

@media (min-width: 48em) {
  .rodape__grelha { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rodape__legal li:nth-child(n + 3) { grid-column: auto; }
}
@media (min-width: 70em) {
  .rodape__grelha { grid-template-columns: 1.15fr 1fr 1fr 0.85fr 0.85fr; column-gap: var(--space-l); }
  .rodape__col--marca { grid-column: auto; }
  .rodape__marca { margin-top: 2px; }   /* the logo's ink top meets the cap height of the column titles */
  .rodape__legal li:nth-child(4) { grid-column: 4 / -1; }
}

/* ---------- 404 (the «Every day feels like» paper as the ground) ---------- */

.p404 { display: grid; }
.p404__campo {
  position: relative; display: grid; place-items: center;
  min-height: clamp(220px, 50vw, 300px); margin-inline: calc(-1 * var(--space-gutter));
  background: var(--cream) url("/assets/img/padroes/every-day-padrao.svg?v=acf2af48") repeat 0 0 / var(--wave-every-size) auto;
}
.p404__campo .selo-anel { --selo-anel: clamp(132px, 30vw, 200px); }
.p404__texto { padding-block: var(--space-xl) var(--space-section); }
.p404__texto .lead { margin-top: var(--space-m); }
.p404__texto .acoes { margin-top: var(--space-l); }
@media (min-width: 60em) {
  .p404 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: min(78svh, 760px); }
  .p404__texto { order: -1; align-self: center; padding-block: var(--space-section); padding-right: var(--space-2xl); }
  .p404__campo { min-height: 100%; margin-inline: 0 calc(-1 * max(var(--space-gutter), (100vw - var(--wrap)) / 2)); }
  .p404__campo .selo-anel { --selo-anel: clamp(180px, 16vw, 240px); }
}

/* ---------- legal pages (privacy) ---------- */

.legal-topo { padding-block: var(--space-section) var(--space-xl); }
.legal-topo .lead { margin-top: var(--space-m); }
.legal { padding-bottom: var(--space-section); }
.legal > * + * { margin-top: var(--space-2xl); }
.legal .caixa { margin-top: var(--space-l); }
.legal__sec h2 { margin-bottom: var(--space-s); }
.legal__sec > * + * { margin-top: var(--space-s); }
.legal__sec p, .legal__lista li { max-width: var(--measure); }
.legal__lista { list-style: none; display: grid; gap: var(--space-xs); }
.legal__lista li { padding-left: var(--space-m); position: relative; }
.legal__lista li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: var(--rule); background: var(--color-text);
}
.legal__data { color: var(--color-text-muted); font-size: var(--step--1); }

@media print {
  .cabecalho, .barra, .menu, .faixa-demo, .rodape::before { display: none !important; }
  .rodape { margin-top: var(--space-xl); }
}
