/* OctoProbe AI — blog styles (aligned with landing tokens) */

:root{
  --ink:#f7fbff;
  --ink-2:#ecf6fe;
  --panel:#ffffff;
  --panel-2:#f1f8fe;
  --line:rgba(15,23,42,.09);
  --line-2:rgba(15,23,42,.15);
  --blue:#0288d1;
  --blue-deep:#0369a1;
  --indigo:#6366f1;
  --indigo-deep:#4f46e5;
  --teal:#0d9488;
  --amber:#d97706;
  --red:#e11d48;
  --text:#33404f;
  --soft:#5b6675;
  --soft-2:#78828f;
  --heading:#0f1b2d;
  --on-accent:#ffffff;
  --fd:'Space Grotesk',system-ui,sans-serif;
  --fb:'Inter',sans-serif;
  --fm:'JetBrains Mono',monospace;
  --prose-width:42.5em;
  /* type scale — headings clearly heavier/larger than body */
  --fs-body:1.0625rem;
  --fs-h1:clamp(2.15rem,4.4vw,3.15rem);
  --fs-h2:clamp(1.45rem,2.6vw,1.75rem);
  --fs-h3:clamp(1.15rem,1.8vw,1.28rem);
  --fw-body:400;
  --fw-h:700;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--fb);font-size:var(--fs-body);font-weight:var(--fw-body);color:var(--text);background:var(--ink);overflow-x:hidden;line-height:1.65}
img{max-width:100%;display:block}
::selection{background:var(--blue);color:var(--on-accent)}
a:focus-visible,button:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:12px}
nav.top a:focus-visible,nav.top button:focus-visible,.mobile-menu a:focus-visible{
  outline:2px solid var(--blue-deep);outline-offset:3px;border-radius:12px;
  box-shadow:0 0 0 4px rgba(2,136,209,.28);
}
.skip{position:absolute;left:-9999px;top:0;z-index:300;background:var(--blue);color:var(--on-accent);padding:10px 18px;border-radius:0 0 10px 0;font-weight:600;font-size:.9rem;text-decoration:none}
.skip:focus{left:0}
.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}
.wrap{max-width:1200px;margin:0 auto;padding:0 30px}
.eyebrow{font-family:var(--fm);font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;color:var(--blue);display:inline-flex;align-items:center;gap:10px;margin-bottom:18px;font-weight:500}
.eyebrow::before{content:"";width:24px;height:1px;background:var(--blue);display:inline-block;flex:none}
/* Post crumb: back-link + Findings on one clean row */
.post-crumb{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;
  margin:0 0 22px;min-height:28px;
}
.post-crumb .back-link{
  margin:0;display:inline-flex;align-items:center;gap:8px;
  font-family:var(--fm);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--blue);text-decoration:none;font-weight:500;line-height:1.2;height:auto;
}
.post-crumb .back-link:hover{color:var(--blue-deep)}
.post-crumb .crumb-sep{
  color:var(--soft-2);opacity:.55;font-size:.85rem;line-height:1;user-select:none;
}
.post-crumb .eyebrow{
  margin:0;gap:0;line-height:1.2;
}
.post-crumb .eyebrow::before{display:none;content:none;width:0}
h2.sec{font-family:var(--fd);font-size:clamp(1.85rem,3.6vw,2.7rem);line-height:1.1;letter-spacing:-.03em;font-weight:700;color:var(--heading)}
p.sub{margin-top:14px;color:var(--soft);font-size:1.05rem;font-weight:400;max-width:44em;line-height:1.7}

/* ── NAV (matches landing) ── */
nav.top{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;align-items:center;justify-content:space-between;
  padding:0 32px;height:72px;background:rgba(247,251,255,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);transition:background .3s}
nav.top .nav-center,
nav.top .nav-right{display:flex;align-items:center;height:100%}
nav.top.scrolled{border-bottom-color:var(--line);background:rgba(247,251,255,.92)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--heading);min-width:0}
.brand svg.logo{width:40px;height:40px;flex:none}
.brand .bn{font-family:var(--fd);font-weight:600;font-size:1.2rem;letter-spacing:-.03em;line-height:1;display:inline-flex;align-items:baseline;gap:.34em;white-space:nowrap;color:var(--heading)}
.brand .bn small{display:inline;font-family:var(--fd);font-weight:500;font-size:.92em;letter-spacing:-.02em;color:var(--blue-deep);margin:0;text-transform:none}
.nav-center{display:flex;gap:2px;align-items:center}
.nav-center a{
  text-decoration:none;color:var(--text);font-size:.9rem;font-weight:500;letter-spacing:-.011em;transition:color .2s,background .2s;
  display:inline-flex;align-items:center;height:40px;line-height:1;padding:0 12px;position:relative;border-radius:12px;
}
.nav-center a:hover{color:var(--heading);background:rgba(2,136,209,.06)}
.nav-center a.active{color:var(--heading);font-weight:600}
.nav-center a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:6px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--indigo),var(--blue),var(--teal));
}
.nav-right{display:flex;align-items:center;gap:10px}
.nav-login{
  text-decoration:none;color:var(--text);font-size:.86rem;font-weight:500;
  display:inline-flex;align-items:center;justify-content:center;
  height:40px;padding:0 16px;line-height:1;
  border:1.5px solid var(--line-2);border-radius:8px;transition:border-color .2s,color .2s;box-sizing:border-box;
}
.nav-login:hover{border-color:var(--blue);color:var(--blue)}
.nav-cta{
  background:var(--blue);color:var(--on-accent);
  display:inline-flex;align-items:center;justify-content:center;
  height:40px;padding:0 18px;line-height:1;
  border-radius:12px;font-size:.86rem;font-weight:600;text-decoration:none;
  transition:background .2s,transform .2s;box-sizing:border-box;
}
.nav-cta:hover{background:var(--blue-deep);transform:translateY(-1px)}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:8px;margin-left:4px}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--heading);margin:5px 0;border-radius:2px;transition:transform .25s,opacity .25s}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{display:none;position:fixed;top:72px;left:0;right:0;z-index:99;background:rgba(247,251,255,.98);
  backdrop-filter:blur(16px);border-bottom:1px solid var(--line);flex-direction:column;padding:8px 20px 18px;box-shadow:0 16px 32px rgba(15,27,45,.06)}
.mobile-menu.open{display:flex}
.mobile-menu a{text-decoration:none;color:var(--heading);font-size:1rem;font-weight:500;padding:13px 0;border-bottom:1px solid var(--line)}
.mobile-menu a.active{color:var(--blue);font-weight:700}
.mobile-menu a:last-child{border-bottom:0;color:var(--blue);font-weight:700}
@media(max-width:960px){
  .nav-center{display:none}
  .nav-toggle{display:block}
}

/* ── BUTTONS ── */
.btn{font-family:var(--fb);font-weight:600;font-size:.92rem;padding:12px 22px;border-radius:9px;text-decoration:none;border:0;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s,border-color .2s,color .2s;display:inline-block;text-align:center}
.btn-blue{background:var(--blue);color:var(--on-accent);box-shadow:0 8px 24px rgba(2,132,199,.24)}
.btn-blue:hover{transform:translateY(-2px);background:var(--blue-deep);box-shadow:0 14px 32px rgba(2,132,199,.28)}
.btn-ghost{border:1.5px solid var(--line-2);color:var(--text);background:transparent}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue);transform:translateY(-2px)}

/* ── FOOTER ── */
footer{background:rgba(255,255,255,.96);border-top:1px solid var(--line);padding:44px 0 36px;font-size:.82rem;color:var(--soft);position:relative;z-index:1}
footer .wrap{display:grid;gap:20px}
footer .frow{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;align-items:center}
footer .fbrand{display:flex;align-items:center;gap:12px;color:var(--heading);font-family:var(--fd);font-weight:700;font-size:1.1rem;text-decoration:none}
footer .fbrand svg{width:36px;height:36px}
footer nav.fnav{position:static;background:none;border:0;padding:0;display:flex;gap:20px;backdrop-filter:none;flex-wrap:wrap}
footer nav.fnav a{color:var(--soft);text-decoration:none;transition:color .2s}
footer nav.fnav a:hover{color:var(--heading)}
footer .legal{border-top:1px solid var(--line);padding-top:18px;line-height:1.72;font-size:.73rem;color:var(--soft-2)}
footer .legal p+p{margin-top:9px}
footer .legal strong{color:var(--soft)}

/* ── BLOG HERO / LISTING ── */
.blog-hero{
  position:relative;
  padding:128px 0 56px;
  background:
    radial-gradient(900px 520px at 78% 18%,rgba(99,102,241,.12),transparent 60%),
    radial-gradient(700px 440px at 12% 80%,rgba(2,136,209,.10),transparent 55%),
    radial-gradient(500px 360px at 92% 70%,rgba(13,148,136,.08),transparent 60%),
    var(--ink);
  border-bottom:1px solid var(--line);
}
.blog-hero .wrap{max-width:820px}
.blog-hero .eyebrow{margin-bottom:16px}
.blog-hero h1{
  font-family:var(--fd);
  font-size:var(--fs-h1);
  line-height:1.1;
  letter-spacing:-.03em;
  font-weight:700;
  color:var(--heading);
  max-width:14em;
  text-wrap:pretty;
  text-wrap:balance;
}
.blog-hero h1 em{font-style:normal;background:linear-gradient(90deg,var(--indigo),var(--blue),var(--teal));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.blog-hero .lead{
  margin-top:22px;
  font-family:var(--fb);
  font-size:1.08rem;
  font-weight:400;
  color:var(--soft);
  max-width:40em;
  line-height:1.72;
}

.blog-list{padding:56px 0 40px;background:var(--ink)}
.blog-list .wrap{max-width:820px}
.post-grid{display:grid;grid-template-columns:1fr;gap:28px}
.post-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;color:inherit;
  background:linear-gradient(175deg,var(--panel),var(--ink-2));
  border:1px solid var(--line-2);border-radius:18px;overflow:hidden;
  box-shadow:0 20px 50px rgba(15,23,42,.07);
  transition:transform .2s,border-color .2s,box-shadow .2s;
}
.post-card:hover{transform:translateY(-3px);border-color:rgba(2,132,199,.32);box-shadow:0 26px 58px rgba(15,23,42,.12)}
.post-card .thumb{
  display:block;
  box-sizing:border-box;
  width:100%;
  aspect-ratio:16/9;
  padding-left:22px;            /* give the cover's left edge (logo/title) breathing room */
  background:#0a1226;           /* matches the cover template's navy edge */
  overflow:hidden;
}
.post-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:left center;  /* never crop the logo/title side */
  display:block;
}
@media(max-width:520px){.post-card .thumb{padding-left:14px}}
.post-card .card-body{
  padding:28px 30px 30px;
  display:flex;
  flex-direction:column;
  gap:0;
}
.post-card .meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 14px;
  margin:0 0 14px;
}
.post-card time,.post-meta time{
  font-family:var(--fm);
  font-size:.68rem;
  letter-spacing:.08em;
  color:var(--soft-2);
  text-transform:uppercase;
  font-weight:500;
  line-height:1.4;
}
.post-card h2{
  font-family:var(--fd);
  font-size:clamp(1.35rem,2.6vw,1.65rem);
  font-weight:700;
  letter-spacing:-.025em;
  color:var(--heading);
  line-height:1.25;
  margin:0;
  text-wrap:pretty;
  text-wrap:balance;
}
.post-card .excerpt{
  margin:14px 0 0;
  font-family:var(--fb);
  font-size:1rem;
  font-weight:400;
  color:var(--soft);
  line-height:1.7;
}
.post-card .read-more{
  margin-top:22px;
  display:inline-block;
  font-family:var(--fm);
  font-size:.68rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--blue);
  font-weight:500;
}

.tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tag{
  font-family:var(--fm);font-size:.58rem;letter-spacing:.12em;text-transform:uppercase;font-weight:500;
  color:var(--indigo);background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.22);
  padding:5px 10px;border-radius:999px;line-height:1.2;
}
.tag.blue{color:var(--blue);background:rgba(2,136,209,.08);border-color:rgba(2,136,209,.25)}
.tag.teal{color:var(--teal);background:rgba(13,148,136,.08);border-color:rgba(13,148,136,.25)}

/* ── LISTING FAQ ── */
.blog-faq{
  padding:48px 0 100px;background:var(--ink);
  border-top:1px solid var(--line);
}
.blog-faq .wrap{max-width:820px}
.blog-faq .eyebrow{margin-bottom:14px}
.blog-faq h2.sec{
  font-family:var(--fd);
  font-size:var(--fs-h2);
  font-weight:700;
  letter-spacing:-.025em;
  color:var(--heading);
  line-height:1.2;
  margin:0 0 12px;
  text-wrap:pretty;
  text-wrap:balance;
}
.blog-faq .faq-intro{margin:0 0 28px;color:var(--soft);font-size:1.02rem;font-weight:400;max-width:40em;line-height:1.7}
.faq-list{display:grid;gap:10px}
.faq-list details{
  background:linear-gradient(175deg,var(--panel),var(--ink-2));
  border:1px solid var(--line-2);border-radius:14px;
  padding:0 20px;box-shadow:0 10px 28px rgba(15,23,42,.04);
}
.faq-list summary{
  font-family:var(--fd);
  font-size:1.08rem;
  font-weight:650;
  letter-spacing:-.015em;
  color:var(--heading);
  cursor:pointer;
  list-style:none;
  padding:18px 0;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  text-wrap:pretty;
  text-wrap:balance;
}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{
  content:"+";font-family:var(--fm);font-size:1.1rem;color:var(--blue);font-weight:500;flex:none;
}
.faq-list details[open] summary::after{content:"–"}
.faq-list .fa{
  padding:0 0 18px;
  color:var(--soft);
  font-family:var(--fb);
  font-size:.98rem;
  font-weight:400;
  line-height:1.7;
  border-top:1px solid var(--line);
  padding-top:14px;
}

/* ── POST PAGE ── */
.post-hero{
  padding:132px 0 48px;
  background:
    radial-gradient(800px 420px at 85% 10%,rgba(99,102,241,.10),transparent 58%),
    radial-gradient(600px 380px at 8% 90%,rgba(2,136,209,.08),transparent 55%),
    var(--ink);
  border-bottom:1px solid var(--line);
}
.post-hero .wrap{max-width:820px}
.post-hero h1{
  font-family:var(--fd);
  font-size:clamp(1.95rem,4vw,2.75rem);
  line-height:1.12;
  letter-spacing:-.03em;
  font-weight:700;
  color:var(--heading);
  max-width:18em;
  text-wrap:pretty;
  text-wrap:balance;
}
.post-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;
  margin-top:22px;padding-top:4px;
}
.post-meta .sep{width:4px;height:4px;border-radius:50%;background:var(--soft-2);opacity:.7}
.post-meta .tags{margin:0}

.post-featured{
  margin:32px 0 8px;
  border-radius:16px;overflow:hidden;
  border:1px solid var(--line-2);
  box-shadow:0 24px 56px rgba(15,23,42,.1);
  background:var(--panel);
}
.post-featured img{width:100%;height:auto}

.post-body{padding:56px 0 88px;background:var(--ink)}
.post-body .wrap{max-width:820px}

.prose{
  max-width:var(--prose-width);
  font-family:var(--fb);
  font-size:var(--fs-body);
  font-weight:var(--fw-body);
  line-height:1.8;
  color:var(--text);
}
.prose > * + *{margin-top:1em}
.prose h2{
  font-family:var(--fd);
  font-size:var(--fs-h2);
  font-weight:700;
  letter-spacing:-.025em;
  color:var(--heading);
  margin-top:3.1em;
  margin-bottom:0;
  line-height:1.22;
  text-wrap:pretty;
  text-wrap:balance;
}
.prose h3{
  font-family:var(--fd);
  font-size:var(--fs-h3);
  font-weight:650;
  letter-spacing:-.02em;
  color:var(--heading);
  margin-top:2.3em;
  margin-bottom:0;
  line-height:1.3;
  text-wrap:pretty;
  text-wrap:balance;
}
.prose p{margin:0;font-weight:400;text-wrap:pretty}
.prose .faq h3 + p{margin-top:10px}
/* paragraph rhythm: was 0 (".prose p{margin:0}" beat the sibling rule), now a tight, even gap */
.prose > * + p{margin-top:.85em}
/* first element after a heading sits close to it; heading owns the space above */
.prose h2 + *,.prose h3 + *{margin-top:.65em}
.prose > :first-child{margin-top:0}
/* images & figures: generous vertical breathing room by default */
.prose img{height:auto;border-radius:12px}
.prose > p:has(> img:only-child),
.prose > figure{margin:2.25em 0}
.prose > p:has(> img:only-child) + *,
.prose > figure + *{margin-top:0}
.prose h2 + p:has(> img:only-child),.prose h2 + figure,
.prose h3 + p:has(> img:only-child),.prose h3 + figure{margin-top:1.25em}
/* The line above a table was 28–37px: a sibling margin plus the table's own
   top margin, or a figure's bottom margin. Hold that gap at 10px site-wide.
   Post-level styles such as `.prose .tbl{margin:1.2rem 0}` sit later in the
   page, so these selectors are one class deeper. */
.prose *:has(+ .table-wrap),
.prose *:has(+ .tbl),
.prose *:has(+ table){margin-bottom:0}
.post-body .prose .table-wrap,
.post-body .prose .tbl,
.post-body .prose table{margin-top:10px}
.post-body .prose .table-wrap > table,
.post-body .prose .tbl > table{margin-top:0}
/* lead cover image (first block in the post): extra room before the summary */
.prose > p:first-child:has(> img:only-child),
.prose > figure:first-child{margin-top:0;margin-bottom:2.75em}
.prose figcaption:not(.sr-only),.prose .caption,.prose .em-caption,figcaption,.caption,.em-caption{margin-top:calc(.7em + 10px);text-align:center;font-style:italic;font-size:9pt;color:var(--soft-2);line-height:1.5}

/* Top byline base style (was only inline per post; identical values, so no change where inlined) */
.post-hero .byline{margin:1rem 0 0;font-weight:600;color:#334155;font-size:.98rem}
.post-hero .byline a{color:inherit;text-decoration:underline;text-decoration-color:rgba(51,65,85,.35);text-underline-offset:3px}
.post-hero .byline a:hover{color:var(--blue)}
/* Author headshot in the top byline (bylined authors only):
   <p class="byline has-avatar"><picture>…<img class="author-avatar"></picture><span>By <a>Name</a></span></p>
   Higher specificity than the per-post inline .post-hero .byline rule. */
.post-hero .byline.has-avatar{display:flex;align-items:center;gap:11px;margin:1.4rem 0 .4rem;line-height:1.3}
.post-hero .byline.has-avatar picture{display:block;flex:none;line-height:0}
.post-hero .byline .author-avatar{display:block;width:42px;height:42px;border-radius:50%;object-fit:cover;background:var(--panel-2);box-shadow:0 0 0 1px var(--line-2)}
@media(max-width:520px){
  .post-hero .byline.has-avatar{gap:10px;margin:1.2rem 0 .3rem}
  .post-hero .byline .author-avatar{width:36px;height:36px}
}

/* Share bar — directly under the top byline on every post (generated by scripts/build-blog.py;
   behaviour in /assets/js/blog-share.js). Monochrome icons, brand accent on hover/focus,
   40px tap targets, one compact row so the lede stays high. */
.post-hero .share-bar[hidden],.share-bar [hidden]{display:none}
.post-hero .share-bar{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:.5rem 0 0}
.post-hero .byline:not(.has-avatar) + .share-bar{margin-top:.6rem}
.share-bar .share-label{font:600 .72rem/1 var(--fm);letter-spacing:.08em;text-transform:uppercase;color:var(--soft-2)}
.share-bar .share-list{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:0;padding:0}
.share-bar .share-list li{list-style:none;margin:0;padding:0}
.share-bar .share-link,.share-bar .share-native{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:transparent;color:var(--soft);cursor:pointer;text-decoration:none;transition:color .15s ease,border-color .15s ease,background-color .15s ease}
.share-bar .share-link{width:40px;padding:0}
.share-bar svg{width:18px;height:18px;flex:none;fill:currentColor}
.share-bar svg.share-ico-line{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.share-bar .share-link:hover,.share-bar .share-link:focus-visible,
.share-bar .share-native:hover,.share-bar .share-native:focus-visible{color:var(--blue);border-color:rgba(2,136,209,.35);background:rgba(2,136,209,.06)}
.share-bar .share-link:focus-visible,.share-bar .share-native:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.share-bar .share-copy svg + svg{display:none}
.share-bar .share-copy.is-copied{color:var(--teal);border-color:rgba(13,148,136,.35)}
.share-bar .share-copy.is-copied svg{display:none}
.share-bar .share-copy.is-copied svg + svg{display:block}
.share-bar .share-status{font:600 .8rem/1 var(--fb);color:var(--teal)}
.share-bar .share-status:empty{display:none}
/* Mobile: a single Share button (navigator.share); the icon row is the fallback when the
   browser has no Web Share API or the share sheet fails. */
.share-bar .share-native{display:none;gap:8px;padding:0 14px;border-color:var(--line-2);background:var(--panel);color:var(--heading);font:600 .9rem/1 var(--fb)}
@media(max-width:720px){
  .share-bar.has-native .share-native{display:inline-flex}
  .share-bar.has-native .share-label,.share-bar.has-native:not(.show-all) .share-list{display:none}
}
@media(max-width:520px){.post-hero .share-bar{margin-top:.4rem}.share-bar .share-label{display:none}}
@media(prefers-reduced-motion:reduce){.share-bar .share-link,.share-bar .share-native{transition:none}}

/* Author bio note — op-eds and bylined posts. Place <p class="author-note">…</p>
   immediately before Related Reading; set Person JSON-LD description to the same text. */
.prose .author-note{
  margin:1.25rem 0;
  padding-top:1.25rem;
  border-top:1px solid var(--line);
  font-style:italic;
  font-size:1rem; /* just under --fs-body (1.0625rem); secondary but readable */
  font-weight:400;
  color:var(--soft-2);
  line-height:1.65;
}
.prose .author-note a{
  color:inherit;
  text-decoration:underline;
  text-decoration-color:rgba(51,65,85,.35);
  text-underline-offset:3px;
}
.prose .author-note a:hover{color:var(--blue)}
/* Author profile links row inside the bio note: <span class="author-links"><a>…</a></span> */
.prose .author-note .author-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:.75rem;font-style:normal;line-height:1.2}
.prose .author-note .author-links a{
  font-family:var(--fm);font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;font-weight:500;
  color:var(--soft);background:var(--panel-2);border:1px solid var(--line-2);
  padding:6px 11px;border-radius:999px;text-decoration:none;white-space:nowrap;
}
.prose .author-note .author-links a:hover,
.prose .author-note .author-links a:focus-visible{color:var(--blue);border-color:rgba(2,136,209,.35);background:rgba(2,136,209,.06)}
/* Bio box headshot (bylined authors with an image): the same /assets/authors/ crop as the top
   byline, larger, left of the text. Markup (scripts/authors.py author_note_html):
   <p class="author-note has-avatar"><picture class="author-note-avatar">…<img class="author-avatar"></picture>
   <span class="author-note-text"><a rel="author">Name</a> bio…<span class="author-links">…</span></span></p> */
.prose .author-note.has-avatar{display:flex;align-items:flex-start;gap:1.5rem}
.prose .author-note.has-avatar .author-note-avatar{display:block;flex:none;line-height:0;padding:.3rem 0 0 .25rem}
.prose .author-note.has-avatar .author-avatar{display:block;width:92px;height:92px;max-width:none;border-radius:50%;object-fit:cover;background:var(--panel-2);box-shadow:0 0 0 1px var(--line-2)}
.prose .author-note.has-avatar .author-note-text{display:block;flex:1 1 auto;min-width:0}
/* Narrow screens: smaller photo, floated so the bio wraps under it instead of a thin column */
@media(max-width:520px){
  .prose .author-note.has-avatar{display:block}
  .prose .author-note.has-avatar .author-note-avatar{float:left;padding:.3rem 0 0;margin:0 1rem .4rem 0}
  .prose .author-note.has-avatar .author-avatar{width:64px;height:64px}
  .prose .author-note.has-avatar .author-note-text{display:inline}
  .prose .author-note.has-avatar .author-links{clear:left}
}
/* Equal gap into Related Reading: author-note margin-bottom owns the space */
.prose .author-note + .related-reading,
.prose .author-note + aside.related-reading{margin-top:0}
.prose .author-note + .related-reading > h2:first-child,
.prose .author-note + aside.related-reading > h2:first-child{margin-top:0}

/* Editor's note: site-wide default (was a per-post inline style). Extra space above
   separates it from the preceding paragraph; small and grey so it still reads as attached. */
.prose .editor-note{margin-top:.9em;padding-top:.35em;font-size:.85em;line-height:1.5;color:#6b7280}
.prose .editor-note a{color:inherit;text-decoration:underline}

.prose a{color:var(--blue);text-decoration:underline;text-underline-offset:3px;font-weight:500}
.prose a:hover{color:var(--blue-deep)}
.prose strong{color:var(--heading);font-weight:650}
.prose ul,.prose ol{padding-left:1.25em;display:grid;gap:.55em;font-weight:400}
.prose li::marker{color:var(--blue)}
.prose blockquote{
  margin:1.4em 0;padding:16px 20px;border-left:3px solid var(--indigo);
  background:linear-gradient(90deg,rgba(99,102,241,.06),transparent 70%);
  border-radius:0 12px 12px 0;color:var(--soft);font-size:1.02rem;font-weight:400;
  font-family:inherit;font-style:normal;
}
.prose blockquote p{margin:0}
.prose blockquote footer{background:none;border:0;padding:0;box-shadow:none;min-height:0;margin:.5em 0 0;font-size:.82rem;color:var(--soft-2)}
.prose code{font-family:var(--fm);font-size:.82em;background:rgba(2,136,209,.08);color:var(--blue);border:1px solid rgba(2,136,209,.2);border-radius:5px;padding:1px 6px;font-weight:500}
.prose pre{background:var(--panel-2);border:1px solid var(--line);border-radius:12px;padding:16px 18px;overflow-x:auto;font-family:var(--fm);font-size:.78rem;line-height:1.65;color:var(--soft)}
.prose pre code{background:none;border:0;padding:0;color:inherit;font-size:inherit}
.prose hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
.prose .callout{
  margin:1.6em 0;padding:18px 20px;border-radius:14px;
  background:linear-gradient(175deg,var(--panel),var(--ink-2));
  border:1px solid var(--line-2);box-shadow:0 16px 40px rgba(15,23,42,.06);
  font-size:.95rem;font-weight:400;color:var(--soft);
}
.prose .callout > strong,
.prose .callout .callout-label{
  display:block;font-family:var(--fd);color:var(--heading);margin-bottom:8px;
  font-size:1.05rem;font-weight:700;letter-spacing:-.015em;
}
.prose .callout li strong{
  display:inline;font-family:inherit;font-size:inherit;font-weight:700;
  color:var(--heading);margin:0;letter-spacing:inherit;
}
.prose .callout.takeaways ul{margin-top:10px}
.prose .callout.takeaways{margin-top:.6em}

.post-cta{
  margin:72px 0 0;padding:32px 30px 28px;border-radius:16px;
  background:linear-gradient(135deg,rgba(186,230,253,.55) 0%,rgba(221,214,254,.5) 55%,rgba(204,251,241,.45) 100%);
  border:1px solid var(--line);
}
.post-cta h2{
  font-family:var(--fd);
  font-size:clamp(1.25rem,2.2vw,1.45rem);
  font-weight:700;
  color:var(--heading);
  letter-spacing:-.02em;
  line-height:1.25;
  text-wrap:pretty;
  text-wrap:balance;
}
.post-cta p{margin-top:10px;color:var(--soft);font-size:.95rem;font-weight:400;max-width:36em;line-height:1.65}
.post-cta .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}

.post-disclaimer{
  margin-top:56px;padding-top:26px;border-top:1px solid var(--line);
  font-size:.78rem;line-height:1.75;color:var(--soft-2);font-weight:400;
}

.back-link{display:inline-flex;align-items:center;gap:8px;font-family:var(--fm);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);text-decoration:none;margin-bottom:0;font-weight:500;line-height:1.2}
.back-link:hover{color:var(--blue-deep)}

.reveal{opacity:0;transform:translateY(18px);transition:opacity .55s ease,transform .55s ease}
.reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}

main{position:relative;z-index:1;min-height:50vh}

.prose table{width:100%;border-collapse:collapse;font-size:.92rem;margin:1.2em 0;background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;font-weight:400}
.prose th{text-align:left;font-family:var(--fm);font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:var(--soft-2);padding:10px 12px;background:var(--panel-2);border-bottom:1px solid var(--line);font-weight:500}
.prose td{padding:11px 12px;border-bottom:1px solid var(--line);color:var(--text);vertical-align:top}
.prose tr:last-child td{border-bottom:0}
.prose table > caption,
.table-wrap table > caption{caption-side:top;padding-bottom:10px}


/* AEO — extractable answer-first lede (ChatGPT / Perplexity / Gemini) */
.prose .primary-question{
  margin:0 0 10px;font-size:.92rem;font-weight:600;color:var(--blue,#0284c7);
  letter-spacing:.01em;
}
.prose .answer-first{
  margin:0 0 1.35em;padding:16px 18px;border-radius:14px;
  background:linear-gradient(175deg,rgba(186,230,253,.45),rgba(224,242,254,.35));
  border:1px solid var(--line-2,rgba(14,165,233,.25));
  font-size:1.05rem;line-height:1.55;font-weight:500;color:var(--heading,#0f172a);
  max-width:42em;
}
.prose .answer-first p{margin:0}
.prose .answer-first p + p{margin-top:1.55em}
.prose h2 + .answer-first,
.prose h3 + .answer-first,
.prose h2 + .primary-question,
.prose h3 + .primary-question{margin-top:calc(.65em + 10px)}

/* Generated "More from OctoProbe News" list sits after </article> (scripts/refresh-latest-links.py). */
article.post-body:has(+ aside.more-from){padding-bottom:28px}
aside.more-from{
  box-sizing:border-box;
  max-width:820px;
  margin:0 auto;
  padding:0 30px 88px;
  background:var(--ink);
}
aside.more-from h2{
  font-family:var(--fd);
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:-.025em;
  color:var(--heading);
  line-height:1.22;
  margin:0;
  padding-top:1.15rem;
  border-top:1px solid var(--line);
  max-width:var(--prose-width);
  text-wrap:pretty;
  text-wrap:balance;
}
aside.more-from ul{
  margin:.7em 0 0;
  padding-left:1.2em;
  max-width:var(--prose-width);
  display:grid;
  gap:.55em;
}
aside.more-from li{margin:0}
aside.more-from li::marker{color:var(--blue)}
aside.more-from a{color:var(--blue);text-decoration:underline;text-underline-offset:3px;font-weight:500}
aside.more-from a:hover{color:var(--blue-deep)}
aside.more-from time{display:block;margin-top:.15em;font-family:var(--fm);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--soft-2);font-weight:500}
.prose .related-reading{border-top:1px solid var(--line);margin-top:2rem;padding-top:.5rem}
.prose .related-reading > h2{margin-top:1rem}
.prose .related-reading li{margin:.4rem 0}

/* ── Table of contents (blog-toc.js) ─────────────────────────── */
.prose h2[id],.prose h3[id]{scroll-margin-top:96px}
.toc-rail[hidden],.toc-mobile[hidden]{display:none!important}
.toc,.toc-mobile{--toc-font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;--toc-muted:#6b7686;--toc-sub:#8a94a3;--toc-track:rgba(15,23,42,.08);--toc-accent:var(--blue)}
.toc{font-family:var(--toc-font)}
.toc-list{list-style:none;margin:0;padding:0;position:relative}
.toc-list::before{content:'';position:absolute;left:0;top:2px;bottom:2px;width:1px;background:var(--toc-track)}
.toc-list li{margin:0;padding:0}
.toc-list li::marker{content:none}
.toc-list a{position:relative;display:block;padding:5px 8px 5px 14px;color:var(--toc-muted);text-decoration:none;font-weight:400;line-height:1.4;letter-spacing:-.003em;transition:color .15s ease}
.toc-list a::before{content:'';position:absolute;left:0;top:6px;bottom:6px;width:2px;border-radius:2px;background:transparent;transition:background-color .15s ease}
.toc-list .toc-h2 + .toc-h2 a,.toc-list .toc-h3 + .toc-h2 a{margin-top:2px}
.toc-list .toc-h3 a{padding:3px 8px 3px 26px;font-size:.92em;color:var(--toc-sub)}
.toc-list a:hover{color:var(--heading)}
.toc-list a:hover::before{background:rgba(15,23,42,.18)}
.toc-list a.active{color:var(--heading);font-weight:500}
.toc-list a.active::before{background:var(--toc-accent)}
.toc-list a:focus-visible{outline:2px solid var(--indigo);outline-offset:1px;border-radius:4px}
/* mobile / narrow: collapsed details */
.toc-mobile{margin:0 0 28px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font-family:var(--toc-font);font-size:14px;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.toc-mobile summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:12px 16px;font-family:var(--toc-font);font-weight:600;font-size:14px;color:var(--heading);list-style:none;letter-spacing:-.005em;border-radius:12px}
.toc-mobile summary::-webkit-details-marker{display:none}
.toc-mobile summary::after{content:'';margin-left:auto;width:7px;height:7px;border-right:1.5px solid var(--toc-muted);border-bottom:1.5px solid var(--toc-muted);transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
.toc-mobile[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.toc-mobile summary:hover{color:var(--blue-deep)}
.toc-mobile summary:focus-visible{outline:2px solid var(--indigo);outline-offset:2px}
.toc-mobile[open] summary{border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}
.toc-mobile .toc{padding:10px 14px 12px 16px}
.toc-mobile .toc-list a{padding-top:6px;padding-bottom:6px}
.toc-mobile .toc-list .toc-h3 a{padding-top:4px;padding-bottom:4px}
.toc-rail{display:none}
/* desktop: left gutter rail; article shifts right so they never overlap */
@media (min-width:1024px){
  .toc-mobile{display:none}
  .post-body .wrap.toc-on{max-width:1120px;display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:56px;align-items:start}
  .post-body .wrap.toc-on > .toc-rail{display:block;grid-column:1;grid-row:1 / span 50;position:sticky;top:96px;align-self:start}
  .post-body .wrap.toc-on > :not(.toc-rail):not(.toc-mobile){grid-column:2;min-width:0}
  .toc-title{margin:0 0 10px 14px;font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--soft-2,#8a94a3)}
  .toc-rail .toc{max-height:calc(100vh - 150px);overflow-y:auto;overscroll-behavior:contain;font-size:13px;scrollbar-width:thin;scrollbar-color:rgba(15,23,42,.15) transparent;padding-right:4px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .toc-mobile summary::after,.toc-list a,.toc-list a::before{transition:none}
}

/* ── Mobile overflow fixes ───────────────────────────────────── */
.prose img,.prose video,.prose iframe,.prose svg{max-width:100%}
.prose a{overflow-wrap:anywhere}
.prose pre{max-width:100%;overflow-x:auto}
.prose code{overflow-wrap:anywhere}
@media(max-width:960px){
  /* base rule `nav.top .nav-center{display:flex}` out-specified the old hide */
  nav.top .nav-center{display:none}
}
@media(max-width:720px){
  .prose table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(max-width:520px){
  nav.top{padding:0 12px;height:60px}
  .mobile-menu{top:60px}
  nav.top .nav-login{display:none}
  nav.top .nav-cta{padding-left:10px;padding-right:10px;font-size:.78rem;white-space:nowrap}
  nav.top .brand small{display:inline}
}

.prose figure.fig-pad{max-width:560px;margin:2.4em auto;padding:28px 28px 12px;background:var(--panel);border:1px solid var(--line);border-radius:14px}
.prose figure.fig-pad img{width:100%;height:auto}
@media(max-width:520px){.prose figure.fig-pad{padding:16px 14px 8px}}

/* Post CTA: isolate from .prose link/heading rules (fixes invisible label, underlines, extra gap) */
.post-body .post-cta{margin:64px 0 24px;padding:36px 40px}
.post-body .post-cta h2{margin:0;padding:0;border:0;line-height:1.25;font-size:clamp(1.25rem,2.2vw,1.45rem)}
.post-body .post-cta h2::before,.post-body .post-cta h2::after{content:none}
.post-body .post-cta p{margin:12px 0 0;max-width:40em}
.post-body .post-cta .actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin-top:24px}
.post-body .post-cta a.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 22px;
  font-family:var(--fb);font-size:.95rem;font-weight:600;line-height:1;text-decoration:none;overflow-wrap:normal;white-space:nowrap;border-radius:10px}
.post-body .post-cta a.btn-blue{background:var(--blue-deep);color:var(--on-accent);border:1.5px solid var(--blue-deep);box-shadow:0 8px 22px rgba(3,105,161,.25)}
.post-body .post-cta a.btn-blue:hover{background:#075985;border-color:#075985;color:var(--on-accent);transform:translateY(-2px)}
.post-body .post-cta a.btn-ghost{background:rgba(255,255,255,.75);color:var(--heading);border:1.5px solid var(--line-2)}
.post-body .post-cta a.btn-ghost:hover{border-color:var(--blue-deep);color:var(--blue-deep);background:#fff;transform:translateY(-2px)}
.post-body .post-cta a.btn:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.post-body .post-cta a.btn:active{transform:translateY(0)}
@media(max-width:520px){
  .post-body .post-cta{padding:24px 20px;margin:48px 0 16px}
  .post-body .post-cta .actions{flex-direction:column;align-items:stretch;gap:10px;margin-top:20px}
  .post-body .post-cta a.btn{width:100%}
}

/* OctoProbe News nav: Investigations is the prominent right-side item */
nav.top .nav-investigations{white-space:nowrap}
@media(max-width:520px){
  nav.top .brand{gap:8px}
  nav.top .brand svg.logo{width:32px;height:32px}
  nav.top .brand .bn{font-size:1rem}
  nav.top .nav-right{gap:6px;flex:none}
  nav.top .nav-investigations{height:34px;padding:0 10px;font-size:.75rem}
}
@media(max-width:360px){
  nav.top .brand .bn{display:inline-flex;font-size:.92rem}
  nav.top .nav-investigations{padding:0 8px}
}

/* Default: photos and embeds are centered on the page */
.prose figure img,.prose figure video,.prose figure iframe{display:block;margin-left:auto;margin-right:auto}
.prose figure > a,.prose figure .doc-page{margin-left:auto;margin-right:auto}
.prose figure.doc-embed{justify-items:center}
.prose figure.doc-embed > a{width:100%}
.prose figure.doc-embed > figcaption{justify-self:stretch}
.prose figure.doc-embed.doc-single{grid-template-columns:minmax(0,1fr)}
.prose figure.doc-embed.doc-single > a{max-width:360px}
