/* Cache note: browsers cache this file for 4 hours (pages are never cached). After editing it, bump the ?v= value on every link to it: search the repo for blog.css?v= */
/* ===== Aura Technologies — Blog styles ===== */
*{box-sizing:border-box}
/* Metric-matched fallbacks to eliminate font-swap layout shift (CLS).
   One face PER WEIGHT: size-adjust is a per-face descriptor, and the real
   fonts get progressively wider as weight rises while Arial does not. */
/* Self-hosted webfonts (was fonts.googleapis.com, which blocked the first
   paint behind two third-party handshakes). Files in /fonts, cached
   immutably via _headers. Variable faces carry a weight RANGE. */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:500 800;font-stretch:100%;font-display:swap;src:url(/fonts/bricolage-grotesque-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:500 800;font-stretch:100%;font-display:swap;src:url(/fonts/bricolage-grotesque-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-mono-500-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-mono-600-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-400-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-mono-500-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-mono-600-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url(/fonts/ibm-plex-sans-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url(/fonts/ibm-plex-sans-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage-fallback";font-weight:100 500;src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:102.6%;line-gap-override:0%}
@font-face{font-family:"Bricolage-fallback";font-weight:600;src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:104.0%;line-gap-override:0%}
@font-face{font-family:"Bricolage-fallback";font-weight:700;src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:105.4%;line-gap-override:0%}
@font-face{font-family:"Bricolage-fallback";font-weight:800 900;src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:106.8%;line-gap-override:0%}
@font-face{font-family:"Plex-fallback";font-weight:100 400;src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:101.1%;line-gap-override:0%}
@font-face{font-family:"Plex-fallback";font-weight:450;src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:101.9%;line-gap-override:0%}
@font-face{font-family:"Plex-fallback";font-weight:500;src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:103.0%;line-gap-override:0%}
@font-face{font-family:"Plex-fallback";font-weight:600;src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:104.2%;line-gap-override:0%}
@font-face{font-family:"Plex-fallback";font-weight:700 900;src:local("Arial"),local("Helvetica Neue"),local("Helvetica"),local("Liberation Sans");size-adjust:105.5%;line-gap-override:0%}
:root{
  --bg:#F1F5F1; --surface:#FFFFFF; --surface-2:#E6EDE7;
  --ink:#10291D; --ink-soft:#35513F; --muted:#5F7A67;
  --line:#DCE6DD; --line-strong:#C6D4C8;
  --accent:#9A7B1E; --accent-bright:#CBA433; --accent-ink:#241A03; --teal:#1D7A4C;
  --shadow-sm:0 1px 2px rgba(15,30,32,.06), 0 4px 14px -8px rgba(15,30,32,.18);
  --shadow:0 1px 2px rgba(15,30,32,.05), 0 14px 34px -16px rgba(15,30,32,.2);
  --radius:14px;
  --font-display:"Bricolage Grotesque", "Bricolage-fallback", system-ui, sans-serif;
  --font-body:"IBM Plex Sans", "Plex-fallback", system-ui, sans-serif;
  --font-mono:"IBM Plex Mono", ui-monospace, monospace;
}
:root:not([data-theme="light"]){ @media (prefers-color-scheme: dark){
  --bg:#091810; --surface:#102419; --surface-2:#182F22;
  --ink:#E6F0EA; --ink-soft:#B2CBBB; --muted:#86A491;
  --line:#24402F; --line-strong:#325240;
  --accent:#E6C25E; --accent-bright:#E1BB52; --teal:#52C08A;
  --shadow-sm:0 1px 2px rgba(0,0,0,.3), 0 6px 18px -10px rgba(0,0,0,.5);
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 18px 40px -16px rgba(0,0,0,.6);
}}
:root[data-theme="dark"]{
  --bg:#091810; --surface:#102419; --surface-2:#182F22;
  --ink:#E6F0EA; --ink-soft:#B2CBBB; --muted:#86A491;
  --line:#24402F; --line-strong:#325240;
  --accent:#E6C25E; --accent-bright:#E1BB52; --teal:#52C08A;
  --shadow-sm:0 1px 2px rgba(0,0,0,.3), 0 6px 18px -10px rgba(0,0,0,.5);
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 18px 40px -16px rgba(0,0,0,.6);
}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2.5px solid var(--accent-bright);outline-offset:3px;border-radius:4px}
/* Container matched to --maxw on the marketing site (index.html) so the logo
   and content line up across pages. .narrow MUST stay after this rule --
   both classes sit on the same element, so later wins and articles stay 720. */
.wrap{max-width:1160px;margin:0 auto;padding:0 24px}
.narrow{max-width:720px}

/* ---- Header ---- */
header.bh{position:sticky;top:0;z-index:50;background:linear-gradient(180deg,#0c1c13,#0e2117);border-bottom:1px solid #24402f}
/* Dimensions kept in sync with header.site on the marketing site (index.html) */
.bh-inner{display:flex;align-items:center;gap:28px;height:84px;max-width:1160px;margin:0 auto;padding:0 24px}
.bh-logo{display:flex;align-items:center;margin-right:auto}
.bh-logo img{height:64px;width:auto;display:block}
.bh-nav{display:flex;gap:6px;align-items:center}
.bh-nav a{position:relative;color:#C6DACD;font-size:.9rem;font-weight:500;padding:8px 12px;border-radius:8px;transition:color .15s, background .15s}
.bh-nav a::after{
  content:"";position:absolute;left:12px;right:12px;bottom:4px;height:2px;border-radius:2px;
  background:var(--accent-bright);transform:scaleX(0);transform-origin:center;transition:transform .18s ease;
}
.bh-nav a:hover{color:#fff;background:rgba(230,194,94,.12);text-decoration:none}
.bh-nav a:hover::after{transform:scaleX(1)}
/* No font-weight change on .active: it alters link width on font swap and shifts the whole nav (CLS) */
.bh-nav a.active{color:#fff}
.bh-nav a.active::after{transform:scaleX(1)}

/* Header buttons — same .btn system as the marketing site */
.btn{
  font-family:var(--font-body);
  font-size:.94rem;font-weight:600;
  display:inline-flex;align-items:center;gap:.5em;
  padding:.8em 1.35em;border-radius:10px;
  border:1px solid transparent;cursor:pointer;
  transition:transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:hover{text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--accent-bright);color:var(--accent-ink);box-shadow:var(--shadow-sm)}
.btn-primary:hover{background:var(--accent);color:var(--accent-ink)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line-strong)}
.btn-ghost:hover{border-color:var(--ink-soft);background:var(--surface)}
.bh-tools{display:flex;align-items:center;gap:14px}
.bh-inner .btn{padding:.6em 1.05em}
header.bh .btn-ghost{color:#EAF2F0;border-color:rgba(255,255,255,.28)}
header.bh .btn-ghost:hover{color:#fff;border-color:rgba(255,255,255,.6);background:rgba(255,255,255,.07)}
/* The desktop header needs ~994px of content width. The hamburger used to
   take over only at 900px, so between 901 and ~1014px the nav had nowhere
   to go and pushed the page sideways (117px of horizontal scroll at
   901px). The switch now happens at 1024px, before it breaks.
   NOTE: the matchMedia query in blog.js must match this. */
@media (max-width:1024px){ .bh-nav{display:none} }
/* Just above the switch there is little room to spare, so tighten the
   spacing until the viewport is wide enough not to need it. */
@media (min-width:1025px) and (max-width:1180px){
  .bh-inner{gap:18px}
  .bh-nav a{padding:8px 9px}
  .bh-nav a::after{left:9px;right:9px}
  .bh-tools{gap:10px}
}
@media (max-width:600px){ .bh-logo img{height:42px} .bh-inner{gap:12px} .bh-tools{gap:8px} .bh-inner .btn{padding:.5em .8em;font-size:.84rem} }
@media (max-width:430px){ .bh-logo img{height:34px} .bh-inner{gap:10px} .bh-tools{gap:6px} .bh-inner .btn{padding:.44em .62em;font-size:.78rem} }

/* ---- Blog index ---- */
.blog-hero{padding:clamp(40px,6vw,72px) 0 clamp(20px,3vw,32px)}
.eyebrow{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);display:flex;align-items:center;gap:.7em;margin:0}
.eyebrow::before{content:"";width:22px;height:1px;background:var(--accent)}
.blog-hero h1{font-family:var(--font-display);font-weight:800;letter-spacing:-.02em;font-size:clamp(2rem,4.5vw,3rem);margin:16px 0 10px;line-height:1.04;text-wrap:balance}
.blog-hero p{color:var(--ink-soft);font-size:1.08rem;max-width:56ch;margin:0}

.post-list{display:grid;gap:18px;padding-bottom:80px}
.post-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 28px;box-shadow:var(--shadow-sm);transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--accent);text-decoration:none}
.cat{display:inline-block;font-family:var(--font-body);font-size:.7rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;
  color:var(--accent);background:color-mix(in srgb,var(--accent-bright) 15%,transparent);padding:.35em .8em;border-radius:100px}
.post-card h2{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;font-size:1.4rem;line-height:1.2;color:var(--ink);margin:14px 0 8px;text-wrap:balance}
.post-card .excerpt{color:var(--ink-soft);font-size:.98rem;margin:0 0 14px;max-width:64ch}
.post-card .meta{font-family:var(--font-body);font-size:.82rem;color:var(--muted);display:flex;gap:10px;align-items:center}
.post-card .more{color:var(--accent);font-weight:600;font-size:.9rem}
@media (min-width:760px){ .post-list{grid-template-columns:1fr 1fr} }

/* ---- Article ---- */
.article{padding:clamp(32px,5vw,56px) 0 40px}
.art-head{margin-bottom:34px}
.art-head h1{font-family:var(--font-display);font-weight:800;letter-spacing:-.02em;font-size:clamp(2rem,4.4vw,2.9rem);line-height:1.06;margin:16px 0 14px;text-wrap:balance}
.art-meta{font-family:var(--font-body);font-size:.86rem;color:var(--muted);display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.art-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--muted)}
.lede{font-size:1.18rem;line-height:1.6;color:var(--ink-soft);margin:0 0 8px}

.article-body{font-size:1.05rem;color:var(--ink)}
.article-body>*{max-width:68ch}
.article-body h2{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;font-size:1.55rem;line-height:1.2;margin:42px 0 12px;color:var(--ink);text-wrap:balance}
.article-body h3{font-family:var(--font-display);font-weight:600;font-size:1.18rem;margin:28px 0 8px;color:var(--ink)}
.article-body p{margin:0 0 18px;color:var(--ink-soft)}
.article-body strong{color:var(--ink);font-weight:600}
.article-body ul,.article-body ol{margin:0 0 20px;padding-left:24px;color:var(--ink-soft)}
.article-body li{margin:8px 0}
.article-body li::marker{color:var(--accent)}
.article-body blockquote{margin:26px 0;padding:16px 22px;border-left:3px solid var(--accent);background:var(--surface-2);border-radius:0 10px 10px 0;
  font-family:var(--font-display);font-weight:500;font-size:1.15rem;line-height:1.4;color:var(--ink)}
.stat-row{display:grid;gap:14px;margin:26px 0;max-width:68ch}
@media (min-width:560px){ .stat-row{grid-template-columns:1fr 1fr} }
.stat{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 20px;box-shadow:var(--shadow-sm)}
.stat .n{font-family:var(--font-display);font-weight:800;font-size:1.7rem;color:var(--accent);letter-spacing:-.02em;line-height:1}
.stat .l{color:var(--ink-soft);font-size:.9rem;margin-top:6px}

/* End-of-post CTA */
.art-cta{margin:48px 0 0;padding:30px 30px;border-radius:16px;background:linear-gradient(150deg,#10291D,#123526);color:#E6F0EA;max-width:68ch}
.art-cta h3{font-family:var(--font-display);font-weight:700;font-size:1.35rem;margin:0 0 8px;color:#fff}
.art-cta p{color:#C2D6C8;margin:0 0 18px;font-size:.98rem}
.art-cta .btns{display:flex;gap:12px;flex-wrap:wrap}
.art-cta .btn{font-size:.9rem;font-weight:600;padding:.7em 1.2em;border-radius:10px;white-space:nowrap}
.art-cta .btn-primary{background:var(--accent-bright);color:#241A03}
.art-cta .btn-primary:hover{background:#e6c94f;text-decoration:none}
.art-cta .btn-ghost{border:1px solid rgba(255,255,255,.28);color:#EAF2F0}
.art-cta .btn-ghost:hover{border-color:rgba(255,255,255,.6);background:rgba(255,255,255,.07);text-decoration:none}

/* Related reading */
.related{margin:52px 0 0;padding-top:32px;border-top:1px solid var(--line);max-width:68ch}
.related h2{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;font-size:1.3rem;margin:0 0 16px}
.related-list{display:grid;gap:12px}
@media (min-width:560px){ .related-list{grid-template-columns:1fr 1fr} }
.related-list a{display:block;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 18px;box-shadow:var(--shadow-sm);transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease}
.related-list a:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:var(--shadow);text-decoration:none}
.related-list .cat{margin-bottom:9px}
.related-list .rt{display:block;font-family:var(--font-display);font-weight:600;font-size:1.02rem;line-height:1.25;color:var(--ink);letter-spacing:-.01em}

.backlink{display:inline-flex;align-items:center;gap:7px;font-family:var(--font-body);font-size:.82rem;color:var(--muted);margin-bottom:6px}
.backlink:hover{color:var(--accent);text-decoration:none}

/* ---- Footer ---- */
footer.bf{border-top:1px solid var(--line);background:var(--surface);padding:30px 0;margin-top:20px}
footer.bf .wrap{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;align-items:center;font-size:.86rem;color:var(--muted);font-family:var(--font-body)}
footer.bf a{color:var(--muted)}
footer.bf .li{display:inline-flex;align-items:center;vertical-align:-3px;margin-left:4px;transition:color .15s}
footer.bf .li:hover{color:var(--teal)}
footer.bf .li svg{width:16px;height:16px;display:block}
footer.bf .community{flex-basis:100%;order:-1;padding-bottom:14px;border-bottom:1px solid var(--line)}
footer.bf .community a{color:var(--ink-soft);text-decoration:underline;text-underline-offset:2px}
footer.bf .community a:hover{color:var(--teal)}

/* ---- diagrams: inline SVG figures in posts (theme via tokens, no fixed colours) ---- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* ---------- Readiness checklist ---------- */
.checklist{list-style:none;margin:26px 0 30px;padding:0;counter-reset:ck}
.ck-item{
  position:relative;display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:16px 18px;margin:0 0 10px;box-shadow:var(--shadow-sm);
  transition:border-color .16s ease, background .16s ease;
}
.ck-item:last-child{margin-bottom:0}
.ck-input{position:absolute;opacity:0;width:1px;height:1px}
.ck-mark{
  display:grid;place-items:center;width:26px;height:26px;margin-top:2px;cursor:pointer;
  border:2px solid var(--line-strong);border-radius:7px;background:var(--bg);
  transition:border-color .14s ease, background .14s ease;
}
.ck-mark::after{
  content:"";width:12px;height:7px;margin-top:-3px;
  border-left:2.5px solid var(--accent-ink);border-bottom:2.5px solid var(--accent-ink);
  transform:rotate(-45deg) scale(.4);opacity:0;transition:opacity .14s ease, transform .14s ease;
}
.ck-mark:hover{border-color:var(--accent)}
.ck-input:focus-visible + .ck-mark{outline:2.5px solid var(--accent-bright);outline-offset:3px}
.ck-input:checked + .ck-mark{background:var(--accent-bright);border-color:var(--accent-bright)}
.ck-input:checked + .ck-mark::after{opacity:1;transform:rotate(-45deg) scale(1)}
.ck-body{min-width:0}
.ck-body h3{margin:0 0 6px;font-size:1.02rem;line-height:1.35;transition:color .16s ease}
.ck-body h3 .ck-n{font-family:var(--font-mono);font-size:.8rem;font-weight:600;letter-spacing:.05em;color:var(--accent);margin-right:.6em}
.ck-body p{margin:0;color:var(--ink-soft);font-size:.95rem}
.ck-input:checked ~ .ck-body h3{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}
.ck-input:checked ~ .ck-body p{color:var(--muted)}
.checklist-note{margin:0 0 26px;color:var(--muted);font-size:.86rem}
@media (max-width:560px){ .ck-item{padding:14px;gap:11px} .ck-body h3{font-size:.98rem} }
@media (prefers-reduced-motion: reduce){ .ck-mark,.ck-mark::after,.ck-item,.ck-body h3,.ck-body p{transition:none} }
/* ---------- Article tables ---------- */
.tbl-wrap{margin:26px 0 10px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.article-body table{width:100%;border-collapse:collapse;min-width:520px;background:var(--surface);
  border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:.94rem}
.article-body thead th{text-align:left;background:var(--surface-2);color:var(--ink);font-weight:600;
  font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;padding:11px 14px;border-bottom:1px solid var(--line)}
.article-body tbody th{text-align:left;font-weight:600;color:var(--ink);white-space:nowrap}
.article-body tbody td{color:var(--ink-soft)}
.article-body tbody th,.article-body tbody td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.45}
.article-body tbody tr:last-child th,.article-body tbody tr:last-child td{border-bottom:0}
.article-body tbody tr:hover{background:var(--surface-2)}
.tbl-note{margin:0 0 24px;color:var(--muted);font-size:.86rem;line-height:1.5}
@media (max-width:560px){
  .article-body table{min-width:0;border-radius:12px}
  .article-body thead{display:none}
  .article-body tbody,.article-body tbody tr,.article-body tbody th,.article-body tbody td{display:block;width:100%}
  .article-body tbody tr{padding:12px 2px 14px;border-bottom:1px solid var(--line)}
  .article-body tbody tr:last-child{border-bottom:0}
  .article-body tbody th{white-space:normal;padding:0 14px 6px}
  .article-body tbody td{border-bottom:0;padding:0 14px 8px}
  .article-body tbody td::before{content:attr(data-label);display:block;font-family:var(--font-mono);
    font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
}

.diagram{margin:30px 0 28px}
.diagram .dg-frame{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 14px 12px;overflow-x:auto;box-shadow:var(--shadow-sm)}
.diagram svg{display:block;width:100%;height:auto;min-width:460px}
.diagram figcaption{font-size:.88rem;line-height:1.55;color:var(--muted);margin:10px 2px 0}
.diagram figcaption strong{color:var(--ink-soft);font-weight:600}
.dg-t{fill:var(--ink);font-family:var(--font-body);font-size:13px}
.dg-t.b{font-weight:600}
.dg-t.h{font-family:var(--font-display);font-weight:700;font-size:14px}
.dg-m{fill:var(--muted);font-family:var(--font-body);font-size:11.5px}
.dg-box{fill:var(--surface-2);stroke:var(--line-strong);stroke-width:1}
.dg-ghost{fill:none;stroke:var(--line-strong);stroke-width:1.2;stroke-dasharray:4 3}
.dg-hl{fill:var(--accent);fill-opacity:.16;stroke:var(--accent);stroke-width:1.5}
.dg-ok{fill:var(--teal);fill-opacity:.14;stroke:var(--teal);stroke-width:1.5}
.dg-ln{fill:none;stroke:var(--muted);stroke-width:1.4}
.dg-ln.hl{stroke:var(--accent);stroke-width:2}
.dg-ln.ok{stroke:var(--teal);stroke-width:1.8}
.dg-ah{fill:var(--muted)}
.dg-ah.hl{fill:var(--accent)}
.dg-ah.ok{fill:var(--teal)}
.dg-cell{fill:var(--surface-2);stroke:var(--line);stroke-width:1}
.dg-cell.on{fill:var(--accent);stroke:var(--accent)}
.dg-rule{stroke:var(--line-strong);stroke-width:1}

/* ---- Mobile menu: header nav collapses into a dropdown at 1024px and below ---- */
.menu-btn{display:none}
.bh-nav .nav-portal{display:none}
@media (max-width:1024px){
  .bh-inner{position:relative}
  .menu-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:none;padding:0;
    border-radius:10px;border:1px solid rgba(255,255,255,.28);background:transparent;color:#EAF2F0;cursor:pointer}
  .menu-btn:hover{border-color:rgba(255,255,255,.6);background:rgba(255,255,255,.07)}
  .menu-btn:focus-visible{outline:2px solid var(--accent-bright);outline-offset:2px}
  .menu-icon,.menu-icon::before,.menu-icon::after{display:block;width:18px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s ease,background-color .2s ease}
  .menu-icon{position:relative}
  .menu-icon::before,.menu-icon::after{content:"";position:absolute;left:0}
  .menu-icon::before{top:-6px}
  .menu-icon::after{top:6px}
  header.menu-open .menu-icon{background-color:transparent}
  header.menu-open .menu-icon::before{transform:translateY(6px) rotate(45deg)}
  header.menu-open .menu-icon::after{transform:translateY(-6px) rotate(-45deg)}
  header.bh.menu-open .bh-nav{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:2px;
    padding:10px 16px 18px;background:#0e2117;border-bottom:1px solid #24402f;box-shadow:0 18px 30px -18px rgba(0,0,0,.6)}
  header.bh.menu-open .bh-nav a{padding:13px 12px;font-size:1rem}
  header.bh.menu-open .bh-nav a::after{display:none}
}
@media (max-width:600px){
  .bh-tools .btn-ghost{display:none}
  header.bh.menu-open .bh-nav .nav-portal{display:block;margin-top:6px;padding-top:16px;border-top:1px solid #24402f;border-radius:0}
}
@media (prefers-reduced-motion:reduce){ .menu-icon,.menu-icon::before,.menu-icon::after{transition:none} }
