/* ═══════════════════════════════════════════════════════════════
   BLOG · listagem e artigo
   Fundo limpo (branco quente), hero com imagem, barra lateral.
   Carregar depois de style.css e page.css.
   ═══════════════════════════════════════════════════════════════ */

.is-clean { --paper: #fffdf9; --line: #ece5d8; --line-soft: #f2ede3; background: var(--paper); }
.is-clean .header__bar { background: rgba(255, 255, 255, .78); }

/* ── HERO COM IMAGEM ────────────────────────────────────────── */
.b-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(460px, 44vw, 580px);
  padding: calc(var(--header-h) + 64px) 0 clamp(96px, 9vw, 140px);
  background: var(--forest-deep); color: var(--on-dark);
}
.b-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.b-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 58, 51, .94) 0%, rgba(23, 58, 51, .82) 38%, rgba(23, 58, 51, .35) 75%, rgba(23, 58, 51, .2) 100%),
    linear-gradient(0deg, rgba(23, 58, 51, .55), transparent 45%);
}
.b-hero__inner { position: relative; }
.b-hero__inner > * { max-width: 760px; }
.b-hero__title {
  margin-top: 1rem;
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(2.6rem, 4.4vw + 1rem, 5rem); line-height: 1.02; letter-spacing: -.02em;
  color: var(--ivory); text-wrap: balance;
}
.b-hero--post .b-hero__title { font-size: clamp(2.2rem, 3.4vw + 1rem, 4rem); line-height: 1.06; }
.b-hero__lead { margin-top: 1.2rem; font-size: clamp(1.08rem, .5vw + 1rem, 1.3rem); line-height: 1.6; color: var(--on-dark-soft); max-width: 60ch; text-wrap: pretty; }
.b-hero__inner > .b-hero__meta { max-width: none; }
.b-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; margin-top: 1.8rem; font-size: .95rem; color: var(--on-dark-soft); }
.b-hero__meta > span { display: inline-flex; align-items: center; gap: .45rem; }
.b-hero__meta svg { width: 17px; height: 17px; color: var(--sand); }
.b-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 5vw, 76px); fill: var(--paper); }
.b-hero--post .b-tag { margin-top: 1.2rem; }

.b-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--sand); }
.b-crumbs a { color: var(--on-dark-soft); font-weight: 600; transition: color .2s; }
.b-crumbs a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.b-crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* ── ESTRUTURA ──────────────────────────────────────────────── */
.b-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
  padding: clamp(28px, 4vw, 56px) 0 clamp(72px, 8vw, 120px);
}
.b-main { min-width: 0; }

/* ── ETIQUETAS, LINKS, AUTORAS ──────────────────────────────── */
.b-tag {
  position: relative; z-index: 1; display: inline-flex; align-self: flex-start; align-items: center;
  padding: .32rem .8rem; border-radius: 99px;
  background: rgba(33, 77, 69, .08); color: var(--forest);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .25s, color .25s;
}
a.b-tag:hover { background: var(--forest); color: var(--ivory); }
.b-tag--gold { background: rgba(200, 155, 74, .16); color: var(--gold-ink); }
.b-tag--light { background: rgba(245, 242, 236, .14); color: var(--sand); border: 1px solid rgba(216, 193, 154, .4); }
a.b-tag--light:hover { background: var(--sand); color: var(--forest-deep); }

.b-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; font-weight: 700; font-size: .95rem; color: var(--forest); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.b-link:hover { text-decoration-color: var(--forest); }
.b-link svg { width: 17px; height: 17px; }

.b-avatar { flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 1px solid var(--gold); background: #fff; }
.b-avatar--brand { padding: 3px; object-fit: contain; }
.b-avatar--empty { display: grid; place-items: center; font-family: var(--ff-display); font-size: .85rem; color: var(--forest); background: var(--ivory); }
.b-byline { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem; color: var(--ink); line-height: 1.25; }
.b-byline:hover span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.b-byline small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); }
.b-byline--light { color: var(--ivory); font-size: 1rem; }
.b-byline--light .b-avatar { border-color: var(--sand); }

/* ── CARTÕES ────────────────────────────────────────────────── */
.b-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(23, 58, 51, .04);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.b-card:hover { transform: translateY(-4px); border-color: rgba(200, 155, 74, .55); box-shadow: 0 26px 50px -30px rgba(23, 58, 51, .35); }
.b-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage-soft); }
.b-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.b-card:hover .b-card__media img { scale: 1.04; }
.b-card__body { display: flex; flex-direction: column; gap: .75rem; flex: 1; padding: 1.4rem 1.4rem 1.3rem; }
.b-card__title { font-family: var(--ff-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.b-card__title a::after { content: ""; position: absolute; inset: 0; }
.b-card__title a:focus-visible { outline: none; }
.b-card:has(.b-card__title a:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.b-card__excerpt { font-size: .97rem; line-height: 1.6; color: var(--ink-soft); }
.b-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.b-card__meta { font-size: .85rem; color: var(--ink-soft); }

.b-card--featured .b-card__media { aspect-ratio: 16 / 8; }
.b-card--featured .b-card__body { padding: clamp(1.5rem, 3vw, 2.4rem); gap: 1rem; }
.b-card--featured .b-card__excerpt { max-width: 62ch; }
.b-card--featured .b-card__title { font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2.3rem); line-height: 1.12; }
.b-card--featured .b-card__excerpt { font-size: 1.03rem; }

.b-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.b-grid:empty { display: none; }
.b-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }

.b-card--soon { padding: 1.6rem 1.5rem; gap: .8rem; background: linear-gradient(160deg, #fff, var(--ivory)); border-style: dashed; border-color: rgba(200, 155, 74, .55); }
.b-card--soon:hover { transform: none; box-shadow: none; }
.b-grid--3 > .b-card--soon:nth-child(2):last-child { grid-column: span 2; justify-content: center; }
.b-grid > .b-card--soon:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.2rem; align-items: center; }
.b-grid > .b-card--soon:only-child .b-soon__ico { grid-row: span 3; }
.b-soon__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); color: var(--forest); background: #fff; }
.b-soon__ico svg { width: 22px; height: 22px; }

.b-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1.2rem; padding: .8rem 1.1rem; border-radius: var(--r-md); background: var(--ivory); border: 1px solid var(--line); }
.b-filter p { color: var(--ink); }
.b-filter span { margin-left: .5rem; font-size: .88rem; color: var(--ink-soft); }
.b-empty { display: grid; justify-items: start; gap: .9rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--r-lg); border: 1px dashed rgba(200, 155, 74, .6); background: #fff; }
.b-empty h2 { font-family: var(--ff-display); font-weight: 400; font-size: 1.8rem; line-height: 1.15; color: var(--ink); }

/* ── BARRA LATERAL ──────────────────────────────────────────── */
.b-side { display: grid; gap: 1.1rem; }
.b-widget { position: relative; overflow: hidden; padding: 1.3rem 1.3rem 1.4rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.b-widget__title { display: block; margin-bottom: .9rem; font-family: var(--ff-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.b-widget__text { margin: -.3rem 0 .9rem; font-size: .9rem; line-height: 1.5; }

.b-search__field { display: flex; align-items: center; gap: .6rem; padding: 0 .9rem; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); transition: border-color .25s, box-shadow .25s; }
.b-search__field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 155, 74, .15); }
.b-search__field svg { width: 18px; height: 18px; color: var(--gold-ink); }
.b-search input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--ink); outline: none; }

.b-cats li + li { border-top: 1px solid var(--line-soft); }
.b-cats a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 46px; padding: .5rem .2rem; font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .25s, padding-left .35s var(--ease); }
.b-cats a:hover, .b-cats a[aria-current] { color: var(--forest); padding-left: .5rem; }
.b-cats a[aria-current] span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.b-cats em { flex: none; font-style: normal; font-size: .78rem; font-weight: 700; min-width: 28px; padding: .15rem .55rem; border-radius: 99px; text-align: center; background: var(--forest); color: var(--ivory); }
.b-cats a.is-empty { color: var(--ink-soft); font-weight: 400; }
.b-cats a.is-empty em { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); font-weight: 400; }

.b-authors { display: grid; gap: .15rem; }
.b-authors a { display: flex; align-items: center; gap: .75rem; padding: .45rem .4rem; border-radius: 12px; transition: background-color .25s; }
.b-authors a:hover, .b-authors a[aria-current] { background: var(--ivory); }
.b-authors strong { display: block; font-family: var(--ff-display); font-weight: 400; font-size: 1.02rem; line-height: 1.2; color: var(--ink); }
.b-authors small { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.3; }

.b-widget--cta { background: var(--forest); border-color: var(--forest); color: var(--on-dark-soft); padding: 1.6rem 1.4rem; isolation: isolate; }
.b-widget--cta h2 { font-family: var(--ff-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--ivory); max-width: 14ch; }
.b-widget--cta p { margin: .6rem 0 1.2rem; font-size: .93rem; line-height: 1.5; }
.b-widget--cta .btn { min-height: 46px; padding: .6rem 1.3rem; font-size: .92rem; }
.b-widget__mandala { position: absolute; right: -70px; bottom: -70px; width: 220px; aspect-ratio: 1; opacity: .2; z-index: -1; pointer-events: none; }

/* ── ARTIGO ─────────────────────────────────────────────────── */
.b-prose { max-width: 68ch; }
.b-prose .intro::first-letter {
  float: left; margin: .1em .12em 0 0;
  font-family: var(--ff-display); font-size: 3.6em; line-height: .8; color: var(--forest);
}
.b-prose .questions li { background: var(--ivory); border-color: var(--line); }
.b-prose .steps-list li::before { background: #fff; }
.b-note { margin-block: clamp(2rem, 4vw, 2.6rem) !important; padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--ivory); border-left: 3px solid var(--gold); }
.b-note > * + * { margin-top: .9rem; }
.b-note h3 { margin-top: 0 !important; }
.b-disclaimer { margin-top: 2rem !important; font-size: .88rem; color: var(--ink-soft); font-style: italic; }

/* falas de abertura, números, figura e fontes */
.b-falas { margin-bottom: 1.6rem !important; }
.b-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-block: 1.6rem !important; }
.b-stats li { display: grid; gap: .35rem; padding: 1.2rem 1.3rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.b-stats strong { font-family: var(--ff-display); font-weight: 400; font-size: clamp(2rem, 2vw + 1.3rem, 2.7rem); line-height: 1; color: var(--forest); }
.b-stats span { font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }
.b-figure { margin-block: clamp(1.8rem, 4vw, 2.6rem) !important; }
.b-figure img { width: 100%; max-width: 620px; margin-inline: auto; border-radius: var(--r-lg); box-shadow: 0 30px 60px -40px rgba(23, 58, 51, .5); }
.b-figure figcaption { margin-top: .8rem; text-align: center; font-size: .88rem; font-style: italic; color: var(--ink-soft); }
.b-sources { margin-top: 2.4rem !important; padding: 1.1rem 1.3rem; border-radius: var(--r-md); background: var(--ivory); border: 1px solid var(--line); }
.b-sources__title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.b-sources ul { margin-top: .5rem; display: grid; gap: .3rem; font-size: .9rem; line-height: 1.5; }
.b-sources li { position: relative; padding-left: 1.1rem; }
.b-sources li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* hero com arte clara (ilustração sobre creme): véu verde mais leve à direita */
.b-hero--light-art .b-hero__bg { object-position: 100% 50%; }
.b-hero--light-art::before {
  background:
    linear-gradient(90deg, rgba(23, 58, 51, .97) 0%, rgba(23, 58, 51, .9) 42%, rgba(23, 58, 51, .25) 72%, rgba(23, 58, 51, 0) 100%),
    linear-gradient(0deg, rgba(23, 58, 51, .5), transparent 40%);
}

/* compartilhar */
.b-share { max-width: 68ch; margin-top: clamp(2.4rem, 5vw, 3.2rem); padding: 1.4rem 0; border-block: 1px solid var(--line); }
.b-share__title { font-family: var(--ff-display); font-size: 1.25rem; color: var(--ink); }
.b-share__row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.b-share__icons { display: flex; flex-wrap: wrap; gap: .45rem; }
.b-share__status { min-height: 1.4em; margin-top: .6rem; font-size: .9rem; font-weight: 700; color: var(--forest); }
.b-net {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .5rem 1rem; border-radius: 99px;
  border: 1px solid var(--line); background: #fff; color: var(--forest);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease);
}
.b-net svg { width: 18px; height: 18px; }
.b-net:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); transform: translateY(-2px); }
.b-net--whatsapp:hover { background: #1f7a4d; border-color: #1f7a4d; }
.b-net--icon { width: 44px; padding: 0; }
.b-net[data-copy-link] svg { transition: opacity .25s, transform .35s var(--ease); }
.b-net[data-copy-link] svg + svg { position: absolute; opacity: 0; transform: scale(.4); }
.b-net--icon[data-copy-link] svg + svg { left: auto; }
.b-net:not(.b-net--icon)[data-copy-link] svg + svg { left: 1rem; }
.b-net.is-done { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.b-net.is-done svg:first-child { opacity: 0; transform: scale(.4); }
.b-net.is-done svg + svg { opacity: 1; transform: none; }

/* autora */
.b-author {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start;
  max-width: 68ch; margin-top: clamp(2rem, 4vw, 2.6rem); padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
}
.b-author .b-avatar { width: 96px; height: 96px; }
.b-author .b-avatar--brand { padding: 10px; }
.b-author__kicker { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.b-author__name { margin-top: .2rem; font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.4rem, 1vw + 1.1rem, 1.75rem); line-height: 1.15; color: var(--ink); }
.b-author__role { margin-top: .2rem; font-weight: 700; font-size: .92rem; color: var(--forest); }
.b-author__bio { margin-top: .7rem; font-size: .97rem; line-height: 1.6; }
.b-author__links { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin-top: .6rem; }

/* continue lendo */
.b-related { padding: clamp(56px, 7vw, 96px) 0; background: var(--ivory); border-top: 1px solid var(--line); }
.b-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.b-related__title { font-family: var(--ff-display); font-weight: 400; font-size: clamp(2rem, 2.4vw + 1rem, 3rem); line-height: 1.05; color: var(--ink); }
.is-clean .footer { margin-top: 0; }

/* ── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .b-layout { grid-template-columns: minmax(0, 1fr); }
  .b-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-widget--share { grid-column: 1 / -1; }
  .b-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .b-card--featured .b-card__media { aspect-ratio: 16 / 10; }
  .b-hero::before, .b-hero--light-art::before { background: linear-gradient(0deg, rgba(23, 58, 51, .97) 0%, rgba(23, 58, 51, .85) 55%, rgba(23, 58, 51, .6) 100%); }
  .b-hero--light-art .b-hero__bg { object-position: 82% 50%; opacity: .28; }
}
@media (max-width: 640px) {
  .b-side, .b-grid, .b-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .b-grid--3 > .b-card--soon:nth-child(2):last-child { grid-column: auto; }
  .b-grid > .b-card--soon:only-child { display: flex; }
  .b-hero { min-height: 0; padding-bottom: 84px; }
  .b-hero__meta { gap: .6rem 1.1rem; }
  .b-author { grid-template-columns: 1fr; }
  .b-stats { grid-template-columns: 1fr; }
  .b-author .b-avatar { width: 72px; height: 72px; }
  .b-share__row .b-net { flex: 1 1 calc(50% - .5rem); }
}
