/* Melhorias visuais da versão Cloudflare (carregado depois de site.css). */

/* Cabeçalho fixo e barra de categorias */
.site-header{position:sticky;top:0;z-index:var(--layer-menu);box-shadow:0 1px 0 #ffffff14}
.category-bar{display:none;background:#06203d;border-top:1px solid #ffffff1a}
.category-bar .container{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-block:8px}
.category-bar .container::-webkit-scrollbar{display:none}
.category-bar a{flex:0 0 auto;padding:6px 13px;border-radius:999px;background:#ffffff12;color:#fff;font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none!important}
.category-bar a[aria-current=page]{background:#f41d39}

/* Tempo relativo nas notícias recentes */
time.is-fresh{color:var(--red);font-weight:700}
time.is-fresh::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);margin-right:6px;vertical-align:1px;animation:dn-pulse 2s ease-in-out infinite}
@keyframes dn-pulse{50%{opacity:.35}}
.news-row time{font-size:13px;margin-top:8px;display:block}
.lead-story time{display:block}

/* Capas: cantos suaves e foco melhor */
.cover-link{border-radius:6px}
.lead-story__media .cover-link{border-radius:8px}
.lead-story h1 a:hover,.news-row h3 a:hover,.story-grid h3 a:hover,.archive-story h2 a:hover{text-decoration:none;color:#173554}

/* Chamada para seguir no Instagram */
.follow-cta{display:flex;align-items:center;gap:18px;margin:6px 0 46px;padding:20px 24px;border-radius:10px;background:linear-gradient(120deg,var(--navy) 0%,#0b2d55 100%);color:#fff}
.follow-cta__icon{flex:0 0 52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f9ce34,#ee2a7b 55%,#6228d7)}
.follow-cta__icon svg{width:30px;height:30px;color:#fff}
.follow-cta__text{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.follow-cta__text strong{font-family:var(--font-title);font-size:23px;letter-spacing:-.02em;line-height:1.1}
.follow-cta__text span{font-size:15px;color:#ffffffcc}
.follow-cta .follow-cta__button{background:#fff;color:var(--navy);border-color:#fff;border-radius:999px;padding-inline:22px;white-space:nowrap}
.follow-cta .follow-cta__button:hover{background:#e8edf3}
.follow-cta--compact{margin:0}

/* Mídia do artigo: posts do Instagram são verticais (4:5 e 9:16) */
.article-media{max-width:620px;margin-inline:auto}
.article-media--video{max-width:520px}
.article-photo,.media-gallery img{aspect-ratio:auto;max-height:82vh;object-fit:contain;border-radius:8px;background:var(--surface)}
.instagram-embed{border-radius:10px;overflow:hidden}
.embed-preview{position:relative}
.embed-preview>img{aspect-ratio:4/5;max-height:640px;object-fit:cover}
.embed-preview:has(>img) .embed-consent{position:absolute;inset:auto 0 0 0;padding:70px 20px 22px;background:linear-gradient(180deg,#02152b00,#02152be6 45%);color:#fff}
.embed-preview:has(>img) .embed-consent .media-caption,.embed-preview:has(>img) .embed-consent a{color:#ffffffd9}
.embed-consent .button{border-radius:999px;padding-inline:26px;font-size:16px}
.embed-preview:has(>img) .embed-consent .button{background:#f41d39;border-color:#f41d39}
.embed-preview:has(>img) .embed-consent .button:hover{background:#d0102a}

/* Compartilhar */
.article-share--top{border-top:0;padding-top:0;margin:-10px auto 30px;justify-content:center;flex-wrap:wrap}
.share-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:15px;font-weight:600;text-decoration:none!important}
.share-button:hover{background:var(--surface)}
.share-button svg{width:20px;height:20px}
.share-button--whatsapp{background:#1f8f4e;border-color:#1f8f4e;color:#fff}
.share-button--whatsapp:hover{background:#18763f}

/* Legenda com leitura mais confortável */
.caption-text{font-size:18px;line-height:1.6}
.original-caption{border-top:0;padding-top:0}

/* Rodapé */
.instagram-link{display:inline-flex;align-items:center;gap:8px}
.instagram-link svg{width:20px;height:20px}

@media(max-width:700px){
  .category-bar{display:block}
  .header-inner{height:60px}
  .search-panel{top:104px}
  .mobile-menu nav{top:calc(100% + 9px)}
  .follow-cta{flex-wrap:wrap;gap:14px;padding:18px;margin-bottom:34px}
  .follow-cta__icon{flex-basis:44px;height:44px}
  .follow-cta__text strong{font-size:20px}
  .follow-cta__text span{font-size:14px}
  .follow-cta .follow-cta__button{width:100%}
  .caption-text{font-size:16px}
  .article-share--top{margin-top:-6px}
  .share-button{flex:1;justify-content:center}
}
@media(prefers-reduced-motion:reduce){time.is-fresh::before{animation:none}}
@media print{.category-bar,.follow-cta{display:none}}
