/*
 * Festou — normalização
 * Ponto de partida neutro para as telas novas (sem Bootstrap/tema antigo):
 * zera margens, padroniza box-sizing, fontes de formulário e mídia.
 * Baseado em modern-normalize, com os padrões de texto do design system.
 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .25px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; font-size: inherit; line-height: inherit; }

b, strong { font-weight: 600; }
small { font-size: 80%; }
hr { height: 0; margin: 0; border: 0; border-top: 1px solid var(--outline-variant); color: inherit; }

a { color: var(--primary); text-decoration-skip-ink: auto; }
a:not([class]) { text-underline-offset: 2px; }

img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
iframe { border: 0; }

button, input, optgroup, select, textarea {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; appearance: button; cursor: pointer; }
button:disabled { cursor: not-allowed; }
::-moz-focus-inner { border-style: none; padding: 0; }
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
textarea { resize: vertical; }

:is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

[hidden], .hidden { display: none !important; }

.fs-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
