﻿/* ============================================================ */
/* ARTIGO DETALHES — Lean Institute Brasil                      */
/* Estilos agregados das seções (ordem do Figma):               */
/*   1. hero  2. body  3. leia-tambem  4. conversao             */
/* ============================================================ */

/* Base — reset ESCOPADO ao wrapper da página (.artigo-detalhes) para não
   vazar margin/padding/box-sizing no header/footer do _Layout. Inclui os
   overlays que o JS injeta no <body> fora do wrapper (zoom/menu/feedback). */
.artigo-detalhes,
.artigo-detalhes *,
.artigo-detalhes *::before,
.artigo-detalhes *::after,
.image-zoom,
.image-zoom *,
.share-quote-menu,
.share-quote-menu *,
.share-feedback { margin: 0; padding: 0; box-sizing: border-box; }
.artigo-detalhes { background: #fff; }

/* Preload da 1ª dobra (failsafe do motion — ver artigoDetalhes.anim.js):
   oculta hero + cabeçalho + sidebar até o reveal assumir, evitando "flash".
   Removido no 1º frame pelo anim.js; sem JS, o <noscript> da view reexibe. */
.artigo-detalhes--preload .hero-banner-artigos__img,
.artigo-detalhes--preload .article-badges,
.artigo-detalhes--preload .article-title,
.artigo-detalhes--preload .article-lead,
.artigo-detalhes--preload .article-authors,
.artigo-detalhes--preload .article-meta,
.artigo-detalhes--preload .article-tags,
.artigo-detalhes--preload .article-themes,
.artigo-detalhes--preload .article-body__sidebar > * {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .artigo-detalhes--preload .hero-banner-artigos__img,
  .artigo-detalhes--preload .article-badges,
  .artigo-detalhes--preload .article-title,
  .artigo-detalhes--preload .article-lead,
  .artigo-detalhes--preload .article-authors,
  .artigo-detalhes--preload .article-meta,
  .artigo-detalhes--preload .article-tags,
  .artigo-detalhes--preload .article-themes,
  .artigo-detalhes--preload .article-body__sidebar > * {
    opacity: 1;
  }
}


/* ============================================================ */
/* HERO BANNER — Artigo Detalhes                               */
/* Ref: Figma node 2065:71 — 1440 × 412 px                     */
/* ============================================================ */

/* Alinhado à régua do conteúdo abaixo: mesma largura máxima (1113 px)
   e o mesmo padding lateral (24 px) do .article-body */
.hero-banner-artigos {
  padding: 32px 24px 0;
}

/* Imagem cobre o bloco mantendo proporções;
   object-position replica o recorte do Figma */
.hero-banner-artigos__img {
  display: block;
  width: 100%;
  max-width: 1113px;
  /* height:auto neutraliza o height="..." que o ImgDefaultsTagHelper injeta
     (senão a dica de altura sobrepõe o aspect-ratio e estica o hero). */
  height: auto;
  margin: 0 auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  object-position: 0% 8%;
}


/* ============================================================ */
/* CORPO DO ARTIGO — Artigo Detalhes                            */
/* Ref: Figma node 2065:72 (body-artigos)                       */
/* Layout: conteúdo 764 px + gap 52 px + sidebar sticky 297 px  */
/* ============================================================ */

.article-body {
  /* Design tokens (Figma) */
  --ab-ink: #1a1a1a;
  --ab-grey: #5f5e5a;
  --ab-faint: #888780;
  --ab-hairline: rgba(0, 0, 0, 0.09);
  --ab-orange: #ef9f27;
  --ab-navy: #2a2566;
  --ab-bg-soft: #f7f6f2;

  /* Escala de fonte do conteúdo (acessibilidade A+/A−).
     Multiplica os tamanhos do texto de leitura; o JS sobrescreve
     este valor e persiste a escolha em localStorage. */
  --ab-font-scale: 1;

  font-family: 'Roboto', sans-serif;
  background: #fff;
  padding: 48px 24px 72px;
}

.article-body__container {
  max-width: 1113px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 52px;
}

.article-body__main {
  flex: 1 1 auto;
  min-width: 0;
}

/* ------------------------------------------------------------ */
/* Badges de categoria                                           */
/* ------------------------------------------------------------ */

.article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.article-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: normal;
}

.article-badge--teal {
  background: rgba(22, 145, 148, 0.2);
  color: #169194;
}

.article-badge--orange {
  background: rgba(255, 128, 0, 0.2);
  color: #ff8000;
}

/* ------------------------------------------------------------ */
/* Título + linha fina                                           */
/* ------------------------------------------------------------ */

.article-title {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--ab-ink);
}

.article-lead {
  margin: 0 0 18px;
  border-left: 3px solid var(--ab-orange);
  padding-left: 14px;
  font-size: calc(16px * var(--ab-font-scale));
  line-height: 1.65;
  color: var(--ab-grey);
  transition: font-size 0.15s ease;
}

/* ------------------------------------------------------------ */
/* Autores                                                       */
/* ------------------------------------------------------------ */

.article-authors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
  border-top: 1px solid var(--ab-hairline);
  padding: 13px 0 12px;
}

/* Autor é um botão (abre o modal de perfil) */
.article-author {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
}

/* Links de autor SEM sublinhado (rest + hover); a afford. de hover é a cor. */
.article-author,
.article-author__name { text-decoration: none; }

.article-author { color: inherit; }

button.article-author { cursor: pointer; }

button.article-author:hover .article-author__name,
button.article-author:focus-visible .article-author__name {
  color: var(--ab-navy);
}

.article-author__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ab-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-author__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.article-author__meta {
  display: flex;
  flex-direction: column;
}

.article-author__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ab-ink);
}

/* Nome longo quebra em duas linhas, como no Figma */
.article-author__name--narrow {
  max-width: 120px;
}

.article-author__role {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ab-faint);
}

.article-dot {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ab-hairline);
}

@media (max-width: 575.98px) {
  .article-dot { display: none; }
}

/* ------------------------------------------------------------ */
/* Datas + controle de fonte                                     */
/* ------------------------------------------------------------ */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  border-top: 1px solid var(--ab-hairline);
  border-bottom: 1px solid var(--ab-hairline);
  padding: 13px 0 12px;
}

.article-meta__item {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ab-faint);
}

.article-meta__sep {
  width: 1px;
  height: 14px;
  margin: 0 10px 0 44px;
}

.article-fontsize {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.article-fontsize__btn {
  border: 1px solid var(--ab-hairline);
  background: transparent;
  border-radius: 5px;
  padding: 4px 11px;
  font-family: inherit;
  font-size: 13px;
  line-height: normal;
  color: var(--ab-grey);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.article-fontsize__btn:hover:not(:disabled) {
  border-color: var(--ab-navy);
  color: var(--ab-navy);
}

/* Nos limites de escala, o botão correspondente é desativado */
.article-fontsize__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ------------------------------------------------------------ */
/* Tags                                                          */
/* ------------------------------------------------------------ */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 13px 2px 0;
}

.article-tags__item {
  font-size: 13px;
  line-height: 18px;
  color: #aaa;
}

.article-tags__item + .article-tags__item {
  border-left: 1px solid rgba(0, 0, 0, 0.16);
  margin-left: 6px;
  padding-left: 8px;
}

/* ------------------------------------------------------------ */
/* Temas (primários + secundários)                              */
/* ------------------------------------------------------------ */

.article-themes {
  display: flex;
  align-items: flex-start;
  padding: 12px 0 0;
}

.article-themes__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  column-gap: 8px;
  max-width: 100%;
}

.article-themes__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: #6c757d;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.article-themes__tag:hover,
.article-themes__tag:focus-visible {
  background: rgba(108, 117, 125, 0.10);
  color: #495057;
  border-color: rgba(108, 117, 125, 0.30);
  outline: none;
}

.article-themes__tag--pri {
  background: rgba(108, 117, 125, 0.10);
  border-color: rgba(108, 117, 125, 0.20);
  color: #5a6268;
}

.article-themes__tag--pri:hover,
.article-themes__tag--pri:focus-visible {
  background: rgba(108, 117, 125, 0.16);
  border-color: rgba(108, 117, 125, 0.32);
  color: #495057;
}

.article-themes__tag--sec {
  background: rgba(108, 117, 125, 0.05);
  border-color: rgba(108, 117, 125, 0.12);
  color: #6c757d;
}

.article-themes__tag--sec:hover,
.article-themes__tag--sec:focus-visible {
  background: rgba(108, 117, 125, 0.10);
  border-color: rgba(108, 117, 125, 0.24);
  color: #5a6268;
}

@media (max-width: 640px) {
  .article-themes {
    padding: 10px 0 0;
  }

  .article-themes__tag {
    padding: 3px 10px;
    font-size: 11px;
  }
}

/* ------------------------------------------------------------ */
/* Conteúdo do artigo                                            */
/* ------------------------------------------------------------ */

.article-content {
  margin-top: 17px;
}

/* Versão en/es de artigo cujo corpo ainda não foi traduzido */
.article-lang-notice {
  margin: 17px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #f0ad4e;
  background: #fff8ec;
  font-size: 14px;
  color: #5a4a2a;
}

.article-lang-notice i {
  margin-right: 6px;
}

.article-content p {
  margin: 0 0 17px;
  font-size: calc(15px * var(--ab-font-scale));
  line-height: 1.85;
  color: var(--ab-ink);
  transition: font-size 0.15s ease;
}

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

.article-content h2 {
  margin: 38px 0 13px;
  font-size: calc(22px * var(--ab-font-scale));
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.6;
  color: var(--ab-ink);
  transition: font-size 0.15s ease;
}

.artigo-detalhes .article-content strong,
.artigo-detalhes .article-content b {
  font-weight: 700;
  color: var(--ab-ink);
}

.artigo-detalhes .article-content strong em,
.artigo-detalhes .article-content strong i,
.artigo-detalhes .article-content b em,
.artigo-detalhes .article-content b i {
  font-weight: 700;
  color: var(--ab-ink);
}

.artigo-detalhes .article-content a:not([class]) {
  color: #d77f12;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.artigo-detalhes .article-content a:not([class]):hover {
  color: var(--ab-navy);
}

.artigo-detalhes .article-content .lw-inline-orange-link > a,
.artigo-detalhes .article-content a.lw-inline-orange-link,
.artigo-detalhes .article-content .row.my-4 .col-12.text-center.mt-3 > a {
  color: #d77f12;
  text-decoration: underline !important;
  text-decoration-color: #d77f12 !important;
  text-underline-offset: 2px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.artigo-detalhes .article-content .lw-inline-orange-link > a:hover,
.artigo-detalhes .article-content .lw-inline-orange-link > a:active,
.artigo-detalhes .article-content a.lw-inline-orange-link:hover,
.artigo-detalhes .article-content a.lw-inline-orange-link:active,
.artigo-detalhes .article-content .row.my-4 .col-12.text-center.mt-3 > a:hover,
.artigo-detalhes .article-content .row.my-4 .col-12.text-center.mt-3 > a:active {
  color: var(--ab-navy);
  text-decoration-color: var(--ab-navy) !important;
}

.artigo-detalhes .article-content .lw-inline-orange-link > a:focus-visible,
.artigo-detalhes .article-content a.lw-inline-orange-link:focus-visible,
.artigo-detalhes .article-content .row.my-4 .col-12.text-center.mt-3 > a:focus-visible {
  outline: 2px solid rgba(215, 127, 18, 0.35);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ */
/* Callouts (ideia central / como aplicar)                       */
/* ------------------------------------------------------------ */

.article-callout {
  border-left: 3px solid;
  border-radius: 0 8px 8px 0;
  padding: 15px 20px 16px 23px;
  margin: 28px 0;
}

.article-content .article-callout p {
  margin: 0;
  font-size: calc(14px * var(--ab-font-scale));
  line-height: 1.65;
  transition: font-size 0.15s ease;
}

.article-content .article-callout__title {
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.article-callout--ideia-central {
  background: #eeedfe;
  border-color: #534ab7;
}

.article-callout--ideia-central p { color: #26215c; }
.article-callout--ideia-central .article-callout__title { color: #534ab7; }

.article-callout--como-aplicar {
  background: #e1f5ee;
  border-color: #1d9e75;
}

.article-callout--como-aplicar p { color: #04342c; }
.article-callout--como-aplicar .article-callout__title { color: #0f6e56; }

/* ------------------------------------------------------------ */
/* Citação destacada                                             */
/* ------------------------------------------------------------ */

.article-quote {
  position: relative;   /* contexto do menu "Compartilhar frase" */
  background: var(--ab-bg-soft);
  border-left: 3px solid var(--ab-orange);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px 18px 25px;
  margin: 28px 0;
}

.article-quote blockquote {
  margin: 0 0 12px;
  font-size: calc(18px * var(--ab-font-scale));
  font-style: italic;
  line-height: 1.5;
  color: var(--ab-ink);
  transition: font-size 0.15s ease;
}

.article-quote__share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--ab-hairline);
  background: transparent;
  border-radius: 5px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  line-height: normal;
  color: var(--ab-grey);
  cursor: pointer;
}

/* ------------------------------------------------------------ */
/* Figura (gráfico)                                              */
/* ------------------------------------------------------------ */

.article-figure {
  margin: 40px 0 28px;
}

.article-figure__img {
  display: block;
  width: 100%;
  /* height:auto neutraliza o height="..." que agora vem no HTML (RenderBody injeta
     width/height nessa imagem do corpo p/ o SEO check) — sem isso, o height vira
     valor literal em px (não escala com o width), esticando a imagem. */
  height: auto;
  border-radius: 14px;
  cursor: zoom-in;   /* clique amplia (lightbox) */
}

.article-figure figcaption {
  margin-top: 7px;
  font-size: calc(12px * var(--ab-font-scale));
  line-height: 1.6;
  text-align: center;
  color: var(--ab-faint);
  transition: font-size 0.15s ease;
}

@media (max-width: 575.98px) {
  .article-figure figcaption::before {
    content: "Toque na imagem para ampliar — ";
    font-weight: 500;
  }
}

/* ------------------------------------------------------------ */
/* Principais aprendizados                                       */
/* ------------------------------------------------------------ */

.article-learnings {
  background: var(--ab-bg-soft);
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 33px;
}

.article-content .article-learnings__title {
  margin: 0 0 12px;
  font-size: calc(14px * var(--ab-font-scale));
  font-weight: 500;
  line-height: 1.6;
  color: var(--ab-ink);
  transition: font-size 0.15s ease;
}

.article-learnings ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.article-learnings li {
  position: relative;
  padding-left: 24px;
  font-size: calc(14px * var(--ab-font-scale));
  line-height: 1.55;
  color: var(--ab-grey);
  transition: font-size 0.15s ease;
}

.article-learnings li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 500;
  color: var(--ab-orange);
}

/* ------------------------------------------------------------ */
/* Vocabulário — caixa de definição (mesmo padrão da citação,    */
/* fundo + borda esquerda laranja, porém em tom lavanda).        */
/* Disponível em qualquer publicação (Artigo ou Blog).           */
/* ------------------------------------------------------------ */

.article-vocabulario {
  background: #f6f5ff;
  border-left: 3px solid var(--ab-orange);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px 18px 25px;
  margin: 28px 0;
}

.article-content .article-vocabulario p {
  margin: 0;
  font-size: calc(14px * var(--ab-font-scale));
  line-height: 1.93;
  color: var(--ab-ink);
  transition: font-size 0.15s ease;
}

.article-content .article-vocabulario__term {
  color: var(--ab-navy);
  font-weight: 500;
  letter-spacing: 0.7px;
}

.article-vocabulario__term em {
  font-weight: 700;
  font-style: italic;
}

.article-vocabulario__btn {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--ab-hairline);
  background: transparent;
  border-radius: 5px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  line-height: normal;
  color: var(--ab-grey);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.article-vocabulario__btn:hover {
  border-color: var(--ab-navy);
  color: var(--ab-navy);
}

/* ------------------------------------------------------------ */
/* Caixa de dica (checklist / "evite este erro") — mesma         */
/* estrutura (título + lista com seta laranja), variando só a    */
/* cor de fundo. Disponível em qualquer publicação.              */
/* ------------------------------------------------------------ */

.article-tipbox {
  border-radius: 8px;
  padding: 18px 22px;
  margin: 28px 0;
}

.article-tipbox--checklist { background: var(--ab-bg-soft); }
.article-tipbox--warning   { background: #f7f2f2; }

.article-content .article-tipbox__title {
  margin: 0 0 12px;
  font-size: calc(14px * var(--ab-font-scale));
  font-weight: 500;
  line-height: 1.6;
  color: var(--ab-ink);
  transition: font-size 0.15s ease;
}

.article-tipbox__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.article-content .article-tipbox__list li {
  display: flex;
  gap: 8px;
  margin: 0;
  font-size: calc(14px * var(--ab-font-scale));
  line-height: 1.55;
  color: var(--ab-grey);
  transition: font-size 0.15s ease;
}

.article-tipbox__step {
  flex-shrink: 0;
  font-weight: 500;
  color: var(--ab-orange);
  white-space: nowrap;
}

/* ------------------------------------------------------------ */
/* Fonte original (share bar)                                    */
/* ------------------------------------------------------------ */

.article-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--ab-hairline);
  border-bottom: 1px solid var(--ab-hairline);
  padding: 19px 0;
  margin-top: 48px;
}

.article-source span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ab-faint);
}

.article-source a {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ab-navy) !important;
  text-decoration: none !important;
  background-image: linear-gradient(90deg, rgba(255, 144, 36, 0.0), rgba(255, 144, 36, 0.70), rgba(255, 144, 36, 0.0));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  transition: color 160ms ease, background-image 160ms ease;
}

.article-source a:hover,
.article-source a:focus-visible {
  color: var(--ab-navy);
  background-image: linear-gradient(90deg, rgba(255, 144, 36, 0.2), rgba(255, 144, 36, 0.95), rgba(255, 144, 36, 0.2));
}

.article-source a:focus-visible {
  outline: 2px solid rgba(255, 144, 36, 0.35);
  outline-offset: 2px;
}

.article-content a.lw-inline-link {
  color: #d77f12;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.article-content a.lw-inline-link:hover {
  color: var(--ab-navy);
}

.article-content a.lw-inline-link strong,
.article-content a.lw-inline-link b {
  font-weight: inherit;
  color: inherit;
}


.article-source__badge {
  display: block;
  height: 28px;
}

/* ------------------------------------------------------------ */
/* Sidebar sticky                                                */
/* ------------------------------------------------------------ */

.article-body__sidebar {
  flex: 0 0 297px;
  width: 297px;
  margin-top: 42px;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: var(--ab-bg-soft);
  border-radius: 14px;
  padding: 18px 20px;
}

.sidebar-card__label {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--ab-faint);
}

/* Neste artigo (TOC) */
.sidebar-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-toc a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ab-grey);
  text-decoration: none;
  border-radius: 10px;
  transition: color 160ms ease, background-color 160ms ease;
}

.sidebar-toc a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--ab-hairline);
  flex-shrink: 0;
}

.sidebar-toc .is-active a {
  font-weight: 500;
  color: var(--ab-navy);
}

.sidebar-toc .is-active a::before {
  background: var(--ab-orange);
}

.sidebar-toc li:not(.is-active) a:hover,
.sidebar-toc li:not(.is-active) a:focus-visible {
  color: var(--ab-navy);
  background: transparent;
  text-decoration: none;
  background-image: linear-gradient(90deg, rgba(255, 144, 36, 0.0), rgba(255, 144, 36, 0.65), rgba(255, 144, 36, 0.0));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
}

.sidebar-toc li:not(.is-active) a:hover::before,
.sidebar-toc li:not(.is-active) a:focus-visible::before {
  background: rgba(255, 144, 36, 0.85);
}

.sidebar-toc li:not(.is-active) a:focus-visible {
  outline: 2px solid rgba(255, 144, 36, 0.35);
  outline-offset: 2px;
}

/* Compartilhar */
.sidebar-share {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-share img {
  display: block;
  width: 42px;
  height: 34px;
}

/* CTA Consultoria */
.sidebar-cta {
  background: var(--ab-navy);
  border-radius: 14px;
  padding: 19px 20px 20px;
}

.sidebar-cta__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-cta__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

.sidebar-cta__text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-cta__btn {
  display: block;
  width: 100%;
  background: var(--ab-orange);
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: #412402;
  cursor: pointer;
}

/* ------------------------------------------------------------ */
/* Feedback de compartilhamento ("Link copiado!")                */
/* Injetado pelo 2-body.js após o botão clicado                  */
/* ------------------------------------------------------------ */

.share-feedback {
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  color: #0f6e56;
  background: #e1f5ee;
  border-radius: 4px;
  padding: 4px 9px;
  white-space: nowrap;
}

/* Na sidebar, flutua acima dos ícones para não deslocar a grade */
.sidebar-share .share-feedback {
  position: absolute;
  right: 0;
  top: -28px;
}

/* Na citação, fica inline ao lado do botão */
.article-quote .share-feedback {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

/* ------------------------------------------------------------ */
/* Menu compacto "Compartilhar frase"                            */
/* Criado pelo 2-body.js, ancorado abaixo do botão da citação;   */
/* mesmas opções da sidebar, compartilhando frase + link         */
/* ------------------------------------------------------------ */

.share-quote-menu {
  position: absolute;
  z-index: 20;
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--ab-hairline);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 10px;
}

.share-quote-menu[hidden] {
  display: none;
}

.share-quote-menu img {
  display: block;
  width: 42px;
  height: 34px;
}

/* ------------------------------------------------------------ */
/* Modal de autor                                                */
/* Ref: Figma node 2067:74 (modal-autores) — 1184 × 371 px       */
/* Card branco 1120px + foto circular 304px sobrepondo a borda   */
/* esquerda em 64px                                              */
/* ------------------------------------------------------------ */

body.author-modal-open {
  overflow: hidden;
}

.author-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  overflow-y: auto;
  padding: 24px;
}

.author-modal[hidden] {
  display: none;
}

.author-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  animation: author-modal-fade 0.25s ease-out;
}

.author-modal__dialog {
  position: relative;
  margin: auto;             /* centraliza e permite rolar se exceder a tela */
  width: 100%;
  max-width: 1184px;        /* 64px de foto saliente + card de 1120px */
  animation: author-modal-rise 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Entrada do modal: backdrop esmaece, card sobe com leve zoom.
   Reanima a cada abertura porque o display alterna via [hidden]. */
@keyframes author-modal-fade {
  from { opacity: 0; }
}

@keyframes author-modal-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
}

/* Saída: efeito inverso — o card desce com fade e o backdrop esmaece.
   Keyframes próprios (não os de entrada em reverse) para o animation-name
   mudar e a animação reiniciar. O JS aplica .author-modal--closing e só
   esconde o modal quando a animação do card termina (animationend). */
@keyframes author-modal-fade-out {
  to { opacity: 0; }
}

@keyframes author-modal-rise-out {
  to {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
}

.author-modal--closing .author-modal__backdrop {
  animation: author-modal-fade-out 0.2s ease-in forwards;
}

.author-modal--closing .author-modal__dialog {
  animation: author-modal-rise-out 0.25s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .author-modal__backdrop,
  .author-modal__dialog,
  .author-modal--closing .author-modal__backdrop,
  .author-modal--closing .author-modal__dialog {
    animation: none;
  }
}

/* Foco programático ao abrir (a11y) — sem anel visual no container */
.author-modal__dialog:focus {
  outline: none;
}

.author-modal__card {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  margin-left: 64px;
  min-height: 371px;
  padding: 36px 84px 40px 288px;   /* texto a 352px da borda esquerda do modal (Figma) */
}

.author-modal__close {
  position: absolute;
  top: 10px;
  right: 13px;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ab-ink);
  cursor: pointer;
}

/* Foto circular com borda navy, sobrepondo a borda esquerda do card */
.author-modal__photo {
  position: absolute;
  left: 0;
  top: 29px;
  width: 304px;
  height: 304px;
}

.author-modal__photo-img,
.author-modal__photo-initials {
  display: block;
  width: 100%;
  height: 100%;
  border: 10px solid var(--ab-navy);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

/* Fallback sem foto: iniciais do autor */
.author-modal__photo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ab-navy);
  color: #fff;
  font-size: 64px;
  font-weight: 500;
}

.author-modal__photo-img[hidden],
.author-modal__photo-initials[hidden] {
  display: none;
}

/* Selo LinkedIn na base da foto */
.author-modal__linkedin {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 33px;
  background: #fff;
  border: 1px solid var(--ab-navy);
  border-radius: 14px;
  font-family: 'Source Sans 3', 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #5a6470;
  text-decoration: none;
}

.author-modal__name {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ab-navy);
}

.author-modal--no-role .author-modal__name {
  margin-bottom: 30px;
}

.author-modal__role {
  margin: 0 0 30px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.6;
  color: #444;
}

.author-modal__bio {
  margin: 0 0 32px;
  max-width: 748px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.68;
  text-align: justify;
  color: #444;
}

.author-modal__articles {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  text-decoration: none;
  color: #ff8000;
}

.author-modal__articles:hover {
  text-decoration: underline;
}

/* Empilhado em telas menores: foto centralizada acima do card */
@media (max-width: 991.98px) {
  .author-modal__dialog {
    max-width: 600px;
    padding-top: 85px;            /* metade da foto fica acima do card */
  }

  .author-modal__photo {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    height: 170px;
  }

  .author-modal__photo-img,
  .author-modal__photo-initials {
    border-width: 6px;
  }

  .author-modal__photo-initials {
    font-size: 40px;
  }

  .author-modal__card {
    margin-left: 0;
    min-height: 0;
    padding: 102px 28px 32px;
  }

  .author-modal__close {
    top: 95px;
    right: 12px;
  }

  .author-modal__name {
    font-size: 24px;
  }

  .author-modal__bio {
    text-align: left;
  }
}

/* ------------------------------------------------------------ */
/* Zoom de imagens do corpo (lightbox)                           */
/* Overlay criado pelo 2-body.js ao clicar numa figura do artigo */
/* ------------------------------------------------------------ */

body.image-zoom-open {
  overflow: hidden;
}

.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.image-zoom[hidden] {
  display: none;
}

.image-zoom__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.82);
  animation: image-zoom-fade 0.25s ease-out;
}

.image-zoom__figure {
  position: relative;
  margin: 0;
  max-width: 1100px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: image-zoom-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom__figure:focus {
  outline: none;
}

.image-zoom__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

.image-zoom__caption {
  margin-top: 14px;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.image-zoom__caption:empty {
  display: none;
}

.image-zoom__close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  animation: image-zoom-fade 0.25s ease-out;
}

.image-zoom__close:hover {
  color: #fff;
}

/* Entrada: backdrop esmaece, imagem cresce com leve zoom */
@keyframes image-zoom-fade {
  from { opacity: 0; }
}

@keyframes image-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Saída: efeito inverso (.image-zoom--closing aplicado pelo JS) */
@keyframes image-zoom-fade-out {
  to { opacity: 0; }
}

@keyframes image-zoom-out {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

.image-zoom--closing .image-zoom__backdrop,
.image-zoom--closing .image-zoom__close {
  animation: image-zoom-fade-out 0.2s ease-in forwards;
}

.image-zoom--closing .image-zoom__figure {
  animation: image-zoom-out 0.2s ease-in forwards;
}

@media (prefers-reduced-motion: reduce) {
  .image-zoom__backdrop,
  .image-zoom__figure,
  .image-zoom__close,
  .image-zoom--closing .image-zoom__backdrop,
  .image-zoom--closing .image-zoom__figure,
  .image-zoom--closing .image-zoom__close {
    animation: none;
  }
}

/* ------------------------------------------------------------ */
/* Responsivo                                                    */
/* ------------------------------------------------------------ */

@media (max-width: 991.98px) {
  .article-body__container {
    flex-direction: column;
  }

  .article-body__sidebar {
    position: static;
    flex-basis: auto;
    width: 100%;
    margin-top: 40px;
  }

  .sidebar-card--toc { display: none; }
}

@media (max-width: 575.98px) {
  .article-body {
    padding: 32px 16px 48px;
  }

  .article-title {
    font-size: 28px;
  }
}


/* ============================================================ */
/* LEIA TAMBÉM — Artigo Detalhes                               */
/* Ref: Figma node 2065:73 — 1440 × 599 px                     */
/* ============================================================ */
:root {
  --color-navy-deep:   #29235c;
  --color-accent:      #ff8000;
  --color-purple-tag:  #cb6ce6;
  --color-text-body:   #666666;
  --color-heading:     #1a1a1a;
  --font-primary:      'Roboto', sans-serif;
}

.leia-tambem {
  background: #ffffff;
  font-family: var(--font-primary);
  padding-bottom: 53px;          /* respiro inferior do frame Figma */
}

/* Conteúdo: 1104px internos (1152 − 2×24 de padding),
   alinhado à largura das seções body e conversão */
.leia-tambem__container {
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Título da seção --- */
.leia-tambem__heading {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-heading);
  letter-spacing: -0.3px;
  line-height: 35.2px;
  text-align: center;
  margin: 0 0 34px;              /* conteúdo começa em y=69 no Figma */
}

/* --- Grid: destaque (esq) + sidebar (dir) ---
   stretch: a sidebar acompanha exatamente a altura do destaque */
.leia-tambem__grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* ============================================================ */
/* CARD EM DESTAQUE                                            */
/* ============================================================ */
.leia-tambem__featured {
  flex: 1 1 auto;
  min-width: 0;
  background: #ffffff;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  overflow: hidden;
}

.leia-tambem__featured-image {
  height: 237px;
}

.leia-tambem__featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}

.leia-tambem__featured-body {
  padding: 16px 31px 24px;
}

.leia-tambem__featured-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-navy-deep);
  line-height: normal;
  margin: 12px 0 10px;
}

.leia-tambem__featured-excerpt {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 20px;
  max-width: 595px;
  margin: 0 0 14px;
}

/* ============================================================ */
/* SIDEBAR: CARDS MENORES                                      */
/* ============================================================ */
.leia-tambem__sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 363px;          /* Figma: 362.7px no frame de 1112px de conteúdo */
  flex-shrink: 0;
}

/* Cada card divide igualmente a altura do destaque:
   3 cards + 2 gaps de 25px = altura total do card da esquerda */
.leia-tambem__mini-card {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
}

.leia-tambem__mini-image {
  width: 146px;
  flex-shrink: 0;
}

.leia-tambem__mini-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Crops específicos (replicam o enquadramento do Figma) */
.leia-tambem__mini-card:nth-child(1) .leia-tambem__mini-image img {
  object-position: 15% 50%;
}

.leia-tambem__mini-card:nth-child(n+2) .leia-tambem__mini-image img {
  object-position: 86% 50%;
}

.leia-tambem__mini-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  min-width: 0;
}

.leia-tambem__mini-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-navy-deep);
  line-height: 20px;
  margin: 0;
}

/* ============================================================ */
/* ELEMENTOS COMPARTILHADOS                                    */
/* ============================================================ */

/* Tag pill (Case de Sucesso / Evento / Blog) */
.leia-tambem__tag {
  display: inline-block;
  background: rgba(203, 108, 230, 0.1);
  color: var(--color-purple-tag);
  font-size: 11.2px;
  font-weight: 700;
  letter-spacing: 0.672px;
  text-transform: uppercase;
  padding: 4px 11.2px;
  border-radius: 3px;
  line-height: normal;
}

/* Tag do "Leia também" (categoria/setor do artigo): é um <p>, então zera a margem; some quando vazia. */
.leia-tambem__eyebrow {
  margin: 0;
}
.leia-tambem__eyebrow[hidden] {
  display: none;
}

/* Link "Ver detalhes →" */
.leia-tambem__link {
  font-size: 14.1px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  line-height: normal;
}

.leia-tambem__link:hover {
  color: #e67300;
  text-decoration: underline;
}

/* ============================================================ */
/* RESPONSIVO                                                  */
/* ============================================================ */
@media (max-width: 991.98px) {
  .leia-tambem__grid {
    flex-direction: column;
  }

  .leia-tambem__sidebar {
    width: 100%;
  }

  /* Empilhado: cards voltam à altura natural */
  .leia-tambem__mini-card {
    flex: 0 0 auto;
    min-height: 124px;
  }
}

@media (max-width: 575.98px) {
  .leia-tambem__featured-body {
    padding: 16px 20px 24px;
  }

  .leia-tambem__mini-image {
    width: 110px;
  }
}


/* ============================================================ */
/* DESIGN TOKENS — Conversão / Artigo Detalhes (LIB)           */
/* Ref: Figma node 2035:1471 — 1104 px de conteúdo             */
/* ============================================================ */
:root {
  /* Cores */
  --conv-color-heading:        #1a1a1a;
  --conv-color-text-muted:     #5f5e5a;
  --conv-color-navy:           #2a2566;
  --conv-color-navy-dark:      #1e1847;
  --conv-color-card-bg:        #f1efff;
  --conv-color-card-border:    rgba(0, 0, 0, 0.09);
  --conv-color-btn-text:       #e2e0f0;

  /* Tipografia */
  --conv-font-primary:         'Roboto', sans-serif;
}


/* ============================================================ */
/* SECTION: CONVERSÃO                                          */
/* ============================================================ */
.conversao {
  font-family: var(--conv-font-primary);
  padding: 48px 0;
}

/* Conteúdo a 1104 px no frame 1440 (x = 168) */
.conversao__container {
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.conversao__title {
  font-size: 1.375rem;                  /* 22px */
  font-weight: 500;
  color: var(--conv-color-heading);
  letter-spacing: -0.3px;
  line-height: 2.2rem;                  /* 35.2px */
  text-align: center;
  margin: 0 0 33px;
}


/* ============================================================ */
/* COMPONENT: CARDS DE OFERTA                                  */
/* ============================================================ */
.conversao__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 8px;
  margin-bottom: 33px;
}

.cta-card {
  display: flex;
  align-items: stretch;
  min-height: 174px;
  background-color: var(--conv-color-card-bg);
  border: 1px solid var(--conv-color-card-border);
  border-radius: 14px;
  overflow: hidden;
}

/* Faixa de imagem à esquerda (110 px no Figma) */
.cta-card__media {
  flex: 0 0 110px;
}

.cta-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Replica o recorte horizontal de cada foto no Figma */
.cta-card__img--consultoria { object-position: 64% 50%; }
.cta-card__img--treinamento { object-position: 74% 50%; }

.cta-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px;
}

.cta-card__title {
  font-size: 0.9375rem;                 /* 15px */
  font-weight: 500;
  color: var(--conv-color-heading);
  line-height: 1.5rem;                  /* 24px */
  margin: 0;
}

.cta-card__desc {
  font-size: 0.8125rem;                 /* 13px */
  font-weight: 400;
  color: var(--conv-color-text-muted);
  line-height: 1.26rem;                 /* 20.15px */
  margin: 0 0 8px;
}

.cta-card__btn {
  display: inline-block;
  background-color: var(--conv-color-navy);
  color: var(--conv-color-btn-text);
  font-size: 0.8125rem;                 /* 13px */
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s;
  margin-top: auto;                     /* alinha os botões entre cards */
}

.cta-card__btn:hover {
  background-color: var(--conv-color-navy-dark);
  color: var(--conv-color-btn-text);
}


/* ============================================================ */
/* COMPONENT: BANNER LEANSHOP                                  */
/* Ref: Figma node 2178:59 — 1103 × 232 px                     */
/* ============================================================ */
.leanshop {
  display: flex;
  align-items: stretch;
  min-height: 232px;
  background-color: #fbfbfb;
  border: 1px solid var(--conv-color-card-border);
  border-radius: 14px;
  overflow: hidden;
}

/* Arte de lançamento à esquerda (365 px no Figma) */
.leanshop__media {
  flex: 0 0 365px;
  align-self: stretch;
}

.leanshop__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.leanshop__content {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 40px 24px 20px;
}

/* Logo LeanShop no canto superior direito */
.leanshop__logo {
  position: absolute;
  top: 13px;
  right: 28px;
  width: 108px;
  height: auto;
}

.leanshop__title {
  font-size: 0.9375rem;                 /* 15px */
  font-weight: 500;
  color: var(--conv-color-heading);
  line-height: 1.5rem;                  /* 24px */
  margin: 0 0 8px;
}

.leanshop__desc {
  max-width: 580px;
  font-size: 0.8125rem;                 /* 13px */
  font-weight: 400;
  color: var(--conv-color-text-muted);
  line-height: 1.26rem;                 /* 20.15px */
  margin: 0 0 16px;
}

.leanshop__btn {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--conv-color-navy);
  color: var(--conv-color-btn-text);
  font-size: 0.8125rem;                 /* 13px */
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.leanshop__btn:hover {
  background-color: var(--conv-color-navy-dark);
  color: var(--conv-color-btn-text);
}


/* ============================================================ */
/* RESPONSIVO                                                  */
/* ============================================================ */
@media (max-width: 991.98px) {
  .conversao__grid {
    grid-template-columns: 1fr;
  }

  .leanshop__media {
    flex-basis: 280px;
  }
}

@media (max-width: 575.98px) {
  .cta-card {
    flex-direction: column;
    min-height: 0;
  }

  .cta-card__media {
    flex: none;
    height: 140px;
  }

  .leanshop {
    flex-direction: column;
  }

  .leanshop__media {
    flex: none;
    width: 100%;
    height: 180px;
  }

  .leanshop__content {
    padding: 20px;
  }

  .leanshop__logo {
    position: static;
    margin-bottom: 14px;
  }
}

/* ============================================================ */
/* SLIDE-UP (mg-btn) — contrato portado da Academia/Artigos.    */
/* Texto+seta sobe no hover/focus revelando uma 2ª cópia.       */
/* Upgrade do markup por initMgButtons (mgButtons.js). Escopado */
/* a .artigo-detalhes p/ não vazar no layout. 0.7s = Artigos.   */
/* ============================================================ */
.artigo-detalhes {
  --mg-btn-swap-duration: 0.7s;
}
.artigo-detalhes .mg-btn { position: relative; }
.artigo-detalhes .mg-btn__inner { display: inline-flex; align-items: center; gap: 10px; }
.artigo-detalhes .mg-btn__swap { position: relative; display: inline-grid; overflow: hidden; padding-bottom: 2px; }
.artigo-detalhes .mg-btn__swap-text {
  grid-area: 1 / 1;
  transition: transform var(--mg-btn-swap-duration, .42s) cubic-bezier(.2, .7, .2, 1);
}
.artigo-detalhes .mg-btn__swap-text.is-absolute { position: absolute; inset: 0; transform: translate3d(0, 130%, 0); }
.artigo-detalhes .mg-btn:hover .mg-btn__swap-text.is-absolute,
.artigo-detalhes .mg-btn:focus-visible .mg-btn__swap-text.is-absolute { transform: translate3d(0, 0, 0); }
.artigo-detalhes .mg-btn:hover .mg-btn__swap-text.is-relative,
.artigo-detalhes .mg-btn:focus-visible .mg-btn__swap-text.is-relative { transform: translate3d(0, -130%, 0); }

/* Sem animação de swap em reduced-motion: trava no estado de repouso. */
@media (prefers-reduced-motion: reduce) {
  .artigo-detalhes .mg-btn__swap-text { transition: none; }
  .artigo-detalhes .mg-btn:hover .mg-btn__swap-text.is-absolute,
  .artigo-detalhes .mg-btn:focus-visible .mg-btn__swap-text.is-absolute { transform: translate3d(0, 130%, 0); }
  .artigo-detalhes .mg-btn:hover .mg-btn__swap-text.is-relative,
  .artigo-detalhes .mg-btn:focus-visible .mg-btn__swap-text.is-relative { transform: translate3d(0, 0, 0); }
}

/* ============================================================ */
/* HOVER dos CARDS — lift + zoom da imagem.                     */
/* Convive com o reveal: a transição mantém opacity/transform + */
/* o reveal-delay (entrada escalonada) e no :hover zera o delay  */
/* p/ resposta imediata. O zoom é clipado no CONTÊINER da <img>  */
/* (overflow:hidden), nunca na própria img (evita vazamento).    */
/* ============================================================ */
.leia-tambem__featured,
.leia-tambem__mini-card,
.cta-card {
  transition: opacity .6s ease,
              transform .35s cubic-bezier(.2, .7, .2, 1),
              box-shadow .35s ease,
              border-color .35s ease,
              filter .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.leia-tambem__featured:hover,
.leia-tambem__mini-card:hover,
.cta-card:hover {
  transition-delay: 0ms;
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(20, 11, 71, 0.16);
}
.cta-card:hover { border-color: var(--color-accent); }

.leia-tambem__featured-image,
.leia-tambem__mini-image,
.cta-card__media { overflow: hidden; }

.leia-tambem__featured-image img,
.leia-tambem__mini-image img,
.cta-card__img {
  transform: none;
  transition: none;
}

/* ============================================================ */
/* HOVER dos BOTÕES comerciais — lift sutil + sombra            */
/* (complementa o shimmer + slide-up que já têm).               */
/* ============================================================ */
.sidebar-cta__btn,
.cta-card__btn,
.leanshop__btn {
  transition: background-color .2s ease,
              color .2s ease,
              transform .25s cubic-bezier(.2, .7, .2, 1),
              box-shadow .25s ease;
}
.sidebar-cta__btn:hover,
.cta-card__btn:hover,
.leanshop__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 11, 71, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .leia-tambem__featured,
  .leia-tambem__mini-card,
  .cta-card,
  .sidebar-cta__btn,
  .cta-card__btn,
  .leanshop__btn { transition: none; }
  .leia-tambem__featured:hover,
  .leia-tambem__mini-card:hover,
  .cta-card:hover,
  .sidebar-cta__btn:hover,
  .cta-card__btn:hover,
  .leanshop__btn:hover { transform: none; box-shadow: none; }
}

/* ============================================================ */
/* HOVER — botões de compartilhar (lift + leve escurecimento)   */
/* ============================================================ */
.sidebar-share a {
  display: inline-flex;
  border-radius: 8px;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), filter .2s ease;
}
.sidebar-share a:hover,
.sidebar-share a:focus-visible {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(0.88);
}

/* ============================================================ */
/* HOVER leve — links de autor: o BLOCO inteiro sobe + nome navy */
/* ============================================================ */
.article-author[data-author-name] { transition: transform .2s ease; }
.article-author[data-author-name]:hover,
.article-author[data-author-name]:focus-visible { transform: translateY(-2px); }

/* ============================================================ */
/* HOVER — card "Gente Lean" (banner LeanShop): lift + zoom      */
/* Convive com o reveal (mantém delay; zera no :hover).          */
/* ============================================================ */
.leanshop {
  transition: opacity .6s ease,
              transform .35s cubic-bezier(.2, .7, .2, 1),
              box-shadow .35s ease,
              border-color .35s ease,
              filter .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.leanshop:hover {
  transition-delay: 0ms;
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(20, 11, 71, 0.16);
  border-color: var(--color-accent);
}
.leanshop__media { overflow: hidden; }
.leanshop__img {
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-share a,
  .article-author[data-author-name],
  .leanshop { transition: none; }
  .sidebar-share a:hover,
  .sidebar-share a:focus-visible { transform: none; }
  .article-author[data-author-name]:hover,
  .article-author[data-author-name]:focus-visible { transform: none; }
  .leanshop:hover { transform: none; box-shadow: none; }
}

/* ============================================================ */
/* CARROSSEL "Leia também" — barra de tempo + crossfade na troca */
/* (mesmo efeito do "O LIB em ação" da home). O fade é nos       */
/* CONTÊINERES (não na <img>) p/ não brigar com o zoom de hover. */
/* ============================================================ */
/* Coluna do destaque (featured + timer). É o containing block do timer. */
.leia-tambem__main {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.leia-tambem__main .leia-tambem__featured {
  flex: 1 1 auto;     /* preenche a coluna -> altura acompanha a sidebar */
  width: 100%;
}
.leia-tambem__grid { margin-bottom: 18px; }   /* espaço p/ o timer abaixo do card */

/* Timer FORA do card, centrado, curto e sutil (igual "O LIB em ação"). */
.leia-tambem__timer {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 20%;
  height: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.leia-tambem__timer-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-accent), #e57300);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* Altura ESTÁVEL (sem pulo na troca): line-clamp + min-height reservando as
   linhas, para todos os itens ocuparem a mesma altura. */
.leia-tambem__featured-title {
  /* origem: 1 linha (todos os itens cabem). line-height/altura herdam da regra base. */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.leia-tambem__featured-excerpt {
  /* origem: 2 linhas (40px). Reserva fixa -> sem pulo na troca. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.leia-tambem__mini-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.leia-tambem__featured-image,
.leia-tambem__featured-body,
.leia-tambem__mini-image,
.leia-tambem__mini-body { transition: opacity .26s ease; }

.leia-tambem.is-swapping .leia-tambem__featured-image,
.leia-tambem.is-swapping .leia-tambem__featured-body,
.leia-tambem.is-swapping .leia-tambem__mini-image,
.leia-tambem.is-swapping .leia-tambem__mini-body { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .leia-tambem__timer { display: none; }
  .leia-tambem__featured-image,
  .leia-tambem__featured-body,
  .leia-tambem__mini-image,
  .leia-tambem__mini-body { transition: none; }
  .leia-tambem.is-swapping .leia-tambem__featured-image,
  .leia-tambem.is-swapping .leia-tambem__featured-body,
  .leia-tambem.is-swapping .leia-tambem__mini-image,
  .leia-tambem.is-swapping .leia-tambem__mini-body { opacity: 1; }
}

/* ============================================================ */
/* HOVER — botões do CORPO do artigo (bloco de citação):        */
/* "Compartilhar frase" + o menu de redes que abre.             */
/* ============================================================ */
.article-quote__share {
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease;
}
.article-quote__share:hover,
.article-quote__share:focus-visible {
  border-color: var(--ab-navy);
  color: var(--ab-navy);
  background-color: rgba(20, 11, 71, 0.04);
  transform: translateY(-1px);
}
.share-quote-menu a {
  display: inline-flex;
  border-radius: 8px;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), filter .2s ease;
}
.share-quote-menu a:hover,
.share-quote-menu a:focus-visible {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(0.88);
}
@media (prefers-reduced-motion: reduce) {
  .article-quote__share,
  .share-quote-menu a { transition: none; }
  .article-quote__share:hover,
  .article-quote__share:focus-visible { transform: none; }
  .share-quote-menu a:hover,
  .share-quote-menu a:focus-visible { transform: none; }
}

/* ------------------------------------------------------------ */
/* Voltar ao topo (flutuante; .is-visible ligado pelo JS)        */
/* Abaixo dos modais de autor/zoom (z-index 100/110). Fica acima */
/* do widget de chat JivoChat (85×85 no canto inferior direito). */
/* ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2a2566;
  color: #fff;
  box-shadow: 0 6px 18px rgba(20, 11, 71, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, background 0.15s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s, background 0.15s ease;
}
.back-to-top:hover {
  background: #ff8000;
}
.back-to-top:focus-visible {
  outline: 3px solid #ff8000;
  outline-offset: 3px;
}
/* Destino do foco do "voltar ao topo" (tabindex=-1): sem contorno no artigo inteiro. */
#post-top:focus {
  outline: none;
}
@media (max-width: 767.98px) {
  .back-to-top {
    right: 20px;
    bottom: 96px;
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .back-to-top.is-visible { transition: none; transform: none; }
}
