/* Blog público: reaproveita os tokens do site.css (navy, azul, Oswald + Archivo). */

.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--muted);margin-bottom:20px}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--accent);text-decoration:underline}
.crumbs [aria-current]{color:var(--ink)}

.blog-hero{padding-bottom:clamp(28px,5vw,44px)}
.blog-hero .lead{margin-top:16px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 16px;border:1.5px solid var(--border);border-radius:999px;color:var(--ink);background:var(--surface);font-size:15px;font-weight:600;text-decoration:none}
.chip small{font-size:12px;color:var(--muted);font-weight:500}
.chip:hover{border-color:var(--accent);color:var(--accent)}
.chip.is-on{background:var(--navy);border-color:var(--navy);color:#fff}
.chip.is-on small{color:var(--d-muted)}

.blog-list{padding-block:clamp(36px,6vw,64px) clamp(56px,10vw,108px)}
.pgrid{display:grid;gap:20px;grid-template-columns:1fr}
.pcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;min-width:0;transition:border-color .2s,transform .2s}
.pcard:hover{border-color:var(--border-strong)}
.pcard__img{display:block;aspect-ratio:16/9;background:var(--tint);overflow:hidden}
.pcard__img img{width:100%;height:100%;object-fit:cover}
.pcard__ph{display:grid;place-items:center;height:100%;background:var(--tint)}
.pcard__ph img{width:44%;height:auto;object-fit:contain;opacity:.55}
.pcard__body{display:flex;flex-direction:column;gap:12px;padding:clamp(20px,4vw,28px);flex:1}
.pcard__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:14px;color:var(--muted)}
.pcard__meta .tag{text-decoration:none}
.pcard__title{font-size:clamp(22px,5vw,26px)}
.pcard__title a{color:var(--ink);text-decoration:none}
.pcard__title a:hover{color:var(--accent)}
.pcard__excerpt{color:var(--muted);font-size:16px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pcard__more{margin-top:auto;font-weight:600;color:var(--accent);text-decoration:none;font-size:15px}
.pcard__more::after{content:" \203A"}
.pcard__more:hover{text-decoration:underline}
.pcard--featured{margin-bottom:20px}
.pcard--featured .pcard__title{font-size:clamp(28px,6vw,40px)}
.pcard--featured .pcard__excerpt{-webkit-line-clamp:4;font-size:17px}

.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 20px;margin-top:40px;color:var(--muted);font-size:15px}
.empty{max-width:560px;display:flex;flex-direction:column;gap:16px}

/* artigo */
.article{padding-bottom:clamp(40px,7vw,72px)}
.article__head{max-width:820px;display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.article__head .h1{font-size:clamp(34px,8vw,56px)}
.article__meta{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;color:var(--muted)}
.article__cover{margin:clamp(28px,5vw,44px) 0 0;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--border);max-width:1000px}
.article__cover img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.article__layout{display:grid;gap:28px;margin-top:clamp(28px,5vw,48px);grid-template-columns:minmax(0,1fr)}
.toc{border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;background:var(--raised);align-self:start}
.toc__title{font:600 18px/1.2 var(--f-display);margin-bottom:12px}
.toc ol{display:flex;flex-direction:column;gap:8px;font-size:15px;line-height:1.35}
.toc a{color:var(--ink);text-decoration:none}
.toc a:hover{color:var(--accent);text-decoration:underline}
.toc__l3{padding-left:14px;font-size:14px}

.prose{max-width:720px;font-size:18px;line-height:1.72;min-width:0}
.prose > * + *{margin-top:1.15em}
.prose h2{font:700 clamp(28px,6vw,36px)/1.12 var(--f-display);margin-top:2em;scroll-margin-top:90px}
.prose h3{font:600 clamp(22px,5vw,26px)/1.2 var(--f-display);margin-top:1.7em;scroll-margin-top:90px}
.prose h4{font:600 19px/1.3 var(--f-body);margin-top:1.5em}
.prose p,.prose li{text-wrap:pretty}
.prose ul,.prose ol{padding-left:1.4em}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose li + li{margin-top:.4em}
.prose li::marker{color:var(--accent)}
.prose a{color:var(--accent);text-underline-offset:3px}
.prose blockquote{border-left:4px solid var(--blue);background:var(--raised);padding:16px 20px;border-radius:0 var(--r-md) var(--r-md) 0;color:var(--ink)}
.prose blockquote > * + *{margin-top:.6em}
.prose code{font:500 .9em ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--tint);padding:.12em .4em;border-radius:5px}
.prose pre{background:var(--navy);color:#E8EEFF;padding:18px 20px;border-radius:var(--r-md);overflow-x:auto;font-size:15px;line-height:1.55}
.prose pre code{background:none;padding:0;color:inherit}
.prose hr{border:0;border-top:1px solid var(--border);margin-block:2.2em}
.prose figure{margin-block:1.8em}
.prose figure img,.prose p > img{border-radius:var(--r-md);border:1px solid var(--border);width:100%;height:auto}
.prose figcaption{font-size:14px;color:var(--muted);margin-top:8px}
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--r-md)}
.prose table{border-collapse:collapse;width:100%;min-width:480px;font-size:16px;line-height:1.45}
.prose th,.prose td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--border)}
.prose th{background:var(--raised);font-weight:600}
.prose tr:last-child td{border-bottom:0}

.article__foot{max-width:720px;margin-top:40px;padding-top:24px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:20px}
.article__foot .chips{margin-top:0}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;font-size:15px;color:var(--muted)}
.share a{color:var(--accent);font-weight:600;text-decoration:none}
.share a:hover{text-decoration:underline}

.cta-inline{display:flex;flex-direction:column;gap:24px;align-items:flex-start;max-width:900px}
.cta-inline .lead{margin-top:12px}
.related .h2{margin-bottom:28px}
.preview-bar{position:sticky;top:60px;z-index:40;background:#FFF4D6;color:#5B4300;text-align:center;padding:10px 16px;font-size:14px;border-bottom:1px solid #F0D79A}
.preview-bar a{color:inherit;font-weight:600}
.notfound{display:flex;flex-direction:column;gap:20px;align-items:flex-start;max-width:640px}
.legal-page{padding-block:clamp(40px,8vw,88px) clamp(56px,10vw,108px)}
.legal-content{max-width:820px}
.legal-content h1{font:700 clamp(34px,8vw,52px)/1.08 var(--f-display);margin-bottom:12px}
.legal-updated{font-size:14px;color:var(--muted);margin-bottom:24px}
.legal-content h2{font:600 clamp(22px,5vw,28px)/1.2 var(--f-display);margin:2em 0 .6em}
.legal-content p{line-height:1.7;margin-bottom:14px}
.legal-content ul{list-style:disc;padding-left:1.4em;margin-bottom:14px;display:flex;flex-direction:column;gap:6px}

@media (min-width:720px){
  .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pcard--featured{flex-direction:row;align-items:stretch}
  .pcard--featured .pcard__img{flex:1.25;aspect-ratio:auto;min-height:340px}
  .pcard--featured .pcard__body{flex:1;justify-content:center}
  .cta-inline{flex-direction:row;align-items:center;justify-content:space-between;gap:40px;max-width:none}
  .cta-inline .btn{flex:none}
}
@media (min-width:1024px){
  .pgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .article__layout{grid-template-columns:240px minmax(0,720px);gap:56px}
  .toc{position:sticky;top:96px}
  .article__layout:not(:has(.toc)){grid-template-columns:minmax(0,720px)}
}
@media (prefers-reduced-motion:reduce){.pcard{transition:none}}
