:root{
  --c0:#060097;--c1:#c10fff;--c2:#1e293b;--c3:#67768e;--c4:#f9f6fe;
  --c5:#fff;--c6:#f2f5f7;--c7:#ffcd57;--c8:#000;
  --green:#5c917f;--dark:#1d3932;--red:#cf2e2e;
  --body:'Inter',system-ui,-apple-system,sans-serif;
  --head:'Plus Jakarta Sans','Inter',sans-serif;
  --nav:'Sofia Sans','Inter',sans-serif;
}
*{box-sizing:border-box}
html{font-size:112.5%;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--body);color:var(--c2);background:var(--c5);line-height:1.65}
a{color:var(--c0);text-decoration:none}
a:hover{color:var(--c1)}
h1,h2,h3,h4{font-family:var(--head);color:var(--c2);line-height:1.3;font-weight:700;margin:0}
img{max-width:100%;display:block}
.wrap{max-width:1240px;margin:0 auto;padding:0 20px}

/* header */
.site-header{background:var(--dark);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;min-height:74px;gap:1rem;position:relative}
.brand{font-family:var(--head);font-weight:700;font-size:1.6rem;color:#fff}
.brand:hover{color:var(--c4)}
.nav{display:flex;gap:.25rem;font-family:var(--nav);font-weight:600}
.nav a{color:#fff;padding:.5rem .6rem;border-radius:6px;font-size:.95rem}
.brand,.nav a{white-space:nowrap}
@media (min-width:901px) and (max-width:1200px){.nav a{padding:.5rem .45rem;font-size:.88rem}}
.nav a:hover{color:var(--c4);background:rgba(255,255,255,.08)}
.menu-btn{display:none;background:none;border:0;color:#fff;font-size:1.7rem;line-height:1;cursor:pointer}
@media(max-width:960px){
  .menu-btn{display:block}
  .nav{position:absolute;top:100%;left:0;right:0;background:var(--dark);flex-direction:column;padding:.5rem 20px 1rem;display:none}
  .nav.open{display:flex}
}

/* generic page & blog article typography */
.hero{padding:2.6rem 0 .5rem}
.hero h1{font-size:clamp(1.9rem,1.1rem+3vw,3.4rem);line-height:1.22;margin-bottom:1.1rem}
.lead p{margin:.65rem 0}
.page{max-width:840px;margin:0 auto;padding:2.4rem 0 3rem}
.page h1{font-size:clamp(1.75rem,1.1rem+2.2vw,2.5rem);line-height:1.25;margin:0 0 1.2rem;color:var(--c2)}
.page h2{margin:2.5rem 0 .85rem;font-size:clamp(1.3rem,1.1rem+.7vw,1.6rem);line-height:1.35;color:var(--c2);padding-bottom:.5rem;border-bottom:2px solid var(--c6)}
.page h3{margin:1.8rem 0 .6rem;font-size:clamp(1.1rem,1rem+.4vw,1.28rem);line-height:1.4;color:var(--c2)}
.page h4{margin:1.4rem 0 .4rem;font-size:1.05rem;line-height:1.4;color:var(--c2)}
.page p{margin:1rem 0;line-height:1.75;font-size:1.02rem;color:#2d3748}
.page ul,.page ol{padding-left:1.5rem;margin:1.1rem 0}
.page li{margin:.4rem 0;line-height:1.7;color:#2d3748}
.page li strong{color:var(--c2)}
.page blockquote{background:#f4f8f6;border-left:4px solid var(--green);border-radius:0 12px 12px 0;margin:1.6rem 0;padding:1.2rem 1.5rem;color:#1e293b;font-size:1.02rem;line-height:1.72;box-shadow:0 1px 4px rgba(0,0,0,.03)}
.page blockquote p{margin:0;color:#1e293b}
.page blockquote p + p{margin-top:.6rem}
.page blockquote strong{color:var(--dark)}
.page hr{border:0;border-top:1px solid var(--c6);margin:2.5rem 0}
.updated{color:var(--c3);font-size:.9rem}

/* toc */
.toc{border:1px solid var(--c8);border-radius:0;padding:1.5rem;margin:0 0 30px}
.toc-toggle{display:flex;align-items:center;width:100%;background:none;border:0;padding:0;margin:0;cursor:pointer;font:inherit;text-align:left;color:var(--c2)}
.toc-title{flex:1 1 auto;font-size:1.1rem;font-weight:700}
.toc-icon{position:relative;width:24px;height:24px;flex:0 0 24px;margin-left:auto;transition:transform .2s ease-in-out}
.toc-icon::before,.toc-icon::after{content:"";position:absolute;top:11px;width:10px;height:2px;background:currentColor;transition:transform .13s ease-in-out}
.toc-icon::before{left:2px;transform:rotate(45deg)}
.toc-icon::after{left:8px;transform:rotate(-45deg)}
.toc.open .toc-icon::before{transform:rotate(-45deg)}
.toc.open .toc-icon::after{transform:rotate(45deg)}
.toc ol{margin:1.5rem 0 0;padding-left:1.75em;list-style:disc}
.toc:not(.open) ol{display:none}
.toc li{margin:.35rem 0}
.toc a{font-weight:600;text-decoration:none;color:var(--c0)}
.toc a:hover{text-decoration:underline}

/* section heading pill */
.sec{scroll-margin-top:90px}
.sec-h{background:var(--dark);color:var(--c4);border:1px solid var(--c4);border-radius:10px;
  padding:.7em 1em;margin:2.7rem 0 1.4rem;font-size:clamp(1.35rem,1.05rem+1vw,2rem);font-weight:700}
.sec.divider .sec-h{text-align:center;text-transform:uppercase;margin-top:3.2rem}
.grp-label{margin:1.7rem 0 .8rem;font-size:1.12rem;font-weight:700;color:var(--c2)}

/* grid + cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(198px,1fr));gap:1.25rem;margin-bottom:1.4rem}
.card{background:var(--c5);border:1px solid var(--c6);border-radius:14px;padding:14px;text-align:center;
  box-shadow:0 1px 3px rgba(0,0,0,.05)}
.thumb{background:#fff;border:1px solid var(--c6);border-radius:60px;padding:10px;overflow:hidden;position:relative;aspect-ratio:1}
.thumb img{width:100%;height:100%;object-fit:contain;border-radius:50px}
.card.noimg .thumb{background:var(--green);border-color:var(--green)}
.card.noimg .thumb img{display:none}
.card.noimg .thumb::after{content:"\2615";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:2.2rem}
.pname{color:var(--red);font-weight:700;margin:.8rem 0 .3rem;font-size:.98rem;font-family:var(--head)}
.pmeta{margin:0;font-size:.82rem;color:var(--c3)}
.pmeta strong{color:var(--c2)}
.pmeta .sep{margin:0 .35rem;color:var(--c6)}

/* prose + faq */
.prose{max-width:820px;margin:0 auto}
.prose h2{margin-top:2.2rem}
.prose ul{padding-left:1.2rem}
.prose li{margin:.2rem 0}
.cta{display:inline-block;background:var(--c7);color:var(--c2);font-weight:700;padding:.7rem 1.5rem;border-radius:50px;margin:.6rem 0;font-family:var(--head)}
.cta:hover{background:#ffd873;color:var(--c2)}
.center{text-align:center}
.faq{max-width:840px;margin:2rem auto}
.faq details{border:1px solid #e2e8f0;border-radius:10px;background:#fff;margin-bottom:.75rem;padding:0;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.faq details[open]{border-color:var(--green);box-shadow:0 2px 10px rgba(92,145,127,.12)}
.faq summary{padding:1rem 1.3rem;font-weight:700;cursor:pointer;font-family:var(--head);color:var(--c2);font-size:1.02rem;list-style:none;display:flex;align-items:center;justify-content:space-between;background:#fafbfc;transition:background .2s,color .2s}
.faq summary:hover{background:#f3f7f5;color:var(--dark)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{display:none}
.faq summary::after{content:"+";color:var(--green);font-size:1.4rem;font-weight:700;line-height:1;margin-left:1rem;flex-shrink:0;transition:transform .2s}
.faq details[open] summary::after{content:"\2212";color:var(--dark)}
.faq p{padding:.9rem 1.3rem 1.2rem;margin:0;color:#4a5568;line-height:1.72;font-size:.98rem;background:#fff}

/* footer */
.site-footer{background:var(--dark);color:#fff;margin-top:4rem}
.site-footer .wrap{padding:2.6rem 20px}
.f-logo{width:120px;margin-bottom:1rem;background:#fff;border-radius:12px;padding:8px}
.f-menu{display:flex;flex-wrap:wrap;gap:1.1rem;font-family:var(--nav);font-weight:600;margin-bottom:1.2rem}
.f-menu a{color:#fff}
.f-menu a:hover{color:var(--c4)}
.f-note{color:#cfe0da;font-size:.85rem;max-width:70ch;margin-bottom:1.4rem}
.f-bottom{border-top:1px solid rgba(255,255,255,.35);text-align:center;padding:1.3rem 0 0;font-size:.9rem;color:#cfe0da}
.f-bottom a{color:#fff;font-weight:600}

/* blog */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;margin-bottom:2rem}
.blog-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04);display:flex;flex-direction:column;height:100%;transition:transform .2s ease,box-shadow .2s ease}
.blog-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,.08)}
.blog-thumb{aspect-ratio:16/10;background:var(--dark);overflow:hidden}
.blog-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.blog-card:hover .blog-thumb img{transform:scale(1.03)}
.blog-card-body{padding:1.4rem;display:flex;flex-direction:column;flex:1 1 auto}
.blog-card h3{font-size:1.1rem;line-height:1.38;margin-bottom:.7rem;font-weight:700}
.blog-card h3 a{color:var(--c2);text-decoration:none}
.blog-card h3 a:hover{color:var(--green)}
.blog-card p{color:#64748b;font-size:.92rem;line-height:1.62;margin:0 0 1.2rem;flex:1 1 auto}
.blog-more{font-weight:700;font-family:var(--head);font-size:.92rem;color:var(--green);margin-top:auto;display:inline-flex;align-items:center;gap:.3rem}
.blog-more:hover{color:var(--dark);text-decoration:underline}
.blog-list{max-width:840px;margin:0 auto}
.blog-meta{color:var(--c3);font-size:.9rem;margin:0 0 1rem;display:flex;align-items:center;gap:.45rem;font-weight:500}
.blog-meta a{color:var(--green);font-weight:600}
.blog-meta a:hover{color:var(--dark);text-decoration:underline}

/* featured image on article/blog post pages */
.featured-img{border-radius:16px;overflow:hidden;margin:1.4rem 0 2rem;box-shadow:0 4px 20px rgba(0,0,0,.08);background:var(--dark)}
.featured-img img{width:100%;height:auto;max-height:420px;object-fit:cover;display:block}
.featured-img.contain img{object-fit:contain;padding:2.4rem;max-height:320px}

/* secondary in-body image within a blog article */
.inline-img{border-radius:14px;overflow:hidden;margin:2rem 0;box-shadow:0 4px 16px rgba(0,0,0,.06)}
.inline-img img{width:100%;height:auto;max-height:360px;object-fit:cover;display:block}

/* tables inside blog posts */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.8rem 0 2.2rem;border-radius:12px;border:1px solid #e2e8f0;box-shadow:0 2px 10px rgba(0,0,0,.04);background:#fff}
.page table{width:100%;border-collapse:collapse;margin:0;font-size:.95rem;background:#fff;border:0}
.page th,.page td{padding:.9rem 1.2rem;text-align:left;border-bottom:1px solid #edf2f7;vertical-align:middle}
.page th{background:#f8fafc;color:var(--dark);font-weight:700;font-family:var(--head);font-size:.88rem;letter-spacing:.02em;white-space:nowrap}
.page tr:last-child td{border-bottom:0}
.page tr:hover td{background:#f8fbf9}

