/* Blog do Dr. Juan: mesma identidade da página principal */
:root{
  --ink:#0b1120;--navy:#10182a;--navy-2:#182339;--navy-3:#22304f;--line-dark:rgba(216,199,168,.16);
  --paper:#faf8f3;--cream:#f2ece1;--sand:#e6dccb;--gold:#b89e75;--gold-d:#8a7048;--gold-l:#d8c7a8;
  --text:#18202f;--text-2:#4b5263;--on-dark:#f3ede2;--on-dark-2:rgba(243,237,226,.7);--wa:#25d366;
  --serif:"Instrument Serif","Times New Roman",serif;--sans:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;--mono:"Geist Mono",ui-monospace,monospace;
  --pad:clamp(20px,4.2vw,64px);--max:1240px;--ease:cubic-bezier(.16,1,.3,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--text);font-family:var(--sans);font-size:clamp(.98rem,.95rem + .12vw,1.05rem);line-height:1.68;-webkit-font-smoothing:antialiased;overflow-x:clip}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3{font-family:var(--serif);font-weight:400;margin:0;letter-spacing:-.01em;line-height:1.05;text-wrap:balance}
p{margin:0;text-wrap:pretty}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}
.wrap{width:100%;max-width:calc(var(--max) + var(--pad)*2);margin-inline:auto;padding-inline:var(--pad)}
.eyebrow{font-size:.76rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);text-decoration:none}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:60px;padding:0 2.6rem;border-radius:6px;background:var(--gold);color:var(--ink);font-weight:600;font-size:.98rem;letter-spacing:.04em;text-decoration:none;box-shadow:0 10px 24px -14px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.3);transition:translate .35s var(--ease),background .25s}
.btn:hover{translate:0 -2px;background:#c6ad84}

/* cabeçalho */
.hdr{position:sticky;top:0;z-index:50;background:rgba(11,17,32,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 1px 0 var(--line-dark)}
.hdr .wrap{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;height:76px}
.hdr__logo img{height:40px;width:auto}
.hdr nav{display:flex;align-items:center;gap:2rem}
.hdr nav a{color:var(--on-dark-2);text-decoration:none;font-size:.95rem}
.hdr nav a:hover,.hdr nav a[aria-current]{color:var(--on-dark)}
.hdr .btn{min-height:46px;padding:0 1.5rem;font-size:.9rem;color:var(--ink)}
.progress{position:absolute;left:0;bottom:-1px;height:2px;width:100%;background:var(--gold);transform-origin:left;transform:scaleX(0)}
@media (max-width:900px){.hdr nav .lnk{display:none}.hdr .wrap{height:66px}.hdr__logo img{height:32px}}
@media (max-width:420px){.hdr .btn{padding:0 1rem;font-size:.86rem;min-height:42px}.hdr__logo img{height:28px}}

/* topo das páginas do blog */
.bhero{background:radial-gradient(900px 500px at 88% 0%,rgba(184,158,117,.16),transparent 60%),linear-gradient(180deg,var(--navy),var(--ink));color:var(--on-dark);padding:clamp(56px,7vw,96px) 0 clamp(48px,6vw,80px)}
.bhero h1{font-size:clamp(2.3rem,4.4vw,3.8rem);margin:1rem 0 1.2rem}
.bhero h1 em{font-style:italic;color:var(--gold-l)}
.bhero .lede{max-width:56ch;color:var(--on-dark-2);font-size:clamp(1.02rem,.98rem + .2vw,1.14rem)}

/* listagem */
.blist{padding:clamp(40px,5vw,72px) 0 clamp(72px,8vw,120px)}
.btabs{display:flex;flex-wrap:wrap;gap:.4rem 1.8rem;margin-bottom:clamp(28px,3vw,40px);border-bottom:1px solid var(--sand)}
.btab{appearance:none;background:none;border:0;padding:.9rem 0;margin-bottom:-1px;border-bottom:2px solid transparent;font:inherit;font-size:.92rem;color:var(--text-2);cursor:pointer}
.btab:hover{color:var(--text)}
.btab.is-on{color:var(--text);border-bottom-color:var(--gold)}
.blist .bgrid>.bcard:first-child{grid-column:1 / -1;flex-direction:row}
.blist .bgrid>.bcard:first-child .bcard__media{flex:0 0 58%;aspect-ratio:auto;min-height:340px}
.blist .bgrid>.bcard:first-child .bcard__body{justify-content:center;padding:clamp(24px,3vw,44px)}
.blist .bgrid>.bcard:first-child .bcard__title{font-size:clamp(1.7rem,1.3rem + 1.2vw,2.5rem)}
.blist .bgrid>.bcard:first-child .bcard__excerpt{-webkit-line-clamp:4;font-size:1rem}
.blist .bgrid>.bcard:first-child .bcard__meta{margin-top:1.4rem}
.bcard.is-hidden{display:none}
.bempty{color:var(--text-2)}
@media (max-width:760px){.blist .bgrid>.bcard:first-child{flex-direction:column}.blist .bgrid>.bcard:first-child .bcard__media{flex:none;aspect-ratio:16/9;min-height:0}}

/* artigo */
.ahero{padding-bottom:clamp(140px,16vw,220px)}
.ahero .wrap,.article .wrap{max-width:calc(820px + var(--pad)*2)}
.ahero h1{font-size:clamp(2.2rem,4.2vw,3.5rem)}
.ameta{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;margin-top:1.6rem;font-size:.86rem;color:var(--on-dark-2)}
.ameta b{font-weight:500;color:var(--on-dark)}
.acover{max-width:calc(1040px + var(--pad)*2);margin:calc(-1 * clamp(110px,13vw,180px)) auto 0;padding-inline:var(--pad)}
.acover .bcover,.acover .bcover--empty{aspect-ratio:16/9;border-radius:6px;overflow:clip;box-shadow:0 40px 80px -40px rgba(11,17,32,.6)}
.article{padding:clamp(48px,6vw,80px) 0 clamp(56px,7vw,96px)}
.prose{font-size:clamp(1.04rem,1rem + .2vw,1.15rem);line-height:1.8;color:#262d3d}
.prose>*+*{margin-top:1.25em}
.prose h2{font-size:clamp(1.7rem,1.4rem + 1vw,2.2rem);margin-top:2.2em;color:var(--text)}
.prose h3{font-size:clamp(1.35rem,1.2rem + .5vw,1.6rem);margin-top:1.8em;color:var(--text)}
.prose h2+*,.prose h3+*{margin-top:.8em}
.prose strong{font-weight:600;color:var(--text)}
.prose a{color:var(--gold-d);text-decoration:underline;text-underline-offset:3px}
.prose ul,.prose ol{padding:0;list-style:none}
.prose li{position:relative;padding-left:1.6rem}
.prose li+li{margin-top:.55em}
.prose ul li::before{content:"";position:absolute;left:0;top:.9em;width:12px;height:1px;background:var(--gold)}
.prose ol{counter-reset:n}
.prose ol li{counter-increment:n}
.prose ol li::before{content:counter(n,decimal-leading-zero);position:absolute;left:0;top:.15em;font-family:var(--mono);font-size:.74em;color:var(--gold-d)}
.prose blockquote{margin:2em 0;padding:.2em 0 .2em 1.4rem;border-left:2px solid var(--gold);font-family:var(--serif);font-style:italic;font-size:clamp(1.35rem,1.2rem + .6vw,1.7rem);line-height:1.35;color:var(--text)}
.reviewed{margin-top:.6rem;font-size:.8rem;color:var(--on-dark-2)}
.toc{margin:0 0 clamp(32px,4vw,48px);padding:20px 22px;border:1px solid var(--sand);border-radius:6px;background:#fff}
.toc__t{font-size:.74rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-d);margin-bottom:.6rem}
.toc ol{margin:0;padding:0;list-style:none;counter-reset:t;display:grid;gap:.35rem}
.toc li{counter-increment:t;display:grid;grid-template-columns:2rem 1fr;font-size:.98rem}
.toc li::before{content:counter(t,decimal-leading-zero);font-family:var(--mono);font-size:.76rem;color:var(--gold-d);padding-top:.25em}
.toc a{color:var(--text);text-decoration:none}
.toc a:hover{text-decoration:underline;text-underline-offset:3px}
.prose h2{scroll-margin-top:96px}
.cite{font-size:.68em;line-height:0;margin-left:1px}
.cite a{color:var(--gold-d);text-decoration:none;font-weight:600}
.afaq{margin-top:clamp(40px,5vw,56px)}
.afaq h2,.refs h2{font-size:clamp(1.6rem,1.35rem + .9vw,2rem);margin-bottom:1rem}
.afaq details{border-top:1px solid var(--sand)}
.afaq details:last-child{border-bottom:1px solid var(--sand)}
.afaq summary{cursor:pointer;list-style:none;padding:1.05rem 2rem 1.05rem 0;position:relative;font-family:var(--serif);font-size:clamp(1.2rem,1.1rem + .35vw,1.4rem);line-height:1.25}
.afaq summary::-webkit-details-marker{display:none}
.afaq summary::after{content:"+";position:absolute;right:0;top:50%;translate:0 -50%;font-family:var(--sans);font-size:1.3rem;color:var(--gold-d)}
.afaq details[open] summary::after{content:"\2013"}
.afaq details div{padding:0 0 1.2rem;color:var(--text-2);line-height:1.75}
.refs{margin-top:clamp(40px,5vw,56px)}
.refs ol{margin:0;padding:0;list-style:none;counter-reset:r;display:grid;gap:.7rem}
.refs li{counter-increment:r;position:relative;display:block;padding-left:2rem;font-size:.86rem;line-height:1.55;color:var(--text-2);scroll-margin-top:96px}
.refs li::before{content:counter(r);position:absolute;left:0;top:0;font-family:var(--mono);color:var(--gold-d)}
.refs li:target{background:#fbf6ea;border-radius:4px}
.refs a{color:var(--gold-d);overflow-wrap:anywhere}
.disclaimer{margin-top:2.6rem;padding-top:1.4rem;border-top:1px solid var(--sand);font-size:.84rem;color:var(--text-2)}

/* autor + agendamento */
.author{margin-top:clamp(40px,5vw,64px);display:grid;grid-template-columns:120px 1fr;gap:clamp(20px,3vw,32px);align-items:stretch;padding:clamp(22px,3vw,32px);border-radius:6px;background:linear-gradient(160deg,var(--navy-2),var(--ink));color:var(--on-dark)}
.author img{width:120px;height:100%;min-height:150px;object-fit:cover;object-position:50% 15%;border-radius:6px}
.author__txt{display:flex;flex-direction:column}
.author__name{font-family:var(--serif);font-size:1.7rem;line-height:1.1}
.author__cred{margin-top:.4rem;font-size:.84rem;color:var(--on-dark-2)}
.author__line{margin:.9rem 0 1.4rem;color:var(--on-dark)}
.author .btn{margin-top:auto;align-self:flex-start}
@media (max-width:560px){.author{grid-template-columns:1fr}.author img{width:100%;height:220px;min-height:0}}

.related{padding:clamp(56px,7vw,96px) 0;background:var(--cream);border-top:1px solid var(--sand)}
.related__h{font-size:clamp(1.8rem,1.5rem + 1vw,2.4rem);margin-bottom:clamp(24px,3vw,36px)}

.previewbar{position:sticky;top:0;z-index:60;padding:.7rem var(--pad);background:#b89e75;color:var(--ink);font-weight:600;font-size:.9rem;text-align:center}

/* rodapé + WhatsApp */
.rod{background:#080d19;color:var(--on-dark-2);padding:56px 0 110px;font-size:.88rem}
.rod .wrap{display:grid;gap:1.4rem}
.rod img{width:200px;height:auto;opacity:.9}
.rod small{font-size:.8rem;color:rgba(243,237,226,.62)}
.wa{position:fixed;right:clamp(16px,2.4vw,32px);bottom:clamp(16px,2.4vw,32px);z-index:60;width:62px;height:62px;border-radius:50%;background:var(--wa);display:grid;place-items:center;box-shadow:0 14px 34px -10px rgba(0,0,0,.45);transition:scale .35s var(--ease)}
.wa:hover{scale:1.07}
.wa svg{width:32px;height:32px;fill:#fff}
