/* ==========================================================================
   ABLACC · Academia Brasileira de Letras, Artes e Ciências da Caatinga
   Design System Editorial & Acadêmico Premium (WCAG 2.1 AA/AAA Compliant)
   ========================================================================== */

:root {
  /* Escala Heráldica: Azul Marinho Acadêmico */
  --navy-950: #06152d;
  --navy-900: #0b254e;
  --navy-850: #0e2f63;
  --navy-800: #123774;
  --navy-700: #1a4c9c;
  --navy-600: #2560ba;
  --navy-50: #eef3fa;

  /* Aliases de compatibilidade */
  --navy: var(--navy-900);
  --navy-2: var(--navy-800);
  --blue: var(--navy-600);

  /* Escala Heráldica: Ouro Caatinga (Bifurcado para Contraste Acessível) */
  --gold-surface: #e8b632;
  /* Preenchimento de botões/badges c/ texto navy escuro (>11:1 AAA) */
  --gold-hover: #f0c246;
  /* Hover de botões dourados */
  --gold-border: #d4a017;
  /* Frisos, bordas e separadores */
  --gold-text: #8d5a04;
  /* Textos, subtítulos e números em fundo claro (5.61:1 AA) */
  --gold-light: #fbf6e8;
  /* Fundo suave de cards/badges */
  --gold-muted: rgba(212, 160, 23, 0.18);

  /* Aliases de compatibilidade */
  --gold: var(--gold-surface);
  --gold-d: var(--gold-text);

  /* Superfícies & Papel Editorial */
  --bg: #fcfbf8;
  /* Fundo geral marfim suave (conforto de leitura) */
  --paper: #f5f2ea;
  /* Seções alternadas de papel acadêmico */
  --paper-2: #ece6d9;
  /* Destaque suave de papel */
  --card: #ffffff;
  /* Cartões brancos de alto contraste */
  --card-hover: #ffffff;

  /* Tipografia & Contraste de Texto */
  --ink: #0f172a;
  /* Texto principal de alta densidade (16:1 AAA) */
  --ink-soft: #334155;
  /* Texto secundário e parágrafos */
  --muted: #526077;
  /* Metadados, datas e legendas (>7:1 AAA) */
  --line: #e2ddd2;
  /* Linhas divisórias suaves */
  --line-light: #ece7dc;

  /* Famílias Tipográficas */
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Variáveis Semânticas de Conteúdo & Elementos (Contraste Acessível Garantido) */
  --heading:       var(--navy-900);
  --heading-em:    var(--navy-700);
  --stats-num:     var(--navy-900);
  --more-link:     var(--navy-900);
  --btn-navy-bg:   var(--navy-900);
  --btn-navy-text: #ffffff;
  --btn-nav-bg:    var(--navy-900);
  --btn-nav-text:  #ffffff;

  /* Sistema de Sombras Suaves Multicamadas */
  --shadow-xs: 0 1px 2px rgba(11, 37, 78, 0.04);
  --shadow-sm: 0 2px 4px rgba(11, 37, 78, 0.05), 0 1px 2px rgba(11, 37, 78, 0.03);
  --shadow-md: 0 6px 16px -2px rgba(11, 37, 78, 0.08), 0 2px 6px -1px rgba(11, 37, 78, 0.04);
  --shadow-lg: 0 16px 36px -4px rgba(11, 37, 78, 0.12), 0 6px 14px -2px rgba(11, 37, 78, 0.05);
  --shadow-gold: 0 8px 24px -2px rgba(212, 160, 23, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo Escuro (Refinado com Alto Contraste & Sem Quebras de Botões) */
:root[data-theme=dark] {
  --bg: #070e1d;
  --paper: #0c172e;
  --paper-2: #122040;
  --card: #0f1c38;
  --card-hover: #14254b;
  --ink: #f3f6fc;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: #1c2e56;
  --line-light: #233866;

  --navy-950: #040a14;
  --navy-900: #0b1a36;
  --navy: #162a52;
  --navy-2: #203b70;
  --blue: #79a8ff;

  --gold-text: #f5cb5c;
  --gold-surface: #e5b32f;
  --gold-light: rgba(229, 179, 47, 0.12);

  /* Variáveis Semânticas no Dark Mode (Alto Contraste AAA) */
  --heading:       #ffffff;
  --heading-em:    var(--gold-text);
  --stats-num:     #ffffff;
  --more-link:     var(--gold-text);
  --btn-navy-bg:   var(--gold-surface);
  --btn-navy-text: var(--navy-950);
  --btn-nav-bg:    var(--gold-surface);
  --btn-nav-text:  var(--navy-950);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #070e1d;
    --paper: #0c172e;
    --paper-2: #122040;
    --card: #0f1c38;
    --card-hover: #14254b;
    --ink: #f3f6fc;
    --ink-soft: #cbd5e1;
    --muted: #94a3b8;
    --line: #1c2e56;
    --line-light: #233866;

    --navy-950: #040a14;
    --navy-900: #0b1a36;
    --navy: #162a52;
    --navy-2: #203b70;
    --blue: #79a8ff;

    --gold-text: #f5cb5c;
    --gold-surface: #e5b32f;
    --gold-light: rgba(229, 179, 47, 0.12);

    /* Variáveis Semânticas no Dark Mode nativo do SO */
    --heading:       #ffffff;
    --heading-em:    var(--gold-text);
    --stats-num:     #ffffff;
    --more-link:     var(--gold-text);
    --btn-navy-bg:   var(--gold-surface);
    --btn-navy-text: var(--navy-950);
    --btn-nav-bg:    var(--gold-surface);
    --btn-nav-text:  var(--navy-950);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

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

body.site {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.site a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Contêineres & Alinhamento */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.narrow {
  max-width: 840px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

/* Acessibilidade */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--gold-surface);
  color: var(--navy-950);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.skip:focus {
  left: 16px;
  outline: 3px solid var(--navy-950);
}

:focus-visible {
  outline: 2px solid var(--gold-border);
  outline-offset: 3px;
}

/* Tipografia Editorial */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--heading);
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0;
}

:root[data-theme=dark] h1,
:root[data-theme=dark] h2,
:root[data-theme=dark] h3,
:root[data-theme=dark] h4 {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) h1,
  :root:not([data-theme=light]) h2,
  :root:not([data-theme=light]) h3,
  :root:not([data-theme=light]) h4 {
    color: #ffffff;
  }
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  margin-block: 0.25em;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  margin-block: 0 0.45em;
  font-weight: 600;
}

h2 em,
h1 em {
  color: var(--heading-em);
  font-style: italic;
  font-weight: inherit;
}

:root[data-theme=dark] h2 em,
:root[data-theme=dark] h1 em {
  color: var(--gold-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) h2 em,
  :root:not([data-theme=light]) h1 em {
    color: var(--gold-text);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 6px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.orn-line {
  width: 130px;
  height: 2px;
  margin: 14px 0 20px;
  background: linear-gradient(90deg, var(--gold-border), rgba(212, 160, 23, 0.05));
  border-radius: 2px;
}

.center .orn-line,
.page-hero .orn-line {
  margin-inline: auto;
}

.page-hero.left .orn-line {
  margin-inline: 0;
}

.lead {
  font-size: 1.14rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */
.topbar-site {
  background: var(--navy-950);
  color: #d8e3f8;
  font-size: 0.81rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 7px;
  flex-wrap: wrap;
}

.topbar-site .tag {
  color: #bfd0f3;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tb-right {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.tb-right a {
  color: #d8e3f8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.tb-right a:hover {
  color: var(--gold-surface);
}

.tb-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  fill: currentColor;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-full);
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold-surface);
  color: var(--gold-surface);
}

/* Header Fixo / Frosted Glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 251, 248, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

:root[data-theme=dark] .site-header {
  background: rgba(7, 14, 29, 0.92);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .site-header {
    background: rgba(7, 14, 29, 0.92);
  }
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(11, 37, 78, 0.08);
  background: rgba(252, 251, 248, 0.98);
}

:root[data-theme=dark] .site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: rgba(7, 14, 29, 0.98);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .site-header.scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    background: rgba(7, 14, 29, 0.98);
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
}

/* Marca / Logotipo */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 5px rgba(11, 37, 78, 0.12));
}

.brand span {
  display: flex;
  flex-direction: column;
}

.brand b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.48rem;
  letter-spacing: 0.04em;
  color: var(--heading);
  line-height: 1;
}

:root[data-theme=dark] .brand b {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .brand b {
    color: #ffffff;
  }
}

.brand small {
  font-size: 0.69rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-top: 3px;
}

/* Menu de Navegação */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav>a,
.dd>a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.main-nav>a:hover,
.dd>a:hover {
  background: var(--paper-2);
  color: var(--heading);
}

:root[data-theme=dark] .main-nav>a:hover,
:root[data-theme=dark] .dd>a:hover {
  background: var(--paper-2);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .main-nav>a:hover,
  :root:not([data-theme=light]) .dd>a:hover {
    background: var(--paper-2);
    color: #ffffff;
  }
}

.main-nav a.active {
  background: var(--navy-50);
  color: var(--heading);
  font-weight: 700;
}

:root[data-theme=dark] .main-nav a.active {
  background: var(--paper-2);
  color: var(--gold-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .main-nav a.active {
    background: var(--paper-2);
    color: var(--gold-text);
  }
}

.btn-nav {
  background: var(--btn-nav-bg, var(--navy-900)) !important;
  color: var(--btn-nav-text, #ffffff) !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-full) !important;
  margin-left: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition) !important;
}

.btn-nav:hover {
  background: var(--navy-700) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

:root[data-theme=dark] .btn-nav {
  background: var(--gold-surface) !important;
  color: var(--navy-950) !important;
  font-weight: 700 !important;
}

:root[data-theme=dark] .btn-nav:hover {
  background: var(--gold-hover) !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .btn-nav {
    background: var(--gold-surface) !important;
    color: var(--navy-950) !important;
    font-weight: 700 !important;
  }
  :root:not([data-theme=light]) .btn-nav:hover {
    background: var(--gold-hover) !important;
  }
}

/* Dropdown */
.dd {
  position: relative;
}

.dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 70;
  animation: ddFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ddFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.dd:hover .dd-menu,
.dd:focus-within .dd-menu {
  display: block;
}

.dd-menu a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--ink);
}

.dd-menu a:hover {
  background: var(--paper);
  color: var(--heading);
}

:root[data-theme=dark] .dd-menu a:hover {
  color: var(--gold-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .dd-menu a:hover {
    color: var(--gold-text);
  }
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--heading);
  cursor: pointer;
  transition: var(--transition);
}

.burger:hover {
  background: var(--paper);
  border-color: var(--gold-border);
}

:root[data-theme=dark] .burger {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .burger {
    color: #ffffff;
  }
}

/* Mobile Menu */
@media (max-width: 960px) {
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    background: var(--card);
    flex-direction: column;
    align-items: stretch;
    padding: 84px 22px 32px;
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    gap: 4px;
    z-index: 55;
  }

  body.nav-open .main-nav {
    transform: none;
  }

  .dd-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    background: transparent;
  }

  .brand small {
    display: none;
  }

  .btn-nav {
    margin: 16px 0 0;
    text-align: center;
    justify-content: center;
  }

  .burger {
    position: relative;
    z-index: 60;
  }
}

/* ==========================================================================
   Hero & Carrossel
   ========================================================================== */
.hero {
  position: relative;
  min-height: 560px;
  background: var(--navy-950);
  color: #ffffff;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-bottom: 70px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background:
    linear-gradient(110deg, rgba(6, 21, 45, 0.95), rgba(11, 37, 78, 0.82) 55%, rgba(11, 37, 78, 0.45)),
    var(--bg, none) center/cover no-repeat,
    radial-gradient(1200px 500px at 80% 20%, rgba(37, 96, 186, 0.4), transparent),
    var(--navy-950);
}

.slide.on {
  opacity: 1;
  visibility: visible;
  position: relative;
  min-height: 560px;
}

.slide h1 {
  color: #ffffff !important;
  max-width: 800px;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide p {
  max-width: 640px;
  font-size: 1.16rem;
  color: #dce7f9;
  line-height: 1.7;
  margin-block: 10px 24px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-surface);
  color: var(--navy-950);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Botões Heráldicos */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-surface);
  color: var(--navy-950) !important;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  border: 0;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 160, 23, 0.45);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-navy-bg, var(--navy-900));
  color: var(--btn-navy-text, #ffffff) !important;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-navy:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

:root[data-theme=dark] .btn-navy {
  background: var(--gold-surface) !important;
  color: var(--navy-950) !important;
  font-weight: 700;
  border: 0;
}

:root[data-theme=dark] .btn-navy:hover {
  background: var(--gold-hover) !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .btn-navy {
    background: var(--gold-surface) !important;
    color: var(--navy-950) !important;
    font-weight: 700;
    border: 0;
  }
  :root:not([data-theme=light]) .btn-navy:hover {
    background: var(--gold-hover) !important;
  }
}

/* Controles do Carrossel */
.dots {
  position: absolute;
  bottom: 74px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 5;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.dots button.on {
  background: var(--gold-surface);
  width: 32px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--gold-surface);
  color: var(--gold-surface);
}

.arrow.l {
  left: 18px;
}

.arrow.r {
  right: 18px;
}

@media (max-width: 760px) {
  .arrow {
    display: none;
  }

  .hero,
  .slide.on {
    min-height: 480px;
    padding-bottom: 60px;
  }

  .dots {
    bottom: 58px;
  }
}

/* ==========================================================================
   Seções & Estatísticas
   ========================================================================== */
.sec {
  padding-block: 76px;
}

.paper {
  background: var(--paper);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.more {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--more-link, var(--navy-900));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid var(--gold-border);
  padding-bottom: 2px;
  transition: var(--transition);
}

.more:hover {
  color: var(--gold-text);
  border-bottom-color: var(--heading);
}

:root[data-theme=dark] .more:hover {
  border-bottom-color: var(--gold-surface);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .more:hover {
    border-bottom-color: var(--gold-surface);
  }
}

:root[data-theme=dark] .more {
  color: var(--gold-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .more {
    color: var(--gold-text);
  }
}

/* Indicadores / Estatísticas */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin-top: -46px;
  position: relative;
  z-index: 10;
}

.stats div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--gold-border);
  transition: var(--transition);
}

.stats div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stats b {
  display: block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--stats-num, var(--navy-900));
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  margin-bottom: 6px;
}

:root[data-theme=dark] .stats b {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .stats b {
    color: #ffffff;
  }
}

.stats span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  .stats {
    margin-top: -30px;
    gap: 12px;
  }

  .stats div {
    padding: 18px 12px;
  }

  .stats b {
    font-size: 2.2rem;
  }
}

/* Quem Somos na Home */
.about-home {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 52px;
  align-items: center;
}

@media (max-width: 880px) {
  .about-home {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.values li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  color: var(--ink-soft);
  transition: var(--transition);
}

.values li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* Page Hero Padrão */
.page-hero {
  background: linear-gradient(135deg, var(--paper), var(--paper-2));
  text-align: center;
  padding: 68px 0 54px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(212, 160, 23, 0.14), transparent 45%);
  pointer-events: none;
}

.page-hero.left {
  text-align: left;
}

.page-hero .meta {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 6px;
}

/* ==========================================================================
   Cards: Cadeiras & Acadêmicos
   ========================================================================== */
.chair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.ccard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 20px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

a.ccard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-border);
}

.cc-num {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.04em;
}

.ccard strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--heading);
  line-height: 1.25;
  margin-top: 4px;
}

:root[data-theme=dark] .ccard strong {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .ccard strong {
    color: #ffffff;
  }
}

.ccard small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Avatares Heráldicos */
.av {
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #ffffff;
  font-family: var(--serif);
  font-weight: 700;
  flex: none;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
}

:root[data-theme=dark] .av {
  border-color: var(--paper-2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .av {
    border-color: var(--paper-2);
  }
}

.av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.av.md {
  width: 58px;
  height: 58px;
  font-size: 1.5rem;
}

.av.lg {
  width: 100px;
  height: 100px;
  font-size: 2.3rem;
}

.av.xl {
  width: 176px;
  height: 176px;
  font-size: 3.8rem;
}

/* ==========================================================================
   Cards de Notícias & Editoriais
   ========================================================================== */
.ngrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.ncard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.ncard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-light);
}

.nc-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-900);
}

.nc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ncard:hover .nc-img img {
  transform: scale(1.05);
}

.nc-ph {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--gold-surface);
  font-size: 3.2rem;
}

.nc-img em {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold-surface);
  color: var(--navy-950);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nc-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nc-meta {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nc-meta a {
  color: var(--gold-text);
  font-weight: 700;
}

.nc-body h3 {
  font-size: 1.42rem;
  line-height: 1.25;
  margin: 0;
}

.nc-body h3 a {
  color: var(--heading);
}

:root[data-theme=dark] .nc-body h3 a {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .nc-body h3 a {
    color: #ffffff;
  }
}

.nc-body h3 a:hover {
  color: var(--gold-text);
}

.nc-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.nc-body .more {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Tabs & Filtros
   ========================================================================== */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tabs a {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: var(--transition);
}

.tabs a:hover {
  background: var(--paper-2);
  color: var(--heading);
}

:root[data-theme=dark] .tabs a:hover {
  background: var(--paper-2);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .tabs a:hover {
    background: var(--paper-2);
    color: #ffffff;
  }
}

.tabs a.on {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}

:root[data-theme=dark] .tabs a.on {
  background: var(--gold-surface);
  color: var(--navy-950);
  border-color: var(--gold-surface);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .tabs a.on {
    background: var(--gold-surface);
    color: var(--navy-950);
    border-color: var(--gold-surface);
  }
}

.tabs small {
  opacity: 0.8;
  font-weight: 500;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 580px;
}

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font: inherit;
  background: var(--card);
  color: var(--ink);
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(26, 76, 156, 0.15);
  outline: 0;
}

/* ==========================================================================
   Perfil & Detalhes
   ========================================================================== */
.profile-hero {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prof {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-hero h1 {
  color: #ffffff !important;
}

.profile-hero .eyebrow {
  color: var(--gold-surface);
}

.profile-hero .sub {
  font-size: 1.25rem;
  color: #dce7f9;
  margin: 0.2em 0 0.5em;
  font-weight: 500;
}

.chips span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin: 3px 5px 3px 0;
  font-size: 0.86rem;
  color: #ffffff;
}

.prof-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  align-items: start;
}

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

.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.side-card h3 {
  margin: 8px 0 4px;
}

.mini {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
}

.mini span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.mini small {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.mini em {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.facts {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 18px;
  margin: 22px 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.94rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--heading);
  color: var(--heading);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 3px;
  transition: var(--transition);
}

.chip-link:hover {
  background: var(--heading);
  color: #ffffff;
}

:root[data-theme=dark] .chip-link {
  border-color: var(--gold-surface);
  color: var(--gold-surface);
}

:root[data-theme=dark] .chip-link:hover {
  background: var(--gold-surface);
  color: var(--navy-950);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .chip-link {
    border-color: var(--gold-surface);
    color: var(--gold-surface);
  }

  :root:not([data-theme=light]) .chip-link:hover {
    background: var(--gold-surface);
    color: var(--navy-950);
  }
}

.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  text-align: center;
}

.trio .mini {
  justify-content: center;
}

/* ==========================================================================
   Editorial de Notícias & Leitura Longa
   ========================================================================== */
.cover {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  max-height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.prose-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.prose-body h2,
.prose-body h3 {
  margin-top: 1.8em;
  margin-bottom: 0.4em;
  color: var(--heading);
}

:root[data-theme=dark] .prose-body h2,
:root[data-theme=dark] .prose-body h3 {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .prose-body h2,
  :root:not([data-theme=light]) .prose-body h3 {
    color: #ffffff;
  }
}

.prose-body blockquote {
  border-left: 4px solid var(--gold-border);
  margin: 1.6em 0;
  padding: 0.6em 1.4em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--heading);
  background: var(--paper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

:root[data-theme=dark] .prose-body blockquote {
  color: var(--gold-text);
  background: var(--paper-2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .prose-body blockquote {
    color: var(--gold-text);
    background: var(--paper-2);
  }
}

.prose-body img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-block: 24px;
}

.prose-body a {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

:root[data-theme=dark] .prose-body a {
  color: var(--gold-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .prose-body a {
    color: var(--gold-text);
  }
}

.share {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.share a,
.share button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--card);
  font: 600 0.88rem var(--sans);
  cursor: pointer;
  color: var(--ink);
  transition: var(--transition);
}

.share a:hover,
.share button:hover {
  border-color: var(--gold-border);
  background: var(--paper);
  color: var(--heading);
}

:root[data-theme=dark] .share a:hover,
:root[data-theme=dark] .share button:hover {
  border-color: var(--gold-border);
  background: var(--paper-2);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .share a:hover,
  :root:not([data-theme=light]) .share button:hover {
    border-color: var(--gold-border);
    background: var(--paper-2);
    color: #ffffff;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}

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

.ok-box,
.err-box {
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-top: 20px;
}

.ok-box {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #05603a;
}

.err-box {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #912018;
}

.ok-box h3,
.err-box h3 {
  margin: 0 0 6px;
  color: inherit;
}

/* ==========================================================================
   Rodapé & Transparência
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: #c7d5f0;
  margin-top: 60px;
  padding-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme=dark] .site-footer {
  background: #040914;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .site-footer {
    background: #040914;
  }
}

.orn {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
  padding: 34px 0 14px;
  color: var(--gold-surface);
}

.orn span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border));
}

.orn span:last-child {
  background: linear-gradient(270deg, transparent, var(--gold-border));
}

.orn i {
  font-style: normal;
  font-size: 1.1rem;
}

.fgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1fr;
  gap: 38px;
  padding-block: 36px;
}

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

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

.site-footer h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--gold-surface);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.site-footer a {
  display: block;
  padding: 4px 0;
  color: #c7d5f0;
  font-size: 0.94rem;
  transition: var(--transition);
}

.site-footer a:hover {
  color: var(--gold-surface);
  transform: translateX(3px);
}

.site-footer p {
  margin: 0 0 10px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #a9bede;
}

.site .f-logo,
.site-footer .f-logo,
img.f-logo {
  height: 62px !important;
  max-height: 62px !important;
  width: auto !important;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.flags {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.flags svg {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.fbottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 20px;
  font-size: 0.85rem;
  color: #8da5cb;
}

.fbottom a {
  display: inline;
  color: var(--gold-surface);
  font-weight: 600;
}

.fbottom a:hover {
  text-decoration: underline;
}

/* Cookie Banner */
.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 780px;
  margin: auto;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  color: #e2e8f0;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  z-index: 90;
  font-size: 0.92rem;
}

.cookie form {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.cookie a {
  color: #93c5fd;
  display: inline;
  text-decoration: underline;
}

.cookie .btn.ghost {
  color: #e2e8f0;
  border: 1px solid #475569;
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.cookie .btn.ghost:hover {
  background: #1e293b;
}

.cookie .btn.sm {
  background: var(--gold-surface);
  color: var(--navy-950);
  border: 0;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

/* Animações e Transições */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slide {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}