/* Additions of the published site. Most of them do not change how the design looks on screen; the
   owner-approved visual fixes of 2026-11-08 (at the end) do, on purpose. */

/* The Services submenu stays in the DOM (aria-controls); the design gives it display:grid. */
.mega[hidden]{display:none}

/* Printing: every FAQ answer open (closed answers use hidden="until-found"). */
@media print{.fq-r{grid-template-rows:1fr!important;visibility:visible!important;content-visibility:visible!important}.fq-in{padding-bottom:20px!important}}

/* Screen-reader-only text (same rule as the design's .sr): cookie live region, table headers. */
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Turnstile (owner decision, 2026-11-07): in the form, right before the send button, full width.
   Hidden (no space) until Cloudflare asks for a click or the check fails; then it pushes the
   button down. Questionnaire: same spacing as the send area under it (.env). The failure message
   uses the design's .falha box; the guide strip pages have no .falha rules, hence the copy here. */
.ug-ts{display:grid;gap:12px;min-width:0}
.ug-ts[hidden],.ug-ts-w[hidden]{display:none}
.qz .ug-ts{margin-top:24px}
.ug-ts>.falha{display:grid;grid-template-columns:24px 1fr;gap:12px;margin:0;padding:18px 20px;border:1px solid var(--erro-l,#E9B8B4);border-radius:var(--r-campo,12px);background:var(--erro-f,#FCEFEE);font-size:15px;line-height:24px}
.ug-ts>.falha>svg{width:22px;height:22px;color:var(--erro,#B3261E);margin-top:1px}

/* Page 21 without JavaScript: the "Confirmar" button added by the Worker (?t=<code>). */
.ug-ns-confirmar{display:flex;justify-content:center;padding:24px 16px}

/* Mobile menu = header menu (owner decisions, 2026-11-07, version 3). The build fills the panel from
   the header (tools/build.mjs, mobileMenu): "Serviços" title, the header's services card always shown,
   Sobre nós as a wide row, the consultation button filled. Card, colours, hover, focus and the rise
   animation come from the header rules; only the layout changes here. */
.mm-n>.lbl{display:block;margin:0 0 10px 8px}
.mm .mega{position:static;width:auto;margin:0 0 16px}
.mm-l{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.mm-l .nav-i{width:100%;justify-content:space-between;min-height:56px;padding:0 20px;font-size:18px}
.mm-l .nav-i svg{width:20px;height:20px}
/* Touch screens have no hover: a press shows the hover state of the same entry. */
.mm .nav-i,.mm .mg,.mm-b .btn{-webkit-tap-highlight-color:transparent}
:where(.mm) .nav-i:active{background:var(--branco)}
:where(.mm) .mg:active{background:var(--creme)}
:where(.mm-b) .btn-p:active{background:var(--noite-h)}

/* After a cookie choice focus may go to the start of the main content (site.js, ckRefocus): no
   ring around the whole <main>, as on any skip-link target. */
#conteudo[tabindex="-1"]:focus{outline:none}

/* Services menu (owner decision, 2026-11-08, option A of the visual review): on hover and keyboard
   focus the icon circle turns amber (on the cream hover background the light-amber circle vanished,
   1.00:1); the same on a press in the mobile menu. One rule for every page with the header menu,
   the "Gestão de anúncios" sub-entry (.mg-d, white circle with an amber ring) included: it fills. */
.mg:hover .ic,.mg:focus-visible .ic{background:var(--ambar)}
:where(.mm) .mg:active .ic{background:var(--ambar)}

/* Cookie preferences (owner decision, 2026-11-08): "Ver a lista" always alone on the line below the
   text of each category, at the text's own line height (no paragraph margin). */
.cat p a{display:block;width:max-content;max-width:100%}

/* Answer grids (.obj, design system rule of 2026-10-27): titles line up with titles and answers
   with answers in each row (subgrid); one column on narrow screens, as before. */
.obj>.ob{grid-row:span 2;grid-template-rows:subgrid;align-content:normal}

/* Accordions (owner decision, 2026-11-08): two open questions in a row are 12 px apart (the closed
   list keeps its rhythm); the gap opens with the answer. */
.fq{transition:background-color 240ms var(--curva),border-color 240ms var(--curva),margin-top 280ms var(--curva)}
.fq.aberta+.fq.aberta{margin-top:12px}

/* Links to other sites open in a new tab (tools/lib/links.mjs, applied by the build): the screen-reader text
   " (abre num novo separador)" uses .sr; nothing changes on screen. */

/* Phone fixes of 2026-11-08 (owner request), at 900 px and below only; the computer is unchanged.
   1. Section titles in .expl-g (Início "Uma agência...") no longer stick to the top over the
      paragraphs once the grid is one column (.perg-esq and .art-ind already are static there).
   2. The hero drawing (.cena, scaled from the top left with negative right/bottom margins whose
      margin box is exactly the drawn size) is centred in the column instead of sitting on the left.
      The small drawings (.cena-s: 404, legal pages) keep their own rules. */
@container pg (max-width: 900px){
.expl-g .h2{position:static}
.cena:not(.cena-s){justify-self:center}
}
/* 3. The hero drawing animates when it comes into view (data-reveal="cena" in the page logic, same
   observer and threshold as the other entries), not on load: on phones it sits below the fold and
   the animation was over before anyone saw it. Until then it holds its first frame. Without
   JavaScript or with reduced motion nothing changes (no .anim class). */
.anim .cena[data-reveal]:not(.is-in) *{animation-play-state:paused}
