/* =====================================================================
   CARAGUÁ VERDADE — DESIGN SYSTEM (mobile-first)
   Direção: jornal digital contemporâneo de alto contraste.
   Fontes: Newsreader (display/manchete) + Inter (corpo/UI).
   Arquitetura: estilos-base = layout MOBILE; @media (min-width) constroem
   tablet/desktop. Breakpoints: 561px (telas grandes de celular),
   781px (tablet), 1021px (desktop).
   Ordem: TOKENS → BASE → HEADER → BREAKING → ANÚNCIOS → HOME → ARTIGO →
   SOCIAL → MODAL → RODAPÉ → UTILITÁRIOS → RESPONSIVO (min-width).
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700;6..72,800&family=Inter:wght@400;500;600;700;800&display=swap");

/* ----------------------------- TOKENS ----------------------------- */
:root {
  /* Marca */
  --brand: #c70f1d;
  --brand-700: #9c0b15;
  --brand-100: #fceaec;

  /* Tinta / neutros */
  --ink-900: #0e1116;
  --ink-700: #2a3038;
  --ink-500: #5b6571;
  --ink-300: #aeb6c0;
  --line: #e1e5ea;
  --wash: #f4f6f8;
  --paper: #ffffff;

  /* Apoio */
  --accent: #12324e;
  --link: #1e40af; /* azul de link/navegação — equilibra o vermelho de marca */
  --amber: #f2b01e;
  --green: #1f8a5b;

  /* Aliases legados (usados por admin.css e regras antigas) */
  --brand-dark: var(--brand-700);
  --ink: var(--ink-900);
  --muted: var(--ink-500);
  --blue: var(--accent);

  /* Tipografia */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --fs-display: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  --fs-h2: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem);
  --fs-kicker: 0.74rem;
  --lh-tight: 1.04;
  --lh-body: 1.65;

  /* Espaçamento */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Raio / sombra / medidas */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14, 17, 22, 0.06);
  --shadow-2: 0 10px 30px rgba(14, 17, 22, 0.08);
  --shadow-3: 0 24px 60px rgba(14, 17, 22, 0.18);
  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 130px; /* mobile; sobe para 150px no desktop */
}

/* ------------------------------ BASE ------------------------------ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.container {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.story-image-placeholder {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #dde3ea;
}

.story-image-placeholder figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ----------------------------- HEADER ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(12px);
}

.topbar,
.brand-row,
.section-nav {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  color: var(--ink-500);
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.topbar-meta,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-meta span:first-child {
  text-transform: capitalize;
}

/* mobile: esconde a 2ª meta e os links utilitários do topbar */
.topbar-meta span + span,
.topbar-actions a {
  display: none;
}

.topbar-actions a {
  color: var(--ink-500);
  font-weight: 700;
}

.topbar-actions a:hover {
  color: var(--brand);
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-900);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.icon-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

/* mobile: hambúrguer visível na 1ª coluna (escondido no desktop) */
.menu-toggle {
  grid-column: 1;
}

.brand-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--brand);
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: url("assets/logo-mark.png") center / contain no-repeat;
  border-radius: 9px;
  box-shadow: var(--shadow-1);
}

/* glyph SVG legado (substituído pela arte do farol via background-image) */
.brand-glyph {
  display: none;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.search {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(200px, 100%);
}

.search input {
  min-width: 0;
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--wash);
}

.section-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  overflow-x: auto;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 0 0 auto;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.section-nav a:hover,
.section-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.mobile-drawer {
  display: none;
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto 14px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: 1fr;
  gap: 10px;
  font-weight: 700;
}

.mobile-drawer.is-open {
  display: grid;
}

.mobile-drawer a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--wash);
}

/* ---------------------------- BREAKING ---------------------------- */
.breaking {
  background: var(--ink-900);
  color: #fff;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 46px;
  overflow: hidden;
}

.breaking strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Pausa a fita de últimas ao passar o mouse, para dar tempo de ler */
.breaking:hover .ticker-track {
  animation-play-state: paused;
}

/* ---------------------------- ANÚNCIOS ---------------------------- */
.ad-slot {
  position: relative;
}

.ad-slot.is-hidden {
  display: none;
}

.ad-banner {
  display: grid;
  place-items: center;
  min-height: 100px;
  margin: 26px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7f9fb, #eef2f6);
  overflow: hidden;
}

.ad-banner[data-ad-format="billboard"] {
  min-height: 120px;
}

.ad-box,
.feed-ad,
.ad-inline,
.ad-rail {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7f9fb, #eef2f6);
  overflow: hidden;
}

.ad-box {
  min-height: 250px;
  margin-top: 24px;
}

.feed-ad {
  min-height: 140px;
  margin: 22px 0;
}

.ad-inline {
  min-height: 250px;
  margin: 28px 0;
}

.ad-rail {
  min-height: 280px;
}

.ad-content {
  display: grid;
  width: 100%;
  min-height: inherit;
  place-items: center;
  gap: 4px;
  padding: 16px;
  color: inherit;
  text-align: center;
}

.ad-content img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.ad-content span {
  color: var(--ink-500);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ad-content strong {
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 1rem;
}

.ad-content small {
  max-width: 640px;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.adsbygoogle {
  display: block;
  width: 100%;
}

/* Barra de anúncio fixa no rodapé (mobile) */
.anchor-ad {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 6px 44px 6px 12px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(14, 17, 22, 0.12);
}

.anchor-ad.is-visible {
  display: flex;
}

.anchor-ad .ad-content {
  min-height: auto;
  padding: 0;
}

.anchor-ad__close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------ HOME ------------------------------ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  margin-top: 8px;
}

.lead-story {
  border-bottom: 5px solid var(--brand);
  padding-bottom: 20px;
}

.lead-story img {
  aspect-ratio: 16 / 9;
}

.story-copy {
  padding-top: 16px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-size: var(--fs-kicker);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
}

.lead-story h1 {
  margin: 10px 0 12px;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1;
}

.lead-story p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-500);
  font-size: 1.1rem;
}

.headline-stack {
  display: grid;
  gap: 20px;
}

.compact-feature {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.compact-feature img {
  aspect-ratio: 16 / 10;
}

.compact-feature h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
}

.link-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: block;
  padding-left: 14px;
  border-left: 3px solid var(--line);
  font-weight: 600;
  line-height: 1.3;
}

.link-list a:hover {
  border-left-color: var(--brand);
}

/* mobile: rail fica em coluna cheia, separado por fio superior */
.side-rail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.side-rail h2,
.topic-panel h2,
.site-footer h2 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-700);
}

.ranked-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.ranked-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: rank;
}

.ranked-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ranked-list li::before {
  content: counter(rank, decimal-leading-zero);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.ranked-list a {
  font-weight: 600;
  line-height: 1.25;
}

.mini-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: #fff;
}

.mini-card .kicker {
  color: var(--amber);
}

.mini-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  line-height: 1.25;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--ink-900);
}

.section-heading h2 {
  margin: 0;
  padding-bottom: 8px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.section-heading a {
  padding-bottom: 10px;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.columnists,
.content-grid,
.category-sections {
  margin-top: 52px;
}

.columnist-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.columnist {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.columnist:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.columnist img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  filter: grayscale(0.08) contrast(1.04);
}

.columnist span {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.columnist a {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.news-feed {
  min-width: 0;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-card:first-of-type {
  padding-top: 0;
}

.news-card img {
  aspect-ratio: 4 / 3;
}

.news-card h3 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.news-card p {
  margin: 0;
  color: var(--ink-500);
}

.topic-panel {
  position: static;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.topic-panel article {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.topic-panel article a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.newsletter-box {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--wash);
}

.newsletter-box h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.newsletter-box form {
  display: grid;
  gap: 10px;
}

.newsletter-box input,
.newsletter-box button {
  min-height: 42px;
  border-radius: var(--radius);
}

.newsletter-box input {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.newsletter-box button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.newsletter-box button:hover {
  background: var(--brand-700);
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.category-card {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.category-card img {
  aspect-ratio: 4 / 3;
}

.category-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.18;
}

/* ------------------------------ ARTIGO ---------------------------- */
/* páginas institucionais (texto corrido) */
.static-main {
  width: min(var(--container-narrow), calc(100% - 40px));
  margin: 48px auto 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.static-main h1 {
  margin: 0 0 16px;
  font-size: var(--fs-h1);
  line-height: 1.05;
}

.static-main p,
.static-main li {
  color: var(--ink-700);
  font-size: 1.05rem;
}

.static-main section {
  display: grid;
  gap: 16px;
  padding-bottom: 32px;
}

.legal-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

/* página de matéria */
.article-main {
  margin: 36px auto 0;
}

.article-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
  width: min(var(--container-narrow), calc(100% - 40px));
  margin: 0 auto;
}

.article-content {
  min-width: 0;
  max-width: var(--container-narrow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink-500);
  font-size: 0.84rem;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--link);
}

.article-content > .kicker {
  margin-bottom: 8px;
}

.article-content h1,
.article-title {
  margin: 6px 0 14px;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: var(--lh-tight);
}

.article-standfirst {
  margin: 0 0 22px;
  color: var(--ink-700);
  font-size: 1.2rem;
  line-height: 1.45;
}

.author-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 0.9rem;
}

.author-meta__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}

.author-meta__name {
  color: var(--ink-900);
  font-weight: 700;
}

.author-meta__sep {
  color: var(--ink-300);
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
}

.share-bar__label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink-700);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.share-btn svg {
  width: 17px;
  height: 17px;
}

.share-btn span {
  display: none;
}

.share-btn--wpp:hover {
  background: #25d366;
  border-color: #25d366;
}

.share-btn--fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.share-btn--x:hover {
  background: #0f1419;
  border-color: #0f1419;
}

.share-btn--copy:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.article-hero {
  margin: 26px 0;
}

.article-hero img {
  aspect-ratio: 16 / 9;
}

.article-body {
  display: grid;
  gap: 20px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink-900);
}

.article-body p {
  margin: 0;
}

.article-body a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.publish-warning {
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand-100);
  color: #612027;
  font-size: 0.95rem;
  font-weight: 600;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.author-box__avatar {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
}

.author-box__name {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
}

.author-box__bio {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.92rem;
}

.related {
  margin-top: 48px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.related-card {
  display: grid;
  gap: 10px;
}

.related-card img {
  aspect-ratio: 16 / 10;
}

.related-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}

.comments {
  margin-top: 48px;
  scroll-margin-top: var(--header-h);
}

.comments__placeholder {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink-500);
  text-align: center;
  font-size: 0.92rem;
}

.article-sidebar {
  position: static;
  display: grid;
  gap: 28px;
}

/* ------------------------------ SOCIAL ---------------------------- */
.fb-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.fb-embed__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #1877f2;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fb-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.fb-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #1877f2;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.9rem;
}

.fb-follow:hover {
  background: #0e5fcc;
  color: #fff !important;
}

/* --------------------------- VÍDEO / AO VIVO ---------------------- */
/* Sinal "ao vivo": dot pulsante reaproveitado pelo menu e pelo selo. */
@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.6);
  }
}

/* Item de menu "TV Caraguá" */
.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand) !important;
  font-weight: 800;
}

.nav-live:hover {
  color: var(--brand-700) !important;
}

.nav-live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.section-nav a.nav-live[aria-current="page"] {
  border-bottom-color: var(--brand);
}

/* Selo de "play" sobre cards de matéria em vídeo (home) */
.story-image-placeholder.has-video .media-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(199, 15, 29, 0.92);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 17, 22, 0.3);
  pointer-events: none;
}

.media-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

/* Player ao vivo (side-rail da home e hero da TV Caraguá) */
.live-player {
  display: grid;
}

.side-rail .live-player {
  margin-bottom: 26px;
}

.live-rail:empty {
  display: none;
}

.live-player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0d10;
  border-radius: var(--radius);
  overflow: hidden;
}

.live-player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(14, 17, 22, 0.35);
}

.live-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse 1.4s ease-in-out infinite;
}

.live-offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  color: #c7ced6;
}

.live-offline__icon {
  width: 46px;
  height: 46px;
  color: var(--amber);
}

.live-offline__icon svg,
.video-placeholder__icon svg {
  width: 100%;
  height: 100%;
}

.live-offline p {
  margin: 0;
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.live-player__meta {
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.live-player__src {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-player__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.live-player--compact .live-player__title {
  font-size: 0.98rem;
}

.live-player__link {
  margin-top: 2px;
  color: var(--link);
  font-size: 0.85rem;
  font-weight: 800;
}

.live-player__link:hover {
  color: var(--brand);
}

/* Matéria em vídeo: player no topo (substitui a foto) */
.article-video {
  position: relative;
  margin: 26px 0;
  aspect-ratio: 16 / 9;
  background: #0b0d10;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-video[data-platform="instagram"] {
  aspect-ratio: 9 / 16;
  max-width: 420px;
}

.article-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Galeria de vídeos (Reels/Shorts/gravados) */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  align-items: start;
}

.video-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0d10;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-card[data-platform="instagram"] .video-card__frame {
  aspect-ratio: 9 / 16;
}

.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.video-gallery__empty {
  margin: 0;
  padding: 16px 0;
  color: var(--ink-500);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: #aab2bc;
}

.video-placeholder__icon {
  width: 38px;
  height: 38px;
  color: var(--amber);
}

.video-placeholder span {
  max-width: 92%;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Página TV Caraguá */
.tv-hero {
  margin-top: 18px;
}

.tv-lead {
  margin: -4px 0 18px;
  color: var(--ink-500);
  font-size: 1.05rem;
}

.tv-lead__src {
  color: var(--ink-700);
  font-weight: 700;
}

.tv-hero__player {
  max-width: 920px;
}

.tv-hero__player .live-player__title {
  font-size: 1.3rem;
}

.tv-videos {
  margin-top: 44px;
}

.tv-aside {
  display: grid;
  gap: 24px;
  align-content: start;
}

/* ------------------------------ MODAL ----------------------------- */
body.cv-modal-open {
  overflow: hidden;
}

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 22, 0.72);
  animation: cv-fade 0.25s ease;
}

.cv-modal__card {
  position: relative;
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow: hidden auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  animation: cv-pop 0.25s ease;
}

.cv-modal__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cv-modal__body {
  padding: 24px 26px 28px;
  text-align: center;
}

.cv-modal__tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.cv-modal__title {
  margin: 8px 0 10px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.cv-modal__text {
  margin: 0 0 20px;
  color: var(--ink-500);
}

.cv-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.cv-modal__cta:hover {
  background: var(--brand-700);
  color: #fff;
}

.cv-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 17, 22, 0.55);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.cv-modal__close:hover {
  background: var(--ink-900);
}

@keyframes cv-fade {
  from {
    opacity: 0;
  }
}

@keyframes cv-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

/* ------------------------------ RODAPÉ ---------------------------- */
.site-footer {
  margin-top: 60px;
  padding: 44px 0;
  background: var(--ink-900);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.footer-brand {
  grid-column: auto;
  justify-self: start;
  color: #fff;
}

.footer-brand .brand-text {
  color: #fff;
  font-size: 1.7rem;
}

.site-footer p {
  max-width: 520px;
  color: #cfd6dd;
}

.site-footer h2 {
  color: #fff;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #e8edf2;
}

.site-footer a:hover {
  color: #fff;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(340px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------- UTILITÁRIOS -------------------------- */
.u-hidden {
  display: none !important;
}

/* ===================== RESPONSIVO (mobile-first) ===================== */

/* ---- ≥561px: telas grandes de celular ---- */
@media (min-width: 561px) {
  .brand-text {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  }

  .columnist-strip {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .news-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .news-card p {
    display: none;
  }

  .mobile-drawer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-content h1,
  .article-title {
    font-size: var(--fs-h1);
  }

  .share-btn {
    padding: 0 14px;
  }

  .share-btn span {
    display: inline;
  }
}

/* ---- ≥781px: tablet ---- */
@media (min-width: 781px) {
  .container,
  .topbar,
  .brand-row,
  .section-nav,
  .mobile-drawer {
    width: min(var(--container), calc(100% - 40px));
  }

  .topbar-meta span + span {
    display: inline;
  }

  .topbar-actions a {
    display: inline;
  }

  .brand-row {
    padding: 20px 0 16px;
  }

  .brand {
    gap: 14px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .section-nav {
    gap: 26px;
    padding: 11px 0 12px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(150px, 0.5fr));
  }

  .ranked-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0;
  }

  .news-card h3 {
    font-size: 1.6rem;
  }

  .news-card p {
    display: block;
  }

  .topic-panel {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .static-main {
    padding: 40px;
  }
}

/* ---- ≥1021px: desktop ---- */
@media (min-width: 1021px) {
  :root {
    --header-h: 150px;
  }

  .brand-row {
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
  }

  .menu-toggle {
    display: none;
  }

  .brand {
    justify-self: center;
  }

  .search {
    width: min(260px, 100%);
  }

  .section-nav {
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.86fr) minmax(250px, 0.6fr);
  }

  .side-rail {
    grid-column: auto;
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }

  .ranked-list {
    grid-template-columns: 1fr;
  }

  .ranked-list li {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
    width: min(1080px, calc(100% - 40px));
  }

  .article-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .ad-rail {
    min-height: 600px;
  }
}

/* Reduz movimento para quem prefere */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
