/* ============================================
   Atualiza São José - Estilos Principais
   ============================================ */

:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand-dark: #0b0f19;
  --brand-cyan: #22c3ee;
  --brand-pink: #e6007e;
  --accent: #0e9fcf;
}

/* --- Barra superior --- */
.topbar {
  background: var(--brand-dark);
}

/* --- Cabeçalho --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-nav .menu-link {
  height: 100%;
}

/* --- Logo --- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.brand-logo-top {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 1px;
}

.brand-logo-main {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-logo-mark {
  width: 16px;
  height: 40px;
  margin-left: -2px;
  margin-bottom: 4px;
}

.brand-logo-light {
  color: #fff;
}

@media (min-width: 768px) {
  .brand-logo-top { font-size: 1.1rem; }
  .brand-logo-main { font-size: 1.9rem; }
  .brand-logo-mark { width: 19px; height: 48px; }
}

/* --- Botões --- */
.btn-ghost {
  align-items: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: #f9fafb;
}

/* --- Menu de Navegação --- */
.menu-link {
  position: relative;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 0.85rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: -1px;
  height: 3px;
  background: var(--brand-cyan);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.menu-link:hover {
  color: var(--ink);
}

.menu-link:hover::after,
.menu-link.active::after {
  transform: scaleX(1);
}

.menu-link.active {
  color: var(--ink);
}

/* --- Menu Mobile --- */
.mobile-menu-link {
  display: block;
  padding: 0.7rem 0.5rem;
  color: #374151;
  font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--brand-cyan);
  padding-left: 0.85rem;
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 13rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  z-index: 50;
  padding: 0.35rem 0;
  border: 1px solid var(--line);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

.dropdown-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
}

.dropdown-link:hover,
.dropdown-link.active {
  background: #f3f4f6;
  color: var(--ink);
}

/* --- Títulos de seção --- */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-title::before {
  content: "";
  width: 6px;
  height: 1.35rem;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-pink));
}

.section-title-sm {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* --- Hero / Carrossel --- */
.hero {
  height: 300px;
  border-radius: 6px;
  background: #e5e7eb;
}

@media (min-width: 640px) { .hero { height: 400px; } }
@media (min-width: 1024px) { .hero { height: 500px; } }

.carousel-track {
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
}

.banner-gradient {
  background-image: linear-gradient(to top, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.55) 40%, rgba(5, 8, 15, 0) 75%);
}

.hero-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 5;
}

.hero:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .hero-arrow { opacity: 1; }
}

@media (max-width: 767px) {
  .hero-arrow { display: none; }
}

.hero-dot {
  height: 4px;
  outline-offset: 6px;
  width: 18px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

/* --- Tag de editoria --- */
.category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.category-tag-solid {
  color: #fff;
  background: var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
}

/* compat com classe antiga */
.card-category-highlight {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Cards de Notícias --- */
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  box-shadow: 0 14px 30px -12px rgba(17, 24, 39, 0.22);
  transform: translateY(-2px);
}

.news-card .card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
}

.news-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-media img {
  transform: scale(1.04);
}

.news-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem 0.5rem;
  flex: 1;
}

.news-card .card-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink);
}

.news-card:hover .card-title a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-card .card-excerpt {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.55;
}

.news-card .card-meta {
  padding: 0.85rem 1.25rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Card de destaque (primeiro da lista) */
.news-card-large {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .news-card-large {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
  }

  .news-card-large .card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
    grid-row: span 2;
  }

  .news-card-large .card-content {
    padding: 1.75rem 1.75rem 0.5rem;
    justify-content: center;
  }

  .news-card-large .card-title {
    font-size: 1.45rem;
    line-height: 1.22;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .news-card-large .card-meta {
    padding: 0.85rem 1.75rem 1.5rem;
  }
}

@media (min-width: 1280px) {
  .news-card-large .card-title {
    font-size: 1.75rem;
  }
}

.related-news-card {
  min-height: 18rem;
}

.related-news-card .card-content {
  display: flex;
  flex-direction: column;
}

.related-news-card .card-meta {
  margin-top: 0.4rem;
}

.card-meta-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title-clamp {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body-clamp {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Esqueleto de carregamento --- */
.skeleton {
  background: linear-gradient(90deg, #eceef1 25%, #f5f6f8 50%, #eceef1 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Sidebar --- */
.search-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 195, 238, 0.2);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 800;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.ad-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 0.4rem;
}

.insta-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease;
}

.insta-card:hover {
  border-color: #d1d5db;
}

.insta-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7);
  flex-shrink: 0;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease;
}

.partner-card:hover {
  border-color: #d1d5db;
}

/* --- Mais Lidas --- */
.most-read-item + .most-read-item {
  border-top: 1px solid #f3f4f6;
}

.most-read-link {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 1.25rem;
  text-decoration: none;
}

.most-read-rank {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 800;
  min-width: 1.3rem;
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.most-read-title {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
  transition: color 0.2s ease;
}

.most-read-link:hover .most-read-title {
  color: var(--accent);
}

/* --- Rodapé --- */
.site-footer {
  background: var(--brand-dark);
  color: #d1d5db;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-link,
.footer-link.menu-link {
  color: #9ca3af;
  transition: color 0.2s ease;
  height: auto;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-link.menu-link::after {
  display: none;
}

.footer-link:hover,
.footer-link.menu-link:hover,
.footer-link.menu-link.active {
  color: #fff;
}

/* --- Bloco publicitário --- */
.ad-promo {
  min-height: 15rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(230, 0, 126, 0.35), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(34, 195, 238, 0.35), transparent 55%),
    var(--brand-dark);
  color: #f9fafb;
  position: relative;
  overflow: hidden;
}

.ad-promo-chip {
  display: inline-block;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  border: 1px solid rgba(34, 195, 238, 0.5);
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
}

.ad-promo-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ad-promo-subtitle {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.ad-promo-text-swap {
  animation: adTextSwap 0.45s ease;
}

.ad-promo-cta {
  display: inline-block;
  width: fit-content;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.ad-promo-cta:hover {
  background: var(--brand-cyan);
}

.inline-ad {
  grid-column: 1 / -1;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  background: #fafafa;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  padding: 1.25rem;
}

/* --- Admin Panel --- */
.tab-button {
  transition: all 0.2s ease;
}

.tab-button.active {
  border-color: #ffd100;
  color: #1a1a1a;
}

.tab-button:not(.active) {
  border-color: transparent;
  color: #6b7280;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.news-item {
  transition: background-color 0.2s ease;
}

.news-item:hover {
  background-color: #f9fafb;
}

/* --- Modal --- */
.modal {
  display: none;
}

.modal.active {
  display: flex;
}

/* --- Utilitários --- */
.hover-lift:hover {
  transform: translateY(-2px);
}

.sticky-sidebar {
  position: sticky;
  top: 9rem;
}

@keyframes adTextSwap {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .ad-promo-text-swap {
    animation: none;
  }

  .carousel-track,
  .news-card,
  .news-card .card-media img {
    transition: none;
  }
}

/* =========================================================
   Página de notícia
   ========================================================= */
.btn-primary {
  align-items: center;
  gap: 0.4rem;
  background: var(--ink, #111827);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: #000; }

.article .category-tag { font-size: 0.75rem; margin-bottom: 0.9rem; }

.article-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 800;
  color: #0B0F19;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.article-meta {
  font-size: 0.9rem;
  color: #6B7280;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #E5E7EB;
}
.article-meta .font-semibold, .article-meta .meta-author strong { color: #111827; }
html.dark .article-meta .font-semibold, html.dark .article-meta .meta-author strong { color: #F3F4F6; }

.article-figure { margin: 0 0 2rem; }
.article-figure img {
  border-radius: 6px;
  background: #E5E7EB;
}

.article-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 6px;
}

.article-body {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #1F2937;
}
.article-body > p { margin-bottom: 1.35rem; }
/* Subtítulos dentro do texto (linhas que começam com "## ") */
.article-body > h2.article-subtitle {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
  margin: 2rem 0 .85rem;
  padding-left: .75rem;
  border-left: 4px solid #E6007E;
}
html.dark .article-body > h2.article-subtitle { color: #F9FAFB !important; }
@media (max-width: 640px) { .article-body > h2.article-subtitle { font-size: 1.25rem; } }
/* Comentários dos leitores */
.article-comments .comments-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.comment-item { padding: 1rem 0; border-bottom: 1px solid #E5E7EB; }
.comment-head { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; margin-bottom: .35rem; }
.comment-head strong { color: #111827; }
.comment-head time { font-size: .8rem; color: #6B7280; }
.comment-item p { margin: 0; white-space: pre-wrap; line-height: 1.6; color: #1F2937; overflow-wrap: anywhere; }
.comments-empty { color: #6B7280; margin-bottom: 1rem; }
.comment-form { display: grid; gap: .4rem; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 6px; padding: 1.25rem; }
.comment-label { font-weight: 600; font-size: .9rem; color: #374151; }
.comment-input { width: 100%; border: 1px solid #D1D5DB; border-radius: 6px; padding: .6rem .75rem; font: inherit; background: #fff; color: #111827; }
.comment-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 195, 238, .2); }
.comment-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-note { font-size: .8rem; color: #6B7280; margin: .25rem 0; }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.comment-count { font-size: .8rem; color: #9CA3AF; }
.comment-status { font-size: .9rem; color: #B91C1C; min-height: 1.2em; margin: 0; }
.comment-status.is-ok { color: #15803D; }
html.dark .comment-item { border-bottom-color: #374151; }
html.dark .comment-head strong { color: #F3F4F6; }
html.dark .comment-item p { color: #D1D5DB; }
html.dark .comment-form { background: #111827; border-color: #374151; }
html.dark .comment-label { color: #D1D5DB; }
html.dark .comment-input { background: #1F2937; border-color: #4B5563; color: #F3F4F6; }
html.dark .article-most-read { background: #111827 !important; border-color: #1f2937 !important; }
html.dark .article-most-read .panel-title { color: #F3F4F6; border-bottom-color: #1f2937; }
html.dark .article-most-read .most-read-item + .most-read-item { border-top-color: #1f2937; }
html.dark .comment-form .btn-primary { background: var(--brand-pink); }
html.dark .comment-form .btn-primary:hover { background: #c4006b; }
/* Linha de autor e datas da matéria */
.article-meta .meta-author { display: block; margin-bottom: .2rem; }
.article-meta .meta-dates { display: flex; flex-wrap: wrap; gap: .15rem 1rem; font-size: .9em; }
.article-meta .meta-updated { color: #E6007E; font-weight: 600; }
.article-body > p:first-of-type::first-letter {
  float: left;
  font-size: 3.6rem;
  line-height: 0.9;
  font-weight: 800;
  padding: 0.35rem 0.5rem 0 0;
  color: #E6007E;
}
@media (max-width: 640px) {
  .article-body { font-size: 1.06rem; }
}
/* Créditos da matéria de origem */
.article-body > p.news-source {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .88rem;
  line-height: 1.5;
  color: #4B5563;
  border-top: 1px solid #E5E7EB;
  padding-top: .9rem;
  margin: 1.75rem 0 0;
}
.news-source a { color: #0369a1; text-decoration: underline; text-underline-offset: 2px; }
html.dark .article-body > p.news-source { color: #9CA3AF !important; border-top-color: #374151; }
html.dark .news-source a { color: #7dd3fc; }

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}
.article-share-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #374151;
  transition: all 0.2s ease;
}
.share-whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-x:hover { background: #000; border-color: #000; color: #fff; }
.share-copy:hover { background: #111827; border-color: #111827; color: #fff; }

/* Menu na linha do logo */
.site-nav .dropdown:not(.hidden) { display: flex; align-items: stretch; }
.site-nav .dropdown-menu { top: 100%; }

/* ===== Faixa Últimas ===== */
.latest-ticker { background: #fff; border-bottom: 1px solid var(--line, #e5e7eb); }
.ticker-label { flex-shrink: 0; background: #E6007E; color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .6rem; border-radius: 3px; }
.ticker-viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: .875rem; font-weight: 600; color: #111827; }
.ticker-item:hover { color: #0e9fcf; }
.ticker-time { color: #0e9fcf; font-weight: 700; margin-right: .5rem; font-size: .75rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ===== Blocos da home ===== */
.home-block { margin-top: 3rem; }
.home-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.home-block-more { font-size: .85rem; font-weight: 700; color: #0e9fcf; white-space: nowrap; }
.home-block-more:hover { text-decoration: underline; }
.home-block-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .home-block-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card-compact .card-title { font-size: 1rem; }
#home-sections > .partner-card { margin-top: 3rem; }

/* Chapéu personalizado (ex.: "FOGO NO CENTRO") */
.category-tag.is-kicker { color: var(--brand-pink); }
.category-tag-solid.is-kicker { color: #fff; background: var(--brand-pink); }

/* Seções da home: destaque + lista de manchetes */
.hb-layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .hb-layout { grid-template-columns: 1.15fr 1fr; gap: 1.75rem; } .hb-layout.hb-single { grid-template-columns: 1fr; } }
.hb-lead > .news-card { height: 100%; }
.hb-list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.hb-item { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.hb-item:first-child { padding-top: 0; }
.hb-item:last-child { border-bottom: 0; }
.hb-thumb { flex: 0 0 104px; width: 104px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #e5e7eb; }
.hb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hb-text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.hb-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-time { font-size: .75rem; color: #6b7280; }
html.dark .hb-item { border-color: #1f2937; }
html.dark .hb-title, html.dark .hb-title a { color: #f3f4f6; }
html.dark .hb-time { color: #9ca3af; }

/* ===== Modo escuro ===== */
html.dark body { background: #0B0F19 !important; color: #e5e7eb; }
html.dark .site-header, html.dark #mobile-menu, html.dark .latest-ticker { background: #111827 !important; border-color: #1f2937 !important; }
html.dark .news-card, html.dark .skeleton-card, html.dark .partner-card, html.dark .inline-ad,
html.dark #no-news-message, html.dark .insta-card, html.dark aside section, html.dark .sidebar-card { background: #111827 !important; border-color: #1f2937 !important; }
html.dark .card-title, html.dark .card-title a, html.dark .section-title, html.dark .ticker-item, html.dark .most-read-title,
html.dark .menu-link, html.dark .dropdown-link, html.dark .mobile-menu-link, html.dark .brand-logo-top, html.dark .brand-logo-main,
html.dark .article-title, html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark .text-ink, html.dark .text-gray-900, html.dark .text-gray-700 { color: #f3f4f6 !important; }
html.dark .card-excerpt, html.dark .card-meta, html.dark .text-gray-500, html.dark .text-gray-600, html.dark .article-meta { color: #9ca3af !important; }
html.dark .card-meta, html.dark .section-title { border-color: #1f2937 !important; }
html.dark .dropdown-menu { background: #111827 !important; border-color: #1f2937 !important; }
html.dark .article-body, html.dark .article-body p { color: #d1d5db !important; }
html.dark input, html.dark #search-bar { background: #0B0F19 !important; color: #e5e7eb !important; border-color: #374151 !important; }
html.dark .bg-white { background: #111827 !important; }
html.dark .border-gray-200, html.dark .border-gray-100 { border-color: #1f2937 !important; }

/* ===== Páginas institucionais ===== */
.prose-page h2 { font-family: Inter, sans-serif; font-size: 1.25rem; font-weight: 800; margin: 2rem 0 .75rem; color: #111827; }
.prose-page ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.25rem; }
.prose-page li { margin-bottom: .4rem; }
.prose-page a { color: #0e9fcf; text-decoration: underline; }
.prose-page p:first-of-type::first-letter { all: unset; }
html.dark .btn-ghost { color: #f3f4f6 !important; border-color: #374151 !important; background: transparent !important; }
html.dark .btn-ghost:hover { border-color: #22C3EE !important; }
html.dark .skeleton { background: linear-gradient(90deg,#1f2937 25%,#273244 50%,#1f2937 75%) !important; background-size: 200% 100% !important; }

/* ===== Card patrocinado (parceiro no formato de notícia) ===== */
.partner-sponsored { border-top: 3px solid #f59e0b; }
.partner-sponsored .sponsored-media { position: relative; background: #f3f4f6; }
.partner-sponsored .sponsored-img { width: 100%; height: 100%; object-fit: cover; }
.news-card.partner-sponsored:hover .card-media img.sponsored-img { transform: scale(1.03); }
.partner-sponsored .sponsored-tag { color: #b45309; }
.partner-sponsored .sponsored-cta { flex-shrink: 0; font-weight: 700; color: #b45309; }
/* Banner largo: ocupa a linha inteira e aparece por completo */
.partner-sponsored.is-wide { grid-column: 1 / -1; }
.partner-sponsored.is-wide .sponsored-media { aspect-ratio: auto; }
.partner-sponsored.is-wide .sponsored-img { height: auto; max-height: 180px; object-fit: contain; display: block; margin: 0 auto; }
.sponsored-note { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; }
html.dark .partner-sponsored .sponsored-media { background: #0B0F19; }
html.dark .partner-sponsored .sponsored-tag, html.dark .partner-sponsored .sponsored-cta { color: #fbbf24; }

/* ===== WhatsApp ===== */
.wa-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; }
.wa-card-title { font-weight: 800; font-size: 1rem; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.wa-card-text { font-size: .875rem; color: #4b5563; margin: .4rem 0 1rem; line-height: 1.5; }
.btn-wa, .btn-wa-outline { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .65rem 1rem; border-radius: 6px; font-weight: 700; font-size: .875rem; transition: background-color .2s ease, border-color .2s ease; }
.btn-wa { background: #25D366; color: #0b3d1e; }
.btn-wa:hover { background: #1ebe5a; }
.btn-wa-outline { margin-top: .6rem; border: 1.5px solid #25D366; color: #128C7E; background: transparent; }
.btn-wa-outline:hover { background: rgba(37, 211, 102, .08); }
.btn-wa svg, .btn-wa-outline svg, .wa-card-title svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.btn-inline { display: inline-flex; width: auto; }
html.dark .wa-card { background: #111827 !important; border-color: #1f2937 !important; }
html.dark .wa-card-text { color: #9ca3af; }
html.dark .btn-wa-outline { color: #4ade80; }

/* ===== Rodapé: contato ===== */
.footer-contact { display: flex; flex-direction: column; gap: .7rem; }
.footer-contact a, .footer-contact p { display: flex; align-items: flex-start; gap: .5rem; }
.footer-contact svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin-top: .15rem; }
.footer-address { color: #9ca3af; font-size: .9rem; line-height: 1.45; }

/* ===== Colunistas ===== */
.columnists-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .columnists-grid { grid-template-columns: repeat(2, 1fr); } }
.columnist-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; scroll-margin-top: 6rem; }
.columnist-card:target { border-color: #22C3EE; box-shadow: 0 0 0 3px rgba(34, 195, 238, .2); }
.columnist-head { display: flex; align-items: center; gap: 1rem; }
.columnist-photo { width: 88px; height: 88px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; background: #e5e7eb; border: 3px solid #fff; box-shadow: 0 0 0 2px #22C3EE; }
.columnist-name { font-family: "Source Serif 4", Georgia, serif; font-size: 1.35rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.columnist-role { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: .2rem; }
.columnist-bio p { color: #374151; line-height: 1.65; font-size: .95rem; }
.columnist-bio p + p { margin-top: .6rem; }
.columnist-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; font-weight: 700; }
.columnist-links a { color: #0e9fcf; }
.columnist-links a:hover { text-decoration: underline; }
.columnist-posts { border-top: 1px solid var(--line); padding-top: .9rem; }
.columnist-posts h4 { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin-bottom: .5rem; }
.columnist-posts a { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); padding: .3rem 0; }
.columnist-posts a:hover { color: #0e9fcf; }
.team-strip { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 1.25rem; }
.team-strip a { display: flex; align-items: center; gap: .6rem; text-decoration: none !important; color: var(--ink) !important; font-weight: 700; font-size: .9rem; }
.team-strip img { width: 44px; height: 44px; border-radius: 9999px; object-fit: cover; background: #e5e7eb; }
.team-strip small { display: block; font-weight: 500; color: #6b7280; font-size: .75rem; }
html.dark .columnist-card { background: #111827 !important; border-color: #1f2937 !important; }
html.dark .columnist-name, html.dark .team-strip a, html.dark .columnist-posts a { color: #f3f4f6 !important; }
html.dark .columnist-bio p { color: #d1d5db; }
html.dark .columnist-posts { border-color: #1f2937; }
html.dark .columnist-photo { border-color: #111827; }
html.dark .prose-page h2 { color: #f3f4f6; }
.prose-page a.btn-wa { color: #0b3d1e; text-decoration: none; }
.prose-page a.btn-wa-outline { color: #128C7E; text-decoration: none; }
html.dark .prose-page a.btn-wa-outline { color: #4ade80; }

/* ===== Página Anuncie ===== */
.ad-formats { display: grid; grid-template-columns: 1fr; gap: .9rem; margin: 1rem 0 1.5rem; }
@media (min-width: 640px) { .ad-formats { grid-template-columns: 1fr 1fr; } }
.ad-format { border: 1px solid var(--line); border-top: 3px solid #f59e0b; border-radius: 6px; padding: 1rem 1.1rem; background: #fffdf7; }
.ad-format h3 { font-weight: 800; font-size: 1rem; color: var(--ink); margin: 0 0 .35rem; }
.ad-format p { font-size: .9rem; color: #4b5563; line-height: 1.5; margin: 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq-item p { margin: .5rem 0 0; color: #4b5563; line-height: 1.6; }
html.dark .ad-format { background: #111827 !important; border-color: #1f2937 !important; border-top-color: #f59e0b !important; }
html.dark .ad-format p, html.dark .faq-item p { color: #9ca3af; }
html.dark .faq-item { border-color: #1f2937; }

/* --- Anúncios grandes (barra lateral), anúncio da casa, banner fixo e formulário --- */
.partner-ad { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; transition: box-shadow .2s ease; }
.partner-ad + .partner-ad { margin-top: 1rem; }
.partner-ad:hover { box-shadow: 0 12px 26px -14px rgba(17, 24, 39, .35); }
.partner-ad img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; background: #f3f4f6; }
.partner-ad-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; border-top: 3px solid #f59e0b; }
.partner-ad-name { font-weight: 700; font-size: .9rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-ad-cta { flex-shrink: 0; font-weight: 700; font-size: .8rem; color: #b45309; }
html.dark .partner-ad { background: #111827; border-color: #1f2937; }
html.dark .partner-ad-name { color: #f9fafb; }
html.dark .partner-ad-cta { color: #fbbf24; }

.inline-ad { min-height: 7rem; padding: 1.25rem 1rem; gap: .35rem; }

/* --- Faixa "Publicidade" entre seções e espaço reservado do Google AdSense --- */
.ad-band { margin: 2.25rem 0; padding: .6rem 0 .9rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-band-house { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem;
  min-height: 90px; padding: 1rem 1.25rem; border: 1px dashed #d1d5db; border-radius: 6px; background: #fafafa; }
.ad-band-title { font-weight: 800; font-size: 1.05rem; line-height: 1.25; color: var(--ink); }
.ad-band-sub { font-size: .9rem; color: #6b7280; margin-top: .15rem; }
.ad-band-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 640px) { .ad-band-house { min-height: 100px; } .ad-band-actions { width: 100%; } }
html.dark .ad-band { border-color: #1f2937; }
html.dark .ad-band-house { background: #111827; border-color: #374151; }
html.dark .ad-band-title { color: #f9fafb; }
html.dark .ad-band-sub { color: #9ca3af; }
/* Espaço guardado antes do anúncio do Google chegar, para a página não "pular" */
.ad-slot-google { display: block; }
.ad-slot-google ins.adsbygoogle { min-height: 250px; }
.ad-slot-google[data-ad-key="band"] ins.adsbygoogle { min-height: 90px; }
@media (max-width: 640px) { .ad-slot-google[data-ad-key="band"] ins.adsbygoogle { min-height: 100px; } }
.ad-slot-google[data-ad-key="feed"] ins.adsbygoogle { min-height: 120px; width: 100%; }
.inline-ad.ad-slot-google { border-style: solid; background: transparent; padding: .5rem 0; }
.house-ad-title { font-weight: 800; font-size: 1.1rem; line-height: 1.25; color: var(--ink); }
.house-ad-sub { font-size: .95rem; color: #6b7280; }
.house-ad-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .6rem; }
.house-ad-btn { display: inline-flex; align-items: center; font-weight: 700; font-size: .9rem; padding: .6rem 1.1rem; border-radius: 6px; cursor: pointer; text-decoration: none; transition: filter .2s ease; }
.house-ad-btn.is-wa { background: #22c55e; color: #fff; border: 1px solid #22c55e; }
.house-ad-btn.is-ghost { background: transparent; color: #16a34a; border: 1px solid #22c55e; }
.house-ad-btn:hover { filter: brightness(1.08); }
html.dark .house-ad-title { color: #f9fafb; }
html.dark .house-ad-sub { color: #9ca3af; }
html.dark .house-ad-btn.is-ghost { color: #4ade80; }
.ad-promo-cta { border: 0; cursor: pointer; }
.ad-promo-cta-wa { background: #22c55e; color: #fff; }

.sticky-ad { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 60; width: min(100%, 970px); background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); border-radius: 6px 6px 0 0; overflow: hidden; }
.sticky-ad a { display: block; }
.sticky-ad img { display: block; width: 100%; height: auto; max-height: 120px; object-fit: cover; }
.sticky-ad-tag { position: absolute; left: 6px; top: 6px; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 6px; border-radius: 3px; pointer-events: none; }
.sticky-ad-close { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
body.has-sticky-ad { padding-bottom: 120px; }
@media (max-width: 640px) { body.has-sticky-ad { padding-bottom: 70px; } .sticky-ad img { max-height: 70px; } }

.lead-dialog { width: min(94vw, 460px); max-height: 92vh; padding: 0; border: 0; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.lead-dialog::backdrop { background: rgba(11, 15, 25, .65); }
.lead-form { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem 1.5rem 1.3rem; background: #fff; color: var(--ink); }
.lead-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #16a34a; }
.lead-title { font-family: "Source Serif 4", Georgia, serif; font-size: 1.35rem; line-height: 1.2; font-weight: 700; padding-right: 1.5rem; }
.lead-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; }
.lead-form input, .lead-form textarea { font: inherit; font-weight: 400; font-size: .95rem; padding: .6rem .7rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: inherit; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid #22c55e; outline-offset: 0; border-color: #22c55e; }
.lead-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-submit { background: #22c55e; color: #fff; font-weight: 800; padding: .75rem; border: 0; border-radius: 6px; cursor: pointer; }
.lead-submit:disabled { opacity: .7; cursor: wait; }
.lead-close { position: absolute; right: .7rem; top: .6rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: #9ca3af; cursor: pointer; }
.lead-msg { font-size: .85rem; min-height: 1em; }
.lead-msg:empty { display: none; }
.lead-msg.is-error { color: #dc2626; }
.lead-msg.is-ok { color: #16a34a; font-weight: 700; }
.lead-note { font-size: .78rem; color: #6b7280; }
.lead-note a { color: #16a34a; font-weight: 700; }
html.dark .lead-form { background: #111827; color: #f9fafb; }
html.dark .lead-form input, html.dark .lead-form textarea { background: #0B0F19; border-color: #374151; }
html.dark .lead-note { color: #9ca3af; }

/* Anúncios no meio da página: mesmo tamanho dos cards de notícia, imagem preenchendo o card */
.sponsored-block .home-block-grid { grid-auto-flow: dense; }
.partner-sponsored:not(.is-wide) .sponsored-media { aspect-ratio: 16 / 10; overflow: hidden; }

/* Troca dos anúncios patrocinados */
@keyframes sponsoredIn { from { opacity: 0; } to { opacity: 1; } }
.sponsored-swap { animation: sponsoredIn .6s ease; }
@media (prefers-reduced-motion: reduce) { .sponsored-swap { animation: none; } }

/* Popup do parceiro */
.partner-popup-box { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem 1.4rem 1.3rem; background: #fff; color: var(--ink); }
.partner-popup-img { width: 100%; max-height: 240px; object-fit: contain; border-radius: 6px; background: #f3f4f6; margin-top: .6rem; }
.partner-popup-kicker { color: #b45309; }
.partner-popup-text { font-size: .98rem; line-height: 1.5; white-space: pre-line; }
.partner-popup-cta { text-align: center; text-decoration: none; background: #f59e0b; }
html.dark .partner-popup-box { background: #111827; color: #f9fafb; }
html.dark .partner-popup-img { background: #0B0F19; }


/* Menu do usuário logado no cabeçalho (modo escuro) */
html.dark #admin-menu-button, html.dark #admin-menu-button-mobile { background: #1f2937 !important; color: #f3f4f6 !important; border: 1px solid #374151; }
html.dark #admin-menu-button:hover, html.dark #admin-menu-button-mobile:hover { background: #273449 !important; border-color: #22C3EE; }
html.dark #admin-dropdown { background: #111827 !important; border-color: #374151 !important; }
html.dark #admin-dropdown a { color: #e5e7eb !important; }
html.dark #admin-dropdown a:hover, html.dark #admin-dropdown button:hover { background: #1f2937 !important; }
html.dark #admin-dropdown #logout-button { color: #f87171 !important; }

/* "!" da marca pulsando sobre o vídeo da notícia */
.video-mark {
  position: absolute; top: 6px; left: 4px; z-index: 2;
  height: 76px; width: auto; pointer-events: none; opacity: .85;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  animation: video-mark-pulse 1.4s ease-in-out infinite;
}
@keyframes video-mark-pulse { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .video-mark { animation: none; } }
