/* =========================================================
   VIVER PLENAMENTE — PÁGINAS INSTITUCIONAIS
   Primeira implementação: Como Pesquisamos
   ========================================================= */
body.vp-institutional-page {
  --vp-i-ink: #26323D;
  --vp-i-ink-soft: #5D6872;
  --vp-i-deep: #1E4A4D;
  --vp-i-green: #5F8B7B;
  --vp-i-kicker: #638579;
  --vp-i-cream: #F8F8F4;
  --vp-i-pale: #EAF0EB;
  --vp-i-line: #D9E2DC;
  background: var(--vp-i-cream);
}

.vp-inst,
.vp-inst * { box-sizing: border-box; }

.vp-inst {
  color: var(--vp-i-ink);
  background: var(--vp-i-cream);
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.vp-inst h1,
.vp-inst h2,
.vp-inst h3 {
  margin-top: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -.02em;
  color: var(--vp-i-ink);
}

.vp-inst h1,
.vp-inst h2 { font-weight: 600; }
.vp-inst h3 { font-weight: 600; }
.vp-inst p { margin-top: 0; }
.vp-inst em { font-style: normal; font-weight: 500; color: var(--vp-i-green); }

.vp-inst-shell {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.vp-inst-kicker {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .11em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--vp-i-kicker);
}

.vp-inst-hero {
  padding: 92px 0 86px;
  border-bottom: 1px solid var(--vp-i-line);
}

.vp-inst-hero h1 {
  max-width: 920px;
  margin-bottom: 30px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.06;
}

.vp-inst-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--vp-i-ink-soft);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.55;
}

.vp-inst-grid-intro {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.35fr);
  gap: clamp(48px, 8vw, 130px);
  padding-top: 92px;
  padding-bottom: 100px;
}

.vp-inst-index {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--vp-i-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}

.vp-inst-grid-intro h2,
.vp-inst-heading-row h2,
.vp-inst-caution h2,
.vp-inst-footer-cta h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.1vw, 58px);
  line-height: 1.12;
}

.vp-inst-copy {
  max-width: 690px;
  color: var(--vp-i-ink-soft);
  font-size: 21px;
  line-height: 1.7;
}

.vp-inst-copy p:last-child { margin-bottom: 0; }

.vp-inst-band {
  padding: 98px 0 106px;
  background: var(--vp-i-pale);
}

.vp-inst-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
  margin-bottom: 64px;
}

.vp-inst-heading-row > p {
  max-width: 500px;
  margin-bottom: 5px;
  color: var(--vp-i-ink-soft);
  font-size: 19px;
}

.vp-inst-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #c7d5cc;
  border-left: 1px solid #c7d5cc;
}

.vp-inst-evidence-grid article {
  min-height: 255px;
  padding: 32px;
  border-right: 1px solid #c7d5cc;
  border-bottom: 1px solid #c7d5cc;
}

.vp-inst-evidence-grid article > span {
  color: var(--vp-i-green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}

.vp-inst-evidence-grid h3 {
  margin: 28px 0 14px;
  font-size: 22px;
  line-height: 1.28;
}

.vp-inst-evidence-grid p {
  margin-bottom: 0;
  color: var(--vp-i-ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.vp-inst-process { padding-top: 104px; padding-bottom: 108px; }

.vp-inst-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--vp-i-line);
}

.vp-inst-steps li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--vp-i-line);
}

.vp-inst-steps li > span {
  color: var(--vp-i-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}

.vp-inst-steps h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.vp-inst-steps p {
  max-width: 770px;
  margin-bottom: 0;
  color: var(--vp-i-ink-soft);
}

.vp-inst-caution {
  padding: 100px 0;
  color: #fff;
  background: #2C5354;
}

.vp-inst-caution h2,
.vp-inst-caution strong { color: #fff; }
.vp-inst-caution .vp-inst-kicker { color: #C7DBD0; }

.vp-inst-caution-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 8vw, 130px);
}

.vp-inst-donts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 42px;
}

.vp-inst-donts p {
  padding: 24px 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.24);
  color: #E9F1EC;
}

.vp-inst-sources { padding-top: 102px; padding-bottom: 102px; }

.vp-inst-source-note {
  max-width: 860px;
  padding: 34px 38px;
  background: #fff;
  border-left: 3px solid var(--vp-i-green);
  box-shadow: 0 8px 28px rgba(38,50,61,.05);
}

.vp-inst-source-note p { margin-bottom: 0; color: var(--vp-i-ink-soft); }

.vp-inst-footer-cta {
  padding: 90px 0;
  background: #E1EBE4;
}

.vp-inst-footer-cta-inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 64px;
  align-items: end;
}

.vp-inst-footer-cta-inner > div > p:last-child {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--vp-i-ink-soft);
  font-size: 19px;
}

.vp-inst-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--vp-i-green);
  color: var(--vp-i-ink);
  font-weight: 600;
  text-decoration: none;
}

.vp-inst-link:hover,
.vp-inst-link:focus-visible { color: var(--vp-i-green); }

@media (max-width: 980px) {
  .vp-inst-shell { width: min(100% - 40px, 1280px); }
  .vp-inst-grid-intro,
  .vp-inst-heading-row,
  .vp-inst-caution-inner,
  .vp-inst-footer-cta-inner { grid-template-columns: 1fr; }
  .vp-inst-evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .vp-inst-link { justify-self: start; }
}

@media (max-width: 640px) {
  .vp-inst-shell { width: min(100% - 32px, 1280px); }
  .vp-inst-hero { padding: 64px 0 58px; }
  .vp-inst-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .vp-inst-grid-intro,
  .vp-inst-band,
  .vp-inst-process,
  .vp-inst-caution,
  .vp-inst-sources,
  .vp-inst-footer-cta { padding-top: 68px; padding-bottom: 72px; }
  .vp-inst-heading-row { margin-bottom: 42px; }
  .vp-inst-evidence-grid { grid-template-columns: 1fr; }
  .vp-inst-evidence-grid article { min-height: 0; padding: 28px 24px; }
  .vp-inst-steps li { grid-template-columns: 58px 1fr; gap: 16px; }
  .vp-inst-donts { grid-template-columns: 1fr; }
  .vp-inst-source-note { padding: 28px 24px; }
}

/* =========================================================
   AUTORES — componentes dinâmicos
   ========================================================= */
.vp-author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.vp-author-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--vp-i-line);
}

.vp-author-avatar img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.vp-author-card h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.2;
}

.vp-author-card p {
  margin-bottom: 16px;
  color: var(--vp-i-ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.vp-author-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vp-i-deep);
  font-weight: 600;
  text-decoration: none;
}

.vp-author-card a:hover,
.vp-author-card a:focus-visible { color: var(--vp-i-green); }

@media (max-width: 780px) {
  .vp-author-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .vp-author-card { grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 20px; }
  .vp-author-avatar img { width: 64px; height: 64px; }
}

/* =========================================================
   0.1.5 — páginas institucionais adicionais
   ========================================================= */
.vp-inst-admin-note {
  margin: 0;
  padding: 14px 20px;
  background: #FFF7D6;
  border-bottom: 1px solid #E7D99C;
  color: #5E542A;
  font-size: 14px;
  line-height: 1.5;
}

.vp-inst-admin-note strong { font-weight: 600; }

.vp-inst-simple-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--vp-i-line);
}

.vp-inst-simple-grid {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 72px;
  align-items: start;
}

.vp-inst-simple-grid h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
}

.vp-inst-prose {
  max-width: 820px;
}

.vp-inst-prose p,
.vp-inst-prose li { color: var(--vp-i-ink-soft); }
.vp-inst-prose p:last-child { margin-bottom: 0; }
.vp-inst-prose ul { margin: 0 0 24px 1.1em; }
.vp-inst-prose li + li { margin-top: 10px; }

.vp-inst-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.vp-inst-info-card {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--vp-i-line);
}

.vp-inst-info-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--vp-i-kicker);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vp-inst-info-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.vp-inst-info-card p {
  margin: 0;
  color: var(--vp-i-ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.vp-inst-contact-placeholder {
  padding: 34px 36px;
  background: #fff;
  border: 1px solid var(--vp-i-line);
  border-left: 3px solid var(--vp-i-green);
}

.vp-inst-contact-placeholder h3 { margin-bottom: 12px; }
.vp-inst-contact-placeholder p { margin-bottom: 0; color: var(--vp-i-ink-soft); }

.vp-inst-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: var(--vp-i-ink-soft);
  font-size: 14px;
}

@media (max-width: 980px) {
  .vp-inst-simple-grid { grid-template-columns: 1fr; gap: 32px; }
  .vp-inst-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .vp-inst-simple-section { padding: 64px 0; }
  .vp-inst-card-grid { grid-template-columns: 1fr; }
  .vp-inst-contact-placeholder { padding: 28px 24px; }
}

/* =========================================================
   0.1.8 — Refinamento tipográfico institucional
   Objetivo: reduzir a escala visual em desktop sem afetar
   a homepage, arquivos de categoria ou posts.
   ========================================================= */
@media (min-width: 981px) {
  .vp-inst {
    font-size: 17px;
    line-height: 1.68;
  }

  .vp-inst-kicker {
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .10em;
    margin-bottom: 18px;
  }

  .vp-inst-hero {
    padding: 80px 0 76px;
  }

  .vp-inst-hero h1 {
    max-width: 860px;
    margin-bottom: 24px;
    font-size: clamp(46px, 4.4vw, 64px);
    line-height: 1.08;
  }

  .vp-inst-lead {
    max-width: 720px;
    font-size: clamp(18px, 1.55vw, 21px);
    line-height: 1.58;
  }

  .vp-inst-grid-intro {
    gap: clamp(44px, 7vw, 112px);
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .vp-inst-grid-intro h2,
  .vp-inst-heading-row h2,
  .vp-inst-caution h2,
  .vp-inst-footer-cta h2 {
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.14;
  }

  .vp-inst-copy {
    max-width: 650px;
    font-size: 18px;
    line-height: 1.68;
  }

  .vp-inst-heading-row > p,
  .vp-inst-footer-cta-inner > div > p:last-child {
    font-size: 18px;
    line-height: 1.62;
  }

  .vp-inst-simple-section {
    padding: 76px 0;
  }

  .vp-inst-simple-grid h2 {
    font-size: clamp(30px, 2.8vw, 40px);
    line-height: 1.12;
  }

  .vp-inst-prose {
    max-width: 760px;
  }
}


/* =========================================================
   0.1.9 — H1 institucional mais contido em desktop
   Mantém homepage, categorias, posts, tablet e mobile intactos.
   ========================================================= */
@media (min-width: 981px) {
  .vp-inst-hero h1 {
    max-width: 820px;
    font-size: clamp(44px, 3.8vw, 56px);
    line-height: 1.09;
  }
}


/* =========================================================
   0.1.12 — Hero institucional em coluna editorial
   Mantém a posição original à esquerda e reduz apenas a
   largura do bloco de leitura em desktop.
   ========================================================= */
@media (min-width: 981px) {
  .vp-inst-hero .vp-inst-kicker,
  .vp-inst-hero h1,
  .vp-inst-hero .vp-inst-lead {
    max-width: 500px;
  }
}

/* =========================================================
   0.1.15 — Coluna editorial institucional reforçada
   Mantém o hero ancorado à esquerda e garante uma leitura
   compacta também dentro do Customizer/preview do WordPress.
   ========================================================= */
@media (min-width: 981px) {
  .vp-inst-hero .vp-inst-kicker,
  .vp-inst-hero .vp-inst-lead {
    max-width: 460px;
  }

  .vp-inst-hero h1 {
    max-width: 430px;
  }
}

/* =========================================================
   0.1.16 — Bloco editorial real no hero institucional
   A largura passa a pertencer a um wrapper próprio, em vez de
   limitar apenas H1 e lead isoladamente. O bloco permanece
   ancorado à esquerda dentro do shell editorial.
   ========================================================= */
.vp-inst-hero-copy {
  width: 100%;
}

@media (min-width: 981px) {
  .vp-inst-hero-copy {
    width: min(100%, 500px);
    max-width: 500px;
    margin: 0;
  }

  .vp-inst-hero-copy .vp-inst-kicker,
  .vp-inst-hero-copy h1,
  .vp-inst-hero-copy .vp-inst-lead {
    width: 100%;
    max-width: none;
  }

  .vp-inst-hero-copy h1 {
    font-size: clamp(44px, 3.8vw, 56px);
    line-height: 1.09;
  }

  .vp-inst-hero-copy .vp-inst-lead {
    font-size: clamp(18px, 1.55vw, 21px);
    line-height: 1.58;
  }
}


/* =========================================================
   0.1.21 — SISTEMA TIPOGRÁFICO ESTRUTURAL
   Referência: hierarquia visual da homepage.
   H1 editorial = Source Sans 3; títulos de seção = Manrope;
   corpo/microtítulos = Source Sans 3. Cores originais mantidas.
   ========================================================= */
body.vp-institutional-page {
  --vp-i-ink: var(--vp-color-ink, #26323D);
  --vp-i-ink-soft: var(--vp-color-ink-soft, #5D6872);
  --vp-i-green: var(--vp-color-editorial, #5F8B7B);
  --vp-i-kicker: var(--vp-color-kicker, #638579);
  --vp-i-line: var(--vp-color-line, #D9E2DC);
  --vp-i-cream: var(--vp-color-cream, #F8F8F4);
}

.vp-inst {
  font-family: var(--vp-font-body, "Source Sans 3", sans-serif);
}

/* H1: mesma linguagem do Hero da homepage, com escala menor. */
.vp-inst .vp-inst-hero h1 {
  font-family: var(--vp-font-display, "Source Sans 3", sans-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vp-i-ink);
}

/* H2/H3: hierarquia editorial secundária da homepage. */
.vp-inst h2,
.vp-inst h3 {
  font-family: var(--vp-font-heading, "Manrope", sans-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vp-i-ink);
}

.vp-inst .vp-inst-kicker,
.vp-inst .vp-inst-lead,
.vp-inst p,
.vp-inst li,
.vp-inst a {
  font-family: var(--vp-font-body, "Source Sans 3", sans-serif);
}

/* Mantém a cor editorial original aplicada às palavras de destaque. */
.vp-inst em {
  color: var(--vp-i-green);
  font-style: normal;
  font-weight: 500;
}

/* Coluna editorial fixa no desktop; livre e fluida em tablet/mobile. */
@media (min-width: 981px) {
  .vp-inst-hero-copy {
    width: 500px !important;
    max-width: 500px !important;
    min-width: 500px;
    margin: 0 !important;
  }

  .vp-inst-hero-copy .vp-inst-kicker,
  .vp-inst-hero-copy h1,
  .vp-inst-hero-copy .vp-inst-lead {
    width: 100% !important;
    max-width: 100% !important;
  }

  .vp-inst-hero-copy h1 {
    font-size: clamp(44px, 3.8vw, 56px);
    line-height: 1.09;
  }
}

@media (max-width: 980px) {
  .vp-inst-hero-copy {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }
}


/* =========================================================
   v0.1.23 — contraste em fundos verde-escuros
   A camada tipográfica estrutural da v0.1.21 não deve escurecer
   títulos dentro de faixas escuras. Mantém texto claro e confortável.
   ========================================================= */
.vp-inst .vp-inst-caution h2,
.vp-inst .vp-inst-caution h3,
.vp-inst .vp-inst-caution strong {
  color: #F8FAF7 !important;
}

.vp-inst .vp-inst-caution p,
.vp-inst .vp-inst-caution li {
  color: #E9F1EC;
}

.vp-inst .vp-inst-caution .vp-inst-kicker {
  color: #C7DBD0 !important;
}


/* =========================================================
   v0.1.24 — coerência tipográfica e contraste suave
   ========================================================= */
/* H1 institucional passa a usar a mesma família de títulos das demais páginas/Home. */
.vp-inst .vp-inst-hero h1 {
  font-family: var(--vp-font-heading, "Manrope", sans-serif) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Em faixas verde-escuras, branco levemente esverdeado para maior integração cromática. */
.vp-inst .vp-inst-caution h2,
.vp-inst .vp-inst-caution h3,
.vp-inst .vp-inst-caution strong {
  color: #EEF5F0 !important;
}
.vp-inst .vp-inst-caution p,
.vp-inst .vp-inst-caution li {
  color: #DFEAE3 !important;
}
.vp-inst .vp-inst-caution .vp-inst-kicker {
  color: #C9DDD2 !important;
}
