/* Non-critical styles. Loaded via rel=preload/onload so it never blocks render.
   Bump the ?v= query in BaseLayout whenever this file changes — it is served immutable. */

main{display:block}
section{padding:3.25rem 0}
section.alt{background:var(--bg2)}

h2{font-size:clamp(1.4rem,3.4vw,2.05rem);font-weight:800;color:var(--dark);line-height:1.4;margin:0 0 1rem;scroll-margin-top:5rem}
h3{font-size:clamp(1.1rem,2.4vw,1.3rem);font-weight:700;color:var(--dark);margin:1.9rem 0 .6rem;scroll-margin-top:5rem}
h4{font-size:1.05rem;font-weight:700;color:var(--dark);margin:1.4rem 0 .5rem}
.section-head{text-align:center;max-width:48rem;margin:0 auto 2.5rem}
.section-head p{color:var(--muted)}

.prose p{margin-bottom:1.15rem}
.prose ul,.prose ol{margin:0 1.5rem 1.25rem}
.prose li{margin-bottom:.6rem}
.prose strong{color:var(--dark);font-weight:700}
.prose mark{background:#fef3c7;color:inherit;padding:0 .2em;border-radius:.2em}

/* Featured-snippet target: the direct answer paragraph under each H2. */
.lead{font-size:1.06rem;color:#1f2937;font-weight:500;background:var(--bg2);border-inline-start:4px solid var(--accent);padding:1.05rem 1.2rem;border-radius:.5rem;margin-bottom:1.5rem}

.toc{background:var(--bg2);border:1px solid var(--border);border-radius:.85rem;padding:1.4rem 1.6rem;margin:2rem 0}
.toc h2{font-size:1.15rem;margin-bottom:.85rem}
.toc ol{margin:0 1.2rem}
.toc li{margin-bottom:.45rem;font-size:.96rem}
.toc a:hover{color:var(--accent);text-decoration:underline}

.grid{display:grid;gap:1.25rem}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(272px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.card{background:#fff;border:1px solid var(--border);border-radius:.9rem;padding:1.5rem}
.card h3{margin-top:0}
.card p{color:var(--muted);font-size:.95rem;margin:0}
.card .num{display:inline-flex;align-items:center;justify-content:center;width:2.15rem;height:2.15rem;border-radius:.6rem;background:var(--dark);color:var(--accent2);font-weight:800;margin-bottom:.85rem}

.steps{display:grid;gap:1rem;counter-reset:step}
.step{display:flex;gap:1.1rem;align-items:flex-start;background:#fff;border:1px solid var(--border);border-radius:.8rem;padding:1.2rem}
.step .n{flex-shrink:0;width:2.3rem;height:2.3rem;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.92rem}
.step h3{margin:0 0 .35rem;font-size:1.05rem}
.step p{color:var(--muted);font-size:.95rem;margin:0}

.faq{border:1px solid var(--border);border-radius:.85rem;overflow:hidden;background:#fff}
.faq details{border-bottom:1px solid var(--border)}
.faq details:last-child{border-bottom:none}
.faq summary{padding:1.1rem 1.3rem;font-weight:700;color:var(--dark);cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:center;min-height:48px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--accent);font-weight:800;font-size:1.35rem;flex-shrink:0;line-height:1}
.faq details[open] summary::after{content:"−"}
.faq .answer{padding:0 1.3rem 1.2rem;color:var(--muted);font-size:.98rem}

.scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.25rem 0}
.tbl{width:100%;border-collapse:collapse;font-size:.95rem;background:#fff;border:1px solid var(--border);border-radius:.7rem;overflow:hidden;min-width:34rem}
.tbl th,.tbl td{padding:.85rem 1rem;text-align:start;border-bottom:1px solid var(--border);vertical-align:top}
.tbl th{background:var(--bg2);font-weight:800;color:var(--dark)}
.tbl tr:last-child td{border-bottom:none}
caption{caption-side:top;text-align:start;font-weight:700;color:var(--dark);padding-bottom:.6rem}

.cta{background:linear-gradient(150deg,#0b0f19,#2a1020);color:#fff;border-radius:1.1rem;padding:2.9rem 1.75rem;text-align:center;margin:1rem 0}
.cta h2{color:#fff;margin-bottom:.75rem}
.cta p{color:#cbd5e1;max-width:40rem;margin:0 auto 1.75rem}

.crumbs{font-size:.85rem;color:var(--muted);padding:1rem 0 0}
.crumbs a:hover{color:var(--accent);text-decoration:underline}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;margin:0}
.crumbs li::after{content:"‹";margin-inline-start:.4rem;color:var(--border)}
.crumbs li:last-child::after{content:""}

.related{background:var(--bg2);border:1px solid var(--border);border-radius:.85rem;padding:1.5rem;margin:2.5rem 0}
.related h2{font-size:1.15rem;margin-bottom:.9rem}
.related ul{list-style:none;margin:0;display:grid;gap:.6rem}
.related a{color:var(--accent);font-weight:600;font-size:.97rem}
.related a:hover{text-decoration:underline}

.author{display:flex;gap:1.1rem;align-items:flex-start;background:#fff;border:1px solid var(--border);border-radius:.85rem;padding:1.4rem;margin:2.5rem 0}
.author .avatar{flex-shrink:0;width:3.2rem;height:3.2rem;border-radius:50%;background:var(--dark);color:var(--accent2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.15rem}
.author h2{font-size:1.05rem;margin-bottom:.3rem}
.author p{color:var(--muted);font-size:.92rem;margin:0}

.meta-line{font-size:.87rem;color:var(--muted);margin-bottom:1.5rem;display:flex;gap:1rem;flex-wrap:wrap}

.article-list{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.article-card{background:#fff;border:1px solid var(--border);border-radius:.85rem;padding:1.35rem}
.article-card h2,.article-card h3{margin:0 0 .5rem;font-size:1.06rem;line-height:1.5}
.article-card h2 a:hover,.article-card h3 a:hover{color:var(--accent)}
.article-card p{color:var(--muted);font-size:.93rem;margin:0}

.wa-float{position:fixed;inset-inline-start:1.1rem;bottom:1.1rem;z-index:200;width:3.5rem;height:3.5rem;border-radius:50%;background:var(--wa);color:#0b1a10;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.28)}
.wa-float svg{width:1.85rem;height:1.85rem}

footer{background:var(--dark);color:#94a3b8;padding:2.75rem 1.25rem;text-align:center;font-size:.9rem;margin-top:1rem}
.footer-links{display:flex;gap:1.15rem;justify-content:center;flex-wrap:wrap;margin:1rem 0 1.35rem;list-style:none}
.footer-links a{padding:.4rem 0;display:inline-block}
.footer-links a:hover{color:#fff}

:focus-visible{outline:3px solid var(--accent2);outline-offset:2px}

@media(max-width:820px){
  section{padding:2.4rem 0}
  .cta{padding:2.1rem 1.25rem}
}
