/* Página interna (page.php) — reaproveita .sp-trilha e .sp-card do single-suite.css */
.pg-topo { background: #FFF8EA; padding: 56px 0 64px }
.pg-topo .wrap { display: flex; flex-direction: column; gap: 14px }
.pg-topo h1 { font-size: 52px; line-height: 1.04; max-width: 820px }
.pg-topo .lead { max-width: 680px }
.pg-data { font-size: 14px; color: var(--texto); opacity: .8 }

.pg-corpo { padding: 72px 0 110px }
.pg-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start }
.pg-grid.pg-sem-indice { grid-template-columns: minmax(0, 1fr); max-width: 820px }

/* Índice lateral */
.pg-lateral { position: sticky; top: 110px; display: grid; gap: 14px }
.pg-indice { background: #fff; border: 1px solid var(--linha); border-radius: 24px 24px 24px 8px; padding: 22px 22px 18px }
.pg-indice summary { list-style: none; cursor: default; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--petroleo); margin-bottom: 12px }
.pg-indice summary::-webkit-details-marker { display: none }
.pg-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: i }
.pg-indice a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 12px; font-size: 14.5px; line-height: 1.35; color: var(--texto); transition: background .25s, color .25s }
.pg-indice a::before { counter-increment: i; content: counter(i, decimal-leading-zero); font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--laranja); padding-top: 2px }
.pg-indice a:hover { background: #FFF8EA; color: var(--petroleo) }
.pg-indice a.on { background: #FFF0D2; color: var(--petroleo); font-weight: 600 }
.pg-lateral .sp-card { padding: 18px 20px; gap: 14px }
.pg-lateral .sp-card .ico { width: 28px; height: 28px }
.pg-lateral .sp-card b { font-size: 16px }
.pg-lateral .sp-card span { font-size: 14.5px }

/* Conteúdo do editor (blocos do WordPress) */
.pg-conteudo { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--texto) }
.pg-conteudo > * + * { margin-top: 16px }
.pg-conteudo h2 { font-size: 30px; line-height: 1.15; margin-top: 56px; scroll-margin-top: 110px }
.pg-conteudo h2:first-child { margin-top: 0 }
.pg-conteudo h3 { font-size: 21px; margin-top: 32px; scroll-margin-top: 110px }
.pg-conteudo h2 + *, .pg-conteudo h3 + * { margin-top: 12px }
.pg-conteudo a { color: var(--petroleo); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sol); text-decoration-thickness: 2px; text-underline-offset: 3px }
.pg-conteudo a:hover { text-decoration-color: var(--laranja) }
.pg-conteudo strong { color: var(--petroleo) }
.pg-conteudo ul, .pg-conteudo ol { padding-left: 22px }
.pg-conteudo li + li { margin-top: 6px }
.pg-conteudo ul li::marker { color: var(--laranja) }
.pg-conteudo ol li::marker { color: var(--laranja); font-family: var(--display); font-weight: 600 }
.pg-conteudo blockquote, .pg-conteudo .wp-block-quote { margin: 24px 0; background: #FFF8EA; border-left: 4px solid var(--sol); border-radius: 0 20px 20px 0; padding: 18px 22px }
.pg-conteudo figure { margin: 24px 0 }
.pg-conteudo .wp-block-table { overflow-x: auto }
.pg-conteudo table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5 }
.pg-conteudo th, .pg-conteudo td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--linha) }
.pg-conteudo thead th, .pg-conteudo tr:first-child th { background: #FFF8EA; font-family: var(--display); font-weight: 600; color: var(--petroleo) }
.pg-conteudo hr { border: 0; border-top: 1px solid var(--linha); margin: 40px 0 }
.pg-conteudo img { max-width: 100%; height: auto; border-radius: 20px }

@container page (max-width: 960px) {
  .pg-grid { grid-template-columns: 1fr; gap: 28px }
  .pg-lateral { position: static }
  .pg-lateral .sp-card { display: none }
  .pg-indice summary { cursor: pointer; margin-bottom: 0; display: flex; justify-content: space-between }
  .pg-indice summary::after { content: '+'; color: var(--laranja); font-size: 22px; line-height: 1 }
  .pg-indice[open] summary { margin-bottom: 12px }
  .pg-indice[open] summary::after { content: '–' }
}
@container page (max-width: 760px) {
  .pg-topo { padding: 24px 0 40px }
  .pg-topo h1 { font-size: 36px }
  .pg-corpo { padding: 40px 0 64px }
  .pg-conteudo { font-size: 16px }
  .pg-conteudo h2 { font-size: 25px; margin-top: 44px }
}

/* .page usa overflow:hidden, que anula o sticky do índice; clip mantém o corte sem criar rolagem */
.page:has(.pagina-pg) { overflow: clip }
