/* tools/blog/shell.css: header (#cb-head) and footer (#site-foot) rules for blog pages. A separate source from
   blog.css (no copy of each other); core writes <dist>/blog/blog.css = shell.css + "
" + blog.css (CONTRACT 9b.3).
   Source: lab/blog/_shell/shell.css (curated from dist/loft-conversions-harrow.html inline CSS and dist/_ds/.../styles.css,
   line refs below), plus the loft <style> rules the extracted header/footer and page chrome still need (last section).
   Loads after dist/_ds/industry-e395c27d-7b23-4a21-a569-884d43915958/styles.css. */

/* tokens used by header.html and footer.html: dist/loft-conversions-harrow.html:310 (verbatim) */
:root { --hi: #f0b100; --hi-600: #d19a00; --hi-700: #ad7f00; --wa: #10695a; --wa-600: #0b5548; --wa-700: #08423a; }
/* tokens used: dist/_ds/.../styles.css:3-63 (verbatim values, trimmed to the ones used here) */
:root {
  --color-bg: #f2f2f3;
  --color-text: #1d1f20;
  --color-accent: #557a9e;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);
  --color-neutral-400: #b7b7ba;
  --color-neutral-900: #2b2b2d;
  --font-heading: "Barlow Condensed", "Barlow Condensed Fallback", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", "Barlow Fallback", system-ui, sans-serif;
  --radius-md: 4px;
}

/* sticky header offset from the sale bar: dist/for-sale.js:56 uses !important there; this is the fallback (not verbatim) */
#cb-head { top: var(--cb-sale-h, 0px); }

/* — shared nav base: styles.css:235-245 (verbatim) — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — blueprint frame and registration marks: styles.css:72-76, 82-94 (verbatim) — */
.blueprint {
  position: relative;
  border: 1px solid var(--color-divider);
  border-radius: 0;
}
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: var(--mark, color-mix(in srgb, var(--color-text) 55%, transparent));
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }
/* styles.css:321-322 (verbatim): the live site switches the registration marks OFF globally (cb-no-marks).
   Keep it so the shell matches the live site. */
.corner { display: none !important; }

/* — header (#cb-head) — */
#cb-head .btn, #cb-head [data-cta], #svc-cta .btn, #svc-cta [data-cta], #cb-bar .btn, #cb-bar [data-cta] { --mark: transparent; }
#site-foot .btn, #site-foot [data-cta] { --mark: color-mix(in srgb, #f2f2f3 72%, transparent); }
/* loft:324 and loft:326 (verbatim, selector list trimmed to the footer parts) */
.btn, [data-cta], #site-foot a { transition: letter-spacing 190ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 180ms ease; }
.btn:hover, #site-foot a[href]:hover { letter-spacing: 0.06em; }
/* ring-now block: loft:337-340 (verbatim) */
[data-ring] { display: flex; overflow: hidden; max-width: 0; opacity: 0; margin-left: 0; transition: max-width 260ms cubic-bezier(0.2, 0.7, 0.3, 1), margin-left 260ms cubic-bezier(0.2, 0.7, 0.3, 1), opacity 190ms ease; }
.nav > a[href^="tel:"] > span:first-child > span:first-child { transition: letter-spacing 220ms ease; }
.nav > a[href^="tel:"]:hover > span:first-child > span:first-child { letter-spacing: 0.1em; }
.nav > a[href^="tel:"]:hover [data-ring] { max-width: 40px; margin-left: 18px; opacity: 1; }
/* nav underline on hover: loft:342-344 (verbatim) */
.nav > span > a { position: relative; }
.nav > span > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: color-mix(in srgb, #f2f2f3 60%, transparent); transform: scaleX(0); transform-origin: left center; transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.nav > span > a:hover::after { transform: scaleX(1); }
/* keyframes used by the tel CTA: loft:346-349 (verbatim) */
@keyframes cbwave { 0%, 100% { opacity: 1; } 45% { opacity: 0.22; } }
@keyframes cbfade { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes cbring { 0%, 90%, 100% { transform: none; } 92.5% { transform: translateY(-2px); } 95% { transform: none; } 97.5% { transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { [style*="animation"] { animation: none !important; } }

/* — header responsive, 1024px: loft:369-387 (verbatim) — */
@media (max-width: 1024px) {
  #cb-head .nav { flex-wrap: wrap !important; align-items: center !important; }
  #cb-head > div { padding-left: 0 !important; }
  #cb-head .nav-brand { flex: 1 1 auto !important; padding: 14px 16px 14px 20px !important; }
  #cb-head .nav > a[href^="tel:"] { flex: 0 0 auto !important; align-self: stretch !important; gap: 12px; }
  #cb-head .nav > a[href^="tel:"] [data-ring] {
    order: -1 !important; max-width: 40px !important; margin-left: 0 !important; opacity: 1 !important;
  }
  #cb-head .nav > span:not(.nav-brand) {
    order: 3 !important; flex: 1 1 100% !important; flex-wrap: nowrap !important;
    gap: 0 !important; padding: 0 !important; margin: 0 !important;
    overflow-x: auto !important; scrollbar-width: none;
    border-top: 1px solid color-mix(in srgb, #f2f2f3 22%, transparent);
  }
  #cb-head .nav > span:not(.nav-brand) > a { flex: none !important; padding: 13px 16px !important; }
}

/* — header responsive, 760px (burger and folding link row), footer grids: loft:413-417, 425-476, 482-495 (verbatim) — */
@media (max-width: 760px) {
  [style*="repeat(4, 1fr)"], [style*="repeat(3, 1fr)"], [style*="repeat(2, 1fr)"],
  [style*="repeat(2, minmax(0, 1fr))"], [style*="repeat(2, minmax(0px, 1fr))"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="repeat(4, minmax(0, 1fr))"],
  [style*="repeat(4, minmax(0px, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .btn, .seg-opt, .radio, .input, label[role="button"], [role="radio"] { min-height: 44px !important; }
  #cb-nav-toggle { display: flex !important; order: -1 !important; margin-left: 4px !important; }
  #cb-head .nav-brand { flex: 0 1 auto !important; min-width: 0 !important; padding: 12px 8px 12px 4px !important; }
  #cb-head .nav-brand > img { height: 18px !important; }
  #cb-head .nav-brand > span { width: auto !important; letter-spacing: 0.12em !important; text-align-last: auto !important; }
  #cb-head .nav > a[href^="tel:"] { margin-left: auto !important; }
  #cb-head .nav > span:not(.nav-brand) {
    display: flex !important; flex-wrap: wrap !important;
    overflow: hidden !important;
    max-height: 0; opacity: 0; visibility: hidden;
    transition: max-height 280ms cubic-bezier(.4, 0, .2, 1),
                opacity 180ms linear,
                visibility 0s linear 280ms;
  }
  #cb-head[data-open] .nav > span:not(.nav-brand) {
    opacity: 1; visibility: visible;
    transition: max-height 280ms cubic-bezier(.4, 0, .2, 1),
                opacity 200ms linear 40ms,
                visibility 0s linear;
  }
  #cb-nav-toggle svg path {
    transform-box: view-box; transform-origin: 12px 12px;
    transition: transform 280ms cubic-bezier(.4, 0, .2, 1), opacity 140ms linear;
  }
  #cb-nav-toggle[aria-expanded="true"] .cb-bar-1 { transform: rotate(45deg) translateY(6px); }
  #cb-nav-toggle[aria-expanded="true"] .cb-bar-2 { opacity: 0; }
  #cb-nav-toggle[aria-expanded="true"] .cb-bar-3 { transform: rotate(-45deg) translateY(-6px); }
  @media (prefers-reduced-motion: reduce) {
    #cb-head .nav > span:not(.nav-brand),
    #cb-nav-toggle svg path { transition-duration: 1ms !important; }
  }
  #cb-head .nav > span:not(.nav-brand) > a {
    flex: 1 1 44% !important;
    border-top: 1px solid color-mix(in srgb, #f2f2f3 18%, transparent);
  }
  #cb-head .nav-brand > img { height: 19px !important; }
  #cb-head .nav-brand > span { width: auto !important; letter-spacing: 0.14em !important; text-align-last: auto !important; }
  #cb-head .nav-brand > span { display: none !important; }
  #cb-head .nav > a[href^="tel:"] {
    border-left: 0 !important; flex: 0 1 auto !important; min-width: 0 !important;
    margin-left: auto !important; justify-content: flex-end !important;
    gap: 9px !important; padding: 8px 12px !important;
  }
  #cb-head .nav > a[href^="tel:"] [style*="0.14em"] { font-size: 9px !important; letter-spacing: 0.1em !important; }
  #cb-head .nav > a[href^="tel:"] [style*="2.4vw"] { font-size: 19px !important; line-height: 21px !important; }
  #cb-head .nav > a[href^="tel:"] [data-ring] svg { width: 24px !important; height: 24px !important; }
  #cb-head .nav > a[href^="tel:"] [data-ring] { order: -1 !important; }
  #site-foot [style*="repeat(4, minmax(0px, 1fr))"] > a,
  #site-foot [style*="repeat(4, minmax(0, 1fr))"] > a {
    border-left: 0 !important;
    border-top: 1px solid color-mix(in srgb, #f2f2f3 30%, transparent) !important;
  }
  #site-foot [style*="repeat(4, minmax(0px, 1fr))"] > a:nth-child(even),
  #site-foot [style*="repeat(4, minmax(0, 1fr))"] > a:nth-child(even) {
    border-left: 1px solid color-mix(in srgb, #f2f2f3 30%, transparent) !important;
  }
  #site-foot [style*="repeat(4, minmax(0px, 1fr))"] > a:nth-child(-n+2),
  #site-foot [style*="repeat(4, minmax(0, 1fr))"] > a:nth-child(-n+2) { border-top: 0 !important; }
  #site-foot [style*="text-align: right"] { text-align: left !important; }
}

/* — footer trade cells: loft:591-615 (verbatim) — */
#foot-trades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#foot-trades > a, #foot-trades > span { border-top: 1px solid color-mix(in srgb, #f2f2f3 30%, transparent); border-left: 1px solid color-mix(in srgb, #f2f2f3 30%, transparent); }
#foot-trades > *:nth-child(3n+1) { border-left: 0; }
#foot-trades > *:nth-child(-n+3) { border-top: 0; }
@media (max-width: 1024px) {
  #foot-trades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #foot-trades > *:nth-child(n) { border-top: 1px solid color-mix(in srgb, #f2f2f3 30%, transparent); border-left: 1px solid color-mix(in srgb, #f2f2f3 30%, transparent); }
  #foot-trades > *:nth-child(2n+1) { border-left: 0; }
  #foot-trades > *:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 760px) {
  #foot-trades { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #foot-trades > *:nth-child(n) { border-top: 1px solid color-mix(in srgb, #f2f2f3 30%, transparent); border-left: 1px solid color-mix(in srgb, #f2f2f3 30%, transparent); }
  #foot-trades > *:nth-child(2n+1) { border-left: 0 !important; }
  #foot-trades > *:nth-child(-n+2) { border-top: 0 !important; }
  #foot-trades > *:nth-child(9) { grid-column: 1 / -1 !important; justify-content: center !important; }
  #foot-trades-head { flex-wrap: wrap !important; gap: 4px 12px !important; }
  #foot-trades > a, #foot-trades > span { font-size: 17px !important; padding: 12px 14px !important; }
  #foot-trades [data-lf] { display: none !important; }
  #foot-trades [data-ls] { display: inline !important; }
}

/* — mega menu (Trades): loft:641-663 (verbatim) — */
summary[data-mega-summary] { list-style: none; }
summary[data-mega-summary]::-webkit-details-marker { display: none; }
details[data-mega]:not([open]) > [data-mega-panel] { display: none !important; }
details[data-mega][open] > summary [data-mega-chev] { transform: rotate(180deg); }
#cb-head details[data-mega] { position: static; }
.nav > span > details > summary { position: relative; }
.nav > span > details > summary::after {
  content: ""; position: absolute; left: 0; right: 21px; bottom: -5px; height: 1px;
  background: color-mix(in srgb, #f2f2f3 60%, transparent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav > span > details > summary:hover::after { transform: scaleX(1); }
[data-mega-fallback] { display: none; }
@media (max-width: 1024px) {
  #cb-head details[data-mega] { display: none !important; }
  #cb-head [data-mega-fallback] { display: block !important; flex: none !important; padding: 13px 16px !important; }
}

/* — images: loft:638 (verbatim) — */
img, image-slot, image-slot::part(image) { -webkit-user-drag: none; user-drag: none; }

/* ===== live page additions: rules the extracted header/footer and page chrome get from the loft page <style>,
   which blog pages do not carry ===== */
/* smooth in-page jumps, page fade-in that pairs with blog.js's page-leave fade: loft:350-354 (scoped to blog pages) */
html { scroll-behavior: smooth; }
body.cb-blog-page { animation: cbpagein 420ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes cbpagein { from { opacity: 0; } 40% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } body.cb-blog-page { animation: none; } }
/* the Trades summary keeps a visible keyboard ring: loft:532 (scoped to the header) */
#cb-head details summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
/* the burger answers keyboard focus like the links beside it (new; same ring as the summary above) */
#cb-nav-toggle:focus-visible { outline: 2px solid var(--hi); outline-offset: -2px; }
/* reduced motion: the header's inline 220ms slide jumps to its place (new; the header carries the transition inline) */
@media (prefers-reduced-motion: reduce) { #cb-head { transition: none !important; } }

/* tools/blog/blog.css: CraftBuilt blog, design B "Answer First". Source of truth (the lab is reference only).
   Header/footer rules live in tools/blog/shell.css (separate source); core serves shell.css, a newline, then blog.css (CONTRACT 9b.3).
   Order: motion tokens + .v base > direction B tokens (.dir-B) > the six B parts wrapped in .v-<section>-B as
   lab/blog/build.mjs does (lab-only [data-screenshot] hooks removed) > blog additions.
   Runtime vars: --cb-sale-h (for-sale.js), --cb-head-offset and html[data-head-hidden] (blog.js). */

/* ===== motion tokens and .v base rules: lab/blog/base.css:6-13 (tokens moved from :root to .cb-blog) ===== */
.cb-blog {
  --ease-enter: cubic-bezier(.22, 1, .36, 1); --dur-enter: 640ms;
  --ease-exit: cubic-bezier(.4, 0, .2, 1); --dur-exit: 460ms;
  --ease-state: cubic-bezier(.65, 0, .35, 1); --dur-state: 800ms;
}
.v img { max-width: 100%; height: auto; display: block; }
.v *, .v *::before, .v *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { .v *, .v *::before, .v *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; } }

/* ===== direction B: lab/blog/directions/B.css ===== */
/* Direction B · Answer First. Core stylesheet. Spec: directions/B.md. Loop 2: steel only for links, the breadcrumb and the highlighted half of a headline; icons, ticks, rules and lead-ins are ink. */
.dir-B {
  /* colour: light and open. Yellow is the action fill only; steel carries links and the highlighted half of a headline. */
  --dB-paper: #f2f2f3;
  --dB-lift: #fbfbfc;
  --dB-white: #ffffff;
  --dB-tint: color-mix(in srgb, #557a9e 9%, #f2f2f3);
  --dB-tint-2: color-mix(in srgb, #557a9e 16%, #f2f2f3);
  --dB-ink: #1d1f20;
  --dB-ink-2: color-mix(in srgb, #1d1f20 82%, #f2f2f3);
  --dB-ink-3: #54575a;
  --dB-steel: #557a9e;
  --dB-steel-700: #416180;
  --dB-steel-800: #2c455d;
  --dB-steel-300: #b5d9fd;
  --dB-steel-400: #94bce3;
  --dB-char: #2b2b2d;
  --dB-hi: #f0b100;
  --dB-hi-600: #d19a00;
  --dB-hi-700: #ad7f00;
  --dB-line: color-mix(in srgb, #1d1f20 16%, transparent);
  --dB-line-2: color-mix(in srgb, #1d1f20 34%, transparent);
  --dB-lit: color-mix(in srgb, #f2f2f3 26%, transparent);
  --dB-focus: #416180;
  /* space: 4px rhythm */
  --dB-s1: 4px; --dB-s2: 8px; --dB-s3: 12px; --dB-s4: 16px; --dB-s5: 24px; --dB-s6: 32px; --dB-s7: 40px; --dB-s8: 48px; --dB-s10: 64px; --dB-s12: 96px;
  --dB-gutter: clamp(20px, 4vw, 48px);
  --dB-section: clamp(48px, 6vw, 88px);
  /* type */
  --dB-display: "Barlow Condensed", "Barlow Condensed Fallback", system-ui, sans-serif;
  --dB-body: "Barlow", "Barlow Fallback", system-ui, sans-serif;
  --dB-text: 18px;
  --dB-measure: 600px;
  /* sticky top under the sale bar and the header (the lab header hides on scroll down; --cb-head-offset follows it).
     Use top: var(--dB-stick) with transition: var(--dB-stick-tr). The header itself slides in 220ms, so a slower top transition would sit under it. */
  --dB-stick: calc(var(--cb-sale-h, 0px) + var(--cb-head-offset, 0px));
  --dB-stick-tr: top 220ms ease;
  --dB-bar-h: 60px;

  font-family: var(--dB-body);
  font-size: var(--dB-text);
  line-height: 1.68;
  color: var(--dB-ink);
  background: var(--dB-paper);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;

  ::selection { background: var(--dB-ink); color: var(--dB-white); }
  @media (min-width: 761px) { --dB-text: 19px; }

  .dB-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--dB-gutter); }
  .dB-col { width: 100%; max-width: var(--dB-measure); }

  /* ---------- section shells ---------- */
  .dB-band { position: relative; padding-block: var(--dB-section); }
  .dB-band--tint { background: var(--dB-tint); border-block: 1px solid var(--dB-line); }
  .dB-band--char {
    --dB-focus: #fff;
    color: var(--dB-paper);
    background: var(--dB-char);
    border-top: 1px solid var(--dB-lit);
  }
  .dB-band--char .dB-hl { color: var(--dB-steel-400); }
  .dB-band--char :where(a:not(.dB-btn)) { color: var(--dB-steel-300); }

  /* ---------- headings: Barlow Condensed 600 uppercase, split-styled (ink half + steel half) ---------- */
  .dB-h1, .dB-h2, .dB-h3 {
    font-family: var(--dB-display); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.01em; margin: 0; text-wrap: balance; color: var(--dB-ink);
  }
  .dB-h1 { font-size: clamp(46px, 5.6vw, 84px); line-height: 0.98; }
  .dB-h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.02; }
  .dB-h3 { font-size: clamp(25px, 2.2vw, 30px); line-height: 1.08; letter-spacing: 0.02em; }
  .dB-band--char :is(.dB-h1, .dB-h2, .dB-h3) { color: var(--dB-paper); }
  .dB-hl { color: var(--dB-steel-700); }

  /* ---------- text ---------- */
  .dB-lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--dB-ink-2); max-width: 54ch; margin: 0; }
  .dB-prose > * { margin: 0 0 1.05em; }
  .dB-prose > :last-child { margin-bottom: 0; }
  .dB-prose strong { font-weight: 600; }
  :where(a:not(.dB-btn)) { color: var(--dB-steel-700); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 180ms ease, text-decoration-thickness 180ms ease; }
  :where(a:not(.dB-btn):hover) { color: var(--dB-steel-800); text-decoration-thickness: 2px; }
  :focus-visible { outline: 3px solid var(--dB-focus); outline-offset: 2px; }
  /* [CHECK: ...] placeholders stay visible as a quiet marked note */
  .dB-note {
    font-size: 0.87em; line-height: 1.4; color: var(--dB-ink-3);
    background: color-mix(in srgb, #1d1f20 6%, transparent);
    border-bottom: 1px dashed var(--dB-line-2);
    padding: 1px 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  .dB-band--char .dB-note { color: color-mix(in srgb, #f2f2f3 78%, transparent); background: color-mix(in srgb, #f2f2f3 10%, transparent); border-bottom-color: var(--dB-lit); }
  .dB-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dB-s2) var(--dB-s5); margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.3; color: var(--dB-ink-2); }
  .dB-meta li { display: inline-flex; align-items: center; gap: var(--dB-s2); }
  .dB-meta svg { width: 16px; height: 16px; flex: none; fill: var(--dB-ink-3); }

  /* ---------- icons ---------- */
  .dB-ico { width: 1em; height: 1em; flex: none; fill: currentColor; }

  /* ---------- buttons: yellow fill with black text is the one primary action ---------- */
  .dB-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--dB-s3);
    min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 0;
    font-family: var(--dB-display); font-weight: 600; font-size: 19px; line-height: 1.1;
    letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
    color: #000; background: var(--dB-hi); cursor: pointer;
    transition: background-color 220ms ease, letter-spacing 220ms ease, transform 120ms ease;
  }
  .dB-btn:hover { background: var(--dB-hi-600); letter-spacing: 0.055em; }
  .dB-btn:active { transform: translateY(1px); }
  .dB-btn svg { width: 16px; height: 16px; fill: currentColor; transition: transform 220ms ease; }
  .dB-btn:hover svg { transform: translateX(3px); }
  .dB-btn--line { background: transparent; color: var(--dB-ink); border-color: var(--dB-line-2); }
  .dB-btn--line:hover { background: color-mix(in srgb, #1d1f20 7%, transparent); }
  .dB-band--char .dB-btn--line { color: var(--dB-paper); border-color: var(--dB-lit); }
  .dB-band--char .dB-btn--line:hover { background: color-mix(in srgb, #f2f2f3 10%, transparent); }
  .dB-btn--block { width: 100%; }

  /* ---------- capsule: the answer that opens a section (type on the section's own tint, no box) ---------- */
  .dB-capsule { margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--dB-ink); }
  .dB-capsule strong { font-weight: 700; color: var(--dB-ink); }

  /* ---------- card: hairline, flat, square ---------- */
  .dB-card { background: var(--dB-lift); border: 1px solid var(--dB-line-2); border-radius: 0; padding: var(--dB-s5); }
  .dB-card--hover { transition: border-color 220ms ease, transform 220ms ease; }
  .dB-card--hover:hover { border-color: var(--dB-ink); transform: translateY(-2px); }

  /* ---------- figure ---------- */
  .dB-fig { margin: 0; }
  .dB-fig img { width: 100%; height: auto; display: block; border: 1px solid var(--dB-line); background: var(--dB-tint); }
  .dB-fig figcaption { margin-top: var(--dB-s3); font-size: 15px; line-height: 1.45; color: var(--dB-ink-3); max-width: 62ch; }

  /* ---------- FAQ: native details, question as the whole tap row ---------- */
  .dB-faq { border-top: 1px solid var(--dB-line-2); }
  .dB-faq details { border-bottom: 1px solid var(--dB-line-2); }
  .dB-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--dB-s4);
    min-height: 64px; padding: var(--dB-s3) 0; cursor: pointer; list-style: none;
    font-family: var(--dB-display); font-weight: 600; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase;
    transition: color 180ms ease;
  }
  .dB-faq summary::-webkit-details-marker { display: none; }
  .dB-faq summary::after {
    content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
    border-right: 3px solid var(--dB-ink); border-bottom: 3px solid var(--dB-ink);
    transform: translateY(-3px) rotate(45deg);
    transition: transform var(--dur-state, 800ms) var(--ease-state, ease-in-out);
  }
  .dB-faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
  .dB-faq summary:hover { color: var(--dB-ink-2); }
  .dB-faq .dB-faq-a { padding: 0 0 var(--dB-s5); max-width: var(--dB-measure); }

  /* ---------- fields: recessed, square ---------- */
  .dB-field {
    display: flex; align-items: center; gap: var(--dB-s3); min-height: 56px; padding: 0 var(--dB-s4);
    background: var(--dB-white); border: 1px solid var(--dB-line-2); border-radius: 0;
    box-shadow: inset 0 2px 3px color-mix(in srgb, #1d1f20 10%, transparent);
    transition: border-color 220ms ease;
  }
  .dB-field:focus-within { border-color: var(--dB-ink); outline: 3px solid var(--dB-focus); outline-offset: 2px; }
  .dB-field input { flex: 1 1 auto; min-width: 0; min-height: 52px; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--dB-ink); outline: none; }
  .dB-field svg { width: 18px; height: 18px; flex: none; fill: var(--dB-ink-3); }

  /* ---------- answer card: a question, its short answer, one link (guide feeds, home) ---------- */
  .dB-answer { display: flex; flex-direction: column; gap: var(--dB-s3); background: var(--dB-lift); border: 1px solid var(--dB-line-2); padding: var(--dB-s5); color: inherit; text-decoration: none; }
  .dB-answer .dB-h3 { font-size: clamp(25px, 2.2vw, 30px); }
  .dB-answer p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--dB-ink-2); }

  /* ---------- signature visual: the head-height gauge (SVG roof section with a dimension line) ---------- */
  .dB-gauge { display: block; width: 100%; height: auto; overflow: visible; }
  .dB-gauge text { font-family: var(--dB-body); fill: var(--dB-ink); }
  .dB-gauge .g-roof { fill: none; stroke: var(--dB-ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
  .dB-gauge .g-ridge { fill: var(--dB-ink); }
  .dB-gauge .g-joist { fill: var(--dB-ink); }
  .dB-gauge .g-hatch { stroke: var(--dB-paper); stroke-width: 2; }
  .dB-gauge .g-floor { fill: color-mix(in srgb, #1d1f20 10%, transparent); }
  .dB-gauge .g-lead { stroke: var(--dB-line-2); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
  .dB-gauge .g-dim { stroke: var(--dB-ink); stroke-width: 3.5; stroke-linecap: butt; fill: none; }
  .dB-gauge .g-tick { stroke: var(--dB-ink-3); stroke-width: 2; }
  .dB-gauge .g-chip { fill: var(--dB-char); }
  .dB-gauge .g-chip-text { fill: var(--dB-paper); font-family: var(--dB-display); font-weight: 600; text-transform: uppercase; }
  .dB-gauge .g-cap { font-size: 14px; font-weight: 500; fill: var(--dB-ink-2); }
  .dB-gauge .g-rafter { fill: var(--dB-ink); }
  .dB-gauge .g-board { fill: color-mix(in srgb, #1d1f20 46%, transparent); }
  .dB-gauge .g-cover { fill: none; stroke: var(--dB-ink-3); stroke-width: 2.5; stroke-linejoin: miter; }
  .dB-gauge .g-wall { fill: color-mix(in srgb, #1d1f20 22%, transparent); }
  .dB-gauge .g-dim-end { stroke-width: 2.5; }
  /* the gauge's one moment: armed by script (never without it, never under reduced motion), then on first view the
     dimension line draws from the joists up to the ridge (enter curve), then the chip fades in; once */
  .dB-gauge.is-armed .g-dim-line { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .dB-gauge.is-armed .g-chipg { opacity: 0; }
  .dB-gauge.is-armed.is-drawn .g-dim-line { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-enter) var(--ease-enter) 120ms; }
  .dB-gauge.is-armed.is-drawn .g-chipg { opacity: 1; transition: opacity var(--dur-enter) var(--ease-enter) 700ms; }

  /* photos: never wider than 900 CSS px (the job photos are 720x540) */
  .dB-fig { max-width: 900px; }

  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
}

/* ===== the six B parts ===== */
/* blog-post / post-hero / B  (lab/blog/parts/blog-post/post-hero/B.css) */
.v-post-hero-B {
/* post-hero · B: headline left, the short answer as a card right with the head-height gauge. Wrapped in .v-post-hero-B by build.mjs. */
background: var(--dB-paper);

.hero-h1 { scroll-margin-top: calc(var(--cb-sale-h, 0px) + 96px); }
.hero-wrap { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; gap: var(--dB-s6); grid-template-columns: minmax(0, 1fr); }

/* breadcrumb: steel links with a slash between */
.hero-crumb ol { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 var(--dB-s5); padding: 0; list-style: none; font-size: 16px; line-height: 1.2; }
.hero-crumb li { display: inline-flex; align-items: center; min-height: 32px; }
.hero-crumb li + li::before { content: "/"; margin: 0 var(--dB-s3); color: var(--dB-ink-3); }
.hero-crumb a { padding-block: 6px; }

.hero-h1 { max-width: 14ch; }
.hero-meta { margin-top: var(--dB-s5); }

/* the answer card: one card holds the short answer (bold run-in) and the gauge on a tint footer strip */
.hero-side { display: flex; flex-direction: column; gap: var(--dB-s5); min-width: 0; }
.hero-card { background: var(--dB-white); border: 1px solid var(--dB-line-2); border-top: 4px solid var(--dB-ink); }
.hero-lead { margin: 0; padding: var(--dB-s5); font-size: clamp(20px, 1.7vw, 23px); line-height: 1.45; color: var(--dB-ink); }
.hero-lead strong { font-weight: 700; color: var(--dB-ink); }
.hero-gauge { display: flex; justify-content: center; padding: var(--dB-s4) var(--dB-s5) var(--dB-s5); background: var(--dB-tint); border-top: 1px solid var(--dB-line); }
.hero-gauge .dB-gauge { max-width: 460px; }
.hero-rest { margin: 0; font-size: var(--dB-text); color: var(--dB-ink); max-width: 56ch; }
.hero-trust { margin: 0; font-size: 17px; line-height: 1.55; color: var(--dB-ink-2); max-width: 52ch; }
.hero-trust-sm { display: none; }

/* photos stay at their own 4:3 and never wider than 900 CSS px (the source is 720x540) */
.hero-photo { min-width: 0; max-width: 900px; }
.hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; }

/* gauge motion lives in directions/B.css (.dB-gauge.is-armed / .is-drawn); the script below arms it */

/* calm reveal (script adds .rv-on only without reduced motion): rise 12px and fade in on the enter curve, once */
&.rv-on [data-rv] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms), transform var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms); }
&.rv-on [data-rv].is-in { opacity: 1; transform: none; }

@media (min-width: 981px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 72px); row-gap: var(--dB-s6); align-items: start; }
  .hero-head { grid-column: 1; grid-row: 1; }
  .hero-side { grid-column: 2; grid-row: 1 / span 2; }
  .hero-photo { grid-column: 1; grid-row: 2; align-self: start; }
  .hero-lead { padding: var(--dB-s6) var(--dB-s6) var(--dB-s5); }
  .hero-gauge { padding-inline: var(--dB-s6); }
}
@media (max-width: 760px) {
  .hero-wrap { padding-top: 20px; }
  .hero-crumb ol { margin-bottom: var(--dB-s3); }
  .hero-meta { margin-top: var(--dB-s4); gap: var(--dB-s2) var(--dB-s4); font-size: 15px; }
  .hero-gauge { padding-inline: var(--dB-s3); }
  /* the trust line sits one small step under the byline on phone; the long version below the card is desktop only */
  .hero-trust-sm { display: block; margin: var(--dB-s2) 0 0; font-size: 15px; line-height: 1.3; color: var(--dB-ink-2); white-space: nowrap; }
  .hero-trust { display: none; }
}

}

/* blog-post / post-body / B  (lab/blog/parts/blog-post/post-body/B.css) */
.v-post-body-B {
/* post-body · B: question headings with the answer on a tint, answer cards for the loft types, a tickable self-check, chapter strip (desktop) and reading bar (phone). Wrapped in .v-post-body-B by build.mjs. */
background: var(--dB-paper);

/* anchors clear the sale bar, the returning header and the strip */
.body-chap, .body-chap :is(h2) { scroll-margin-top: calc(var(--cb-sale-h, 0px) + 76px + 64px); }
@media (max-width: 760px) { .body-chap { scroll-margin-top: calc(var(--cb-sale-h, 0px) + 52px + 12px); } }

/* ---------- chapter strip: sticky under the header, current chapter filled (the site's #cb-prog line is the only progress bar) ---------- */
.body-strip { position: sticky; top: var(--dB-stick); z-index: 40; background: var(--dB-lift); border-bottom: 1px solid var(--dB-line-2); transition: var(--dB-stick-tr); }
.body-strip-in { overflow-x: auto; scrollbar-width: none; }
.body-strip-in::-webkit-scrollbar { display: none; }
.body-strip-list { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 4px 0; list-style: none; width: max-content; min-width: 100%; }
.body-strip-list a {
  display: flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap;
  font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; color: var(--dB-ink-2);
  background: transparent; transition: background-color 200ms ease, color 200ms ease;
}
.body-strip-list a:hover { background: var(--dB-tint-2); color: var(--dB-ink); }
.body-strip-list a[aria-current] { background: var(--dB-char); color: var(--dB-paper); transition: background-color var(--dur-state) var(--ease-state), color var(--dur-state) var(--ease-state); }
@media (max-width: 760px) { .body-strip { display: none; } }

/* ---------- contents ---------- */
.body-toc { padding-block: var(--dB-s8) var(--dB-s6); }
.body-toc .dB-wrap > * { max-width: 680px; margin-inline: auto; }
.body-toc .body-toc-h { margin-bottom: var(--dB-s4); }
.body-toc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dB-line-2); }
.body-toc-list li { border-bottom: 1px solid var(--dB-line-2); }
.body-toc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--dB-s4);
  min-height: 64px; padding: var(--dB-s3) var(--dB-s2); text-decoration: none; color: var(--dB-ink);
  font-size: 18px; line-height: 1.3; font-weight: 500; transition: background-color 200ms ease, padding 200ms ease;
}
.body-toc-list a:hover { background: var(--dB-tint); padding-left: var(--dB-s4); }
.body-toc-list svg { width: 16px; height: 16px; flex: none; fill: var(--dB-ink-3); transition: transform 200ms ease; }
.body-toc-list a:hover svg { transform: translateX(4px); }

/* ---------- section: the question and its quick answer sit on a very light tint ---------- */
/* one centred reading column (about 680px); wider blocks such as the type cards go to 780px, also centred */
.body-head .dB-col, .body-flow .dB-col { max-width: 680px; margin-inline: auto; }
.body-head { background: var(--dB-tint); border-block: 1px solid var(--dB-line); padding-block: clamp(32px, 4.4vw, 56px); }
.body-head .dB-h2 { margin-bottom: var(--dB-s4); }
.body-flow { padding-block: var(--dB-s7) var(--dB-s8); }
.body-flow > .dB-col:last-child > :last-child, .body-flow > :last-child { margin-bottom: 0; }
.body-flow .dB-prose { font-size: var(--dB-text); color: var(--dB-ink); }

.body-fig { margin-block: var(--dB-s6); }
.body-fig img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; }

/* watch-out: one dark callout with a lit edge */
.body-warn { display: flex; gap: var(--dB-s4); align-items: flex-start; margin-block: var(--dB-s6); padding: var(--dB-s5); background: var(--dB-char); color: var(--dB-paper); border: 1px solid var(--dB-lit); }
.body-warn svg { width: 22px; height: 22px; flex: none; margin-top: 3px; fill: var(--dB-paper); }
@media (max-width: 760px) { .body-warn { padding: var(--dB-s4); gap: var(--dB-s3); } }
.body-warn p { margin: 0; font-size: 18px; line-height: 1.55; }
.body-warn strong { font-weight: 700; }
/* links on the charcoal fill: the design's light-on-dark link colour (as .dB-band--char), paper on hover, a white focus ring */
.body-warn { --dB-focus: #fff; }
.body-warn a { color: var(--dB-steel-300); text-decoration-color: currentColor; }
.body-warn a:hover { color: var(--dB-paper); text-decoration-thickness: 2px; }

/* loft types: four answer cards */
.body-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dB-s5); max-width: 780px; margin: var(--dB-s7) auto var(--dB-s8); }
.body-type { display: flex; flex-direction: column; background: var(--dB-lift); border: 1px solid var(--dB-line-2); border-top: 4px solid var(--dB-ink); padding: var(--dB-s5); }
.body-type-ill { width: 100%; max-width: 120px; height: auto; margin-bottom: var(--dB-s4); overflow: visible; }
.body-type-ill .ill-line { fill: none; stroke: var(--dB-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.body-type-ill .ill-old { fill: none; stroke: var(--dB-ink); stroke-opacity: .4; stroke-width: 2; stroke-dasharray: 4 4; stroke-linejoin: round; }
.body-type-ill .ill-fill { fill: var(--dB-ink); fill-opacity: .12; stroke: none; }
.body-type-ill .ill-new { stroke: var(--dB-ink); stroke-width: 7; stroke-linecap: butt; }
.body-type .dB-h3 { font-size: 30px; }
.body-type-sub { margin: 2px 0 var(--dB-s4); font-size: 16px; line-height: 1.35; color: var(--dB-ink-3); }
.body-type dl { margin: 0; }
.body-type dt { margin: 0 0 2px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--dB-ink); }
.body-type dd { margin: 0 0 var(--dB-s4); font-size: 17px; line-height: 1.5; color: var(--dB-ink); }
.body-type dd:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .body-types { grid-template-columns: minmax(0, 1fr); margin-block: var(--dB-s6); } }
/* the motif: as a type card enters, its roof line draws in on the enter curve (once), then the added volume fades in, like the hero gauge's draw */
&.rv-on .body-type .ill-line { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
&.rv-on .body-type :is(.ill-fill, .ill-old, .ill-new) { opacity: 0; }
&.rv-on .body-type.is-in .ill-line { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-enter) calc(var(--rv-d, 0ms) + 160ms); }
&.rv-on .body-type.is-in :is(.ill-fill, .ill-old, .ill-new) { opacity: 1; transition: opacity var(--dur-enter) var(--ease-enter) calc(var(--rv-d, 0ms) + 640ms); }

/* steps: a vertical rail, no counters */
.body-steps { position: relative; margin: var(--dB-s6) 0; padding: 0; list-style: none; }
.body-steps li { position: relative; margin: 0; padding: 0 0 var(--dB-s6) 44px; font-size: var(--dB-text); line-height: 1.55; color: var(--dB-ink); }
.body-steps li:last-child { padding-bottom: 0; }
.body-steps li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--dB-ink); }
.body-steps li:last-child::before { box-shadow: 0 0 0 4px var(--dB-tint-2); }
.body-steps li::after { content: ""; position: absolute; left: 7px; top: 30px; bottom: 2px; width: 2px; background: var(--dB-line-2); }
.body-steps li:last-child::after { display: none; }
.body-steps strong { display: block; margin-bottom: 2px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--dB-ink); }

/* pull quotes: large display type with a hanging opening mark, no side stripe */
.body-quote { margin: var(--dB-s8) 0; padding: 0; }
.body-quote p { position: relative; margin: 0; font-family: var(--dB-display); font-weight: 600; font-size: clamp(28px, 2.6vw, 32px); line-height: 1.15; letter-spacing: 0.005em; color: var(--dB-ink); text-wrap: balance; }
.body-quote-mark { position: absolute; right: 100%; top: 0; padding-right: 0.06em; color: var(--dB-ink-3); }
.body-quote footer { margin-top: var(--dB-s3); font-size: 16px; line-height: 1.3; color: var(--dB-ink-3); }

/* ---------- self-check: three ticks, charcoal band ---------- */
/* self-check on B's light tint (it sat on charcoal, which ran straight into the charcoal survey offer below it) */
.body-check { background: var(--dB-tint); color: var(--dB-ink); border-top: 1px solid var(--dB-line); padding-block: var(--dB-section); }
.body-check .dB-h2 { color: var(--dB-ink); margin-bottom: var(--dB-s4); }
.body-check .dB-lede { color: var(--dB-ink-2); }
.body-check-in { display: grid; gap: var(--dB-s6); align-items: start; }
.body-check-list { display: grid; gap: var(--dB-s3); margin: 0; padding: 0; list-style: none; }
.body-check-row {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) 28px; gap: var(--dB-s4); align-items: center;
  min-height: 80px; padding: var(--dB-s4) var(--dB-s5); cursor: pointer;
  border: 1px solid var(--dB-line); background: #fff;
  transition: background-color 200ms ease, border-color var(--dur-state) var(--ease-state);
}
.body-check-row:hover { background: color-mix(in srgb, #557a9e 4%, #fff); }
.body-check-row:has(:checked) { border-color: var(--dB-ink); }
.body-check-row:has(:focus-visible) { outline: 3px solid var(--dB-ink); outline-offset: 3px; }
.body-check-box { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.body-check-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid color-mix(in srgb, #1d1f20 55%, transparent); background: transparent; transition: background-color var(--dur-state) var(--ease-state), border-color var(--dur-state) var(--ease-state); }
.body-check-mark svg { width: 16px; height: 16px; fill: var(--dB-paper); opacity: 0; transform: scale(.7); transition: opacity 240ms ease, transform 240ms var(--ease-enter); }
.body-check-row:has(:checked) .body-check-mark { background: var(--dB-ink); border-color: var(--dB-ink); }
.body-check-row:has(:checked) .body-check-mark svg { opacity: 1; transform: none; }
.body-check-text { display: flex; flex-direction: column; gap: 2px; font-size: 17px; line-height: 1.45; color: var(--dB-ink-2); }
.body-check-text strong { font-size: 20px; font-weight: 700; color: var(--dB-ink); }
.body-check-ico { width: 24px; height: 24px; fill: color-mix(in srgb, #1d1f20 45%, transparent); justify-self: end; }
.body-check-result { display: flex; align-items: center; gap: var(--dB-s4); margin-top: var(--dB-s4); padding: var(--dB-s3) var(--dB-s1) 0; }
.body-check-result p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--dB-ink); }
.body-check-meter { display: flex; gap: 4px; flex: none; }
.body-check-meter i { display: block; width: 28px; height: 6px; background: color-mix(in srgb, #1d1f20 16%, transparent); transition: background-color var(--dur-state) var(--ease-state); }
.body-check-meter[data-n="1"] i:nth-child(-n+1), .body-check-meter[data-n="2"] i:nth-child(-n+2), .body-check-meter[data-n="3"] i { background: var(--dB-ink); }
@media (min-width: 900px) { .body-check-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); } }
@media (max-width: 760px) {
  .body-check { padding-bottom: calc(var(--dB-bar-h) + env(safe-area-inset-bottom, 0px) + 28px); }
  .body-check-row { grid-template-columns: 32px minmax(0, 1fr); padding: var(--dB-s4); gap: var(--dB-s3); }
  .body-check-ico { display: none; }
}

/* ---------- phone reading bar ---------- */
.body-bar, .body-sheet { display: none; }
@media (max-width: 760px) {
  .body-bar {
    /* three equal cells, raised or not: icon above a one-line label in each */
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    height: calc(var(--dB-bar-h) + env(safe-area-inset-bottom, 0px)); padding: 0 var(--dB-s1) env(safe-area-inset-bottom, 0px);
    background: var(--dB-white); border-top: 1px solid var(--dB-line-2);
    box-shadow: 0 -8px 24px color-mix(in srgb, #2b2b2d 14%, transparent);
    transform: translateY(calc(100% + 28px)); opacity: 1; visibility: hidden;
    transition: transform var(--dur-exit) var(--ease-exit), opacity var(--dur-exit) var(--ease-exit), visibility 0s linear var(--dur-exit);
  }
  .body-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: transform var(--dur-enter) var(--ease-enter), opacity var(--dur-enter) var(--ease-enter), visibility 0s; }
  /* a survey offer is on screen: the bar steps aside so it never covers or doubles the offer's own button */
  .body-bar.is-on[data-away] { transform: translateY(110%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform var(--dur-exit) var(--ease-exit), opacity var(--dur-exit) var(--ease-exit), visibility 0s linear var(--dur-exit); }
  .body-tab {
    min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    margin: 0; padding: 6px 2px; border: 0; background: transparent; color: var(--dB-ink); cursor: pointer; text-decoration: none;
    font-family: var(--dB-body); font-size: 13px; line-height: 1.15; font-weight: 600; -webkit-tap-highlight-color: transparent;
    transition: background-color 160ms ease;
  }
  .body-tab:active { background: var(--dB-tint-2); }
  .body-tab:focus-visible { outline: 3px solid var(--dB-focus); outline-offset: -4px; }
  .body-tab svg { width: 22px; height: 22px; fill: var(--dB-ink); }
  .body-tab-l { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; line-height: 1.25; }
  [data-of] { font-variant-numeric: tabular-nums; }
  /* the yellow cell: same width as its neighbours, filled inside its slot; the transparent inline border keeps a small gap
     to the neighbours without changing the cell's box width */
  .body-tab-cta {
    align-self: stretch; margin: 5px 0; padding: 4px 2px;
    border-inline: 3px solid transparent; background: var(--dB-hi); background-clip: padding-box; color: #000;
    font-weight: 700; /* same face, size and case as its neighbours so the bar reads as one row */
    transition: background-color 160ms ease, transform 120ms ease;
  }
  .body-tab-cta svg { fill: #000; }
  .body-tab-cta:active { background: var(--dB-hi-600); transform: translateY(1px); }
  .body-tab-cta:focus-visible { outline-color: #000; outline-offset: 2px; }

  .body-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--dB-stick); z-index: 910; visibility: hidden; pointer-events: none; transition: visibility 0s linear var(--dur-exit); }
  .body-sheet.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
  .body-sheet-scrim { position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, #1d1f20 52%, transparent); opacity: 0; transition: opacity var(--dur-exit) var(--ease-exit); }
  .body-sheet.is-open .body-sheet-scrim { opacity: 1; transition: opacity var(--dur-enter) var(--ease-enter); }
  .body-sheet-panel {
    z-index: 1;
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
    padding: var(--dB-s5) var(--dB-gutter) calc(var(--dB-s5) + env(safe-area-inset-bottom, 0px));
    background: var(--dB-lift); border-top: 4px solid var(--dB-char); outline: none;
    transform: translateY(100%); transition: transform var(--dur-exit) var(--ease-exit);
  }
  .body-sheet.is-open .body-sheet-panel { transform: none; transition: transform var(--dur-enter) var(--ease-enter); }
  .body-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--dB-s4); margin-bottom: var(--dB-s3); }
  .body-sheet-x { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; border: 0; background: transparent; cursor: pointer; transition: background-color 160ms ease; }
  .body-sheet-x:active { background: var(--dB-tint-2); }
  .body-sheet-x svg { width: 20px; height: 20px; fill: var(--dB-ink); }
  .body-sheet-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dB-line-2); }
  .body-sheet-list li { border-bottom: 1px solid var(--dB-line-2); }
  .body-sheet-list a {
    display: flex; align-items: center; min-height: 56px; padding: 0 var(--dB-s4); text-decoration: none; color: var(--dB-ink);
    font-size: 20px; line-height: 1.2; font-weight: 500;
    transition: background-color var(--dur-state) var(--ease-state);
  }
  .body-sheet-list a:active { background: var(--dB-tint-2); }
  .body-sheet-list a[aria-current] { background: var(--dB-tint-2); font-weight: 700; }
}
/* calm reveal (script adds .rv-on only without reduced motion): rise 12px and fade in on the enter curve, once */
&.rv-on [data-rv] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms), transform var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms); }
&.rv-on [data-rv].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .body-bar, .body-bar.is-on, .body-bar.is-on[data-away] { transition: none; }
  .body-bar.is-on[data-away] { transform: none; }
  .body-sheet-panel, .body-sheet.is-open .body-sheet-panel { transition: none; }
}


}

/* blog-post / post-cta / B  (lab/blog/parts/blog-post/post-cta/B.css) */
.v-post-cta-B {
/* post-cta · B: the gauge is the hero of the offer (the hero's gauge, read "your loft ? m"), the three survey facts, one yellow button. Wrapped in .v-post-cta-B by build.mjs. */
/* the loud offer's own surface: B's charcoal band (dB-band--char sets paper text, the light steel highlight and a white focus ring) */
.cta-band { border-bottom: 1px solid var(--dB-lit); }
.cta-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  grid-template-areas: "h" "plate" "list" "act"; row-gap: var(--dB-s5);
}
.cta-h { grid-area: h; max-width: 16ch; font-size: clamp(40px, 4.2vw, 60px); line-height: 1; }

/* the plate: a white card standing on the charcoal, no rule needed against the dark */
.cta-plate { grid-area: plate; margin: 0; padding: var(--dB-s5) var(--dB-s5) var(--dB-s4); background: var(--dB-white); border: 0; color: var(--dB-ink); }
.cta-gauge { max-width: 470px; margin-inline: auto; }
.cta-cap { margin: var(--dB-s3) 0 0; padding-top: var(--dB-s3); border-top: 1px solid var(--dB-line); font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--dB-ink); text-align: center; }

/* the three facts: light hairline rows on the charcoal, no icons */
.cta-list { grid-area: list; margin: 0; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb, #f2f2f3 34%, transparent); }
.cta-list li { padding-block: var(--dB-s3); border-bottom: 1px solid var(--dB-lit); font-size: 18px; line-height: 1.5; color: color-mix(in srgb, #f2f2f3 86%, transparent); }
.cta-list strong { font-weight: 700; color: var(--dB-paper); }
.cta-act { grid-area: act; margin: 0; }

@media (min-width: 900px) {
  .cta-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    grid-template-areas: "plate ." "plate h" "plate list" "plate act" "plate .";
    column-gap: clamp(40px, 6vw, 88px); row-gap: var(--dB-s5);
  }
  .cta-plate { padding: var(--dB-s7) var(--dB-s7) var(--dB-s5); }
  .cta-list li { padding-block: var(--dB-s4); font-size: 19px; }
  .cta-plate { align-self: center; }
  .cta-btn { width: 100%; min-width: 360px; }
}
@media (max-width: 760px) {
  .cta-plate { padding: var(--dB-s4) var(--dB-s4) var(--dB-s3); }
  .cta-cap { font-size: 17px; }
  .cta-btn { width: 100%; }
}

/* reveal on scroll: rise 12px and fade on the enter curve, once (the gauge's line draw lives in directions/B.css) */
.rv-on [data-rv] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-enter) var(--ease-enter), transform var(--dur-enter) var(--ease-enter); }
.rv-on [data-rv].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-on [data-rv] { opacity: 1; transform: none; transition: none; }
}

}

/* blog-post / post-end / B  (lab/blog/parts/blog-post/post-end/B.css) */
.v-post-end-B {
/* post-end · B: FAQ, what to remember, the final offer, one next read, author note and sources. Wrapped in .v-post-end-B by build.mjs. */

/* ---------- FAQ ---------- */
.end-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dB-s6); align-items: start; }
.end-faq-h { max-width: 14ch; }
/* answers open on the enter curve and close on the exit curve (JS height animation, same as A, C and D, so Safari and Firefox animate too); the content stays mounted until the close ends */
.end-faq-list .end-faq-a { overflow: hidden; }
.end-faq-list .dB-faq-a { margin: 0; color: var(--dB-ink-2); }
.end-faq-list details[data-closing] summary::after { transform: translateY(-3px) rotate(45deg); }
/* questions in Barlow 600 sentence case (decision 17); the condensed caps stay on the section H2 only */
.end-faq-list summary { min-height: 72px; font-family: var(--dB-body); font-weight: 600; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--dB-ink); }
.end-faq-list summary:hover { color: var(--dB-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.end-faq-list summary::after { border-color: var(--dB-ink); }
.end-faq-list summary:focus-visible { outline-offset: -3px; }
@media (min-width: 900px) {
  .end-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); }
}

/* ---------- what to remember ---------- */
.end-rem-h { margin-bottom: var(--dB-s6); }
.end-rem-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dB-s5); margin: 0; padding: 0; list-style: none; }
/* short one-line headings so the three bodies start on one line; the body is the exact remember line */
.end-rem-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--dB-s4); row-gap: var(--dB-s2); align-items: start; align-content: start; padding-top: var(--dB-s4); border-top: 3px solid var(--dB-char); }
.end-rem-list svg { grid-column: 1; grid-row: 1; align-self: center; width: 24px; height: 24px; fill: var(--dB-ink); }
.end-rem-t { grid-column: 2; margin: 0; font-family: var(--dB-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.08; color: var(--dB-ink); white-space: nowrap; }
.end-rem-list p { grid-column: 2; margin: 0; font-size: clamp(19px, 1.6vw, 21px); line-height: 1.5; color: var(--dB-ink-2); }
@media (min-width: 900px) {
  .end-rem-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dB-s8); }
}

/* ---------- final offer: a quiet plate on paper, one yellow button, phone and email ---------- */
.end-offer { padding-bottom: 0; }
.end-plate {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dB-s5);
  padding: var(--dB-s5); background: var(--dB-lift); border: 1px solid var(--dB-line-2);
}
.end-plate-copy { display: flex; flex-direction: column; gap: var(--dB-s2); min-width: 0; }
.end-offer-h { max-width: 22ch; }
.end-offer-p { margin: 0; max-width: 48ch; font-size: 18px; line-height: 1.55; color: var(--dB-ink-2); }
.end-plate-act { display: flex; flex-direction: column; align-items: flex-start; gap: var(--dB-s2); min-width: 0; }
.end-reach { display: flex; flex-wrap: wrap; gap: 0 var(--dB-s5); margin: 0; padding: 0; list-style: none; }
.end-reach a { display: inline-flex; align-items: center; gap: var(--dB-s2); min-height: 48px; font-size: 18px; font-weight: 500; }
.end-reach svg { width: 16px; height: 16px; fill: var(--dB-ink); flex: none; }
@media (min-width: 900px) {
  .end-plate { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--dB-s8); padding: var(--dB-s6) var(--dB-s7); }
  .end-plate-act { align-items: stretch; }
  .end-reach { justify-content: space-between; }
}
@media (max-width: 760px) {
  .end-btn { width: 100%; }
  .end-plate-act { align-items: stretch; }
}

/* ---------- next read + colophon ---------- */
.end-next { padding-bottom: calc(var(--dB-section) + 8px); }
.end-next-h { margin-bottom: var(--dB-s6); }
.end-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--dB-lift); border: 1px solid var(--dB-line-2); color: var(--dB-ink); text-decoration: none; transition: border-color 220ms ease; }
.end-card:hover { border-color: var(--dB-ink); color: var(--dB-ink); }
.end-card:focus-visible { outline-offset: 3px; }
.end-card-fig { display: block; overflow: hidden; min-width: 0; background: var(--dB-tint); border-bottom: 1px solid var(--dB-line); }
.end-card-fig img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 480ms var(--ease-enter); }
.end-card:hover .end-card-fig img { transform: scale(1.025); }
.end-card-txt { display: flex; flex-direction: column; align-items: flex-start; gap: var(--dB-s3); padding: var(--dB-s5); min-width: 0; }
.end-card-meta { font-size: 16px; line-height: 1.3; color: var(--dB-ink-3); }
.end-card-meta time { white-space: nowrap; }
.end-card-ex + .end-card-meta { margin-top: calc(var(--dB-s1) * -1); }
.end-card-t { display: block; }
.end-card-ex { font-size: 18px; line-height: 1.55; color: var(--dB-ink-2); max-width: 52ch; }
/* the one card link style (B): Barlow 600 sentence case, steel, arrow */
.end-card-go { display: inline-flex; align-items: center; gap: var(--dB-s2); min-height: 48px; font-family: var(--dB-body); font-weight: 600; font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--dB-steel-700); }
.end-card-go svg { width: 14px; height: 14px; fill: currentColor; transition: transform 220ms ease; }
.end-card:hover .end-card-go svg { transform: translateX(4px); }
@media (min-width: 900px) {
  .end-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
  .end-card-fig { border-bottom: 0; border-right: 1px solid var(--dB-line); }
  .end-card-fig img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .end-card-txt { padding: var(--dB-s7); justify-content: center; }
}
.end-colo { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dB-s5); margin-top: var(--dB-s8); padding-top: var(--dB-s5); border-top: 1px solid var(--dB-line-2); }
.end-colo-h { margin: 0 0 var(--dB-s2); font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--dB-ink); }
.end-colo p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--dB-ink); max-width: 62ch; }
@media (min-width: 900px) { .end-colo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--dB-s8); } }
@media (max-width: 760px) { .end-next { padding-bottom: calc(var(--dB-bar-h) + env(safe-area-inset-bottom, 0px) + 28px); } }
/* reveal on scroll: rise 12px and fade on the enter curve, once, list items 45ms apart */
&.rv-on [data-rv] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms), transform var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms), border-color 220ms ease; }
&.rv-on [data-rv].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  &.rv-on [data-rv] { opacity: 1; transform: none; transition: none; }
  .end-faq-list summary::after { transition: none; }
  .end-card-fig img, .end-card:hover .end-card-fig img { transition: none; transform: none; }
  .end-card-go svg, .end-card:hover .end-card-go svg { transition: none; transform: none; }
}

}

/* blog-home / home-top / B  (lab/blog/parts/blog-home/home-top/B.css) */
.v-home-top-B {
/* home-top · B Answer First: promise H1, question box, popular questions, featured answer card, a 5x2 topic grid. Wrapped in .v-home-top-B by build.mjs. */
background: var(--dB-paper);

.top-wrap { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(44px, 5vw, 72px); }
.top-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dB-s8); align-items: start; }
.top-intro { min-width: 0; display: flex; flex-direction: column; }

.top-h1 { max-width: 15ch; }
.top-lede { margin-top: var(--dB-s5); }

/* the way in: a recessed question box with its action fused to the right edge */
.top-ask { margin-top: var(--dB-s7); }
.top-ask-label { display: block; margin-bottom: var(--dB-s3); font-family: var(--dB-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.1; color: var(--dB-ink); }
.top-field { padding-right: 0; min-height: 60px; }
.top-field-ico { width: 20px; height: 20px; fill: var(--dB-ink-3); }
.top-input { min-height: 56px; }
.top-input::placeholder { color: var(--dB-ink-3); opacity: 1; }
.top-input::-webkit-search-cancel-button { display: none; }
.top-go {
  flex: none; align-self: stretch; margin: 4px; padding: 0 24px; min-height: 48px;
  border: 1px solid var(--dB-char); border-radius: 0; background: var(--dB-char); color: var(--dB-paper); cursor: pointer;
  font-family: var(--dB-display); font-weight: 600; font-size: 19px; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 220ms ease, border-color 220ms ease;
}
.top-go:hover { background: #000; border-color: #000; }
.top-go:active { background: #000; }
.top-go:focus-visible { outline: 3px solid var(--dB-focus); outline-offset: 2px; }

/* popular questions: plain hairline rows straight under the search (no label line), each a 52px tap target */
.top-pop { margin-top: var(--dB-s5); }
.top-pop-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dB-line-2); }
.top-pop-list li { border-bottom: 1px solid var(--dB-line); }
.top-pop-list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--dB-s4);
  min-height: 52px; padding-block: var(--dB-s2); color: var(--dB-ink); text-decoration: none; font-size: 18px; line-height: 1.35; font-weight: 500;
  transition: color 180ms ease, padding-left 220ms ease;
}
.top-pop-list a:hover { color: var(--dB-steel-800); padding-left: var(--dB-s2); }
.top-pop-list svg { width: 14px; height: 14px; flex: none; fill: currentColor; }
.top-pop-list a:focus-visible { outline-offset: -3px; }

/* featured answer card: image, meta, split title, short answer, one cue */
.top-feat { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--dB-white); border: 1px solid var(--dB-line-2); border-top: 4px solid var(--dB-char); transition: border-color 220ms ease; }
.top-feat:hover { border-color: var(--dB-ink); border-top-color: var(--dB-char); }
.top-feat-media { display: block; overflow: hidden; background: var(--dB-tint); border-bottom: 1px solid var(--dB-line); }
.top-feat-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 25%; transition: transform 640ms var(--ease-enter); }
.top-feat:hover .top-feat-media img { transform: scale(1.025); }
.top-feat-body { display: flex; flex-direction: column; gap: var(--dB-s3); padding: var(--dB-s5); }
.top-feat-meta { display: flex; flex-wrap: wrap; gap: var(--dB-s1) var(--dB-s4); margin: calc(var(--dB-s1) * -1) 0 0; font-size: 16px; line-height: 1.3; color: var(--dB-ink-3); }
.top-feat-h { font-size: clamp(32px, 3vw, 42px); line-height: 1.02; }
.top-feat-link { color: inherit; text-decoration: none; }
.top-feat-link::after { content: ""; position: absolute; inset: 0; }
.top-feat-link:hover { color: inherit; }
.top-feat-link:focus-visible { outline: none; }
.top-feat:has(.top-feat-link:focus-visible) { outline: 3px solid var(--dB-focus); outline-offset: 3px; }
.top-feat-ex { margin: 0; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--dB-ink-2); }
/* the one card link style (B): Barlow 600 sentence case, steel, arrow */
.top-feat-go { display: inline-flex; align-items: center; gap: var(--dB-s2); min-height: 32px; font-family: var(--dB-body); font-weight: 600; font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--dB-steel-700); }
.top-feat-go svg { width: 14px; height: 14px; fill: currentColor; transition: transform 220ms ease; }
.top-feat:hover .top-feat-go svg { transform: translateX(4px); }

/* topics: ten names with their guide counts, 5x2 on desktop, 2 columns on phone; each jumps to that topic in the feed.
   Name top-aligned, count pinned to the tile foot so every count in a row shares a baseline. */
.top-topics-h { margin-bottom: var(--dB-s6); }
.top-topic-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--dB-s3); margin: 0; padding: 0; list-style: none; }
.top-topic-grid > li { display: flex; min-width: 0; }
.top-topic {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--dB-s3); width: 100%; min-height: 112px;
  padding: var(--dB-s4) var(--dB-s4) var(--dB-s3); background: var(--dB-lift); border: 1px solid var(--dB-line-2); border-top: 3px solid var(--dB-char);
  color: var(--dB-ink); text-decoration: none; transition: border-color 220ms ease, background-color 220ms ease;
}
.top-topic:hover { color: var(--dB-ink); border-color: var(--dB-ink); border-top-color: var(--dB-char); background: var(--dB-white); }
.top-topic:focus-visible { outline-offset: 3px; }
.top-topic-n { font-family: var(--dB-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.05; overflow-wrap: anywhere; }
.top-topic-c { display: flex; align-items: center; justify-content: space-between; gap: var(--dB-s2); font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--dB-ink-3); }
.top-topic-c svg { width: 13px; height: 13px; flex: none; fill: var(--dB-ink); transition: transform 220ms ease; }
.top-topic:hover .top-topic-c svg { transform: translateX(3px); }

@media (min-width: 981px) {
  .top-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 72px); align-items: stretch; }
  .top-feat-body { padding: var(--dB-s6); }
  .top-feat { align-self: start; }
}
@media (max-width: 980px) {
  .top-h1 { max-width: 18ch; }
}
@media (max-width: 760px) {
  .top-wrap { padding-top: 24px; }
  .top-grid { gap: var(--dB-s7); }
  .top-lede { margin-top: var(--dB-s4); }
  .top-ask { margin-top: var(--dB-s6); }
  .top-field { padding-left: var(--dB-s4); gap: var(--dB-s2); }
  .top-field-ico { width: 18px; height: 18px; }
  .top-pop-3 { display: none; }
  .top-go { padding: 0 14px; font-size: 18px; }
  .top-field .top-input { font-size: 17px; }
  .top-feat-body { padding: var(--dB-s4); }
  .top-feat-h { font-size: 32px; }
  .top-topics-h { margin-bottom: var(--dB-s6); }
  .top-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dB-s2); }
  .top-topic { min-height: 92px; padding: var(--dB-s3) var(--dB-s3) var(--dB-s2); }
  .top-topic-n { font-size: 21px; }
  .top-topic-c { font-size: 15px; }
}
/* reveal on scroll: rise 12px and fade on the enter curve, once, tiles 45ms apart */
&.rv-on [data-rv] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms), transform var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms); }
&.rv-on [data-rv].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  &.rv-on [data-rv] { opacity: 1; transform: none; transition: none; }
  .top-feat-media img, .top-feat-go svg, .top-pop-list a, .top-topic-c svg { transition: none; transform: none !important; }
  .top-pop-list a:hover { padding-left: 0; }
}

}

/* blog-home / home-feed / B  (lab/blog/parts/blog-home/home-feed/B.css) */
.v-home-feed-B {
/* home-feed · B Answer First: a text-led index, newest first (question-led title, the excerpt, the meta line, a small photo), then the free survey offer. Wrapped in .v-home-feed-B by build.mjs. */
background: var(--dB-paper);

.feed-wrap { padding-block: var(--dB-section); }
.feed-title { margin-bottom: var(--dB-s7); max-width: 20ch; }

/* text-led index: the newest guide across the full width, then two columns of hairline rows */
.feed-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--dB-char); }
.feed-item { min-width: 0; display: flex; border-bottom: 1px solid var(--dB-line-2); }
.feed-item--lead { grid-column: 1 / -1; }
.feed-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 128px; column-gap: var(--dB-s5); align-items: start; width: 100%; padding-block: var(--dB-s5); }
.feed-card:has(.feed-link:focus-visible) { outline: 3px solid var(--dB-focus); outline-offset: 3px; }
.feed-body { display: flex; flex-direction: column; gap: var(--dB-s2); min-width: 0; }
.feed-h { font-size: clamp(24px, 2vw, 28px); }
.feed-item--lead .feed-h { font-size: clamp(30px, 2.8vw, 38px); max-width: 26ch; }
.feed-link { color: inherit; text-decoration: none; transition: color 180ms ease; }
.feed-link::after { content: ""; position: absolute; inset: 0; }
.feed-link:focus-visible { outline: none; }
.feed-card:hover .feed-link { color: var(--dB-steel-700); }
.feed-ex { margin: 0; font-size: 17px; line-height: 1.55; color: var(--dB-ink-2); max-width: 60ch; }
.feed-item--lead .feed-ex { font-size: 19px; }
.feed-meta { display: flex; flex-wrap: wrap; gap: var(--dB-s1) var(--dB-s3); margin: var(--dB-s1) 0 0; font-size: 15px; line-height: 1.3; color: var(--dB-ink-3); }
.feed-meta > * + *::before { content: "·"; margin-right: var(--dB-s3); }
.feed-thumb { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--dB-tint); border: 1px solid var(--dB-line); }
.feed-item--lead .feed-card { grid-template-columns: minmax(0, 1fr) 280px; column-gap: var(--dB-s8); padding-block: var(--dB-s6); }
/* the two loft guides after the featured one are text rows: their walnut photos are near twins of the featured card's */
.feed-card--text, .feed-item--lead .feed-card--text { grid-template-columns: minmax(0, 1fr); }
/* the newest guide, without its photo: title left, excerpt and meta right, on the same column line as the rows below */
@media (min-width: 761px) {
  .feed-item--lead .feed-card--text .feed-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(32px, 4vw, 64px); row-gap: var(--dB-s2); align-content: start; }
  .feed-item--lead .feed-card--text .feed-h { grid-column: 1; grid-row: 1 / span 2; }
  .feed-item--lead .feed-card--text .feed-ex { grid-column: 2; grid-row: 1; padding-top: 6px; }
  .feed-item--lead .feed-card--text .feed-meta { grid-column: 2; grid-row: 2; align-self: start; }
}


/* the offer: one card, the headline and the one button left, the three plain facts right */
.feed-offer { padding-block: var(--dB-section); }
.offer-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--dB-s7) clamp(40px, 5vw, 80px); align-items: center; padding: var(--dB-s8) clamp(24px, 4vw, 56px); background: var(--dB-white); border: 1px solid var(--dB-line-2); border-top: 4px solid var(--dB-char); }
.offer-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--dB-s6); }
.offer-h { font-size: clamp(36px, 4vw, 56px); }
.offer-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dB-line-2); }
.offer-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--dB-s4); align-items: start; padding-block: var(--dB-s4); border-bottom: 1px solid var(--dB-line); font-size: 18px; line-height: 1.5; color: var(--dB-ink-2); }
.offer-list svg { width: 22px; height: 22px; margin-top: 2px; fill: var(--dB-ink); }
.offer-list strong { color: var(--dB-ink); font-weight: 600; }

@media (max-width: 980px) {
  .offer-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .feed-title { margin-bottom: var(--dB-s6); }
  .feed-list { grid-template-columns: minmax(0, 1fr); }
  /* phone: the title beside a small photo, then the excerpt and the meta line at full width */
  .feed-card, .feed-item--lead .feed-card { grid-template-columns: minmax(0, 1fr) 88px; grid-template-areas: "h img" "ex ex" "meta meta"; column-gap: var(--dB-s4); row-gap: var(--dB-s2); padding-block: var(--dB-s4); }
  .feed-body { display: contents; }
  .feed-h { grid-area: h; align-self: center; }
  .feed-ex { grid-area: ex; }
  .feed-meta { grid-area: meta; column-gap: var(--dB-s2); font-size: 14px; }
  .feed-meta > * + *::before { margin-right: var(--dB-s2); }
  .feed-thumb { grid-area: img; }
  .feed-card--text, .feed-item--lead .feed-card--text { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "ex" "meta"; }
  .feed-h { font-size: 24px; }
  .feed-item--lead .feed-h { font-size: 28px; }
  .feed-ex, .feed-item--lead .feed-ex { font-size: 17px; }
  .offer-card { padding: var(--dB-s6) var(--dB-s5); gap: var(--dB-s5); }
  .offer-head { display: contents; }
  .offer-h { order: 0; font-size: 36px; }
  .offer-list { order: 1; }
  .offer-btn { order: 2; width: 100%; }
}
/* reveal on scroll: rise 12px and fade on the enter curve, once, rows 45ms apart */
&.rv-on [data-rv] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms), transform var(--dur-enter) var(--ease-enter) var(--rv-d, 0ms); }
&.rv-on [data-rv].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  &.rv-on [data-rv] { opacity: 1; transform: none; transition: none; }
  .feed-link { transition: none; }
}

}

/* ===== blog additions (not in the lab parts), in B's own tokens and type ===== */
.dir-B {
  /* kind chip: Guide / Learning / Story. Ink on white with a hairline, the display face; hero crumb, featured card and feed cards */
  :is(.hero-kind, .feed-kind) {
    display: inline-flex; align-items: center; min-height: 24px; padding: 1px var(--dB-s2) 0;
    border: 1px solid var(--dB-line-2); background: var(--dB-white); color: var(--dB-ink);
    font-family: var(--dB-display); font-weight: 600; font-size: 14px; line-height: 1; letter-spacing: 0.06em;
    text-transform: uppercase; white-space: nowrap;
  }

  /* plain markdown table in prose: hairline, flat, square; header row on the tint */
  .dB-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; background: var(--dB-lift); border: 1px solid var(--dB-line-2); }
  .dB-table :is(th, td) { padding: var(--dB-s3) var(--dB-s4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--dB-line); }
  .dB-table thead th {
    background: var(--dB-tint); border-bottom: 1px solid var(--dB-line-2); color: var(--dB-ink);
    font-family: var(--dB-display); font-weight: 600; font-size: 17px; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase;
  }
  .dB-table tbody th { font-weight: 600; }
  .dB-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
  .dB-table strong { font-weight: 600; }
  @media (max-width: 760px) {
    /* phone: each row becomes a card in the loft-type card's shell, so every cell shows with no sideways scroll.
       The first cell is the card title; every other cell sits under its column name (data-label from render-post.mjs),
       set like the loft card's dt/dd. The header row stays in the accessibility tree, visually hidden. */
    .dB-table { display: block; width: auto; max-width: 100%; background: none; border: 0; }
    .dB-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
    .dB-table tbody { display: grid; gap: var(--dB-s4); }
    .dB-table tr { display: block; background: var(--dB-lift); border: 1px solid var(--dB-line-2); border-top: 4px solid var(--dB-ink); padding: var(--dB-s5); }
    .dB-table td { display: block; min-width: 0; padding: 0; border: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
    .dB-table td + td { margin-top: var(--dB-s3); }
    .dB-table td:first-child { font-family: var(--dB-display); font-weight: 600; font-size: 25px; line-height: 1.08; letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance; }
    .dB-table td + td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 16px; font-weight: 700; line-height: 1.3; }
  }
}

.v-post-hero-B {
  /* the crumb row holds the trail and the kind chip; the row (not the list) owns the space under it */
  .hero-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dB-s2) var(--dB-s4); margin: 0 0 var(--dB-s5); }
  .hero-crumb ol { margin: 0; }
  /* basis (story) or seed (guide answering a forum question): one small step under the byline */
  .hero-basis, .hero-seed { margin: var(--dB-s2) 0 0; max-width: 52ch; font-size: 16px; line-height: 1.4; color: var(--dB-ink-3); }
  @media (max-width: 760px) {
    .hero-crumb { margin-bottom: var(--dB-s3); }
    .hero-basis, .hero-seed { font-size: 15px; }
  }
}

.v-home-top-B {
  .top-feat-meta { align-items: center; }
  /* the topic grid fits its tile count (ul[data-n], 1-10) so no row is left with a hole:
     1-5 one row; 6 = 3+3; 7 = 4+3 (last tile spans two); 8 = 4+4; 9 = 5+4 (last spans two); 10 = 5+5 (the lab's 5 columns).
     Phone: two columns, an odd last tile takes the full row. */
  @media (min-width: 761px) {
    .top-topic-grid[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
    .top-topic-grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .top-topic-grid:is([data-n="3"], [data-n="6"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .top-topic-grid:is([data-n="4"], [data-n="7"], [data-n="8"]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .top-topic-grid:is([data-n="7"], [data-n="9"]) > li:last-child { grid-column: span 2; }
  }
  @media (max-width: 760px) {
    .top-topic-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  }
}

.v-home-feed-B {
  .feed-meta { align-items: center; }
  /* the chip is its own separator: no dot after it */
  .feed-meta > .feed-kind + *::before { content: none; }
}

/* topic anchors (/blog/#topic-<slug>) land under the sticky header, as the chapters do */
:is(.v-home-top-B, .v-home-feed-B) [id^="topic-"] { scroll-margin-top: calc(var(--cb-sale-h, 0px) + 76px + 24px); }
@media (max-width: 760px) { :is(.v-home-top-B, .v-home-feed-B) [id^="topic-"] { scroll-margin-top: calc(var(--cb-sale-h, 0px) + 52px + 12px); } }
