/* ============================================================
   EDITORIAL.CSS - CureQuestChronicles Design System
   Paleta: Verde Água, Branco, Tons Terrosos
   Bootstrap 5 compatible
   ============================================================ */

/* ── Importação de Fontes ── */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Open+Sans:wght@300;400;600;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   VARIÁVEIS DO TEMA - Fácil troca entre os 3 sites
   ============================================================ */
:root {
  /* === PALETA CUREQUEST (Saúde & Bem-estar) === */
  --color-primary:       #3D9E94;   /* Verde água principal */
  --color-primary-dark:  #2C7A71;   /* Verde água escuro (hover) */
  --color-primary-light: #E6F5F4;   /* Verde água muito claro (fundos) */
  --color-accent:        #8B6F47;   /* Tom terroso / marrom quente */
  --color-accent-light:  #F5EFE6;   /* Tom terroso claro */

  /* === NEUTROS === */
  --color-dark:          #1A1A2E;   /* Quase preto para títulos */
  --color-text:          #333741;   /* Texto corpo */
  --color-muted:         #6B7280;   /* Texto secundário */
  --color-border:        #E5E7EB;   /* Bordas suaves */
  --color-bg:            #fefefe;   /* Fundo geral */
  --color-white:         #FFFFFF;

  /* === FEEDBACK === */
  --color-success:       #22C55E;
  --color-warning:       #F59E0B;
  --color-danger:        #EF4444;
  --color-info:          #3B82F6;

  /* === TIPOGRAFIA === */
  --font-sans:    'Open Sans', 'Lato', system-ui, sans-serif;
  --font-heading: 'Lato', 'Open Sans', sans-serif;
  --font-serif:   'Merriweather', Georgia, serif;

  /* === ESPAÇAMENTOS === */
  --spacing-xs:  0.5rem;
  --spacing-sm:  1rem;
  --spacing-md:  1.5rem;
  --spacing-lg:  2.5rem;
  --spacing-xl:  4rem;

  /* === BORDAS === */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* === SOMBRAS === */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.10);

  /* === LARGURA DE LEITURA === */
  --content-width: 760px;
  --wide-width:    1120px;
}

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

.editorial-page {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.editorial-page img { max-width: 100%; height: auto; }

/* ============================================================
   HEADER EDITORIAL
   ============================================================ */
.ed-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.ed-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
}

/* Logo */
.ed-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.ed-logo__mark {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-logo__mark svg { width: 20px; height: 20px; fill: white; }
.ed-logo__text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-dark);
  letter-spacing: -0.3px;
}
.ed-logo__text span { color: var(--color-primary); }

/* Nav Desktop */
.ed-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.ed-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}
.ed-nav a:hover,
.ed-nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Mobile Toggle */
.ed-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-dark);
}
.ed-nav-toggle svg { width: 24px; height: 24px; }

/* Mobile Nav */
.ed-mobile-nav {
  display: none;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1.25rem;
}
.ed-mobile-nav a {
  display: block;
  padding: 0.6rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.ed-mobile-nav a:last-child { border-bottom: none; }
.ed-mobile-nav.is-open { display: block; }

@media (max-width: 768px) {
  .ed-nav { display: none; }
  .ed-nav-toggle { display: flex; }
}

/* ============================================================
   FOOTER EDITORIAL
   ============================================================ */
.ed-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: var(--spacing-xl);
  font-size: 0.875rem;
}

.ed-footer__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}

.ed-footer__logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
/* Fundo escuro: primária escura (ex.: navy) sumia. Clareia mantendo o tom da marca. */
.ed-footer__logo span { color: rgba(255,255,255,0.85); }
.ed-footer__logo span { color: color-mix(in srgb, var(--color-primary) 40%, #fff); }

.ed-footer__desc {
  max-width: 480px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.ed-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ed-footer__links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.ed-footer__links a:hover { color: var(--color-primary); }

.ed-footer__copy {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

.ed-footer__disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ============================================================
   HERO - HOME
   ============================================================ */
.ed-hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 60%);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}
.ed-hero__badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.ed-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.ed-hero__title span { color: var(--color-primary); }

.ed-hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.article-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.article-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-primary-light);
}
.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .article-card__img img { transform: scale(1.04); }

.article-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.article-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  text-decoration: none;
  display: block;
}
.article-card__title:hover { color: var(--color-primary); }

.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}
.article-card__meta svg { width: 14px; height: 14px; opacity: 0.6; }

/* Badge de categoria */
.category-badge {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}
.category-badge:hover { background: var(--color-primary); color: #fff; }

/* ============================================================
   ARTIGO - HERO
   ============================================================ */
.article-hero {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-white) 100%);
  padding: 3rem 1.25rem 2rem;
  border-bottom: 1px solid var(--color-border);
}
.article-hero__container {
  max-width: var(--wide-width);
  margin: 0 auto;
  text-align: left;
}
.article-hero__container .article-hero__title,
.article-hero__container .article-hero__lead,
.article-hero__container .article-meta {
  max-width: 52rem;
}
.article-hero__category { margin-bottom: 1rem; }

.article-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.6vw, 42px);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  max-width: 48rem;
}
@media (max-width: 640px) {
  .article-hero__title {
    font-size: clamp(28px, 5.5vw, 32px);
    line-height: 1.22;
  }
}
.article-hero__lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}
.article-meta__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.article-meta__item svg { width: 15px; height: 15px; color: var(--color-primary); }

/* Imagem destaque */
.article-featured-img {
  max-width: var(--content-width);
  margin: 0 auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   LAYOUT ARTIGO (conteúdo + sidebar)
   ============================================================ */
.article-layout {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Sem sidebar */
.article-layout--full {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
}

/* ============================================================
   .post-content - ÁREA MAIS IMPORTANTE
   Estiliza o HTML vindo do TinyMCE
   ============================================================ */
.post-content {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text);
  max-width: var(--content-width);
}

/* Newsletter - após artigo (captura visual; backend TODO) */
/* Newsletter global (footer_editorial - todas as páginas editoriais) */
.ed-newsletter-wrap {
  max-width: var(--wide-width, 1200px);
  margin: 0 auto;
  padding: 0 1.25rem 8px;
}
body.rc-ads-page .ed-newsletter-wrap {
  padding-bottom: 4px;
}

.newsletter-box {
  margin: 48px auto 0;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
  max-width: 760px;
  text-align: center;
}
.newsletter-box h3 {
  font-size: 24px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  color: var(--color-dark);
}
.newsletter-box p {
  color: #475569;
  margin-bottom: 18px;
}
.newsletter-box form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-box input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
}
.newsletter-box button[type="submit"] {
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: #1d2784;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}
.newsletter-box small {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 0.85rem;
}
@media (max-width: 640px) {
  .newsletter-box form {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-box input[type="email"],
  .newsletter-box button[type="submit"] {
    max-width: 100%;
    width: 100%;
  }
}

.post-content > * + * { margin-top: 1.5rem; }

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.3;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.post-content h1 { font-size: 2rem; font-weight: 900; letter-spacing: -0.5px; }
.post-content h2 {
  font-size: 1.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
  color: var(--color-dark);
}
.post-content h3 { font-size: 1.25rem; color: var(--color-dark); }
.post-content h4 { font-size: 1.1rem; color: var(--color-accent); }
.post-content h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.post-content h6 { font-size: 0.9rem; color: var(--color-muted); text-transform: uppercase; }

/* Parágrafos */
.post-content p {
  margin-top: 0;
  margin-bottom: 1.4rem;
  color: var(--color-text);
}
.post-content p:last-child { margin-bottom: 0; }

/* Links */
.post-content a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(61,158,148,0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.post-content a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: var(--color-primary);
}

/* Strong / Em */
.post-content strong { font-weight: 700;}
.post-content em { font-style: italic; color: var(--color-accent); }

/* Listas */
.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.post-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  line-height: 1.7;
}
.post-content ul li::marker { color: var(--color-primary); font-size: 1.1em; }
.post-content ol li::marker { color: var(--color-primary); font-weight: 700; }

/* Imagens */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  margin: 1.75rem auto;
  box-shadow: var(--shadow-sm);
}
.post-content figure {
  margin: 2rem 0;
  text-align: center;
}
.post-content figcaption {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Blockquote */
.post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-accent);
  font-size: 1.05rem;
  line-height: 1.7;
}
.post-content blockquote p { margin-bottom: 0; color: inherit; }
.post-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-muted);
}

/* HR */
.post-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* Tabelas */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-content table thead {
  background: var(--color-primary);
  color: #fff;
}
.post-content table thead th {
  padding: 0.85rem 1rem;
  font-weight: 700;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.post-content table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}
.post-content table tbody tr:hover { background: var(--color-primary-light); }
.post-content table td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
}
.post-content table td:first-child { font-weight: 600; }

/* Code */
.post-content code {
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
}
.post-content pre {
  background: var(--color-dark);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 1.75rem 0;
}
.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Mobile .post-content */
@media (max-width: 600px) {
  .post-content { font-size: 1rem; }
  .post-content h1 { font-size: 1.6rem; }
  .post-content h2 { font-size: 1.3rem; }
  .post-content h3 { font-size: 1.1rem; }
  .post-content table { font-size: 0.82rem; }
  .post-content table th,
  .post-content table td { padding: 0.6rem 0.6rem; }

  .post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.ed-breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.ed-breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ed-breadcrumb a:hover { color: var(--color-primary); }
.ed-breadcrumb__sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}
.ed-breadcrumb__current { color: var(--color-text); font-weight: 600; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.ed-sidebar { position: sticky; top: 80px; }

.sidebar-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box__title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary-light);
}
.sidebar-box--cta {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.sidebar-box--cta .sidebar-box__title { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }

.sidebar-score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.sidebar-score__label { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 1rem; }

.sidebar-highlights { list-style: none; padding: 0; margin: 0 0 1rem; }
.sidebar-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--color-text);
  padding: 0.3rem 0;
}
.sidebar-highlights li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   COMPONENTES - CTA BOX
   ============================================================ */
.cta-box {
  background: linear-gradient(135deg, var(--color-primary-light), #fff);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}
.cta-box__text {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

/* Botões */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}
.btn-editorial--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.btn-editorial--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}
.btn-editorial--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-editorial--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-editorial--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-editorial--accent:hover {
  filter: brightness(0.92);
  color: #fff;
}
.btn-editorial--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-editorial--sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; border-radius: var(--radius-md); }

/* CTA inline */
.cta-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.cta-inline:hover { background: var(--color-primary-dark); color: #fff; }

/* ============================================================
   COMPONENTES - PROS E CONTRAS
   ============================================================ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 540px) { .pros-cons { grid-template-columns: 1fr; } }

.pros-cons__col { padding: 1.25rem; }
.pros-cons__col--pros { background: #F0FBF6; border: 1px solid #BBF7D0; border-radius: var(--radius-md) 0 0 var(--radius-md); }
.pros-cons__col--cons { background: #FFF5F5; border: 1px solid #FCA5A5; border-radius: 0 var(--radius-md) var(--radius-md) 0; }

@media (max-width: 540px) {
  .pros-cons__col--pros { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .pros-cons__col--cons { border-radius: 0 0 var(--radius-md) var(--radius-md); }
}

.pros-cons__title {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pros-cons__col--pros .pros-cons__title { color: #16A34A; }
.pros-cons__col--cons .pros-cons__title { color: #DC2626; }

.pros-cons__list { list-style: none; padding: 0; margin: 0; }
.pros-cons__list li {
  font-size: 0.92rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.5;
}
.pros-cons__col--pros .pros-cons__list li::before { content: "✓"; color: #16A34A; font-weight: 700; flex-shrink: 0; }
.pros-cons__col--cons .pros-cons__list li::before { content: "✗"; color: #DC2626; font-weight: 700; flex-shrink: 0; }

/* ============================================================
   COMPONENTES - REVIEW BOX (Sidebar/Inline)
   ============================================================ */
.review-box {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
}
.review-box__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.review-box__score {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}
.review-box__score-label { font-size: 0.78rem; color: var(--color-muted); margin-top: 0.15rem; }
.review-box__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-dark);
}
.review-box__summary { font-size: 0.92rem; color: var(--color-muted); }

.review-stars { color: #F59E0B; font-size: 1.1rem; letter-spacing: 2px; }

/* ============================================================
   COMPONENTES - BOTÕES DE COMPRA (CupomFacil, marca, Amazon, ML)
   ============================================================ */
.purchase-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0;
}
.purchase-buttons__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-body, inherit);
  border-radius: var(--radius-md);
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.12s ease;
}
.purchase-buttons__btn:hover {
  opacity: 0.93;
  transform: translateY(-1px);
}
.purchase-buttons__btn--cupomfacil {
  background-color: #1d2784;
  color: #fff;
}
.purchase-buttons__btn--marca {
  background-color: #b0003a;
  border-color: #b0003a;
  color: #fff;
}
.purchase-buttons__btn--amazon {
  background-color: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}
.purchase-buttons__btn--mercadolivre {
  background-color: #ffe600;
  color: #222;
  border-color: #e6cf00;
}
@media (max-width: 480px) {
  .purchase-buttons { grid-template-columns: 1fr; }
}

/* ============================================================
   COMPONENTES - TABELA COMPARATIVA DE PRODUTOS (json_produtos)
   ============================================================ */
.comparison-table-wrap { overflow-x: auto; margin: 2rem 0; -webkit-overflow-scrolling: touch; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.comparison-table thead tr {
  background: var(--color-primary);
  color: #fff;
}
.comparison-table thead th {
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: left;
}
.comparison-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
  transition: background 0.15s;
}
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--color-primary-light); }
.comparison-table tbody tr.is-best {
  background: #FFFBEB;
  border-left: 4px solid var(--color-warning);
}
.comparison-table td { padding: 0.9rem 1.1rem; vertical-align: middle; }
.comparison-table .produto-rank {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  width: 50px;
  text-align: center;
}
.comparison-table .produto-nome { font-weight: 700; color: var(--color-dark); }
.comparison-table .produto-nota {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-primary);
}
.comparison-table .produto-nota-stars { font-size: 0.8rem; color: #F59E0B; }
.comparison-table .produto-img {
  width: 70px;
  height: 50px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.comparison-table__actions,
.comparison-table__actions-cell {
  min-width: 11rem;
  vertical-align: top;
}
.comparison-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
}
.comparison-ctas__btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.72rem !important;
  padding: 0.4rem 0.55rem !important;
  line-height: 1.25;
  box-sizing: border-box;
}
.sidebar-comparison-ctas {
  margin-top: 0.75rem;
  width: 100%;
}
.sidebar-comparison-ctas .comparison-ctas__btn {
  font-size: 0.68rem !important;
}

.seal-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: var(--color-warning);
  color: #1a1a1a;
}
.seal-badge--green { background: var(--color-primary-light); color: var(--color-primary-dark); }

/* ============================================================
   COMPONENTES - FAQs
   ============================================================ */
.faq-block { margin: 2.5rem 0; }
.faq-block__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.625rem;
}
.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
  cursor: pointer;
  user-select: none;
  background: var(--color-white);
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
  gap: 0.75rem;
}
.faq-item__q:hover { background: var(--color-primary-light); }
.faq-item__icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform 0.25s;
  font-weight: 300;
  line-height: 1;
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  display: none;
  padding: 0.875rem 1.25rem 1.125rem;
  font-size: 0.93rem;
  color: var(--color-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  background: #FAFAFA;
}
.faq-item.is-open .faq-item__a { display: block; }

/* ============================================================
   COMPONENTES - NOTE / DESTAQUE / AVISO
   ============================================================ */
.note-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
  border-left: 4px solid;
}
.note-box__icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1.4; }
.note-box__content { flex: 1; font-size: 0.93rem; line-height: 1.7; }
.note-box__content strong { display: block; margin-bottom: 0.2rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

.note-box--info    { background: #EFF6FF; border-color: var(--color-info); }
.note-box--info .note-box__icon, .note-box--info strong { color: var(--color-info); }
.note-box--success { background: #F0FBF6; border-color: var(--color-success); }
.note-box--success .note-box__icon, .note-box--success strong { color: var(--color-success); }
.note-box--warning { background: #FFFBEB; border-color: var(--color-warning); }
.note-box--warning .note-box__icon, .note-box--warning strong { color: var(--color-warning); }
.note-box--tip     { background: var(--color-primary-light); border-color: var(--color-primary); }
.note-box--tip .note-box__icon, .note-box--tip strong { color: var(--color-primary); }

/* ============================================================
   COMPONENTES - "PARA QUEM É"
   ============================================================ */
.for-whom-box {
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
}
.for-whom-box__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.for-whom-list { list-style: none; padding: 0; margin: 0; }
.for-whom-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.93rem;
  color: var(--color-text);
}
.for-whom-list li .icon { font-size: 1rem; flex-shrink: 0; }
.for-whom-list--ideal li .icon { color: var(--color-success); }
.for-whom-list--not li .icon { color: var(--color-danger); }

/* ============================================================
   COMPONENTES - DISCLAIMER AFILIADO
   ============================================================ */
.affiliate-disclaimer {
  background: #FAFAFA;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 2rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.affiliate-disclaimer__icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; opacity: 0.6; }

/* ============================================================
   SEÇÃO DE LISTAGEM (blog_editorial)
   ============================================================ */
.ed-section {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.ed-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #cfd3cf;
}
.ed-section--home .ed-section__header {
  margin-bottom: 1.35rem;
}
.ed-section__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
}
.ed-section--home .ed-section__title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.ed-section__subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}
.ed-section--home .ed-section__subtitle {
  font-size: 0.86rem;
  color: #5a6268;
}
.ed-section__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.ed-section__link:hover { color: var(--color-primary-dark); }

/* Grid cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 540px) { .articles-grid { grid-template-columns: 1fr; } }

/* Artigo destaque grande */
.article-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  max-height: 350px;
}
.article-card--featured .article-card__img {
  flex: 0 0 45%;
  aspect-ratio: auto;
  max-height: 350px;
}
.article-card--featured .article-card__title { font-size: 1.4rem; }

/* Cards na home - estilo portal tech/editorial */
.articles-grid .article-card--editorial {
  border-radius: 6px;
  border-color: #deded8;
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.articles-grid .article-card--editorial:hover {
  transform: none;
  border-color: #bfc4bf;
  background: #fafaf8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.articles-grid .article-card--editorial .article-card__body {
  padding: 0.75rem 0.95rem 0.95rem;
}
.articles-grid .article-card--editorial .article-card__title {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: #0f1419;
}
.articles-grid .article-card--editorial .article-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.55rem;
  color: #4a5258;
}
.articles-grid .article-card--editorial .article-card__meta {
  border-top: none;
  padding-top: 0.45rem;
  margin-top: auto;
  font-size: 0.74rem;
  color: #5c656c;
}
.articles-grid .article-card--editorial:hover .article-card__img img {
  transform: scale(1.02);
}
.articles-grid .article-card--featured.article-card--editorial .article-card__title {
  font-size: clamp(1.12rem, 2.1vw, 1.38rem);
}
.article-card__excerpt--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 700px) {
  .article-card--featured { flex-direction: column; max-height: none; }
  .article-card--featured .article-card__img { flex: none; aspect-ratio: 16/9; max-height: none; }
}

/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.ed-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}
.ed-pagination a,
.ed-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.15s;
}
.ed-pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.ed-pagination .active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.text-primary { color: var(--color-primary) !important; }
.text-accent  { color: var(--color-accent) !important; }
.text-muted   { color: var(--color-muted) !important; }
.bg-primary-light { background-color: var(--color-primary-light) !important; }
.bg-accent-light  { background-color: var(--color-accent-light) !important; }

.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 2rem 0;
}

/* Barra de progresso de leitura */
.reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-primary);
  z-index: 999;
  transition: width 0.1s linear;
}

/* ============================================================
   HOME INSTITUCIONAL + BANNERS + TRUST + FOOTER EDITORIAL
   ============================================================ */
.ed-hero--institutional {
  padding: 3.25rem 1.25rem 2.5rem;
}
.ed-hero__inner {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}
.ed-hero__title--plain {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 1rem;
}
.ed-hero__subtitle--narrow {
  font-size: 1.08rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}
.ed-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Home editorial - hero humano (alinhado à esquerda, menos “landing”) */
.ed-hero--editorial {
  text-align: left;
  background: #f3f4f2;
  border-bottom: 1px solid #d8dcd4;
  padding: 2.65rem 1.25rem 2.15rem;
}
.ed-hero--editorial .ed-hero__inner {
  max-width: var(--wide-width);
  text-align: left;
}
.ed-hero--editorial .ed-hero__copy {
  max-width: 38rem;
  padding-right: clamp(0.5rem, 4vw, 2.5rem);
}
.ed-hero--editorial .ed-hero__title--plain {
  font-size: clamp(1.45rem, 3.1vw, 2.05rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #0f1419;
  margin-bottom: 0.85rem;
}
.ed-hero--editorial .ed-hero__subtitle--narrow {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  margin-left: 0;
  margin-right: 0;
  color: #374045;
  font-size: 1.04rem;
  line-height: 1.58;
}
.ed-hero--editorial .ed-hero__actions {
  justify-content: flex-start;
}
.ed-hero--editorial .btn-editorial {
  border-radius: 6px;
  box-shadow: none;
}
.ed-hero--editorial .btn-editorial--primary:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transform: none;
}

.ed-hero-kicker {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: -0.01em;
}
.ed-hero-seals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding-top: 1rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(15, 20, 25, 0.08);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  max-width: 48rem;
}
.ed-hero-seals__item {
  white-space: nowrap;
}
.ed-hero-seals__sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9ca3af;
  flex-shrink: 0;
  opacity: 0.85;
}
@media (max-width: 520px) {
  .ed-hero-seals__item {
    white-space: normal;
  }
}

.rc-hero-home-disclosure {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 1.25rem 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  text-align: left;
}

.ed-section--home {
  padding-top: 1rem;
  max-width: 1120px;
}
.ed-section--home .articles-grid--rc-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .ed-section--home .articles-grid--rc-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .ed-section--home .articles-grid--rc-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.articles-grid--featured {
  gap: 1rem;
}
.articles-grid--featured .article-card--featured {
  grid-column: 1 / -1;
}
.article-card__readmore {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.article-card__readmore:hover { text-decoration: underline; }

.ed-trust {
  margin: 2.5rem 0 1rem;
  padding: 1.65rem 1.15rem;
  background: #eeefed;
  border: 1px solid #c9cec9;
  border-radius: 6px;
  box-shadow: none;
}
.ed-trust__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: left;
  margin-bottom: 1.25rem;
  color: #0f1419;
  letter-spacing: -0.02em;
}
.ed-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .ed-trust__grid { grid-template-columns: 1fr; }
}
.ed-trust__card {
  background: #fff;
  border-radius: 4px;
  padding: 1rem 1.05rem;
  border: 1px solid #d5d9d5;
  box-shadow: none;
}
.ed-trust__card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}
.ed-trust__card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.55;
}

.ed-empty-state {
  text-align: center;
  padding: 3rem 1rem 4rem;
}
.ed-empty-state__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}
.ed-empty-state__text {
  color: var(--color-muted);
  max-width: 28rem;
  margin: 0 auto;
}

.ed-banner-slot {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.ed-banner-slot--below-header { margin-top: 0.5rem; margin-bottom: 0.25rem; }
.ed-banner-slot--above-footer { margin-top: 2rem; }

.rc-ad {
  margin: 24px auto;
  text-align: center;
  max-width: 100%;
}
.rc-ad-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.rc-ad img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: inline-block;
}
.rc-ad--wide { max-width: 1180px; }
.rc-ad--content { max-width: 780px; margin-left: auto; margin-right: auto; }
.rc-ad--sidebar {
  position: sticky;
  top: 90px;
}
@media (max-width: 991px) {
  .rc-ad--sidebar { display: none; }
}
.ed-sidebar--banners {
  width: 300px;
  max-width: 100%;
}

.ed-footer__col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}
.ed-footer__links--stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ed-footer__hr {
  border-color: rgba(255,255,255,0.1);
}
.ed-footer__affiliate {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin: 0;
}

/* ── Páginas institucionais (PT) ── */
.institutional-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 16px 72px;
}
.institutional-page h1 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #111827;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.institutional-page .lead {
  font-size: 18px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 28px;
}
.institutional-page h2 {
  font-size: 24px;
  margin-top: 34px;
  margin-bottom: 12px;
  color: #111827;
  font-family: var(--font-heading);
  font-weight: 800;
}
.institutional-page p,
.institutional-page li {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}
.institutional-page ul {
  padding-left: 22px;
}
.institutional-page a {
  color: #1d2784;
  font-weight: 600;
}
.institutional-note {
  background: #f8fafc;
  border-left: 4px solid #1d2784;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 28px 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}
.institutional-contact-form {
  margin-top: 1.5rem;
  max-width: 520px;
}
@media (max-width: 640px) {
  .institutional-page {
    padding: 36px 14px 48px;
  }
  .institutional-page h1 {
    font-size: 28px;
  }
  .institutional-page h2 {
    font-size: 1.15rem;
  }
}

/* ── Badge tipo (Review / Comparativo / Guia) ── */
.article-card__type-badge {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1d2784;
  background: #eef0fb;
  border: 1px solid #c6cce8;
  padding: 0.16rem 0.45rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.ed-section--home .newsletter-box {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  background: #fff;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Aviso afiliado (ícone sem emoji) ── */
.affiliate-disclaimer__icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
  margin-top: 0.15rem;
  position: relative;
  vertical-align: top;
}
.affiliate-disclaimer__icon::after {
  content: 'i';
  font-size: 0.62rem;
  font-weight: 800;
  font-style: normal;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  line-height: 1;
}

/* ── Modo ?ads=1 (tráfego pago / conversão) ── */
body.rc-ads-page {
  background: #fefefe;
  color: #111827;
}

.rc-ads-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
}
.rc-ads-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.rc-ads-logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: #111827;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.rc-ads-logo.ed-logo {
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.rc-ads-logo strong {
  color: #0057a8;
}

.rc-ads-main {
  background: #fefefe;
  padding: 28px 16px 48px;
}
.rc-ads-article {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}
.rc-ads-title {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  color: #111827;
  font-family: var(--font-heading);
  font-weight: 900;
}
.rc-ads-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 16px;
}
.rc-ads-meta {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 22px;
}
.rc-ads-meta__sep {
  opacity: 0.85;
}
.rc-ads-cover {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 18px 0 28px;
  display: block;
}
.rc-affiliate-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1d2784;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 18px 0 24px;
}
.rc-ads-post.post-content {
  max-width: none;
}
.rc-ads-footer {
  max-width: 820px;
  margin: 22px auto 0;
  padding: 0 16px 32px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}
.rc-ads-footer p {
  margin: 0 0 0.35rem;
}
.rc-ads-footer__legal {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 11px;
}
.rc-ads-footer__legal a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rc-ads-footer__legal a:hover {
  color: #1e293b;
}
.rc-ads-footer__sep {
  color: #cbd5e1;
  user-select: none;
}
@media (max-width: 768px) {
  .rc-ads-main {
    padding: 14px 10px 32px;
  }
  .rc-ads-article {
    padding: 20px;
    border-radius: 14px;
  }
  .rc-ads-title {
    font-size: 28px;
  }
}

/* ============================================================
   TEMA: TopDealNow - editorial tech / SaaS (CTA accent, brand primary)
   ============================================================ */
.tema-topdealnow .btn-editorial--primary,
.tema-topdealnow .btn-editorial--primary:hover {
  background: var(--color-accent);
  border-color: transparent;
  color: #fff;
}
.tema-topdealnow .btn-editorial--primary:hover {
  background: color-mix(in srgb, var(--color-accent) 88%, #000);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.22);
}
.tema-topdealnow .cta-inline,
.tema-topdealnow .cta-inline:hover {
  background: var(--color-accent);
  color: #fff;
}
.tema-topdealnow .cta-inline:hover {
  background: color-mix(in srgb, var(--color-accent) 88%, #000);
}
.tema-topdealnow .ed-hero--editorial .btn-editorial--primary:hover {
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.2);
}
.tema-topdealnow .institutional-contact-form .btn.btn-primary {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}
.tema-topdealnow .institutional-contact-form .btn.btn-primary:hover {
  filter: brightness(0.92);
}

.tema-topdealnow .purchase-buttons__btn--marca {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.tema-topdealnow .purchase-buttons__btn--marca:hover {
  filter: brightness(0.95);
}

.tema-topdealnow .ed-hero {
  background: linear-gradient(180deg, var(--color-bg) 0%, #fff 72%);
}
.tema-topdealnow .ed-hero__badge {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
}
.tema-topdealnow .article-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.tema-topdealnow .article-card:hover {
  box-shadow: var(--shadow-md);
}
.tema-topdealnow .cta-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.tema-topdealnow .seal-badge {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  font-weight: 600;
}
.tema-topdealnow .seal-badge--green {
  background: var(--color-accent-light);
  color: #166534;
  border: 1px solid color-mix(in srgb, var(--color-accent) 28%, transparent);
}
.tema-topdealnow .comparison-table tbody tr.is-best {
  background: var(--color-accent-light);
  border-left-color: var(--color-accent);
}
.tema-topdealnow .comparison-table .produto-nota-stars,
.tema-topdealnow .review-stars {
  color: #92400e;
}
.tema-topdealnow .ed-hero--editorial .ed-hero__title--plain {
  color: var(--color-dark);
}
.tema-topdealnow .ed-hero--editorial .ed-hero__subtitle--narrow {
  color: var(--color-muted);
}

.tema-topdealnow .review-box {
  border-width: 1px;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   EDITORIAL PREMIUM HEADER/MOBILE FIX v2026
   (anexado em maio/2026 - máxima prioridade)
   Resolve: header sticky invisível ao rolar, transparência,
   z-index baixo, stacking context quebrado por overflow ancestral,
   menu mobile premium (hamburger animado + drawer).
   ============================================================ */

/* Anti-stacking: html não pode criar contexto que quebre o sticky */
html { overflow-x: visible; }
body { overflow-x: clip; }

/* Header sempre sólido, opaco, sticky e visível */
body.editorial-page .ed-header,
body.editorial-page header.ed-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  width: 100%;
  z-index: 9999 !important;
  background: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

body.editorial-page .ed-header__inner {
  background: transparent;
  opacity: 1 !important;
  visibility: visible !important;
}

body.editorial-page .ed-header .ed-logo,
body.editorial-page .ed-header .ed-logo__text,
body.editorial-page .ed-header .ed-logo__text span,
body.editorial-page .ed-header .ed-nav,
body.editorial-page .ed-header .ed-nav a,
body.editorial-page .ed-header .ed-nav-toggle {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
}

body.editorial-page .ed-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

/* Reading progress: barra fina, fixed no topo, NUNCA empurra o header */
.reading-progress {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0%;
  height: 3px !important;
  z-index: 10000 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, var(--color-primary, #2563eb) 0%, var(--color-accent, #22c55e) 100%);
}

/* Conteúdos não devem clipar o sticky */
.editorial-page main,
.editorial-page .ed-banner-slot,
.editorial-page .ed-hero,
.editorial-page .ed-section,
.editorial-page .article-layout,
.editorial-page .article-main { overflow: visible; }

/* Modo ads (?ads=1): header minimalista, NÃO sticky */
body.rc-ads-page .ed-header { position: static !important; z-index: auto !important; }

/* ----------------------------------------------------------
   Hamburger animado (ic-open / ic-close)
   ---------------------------------------------------------- */
.ed-nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.ed-nav-toggle:hover { background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.08); }
.ed-nav-toggle:focus-visible { outline: 2px solid var(--color-primary, #2563eb); outline-offset: 2px; }
.ed-nav-toggle svg { width: 22px; height: 22px; display: block; transition: transform .2s ease, opacity .2s ease; }
.ed-nav-toggle .ic-close { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg) scale(.8); opacity: 0; }
.ed-nav-toggle[aria-expanded="true"] .ic-open  { transform: rotate(90deg) scale(.8); opacity: 0; }
.ed-nav-toggle[aria-expanded="true"] .ic-close { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1; }

/* ----------------------------------------------------------
   Drawer mobile premium
   ---------------------------------------------------------- */
.ed-mobile-nav {
  display: block;
  position: fixed;
  inset: 64px 0 0 auto;
  width: min(86vw, 360px);
  max-width: 100%;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  background: #ffffff;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.12);
  padding: 1.25rem 1.25rem 2rem;
  overflow-y: auto;
  z-index: 9998;
  transform: translateX(100%);
  transition: transform .28s ease;
  pointer-events: none;
  border-top: 0;
}
.ed-mobile-nav.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.ed-mobile-nav a {
  display: block;
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease, padding .15s ease;
}
.ed-mobile-nav a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-primary, #2563eb);
  padding-left: 0.85rem;
}
.ed-mobile-nav a:last-child { border-bottom: none; }

/* Overlay clicável */
.ed-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9997;
}
.ed-mobile-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
body.has-mobile-menu-open { overflow: hidden; }

/* ----------------------------------------------------------
   Breakpoints: desktop ≥ 992px / mobile ≤ 991.98px
   ---------------------------------------------------------- */
@media (min-width: 992px) {
  body.editorial-page .ed-nav { display: flex !important; }
  body.editorial-page .ed-nav-toggle { display: none !important; }
  body.editorial-page .ed-mobile-nav,
  body.editorial-page .ed-mobile-overlay { display: none !important; }
}

@media (max-width: 991.98px) {
  body.editorial-page .ed-nav { display: none !important; }
  body.editorial-page .ed-nav-toggle { display: inline-flex !important; }
  body.editorial-page .ed-header { background: #ffffff !important; }
}

/* ============================================================
   FIM DO BLOCO PREMIUM v2026
   ============================================================ */

/* ───────────────────────────────────────────────────────────────────────────
   EDITORIAL PREMIUM REFINEMENT v2026.05.12
   Apenas refinamentos visuais. Não altera layout, schema, tracking, ads=1.
   ─────────────────────────────────────────────────────────────────────────── */

/* ========== 1. TIPOGRAFIA PREMIUM DO ARTIGO ========== */
.editorial-page .post-content {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: #1f2937;
  letter-spacing: -0.003em;
}
.editorial-page .post-content > p {
  margin: 0 0 1.35rem;
}
.editorial-page .post-content h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  color: #0f172a;
  scroll-margin-top: 96px;
}
.editorial-page .post-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.editorial-page .post-content h3 {
  font-size: clamp(1.18rem, 1.9vw, 1.35rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2rem 0 0.75rem;
  color: #0f172a;
  scroll-margin-top: 96px;
}
.editorial-page .post-content h4 {
  font-size: 1.075rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: #0f172a;
  scroll-margin-top: 96px;
}
.editorial-page .post-content ul,
.editorial-page .post-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.35rem;
}
.editorial-page .post-content ul li,
.editorial-page .post-content ol li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
}
.editorial-page .post-content ul li::marker { color: rgba(15, 23, 42, 0.4); }
.editorial-page .post-content a {
  color: #1d4ed8;
  text-decoration-color: rgba(29, 78, 216, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.editorial-page .post-content a:hover {
  color: #1e3a8a;
  text-decoration-color: #1d4ed8;
}
.editorial-page .post-content blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  border-left: 3px solid #1d4ed8;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 0 14px 14px 0;
  color: #1f2937;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
}
.editorial-page .post-content blockquote p:last-child { margin-bottom: 0; }
.editorial-page .post-content img,
.editorial-page .post-content figure img {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
}
.editorial-page .post-content hr {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 2.5rem auto;
  max-width: 4rem;
}
.editorial-page .post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.96rem;
}
.editorial-page .post-content table th,
.editorial-page .post-content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
  vertical-align: top;
}
.editorial-page .post-content table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

/* ========== 2. HERO PREMIUM (eyebrow + byline) ========== */
.editorial-page .article-hero--premium {
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}
.editorial-page .article-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}
.editorial-page .article-eyebrow__type {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.65rem;
  background: linear-gradient(135deg, #eef4ff 0%, #f5f3ff 100%);
  border: 1px solid rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.editorial-page .article-eyebrow__sep {
  color: rgba(15, 23, 42, 0.25);
  font-weight: 400;
}
.editorial-page .article-eyebrow__cat {
  color: #475569;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color .15s ease;
}
.editorial-page .article-eyebrow__cat:hover { color: #1d4ed8; }

.editorial-page .article-hero--premium .article-hero__title {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #0b1220;
  margin: 0 0 1rem;
}
.editorial-page .article-hero--premium .article-hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  line-height: 1.6;
  color: #475569;
  margin: 0 0 1.25rem;
  max-width: 56ch;
}
.editorial-page .article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  padding: 0.6rem 0.95rem;
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  font-size: 0.86rem;
  color: #475569;
}
.editorial-page .article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.editorial-page .article-meta__item svg {
  width: 0.95rem;
  height: 0.95rem;
  color: rgba(71, 85, 105, 0.7);
}
.editorial-page .article-meta__item strong { color: #0f172a; font-weight: 600; }

/* ========== 3. TOC (Table of Contents) - compacto, sem scroll interno ========== */
.editorial-page .article-toc {
  margin: 0 0 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.editorial-page .article-toc[hidden] { display: none; }
.editorial-page .article-toc__summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #0f172a;
  text-align: left;
  border-radius: 14px 14px 0 0;
  transition: background .18s ease;
}
.editorial-page .article-toc__summary:hover { background: #f8fafc; }
.editorial-page .article-toc__icon svg,
.editorial-page .article-toc__chev svg { width: 1rem; height: 1rem; color: #1d4ed8; }
.editorial-page .article-toc__chev {
  margin-left: auto;
  transition: transform .25s ease;
}
.editorial-page .article-toc__summary[aria-expanded="true"] .article-toc__chev { transform: rotate(180deg); }
/* Lista compacta - SEM max-height, SEM overflow, SEM scroll interno */
.editorial-page .article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.editorial-page .article-toc__list[hidden] { display: none; }
.editorial-page .article-toc__list li { margin: 0; }
.editorial-page .article-toc__list a {
  display: block;
  padding: 0.5rem 1rem;
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
  border-left: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.editorial-page .article-toc__list a:hover {
  background: #f8fafc;
  color: #1d4ed8;
  border-left-color: rgba(29, 78, 216, 0.35);
}
.editorial-page .article-toc__list .article-toc__h3 { padding-left: 2rem; font-size: 0.88rem; color: #475569; }
.editorial-page .article-toc__list a.is-active {
  background: #eef4ff;
  color: #1d4ed8;
  border-left-color: #1d4ed8;
  font-weight: 600;
}
/* Quando o sumário está colapsado, esconde itens acima do limite (6) */
.editorial-page .article-toc.is-collapsed .article-toc__list > li:nth-child(n+7) { display: none; }
/* Toggle "Ver sumário completo" / "Mostrar menos" */
.editorial-page .article-toc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 1rem 0.85rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1d4ed8;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.editorial-page .article-toc__toggle:hover { background: #eef4ff; color: #1e40af; }
.editorial-page .article-toc__toggle:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.editorial-page .article-toc__toggle[hidden] { display: none; }
.editorial-page .article-toc__toggle::after {
  content: '\203A';
  display: inline-block;
  transform: rotate(90deg);
  transition: transform .2s ease;
  font-size: 1rem;
  line-height: 1;
}
.editorial-page .article-toc__toggle[aria-expanded="true"]::after { transform: rotate(-90deg); }

/* Desktop: bloco estático, sempre aberto, sem sticky (evita bug de scroll por trás) */
@media (min-width: 992px) {
  .editorial-page .article-toc__chev { display: none; }
  .editorial-page .article-toc__summary { cursor: default; }
  .editorial-page .article-toc__summary:hover { background: transparent; }
}

/* ========== 4. EDITORIAL SCORE BOX (CSS-only widget para admin no TinyMCE) ========== */
.editorial-page .editorial-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #0b1220 0%, #1e3a8a 100%);
  color: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.editorial-page .editorial-score__value {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.65rem;
  line-height: 1;
}
.editorial-page .editorial-score__value small {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.7;
  margin-top: 0.2rem;
  letter-spacing: 0.08em;
}
.editorial-page .editorial-score__body { flex: 1; min-width: 0; }
.editorial-page .editorial-score__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(248, 250, 252, 0.7);
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.editorial-page .editorial-score__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}
.editorial-page .editorial-score__text {
  font-size: 0.92rem;
  margin: 0;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.5;
}

/* ========== 5. METHODOLOGY BOX (Como avaliamos) ========== */
.editorial-page .article-methodology {
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem 1.6rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.editorial-page .article-methodology__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.editorial-page .article-methodology__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  background: #eef4ff;
  color: #1d4ed8;
  border-radius: 10px;
  flex-shrink: 0;
}
.editorial-page .article-methodology__icon svg { width: 1.15rem; height: 1.15rem; }
.editorial-page .article-methodology__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.editorial-page .article-methodology__lead {
  font-size: 0.96rem;
  color: #475569;
  margin: 0 0 0.85rem;
  line-height: 1.6;
}
.editorial-page .article-methodology__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.25rem;
}
.editorial-page .article-methodology__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}
.editorial-page .article-methodology__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  background: #eef4ff;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 50%;
  background-image: linear-gradient(135deg, transparent 45%, #1d4ed8 45%, #1d4ed8 55%, transparent 55%);
}
@media (max-width: 640px) {
  .editorial-page .article-methodology__list { grid-template-columns: 1fr; }
  .editorial-page .article-methodology { padding: 1.25rem 1.1rem; border-radius: 14px; }
}

/* ========== 6. AUTHOR/EDITORIAL BOX ========== */
.editorial-page .article-author-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin: 2rem 0 1rem;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
}
.editorial-page .article-author-box__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #3b82f6 100%);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.18);
}
.editorial-page .article-author-box__body { flex: 1; min-width: 0; }
.editorial-page .article-author-box__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #1d4ed8;
  margin: 0 0 0.3rem;
}
.editorial-page .article-author-box__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.editorial-page .article-author-box__text {
  font-size: 0.94rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .editorial-page .article-author-box {
    padding: 1.25rem;
    gap: 0.9rem;
    border-radius: 14px;
  }
  .editorial-page .article-author-box__avatar {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
}

/* ========== 7. "PARA QUEM VALE" BOX (componente para uso opcional no TinyMCE) ========== */
.editorial-page .fx-for-whom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.editorial-page .fx-for-whom__card {
  padding: 1.25rem 1.35rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.editorial-page .fx-for-whom__card--ideal { border-top: 3px solid #16a34a; }
.editorial-page .fx-for-whom__card--not-ideal { border-top: 3px solid #ea580c; }
.editorial-page .fx-for-whom__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
  color: #0f172a;
}
.editorial-page .fx-for-whom__card--ideal .fx-for-whom__title::before {
  content: "";
  width: 1.05rem; height: 1.05rem;
  background: #dcfce7;
  border-radius: 50%;
  background-image: linear-gradient(135deg, transparent 38%, #16a34a 38%, #16a34a 50%, transparent 50%);
}
.editorial-page .fx-for-whom__card--not-ideal .fx-for-whom__title::before {
  content: "";
  width: 1.05rem; height: 1.05rem;
  background: #ffedd5;
  border-radius: 50%;
  background-image: linear-gradient(135deg, transparent 38%, #ea580c 38%, #ea580c 50%, transparent 50%);
}
.editorial-page .fx-for-whom ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.editorial-page .fx-for-whom ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}
.editorial-page .fx-for-whom ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.3);
}
.editorial-page .fx-for-whom__card--ideal ul li::before { background: #16a34a; }
.editorial-page .fx-for-whom__card--not-ideal ul li::before { background: #ea580c; }
@media (max-width: 720px) {
  .editorial-page .fx-for-whom { grid-template-columns: 1fr; gap: 0.85rem; }
  .editorial-page .fx-for-whom__card { padding: 1.1rem 1.15rem; border-radius: 14px; }
}

/* ========== 8. CTA PREMIUM REFINADO (recommendation box) ========== */
.editorial-page .fx-recommend,
.editorial-page .cta-final {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(160deg, #0b1220 0%, #1e3a8a 65%, #1d4ed8 100%);
  color: #f8fafc;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.editorial-page .fx-recommend::before,
.editorial-page .cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.editorial-page .fx-recommend__eyebrow,
.editorial-page .cta-final__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.75);
  margin: 0 0 0.55rem;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.editorial-page .fx-recommend__title,
.editorial-page .cta-final h2,
.editorial-page .cta-final h3 {
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: #ffffff;
  letter-spacing: -0.015em;
}
.editorial-page .fx-recommend__text,
.editorial-page .cta-final p {
  font-size: 0.98rem;
  color: rgba(248, 250, 252, 0.88);
  line-height: 1.6;
  margin: 0 0 1.1rem;
}
.editorial-page .fx-recommend .btn,
.editorial-page .fx-recommend__btn,
.editorial-page .cta-final .btn,
.editorial-page .cta-final a.button,
.editorial-page .cta-final__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(180deg, #facc15 0%, #f59e0b 100%);
  color: #0b1220 !important;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.editorial-page .fx-recommend .btn:hover,
.editorial-page .fx-recommend__btn:hover,
.editorial-page .cta-final .btn:hover,
.editorial-page .cta-final a.button:hover,
.editorial-page .cta-final__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.36);
  filter: brightness(1.04);
}
.editorial-page .fx-recommend__note,
.editorial-page .cta-final__note {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.6);
  letter-spacing: 0.01em;
}

/* ========== 9. CARDS DA HOME (refinamento) ========== */
.editorial-page .ed-card,
.editorial-page .ed-post-card,
.editorial-page .ed-product-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.editorial-page .ed-card:hover,
.editorial-page .ed-post-card:hover,
.editorial-page .ed-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  border-color: rgba(29, 78, 216, 0.12);
}
.editorial-page .ed-card img,
.editorial-page .ed-post-card img,
.editorial-page .ed-product-card img {
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.editorial-page .ed-card:hover img,
.editorial-page .ed-post-card:hover img,
.editorial-page .ed-product-card:hover img {
  transform: scale(1.025);
}
.editorial-page .ed-card .ed-card__badge,
.editorial-page .ed-post-card .badge,
.editorial-page .ed-product-card .badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  background: linear-gradient(135deg, #eef4ff 0%, #f5f3ff 100%);
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.1);
  border-radius: 999px;
}

/* ========== 10. MICROINTERAÇÕES & ARTICLE VISUAL ========== */
.editorial-page .article-featured-img img {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: box-shadow .35s ease;
}
.editorial-page .article-featured-img:hover img {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 40px rgba(15, 23, 42, 0.1);
}
/* ========== Card premium do artigo (.article-main como container branco) ========== */
.editorial-page .article-main {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px rgba(15, 23, 42, 0.05);
  padding: 48px 52px;
  margin-top: 1.75rem;
}
@media (max-width: 900px) {
  .editorial-page .article-main {
    padding: 32px 28px;
    border-radius: 18px;
  }
}
@media (max-width: 600px) {
  .editorial-page .article-main {
    padding: 24px 22px;
    border-radius: 16px;
  }
}
.editorial-page .article-main > .article-featured-img--in-card {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
}
.editorial-page .article-main > .article-featured-img--in-card + .article-toc {
  margin-top: 1.75rem;
}
.editorial-page .article-main > .article-featured-img--in-card img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  display: block;
}
.editorial-page .post-content > *:first-child { margin-top: 0; }
.editorial-page .post-content > *:last-child { margin-bottom: 0; }

/* Body off-white levemente refinado */
.editorial-page { background: #f6f8fb; }
.editorial-page .article-hero--premium,
.editorial-page .article-layout { background: transparent; }

/* Disclaimer afiliado refinado */
.editorial-page .affiliate-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.5rem 0 0.5rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #475569;
}
.editorial-page .affiliate-disclaimer__icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: #eef4ff;
  border: 1px solid rgba(29, 78, 216, 0.18);
  position: relative;
}
.editorial-page .affiliate-disclaimer__icon::after {
  content: "i";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1d4ed8;
  font-family: Georgia, serif;
  font-style: italic;
}

/* ========== 11. MOBILE PREMIUM ========== */
@media (max-width: 991.98px) {
  .editorial-page .article-hero--premium { padding-top: 1.5rem; }
  .editorial-page .article-hero--premium .article-hero__title { font-size: clamp(1.7rem, 6vw, 2.05rem); }
  .editorial-page .article-hero--premium .article-hero__lead { font-size: 1rem; }
  .editorial-page .article-meta {
    width: 100%;
    border-radius: 14px;
    justify-content: flex-start;
  }
  .editorial-page .post-content { font-size: 1rem; line-height: 1.72; }
  .editorial-page .post-content h2 { padding-top: 1.25rem; margin-top: 2rem; }
  .editorial-page .article-toc { margin-bottom: 1.25rem; }
}
@media (max-width: 640px) {
  .editorial-page .editorial-score { padding: 0.95rem 1rem; gap: 0.85rem; border-radius: 14px; }
  .editorial-page .editorial-score__value { min-width: 60px; font-size: 1.35rem; }
  .editorial-page .fx-recommend,
  .editorial-page .cta-final { padding: 1.25rem 1.15rem; border-radius: 16px; }
  .editorial-page .fx-recommend .btn,
  .editorial-page .fx-recommend__btn,
  .editorial-page .cta-final .btn,
  .editorial-page .cta-final a.button,
  .editorial-page .cta-final__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== 12. RESPEITAR ?ads=1 (NÃO INTERFERIR) ========== */
body.rc-ads-page .article-toc,
body.rc-ads-page .article-methodology,
body.rc-ads-page .article-author-box,
body.rc-ads-page .article-eyebrow { display: none !important; }

/* ========== 13. PRINT FRIENDLY (subtil) ========== */
@media print {
  .editorial-page .article-toc,
  .editorial-page .article-methodology,
  .editorial-page .article-author-box { box-shadow: none; }
}

/* ========== 14. REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .editorial-page .ed-card,
  .editorial-page .ed-post-card,
  .editorial-page .ed-product-card,
  .editorial-page .article-toc__list,
  .editorial-page .article-toc__chev,
  .editorial-page .fx-recommend .btn,
  .editorial-page .cta-final .btn {
    transition: none !important;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   EDITORIAL PREMIUM BANNERS v2026.05.12
   Aplica visual editorial premium aos banners. Não interfere em layout/SEO.
   Em ?ads=1 (body.rc-ads-page) TUDO aqui fica oculto.
   ─────────────────────────────────────────────────────────────────────────── */

/* ========== 1. CONTAINER DO BANNER ========== */
.editorial-page .bloco-banner,
.editorial-page .rc-ad {
  display: block;
  margin: 1.75rem auto;
  padding: 0;
  max-width: 100%;
  text-align: center;
}
.editorial-page .bloco-banner.rc-ad--content,
.editorial-page .rc-ad.rc-ad--content { margin: 2rem auto; }
.editorial-page .bloco-banner.rc-ad--sidebar { margin: 0 0 1.5rem; }
.editorial-page .bloco-banner.rc-ad--wide { max-width: 100%; }

/* Rótulo discreto */
.editorial-page .banner-label-top,
.editorial-page .rc-ad-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.5rem;
  text-align: center;
}

/* Caixa principal (banner-box / banner-content) */
.editorial-page .banner-box,
.editorial-page .banner-content,
.editorial-page .rc-ad-inner {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 14px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  text-align: center;
  line-height: 0;
}
.editorial-page .banner-content img,
.editorial-page .rc-ad-inner img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 12px;
}
.editorial-page .banner-content a,
.editorial-page .rc-ad-inner a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

/* html_custom / script wrappers - sem interferir no conteúdo do anunciante */
.editorial-page .banner-html-wrapper,
.editorial-page .banner-script-wrapper {
  display: block;
  width: 100%;
  line-height: normal;
  text-align: center;
}

/* ========== 2. ADSENSE-STYLE BOXES (uso opcional no html_custom) ========== */
.editorial-page .adsense-box-300,
.editorial-page .adsense-box-728 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  text-align: left;
  text-decoration: none;
  color: #0f172a;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  line-height: 1.45;
}
.editorial-page .adsense-box-300 { max-width: 320px; min-height: 180px; }
.editorial-page .adsense-box-728 { max-width: 100%; min-height: 96px; flex-direction: row; align-items: center; gap: 1rem; }

.editorial-page .adsense-box-link,
.editorial-page .adsense-728-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.editorial-page .adsense-box-link:hover,
.editorial-page .adsense-728-link:hover { color: inherit; }

.editorial-page .adsense-box-300:hover,
.editorial-page .adsense-box-728:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  border-color: rgba(29, 78, 216, 0.18);
}

.editorial-page .adsense-headline,
.editorial-page .adsense-728-headline {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0 0 0.35rem;
}
.editorial-page .adsense-728-headline { font-size: 1.05rem; flex: 1; }

.editorial-page .adsense-subtext,
.editorial-page .adsense-728-subtext {
  font-size: 0.88rem;
  color: #475569;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.editorial-page .adsense-728-subtext { margin: 0; flex: 2; }

.editorial-page .adsense-cta,
.editorial-page .adsense-728-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(160deg, #0b1a3a 0%, #122a5a 100%);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.005em;
  margin-top: auto;
  align-self: flex-start;
  transition: filter .18s ease;
}
.editorial-page .adsense-728-cta { margin-top: 0; flex-shrink: 0; }
.editorial-page .adsense-cta:hover,
.editorial-page .adsense-728-cta:hover { filter: brightness(1.1); color: #ffffff !important; }

/* ========== 3. POSIÇÕES ESPECÍFICAS NO ARTIGO ========== */
.editorial-page .article-main > .rc-ad,
.editorial-page .article-main > .bloco-banner { margin-left: auto; margin-right: auto; }
.editorial-page .ed-sidebar--banners .rc-ad,
.editorial-page .ed-sidebar--banners .bloco-banner {
  margin: 0 0 1.25rem;
  text-align: center;
}
.editorial-page .ed-sidebar--banners .banner-box,
.editorial-page .ed-sidebar--banners .banner-content,
.editorial-page .ed-sidebar--banners .rc-ad-inner {
  padding: 0.4rem;
  border-radius: 14px;
}

/* Banner injetado no meio do conteúdo */
.editorial-page .post-content + .rc-ad,
.editorial-page .post-content .rc-ad { clear: both; }

/* ========== 4. MOBILE ========== */
@media (max-width: 640px) {
  .editorial-page .bloco-banner,
  .editorial-page .rc-ad { margin: 1.5rem auto; }
  .editorial-page .banner-box,
  .editorial-page .banner-content,
  .editorial-page .rc-ad-inner {
    padding: 0.4rem;
    border-radius: 14px;
  }
  .editorial-page .adsense-box-728 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.95rem;
  }
  .editorial-page .adsense-box-728 .adsense-728-cta { width: 100%; justify-content: center; align-self: stretch; }
}

/* ========== 5. ?ads=1 - ZERO BANNERS EXTRAS ========== */
body.rc-ads-page .bloco-banner,
body.rc-ads-page .rc-ad,
body.rc-ads-page .adsense-box-300,
body.rc-ads-page .adsense-box-728 { display: none !important; }

/* Newsletter + rodapé legal em ?ads=1 - fora do .post-content; não herdar display:none de .rc-ad acidental no DOM */
body.rc-ads-page .rc-ads-endcap,
body.rc-ads-page .rc-ads-endcap .ed-newsletter-wrap,
body.rc-ads-page .rc-ads-endcap .newsletter-box,
body.rc-ads-page .rc-ads-endcap footer.rc-ads-footer {
  display: block !important;
  visibility: visible !important;
}
body.rc-ads-page .rc-ads-endcap .rc-ads-footer__legal {
  display: flex !important;
}
body.rc-ads-page .rc-ads-endcap {
  position: relative;
  z-index: 2;
}

/* ========== 6. PRINT ========== */
@media print {
  .editorial-page .bloco-banner,
  .editorial-page .rc-ad { display: none !important; }
}

/* ========== 7. REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .editorial-page .adsense-box-300,
  .editorial-page .adsense-box-728,
  .editorial-page .adsense-cta,
  .editorial-page .adsense-728-cta { transition: none !important; }
  .editorial-page .adsense-box-300:hover,
  .editorial-page .adsense-box-728:hover { transform: none; }
}

/* ========== 8. CTA FLUTUANTE MOBILE (.mobile-floating-cta) ========== */
.mobile-floating-cta { display: none; }
@media (max-width: 768px) {
  .mobile-floating-cta {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9000;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
  }
  .mobile-floating-cta[hidden] { display: none; }
  .mobile-floating-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-floating-cta.is-dismissed { display: none !important; }
  .mobile-floating-cta__card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 12px 12px 10px;
    max-width: 520px;
    margin: 0 auto;
  }
  .mobile-floating-cta__close {
    position: absolute;
    top: 6px; right: 8px;
    width: 28px; height: 28px;
    border: 0; background: transparent;
    color: #64748b;
    font-size: 1.35rem; line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 2;
  }
  .mobile-floating-cta__inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-right: 24px;
    margin-bottom: 10px;
  }
  .mobile-floating-cta__logo {
    width: 48px; height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #f8fafc;
  }
  .mobile-floating-cta__body { flex: 1; min-width: 0; }
  .mobile-floating-cta__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
  }
  .mobile-floating-cta__score {
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
    font-weight: 800;
    color: #0f172a;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 999px;
    padding: 2px 8px;
  }
  .mobile-floating-cta__badge {
    display: inline-flex;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 999px;
    padding: 2px 8px;
  }
  .mobile-floating-cta__title {
    display: block;
    font-size: .92rem;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-floating-cta__text {
    margin: 0;
    font-size: .78rem;
    line-height: 1.35;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mobile-floating-cta__btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--mfc-btn-bg, linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%));
    color: #ffffff !important;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: 0.01em;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.22);
    transition: transform .15s ease, filter .15s ease;
  }
  .mobile-floating-cta__btn:hover,
  .mobile-floating-cta__btn:focus,
  .mobile-floating-cta__btn:active {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    filter: brightness(1.04);
  }
  body.has-mobile-cta { padding-bottom: 132px; }
}
/* Modo ?ads=1 já tem CTA grande no corpo; evita duplicação */
body.rc-ads-page .mobile-floating-cta { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .mobile-floating-cta { transition: none !important; }
  .mobile-floating-cta__btn { transition: none !important; }
}
