/* ==========================================================
 ClinicalScience Health — Scientific Premium Design System
 Inspired by: Nature, Cell, JAMA, PubMed, The Lancet
 Version: 4.0 — Complete Rewrite
 ========================================================== */

/* ──────────────────────────────────────────────────────────
 0. GOOGLE FONTS
 ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=JetBrains+Mono:wght@400;500&family=Roboto:wght@400;500;700;900&display=swap');

/* ──────────────────────────────────────────────────────────
 1. DESIGN TOKENS
 ────────────────────────────────────────────────────────── */
:root {
  /* Background Scale */
  --bg-base:  #f8fafc;
  --bg-surface:  #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-card:  #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass:  rgba(255, 255, 255, 0.85);

  /* Borders */
  --border-subtle: rgba(15, 23, 42, 0.04);
  --border-default: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --border-accent: rgba(37, 99, 235, 0.25);

  /* Legacy aliases (compatibility with build.js templates) */
  --border:   rgba(15, 23, 42, 0.08);
  --border-color: rgba(15, 23, 42, 0.08);
  --bg-secondary: #f1f5f9;
  --text-accent: #2563eb;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  /* Text Scale */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted:  #64748b;
  --text-disabled: #94a3b8;

  /* Brand — Scientific Blue (Nature-inspired) */
  --accent-100: #dbeafe;
  --accent-200: #bfdbfe;
  --accent-400: #3b82f6;
  --accent-500: #2563eb;
  --accent-600: #1d4ed8;
  --accent-700: #1e40af;
  --accent-glow: rgba(37, 99, 235, 0.08);

  /* Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info:  #06b6d4;
  --color-open:  #22c55e;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --max-width:  1280px;
  --sidebar-width: 320px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-accent: 0 0 0 3px rgba(37,99,235,0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  /* Ticker + Navbar heights */
  --ticker-h: 40px;
  --navbar-h: 56px;
  --offset-top: calc(var(--ticker-h) + var(--navbar-h));
}

/* ──────────────────────────────────────────────────────────
 2. RESET & BASE
 ────────────────────────────────────────────────────────── */
*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 font-size: 16px;
 scroll-behavior: smooth;
 background-color: var(--bg-base);
 color: var(--text-primary);
 font-family: var(--font-sans);
 line-height: 1.6;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
 text-rendering: optimizeLegibility;
}

body {
 min-height: 100vh;
 background-color: var(--bg-base);
 /* Subtle grid pattern like scientific journals */
 background-image:
 linear-gradient(rgba(59,130,246,0.015) 1px, transparent 1px),
 linear-gradient(90deg, rgba(59,130,246,0.015) 1px, transparent 1px);
 background-size: 80px 80px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-500); text-decoration: none; }
a:hover { color: var(--accent-700); }

ul, ol { list-style: none; }

::selection {
 background: rgba(59, 130, 246, 0.3);
 color: var(--text-primary);
}

/* ──────────────────────────────────────────────────────────
 3. LAYOUT UTILITIES
 ────────────────────────────────────────────────────────── */
.container {
 max-width: var(--max-width);
 margin-inline: auto;
 padding-inline: var(--space-xl);
}

@media (max-width: 768px) {
 .container { padding-inline: var(--space-md); }
}

/* ──────────────────────────────────────────────────────────
 4. BREAKING NEWS TICKER
 ────────────────────────────────────────────────────────── */
.breaking-news-bar {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 height: var(--ticker-h);
 background: #000000; /* Padrão Jornalístico: Fundo Preto */
 border-bottom: 1px solid #1a1a1a;
 display: flex;
 align-items: center;
 overflow: hidden;
}

.breaking-news-label {
 flex-shrink: 0;
 display: flex;
 align-items: center;
 gap: 7px;
 padding: 0 16px;
 height: 100%;
 background: #e50914; /* Padrão Jornalístico: Vermelho Clássico */
 font-size: 10px;
 font-weight: 800;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: #ffffff; /* Letras brancas */
 white-space: nowrap;
 clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
 padding-right: 22px;
}

.pulse-dot {
 display: inline-block;
 width: 6px;
 height: 6px;
 border-radius: 50%;
 background: #ffffff;
 animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
 0%, 100% { opacity: 1; transform: scale(1); }
 50%  { opacity: 0.4; transform: scale(0.7); }
}

.breaking-news-track {
 flex: 1;
 overflow: hidden;
 height: 100%;
 position: relative;
}

.breaking-news-track::before,
.breaking-news-track::after {
 content: '';
 position: absolute;
 top: 0;
 width: 60px;
 height: 100%;
 z-index: 2;
 pointer-events: none;
}
.breaking-news-track::before {
 left: 0;
 background: linear-gradient(to right, #000000, transparent); /* Fade para fundo preto */
}
.breaking-news-track::after {
 right: 0;
 background: linear-gradient(to left, #000000, transparent); /* Fade para fundo preto */
}

.breaking-news-scroll {
 display: flex;
 align-items: center;
 height: 100%;
 white-space: nowrap;
 width: max-content;
 /* O conteúdo é duplicado (Set1 + Set2) no HTML, animação vai de 0% a -50% para loop perfeito */
 animation: scrollTicker 260s linear infinite;
 gap: 0;
 will-change: transform;
}

.breaking-news-scroll:hover {
 animation-play-state: paused;
}

@keyframes scrollTicker {
 0% { transform: translateX(0); }
 100% { transform: translateX(-50%); }
}

/* Ticker items */
.ticker-item {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 color: #a3a8ae; /* Cinza claro suave para o título */
 font-family: 'Roboto', sans-serif;
 font-size: 12.6px;
 font-weight: 500;
 padding: 0 24px;
 border-right: 1px solid rgba(255, 255, 255, 0.15);
 white-space: nowrap;
 transition: color 0.2s;
 text-decoration: none;
}
.ticker-item:hover { color: #ffffff; text-decoration: none; }

.ticker-badge {
 display: inline-flex;
 align-items: center;
 padding: 1px 6px;
 border-radius: 3px;
 font-size: 9px;
 font-weight: 800;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 flex-shrink: 0;
}

/* Destaque limpo nos temas de nicho (Neuroscience, Audiology, etc.) do ticker */
.ticker-badge:not(.city) {
 background: transparent !important;
 border: none !important;
 padding: 0 !important;
 color: #ffffff !important;
 font-family: 'Roboto', sans-serif;
 font-size: 12.6px;
 font-weight: 900;
 margin-right: 8px;
 letter-spacing: 0.05em;
 text-transform: uppercase;
}

.ticker-badge.science { background: rgba(59, 130, 246, 0.25); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.ticker-badge.clinical { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.ticker-badge.research { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.4); }
.ticker-badge.city  { background: rgba(255, 255, 255, 0.15); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.25); }
.ticker-badge.health { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.ticker-badge.new  { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.ticker-badge.alert  { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.ticker-arrow { color: #e50914; font-size: 10px; font-weight: bold; }

.ticker-clock-item {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 font-family: 'Roboto', sans-serif;
 font-size: 11.55px;
 color: #9ca3af; /* Cinza claro */
 padding: 0 20px;
 border-right: 1px solid rgba(255, 255, 255, 0.15);
 white-space: nowrap;
}

.ticker-highlight {
 color: #fbbf24; /* Amarelo ouro elegante */
 font-weight: 700;
 text-shadow: 0 0 6px rgba(251, 191, 36, 0.15);
}

.clock-val { font-family: var(--font-mono); font-size: 11px; color: #ffffff; letter-spacing: 0.02em; font-weight: 600; }
.clock-weather { font-size: 10px; color: #9ca3af; }

/* ──────────────────────────────────────────────────────────
 5. NAVBAR
 ────────────────────────────────────────────────────────── */
.navbar {
 position: fixed;
 top: var(--ticker-h);
 left: 0;
 right: 0;
 z-index: 900;
 height: var(--navbar-h);
 background: var(--bg-glass);
 backdrop-filter: blur(20px) saturate(160%);
 -webkit-backdrop-filter: blur(20px) saturate(160%);
 border-bottom: 1px solid var(--border-default);
 transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
 background: rgba(255, 255, 255, 0.96);
 border-bottom-color: var(--border-strong);
 box-shadow: var(--shadow-md);
}

.navbar .container {
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: var(--space-xl);
}

/* Logo */
.logo {
 font-family: var(--font-sans);
 font-size: 18px;
 font-weight: 800;
 color: var(--text-primary) !important;
 letter-spacing: -0.02em;
 display: flex;
 align-items: center;
 gap: 2px;
 flex-shrink: 0;
 text-decoration: none;
}

.logo span {
 color: var(--accent-400);
}

/* Nav menu */
.nav-menu {
 display: flex;
 align-items: center;
 gap: var(--space-xs);
 list-style: none;
}

.nav-link {
 display: inline-flex;
 align-items: center;
 padding: 6px 12px;
 border-radius: var(--radius-sm);
 font-size: 13px;
 font-weight: 500;
 color: var(--text-secondary);
 transition: color 0.2s, background 0.2s;
 text-decoration: none;
 white-space: nowrap;
}

.nav-link:hover {
 color: var(--text-primary);
 background: rgba(37,99,235,0.06);
}

/* Dropdown base */
.niche-selector,
.lang-selector {
 position: relative;
}

.niche-btn,
.lang-btn {
 display: inline-flex;
 align-items: center;
 gap: 4px;
 padding: 6px 12px;
 border-radius: var(--radius-sm);
 background: transparent;
 border: 1px solid var(--border-default);
 color: var(--text-secondary);
 font-size: 13px;
 font-weight: 500;
 font-family: var(--font-sans);
 cursor: pointer;
 white-space: nowrap;
 transition: all 0.2s;
}

.niche-btn:hover, .lang-btn:hover,
.niche-selector.open .niche-btn,
.lang-selector.open .lang-btn {
 color: var(--text-primary);
 border-color: var(--accent-500);
 background: rgba(59,130,246,0.08);
}

.dropdown-menu {
 display: none;
 position: absolute;
 top: calc(100% + 8px);
 left: 0;
 min-width: 220px;
 background: var(--bg-elevated);
 border: 1px solid var(--border-strong);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-lg);
 padding: var(--space-sm);
 z-index: 1100;
 animation: fadeDown 0.15s var(--ease-out);
}

.niche-selector.open .dropdown-menu,
.lang-selector.open .dropdown-menu {
 display: block;
}

@keyframes fadeDown {
 from { opacity: 0; transform: translateY(-6px); }
 to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
 display: block;
 padding: 8px 12px;
 border-radius: var(--radius-sm);
 font-size: 13px;
 font-weight: 500;
 color: var(--text-secondary);
 text-decoration: none;
 transition: all 0.15s;
}

.dropdown-item:hover,
.dropdown-item.active {
 background: rgba(59,130,246,0.1);
 color: var(--accent-400);
}

.dropdown-item.active {
 font-weight: 600;
}

.lang-selector .dropdown-menu {
 left: auto;
 right: 0;
}

/* Pills de Nicho na Navbar */
.nav-niche-pill {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 6px 14px;
 border-radius: 20px;
 font-size: 12.5px;
 font-weight: 600;
 text-decoration: none;
 transition: all 0.22s var(--ease-out);
 border: 1px solid transparent;
 white-space: nowrap;
}

.nav-niche-hearing {
  background: rgba(109, 40, 217, 0.05);
  border-color: rgba(109, 40, 217, 0.15);
  color: rgb(109, 40, 217) !important;
}
.nav-niche-hearing:hover {
  background: rgba(109, 40, 217, 0.12);
  border-color: rgba(109, 40, 217, 0.35);
  color: rgb(91, 33, 182) !important;
  transform: scale(1.02);
}

.nav-niche-blood-sugar {
  background: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.15);
  color: rgb(220, 38, 38) !important;
}
.nav-niche-blood-sugar:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
  color: rgb(185, 28, 28) !important;
  transform: scale(1.02);
}

.nav-niche-brain-health {
  background: rgba(5, 150, 105, 0.05);
  border-color: rgba(5, 150, 105, 0.15);
  color: rgb(5, 150, 105) !important;
}
.nav-niche-brain-health:hover {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.35);
  color: rgb(4, 120, 87) !important;
  transform: scale(1.02);
}

.nav-niche-weight-loss {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.15);
  color: rgb(217, 119, 6) !important;
}
.nav-niche-weight-loss:hover {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: rgb(180, 83, 9) !important;
  transform: scale(1.02);
}

.nav-niche-mens-health {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.15);
  color: rgb(37, 99, 235) !important;
}
.nav-niche-mens-health:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
  color: rgb(29, 78, 216) !important;
  transform: scale(1.02);
}

/* Submenu/Abas nas páginas de nicho */
.niche-submenu-bar {
 display: flex;
 gap: var(--space-md);
 margin-bottom: 32px;
 border-bottom: 1px solid var(--border-subtle);
 padding-bottom: 0;
}

.niche-submenu-tab {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 12px 16px;
 border: none;
 border-bottom: 2px solid transparent;
 background: transparent;
 color: var(--text-secondary);
 font-family: var(--font-sans);
 font-size: 14px;
 font-weight: 700;
 cursor: pointer;
 transition: all 0.2s ease-in-out;
}
.niche-submenu-tab:hover {
 color: var(--text-primary);
}
.niche-submenu-tab.active {
 border-bottom: 2px solid var(--accent-500);
 color: var(--text-primary);
}

.niche-content-section {
 display: none;
 animation: fadeInSection 0.25s var(--ease-out);
}
.niche-content-section.active {
 display: block;
}

@keyframes fadeInSection {
 from { opacity: 0; transform: translateY(8px); }
 to { opacity: 1; transform: translateY(0); }
}

/* Mobile hamburger */
#navbarToggle {
 display: none;
 flex-direction: column;
 gap: 5px;
 background: none;
 border: none;
 cursor: pointer;
 padding: 4px;
}

#navbarToggle span {
 display: block;
 width: 22px;
 height: 2px;
 background: var(--text-secondary);
 border-radius: 2px;
 transition: all 0.3s;
}

#navbarToggle.active span:nth-child(1) {
 transform: translateY(7px) rotate(45deg);
}

#navbarToggle.active span:nth-child(2) {
 opacity: 0;
 transform: scaleX(0);
}

#navbarToggle.active span:nth-child(3) {
 transform: translateY(-7px) rotate(-45deg);
}

/* ──────────────────────────────────────────────────────────
 6. PAGE OFFSET (body push for fixed ticker + navbar)
 ────────────────────────────────────────────────────────── */
body {
 padding-top: var(--offset-top);
}

/* ──────────────────────────────────────────────────────────
 7. SECTION TITLES & LABELS
 ────────────────────────────────────────────────────────── */
.section-title {
 font-family: var(--font-sans);
 font-size: 26px;
 font-weight: 800;
 color: var(--text-primary);
 letter-spacing: -0.02em;
 text-align: center;
 margin-bottom: var(--space-xl);
 padding-bottom: var(--space-md);
 border-bottom: 1px solid var(--border-subtle);
}

.badge {
 display: inline-flex;
 align-items: center;
 padding: 3px 9px;
 border-radius: 4px;
 font-size: 10px;
 font-weight: 700;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 background: rgba(59,130,246,0.12);
 color: var(--accent-400);
 border: 1px solid rgba(59,130,246,0.22);
}

/* ──────────────────────────────────────────────────────────
 8. BUTTONS
 ────────────────────────────────────────────────────────── */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: var(--space-sm);
 padding: 10px 20px;
 border-radius: var(--radius-md);
 font-family: var(--font-sans);
 font-size: 14px;
 font-weight: 600;
 cursor: pointer;
 text-decoration: none;
 border: 1px solid transparent;
 transition: all 0.22s var(--ease-out);
 white-space: nowrap;
 user-select: none;
}

.btn-primary {
 background: var(--accent-600);
 color: #fff !important;
 border-color: var(--accent-600);
}

.btn-primary:hover {
 background: var(--accent-500);
 border-color: var(--accent-500);
 box-shadow: 0 4px 16px rgba(37,99,235,0.4);
 transform: translateY(-1px);
 color: #fff !important;
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
 background: transparent;
 color: var(--accent-400) !important;
 border-color: var(--border-accent);
}

.btn-outline:hover {
 background: rgba(59,130,246,0.08);
 border-color: var(--accent-500);
 color: var(--accent-600) !important;
}

/* ──────────────────────────────────────────────────────────
 9. HOME — BREADCRUMB BAR
 ────────────────────────────────────────────────────────── */
.breadcrumb-bar {
 background: var(--bg-surface);
 border-bottom: 1px solid var(--border-subtle);
 padding: 10px 0;
 /* Cancel any inline margin-top from template */
 margin-top: 0 !important;
}

.breadcrumb-bar .container {
 display: flex;
 align-items: center;
 gap: var(--space-sm);
 font-size: 13px;
 color: var(--text-muted);
}

.breadcrumb-bar a {
 color: var(--accent-400);
 text-decoration: none;
 transition: color 0.2s;
}

.breadcrumb-bar a:hover { color: var(--accent-700); }

/* ──────────────────────────────────────────────────────────
 10. HOME — FEATURED HERO
 ────────────────────────────────────────────────────────── */
.portal-layout {
 margin-top: var(--space-xl);
 margin-bottom: var(--space-3xl);
}

.featured-hero {
 display: grid;
 grid-template-columns: 1fr 420px;
 gap: var(--space-xl);
 align-items: center;
 padding: var(--space-xl);
 background: var(--bg-card);
 border: 1px solid var(--border-default);
 border-radius: var(--radius-xl);
 overflow: hidden;
 position: relative;
 min-height: 360px;
}

.featured-hero::before {
 content: '';
 position: absolute;
 inset: 0;
 background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.06) 0%, transparent 65%);
 pointer-events: none;
}

.featured-img-wrapper {
 border-radius: var(--radius-lg);
 overflow: hidden;
 position: relative;
 aspect-ratio: 16/9;
 order: 2;
}

.featured-img-wrapper img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.5s var(--ease-out);
}

.featured-hero:hover .featured-img-wrapper img {
 transform: scale(1.03);
}

.featured-content {
 order: 1;
 display: flex;
 flex-direction: column;
 gap: var(--space-md);
 position: relative;
 z-index: 1;
}

.featured-title {
 font-family: var(--font-serif);
 font-size: 28px;
 font-weight: 700;
 line-height: 1.35;
 color: var(--text-primary);
 letter-spacing: -0.01em;
}

.featured-title a {
 color: inherit;
 text-decoration: none;
 transition: color 0.2s;
}

.featured-title a:hover { color: var(--accent-400); }

.featured-excerpt {
 font-size: 15px;
 line-height: 1.7;
 color: var(--text-secondary);
}

/* ──────────────────────────────────────────────────────────
 11. HOME — NICHE TABS
 ────────────────────────────────────────────────────────── */
.niche-tabs-container {
 display: flex;
 gap: var(--space-sm);
 margin-bottom: var(--space-lg);
 border-bottom: 1px solid var(--border-subtle);
 padding-bottom: 0;
 overflow-x: auto;
 scrollbar-width: none;
 -ms-overflow-style: none;
}

.niche-tabs-container::-webkit-scrollbar { display: none; }

.niche-tab {
 display: inline-flex;
 align-items: center;
 padding: 8px 16px;
 border: none;
 border-bottom: 2px solid transparent;
 margin-bottom: -1px;
 background: transparent;
 color: var(--text-muted);
 font-family: var(--font-sans);
 font-size: 12px;
 font-weight: 700;
 letter-spacing: 0.06em;
 text-transform: uppercase;
 cursor: pointer;
 white-space: nowrap;
 transition: all 0.2s;
}

.niche-tab:hover {
 color: var(--text-secondary);
 border-bottom-color: var(--border-strong);
}

.niche-tab.active {
 color: var(--accent-400);
 border-bottom-color: var(--accent-500);
}

/* ──────────────────────────────────────────────────────────
 12. ARTICLE CARDS GRID
 ────────────────────────────────────────────────────────── */
.articles-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
 gap: var(--space-lg);
}

.article-card {
 display: flex;
 flex-direction: column;
 background: var(--bg-card);
 border: 1px solid var(--border-default);
 border-radius: var(--radius-lg);
 overflow: hidden;
 transition: all 0.25s var(--ease-out);
 text-decoration: none;
 position: relative;
}

.article-card:hover {
 border-color: var(--border-accent);
 box-shadow: var(--shadow-md), 0 0 0 1px var(--border-accent);
 transform: translateY(-3px);
}

.card-img-wrapper {
 overflow: hidden;
 aspect-ratio: 16/9;
 background: var(--bg-elevated);
 flex-shrink: 0;
}

.card-img-wrapper img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.4s var(--ease-out);
}

.article-card:hover .card-img-wrapper img {
 transform: scale(1.05);
}

.card-body {
 display: flex;
 flex-direction: column;
 gap: var(--space-sm);
 padding: var(--space-lg);
 flex: 1;
}

.card-date {
 font-size: 11px;
 font-weight: 600;
 color: var(--text-muted);
 letter-spacing: 0.04em;
 text-transform: uppercase;
}

.card-title {
 font-family: var(--font-serif);
 font-size: 17px;
 font-weight: 700;
 line-height: 1.4;
 color: var(--text-primary);
 display: -webkit-box;
 -webkit-line-clamp: 3;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.card-title a {
 color: inherit;
 text-decoration: none;
 transition: color 0.2s;
}

.card-title a:hover { color: var(--accent-400); }

.card-excerpt {
 font-size: 13.5px;
 line-height: 1.65;
 color: var(--text-secondary);
 display: -webkit-box;
 -webkit-line-clamp: 3;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

/* ──────────────────────────────────────────────────────────
 13. COMPARISON SECTION & TABLE
 ────────────────────────────────────────────────────────── */
.comparison-section {
 background: var(--bg-surface);
 border-top: 1px solid var(--border-subtle);
 border-bottom: 1px solid var(--border-subtle);
 padding: var(--space-3xl) 0;
 margin-bottom: var(--space-3xl);
}

.comparison-table-wrapper {
 overflow-x: auto;
 border-radius: var(--radius-lg);
 border: 1px solid var(--border-default);
 background: var(--bg-card);
}

.comparison-table {
 width: 100%;
 border-collapse: collapse;
 font-size: 14px;
}

.comparison-table thead {
 background: var(--bg-elevated);
 border-bottom: 2px solid var(--border-strong);
}

.comparison-table th {
 padding: 14px 16px;
 text-align: left;
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: var(--text-muted);
 white-space: nowrap;
 border-right: 1px solid var(--border-subtle);
}

.comparison-table th:last-child { border-right: none; }

.comparison-table tbody tr {
 border-bottom: 1px solid var(--border-subtle);
 transition: background 0.15s;
}

.comparison-table tbody tr:last-child { border-bottom: none; }

.comparison-table tbody tr:hover {
 background: rgba(59,130,246,0.04);
}

.comparison-table td {
 padding: 14px 16px;
 vertical-align: middle;
 color: var(--text-secondary);
 border-right: 1px solid var(--border-subtle);
}

.comparison-table td:last-child { border-right: none; }

.comp-rank {
 font-family: var(--font-mono);
 font-size: 16px;
 font-weight: 800;
 color: var(--accent-400);
 text-align: center;
}

.comp-product-info {
 display: flex;
 align-items: center;
 gap: 12px;
}

.comp-product-img {
 width: 44px;
 height: 44px;
 object-fit: contain;
 border-radius: var(--radius-sm);
 background: var(--bg-elevated);
 padding: 4px;
 flex-shrink: 0;
}

.comp-product-name {
 font-size: 14px;
 font-weight: 700;
 color: var(--text-primary);
 margin-bottom: 2px;
}

.comp-badge {
 display: inline-flex;
 padding: 1px 6px;
 background: rgba(16,185,129,0.1);
 color: var(--color-success);
 border: 1px solid rgba(16,185,129,0.25);
 border-radius: 3px;
 font-size: 9px;
 font-weight: 700;
 letter-spacing: 0.06em;
 text-transform: uppercase;
}

.comp-rating {
 display: flex;
 align-items: baseline;
 gap: 3px;
}

.comp-rating-score {
 font-size: 20px;
 font-weight: 800;
 font-family: var(--font-mono);
 color: var(--text-primary);
}

/* ──────────────────────────────────────────────────────────
 14. FOOTER
 ────────────────────────────────────────────────────────── */
.footer {
 background: var(--bg-surface);
 border-top: 1px solid var(--border-subtle);
 padding: var(--space-2xl) 0;
}

.footer-content {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: var(--space-lg);
 text-align: center;
}

.footer-logo {
 font-family: var(--font-sans);
 font-size: 20px;
 font-weight: 800;
 color: var(--text-primary);
 letter-spacing: -0.02em;
}

.footer-links {
 display: flex;
 gap: var(--space-xl);
 flex-wrap: wrap;
 justify-content: center;
}

.footer-links a {
 font-size: 13px;
 font-weight: 500;
 color: var(--text-muted);
 text-decoration: none;
 transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-disclaimer {
 font-size: 11px;
 line-height: 1.7;
 color: var(--text-muted);
 max-width: 800px;
 font-style: italic;
}

/* ──────────────────────────────────────────────────────────
 15. ARTICLE HERO
 ────────────────────────────────────────────────────────── */
.article-hero {
 position: relative;
 width: 100%;
 height: 460px;
 overflow: hidden;
 background: var(--bg-elevated);
}

.hero-photo {
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center 30%;
 transition: transform 0.6s var(--ease-out);
}

.hero-overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(
 to top,
 rgba(7,9,15,0.92) 0%,
 rgba(7,9,15,0.72) 30%,
 rgba(7,9,15,0.30) 60%,
 rgba(7,9,15,0.05) 100%
 );
 display: flex;
 align-items: flex-end;
}

/* Força SEMPRE texto branco no hero — independente do tema */
.hero-overlay,
.hero-overlay *:not(.badge):not(.author-avatar) {
 color: #ffffff !important;
}

.hero-overlay .badge {
 background: rgba(255,255,255,0.15) !important;
 color: #ffffff !important;
 border-color: rgba(255,255,255,0.3) !important;
 backdrop-filter: blur(4px);
}

.hero-inner {
 padding: var(--space-2xl);
 max-width: var(--max-width);
 width: 100%;
 margin: 0 auto;
}

.hero-inner .badge {
 margin-bottom: var(--space-md);
}

.hero-inner h1 {
 font-family: var(--font-serif);
 font-size: clamp(24px, 3.5vw, 38px);
 font-weight: 700;
 line-height: 1.25;
 color: #ffffff !important;
 text-shadow: 0 2px 8px rgba(0,0,0,0.5);
 max-width: 800px;
 margin-bottom: var(--space-md);
 letter-spacing: -0.01em;
}

.hero-lead {
 font-size: 16px;
 line-height: 1.7;
 color: rgba(255,255,255,0.90) !important;
 text-shadow: 0 1px 4px rgba(0,0,0,0.4);
 max-width: 680px;
 margin-bottom: var(--space-lg);
}

.hero-meta {
 display: flex;
 align-items: center;
 gap: var(--space-lg);
 flex-wrap: wrap;
 font-size: 12px;
 font-weight: 600;
 color: rgba(255,255,255,0.75) !important;
 text-transform: uppercase;
 letter-spacing: 0.05em;
}

.hero-author {
 display: flex;
 align-items: center;
 gap: 10px;
}

.author-avatar {
 width: 32px;
 height: 32px;
 border-radius: 50%;
 background: linear-gradient(135deg, var(--accent-600), #7c3aed);
 color: #fff;
 font-size: 12px;
 font-weight: 700;
 display: flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────
 16. ARTICLE PAGE — TWO-COLUMN LAYOUT
 ────────────────────────────────────────────────────────── */
.article-layout {
 display: grid !important;
 grid-template-columns: 1fr var(--sidebar-width) !important;
 gap: var(--space-2xl);
 align-items: start;
 margin-top: var(--space-xl);
 margin-bottom: var(--space-3xl);
}

/* Garante que article-main e sidebar-wrapper não colem na mesma linha por overflow */
.article-layout > * {
 min-width: 0;
}

.article-main {
 min-width: 0;
}

/* ──────────────────────────────────────────────────────────
 17. ARTICLE CONTENT — SCIENTIFIC TYPOGRAPHY
 ────────────────────────────────────────────────────────── */
.article-content {
 font-family: var(--font-serif);
 font-size: 18px;
 line-height: 1.85;
 color: #1e293b;
}

.article-content h2 {
 font-family: var(--font-sans);
 font-size: 23px;
 font-weight: 800;
 color: var(--text-primary);
 margin: 52px 0 18px;
 padding-bottom: 14px;
 border-bottom: 2px solid var(--border-subtle);
 letter-spacing: -0.02em;
 counter-increment: section;
 position: relative;
}

.article-content h2::before {
 content: counter(section, decimal-leading-zero);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
 color: #fff;
 font-family: var(--font-mono);
 font-size: 11px;
 font-weight: 800;
 letter-spacing: 0.02em;
 width: 24px;
 height: 24px;
 border-radius: 6px;
 margin-right: 12px;
 vertical-align: middle;
 position: relative;
 top: -1px;
 flex-shrink: 0;
}

.article-content h3 {
 font-family: var(--font-sans);
 font-size: 18px;
 font-weight: 800;
 color: var(--accent-700);
 margin: 36px 0 14px;
 letter-spacing: -0.01em;
 padding-left: 14px;
 border-left: 3px solid var(--accent-400);
 line-height: 1.4;
}

.article-content h4 {
 font-family: var(--font-sans);
 font-size: 11px;
 font-weight: 800;
 color: var(--accent-600);
 margin: 28px 0 10px;
 text-transform: uppercase;
 letter-spacing: 0.12em;
 display: inline-flex;
 align-items: center;
 gap: 6px;
}

.article-content h4::before {
 content: '';
 display: inline-block;
 width: 16px;
 height: 2px;
 background: var(--accent-500);
 border-radius: 2px;
}

.article-content p {
 margin-bottom: 24px;
 color: #1e293b;
}

.article-content p:first-child::first-letter {
 font-size: 3.6em;
 font-weight: 900;
 float: left;
 line-height: 0.78;
 margin: 4px 12px 0 0;
 color: var(--accent-600);
 font-family: var(--font-serif);
 background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-700) 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

.article-content strong {
 font-weight: 700;
 color: var(--accent-700);
 background: rgba(37,99,235,0.06);
 padding: 0 3px;
 border-radius: 3px;
}

.article-content em {
 font-style: italic;
 color: var(--accent-600);
 font-weight: 500;
}

.article-content ul,
.article-content ol {
 margin: 0 0 28px 0;
 padding-left: var(--space-xl);
 color: #1e293b;
}

.article-content ul li { list-style: none; padding-left: 4px; position: relative; }
.article-content ul li::before {
 content: '';
 display: inline-block;
 width: 7px;
 height: 7px;
 border-radius: 50%;
 background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
 position: absolute;
 left: -20px;
 top: 10px;
 flex-shrink: 0;
}
.article-content ol li { list-style: decimal; }

.article-content li {
 margin-bottom: 12px;
 line-height: 1.75;
 font-family: var(--font-serif);
 font-size: 17px;
 color: #1e293b;
}

.article-content li::marker {
 color: var(--accent-500);
 font-weight: 700;
}

.article-content blockquote {
 border-left: 4px solid var(--accent-500);
 margin: 36px 0;
 padding: 24px 28px;
 background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(59,130,246,0.03) 100%);
 border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
 font-style: italic;
 font-size: 18px;
 color: #1e3a8a;
 position: relative;
 box-shadow: inset 0 0 0 1px rgba(37,99,235,0.08);
}

.article-content blockquote::before {
 content: '\201C';
 position: absolute;
 top: -8px;
 left: 20px;
 font-size: 72px;
 color: var(--accent-500);
 font-family: Georgia, serif;
 line-height: 1;
 opacity: 0.25;
}

.article-content img {
 width: 100%;
 max-width: 100%;
 height: auto;
 border-radius: var(--radius-md);
 margin: 28px 0;
 border: 1px solid var(--border-default);
 cursor: zoom-in;
 transition: opacity 0.2s;
}

.article-content img:hover { opacity: 0.92; }

.article-content figure { margin: 32px 0; }

.article-content figcaption {
 font-size: 12px;
 font-family: var(--font-sans);
 color: var(--text-muted);
 text-align: center;
 margin-top: 10px;
 font-style: italic;
 letter-spacing: 0.02em;
}

/* Scientific table */
.article-content table {
 width: 100%;
 border-collapse: collapse;
 margin: 32px 0;
 font-size: 14px;
 font-family: var(--font-sans);
 border-radius: var(--radius-md);
 overflow: hidden;
 border: 1px solid var(--border-default);
}

.article-content th {
 background: var(--bg-elevated);
 color: var(--text-primary);
 font-weight: 700;
 padding: 12px 16px;
 text-align: left;
 font-size: 12px;
 text-transform: uppercase;
 letter-spacing: 0.06em;
 border-bottom: 1px solid var(--border-strong);
}

.article-content td {
 padding: 11px 16px;
 border-bottom: 1px solid var(--border-subtle);
 color: var(--text-secondary);
 line-height: 1.5;
}

.article-content tr:last-child td { border-bottom: none; }

.article-content tr:nth-child(even) td {
 background: rgba(15,23,42,0.025);
}

/* Code inline */
.article-content code {
 font-family: var(--font-mono);
 font-size: 0.875em;
 padding: 2px 8px;
 background: rgba(37,99,235,0.08);
 border: 1px solid rgba(37,99,235,0.15);
 border-radius: 4px;
 color: var(--accent-600);
 font-weight: 600;
}

/* Links dentro do artigo */
.article-content a {
 color: var(--accent-600);
 text-decoration: underline;
 text-decoration-color: rgba(37,99,235,0.35);
 text-underline-offset: 3px;
 font-weight: 500;
 transition: color 0.2s, text-decoration-color 0.2s;
}

.article-content a:hover {
 color: var(--accent-700);
 text-decoration-color: var(--accent-500);
}

/* ──────────────────────────────────────────────────────────
 18. SCIENTIFIC CALLOUT BOXES (in article body)
 ────────────────────────────────────────────────────────── */
.study-citation {
 background: var(--bg-elevated);
 border: 1px solid var(--border-default);
 border-left: 3px solid var(--accent-500);
 border-radius: 0 var(--radius-md) var(--radius-md) 0;
 padding: 16px 20px;
 margin: 28px 0;
 font-family: var(--font-sans);
 font-size: 13px;
 font-style: italic;
 color: var(--text-secondary);
 line-height: 1.65;
}

.study-citation em { color: var(--accent-400); font-style: normal; font-weight: 600; }

.warning-box {
 background: rgba(245,158,11,0.06);
 border: 1px solid rgba(245,158,11,0.25);
 border-left: 3px solid var(--color-warning);
 border-radius: 0 var(--radius-md) var(--radius-md) 0;
 padding: 16px 20px;
 margin: 28px 0;
 font-family: var(--font-sans);
 font-size: 14px;
 color: var(--text-secondary);
 line-height: 1.65;
}

.warning-box strong {
 color: var(--color-warning);
 font-weight: 700;
}

/* CTA Products inside article */
.cta-block {
 background: var(--bg-card);
 border: 1px solid var(--border-accent);
 border-radius: var(--radius-lg);
 padding: var(--space-xl);
 margin: 36px 0;
 text-align: center;
}

.cta-block h3 {
 font-family: var(--font-sans);
 font-size: 18px;
 font-weight: 700;
 color: var(--text-primary);
 margin-bottom: var(--space-sm);
}

.cta-block p {
 font-family: var(--font-sans);
 font-size: 13px;
 color: var(--text-secondary);
 margin-bottom: var(--space-lg);
}

.cta-products {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
 gap: var(--space-md);
 margin-bottom: var(--space-md);
}

.cta-product {
 background: var(--bg-elevated);
 border: 1px solid var(--border-default);
 border-radius: var(--radius-md);
 padding: var(--space-md);
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: var(--space-sm);
 transition: all 0.22s;
}

.cta-product:hover {
 border-color: var(--border-accent);
 box-shadow: var(--shadow-sm);
}

.cta-product-img-wrap {
 height: 80px;
 display: flex;
 align-items: center;
 justify-content: center;
}

.cta-product-img-wrap img {
 max-height: 72px;
 width: auto;
 filter: drop-shadow(0 4px 8px rgba(0,0,0,0.18));
 margin: 0;
 border: none;
 cursor: default;
}

.cta-product-name {
 font-family: var(--font-sans);
 font-size: 13px;
 font-weight: 700;
 color: var(--text-primary);
 text-align: center;
}

.cta-product-rank {
 font-size: 10px;
 font-weight: 700;
 color: var(--accent-400);
 text-transform: uppercase;
 letter-spacing: 0.06em;
}

.cta-product-shipping {
 font-size: 10px;
 color: var(--text-muted);
}

.btn-affiliate {
 display: inline-flex;
 align-items: center;
 padding: 6px 12px;
 background: var(--accent-600);
 color: #fff !important;
 border-radius: var(--radius-sm);
 font-family: var(--font-sans);
 font-size: 11px;
 font-weight: 700;
 text-decoration: none;
 margin-top: var(--space-sm);
 transition: all 0.2s;
}

.btn-affiliate:hover {
 background: var(--accent-500);
 transform: translateY(-1px);
}

.cta-disclaimer {
 font-family: var(--font-sans);
 font-size: 10px;
 color: var(--text-muted);
 font-style: italic;
 text-align: center;
 line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────
 19. SOURCES / SCIENTIFIC REFERENCES
 ────────────────────────────────────────────────────────── */
.sources-section {
 background: var(--bg-surface);
 border: 1px solid var(--border-default);
 border-radius: var(--radius-lg);
 padding: var(--space-xl);
 margin-top: var(--space-2xl);
 font-family: var(--font-sans);
}

.sources-section h4 {
 font-size: 11px;
 font-weight: 700;
 color: var(--text-muted);
 text-transform: uppercase;
 letter-spacing: 0.1em;
 margin-bottom: var(--space-md);
 padding-bottom: var(--space-sm);
 border-bottom: 1px solid var(--border-subtle);
}

.sources-section ol {
 padding-left: var(--space-lg);
 margin: 0;
}

.sources-section li {
 font-size: 12px;
 line-height: 1.7;
 color: var(--text-muted);
 margin-bottom: 8px;
 list-style: decimal;
}

.sources-section li::marker { color: var(--accent-400); }

/* ──────────────────────────────────────────────────────────
 20. STICKY SIDEBAR
 ────────────────────────────────────────────────────────── */
.sidebar-wrapper {
 position: sticky;
 top: calc(var(--offset-top) + 20px);
 display: flex;
 flex-direction: column;
 gap: var(--space-lg);
 align-self: start;
 max-height: calc(100vh - var(--offset-top) - 40px);
 overflow-y: auto;
 scrollbar-width: thin;
 scrollbar-color: var(--border-strong) transparent;
}

.sidebar-wrapper::-webkit-scrollbar { width: 4px; }
.sidebar-wrapper::-webkit-scrollbar-track { background: transparent; }
.sidebar-wrapper::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* ──────────────────────────────────────────────────────────
 21. SIDEBAR — PRODUCT RECOMMENDATION CARD
 ────────────────────────────────────────────────────────── */
.product-recommendation-card {
 background: var(--bg-card);
 border: 1px solid var(--border-accent);
 border-radius: var(--radius-lg);
 padding: var(--space-lg);
 text-align: center;
 position: relative;
 overflow: hidden;
}

.product-recommendation-card::before {
 content: '';
 position: absolute;
 inset: 0;
 background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 65%);
 pointer-events: none;
}

.prod-rec-badge {
 display: inline-flex;
 padding: 3px 10px;
 background: rgba(59,130,246,0.12);
 color: var(--accent-400);
 border: 1px solid rgba(59,130,246,0.25);
 border-radius: 4px;
 font-size: 9px;
 font-weight: 800;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 margin-bottom: var(--space-md);
 position: relative;
}

.prod-rec-img {
 width: 130px;
 height: 130px;
 object-fit: contain;
 display: block;
 margin: 0 auto var(--space-md);
 filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
 position: relative;
}

.prod-rec-name {
 font-family: var(--font-sans);
 font-size: 16px;
 font-weight: 800;
 color: var(--text-primary);
 margin-bottom: var(--space-sm);
 position: relative;
}

.prod-rec-tagline {
 font-family: var(--font-sans);
 font-size: 12px;
 line-height: 1.5;
 color: var(--text-muted);
 margin-bottom: var(--space-lg);
 position: relative;
}

.prod-rec-btn {
 display: block;
 width: 100%;
 padding: 11px 16px;
 background: var(--accent-600);
 color: #fff !important;
 border-radius: var(--radius-md);
 font-family: var(--font-sans);
 font-size: 13px;
 font-weight: 700;
 text-decoration: none;
 text-align: center;
 transition: all 0.22s;
 position: relative;
}

.prod-rec-btn:hover {
 background: var(--accent-500);
 transform: translateY(-1px);
 box-shadow: 0 6px 20px rgba(37,99,235,0.4);
 color: #fff !important;
}

.prod-rec-vsl-link {
 display: block;
 margin-top: var(--space-sm);
 font-size: 11px;
 color: var(--accent-400);
 text-decoration: none;
 position: relative;
}

.prod-rec-vsl-link:hover { color: var(--accent-700); text-decoration: underline; }

/* ──────────────────────────────────────────────────────────
 22. SIDEBAR — PRODUCTS LIST (Top 5)
 ────────────────────────────────────────────────────────── */
.sidebar-block {
 background: var(--bg-card);
 border: 1px solid var(--border-default);
 border-radius: var(--radius-lg);
 padding: var(--space-md);
}

.sidebar-product-item {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px;
 border-radius: var(--radius-sm);
 text-decoration: none;
 transition: all 0.18s;
 border: 1px solid transparent;
}

.sidebar-product-item:hover {
 background: rgba(59,130,246,0.06);
 border-color: var(--border-accent);
 transform: translateX(2px);
}

.sidebar-product-rank {
 width: 22px;
 height: 22px;
 border-radius: 50%;
 background: var(--bg-elevated);
 border: 1px solid var(--border-default);
 color: var(--accent-400);
 font-size: 10px;
 font-weight: 800;
 font-family: var(--font-mono);
 display: flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
}

.sidebar-product-img {
 width: 40px;
 height: 40px;
 object-fit: contain;
 border-radius: var(--radius-sm);
 background: var(--bg-elevated);
 padding: 4px;
 flex-shrink: 0;
 margin: 0 !important;
 border: none !important;
}

.sidebar-product-info { flex: 1; min-width: 0; }

.sidebar-product-name {
 display: block;
 font-size: 12.5px;
 font-weight: 700;
 color: var(--text-primary);
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 margin-bottom: 2px;
}

.sidebar-product-tag {
 font-size: 10px;
 font-weight: 600;
 color: var(--accent-400);
 text-transform: uppercase;
 letter-spacing: 0.05em;
}

/* ──────────────────────────────────────────────────────────
 23. RELATED ARTICLES SECTION
 ────────────────────────────────────────────────────────── */
.related-section {
 margin-top: var(--space-2xl);
 padding-top: var(--space-xl);
 border-top: 1px solid var(--border-subtle);
}

.related-section h3,
.related-section h2 {
 font-family: var(--font-sans);
 font-size: 14px;
 font-weight: 700;
 color: var(--text-muted);
 text-transform: uppercase;
 letter-spacing: 0.1em;
 margin-bottom: var(--space-lg);
}

.related-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--space-lg);
}

/* Related card (compact) */
.related-card,
.article-card.related {
 display: flex;
 flex-direction: column;
 background: var(--bg-card);
 border: 1px solid var(--border-default);
 border-radius: var(--radius-lg);
 overflow: hidden;
 text-decoration: none;
 transition: all 0.22s;
}

.related-card:hover {
 border-color: var(--border-accent);
 transform: translateY(-2px);
 box-shadow: var(--shadow-sm);
}

.related-card img {
 width: 100%;
 height: 160px;
 object-fit: cover;
 margin: 0 !important;
 border: none !important;
 border-radius: 0;
}

.related-card-body {
 padding: var(--space-md);
 display: flex;
 flex-direction: column;
 gap: var(--space-sm);
}

.rc-label {
 font-size: 10px;
 font-weight: 700;
 color: var(--accent-400);
 text-transform: uppercase;
 letter-spacing: 0.08em;
}

.related-card h4 {
 font-family: var(--font-serif);
 font-size: 15px;
 font-weight: 700;
 color: var(--text-primary);
 line-height: 1.4;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.related-card p {
 font-size: 12.5px;
 line-height: 1.55;
 color: var(--text-muted);
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
 margin: 0;
}

/* ──────────────────────────────────────────────────────────
 24. LIGHTBOX
 ────────────────────────────────────────────────────────── */
.rs-lightbox {
 position: fixed;
 inset: 0;
 background: rgba(7,9,15,0.95);
 z-index: 2000;
 display: none;
 align-items: center;
 justify-content: center;
 opacity: 0;
 transition: opacity 0.3s ease;
 backdrop-filter: blur(10px);
}

.rs-lightbox.active { opacity: 1; }

.rs-lightbox-content {
 position: relative;
 max-width: 90vw;
 max-height: 88vh;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: var(--space-md);
}

.rs-lightbox-img {
 max-width: 100%;
 max-height: 80vh;
 border-radius: var(--radius-md);
 border: 1px solid var(--border-strong);
 box-shadow: var(--shadow-lg);
 margin: 0;
 cursor: default;
}

.rs-lightbox-close {
 position: absolute;
 top: -48px;
 right: -8px;
 color: var(--text-secondary);
 font-size: 28px;
 cursor: pointer;
 width: 40px;
 height: 40px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 background: var(--bg-elevated);
 border: 1px solid var(--border-default);
 transition: all 0.2s;
}

.rs-lightbox-close:hover {
 background: var(--bg-card-hover);
 color: var(--text-primary);
 transform: scale(1.1);
}

.rs-lightbox-caption {
 font-family: var(--font-sans);
 font-size: 13px;
 color: var(--text-muted);
 text-align: center;
 font-style: italic;
}

/* ──────────────────────────────────────────────────────────
 25. INSTITUTIONAL PAGES
 ────────────────────────────────────────────────────────── */
.institutional-content {
 max-width: 800px;
 margin: var(--space-2xl) auto var(--space-3xl);
 padding: var(--space-2xl);
 background: var(--bg-card);
 border: 1px solid var(--border-default);
 border-radius: var(--radius-xl);
}

.institutional-content h1 {
 font-family: var(--font-sans);
 font-size: 28px;
 font-weight: 800;
 color: var(--text-primary);
 margin-bottom: var(--space-xl);
 padding-bottom: var(--space-md);
 border-bottom: 1px solid var(--border-subtle);
 letter-spacing: -0.02em;
}

.institutional-content h2 {
 font-family: var(--font-sans);
 font-size: 19px;
 font-weight: 700;
 color: var(--text-primary);
 margin: var(--space-xl) 0 var(--space-md);
}

.institutional-content p {
 font-size: 15px;
 line-height: 1.8;
 color: var(--text-secondary);
 margin-bottom: var(--space-md);
}

.institutional-content ul {
 margin: var(--space-md) 0 var(--space-md) var(--space-xl);
 color: var(--text-secondary);
}

.institutional-content ul li {
 list-style: disc;
 margin-bottom: var(--space-sm);
 line-height: 1.7;
 font-size: 15px;
}

/* ──────────────────────────────────────────────────────────
 26. RESPONSIVE — BREAKPOINTS
 ────────────────────────────────────────────────────────── */

/* Large Tablet */
@media (max-width: 1100px) {
 :root { --sidebar-width: 280px; }

 .featured-hero {
 grid-template-columns: 1fr;
 }
 .featured-img-wrapper { order: 1; }
 .featured-content  { order: 2; }
 .featured-title  { font-size: 24px; }

 .articles-grid {
 grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
 }
}

/* Tablet — sidebar empilha */
@media (max-width: 900px) {
 .article-layout {
 grid-template-columns: 1fr !important;
 gap: var(--space-xl);
 }

 /* Sidebar aparece ACIMA do conteúdo no tablet — antes da leitura */
 .article-layout .sidebar-wrapper {
 order: -1;
 }

 .sidebar-wrapper {
 position: static !important;
 max-height: none;
 overflow-y: visible;
 }

 /* Sidebar horizontal em tablet */
 .product-recommendation-card {
 display: flex;
 align-items: center;
 gap: var(--space-lg);
 padding: var(--space-lg);
 }

 .prod-rec-img {
 width: 80px !important;
 height: 80px !important;
 flex-shrink: 0;
 }

 .sidebar-block {
 display: none; /* Esconde lista Top5 no tablet, mantém só card principal */
 }

 .article-hero { height: 320px; }
 .hero-inner h1 { font-size: clamp(20px, 3vw, 28px); }
 .hero-lead { font-size: 15px; }
}

/* Mobile */
@media (max-width: 768px) {
 :root {
 --navbar-h: 52px;
 }

 /* ---- Navbar Mobile ---- */
 .nav-menu {
 display: none;
 position: fixed;
 top: var(--offset-top);
 left: 0;
 right: 0;
 background: var(--bg-surface);
 border-bottom: 1px solid var(--border-default);
 flex-direction: column;
 align-items: flex-start;
 padding: var(--space-md);
 gap: var(--space-sm);
 z-index: 800;
 box-shadow: var(--shadow-lg);
 }

 .nav-menu.open { display: flex; }
 #navbarToggle { display: flex; }

 .nav-menu li { width: 100%; }
 .nav-link { width: 100%; padding: 10px 12px; }
 .nav-niche-pill { width: 100% !important; padding: 10px 16px; justify-content: flex-start; }

 .niche-selector,
 .lang-selector { width: 100%; }

 .niche-btn,
 .lang-btn { width: 100%; justify-content: space-between; }

 .dropdown-menu {
 position: static;
 box-shadow: none;
 border: 1px solid var(--border-subtle);
 margin-top: 4px;
 animation: none;
 }

 /* ---- Article Hero Mobile ---- */
 .article-hero { height: 260px; }

 .hero-inner {
 padding: var(--space-lg) var(--space-md);
 }

 .hero-inner h1 {
 font-size: clamp(18px, 5vw, 24px);
 line-height: 1.3;
 margin-bottom: 10px;
 }

 .hero-lead {
 font-size: 14px;
 line-height: 1.6;
 margin-bottom: var(--space-md);
 display: -webkit-box;
 -webkit-line-clamp: 3;
 -webkit-box-orient: vertical;
 overflow: hidden;
 }

 .hero-meta {
 gap: var(--space-sm);
 font-size: 10px;
 flex-wrap: wrap;
 }

 .author-avatar {
 width: 26px;
 height: 26px;
 font-size: 10px;
 }

 /* ---- Breadcrumb Mobile ---- */
 .breadcrumb-bar .container {
 font-size: 12px;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 display: block;
 }

 /* ---- Article Content Mobile ---- */
 .article-content {
 font-size: 16px;
 line-height: 1.75;
 }

 .article-content h2 { font-size: 19px; margin: 36px 0 12px; }
 .article-content h3 { font-size: 16px; }

 .article-content p:first-child::first-letter {
 font-size: 2.4em;
 }

 .article-content blockquote {
 padding: 14px 16px;
 font-size: 15px;
 }

 /* ---- Sidebar Mobile (empilhada abaixo do conteúdo) ---- */
 .article-layout .sidebar-wrapper {
 order: 1; /* Abaixo do conteúdo em mobile */
 }

 .product-recommendation-card {
 display: block; /* Volta ao layout vertical */
 padding: var(--space-lg);
 }

 .prod-rec-img {
 width: 100px !important;
 height: 100px !important;
 display: block;
 margin: 0 auto var(--space-md);
 }

 /* Mostra lista top 5 novamente em mobile */
 .sidebar-block { display: block; }

 /* ---- Grids Mobile ---- */
 .articles-grid {
 grid-template-columns: 1fr;
 }

 .related-grid { grid-template-columns: 1fr; }

 /* ---- Tabela de Comparação Mobile ---- */
 .comparison-table-wrapper { overflow-x: auto; }
 .comparison-table { font-size: 11px; min-width: 520px; }
 .comparison-table th,
 .comparison-table td { padding: 8px 10px; }
 .comp-product-img { width: 32px; height: 32px; }
 .comp-product-name { font-size: 12px; }

 /* ---- CTA Produtos Mobile (2 colunas → 1 coluna) ---- */
 .cta-products { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

 /* ---- Footer Mobile ---- */
 .footer-links { gap: var(--space-md); flex-wrap: wrap; }
 .footer-disclaimer { font-size: 10px; }

 /* ---- Featured Hero Mobile ---- */
 .featured-hero {
 padding: var(--space-lg);
 min-height: auto;
 grid-template-columns: 1fr;
 }
 .featured-title { font-size: 20px; }

 .institutional-content { padding: var(--space-lg); }
}

/* Small Mobile */
@media (max-width: 480px) {
 .breaking-news-label { padding: 0 10px 0 14px; font-size: 9px; }
 .ticker-item   { font-size: 11px; padding: 0 14px; }

 .article-hero { height: 220px; }

 .hero-inner h1 { font-size: 17px; }
 .hero-lead { display: none; } /* Muito longo em tela pequena */
 .hero-meta { gap: 6px; }

 .cta-products { grid-template-columns: 1fr; }

 /* Navbar muito compacta */
 .logo { font-size: 16px; }

 /* Sidebar card compacto */
 .product-recommendation-card {
 padding: var(--space-md);
 }

 .prod-rec-name { font-size: 16px !important; }
 .prod-rec-tagline { font-size: 12px !important; }

 /* Article typography mais compacta */
 .article-content { font-size: 15px; }
 .article-content h2 { font-size: 17px; }
}

/* Extra small — Galaxy Fold etc. */
@media (max-width: 360px) {
 :root { --navbar-h: 48px; }
 .hero-inner { padding: var(--space-md); }
 .article-hero { height: 200px; }
 .cta-products { grid-template-columns: 1fr; }
 .comparison-table { min-width: 400px; font-size: 10px; }
}


/* ──────────────────────────────────────────────────────────
 27. ARTICLE CALLOUT BOXES (generated by build.js)
 ────────────────────────────────────────────────────────── */

/* Fix counter-reset for section numbering */
.article-content {
 counter-reset: section;
}

/* Insight box — from article JSON content */
.insight-box,
.key-finding-box {
 background: linear-gradient(135deg, rgba(37,99,235,0.07) 0%, rgba(59,130,246,0.04) 100%);
 border: 1px solid rgba(37,99,235,0.18);
 border-left: 4px solid var(--accent-500);
 border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
 padding: 20px 24px;
 margin: 32px 0;
 font-family: var(--font-sans);
 font-size: 14.5px;
 line-height: 1.75;
 color: #1e3a8a;
 position: relative;
 box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}

.insight-box::before,
.key-finding-box::before {
 content: '🔬';
 position: absolute;
 top: -14px;
 right: 18px;
 font-size: 22px;
 background: var(--bg-card);
 padding: 2px 6px;
 border-radius: 8px;
 border: 1px solid rgba(37,99,235,0.15);
}

.insight-box strong,
.key-finding-box strong {
 display: block;
 color: var(--accent-600);
 font-weight: 800;
 font-size: 11px;
 text-transform: uppercase;
 letter-spacing: 0.10em;
 margin-bottom: 10px;
 display: flex;
 align-items: center;
 gap: 6px;
}

.insight-box strong::before,
.key-finding-box strong::before {
 content: '';
 display: inline-block;
 width: 18px;
 height: 2px;
 background: var(--accent-500);
 border-radius: 2px;
}

/* Article figure */
.article-figure,
.article-content figure.article-figure {
 margin: 36px 0 !important;
 border-radius: var(--radius-lg) !important;
 overflow: hidden;
 border: 1px solid var(--border-default) !important;
}

.article-figure img {
 width: 100%;
 height: auto;
 margin: 0 !important;
 border: none !important;
 border-radius: 0 !important;
 display: block;
}

.article-figure figcaption {
 font-size: 12px;
 font-family: var(--font-sans);
 color: var(--text-muted);
 text-align: center;
 padding: 10px 16px;
 background: var(--bg-elevated);
 border-top: 1px solid var(--border-subtle);
 font-style: italic;
}

/* ──────────────────────────────────────────────────────────
 28. UTILITY OVERRIDES
 ────────────────────────────────────────────────────────── */

/* Remove o body padding-top em páginas sem ticker (fallback) */
body:not(:has(.breaking-news-bar)) {
 padding-top: var(--navbar-h);
}

/* Smooth scroll offset para anchors com navbar fixa */
[id] {
 scroll-margin-top: calc(var(--offset-top) + 20px);
}

/* ==========================================================
 29. PRODUCT REVIEW BOX (PHOTO 2 & REVIEW/CTA)
 ========================================================== */
.product-review-box {
 display: flex;
 flex-direction: row;
 align-items: center;
 gap: 24px;
 background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
 border: 1px solid var(--border-strong);
 border-left: 4px solid var(--accent-500);
 border-radius: var(--radius-lg);
 padding: 24px;
 margin: 40px 0;
 box-shadow: var(--shadow-lg);
 transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.product-review-box:hover {
 transform: translateY(-2px);
 border-color: var(--accent-400);
}

.product-review-image {
 flex-shrink: 0;
 width: 150px;
 height: 150px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: var(--bg-elevated);
 border: 1px solid var(--border-subtle);
 border-radius: var(--radius-md);
 padding: 10px;
 overflow: hidden;
}

.product-review-image img {
 max-width: 100%;
 max-height: 100%;
 object-fit: contain;
 filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
 transition: transform 0.3s var(--ease-out);
}

.product-review-box:hover .product-review-image img {
 transform: scale(1.05);
}

.product-review-content {
 flex: 1;
 display: flex;
 flex-direction: column;
 gap: 12px;
}

.product-review-content h3 {
 font-family: var(--font-sans);
 font-size: 18px;
 font-weight: 800;
 color: var(--text-primary);
 margin: 0;
 line-height: 1.3;
}

.product-review-content h3 span {
 color: var(--accent-400);
}

.product-review-content p {
 font-family: var(--font-sans);
 font-size: 14.5px;
 line-height: 1.6;
 color: var(--text-secondary);
 margin: 0;
}

.btn-review-cta {
 align-self: flex-start;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 12px 24px;
 background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-700) 100%);
 color: #ffffff !important;
 font-family: var(--font-sans);
 font-size: 14px;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.05em;
 border: none;
 border-radius: var(--radius-md);
 cursor: pointer;
 text-decoration: none;
 transition: all 0.25s var(--ease-out);
 box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-review-cta:hover {
 background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
 box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
 transform: translateY(-1px);
 color: #ffffff !important;
}

/* Responsive adjustment for Mobile */
@media (max-width: 640px) {
 .product-review-box {
 flex-direction: column;
 text-align: center;
 padding: 20px;
 gap: 20px;
 }
 
 .product-review-image {
 width: 130px;
 height: 130px;
 margin: 0 auto;
 }
 
 .product-review-content {
 align-items: center;
 width: 100%;
 }
 
 .btn-review-cta {
 align-self: center;
 width: 100%;
 }
}



