/* IVAS — Instituto Vontade Ação e Saúde */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #ffffff;
  --section: #eff6ee;
  --action: #21cbd0;
  --action-dark: #0e8f93;
  --highlight: #adcf54;
  --ink: #0f2a2b;
  --ink-soft: #3d5556;
  --line: #d6e5d4;
  --on-action: #062728; /* texto escuro sobre turquesa/verde: contraste AA */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 43, 0.08);
  --max: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: Manrope, Inter, sans-serif; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--action-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--section); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--highlight); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: #4fdade; color: var(--on-action); box-shadow: 0 8px 20px rgba(33, 203, 208, .35); }
.btn--green { background: var(--highlight); color: var(--on-action); }
.btn--green:hover { background: #c0dd73; color: var(--on-action); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); isolation: isolate;
}
/* O blur fica num pseudo-elemento: backdrop-filter no próprio header prenderia o menu mobile dentro dele */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: Manrope, sans-serif; font-weight: 800; }
.logo img { height: 48px; width: auto; }
.logo-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--action), var(--highlight)); color: var(--on-action); font-size: .95rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.25rem; }
.logo-text small { font: 500 .7rem Inter, sans-serif; color: var(--ink-soft); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav > ul a, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font: 500 .97rem Inter, sans-serif; background: none; border: 0; cursor: pointer;
}
.nav > ul a:hover, .nav button.nav-link:hover, .nav > ul a[aria-current="page"] { background: var(--section); }
.nav > ul a[aria-current="page"], .nav button.nav-link.is-current { font-weight: 700; }
.has-dropdown { position: relative; }
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: none;
}
.dropdown a { display: block; border-radius: 10px; }
.has-dropdown.open .dropdown { display: block; }
.chev { transition: transform .2s; }
.has-dropdown.open .chev { transform: rotate(180deg); }
.header-cta { margin-left: 8px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Entre 1141px e 1280px o menu (com Transparência) fica mais compacto para caber numa linha */
@media (min-width: 1141px) and (max-width: 1280px) {
  .nav > ul a, .nav button.nav-link { padding: 10px 10px; font-size: .93rem; }
  .header-cta { padding: 12px 18px; }
}
@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; flex-shrink: 0; }
  .logo img { height: 40px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin-top: 1px;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 20px 32px; overflow-y: auto; overscroll-behavior: contain; display: none;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul a, .nav button.nav-link {
    width: 100%; min-height: 52px; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-radius: 10px;
  }
  .dropdown { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 12px; min-width: 0; }
  .dropdown a { font-size: 1rem; min-height: 46px; color: var(--ink-soft); }
  .header-cta { margin: 20px 0 0; width: 100%; }
  body.menu-open { overflow: hidden; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .9rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #9db3b0; }
.breadcrumbs a { color: var(--ink-soft); }
.hero .breadcrumbs, .hero .breadcrumbs a { color: #e6f3f2; }
.hero .breadcrumbs li + li::before { color: #9fc4c1; }
.btn-row .note { margin: 0; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff;
  background: #123 center/cover no-repeat; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4, 28, 30, .88) 0%, rgba(4, 28, 30, .62) 55%, rgba(4, 28, 30, .3) 100%);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-content { max-width: 720px; padding: 80px 0; }
.hero .eyebrow { background: var(--highlight); }
.hero p { font-size: 1.25rem; color: #e6f3f2; max-width: 580px; }
.hero h1 { color: #fff; }

.page-hero { background: var(--section); padding: 24px 0 64px; }
.page-hero .container > div { max-width: 780px; padding-top: 32px; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 42, 43, .12); }
.card p { color: var(--ink-soft); }
.card .btn, .card .card-link { margin-top: auto; align-self: flex-start; }
.card-link { font-weight: 600; text-decoration: none; color: var(--action-dark); }
.card-link:hover { text-decoration: underline; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--section); color: var(--action-dark);
}
.icon svg { width: 26px; height: 26px; }
.card--feature { padding: 0; overflow: hidden; }
.card--feature .card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-banner {
  height: 160px; display: flex; align-items: flex-end; padding: 20px 28px;
  font: 800 1.5rem Manrope, sans-serif; color: var(--on-action);
}
.card-banner.turq { background: linear-gradient(135deg, #21cbd0, #8fe6e8); }
.card-banner.green { background: linear-gradient(135deg, #adcf54, #dcebb0); }

/* Números */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stat { background: #fff; border-radius: var(--radius); padding: 32px; text-align: center; border: 1px solid var(--line); }
.stat strong { display: block; font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 Manrope, sans-serif; color: var(--ink); margin-bottom: 10px; }
.stat strong::after { content: ""; display: block; width: 44px; height: 4px; background: var(--action); border-radius: 4px; margin: 14px auto 0; }
.stat span { color: var(--ink-soft); font-weight: 500; }

/* Split */
.split { display: grid; gap: 48px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.quote-box { background: var(--section); border-radius: var(--radius); padding: 36px; border-left: 6px solid var(--highlight); }
.quote-box ul { margin: 0; padding-left: 20px; }
.quote-box li { margin-bottom: 8px; }

/* Vídeo */
.video-wrap { border-radius: var(--radius); overflow: hidden; background: #0b1e1f; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.video-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Mídia indisponível / pendente */
.media-missing {
  display: grid; place-items: center; text-align: center; min-height: 220px; padding: 24px; height: 100%;
  background: repeating-linear-gradient(45deg, #f4f8f3, #f4f8f3 12px, #eaf2e8 12px, #eaf2e8 24px);
  color: var(--ink-soft); border: 2px dashed #bcd3b8; border-radius: var(--radius); font-size: .95rem;
}
.media-missing strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #0f3b3d, #0d5254); color: #fff; border-radius: 28px;
  padding: clamp(36px, 6vw, 64px); display: grid; gap: 28px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d4ebe9; }

/* Galeria + lightbox */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gallery-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.figure figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(3, 18, 19, .92); display: none; place-items: center; z-index: 500; padding: 24px; }
.lightbox.open { display: grid; }
body.lb-open { overflow: hidden; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lightbox img { max-height: 82vh; max-width: min(100%, 1200px); border-radius: 12px; }
.lightbox-count { color: #d4ebe9; font-size: .95rem; min-height: 1.4em; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox-nav:hover { background: #fff; }
.lightbox-nav.prev { left: 16px; } .lightbox-nav.next { right: 16px; }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 600px) {
  .lightbox { padding: 12px; }
  .lightbox-nav { top: auto; bottom: 16px; transform: none; width: 48px; height: 48px; }
}
.gallery--dense { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
@media (max-width: 480px) { .gallery--dense { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.gallery--dense .gallery-item { border-radius: 12px; aspect-ratio: 1; }
.gallery--dense .media-missing { min-height: 0; aspect-ratio: 1; border-radius: 12px; font-size: .85rem; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 1.6rem; cursor: pointer;
}

.pdf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.pdf-head .section-head { margin-bottom: 0; }
.pdf-head .section-head p { margin-bottom: 0; }
.pdf-viewer { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--section); }
.pdf-viewer object { display: block; width: 100%; height: min(85vh, 900px); }
.pdf-viewer .media-missing { border: 0; border-radius: 0; min-height: 320px; }
@media (max-width: 1020px) { .pdf-viewer object { height: 75vh; } }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 450px; border: 0; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--highlight); color: var(--on-action); font: 800 1.1rem Manrope, sans-serif; margin-bottom: 14px;
}

/* Notas */
.note { border-radius: var(--radius-sm); padding: 16px 20px; background: #fff8e1; border: 1px solid #f0d98a; color: #5a4700; font-size: .95rem; }
.note--info { background: #e8f9fa; border-color: #a5e4e6; color: #0b4a4c; }

/* Formulários */
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid #b8cdb6; border-radius: 12px; background: #fff; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action-dark); box-shadow: 0 0 0 3px rgba(33, 203, 208, .3); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field-error { color: #b0281a; font-size: .88rem; min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--action-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 14px 18px; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #eaf6d6; color: #2f4a07; border: 1px solid #c7e29a; }
.form-status.err { background: #fdecea; color: #8a1f12; border: 1px solid #f3b8b0; }
.form-status.warn { background: #fff8e1; color: #5a4700; border: 1px solid #f0d98a; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { margin: 0; flex-shrink: 0; width: 44px; height: 44px; }

/* Rodapé */
.site-footer { background: #0b2627; color: #cfe3e1; padding: 72px 0 28px; margin-top: 0; }
.site-footer a { color: #e6f6f5; text-decoration: none; }
.site-footer a:hover { color: var(--highlight); text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo img { height: 64px; background: #fff; padding: 8px 12px; border-radius: 12px; }
.site-footer .logo-text small { color: #a9c6c3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .9rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tag-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; }

/* Utilitário de acessibilidade */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Transparência pública (transparencia/*.html) — prefixo tp-
   ========================================================================== */
.tp-section, #organizacao { scroll-margin-top: calc(var(--header-h) + 64px); }

.tp-hero { min-height: 0; align-items: stretch; }
.tp-hero .container { display: flex; flex-direction: column; }
.tp-hero .hero-content { padding: 48px 0 120px; max-width: 820px; }
.tp-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.tp-chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tp-chips li {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45); border-radius: 14px;
  padding: 10px 18px; font: 700 1.05rem Manrope, sans-serif; color: #fff;
}
.tp-chips span { display: block; font: 500 .75rem Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #cfe8e6; }

/* Indicadores */
.tp-kpis-wrap { margin-top: -72px; position: relative; z-index: 2; padding-bottom: 8px; }
.tp-kpis { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tp-kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  border-top: 5px solid var(--action); display: flex; flex-direction: column; gap: 4px;
}
.tp-kpi:nth-child(even) { border-top-color: var(--highlight); }
.tp-kpi-label { font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.tp-kpi strong { font: 800 clamp(1.45rem, 2.4vw, 1.8rem)/1.2 Manrope, sans-serif; color: var(--ink); }
.tp-kpi-sub { color: var(--ink-soft); font-size: .95rem; }
.tp-kpi-note { margin: 16px 0 0; font-size: .92rem; color: var(--ink-soft); }

/* Navegação por âncoras */
.tp-anchors { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); margin-top: 32px; }
.tp-anchors ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.tp-anchors a {
  display: inline-block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-size: .92rem; font-weight: 500; background: var(--section);
}
.tp-anchors a:hover { background: var(--highlight); color: var(--on-action); }

/* Painéis de identificação */
.tp-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); }
.tp-panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tp-dl { margin: 0; display: grid; }
.tp-dl > div { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.tp-dl dt { font-weight: 600; color: var(--ink-soft); font-size: .93rem; }
.tp-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) { .tp-dl > div { grid-template-columns: 1fr; } }

.tp-mark { background: linear-gradient(transparent 55%, rgba(173, 207, 84, .65) 55%); color: inherit; font-weight: 700; padding: 0 2px; }
.tp-activities { list-style: none; margin: 0; padding: 0; }
.tp-activities .card { flex-direction: row; align-items: center; gap: 16px; padding: 22px; }
.tp-activities .icon { margin: 0; flex-shrink: 0; background: #fff; border: 1px solid var(--line); }
.tp-activities h3 { margin: 0; font-size: 1.1rem; }

/* Tabelas responsivas (viram cartões no celular) */
.tp-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.tp-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tp-table th, .tp-table td { text-align: left; padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.tp-table thead th { background: var(--section); border-top: 0; font: 700 .85rem Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.tp-table tbody th { font-weight: 600; }
.tp-table tbody tr:hover { background: #fafdf9; }
.tp-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-right: 12px;
  background: var(--highlight); color: var(--on-action); font: 800 .85rem Manrope, sans-serif; vertical-align: middle;
}
.tp-pct { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.tp-pct-bar { width: 80px; height: 8px; background: var(--section); border-radius: 8px; overflow: hidden; }
.tp-pct-bar span { display: block; height: 100%; background: var(--action-dark); }
@media (max-width: 680px) {
  .tp-table-wrap { border: 0; box-shadow: none; background: none; overflow: visible; }
  .tp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tp-table, .tp-table tbody, .tp-table tr, .tp-table th, .tp-table td { display: block; }
  .tp-table tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
  .tp-table tbody th { background: var(--section); border-top: 0; padding: 14px 16px; }
  .tp-table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; text-align: right; }
  .tp-table td::before { content: attr(data-label); font-weight: 600; font-size: .88rem; color: var(--ink-soft); text-align: left; }
}

.tp-footnote { font-size: .92rem; color: var(--ink-soft); margin: 14px 0 0; }
.tp-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #f1f3f1; color: #4a5a58; border: 1px solid #d9e0d8; }
.tp-badge--info { background: #e8f9fa; color: #0b4a4c; border-color: #a5e4e6; }
.tp-link { font-weight: 600; }

/* Recursos financeiros */
.tp-finance { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: stretch; }
.tp-total {
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); color: #fff; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(120deg, #0f3b3d, #0d5254);
}
.tp-total span { color: #cfe8e6; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.tp-total strong { font: 800 clamp(2rem, 4.4vw, 3rem)/1.1 Manrope, sans-serif; margin-top: 8px; }
.tp-chart { margin: 0; }
.tp-chart-bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; margin: 8px 0 20px; gap: 3px; }
.tp-chart-bar span { display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: var(--on-action); }
.tp-chart .p1 { background: var(--action); } .tp-chart .p2 { background: var(--highlight); }
.tp-chart-legend { list-style: none; margin: 0; padding: 0; display: grid; }
.tp-chart-legend li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tp-chart-legend i { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.tp-chart-legend strong { margin-left: auto; font-family: Manrope, sans-serif; }
.tp-chart-legend .is-total { font-weight: 700; border-top: 2px solid var(--ink); }

.tp-highlight {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  background: var(--section); border-left: 6px solid var(--highlight); border-radius: var(--radius-sm); padding: 20px 24px;
}
.tp-highlight span { font-weight: 600; }
.tp-highlight strong { font: 800 1.5rem Manrope, sans-serif; }

/* Documentos */
.tp-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.tp-doc { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tp-doc.is-pending { background: #fbfdfb; border-style: dashed; box-shadow: none; }
.tp-doc .icon { margin: 0; flex-shrink: 0; }
.tp-doc h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tp-doc-meta { color: var(--ink-soft); font-size: .92rem; margin-bottom: 10px; }
.tp-doc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-doc-actions .btn { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.tp-history { margin: 0; padding-left: 20px; display: grid; gap: 12px; }

.tp-commit { grid-template-columns: 1fr; }
.tp-commit > div { max-width: 860px; }
.tp-sign { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.tp-sign strong { color: #fff; }
