/* ==========================================================================
   TODO DIA NOTÍCIAS MS - SISTEMA DE DESIGN EDITORIAL (INSPIRAÇÃO REVISTA PIAUÍ)
   ========================================================================== */

:root {
  /* Paleta Papel Pólen Nobre */
  --bg-polen: #F5F1E8;
  --bg-polen-alt: #EDE8DC;
  --bg-polen-darker: #E5DFD0;
  --bg-white: #FFFFFF;
  
  /* Contrastes Tipográficos */
  --text-primary: #181716;
  --text-secondary: #4A4844;
  --text-muted: #78746C;
  --text-light: #FAF7F2;
  
  /* Acento Terracota / Telha Queimada (O clássico 'terra' da piauí) */
  --color-terra: #C4431D;
  --color-terra-hover: #9E3212;
  --color-terra-soft: rgba(196, 67, 29, 0.08);
  
  /* Bloco Noturno Especial (Segue o Fio / Investigações) */
  --bg-dark-editorial: #151413;
  --bg-dark-card: #201E1C;
  --border-dark: #302D2A;
  
  /* Tipografia */
  --font-headline: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Newsreader', 'Lora', Georgia, serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Bordas e Sombras Sutis */
  --border-subtle: 1px solid rgba(24, 23, 22, 0.12);
  --border-strong: 1px solid rgba(24, 23, 22, 0.35);
  --radius-sm: 2px;
  --radius-pill: 9999px;
  
  /* Max width */
  --container-max: 1240px;
}

/* Suporte a Tema Noturno / Papiro (UI/UX Pro Max) */
[data-theme="dark"], body.dark-mode {
  --bg-polen: #131312;
  --bg-polen-alt: #1A1918;
  --bg-polen-darker: #22211F;
  --bg-white: #1A1918;
  
  --text-primary: #EDE8DC;
  --text-secondary: #B8B3A7;
  --text-muted: #8A857A;
  --text-light: #131312;
  
  --color-terra: #E25835;
  --color-terra-hover: #F06D4B;
  --color-terra-soft: rgba(226, 88, 53, 0.16);
  
  --border-subtle: 1px solid rgba(237, 232, 220, 0.12);
  --border-strong: 1px solid rgba(237, 232, 220, 0.32);
}

/* Reset Básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-polen);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilitários */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.text-center { text-align: center; }

.gap-xs { gap: 0.35rem; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.25rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 3rem; }

.py-xs { padding-top: 0.35rem; padding-bottom: 0.35rem; }
.py-sm { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-md { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-lg { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-xl { padding-top: 4rem; padding-bottom: 4rem; }

.mb-xs { margin-bottom: 0.35rem; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.25rem; }
.mb-lg { margin-bottom: 2rem; }
.mb-xl { margin-bottom: 3rem; }

.mt-xs { margin-top: 0.35rem; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 2rem; }

.text-terra { color: var(--color-terra); }
.text-positive { color: #2E7D32; font-weight: 600; }
.bg-polen { background-color: var(--bg-polen); }
.bg-polen-alt { background-color: var(--bg-polen-alt); }
.bg-polen-darker { background-color: var(--bg-polen-darker); }
.bg-dark-editorial { background-color: var(--bg-dark-editorial); }

/* ==================== 1. TOP TICKER / BARRA DE SERVIÇOS ==================== */
.top-announcement {
  background-color: var(--bg-polen-darker);
  border-bottom: var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.badge-live {
  background-color: var(--color-terra);
  color: #FFF;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.ticker-text {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ==================== 2. HEADER & LOGOTIPO ==================== */
.main-header {
  background-color: var(--bg-polen);
  border-bottom: var(--border-subtle);
  position: relative;
  z-index: 50;
}

.header-top {
  border-bottom: var(--border-subtle);
}

.header-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Logotipo Clássico Redesenhado */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.logo-sup {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.logo-main {
  font-family: var(--font-headline);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 0.95;
  text-transform: uppercase;
}

.logo-tag {
  color: var(--color-terra);
  font-style: italic;
  font-weight: 900;
  padding-left: 2px;
}

.logo-sub {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Botões do Topo */
.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-pill-terra {
  background-color: var(--color-terra);
  color: #FFFFFF !important;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-pill-terra:hover {
  background-color: var(--color-terra-hover);
  transform: translateY(-1px);
}

/* Navegação Editorial */
.main-nav {
  padding: 0.55rem 0;
}

.nav-links {
  list-style: none;
  gap: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.2px;
}

.nav-links li a {
  padding: 0.3rem 0;
  position: relative;
}

.nav-links li a:hover {
  color: var(--color-terra);
}

.nav-links li.active a {
  color: var(--color-terra);
  border-bottom: 2px solid var(--color-terra);
}

.nav-sublink {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-sublink:hover {
  color: var(--color-terra);
}

/* ==================== 3. OVERLAY DE BUSCA ESTILO PIAUÍ ==================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-terra);
  color: #FFFFFF;
  z-index: 1000;
  padding-top: 2rem;
  animation: fadeIn 0.25s ease-out;
}

.search-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-brand {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-close-search {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-close-search:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.search-body {
  max-width: 780px;
  margin: 5rem auto 0;
}

.search-prompt {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  letter-spacing: 0.5px;
}

.search-input-wrap {
  display: flex;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 0.35rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
}

.btn-search-submit {
  background: var(--bg-dark-editorial);
  color: #FFFFFF;
  border: none;
  padding: 0 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
}

.search-tags {
  font-size: 0.9rem;
  opacity: 0.9;
}

.search-tags a {
  color: #FFFFFF;
  text-decoration: underline;
  margin-left: 0.4rem;
}

/* ==================== 4. SEÇÃO SUPER DESTAQUE (LEAD STORY) ==================== */
.section-lead {
  border-bottom: var(--border-subtle);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.lead-media {
  position: relative;
}

.lead-img-link {
  display: block;
  overflow: hidden;
}

.img-editorial {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease;
}

.lead-img-link:hover .img-editorial {
  transform: scale(1.015);
}

.img-caption {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.3;
}

/* Chapéu Editorial Estilo piauí */
.chapeu-editorial {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Manchete Principal com Tipografia Condensada e Caixa Alta */
.lead-title {
  font-family: var(--font-headline);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}

.lead-title a:hover {
  color: var(--color-terra);
}

/* Linha Fina Literária Estilo Electra (Newsreader) */
.linha-fina {
  font-family: var(--font-editorial);
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Byline e Metadados do Autor */
.meta-byline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-byline .author-name {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
}

.meta-byline .author-loc {
  font-style: italic;
}

.meta-byline .bullet {
  color: var(--text-muted);
}

.meta-byline .reading-time {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Botões de Ação do Artigo */
.btn-audio-listen {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--bg-polen-darker);
  border: var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s;
}

.btn-audio-listen:hover {
  background-color: var(--color-terra);
  color: #FFF;
  border-color: var(--color-terra);
}

.divider-editorial {
  border: none;
  border-top: var(--border-subtle);
  margin: 0;
}

/* ==================== 5. SEÇÃO DUO DE DESTAQUES ==================== */
.section-duo {
  border-bottom: var(--border-subtle);
}

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.article-card-duo {
  display: flex;
  flex-direction: column;
}

.card-media {
  display: block;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.img-duo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.35s ease;
}

.card-media:hover .img-duo {
  transform: scale(1.02);
}

.card-title {
  font-family: var(--font-headline);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.card-title a:hover {
  color: var(--color-terra);
}

.card-deck {
  font-family: var(--font-editorial);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ==================== 6. SEÇÃO "SEGUE O FIO" (BLOCO ESCURO PIAUÍ) ==================== */
.section-segue-fio {
  color: var(--text-light);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.tag-fio {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-terra);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fio-sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #A5A29B;
}

.fio-explore-link {
  font-size: 0.85rem;
  color: #D3CFC6;
  font-weight: 500;
  transition: color 0.2s;
}

.fio-explore-link:hover {
  color: var(--color-terra);
}

.fio-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background-color: var(--bg-dark-card);
  padding: 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
}

.img-fio {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.fio-kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-terra);
  margin-bottom: 0.6rem;
}

.fio-headline {
  font-family: var(--font-headline);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #FFF;
}

.fio-headline a:hover {
  color: var(--color-terra);
}

.fio-deck {
  font-family: var(--font-editorial);
  font-size: 1.12rem;
  line-height: 1.55;
  color: #C5C1B6;
  margin-bottom: 1.25rem;
}

.text-muted-fio {
  color: #928E84;
}

.fio-chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.fio-chapter-card {
  background-color: var(--bg-dark-card);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
}

.chapter-number {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-terra);
  margin-bottom: 0.6rem;
}

.chapter-title {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.18;
  color: #FFF;
  margin-bottom: 0.65rem;
}

.chapter-title a:hover {
  color: var(--color-terra);
}

.chapter-desc {
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  line-height: 1.45;
  color: #B5B0A4;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.chapter-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7A766E;
  text-transform: uppercase;
}

/* ==================== 7. SEÇÃO ESQUINAS DE MS ==================== */
.section-esquinas {
  border-bottom: var(--border-subtle);
}

.section-heading-editorial .section-overline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-terra);
}

.section-heading-editorial .section-main-title {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0.2rem 0 0.5rem;
}

.section-heading-editorial .section-subtext {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.line-ornament {
  width: 60px;
  height: 2px;
  background-color: var(--color-terra);
  margin: 1.25rem auto 0;
}

.esquinas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.esquina-card {
  background-color: var(--bg-polen);
  border: var(--border-subtle);
  padding: 1.8rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.esquina-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-terra);
  margin-bottom: 0.75rem;
}

.esquina-title {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.esquina-title a:hover {
  color: var(--color-terra);
}

.esquina-excerpt {
  font-family: var(--font-editorial);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.esquina-author {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==================== 8. SEÇÃO RADAR & MAIS LIDAS ==================== */
.section-radar {
  border-bottom: var(--border-subtle);
}

.radar-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
}

.col-title {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pulsing-circle {
  width: 8px;
  height: 8px;
  background-color: #E53935;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(229, 57, 53, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.timeline-stream {
  display: flex;
  flex-direction: column;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.8rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-terra);
}

.time-stamp {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-terra);
  margin-bottom: 0.2rem;
  display: inline-block;
}

.time-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.time-content h4 {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.time-content h4 a:hover {
  color: var(--color-terra);
}

.time-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.btn-more-news {
  background: transparent;
  border: var(--border-subtle);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-more-news:hover {
  background-color: var(--bg-polen-darker);
  border-color: var(--text-primary);
}

/* Ranking Mais Lidas */
.ranking-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ranking-list li {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: var(--border-subtle);
}

.rank-num {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(24, 23, 22, 0.25);
  line-height: 1;
}

.rank-info {
  flex: 1;
}

.rank-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.rank-info h4 {
  font-family: var(--font-editorial);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.rank-info h4 a:hover {
  color: var(--color-terra);
}

.rank-views {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==================== FILTRO DE CATEGORIAS REATIVO ==================== */
.filter-alert-box {
  background-color: var(--bg-polen-darker);
  border: 1px solid rgba(196, 67, 29, 0.25);
  border-left: 4px solid var(--color-terra);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.btn-clear-filter {
  background: transparent;
  border: 1px solid var(--color-terra);
  color: var(--color-terra);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear-filter:hover {
  background-color: var(--color-terra);
  color: #FFF;
}


/* ==================== 9. SEÇÃO DE OPINIÃO & COLUNISTAS ==================== */
.section-opiniao {
  border-bottom: var(--border-subtle);
}

.colunistas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.colunista-card {
  display: flex;
  flex-direction: column;
}

.colunista-avatar {
  margin-bottom: 1rem;
}

.colunista-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.colunista-meta {
  margin-bottom: 0.6rem;
}

.colunista-name {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}

.colunista-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.colunista-article-title {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.colunista-article-title a:hover {
  color: var(--color-terra);
}

.colunista-deck {
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==================== 11. FOOTER EDITORIAL ==================== */
.main-footer {
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-editorial);
  font-size: 0.98rem;
  line-height: 1.5;
  color: #B5B0A4;
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #7A766E;
}

.footer-heading {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.1rem;
  letter-spacing: 0.5px;
}

.footer-col-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #B5B0A4;
}

.footer-col-nav ul li a:hover {
  color: var(--color-terra);
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  color: #FFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
}

.social-btn:hover {
  background-color: var(--color-terra);
  border-color: var(--color-terra);
}

.footer-badge-seal {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8C877D;
  border: 1px solid #383531;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  font-size: 0.78rem;
  color: #7A766E;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 1024px) {
  .lead-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .lead-title {
    font-size: 2.5rem;
  }
  .duo-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .fio-hero-grid {
    grid-template-columns: 1fr;
  }
  .fio-chapters-grid {
    grid-template-columns: 1fr;
  }
  .radar-layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .d-none-mobile {
    display: none !important;
  }
  .logo-main {
    font-size: 2.4rem;
  }
  .nav-links {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.4rem;
  }
  .esquinas-grid, .colunistas-grid {
    grid-template-columns: 1fr;
  }
  .news-form {
    flex-direction: column;
    align-items: center;
  }
  .input-pill {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   UI/UX PRO MAX EXTENSIONS: COMPONENTES PROFISSIONAIS & ACESSIBILIDADE
   ========================================================================== */

/* Barra de Progresso de Leitura Superior */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: var(--color-terra);
  z-index: 99999;
  transition: width 0.1s ease-out;
  box-shadow: 0 1px 3px rgba(196, 67, 29, 0.3);
}

/* Acessibilidade: Focus Ring WCAG AA */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-terra);
  outline-offset: 3px;
}

/* Cursor pointer obrigatório em elementos interativos */
button,
.btn-pill-terra,
.btn-icon,
.btn-audio-listen,
.social-btn,
.nav-links a,
.btn-theme-toggle,
.lead-title a,
.card-title a {
  cursor: pointer;
}

/* Botão de Alternância de Tema (Modo Noturno / Papiro) */
.btn-theme-toggle {
  background: transparent;
  border: 1px solid rgba(24, 23, 22, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-mode .btn-theme-toggle {
  border-color: rgba(237, 232, 220, 0.25);
  color: var(--text-primary);
}

.btn-theme-toggle:hover {
  background-color: var(--color-terra-soft);
  color: var(--color-terra);
  border-color: var(--color-terra);
}

/* ==================== SEÇÃO IGUALDADES MS (INFOGRÁFICO EDITORIAL ESTILO PIAUÍ) ==================== */
.section-igualdades {
  background-color: var(--bg-white);
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
}

.igualdades-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.igualdades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.igualdade-card {
  padding: 1.5rem;
  background-color: var(--bg-polen);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.igualdade-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terra);
  margin-bottom: 0.5rem;
}

.igualdade-stat {
  font-family: var(--font-headline);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.igualdade-label {
  font-family: var(--font-editorial);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.igualdade-chart-bar-wrap {
  background: rgba(0,0,0,0.06);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.dark-mode .igualdade-chart-bar-wrap {
  background: rgba(255,255,255,0.1);
}

.igualdade-chart-bar {
  height: 100%;
  background: var(--color-terra);
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.igualdade-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==================== GAVETA DE LEITURA EDITORIAL (READER DRAWER) ==================== */
.reader-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 16, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.reader-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.reader-drawer {
  width: 100%;
  max-width: 820px;
  height: 100vh;
  background: var(--bg-polen);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.reader-drawer-overlay.active .reader-drawer {
  transform: translateX(0);
}

.reader-drawer-header {
  position: sticky;
  top: 0;
  background: var(--bg-polen);
  border-bottom: var(--border-subtle);
  padding: 1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-reader-font {
  background: transparent;
  border: 1px solid rgba(24, 23, 22, 0.2);
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dark-mode .btn-reader-font {
  border-color: rgba(237, 232, 220, 0.25);
  color: var(--text-primary);
}

.btn-reader-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.15s;
}

.btn-reader-close:hover {
  background-color: var(--color-terra-soft);
  color: var(--color-terra);
}

.reader-article-body {
  padding: 2.5rem 3rem 4rem;
  max-width: 68ch;
  margin: 0 auto;
}

.reader-chapeu {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terra);
  display: block;
  margin-bottom: 0.75rem;
}

.reader-headline {
  font-family: var(--font-headline);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.reader-deck {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-secondary);
  border-left: 3px solid var(--color-terra);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.reader-byline {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.reader-text {
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.reader-text p {
  margin-bottom: 1.6rem;
}

/* Capitular (Drop Cap) Nobre */
.reader-text p:first-of-type::first-letter {
  font-family: var(--font-headline);
  font-size: 4.8rem;
  float: left;
  line-height: 0.8;
  margin-right: 0.6rem;
  padding-top: 0.15rem;
  color: var(--color-terra);
  font-weight: 700;
}

.reader-pullquote {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-terra);
  text-align: center;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-top: 2px solid var(--color-terra);
  border-bottom: 2px solid var(--color-terra);
  line-height: 1.35;
}

/* ==================== DOCK PLAYER DE ÁUDIO FLUTUANTE (VOZES DE MS) ==================== */
.audio-dock-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-dark-editorial);
  color: #FFF;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9998;
  border: 1px solid rgba(255,255,255,0.15);
  animation: slideUpAudio 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpAudio {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.audio-dock-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.audio-dock-tag {
  background: var(--color-terra);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.audio-dock-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-dock-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-audio-dock-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-terra);
  border: none;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-audio-dock-play:hover {
  transform: scale(1.08);
}

.audio-dock-speed {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn-audio-dock-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  padding: 0.2rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.btn-audio-dock-close:hover {
  color: #FFF;
}

@media (max-width: 900px) {
  .igualdades-grid {
    grid-template-columns: 1fr;
  }
  .reader-article-body {
    padding: 2rem 1.5rem;
  }
  .reader-headline {
    font-size: 2.1rem;
  }
}

/* Respeito a Preferências de Movimento Reduzido (WCAG) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== MODAL INSTITUCIONAL EDITORIAL ==================== */
.institutional-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 16, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.institutional-modal-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.institutional-modal {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: var(--bg-polen);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-mode .institutional-modal {
  border-color: rgba(255,255,255,0.15);
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.institutional-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-polen);
}

.inst-modal-title {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.25rem;
  color: var(--text-primary);
}

.btn-inst-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.btn-inst-close:hover {
  background-color: var(--color-terra-soft);
  color: var(--color-terra);
}

.institutional-modal-body {
  padding: 2rem 2.25rem;
  overflow-y: auto;
  font-family: var(--font-editorial);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.institutional-modal-body h3 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--color-terra);
}

.institutional-modal-body h3:first-child {
  margin-top: 0;
}

.institutional-modal-body p {
  margin-bottom: 1.15rem;
}

.institutional-modal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.institutional-modal-body li {
  margin-bottom: 0.4rem;
}

