/* Blog pages: list, categories and articles. Uses the colours from site.css. */
.blog-hero{padding-bottom:28px}
.blog-cats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px}
.blog-cats a{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:1px solid var(--ln);border-radius:30px;color:var(--ink);text-decoration:none;font-weight:600;font-size:14px;background:#fff}
.blog-cats a span{color:var(--mut);font-weight:500;font-size:13px}
.blog-cats a:hover{border-color:var(--acc)}
.blog-cats a.on{background:var(--accsoft);border-color:var(--acc);color:var(--acc2)}
.pcards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.pcard{display:flex;flex-direction:column;border:1px solid var(--ln);border-radius:var(--r);overflow:hidden;background:#fff;color:var(--ink);text-decoration:none;transition:box-shadow .15s,transform .15s}
.pcard:hover{box-shadow:0 14px 34px rgba(16,24,40,.1);transform:translateY(-2px)}
.pc-img{display:block;aspect-ratio:16/9;background:var(--bg2);overflow:hidden}
.pc-img img{width:100%;height:100%;object-fit:cover}
.pc-none{background:linear-gradient(135deg,var(--accsoft),#f3f6fb)}
.pc-bd{display:flex;flex-direction:column;gap:8px;padding:16px 18px 18px;flex:1}
.pc-cat{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--acc2)}
.pc-t{font-size:19px;line-height:1.3;margin:0;letter-spacing:-.01em}
.pc-x{color:var(--mut);font-size:15px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pc-m{margin-top:auto;font-size:13px;color:var(--mut)}
.blog-pages{display:flex;justify-content:space-between;align-items:center;margin-top:30px;font-size:15px;color:var(--mut)}
.blog-pages a{font-weight:650;text-decoration:none}
.blog-empty{text-align:center;padding:40px 20px;border:1px dashed var(--ln);border-radius:var(--r)}
.blog-empty h2{font-size:24px;margin:0 0 8px}
.blog-empty p{color:var(--mut);margin:0 0 18px}

.post-hd{padding:34px 0 10px}
.post-narrow{max-width:820px}
.post-cat{display:inline-block;font-size:13px;font-weight:700;color:var(--acc2);background:var(--accsoft);border-radius:30px;padding:4px 12px;text-decoration:none;margin-bottom:14px}
.post-hd h1{font-size:clamp(30px,4.4vw,46px);line-height:1.12;margin:0 0 14px;text-align:left;max-width:none}
.post-lead{font-size:clamp(17px,2vw,20px);color:var(--mut);margin:0 0 16px;line-height:1.55}
.post-meta{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;color:var(--mut)}
.post-meta b{color:var(--ink)}
.post-cover{margin:22px auto 0;max-width:1160px}
.post-cover img{width:100%;border-radius:16px;border:1px solid var(--ln)}
.post-grid{display:grid;grid-template-columns:240px minmax(0,760px);gap:48px;justify-content:center;padding-top:34px;padding-bottom:20px}
.post-grid.no-toc{grid-template-columns:minmax(0,760px)}
.post-toc{position:sticky;top:90px;align-self:start;font-size:14px}
.post-toc summary{font-weight:700;margin-bottom:8px;cursor:pointer}
.post-toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--ln)}
.post-toc li{margin:0}
.post-toc li a{display:block;padding:5px 0 5px 14px;color:var(--mut);text-decoration:none;line-height:1.4}
.post-toc li.l3 a{padding-left:28px;font-size:13px}
.post-toc li a:hover{color:var(--acc2)}
.post-body{font-size:18px;line-height:1.75;color:#1d2733}
.post-body>*:first-child{margin-top:0}
.post-body h2{font-size:clamp(24px,3vw,30px);line-height:1.25;margin:44px 0 14px;letter-spacing:-.015em;scroll-margin-top:90px}
.post-body h3{font-size:clamp(20px,2.4vw,23px);line-height:1.3;margin:32px 0 10px;scroll-margin-top:90px}
.post-body h4{font-size:18px;margin:26px 0 8px}
.post-body p{margin:0 0 20px}
.post-body ul,.post-body ol{margin:0 0 22px;padding-left:26px}
.post-body li{margin:6px 0}
.post-body a{color:var(--acc2);text-decoration:underline;text-underline-offset:3px}
.post-body strong{color:var(--ink)}
.post-body blockquote{margin:26px 0;padding:16px 20px;border-left:4px solid var(--acc);background:var(--accsoft);border-radius:0 12px 12px 0;color:var(--ink)}
.post-body blockquote p:last-child{margin-bottom:0}
.post-body figure{margin:28px 0}
.post-body img{border-radius:12px;border:1px solid var(--ln)}
.post-body figcaption{font-size:14px;color:var(--mut);text-align:center;margin-top:8px}
.post-body hr{border:0;border-top:1px solid var(--ln);margin:36px 0}
.post-body code{font-size:.88em;background:var(--bg2);padding:2px 6px;border-radius:6px}
.post-body pre{background:#0f1720;color:#e6edf3;padding:16px 18px;border-radius:12px;overflow:auto;font-size:14px;line-height:1.6}
.post-body pre code{background:none;padding:0;color:inherit}
.post-body .twrap{overflow-x:auto;margin:0 0 24px;border:1px solid var(--ln);border-radius:12px}
.post-body table{width:100%;border-collapse:collapse;font-size:16px}
.post-body th,.post-body td{padding:10px 14px;border-bottom:1px solid var(--ln);text-align:left;vertical-align:top}
.post-body th{background:var(--bg2);font-weight:700}
.post-body tr:last-child td{border-bottom:0}
.post-body iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:12px;margin:0 0 22px}
.post-faq{margin-top:44px}
.post-faq details{border:1px solid var(--ln);border-radius:12px;padding:0 18px;margin:0 0 10px;background:#fff}
.post-faq summary{font-weight:700;font-size:17px;padding:14px 0;cursor:pointer}
.post-faq .ans{padding:0 0 6px;font-size:17px}
.post-tags{display:flex;flex-wrap:wrap;gap:8px;margin:34px 0 0}
.post-tags span{font-size:13px;background:var(--bg2);border:1px solid var(--ln);border-radius:30px;padding:4px 12px;color:var(--mut)}
.post-author{display:flex;gap:16px;align-items:flex-start;margin:34px 0 10px;padding:20px;border:1px solid var(--ln);border-radius:var(--r);background:var(--bg2)}
.post-author .pa-av{flex:0 0 52px;width:52px;height:52px;border-radius:50%;background:var(--acc);color:#fff;display:grid;place-items:center;font-weight:800;font-size:18px}
.post-author b{display:block;font-size:16px;margin-bottom:4px}
.post-author p{margin:0 0 6px;font-size:15px;color:var(--mut);line-height:1.6}
.post-author a{font-size:14px;font-weight:650}
.post-rel{padding:50px 0 10px;background:var(--bg2)}
.post-rel h2{font-size:28px;margin:0 0 22px;text-align:left}
@media (max-width:1000px){.pcards{grid-template-columns:repeat(2,1fr)}.post-grid{grid-template-columns:minmax(0,760px);gap:0}.post-toc{position:static;margin-bottom:24px;padding:14px 16px;border:1px solid var(--ln);border-radius:12px}}
@media (max-width:640px){.pcards{grid-template-columns:1fr}.post-body{font-size:17px}.post-hd{padding-top:22px}.post-cover img{border-radius:0;border-left:0;border-right:0}.post-cover.wrap{padding:0}}
