/* Blog da Dra. Laís: home (/blog/) e artigos (/blog/<slug>/). Tokens vêm de styles.css; cores por especialidade vêm do Figma (coleção "Especialidade"). */
.cat-capilar { --c:#5F6E32; --c-tint:#EEF0E1; --c-tint2:#DCE2C2; --c-line:#C9D39E; --c-ink:#576530; }
.cat-unhas { --c:#A0573D; --c-tint:#F7E6DE; --c-tint2:#EFCDBF; --c-line:#E3A98F; --c-ink:#804C37; }
.cat-clinica { --c:#4A685C; --c-tint:#E3ECE7; --c-tint2:#D1E0D7; --c-line:#9FC2B0; --c-ink:#476459; }
.cat-cirurgia { --c:#465C6E; --c-tint:#E2E8ED; --c-tint2:#CAD5DE; --c-line:#A3B7C6; --c-ink:#465B6D; }
.cat-rejuv { --c:#93565B; --c-tint:#F5E4E3; --c-tint2:#EACCCB; --c-line:#D9A4A6; --c-ink:#794C4F; }
.cat-psoriase { --c:#7A4E64; --c-tint:#F3E8ED; --c-tint2:#E7D2DB; --c-line:#CFA3B6; --c-ink:#74495D; }
.cat-pediatrica { --c:#86683F; --c-tint:#FBF1E4; --c-tint2:#F7DFC0; --c-line:#E8C79E; --c-ink:#755E3B; }

.tag, .chip { display: inline-flex; align-items: center; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--c-tint2, #F7DFC0); color: var(--c-ink, #1E2925); font-size: 14px; line-height: 20px; font-weight: 500; }
.mode-escuro .tag, .mode-escuro .chip { background: var(--c-line, #E8C79E); color: #1E2925; }
.chip { font-size: 16px; padding: 8px 16px; transition: transform .16s ease, box-shadow .2s ease; }
.chip:hover { transform: translateY(-2px); }
.chip:focus-visible, .post-card:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }

/* ===== Home do blog ===== */
.blog-hero { padding-block: 40px 88px; background: transparent; }
.blog-hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.blog-hero .h-hero { max-width: 960px; }
.blog-hero .lead { max-width: 780px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.post-card { display: flex; flex-direction: column; gap: 16px; padding: 12px; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--r-xl, 30px); box-shadow: 0 4px 16px rgba(30, 41, 37, .05); color: var(--text-primary); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(30, 41, 37, .09); border-color: var(--border-accent); }
.pc-img { aspect-ratio: 3 / 2; border-radius: var(--r-lg, 15px); overflow: hidden; background: var(--c-tint, #FBF1E4); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 8px 12px; }
.pc-title { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.pc-resumo { color: var(--text-secondary); font-size: 16px; line-height: 24px; }
.pc-meta { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.post-card--wide { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 16px; max-width: 1240px; margin-inline: auto; }
.post-card--wide .pc-img { aspect-ratio: 16 / 10; }
.post-card--wide .pc-title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
.post-card--wide .pc-resumo { font-size: 18px; line-height: 28px; }
.post-card--lista { flex-direction: row; align-items: center; gap: 16px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--border-default); border-radius: 0; background: transparent; box-shadow: none; }
.post-card--lista:hover { transform: none; box-shadow: none; }
.post-card--lista .pc-img { width: 112px; flex: none; aspect-ratio: 4 / 3; }
.post-card--lista .pc-body { padding: 0; gap: 6px; }
.post-card--lista .pc-title { font-size: 16px; line-height: 22px; }

.destaques { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1240px; margin-inline: auto; align-items: start; }
.destaques--com-lista { grid-template-columns: 1.7fr 1fr; }
.destaques--com-lista .post-card--wide { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
.destaques--com-lista .post-card--wide .pc-img { aspect-ratio: 16 / 9; }
.recentes { display: flex; flex-direction: column; padding: 24px; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--r-xl, 30px); }
.recentes .overline { margin-bottom: 4px; }

.pastas { display: flex; flex-direction: column; max-width: 1240px; margin-inline: auto; width: 100%; }
.pasta { position: sticky; top: 24px; margin-top: -20px; }
.pasta:first-child { margin-top: 0; }
.pasta-aba { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px 14px; border-radius: 15px 15px 0 0; background: var(--c-tint2); color: var(--c-ink); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; position: relative; z-index: 1; }
.pasta-aba::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pasta-corpo { display: flex; flex-direction: column; gap: 32px; padding: 32px 48px 40px; background: var(--c-tint2); border-radius: 0 40px 40px 40px; margin-top: -4px; box-shadow: 0 -6px 20px rgba(30, 41, 37, .06); }
.pasta-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pasta-topo h3 { font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -.01em; }
.pasta-topo p { color: var(--text-secondary); max-width: 560px; margin-top: 8px; }
.pasta-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.todos-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto 32px; }
.todos-top h2 { font-size: 32px; line-height: 40px; font-weight: 500; }
.grid-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1240px; margin-inline: auto; }

/* ===== Artigo ===== */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: #F2D1A8; transition: width .1s linear; }
.art-hero { padding-block: 40px 80px; background: transparent; }
.art-hero .wrap { display: flex; flex-direction: column; gap: 24px; }
.art-h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.12; font-weight: 500; letter-spacing: -.02em; max-width: 980px; }
.art-hero .lead { max-width: 820px; }
.art-hero, .blog-hero { color: #FEFAF6; }
.art-hero .art-h1, .blog-hero .h-hero { color: #FEFAF6; }
.art-hero .lead, .blog-hero .lead { color: #E3ECE7; }
.art-hero .byline b { color: #FEFAF6; }
.art-hero .byline span { color: #A9B5AF; }
.art-hero .crumbs, .blog-hero .crumbs { color: #A9B5AF; }
.art-hero .crumbs a:hover, .blog-hero .crumbs a:hover { color: #FEFAF6; }
.byline { display: flex; align-items: center; gap: 16px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline b { display: block; font-size: 16px; line-height: 24px; font-weight: 500; }
.byline span { display: block; font-size: 14px; line-height: 20px; color: var(--text-muted); }

.art-sec { padding-block: 64px 96px; background: var(--bg-base); }
.art-grid { display: grid; grid-template-columns: minmax(0, 760px) 380px; justify-content: space-between; gap: 64px; align-items: start; }
.art { display: flex; flex-direction: column; gap: 32px; min-width: 0; font-size: 20px; line-height: 30px; letter-spacing: -.01em; color: var(--text-primary); }
.art-cover { border-radius: var(--r-xl, 30px); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-tint, #FBF1E4); }
.art-cover { position: relative; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-cover figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 16px 8px; font-size: 12px; line-height: 16px; color: #fff; background: linear-gradient(transparent, rgba(30, 41, 37, .6)); }
.art p { margin: 0; }
.art a:not(.cta) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c, #557669); }
.art h2 { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; scroll-margin-top: 24px; }
.art h2 .num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-tint2); color: var(--c-ink); font-size: 14px; line-height: 1; font-weight: 600; }
.art h3 { font-size: 24px; line-height: 1.3; font-weight: 500; margin-bottom: -16px; }
.art ul, .art ol { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.art ul li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg-accent); font-size: 18px; line-height: 26px; }
.art ul li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: var(--c-ink, #4A685C); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.art ol { counter-reset: n; }
.art ol li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg-surface); font-size: 18px; line-height: 26px; }
.art ol li::before { content: counter(n); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c, #4A685C); color: #fff; font-size: 14px; font-weight: 600; }
.resposta { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-lg, 15px); background: var(--c-tint); border-left: 4px solid var(--c); }
.resposta .overline { color: var(--c); }
.art-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; border-radius: var(--r-xl, 30px); background: #557669; color: #fff; }
.art-cta .overline { color: #F2D1A8; }
.art-cta h3 { margin: 0; color: #fff; font-size: 24px; line-height: 1.3; }
.art-cta p { color: #E3ECE7; font-size: 16px; line-height: 24px; }
.art-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta--sec { background: transparent; border: 1px solid var(--border-default); color: var(--text-primary); padding-right: 24px; }
.cta--sec:hover { background: var(--bg-surface); }
.art .qa-list { display: flex; flex-direction: column; gap: 12px; }
.art .qa summary { font-size: 18px; line-height: 26px; }
.art .qa p { font-size: 17px; line-height: 26px; padding: 0 24px 20px; }
.art-note { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.autora { display: flex; gap: 24px; padding: 28px; border-radius: var(--r-xl, 30px); background: var(--bg-surface); align-items: flex-start; }
.autora img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.autora .overline { color: var(--text-muted); }
.autora h3 { margin: 4px 0; font-size: 24px; line-height: 1.3; }
.autora .reg { font-size: 14px; line-height: 20px; color: var(--text-accent); font-weight: 500; }
.autora p { font-size: 16px; line-height: 24px; color: var(--text-secondary); margin-top: 8px; }
.autora a { font-size: 16px; font-weight: 500; }

.art-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.toc { display: flex; flex-direction: column; gap: 4px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--r-xl, 30px); }
.toc .overline { color: var(--text-muted); padding-bottom: 8px; }
.toc a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); font-size: 15px; line-height: 20px; color: var(--text-secondary); transition: background-color .2s ease, color .2s ease; }
.toc a:hover { background: var(--action-subtle-hover); }
.toc a .n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c-tint2); color: var(--c-ink); font-size: 12px; font-weight: 600; }
.toc a[aria-current="true"] { background: #1E2925; color: #FEFAF6; }
.toc a[aria-current="true"] .n { background: #F2D1A8; color: #1E2925; }
.side-cta { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-xl, 30px); background: #1E2925; color: #FEFAF6; }
.side-cta .overline { color: #F2D1A8; }
.side-cta h3 { margin: 0; font-size: 24px; line-height: 1.3; color: #FEFAF6; }
.side-cta p { font-size: 16px; line-height: 24px; color: #E3ECE7; }
.toc-m { display: none; }
.art .toc-m a, .art .art-actions a, .art .art-cta a { text-decoration: none; }
.toc-m summary .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.related { background: var(--bg-surface); }
.related .sec-head { margin-bottom: 40px; }

@media (max-width: 1099px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .art-side { position: static; }
  .toc { display: none; }
}
@media (max-width: 899px) {
  .blog-hero { padding-block: 24px 56px; }
  .post-card--wide, .destaques--com-lista { grid-template-columns: 1fr; }
  .post-card--wide { gap: 16px; }
  .grid-posts, .pasta-posts { grid-template-columns: 1fr; }
  .pasta { top: 16px; margin-top: -16px; }
  .pasta-corpo { padding: 24px 20px 28px; border-radius: 0 28px 28px 28px; }
  .pasta-topo h3 { font-size: 24px; line-height: 32px; }
  .pasta-posts { gap: 0; background: var(--bg-card); border-radius: var(--r-lg, 15px); padding: 4px 16px; }
  .pasta-posts .post-card { flex-direction: row; align-items: center; padding: 16px 0; border: 0; border-bottom: 1px solid var(--border-default); border-radius: 0; background: transparent; box-shadow: none; }
  .pasta-posts .post-card:last-child { border-bottom: 0; }
  .pasta-posts .pc-img { width: 96px; flex: none; aspect-ratio: 4 / 3; }
  .pasta-posts .pc-body { padding: 0; gap: 6px; }
  .pasta-posts .pc-title { font-size: 16px; line-height: 22px; }
  .pasta-posts .pc-resumo { display: none; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; padding-bottom: 6px; scrollbar-width: none; }
  .chip { flex: none; }
  .art-hero { padding-block: 24px 48px; }
  .art, .art ul li, .art ol li { font-size: 17px; line-height: 26px; }
  .art-sec { padding-block: 32px 64px; }
  .toc-m { display: block; border-radius: var(--r-lg, 15px); background: var(--bg-card); border: 1px solid var(--border-default); }
  .toc-m summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary .i { transition: transform .2s ease; }
  .toc-m[open] summary .i { transform: rotate(180deg); }
  .toc-m nav { display: flex; flex-direction: column; padding: 0 12px 12px; }
  .toc-m nav a { display: flex; gap: 12px; align-items: center; padding: 10px 8px; font-size: 15px; line-height: 20px; color: var(--text-secondary); }
  .toc-m nav a .n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c-tint2); color: var(--c-ink); font-size: 12px; font-weight: 600; }
  .autora { flex-direction: column; padding: 24px; }
  .art-cta { padding: 24px; }
  .art-cta .cta, .art-actions .cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .chip, .progress i { transition: none; }
  .post-card:hover, .chip:hover { transform: none; }
}
