/* Base comum: site, cadastro, painel e admin. Cores em /marca/tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 16px/1.5 var(--fonte); -webkit-tap-highlight-color: transparent; }
a { color: var(--acento); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--linha); border-radius: 10px; background: var(--papel); font-size: 16px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--acento) 45%, transparent); outline-offset: 2px; }
label { display: block; font-size: .875rem; font-weight: 600; margin: 12px 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--acento); color: var(--acento-texto); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 120ms var(--curva), filter 120ms; user-select: none; }
.btn:active { transform: scale(.98); }
@media (hover: hover) { .btn:hover { filter: brightness(1.06); } }
.btn.sec { background: transparent; color: var(--texto); border-color: var(--linha); }
.btn.peq { min-height: 36px; padding: 0 12px; font-size: .875rem; border-radius: 10px; }
.cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; }
.suave { color: var(--suave); }
.erro { color: var(--alerta); font-weight: 600; }
.selo-rygu { display: inline-flex; align-items: center; gap: .3em; color: var(--suave); text-decoration: none; font-size: .8125rem; }
.selo-rygu img { height: .72em; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .selo-rygu img { filter: invert(1); } }
:root[data-theme="dark"] .selo-rygu img { filter: invert(1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
