/* ============================================================
   CMAV — complementos do WordPress
   (o que existe só no site publicado: notícia aberta, paginação,
    retorno de formulário e placeholder de capa)
   ============================================================ */

/* ---------- placeholder quando o post não tem capa ---------- */
.post__ph {
  display: block;
  aspect-ratio: 16/10;
  background: linear-gradient(126deg, var(--navy-900) 0%, var(--navy-700) 58%, var(--blue-500) 100%);
  position: relative;
}
.post__ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(252, 198, 36, .30), transparent 58%);
}
.post--wide .post__ph { aspect-ratio: 16/9; }

/* ---------- data no meta ---------- */
.post__meta time {
  font-size: .82rem;
  color: #6A7080;
  font-weight: 500;
}

/* ---------- paginação ---------- */
.pager { margin-top: 46px; }
.pager ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #DDE2EC;
  background: #fff;
  color: var(--navy-800);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.pager a:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pager .current { background: var(--gold); border-color: var(--gold-dark); color: var(--navy-900); }

/* ---------- retorno do formulário ---------- */
.form__alert {
  margin-bottom: 22px;
  padding: 16px 20px;
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid transparent;
}
.form__alert.is-ok { background: #E8F6EC; border-color: #B7E0C2; color: #16693A; }
.form__alert.is-erro { background: #FDECEA; border-color: #F3C2BD; color: #9B2C20; }

/* ---------- notícia aberta ---------- */
.wrap--txt { max-width: 820px; }

.post__capa {
  margin: 0 0 34px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 60, .12);
}
.post__capa img { display: block; width: 100%; height: auto; }

.prosa { font-size: 1.06rem; line-height: 1.78; color: #33384A; }
.prosa > * + * { margin-top: 1.15em; }
.prosa h2,
.prosa h3 {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--navy-900);
  line-height: 1.25;
  margin-top: 1.7em;
}
.prosa h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.prosa h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
.prosa a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.prosa a:hover { color: var(--navy-800); }
.prosa img { max-width: 100%; height: auto; border-radius: 14px; }
.prosa figcaption { font-size: .86rem; color: #6A7080; margin-top: 8px; }
.prosa ul,
.prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: .5em; }
.prosa blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--gold);
  font-size: 1.12rem;
  color: var(--navy-800);
  font-style: italic;
}
.prosa table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prosa th,
.prosa td { border: 1px solid #DDE2EC; padding: 10px 12px; text-align: left; }
.prosa th { background: #F4F6FB; color: var(--navy-900); }

/* wp-core */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* o admin bar não pode empurrar o header fixo */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }

/* =========================================================
   Leitura de notícia — layout com sidebar (09/10/2026)
   ========================================================= */

/* hero mais baixo e título em tamanho de matéria, não de página */
.phead--post .phead__in { padding-block: clamp(34px, 4.5vw, 56px); }
.phead--post h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.22;
  max-width: 880px;
  letter-spacing: -.015em;
}
.phead--post p { margin-top: 10px; font-size: .95rem; opacity: .85; }

/* grade: matéria + sidebar */
.sec--post { padding-block: clamp(44px, 5vw, 64px); }
.post-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

/* capa controlada: nunca domina a página, nem foto vertical */
.post-main .post__capa {
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 60, .12);
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
}
.post-main .post__capa img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block;
}

/* ---------- sidebar ---------- */
.post-side {
  position: sticky; top: 118px;
  display: grid; gap: 22px;
}
.side-box {
  background: #F4F6FB;
  border: 1px solid #E4E8F2;
  border-radius: 18px;
  padding: 24px 22px;
}
.side-box__title {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.02rem; color: var(--navy-900);
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.side-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.side-news li { display: flex; gap: 12px; align-items: flex-start; }
.side-news__thumb {
  flex: 0 0 74px; width: 74px; height: 74px;
  border-radius: 12px; overflow: hidden; display: block;
  background: var(--navy-800);
}
.side-news__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-news__ph {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.side-news__title {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600; font-size: .92rem; line-height: 1.35;
  color: var(--navy-900); text-decoration: none;
}
.side-news__title:hover { color: var(--blue-500); }
.side-news li time { display: block; margin-top: 5px; font-size: .78rem; color: #6A7080; }
.side-box__all {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; font-family: Outfit, system-ui, sans-serif;
  font-weight: 700; font-size: .9rem; color: var(--blue-500); text-decoration: none;
}
.side-box__all svg { width: 15px; height: 15px; }
.side-box__all:hover { color: var(--navy-800); }

.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li + li { border-top: 1px solid #E4E8F2; }
.side-cats a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 2px; text-decoration: none;
  font-weight: 600; font-size: .92rem; color: var(--navy-800);
}
.side-cats a:hover { color: var(--blue-500); }
.side-cats a span {
  background: #fff; border: 1px solid #E4E8F2; color: #6A7080;
  font-size: .75rem; font-weight: 700;
  min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

.side-box--cta {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-color: transparent; color: #fff; text-align: left;
}
.side-cta__eyebrow {
  display: inline-block; font-family: Outfit, system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.side-box--cta h3 {
  font-family: Outfit, system-ui, sans-serif;
  color: #fff; font-size: 1.25rem; line-height: 1.25; margin-bottom: 8px;
}
.side-box--cta p { color: #C6D1EE; font-size: .92rem; line-height: 1.55; margin-bottom: 16px; }
.side-box--cta .btn { width: 100%; justify-content: center; }
.side-box--cta .btn + .btn { margin-top: 10px; }

/* responsivo: sidebar desce pra baixo do texto */
@media (max-width: 1024px) {
  .post-wrap { grid-template-columns: 1fr; }
  .post-side { position: static; }
}
