:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #0f8f4d;
  --brand-ink: #0a6e3a;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;   /* nunca rola na horizontal no celular */
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Faixa utilitária (data / região) */
.utilbar { background: linear-gradient(90deg, var(--brand-ink), var(--brand)); color: #fff; }
.utilbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px; font-size: 12.5px; font-weight: 500; letter-spacing: .2px; }
.utilbar-tag { display: inline-flex; align-items: center; gap: 5px; }
.utilbar-date { opacity: .92; }

/* Cabeçalho fixo (logo + busca + menu grudam no topo ao rolar) */
.stickwrap { position: sticky; top: 0; z-index: 20; }

/* Topbar */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 74px; padding: 8px 0; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 58px; width: auto; display: block; }
.topbar.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* Busca moderna (pílula com sombra) */
.search { display: flex; flex: 1 1 0; min-width: 0; max-width: 520px; margin-left: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(15,143,77,.12); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 4px 11px 18px; font-size: 14.5px; outline: none; }
.search button { border: 0; background: transparent; color: var(--brand); padding: 0 16px; display: flex; align-items: center; cursor: pointer; }
.search button:hover { color: var(--brand-ink); }

/* Menu de categorias — abas modernas */
.cats { background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { height: 0; }
.cats-inner { display: flex; gap: 4px; padding: 0 20px; }
.cats a {
  position: relative; padding: 15px 18px 13px; font-size: 14.5px; font-weight: 700;
  color: #4b5563; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .15s;
}
.cats a:hover { color: var(--brand); }
.cats a.on { color: var(--brand); border-bottom-color: var(--brand); }

/* Espaços de anúncio */
.ad { position: relative; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f0f2f4, #f0f2f4 12px, #eaedf0 12px, #eaedf0 24px);
  border: 1px dashed #c7ccd3; border-radius: 10px; color: #9aa1ac; }
.ad-label { position: absolute; top: 6px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #b0b6bf; }
.ad-slot-ph { font-size: 13px; font-weight: 600; }
/* anúncio preenchido (banner/adsense): sem moldura tracejada */
.ad-filled { background: none; border: 0; padding: 0; overflow: hidden; }
.ad-filled img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 10px; }
.ad-leaderboard { height: 90px; margin: 18px 0 4px; }
.ad-rect { min-height: 250px; margin-top: 2px; }
.ad-infeed { min-height: 220px; grid-column: 1 / -1; }
@media (max-width: 640px) { .ad-leaderboard { height: 70px; } }

/* Faixa de data / tagline */
.masthead { background: linear-gradient(90deg, var(--brand), var(--brand-ink)); color: #fff; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 7px 20px; font-size: 13px; }
.masthead-tagline { font-weight: 600; letter-spacing: .2px; }
.masthead-date { opacity: .9; }

/* HERO / manchetes */
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; margin: 26px 0 10px; }
.hero-lead { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: block; box-shadow: var(--shadow); }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #1f2937; transition: transform .3s; }
.hero-lead:hover .hero-img { transform: scale(1.04); }
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 26px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 78%); color: #fff; }
.hero-tag { display: inline-block; align-self: flex-start; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.hero-title { font-size: 30px; line-height: 1.18; margin: 0 0 10px; letter-spacing: -.6px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero-summary { font-size: 15px; margin: 0; opacity: .92; max-width: 90%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hero-subs { display: flex; flex-direction: column; gap: 14px; }
.sub { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); flex: 1; transition: box-shadow .15s, transform .15s; }
.sub:hover { box-shadow: 0 6px 18px rgba(0,0,0,.09); transform: translateY(-2px); }
.sub-img { flex: 0 0 96px; align-self: stretch; border-radius: 8px; background-size: cover; background-position: center; background-color: #eceef1; min-height: 74px; }
.sub-img--empty { background: repeating-linear-gradient(45deg, #eceef1, #eceef1 8px, #e3e6ea 8px, #e3e6ea 16px); }
.sub-body { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.sub-meta { font-size: 12px; color: var(--brand); font-weight: 600; }
.sub-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sub:hover .sub-title { color: var(--brand); }

/* Página da notícia */
.artigo { max-width: 760px; margin: 26px auto 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px 30px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--brand); font-weight: 600; }
.crumbs span { opacity: .5; }
.artigo-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.artigo-meta .src { color: var(--brand); font-weight: 700; }
.artigo-meta .dot { opacity: .5; }
.artigo-title { font-size: 30px; line-height: 1.22; letter-spacing: -.5px; margin: 0 0 18px; }
.artigo-img { border-radius: 10px; overflow: hidden; margin-bottom: 18px; background: #eceef1; }
.artigo-img img { width: 100%; display: block; }
.artigo-summary { font-size: 18px; line-height: 1.6; color: #33383f; margin: 0 0 24px; }
.artigo-cta { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; }
.artigo-cta-note { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.btn-fonte { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; padding: 14px 28px; border-radius: 10px; box-shadow: 0 4px 14px rgba(15,143,77,.35); transition: background .15s, transform .15s; }
.btn-fonte:hover { background: var(--brand-ink); transform: translateY(-1px); }
.artigo-credito { font-size: 12.5px; color: var(--muted); margin: 18px auto 0; max-width: 520px; line-height: 1.5; }

/* Análises por IA */
.cats a.cats-ia { color: var(--brand); }
.cats a.cats-ia.on { border-bottom-color: var(--brand); }
.ia-banner { background: #eef6f1; border: 1px solid #cfe8db; color: #2a5c44; border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 12px 16px; font-size: 13.5px; line-height: 1.55; margin: 0 0 20px; }
.ia-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--brand); }
.doc-title { font-size: 28px; letter-spacing: -.5px; margin: 12px 0 14px; line-height: 1.2; }
.an-body p { font-size: 16.5px; line-height: 1.75; color: #2b2f36; margin: 0 0 16px; }
.an-refs { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.an-refs h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0 0 10px; }
.an-refs ul { margin: 0; padding-left: 18px; }
.an-refs li { margin-bottom: 7px; font-size: 14.5px; }
.an-refs a { color: var(--brand); font-weight: 500; }
.an-card .card-body { padding-top: 16px; }

/* Compartilhar */
.share { max-width: 760px; margin: 14px auto 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.sh { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: #fff;
  padding: 8px 14px; border-radius: 999px; text-decoration: none; display: inline-block; transition: opacity .15s; }
.sh:hover { opacity: .88; }
.sh-wpp { background: #25d366; }
.sh-fb { background: #1877f2; }
.sh-x { background: #111; }
.sh-tg { background: #2aabee; }
.sh-copy { background: #6b7280; }

/* Cabeçalho de seção */
.section-head { display: flex; align-items: center; gap: 14px; margin: 28px 0 16px; }
.section-head span { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--ink); border-left: 4px solid var(--brand); padding-left: 10px; }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Cabeçalho da página */
.page-head { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 18px; }
.page-head h1 { font-size: 26px; margin: 0; letter-spacing: -.4px; }
.count { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.empty code { background: #eceef1; padding: 2px 6px; border-radius: 5px; }

/* Grid de cards */
.grid {
  display: grid; gap: 18px; padding-bottom: 30px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.09); transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 16/9; background: #eceef1; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.card-meta .src { color: var(--brand); font-weight: 600; }
.card-meta .dot { opacity: .5; }
.cat-tag { background: #eef0f3; color: #4b5563; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.card-title { font-size: 16.5px; line-height: 1.32; margin: 0 0 8px; letter-spacing: -.2px; }
.card-title a:hover { color: var(--brand); }
.card-summary { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; flex: 1; }
.read-original { font-size: 13px; font-weight: 600; color: var(--brand); align-self: flex-start; }
.read-original:hover { text-decoration: underline; }

/* Paginação */
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 0 44px; }
.pager a { padding: 9px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 500; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .pg { color: var(--muted); font-size: 14px; }

/* Tabela de fontes */
.sources { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.sources th, .sources td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sources th { background: #f9fafb; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.sources tr:last-child td { border-bottom: 0; }
.sources td a { color: var(--brand); font-weight: 500; }

/* Páginas institucionais (Sobre, Contato, Privacidade) */
.doc { max-width: 760px; margin: 26px auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px 34px; }
.doc h1 { font-size: 28px; letter-spacing: -.5px; margin: 0 0 14px; }
.doc h2 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 15px; line-height: 1.65; color: #33383f; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--brand); font-weight: 600; }
.doc-sub { color: var(--muted); font-size: 13px; margin-top: -6px; }
.doc-credit { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.form-contato { display: flex; flex-direction: column; margin: 6px 0 20px; }
.form-contato label { font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
.form-contato input, .form-contato textarea { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.form-contato input:focus, .form-contato textarea:focus { border-color: var(--brand); }
.form-contato button { align-self: flex-start; margin-top: 16px; background: var(--brand); color: #fff; border: 0; border-radius: 9px; padding: 12px 24px; font-weight: 700; font-size: 15px; cursor: pointer; }
.form-contato button:hover { background: var(--brand-ink); }
.ok-msg { background: #e7f6ee; color: #0a6e3a; border: 1px solid #b6e2c8; padding: 12px 16px; border-radius: 9px; margin-bottom: 6px; font-weight: 600; }
.contato-extra { border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 14px; }

/* Links do rodapé */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; padding: 8px 0 4px; }
.foot-links a { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.foot-links a:hover { color: var(--brand); }

/* Banner de cookies */
.cookie-bar[hidden] { display: none; }   /* respeita o atributo hidden sobre o display:flex */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: #16181d; color: #eceff3; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.28);
  padding: 16px 20px; display: flex; align-items: center; gap: 18px; max-width: 1080px; margin: 0 auto; }
.cookie-bar p { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1; }
.cookie-bar a { color: #7ee2a8; font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.ck-btn { border: 0; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; background: var(--brand); color: #fff; }
.ck-btn:hover { background: var(--brand-ink); }
.ck-btn.ghost { background: transparent; color: #cdd3da; border: 1px solid #3a3f47; }
.ck-btn.ghost:hover { background: #23262c; }
@media (max-width: 640px) { .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; } .cookie-actions { justify-content: flex-end; } }

/* Botão flutuante WhatsApp */
.wpp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 20px 13px 16px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .15s, box-shadow .15s;
}
.wpp-float:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,.55); }
.wpp-float svg { flex: 0 0 auto; }
@media (max-width: 640px) {
  .wpp-float { right: 14px; bottom: 14px; padding: 13px; }
  .wpp-float span { display: none; }   /* no celular vira só o ícone */
}

/* Estatísticas */
.stats-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.stat-num { display: block; font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }
.stat-lbl { font-size: 13px; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.rank { list-style: none; counter-reset: r; margin: 0; padding: 0; }
.rank li { counter-increment: r; display: flex; flex-direction: column; gap: 3px; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line); position: relative; }
.rank li::before { content: counter(r); position: absolute; left: 0; top: 11px; font-weight: 800; color: var(--brand); font-size: 15px; width: 26px; text-align: center; }
.rank li a { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.rank li a:hover { color: var(--brand); }
.rank-meta { font-size: 12px; color: var(--muted); }
.views { color: var(--muted); }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; } .stats-cards { grid-template-columns: 1fr; } }

/* Rodapé */
.foot { border-top: 1px solid var(--line); background: var(--card); margin-top: 20px; }
.foot p { color: var(--muted); font-size: 13px; text-align: center; padding: 22px 0 0; margin: 0; }
.foot .credit { padding: 8px 0 22px; font-size: 12.5px; }
.foot .credit strong { color: var(--brand); }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-lead { min-height: 280px; }
  .hero-title { font-size: 23px; }
  .hero-summary { display: none; }              /* resumo da manchete só no desktop */
}

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .utilbar-inner { font-size: 11px; padding: 5px 14px; }
  .topbar-inner { gap: 12px; min-height: 58px; padding: 6px 0; }
  .logo img { height: 40px; }
  .search { max-width: none; }
  .search input { padding: 9px 2px 9px 14px; font-size: 14px; }
  .cats-inner { gap: 0; padding: 0 8px; }
  .cats a { padding: 12px 12px 10px; font-size: 13.5px; }

  .page-head { margin: 18px 0 14px; }
  .page-head h1 { font-size: 21px; }
  .hero { margin: 16px 0 8px; gap: 12px; }
  .hero-lead { min-height: 230px; border-radius: 10px; }
  .hero-overlay { padding: 18px 16px 16px; }
  .hero-title { font-size: 20px; }
  .hero-subs { gap: 10px; }

  .grid { gap: 14px; }
  .artigo, .doc { padding: 20px 18px 24px; margin: 16px auto; border-radius: 10px; }
  .artigo-title { font-size: 23px; }
  .doc h1 { font-size: 23px; }
  .section-head span { font-size: 14px; }

  .foot-links { gap: 4px 14px; }
  .wpp-float span { display: none; }            /* no celular vira só o ícone */
}

/* telas bem pequenas */
@media (max-width: 380px) {
  .logo img { height: 34px; }
  .hero-title { font-size: 18px; }
  .card-title { font-size: 15.5px; }
}
