/* ──────────────────────────────────────────────────────────
   BASE — reset + primitivos compartilhados + nav + footer +
   breadcrumb. Estética de verbete enciclopédico: densidade alta,
   ornamentação zero, credibilidade pelo formato editorial.
   ────────────────────────────────────────────────────────── */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand-2);
  text-decoration: underline;
  text-decoration-color: var(--gray-3);
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}

a:hover {
  color: var(--gold-ink);
  text-decoration-color: var(--gold-line);
}

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

main {
  flex: 1;
}

/* Sem a coluna branca central com filetes laterais (skin Vector).
   Conteúdo sobre papel, largura medida por .wrap, fundo contínuo. */
.breadcrumb,
main {
  background: transparent;
  max-width: var(--wrap);
  width: 100%;
  margin-inline: auto;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* Títulos — Geist com tracking negativo; acento itálico Newsreader
   em <em>. Sem a régua horizontal sob o título. ------- */
h1,
h2 {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: 30px;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}

h2 {
  font-size: 22px;
  margin: 24px 0 12px;
}

/* Acento editorial: palavra em itálico serifado dentro do título */
h1 em,
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 20px 0 8px;
}

/* Layout compartilhado ------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

/* Primitivo de seção — wrapper neutro (chrome vem de .biz-pad). --------- */
.card {
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Foco acessível ------------------------------------------------------- */
:where(a, button, summary, input):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

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

/* ── TOPBAR ── barra superior escura (tinta Ranqia) -------------------- */
.nav {
  background: var(--ink-dark);
  border-bottom: 1px solid var(--rule-dark);
}

.nav-inner {
  height: auto;
  padding-block: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  flex: none;
}

.nav-logo .mark img {
  height: 22px;
  width: auto;
  display: block;
}

.nav-logo .brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-logo .tld {
  color: var(--gray-4);
  font-weight: 400;
}

.nav-logo:hover {
  color: var(--paper);
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  list-style: none;
}

.nav-links a {
  color: var(--gray-3);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--paper);
  text-decoration: none;
}

@media (max-width: 880px) {
  .nav-links {
    gap: 12px;
  }
}

/* ── BREADCRUMB ── trilha da taxonomia, no topo do artigo ------------- */
.breadcrumb {
  border-bottom: 1px solid var(--line-2);
  background: transparent;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 9px 0;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li::after {
  content: "›";
  color: var(--faint);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
}

.breadcrumb li:last-child span {
  color: var(--ink-2);
}

/* ── FOOTER ── claro, estilo rodapé de verbete -------------------------- */
.footer {
  background: var(--ink-dark-2);
  color: var(--gray-5);
  border-top: 1px solid var(--rule-dark);
  margin-top: 0;
  padding: 28px 0 24px;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 16px;
  color: var(--paper);
}

.footer-logo .tld {
  color: var(--gray-4);
  margin-left: 2px;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  max-width: 34ch;
  color: var(--gray-5);
}

.footer-col-title {
  font-family: var(--mono);
  color: var(--gray-5);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 7px;
}

.footer li a {
  font-size: 12.5px;
  color: var(--gray-5);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer li a:hover {
  color: var(--paper);
  text-decoration: none;
}

.footer-legal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-dark);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  color: var(--gray-5);
}
