/* Blog: /blog index and /blog/<slug> articles. Loaded after site.css. */
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- cards (index + related) ---------- */
.bl-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bl-card[hidden]{display:none}
.bl-card a{display:flex;flex-direction:column;height:100%;border-radius:var(--r);background:var(--soft);text-decoration:none;color:var(--ink);overflow:hidden;transition:background .35s,box-shadow .35s,transform .5s cubic-bezier(.16,1,.3,1)}
.bl-card a:hover{background:#fff;box-shadow:0 0 0 1.5px var(--ink);transform:translateY(-4px)}
.bl-card a:focus-visible{outline:3px solid var(--mari-deep);outline-offset:3px}
.bl-thumb{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--line)}
.bl-thumb img{width:100%;height:100%;object-fit:cover;transition:transform 1s cubic-bezier(.16,1,.3,1)}
.bl-card a:hover .bl-thumb img{transform:scale(1.04)}
.bl-cbody{display:flex;flex-direction:column;gap:10px;flex:1;padding:20px 22px 22px}
.bl-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.cat{display:inline-block;font-size:11px;font-weight:700;padding:4px 10px;border-radius:99px;background:#fff;color:var(--ink-2);text-decoration:none;white-space:nowrap}
.cat[data-c="Fiscal Sponsorship"]{background:var(--forest);color:#fff}
.cat[data-c="Fundraising and Grants"]{background:var(--pale);color:#7a3f02}
.cat[data-c="Nonprofit Operations"]{background:var(--sage);color:var(--forest)}
.cat[data-c="Social Enterprise"]{background:#f1dcd8;color:var(--ox)}
.bl-card h3{font-family:var(--sans);text-transform:none;font-weight:700;font-size:18px;line-height:1.3;letter-spacing:-.01em}
.bl-card .ex{font-size:14.5px;line-height:1.55;color:var(--ink-2)}
.bl-card .by{margin-top:auto;padding-top:4px;font-size:13px;color:var(--muted)}
.bl-card .by b{color:var(--ink);font-weight:600}
.bl-card.lead{grid-column:span 2}
.bl-card.lead a{display:grid;grid-template-columns:1.1fr 1fr;background:var(--cream);box-shadow:inset 0 0 0 1px var(--line)}
.bl-card.lead .bl-thumb{aspect-ratio:auto;min-height:100%}
.bl-card.lead .bl-cbody{padding:28px 28px 26px;justify-content:center}
.bl-card.lead h3{font-family:var(--display);text-transform:uppercase;font-weight:400;font-size:clamp(28px,2.6vw,40px);line-height:.98;letter-spacing:0}

/* ---------- index ---------- */
.bl-hero h1{max-width:20ch;font-size:clamp(42px,4.6vw,74px)}
.bl-hero-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.bl-hero-row .lede{max-width:560px}
.bl-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.bl-tools-r{display:flex;gap:10px;flex-wrap:wrap}
.bl-sel select{appearance:none;font:600 14px var(--sans);color:var(--ink);padding:12px 40px 12px 16px;border-radius:999px;border:0;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23282828' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center no-repeat;box-shadow:inset 0 0 0 1.5px var(--line);cursor:pointer;max-width:260px}
.bl-sel select:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--ink)}
.bl-status{min-height:22px;margin:0 0 14px;font-size:14px;color:var(--ink-2)}
.bl-status .link,.empty .link{border:0;font:inherit;font-weight:600;color:var(--ink);cursor:pointer;margin-left:6px}
.bl-more{display:flex;justify-content:center;margin-top:28px}
.bl-more[hidden]{display:none}
.bl-topics{margin-top:clamp(48px,6vw,80px);padding:clamp(24px,3vw,34px);border-radius:var(--r);box-shadow:inset 0 0 0 1px var(--line)}
.bl-topics small,.pa-toc small,.pa-share small,.pf-tags small{display:block;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.bl-topics ul,.pf-tags ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.bl-topics a,.pf-tags a{display:inline-block;padding:8px 14px;border-radius:99px;background:var(--soft);color:var(--ink);font-size:14px;font-weight:500;text-decoration:none;transition:background .25s}
.bl-topics a:hover,.pf-tags a:hover{background:var(--pale)}

/* ---------- article ---------- */
.post-head{padding-bottom:clamp(36px,4vw,56px)}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13.5px;color:var(--muted)}
.crumbs a{color:var(--ink-2);text-decoration:none;font-weight:500}
.crumbs a:hover{color:var(--ink);text-decoration:underline}
.post-head h1{max-width:22ch;font-size:clamp(38px,4.3vw,68px);line-height:.96}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;margin-top:26px;font-size:15px;color:var(--ink-2)}
.post-meta .who{display:inline-flex;align-items:center;gap:10px}
.post-meta .who img{width:36px;height:36px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px var(--line)}
.post-meta b{color:var(--ink);font-weight:600}
.post-meta{gap:8px 14px}
.post-meta > :not(.who)::before{content:'';display:inline-block;width:4px;height:4px;margin-right:14px;border-radius:50%;background:var(--mari-deep);vertical-align:middle}
.post-hero{margin:0 0 clamp(36px,5vw,64px);border-radius:var(--r-lg);overflow:hidden;background:var(--soft);display:grid;place-items:center}
.post-hero img{display:block;width:auto;max-width:100%;height:auto;max-height:min(620px,72vh);object-fit:contain}
.post-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:clamp(32px,5vw,72px);align-items:start}

/* article typography: keeps the live post's structure (paragraph sizes, headings, lists, quotes) */
.post-body{max-width:720px;font-size:18px;line-height:1.72;color:#33312d}
.post-body > * + *{margin-top:1.05em}
.post-body p{margin:0}
.post-body p + p{margin-top:1em}
.post-body p.lg{font-size:1.16em;line-height:1.6;color:var(--ink)}
.post-body h2,.post-body h3,.post-body h4{scroll-margin-top:96px;color:var(--ink)}
.post-body h2{margin-top:2.1em;font-size:clamp(30px,2.8vw,40px);line-height:1.02}
.post-body h3{margin-top:1.8em;font-family:var(--sans);text-transform:none;font-weight:700;font-size:23px;line-height:1.25;letter-spacing:-.01em}
.post-body h4{margin-top:1.6em;font-family:var(--sans);text-transform:none;font-weight:700;font-size:19px;line-height:1.3}
.post-body h2 + *,.post-body h3 + *,.post-body h4 + *{margin-top:.7em}
.post-body a{color:var(--forest);font-weight:600;text-decoration:underline;text-decoration-color:var(--mari);text-decoration-thickness:2px;text-underline-offset:3px;transition:text-decoration-color .25s}
.post-body a:hover{text-decoration-color:var(--forest)}
.post-body strong,.post-body b{color:var(--ink);font-weight:700}
.post-body ul,.post-body ol{padding-left:1.35em}
.post-body li{padding-left:.25em}
.post-body li + li{margin-top:.5em}
.post-body li > p + p{margin-top:.5em}
.post-body ul li::marker{color:var(--mari-deep)}
.post-body ol li::marker{color:var(--mari-deep);font-weight:700}
.post-body blockquote{margin:1.6em 0;padding:22px 26px;border-radius:var(--r-sm);background:var(--cream);box-shadow:inset 0 0 0 1px var(--line);color:var(--ink)}
.post-body blockquote p + p{margin-top:.7em}
.post-body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;padding:2px 6px;border-radius:6px;background:var(--soft)}
.post-body mark{background:var(--pale);padding:0 .15em}
.post-body .accent{color:var(--forest)}
.post-body .post-fig{margin:1.8em 0}
.post-body .post-fig img{display:block;max-width:100%;height:auto;border-radius:var(--r-sm)}
.post-body figcaption{margin-top:10px;font-size:14px;color:var(--muted)}
.post-body .post-btn{display:flex;justify-content:center;margin:1.8em 0}
.post-body .post-btn a{color:var(--ink);text-decoration:none}

.post-aside{position:relative;height:100%}
.pa-stick{position:sticky;top:32px;display:grid;gap:14px}
.pa-toc{padding:20px 20px 16px;border-radius:var(--r);box-shadow:inset 0 0 0 1px var(--line)}
.pa-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:2px;max-height:46vh;overflow:auto;counter-reset:t}
.pa-toc a{display:block;padding:7px 10px;border-radius:10px;font-size:14px;line-height:1.35;color:var(--ink-2);text-decoration:none;transition:background .25s,color .25s}
.pa-toc a:hover{background:var(--soft);color:var(--ink)}
.pa-toc a.on{background:var(--sage-soft);color:var(--forest);font-weight:600}
.pa-share{padding:18px 20px;border-radius:var(--r);background:var(--soft)}
.pa-share > div{display:flex;gap:8px}
.pa-share a,.pa-share button{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:0;background:#fff;color:var(--ink);cursor:pointer;transition:background .25s,color .25s}
.pa-share a:hover,.pa-share button:hover{background:var(--forest);color:#fff}
.pa-share svg{width:17px;height:17px}
.pa-copied{display:block;min-height:18px;margin-top:8px;font-size:12.5px;color:var(--forest);font-weight:600;word-break:break-all}
.pa-cta{padding:22px 20px;border-radius:var(--r);background:var(--forest);color:#fff}
.pa-cta b{display:block;font-family:var(--display);font-weight:400;text-transform:uppercase;font-size:26px;line-height:1}
.pa-cta p{margin:10px 0 16px;font-size:14px;color:rgba(255,255,255,.78)}

.post-foot{max-width:720px;margin-top:clamp(40px,5vw,64px);padding-top:28px;border-top:1px solid var(--line);display:grid;gap:22px}
.pf-cats{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.pf-cats .cat{font-size:12px;padding:6px 12px}
.pf-cats .link{margin-left:auto}
.bl-grid.rel{margin-top:4px}

@media (max-width:1100px){.post-grid{grid-template-columns:1fr}.post-aside{order:2}.pa-stick{position:static;grid-template-columns:1fr 1fr}.pa-toc{display:none}}
@media (max-width:900px){.bl-grid{grid-template-columns:1fr 1fr}.bl-card.lead{grid-column:1/-1}.bl-card.lead a{grid-template-columns:1fr}.bl-card.lead .bl-thumb{aspect-ratio:16/9}}
@media (max-width:640px){.bl-grid{grid-template-columns:1fr}.post-body{font-size:17px}.pa-stick{grid-template-columns:1fr}.bl-tools-r,.bl-tools-r > *,.bl-sel select,.search{width:100%;max-width:none;min-width:0}.pf-cats .link{margin-left:0}}
@media print{.side,.topbar,.post-aside,#related,.mobile-cta,footer.site,canvas{display:none!important}main{margin:0}}

/* live /blog intro copy */
.bl-sub span{color:var(--forest);font-weight:600}
.bl-intro{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(24px,4vw,56px);margin-bottom:clamp(40px,5vw,64px);padding:clamp(26px,3.6vw,44px);border-radius:var(--r-lg);background:var(--cream);box-shadow:inset 0 0 0 1px var(--line)}
.bl-intro-lead{font-size:clamp(19px,1.6vw,23px);line-height:1.5;color:var(--ink)}
.bl-intro-side{display:grid;gap:12px;align-content:start;font-size:16px;line-height:1.6;color:var(--ink-2)}
.bl-intro-side p{margin:0}
.bl-intro a{color:var(--forest);text-decoration:underline;text-decoration-color:var(--mari);text-decoration-thickness:2px;text-underline-offset:3px}
.bl-intro a:hover{text-decoration-color:var(--forest)}
@media (max-width:900px){.bl-intro{grid-template-columns:1fr}}
