/**
 * Design System: Beleza Garoto 3D
 * Estética Editorial Tech (Tecnoblog) + Microcomponentes shadcn/ui
 * Paleta: Zinc + Laranja Maker (#f97316)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Modo Claro (Light) */
  --bg-page: #ffffff;
  --bg-surface: #fafafa;
  --bg-card: #ffffff;
  --bg-muted: #f4f4f5;
  --border-subtle: #e4e4e7;
  --border-strong: #d4d4d8;
  
  --text-main: #09090b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;

  /* Laranja Maker / Industrial */
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-light: #fff7ed;
  --primary-border: #fdba74;
  --primary-foreground: #ffffff;

  /* Sucesso e Alerta */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  /* Modo Escuro (Dark OLED / Zinc) */
  --bg-page: #09090b;
  --bg-surface: #0f0f12;
  --bg-card: #141418;
  --bg-muted: #1c1c22;
  --border-subtle: #27272a;
  --border-strong: #3f3f46;

  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;

  --primary: #f97316;
  --primary-hover: #fb923c;
  --primary-light: #2b1708;
  --primary-border: #7c2d12;
  --primary-foreground: #ffffff;

  --success: #34d399;
  --success-bg: #064e3b;
  --danger: #f87171;
  --danger-bg: #450a0a;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 72px; /* Espaço para o menu mobile inferior */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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

/* Container Responsivo Unificado com o Hub (1280px) */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ─────────────────────────────────────────────
   HEADER EDITORIAL & TOPBAR (Consistente com Hub)
   ───────────────────────────────────────────── */
/* Regras herdadas diretamente do hub.css */

.category-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.category-chip:hover, .category-chip.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* Componentes de Badges (shadcn style) */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-orange {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-score {
  background: #09090b;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .badge-score {
  background: #27272a;
  border: 1px solid #3f3f46;
}

/* Cards e Grid Editorial */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .editorial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card shadcn / Tecnoblog */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-muted);
  overflow: hidden;
}

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

.article-card:hover .card-thumb-wrap img {
  transform: scale(1.03);
}

.card-badge-pos {
  position: absolute;
  top: 12px;
  left: 12px;
}

.card-score-pos {
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* Banner de Destaque Hero */
.hero-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 860px) {
  .hero-feature {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-feature:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.hero-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-muted);
}

@media (min-width: 860px) {
  .hero-thumb {
    aspect-ratio: auto;
    height: 100%;
  }
}

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

.hero-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0.75rem 0;
  letter-spacing: -0.02em;
}

@media (min-width: 860px) {
  .hero-title {
    font-size: 1.85rem;
  }
}

/* Bottom Bar no Mobile (App-like experience) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
}

[data-theme="dark"] .mobile-bottom-bar {
  background-color: rgba(9, 9, 11, 0.95);
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 20%;
  height: 100%;
}

.bottom-bar-item.active {
  color: var(--primary);
}

.bottom-bar-item svg {
  width: 20px;
  height: 20px;
}

/* ========================================================
   Tipografia Editorial e Artigos Ricos (.article-content)
   Padrão 11 Seções — Layout em 2 Colunas Desktop (1240px)
   ======================================================== */

.article-layout {
  width: 100%;
  max-width: 1240px;
  margin: 1.75rem auto 4.5rem auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Grid de 2 Colunas: Artigo (860px) + Sidebar (340px) */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3.25rem;
    align-items: start;
  }
}

.article-main-col {
  min-width: 0;
  width: 100%;
}

/* Sidebar Editorial High-Tech Sticky */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .article-sidebar {
    position: sticky;
    top: 126px; /* 60px header + ~48px cat-bar + 18px respiro visual */
  }
}

/* Widgets da Sidebar */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast);
}

.sidebar-widget:hover {
  border-color: var(--border-strong);
}

.sidebar-widget-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-widget-title svg {
  color: var(--primary);
}

/* Widget de Produto Recomendado */
.sidebar-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-product-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-muted);
}

.sidebar-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-product-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.sidebar-product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sidebar-product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.25rem 0;
}

.sidebar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--t-fast);
  text-align: center;
}

.sidebar-btn:hover {
  background: var(--primary-hover);
}

/* Widget de Artigos Mais Lidos / Em Alta */
.sidebar-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-article-item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity var(--t-fast);
}

.sidebar-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-article-item:hover {
  opacity: 0.85;
}

.sidebar-article-thumb {
  width: 68px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-muted);
}

.sidebar-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-article-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.sidebar-article-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-meta {
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* Widget STL Grátis */
.sidebar-stl-widget {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(234, 88, 12, 0.02) 100%);
  border: 1px solid var(--primary-border);
}

/* ① Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.article-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--t-fast);
}

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

.article-breadcrumb svg {
  color: var(--text-faint);
  flex-shrink: 0;
}

.article-breadcrumb span[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* ② Header do Artigo */
.article-header {
  margin-bottom: 2rem;
}

.article-category-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.article-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  color: var(--text-main);
}

.author-date {
  color: var(--text-faint);
  font-size: 0.78rem;
}

.article-updated {
  color: var(--primary);
  font-weight: 600;
  margin-left: 4px;
}

.article-reading-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ③ Hero Image */
.article-hero {
  margin: 0 0 2.25rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
}

.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ④ Caixa de Resposta Rápida (Direto ao Ponto) */
.article-verdict {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.article-verdict-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.article-verdict-header h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.article-verdict p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-main);
  margin: 0;
}

/* Prós e Contras */
.article-pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.pros-card {
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.pros-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.pros-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

.cons-card {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.cons-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.cons-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* ⑤ Índice do Artigo (TOC) */
.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.article-toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 0;
  font-family: inherit;
}

.article-toc-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.article-toc-title svg {
  color: var(--primary);
}

.toc-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.article-toc.collapsed .toc-chevron {
  transform: rotate(-90deg);
}

.article-toc-list {
  margin: 1.15rem 0 0 0;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.article-toc.collapsed .article-toc-list {
  display: none;
}

.article-toc-list li {
  line-height: 1.45;
}

.article-toc-list li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}

.article-toc-list li a:hover {
  color: var(--primary);
}

/* ⑥ Conteúdo do Artigo (.article-content) */
.article-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-main);
  max-width: 100%;
}

.article-content p {
  margin-bottom: 1.75rem;
  color: var(--text-main);
}

.article-content p.lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2rem;
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
}

.article-content h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-top: 3.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 80px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.015em;
  scroll-margin-top: 80px;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.85rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.65rem;
  line-height: 1.7;
}

.article-content strong {
  color: var(--text-main);
  font-weight: 700;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--primary);
}

/* ⑦ Figuras & Imagens Intermediárias */
.article-figure {
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article-figure figcaption {
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  text-align: center;
  font-style: italic;
}

/* Tabelas Editoriais Responsivas */
.article-content .table-container {
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 520px;
}

.article-content th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.35rem;
  border-bottom: 2px solid var(--border-subtle);
}

.article-content td {
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  line-height: 1.5;
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content tr:hover td {
  background: rgba(249, 115, 22, 0.03);
}

/* Linha de Total / Destaque na Tabela */
.article-content tr.total-row td,
.article-content tr.destaque-row td {
  background: var(--bg-surface);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--primary);
  border-top: 2px solid var(--primary-border);
}

/* Callouts / Caixas de Destaque */
.article-callout {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.25rem 0;
}

.article-callout-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

/* Cards de Produtos / Recomendação de Equipamentos (Monetização contextual) */
.article-product-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast);
}

@media (min-width: 640px) {
  .article-product-card {
    grid-template-columns: 200px 1fr;
  }
}

.article-product-card:hover {
  border-color: var(--primary);
}

.article-product-thumb {
  background: var(--bg-muted);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 140px;
}

.article-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-product-info {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.article-product-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.article-product-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.article-product-pricing {
  margin-top: 0.5rem;
}

.product-card-thumb {
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-card-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.product-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--t-fast);
}

.product-card-btn:hover {
  background: var(--primary-hover);
}

/* ⑧ Artigos Relacionados (Leia Também) */
.article-related {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.article-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.article-section-title svg {
  color: var(--primary);
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.related-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-muted);
}

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

.related-card:hover .related-card-thumb img {
  transform: scale(1.04);
}

.related-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.related-card-type {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.related-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0;
}

.related-card-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ⑨ FAQ com Accordion Moderno */
.article-faq {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.faq-item[open] {
  border-color: var(--primary-border);
}

.faq-item summary {
  padding: 1.15rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.4rem 1.25rem 1.4rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: -2px;
}

.faq-answer p {
  margin: 0;
}

/* ⑩ CTA / Monetização */
.article-cta {
  margin-top: 4rem;
  background: var(--bg-surface);
  border: 2px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.article-cta h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.75rem 0;
  color: var(--text-main);
}

.article-cta p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.article-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* Responsividade Mobile Especializada */
@media (max-width: 768px) {
  .article-layout {
    padding: 0 1rem;
    margin-top: 1rem;
  }

  .article-title {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .article-content {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Full-bleed na tabela no celular para leitura sem cortes laterais */
  .article-content .table-container {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .article-content th,
  .article-content td {
    padding: 0.85rem 1rem;
  }

  .article-cta {
    padding: 1.75rem 1.25rem;
  }

  .article-cta-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}


