/* BLOG POST v5 — light foundation. The per-article inline <style> template
   still carries dark hardcoded values; the `body `-prefixed rules below beat
   them on specificity (0,1,1 vs 0,1,0) regardless of source order, so ONE
   file converts all 19 articles. Keep this stylesheet render-blocking — it
   holds the :root tokens the inline critical CSS depends on (FOUC otherwise). */
:root{--accent:#CCFF00;--accent-ink:#4d7c0f;--bg:#ffffff;--band:#f7f8f6;--card-bg:#ffffff;--text:#101410;--text-dim:#46504a;--text-muted:#8a908a;--border:rgba(10,20,10,0.1)}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:#fff;color-scheme:light}
body{font-family:'Space Grotesk',sans-serif;background:var(--bg);color:var(--text);overflow-x:hidden;min-height:100vh;display:flex;flex-direction:column}

/* NAV — floating pill */
nav{position:sticky;top:14px;z-index:100;max-width:1140px;margin:14px auto 0;padding:0 16px;background:none;border:none;backdrop-filter:none}
.nav-inner{background:rgba(255,255,255,0.97);border:1px solid var(--border);border-radius:999px;box-shadow:0 8px 30px rgba(16,20,16,0.07);max-width:none;margin:0;padding:0 12px 0 24px;height:60px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.nav-logo{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:700;color:var(--text);text-decoration:none;letter-spacing:-0.02em}
.nav-logo .logo-mark{width:30px;height:30px;background:var(--accent);border-radius:9px;display:flex;align-items:center;justify-content:center}
.nav-logo .logo-mark svg{color:#000}
.nav-links{display:flex;align-items:center;gap:4px;list-style:none}
.nav-links li{display:flex;align-items:center}
.nav-links li+li::before{content:none}
.nav-links a{font-size:0.9rem;font-weight:500;color:var(--text-muted);text-decoration:none;letter-spacing:0;text-transform:none;transition:color 0.2s,background 0.2s;padding:8px 14px;border-radius:999px}
.nav-links a:hover,.nav-links a.active{color:var(--text);background:rgba(16,20,16,0.05)}
.nav-actions{display:flex;align-items:center;gap:8px}
.nav-login{font-size:0.9rem;font-weight:500;color:var(--text-muted);text-decoration:none;letter-spacing:0;text-transform:none;transition:color 0.2s;padding:8px 14px}
.nav-login:hover{color:var(--text)}
.btn-bracket{font-size:0.85rem;font-weight:600;color:#000;text-decoration:none;letter-spacing:0;text-transform:none;background:var(--accent);border:1px solid var(--accent);border-radius:999px;padding:10px 20px;transition:color 0.2s,background 0.2s,border-color 0.2s,box-shadow 0.2s,transform 0.2s;display:inline-flex;align-items:center;gap:6px}
.btn-bracket:hover{background:#bff000;border-color:#bff000;color:#000;transform:translateY(-1px);box-shadow:0 6px 20px rgba(160,200,0,0.35)}
.btn-bracket-accent{background:var(--accent);border-color:var(--accent);color:#000;font-weight:700}
.btn-bracket-accent:hover{background:#bff000;border-color:#bff000;color:#000}
#mobile-menu-btn{display:none;background:none;border:none;color:var(--text);cursor:pointer;padding:4px}
#mobile-menu{display:none;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 12px 36px rgba(16,20,16,0.1);padding:16px 24px 24px;position:sticky;top:88px;z-index:99;max-width:1140px;margin:8px auto 0}
#mobile-menu a{display:block;padding:12px 0;font-size:0.95rem;font-weight:500;color:var(--text-muted);text-decoration:none;border-bottom:1px solid var(--border);letter-spacing:0;text-transform:none}
#mobile-menu .mob-actions{display:flex;gap:12px;margin-top:16px}
@media(max-width:1023px){.nav-links,.nav-actions{display:none}#mobile-menu-btn{display:block}}

/* HERO — clean light editorial band. The og-card watermark looked broken on
   the light canvas (giant ghost letters), so it's hidden and the hero content
   flows statically instead of absolute-positioning over an image. */
.article-hero{position:relative;overflow:hidden;background:linear-gradient(180deg,var(--band) 0%,#ffffff 100%);border-bottom:1px solid var(--border)}
.hero-img,.hero-overlay{display:none}
body .hero-content{position:static;max-width:900px;margin:0 auto;padding:72px 32px 48px}
@media(max-width:640px){body .hero-content{padding:48px 20px 32px}}

/* ── Light overrides for the per-article inline template (specificity 0,1,1) ── */
body .article-h1{color:var(--text)}
body .breadcrumb-sep{color:#c9cec4}
body .breadcrumb a:hover{color:var(--accent-ink)}
body .article-tag{color:var(--accent-ink);border-color:rgba(77,124,15,0.3);border-radius:999px}
body .meta-author-name{color:var(--text)}
body .meta-author-role{color:var(--text-muted)}
body .meta-author-dot{background:rgba(77,124,15,0.07);border-color:rgba(77,124,15,0.16);border-radius:10px}
body .meta-info span{color:var(--accent-ink)}
body .back-link:hover{color:var(--accent-ink)}
body .article-body h2,body .article-body h3{color:var(--text)}
body .article-body strong{color:var(--text)}
body .article-body code{background:var(--band);border:1px solid var(--border);border-radius:6px;color:var(--accent-ink)}
body .article-body pre{background:#101410;border:1px solid rgba(16,20,16,0.9);border-radius:14px;box-shadow:0 10px 30px rgba(16,20,16,0.08)}
body .article-body pre{position:relative;padding-top:48px!important}
body .article-body pre code{background:none;border:none;color:#e6e8e3}
.code-copy{position:absolute;top:10px;right:10px;min-height:30px;padding:5px 10px;border:1px solid rgba(255,255,255,.2);border-radius:7px;background:rgba(255,255,255,.08);color:#eef1eb;font:600 .72rem 'Space Grotesk',sans-serif;cursor:pointer}
.code-copy:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35)}
.code-copy:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body .article-body blockquote{background:#f7fbe8;border-left:3px solid var(--accent);border-radius:0 10px 10px 0;color:#4a5518}
body .article-body a{color:var(--accent-ink);text-decoration-color:rgba(77,124,15,0.35)}
body .article-body a:hover{text-decoration-color:var(--accent-ink)}
body .shot{background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgba(16,20,16,0.05)}
body .shot figcaption{color:var(--text-muted);background:var(--band);border-top:1px solid var(--border)}
body .article-body pre{-webkit-overflow-scrolling:touch}
body .callout{background:#f7fbe8;border:1px solid rgba(101,118,10,0.2);border-radius:12px;color:#4a5518}
body .callout strong{color:#3e5b06}
body .article-cta{background:var(--band);border:1px solid var(--border);border-radius:20px}
body .article-cta::before{content:none}
body .article-cta h2{color:var(--text)}
body .faq-label,body .related-label{color:var(--accent-ink);font-family:'Space Grotesk',sans-serif;text-transform:none;letter-spacing:0;font-size:0.9rem;font-weight:600}
body .faq-label::before,body .related-label::before{background:var(--accent);border-radius:2px}
body .faq-h2,body .related-h2{color:var(--text)}
body .faq-q h3{color:var(--text)}
body .faq-icon{background:rgba(77,124,15,0.08);border-color:rgba(77,124,15,0.18);color:var(--accent-ink);border-radius:8px}
body .related-grid{gap:16px;background:none}
body .related-card{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 1px 2px rgba(16,20,16,0.05);transition:transform 0.25s,box-shadow 0.25s}
body .related-card:hover{background:#fff;transform:translateY(-3px);box-shadow:0 16px 40px rgba(16,20,16,0.12)}
body .related-card h3{color:var(--text)}
body .related-card:hover h3{color:var(--accent-ink)}
body .related-tag{color:var(--accent-ink);border-color:rgba(77,124,15,0.25);border-radius:999px}
body .related-read{color:var(--text-muted)}
body footer{background:#fff;border-top:1px solid var(--border)}
body .footer-inner{border-bottom:1px solid var(--border)}
body .footer-logo{color:var(--text)}
body .footer-logo .logo-mark{border-radius:7px}
body .footer-tagline{color:var(--text-muted)}
body .footer-col-head{color:var(--text);font-family:'Space Grotesk',sans-serif;text-transform:none;letter-spacing:0;font-size:0.85rem}
body .footer-col a{color:var(--text-muted)}
body .footer-col a:hover{color:var(--text)}
body .footer-bottom{color:var(--text-muted)}
body .footer-bottom a{color:var(--text-muted)}
body .footer-bottom a:hover{color:var(--text)}

/* ── Editorial touches ── */
/* Drop cap on the opening paragraph — magazine energy */
body .article-body > p:first-of-type::first-letter{
    float:left;font-size:3.4em;line-height:0.82;font-weight:700;color:var(--text);
    padding:6px 10px 0 0;font-family:'Space Grotesk',sans-serif;
}
/* First paragraph reads as a lede */
body .article-body > p:first-of-type{font-size:1.12rem;line-height:1.8;color:#3c443e;}
/* h2s get a marker tick that draws in as you reach them */
body .article-body h2{position:relative;padding-left:16px;}
body .article-body h2::before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:4px;border-radius:2px;background:var(--accent);}

/* mobile overflow guards */
pre{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;}
pre::-webkit-scrollbar{height:4px;}
pre::-webkit-scrollbar-thumb{background:#c9cec4;border-radius:2px;}
pre code{white-space:pre;display:block;min-width:0;}
article table{display:block;overflow-x:auto;max-width:100%;}
article .article-body img{max-width:100%;height:auto;}

/* ── Reading progress bar (element created by blog-nav.js) ── */
.read-progress{position:fixed;top:0;left:0;height:3px;width:0;background:var(--accent);z-index:300;pointer-events:none}

/* ── "On this page" TOC ── */
.post-toc{margin:28px 0 4px;padding:20px 24px 16px;background:var(--band);border:1px solid var(--border);border-radius:14px}
.post-toc-label{font-size:0.85rem;font-weight:700;color:var(--text);margin-bottom:12px;display:flex;align-items:center;gap:8px}
.post-toc-label::before{content:'';width:6px;height:6px;border-radius:2px;background:var(--accent);flex-shrink:0}
.post-toc-list{list-style:none;margin:0;padding:0;columns:2;column-gap:36px}
.post-toc-list li{margin:0 0 9px;break-inside:avoid}
.post-toc-list a{font-size:0.85rem;color:var(--text-dim);text-decoration:none;line-height:1.45;transition:color 0.15s}
.post-toc-list a:hover{color:var(--accent-ink)}
.post-toc-list a.toc-active{color:var(--accent-ink);font-weight:600}
.post-toc-list ol{list-style:none;margin:7px 0 0;padding-left:14px}
.post-toc-list ol li{margin:0 0 7px}
.post-toc-list ol a{font-size:0.8rem;color:var(--text-muted)}
@media(max-width:640px){.post-toc-list{columns:1}.post-toc{padding:16px 18px 12px}}
.article-body h3[id],.article-body h2[id],.faq-h2[id]{scroll-margin-top:96px}

/* ── Prev / next article pagination ── */
.post-pagination{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:48px}
.post-pag{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border:1px solid var(--border);border-radius:14px;background:#fff;text-decoration:none;transition:transform 0.2s,box-shadow 0.2s}
.post-pag:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(16,20,16,0.1)}
.post-pag.next{text-align:right;align-items:flex-end;grid-column:2}
.post-pag-dir{font-size:0.72rem;font-weight:600;color:var(--text-muted)}
.post-pag-title{font-size:0.9rem;font-weight:700;color:var(--text);line-height:1.35}
.post-pag:hover .post-pag-title{color:var(--accent-ink)}
@media(max-width:640px){.post-pagination{grid-template-columns:1fr}.post-pag.next{grid-column:1;text-align:left;align-items:flex-start}}

/* v9 — one calm, high-legibility editorial system for every blog post. */
body .article-hero{background:radial-gradient(circle at 82% 8%,rgba(204,255,0,.2),transparent 25%),linear-gradient(180deg,#f3f8ee 0%,#fff 88%);border-bottom:1px solid rgba(16,20,16,.1)}
body .hero-content{max-width:1080px;padding:104px 32px 64px}
body .article-h1{max-width:920px;font-size:clamp(2.25rem,5vw,4.25rem);line-height:1.04;letter-spacing:-.052em}
body .article-wrap{max-width:1080px;padding:56px 32px 104px}
body .article-meta,body .back-link,body .post-toc{max-width:760px;margin-left:auto;margin-right:auto}
body .article-meta{gap:18px;margin-bottom:36px;padding:20px 0}
body .back-link{display:flex;margin-bottom:26px}
body .post-toc{margin-top:0;margin-bottom:38px;padding:22px 24px 17px;border-radius:16px;background:#f7faf4;box-shadow:0 1px 2px rgba(16,20,16,.025)}
body .post-toc-list{column-gap:42px}
body .article-body{max-width:760px;margin:0 auto;color:#39463d;font-size:1.075rem;line-height:1.88}
body .article-body>p:first-of-type{font-size:1.14rem;line-height:1.76;color:#27342c}
body .article-body>p:first-of-type::first-letter{float:none;font:inherit;padding:0;color:inherit}
body .article-body h2{margin:3.4rem 0 1rem;padding-left:18px;font-size:clamp(1.62rem,3vw,2.2rem);line-height:1.16;letter-spacing:-.035em}
body .article-body h2::before{top:7px;bottom:7px;width:4px}
body .article-body h3{margin:2.45rem 0 .85rem;padding:0;font-size:1.22rem;line-height:1.3}
body .article-body h3::before{display:none}
body .article-body p{margin-bottom:1.6rem}
body .article-body li{padding-left:.2rem;margin-bottom:.6rem}
body .article-cta{max-width:760px;margin:4.5rem auto 0;padding:42px 32px}
body #scta-bar{background:rgba(255,255,255,.96);border-top:1px solid var(--border);box-shadow:0 -8px 30px rgba(16,20,16,.08)}
body #scta-text{color:var(--text-dim)}
body #scta-text strong{color:var(--accent-ink)}
body #scta-close{border-color:var(--border);color:var(--text-muted)}
body #scta-close:hover{color:var(--text);border-color:rgba(16,20,16,.25)}
@media(max-width:640px){body .hero-content{padding:64px 20px 42px}body .article-wrap{padding:38px 20px 76px}body .article-h1{font-size:clamp(2.15rem,10.5vw,3.25rem)}body .article-body{font-size:1rem;line-height:1.8}body .post-toc{padding:18px 18px 14px;margin-bottom:30px}body .article-meta{align-items:flex-start;gap:12px}body .article-cta{padding:30px 22px}}

/* ── Imported calendar-series structural layer (was calendar-article-shell.css) ── */
/* Structural layer for the imported calendar series. Colours, navigation, and
   editorial treatment come from blog-post.css so these pages stay identical
   to the established Sentinel research template. */
.skip-link{position:absolute;left:-999px}.skip-link:focus{left:16px;top:16px;z-index:999;padding:9px 12px;background:#fff;color:#101410;border-radius:8px}.article-wrap{max-width:900px;margin:0 auto;padding:56px 32px 100px;flex:1}.article-meta{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:24px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:48px}.meta-author{display:flex;align-items:center;gap:12px}.meta-author-dot{width:36px;height:36px;display:grid;place-items:center;flex-shrink:0}.meta-author-name{font-size:.85rem;font-weight:700}.meta-author-role{font-size:.72rem}.meta-divider{width:1px;height:32px;background:var(--border)}.meta-info{font-size:.72rem;color:var(--text-muted)}.back-link{display:inline-flex;align-items:center;gap:8px;margin-bottom:40px;color:var(--text-muted);font-size:.78rem;font-weight:600;letter-spacing:.06em;text-decoration:none;text-transform:uppercase}.article-body{font-size:1rem;line-height:1.85;color:var(--text-dim)}.article-body p{margin-bottom:1.5rem}.article-body h2{margin:3rem 0 1.2rem;font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.article-body h3{margin:2.5rem 0 1rem;font-size:1.25rem;font-weight:700;letter-spacing:-.015em}.article-body ul,.article-body ol{margin:0 0 1.5rem 1.5rem}.article-body li{margin-bottom:.5rem}.article-cta{margin-top:64px;padding:40px;background:var(--band);border:1px solid var(--border);border-radius:20px;text-align:center}.article-cta h2{margin:0 0 12px;padding:0;font-size:1.45rem}.article-cta h2::before{display:none}.article-cta p{margin:0 auto 24px;max-width:480px}.calendar-footer{display:flex;max-width:1140px;margin:auto;padding:42px 24px;align-items:center;gap:20px;color:var(--text-muted);font-size:.85rem}.calendar-footer>a:last-child{margin-left:auto;color:var(--text-muted);font-weight:600;text-decoration:none}@media(max-width:640px){.article-wrap{padding:32px 20px 72px}.article-meta{gap:12px;margin-bottom:34px}.meta-divider{display:none}.calendar-footer{align-items:flex-start;flex-direction:column}.calendar-footer>a:last-child{margin-left:0}}

/* ── Calendar-series detail pieces (was calendar-article-details.css) ── */
/* The pieces normally provided inline by the legacy blog article template. */
.breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:20px;color:var(--text-muted);font-family:'DM Mono',monospace;font-size:.72rem}.breadcrumb a{color:var(--text-muted);text-decoration:none}.breadcrumb a:hover{color:var(--accent-ink)}.breadcrumb-sep{color:#c9cec4}.article-tag{display:inline-flex;align-items:center;margin-bottom:16px;padding:4px 12px;border:1px solid rgba(77,124,15,.3);border-radius:999px;color:var(--accent-ink);font-family:'DM Mono',monospace;font-size:.62rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.article-h1{margin:0;font-size:clamp(1.8rem,4.5vw,3.2rem);font-weight:700;letter-spacing:-.03em;line-height:1.15;color:var(--text)}

/* Header must span the viewport. body is display:flex (sticky-footer), which
   makes nav a flex item, and the nav's `margin:...auto` overrides
   align-items:stretch — so it shrank to its contents: 227px wide at x=83 on a
   393px phone, a small pill floating mid-screen. Articles do not load
   motion.css, where the same fix lives for the rest of the site. */
body > nav { width: 100%; }
