*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--fmx-header-offset);
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--fmx-bg-dark);
}

body {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--fmx-bg-dark);
  color: var(--fmx-white);
  font-family: var(--fmx-font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.fmx-modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  border-style: none;
}

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

button {
  font-family: inherit;
}

/* Centralização pixel-perfect de ícones SVG */
.fmx-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  font-size: 0;
  flex-shrink: 0;
}

.fmx-svg svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Leitura apenas para leitores de tela */
.fmx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Divisórias full-bleed em formato de onda */
.fmx-wave {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -2px;
  width: calc(100% + 2px);
  max-width: none;
  overflow: hidden;
  z-index: 3;
  padding: 0;
  pointer-events: none;
}

.fmx-wave img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* Foco acessível visível */
:is(a, button):focus-visible {
  outline: 2px solid var(--fmx-cyan);
  outline-offset: 2px;
}
