/* ==========================================================================
   components.css — Componentes · versão 1B · CAPITAL ESCURO
   Depende de tokens.css e base.css. Carregar por último.

   Duas famílias de bloco, na ordem em que aparecem na página:
   CAPA ESCURA — barra utilitária, cabeçalho, mega painel, menu mobile, herói,
   faixa de ativos, indicadores, faixa de fotografia, pôster, rodapé.
   CONTEÚDO CLARO — tudo o que se lê: painéis brancos sobre campo cinza-azulado.
   ========================================================================== */

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  min-height: 46px;
  border: 1px solid transparent;
  font-size: var(--text-base);
  font-weight: var(--w-semi);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
@media (max-width: 34rem) { .btn { white-space: normal; } }
.btn:hover { text-decoration: none; }
.btn svg { flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }

.btn-outline { border-color: var(--rule); color: var(--ink); background: var(--panel); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Sobre campo escuro */
.btn-invert { background: var(--accent); color: #0b0d1a; }
.btn-invert:hover { background: var(--accent-strong); color: #0b0d1a; }
.btn-outline-light { border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .10); border-color: #fff; color: #fff; }

.btn-ghost { padding-inline: 0; min-height: 34px; color: var(--brand); }
.btn-ghost:hover { color: var(--brand-600); text-decoration: underline; }

.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Selo de ícone — 12 setores, sempre traço de 2px */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex: none;
  background: var(--brand-tint);
  color: var(--brand);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge-dark { background: var(--accent-soft); color: var(--accent); }
.icon-badge-lg { width: 52px; height: 52px; }
.icon-badge-lg svg { width: 26px; height: 26px; }

/* ==========================================================================
   CAPA · Barra utilitária
   ========================================================================== */

.utility-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 36px;
}
.utility-bar a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-2);
  white-space: nowrap;
  color: var(--ink-faint);
}
.utility-bar a:hover { color: var(--brand); text-decoration: none; }
.utility-contact { display: flex; gap: var(--space-5); }
.utility-contact a:first-child { display: none; }
@media (min-width: 34rem) { .utility-contact a:first-child { display: inline-flex; } }

.utility-lang { display: flex; align-items: center; gap: var(--space-3); letter-spacing: 0.08em; }
.utility-lang [aria-current] { color: var(--brand); font-weight: var(--w-medium); }
.utility-lang [aria-disabled] { color: rgba(20, 21, 28, .32); cursor: not-allowed; }

/* ==========================================================================
   CAPA · Cabeçalho
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.is-stuck .site-header { border-bottom-color: transparent; box-shadow: var(--shadow-lift); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
@media (min-width: 48rem) { .brand img { height: 34px; } }

/* ---- Navegação principal — sublinhado que cresce ------------------------ */
.nav { display: none; }
@media (min-width: 68rem) { .nav { display: block; margin-left: auto; } }
.nav > ul { display: flex; align-items: center; gap: var(--space-1); }

.nav-link,
.nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--w-medium);
  color: var(--on-dark);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav-link, .nav-trigger { color: var(--ink); }
.nav-link::after,
.nav-trigger::after {
  content: "";
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: 6px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover, .nav-trigger:hover { color: var(--brand); text-decoration: none; }
.nav-link:hover::after,
.nav-trigger:hover::after,
.nav-link[aria-current="page"]::after,
.nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-trigger[aria-expanded="true"] { color: var(--brand); }
.nav-trigger svg { transition: transform var(--dur) var(--ease); opacity: .7; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav > ul > li:last-child .nav-link {
  margin-left: var(--space-3);
  padding-inline: var(--space-5);
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  font-weight: var(--w-semi);
}
.nav > ul > li:last-child .nav-link::after { display: none; }
.nav > ul > li:last-child .nav-link:hover { background: var(--brand-600); color: #fff; }

.nav-item { position: static; }

/* ---- Mega painel -------------------------------------------------------- */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: var(--z-panel);
  display: none;
  padding-block: var(--space-6);
  background: var(--panel);
  border-bottom: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-lift);
}
.mega[data-open] { display: block; animation: mega-in var(--dur) var(--ease) both; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Ponte de hover: cobre a folga entre a barra e o painel. */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

.mega-cols {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.mega-col { display: flex; flex-direction: column; gap: 2px; }

.mega-head {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mega-item {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid transparent;
  font-size: var(--text-base);
  font-weight: var(--w-medium);
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.mega-item:hover {
  background: var(--brand-tint-2);
  border-left-color: var(--brand);
  padding-left: var(--space-4);
  color: var(--brand);
  text-decoration: none;
}
.mega-item[aria-current="page"] { border-left-color: var(--brand); color: var(--brand); }
.mega-item-lg { font-weight: var(--w-semi); }
.mega-item span {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  font-weight: var(--w-regular);
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ---- Botão do menu mobile ---------------------------------------------- */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-left: auto;
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.menu-btn:hover { background: var(--brand-tint-2); border-color: var(--brand); color: var(--brand); }
@media (min-width: 68rem) { .menu-btn { display: none; } }

/* ==========================================================================
   CAPA · Menu mobile
   ========================================================================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer[data-open] { display: flex; animation: drawer-in var(--dur) var(--ease) both; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 68rem) { .drawer { display: none !important; } }

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-inline: var(--gutter);
  background: var(--panel);
  border-bottom: 1px solid var(--rule-soft);
}

.drawer nav { padding: var(--space-4) var(--gutter) var(--space-10); }
.drawer nav > ul > li { background: var(--panel); border: 1px solid var(--rule-soft); padding-inline: var(--space-4); }
.drawer nav > ul { display: flex; flex-direction: column; gap: var(--space-2); }

.drawer-link,
.drawer-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 54px;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--w-semi);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
}
.drawer-link:hover, .drawer-trigger:hover { color: var(--brand); text-decoration: none; }
.drawer-link[aria-current="page"] { color: var(--brand); }
.drawer-trigger svg { flex: none; opacity: .7; transition: transform var(--dur) var(--ease); }
.drawer-trigger[aria-expanded="true"] { color: var(--brand); }
.drawer-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.drawer-sub { display: none; padding-bottom: var(--space-4); }
.drawer-sub[data-open] { display: block; }
.drawer-sub-head {
  display: block;
  padding: var(--space-4) 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.drawer-sub a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  border-left: 2px solid var(--rule-soft);
  font-size: var(--text-base);
  color: var(--ink-muted);
}
.drawer-sub a:hover { border-left-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ==========================================================================
   CAPA · Heróis
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 1.8rem + 3.6vw, 5rem);
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(40, 43, 119, .88) 0%, rgba(11, 13, 26, 0) 62%),
    var(--dark);
  color: var(--on-dark);
}
/* Luz que respira, discreta */
.hero::after {
  content: "";
  position: absolute;
  top: -30%; left: -10%;
  width: 60%; height: 160%;
  background: radial-gradient(circle, rgba(139, 147, 240, .16) 0%, rgba(139, 147, 240, 0) 60%);
  animation: breathe 9s var(--ease) infinite alternate;
  pointer-events: none;
}
@keyframes breathe { from { opacity: .5; transform: translate3d(0, 0, 0) scale(1); } to { opacity: 1; transform: translate3d(3%, 2%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: var(--space-1); color: var(--accent); }
.hero h1 { max-width: 21ch; margin-top: var(--space-4); font-size: var(--text-hero); color: var(--on-dark); }
.hero .lead { margin-top: var(--space-5); max-width: 64ch; color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Página interna — capa escura compacta */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-6) var(--space-7);
  background:
    radial-gradient(110% 170% at 0% 0%, rgba(40, 43, 119, .70) 0%, rgba(11, 13, 26, 0) 62%),
    var(--dark);
  color: var(--on-dark);
}
.page-hero .breadcrumb { margin-bottom: var(--space-5); }
.page-hero .icon-badge { display: flex; margin-bottom: var(--space-4); }
.page-hero .eyebrow[style] { margin-top: 0 !important; }
.page-hero .eyebrow { display: inline-block; color: var(--accent); }
.page-hero h1 { margin-top: var(--space-4); max-width: 30ch; color: var(--on-dark); }
.page-hero .lead { margin-top: var(--space-4); color: var(--on-dark-muted); }
.page-hero-head { display: flex; align-items: flex-start; gap: var(--space-4); }
.page-hero-head > div { min-width: 0; }

/* ==========================================================================
   CONTEÚDO · Trilhas e índices
   ========================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--on-dark-faint);
}
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.breadcrumb a { color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; color: rgba(236, 236, 244, .3); }
.breadcrumb [aria-current] { color: var(--on-dark); }

/* Faixa de troca entre áreas — abas sobre o campo claro */
.area-strip {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  padding-block: var(--space-3);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.area-strip::-webkit-scrollbar { display: none; }
.area-strip a {
  flex: none;
  padding: var(--space-3) 0;
  border-bottom: 2px solid transparent;
  font-size: var(--text-sm);
  font-weight: var(--w-medium);
  white-space: nowrap;
  color: var(--ink-muted);
}
.area-strip a:hover { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }
.area-strip a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: var(--w-semi); }

.section-index {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
}
.section-index h2 {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.section-index a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--text-base);
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.section-index a:last-child { border-bottom: 0; }
.section-index a:hover { background: var(--brand-tint-2); color: var(--brand); padding-left: var(--space-6); text-decoration: none; }
.section-index a[aria-current="page"] { color: var(--brand); font-weight: var(--w-semi); }

/* ==========================================================================
   CONTEÚDO · Grades
   ========================================================================== */

.section-areas { padding-block: var(--section-y); background: var(--surface); }

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 40px;
  padding: 0 var(--space-4);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.grid-areas { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .grid-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .grid-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.area-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.area-cell:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
  color: var(--ink);
  text-decoration: none;
}
.area-cell:hover .icon-badge { background: var(--brand); color: #fff; transform: scale(1.06); }
.area-cell:hover .area-cell-more { color: var(--brand-600); }
.area-cell:hover .area-cell-more::after { transform: translateX(4px); }
.area-cell[hidden] { display: none; }
.area-cell-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.area-cell-num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-faint); }
.area-cell h3 { font-size: var(--text-h3); }
.area-cell p { font-size: var(--text-sm); line-height: 1.65; color: var(--ink-muted); }
.area-cell-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--brand);
}
.area-cell-more::after { content: "→"; transition: transform var(--dur) var(--ease); }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow-lift); transform: translateY(-3px); color: var(--ink); text-decoration: none; }
a.card:hover h3 { color: var(--brand); }
.card h3 { font-size: var(--text-h3); transition: color var(--dur) var(--ease); }
.card p { font-size: var(--text-sm); line-height: 1.65; color: var(--ink-muted); }
.card .mono-label { color: var(--ink-faint); }

.card-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==========================================================================
   CAPA · Faixa de fotografia — 21:9, largura total, rótulo centralizado
   ========================================================================== */

.col-main { display: flex; flex-direction: column; gap: var(--gap); }

.media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(40, 43, 119, .55) 0%, rgba(11, 13, 26, 0) 65%),
    var(--dark);
  overflow: hidden;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(255, 255, 255, .05) 0 1px, transparent 1px 8.33%),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .05) 0 1px, transparent 1px 25%);
  pointer-events: none;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--on-dark-faint);
}
.media-placeholder::before {
  content: "";
  width: 44px; height: 44px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  /* moldura com um traço diagonal, no lugar de ícone importado */
  background-image: linear-gradient(135deg, transparent 46%, var(--accent-line) 46% 54%, transparent 54%);
}
/* Cantos técnicos, para o vazio parecer intencional */
.media::after {
  content: "";
  position: absolute;
  inset: var(--space-4);
  border: 1px dashed rgba(255, 255, 255, .14);
  pointer-events: none;
}
@media (max-width: 40rem) {
  .media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   CONTEÚDO · Notícias — lista em réguas dentro de painel branco
   ========================================================================== */

.news-list {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
}
.news-item {
  display: grid;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-5);
  border-bottom: 1px solid var(--rule-soft);
  grid-template-columns: minmax(0, 1fr);
  transition: background var(--dur) var(--ease);
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: var(--brand-tint-2); }
.news-item:hover h3 a { color: var(--brand); }
@media (min-width: 56rem) {
  .news-item { grid-template-columns: 12rem minmax(0, 1fr); align-items: start; padding-inline: var(--space-6); }
}
.news-kicker {
  display: inline-flex;
  align-items: center;
  align-self: start;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.news-item h3 { font-size: var(--text-h3); }
.news-item h3 a { color: var(--ink); transition: color var(--dur) var(--ease); }
.news-item h3 a:hover { color: var(--brand); text-decoration: none; }
.news-item p {
  margin-top: var(--space-3);
  max-width: 78ch;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink-muted);
}

.pagination { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-7); }
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding-inline: var(--space-3);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   CONTEÚDO · Tabelas
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
}
.doc-table { min-width: 32rem; text-align: left; }
.doc-table caption {
  padding-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--w-semi);
  letter-spacing: -0.02em;
  text-align: left;
}
.doc-table th {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.doc-table th:first-child, .doc-table td:first-child { padding-left: 0; }
.doc-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--text-base);
  vertical-align: middle;
}
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table tbody tr:hover { background: var(--brand-tint-2); }
.doc-table .col-year { width: 5.5rem; font-family: var(--font-mono); }
.doc-table .col-file { text-align: right; }
.doc-table .col-file:last-child { padding-right: 0; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 42px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--rule-soft);
  font-size: var(--text-sm);
  font-weight: var(--w-semi);
  white-space: nowrap;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.dl-btn:hover { background: var(--brand-tint-2); border-color: var(--brand); color: var(--brand); text-decoration: none; }
.dl-btn svg { transition: transform var(--dur) var(--ease); }
.dl-btn:hover svg { transform: translateY(2px); }

.doc-featured { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .doc-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
}
.doc-cell:first-child { border-color: var(--brand); box-shadow: var(--glow); }
.doc-cell p.mono-label { font-size: var(--text-xs); color: var(--brand); }
.doc-cell h3 { font-size: var(--text-h3); }
.doc-cell .doc-file {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.doc-cell .btn { margin-top: var(--space-4); align-self: flex-start; }

.doc-matrix { text-align: left; }
.doc-matrix caption { padding-bottom: var(--space-4); font-size: var(--text-sm); color: var(--ink-muted); text-align: left; }
.doc-matrix th {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  vertical-align: bottom;
}
.doc-matrix td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--text-base);
  vertical-align: middle;
}
.doc-matrix tbody tr:last-child td { border-bottom: 0; }
.doc-matrix th:first-child,
.doc-matrix td:first-child { padding-left: 0; width: 4.5rem; }
.doc-matrix tbody tr:hover { background: var(--brand-tint-2); }
.doc-matrix .year { font-family: var(--font-mono); font-weight: var(--w-medium); }
.doc-matrix .is-latest .year { color: var(--brand); }
.doc-none { display: inline-block; min-width: 44px; color: rgba(20, 21, 28, .26); }

/* ==========================================================================
   CONTEÚDO · Formulário
   ========================================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
}
@media (min-width: 48rem) {
  .form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-content: start; }
  .form > .field:nth-child(n+5),
  .form > .form-note,
  .form > .btn,
  .form > p { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: var(--w-semi); color: var(--ink-muted); }
.input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--rule-soft);
  font-size: var(--text-base);
  color: var(--ink);
  caret-color: var(--brand);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input:hover { border-color: var(--rule); }
.input:focus-visible { background: var(--panel); border-color: var(--brand); box-shadow: var(--glow); outline: none; }
textarea.input { min-height: 8.5rem; resize: vertical; }

.form-note {
  padding: var(--space-4);
  background: var(--brand-tint-2);
  border-left: 2px solid var(--brand);
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--ink-muted);
}

.deflist,
.contact-list {
  padding: var(--space-2) var(--space-5);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
}
.deflist > div,
.contact-list > div { padding-block: var(--space-4); border-bottom: 1px solid var(--rule-soft); }
.deflist > div:last-child,
.contact-list > div:last-child { border-bottom: 0; }
.deflist dt,
.contact-list dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.deflist dd,
.contact-list dd { margin: var(--space-3) 0 0; font-size: var(--text-base); line-height: 1.65; }
.deflist dd ul { display: flex; flex-direction: column; gap: var(--space-2); }
.deflist dd li::before { content: "· "; color: var(--brand); }

/* ==========================================================================
   CONTEÚDO · Estrutura societária
   ========================================================================== */

.tree { display: flex; flex-direction: column; gap: var(--space-3); }
.tree-node {
  padding: var(--space-4) var(--space-5);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--rule);
  box-shadow: var(--shadow-card);
  transition: border-left-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tree-node:hover { border-left-color: var(--brand); transform: translateX(3px); }
.tree-node.is-root { border-left-color: var(--brand); background: var(--brand-tint-2); }
.tree-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--w-semi);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.tree-meta {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.tree-note { display: block; margin-top: var(--space-3); max-width: 62ch; font-size: var(--text-sm); line-height: 1.7; color: var(--ink-muted); }
.tree-children { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); margin-left: var(--space-5); }

.asset-table { text-align: left; }
.asset-table th {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.asset-table td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--text-base);
}
.asset-table tbody tr:hover { background: var(--brand-tint-2); }
.asset-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--brand); }
.asset-table tfoot td { border-bottom: 0; border-top: 1px solid var(--rule); font-weight: var(--w-semi); }

/* ==========================================================================
   CAPA · Pôster — faixa em gradiente, largura total
   ========================================================================== */

.poster { background: var(--panel); color: var(--ink); border-top: 1px solid var(--rule-soft); }
.poster .wrap { padding-block: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.poster h2 { max-width: 26ch; font-size: var(--text-h2); color: var(--ink); }
.poster p { max-width: 56ch; margin-top: var(--space-4); font-size: var(--text-base); line-height: 1.7; color: var(--ink-muted); }
.poster .eyebrow { margin-bottom: var(--space-3); color: var(--brand); }
.poster-actions { margin-top: var(--space-6); }
.poster .btn-invert { background: var(--brand); color: #fff; }
.poster .btn-invert:hover { background: var(--brand-600); color: #fff; }

/* ==========================================================================
   CAPA · Rodapé
   ========================================================================== */

.site-footer { background: var(--dark-foot); color: #fff; }
.footer-grid {
  display: grid;
  gap: var(--space-7);
  padding-block: var(--space-9) var(--space-7);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer-brand img { height: 32px; width: auto; }
.footer-brand p { max-width: 42ch; margin-top: var(--space-4); font-size: var(--text-sm); line-height: 1.7; color: var(--on-dark-faint); }

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
}
.footer-col ul { margin-top: var(--space-3); }
.footer-col a { display: block; padding-block: 7px; font-size: var(--text-sm); color: var(--on-dark-muted); }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  justify-content: space-between;
  padding-block: var(--space-4);
  border-top: 1px solid var(--rule-dark-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(236, 236, 244, .45);
}

/* ==========================================================================
   CONTEÚDO · Corpo de leitura em painel branco
   ========================================================================== */

.grid-2 > .prose,
.col-main > .prose,
.wrap-narrow > .prose,
.wrap-default > .prose {
  max-width: none;
  padding: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
}
.grid-2 > .prose > *,
.col-main > .prose > *,
.wrap-narrow > .prose > *,
.wrap-default > .prose > * { max-width: 70ch; }

/* ==========================================================================
   Interação — progresso de leitura e volta ao topo (criados pelo main.js)
   ========================================================================== */

.read-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 70;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--dark);
  color: #fff;
  border: 1px solid var(--rule-dark);
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); }

/* ==========================================================================
   Impressão
   ========================================================================== */

@media print {
  .utility-bar, .site-header, .drawer, .menu-btn, .area-strip, .pagination,
  .poster, .filter-bar, .ticker, .to-top, .read-progress, .media { display: none; }
  body { background: #fff; color: #000; }
  .hero, .page-hero { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .hero .lead, .page-hero .lead, .breadcrumb, .breadcrumb a { color: #000 !important; }
  .panel, .card, .news-list, .table-wrap, .area-cell, .stat, .prose { box-shadow: none; border: 1px solid #ddd; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   Rodapé · Escritórios — quatro endereços, mesmo padrão de início e fim
   ========================================================================== */

.footer-offices {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-6) var(--space-7);
  border-top: 1px solid var(--rule-dark-soft);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) { .footer-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .footer-offices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.office h2 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--w-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.office p {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--on-dark-muted);
}
.office svg { flex: none; margin-top: 4px; color: var(--accent); }
.office a { color: inherit; }
.office a:hover { color: #fff; text-decoration: underline; }
.office-tel { white-space: nowrap; }
.office-tel a { font-variant-numeric: tabular-nums; white-space: nowrap; }
