/* ==========================================================================
   SNPTI — sistema de design
   Tokens em :root, redefinidos para tema escuro. Sem dependencias externas.
   ========================================================================== */

:root {
  /* Marca */
  --navy: #0f172a;
  --navy-800: #16233c;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-100: #dbeafe;
  --indigo: #4f46e5;
  --tint-blue: #dbeafe;
  --tint-teal: #ccfbf1;
  --tint-indigo: #e0e7ff;
  --accent: #06b6d4;
  --accent-soft: #cffafe;

  /* Superficies e texto */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-inset: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-strong: #0f172a;
  --on-dark: #e2e8f0;
  --on-dark-muted: #94a3b8;

  /* Estado */
  --ok: #059669;
  --ok-soft: #d1fae5;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;

  /* Cabeçalho: claro, com o logótipo a transbordar da barra */
  --header-bg: #ffffff;
  --header-text: #334155;
  --header-text-strong: #1e293b;
  --header-border: #e2e8f0;
  --topbar-bg: #0f172a;
  --topbar-text: #cbd5e1;
  --topbar-label: #94a3b8;

  /* Forma */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .14);
  --ring: 0 0 0 3px rgba(37, 99, 235, .35);

  /* Ritmo */
  --container: 1280px;
  --container-narrow: 940px;
  --gutter: 16px;
  --header-h: 88px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* O tema escuro não é automático: o desenho de base é claro, como no
   original. Só se aplica a quem o escolher no alternador do cabeçalho. */

:root[data-theme="dark"] {
  --header-bg: #111c30;
  --header-text: #cbd5e1;
  --header-text-strong: #f1f5f9;
  --header-border: #23334d;
  --bg: #0b1220;
  --surface: #111c30;
  --surface-2: #16233c;
  --surface-inset: #0f1a2c;
  --border: #23334d;
  --border-strong: #32455f;
  --text: #cbd5e1;
  --text-muted: #94a3b8;
  --text-strong: #f1f5f9;
  --blue-100: #1e3a8a;
  --indigo: #a5b4fc;
  --tint-blue: #1e3a8a;
  --tint-teal: #134e4a;
  --tint-indigo: #312e81;
  --accent-soft: #0e4f5c;
  --ok-soft: #04372a;
  --warn-soft: #422006;
  --danger-soft: #450f0f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, .55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
small { font-size: .82rem; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { .container { padding-inline: 24px; } }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }
.container--narrow { max-width: var(--container-narrow); }

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: .78rem;
  border-bottom: 1px solid #1e293b;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
}
.topbar__tagline { display: none; }
@media (min-width: 640px) { .topbar__tagline { display: inline; } }

.social-row { display: flex; align-items: center; gap: .85rem; margin-left: auto; }
.social-row__label { display: none; color: var(--topbar-label); }
@media (min-width: 768px) { .social-row__label { display: inline; } }
.social-row a { color: inherit; display: inline-flex; transition: color .15s ease; }
.social-row a:hover { color: var(--accent); }
.social-row svg { width: 16px; height: 16px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Cabecalho / navegacao
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: .6rem;
}
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand__link { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo {
  height: 40px;
  width: auto;
  /* Sem isto, a regra global `img { max-width: 100% }` achata o logótipo
     sempre que o menu aperta o cabeçalho. */
  max-width: none;
  flex-shrink: 0;
}
@media (min-width: 640px) { .brand__logo { height: 52px; } }

/* O logótipo é azul-escuro: no tema escuro usa-se a variante clara. */
.brand__logo--on-dark { display: none; }
:root[data-theme="dark"] .brand__logo--on-light { display: none; }
:root[data-theme="dark"] .brand__logo--on-dark { display: block; }
:root[data-theme="light"] .brand__logo--on-light { display: block; }
:root[data-theme="light"] .brand__logo--on-dark { display: none; }
.brand__claim {
  display: none;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  border-left: 1px solid var(--header-border);
  padding-left: .75rem;
  white-space: nowrap;
}
@media (min-width: 768px) { .brand__claim { display: inline; } }

.nav-desktop { display: none; align-items: center; gap: 1.4rem; font-size: .875rem; font-weight: 600; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
@media (min-width: 1200px) { .nav-desktop { gap: 1.75rem; font-size: .9rem; } }
.nav-desktop a { color: var(--header-text); text-decoration: none; white-space: nowrap; transition: color .15s ease; }
.nav-desktop a:hover { color: var(--blue); }
.nav-desktop a[aria-current="page"] { color: var(--blue); font-weight: 700; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--header-text); padding: .5rem; cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { color: var(--blue); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 24px; height: 24px; }

.nav-mobile {
  display: none;
  background: var(--surface-2);
  border-top: 1px solid var(--header-border);
  padding: .75rem var(--gutter) 1.5rem;
}
.nav-mobile[data-open="true"] { display: block; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }
.nav-mobile a {
  display: block;
  color: var(--header-text);
  text-decoration: none;
  padding: .6rem 0;
  font-weight: 600;
}
.nav-mobile a:hover { color: var(--blue); }
.nav-mobile a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.nav-mobile .btn { margin-top: .75rem; }

.theme-toggle {
  background: none;
  border: 0;
  color: var(--topbar-label);
  border-radius: 999px;
  width: 22px; height: 22px;
  margin-left: .35rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* --------------------------------------------------------------------------
   Botoes
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .92rem;
  padding: .75rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--ghost { border-color: #475569; color: #e2e8f0; background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: #fff; }
.btn--outline { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .45rem .85rem; font-size: .82rem; border-radius: var(--radius-sm); }
.btn--lg { padding: .9rem 1.6rem; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Seccoes e blocos
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--surface { background: var(--surface); }
.section--muted { background: var(--surface-2); }
.section__head { text-align: center; max-width: 42rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--text-muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
}
.eyebrow--pill {
  background: rgba(37, 99, 235, .18);
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, .35);
  border-radius: 999px;
  padding: .3rem .85rem;
  margin-bottom: 1rem;
}

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1a30 45%, #14235c 100%);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 7rem);
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--accent); }
.hero__lead { color: #cbd5e1; font-size: 1.125rem; line-height: 1.56; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__actions .btn { flex: 0 0 auto; } }

.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1a30 55%, #14235c 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-head h1 { color: #fff; margin-bottom: .35rem; }
.page-head p { color: #cbd5e1; max-width: 46rem; margin-bottom: 0; }

/* Terminal decorativo do hero */
.terminal {
  background: rgba(30, 41, 59, .82);
  border: 1px solid #334155;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
}
.terminal__bar { display: flex; align-items: center; gap: .45rem; margin-bottom: .9rem; }
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #ef4444; }
.terminal__dot--y { background: #eab308; }
.terminal__dot--g { background: #22c55e; }
.terminal__name { font-family: var(--mono); font-size: .72rem; color: #94a3b8; margin-left: .4rem; }
.terminal pre {
  font-family: var(--mono);
  font-size: .8rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.7;
}
.tok-kw { color: #c084fc; }
.tok-fn { color: #facc15; }
.tok-num { color: #4ade80; }
.tok-cm { color: #64748b; }

/* --------------------------------------------------------------------------
   Grelhas e cartoes
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card--hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.card--inset { background: var(--surface-inset); box-shadow: none; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: var(--tint-blue);
  color: var(--blue);
  margin-bottom: 1rem;
}
/* As tintas alternam, como no desenho original. */
.card__icon--2 { background: var(--tint-teal); color: var(--accent); }
.card__icon--3 { background: var(--tint-indigo); color: var(--indigo); }
.card h3 { margin-bottom: .4rem; font-size: 1.2rem; font-weight: 700; }
.card h2 { margin-bottom: .4rem; font-size: 1.2rem; font-weight: 700; }
.card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 0; }
.card__link {
  display: inline-block;
  margin-top: .9rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.card__link:hover { text-decoration: underline; }

.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat__value { font-size: 1.85rem; font-weight: 800; color: var(--text-strong); line-height: 1.1; }
.stat__label { font-size: .8rem; color: var(--text-muted); }

/* Faixa escura de destaque */
.band {
  background: #0d1729;
  color: #e2e8f0;
  border-block: 1px solid #1e293b;
  padding-block: 3rem;
}
.band h2 { color: #fff; margin-bottom: .4rem; }
.band p { color: #cbd5e1; margin-bottom: 0; font-size: .95rem; }
.band__grid { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 1024px) {
  .band__grid { grid-template-columns: 2fr 1fr; }
  .band__actions { text-align: right; }
}

/* Chamada de atencao suave */
.callout {
  background: var(--blue-100);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
}
.callout h3 { font-size: 1.2rem; }
.callout p { color: var(--text-muted); max-width: 38rem; margin-inline: auto; }

/* Variante para texto corrido: centrar parágrafos longos dificulta a leitura,
   e uma lista centrada afasta os marcadores do texto. */
.callout--text { text-align: left; }
/* O `.callout p` limita a 38rem e centra com margin-inline: auto. Dentro desta
   variante isso desalinhava os parágrafos do título e das listas, que ocupam a
   largura toda. O bloco já está contido pelo .container--narrow. */
.callout--text p { max-width: none; margin-inline: 0; }
.callout--text ul { color: var(--text-muted); padding-left: 1.25rem; }
.callout--text li { margin-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   Separadores internos (tabs)
   -------------------------------------------------------------------------- */
.tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.tabs__list { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__btn {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  padding: 1rem .15rem;
  cursor: pointer;
  white-space: nowrap;
}
.tabs__btn:hover { color: var(--blue); }
.tabs__btn[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }

/* --------------------------------------------------------------------------
   Acordeao de FAQs (<details>, funciona sem JavaScript)
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: .85rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary:hover { background: var(--surface-2); }
.faq__sign {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.faq__item[open] .faq__sign { transform: rotate(45deg); }
.faq__body {
  padding: 1rem 1.35rem 1.35rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .93rem;
}
.faq__body > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Documentos (estatutos, regulamentos)
   -------------------------------------------------------------------------- */
.doc-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .doc-layout { grid-template-columns: 260px 1fr; } }

.doc-index {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 1024px) {
  .doc-index { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.doc-index h2 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  border-bottom: 1px solid var(--border); padding-bottom: .6rem; margin-bottom: .75rem;
}
.doc-index a {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: .3rem 0;
  font-weight: 500;
}
.doc-index a:hover { color: var(--blue); }

.doc-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.doc-section { scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-section + .doc-section { margin-top: 2.75rem; }
.doc-section__head { border-bottom: 1px solid var(--border); padding-bottom: .6rem; margin-bottom: 1.25rem; }
.doc-section__head h2 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Conteudo rico (proveniente do backoffice, ja sanitizado)
   -------------------------------------------------------------------------- */
.prose { color: var(--text); font-size: .96rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
}
.prose code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--surface-2);
  padding: .15em .4em;
  border-radius: var(--radius-sm);
}
.prose pre {
  background: var(--surface-2);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .55rem .75rem; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 700; }

/* Lista de cargos dos orgaos sociais */
.role-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .role-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.role {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.role__title {
  display: block;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue);
}
.role__name { display: block; font-weight: 700; color: var(--text-strong); margin-top: .25rem; }

/* --------------------------------------------------------------------------
   Noticias
   -------------------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card time { font-size: .76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { margin: .5rem 0 .4rem; font-size: 1.05rem; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { flex: 1; }

/* --------------------------------------------------------------------------
   Formularios
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text);
}
.field__hint { font-size: .78rem; color: var(--text-muted); }
.field__error { font-size: .8rem; color: var(--danger); font-weight: 600; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"], input[type="datetime-local"],
select, textarea {
  width: 100%;
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: .65rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--ring);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
textarea.code { font-family: var(--mono); font-size: .85rem; min-height: 220px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }

.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--text-muted); }
.check input { margin-top: .25rem; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }

/* Campo-armadilha para robots: invisivel mas nao `display:none`. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Mensagens
   -------------------------------------------------------------------------- */
.alert {
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: .9rem;
  border: 1px solid transparent;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}
.alert > :last-child { margin-bottom: 0; }
.alert--ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.alert--warn { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.alert--error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.alert--info { background: var(--blue-100); border-color: var(--blue); color: var(--blue); }
:root[data-theme="dark"] .alert--ok,
:root[data-theme="dark"] .alert--warn,
:root[data-theme="dark"] .alert--error,
:root[data-theme="dark"] .alert--info { color: var(--text-strong); }

.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.badge--info { background: var(--blue-100); color: var(--blue); border-color: var(--blue); }
.badge--muted { opacity: .8; }

/* --------------------------------------------------------------------------
   Rodape
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding-block: 3rem 1.75rem;
  margin-top: auto;
  font-size: .85rem;
}
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .88rem; margin-bottom: .85rem; }
.site-footer__wordmark {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .82rem; }
.site-footer p { margin-bottom: .2rem; font-size: .82rem; }
.footer-social { display: flex; gap: .9rem; margin-top: 1rem; }
.footer-social a { color: #94a3b8; display: inline-flex; transition: color .15s ease; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: .78rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Utilitarios pontuais
   -------------------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.stack--sm { gap: .75rem; }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: .75rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2.25rem; }
.mb-4 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* Variantes usadas nos templates (evitam estilos inline e permitem CSP estrita) */
.eyebrow--accent { color: var(--accent); }
.section__head--tight { margin-bottom: 1.75rem; }
.section__head--start { text-align: left; margin-inline: 0; max-width: none; }
.doc-index a.is-active { color: var(--blue); font-weight: 700; }

/* --------------------------------------------------------------------------
   Mapa da sede — carregado apenas a pedido do visitante
   -------------------------------------------------------------------------- */
.map {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  overflow: hidden;
  min-height: 260px;
  display: flex;
}
.map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  text-align: center;
  padding: 2rem 1.25rem;
  width: 100%;
}
.map__address { font-weight: 700; color: var(--text-strong); margin: 0; }
.map__notice { font-size: .82rem; color: var(--text-muted); max-width: 46ch; margin: 0; }
.map__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.map--loaded { min-height: 0; }
.map iframe { width: 100%; min-height: 340px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   Órgãos sociais em grelha, com a etiqueta do órgão em pílula
   -------------------------------------------------------------------------- */
.organ-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .organ-grid { grid-template-columns: repeat(3, 1fr); } }

.organ {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.organ__tag {
  display: inline-block;
  background: var(--tint-blue);
  color: var(--blue);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .7rem;
  border-radius: 999px;
}
.organ h3 { font-size: 1.2rem; font-weight: 700; margin: .9rem 0 .75rem; }
.organ__members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.organ__members li { font-size: .88rem; color: var(--text-muted); }
.organ__members strong { color: var(--text-strong); font-weight: 600; }

/* Faixa de chamada à ação, escura, com o botão à direita */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #10203f 55%, #16255c 100%);
  color: #cbd5e1;
  border: 1px solid #1e293b;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h3 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: .4rem; }
.cta-band p { margin: 0; font-size: .92rem; max-width: 52ch; }
.cta-band .eyebrow { color: var(--accent); margin-bottom: .5rem; display: block; }

/* Contactos: coluna de cartões à esquerda, mapa à direita */
.contact-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 2fr; } }
.contact-card { padding: 1.5rem; }
.contact-card__label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin-bottom: .25rem;
}
.contact-card__value { font-weight: 700; color: var(--text-strong); margin-bottom: .35rem; }
.contact-card .muted { font-size: .85rem; margin-bottom: 0; }

/* O marcador do mapa acompanha o tom escuro do desenho original. */
.map { background: var(--navy); border-color: #1e293b; }
.map__address { color: #fff; }
.map__notice { color: #94a3b8; }
