/* The Salmonete demo inside the Mingo page (html.em-moldura, set by moldura.js). The page around it already says the
   business is invented, so the strip goes. No scrollbar: on Windows it took 15 of the 390 px and broke «Horário e
   morada» and «Peixe de hoje» in two lines. The demo still scrolls with the wheel, the keyboard and the finger. */
html.em-moldura .demo-faixa {
  display: none;
}
html.em-moldura {
  scrollbar-width: none;
}
html.em-moldura::-webkit-scrollbar {
  display: none;
}

/* Touch, in the frame and alone in a tab (2026-11-14, Henrique: «retângulos azuis» on the buttons). Chrome for Android
   and Brave paint a light-blue box (rgba(51, 181, 229, 0.4)) over the box of whatever the finger taps, square
   corners over round pills. It goes from the root, so it covers the controls to come too. Each control answers
   the finger in its own shape instead: the demos' own press (2px down) and a lighter tone, which also shows on links
   inside text. :where() keeps it at zero specificity, so a demo's own :active (.botao, .barra a) keeps its say. The keyboard
   focus stays as the demos draw it (:focus-visible, one line). A long press does not select a button's label. */
html {
  -webkit-tap-highlight-color: transparent;
}
:where(a[href], button, summary, [role='button'], label:has(input[type='radio'], input[type='checkbox'])):where(:not(:disabled)):active {
  translate: 0 2px;
  opacity: 0.75;
}
:where(button, summary, [role='button'], label:has(input[type='radio'], input[type='checkbox'])) {
  -webkit-user-select: none;
  user-select: none;
}

/* Keyboard focus that shows on the demos' dark grounds (2026-11-14, Mingão: contrast under 3:1 with the ground). Only
   the line's colour changes, to the light (or dark) colour the same demo already uses there; the width, the offset
   and the shape stay the demo's. `html` in front: this file loads before the demo's own CSS, so it needs one more
   step of specificity to win. Salmonete: the «Reservar mesa» on the slate board and on the blue band, «Encomendar
   pelo WhatsApp» on the blue band and «Voltar» on the blue bar of the booking page take the chalk colour.
   Sacode: a chosen size takes the paper colour of its text, 5px inside its dark card, as .chip and .porte-app
   already do (at -2px it only looked like a thinner card); the outline buttons in the client's area take the ink,
   as .botao--linha already does on the Sacode home (the paper line vanished on the paper ground). */
html .lousa a.botao--salmonete:focus-visible,
html .reservar__mesa a.botao--salmonete:focus-visible,
html .botao--contorno-claro:focus-visible,
html .ferr-topo__voltar:focus-visible {
  outline-color: var(--giz);
}
html .porte[aria-pressed='true']:focus-visible {
  outline-color: var(--papel);
  outline-offset: -5px;
}
html .cartoes .botao--linha:focus-visible {
  outline-color: var(--tinta);
}

/* «Recomeçar a demo», alone in a tab (B4 of the final review, 2026-11-15): the button was a 24px touch target.
   The strip grows from about 30px to 44px and the button keeps its look; an invisible ::after, as high as the
   strip, takes the finger. It stays inside the strip: going past it took the top of the demos' own buttons
   (Sacode: «Marcar banho», «A minha área»). */
html .demo-faixa {
  min-height: 44px;
}
html .demo-faixa button {
  position: relative;
}
html .demo-faixa button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 44px;
  translate: 0 -50%;
}
