/*
Theme Name: AgenciAR Insights
Description: Tema que reproduz o layout do AgenciAR Insights (Next.js) no WordPress.
Author: AgenciAR
Version: 1.0.0
Text Domain: agenciar-insights
*/
/* =================================================================
   AgenciAR Insights — Portal Editorial High-End
   Inspiração: g1 (Globo), CNN Brasil, Folha, The Verge, NYT
   ================================================================= */

:root {
  /* === Brand Palette === */
  --brand-blue: #1A4A7A;
  --brand-blue-deep: #0F2B5E;
  --brand-blue-darker: #0A1628;
  --brand-blue-light: #2A6FAF;
  --brand-blue-soft: #E8F0FA;

  /* === Brand Gradients (nav, ticker, footer, hero CTAs) === */
  --brand-gradient: linear-gradient(135deg, #0A1628 0%, #0F2B5E 50%, #1A4A7A 100%);
  --brand-gradient-90: linear-gradient(90deg, #0F2B5E 0%, #1A4A7A 100%);
  --brand-gradient-180: linear-gradient(180deg, #0A1628 0%, #1A4A7A 100%);

  /* === Editorial Colors === */
  /* "breaking-red" foi mantido como nome pra evitar refactor massivo,
     mas agora aponta pro azul profundo da marca (identidade visual). */
  --breaking-red: #1A4A7A;
  --breaking-red-dark: #0F2B5E;
  --accent-gold: #FACC15;
  --accent-green: #16A34A;
  --accent-purple: #7C3AED;

  /* === Neutrals === */
  --ink-900: #0A0A0B;
  --ink-800: #18181B;
  --ink-700: #27272A;
  --ink-600: #3F3F46;
  --ink-500: #52525B;
  --ink-400: #71717A;
  --ink-300: #A1A1AA;
  --ink-200: #D4D4D8;
  --ink-100: #E4E4E7;
  --ink-50: #F4F4F5;
  --paper: #FAFAFA;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --border-strong: #D4D4D8;

  /* === Typography === */
  --font-serif: 'Source Serif 4', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* === Spacing === */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  /* === Z-Index === */
  --z-topbar: 60;
  --z-header: 50;
  --z-overlay: 100;
  --z-modal: 200;

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
}

/* =================================================================
   RESET & BASE
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-900);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--brand-blue);
  color: var(--white);
}

/* =================================================================
   TOPBAR (Data + Ao vivo + Contato)
   ================================================================= */
.topbar {
  background: var(--ink-900);
  color: var(--ink-300);
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink-700);
  position: relative;
  z-index: var(--z-topbar);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-left { display: flex; align-items: center; gap: 18px; }

.topbar-date {
  font-variant-numeric: tabular-nums;
  color: var(--ink-300);
}

.topbar-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--breaking-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gradient);
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-links a {
  color: var(--ink-300);
  font-weight: 500;
  font-size: 12px;
  transition: color 0.15s;
}

.topbar-links a:hover { color: var(--white); }

.topbar-cta {
  background: var(--brand-blue);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 10.5px;
  transition: background 0.15s;
}

.topbar-cta:hover { background: var(--brand-blue-deep); color: var(--white); }

@media (max-width: 768px) {
  .topbar-date, .topbar-links span { display: none; }
  .topbar-inner { height: 32px; padding: 0 16px; }
}

/* =================================================================
   MASTHEAD (Header principal)
   ================================================================= */
.masthead {
  background: var(--brand-gradient);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.masthead-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 76px;
  gap: 32px;
}

@media (max-width: 1024px) {
  .masthead-inner { grid-template-columns: 1fr auto; height: 64px; gap: 16px; padding: 0 16px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-tag {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--brand-blue);
  padding-left: 12px;
  line-height: 1.1;
}

.brand-tag-top {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.brand-tag-bottom {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .brand-tag { display: none; }
  .brand-logo { height: 36px; }
}

/* Main navigation (categorias) */
.main-nav { display: flex; justify-content: center; }

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav-list a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.main-nav-list a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.main-nav-list a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
}

/* Masthead actions */
.masthead-actions { display: flex; align-items: center; gap: 8px; }

.search-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: all 0.15s;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.search-btn svg { width: 18px; height: 18px; }

.subscribe-btn {
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.15s;
}

.subscribe-btn:hover { background: rgba(0, 0, 0, 0.4); }

@media (max-width: 768px) {
  .subscribe-btn { display: none; }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.mobile-menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .mobile-menu-btn { display: inline-flex; }
}

/* =================================================================
   BREAKING NEWS TICKER
   ================================================================= */
.ticker {
  background: linear-gradient(90deg, var(--breaking-red) 0%, var(--breaking-red-dark) 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.ticker-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 38px;
}

.ticker-label {
  background: var(--white);
  color: var(--breaking-red-dark);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  flex-shrink: 0;
  font-family: var(--font-body);
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tickerScroll 50s linear infinite;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}

.ticker-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.ticker-time {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
  opacity: 0.85;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .ticker-inner { padding: 0 16px; height: 34px; }
  .ticker-item { font-size: 12px; }
}

/* =================================================================
   CATEGORY BAR (chips horizontais)
   ================================================================= */
.cat-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }

.cat-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: var(--font-body);
}

.cat-chip:hover {
  color: var(--brand-blue-deep);
  border-bottom-color: var(--brand-blue);
}

.cat-chip.active {
  color: var(--breaking-red);
  border-bottom-color: var(--breaking-red);
}

.cat-chip--all {
  color: var(--ink-900);
  font-weight: 800;
}

@media (max-width: 768px) {
  .cat-bar-inner { padding: 0 16px; }
  .cat-chip { padding: 10px 12px; font-size: 11px; }
}

/* =================================================================
   LAYOUT CONTAINERS
   ================================================================= */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px;
}

@media (max-width: 768px) {
  .container { padding: 20px 16px; }
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* =================================================================
   SECTION HEADERS
   ================================================================= */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink-900);
  position: relative;
}

.section-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--brand-gradient);
}

.section-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-lg {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-900);
  text-transform: none;
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-blue-deep);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.section-link:hover {
  gap: 10px;
  color: var(--breaking-red);
}

.section-link::after {
  content: '→';
  font-size: 14px;
}

/* =================================================================
   HERO ZONE (g1 style: manchete grande + 2 médias)
   ================================================================= */
.hero-zone {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .hero-zone {
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
  }
}

.hero-main {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-900);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-main:hover { transform: translateY(-2px); }

.hero-main-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ink-700);
}

.hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-main:hover .hero-main-img img { transform: scale(1.03); }

.hero-main-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.hero-main-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: var(--white);
  z-index: 2;
}

.hero-cat {
  display: inline-block;
  background: var(--brand-gradient);
  color: var(--white);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  border-radius: 3px;
  font-family: var(--font-body);
}

.hero-cat--ai {
  background: var(--accent-purple);
}

.hero-cat--case {
  background: var(--accent-green);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  max-width: 90%;
}

.hero-main:hover .hero-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.hero-excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 70ch;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

/* Hero side: 2 manchetes médias empilhadas */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-side-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  cursor: pointer;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.hero-side-card:last-child { border-bottom: none; padding-bottom: 0; }

.hero-side-img {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-100);
}

.hero-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.hero-side-card:hover .hero-side-img img { transform: scale(1.05); }

.hero-side-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-side-cat {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--breaking-red);
  font-family: var(--font-body);
}

.hero-side-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-card:hover .hero-side-title { color: var(--brand-blue-deep); }

.hero-side-meta {
  font-size: 11.5px;
  color: var(--ink-400);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* =================================================================
   TIME BADGE (relative time)
   ================================================================= */
.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

.time-badge--fresh { color: var(--breaking-red); font-weight: 700; }
.time-badge--fresh::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-gradient);
  animation: livePulse 1.6s ease-in-out infinite;
}

/* =================================================================
   MAIN GRID (2-col + sidebar)
   ================================================================= */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .main-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* =================================================================
   POST CARD (g1/CNN style vertical)
   ================================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 24px;
}

.card-grid--dense { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 18px; }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-200);
}

.card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ink-100);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img { transform: scale(1.05); }

.card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-gradient);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  padding: 4px 9px;
  border-radius: 3px;
  font-family: var(--font-body);
  z-index: 2;
}

.card-cat--ai { background: var(--accent-purple); }
.card-cat--seo { background: var(--brand-blue-deep); }
.card-cat--growth { background: var(--accent-green); }
.card-cat--cases { background: var(--ink-900); }
.card-cat--marketing { background: var(--brand-gradient); }
.card-cat--estrategia { background: var(--accent-gold); color: var(--ink-900); }
.card-cat--performance { background: var(--brand-blue); }

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.card:hover .card-title { color: var(--brand-blue-deep); }

.card-excerpt {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-400);
  font-weight: 600;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-700);
}

.card-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  font-family: var(--font-body);
  flex-shrink: 0;
}

/* Card horizontal (para "Mais lidas") */
.card-h {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.card-h:last-child { border-bottom: none; }

.card-h:hover { background: var(--ink-50); }
.card-h:hover .card-h-title { color: var(--brand-blue-deep); }

.card-h-img {
  aspect-ratio: 16/11;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-100);
}

.card-h-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-h-content { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.card-h-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--breaking-red);
  font-family: var(--font-body);
}

.card-h-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-h-meta {
  font-size: 11px;
  color: var(--ink-400);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* Card vertical número (#1, #2, #3 — estilo "Mais lidas") */
.card-rank {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.card-rank:last-child { border-bottom: none; }
.card-rank:hover .card-rank-title { color: var(--brand-blue-deep); }

.card-rank-num {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink-200);
  letter-spacing: -0.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.card-rank-content { display: flex; flex-direction: column; gap: 4px; }

.card-rank-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--breaking-red);
  font-family: var(--font-body);
}

.card-rank-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-rank-meta {
  font-size: 11px;
  color: var(--ink-400);
  font-weight: 500;
}

/* =================================================================
   SIDEBAR
   ================================================================= */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
}

.widget-title {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-900);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title-accent::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--brand-gradient);
  margin-right: 10px;
  border-radius: 2px;
  vertical-align: middle;
}

/* Explorar tópicos widget */
.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.topic-chip:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue-deep);
}

.topic-chip--active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}

.topic-chip-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  background: var(--surface, rgba(0,0,0,.05));
  border-radius: 999px;
  padding: 1px 7px;
}

.topic-chip--active .topic-chip-count {
  color: var(--white);
  background: rgba(255,255,255,.18);
}

/* CTA de serviço AgenciAR (sidebar) */
.agenciar-cta {
  background: var(--brand-gradient);
  border: none;
  color: var(--white);
}

.agenciar-cta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.agenciar-cta h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 8px;
}

.agenciar-cta p {
  font-size: 13.5px;
  color: rgba(255,255,255,.9);
  line-height: 1.55;
  margin-bottom: 16px;
}

.agenciar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--brand-blue-deep);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.agenciar-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

/* Newsletter widget */
.newsletter-widget {
  background: var(--ink-900);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: left;
}

.newsletter-widget-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--brand-blue-light);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.newsletter-widget h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-widget p {
  font-size: 13.5px;
  color: var(--ink-300);
  line-height: 1.55;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-700);
  background: var(--ink-800);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-form input:focus { border-color: var(--brand-blue); }
.newsletter-form input::placeholder { color: var(--ink-500); }

.newsletter-form button {
  background: var(--brand-blue);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: background 0.15s;
  cursor: pointer;
  font-family: var(--font-body);
}

.newsletter-form button:hover { background: var(--brand-blue-deep); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-block;
  padding: 5px 11px;
  background: var(--ink-50);
  color: var(--ink-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}

.tag:hover {
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--ink-900);
}

/* =================================================================
   CATEGORY SECTION BLOCKS
   ================================================================= */
.cat-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.cat-section + .cat-section { margin-top: 0; }

.cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.cat-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-900);
}

.cat-section-title-accent {
  width: 5px;
  height: 28px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

/* Two-up: 1 grande + 3 pequenas */
.two-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .two-up { grid-template-columns: 1.4fr 1fr; gap: 32px; }
}

.two-up-main {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.two-up-main:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.two-up-main .card-img { aspect-ratio: 16/9; }

.two-up-main .card-body { padding: 24px 28px 28px; gap: 12px; }
.two-up-main .card-title { font-size: 24px; line-height: 1.2; -webkit-line-clamp: 2; }
.two-up-main .card-excerpt { font-size: 14.5px; -webkit-line-clamp: 3; }

.two-up-list {
  display: flex;
  flex-direction: column;
}

/* =================================================================
   POST ARTICLE (Editorial reading)
   ================================================================= */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-blue);
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .post-layout { grid-template-columns: 64px minmax(0, 1fr) 320px; gap: 40px; }
}

.post-share-rail {
  display: none;
  position: sticky;
  top: 110px;
  height: fit-content;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .post-share-rail { display: flex; }
}

.share-rail-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-400);
  margin-bottom: 6px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.share-rail-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink-600);
  transition: all 0.15s;
}

.share-rail-btn:hover {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

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

.post-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px 48px;
}

@media (max-width: 768px) {
  .post-article { padding: 28px 22px; }
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-500);
  margin-bottom: 18px;
  font-weight: 500;
}

.post-breadcrumb a {
  color: var(--ink-500);
  transition: color 0.15s;
}

.post-breadcrumb a:hover { color: var(--brand-blue-deep); }
.post-breadcrumb-sep { color: var(--ink-300); }

.post-cat-badge {
  display: inline-block;
  background: var(--brand-gradient);
  color: var(--white);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 3px;
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.post-standfirst {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-600);
  margin-bottom: 24px;
  font-style: italic;
  font-weight: 400;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.post-byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.post-byline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.post-byline-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}

.post-byline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-500);
  font-weight: 500;
}

.post-byline-meta-sep { color: var(--ink-300); }

.post-byline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.post-byline-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-600);
  transition: all 0.15s;
}

.post-byline-btn:hover {
  background: var(--brand-blue);
  color: var(--white);
}

.post-byline-btn svg { width: 16px; height: 16px; }

.post-cover {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-100);
  margin-bottom: 32px;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-cover-caption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-500);
  font-style: italic;
  text-align: center;
}

/* Content typography */
.post-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-800);
  max-width: 100%;
}

.post-content > * + * { margin-top: 1.4em; }

/* parágrafos: espaçamento próprio (o seletor > * + * sozinho era zerado por
   uma regra p{margin:0} de mesma especificidade — ver REGRAS-PUBLICACAO.md R4) */
.post-content p { margin: 0 0 1.4em; }
.post-content > *:last-child { margin-bottom: 0; }

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-900);
  margin-top: 2em;
  margin-bottom: 0.6em;
  letter-spacing: -0.015em;
}

.post-content h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.post-content strong { font-weight: 700; color: var(--ink-900); }

.post-content a {
  color: var(--brand-blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.post-content a:hover { color: var(--breaking-red); }

.post-content blockquote {
  border-left: 4px solid var(--breaking-red);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-700);
  font-weight: 400;
}

.post-content ul, .post-content ol {
  padding-left: 24px;
  margin: 1.2em 0;
}

.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content li::marker { color: var(--brand-blue-deep); font-weight: 700; }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-content th {
  background: var(--ink-900);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-body);
}

.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.post-content tr:last-child td { border-bottom: none; }
.post-content tr:nth-child(even) td { background: var(--ink-50); }

.post-content code {
  font-family: var(--font-mono);
  background: var(--ink-50);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--brand-blue-deep);
  border: 1px solid var(--border);
}

.post-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5em 0;
}

/* Inline tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  align-items: center;
}

.post-tags-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-500);
  margin-right: 4px;
  font-family: var(--font-body);
}

/* Inline newsletter CTA */
.inline-cta {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inline-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(23, 162, 232, 0.15), transparent 60%);
}

.inline-cta-content { position: relative; z-index: 1; }

.inline-cta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-blue-light);
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.inline-cta h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.inline-cta p {
  font-size: 14px;
  color: var(--ink-300);
  margin-bottom: 18px;
  line-height: 1.55;
}

.inline-cta-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.inline-cta-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-700);
  background: var(--ink-800);
  color: var(--white);
  font-size: 14px;
  outline: none;
}

.inline-cta-form input:focus { border-color: var(--brand-blue); }
.inline-cta-form input::placeholder { color: var(--ink-500); }

.inline-cta-form button {
  background: var(--brand-blue);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: background 0.15s;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
}

.inline-cta-form button:hover { background: var(--brand-blue-deep); }

/* Related posts */
.related-section { margin-top: 48px; }

/* =================================================================
   FOOTER
   ================================================================= */
footer {
  background: var(--brand-gradient);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 80px;
}

.footer-cta {
  background: var(--ink-800);
  padding: 48px 24px;
  border-bottom: 1px solid var(--ink-700);
}

.footer-cta-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-cta-inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.footer-cta h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.footer-cta p {
  font-size: 15px;
  color: var(--ink-300);
  line-height: 1.6;
}

.footer-cta-form {
  display: flex;
  gap: 8px;
}

.footer-cta-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-700);
  background: var(--ink-900);
  color: var(--white);
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

.footer-cta-form input:focus { border-color: var(--brand-blue); }
.footer-cta-form input::placeholder { color: var(--ink-500); }

.footer-cta-form button {
  background: var(--brand-blue);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.15s;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
}

.footer-cta-form button:hover { background: var(--brand-blue-deep); }

.footer-main {
  padding: 60px 24px 36px;
}

.footer-main-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 900px) {
  .footer-main-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-main-inner { grid-template-columns: 1fr; }
}

.footer-brand { max-width: 360px; }

.footer-brand img { height: 44px; margin-bottom: 18px; }

.footer-brand p {
  font-size: 14px;
  color: var(--ink-400);
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink-800);
  color: var(--ink-400);
  transition: all 0.15s;
}

.footer-social a:hover {
  background: var(--brand-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--brand-blue-light);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--ink-400);
  transition: color 0.15s;
  font-weight: 500;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--ink-700);
  padding: 22px 24px;
  background: var(--ink-900);
}

.footer-bottom-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-500);
}

.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { color: var(--ink-500); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--white); }

/* =================================================================
   CATEGORY PAGE
   ================================================================= */
.cat-hero {
  background: var(--ink-900);
  color: var(--white);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(23, 162, 232, 0.25), transparent 50%);
}

.cat-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.cat-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  font-weight: 500;
}

.cat-hero-breadcrumb a { color: rgba(255, 255, 255, 0.6); }
.cat-hero-breadcrumb a:hover { color: var(--white); }

.cat-hero-label {
  display: inline-block;
  background: var(--brand-gradient);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 5px 11px;
  border-radius: 3px;
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.cat-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cat-hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  line-height: 1.55;
}

.cat-hero-count {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.cat-hero-count strong {
  color: var(--white);
  font-weight: 800;
}

.cat-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.cat-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 32px;
}

.cat-empty h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 8px;
}

.cat-empty p { color: var(--ink-500); margin-bottom: 20px; }

.cat-empty-btn {
  display: inline-block;
  background: var(--ink-900);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: background 0.15s;
}

.cat-empty-btn:hover { background: var(--brand-blue-deep); color: var(--white); }

/* Categorias index grid */
.cat-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.cat-index-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-900);
  font-family: var(--font-body);
  transition: all 0.15s;
}

.cat-index-card:hover {
  border-color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-index-card-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-blue-deep);
  background: var(--brand-blue-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

/* =================================================================
   UTILITIES
   ================================================================= */
.btn-primary {
  background: var(--ink-900);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s;
  font-family: var(--font-body);
}

.btn-primary:hover { background: var(--brand-blue-deep); }

.fade-up { animation: fadeUp 0.5s ease forwards; }

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

/* Responsive helpers */
@media (max-width: 640px) {
  .hero-side-card { grid-template-columns: 90px 1fr; gap: 12px; }
  .hero-side-title { font-size: 15px; }
  .hero-title { font-size: 26px; }
  .hero-main-content { padding: 22px; }
  .hero-excerpt { display: none; }
  .two-up-main .card-title { font-size: 20px; }
  .post-byline-actions { display: none; }
}

/* =================================================================
   ÚLTIMAS PUBLICAÇÕES — lista cronológica compacta (home)
   Formato "linha de tempo" estilo g1/Folha: data + título + editoria.
   Usa os mesmos tokens da identidade; não introduz nova paleta.
   ================================================================= */
.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.latest-item + .latest-item { border-top: 1px solid var(--border); }

.latest-item-link {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  transition: background 0.15s;
}

.latest-item-link:hover { background: var(--ink-50); }

.latest-item-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.latest-item-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-900);
}

.latest-item-link:hover .latest-item-title { color: var(--brand-blue-deep); }

.latest-item-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--brand-blue-deep);
  background: var(--brand-blue-soft);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .latest-item-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .latest-item-cat { justify-self: start; }
}


/* =================================================================
   HERO CAROUSEL SLIDER (Featured Carousel)
   ================================================================= */
.hero-carousel-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .hero-carousel-container {
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
  }
}

.hero-carousel-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-900);
  min-height: 480px;
  box-shadow: var(--shadow-lg);
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.hero-carousel-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-carousel-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink-900);
}

.hero-carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-carousel-slide--active .hero-carousel-img img {
  transform: scale(1.05);
}

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.2) 0%,
    rgba(10, 22, 40, 0.5) 40%,
    rgba(10, 22, 40, 0.95) 100%
  );
}

.hero-carousel-badge-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
}

.hero-carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: var(--white);
  z-index: 3;
}

.hero-carousel-tag-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-carousel-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-carousel-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 65ch;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-carousel-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(4px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-carousel-nav:hover {
  background: var(--brand-blue-deep);
  transform: translateY(-50%) scale(1.1);
  border-color: var(--white);
}

.hero-carousel-nav--prev { left: 16px; }
.hero-carousel-nav--next { right: 16px; }

.hero-carousel-indicators {
  position: absolute;
  bottom: 16px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.hero-carousel-dot--active {
  width: 28px;
  border-radius: 5px;
  background: var(--accent-gold);
}

/* CAROUSEL SIDEBAR TAB LIST */
.hero-carousel-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.hero-carousel-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--ink-500);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink-900);
  margin-bottom: 12px;
}

.hero-carousel-counter {
  color: var(--brand-blue-deep);
}

.hero-carousel-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 400px;
}

.hero-carousel-thumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  text-align: left;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.hero-carousel-thumb:hover {
  background: var(--ink-50);
}

.hero-carousel-thumb--active {
  background: var(--brand-blue-soft);
  border-color: var(--brand-blue-light);
}

.hero-carousel-thumb-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-400);
}

.hero-carousel-thumb--active .hero-carousel-thumb-num {
  color: var(--brand-blue-deep);
}

.hero-carousel-thumb-img {
  width: 60px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink-200);
}

.hero-carousel-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel-thumb-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.hero-carousel-thumb-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-blue);
}

.hero-carousel-thumb-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .hero-carousel-main { min-height: 380px; }
  .hero-carousel-sidebar { display: none; }
}


/* =================================================================
   CARD GRID 4 COLUNAS (Últimas Publicações Layout)
   ================================================================= */
.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

@media (max-width: 1100px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .card-grid--4 {
    grid-template-columns: 1fr;
  }
}

.analytics-consent {
  position: fixed;
  z-index: var(--z-modal);
  left: 50%;
  bottom: 20px;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  color: var(--white);
  background: var(--brand-gradient);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.analytics-consent__copy {
  display: grid;
  gap: 4px;
}

.analytics-consent__copy strong {
  font-size: 15px;
}

.analytics-consent__copy p {
  max-width: 500px;
  color: var(--ink-100);
  font-size: 13px;
  line-height: 1.45;
}

.analytics-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.analytics-consent__button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.analytics-consent__button:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

.analytics-consent__button--secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.analytics-consent__button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.analytics-consent__button--primary {
  color: var(--brand-blue-darker);
  background: var(--white);
}

.analytics-consent__button--primary:hover {
  background: var(--brand-blue-soft);
}

@media (max-width: 640px) {
  .analytics-consent {
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .analytics-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


/* =================================================================
   HOME PORTAL — hierarquia editorial de portal de notícias
   (hero manchete + destaques + grades + sidebar)
   ================================================================= */

/* ---------- HERO ZONE ---------- */
.hero-zone {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 28px;
  margin: 32px 0 48px;
  align-items: start;
}

.hero-main {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-900);
  text-decoration: none;
  min-height: 420px;
}

.hero-main-img { display: block; position: absolute; inset: 0; }
.hero-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-main::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0) 30%, rgba(10,22,40,.55) 62%, rgba(10,22,40,.94) 100%);
}
.hero-noimg {
  display: block; width: 100%; height: 100%;
  background: var(--brand-gradient);
}

.hero-main-content {
  position: relative;
  z-index: 2;
  display: block;
  padding: 32px 34px 30px;
  margin-top: 210px;
}

.hero-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: #fff;
  background: var(--breaking-red);
  padding: 5px 11px; border-radius: 3px;
  margin-bottom: 14px;
}

.hero-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.1vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.6px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  margin-bottom: 12px;
}

.hero-excerpt {
  display: block;
  font-size: 15.5px; line-height: 1.55;
  color: rgba(255,255,255,.86);
  max-width: 62ch;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
}
.hero-meta-divider { opacity: .5; }

/* ---------- HERO SIDE ---------- */
.hero-side { display: flex; flex-direction: column; gap: 14px; }

.section-head--tight { margin-bottom: 4px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }

.hero-side-card {
  display: flex; gap: 12px;
  text-decoration: none;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.hero-side-card:last-of-type { border-bottom: 0; }

.hero-side-img {
  flex: 0 0 104px; height: 74px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-100);
}
.hero-side-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-side-content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hero-side-cat {
  font-size: 10px; font-weight: 800; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--brand-blue-light);
}
.hero-side-title {
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 700; line-height: 1.3;
  color: var(--ink-900);
}
.hero-side-card:hover .hero-side-title { color: var(--brand-blue); }
.hero-side-meta { font-size: 11.5px; color: var(--ink-400); font-weight: 600; }

.cat-bar-inner--wrap { flex-wrap: wrap; gap: 8px; }

/* ---------- BLOCOS DA HOME ---------- */
.home-block { margin-bottom: 52px; }
.home-block--last { margin-top: 16px; }

.home-archive-link { margin-top: 22px; text-align: right; }

/* ---------- DOIS-UP (editoria) ---------- */
.main-col { min-width: 0; }

.two-up {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.two-up-main {
  display: block; text-decoration: none;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow .18s ease, transform .18s ease;
}
.two-up-main:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.two-up-main-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-100); }
.two-up-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.two-up-main-body { display: block; padding: 16px 18px 18px; }
.two-up-main-title {
  display: block;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800; line-height: 1.24;
  color: var(--ink-900); margin-bottom: 8px;
}
.two-up-main-excerpt { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-500); margin-bottom: 12px; }

.two-up-list { display: flex; flex-direction: column; }

.side-item {
  display: flex; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.side-item:last-child { border-bottom: 0; }

.side-item-thumb {
  flex: 0 0 88px; height: 62px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--ink-100);
}
.side-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.side-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side-item-title {
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 700; line-height: 1.32;
  color: var(--ink-800);
}
.side-item:hover .side-item-title { color: var(--brand-blue); }
.side-item-date { font-size: 11px; color: var(--ink-400); font-weight: 600; }

/* ---------- RANK (Mais Lidas) ---------- */
.card-rank {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.card-rank:last-child { border-bottom: 0; }
.card-rank-num {
  flex: 0 0 24px;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 900; line-height: 1;
  color: var(--brand-blue-light); opacity: .5;
}
.card-rank-thumb {
  flex: 0 0 62px; height: 46px;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--ink-100);
}
.card-rank-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-rank-content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-rank-title { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--ink-800); }
.card-rank:hover .card-rank-title { color: var(--brand-blue); }
.card-rank-meta { font-size: 10.5px; color: var(--ink-400); font-weight: 600; }

/* ---------- NEWSLETTER (sidebar) ---------- */
.newsletter-widget {
  background: var(--brand-gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  border: 0;
}
.newsletter-widget-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--accent-gold);
  margin-bottom: 8px;
}
.newsletter-widget h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800; line-height: 1.25;
  color: #fff; margin-bottom: 8px;
}
.newsletter-widget p { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.82); margin-bottom: 14px; }

/* ---------- GRID RESPONSIVO ---------- */
@media (max-width: 1080px) {
  .hero-zone { grid-template-columns: 1fr; }
  .hero-main { min-height: 380px; }
  .hero-main-content { margin-top: 160px; }
  .two-up { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero-main { min-height: 320px; }
  .hero-main-content { padding: 20px; margin-top: 120px; }
  .hero-title { font-size: 24px; }
  .hero-side-img { flex-basis: 84px; height: 62px; }
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .card-grid--3 { grid-template-columns: 1fr !important; }
}

@media (max-width: 460px) {
  .card-grid--4 { grid-template-columns: 1fr !important; }
  .side-item-thumb { flex-basis: 72px; height: 54px; }
}


/* =================================================================
   CORREÇÃO: altura uniforme dos cards nas grades
   O card usa flex-column; sem stretch a linha do grid estica o card
   mais curto e a imagem "sobe". Trava proporção, título em 3 linhas
   e empurra a meta para o rodapé do card.
   ================================================================= */
.card-grid { align-items: stretch; }
.card-grid > .card { height: 100%; }
.card-img { aspect-ratio: 16 / 9; flex: 0 0 auto; }
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 3);
  font-family: var(--font-display);
}
.card-excerpt { -webkit-line-clamp: 3; }
.card-meta { margin-top: auto; }


/* =================================================================
   CORREÇÃO: altura uniforme dos cards nas grades
   O card é flex-column; sem stretch o card curto "sobe" a imagem e
   os cards da linha ficam com alturas diferentes. Trava proporção,
   título em 3 linhas e empurra a meta para o rodapé do card.
   ================================================================= */
.card-grid { align-items: stretch; }
.card-grid > .card { height: 100%; }
.card-img { aspect-ratio: 16 / 9; flex: 0 0 auto; }
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 3);
  font-family: var(--font-display);
}
.card-excerpt { -webkit-line-clamp: 3; }
.card-meta { margin-top: auto; }

/* h3 do card não deve herdar o estilo do "card horizontal" (.card-h) */
.card-body .card-title { margin: 0; }
.card-body .card-title a { color: inherit; text-decoration: none; }

/* =================================================================
   CABEÇALHO DE EDITORIA / ARQUIVO
   ================================================================= */
.cat-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-gradient);
  color: #fff;
  margin: 30px 0 26px;
  min-height: 200px;
}

.cat-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 38%;
  opacity: .38;
}

.cat-hero--img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,22,40,.92) 0%, rgba(10,22,40,.72) 55%, rgba(15,43,94,.42) 100%);
}

.cat-hero-inner {
  position: relative;
  z-index: 2;
  padding: 30px 32px;
  max-width: 76ch;
}

.cat-hero-breadcrumb {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 10px;
}
.cat-hero-breadcrumb a { color: var(--accent-gold); text-decoration: none; }
.cat-hero-breadcrumb a:hover { text-decoration: underline; }

.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.7px;
  color: #fff;
  margin-bottom: 10px;
}

.cat-hero-desc {
  font-size: 15.5px; line-height: 1.55;
  color: rgba(255,255,255,.86);
  margin-bottom: 14px;
}

.cat-hero-count {
  display: inline-block;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 5px 12px;
  border-radius: 100px;
}

/* faixa de editorias */
.cat-bar { margin-bottom: 30px; }
.cat-bar-inner {
  display: flex; gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.cat-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
}
.cat-chip:hover { border-color: var(--brand-blue-light); color: var(--brand-blue); }
.cat-chip--active,
.cat-chip--all.cat-chip--active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}
.cat-chip--active .topic-chip-count { color: rgba(255,255,255,.75); }

.topic-chip-count {
  font-size: 10.5px; font-weight: 800;
  color: var(--ink-400);
}

/* paginação */
.pagination {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  margin: 40px 0 10px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 12px;
  font-size: 13.5px; font-weight: 700;
  color: var(--ink-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--brand-blue-light); color: var(--brand-blue); }
.pagination .current {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}

@media (max-width: 720px) {
  .cat-hero-inner { padding: 22px 20px; }
  .cat-hero { min-height: 160px; }
}


/* Autoridade editorial (E-E-A-T) */
.editorial-author {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  margin: 36px 0 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface, #f8fafc);
}
.editorial-author .post-byline-avatar { width: 52px; height: 52px; }
.editorial-author h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
}
.editorial-author p { margin: 0; color: var(--ink-600); font-size: 14px; line-height: 1.65; }
.hero-title { margin: 0; color: inherit; }
@media (max-width: 560px) {
  .editorial-author { grid-template-columns: 42px 1fr; padding: 17px; }
  .editorial-author .post-byline-avatar { width: 42px; height: 42px; }
}

/* Navegação contextual inserida no corpo das matérias */
.contextual-reading {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  background: var(--surface, #f8fafc);
}
.contextual-reading strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 15px;
}
.contextual-reading ul { margin: 0; padding-left: 20px; }
.contextual-reading li { margin: 7px 0; line-height: 1.45; }
.contextual-reading a { color: var(--brand-blue); font-weight: 700; text-decoration: none; }
.contextual-reading a:hover { text-decoration: underline; }
