/* =========================================================
   Blog Hora-Extra (Afonso Paciléo Sociedade de Advogados) — miolo do blog
   Mesma estrutura do blog da Sou Smart (destaque, recentes, populares,
   explorador de temas, materiais, autores, artigo com sumário...), com a
   identidade do escritório: títulos em Source Serif, dourado como destaque,
   cantos retos e espaçamentos sóbrios.
   Tokens de cor e fonte em site-afonso.css (:root).
   ========================================================= */

:root {
  --texto: #2b2b2b;
  --texto-sec: #5c5c5c;     /* texto secundário pequeno (contraste 6,5:1) */
  --linha: #e6e6e6;
  --linha-forte: #d5d5d5;
  --ouro-claro: #FFF6E6;
  --max-width: 1280px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--branco);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--tinta); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Página ---------- */
.page { width: min(var(--max-width), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 48px 0 0; }
.page--v2 { display: flex; flex-direction: column; gap: 64px; }
.page--v2 > * { margin: 0; }
.page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.page__grid--article { align-items: stretch; }
.page__grid--single { grid-template-columns: minmax(0, 1fr); }
.page__grid--single .page__content { max-width: 980px; }
.page:not(.page--v2) > .theme-explorer { margin-bottom: 48px; }

/* ---------- Títulos de seção ---------- */
.section-title {
  position: relative; margin: 0 0 32px; padding-bottom: 14px;
  font: 700 clamp(1.625rem, 1.4rem + .9vw, 2.125rem)/1.2 var(--serif); color: var(--tinta);
}
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--laranja); }
.section-title--page { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.875rem); line-height: 1.12; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-title-row .section-title { margin-bottom: 0; }
.section-subtitle { margin: 10px 0 0; color: var(--texto-sec); font-size: 15px; }
.list-subtitle { font-size: clamp(1.375rem, 1.25rem + .5vw, 1.625rem); margin-top: 8px; }
.empty-state { color: var(--texto-sec); font-size: 15px; }
.list-intro { max-width: 760px; margin: -8px 0 32px; color: var(--texto-sec); font-size: 17px; line-height: 1.6; }

/* ---------- Botões e links ---------- */
/* "Leia mais": texto em caixa alta com sublinhado dourado e seta que anda. */
.link-leia-mais {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 4px 0; border-bottom: 2px solid var(--laranja);
  color: var(--tinta); font: 700 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.link-leia-mais::after { content: "\2192"; transition: transform .2s; }
.link-leia-mais:hover { color: var(--laranja-texto); border-color: var(--laranja-titulo); }
.link-leia-mais:hover::after { transform: translateX(4px); }
.link-leia-mais--back::after { content: none; }
.link-leia-mais--back::before { content: "\2190"; transition: transform .2s; }
.link-leia-mais--back:hover::before { transform: translateX(-4px); }

/* "Ver todos": botão de contorno grafite que se preenche. */
.link-ver-todos {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px;
  border: 1.5px solid var(--tinta); background: transparent; color: var(--tinta);
  font: 600 12.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.link-ver-todos::after { content: "\2192"; transition: transform .2s; }
.link-ver-todos:hover { background: var(--tinta); color: var(--laranja); }
.link-ver-todos:hover::after { transform: translateX(3px); }

/* ---------- Explore por tema ---------- */
.theme-explorer__eyebrow { margin: 0 0 6px; color: var(--laranja-texto); font: 700 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.theme-explorer .section-title { margin-bottom: 24px; font-size: clamp(1.5rem, 1.35rem + .6vw, 1.875rem); }
.theme-explorer__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--linha); border-left: 1px solid var(--linha); }
.theme-tile {
  position: relative; display: flex; align-items: center; gap: 14px; min-width: 0;
  padding: 20px 18px; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); background: var(--branco);
  transition: background-color .25s;
}
.theme-tile::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--theme-color, var(--laranja)); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease-saida); }
.theme-tile:hover { background: var(--cinza-fundo); }
.theme-tile:hover::before, .theme-tile.is-active::before { transform: scaleY(1); }
.theme-tile__icon { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; background: var(--ouro-claro); color: var(--theme-color, var(--laranja-titulo)); }
.theme-tile__icon svg { width: 26px; height: 26px; display: block; }
.theme-tile__copy { flex: 1; min-width: 0; }
.theme-tile__copy strong { display: block; color: var(--tinta); font: 700 15px/1.3 var(--sans); }
.theme-tile__copy small { display: block; margin-top: 3px; color: var(--texto-sec); font-size: 12.5px; line-height: 1.4; }
.theme-tile__chevron { flex: 0 0 auto; color: #a8a8a8; font-size: 24px; transition: transform .2s, color .2s; }
.theme-tile:hover .theme-tile__chevron { color: var(--laranja-titulo); transform: translateX(3px); }
.theme-tile.is-active { background: var(--cinza-fundo); }
.theme-tile.is-active .theme-tile__copy strong { color: var(--laranja-texto); }

/* ---------- Destaque da home ---------- */
.hero { padding-bottom: 48px; border-bottom: 1px solid var(--linha); }
.hero__content { display: grid; grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero__text { max-width: 560px; }
.hero__eyebrow { margin: 0 0 18px; color: var(--laranja-texto); font: 700 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.hero__eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin: 0 12px 4px 0; background: var(--laranja); vertical-align: middle; }
.hero__text h2 { margin: 0 0 14px; font: 700 clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem)/1.12 var(--serif); }
.hero__text h2 a { color: var(--tinta); transition: color .2s; }
.hero__text h2 a:hover { color: var(--laranja-texto); }
.hero__text .post-card__meta { margin-bottom: 18px; }
.hero__excerpt { margin: 0 0 30px; color: var(--texto-sec); font-size: 16.5px; line-height: 1.7; }
.hero__cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 200px; min-height: 54px; padding: 12px 26px;
  background: linear-gradient(var(--tinta), var(--tinta)) no-repeat left / 0% 100%, var(--laranja); color: var(--tinta);
  font: 600 14px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  transition: background-size .45s var(--ease-saida), color .3s;
}
.hero__cta:hover { background-size: 100% 100%, auto; color: var(--laranja); }
.hero__image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #eee; }
.hero__image::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 72px; background: var(--laranja); }
.hero__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-saida); }
.hero__image:hover img { transform: scale(1.04); }
.hero--model-2 .hero__content { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); }
.hero--model-2 .hero__image { order: -1; }
.hero--model-2 .hero__image::after { left: auto; right: 0; }
.hero--model-1 { border-bottom: 0; padding-bottom: 0; }
.hero--model-1 .hero__content { position: relative; display: block; min-height: 460px; overflow: hidden; background: var(--grafite); }
.hero--model-1 .hero__image { position: absolute; inset: 0; aspect-ratio: auto; }
.hero--model-1 .hero__image::after { width: auto; height: auto; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.94) 0%, rgba(20,20,20,.76) 45%, rgba(20,20,20,.15) 80%); }
.hero--model-1 .hero__text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: 460px; max-width: 700px; padding: 56px 52px; pointer-events: none; }
.hero--model-1 .hero__text a { pointer-events: auto; }
.hero--model-1 .hero__text h2 a { color: #fff; }
.hero--model-1 .hero__excerpt, .hero--model-1 .post-card__meta { color: rgba(255,255,255,.86); }
.hero--model-1 .post-card__meta time { color: var(--laranja); }
.hero--model-1 .hero__eyebrow { color: var(--laranja); }

/* ---------- Cartões ---------- */
.cards-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.cards-row--list { margin-bottom: 40px; }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.post-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 18px; background: #eee; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-saida); }
.post-card__image::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--laranja); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-saida); }
.post-card:hover .post-card__image img { transform: scale(1.06); }
.post-card:hover .post-card__image::after { transform: scaleX(1); }
.post-card__badge {
  position: absolute; top: 0; left: 0; z-index: 1;
  padding: 6px 10px; background: var(--laranja); color: var(--tinta);
  font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.post-card h3 { margin-bottom: 8px; font: 700 19px/1.3 var(--serif); }
.post-card h3 a { transition: color .2s; }
.post-card h3 a:hover, .post-card:hover h3 a { color: var(--laranja-texto); }
.post-card p { margin: 0 0 16px; color: var(--texto-sec); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link-leia-mais { margin-top: auto; }
.post-card__meta, .post-card .post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0 0 10px; color: var(--texto-sec); font-size: 12px; font-weight: 500; }
.post-card__meta time { color: var(--laranja-texto); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.post-card__author { white-space: nowrap; }

/* ---------- Mais populares ---------- */
.popular-numbered-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linha); }
.popular-numbered-item { display: flex; align-items: flex-start; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--linha); }
.popular-numbered-item__index { flex: 0 0 56px; color: var(--laranja-titulo); font: 700 40px/1 var(--serif); }
.popular-numbered-item__body { flex: 1; min-width: 0; }
.popular-numbered-item__body h3 { margin-bottom: 6px; font: 700 20px/1.3 var(--serif); }
.popular-numbered-item__body h3 a:hover { color: var(--laranja-texto); }
.popular-numbered-item__body p { margin: 0; color: var(--texto-sec); font-size: 14.5px; line-height: 1.6; }
.popular-numbered-item > .link-leia-mais { flex: 0 0 auto; white-space: nowrap; align-self: center; }

/* ---------- Lateral ---------- */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.tags-box h3, .authors-box h3 { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--laranja); color: var(--tinta); font: 700 13px/1.3 var(--sans-rodape); letter-spacing: .08em; text-transform: uppercase; }
.tags-box__cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { display: inline-block; padding: 7px 12px; border: 1px solid var(--linha-forte); background: var(--branco); color: var(--texto); font-size: 13px; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.tag-chip:hover { background: var(--tinta); border-color: var(--tinta); color: var(--laranja); }
.sidebar-cta { padding: 26px 24px; background: var(--grafite); color: #e6e6e6; }
.sidebar-cta p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; }
.sidebar-cta__titulo { margin-bottom: 8px !important; color: #fff; font: 700 21px/1.25 var(--serif) !important; }
.sidebar-cta__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px; background: var(--laranja); color: var(--tinta); font: 600 13px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; transition: background-color .2s; }
.sidebar-cta__btn:hover { background: #fff; }

/* ---------- Página do artigo ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 18px; color: var(--texto-sec); font-size: 13px; }
.breadcrumbs a { color: var(--laranja-texto); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(154, 88, 0, .35); text-underline-offset: .2em; }
.breadcrumbs a:hover { text-decoration-color: currentColor; }
.breadcrumbs [aria-current="page"] { overflow: hidden; max-width: min(32rem, 100%); text-overflow: ellipsis; white-space: nowrap; }

.post-detail__category { margin: 0 0 12px; color: var(--laranja-texto); font: 700 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.post-detail__badge { display: inline-block; margin-left: 10px; padding: 4px 9px; background: var(--tinta); color: var(--laranja); font-size: 10.5px; letter-spacing: .06em; vertical-align: 1px; }
.post-detail h1 { margin-bottom: 16px; font: 700 clamp(2rem, 1.55rem + 1.9vw, 3rem)/1.12 var(--serif); letter-spacing: -.01em; }
.post-detail__meta { margin: 0 0 28px; color: var(--texto-sec); font-size: 13.5px; line-height: 1.7; }
.post-detail__author { color: var(--laranja-texto); font-weight: 700; }
.post-detail__author:hover { text-decoration: underline; }
.post-detail__cover { width: 100%; aspect-ratio: 837 / 470; object-fit: cover; margin-bottom: 36px; }
.post-detail__body { color: var(--texto); font-size: 18px; line-height: 1.78; overflow-wrap: break-word; }
.post-detail__body p { margin: 0 0 22px; }
.post-detail__lede { margin: 0 0 30px !important; padding-bottom: 28px; border-bottom: 1px solid var(--linha); color: #3b3b3b; font-size: 20px; font-weight: 500; line-height: 1.6; }
.post-detail__body :is(h2, h3, h4) { scroll-margin-top: 24px; color: var(--tinta); font-family: var(--serif); line-height: 1.25; }
.post-detail__body h2 { margin: 56px 0 16px; font-size: clamp(1.5rem, 1.35rem + .6vw, 1.875rem); font-weight: 700; }
.post-detail__body h3 { margin: 36px 0 12px; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.4375rem); font-weight: 700; }
.post-detail__body h4 { margin: 28px 0 10px; font-size: 19px; font-weight: 600; }
.post-detail__body :is(h2, h3) + :is(h3, h4) { margin-top: 20px; }
.post-detail__body :is(ul, ol) { margin: 0 0 22px; padding-left: 1.3em; }
.post-detail__body li { margin-bottom: 10px; }
.post-detail__body li::marker { color: var(--laranja-titulo); font-weight: 700; }
.post-detail__body a { color: var(--laranja-texto); text-decoration: underline; text-underline-offset: .15em; }
.post-detail__body a:hover { color: var(--tinta); }
.post-detail__body :is(h2, h3, h4) a { color: inherit; text-decoration: none; }
.post-detail__body img { margin: 24px 0; }
.post-detail__body blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--laranja); color: #3b3b3b; font: italic 400 20px/1.6 var(--serif); }
.post-detail__body table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.post-detail__body :is(th, td) { padding: 10px 12px; border: 1px solid var(--linha); text-align: left; vertical-align: top; }
.post-detail__body th { background: var(--cinza-fundo); font-weight: 700; }
.post-detail__aviso { margin: 40px 0 0; padding: 14px 18px; background: var(--cinza-fundo); color: var(--texto-sec); font-size: 13.5px; line-height: 1.6; }
.post-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 28px; }

.direct-answer { margin: 0 0 32px; padding: 20px 24px; border-left: 4px solid var(--laranja); background: var(--ouro-claro); }
.direct-answer strong { display: block; margin-bottom: 8px; color: var(--laranja-texto); font: 800 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.post-detail__body .direct-answer p { margin: 0; }

.related-questions, .post-sources { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--linha); }
.related-questions h2, .post-sources h2 { margin-bottom: 16px; font: 700 22px/1.3 var(--serif); }
.related-questions :is(ul, ol), .post-sources :is(ul, ol) { margin: 0; padding-left: 1.2em; }
.related-questions li, .post-sources li { margin-bottom: 10px; font-size: 15.5px; line-height: 1.55; }
.post-sources a { color: var(--laranja-texto); text-decoration: underline; }

.guide-download { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; padding: 20px 24px; border: 1px solid var(--laranja); background: var(--ouro-claro); text-decoration: none !important; color: var(--tinta) !important; }
.guide-download__icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; background: var(--tinta); color: var(--laranja); font-size: 20px; font-weight: 700; }
.guide-download strong { display: block; font-size: 16px; }
.guide-download small { color: var(--texto-sec); font-size: 13px; line-height: 1.4; }

/* Sumário: seções numeradas, subtópicos recuados e sem número. */
.article-toc { border: 1px solid var(--linha); background: var(--branco); }
.article-toc__heading { margin: 0; color: var(--tinta); font: 700 12.5px/1.3 var(--sans-rodape); letter-spacing: .08em; text-transform: uppercase; }
.article-toc__count { color: var(--texto-sec); font: 500 12px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.toc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc-list a { transition: background-color .15s, color .15s; }
.toc-list__link { display: flex; align-items: baseline; gap: 12px; padding: 8px 10px; color: var(--texto); font-size: 14px; font-weight: 600; line-height: 1.4; }
.toc-list__num { flex: 0 0 auto; color: var(--laranja-texto); font: 700 13px/1 var(--serif); font-variant-numeric: tabular-nums; }
.toc-list__children { display: grid; gap: 1px; margin: 2px 0 8px 31px; padding: 0 0 0 10px; list-style: none; border-left: 2px solid var(--linha); }
.toc-list__children a { display: block; padding: 5px 8px; color: var(--texto-sec); font-size: 13px; line-height: 1.4; }
.toc-list a:hover { background: var(--cinza-fundo); color: var(--laranja-texto); }
.toc-list a.is-active { background: var(--ouro-claro); color: var(--laranja-texto); box-shadow: inset 3px 0 0 var(--laranja); }
.article-toc--inline { margin: 0 0 32px; }
.article-toc__summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.article-toc__summary::-webkit-details-marker { display: none; }
.article-toc__chevron { width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--laranja-titulo); border-bottom: 2px solid var(--laranja-titulo); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.article-toc--inline[open] .article-toc__chevron { transform: translateY(2px) rotate(-135deg); }
.article-toc--inline .toc-list { padding: 12px 12px 16px; border-top: 1px solid var(--linha); }
.article-toc--inline .toc-list__children { display: none; }
.article-toc--side { display: none; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 18px 12px 14px; overscroll-behavior: contain; border-top: 3px solid var(--laranja); }
.article-toc--side .article-toc__heading { display: flex; align-items: baseline; justify-content: space-between; padding: 0 10px 12px; }
.article-toc--side .toc-list__children { display: none; }
.article-toc--side .toc-list__section.is-open > .toc-list__children { display: grid; }
@media (min-width: 981px) {
  .article-toc--side { display: block; }
  .article-toc--inline { display: none; }
}

.reading-progress { position: fixed; inset: 0 0 auto 0; z-index: 80; height: 4px; pointer-events: none; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--laranja); }

/* ---------- Clusters: tema e "Continue lendo" ---------- */
.topic-intro { max-width: 760px; margin: -6px 0 32px; padding-left: 18px; border-left: 3px solid var(--topic-color, var(--laranja)); }
.topic-intro p { margin: 0 0 12px; color: #3b3b3b; font-size: 17px; line-height: 1.7; }
.topic-intro p:last-child { margin-bottom: 0; }
.pillar-card { display: grid; gap: 8px; margin: 0 0 36px; padding: 26px 28px; border: 1px solid var(--linha); border-left: 4px solid var(--laranja); background: var(--cinza-fundo); transition: box-shadow .25s, background-color .25s; }
.pillar-card:hover { background: var(--branco); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.pillar-card__label { color: var(--laranja-texto); font: 700 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pillar-card__title { color: var(--tinta); font: 700 23px/1.3 var(--serif); }
.pillar-card__excerpt { color: var(--texto-sec); font-size: 15px; line-height: 1.6; }
.pillar-card__cta { color: var(--tinta); font: 700 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.continue-reading { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--linha); }
.continue-reading > h2 { margin: 0 0 24px; font: 700 clamp(1.5rem, 1.35rem + .6vw, 1.875rem)/1.2 var(--serif); }
.continue-reading__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.continue-reading__cards .post-card h3 { font-size: 17px; }
.continue-reading__cards .post-card p { -webkit-line-clamp: 2; font-size: 13.5px; }
.continue-reading__more { margin-top: 24px; }

/* ---------- Materiais gratuitos ---------- */
.materials-block--v2 { padding: 64px 0; background: var(--cinza-fundo); box-shadow: 0 0 0 100vmax var(--cinza-fundo); clip-path: inset(0 -100vmax); }
.materials-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.materials-feature-grid--list { margin-bottom: 48px; }
.material-feature-card { display: flex; flex-direction: column; background: var(--branco); box-shadow: 0 4px 18px rgba(0,0,0,.07); transition: transform .45s var(--ease-saida), box-shadow .45s var(--ease-saida); }
.material-feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,.12); }
.material-feature-card__image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.material-feature-card__image img { width: 100%; height: 100%; object-fit: cover; }
.material-feature-card__badge { position: absolute; top: 0; left: 0; padding: 6px 10px; background: var(--tinta); color: var(--laranja); font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.material-feature-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 22px 24px; }
.material-feature-card__body h3 { font: 700 19px/1.3 var(--serif); }
.material-feature-card__body p { margin: 0; color: var(--texto-sec); font-size: 14px; line-height: 1.6; }
.material-card__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: auto; min-height: 46px; padding: 10px 20px;
  background: var(--laranja); color: var(--tinta); font: 600 13px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .25s, color .25s;
}
.material-card__cta:hover { background: var(--tinta); color: var(--laranja); }

/* ---------- Autores ---------- */
.home-authors__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.home-author { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 24px 26px; border: 1px solid var(--linha); background: var(--branco); text-align: center; transition: transform .45s var(--ease-saida), box-shadow .45s var(--ease-saida); }
.home-author:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,.1); }
.home-author__photo, .editor-tile__photo, .editor-profile__photo, .author-box__photo, .authors-box__photo { display: grid; place-items: center; overflow: hidden; background: var(--ouro-claro); color: var(--laranja-texto); font-family: var(--serif); font-weight: 700; }
.home-author__photo { width: 112px; height: 112px; margin-bottom: 12px; font-size: 32px; box-shadow: 6px 6px 0 var(--laranja); }
.home-author__photo img, .editor-tile__photo img, .editor-profile__photo img, .author-box__photo img, .authors-box__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.home-author h3 { font: 700 20px/1.3 var(--serif); }
.home-author h3 a:hover { color: var(--laranja-texto); }
.home-author__role { margin: 0; color: var(--laranja-texto); font-size: 13px; font-weight: 600; }
.home-author__bio { display: -webkit-box; margin: 8px 0 10px; overflow: hidden; color: var(--texto-sec); font-size: 14px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.home-author .link-leia-mais { margin-top: auto; align-self: center; }

.editors-list { display: grid; gap: 20px; }
.editor-tile { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 28px; align-items: start; padding: 26px; border: 1px solid var(--linha); background: var(--branco); }
.editor-tile__photo { width: 128px; height: 128px; font-size: 36px; }
.editor-tile h2 { font: 700 23px/1.25 var(--serif); }
.editor-tile h2 a:hover { color: var(--laranja-texto); }
.editor-tile__role { margin: 4px 0 0; color: var(--laranja-texto); font-size: 14px; font-weight: 600; }
.editor-tile__bio { margin: 12px 0 0; color: var(--texto); font-size: 15px; line-height: 1.65; }
.editor-tile__meta { margin: 10px 0 12px; color: var(--texto-sec); font-size: 13px; }

.editor-profile { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: center; margin: 8px 0 44px; }
.editor-profile__photo { position: relative; width: 360px; height: 400px; font-size: 96px; box-shadow: 14px 14px 0 var(--laranja); }
.editor-profile__eyebrow { margin: 0 0 8px; color: var(--laranja-texto); font: 700 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.editor-profile h1 { font: 700 clamp(2rem, 1.6rem + 1.6vw, 2.875rem)/1.12 var(--serif); }
.editor-profile__role { margin: 8px 0 0; color: var(--tinta); font-size: 16px; font-weight: 600; }
.editor-profile__summary { margin: 16px 0 0; max-width: 620px; color: var(--texto); font-size: 16.5px; line-height: 1.7; }
.editor-profile__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.editor-profile__links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--linha-forte); color: var(--tinta); font-size: 13px; font-weight: 600; }
.editor-profile__links a:hover { border-color: var(--tinta); background: var(--tinta); color: var(--laranja); }
.editor-profile__expertise { margin: 22px 0 0; }
.editor-profile__expertise-title { margin: 0 0 10px; color: var(--tinta); font-size: 14px; font-weight: 700; }
.editor-profile__expertise-list { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-profile__bio { max-width: 780px; margin: 0 0 48px; }
.editor-profile__bio h2, .editor-profile__reviewed h2 { margin-bottom: 16px; font: 700 26px/1.25 var(--serif); }
.editor-profile__bio :is(p, ul) { margin: 0 0 16px; color: var(--texto); font-size: 16.5px; line-height: 1.75; }
.editor-profile__bio ul { padding-left: 20px; }
.editor-profile__posts { margin-bottom: 40px; }
.editor-profile__reviewed { margin-bottom: 36px; }
.editor-profile__reviewed ul { margin: 0; padding-left: 20px; line-height: 1.9; }
.editor-profile__reviewed a { color: var(--laranja-texto); text-decoration: underline; }

.author-box { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 48px; padding: 28px; border-left: 4px solid var(--laranja); background: var(--cinza-fundo); }
.author-box__photo { width: 104px; height: 104px; font-size: 30px; }
.author-box__label { margin: 0; color: var(--laranja-texto); font: 700 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.author-box__name { margin: 4px 0 0; font: 700 22px/1.25 var(--serif); color: var(--tinta); }
.author-box__name a:hover { color: var(--laranja-texto); }
.author-box__role { margin: 2px 0 0; color: var(--tinta); font-size: 14px; font-weight: 600; }
.author-box__bio { margin: 10px 0 0; color: var(--texto); font-size: 15px; line-height: 1.65; }
.author-box__review { margin: 10px 0 0; color: var(--texto-sec); font-size: 13px; }
.author-box__review a { color: var(--tinta); font-weight: 600; text-decoration: underline; }
.author-box__more { display: inline-block; margin-top: 12px; color: var(--tinta); font: 700 12.5px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--laranja); }
.author-box__more:hover { color: var(--laranja-texto); }

.authors-box__list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.authors-box__item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--linha); background: var(--branco); transition: border-color .2s, box-shadow .2s; }
.authors-box__item:hover { border-color: var(--laranja); box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.authors-box__photo { flex: 0 0 56px; width: 56px; height: 56px; }
.authors-box__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.authors-box__text strong { color: var(--tinta); font: 700 16px/1.25 var(--serif); }
.authors-box__text small { color: var(--laranja-texto); font-size: 12px; font-weight: 600; }

/* Foto pequena de autor (quadro do artigo e listas): aproxima do rosto, para foto de meio corpo. */
.photo-zoom { transform: scale(1.5); transform-origin: 50% 10%; }

/* ---------- Listas: filtros e paginação ---------- */
.list-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--linha); }
.list-filters__count { margin: 0; color: var(--texto-sec); font-size: 14px; font-weight: 600; }
.list-filters__select { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--tinta); font: 700 12.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.list-filters__select select { min-width: 170px; min-height: 44px; padding: 9px 38px 9px 14px; border: 1px solid var(--linha-forte); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A5800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--tinta); font: 600 14px/1.2 var(--sans); text-transform: none; letter-spacing: 0; cursor: pointer; -webkit-appearance: none; appearance: none; border-radius: 0; }
.list-filters__select select:hover, .list-filters__select select:focus { border-color: var(--tinta); }
.list-filters__submit { min-height: 44px; padding: 9px 16px; border: 1.5px solid var(--tinta); background: #fff; color: var(--tinta); font: 700 13px/1.2 var(--sans); cursor: pointer; }
.list-filters__submit[hidden] { display: none; }
.list-filters__empty { flex: 1 1 100%; margin: 0; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--linha); }
.pagination__link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--tinta); color: var(--tinta); font: 600 13px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.pagination__link:hover { background: var(--tinta); color: var(--laranja); }
.pagination__status { color: var(--texto-sec); font-size: 14px; }

/* ---------- Materiais: janela do formulário e página do material ---------- */
.lead-modal { width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-top: 5px solid var(--laranja); background: #fff; color: var(--texto); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.lead-modal::backdrop { background: rgba(20, 20, 20, .7); }
.lead-modal__box { position: relative; padding: 34px 34px 30px; }
.lead-modal__close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: #444; font-size: 28px; line-height: 1; cursor: pointer; }
.lead-modal__close:hover { background: var(--cinza-fundo); color: #000; }
.lead-modal__eyebrow { display: inline-block; margin-bottom: 8px; color: var(--laranja-texto); font: 700 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.lead-modal h2, .material-page h1 { margin: 0 0 10px; color: var(--tinta); font: 700 26px/1.25 var(--serif); }
.material-page h1 { font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem); }
.lead-modal__intro { margin: 0 0 20px; color: var(--texto-sec); font-size: 14.5px; }
.lead-modal__step[hidden] { display: none; }
.lead-modal__done { text-align: center; padding: 12px 0 4px; }
.lead-modal__done p { margin: 0 0 20px; font-size: 14.5px; }
.lead-modal__check { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; background: var(--laranja); color: var(--tinta); font-size: 28px; font-weight: 700; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form__field { display: flex; flex-direction: column; gap: 6px; color: var(--tinta); font-size: 13px; font-weight: 600; }
.lead-form__field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #bdbdbd; border-radius: 0; background: #fff; color: var(--tinta); font: 500 15px/1.3 var(--sans); }
.lead-form__field input:focus { outline: 3px solid var(--tinta); outline-offset: 0; border-color: var(--tinta); }
.lead-form__consent { display: flex; align-items: flex-start; gap: 10px; color: var(--texto-sec); font-size: 12.5px; line-height: 1.55; }
.lead-form__consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--laranja-titulo); }
.lead-form__consent a { color: var(--laranja-texto); text-decoration: underline; }
.lead-form__error { color: #b3261e; font-size: 12.5px; font-weight: 600; }
.lead-form__error:empty { display: none; }
.lead-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 14px 26px; border: 0; background: var(--laranja); color: var(--tinta); font: 700 14px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background-color .25s, color .25s; }
.lead-form__submit:hover { background: var(--tinta); color: var(--laranja); }
.lead-form__submit:disabled { opacity: .6; cursor: wait; }
.material-page__grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 24px; }
.material-page__cover img { width: 100%; box-shadow: 14px 14px 0 var(--laranja); }
.material-page__description { margin: 0 0 20px; color: var(--texto); font-size: 16px; line-height: 1.7; }
.material-page__body { max-width: 540px; }

/* ---------- 404 ---------- */
.not-found { max-width: 640px; margin: 0 auto; padding: 48px 0 24px; text-align: center; }
.not-found__codigo { margin: 0; color: var(--laranja-titulo); font: 700 clamp(4.5rem, 3rem + 6vw, 7.5rem)/1 var(--serif); }
.not-found h1 { margin: 8px 0 14px; font: 700 clamp(1.75rem, 1.5rem + 1vw, 2.5rem)/1.2 var(--serif); }
.not-found p { margin: 0 0 28px; color: var(--texto-sec); font-size: 16.5px; line-height: 1.6; }
.not-found .link-leia-mais { align-self: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .page__grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .cards-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-profile { grid-template-columns: 1fr; gap: 36px; }
  .editor-profile__photo { width: 300px; height: 330px; }
}
@media (max-width: 980px) {
  .page__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__content, .hero--model-2 .hero__content { grid-template-columns: 1fr; gap: 28px; }
  .hero__image, .hero--model-2 .hero__image { order: -1; }
  .hero__text { max-width: 760px; }
  .hero--model-1 .hero__text { padding: 44px 36px; }
  .theme-explorer__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials-feature-grid { grid-template-columns: 1fr 1fr; }
  .continue-reading__cards { grid-template-columns: 1fr 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .sidebar .article-toc--side { display: none; }
}
@media (max-width: 760px) {
  .material-page__grid { grid-template-columns: 1fr; gap: 32px; }
  .material-page__cover { max-width: 320px; }
  .lead-modal__box { padding: 30px 20px 22px; }
}
@media (max-width: 640px) {
  .page { padding-top: 32px; }
  .page--v2 { gap: 48px; }
  .cards-row, .continue-reading__cards, .materials-feature-grid { grid-template-columns: 1fr; }
  .section-title-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* No celular os temas viram uma faixa que rola para o lado. */
  .theme-explorer__row { display: flex; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; overflow-x: auto; border: 0; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .theme-explorer__row::-webkit-scrollbar { display: none; }
  .theme-tile { flex: 0 0 248px; padding: 14px; border: 1px solid var(--linha); scroll-snap-align: start; }
  .theme-tile::before { left: -1px; }
  .hero { padding-bottom: 36px; }
  .hero__cta { width: 100%; }
  .hero__image::after { width: 48px; height: 48px; }
  .hero--model-1 .hero__content, .hero--model-1 .hero__text { min-height: 420px; }
  .hero--model-1 .hero__text { padding: 32px 22px; }
  .popular-numbered-item { flex-wrap: wrap; gap: 6px 16px; }
  .popular-numbered-item__index { flex-basis: 44px; font-size: 32px; }
  .popular-numbered-item__body { flex-basis: calc(100% - 60px); }
  .popular-numbered-item > .link-leia-mais { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .post-detail__body { font-size: 17px; }
  .post-detail__lede { font-size: 18px; }
  .guide-download { flex-direction: column; align-items: flex-start; }
  .editor-tile { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .editor-tile__photo { width: 104px; height: 104px; }
  .editor-profile__photo { width: min(100% - 14px, 300px); height: auto; aspect-ratio: 9 / 10; font-size: 72px; }
  .author-box { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .author-box__photo { width: 84px; height: 84px; }
  .pagination { flex-wrap: wrap; justify-content: center; }
  .pagination__status { order: -1; flex: 1 1 100%; text-align: center; }
}
@media (hover: none) {
  .home-author:hover, .material-feature-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .post-card__badge, .material-card__cta, .lead-form__submit, .hero__cta { border: 1px solid CanvasText; }
}
