/* ============================================================
   AUDITORIA PÚBLICA DIGITAL — NOVA IGUAÇU / RJ
   Portal Investigativo Documental
   ============================================================ */
:root {
  --navy: #0b1b2e;
  --navy-2: #12293f;
  --navy-3: #1b3a57;
  --paper: #f5f2ec;
  --paper-2: #ece7dd;
  --card: #ffffff;
  --ink: #1c2733;
  --ink-soft: #4c5b6a;
  --line: #d8d0c2;
  --gold: #b98a2f;
  --gold-soft: #f3e6c8;
  --red: #a93226;
  --red-soft: #f9e4e1;
  --green: #1e7a46;
  --green-soft: #dff0e5;
  --blue: #1f5f8b;
  --blue-soft: #e0edf5;
  --amber: #b9770e;
  --amber-soft: #fbedd3;
  --purple: #6c3fa0;
  --purple-soft: #ece2f6;
  --gray-soft: #e6e8eb;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 27, 46, 0.10);
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
.container { width: min(1080px, 92%); margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
p { margin-bottom: 12px; }
strong { color: var(--navy); }

/* ===== faixa superior ===== */
.topstrip {
  background: var(--navy);
  color: #8fa6bd;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topstrip .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topstrip .live { color: var(--gold); font-weight: 700; }

/* ===== header / nav ===== */
header {
  background: var(--navy-2);
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #8a5f14);
  color: var(--navy); font-weight: 900; font-family: var(--font-display);
  display: grid; place-items: center; font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.25);
}
.brand-text { line-height: 1.15; }
.brand-text .b1 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: #fff; }
.brand-text .b2 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; gap: 20px; align-items: center; list-style: none; }
.nav-links a {
  color: #c6d2df; font-size: 0.92rem; font-weight: 600;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; text-decoration: none; border-bottom-color: var(--gold); }
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.menu-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px; cursor: pointer; padding: 8px 10px; flex-direction: column; gap: 4px;
}
.menu-toggle span { width: 20px; height: 2px; background: #fff; display: block; }

/* ===== hero ===== */
.hero {
  background:
    radial-gradient(900px 380px at 88% -20%, rgba(185,138,47,0.22), transparent 60%),
    var(--navy);
  color: #e8eef5;
  padding: 72px 0 60px;
}
.hero .kicker {
  display: inline-block; color: var(--gold); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 16px;
  border: 1px solid rgba(185,138,47,0.5); padding: 6px 14px; border-radius: 4px;
}
.hero h1 { color: #fff; max-width: 22ch; margin-bottom: 18px; }
.hero .lead { font-size: 1.14rem; color: #b9c8d8; max-width: 62ch; margin-bottom: 26px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  padding: 7px 15px; border-radius: 999px; font-size: 0.84rem; color: #d7e1ec; font-weight: 600;
}

/* ===== seções ===== */
section { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head .kicker {
  display: block; color: var(--gold); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px;
}
.section-head p { color: var(--ink-soft); }

/* ===== princípios / alertas ===== */
.principle {
  background: var(--card); border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 28px; box-shadow: var(--shadow);
}
.principle h3 { color: var(--gold); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }
.principle p:last-child { margin-bottom: 0; }
.alert-red {
  background: var(--red-soft); border: 1px solid #e5b8b2; border-radius: var(--radius);
  padding: 20px 24px; color: #6e2018;
}
.alert-red strong { color: var(--red); }
.alert-blue {
  background: var(--blue-soft); border: 1px solid #b9d2e3; border-radius: var(--radius);
  padding: 20px 24px; color: #164a6e;
}

/* ===== taxonomia ===== */
.tax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tax-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.tax-item .t {
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px; display: inline-block; padding: 3px 10px; border-radius: 4px;
}
.t-fato { background: var(--green-soft); color: var(--green); }
.t-diverg { background: var(--amber-soft); color: var(--amber); }
.t-indicio { background: var(--blue-soft); color: var(--blue); }
.t-possivel { background: var(--red-soft); color: var(--red); }
.t-demostrada { background: var(--purple-soft); color: var(--purple); }
.t-alegacao { background: var(--gray-soft); color: #4a5568; }
.tax-item p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ===== painel / métricas ===== */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.metric .num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy);
}
.metric .lbl { font-size: 0.86rem; color: var(--ink-soft); font-weight: 600; }
.metric-note {
  margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); font-style: italic;
}

/* ===== cards / listas ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
ul.clean { list-style: none; }
ul.clean li {
  padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed var(--line);
  font-size: 0.97rem;
}
ul.clean li:last-child { border-bottom: none; }
ul.clean li::before {
  content: "▸"; position: absolute; left: 4px; color: var(--gold); font-weight: 700;
}
ol.styled { padding-left: 22px; }
ol.styled li { margin-bottom: 8px; }

/* ===== badges ===== */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 4px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.bg-blue { background: var(--blue-soft); color: var(--blue); }
.bg-indigo { background: #e2e2f4; color: #4242a8; }
.bg-amber { background: var(--amber-soft); color: var(--amber); }
.bg-orange { background: #fde8d2; color: #b3590c; }
.bg-green { background: var(--green-soft); color: var(--green); }
.bg-purple { background: var(--purple-soft); color: var(--purple); }
.bg-gray { background: var(--gray-soft); color: #55606c; }
.bg-red { background: var(--red-soft); color: var(--red); }
.bg-gold { background: var(--gold-soft); color: #8a6414; }

/* ===== tabelas ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
thead th {
  background: var(--navy-2); color: #fff; text-align: left; padding: 12px 16px;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
tbody td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: #faf8f4; }

/* ===== blocos de código/formato ===== */
pre.block {
  background: var(--navy); color: #d6e2ef; border-radius: var(--radius);
  padding: 20px 22px; overflow-x: auto; font-size: 0.86rem; line-height: 1.7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
code.inline {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 7px; font-size: 0.88em; font-family: Consolas, Menlo, monospace;
}

/* ===== empty state ===== */
.empty {
  text-align: center; padding: 48px 28px; background: var(--card);
  border: 2px dashed var(--line); border-radius: var(--radius);
}
.empty .icon { font-size: 2.2rem; margin-bottom: 10px; }
.empty h3 { color: var(--ink-soft); }
.empty p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }

/* ===== timeline ===== */
.timeline { list-style: none; border-left: 3px solid var(--gold); padding-left: 26px; }
.timeline li { position: relative; padding-bottom: 18px; }
.timeline li::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 11px; height: 11px;
  background: var(--gold); border-radius: 50%; border: 2px solid var(--paper);
}
.timeline .date { font-family: Consolas, monospace; font-size: 0.86rem; color: var(--gold); font-weight: 700; }

/* ===== busca ===== */
.busca-box { display: flex; gap: 10px; max-width: 640px; margin: 18px 0 26px; }
.busca-box input {
  flex: 1; padding: 13px 16px; border-radius: 8px; border: 1.5px solid var(--line);
  font-size: 1rem; background: var(--card); font-family: inherit;
}
.busca-box input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,138,47,0.18); }
.busca-box button {
  padding: 13px 26px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 0.95rem;
}
.result-item {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 16px 20px; margin-bottom: 12px;
}
.result-item .rtype { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  border-radius: var(--radius); padding: 44px 40px; color: #e6edf5;
}
.cta h2 { color: #fff; }
.cta p { color: #b9c8d8; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 6px; font-weight: 800;
  font-size: 0.96rem; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d0a040; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* ===== footer ===== */
footer {
  background: var(--navy); color: #8fa6bd; padding: 52px 0 26px; margin-top: 40px;
  font-size: 0.93rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
footer h4 { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: #b7c5d4; }
footer a:hover { color: #fff; }
.footer-disclaimer { padding-top: 24px; font-size: 0.82rem; line-height: 1.7; }
.footer-disclaimer strong { color: #d7c08c; }

/* ===== página interna ===== */
.page-head {
  background: var(--navy); color: #fff; padding: 52px 0 44px;
}
.page-head .kicker {
  display: inline-block; color: var(--gold); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px;
}
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head .lead { color: #b9c8d8; font-size: 1.1rem; max-width: 68ch; margin: 0; }
.breadcrumb { font-size: 0.82rem; color: #7e93a8; margin-bottom: 18px; }
.breadcrumb a { color: var(--gold); }

/* ===== responsivo ===== */
@media (max-width: 900px) {
  .tax-grid, .metrics { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-2); flex-direction: column; align-items: flex-start;
    padding: 18px 6% 24px; gap: 14px; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .tax-grid, .metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 42px 0; }
  .cta { padding: 32px 24px; }
  .busca-box { flex-direction: column; }
}
