/* ============================================================
   DeviLabs — Blog system (index + article template)
   Editorial light theme, identical tokens to /geo and /about.
   Warm paper, pine ink, antique gold accent.
   Type: Playfair Display (display) / DM Sans (body) /
         Space Grotesk (micro-labels).
   Prefix: bl-  (blog)   — no collisions with dl-nav / dl-footer.
   ============================================================ */

:root {
  --paper:        #FBFAF6;
  --paper-warm:   #F5F1E8;
  --paper-cool:   #F1F4F0;
  --white:        #FFFFFF;

  --ink:          #10190F;
  --ink-body:     #3C463C;
  --ink-muted:    #5F6A5F;   /* darker than /geo's #6B756B so 11px labels pass 4.5:1 on warm paper */

  --pine:         #14532D;
  --pine-deep:    #0C3A1E;
  --pine-tint:    rgba(20,83,45,0.07);

  --gold:         #7B5F2C;   /* text-safe antique gold (5.3:1 on --paper-warm); --gold-soft stays decorative */
  --gold-soft:    #C6A961;

  --line:         rgba(16,25,15,0.13);
  --line-soft:    rgba(16,25,15,0.07);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-micro:   'Space Grotesk', 'DM Sans', sans-serif;

  --max-width:    1180px;
  --read-width:   700px;
  --gutter:       clamp(22px, 5vw, 48px);
  --section-pad:  clamp(64px, 9vw, 128px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(20,83,45,0.14); color: var(--ink); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--pine); color: #fff;
  padding: 12px 20px; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Motion (same curve as the rest of the site) ─────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
/* If JS never runs, nothing may stay invisible. */
.no-js .reveal { opacity: 1; transform: none; }

/* ── Typographic furniture ───────────────────────────────── */
.bl-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-micro);
  font-size: 11px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
}
.bl-eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.bl-eyebrow--plain::before { display: none; }

.bl-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.bl-h1 em { font-style: italic; color: var(--pine); }
.bl-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -.016em;
  color: var(--ink);
  text-wrap: balance;
}
.bl-h2 em { font-style: italic; color: var(--pine); }

.bl-grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

/* Buttons — identical to geo-btn */
.bl-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 15.5px; font-weight: 600; letter-spacing: .005em;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--pine); color: #fff;
  border: 1px solid var(--pine);
  cursor: pointer;
  transition: background .3s ease, transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
  box-shadow: 0 10px 26px -14px rgba(12,58,30,.6);
}
.bl-btn::after { content: ""; width: 16px; height: 1px; background: currentColor; transition: width .3s cubic-bezier(.16,1,.3,1); }
.bl-btn:hover { background: var(--pine-deep); transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(12,58,30,.65); }
.bl-btn:hover::after { width: 24px; }
.bl-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.bl-btn--ghost:hover { background: transparent; border-color: var(--pine); color: var(--pine); box-shadow: none; }

/* Micro meta row: date · read time */
.bl-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-family: var(--font-micro);
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.bl-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-soft); }

/* Category tag */
.bl-tag {
  display: inline-block;
  font-family: var(--font-micro);
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pine);
  background: var(--pine-tint);
  border: 1px solid rgba(20,83,45,.14);
  padding: 5px 10px; border-radius: 999px;
  white-space: nowrap;
}

/* ============================================================
   INDEX  (/blog)
   ============================================================ */
.bl-hub-hero {
  position: relative;
  padding: clamp(120px, 16vh, 190px) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(20,83,45,.10), transparent 62%),
    radial-gradient(760px 520px at 6% 20%, rgba(198,169,97,.13), transparent 64%),
    linear-gradient(180deg, #FDFCF9 0%, var(--paper) 60%, var(--paper) 100%);
  overflow: hidden;
}
.bl-hub-hero .container { position: relative; z-index: 1; }
.bl-hub-hero__sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.8vw, 19.5px);
  line-height: 1.7;
  max-width: 56ch;
}
.bl-hub-hero__sub a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }

/* Filters */
.bl-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.bl-filter {
  font-family: var(--font-micro);
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.bl-filter:hover { color: var(--pine); border-color: var(--pine); }
.bl-filter[aria-pressed="true"] { color: #fff; background: var(--pine); border-color: var(--pine); }
.bl-filter__n { margin-left: 6px; font-weight: 500; }

/* Section heading rule (editorial numbering, like geo-rule) */
.bl-rule {
  display: flex; align-items: baseline; gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 44px);
  font-family: var(--font-micro);
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.bl-rule__num { color: var(--gold); }
.bl-rule__label { color: var(--ink-muted); }

.bl-section { padding: clamp(40px, 6vw, 72px) 0; position: relative; }
.bl-section--warm { background: var(--paper-warm); }
.bl-section--hair { border-top: 1px solid var(--line-soft); }

/* Featured (latest) */
.bl-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 1px 1px rgba(16,25,15,.03), 0 30px 60px -38px rgba(16,25,15,.35);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
.bl-featured:hover { transform: translateY(-3px); box-shadow: 0 1px 1px rgba(16,25,15,.03), 0 40px 70px -40px rgba(16,25,15,.45); }
.bl-featured__img { aspect-ratio: 1200 / 630; border-radius: 4px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--paper-warm); }
.bl-featured__img img { width: 100%; height: 100%; object-fit: cover; }
.bl-featured__body { padding: 6px 4px; }
.bl-featured__body h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.016em;
  color: var(--ink); margin: 16px 0 14px; text-wrap: balance;
}
.bl-featured__body p { font-size: 16.5px; line-height: 1.7; color: var(--ink-body); max-width: 52ch; }
.bl-featured__cta, .bl-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-size: 14.5px; font-weight: 600; color: var(--pine);
}
.bl-featured__cta svg, .bl-card__cta svg { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.bl-featured:hover .bl-featured__cta svg, .bl-card:hover .bl-card__cta svg { transform: translateX(4px); }

/* Grid of cards */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.bl-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .3s ease;
}
.bl-card:hover { transform: translateY(-4px); border-color: rgba(20,83,45,.25); box-shadow: 0 30px 50px -36px rgba(16,25,15,.4); }
.bl-card[hidden] { display: none; }
.bl-card__img { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--paper-warm); border-bottom: 1px solid var(--line-soft); }
.bl-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.bl-card:hover .bl-card__img img { transform: scale(1.03); }
.bl-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.bl-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bl-card__body h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 21px; line-height: 1.25; letter-spacing: -.01em;
  color: var(--ink); margin: 10px 0 10px; text-wrap: balance;
}
.bl-card__body p { font-size: 15px; line-height: 1.65; color: var(--ink-body); flex: 1; }
.bl-card__cta { margin-top: 16px; font-size: 13.5px; }
.bl-empty { display: none; padding: 28px 0; color: var(--ink-muted); font-size: 15.5px; }
.bl-empty.is-visible { display: block; }

/* Research panels (authority pages) */
.bl-research { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.bl-panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(22px, 2.6vw, 32px);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
.bl-panel:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -36px rgba(16,25,15,.4); }
.bl-panel h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; color: var(--ink); margin: 12px 0 10px; }
.bl-panel p { font-size: 15.5px; line-height: 1.65; }
.bl-panel__specs { display: flex; gap: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.bl-panel__spec b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1; color: var(--pine); }
.bl-panel__spec span { display: block; margin-top: 6px; font-family: var(--font-micro); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }

/* Index CTA */
.bl-hub-cta { position: relative; padding: var(--section-pad) 0; background: var(--paper-warm); border-top: 1px solid var(--line-soft); overflow: hidden; }
.bl-hub-cta .container { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.bl-hub-cta p { margin: 18px auto 30px; max-width: 56ch; font-size: 17px; }

/* ============================================================
   ARTICLE
   ============================================================ */
.bl-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--pine); z-index: 950; transition: width .12s linear; }

.bl-post-hero {
  position: relative;
  padding: clamp(118px, 15vh, 176px) 0 clamp(34px, 5vw, 54px);
  background:
    radial-gradient(1000px 560px at 82% -10%, rgba(20,83,45,.09), transparent 62%),
    radial-gradient(700px 480px at 4% 24%, rgba(198,169,97,.12), transparent 64%),
    linear-gradient(180deg, #FDFCF9 0%, var(--paper) 70%);
  overflow: hidden;
}
.bl-post-hero .container { position: relative; z-index: 1; max-width: 900px; }

.bl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-micro); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 26px; }
.bl-crumbs a:hover { color: var(--pine); }
.bl-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.bl-crumbs li + li::before { content: "/"; opacity: .45; }
.bl-crumbs ol { display: contents; list-style: none; }
.bl-crumbs li:last-child { color: var(--gold); }

.bl-post-hero .bl-eyebrow { margin-bottom: 18px; }
.bl-dek { margin-top: 20px; font-size: clamp(17.5px, 1.9vw, 21px); line-height: 1.6; color: var(--ink-body); max-width: 60ch; }

.bl-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.bl-byline__who { display: flex; align-items: center; gap: 12px; }
.bl-byline__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--paper-warm); }
.bl-byline__name { font-size: 15px; font-weight: 600; color: var(--ink); }
.bl-byline__name a:hover { color: var(--pine); }
.bl-byline__role { font-size: 13px; color: var(--ink-muted); }
.bl-byline .bl-meta { margin-left: auto; }
.bl-byline time { color: var(--ink-body); }

/* Layout: sticky TOC + reading column */
.bl-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, var(--read-width));
  gap: clamp(36px, 5vw, 76px);
  justify-content: center;
  padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 7vw, 96px);
}
.bl-toc { position: sticky; top: 104px; align-self: start; }
.bl-toc__label { font-family: var(--font-micro); font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.bl-toc ol { list-style: none; }
.bl-toc li + li { margin-top: 2px; }
.bl-toc a { display: block; padding: 7px 0 7px 14px; font-size: 14px; line-height: 1.4; color: var(--ink-muted); border-left: 1px solid var(--line-soft); transition: color .2s ease, border-color .2s ease; }
.bl-toc a:hover { color: var(--ink); }
.bl-toc a.is-active { color: var(--pine); border-left-color: var(--pine); font-weight: 600; }
.bl-toc--mobile { display: none; }

/* Key takeaways */
.bl-takeaways {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pine);
  border-radius: 4px;
  padding: 22px 26px 22px;
  margin-bottom: 40px;
  box-shadow: 0 1px 1px rgba(16,25,15,.03), 0 24px 44px -36px rgba(16,25,15,.3);
}
.bl-takeaways__label { font-family: var(--font-micro); font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.bl-takeaways ul { list-style: none; }
.bl-takeaways li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.bl-takeaways li + li { margin-top: 10px; }
.bl-takeaways li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--pine); }

/* Prose */
.bl-prose { font-size: 17.5px; line-height: 1.78; color: var(--ink-body); }
.bl-prose > * + * { margin-top: 1.25em; }
.bl-prose h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(27px, 3vw, 34px); line-height: 1.16; letter-spacing: -.014em;
  color: var(--ink); scroll-margin-top: 96px;
  margin-top: 2.3em; padding-top: 1.1em; border-top: 1px solid var(--line-soft);
  text-wrap: balance;
}
.bl-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.bl-prose h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.25; letter-spacing: -.008em;
  color: var(--ink); scroll-margin-top: 96px; margin-top: 1.9em;
}
.bl-prose h4 { font-family: var(--font-body); font-weight: 600; font-size: 17px; color: var(--ink); margin-top: 1.6em; }
.bl-prose h2 + p, .bl-prose h3 + p { margin-top: .8em; }
.bl-prose p.bl-answer { color: var(--ink); }
.bl-prose a { color: var(--pine); text-decoration: underline; text-decoration-color: rgba(20,83,45,.35); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease; }
.bl-prose a:hover { text-decoration-color: var(--pine); }
.bl-prose ul, .bl-prose ol { padding-left: 1.3em; }
.bl-prose ul { list-style: disc; }
.bl-prose ol { list-style: decimal; }
.bl-prose li + li { margin-top: .5em; }
.bl-prose li::marker { color: var(--gold); }
.bl-prose strong { color: var(--ink); }
.bl-prose code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--paper-warm); border: 1px solid var(--line-soft); border-radius: 3px; padding: .1em .4em; color: var(--ink); }
.bl-prose pre { background: var(--ink); color: #E9EFE9; border-radius: 6px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.bl-prose pre code { background: transparent; border: 0; padding: 0; color: inherit; font-size: inherit; }
.bl-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.bl-prose figure figcaption { font-size: 13.5px; color: var(--ink-muted); margin-top: 10px; }
.bl-prose img { border-radius: 4px; border: 1px solid var(--line-soft); }
.bl-prose sup a { text-decoration: none; font-weight: 600; }

/* Definition (X is…) */
.bl-def { background: var(--paper-warm); border-left: 3px solid var(--gold-soft); padding: 16px 20px; border-radius: 0 4px 4px 0; }
.bl-def p { margin: 0; color: var(--ink); }
.bl-def dfn { font-style: normal; font-weight: 600; }

/* Callouts */
.bl-callout { position: relative; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--pine); border-radius: 4px; padding: 18px 22px 18px 22px; font-size: 16px; line-height: 1.7; }
.bl-callout > * + * { margin-top: .7em; }
.bl-callout__label { display: block; font-family: var(--font-micro); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pine); margin-bottom: 8px; }
.bl-callout--tip { border-left-color: var(--gold); }
.bl-callout--tip .bl-callout__label { color: var(--gold); }
.bl-callout--warning { border-left-color: #9A3B2E; }
.bl-callout--warning .bl-callout__label { color: #9A3B2E; }
.bl-callout--experience { background: var(--paper-warm); border-left-color: var(--gold); }
.bl-callout--experience .bl-callout__label { color: var(--gold); }

/* Stat highlight */
.bl-stat { display: grid; grid-template-columns: auto 1fr; gap: 18px 24px; align-items: baseline; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.bl-stat__value { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5vw, 54px); line-height: 1; color: var(--pine); letter-spacing: -.02em; }
.bl-stat__label { font-size: 16px; line-height: 1.55; color: var(--ink); }
.bl-stat__source { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-muted); }
.bl-stat__source a { color: var(--ink-muted); }
.bl-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.bl-stat-row .bl-stat { grid-template-columns: 1fr; gap: 8px; }

/* Pull quote */
.bl-pull { margin: 2em 0; padding: 6px 0 6px 26px; border-left: 2px solid var(--gold-soft); }
.bl-pull p { font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.35; color: var(--ink); }
.bl-pull cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--font-micro); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }

/* Steps */
.bl-steps { list-style: none; padding: 0; counter-reset: step; }
.bl-steps > li { position: relative; padding: 0 0 22px 56px; counter-increment: step; }
.bl-steps > li + li { margin-top: 0; }
.bl-steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-micro); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--pine); background: var(--pine-tint); border: 1px solid rgba(20,83,45,.16); }
.bl-steps > li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 0; width: 1px; background: var(--line-soft); }
.bl-steps > li:last-child::after { display: none; }
.bl-steps > li > strong:first-child { display: block; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.bl-steps > li p { margin: 0; }
.bl-steps > li p + p { margin-top: .6em; }

/* Tables */
.bl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.bl-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.bl-prose th, .bl-prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.bl-prose th { font-family: var(--font-micro); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.bl-prose tr:last-child td { border-bottom: 0; }
.bl-prose td:first-child { color: var(--ink); font-weight: 600; }

/* FAQ accordion */
.bl-faq { margin-top: 2.3em; padding-top: 1.1em; border-top: 1px solid var(--line-soft); }
.bl-faq h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.bl-faq__list { margin-top: 22px; border-top: 1px solid var(--line); }
.bl-faq__item { border-bottom: 1px solid var(--line); }
.bl-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); transition: color .2s ease; }
.bl-faq__q:hover { color: var(--pine); }
.bl-faq__chevron { flex-shrink: 0; width: 18px; height: 18px; transition: transform .35s cubic-bezier(.16,1,.3,1); color: var(--gold); }
.bl-faq__q[aria-expanded="true"] .bl-faq__chevron { transform: rotate(180deg); }
.bl-faq__panel { overflow: hidden; max-height: 0; transition: max-height .45s cubic-bezier(.16,1,.3,1); }
.bl-faq__panel[data-open] { max-height: none; }
.bl-faq__answer { padding: 0 0 22px; font-size: 16px; line-height: 1.7; max-width: 70ch; }
.bl-faq__answer p + p { margin-top: .7em; }
.no-js .bl-faq__panel { max-height: none; }

/* Sources */
.bl-sources { margin-top: 2.6em; padding-top: 1.2em; border-top: 1px solid var(--line-soft); }
.bl-sources h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 24px; }
.bl-sources ol { margin-top: 14px; padding-left: 1.4em; font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); }
.bl-sources li + li { margin-top: 8px; }
.bl-sources a { color: var(--ink-body); word-break: break-word; }
.bl-sources a:hover { color: var(--pine); }

/* How this was made */
.bl-made { margin-top: 2.2em; font-size: 14px; line-height: 1.6; color: var(--ink-muted); padding: 14px 18px; background: var(--paper-warm); border-radius: 4px; }
.bl-made a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }

/* CTA block */
.bl-cta { position: relative; margin-top: 3em; padding: clamp(26px, 3.4vw, 40px); background: var(--pine); color: #fff; border-radius: 6px; overflow: hidden; }
.bl-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% -20%, rgba(198,169,97,.28), transparent 60%); pointer-events: none; }
.bl-cta > * { position: relative; }
.bl-cta .bl-eyebrow { color: var(--gold-soft); }
.bl-cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(25px, 3vw, 34px); line-height: 1.14; color: #fff; margin: 14px 0 12px; text-wrap: balance; }
.bl-cta h2 em { color: var(--gold-soft); font-style: italic; }
.bl-cta p { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 52ch; }
.bl-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bl-cta .bl-btn { background: #fff; color: var(--pine); border-color: #fff; box-shadow: none; }
.bl-cta .bl-btn:hover { background: #F3EFE4; border-color: #F3EFE4; }
.bl-cta .bl-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.bl-cta .bl-btn--ghost:hover { border-color: #fff; color: #fff; }

/* Author box */
.bl-author { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start; margin-top: 3em; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.bl-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 1px solid var(--line); }
.bl-author__label { font-family: var(--font-micro); font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.bl-author__name { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--ink); line-height: 1.2; }
.bl-author__name a:hover { color: var(--pine); }
.bl-author p { margin-top: 10px; font-size: 15.5px; line-height: 1.65; }
.bl-author__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--pine); }
.bl-author__links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20,83,45,.35); }

/* Related posts */
.bl-related { padding: clamp(44px, 6vw, 76px) 0; background: var(--paper-warm); border-top: 1px solid var(--line-soft); }
.bl-related .bl-grid { margin-top: 0; }

/* Article footer nav (back to blog) */
.bl-backlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 2.6em; font-family: var(--font-micro); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.bl-backlink:hover { color: var(--pine); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .bl-layout { grid-template-columns: minmax(0, var(--read-width)); }
  .bl-toc--desktop { display: none; }
  .bl-toc--mobile { display: block; position: static; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
  .bl-toc--mobile summary { list-style: none; cursor: pointer; padding: 14px 18px; font-family: var(--font-micro); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
  .bl-toc--mobile summary::-webkit-details-marker { display: none; }
  .bl-toc--mobile summary::after { content: "+"; font-size: 16px; color: var(--gold); }
  .bl-toc--mobile[open] summary::after { content: "–"; }
  .bl-toc--mobile ol { padding: 4px 18px 14px; }
  .bl-toc--mobile a { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-featured { grid-template-columns: 1fr; }
  .bl-research { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-prose { font-size: 17px; }
  .bl-byline .bl-meta { margin-left: 0; width: 100%; }
  .bl-author { grid-template-columns: 1fr; }
  .bl-author img { width: 72px; height: 72px; }
  .bl-stat { grid-template-columns: 1fr; gap: 8px; }
  .bl-steps > li { padding-left: 48px; }
  .bl-takeaways { padding: 18px 18px; }
  .bl-callout { padding: 16px 16px; }
  .bl-filters { gap: 6px; }
  .bl-filter { padding: 8px 12px; font-size: 11px; }
}
