/* ============================================================
   Blog — Nádia Côrtes
   Carrega depois de style.css. Tudo escopado em .post / .blog-*
   ============================================================ */

.post-page {
  --measure: 680px;
  --body-size: 1.1875rem;      /* 19px */
  --body-lh: 1.7;
  background: var(--surface);
}

/* barra de progresso de leitura */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: transparent; pointer-events: none;
}
.read-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------------- cabeçalho do post ---------------- */
.post-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.post-head .wrap { max-width: 1040px; }
.post-crumbs {
  font-family: 'Montserrat', sans-serif; font-size: .8125rem; font-weight: 500;
  color: var(--ink-faint); margin: 0 0 28px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.post-crumbs a { color: var(--ink-soft); text-decoration: none; }
.post-crumbs a:hover { color: var(--accent-deep); text-decoration: underline; }
.post-crumbs span[aria-hidden] { color: var(--line); }

.post-head-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: end;
}
.post-topic {
  display: inline-block; margin: 0 0 18px;
  font-family: 'Montserrat', sans-serif; font-size: .875rem; font-weight: 600;
  color: var(--accent-deep); text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.post-head h1 {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.125rem); line-height: 1.12; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 20px; max-width: 18ch;
  text-wrap: balance;
}
.post-lede {
  font-family: 'Roboto', sans-serif; font-size: 1.25rem; line-height: 1.6;
  color: var(--ink-soft); margin: 0 0 32px; max-width: 34em;
}
.post-byline { display: flex; align-items: center; gap: 14px; }
.post-byline img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%;
}
.post-byline p { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); }
.post-byline strong { color: var(--ink); font-weight: 600; }

.post-head-photo { margin: 0; }
.post-head-photo img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 180px 180px 6px 6px;
}
.post-head-photo figcaption {
  font-size: .8125rem; color: var(--ink-faint); margin-top: 10px; line-height: 1.4;
}

/* ---------------- corpo: sumário + artigo ---------------- */
.post-body {
  display: grid; grid-template-columns: 220px minmax(0, var(--measure));
  gap: 72px; justify-content: center;
  max-width: 1040px; margin: 0 auto; padding: 56px 24px 24px;
}

.post-toc { position: sticky; top: 104px; align-self: start; }
.post-toc h2 {
  font-family: 'Montserrat', sans-serif; font-size: .875rem; font-weight: 600;
  color: var(--ink); margin: 0 0 14px;
}
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.post-toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: .875rem; line-height: 1.4; color: var(--ink-faint); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.post-toc a:hover { color: var(--ink); }
.post-toc a.is-current { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }
.post-toc-mobile { display: none; }

/* ---------------- tipografia do artigo ---------------- */
.post-article {
  font-family: 'Roboto', sans-serif; font-size: var(--body-size); line-height: var(--body-lh);
  color: #23373C; min-width: 0;
}
.post-article > * + * { margin-top: 1.1em; }
.post-article p { margin: 0; }
.post-article > p:not(:first-child) { margin-top: 1.1em; }
.post-head img, .post-article img, .post-related img { height: auto; max-width: 100%; }
.post-article h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink); margin: 2.4em 0 .7em; scroll-margin-top: 96px;
  text-wrap: balance;
}
.post-article h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.1875rem; line-height: 1.35;
  color: var(--ink); margin: 1.8em 0 .5em;
}
.post-article strong { font-weight: 600; color: var(--ink); }
.post-article a:not(.btn):not(.btn-wa) {
  color: var(--accent-deep); text-decoration: underline;
  text-decoration-color: rgba(169, 140, 122, .55); text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.post-article a:not(.btn):not(.btn-wa):hover { text-decoration-color: var(--accent-deep); }
.post-article ul { margin: 1em 0 0; padding-left: 0; list-style: none; }
.post-article ul li { position: relative; padding-left: 1.4em; }
.post-article ul li + li { margin-top: .55em; }
.post-article ul li::before {
  content: ""; position: absolute; left: .2em; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* resposta rápida: o trecho que a IA/Google citam */
.quick-answer {
  background: var(--accent-soft);
  border-radius: 6px; padding: 26px 30px 28px;
  margin: 0 0 2.2em;
}
.quick-answer h2 {
  font-size: 1rem !important; margin: 0 0 10px !important; letter-spacing: 0 !important;
  color: var(--accent-deep) !important;
}
.quick-answer p { font-size: 1.125rem; line-height: 1.65; color: var(--ink); }

/* vídeo vertical centralizado */
.post-video { width: min(340px, 100%); margin: 2.4em auto 2.6em !important; text-align: center; }
.pv-frame { position: relative; border-radius: 16px; overflow: hidden; background: var(--ink); box-shadow: 0 18px 40px -18px rgba(17, 50, 57, .45); }
.post-video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); }
.pv-unmute {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.pv-unmute svg { width: 22px; height: 22px; }
.pv-unmute:hover { background: #fff; }
.post-video.is-heard .pv-unmute { display: none; }
.pv-toggle {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(12, 9, 18, .55); color: #fff;
}
.pv-toggle svg { width: 22px; height: 22px; }
.pv-toggle .ic-on { display: none; }
.post-video.is-sound .pv-toggle .ic-on { display: block; }
.post-video.is-sound .pv-toggle .ic-off { display: none; }
.pv-unmute:focus-visible, .pv-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.post-video figcaption, .post-figure figcaption {
  font-size: .875rem; line-height: 1.45; color: var(--ink-faint); margin-top: 12px;
}
.post-video figcaption strong { color: var(--ink-soft); font-weight: 500; }

/* figura larga (ilustração) — sai um pouco da coluna no desktop */
.post-figure { margin: 2.2em -40px !important; }
.post-figure .figure-frame {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 28px 24px 20px;
}
.post-figure figcaption { padding: 0 40px; }

.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plane { margin: 0; text-align: center; }
.plane svg { display: block; width: 100%; height: auto; max-width: 210px; margin: 0 auto; }
.plane h3 {
  font-size: .9375rem !important; margin: 10px 0 2px !important; line-height: 1.3 !important;
}
.plane p { font-size: .8125rem !important; line-height: 1.4 !important; color: var(--ink-faint); margin: 0 !important; }
.planes-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--ink-soft);
}
.planes-legend span { display: inline-flex; align-items: center; gap: 7px; }
.planes-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* comparação lado a lado */
.compare {
  width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5;
  margin-top: 1.4em !important;
}
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-family: 'Montserrat', sans-serif; font-size: .875rem; font-weight: 600; color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.compare tbody th { font-weight: 500; color: var(--ink); width: 30%; }
.compare td { color: var(--ink-soft); }

/* linha do tempo de volta ao treino (é uma sequência de verdade) */
.timeline { list-style: none; padding: 0 !important; margin: 1.6em 0 0 !important; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 22px 36px !important; }
.timeline li::before {
  content: "" !important; position: absolute; left: 0 !important; top: .45em !important;
  width: 16px !important; height: 16px !important; border-radius: 50%;
  background: var(--surface) !important; border: 2px solid var(--accent);
}
.timeline li:last-child::before { background: var(--accent) !important; }
.timeline li + li { margin-top: 0 !important; }
.timeline .when {
  display: block; font-family: 'Montserrat', sans-serif; font-size: .9375rem; font-weight: 600; color: var(--ink);
}
.timeline .what { display: block; font-size: 1.0625rem; color: var(--ink-soft); margin-top: 2px; }
.note {
  font-size: .9375rem !important; line-height: 1.55 !important; color: var(--ink-soft);
  border-left: 3px solid var(--accent); padding: 4px 0 4px 16px;
}

/* citação da médica */
.pull-quote {
  margin: 2em 0 !important; padding: 0;
  font-family: 'Montserrat', sans-serif; font-weight: 500;
  font-size: 1.375rem; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em;
}
.pull-quote p { margin: 0; }
.pull-quote footer { margin-top: 12px; font-family: 'Roboto', sans-serif; font-size: .9375rem; font-weight: 400; color: var(--ink-faint); }

/* FAQ */
.faq-list { margin-top: 1.2em !important; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-list .faq-a { padding: 0 0 22px; font-size: 1.0625rem; color: var(--ink-soft); }

/* CTA */
.post-cta {
  clear: both; margin: 3em 0 0 !important;
  background: var(--ink); color: #EAF0EE; border-radius: 8px;
  padding: 36px 36px 38px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
}
.post-cta h2 {
  color: #fff !important; margin: 0 0 8px !important; font-size: 1.5rem !important;
}
.post-cta p { font-size: 1.0625rem; line-height: 1.55; color: #BFD0CD; }
.post-cta .btn-wa {
  display: inline-flex; color: #fff !important; align-items: center; gap: 10px; white-space: nowrap;
  background: #8A6D57; text-decoration: none;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 16px 24px; border-radius: 999px; transition: background .2s;
}
.post-cta .btn-wa:hover { background: var(--accent-deep); }
.post-cta .btn-wa:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.post-cta .btn-wa svg { width: 20px; height: 20px; }

/* autora */
.author-box {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px;
  margin-top: 3em !important; padding-top: 32px; border-top: 1px solid var(--line);
}
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.author-box h2 { font-size: 1.125rem !important; margin: 0 0 2px !important; }
.author-box .creds { font-size: .875rem; color: var(--accent-deep); font-weight: 500; margin: 0 0 10px; }
.author-box p { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.author-box .reviewed { font-size: .875rem; color: var(--ink-faint); margin-top: 10px; }

/* referências */
.refs { margin-top: 2.6em !important; }
.refs h2 { font-size: 1.125rem !important; margin: 0 0 12px !important; }
.refs ol { margin: 0; padding-left: 1.3em; font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }
.refs li + li { margin-top: .5em; }
.refs li::marker { color: var(--ink-faint); }

/* relacionados */
.post-related { background: var(--paper); border-top: 1px solid var(--line); margin-top: 72px; padding: 56px 0 64px; }
.post-related .wrap { max-width: 1040px; }
.post-related h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.375rem; color: var(--ink); margin: 0 0 24px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.related-grid a { text-decoration: none; color: inherit; display: block; }
.related-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%; border-radius: 6px; display: block; }
.related-grid .r-topic { display: block; margin-top: 14px; font-size: .8125rem; font-weight: 500; color: var(--accent-deep); }
.related-grid h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
  color: var(--ink); margin: 4px 0 0;
}
.related-grid a:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.related-grid a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }


/* selo Google (prova social logo no topo) */
.google-proof {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
  padding: 10px 16px 10px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink-soft); font-size: .9375rem; line-height: 1.3;
  transition: border-color .2s;
}
.google-proof:hover { border-color: var(--accent); }
.google-proof:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.google-proof .g-stars { display: inline-flex; gap: 1px; color: #F4B400; }
.google-proof .g-stars svg { width: 16px; height: 16px; fill: currentColor; }
.google-proof strong { color: var(--ink); font-weight: 600; }

/* ilustração dos planos */
.plane .ribs rect { fill: #E3E9E7; }
.plane .breast { fill: #F3EBE3; stroke: #B9A594; stroke-width: 1.5; }
.plane .muscle { fill: #C9927C; }
.plane .muscle-over { fill: #C9927C; fill-opacity: .82; }
.plane .implant { fill: #D6E5E5; stroke: var(--ink); stroke-width: 1.8; }
.plane .fascia { fill: none; stroke: var(--accent-deep); stroke-width: 2; stroke-dasharray: 4 3; }

/* CTA no meio do texto */
.mid-cta {
  margin: 2.2em 0 !important; padding: 22px 24px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px;
  background: var(--paper);
}
.mid-cta p { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.mid-cta a {
  display: inline-block; margin-top: 12px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .9375rem;
  color: var(--accent-deep) !important;
}


/* foto no corpo do texto */
.post-photo { margin: 2em 0 !important; }
.post-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 28%; border-radius: 8px; }
.post-photo figcaption { font-size: .875rem; line-height: 1.45; color: var(--ink-faint); margin-top: 10px; }

/* mama dinâmica: 2 quadros */
.dyn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.dyn .dyn-arrow { width: 36px; height: 36px; color: var(--accent-deep); }

/* ---------------- responsivo ---------------- */
@media (max-width: 1080px) {
  .post-body { grid-template-columns: minmax(0, var(--measure)); gap: 0; padding-top: 36px; }
  .post-toc { display: none; }
  .post-toc-mobile {
    display: block; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 2em !important;
    font-size: 1rem;
  }
  .post-toc-mobile summary {
    cursor: pointer; padding: 14px 18px; font-family: 'Montserrat', sans-serif; font-weight: 600;
    font-size: .9375rem; color: var(--ink);
  }
  .post-toc-mobile ol { margin: 0; padding: 0 18px 16px 38px; }
  .post-toc-mobile li + li { margin-top: .45em; }
  .post-toc-mobile a { color: var(--ink-soft) !important; text-decoration: none !important; }
  .post-figure { margin-left: 0 !important; margin-right: 0 !important; }
  .post-figure figcaption { padding: 0; }
}

@media (max-width: 760px) {
  .post-page { --body-size: 1.0625rem; }
  .post-head { padding: 32px 0 36px; }
  .post-head-grid { grid-template-columns: 1fr; gap: 28px; }
  .post-head-photo { order: -1; }
  .post-head-photo img { aspect-ratio: 16 / 10; border-radius: 8px; object-position: 50% 22%; }
  .post-crumbs { margin-bottom: 18px; }
  .post-lede { font-size: 1.125rem; margin-bottom: 24px; }
  .post-body { padding: 28px 20px 8px; }

  .post-video { width: min(300px, 100%); }
  .quick-answer { padding: 22px 20px 24px; }
  .quick-answer p { font-size: 1.0625rem; }

  .post-figure .figure-frame { padding: 20px 12px 16px; }
  .planes { gap: 8px; }
  .plane h3 { font-size: .75rem !important; }
  .plane p { font-size: .6875rem !important; }
  .dyn { gap: 4px; }
  .dyn .dyn-arrow { width: 22px; height: 22px; }

  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare thead { display: none; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { border: 0; padding: 2px 0; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 500; color: var(--ink); }

  .pull-quote { font-size: 1.1875rem; }
  .post-cta { grid-template-columns: 1fr; padding: 28px 22px 30px; }
  .post-cta .btn-wa { justify-content: center; }
  .author-box { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .author-box img { width: 64px; height: 64px; }
  .related-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .read-progress { display: none; }
  .faq-list summary::after, .post-toc a { transition: none; }
}

/* ---------------- índice do blog ---------------- */
.blog-head h1 {
  font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--ink);
  font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 16px; max-width: 22ch; text-wrap: balance;
}
.blog-head .wrap { max-width: 1040px; }
.blog-list { max-width: 1040px; padding-top: 48px; }
.blog-group + .blog-group { margin-top: 56px; }
.blog-group h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.375rem; color: var(--ink);
  margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.blog-card { display: block; text-decoration: none; color: inherit; }
.blog-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%; border-radius: 6px; }
.blog-card h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
  color: var(--ink); margin: 14px 0 6px;
}
.blog-card p { font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.blog-card-meta { display: block; margin-top: 8px; font-size: .8125rem; color: var(--accent-deep); font-weight: 500; }
.blog-card:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.blog-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.blog-index-cta { max-width: 1040px; padding: 64px 24px 72px; }
.blog-index-cta .post-cta { margin: 0 !important; }
.blog-index-cta .post-cta h2 { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.5rem; margin: 0 0 8px; }
.blog-index-cta .post-cta p { margin: 0; }
.blog-index-cta .btn-wa { color: #fff !important; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-list { padding-top: 32px; }
  .blog-index-cta { padding: 48px 20px 56px; }
}
