.article-tabs {
  justify-content: flex-start;
  padding: .5rem 0;
  flex-wrap: wrap;
  gap: .45rem;
}
.chart-bars[data-chart="idade"] {
  flex-direction: column;
  align-items: stretch;
  min-height: auto;
  gap: .65rem;
}
.chart-bars[data-chart="idade"] .chart-bar {
  flex: none;
  min-width: 100%;
  height: auto;
  padding: .6rem .85rem;
  border-radius: 12px;
  background: rgba(59,130,246,0.08);
  color: var(--cor-texto);
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}
.chart-bars[data-chart="idade"] .chart-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,#38bdf8,#4f46e5);
  width: var(--width, 0%);
  opacity: .4;
  z-index: 0;
  transition: width .3s ease;
}
.chart-bars[data-chart="idade"] .chart-bar strong,
.chart-bars[data-chart="idade"] .chart-bar em,
.chart-bars[data-chart="idade"] .chart-bar span {
  position: relative;
  width: auto;
  bottom: auto;
  left: auto;
  transform: none;
  color: inherit;
}
.chart-bars[data-chart="idade"] .chart-bar strong {
  font-size: 1.15rem;
}
.chart-bars[data-chart="idade"] .chart-bar em {
  font-size: .9rem;
  color: var(--muted-text, #475569);
}
.chart-bars[data-chart="idade"] .chart-bar span {
  margin-left: auto;
  font-size: .95rem;
  color: var(--muted-text, #475569);
}
.article-tab-option {
  text-decoration: none;
  border-radius: 999px;
  padding: .25rem 1rem;
  border: 1px solid transparent;
  font-weight: 600;
  color: var(--editor-toggle-text);
  background: var(--editor-toggle-bg);
  box-shadow: var(--editor-toggle-shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.article-tab-option:hover {
  transform: translateY(-1px);
  border-color: rgba(99,102,241,0.35);
}
.article-tab-option.ativo {
  background: var(--editor-toggle-active-gradient);
  color: var(--editor-toggle-active-text);
}
.article-tab-option.bloqueado {
  opacity: .6;
}
.article-tab-option.bloqueado:hover {
  border-color: transparent;
  transform: none;
}
.editor-lock {
  border: 1px dashed var(--surface-card-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  background: var(--surface-card-bg);
  color: var(--ve-surface-text);
  box-shadow: var(--surface-card-shadow);
  max-width: 640px;
  margin: 1.5rem auto;
  text-align: center;
}
.editor-lock h2 {
  margin-top: 0;
}
.editor-lock-actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.4rem;
  border-radius: 999px;
  background: var(--pill-link-bg);
  color: var(--pill-link-text);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--pill-link-shadow);
}
.pill-link.primario {
  background: var(--editor-toggle-active-gradient);
  color: var(--editor-toggle-active-text);
  box-shadow: 0 10px 25px rgba(76,80,180,0.4);
}
.badge-oculto {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-left: .35rem;
  padding: 0 .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: #92400e;
  background: rgba(245,158,11,0.2);
}
.editor-lock-hint a {
  color: var(--editor-toggle-text);
  font-weight: 600;
}
/* Paleta e reset básico */
:root {
  --cor-primaria: #2C5F9B;
  --cor-secundaria: #8B4513;
  --cor-texto: #333333;
  --cor-fundo: #FFFFFF;
  --cor-destaque: #E8D4B2;
  --link: #0645ad; /* Wikipedia blue */
  --link-visitado: #0b0080;
  --code-bg: #f7f7f7;
  --code-border: #dddddd;
  --diff-add-bg: rgba(0, 200, 0, .18);
  --diff-del-bg: rgba(255, 0, 0, .18);
  --wiki-card-border: #d0d7de;
  --wiki-card-shadow: 0 6px 18px rgba(44, 95, 155, 0.12);
  --wiki-tabs-bg: linear-gradient(140deg, #f5f7fb 0%, #eef2f9 80%);
  --wiki-tabs-link-color: var(--cor-primaria);
  --wiki-tabs-link-bg: rgba(44,95,155,0.1);
  --wiki-tabs-link-hover-bg: rgba(44,95,155,0.16);
  --wiki-tabs-link-border-hover: rgba(44,95,155,0.5);
  --wiki-infobox-bg: linear-gradient(180deg, #fdfdfd 0%, #f4f6fb 100%);
  --wiki-infobox-subtitle-color: #394867;
  --wiki-infobox-caption-color: #4a5568;
  --wiki-infobox-title-color: #2c3e50;
  --wiki-infobox-separator: rgba(0,0,0,0.08);
  --wiki-gallery-border: #d0d7de;
  --wiki-gallery-bg: rgba(44,95,155,0.04);
  --wiki-gallery-caption-color: #3e4c5e;
  --wiki-table-border: #d0d7de;
  --wiki-table-bg: #ffffff;
  --wiki-table-cell-bg: #ffffff;
  --wiki-text-strong: #1f2d3d;
  --wiki-text-em: #2f3f57;
  --wiki-content-muted: rgba(0,0,0,0.65);
  --surface-card-bg: #ffffff;
  --surface-card-border: rgba(15,23,42,0.08);
  --surface-card-shadow: 0 20px 40px rgba(15,23,42,0.12);
  --editor-toggle-bg: rgba(255,255,255,0.9);
  --editor-toggle-border: rgba(15,23,42,0.12);
  --editor-toggle-shadow: 0 14px 30px rgba(15,23,42,0.15);
  --editor-toggle-text: rgba(15,23,42,0.7);
  --editor-toggle-active-text: #fff;
  --editor-toggle-active-gradient: linear-gradient(130deg, #4f46e5, #8b5cf6);
  --ve-toolbar-bg: #f5f7ff;
  --ve-toolbar-border: rgba(15,23,42,0.08);
  --ve-toolbar-text: #1e1b4b;
  --ve-toolbar-button-bg: rgba(99,102,241,0.08);
  --ve-toolbar-button-hover-bg: rgba(99,102,241,0.18);
  --ve-toolbar-button-border: rgba(99,102,241,0.25);
  --ve-toolbar-button-text: #20174d;
  --ve-toolbar-divider: rgba(99,102,241,0.25);
  --ve-dropdown-bg: #ffffff;
  --ve-dropdown-text: #0f172a;
  --ve-dropdown-border: rgba(15,23,42,0.12);
  --ve-surface-bg: #ffffff;
  --ve-surface-text: #0f172a;
  --ve-surface-border: rgba(15,23,42,0.1);
  --pill-link-bg: rgba(15,23,42,0.05);
  --pill-link-text: #1e2a44;
  --pill-link-shadow: inset 0 0 0 1px rgba(15,23,42,0.08);
  --table-border-color: rgba(15,23,42,0.08);
  --table-head-bg: rgba(15,23,42,0.03);
}
@media (prefers-color-scheme: dark) {
  :root {
    --cor-texto: #e2e8f0;
    --cor-fundo: #05070d;
    --wiki-card-border: rgba(148,163,184,0.25);
    --surface-card-bg: #070b16;
    --surface-card-border: rgba(255,255,255,0.08);
    --surface-card-shadow: 0 20px 45px rgba(0,0,0,0.55);
    --editor-toggle-bg: rgba(8,10,18,0.85);
    --editor-toggle-border: rgba(255,255,255,0.12);
    --editor-toggle-shadow: 0 14px 32px rgba(0,0,0,0.55);
    --editor-toggle-text: rgba(255,255,255,0.65);
    --ve-toolbar-bg: rgba(18,20,28,0.95);
    --ve-toolbar-border: rgba(70,130,200,0.35);
    --ve-toolbar-text: #f4f7ff;
    --ve-toolbar-button-bg: rgba(255,255,255,0.06);
    --ve-toolbar-button-hover-bg: rgba(255,255,255,0.15);
    --ve-toolbar-button-border: rgba(255,255,255,0.2);
    --ve-toolbar-button-text: #f4f7ff;
    --ve-toolbar-divider: rgba(255,255,255,0.15);
    --ve-dropdown-bg: #111522;
    --ve-dropdown-text: #f4f7ff;
    --ve-dropdown-border: rgba(255,255,255,0.18);
    --ve-surface-bg: #080c16;
    --ve-surface-text: #f4f7ff;
    --ve-surface-border: rgba(255,255,255,0.08);
    --pill-link-bg: rgba(255,255,255,0.06);
    --pill-link-text: #f4f7ff;
    --pill-link-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    --table-border-color: rgba(255,255,255,0.14);
    --table-head-bg: rgba(255,255,255,0.04);
  }
}
* { box-sizing: border-box; }
[hidden] {
  display: none !important;
}
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--cor-texto); background: var(--cor-fundo); }
.pagina-artigo {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: flex-start;
}
.pagina-artigo.sem-toc {
  grid-template-columns: minmax(0, 1fr);
}
.pagina-artigo .conteudo-central {
  max-width: 960px;
  width: 100%;
  margin: 0;
}
.pagina-artigo .wiki-side {
  position: sticky;
  top: 5rem;
  align-self: flex-start;
  max-width: 240px;
  width: 100%;
}
.pagina-artigo.sem-toc .wiki-side { display: none; }

.hero-intro {
  text-align: center;
  margin: 2.5rem auto 3rem;
  max-width: 720px;
}
.hero-intro h1 {
  margin: 0.5rem 0;
  font-size: clamp(2rem, 5vw, 3rem);
}
.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: .2rem;
  font-size: .9rem;
  color: var(--wiki-content-muted);
}
.hero-text {
  color: var(--wiki-content-muted);
  line-height: 1.5;
}
.hero-search,
.nav .busca,
.busca-form label {
  position: relative;
}
.busca-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}
.busca-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.busca-form button[type="submit"] {
  align-self: flex-start;
}
.hero-search {
  display: flex;
  margin: 1.5rem auto .5rem;
  gap: .5rem;
}
.hero-search input,
.hero-search button {
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--surface-card-border);
}
.hero-search input {
  flex: 1;
}
.hero-search button {
  border: none;
  background: var(--editor-toggle-active-gradient);
  color: var(--editor-toggle-active-text);
  font-weight: 600;
}
.hero-alpha {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: .9rem;
}
.hero-alpha a {
  padding: .35rem .6rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--link);
  background: rgba(15,23,42,0.05);
}
.search-suggestions {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  width: 100%;
  border-radius: 12px;
  background: var(--surface-card-bg);
  border: 1px solid var(--surface-card-border);
  box-shadow: var(--surface-card-shadow);
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
  z-index: 1000;
}
.search-suggestions button {
  display: flex;
  width: 100%;
  border: none;
  background: transparent;
  padding: .65rem .9rem;
  text-align: left;
  cursor: pointer;
  gap: .5rem;
  align-items: center;
}
.search-suggestions button:not(:last-child) {
  border-bottom: 1px solid var(--surface-card-border);
}
.search-suggestions button:hover,
.search-suggestions button:focus {
  background: rgba(79,70,229,0.08);
}
.search-suggestions mark {
  background: #facc15;
  color: inherit;
  padding: 0 .15rem;
  border-radius: 4px;
}
.search-suggestions .muted {
  font-size: .75rem;
}

.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.table-container {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--table-border-color);
  border-radius: 12px;
  background: var(--surface-card-bg);
  box-shadow: var(--surface-card-shadow);
}
.table-spacious {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
}
.table-spacious th,
.table-spacious td {
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--table-border-color);
  text-align: left;
}
.table-spacious th {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(15,23,42,0.7);
  background: var(--table-head-bg);
}
.table-spacious tr:last-child td { border-bottom: none; }
.container.artigo-topo,
.container.artigo-acoes { max-width: 1200px; }
.container.review {
  max-width: 1280px;
}
.artigo-corpo { background: none; }
.wiki-guide-toc {
  border: 1px solid var(--wiki-card-border);
  background: var(--wiki-gallery-bg);
  padding: .9rem 1.1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.wiki-guide-toc ol {
  margin: .6rem 0 0 1.2rem;
}
.container.pequeno { max-width: 420px; }
.topo { background: var(--cor-primaria); color: #fff; }
.nav { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .5rem 1rem; }
.nav .brand { color: #fff; text-decoration: none; font-weight: 700; }
.nav .busca { display: flex; gap: .5rem; }
.nav input[type="search"] { padding: .4rem .6rem; border-radius: 4px; border: 1px solid #ccc; }
.nav button { padding: .45rem .7rem; border: 0; background: var(--cor-destaque); color: #000; border-radius: 4px; }
.lista-artigos { list-style: none; padding: 0; }
.lista-artigos li { padding: .5rem 0; border-bottom: 1px solid #eee; }
.muted { color: #666; }
label { display: block; margin: .6rem 0 .2rem; font-weight: 600; }
input, textarea { width: 100%; padding: .6rem; border: 1px solid #ccc; border-radius: 4px; }
button { margin-top: .8rem; padding: .6rem .9rem; background: var(--cor-primaria); color: #fff; border: none; border-radius: 4px; cursor: pointer; }
button:hover { filter: brightness(1.1); }
.sugestao-lista {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sugestao-item {
  border: 1px solid var(--surface-card-border);
  border-radius: 12px;
  background: var(--surface-card-bg);
  box-shadow: var(--surface-card-shadow);
  padding: .4rem .8rem;
}
.sugestao-item > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  padding: .4rem 0;
}
.sugestao-item > summary::-webkit-details-marker { display: none; }
.sugestao-item[open] {
  border-color: var(--cor-primaria);
  box-shadow: 0 12px 30px rgba(15,23,42,.18);
}
.sugestao-conteudo {
  border-top: 1px solid var(--surface-card-border);
  margin-top: .5rem;
  padding-top: .65rem;
  color: var(--wiki-content-muted);
}
.sugestao-conteudo p {
  margin: .35rem 0;
  line-height: 1.4;
}
.sugestao-acoes {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .5rem 0;
}
.sugestao-acoes button,
.sugestao-conteudo button {
  margin-top: 0;
}
.sugestao-conteudo button.perigo {
  background: #b91c1c;
}
.sugestao-conteudo button.perigo:hover {
  filter: brightness(1.05);
}
.upload-field {
  margin: 1rem 0;
  padding: .9rem 1rem;
  border: 1px dashed var(--surface-card-border);
  border-radius: 10px;
  background: rgba(15,23,42,0.02);
}
.upload-field input[type="file"] {
  width: 100%;
  margin-top: .3rem;
}
.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .6rem;
  flex-wrap: wrap;
}
.upload-actions .botao-secundario {
  margin-top: 0;
  background: transparent;
  color: var(--cor-primaria);
  border: 1px solid var(--cor-primaria);
}
.upload-feedback {
  border-radius: 10px;
  padding: .85rem 1rem;
  margin: .8rem 0;
}
.upload-feedback.sucesso {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
}
.upload-feedback.erro {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
}
.upload-file-list {
  list-style: none;
  padding-left: 0;
  margin: .6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.upload-file-list code {
  display: block;
  margin-top: .2rem;
  background: rgba(15,23,42,0.07);
  padding: .2rem .4rem;
  border-radius: 6px;
}

.feedback-form form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.feedback-options {
  display: grid;
  gap: .45rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: .4rem;
}
.feedback-options label {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .6rem;
  border: 1px solid var(--surface-card-border);
  border-radius: 10px;
  background: rgba(148,163,184,.08);
}
.feedback-form textarea,
.feedback-form input[type="number"] {
  width: 100%;
}

.feedback-admin {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
}
.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.feedback-respondentes .feedback-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.badge {
  background: rgba(148,163,184,.18);
  color: var(--cor-texto);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .9rem;
}
.feedback-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.chart-card {
  border: 1px solid var(--surface-card-border);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface-card-bg);
  box-shadow: 0 20px 35px rgba(15,23,42,.08);
}
.chart-card header {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-bottom: .65rem;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: .8rem;
  min-height: 200px;
}
.chart-bar {
  flex: 1;
  position: relative;
  min-width: 45px;
  background: linear-gradient(180deg,#3b82f6,#0ea5e9);
  border-radius: 10px 10px 0 0;
  height: var(--value, 0%);
  transition: height .3s ease;
  color: #fff;
  padding: .4rem;
}
.chart-bar strong {
  display: block;
  font-size: 1.1rem;
}
.chart-bar span {
  position: absolute;
  bottom: -2.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: max(60px, 100%);
  text-align: center;
  font-size: .85rem;
  color: var(--muted-text, #475569);
}
.chart-pie {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
}
.chart-pie svg.pie {
  width: 180px;
  height: 180px;
}
.chart-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.chart-legend li {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.chart-legend span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.feedback-texts {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feedback-list {
  border: 1px solid var(--surface-card-border);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface-card-bg);
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.feedback-list article {
  padding-bottom: .6rem;
  border-bottom: 1px dashed rgba(148,163,184,.35);
}
.feedback-list article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 640px) {
  .feedback-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .chart-bar span {
    font-size: .75rem;
  }
}
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.tabs-artigo { padding: .4rem 0; }
.tab-link { display: inline-block; padding: .45rem .85rem; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 600; background: rgba(44,95,155,0.08); color: var(--cor-primaria); }
.tab-link:hover { background: rgba(44,95,155,0.15); }
.tab-link.ativo { border-color: var(--cor-primaria); background: rgba(44,95,155,0.18); color: #0d3a75; }
.artigo-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.artigo-header h1 { margin: 0; }
.artigo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.artigo article { margin-top: 1.5rem; }
.artigo .meta { margin-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #ddd; color: #444; }
.artigo .meta strong { font-weight: 600; }
.artigo .meta span { display: inline-block; margin-right: .75rem; }
.help-box { background: rgba(44,95,155,0.08); border-left: 4px solid var(--cor-primaria); padding: .75rem 1rem; border-radius: 6px; margin: 1rem 0; }
.help-box a { color: inherit; font-weight: 600; }
.help-box a:hover { text-decoration: underline; }
.rodape { border-top: 1px solid #eee; padding: 1rem; text-align: center; }
.has-sugestao-widget .rodape { padding-bottom: 3.5rem; }
.erro { background: #fee; color: #900; padding: .6rem; border: 1px solid #f99; border-radius: 4px; }
.inline { display: inline-block; margin-left: .6rem; }
.editor-form-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 1rem 0;
}
.editor-mode-toggle {
  display: inline-flex;
  gap: .4rem;
  padding: .35rem;
  background: var(--editor-toggle-bg);
  border: 1px solid var(--editor-toggle-border);
  border-radius: 999px;
  box-shadow: var(--editor-toggle-shadow);
}
.editor-mode-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: .2rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--editor-toggle-text);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.editor-mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.editor-mode-option span { pointer-events: none; }
.editor-mode-option.ativo {
  background: var(--editor-toggle-active-gradient);
  color: var(--editor-toggle-active-text);
  box-shadow: 0 6px 18px rgba(76,80,180,0.45);
}
.ve-workspace {
  margin: 1.5rem 0;
}
.ve-workspace .visual-editor-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
  background: var(--surface-card-bg);
  border: 1px solid var(--surface-card-border);
  border-radius: 16px;
  box-shadow: var(--surface-card-shadow);
}
.ve-workspace .ve-toolbar {
  border-radius: 14px 14px 0 0;
  background: var(--ve-toolbar-bg);
  border-bottom: 1px solid var(--ve-toolbar-border);
  color: var(--ve-toolbar-text);
}
.ve-workspace .ve-surface {
  flex: 1;
  min-height: 0;
  background: var(--ve-surface-bg);
  color: var(--ve-surface-text);
  border-radius: 0 0 14px 14px;
}
.ve-workspace .ve-toolbar,
.ve-workspace .ve-surface {
  width: 100%;
  border-color: var(--ve-surface-border);
}
@media (max-width: 960px) {
  .editor-form-toolbar {
    justify-content: center;
  }
}
.painel-pendentes {
  margin-top: 2rem;
}
.pendentes-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pendente-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(8,10,18,0.6);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.pendente-info {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  color: #f4f7ff;
}
.pendente-info small {
  color: rgba(255,255,255,0.65);
}
.pendente-actions {
  flex: 2 1 360px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pendente-review {
  align-self: flex-start;
  background: rgba(44,95,155,0.15);
  color: #9d7eff;
  text-decoration: none;
  font-weight: 600;
  padding: .35rem .8rem;
  border-radius: 6px;
  transition: background .15s ease;
}
.pendente-review:hover {
  background: rgba(44,95,155,0.25);
}
.pendente-form {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(15,18,30,0.85);
}
.pendente-form input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #f4f7ff;
}
.pendente-form-buttons {
  display: flex;
  gap: .5rem;
}
.pendente-form button {
  margin: 0;
}
.pendente-form--danger {
  border-color: rgba(255,99,132,0.3);
  background: rgba(255,70,70,0.1);
}
.pendente-form--danger button {
  background: #d94848;
}
.pendente-actions form:last-child {
  margin-bottom: 0;
}
.pendentes-list:empty::before {
  content: 'Nenhum.';
  color: rgba(255,255,255,0.7);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}
.review-grid section {
  min-width: 0;
}
.review-grid .codebox {
  max-height: 420px;
  overflow: auto;
}
.visual-editor-shell {
  border: 1px solid rgba(44,95,155,0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30,30,40,0.75), rgba(20,22,30,0.9));
  padding: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  margin: 1.5rem 0;
}
.ve-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .6rem .9rem;
  background: var(--ve-toolbar-bg);
  border-bottom: 1px solid var(--ve-toolbar-border);
  border-radius: 14px 14px 0 0;
  color: var(--ve-toolbar-text);
}
.ve-toolbar .ve-group {
  display: inline-flex;
  gap: .25rem;
  align-items: center;
}
.ve-toolbar .ve-divider {
  width: 1px;
  height: 26px;
  background: var(--ve-toolbar-divider);
  margin: 0 .4rem;
  align-self: center;
}
.ve-btn {
  border: 1px solid var(--ve-toolbar-button-border);
  border-radius: 7px;
  padding: .35rem .65rem;
  background: var(--ve-toolbar-button-bg);
  color: var(--ve-toolbar-button-text);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ve-btn em { font-style: italic; }
.ve-btn:hover,
.ve-btn:focus {
  background: var(--ve-toolbar-button-hover-bg);
  border-color: var(--ve-toolbar-button-border);
}
.ve-dropdown {
  position: relative;
}
.ve-dropdown-toggle::after {
  content: '';
}
.ve-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + .3rem);
  min-width: 200px;
  background: var(--ve-dropdown-bg);
  border: 1px solid var(--ve-dropdown-border);
  border-radius: 10px;
  padding: .4rem 0;
  box-shadow: 0 18px 35px rgba(15,23,42,0.2);
  display: none;
  z-index: 10;
}
.ve-dropdown.open .ve-dropdown-menu {
  display: block;
}
.ve-dropdown-menu button {
  width: 100%;
  padding: .4rem .85rem;
  background: transparent;
  border: 0;
  color: var(--ve-dropdown-text);
  font-size: .9rem;
  text-align: left;
  cursor: pointer;
}
.ve-dropdown-menu button:hover {
  background: var(--ve-toolbar-button-hover-bg);
}
.ve-surface {
  min-height: 520px;
  padding: 1.5rem;
  background: var(--ve-surface-bg);
  color: var(--ve-surface-text);
  border-radius: 0 0 12px 12px;
  overflow: auto;
}
.ve-inspector[hidden] {
  display: none;
}
.ve-inspector {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1rem 1.4rem;
  background: rgba(8,10,18,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
}
.ve-image-preview {
  flex: 1;
  background: rgba(17,21,32,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem;
  color: #f4f7ff;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.ve-image-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
}
.ve-preview-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}
.ve-image-preview-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: center;
}
.ve-image-preview-figure img {
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0c0f18;
}
.ve-image-preview-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  font-size: .85rem;
}
.ve-image-preview-meta dt {
  margin: 0;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.ve-image-preview-meta dd {
  margin: .2rem 0 0;
  color: rgba(255,255,255,0.75);
}
.ve-image-preview a[data-ve-image-preview-open] {
  color: var(--cor-primaria);
  text-decoration: none;
  font-weight: 600;
}
.ve-image-preview a[data-ve-image-preview-open][aria-disabled="true"] {
  pointer-events: none;
  opacity: .55;
}
.ve-image-selected {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 3px;
}
.ve-surface:focus {
  outline: 2px solid rgba(44,95,155,0.8);
  outline-offset: -2px;
}
.ve-surface .wiki-content {
  color: inherit;
}
.ve-surface [data-link-type] {
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}
.ve-surface [data-wiki] {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.2);
  padding: 0 .3rem;
  border-radius: 4px;
  cursor: text;
}
.ve-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 999;
}
.ve-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.ve-modal {
  background: var(--surface-card-bg);
  color: var(--ve-surface-text);
  width: min(480px, 90%);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--surface-card-shadow);
}
.ve-modal h3 {
  margin-top: 0;
  margin-bottom: .5rem;
}
.ve-modal-desc {
  margin-top: 0;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.8);
}
.ve-modal-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.ve-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .9rem;
}
.ve-modal-form input,
.ve-modal-form textarea,
.ve-modal-form select {
  width: 100%;
  padding: .55rem .6rem;
  border-radius: 8px;
  border: 1px solid var(--surface-card-border);
  background: var(--ve-surface-bg);
  color: var(--ve-surface-text);
}
.ve-modal-form button[type="submit"] {
  background: linear-gradient(120deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: .6rem 1.1rem;
  cursor: pointer;
}
.ve-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .5rem;
}
.ve-modal-actions button {
  border: none;
  border-radius: 6px;
  padding: .45rem .9rem;
  cursor: pointer;
}
.ve-modal-actions button[type="submit"] {
  background: var(--cor-primaria);
  color: #fff;
}
.ve-modal-actions button[type="button"] {
  background: rgba(255,255,255,0.1);
  color: #f8f9ff;
}
.ve-hidden-input {
  display: none;
}
.proposal-text {
  margin-bottom: 1rem;
}
.proposal-diff {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.proposal-diff h3 {
  margin: 0;
  font-size: 1rem;
}
@media (max-width: 1200px) {
  .pagina-artigo {
    padding: 0 clamp(1rem, 3vw, 2rem);
  }
}
@media (max-width: 1100px) {
  .pagina-artigo {
    max-width: 960px;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    padding: 0 1.25rem;
  }
  .pagina-artigo .conteudo-central {
    max-width: 100%;
  }
  .pagina-artigo .wiki-side {
    position: static;
    top: auto;
    max-width: none;
    width: 100%;
    margin: 0 0 1.5rem;
  }
  .wiki-side .toc {
    max-height: 360px;
    overflow-y: auto;
    width: 100%;
  }
}
@media (max-width: 900px) {
  .pagina-artigo {
    padding: 0 1rem;
  }
  .wiki-side .toc {
    max-height: 300px;
  }
  .container { padding: .75rem; }
  .nav { flex-wrap: wrap; gap: .75rem; justify-content: center; }
  .nav .busca { width: 100%; justify-content: center; }
  .nav .busca input[type="search"] { width: min(320px, 100%); }
  .auth { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: center; }
  .tabs { justify-content: flex-start; }
  .artigo-header { flex-direction: column; align-items: flex-start; }
  .artigo .meta { display: flex; flex-direction: column; gap: .35rem; }
  .artigo .meta span { margin-right: 0; }
  .review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .pagina-artigo {
    padding: 0 .75rem;
  }
  .wiki-side .toc {
    max-height: 260px;
  }
  .container { padding: .75rem .5rem; }
  .nav { gap: .5rem; }
  .nav .brand { font-size: 1.1rem; }
  .tabs { gap: .25rem; }
  .tab-link { padding: .4rem .65rem; font-size: .9rem; }
  .artigo-header h1 { font-size: 1.6rem; }
  article img { max-width: 100%; height: auto; }
  table { display: block; overflow-x: auto; }
  .lista-artigos li { padding: .8rem 0; }
  .wiki-content .references,
  .wiki-content .mw-references-wrap ol {
    column-count: 1;
  }
}


.license-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem 2.5rem;
}
.license-text {
  width: min(960px, 100%);
  margin: 0 auto;
  background: var(--surface-card-bg);
  border: 1px solid var(--surface-card-border);
  border-radius: 16px;
  box-shadow: var(--surface-card-shadow);
  padding: 1.75rem 2rem;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: .95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--ve-surface-text);
}
.license-text pre {
  margin: 0;
}
.license-hero {
  max-width: 720px;
}
.license-hero p {
  margin: .35rem 0;
  color: var(--wiki-content-muted);
}
.license-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .75rem;
}
.license-actions a {
  text-decoration: none;
  font-weight: 600;
  color: var(--cor-primaria);
}
.license-text.license-document {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.65;
  white-space: normal;
  color: var(--cor-texto);
  text-align: left;
}
.license-document section {
  margin-bottom: 1.3rem;
}
.license-document h2 {
  text-align: center;
  margin: 0 0 .6rem;
  font-size: 1.25rem;
}
.license-document p {
  margin: .35rem 0;
}
.license-document ul,
.license-document ol {
  margin: .2rem 0 1rem 1.4rem;
  padding: 0;
  list-style-position: inside;
}
.license-document li {
  margin: .3rem 0;
}
.license-footnotes {
  border-top: 1px solid var(--surface-card-border);
  padding-top: 1rem;
  margin-top: 1.5rem;
}
.license-term-ref {
  font-weight: 700;
  text-decoration: underline;
}
.license-term-ref--main {
  font-weight: 700;
  text-decoration: none;
}
.license-document a {
  color: var(--cor-primaria);
}

.wiki-content {
  line-height: 1.65;
  color: var(--cor-texto);
}
.wiki-content.has-toc::after { content: ""; display: block; clear: both; }
.wiki-content > *:first-child { margin-top: 0; }
.wiki-content .wiki-body { min-width: 0; }
.wiki-content > *:first-child { margin-top: 0; }
.wiki-content .wiki-body {
  min-width: 0;
}
.wiki-content p { margin: 0 0 1em; }
.wiki-content h1,
.wiki-content h2,
.wiki-content h3,
.wiki-content h4,
.wiki-content h5,
.wiki-content h6 { margin: 1.6em 0 .6em; line-height: 1.25; }
.wiki-content ul,
.wiki-content ol { margin: .8em 0 .8em 1.5em; padding: 0; }
.wiki-content li { margin: .3em 0; }
.wiki-content blockquote { border-left: 3px solid var(--cor-primaria); margin: 1em 0; padding: .4em 1em; background: rgba(44,95,155,0.06); }
.wiki-content pre { background: var(--code-bg); border: 1px solid var(--code-border); padding: .6em; overflow-x: auto; }
.wiki-content code { font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; background: rgba(0,0,0,0.05); padding: .1em .3em; border-radius: 3px; }
.wiki-content table { border-collapse: collapse; width: 100%; margin: 1em 0; background: var(--wiki-table-bg); }
.wiki-content th,
.wiki-content td { border: 1px solid var(--wiki-table-border); padding: .5em .7em; text-align: left; background: var(--wiki-table-cell-bg); }
.wiki-side .toc {
  border: 1px solid var(--wiki-card-border);
  background: var(--wiki-gallery-bg);
  padding: .9em 1.05em;
  margin: 0;
  border-radius: 6px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
.wiki-side .toc::-webkit-scrollbar {
  width: 8px;
}
.wiki-side .toc::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
}
.wiki-side .toc::-webkit-scrollbar-track {
  background: transparent;
}
.wiki-side .toc > strong { display: block; margin-bottom: .5em; }
.wiki-side .toc-level { list-style: none; margin: 0 0 0 1em; padding: 0; }
.wiki-side .toc-level li { margin: .2em 0; }
.wiki-side .toc a { text-decoration: none; color: var(--link); }
.wiki-side .toc a:hover { text-decoration: underline; }

.wiki-content .wiki-tabs {
  float: right;
  width: min(320px, 32%);
  margin: 0 0 1.6rem 1.6rem;
  border: 1px solid var(--wiki-card-border);
  border-radius: 10px;
  background: var(--wiki-tabs-bg);
  box-shadow: var(--wiki-card-shadow);
  padding: .85rem .9rem;
}
.wiki-content .wiki-tabs-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.wiki-content .wiki-tabs-item {
  flex: 1 1 calc(50% - .5rem);
}
.wiki-content .wiki-tabs-item a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  color: var(--wiki-tabs-link-color);
  background: var(--wiki-tabs-link-bg);
  border: 1px solid transparent;
  transition: all .15s ease;
}
.wiki-content .wiki-tabs-item a:hover {
  border-color: var(--wiki-tabs-link-border-hover);
  background: var(--wiki-tabs-link-hover-bg);
}
.wiki-content .wiki-tabs-item.active a {
  border-color: var(--cor-primaria);
  background: var(--cor-primaria);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.wiki-content .wiki-infobox {
  float: right;
  clear: right;
  width: min(100%, 22rem);
  margin: 0 0 1.25rem 1.25rem;
  background: var(--wiki-infobox-bg, #f8f9fa);
  border: 1px solid var(--wiki-infobox-separator, #a2a9b1);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: .88rem;
  line-height: 1.35;
  color: var(--cor-texto);
}
.wiki-content .wiki-infobox-title {
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(0,0,0,0.02) 85%), var(--wiki-tabs-bg);
  border-bottom: 1px solid var(--wiki-infobox-separator, #a2a9b1);
  text-align: center;
  padding: .4rem .95rem;
}
.wiki-content .wiki-infobox-header {
  background: transparent;
  color: var(--wiki-infobox-title-color, #202122);
  padding: .45rem 0 .25rem;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.wiki-content .wiki-infobox-subtitle {
  padding: .35rem .95rem;
  font-style: italic;
  color: var(--wiki-infobox-subtitle-color, #54595d);
  text-align: center;
  border-bottom: 1px solid var(--wiki-infobox-separator, #a2a9b1);
}
.wiki-content .wiki-infobox-media {
  margin: 0;
  padding: .8rem .95rem 1rem;
  text-align: center;
}
.wiki-content .wiki-infobox-media img {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.wiki-content .wiki-infobox-media figcaption {
  margin-top: .45rem;
  font-size: .85rem;
  color: var(--wiki-infobox-caption-color, #555);
}
.wiki-content .wiki-infobox-block {
  padding: .6rem .95rem 0;
}
.wiki-content .wiki-infobox-block h3 {
  margin: 0 0 .35rem;
  font-size: .95rem;
  color: var(--wiki-text-strong, #202122);
}
.wiki-content .wiki-infobox-body {
  margin: 0;
  padding: .6rem .95rem 1rem;
}
.wiki-content .wiki-infobox-row {
  padding: .4rem 0;
  border-top: 1px solid var(--wiki-infobox-separator, #c8ccd1);
}
.wiki-content .wiki-infobox-row:first-child { border-top: none; }
.wiki-content .wiki-infobox-row dt {
  margin: 0 0 .1rem;
  font-weight: 700;
  color: var(--wiki-text-strong, #202122);
}
.wiki-content .wiki-infobox-row dd {
  margin: 0;
  color: var(--cor-texto);
  overflow-wrap: anywhere;
}
.wiki-content .wiki-infobox-body ul,
.wiki-content .wiki-infobox-body ol {
  margin: .25rem 0 .25rem 1rem;
  padding: 0;
}
.wiki-content .wiki-infobox-body li {
  margin: .12rem 0;
}

.wiki-content .wiki-infobox-table {
  margin: .5rem 0;
  border: 1px solid var(--wiki-card-border);
  border-radius: 6px;
  overflow: hidden;
}
.wiki-content .wiki-infobox-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  color: inherit;
}
.wiki-content .wiki-infobox-table th,
.wiki-content .wiki-infobox-table td {
  border: 1px solid var(--wiki-card-border);
  padding: .4rem .5rem;
  background: var(--wiki-table-cell-bg);
}
.wiki-content .wiki-infobox-table th {
  background: var(--wiki-table-bg);
  text-align: left;
}
.wiki-content .wiki-quote-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  clear: both;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.wiki-content .wiki-quote {
  margin: 0;
  width: min(100%, clamp(240px, 56vw, 460px));
  padding: clamp(1rem, 2.1vw, 1.45rem) clamp(1.15rem, 3vw, 1.8rem);
  border: 1px solid rgba(44,95,155,0.4);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(44,95,155,0.08), rgba(44,95,155,0.16));
  box-shadow: 0 10px 26px rgba(15,23,42,0.18);
  position: relative;
  color: var(--wiki-text-strong);
}
.wiki-content .wiki-quote::before,
.wiki-content .wiki-quote::after {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: rgba(44,95,155,0.3);
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  pointer-events: none;
}
.wiki-content .wiki-quote::before {
  content: '“';
  top: -.65rem;
  left: clamp(.4rem, 2vw, 1.5rem);
}
.wiki-content .wiki-quote::after {
  content: '”';
  bottom: -.75rem;
  right: clamp(.4rem, 2vw, 1.5rem);
}
.wiki-content .wiki-quote-text {
  margin: 0;
  font-style: italic;
  color: inherit;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.75;
}
.wiki-content .wiki-quote figcaption {
  margin-top: 1rem;
  font-size: .92rem;
  color: var(--wiki-content-muted);
  text-align: center;
}
.wiki-content .wiki-quote-author {
  font-weight: 600;
}
.wiki-content .wiki-quote-source {
  font-style: italic;
}
.wiki-content .references,
.wiki-content .mw-references-wrap ol {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  column-count: 2;
  column-gap: 2rem;
}
.wiki-content .references li,
.wiki-content .mw-references-wrap li {
  margin-left: 0;
}
.wiki-content .wiki-infobox-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,0.04);
}

.wiki-content .wiki-infobox .wiki-tabs {
  float: none;
  width: auto;
  margin: .7rem .95rem;
  padding: .6rem;
  border-radius: 8px;
  border: 1px solid var(--wiki-card-border);
  box-shadow: none;
  background: rgba(255,255,255,0.05);
}
.wiki-content .wiki-infobox .wiki-tabs-nav {
  flex-direction: column;
  gap: .45rem;
}
.wiki-content .wiki-infobox .wiki-tabs-item {
  flex: 1 1 auto;
}
.wiki-content .wiki-infobox .wiki-tabs-item a {
  font-size: .88rem;
  padding: .5rem .65rem;
}

.wiki-content .wiki-notice {
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.12);
  color: #8a5800;
  padding: .75rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.wiki-content .wiki-gallery {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 1.2rem auto;
  padding: 1rem;
  border: 1px solid var(--wiki-gallery-border);
  border-radius: 12px;
  background: var(--wiki-gallery-bg);
  max-width: 100%;
  justify-content: center;
}
.wiki-content .wiki-gallery-caption {
  flex-basis: 100%;
  text-align: center;
  font-weight: 600;
  margin-bottom: .25rem;
}
.wiki-content .wiki-gallery-item {
  margin: 0;
  text-align: center;
  flex: 0 1 180px;
}
.wiki-content .wiki-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.18);
}
.wiki-content .wiki-gallery-item figcaption {
  margin-top: .45rem;
  font-size: .9rem;
  color: var(--wiki-gallery-caption-color);
}

.wiki-content strong,
.wiki-content b {
  color: var(--wiki-text-strong);
  font-weight: 700;
}
.wiki-content em,
.wiki-content i {
  color: var(--wiki-text-em);
  font-style: italic;
}
.wiki-content em strong,
.wiki-content strong em,
.wiki-content b i,
.wiki-content i b {
  color: var(--wiki-text-strong);
}
.wiki-content figure figcaption {
  color: var(--wiki-content-muted);
}

.wiki-content figure.wiki-media {
  display: inline-flex;
  flex-direction: column;
  gap: .5rem;
  margin: .9rem auto;
  padding: .65rem;
  border-radius: 16px;
  border: 1px solid var(--wiki-card-border);
  background: var(--surface-card-bg);
  box-shadow: 0 18px 40px rgba(15,23,42,0.22);
  width: fit-content;
  max-width: min(100%, clamp(280px, 68vw, 720px));
}
.wiki-content figure.wiki-media img,
.wiki-content img.wiki-media-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.wiki-content figure.wiki-media figcaption,
.wiki-content figure.wiki-media-inline figcaption,
.wiki-content figure.wiki-media-thumb figcaption {
  font-size: .9rem;
  text-align: center;
  color: var(--wiki-content-muted);
}
.wiki-content figure.wiki-media-inline,
.wiki-content figure.wiki-media-thumb {
  margin: .95rem auto;
  padding: .6rem;
  background: var(--surface-card-bg);
  border-radius: 12px;
  border: 1px solid var(--wiki-card-border);
  box-shadow: 0 14px 32px rgba(15,23,42,0.18);
}
.wiki-content figure.wiki-media-thumb {
  max-width: min(100%, 360px);
}
.wiki-content figure.wiki-media-align-left,
.wiki-content figure.wiki-media-inline.wiki-media-align-left,
.wiki-content figure.wiki-media-thumb.wiki-media-align-left {
  float: left;
  margin: .4rem clamp(2.25rem, 5vw, 4.25rem) 1.4rem 0;
}
.wiki-content figure.wiki-media-align-right,
.wiki-content figure.wiki-media-inline.wiki-media-align-right,
.wiki-content figure.wiki-media-thumb.wiki-media-align-right {
  float: right;
  margin: .4rem 0 1.4rem clamp(2.25rem, 5vw, 4.25rem);
}
.wiki-content figure.wiki-media-align-center,
.wiki-content figure.wiki-media-inline.wiki-media-align-center,
.wiki-content figure.wiki-media-thumb.wiki-media-align-center {
  float: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem auto;
  text-align: center;
}
.wiki-content figure[style*="float:left"],
.wiki-content figure[style*="float: left"],
.wiki-content .thumb.tright,
.wiki-content .thumb.tleft {
  margin-right: clamp(2rem, 4vw, 4rem);
  margin-left: 0;
  margin-bottom: 1.2rem;
}
.wiki-content figure[style*="float:right"],
.wiki-content figure[style*="float: right"],
.wiki-content .thumb.tright {
  margin-left: clamp(2rem, 4vw, 4rem);
  margin-right: 0;
  margin-bottom: 1.2rem;
}
.wiki-media-border img {
  border: 1px solid var(--wiki-card-border);
}

.wiki-content .references {
  margin: .75rem 0 1.2rem;
  padding-left: 1.6rem;
  list-style: decimal;
  font-size: .98rem;
}
.wiki-content .references li {
  margin: .25rem 0;
  line-height: 1.45;
}
.wiki-content .references .mw-cite-reference-number {
  font-weight: 600;
  color: var(--cor-primaria);
  margin-right: .4rem;
}
.wiki-content .references .reference-text {
  display: inline;
}
.wiki-content .references .mw-cite-backlink {
  margin-left: .35rem;
  font-size: .85rem;
}
.wiki-content .references .mw-cite-backlink a {
  text-decoration: none;
  color: var(--cor-primaria);
}
.wiki-content .references .mw-cite-backlink a:hover {
  text-decoration: underline;
}
.wiki-content .references .wiki-citation {
  font-style: normal;
}
.wiki-content .references .wiki-citation .citation-title {
  margin-right: .35rem;
}
.wiki-content .references .wiki-citation .citation-title a {
  text-decoration: none;
}
.wiki-content .references .wiki-citation .citation-title a:hover {
  text-decoration: underline;
}
.wiki-content .references .wiki-citation .citation-authors,
.wiki-content .references .wiki-citation .citation-publisher,
.wiki-content .references .wiki-citation .citation-work,
.wiki-content .references .wiki-citation .citation-location,
.wiki-content .references .wiki-citation .citation-date,
.wiki-content .references .wiki-citation .citation-series,
.wiki-content .references .wiki-citation .citation-pages,
.wiki-content .references .wiki-citation .citation-isbn,
.wiki-content .references .wiki-citation .citation-issn,
.wiki-content .references .wiki-citation .citation-doi,
.wiki-content .references .wiki-citation .citation-access,
.wiki-content .references .wiki-citation .citation-quote {
  margin-right: .35rem;
}
.mw-references-wrap {
  column-gap: 2rem;
}
.wiki-notes-and-refs {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--code-border);
  column-gap: 2rem;
}
.wiki-refbegin {
  column-gap: 2rem;
  margin-top: .5rem;
}
.wiki-div-col {
  column-gap: 2rem;
  margin: .5rem 0 1rem;
}

@media (max-width: 900px) {
  .wiki-content .wiki-tabs {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem;
    box-shadow: none;
  }
  .wiki-content .wiki-tabs-item {
    flex: 1 1 100%;
  }
  .wiki-content .wiki-infobox {
    float: none;
    width: 100%;
    margin: 0 0 1.4rem;
  }
  .wiki-media-align-left,
  .wiki-media-align-right {
    float: none;
    margin: 1rem auto;
  }
  figure.wiki-media-inline,
  figure.wiki-media-thumb {
    max-width: min(100%, 420px);
  }
}

.wiki-guide-toc { border: 1px solid #d0d7de; background: rgba(44,95,155,0.04); padding: .9em 1.1em; border-radius: 6px; margin: 1.5em 0; }
.wiki-guide-toc > strong { display: block; margin-bottom: .5em; }
.wiki-guide-toc ol { margin: 0; padding-left: 1.2em; }
.wiki-guide-toc li { margin: .25em 0; }

.wiki-example { margin: 2em 0; }
.wiki-example .example-grid { display: grid; gap: 1.2em; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: flex-start; }
.wiki-example h3 { margin-top: 0; }
.wiki-example .codebox { margin: 0; }

/* Hyperlinks estilo Wikipedia */
a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--link-visitado); }
a:hover { text-decoration-thickness: 2px; }

/* Caixas de código/diff */
.codebox { white-space: pre-wrap; background: var(--code-bg); padding: .6rem; border: 1px solid var(--code-border); overflow: auto; }
.diff-block {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.diff-line {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .25rem .45rem;
  border-radius: 4px;
}
.diff-line code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}
.diff-line.diff-add { background: rgba(46, 204, 113, 0.12); }
.diff-line.diff-del { background: rgba(231, 76, 60, 0.12); }
.diff-line .diff-symbol {
  font-weight: 700;
  width: 1rem;
  text-align: center;
}
.diff-line.diff-add .diff-symbol { color: #1e7e34; }
.diff-line.diff-del .diff-symbol { color: #c0392b; }
.diff-line .diff-symbol { color: #6c757d; }
.diff-add-token { background: rgba(46,204,113,0.25); text-decoration: underline wavy #2ecc71; }
.diff-del-token { background: rgba(231,76,60,0.25); text-decoration: underline wavy #e74c3c; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --cor-texto: #e6e6e6;
    --cor-fundo: #121212;
    --cor-primaria: #2C5F9B;
    --cor-destaque: #4c6785;
    --link: #6ea8fe;
    --link-visitado: #a98bff;
    --code-bg: #1a1a1a;
    --code-border: #333333;
    --diff-add-bg: rgba(0, 160, 0, .22);
    --diff-del-bg: rgba(200, 0, 0, .20);
    --wiki-card-border: #2a3240;
    --wiki-card-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    --wiki-tabs-bg: linear-gradient(160deg, #1f2733 0%, #161c24 85%);
    --wiki-tabs-link-color: #d3e3ff;
    --wiki-tabs-link-bg: rgba(110,168,254,0.12);
    --wiki-tabs-link-hover-bg: rgba(110,168,254,0.22);
    --wiki-tabs-link-border-hover: rgba(110,168,254,0.45);
    --wiki-infobox-bg: linear-gradient(180deg, #18202b 0%, #131a24 90%);
    --wiki-infobox-subtitle-color: #c1d4ff;
    --wiki-infobox-caption-color: #a9bbd8;
    --wiki-infobox-title-color: #e3ecff;
    --wiki-infobox-separator: rgba(255,255,255,0.12);
    --wiki-gallery-border: #27313f;
    --wiki-gallery-bg: rgba(110,168,254,0.08);
    --wiki-gallery-caption-color: #d7e4ff;
    --wiki-table-border: #2a3240;
    --wiki-table-bg: #151b24;
    --wiki-table-cell-bg: #151b24;
    --wiki-text-strong: #f5f7ff;
    --wiki-text-em: #dbe5ff;
    --wiki-content-muted: rgba(235,240,255,0.78);
  }
  .nav input[type="search"] { border-color: #444; background: #1a1a1a; color: #e6e6e6; }
  input, textarea { border-color: #444; background: #1a1a1a; color: #e6e6e6; }
  .lista-artigos li { border-bottom-color: #222; }
  .rodape { border-top-color: #222; }
  .erro { background: #381111; color: #ffb3b3; border-color: #662222; }
}
