/* Prisma PB - ajustes de alinhamento */
.item-metadata.posts-date {
  white-space: nowrap;
}

/* Barra do menu na cor do Prisma (o tema fixa laranja) */
#main-navigation-bar.af-bottom-header {
  background-color: #D61F26;
}

/* Logo do cabeçalho centralizado e mais compacto no computador */
.site-branding {
  text-align: center;
}
.site-branding .custom-logo-link {
  display: inline-block;
}
@media (min-width: 992px) {
  .site-branding .custom-logo {
    max-height: 240px;
    width: auto;
  }
}

/* Página inicial: duas colunas (Assembleia e Política Nacional) mais largas */
@media (min-width: 992px) {
  .aft-featured-category-section .featured-category-item {
    width: 50%;
  }
}
.aft-featured-category-section .featured-category-item:nth-child(3) {
  display: none;
}

/* Página inicial: a lista de notícias não repete as 5 do destaque */
body.home:not(.paged) .aft-archive-wrapper > article:nth-of-type(-n+5) {
  display: none;
}
body.home:not(.paged) .aft-archive-wrapper::before {
  content: "Todas as notícias";
  display: block;
  width: 100%;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  padding: 0 10px 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid #D61F26;
}
body.home .af-main-banner-latest-posts {
  display: none;
}

/* Matérias: leitura confortável */
.single-post .entry-header .read-details,
.single-post .entry-content,
.single-post .aft-social-share {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.single-post .entry-content p {
  line-height: 1.7;
}
.single-post .read-img .post-thumbnail {
  max-width: 1000px;
  margin: 0 auto;
}
.single-post .read-img .post-thumbnail {
  display: block;
  width: 100%;
}
.single-post .read-img .post-thumbnail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
}
.single-post .entry-content img {
  max-height: 620px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Celular: notícia aparece mais cedo na tela */
@media (max-width: 767px) {
  .top-header {
    display: none;
  }
  .header-promotion,
  .banner-promotions-wrapper,
  .promotion-section {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  a.prisma-ad-slot {
    min-height: 0 !important;
    padding: 6px 10px !important;
    gap: 4px 8px !important;
    margin: 6px auto !important;
  }
  a.prisma-ad-slot strong {
    font-size: 14px !important;
  }
  a.prisma-ad-slot span {
    font-size: 11px !important;
  }
}


/* Matéria no celular: layout para print e compartilhamento */
@media (max-width: 767px){
  .single .entry-content-wrap.read-single{padding:18px 16px 16px !important}
  .single .entry-header-details::before{content:"PRISMA PARAÍBA";display:inline-block;background:#D61F26;color:#fff;font-weight:800;font-size:12px;letter-spacing:1px;padding:4px 10px;border-radius:3px;margin-bottom:6px}
  .single h1.entry-title{font-size:29px !important;line-height:1.15 !important;margin:6px 0 10px !important}
  .single .entry-header .entry-meta{display:flex !important;flex-wrap:wrap;align-items:center;gap:2px 16px;font-size:14px;opacity:.8;margin:0 !important}
  .single .entry-header .entry-meta .item-metadata{display:inline-flex !important;align-items:center;gap:5px;width:auto !important;margin:0 !important}
  .single .entry-header .entry-meta .aft-comment-view-share,.single .entry-header .entry-meta .posts-author{display:none !important}
  .single .read-img{margin:14px -16px 16px !important;width:auto !important}
  .single .read-img .post-thumbnail{width:100% !important}
  .single .read-img img{margin:0 !important;width:100% !important;height:auto !important;max-width:100% !important;display:block}
  .single .entry-content > p:first-child{font-size:19px;line-height:1.45;font-weight:600;color:#d5dbe6;border-left:4px solid #D61F26;padding-left:12px;margin-bottom:18px}
}