/* Mr. Oliver TCG · base: reset, tipografia e utilitários */

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

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

body {
  margin: 0;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte-texto);
  font-size: var(--texto-md);
  line-height: var(--altura-linha);
  overflow-x: hidden;
}

body.sem-rolagem { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  line-height: 1.15;
  margin: 0 0 var(--esp-3);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--texto-3xl); }
h2 { font-size: var(--texto-2xl); }
h3 { font-size: var(--texto-xl); }
h4 { font-size: var(--texto-lg); }

p { margin: 0 0 var(--esp-4); }

a { color: var(--cor-primaria); text-underline-offset: 3px; }
a:hover { color: var(--cor-azul-escuro); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--cor-foco);
  outline-offset: 2px;
  border-radius: 4px;
}

ul.sem-lista, ol.sem-lista { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--largura-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.screen-reader-text,
.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;
}

.pular-conteudo {
  position: absolute;
  left: var(--esp-4);
  top: -100px;
  z-index: 100;
  background: var(--cor-amarelo);
  color: var(--cor-texto);
  padding: var(--esp-2) var(--esp-4);
  border-radius: var(--raio-pill);
  font-weight: 700;
}
.pular-conteudo:focus { top: var(--esp-2); }

.icone { width: 24px; height: 24px; flex: none; }
.icone-sm { width: 18px; height: 18px; flex: none; }

.texto-apoio { color: var(--cor-apoio); }
.texto-pequeno { font-size: var(--texto-sm); }
.preencher { background: #FFF4CC; border-radius: 4px; padding: 0 3px; }

.secao { padding-block: var(--esp-6); }
@media (min-width: 768px) { .secao { padding-block: var(--esp-7); } }

.secao__topo {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--esp-4);
  margin-bottom: var(--esp-5);
}
.secao__topo h2 { margin: 0; }
.secao__topo a { font-weight: 700; white-space: nowrap; }

[tabindex="-1"]:focus-visible { outline: none; }
