/* Sinchi: the shared stylesheet (owner: shell). Load after /assets/css/tokens.css, the verbatim copy of
   brand/tokens.css: every colour, size, space and curve here is a token from that file.
   Direction «Cartaz peruano»: flat brand colour, condensed capitals, the circle as the only curve
   (radius 0 or 50 %), no shadows, no glass. Each page adds its own CSS and does not redefine tokens.
   Contents: fonts · surfaces · base · layout · type · buttons · patterns · photo treatments · seal ·
   DEMO banner · header and menu · footer · hours · ratings · 404 and privacy · pointer and motion. */

/* Fonts (OFL 1.1, licences in /assets/fonts/licencas/). Only League Gothic is preloaded (head part). */
@font-face {
  font-family: "League Gothic";
  src: url("../fonts/league-gothic-var.woff2") format("woff2");
  font-weight: 400;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Arial with Archivo's metrics while Archivo loads, so text does not jump on swap (brand/fonts/fonts.css). */
@font-face {
  font-family: "Archivo fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 98.8%;
  ascent-override: 88.9%;
  descent-override: 21.3%;
  line-gap-override: 0%;
  font-display: swap;
}

/* Layout tokens of the shell (not brand values) */
:root {
  --cabecalho-h: 56px;
  --faixa-h: 24px;
}
@media (min-width: 1024px) {
  :root { --cabecalho-h: 72px; --faixa-h: 32px; }
}

/* Surfaces. tokens.css defines petrol, deep and mustard; cream is the page and is restored here for a
   cream block inside a dark section. Closed-state text is rust only where rust reads (cream, mustard). */
[data-surface="cream"] {
  --surface: var(--cream);
  --text: var(--petrol-deep);
  --text-heading: var(--petrol);
  --text-muted: var(--petrol-muted);
  --label: var(--petrol);
  --action: var(--petrol);
  --on-action: var(--cream);
  --action-hover: var(--petrol-deep);
  --focus: var(--petrol);
  --rule: var(--petrol);
  --brand: var(--petrol);
  --on-brand: var(--cream);
  --estado-fechado: var(--rust);
}
.on-dark, [data-surface="petrol"], [data-surface="deep"] { --estado-fechado: var(--text); --trilho: rgb(207 210 200 / .35); }
[data-surface="mustard"] { --estado-fechado: var(--rust); --trilho: rgb(22 53 59 / .3); }
[data-surface] { background-color: var(--surface); color: var(--text); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--cabecalho-h) + var(--sp-4));
  scrollbar-color: var(--petrol) var(--cream);
  background: var(--cream);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-text);
  overflow-x: clip;
}
/* Clip sideways overflow (the turning seal ring near an edge) without making main a scroll container, so
   position: sticky inside pages keeps working. Content sits inside .wrap, clear of the clip edge. */
main { flex: 1 0 auto; overflow-x: clip; }
::selection { background: var(--selection); color: var(--on-selection); }
:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a, button, [role="button"], label, summary { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button, .btn, .btn-circ, .ligacao { -webkit-user-select: none; user-select: none; }
input, select, textarea { font: inherit; font-size: max(1.0625rem, 16px); }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text-heading);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-title); letter-spacing: var(--tr-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-title); letter-spacing: var(--tr-h2); }
h3 { font-size: var(--fs-h3); line-height: .95; letter-spacing: var(--tr-h3); }
p, li, dd { text-wrap: pretty; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: var(--fw-strong); }
.num, time, .preco, .horas, .horario, .horario-curto, [data-num] { font-variant-numeric: tabular-nums lining-nums; }
.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

.salto {
  position: absolute; left: var(--sp-3); top: -200px; z-index: var(--z-modal);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4);
  background: var(--mustard); color: var(--petrol-deep);
  font-family: var(--font-display); font-size: var(--fs-label); letter-spacing: var(--tr-label);
  text-transform: uppercase; text-decoration: none;
}
.salto:focus { top: var(--sp-3); outline-color: var(--petrol-deep); }

/* Layout: one wrap, a 4 / 8 / 12 column grid, section rhythm with compression and expansion */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}
.grelha {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-4);
}
@media (min-width: 768px) { .grelha { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); } }
@media (min-width: 1024px) { .grelha { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.sec { padding-block: var(--section); }
.sec--curta { padding-block: var(--sp-8); }
.sec__cabeca { max-width: var(--measure); margin-bottom: var(--sp-7); }
.sec__cabeca > * + * { margin-top: var(--sp-5); }

/* Type */
.titulo-cartaz {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-title);
  letter-spacing: var(--tr-h1);
  text-transform: uppercase;
  color: var(--text-heading);
}
.titulo-cartaz--gigante { font-size: var(--fs-poster); line-height: var(--lh-poster); letter-spacing: var(--tr-poster); }
/* One .ln per real line, broken by hand: <span class="ln"><span>…</span></span>. The padding keeps
   accents (Í, Ã, Ñ) inside the mask the motion worker slides the line through. */
.ln { display: block; overflow: hidden; padding-top: .16em; margin-top: -.16em; }
.ln > span { display: block; }
.h2, .h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; text-wrap: balance; color: var(--text-heading); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-title); letter-spacing: var(--tr-h2); }
.h3 { font-size: var(--fs-h3); line-height: .95; letter-spacing: var(--tr-h3); }
.rotulo {
  font-family: var(--font-display); font-size: var(--fs-label); line-height: var(--lh-label);
  letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--label);
}
.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 38ch; }
.texto { max-width: var(--measure); }
.texto > * + * { margin-top: var(--sp-4); }
.nota { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); max-width: 62ch; }

/* Buttons: a square-cornered block for words, a full circle for a lone icon. Colours follow the surface. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 var(--sp-5);
  background: var(--action); color: var(--on-action);
  border: 0; border-radius: var(--radius);
  font-family: var(--font-display); font-size: var(--fs-label); line-height: 1;
  letter-spacing: var(--tr-label); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform var(--d-press) var(--e-out), background-color var(--d-hover) ease, color var(--d-hover) ease;
}
.btn .ico { width: 20px; height: 20px; }
.btn--grande { min-height: 56px; padding: 0 var(--sp-6); }
.btn:active { transform: scale(.97); }
.btn[aria-disabled="true"], .btn:disabled { background: var(--rule-soft); color: var(--petrol-muted); cursor: not-allowed; transform: none; }
.btn-circ {
  display: inline-grid; place-items: center; flex: none;
  width: var(--circ, 44px); height: var(--circ, 44px); padding: 0; border: 0; border-radius: var(--radius-circle);
  background: var(--circ-fundo, var(--action)); color: var(--circ-cor, var(--on-action));
  transition: transform var(--d-press) var(--e-out), background-color var(--d-hover) ease;
}
.btn-circ .ico { width: 22px; height: 22px; }
.btn-circ--grande { --circ: 56px; }
.btn-circ:active { transform: scale(.94); }
/* A text link with weight: the second action next to a button («Ver a carta»). */
.ligacao {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-family: var(--font-display); font-size: var(--fs-label); line-height: 1;
  letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--text-heading);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .24em;
  transition: color var(--d-hover) ease, text-decoration-color var(--d-hover) ease;
}
.ligacao .ico { width: 18px; height: 18px; transition: transform var(--d-short) var(--e-out); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); }

/* Patterns (brand/padroes): bands for dividers, a dense ground for brand moments, never behind body text */
.faixa {
  display: block; height: var(--faixa-h);
  background: var(--petrol) url("../img/padroes/faixa-petroleo.svg") repeat-x 0 0 / auto 100%;
}
.faixa--mostarda { background-color: var(--mustard); background-image: url("../img/padroes/faixa-mostarda.svg"); }
.faixa--creme { background-color: var(--cream); background-image: url("../img/padroes/faixa-creme.svg"); }
.faixa--profundo { background-color: var(--petrol-deep); background-image: url("../img/padroes/faixa-profundo.svg"); }
.fundo-padrao { background: var(--cream) url("../img/padroes/fundo-creme.svg") repeat 0 0 / clamp(160px, 16vw, 240px); }
.fundo-padrao--petroleo { background-color: var(--petrol); background-image: url("../img/padroes/fundo-petroleo.svg"); }
.fundo-padrao--mostarda { background-color: var(--mustard); background-image: url("../img/padroes/fundo-mostarda.svg"); }

/* Photo treatments (brand/fotografia/README.md). No filter, no rounded corners, no frame, no caption. */
/* 1. A plate seen from above, cut round at its rim, on flat brand colour; an offset disc may sit behind.
      <div class="foto-circulo" data-surface="mustard"><span class="foto-circulo__disco"></span>
      <img class="foto-circulo__prato" src="…" alt="…" width="600" height="600"></div>
      --disco sets the disc colour, --disco-x / --disco-y its place, --prato the plate's width. */
.foto-circulo {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; place-items: center; aspect-ratio: 1;
  background: var(--surface);
}
.foto-circulo__disco {
  position: absolute; z-index: -1; width: 64%; aspect-ratio: 1; border-radius: var(--radius-circle);
  left: var(--disco-x, -10%); bottom: var(--disco-y, -12%);
  background: var(--disco, var(--petrol));
}
.foto-circulo__prato, .circulo {
  width: var(--prato, 72%); aspect-ratio: 1; object-fit: cover;
  object-position: var(--foco, 50% 50%); border-radius: var(--radius-circle);
}
.circulo { width: 100%; }
/* 2. A vertical photo: a square-cornered rectangle in a petrol block, a mustard circle behind it.
      <div class="foto-bloco" data-surface="petrol"><img src="…" alt="…" width="660" height="880"></div> */
.foto-bloco {
  position: relative; isolation: isolate; overflow: clip;
  padding: 14% 14% 0 12%;
  background: var(--petrol);
}
.foto-bloco::before {
  content: ""; position: absolute; z-index: -1;
  top: var(--sol-y, -9%); right: var(--sol-x, -14%);
  width: var(--sol, 66%); aspect-ratio: 1; border-radius: var(--radius-circle);
  background: var(--sol-cor, var(--mustard));
}
.foto-bloco > img, .foto-bloco > picture > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
/* 3. Text on a photo: only on a deep-petrol veil at 74 %, a half circle (default) or a block.
      <div class="foto-veu"><img …><div class="foto-veu__veu">texto</div></div> */
.foto-veu { position: relative; overflow: clip; background: var(--petrol-deep); }
.foto-veu > img, .foto-veu > picture > img { width: 100%; height: 100%; object-fit: cover; }
.foto-veu__veu {
  position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 2 / 1;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgb(22 53 59 / .74);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 12% 10%; text-align: center; color: var(--cream);
  --text: var(--cream); --text-heading: var(--mustard); --focus: var(--mustard);
}
.foto-veu__veu--bloco { aspect-ratio: auto; border-radius: 0; align-items: flex-start; text-align: left; padding: var(--sp-5); }
/* 4. The house seal in a calm corner of the photo, one per image, 2X clear space around it.
      <div class="foto-selo foto-selo--sup-esq"><img …><img class="foto-selo__selo" src="/assets/img/logo/sinchi-principal-anel.svg" alt="" width="1000" height="1000"></div> */
.foto-selo { position: relative; overflow: clip; }
.foto-selo > img:first-child, .foto-selo > picture > img { width: 100%; height: 100%; object-fit: cover; }
.foto-selo__selo { position: absolute; width: var(--selo, 26%); top: 5%; left: 5%; }
.foto-selo--sup-dir .foto-selo__selo { left: auto; right: 5%; }
.foto-selo--inf-esq .foto-selo__selo { top: auto; bottom: 5%; }
.foto-selo--inf-dir .foto-selo__selo { top: auto; bottom: 5%; left: auto; right: 5%; }

/* The seal: the ring of text around the symbol. data-selo-gira lets the motion worker turn the ring.
   <div class="selo" data-selo-gira><img class="selo__anel" src="/assets/img/padroes/anel-texto.svg" alt="" width="400" height="400">
   <img class="selo__simbolo" src="/assets/img/logo/sinchi-simbolo.svg" alt="" width="1000" height="1000"></div> */
.selo { position: relative; width: var(--selo-tam, 200px); aspect-ratio: 1; flex: none; }
.selo__anel { position: absolute; inset: 0; width: 100%; height: 100%; }
.selo__simbolo { position: absolute; inset: 20%; width: 60%; height: 60%; }
/* On a pattern or a photo the seal sits on a cream disc, as the logo sits on its cream ring. */
.selo--disco::before { content: ""; position: absolute; inset: -5%; border-radius: var(--radius-circle); background: var(--cream); }

/* DEMO banner: a line above the header, scrolls away; the header stays */
.faixa-demo {
  padding-block: var(--sp-2);
  font-size: var(--fs-micro); line-height: 1.4; font-weight: 500;
  color: var(--mist);
  border-bottom: 1px solid rgb(207 210 200 / .22);
}
.faixa-demo .wrap { display: block; }
.faixa-demo b { color: var(--mustard); font-weight: 600; }

/* Header */
.cabecalho {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--cabecalho-h);
  view-transition-name: cabecalho;
}
.cabecalho__barra { height: 100%; display: flex; align-items: center; gap: var(--sp-2); }
.cabecalho__marca { display: flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; }
.cabecalho__logo { height: 32px; width: auto; }
.cabecalho__logo--larga { display: none; }
.cabecalho__reservar { min-height: 44px; padding: 0 var(--sp-4); }
.cabecalho__menu, .menu__fechar { --circ-fundo: var(--cream); --circ-cor: var(--petrol-deep); }
.cabecalho__nav ul { display: flex; gap: clamp(20px, 2.2vw, 36px); }
.cabecalho__nav a, .cabecalho__lingua {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font-family: var(--font-display); font-size: var(--fs-label); line-height: 1;
  letter-spacing: var(--tr-label); text-transform: uppercase; text-decoration: none;
  color: var(--cream);
  transition: color var(--d-hover) ease;
}
.cabecalho__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--mustard); transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-short) var(--e-out);
}
.cabecalho__nav a[aria-current="page"] { color: var(--mustard); }
.cabecalho__nav a[aria-current="page"]::after { transform: scaleX(1); }
.cabecalho__lingua { min-width: 44px; padding-inline: var(--sp-2); }
@media (max-width: 1023px) {
  .cabecalho__nav, .cabecalho__lingua { display: none; }
}
@media (max-width: 359px) {
  /* The compact logo cropped to its disc, so «Reservar mesa» keeps its words at 320 px. */
  .cabecalho__marca .cabecalho__logo--compacta { width: 32px; object-fit: cover; object-position: left center; }
}
@media (min-width: 1024px) {
  .cabecalho__barra { gap: var(--sp-5); }
  .cabecalho__logo--compacta, .cabecalho__menu { display: none; }
  .cabecalho__logo--larga { display: block; height: 48px; }
  .cabecalho__nav, .cabecalho__lingua { display: inline-flex; }
  .cabecalho__reservar { min-height: 48px; padding: 0 var(--sp-5); }
}

/* The phone menu: a modal dialog (focus stays inside, Escape closes, focus returns to the button) */
.menu {
  position: fixed; inset: 0; margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px);
  width: 100%; max-width: none; height: 100dvh; max-height: none;
  border: 0; overflow-y: auto; overscroll-behavior: contain;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform var(--d-drawer-out) var(--e-gaveta), display var(--d-drawer-out) allow-discrete, overlay var(--d-drawer-out) allow-discrete;
}
.menu[open] {
  display: flex;
  transform: none;
  transition: transform var(--d-drawer-in) var(--e-gaveta), display var(--d-drawer-in) allow-discrete, overlay var(--d-drawer-in) allow-discrete;
}
@starting-style { .menu[open] { transform: translateY(-100%); } }
.menu::backdrop { background: transparent; }
.menu__cabeca { flex: none; height: var(--cabecalho-h); display: flex; align-items: center; justify-content: space-between; }
.menu__nav { flex: none; padding-block: var(--sp-5) var(--sp-6); }
.menu__lista li + li { border-top: 1px solid rgb(207 210 200 / .3); }
.menu__lista a {
  display: flex; align-items: center; min-height: 64px;
  font-family: var(--font-display); font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1;
  letter-spacing: var(--tr-h2); text-transform: uppercase; text-decoration: none; color: var(--cream);
  transition: color var(--d-hover) ease;
}
.menu__lista a[aria-current="page"] { color: var(--mustard); }
.menu__pe { margin-top: auto; padding-block: var(--sp-5) var(--sp-7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); }
.menu__reservar { min-height: 56px; padding: 0 var(--sp-6); }
html:has(.menu[open]) { overflow: hidden; }

/* Footer: one 12-column grid for the columns and the legal line, titles on one baseline */
.rodape { margin-top: auto; }
.rodape__grelha {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-4);
  padding-block: var(--sp-8) var(--sp-7);
}
.rodape__col { display: grid; align-content: start; justify-items: start; gap: var(--sp-1); font-size: var(--fs-small); line-height: var(--lh-small); }
.rodape__col--marca, .rodape__col--morada, .rodape__col--contactos, .rodape__col--horario { grid-column: 1 / -1; }
.rodape__titulo {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--tr-label);
  color: var(--label);
}
.rodape__logo { height: 48px; width: auto; }
.rodape__col a:not(.ligacao) {
  /* Text at the top of the 44 px target, so a column that opens with a link starts on the same line as one
     that opens with text. */
  display: inline-flex; align-items: flex-start; min-height: 44px;
  text-decoration-color: rgb(207 210 200 / .5);
  transition: color var(--d-hover) ease, text-decoration-color var(--d-hover) ease;
}
.rodape__col .ligacao { font-size: 1.125rem; }
.rodape__col a[aria-current="page"] { color: var(--mustard); }
.rodape__email { overflow-wrap: anywhere; }
.rodape__legal {
  /* The legal line: four cells on the footer grid, one baseline per row. Two columns on a phone, one row
     from 1024 px with each cell starting under a column of the grid above. */
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-1) var(--sp-4); align-items: baseline;
  padding-block: var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(207 210 200 / .25);
  font-size: var(--fs-micro); line-height: 1.4; font-weight: 500; color: var(--mist);
}
.rodape__legal > * { min-height: 44px; display: flex; align-items: baseline; padding-block: 12px; margin: 0; }
.rodape__legal > p { display: block; }
.rodape__legal a { color: var(--cream); text-decoration-color: rgb(207 210 200 / .5); }
@media (min-width: 768px) {
  .rodape__grelha, .rodape__legal { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--sp-5); }
  .rodape__col--marca { grid-column: 1 / -1; }
  .rodape__col--morada { grid-column: 1 / 3; }
  .rodape__col--contactos { grid-column: 3 / 5; }
  .rodape__col--horario { grid-column: 5 / 7; }
  .rodape__col--paginas { grid-column: 1 / 3; }
  .rodape__col--redes { grid-column: 3 / 5; }
  .rodape__legal-reclamacoes { grid-column: 1 / 3; }
  .rodape__legal-privacidade { grid-column: 3 / 5; }
  .rodape__legal-demo { grid-column: 1 / 5; }
  .rodape__legal-creditos { grid-column: 5 / 7; }
}
@media (min-width: 1024px) {
  .rodape__grelha, .rodape__legal { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sp-5); }
  .rodape__col--marca { grid-column: 1 / 3; }
  .rodape__col--morada { grid-column: 3 / 5; }
  .rodape__col--contactos { grid-column: 5 / 8; }
  .rodape__col--horario { grid-column: 8 / 10; }
  .rodape__col--paginas { grid-column: 10 / 12; }
  .rodape__col--redes { grid-column: 12 / 13; }
  .rodape__legal-reclamacoes { grid-column: 1 / 3; }
  .rodape__legal-privacidade { grid-column: 3 / 5; }
  .rodape__legal-demo { grid-column: 5 / 10; }
  .rodape__legal-creditos { grid-column: 10 / 13; }
  .rodape__legal > * { white-space: nowrap; }
  .rodape__col a:not(.ligacao) { min-height: 32px; }
}
@media (min-width: 1024px) and (pointer: coarse) {
  .rodape__col a:not(.ligacao) { min-height: 44px; }
}

/* Hours: the full component (renderHorario) */
.horario { display: grid; gap: var(--sp-5); container-type: inline-size; container-name: horario; }
.horario__estado, .horario-curto__estado {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  font-weight: var(--fw-dish);
}
.horario__estado { font-size: var(--fs-lead); line-height: 1.35; }
.horario__estado .ico, .horario-curto__estado .ico { width: 1.15em; height: 1.15em; margin-top: .12em; }
.horario__estado.is-fechado, .horario-curto__estado.is-fechado { color: var(--estado-fechado, var(--error)); }
.horario__fechos { display: grid; gap: var(--sp-2); color: var(--estado-fechado, var(--error)); font-weight: 500; }
.horario__fechos li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.horario__fechos .ico { margin-top: .15em; }
.horario__eixo { display: none; }
.horario__semana { display: grid; gap: var(--sp-1); }
.horario__dia {
  --trilho-cor: var(--trilho, var(--rule-soft));
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "nome horas" "regua regua";
  align-items: baseline; gap: var(--sp-2) var(--sp-4);
  margin-inline: calc(-1 * var(--sp-3)); padding: var(--sp-2) var(--sp-3) var(--sp-3);
}
.horario__nome {
  grid-area: nome;
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + .6vw, 2rem); line-height: 1;
  letter-spacing: var(--tr-h3); text-transform: uppercase; color: var(--text-heading);
}
.horario__horas { grid-area: horas; display: grid; justify-items: end; font-size: var(--fs-small); line-height: 1.35; }
.horario__servico { white-space: nowrap; }
.horario__servico--fechado { display: inline-flex; align-items: center; gap: 6px; color: var(--estado-fechado, var(--error)); font-weight: var(--fw-dish); }
.horario__servico--fechado .ico { width: 1.1em; height: 1.1em; }
.horario__regua { grid-area: regua; position: relative; height: 12px; align-self: center; }
.horario__regua::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--trilho-cor); }
.horario__bloco {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--i) * 100%); width: calc((var(--f) - var(--i)) * 100%);
  background: var(--brand);
}
.horario__bloco--fechado {
  background: transparent;
  border: 2px solid var(--estado-fechado, var(--error));
}
.horario__agora {
  position: absolute; top: -6px; bottom: -6px; left: calc(var(--x) * 100%);
  width: 2px; margin-left: -1px; background: var(--petrol-deep);
}
.horario__agora::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: var(--radius-circle); background: var(--petrol-deep);
}
.horario__dia.is-hoje {
  background: var(--mustard);
  --text: var(--petrol-deep); --text-heading: var(--petrol-deep); --brand: var(--petrol);
  --trilho-cor: rgb(22 53 59 / .3); --estado-fechado: var(--rust);
  color: var(--petrol-deep);
}
.horario__dia.is-hoje .horario__horas { font-weight: var(--fw-dish); }
.horario__nota { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }
/* The layout follows the width the page gives the component, not the window: rows go side by side from
   640 px of component, the axis appears from 820 px, where its labels stay apart. */
@container horario (min-width: 640px) {
  .horario__dia {
    grid-template-columns: 9rem minmax(0, 1fr) 20rem;
    grid-template-areas: "nome regua horas";
    align-items: center; gap: var(--sp-5);
    padding-block: var(--sp-3);
  }
  .horario__horas { font-size: var(--fs-body); }
  .horario__horas { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: start; column-gap: var(--sp-4); }
  .horario__servico--dia { grid-column: 1 / -1; }
}
@container horario (min-width: 820px) {
  .horario__eixo {
    display: grid; grid-template-columns: 9rem minmax(0, 1fr) 20rem; gap: var(--sp-5);
    padding-inline: 0; margin-bottom: calc(-1 * var(--sp-3));
    font-size: var(--fs-micro); font-weight: 500; color: var(--text-muted);
  }
  .horario__eixo-regua { grid-column: 2; position: relative; height: 1.4em; }
  .horario__marca { position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-50%); white-space: nowrap; }
}

/* Hours: the footer version (renderHorarioCurto) */
.horario-curto { display: grid; gap: var(--sp-3); }
.horario-curto__lista { display: grid; gap: var(--sp-2); }
.horario-curto__lista dt { font-weight: var(--fw-dish); }
.horario-curto__lista dd { margin: 0; }
.horario-curto__servico { display: block; }
.horario-curto__servico--fechado { color: var(--estado-fechado, var(--error)); font-weight: var(--fw-dish); }

/* Ratings: always with the source and the date (casa.json → avaliacoes)
   <div class="avaliacoes" role="group" aria-label="…">
     <div class="avaliacao"><p class="avaliacao__nota">4,9</p><p class="avaliacao__escala">de 5 no Google</p>
     <p class="avaliacao__fonte">215 críticas, a 6 de outubro de 2026</p><a class="ligacao" href="…">…</a></div>… */
.avaliacoes { display: grid; gap: var(--sp-6) var(--sp-7); }
@media (min-width: 768px) { .avaliacoes { grid-template-columns: repeat(2, minmax(0, max-content)); } }
.avaliacao {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sp-5); row-gap: var(--sp-1); align-items: center; align-content: center;
}
.avaliacao__nota {
  grid-row: 1 / span 3;
  display: grid; place-items: center;
  width: clamp(96px, 7rem + 2vw, 136px); aspect-ratio: 1; border-radius: var(--radius-circle);
  background: var(--accent); color: var(--petrol-deep);
  font-family: var(--font-display); font-size: clamp(2.75rem, 2rem + 2.4vw, 4.25rem); line-height: 1; letter-spacing: .02em;
}
[data-surface="mustard"] .avaliacao__nota { background: var(--petrol-deep); color: var(--mustard); }
.avaliacao__escala {
  font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1;
  letter-spacing: var(--tr-h3); text-transform: uppercase; color: var(--text-heading);
}
.avaliacao__fonte { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-muted); }
.avaliacao .ligacao { font-size: 1.125rem; justify-self: start; }

/* 404 */
.p404 { display: grid; grid-template-columns: minmax(0, 1fr); }
.p404__campo { position: relative; display: grid; place-items: center; min-height: 240px; padding-block: var(--sp-6); overflow: clip; }
.p404__campo .selo { --selo-tam: clamp(176px, 46vw, 300px); }
.p404__texto { padding-block: var(--sp-7) var(--sp-8); }
.p404__texto .lead { margin-top: var(--sp-5); }
.p404__texto .acoes { margin-top: var(--sp-6); }
.p404__voltar { margin-top: var(--sp-4); }
.p404__voltar a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; }
@media (min-width: 1024px) {
  .p404 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: calc(100svh - var(--cabecalho-h) - 32px); }
  .p404__texto { align-self: center; padding: var(--sp-9) var(--sp-7) var(--sp-9) max(var(--gutter), calc((100vw - var(--max)) / 2)); }
  .p404__campo { order: 2; min-height: 0; }
}

/* Privacy: a page to read, 66 characters a line */
.legal-topo { padding-block: var(--sp-8) var(--sp-7); }
.legal-topo .lead { margin-top: var(--sp-5); max-width: 46ch; }
.legal { padding-block: var(--sp-7) var(--section); }
.legal__corpo { max-width: var(--measure); }
.legal__aviso { padding: var(--sp-5); margin-bottom: var(--sp-8); }
.legal__aviso h2 { font-size: var(--fs-h3); line-height: .95; letter-spacing: var(--tr-h3); color: var(--text-heading); }
.legal__aviso p { margin-top: var(--sp-3); }
.legal__sec + .legal__sec { margin-top: var(--sp-8); }
.legal__sec h2 { font-size: var(--fs-h3); line-height: .95; letter-spacing: var(--tr-h3); margin-bottom: var(--sp-4); }
.legal__sec p + p { margin-top: var(--sp-3); }
.legal__lista { display: grid; gap: var(--sp-3); }
.legal__lista li { position: relative; padding-left: 22px; }
.legal__lista li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px; border-radius: var(--radius-circle); background: var(--brand);
}
.legal a, .legal-topo a { text-decoration-color: var(--rule-soft); }
.legal__data { margin-top: var(--sp-8); font-size: var(--fs-small); color: var(--text-muted); }
@media (min-width: 1024px) {
  .legal__corpo { margin-left: calc((100% - var(--sp-5) * 11) / 12 * 2 + var(--sp-5) * 2); }
}

/* Mouse only: hover never sticks on a phone */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--action-hover); }
  .btn-circ:hover { --circ-fundo: var(--mustard); }
  .ligacao:hover { text-decoration-color: transparent; }
  .ligacao:hover .ico { transform: translateX(3px); }
  .cabecalho__nav a:hover, .cabecalho__lingua:hover, .menu__lista a:hover { color: var(--mustard); }
  .cabecalho__nav a:hover::after { transform: scaleX(1); }
  .rodape__col a:not(.ligacao):hover, .rodape__legal a:hover { color: var(--mustard); text-decoration-color: currentColor; }
  .salto:hover { background: var(--cream); }
}

@media (prefers-reduced-motion: reduce) {
  .menu, .menu[open] {
    transform: none;
    transition: opacity var(--d-fade) ease, display var(--d-fade) allow-discrete, overlay var(--d-fade) allow-discrete;
  }
  .menu:not([open]) { opacity: 0; }
  @starting-style { .menu[open] { transform: none; opacity: 0; } }
  .btn:active, .btn-circ:active { transform: none; }
  .cabecalho__nav a::after, .ligacao .ico { transition: none; }
}

@media print {
  .salto, .faixa-demo, .cabecalho, .menu, .faixa, .rodape__col--redes { display: none !important; }
  [data-surface] { background: none !important; color: #000 !important; }
}
