:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --accent: #0047A0;
  --accent-hover: #00357A;
  --border: #E2E8F0;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max-w: 1120px;
  --read-w: 720px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.main-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  gap: 0.75rem;
}
.main-nav.open { display: flex; }
.main-nav a { color: var(--text); font-weight: 500; }

.menu-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    border: 0;
    padding: 0;
    gap: 1.5rem;
  }
}

/* Main */
.site-main { padding: 2rem 0 4rem; }

/* Search & Filters */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--surface);
}

/* Grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.card-body { padding: 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.card-title { font-size: 1.1rem; line-height: 1.35; margin: 0 0 0.5rem; }
.card-title a { color: var(--text); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.pagination a, .pagination span {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Article */
.article-wrap { max-width: var(--read-w); margin: 0 auto; }
.article-header h1 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); line-height: 1.2; margin: 0 0 0.75rem; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.article-cover { margin-bottom: 2rem; }
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.toc ul { margin: 0; padding-left: 1.2rem; }
.article-content { font-size: 1.0625rem; }
.article-content h2 { margin-top: 2.2rem; font-size: 1.45rem; }
.article-content h3 { margin-top: 1.6rem; font-size: 1.2rem; }
.article-content p { margin: 0 0 1.25rem; }

.related-box { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Botões técnicos e módulos */
.btn-tech {
  padding: 0.6rem 1rem;
  background: #0047A0;
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-tech:hover {
  background-color: #003375;
}
.btn-tech-sec {
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

/* Lite YouTube Embed */
.lite-yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  margin: 1.5rem 0;
}
.lite-yt img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.lite-yt-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  background: rgba(0, 0, 0, 0.78);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.lite-yt-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

/* Espaços reservados AdSense (anti-CLS) e Afiliados */
.ad-slot {
  min-height: 250px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f4;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.affiliate-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #0047A0;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Barra de progresso de leitura e compartilhamento */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 0.1s linear;
}
.toc summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--accent);
}
.article-content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.share-bar {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* Refinamentos Identidade Nerd em Evolução */
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { color: var(--accent); }
.brand-sub { color: var(--text); font-weight: 600; }

.header-search { display: none; }
.header-search input {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  width: 190px;
}
@media (min-width: 960px) { .header-search { display: block; } }

.promo-banner-wrap { margin-top: 1.25rem; min-height: 90px; }
.promo-banner img { width: 100%; height: auto; border-radius: var(--radius); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-head h1 { font-size: 1.1rem; margin: 0; letter-spacing: 0.03em; color: var(--text); }
.section-head a { font-size: 0.85rem; font-weight: 700; color: var(--accent); }

.card-title-center { text-align: center; font-size: 1.05rem; margin: 0; }

/* Artigo 2 Colunas Desktop */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.sidebar-widget h3 { margin: 0 0 1rem; font-size: 1rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.4rem; }
.recent-item { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.85rem; }
.recent-item:last-child { margin-bottom: 0; }
.recent-item img { width: 72px; height: 48px; object-fit: cover; flex-shrink: 0; }
.recent-item a { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.3; }

/* Rodapé 3 Colunas Clássico */
.footer-3col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-3col { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-logo-img { height: 48px; width: auto; display: block; border-radius: 0; }
.footer-center { font-size: 0.9rem; color: var(--text-muted); }
.footer-center a { color: var(--accent); font-weight: 500; }
.footer-social { display: flex; gap: 0.65rem; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.social-btn:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Logo e alinhamento do cabeçalho */
.header-inner { height: auto; min-height: 68px; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.brand-logo { height: 52px; width: auto; display: block; border-radius: 0; }
.header-right {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 49;
}
.header-right.open { display: flex; }
.header-right .main-nav { display: flex; position: static; border: 0; padding: 0; }
.header-right .header-search { display: block; }
.header-right .header-search input { width: 100%; }

@media (min-width: 768px) {
  .header-right {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    border: 0;
    padding: 0;
    margin-left: auto;
  }
  .header-right .header-search input { width: 190px; }
}

/* Design System — Tipografia, Cards e Refinamentos */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --accent-hover: #003375;
  --soft-bg: #EFF6FF;
}

h1, h2, h3, .card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-search { position: relative; }
.header-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.header-search input { padding-left: 2.2rem; }

.promo-banner img {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  margin: 0 auto;
}

.card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: 0 12px 24px rgba(0, 71, 160, 0.08);
  border-color: rgba(0, 71, 160, 0.25);
}
.card-img { transition: opacity 0.2s ease, filter 0.2s ease; }
.card:hover .card-img { opacity: 0.9; filter: brightness(1.04); }

.article-content {
  max-width: 74ch;
  line-height: 1.75;
}
.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--soft-bg);
  color: var(--text);
  border-radius: 0 8px 8px 0;
}

/* Header divisória e pílula ativa */
.brand-group { display: flex; align-items: center; gap: 1rem; }
.brand-divider { width: 1px; height: 28px; background: var(--border); display: none; }
@media (min-width: 768px) { .brand-divider { display: block; } }
.main-nav a { padding: 0.35rem 0.85rem; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.main-nav a.nav-active { background: var(--accent); color: #fff; }
.main-nav a.nav-active:hover { text-decoration: none; background: var(--accent-hover); }

/* Hero Grid Assimétrico */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.75rem; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 65fr 35fr; } }

.hero-main {
  position: relative;
  min-height: 360px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-main-overlay {
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.15));
  color: #fff;
}
.hero-main-overlay h1 { color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin: 0.6rem 0 1rem; }

.badge-blue {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.btn-yellow {
  display: inline-block;
  background: #FACC15;
  color: #0F172A;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.btn-yellow:hover { background: #EAB308; text-decoration: none; }

.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.hero-side-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  flex: 1;
}
.hero-side-thumb img { width: 110px; height: 86px; object-fit: cover; border-radius: 8px; }
.hero-side-body { flex: 1; min-width: 0; }
.hero-side-body h2 { font-size: 0.95rem; margin: 0.35rem 0 0.25rem; line-height: 1.3; }
.hero-side-body h2 a { color: var(--text); }
.hero-side-body p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.btn-circle-blue {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* Faixa Grupo de Promoções */
.promo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.25rem;
}
.promo-strip-left { display: flex; align-items: center; gap: 0.85rem; }
.promo-strip-left p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft-bg);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.promo-strip-right { display: flex; align-items: center; gap: 0.75rem; }
.qr-box {
  width: 44px;
  height: 44px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.qr-img {
  width: 54px;
  height: 54px;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  object-fit: contain;
  display: block;
}
.btn-pill-blue {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-pill-blue:hover { background: var(--accent-hover); text-decoration: none; }

/* Últimos artigos */
.latest-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.title-bar-blue {
  margin: 0;
  padding-left: 0.75rem;
  border-left: 4px solid var(--accent);
  font-size: 1.25rem;
}
.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.latest-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 960px) { .latest-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.latest-list { display: flex; flex-direction: column; gap: 1rem; }
.latest-list-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem;
}
.latest-list-thumb img { width: 110px; height: 74px; object-fit: cover; border-radius: 8px; }
.latest-list-body h3 { font-size: 0.98rem; margin: 0.3rem 0 0; line-height: 1.3; }
.latest-list-body h3 a { color: var(--text); }

/* Rodapé Azul Profundo */
.site-footer-blue { background: var(--accent); color: #fff; padding-top: 2.5rem; margin-top: 3rem; }
.footer-blue-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-blue-top { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-blue-brand p { margin: 0.6rem 0 0; font-size: 0.88rem; color: rgba(255,255,255,0.85); max-width: 300px; }
.footer-blue-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-blue-links a { color: #fff; font-weight: 500; font-size: 0.9rem; }
.social-btn-white {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-btn-white:hover { background: #fff; color: var(--accent); text-decoration: none; }
.footer-blue-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 1rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
}

/* Ajustes pontuais Hero 16:9, Últimos Artigos (4 itens) e Rodapé Fino */
.hero-main {
  display: flex;
  flex-direction: column;
  background: #003375;
  min-height: auto;
}
.hero-main-img-link { display: block; width: 100%; }
.hero-main-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.hero-main-overlay {
  background: #003375;
  padding: 1.35rem 1.5rem;
}

.hero-side-thumb { flex-shrink: 0; }
.hero-side-thumb img { width: 140px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-side-body h2 { font-size: 1rem; }
.hero-side-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-list-thumb { flex-shrink: 0; }
.latest-list-thumb img { width: 135px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.site-footer-blue { padding-top: 20px; }
.footer-blue-top { padding-bottom: 20px; }
.footer-logo-white { filter: brightness(0) invert(1); height: 42px; width: auto; border-radius: 0; }
.footer-blue-bottom { padding: 0.65rem 0; font-size: 0.78rem; }

.latest-left { display: flex; flex-direction: column; gap: 1.25rem; }
.latest-featured .card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Hero lateral: imagem 100% no topo + selo, título (2 linhas) e seta abaixo */
.hero-side-card {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.hero-side-thumb { width: 100%; display: block; }
.hero-side-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.hero-side-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
}
.hero-side-body h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.3rem 0 0;
}

/* Hover idêntico ao estado ativo no menu do topo e nas pílulas */
.main-nav a:hover,
.pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* Acervo Nerd: exceção de pôster vertical 2:3 e página de detalhes */
.acervo-card-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  transition: opacity 0.2s ease;
}
.card:hover .acervo-card-img,
.acervo-card-img:hover {
  opacity: 0.85;
}
.acervo-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .acervo-detail { grid-template-columns: 300px 1fr; align-items: start; }
}
.acervo-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.acervo-meta-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.acervo-meta-table th, .acervo-meta-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}
.acervo-meta-table th { width: 150px; color: var(--text-muted); font-weight: 600; }

/* Elenco Principal com foto/avatar + restantes discretos */
.cast-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cast-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.cast-card:hover { border-color: var(--accent); background: var(--soft-bg); text-decoration: none; }
.cast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}
.cast-initials {
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.cast-others { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.cast-others a { color: var(--text-muted); text-decoration: underline; }
.cast-others a:hover { color: var(--accent); }

/* Cards 100% clicáveis (stretched-link) */
.card, .hero-main, .hero-side-card, .latest-list-item, .promo-strip {
  position: relative;
  cursor: pointer;
}
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Efeitos suaves de hover na logo e em todas as imagens de posts */
.brand-logo, .footer-logo-white { transition: opacity 0.2s ease; }
.brand:hover .brand-logo, .footer-blue-brand a:hover .footer-logo-white { opacity: 0.78; }

.hero-main-img, .hero-side-thumb img, .latest-list-thumb img {
  transition: opacity 0.2s ease;
}
.hero-main:hover .hero-main-img,
.hero-side-card:hover .hero-side-thumb img,
.latest-list-item:hover .latest-list-thumb img {
  opacity: 0.88;
}
.latest-list-thumb { overflow: hidden; border-radius: 8px; }

/* Modo Projeto (Largura Total 960px, Grid 2x2 e CTA Azul) */
.project-wrap { max-width: 960px; margin: 0 auto; }
.project-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 768px) {
  .project-grid-2x2 { grid-template-columns: repeat(2, 1fr); }
}
.project-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.project-feature-card h3 { margin: 0 0 0.4rem; color: var(--accent); font-size: 1.05rem; }
.project-feature-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.project-cta-box {
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}
.project-cta-box h2 { color: #fff; margin: 0 0 0.5rem; }
.project-cta-box p { color: rgba(255,255,255,0.9); margin: 0 0 1.25rem; }

/* Alinhar tabela do Modo Projeto em 100% da largura */
.project-wrap .article-content table {
  display: table;
  width: 100%;
}

/* Faixa horizontal exclusiva do banner Nari Books */
.nari-banner-wrap { margin-top: 2.25rem; margin-bottom: 0; }
.nari-banner-link { display: block; border-radius: 12px; overflow: hidden; }
.nari-banner-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nari-banner-link:hover .nari-banner-img {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 71, 160, 0.1);
}

/* Badges do Ecossistema e Bloco 2 Colunas Telegram */
.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.tg-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .tg-2col { grid-template-columns: repeat(2, 1fr); }
}
.tg-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1.25rem;
}
.tg-card h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.05rem; }
.tg-card p { color: rgba(255, 255, 255, 0.9); margin: 0 0 1rem; font-size: 0.92rem; }
.btn-white-blue {
  display: inline-block;
  background: #EFF6FF;
  color: #0047A0;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.btn-white-blue:hover { background: #fff; text-decoration: none; }

/* Logos reais nos cards do Ecossistema */
.eco-logo {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.75rem;
  border-radius: 0;
}

.eco-brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 44px;
  margin-bottom: 0.75rem;
}
.eco-logo-inline { height: 36px; width: auto; object-fit: contain; border-radius: 0; }
.eco-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* Refino editorial dos cards do Ecossistema */
.eco-card-head {
  height: 72px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1rem;
}
.eco-card-head img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  padding: 4px;
  border-radius: 0;
}
.eco-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Efeito hover elegante nos botões dos cards */
.btn-tech-sec {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-tech-sec:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* Zoom sutil nas thumbnails dos cards do front-end */
.card .card-img-link, .latest-featured > a, .latest-list-thumb, .hero-main-img-link, .hero-side-thumb { overflow: hidden; }
.card .card-img, .hero-main-img, .hero-side-thumb img, .latest-list-thumb img { transition: transform 0.2s ease, opacity 0.2s ease; }
.card:hover .card-img, .hero-main:hover .hero-main-img, .hero-side-card:hover .hero-side-thumb img, .latest-list-item:hover .latest-list-thumb img { transform: scale(1.04); }
.acervo-card-img, .card:hover .acervo-card-img { transform: none; }
