/**
 * seo-colors.css — Folha de estilos principal
 * Portal Elite JF
 * Otimizado para: SEO · Web Core Vitals · Acessibilidade · Mobile-first
 */

/* ============================================================
   VARIÁVEIS GLOBAIS
   ============================================================ */
:root {
  --color-primary:       #1a73e8;
  --color-primary-dark:  #1557b0;
  --color-primary-light: #e8f0fe;

  --color-text-main:     #0f172a;
  --color-text-muted:    #475569;
  --color-text-hint:     #94a3b8;

  --color-bg:            #f8fafc;
  --color-bg-soft:       #f8fafc;
  --color-bg-card:       #ffffff;
  --color-header:        #0f172a;

  --color-border:        #e2e8f0;
  --color-border-strong: #cbd5e1;

  --color-breaking:      #dc2626;
  --color-policial:      #7c3aed;
  --color-politica:      #0891b2;
  --color-esporte:       #16a34a;
  --color-economia:      #d97706;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.10);

  --max-width:  1200px;
  --sidebar-w:  340px;
  --gap:        32px;
}

/* ============================================================
   RESET — Web Core Vitals: evita layout shifts
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--color-text-main);
  background: var(--color-bg);
  line-height: 1.6;
  /* Previne CLS ao carregar fontes */
  font-display: swap;
}

/* Skip-nav para acessibilidade */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  z-index: 99999;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top .2s;
}
.skip-nav:focus { top: 0; }
/* Texto apenas para leitores de tela. Diferente de .skip-nav: nunca aparece visualmente. */
.visually-hidden {
  position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important;
  overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important;
}


/* Imagens: sempre com width/height definidos para evitar CLS */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ── HIERARQUIA TIPOGRÁFICA ──────────────────────────────────
   H1: Título principal de cada página — um por página, SEO-crítico
   H2: Seções principais do conteúdo (notícias, sidebar)
   H3: Sub-seções, cards de notícia, títulos de sidebar
   H4: Rótulos menores (autor, nota editorial, dentro de cards)
   ──────────────────────────────────────────────────────────── */
h1 {
  font-family: 'Georgia', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}
h2 {
  font-family: 'Georgia', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
  margin-bottom: 0.6rem;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}
h4 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

/* Heading de seção com sublinhado azul */
.section-heading {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 6px;
  font-family: 'Georgia', serif;
}

/* ============================================================
   LAYOUT UTILITÁRIOS
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Grid principal: coluna de conteúdo + sidebar */
.page-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-header);
  border-bottom: 3px solid var(--color-primary);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header__logo {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  font-family: 'Georgia', serif;
  white-space: nowrap;
}
.site-header__logo span { color: var(--color-primary); }

.site-header__brand-image {
  display:block;
  width:auto;
  height:52px;
  max-width:220px;
  object-fit:contain;
}
.site-header__logo{flex:0 0 auto;max-width:220px;overflow:hidden;}
.house-ad {
  margin:10px auto;
  max-width:1500px;
  min-height:92px;
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  text-align:center;
  background:linear-gradient(110deg,#071b38 0%,#0d2d55 65%,#b50000 100%);
  color:#fff;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 8px 24px rgba(15,23,42,.14);
}
.house-ad--wide { border-radius:0; margin:0 auto; }
.house-ad--menu { margin-top:8px; margin-bottom:8px; min-height:72px; }
.house-ad--sidebar { min-height:250px; flex-direction:column; padding:22px 16px; }
.house-ad--article { min-height:110px; margin:24px 0; }
.house-ad__eyebrow { font-size:.68rem; letter-spacing:.16em; font-weight:800; opacity:.76; }
.house-ad strong { font-size:1.05rem; }
.house-ad a { color:#fff; font-weight:800; text-decoration:none; background:#c40000; padding:9px 14px; border-radius:999px; }
.house-ad a:hover { filter:brightness(1.08); text-decoration:none; }

.site-header__nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.site-header__nav a {
  color: #f1f5f9;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-header__nav a:hover {
  border-bottom-color: var(--color-primary);
  text-decoration: none;
  color: #fff;
}
.site-header__nav .nav-stories {
  background: linear-gradient(45deg, #f59e0b, #ef4444);
  color: #ffffff !important;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .85rem;
  border-bottom: none !important;
}

.site-header__search {
  display: flex;
  gap: 5px;
}
.site-header__search input {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  width: 180px;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.site-header__search input::placeholder { color: #94a3b8; }
.site-header__search input:focus {
  outline: 2px solid var(--color-primary);
  background: rgba(255,255,255,.18);
}
.site-header__search button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: .85rem;
}

/* Breaking news bar */
.breaking-bar {
  background: var(--color-breaking);
  color: #ffffff;
  padding: 8px 0;
  font-size: .85rem;
  font-weight: 700;
  overflow: hidden;
}
.breaking-bar__label {
  background: #991b1b;
  padding: 4px 10px;
  margin-right: 12px;
  text-transform: uppercase;
  border-radius: 2px;
  font-size: .75rem;
  flex-shrink: 0;
}
.breaking-bar__inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}
.breaking-bar a { color: #fff; text-decoration: none; margin-right: 40px; }

/* ============================================================
   CARROSSEL DE STORIES (home)
   ============================================================ */
.stories-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 5px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.stories-row::-webkit-scrollbar { height: 4px; }
.stories-row::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  width: 78px;
  flex-shrink: 0;
  cursor: pointer;
}
.story-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275);
  box-shadow: var(--shadow-md);
}
.story-bubble:hover .story-ring { transform: scale(1.08) rotate(5deg); }
.story-thumb {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}
.story-txt {
  font-size: .72rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-align: center;
  margin-top: 8px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   CARDS DE NOTÍCIA
   ============================================================ */
.news-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-card__img-wrap {
  display: block;
  aspect-ratio: 16/9;
  background: var(--color-border);
  overflow: hidden;
}
.news-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .news-card__img-wrap img { transform: scale(1.03); }

.news-card__body { padding: 16px; flex: 1; }
.news-card__footer { padding: 0 16px 16px; font-size: .75rem; color: var(--color-text-hint); }

/* Card destaque (principal) */
.news-card--featured .news-card__body { padding: 24px; }
.news-card--featured h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 8px 0 12px;
  line-height: 1.3;
}

/* Grid de cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ============================================================
   BADGES DE CATEGORIA
   ============================================================ */
.badge-category {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  letter-spacing: .3px;
  margin-bottom: .4rem;
}
.badge-policial      { background: #f5f3ff; color: var(--color-policial); }
.badge-politica,
.badge-pol\00edtica  { background: #ecfeff; color: var(--color-politica); }
.badge-esporte       { background: #f0fdf4; color: var(--color-esporte); }
.badge-economia      { background: #fffbeb; color: var(--color-economia); }
.badge-urgente       { background: var(--color-breaking); color: #ffffff; }
.badge-juiz-de-fora,
.badge-cidade        { background: var(--color-primary-light); color: var(--color-primary); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-box {
  background: var(--color-bg-soft);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.sidebar-box__title {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--color-text-main);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 6px;
}
.trending-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trending-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.trending-list__num { font-weight: 900; color: var(--color-primary); font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.trending-list a { color: var(--color-text-main); font-weight: 500; }
.trending-list a:hover { color: var(--color-primary); text-decoration: none; }

/* ============================================================
   ARTIGO COMPLETO
   ============================================================ */
.article-header { margin-bottom: 20px; }

.article-meta {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.article-meta__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-meta__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #0d47a1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.article-meta__name { font-size: .85rem; font-weight: 600; color: var(--color-text-main); }
.article-meta__date { font-size: .75rem; color: var(--color-text-hint); }

.article-share {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  font-size: 1rem;
}
.share-btn:hover { transform: scale(1.12); }
.share-btn--whatsapp { background: #25d366; color: #fff; box-shadow: 0 4px 10px rgba(37,211,102,.2); }
.share-btn--telegram  { background: #0088cc; color: #fff; box-shadow: 0 4px 10px rgba(0,136,204,.2); }
.share-btn--copy      { background: #475569; color: #fff; box-shadow: 0 4px 10px rgba(71,85,105,.2); }
.share-btn--facebook  { background: #1877f2; color: #fff; box-shadow: 0 4px 10px rgba(24,119,242,.2); }
.share-btn--twitter   { background: #000;    color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.2); }

/* Player de áudio */
.audio-player {
  background: rgba(26,115,232,.05);
  border: 1px solid rgba(26,115,232,.15);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin: 15px 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.audio-player__play {
  background: var(--color-primary);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(26,115,232,.3);
  font-size: 1.2rem;
  transition: transform .2s;
}
.audio-player__play:hover { transform: scale(1.08); }
.audio-player__label { font-size: .85rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: .5px; }
.audio-player__status { font-size: .75rem; color: #64748b; }
.audio-player__speed {
  background: #fff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}

/* Conteúdo do artigo */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-main);
}
.article-content p  { margin-bottom: 1.2rem; }
.article-content h2 { font-size: 1.35rem; margin: 1.8rem 0 .8rem; }
.article-content h3 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem auto;
  display: block;
}
.article-content a { color: var(--color-primary); font-weight: 600; }
.article-content strong { color: var(--color-text-main); }
.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 16px;
  margin: 1rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Nota editorial */
.editorial-note {
  margin: 30px 0;
  padding: 20px;
  border-left: 4px solid var(--color-primary);
  background: #f1f5f9;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.editorial-note h4 { font-size: 1rem; color: var(--color-text-main); margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.editorial-note p  { font-size: .85rem; color: var(--color-text-muted); line-height: 1.6; text-align: justify; }

/* Reações */
.reactions-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.reactions-box__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.reactions-grid { display: flex; justify-content: space-around; gap: 10px; flex-wrap: wrap; }
.reaction-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  width: 80px;
  border-radius: var(--radius-md);
  transition: background .2s;
}
.reaction-btn:hover { background: var(--color-bg-soft); }
.reaction-emoji { font-size: 2.2rem; transition: transform .3s; display: block; }
.reaction-label { font-size: .72rem; font-weight: 700; color: var(--color-text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: .4px; }
.reaction-count { font-size: .85rem; font-weight: 800; color: var(--color-primary); margin-top: 4px; }

/* FAQ */
.faq-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
}
.faq-box__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.faq-item { border-top: 1px solid #f1f5f9; padding: 12px 0; }
.faq-item:first-child { border-top: none; }
.faq-item__q { font-weight: 700; color: var(--color-text-main); font-size: .95rem; cursor: pointer; }
.faq-item__a { color: var(--color-text-muted); font-size: .9rem; margin-top: 6px; padding-left: 14px; }

/* Caixa do autor */
.author-box {
  margin-top: 30px;
  padding: 20px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--color-primary);
  object-fit: cover;
}
.author-box__name { font-size: 1.05rem; color: var(--color-text-main); margin-bottom: 4px; font-family: 'Inter', sans-serif; }
.author-box__bio  { font-size: .88rem; color: var(--color-text-muted); line-height: 1.5; }



/* Comentários */
.comments-box {
  margin-top: 40px;
  background: var(--color-bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.comments-box__title {
  font-size: 1.2rem;
  color: var(--color-text-main);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.comment-item {
  background: var(--color-bg-soft);
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-border-strong);
  margin-bottom: 12px;
}
.comment-item__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.comment-item__author { font-weight: 700; color: var(--color-text-main); font-size: .95rem; }
.comment-item__date   { font-size: .8rem; color: var(--color-text-hint); }
.comment-item__text   { color: var(--color-text-muted); font-size: .95rem; line-height: 1.5; }

.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  resize: vertical;
  font-family: inherit;
}
.comment-form textarea:focus { outline: 2px solid var(--color-primary); border-color: transparent; }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: .95rem;
  transition: background .2s;
  display: inline-block;
  text-decoration: none !important;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-secondary {
  background: var(--color-text-main);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
  display: inline-block;
  text-decoration: none !important;
}
.comment-cta {
  background: var(--color-bg-soft);
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-text-hint);
}
.comment-cta p { color: var(--color-text-muted); font-size: .95rem; font-weight: 600; margin-bottom: 16px; }
.comment-cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: .8rem;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb__sep { color: var(--color-text-hint); }
.breadcrumb__current { color: var(--color-text-hint); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-header);
  color: #94a3b8;
  padding: 40px 0 20px;
  margin-top: 30px;
  border-top: 3px solid var(--color-primary);
  font-size: .9rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.site-footer__title { color: #fff; font-family: 'Georgia', serif; margin-bottom: 12px; font-size: 1.05rem; }
.site-footer__list  { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .85rem; }
.site-footer__list a { color: #93c5fd; }
.site-footer__list a:hover { color: #fff; text-decoration: none; }
.site-footer__copy  { text-align: center; font-size: .8rem; color: #64748b; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }

/* Newsletter inline */
.newsletter-form { display: flex; flex-direction: column; gap: 6px; }
.newsletter-form input {
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.newsletter-form input::placeholder { color: #64748b; }
.newsletter-form button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: .85rem;
}

/* Botão Push Notification */
.push-fab {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
}
.push-fab__btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(26,115,232,.4);
  cursor: pointer;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275);
  position: relative;
}
.push-fab__btn:hover { transform: scale(1.1); }
.push-fab__status {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.push-fab__popover {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 280px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 16px;
  flex-direction: column;
  gap: 12px;
  font-family: 'Inter', sans-serif;
}
.push-fab__popover h5 { font-size: .95rem; color: var(--color-text-main); font-weight: 700; font-family: 'Inter', sans-serif; }
.push-fab__popover p  { font-size: .82rem; color: #475569; line-height: 1.4; }
.push-fab__actions    { display: flex; gap: 8px; }

/* Animações */
@keyframes pushFadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseBell {
  0%   { box-shadow: 0 0 0 0 rgba(26,115,232,.7); }
  70%  { box-shadow: 0 0 0 15px rgba(26,115,232,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,115,232,0); }
}
.pulse-active { animation: pulseBell 2s infinite; }

/* Toast de cópia de link */
@keyframes slideIn  { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOut  { to { opacity: 0; transform: translateY(-20px); } }

/* ============================================================
   BANNER PUBLICITÁRIO
   ============================================================ */
.banner-wrap {
  text-align: center;
  margin: 15px auto;
  padding: 0 16px;
}
.banner-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* ============================================================
   INSTITUCIONAL (quem somos, contato, etc.)
   ============================================================ */
.inst-content {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}
.inst-content h1 { color: var(--color-primary); margin-bottom: 24px; font-size: 2rem; }
.inst-content p  { margin-bottom: 1rem; color: var(--color-text-muted); }

/* Formulário de contato */
.contact-form { margin-top: 30px; }
.form-group   { margin-bottom: 18px; }
.form-group label { display: block; color: var(--color-text-main); margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--color-text-main);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26,115,232,.1); }
.btn-submit {
  background: #059669;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: background .2s;
}
.btn-submit:hover { background: #047857; }

.contact-info { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--color-border); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card h4 { color: var(--color-primary); margin-bottom: 5px; text-transform: uppercase; font-size: .9rem; font-weight: 800; }
.info-card p  { color: var(--color-text-main); font-weight: 700; font-size: 1rem; }

/* Alerta de sucesso */
.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

/* ============================================================
   MOBILE RESPONSIVO — Web Core Vitals: sem CLS
   ============================================================ */
@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
  /* Sidebar fica embaixo do conteúdo em mobile */
  .sidebar { order: 2; }
}

@media (max-width: 768px) {
  :root { --gap: 20px; }

  .site-header__inner { gap: 8px; }
  .site-header__nav   { gap: 8px; font-size: .82rem; }
  .site-header__search input { width: 130px; }

  .news-card--featured h2 { font-size: 1.3rem; }
  .news-grid { grid-template-columns: 1fr; }

  .article-meta { flex-direction: column; align-items: flex-start; }
  .article-share { margin-left: 0; }

  .audio-player { flex-direction: column; align-items: flex-start; }

  .reactions-grid { gap: 6px; }
  .reaction-btn   { width: 60px; }

  .contact-info { grid-template-columns: 1fr; }
  .inst-content { padding: 24px 16px; margin: 30px auto; }

  .push-fab { bottom: 16px; left: 16px; }
  .push-fab__btn { width: 52px; height: 52px; }

  .comment-cta__actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .site-header__logo { font-size: 1.3rem; }
  .site-header__brand-image { height:42px; max-width:180px; }
  .site-header__search { display: none; } /* Busca some em telas muito pequenas */

  .story-ring  { width: 58px; height: 58px; }
  .story-thumb { width: 52px; height: 52px; }

  .reactions-grid { justify-content: center; }
}

/* ============================================================
   PRINT — remove elementos desnecessários ao imprimir
   ============================================================ */
@media print {
  .site-header, .site-footer, .push-fab,
  .audio-player, .reactions-box, .comment-form,
  .breaking-bar, .stories-row, .sidebar { display: none !important; }
  .page-grid { grid-template-columns: 1fr; }
  .article-content { font-size: 12pt; line-height: 1.6; }
}

/* ============================================================
   DARK MODE — ativado via [data-theme="dark"] no <html>
   ============================================================ */
[data-theme="dark"] {
  --color-primary:       #60a5fa;
  --color-primary-dark:  #3b82f6;
  --color-primary-light: #1e3a5f;
  --color-text-main:     #f1f5f9;
  --color-text-muted:    #94a3b8;
  --color-text-hint:     #64748b;
  --color-bg:            #0f172a;
  --color-bg-soft:       #1e293b;
  --color-bg-card:       #1e293b;
  --color-header:        #0b1120;
  --color-border:        #334155;
  --color-border-strong: #475569;
}
[data-theme="dark"] body { background: #0f172a; color: #f1f5f9; }
[data-theme="dark"] .site-header { background: #0b1120; }
[data-theme="dark"] .news-card,
[data-theme="dark"] .sidebar-box,
[data-theme="dark"] .comments-box,
[data-theme="dark"] .faq-box,
[data-theme="dark"] .reactions-box,
[data-theme="dark"] .audio-player,
[data-theme="dark"] .author-box,
[data-theme="dark"] .editorial-note { background: #1e293b; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .news-card__title a,
[data-theme="dark"] .news-card__category { color: #f1f5f9; }
[data-theme="dark"] .news-card__excerpt,
[data-theme="dark"] .news-card__meta { color: #94a3b8; }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: #f1f5f9; }
[data-theme="dark"] .article-content { color: #e2e8f0; }
[data-theme="dark"] .article-content a { color: #60a5fa; }
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3 { color: #f1f5f9; border-color: #334155; }
[data-theme="dark"] .section-heading { color: #f1f5f9; border-color: #334155; }
[data-theme="dark"] .site-footer { background: #0b1120; border-color: #1e293b; }
[data-theme="dark"] .site-footer__list a,
[data-theme="dark"] .site-footer__title { color: #94a3b8; }
[data-theme="dark"] .breadcrumb a { color: #60a5fa; }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
  background: #1e293b; border-color: #334155; color: #f1f5f9;
}

[data-theme="dark"] .breaking-bar { background: #991b1b; }

/* ============================================================
   AUTO-REFRESH INDICATOR
   ============================================================ */
#auto-refresh-indicator {
  position: fixed; bottom: 90px; right: 20px;
  background: rgba(15,23,42,.85); color: #94a3b8;
  font-size: .72rem; padding: 5px 10px; border-radius: 20px;
  z-index: 500; backdrop-filter: blur(4px);
  display: none;
}


/* FASE 2 — ticker acessível substitui o elemento obsoleto anterior */
.breaking-ticker{min-width:0;flex:1;overflow:hidden;white-space:nowrap;}
.breaking-ticker__track{display:inline-flex;align-items:center;width:max-content;min-width:max-content;padding-left:100%;will-change:transform;animation:breakingTicker 34s linear infinite;}
.breaking-ticker__track a{display:inline-block;white-space:nowrap;flex:0 0 auto;}
.breaking-ticker:hover .breaking-ticker__track,.breaking-ticker:focus-within .breaking-ticker__track{animation-play-state:paused;}
@keyframes breakingTicker{from{transform:translateX(0)}to{transform:translateX(-100%)}}
