/* =============================================================
   JBT Journal — Blog stylesheet
   Editorial type system + page chrome for /blog/index.html and
   the article spreads. Sits alongside main.css and footer.css;
   does not modify them.

   Palette and gradients all match the canonical JBT site
   (navbar / hero / cards). The editorial bump comes from the
   display serif (Fraunces, variable-axis), used on headlines,
   numerals, and the drop cap only.

   Body, UI, and metadata stay on the existing site type stacks.
   ============================================================= */

:root {
  --jbt-ink: #0f1a2a;
  --jbt-ink-soft: #1C2D41;
  --jbt-canvas: #ffffff;
  --jbt-canvas-soft: #f7f9fc;     /* subtle section background break */
  --jbt-canvas-tint: #f0f4f8;     /* matches existing .callout */
  --jbt-steel: #1478b4;           /* existing brand blue */
  --jbt-steel-deep: #1a4666;      /* existing nav/hero deep tone */
  --jbt-steel-bright: #5a8bc4;    /* existing eyebrow tone */
  --jbt-ash: #6b7280;             /* existing post-card secondary text */
  --jbt-ash-soft: #9ca3af;
  --jbt-hairline: #e5e7eb;        /* existing card hairline */
  --jbt-hairline-strong: #cdd5df;

  --jbt-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --jbt-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --jbt-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --jbt-rule: 1px solid var(--jbt-hairline);
  --jbt-navy-gradient: linear-gradient(135deg, #245B8A 0%, #1a4666 50%, #245B8A 100%);
}

/* Scope blog-specific styling under .jbt-journal so it doesn't
   leak into other site sections. The wrapper goes on <body>. */
.jbt-journal {
  background: var(--jbt-canvas);
  color: var(--jbt-ink);
  font-family: var(--jbt-sans);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.jbt-journal * { box-sizing: border-box; }

/* Reading-progress bar */
.jbt-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--jbt-steel);
  z-index: 9998;
  transition: width .12s ease-out;
}

/* =====================================================
   MASTHEAD — uses canonical JBT navy gradient
   ===================================================== */
.jbt-masthead {
  position: relative;
  background: var(--jbt-navy-gradient);
  color: #fff;
  padding: 9.5rem 6vw 4rem;          /* clears 116px fixed navbar */
  overflow: hidden;
  isolation: isolate;
}
.jbt-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(90,139,196,0.18), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(36,91,138,0.30), transparent 55%);
  z-index: 0;
}
@media (max-width: 767px) { .jbt-masthead { padding-top: 8.5rem; } }
@media (max-width: 480px) { .jbt-masthead { padding-top: 8rem;   } }

.jbt-masthead .meta-row {
  position: relative;
  z-index: 1;
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.jbt-masthead .meta-row .vol  { color: var(--jbt-steel-bright); }
.jbt-masthead .meta-row b      { color: #fff; font-weight: 500; letter-spacing: .22em; }

.jbt-eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--jbt-mono);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--jbt-steel-bright);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.jbt-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--jbt-steel-bright);
}

.jbt-masthead h1 {
  position: relative;
  z-index: 1;
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 30;
  font-size: clamp(40px, 7.5vw, 110px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0;
  color: #fff;
  max-width: 18ch;
  text-wrap: balance;
}
.jbt-masthead h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--jbt-steel-bright);
}
.jbt-masthead h1 .reveal-mask { display: inline-block; overflow: hidden; }
.jbt-masthead h1 .reveal-mask > span {
  display: inline-block;
  transform: translateY(110%);
  animation: jbt-rise .9s cubic-bezier(.22,.6,.22,1) forwards;
}
.jbt-masthead h1 .reveal-mask:nth-of-type(1) > span { animation-delay: .15s; }
.jbt-masthead h1 .reveal-mask:nth-of-type(2) > span { animation-delay: .27s; }
.jbt-masthead h1 .reveal-mask:nth-of-type(3) > span { animation-delay: .39s; }
.jbt-masthead h1 .reveal-mask:nth-of-type(4) > span { animation-delay: .51s; }
.jbt-masthead h1 .reveal-mask:nth-of-type(5) > span { animation-delay: .63s; }
.jbt-masthead h1 .reveal-mask:nth-of-type(6) > span { animation-delay: .75s; }
@keyframes jbt-rise { to { transform: translateY(0); } }

.jbt-masthead .deck {
  position: relative;
  z-index: 1;
  font-family: var(--jbt-sans);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  margin: 1.6rem 0 0;
  max-width: 56ch;
  opacity: 0;
  transform: translateY(8px);
  animation: jbt-ease-up .9s ease-out .75s forwards;
}
@keyframes jbt-ease-up { to { opacity: 1; transform: translateY(0); } }

.jbt-masthead .filing {
  position: absolute;
  top: 9.5rem;
  right: 6vw;
  z-index: 1;
  font-family: var(--jbt-mono);
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
  color: rgba(255,255,255,.6);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .8rem 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  background: rgba(15,26,42,.18);
}
.jbt-masthead .filing b { color: var(--jbt-steel-bright); font-weight: 500; }
@media (max-width: 880px) { .jbt-masthead .filing { position: static; margin-top: 1.5rem; display: inline-block; } }

/* =====================================================
   LEAD ARTICLE  (used on /blog/index.html)
   ===================================================== */
.jbt-lead {
  padding: 5rem 6vw 5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  border-bottom: var(--jbt-rule);
  position: relative;
  background: var(--jbt-canvas);
}
.jbt-lead .label {
  position: absolute;
  top: 1.6rem; left: 6vw;
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--jbt-steel);
}
.jbt-lead .label::before { content: "■  "; color: var(--jbt-steel); }
.jbt-lead .copy { padding-top: 2.5rem; }

.jbt-lead .cat {
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--jbt-steel-deep);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.jbt-lead .cat::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--jbt-steel-deep);
}

.jbt-lead h2 {
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 20;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 1.8rem;
  color: var(--jbt-ink);
  text-wrap: balance;
  transition: font-variation-settings .55s cubic-bezier(.22,.6,.22,1);
}
.jbt-lead h2:hover {
  font-variation-settings: "opsz" 8, "wght" 700, "SOFT" 90;
}
.jbt-lead h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--jbt-steel);
}
.jbt-lead .lede {
  font-family: var(--jbt-sans);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--jbt-ink);
  max-width: 38ch;
  margin: 0 0 1.8rem;
}
.jbt-lead .pullquote {
  border-left: 3px solid var(--jbt-steel);
  padding: .2rem 0 .2rem 1.25rem;
  margin: 2rem 0;
  font-family: var(--jbt-serif);
  font-style: italic;
  font-variation-settings: "opsz" 80, "wght" 400, "SOFT" 80;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--jbt-ink);
  max-width: 36ch;
  text-wrap: balance;
}
.jbt-lead .byline {
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jbt-ash);
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  border-top: var(--jbt-rule);
  border-bottom: var(--jbt-rule);
  padding: .8rem 0;
  margin: 1.6rem 0 0;
}
.jbt-lead .byline span:first-child { color: var(--jbt-ink); }
.jbt-lead .read {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--jbt-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--jbt-steel);
  text-decoration: none;
  margin-top: 1.6rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--jbt-steel);
  width: fit-content;
  transition: color .25s, border-color .25s, gap .25s;
}
.jbt-lead .read::after { content: "→"; font-weight: 400; transition: transform .35s cubic-bezier(.22,.6,.22,1); }
.jbt-lead .read:hover  { color: var(--jbt-steel-deep); border-color: var(--jbt-steel-deep); gap: 1.1rem; }
.jbt-lead .read:hover::after { transform: translateX(.25rem); }

/* The hero card images are 1200×630 OG cards with the article title
   baked in — match that aspect ratio exactly so nothing crops the
   title off, and let the figure breathe vertically alongside the lede. */
.jbt-lead .frame {
  position: relative;
  aspect-ratio: 1200 / 630;
  width: 100%;
  align-self: center;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 36px -12px rgba(15, 26, 42, .22);
  border: 1px solid var(--jbt-hairline);
}
.jbt-lead .frame img {
  width: 100%; height: 100%;
  object-fit: cover;          /* fits exactly because aspect ratios match */
  display: block;
  transform: scale(1);
  transition: transform 1s cubic-bezier(.22,.6,.22,1);
}
.jbt-lead .frame:hover img { transform: scale(1.03); }
/* No bottom-gradient caption: the OG card image already contains
   the title + category. An overlay caption duplicates / occludes it. */
.jbt-lead .frame .caption { display: none; }

@media (max-width: 880px) {
  .jbt-lead { grid-template-columns: 1fr; }
  .jbt-lead .frame { aspect-ratio: 1200 / 630; align-self: stretch; }
}

/* =====================================================
   TOC — also filed this quarter
   ===================================================== */
.jbt-toc {
  padding: 4.5rem 6vw 4.5rem;
  background: var(--jbt-canvas-soft);
  border-bottom: var(--jbt-rule);
}
.jbt-toc .section-rule {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}
.jbt-toc .section-rule h2 {
  font-family: var(--jbt-mono);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--jbt-ink);
  margin: 0;
  font-weight: 600;
}
.jbt-toc .section-rule hr {
  border: 0;
  border-top: 1px solid var(--jbt-ink);
  margin: 0;
}
.jbt-toc .section-rule .count {
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--jbt-ash);
  text-transform: uppercase;
}
.jbt-toc-rows { max-width: 1300px; margin: 0 auto; }

.jbt-toc-row {
  display: grid;
  grid-template-columns: minmax(120px, 14%) 1fr minmax(180px, 22%);
  gap: 2rem;
  padding: 2.4rem 1rem;
  border-top: var(--jbt-rule);
  align-items: start;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background .35s ease, padding .35s ease, transform .35s cubic-bezier(.22,.6,.22,1);
}
.jbt-toc-row:last-child { border-bottom: var(--jbt-rule); }
.jbt-toc-row:hover {
  background: linear-gradient(to right, rgba(20, 120, 180, .06), transparent 70%);
  padding-left: 1.6rem;
}
.jbt-toc-row .num {
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 144, "wght" 300, "SOFT" 0;
  font-size: clamp(56px, 8.5vw, 124px);
  line-height: .85;
  letter-spacing: -.04em;
  color: var(--jbt-ink);
  -webkit-text-stroke: 1px var(--jbt-ink);
  -webkit-text-fill-color: transparent;
  transition: -webkit-text-stroke-color .45s, -webkit-text-fill-color .45s;
}
.jbt-toc-row:hover .num {
  -webkit-text-fill-color: var(--jbt-steel);
  -webkit-text-stroke-color: var(--jbt-steel);
}
.jbt-toc-row .body .cat {
  font-family: var(--jbt-mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--jbt-steel-deep);
  margin-bottom: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.jbt-toc-row .body .cat::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--jbt-steel-deep);
}
.jbt-toc-row .body h3 {
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 80, "wght" 500, "SOFT" 30;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--jbt-ink);
  margin: 0 0 .85rem;
  text-wrap: balance;
  transition: font-variation-settings .5s cubic-bezier(.22,.6,.22,1), color .35s;
  max-width: 30ch;
}
.jbt-toc-row:hover .body h3 {
  font-variation-settings: "opsz" 10, "wght" 700, "SOFT" 80;
  color: var(--jbt-steel-deep);
}
.jbt-toc-row .body p {
  font-family: var(--jbt-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--jbt-ash);
  margin: 0;
  max-width: 56ch;
}
.jbt-toc-row .meta {
  font-family: var(--jbt-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jbt-ash);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-align: right;
}
.jbt-toc-row .meta .filed { color: var(--jbt-ink); }
.jbt-toc-row .meta .arrow {
  margin-top: .8rem;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--jbt-steel);
  transition: transform .4s cubic-bezier(.22,.6,.22,1);
}
.jbt-toc-row:hover .meta .arrow { transform: translateX(.5rem); }
@media (max-width: 880px) {
  .jbt-toc-row { grid-template-columns: auto 1fr; gap: 1.2rem; }
  .jbt-toc-row .meta {
    grid-column: 1 / -1; flex-direction: row;
    justify-content: space-between; text-align: left;
    margin-top: .25rem;
  }
}

/* reveal-on-scroll */
.jbt-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.6,.22,1); }
.jbt-reveal.is-in { opacity: 1; transform: none; }

/* =====================================================
   COLOPHON — closes the index page
   ===================================================== */
.jbt-colophon {
  background: var(--jbt-navy-gradient);
  color: #fff;
  padding: 5rem 6vw 5.5rem;
  position: relative;
  isolation: isolate;
}
.jbt-colophon::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(90,139,196,0.18), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(36,91,138,0.30), transparent 55%);
}
.jbt-colophon > * { position: relative; z-index: 1; }
.jbt-colophon h4 {
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--jbt-steel-bright);
  margin: 0 0 1.4rem;
}
.jbt-colophon h2 {
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 30;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 1.4rem;
  color: #fff;
  max-width: 24ch;
}
.jbt-colophon h2 em {
  font-style: italic;
  color: var(--jbt-steel-bright);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
}
.jbt-colophon p {
  font-family: var(--jbt-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .8);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.jbt-colophon .cta-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.5rem;
}
.jbt-colophon .cta-row a {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 6px;
  font-family: var(--jbt-sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.jbt-colophon .cta-row a.primary {
  background: #fff; color: var(--jbt-ink);
}
.jbt-colophon .cta-row a.primary:hover { background: var(--jbt-steel-bright); color: #fff; transform: translateY(-1px); }
.jbt-colophon .cta-row a.ghost {
  border: 1px solid rgba(255,255,255,.45); color: #fff;
}
.jbt-colophon .cta-row a.ghost:hover { background: rgba(255,255,255,.1); }

/* =====================================================
   ARTICLE SPREAD — used on individual blog posts
   ===================================================== */
.jbt-spread {
  background: var(--jbt-canvas);
  padding: 9.5rem 0 5rem;            /* top padding clears 116px navbar */
  position: relative;
}
@media (max-width: 767px) { .jbt-spread { padding-top: 8.5rem; } }
@media (max-width: 480px) { .jbt-spread { padding-top: 8rem;   } }

.jbt-spread-head {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 6vw;
}
.jbt-spread-head .cat {
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--jbt-steel);
  margin-bottom: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.jbt-spread-head .cat::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--jbt-steel);
}
.jbt-spread-head h1 {
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 20;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: .96;
  letter-spacing: -.025em;
  margin: 0 0 1.6rem;
  color: var(--jbt-ink);
  text-wrap: balance;
  hanging-punctuation: first last;
  transition: font-variation-settings .55s cubic-bezier(.22,.6,.22,1);
}
.jbt-spread-head h1:hover {
  font-variation-settings: "opsz" 8, "wght" 700, "SOFT" 90;
}
.jbt-spread-head h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--jbt-steel);
}
.jbt-spread-head .dek {
  font-family: var(--jbt-sans);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--jbt-ash);
  max-width: 58ch;
  margin: 0 0 2rem;
}
.jbt-spread-head .meta {
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jbt-ash);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  border-top: var(--jbt-rule);
  border-bottom: var(--jbt-rule);
  padding: .85rem 0;
}
.jbt-spread-head .meta b { color: var(--jbt-ink); font-weight: 600; }

.jbt-spread-hero {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 6vw;
  position: relative;
}
.jbt-spread-hero img {
  width: 100%;
  aspect-ratio: 1200 / 630;   /* matches the source OG-card images exactly */
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--jbt-hairline);
  box-shadow: 0 12px 36px -16px rgba(15, 26, 42, .25);
}
.jbt-spread-hero .cap {
  font-family: var(--jbt-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--jbt-ash);
  margin-top: .9rem;
  padding-top: .6rem;
}
.jbt-spread-hero .cap b { color: var(--jbt-steel-deep); font-weight: 600; }

.jbt-spread-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.jbt-spread-body .article-body {
  font-family: var(--jbt-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--jbt-ink);
  max-width: 64ch;
}
.jbt-spread-body .article-body p { margin: 0 0 1.3rem; }
.jbt-spread-body .article-body p:first-of-type::first-letter {
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 144, "wght" 600, "SOFT" 0;
  font-size: 5.4em;
  float: left;
  line-height: .85;
  padding: .12em .12em 0 0;
  color: var(--jbt-ink);
  margin-right: .04em;
}
.jbt-spread-body .article-body h2 {
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 60, "wght" 500, "SOFT" 30;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 2.6rem 0 1rem;
  color: var(--jbt-ink);
}
.jbt-spread-body .article-body h2::before {
  content: "§ ";
  color: var(--jbt-steel);
  font-style: italic;
  font-variation-settings: "opsz" 60, "wght" 400, "SOFT" 80;
}
.jbt-spread-body .article-body h3 {
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 50, "wght" 600, "SOFT" 20;
  font-size: 22px;
  line-height: 1.2;
  margin: 2rem 0 .75rem;
  color: var(--jbt-ink);
}
.jbt-spread-body .article-body ul,
.jbt-spread-body .article-body ol {
  padding-left: 1.4rem;
  margin: 0 0 1.3rem;
}
.jbt-spread-body .article-body li {
  margin-bottom: .5rem;
}
.jbt-spread-body .article-body li::marker { color: var(--jbt-steel); }
.jbt-spread-body .article-body strong { color: var(--jbt-ink); font-weight: 600; }
.jbt-spread-body .article-body a {
  color: var(--jbt-steel);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.jbt-spread-body .article-body a:hover { color: var(--jbt-steel-deep); }

/* Tables in articles */
.jbt-spread-body .article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 15.5px;
  font-family: var(--jbt-sans);
}
.jbt-spread-body .article-body th {
  background: var(--jbt-ink);
  color: #fff;
  text-align: left;
  padding: .75rem 1rem;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.jbt-spread-body .article-body td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--jbt-hairline);
  vertical-align: top;
}
.jbt-spread-body .article-body tr:nth-child(even) td { background: var(--jbt-canvas-soft); }

/* Marginalia (right rail pull-quote) */
.jbt-spread-body .marginalia {
  position: sticky;
  top: 130px;        /* clears 116px navbar */
  font-family: var(--jbt-serif);
  border-top: 2px solid var(--jbt-steel);
  padding-top: 1rem;
}
.jbt-spread-body .marginalia .pull {
  font-style: italic;
  font-variation-settings: "opsz" 60, "wght" 420, "SOFT" 70;
  font-size: 22px;
  line-height: 1.3;
  color: var(--jbt-ink);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.jbt-spread-body .marginalia .pull::before { content: "“"; color: var(--jbt-steel); font-size: 1.3em; line-height: 0; vertical-align: -.2em; margin-right: .1em; }
.jbt-spread-body .marginalia .pull::after  { content: "”"; color: var(--jbt-steel); font-size: 1.3em; line-height: 0; vertical-align: -.2em; margin-left: .05em; }
.jbt-spread-body .marginalia .attr {
  font-family: var(--jbt-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--jbt-ash);
}

/* Field-note callout — adopts existing site .callout pattern */
.jbt-spread-body .article-body .fieldnote,
.jbt-spread-body .article-body .callout {
  background: var(--jbt-canvas-tint);
  border-left: 4px solid var(--jbt-steel-deep);
  padding: 1.4rem 1.6rem 1.5rem;
  margin: 2.2rem 0;
  border-radius: 4px;
  font-family: var(--jbt-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--jbt-ink);
}
.jbt-spread-body .article-body .fieldnote .label {
  font-family: var(--jbt-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--jbt-steel-deep);
  margin-bottom: .55rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.jbt-spread-body .article-body .fieldnote .label::before { content: "▮"; color: var(--jbt-steel); }
.jbt-spread-body .article-body .fieldnote p,
.jbt-spread-body .article-body .callout p { margin: 0; font-size: 15.5px; }
.jbt-spread-body .article-body .callout strong { color: var(--jbt-steel-deep); }

/* Variant: blue-tinted "note" callout (used in p25 article) */
.jbt-spread-body .article-body .callout-blue {
  background: #eef6fb;
  border-left: 4px solid var(--jbt-steel);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  font-size: 15.5px;
}

/* Variant: warning callout */
.jbt-spread-body .article-body .callout-warn {
  background: #fef6e7;
  border-left: 4px solid #c97316;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  font-size: 15.5px;
}
.jbt-spread-body .article-body .callout-warn strong { color: #8a4d0a; }

/* Inline FAQ <details> blocks (used in p25 article) */
.jbt-spread-body .article-body details {
  background: var(--jbt-canvas-soft);
  border: 1px solid var(--jbt-hairline);
  border-radius: 8px;
  padding: 0 1.25rem;
  margin-bottom: .75rem;
  transition: border-color .25s;
}
.jbt-spread-body .article-body details[open] { border-color: var(--jbt-steel-bright); }
.jbt-spread-body .article-body details summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-family: var(--jbt-sans);
  color: var(--jbt-ink);
  list-style-position: outside;
}
.jbt-spread-body .article-body details > div { padding: 0 0 1rem; }
.jbt-spread-body .article-body details p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--jbt-ink); }

/* End mark */
.jbt-endmark {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--jbt-ink);
  margin: 1.5rem 0 0;
}

/* Closing CTA card (replaces legacy .cta + bottom nav box) */
.jbt-closing-cta {
  margin: 3rem 0 0;
  background: var(--jbt-navy-gradient);
  color: #fff;
  padding: 2.2rem 2rem;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 64ch;
}
.jbt-closing-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 100% 0%, rgba(90,139,196,0.25), transparent 60%);
}
.jbt-closing-cta > * { position: relative; z-index: 1; }
.jbt-closing-cta h2 {
  font-family: var(--jbt-serif);
  font-variation-settings: "opsz" 80, "wght" 500, "SOFT" 20;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .6rem;
  color: #fff;
}
.jbt-closing-cta h2::before { content: none; }
.jbt-closing-cta p {
  font-family: var(--jbt-sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  margin: 0 0 1.2rem;
}
.jbt-closing-cta .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.jbt-closing-cta a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.3rem;
  border-radius: 6px;
  font-family: var(--jbt-sans);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.jbt-closing-cta a.primary { background: #fff; color: var(--jbt-ink); }
.jbt-closing-cta a.primary:hover { background: var(--jbt-steel-bright); color: #fff; transform: translateY(-1px); }
.jbt-closing-cta a.ghost   { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.jbt-closing-cta a.ghost:hover { background: rgba(255,255,255,.1); }

@media (max-width: 880px) {
  .jbt-spread-body { grid-template-columns: 1fr; }
  .jbt-spread-body .marginalia { position: static; }
}

/* =====================================================
   ARTICLE FIGURES — bespoke SVG technical schematics
   Used inside .jbt-spread-body .article-body
   ===================================================== */

.jbt-figure {
  margin: 2.5rem 0 2.5rem;
  padding: 0;
}
.jbt-figure--diagram {
  background: var(--jbt-canvas-soft);
  border: 1px solid var(--jbt-hairline);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.jbt-figure--diagram::before {
  /* faint corner registration marks */
  content: "";
  position: absolute; top: 8px; left: 8px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--jbt-hairline-strong);
  border-left: 1px solid var(--jbt-hairline-strong);
  pointer-events: none;
}
.jbt-figure--diagram::after {
  content: "";
  position: absolute; bottom: 8px; right: 8px;
  width: 14px; height: 14px;
  border-bottom: 1px solid var(--jbt-hairline-strong);
  border-right: 1px solid var(--jbt-hairline-strong);
  pointer-events: none;
}

.jbt-svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--jbt-ink);
}

/* SVG type styles — ride on font sizing */
.jbt-svg-title {
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 600;
  fill: var(--jbt-ink);
  text-transform: uppercase;
}
.jbt-svg-sub {
  font-family: var(--jbt-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  fill: var(--jbt-ash);
}
.jbt-svg-label {
  font-family: var(--jbt-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  fill: var(--jbt-ink);
  text-transform: uppercase;
}
.jbt-svg-label-bold {
  font-family: var(--jbt-mono);
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 600;
  fill: var(--jbt-ink);
  text-transform: uppercase;
}
.jbt-svg-label-sub {
  font-family: var(--jbt-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  fill: var(--jbt-ash);
}

/* Strokes & fills — the SVG primitives */
.jbt-svg .jbt-stroke-ink    { stroke: var(--jbt-ink);     stroke-width: 1.5; fill: none; }
.jbt-svg .jbt-stroke-steel  { stroke: var(--jbt-steel);   stroke-width: 1.5; fill: none; }
.jbt-svg .jbt-stroke-hair   { stroke: var(--jbt-hairline-strong); stroke-width: 1; fill: none; }
.jbt-svg .jbt-stroke-thick  { stroke-width: 2.25; }
.jbt-svg .jbt-stroke-none   { stroke: none; }

.jbt-svg .jbt-fill-none       { fill: none; }
.jbt-svg .jbt-fill-paper      { fill: var(--jbt-canvas); }
.jbt-svg .jbt-fill-steel      { fill: var(--jbt-steel); }
.jbt-svg .jbt-fill-steel-soft { fill: rgba(20, 120, 180, .14); }

.jbt-svg .jbt-dashed { stroke-dasharray: 4 4; }

/* Wave/arc paths — small flourish */
.jbt-svg .jbt-wave,
.jbt-svg .jbt-wave-sm {
  stroke-linecap: round;
}

.jbt-svg .jbt-wave    { stroke-width: 1.5; opacity: .7; }
.jbt-svg .jbt-wave-sm { stroke-width: 1.25; opacity: .85; }

/* Figure caption — trade-journal voice */
.jbt-figure-cap {
  font-family: var(--jbt-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--jbt-ash);
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--jbt-hairline-strong);
  max-width: 64ch;
}
.jbt-figure-cap b { color: var(--jbt-steel-deep); font-weight: 600; }

/* ---- Draw-in animation, gated on the IO reveal ---- */
/* Default: lines start invisible (dasharray = perimeter, offset = perimeter).
   When the parent .jbt-reveal gets .is-in, animate to offset=0. */

.jbt-figure .jbt-draw,
.jbt-figure .jbt-draw line,
.jbt-figure .jbt-draw rect,
.jbt-figure .jbt-draw path,
.jbt-figure .jbt-draw circle {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
.jbt-figure.is-in .jbt-draw,
.jbt-figure.is-in .jbt-draw line,
.jbt-figure.is-in .jbt-draw rect,
.jbt-figure.is-in .jbt-draw path,
.jbt-figure.is-in .jbt-draw circle {
  animation: jbt-stroke-draw 1.6s cubic-bezier(.22,.6,.22,1) forwards;
  animation-delay: var(--jbt-draw-delay, 0s);
}
.jbt-figure.is-in .jbt-draw text { animation: jbt-fade-in .8s ease-out forwards; animation-delay: calc(var(--jbt-draw-delay, 0s) + .8s); opacity: 0; }
.jbt-figure .jbt-draw text { opacity: 0; }
.jbt-figure.is-in .jbt-draw text { opacity: 1; }

@keyframes jbt-stroke-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes jbt-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Reveal-on-scroll: figures fade-up like other reveal targets — but we keep
   them out of the hidden-y transform because the SVG content depends on
   stable layout for the animations above. */
.jbt-figure.jbt-reveal { opacity: 0; transform: none; transition: opacity .9s ease; }
.jbt-figure.jbt-reveal.is-in { opacity: 1; }

/* Respect reduced motion — show figures fully drawn, no animation */
@media (prefers-reduced-motion: reduce) {
  .jbt-figure .jbt-draw,
  .jbt-figure .jbt-draw line,
  .jbt-figure .jbt-draw rect,
  .jbt-figure .jbt-draw path,
  .jbt-figure .jbt-draw circle { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .jbt-figure .jbt-draw text { opacity: 1; animation: none; }
  .jbt-figure.jbt-reveal { opacity: 1; transition: none; }
}

@media (max-width: 640px) {
  .jbt-figure--diagram { padding: 1rem .9rem .9rem; border-radius: 10px; }
  .jbt-svg-title { font-size: 9.5px; }
  .jbt-svg-sub   { font-size: 9.5px; }
  .jbt-figure-cap { font-size: 13.5px; }
}
