/* ============================================================
   MTZ FLOW · Reset moderno e base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11' 1, 'ss01' 1;
  min-height: 100vh;
}

img, picture, svg, video, canvas { display: block; max-width: 100%; }

/* Ícones (SVG sprite). Tamanho-base; contextos podem sobrescrever. */
svg.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; display: inline-block; vertical-align: middle; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--mtz-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Foco em elementos escuros usa o verde de marca p/ contraste */
.on-dark :focus-visible,
.sidebar :focus-visible { outline-color: var(--mtz-green); }

::selection { background: var(--mtz-green); color: var(--mtz-indigo); }

/* Scrollbars discretas alinhadas à marca */
* { scrollbar-width: thin; scrollbar-color: var(--hair-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--hair-3); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--muted-2); border: 2px solid transparent; background-clip: padding-box; }

/* Utilitário de acessibilidade */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--mtz-blue); color: #fff; padding: 10px 18px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 13px;
}
.skip-link:focus { left: 8px; }

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