/* ============================================================
   Portal da Transparência do Conselho — Site Base Informativo
   Edite apenas o index.html (chaves {{ }}); este CSS é fixo.
   ============================================================ */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-alt: #fbfaf6;
  --ink: #1a1d29;
  --ink-soft: #4a4f5e;
  --muted: #7a8090;
  --line: #e6e3da;
  --brand: #1f4d3a;
  --brand-soft: #e8f0eb;
  --accent: #c89b3c;
  --warn: #b54a2a;
  --ok: #2e7d57;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20,25,40,.04), 0 8px 24px -12px rgba(20,25,40,.08);
  --max: 1100px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .brand-mini { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.topbar .topbar-meta { opacity: .75; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, #2a6b51 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
}
.hero .lede {
  font-size: 18px;
  max-width: 720px;
  opacity: .92;
  margin: 0 0 28px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-meta div { font-size: 14px; }
.hero-meta strong { display: block; font-size: 16px; margin-top: 2px; }

/* ---------- Section base ---------- */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--surface-alt); }
.section-head { margin-bottom: 32px; max-width: 760px; }
.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 600;
}
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
  line-height: 1.2;
}
.section .subtitle { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Info row (chave: valor) ---------- */
.info-list { display: grid; gap: 0; }
.info-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row dt { color: var(--muted); font-size: 14px; }
.info-row dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 640px) {
  .info-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}
.pill.ok    { background: #e3f3eb; color: var(--ok); }
.pill.warn  { background: #fdecd9; color: #8a5210; }
.pill.alert { background: #fbe3dc; color: var(--warn); }
.pill.muted { background: #ececec; color: #5a5f6c; }
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Metric cards ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 820px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.metric .label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.metric .value { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--ink); }
.metric .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--accent);
  background: #fdf7e9;
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.callout strong { color: var(--ink); }

/* ---------- People cards ---------- */
.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.person .role { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.person .name { font-family: var(--font-serif); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.person .meta { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.person .meta div { margin-top: 2px; }

/* ---------- TOC ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  columns: 2;
  column-gap: 32px;
}
.toc a { display: block; padding: 6px 0; color: var(--ink-soft); font-size: 14px; }
.toc a:hover { color: var(--brand); text-decoration: none; }
.toc .num { display: inline-block; width: 28px; color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .toc { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c8ccd8;
  padding: 48px 0 24px;
  font-size: 14px;
}
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer a { color: #c8ccd8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid #2a2e3a; padding-top: 20px; opacity: .7; font-size: 12px; }

/* ---------- Utilitários ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
