/* Blog (/blog, /blog/topic/<hub>, /blog/<slug>), rendered by src/blog.js. Tokens, type, header and footer come from the
   other site stylesheets. Prefixes: bl- (index, hub, shared pieces), bh- (hub header), bp- (post). */

/* ---- tones: each hub has one (blog-hubs.js). --t is the colour, --t-fg the text that sits on it. ---------------- */
.tone--cobalt { --t: var(--p-cobalt); --t-fg: var(--p-chalk); }
.tone--vermilion { --t: var(--p-vermilion); --t-fg: var(--p-ink-deep); }
.tone--butter { --t: var(--p-butter); --t-fg: var(--p-ink-deep); }
.tone--ink { --t: var(--p-cobalt-ink); --t-fg: var(--p-chalk); }
/* small text on terracotta reads better in deep ink than in chalk (5.2:1 against 3.3:1) */
.bl-feat.band--vermilion, .bh.band--vermilion, .bp-head.band--vermilion { --c-text: var(--p-ink-deep); --c-focus: var(--p-ink-deep); }

/* the ring mark pressed into a colour band, under the text */
.bh__in > :not(.bl-emb), .bp-head__in > :not(.bl-emb), .bl-feat__in { position: relative; z-index: 1; }
.bl-feat .bl-emb { z-index: 0; }
.bl-emb {
  position: absolute; pointer-events: none; aspect-ratio: 1; height: auto;
  --mk-paid: color-mix(in srgb, var(--t) 84%, var(--p-ink-deep)); --mk-org: var(--mk-paid); --mk-found: var(--mk-paid); --mk-one: var(--mk-paid);
  filter: drop-shadow(-1.5px -1.5px 0 color-mix(in srgb, var(--p-chalk) 22%, transparent)) drop-shadow(3px 4px 3px color-mix(in srgb, var(--p-ink-deep) 40%, transparent));
}
.tone--ink .bl-emb { --mk-paid: color-mix(in srgb, var(--p-cobalt-ink) 86%, var(--p-chalk)); }

/* ---- shared pieces ----------------------------------------------------------------------------------------------- */
.bl-dot { color: var(--p-vermilion); }
.bl-ar { width: 28px; height: 28px; flex: none; transition: transform 200ms var(--ease-out); }
.bl-crumb { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--fs-small); font-weight: 600; overflow-wrap: anywhere; }
.bl-crumb a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.bl-crumb a:hover { text-decoration-thickness: 3px; }

.bl-btn {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-4);
  background: var(--p-cobalt-ink); color: var(--p-chalk); font: 600 var(--fs-body)/1.1 var(--font-text); text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.bl-btn .bl-ar { width: 20px; height: 20px; }
.bl-btn:hover { background: var(--p-chalk); color: var(--p-cobalt-ink); }
.tone--ink .bl-btn { background: var(--p-chalk); color: var(--p-cobalt-ink); }
.tone--ink .bl-btn:hover { background: var(--p-vermilion); color: var(--p-ink-deep); }

.bl-chip {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 32px; padding: 0 12px; border: 1.5px solid currentColor; border-radius: 999px;
  font: 600 var(--fs-small)/1.1 var(--font-text); text-decoration: none; white-space: nowrap;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.bl-chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--t); flex: none; }
.bl-chip:hover { background: var(--p-cobalt-ink); color: var(--p-chalk); border-color: var(--p-cobalt-ink); }
.bl-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bl-pills .bl-chip { min-height: 44px; padding-inline: var(--space-3); }

/* sections */
.bl-sec { padding-block: var(--space-6); background: var(--c-bg); color: var(--c-text); }
.bl-sec--tail { padding-top: 0; }
.bl-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-5); }
.bl-sec__h { font: 800 clamp(2rem, 4.6vw, 3.75rem)/0.95 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -0.035em; max-width: 14ch; overflow-wrap: anywhere; }
.bl-split { display: grid; gap: var(--space-5); }
.bl-back { margin-top: var(--space-4); }
@media (min-width: 900px) {
  .bl-sec { padding-block: var(--space-7); }
  .bl-sec--tail { padding-top: 0; }
  .bl-split { grid-template-columns: minmax(14rem, 4fr) 8fr; gap: var(--space-6); align-items: start; }
  .bl-split__h { position: sticky; top: calc(var(--bar-h) + var(--space-5)); }
}
.bl-sec--tail .bl-split { padding-top: var(--space-6); border-top: 2px solid var(--p-cobalt-ink); }

/* post rows: hub + date, title + excerpt, arrow. Ruled, flood ink on hover like the service-page rows. */
.bl-rows { list-style: none; padding: 0; margin: 0; }
.bl-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3) var(--space-4);
  padding: var(--space-4) var(--space-3); margin-inline: calc(var(--space-3) * -1); border-top: 2px solid var(--p-cobalt-ink);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.bl-row:last-child { border-bottom: 2px solid var(--p-cobalt-ink); }
.bl-row__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.bl-row__d, .bl-feat__d, .bl-step__d { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); font-size: var(--fs-small); font-weight: 600; }
.bl-row__d > * + *::before, .bl-feat__d > * + *::before, .bl-step__d > * + *::before { content: "·"; margin-right: var(--space-2); }
.bl-row__s { font: 800 var(--fs-small)/1 var(--font-display); }
.bl-row__main { min-width: 0; display: grid; gap: var(--space-2); }
.bl-row__t { font: 800 clamp(1.375rem, 2.2vw, 1.875rem)/1.08 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; max-width: 30ch; }
.bl-row__t a { text-decoration: none; }
.bl-row__t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bl-row__x { max-width: 60ch; line-height: 1.5; overflow-wrap: anywhere; color: color-mix(in srgb, currentColor 82%, transparent); }
.bl-row > .bl-ar { align-self: end; }
.bl-row:hover { background: var(--p-cobalt-ink); color: var(--p-chalk); }
.bl-row:hover > .bl-ar { transform: translate(3px, -3px); }
.bl-row:focus-within { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.bl-row :focus-visible { outline: none; }
@media (min-width: 900px) {
  .bl-row { grid-template-columns: 13.5rem minmax(0, 1fr) auto; align-items: start; }
  .bl-row__meta .bl-chip { white-space: normal; min-height: 30px; padding-block: 4px; }
  .bl-row__meta { grid-column: auto; flex-direction: column; align-items: flex-start; padding-top: 6px; }
  .bl-row__meta .bl-row__d { flex-direction: column; gap: 2px; }
  .bl-row__meta .bl-row__d > * + *::before { content: none; }
  .bl-row > .bl-ar { align-self: center; }
}
.bl-rows--tight .bl-row { grid-template-columns: minmax(0, 1fr) auto; padding-block: var(--space-3); }
.bl-rows--tight .bl-row__meta { grid-column: 1 / -1; flex-direction: row; align-items: center; padding-top: 0; }
.bl-rows--tight .bl-row__t { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); }
.bl-rows--tight .bl-row__x { display: none; }
.bl-rows--tight .bl-row > .bl-ar { width: 22px; height: 22px; align-self: center; }

/* ---- /blog page 1: masthead + featured newest post ---------------------------------------------------------------- */
.bl-mast { display: grid; }
.bl-mast__l { background: var(--c-bg); color: var(--c-text); }
.bl-mast__in { padding: calc(var(--bar-h) + var(--space-5)) var(--edge) var(--space-5); display: grid; gap: var(--space-4); align-content: end; height: 100%; }
.bl-mast__t { font: 800 clamp(5rem, 26vw, 13rem)/0.8 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -0.06em; margin-left: -0.04em; }
.bl-mast__lead { font-size: var(--fs-lead); line-height: 1.25; max-width: 26ch; overflow-wrap: anywhere; }
.bl-mast__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }

.bl-feat { position: relative; overflow: hidden; background: var(--c-bg); color: var(--c-text); }
.bl-feat .bl-emb { width: min(52vw, 15rem); top: var(--space-4); right: calc(var(--space-5) * -1); }
.bl-feat__in { position: relative; display: grid; gap: var(--space-3); padding: var(--space-6) var(--edge) var(--space-5); align-content: end; height: 100%; }
.bl-feat__k { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--fs-small); font-weight: 600; }
.bl-feat__t { font: 800 clamp(2rem, 7.4vw, 3.75rem)/0.98 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -0.035em; max-width: 18ch; overflow-wrap: anywhere; }
.bl-feat__t a { text-decoration: none; }
.bl-feat__t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bl-feat__x { font-size: var(--fs-body); line-height: 1.5; max-width: 48ch; overflow-wrap: anywhere; }
.bl-feat__go { margin-top: var(--space-2); }
.bl-feat:hover .bl-btn { background: var(--p-chalk); color: var(--p-cobalt-ink); }
.bl-feat:hover .bl-btn .bl-ar { transform: translate(3px, -3px); }
.tone--ink.bl-feat:hover .bl-btn { background: var(--p-vermilion); color: var(--p-ink-deep); }
.bl-feat:focus-within { outline: 3px solid var(--c-focus); outline-offset: -6px; }
.bl-feat :focus-visible { outline: none; }
@media (min-width: 1000px) {
  .bl-mast { grid-template-columns: 5fr 7fr; min-height: min(100dvh, 56rem); }
  .bl-mast__in { padding: calc(var(--bar-h) + var(--space-6)) var(--space-5) var(--space-6) var(--edge); }
  .bl-feat__in { padding: calc(var(--bar-h) + var(--space-7)) var(--space-6) var(--space-6); }
  .bl-feat .bl-emb { width: min(26vw, 22rem); top: calc(var(--bar-h) + var(--space-4)); right: calc(var(--space-6) * -1); }
}

/* later pages */
.bl-head { padding: calc(var(--bar-h) + var(--space-6)) 0 var(--space-5); background: var(--c-bg); color: var(--c-text); }
.bl-head .wrap { display: grid; gap: var(--space-3); }
.bl-head__t { font: 800 clamp(3.5rem, 12vw, 7rem)/0.85 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -0.05em; }
.bl-head__k { font-weight: 600; margin-bottom: var(--space-2); }

/* ---- topic tiles -------------------------------------------------------------------------------------------------- */
.bl-topics { padding-block: var(--space-6); }
@media (min-width: 900px) { .bl-topics { padding-block: var(--space-7); } }
.bl-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); grid-auto-flow: row dense; }
.bl-tile { min-width: 0; }
.bl-tile__a {
  position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t ar" "i i" "n n";
  gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  background: var(--t); color: var(--t-fg); text-decoration: none; --c-focus: var(--t-fg);
  transition: background-color 200ms var(--ease-out);
}
.bl-tile__t { grid-area: t; font: 800 clamp(1.375rem, 2.2vw, 2.125rem)/1 var(--font-display); letter-spacing: -0.025em; overflow-wrap: anywhere; align-self: center; }
.bl-tile__i { grid-area: i; font-size: var(--fs-small); line-height: 1.45; max-width: 44ch; }
@media (max-width: 599px) {
  .bl-tile__a { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "t n ar"; align-items: center; min-height: 64px; padding-block: 12px; }
  .bl-tile__i { display: none; }
  .bl-tile .bl-ar { width: 22px; height: 22px; }
  .bl-tile__t { font-size: 1.3125rem; }
}
.bl-tile__n { grid-area: n; font-size: var(--fs-small); font-weight: 600; }
.bl-tile .bl-ar { grid-area: ar; align-self: center; }
.bl-tile__a:hover { background: color-mix(in srgb, var(--t) 86%, var(--p-ink-deep)); }
.bl-tile__a:hover .bl-ar { transform: translate(3px, -3px); }
.bl-tile__a:focus-visible { outline: 3px solid var(--t-fg); outline-offset: -7px; }
.tone--ink .bl-tile__a:hover { background: color-mix(in srgb, var(--p-cobalt-ink) 88%, var(--p-chalk)); }
@media (min-width: 600px) {
  .bl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-tile.s2 { grid-column: span 2; }
  .bl-tile__a { min-height: 15rem; grid-template-areas: "n ar" "t t" "i i"; grid-template-rows: auto 1fr auto; padding: var(--space-4); align-content: stretch; }
  .bl-tile__t { align-self: end; max-width: 16ch; }
  .bl-tile .bl-ar { align-self: start; }
}
@media (min-width: 900px) {
  .bl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bl-tile.s2 { grid-column: auto; }
  .bl-tile.s3 { grid-column: span 2; }
}
@media (min-width: 1240px) {
  .bl-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bl-tile.s3 { grid-column: auto; }
  .bl-tile.s4 { grid-column: span 2; }
}

/* ---- pager --------------------------------------------------------------------------------------------------------- */
.bl-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); }
.bl-pager__nums { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.bl-pager__n { font-size: var(--fs-small); font-weight: 600; margin-right: var(--space-2); }
.bl-pager__nums a, .bl-pager__cur, .bl-pager__step {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-2);
  border: 2px solid var(--p-cobalt-ink); font-weight: 600; text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.bl-pager__step { padding: 0 var(--space-3); }
.bl-pager__cur { background: var(--p-cobalt-ink); color: var(--p-chalk); }
.bl-pager__nums a:hover, a.bl-pager__step:hover { background: var(--p-cobalt-ink); color: var(--p-chalk); }
.bl-pager__step.is-off { opacity: 0.3; }
.bl-pager__gap { font-weight: 600; }
@media (max-width: 599px) {
  .bl-pager__nums { order: -1; width: 100%; }
  .bl-pager__n { width: 100%; margin-bottom: var(--space-1); }
}

/* ---- hub header + series ------------------------------------------------------------------------------------------- */
.bh { position: relative; overflow: hidden; background: var(--c-bg); color: var(--c-text); }
.bh__in { display: grid; gap: var(--space-3); padding-top: calc(var(--bar-h) + var(--space-5)); padding-bottom: var(--space-6); }
.bh .bl-emb { width: min(44vw, 13rem); top: calc(var(--bar-h) + var(--space-3)); right: calc(var(--space-4) * -1); }
.bh__k { display: flex; gap: var(--space-2); font-size: var(--fs-small); font-weight: 600; margin-top: var(--space-4); }
.bh__t { font: 800 clamp(3rem, 13vw, 8rem)/0.88 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -0.05em; max-width: 12ch; overflow-wrap: anywhere; }
.bh__lead { font-size: var(--fs-lead); line-height: 1.25; max-width: 32ch; }
.bh__cta { margin-top: var(--space-3); }
@media (min-width: 900px) {
  .bh__in { padding-top: calc(var(--bar-h) + var(--space-6)); padding-bottom: var(--space-7); }
  .bh .bl-emb { width: min(34vw, 30rem); top: 50%; right: calc(var(--space-6) * -1); transform: translateY(-46%); }
  .bh__k { margin-top: var(--space-5); }
}

.bl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); counter-reset: none; }
.bl-step {
  position: relative; display: grid; align-content: start; gap: var(--space-2); padding: var(--space-4);
  background: var(--p-chalk); border-top: 8px solid var(--t);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.bl-step__n { font: 800 clamp(3rem, 6vw, 5rem)/0.85 var(--font-display); letter-spacing: -0.05em; color: var(--t); margin-bottom: var(--space-3); }
.tone--ink .bl-step__n { color: var(--p-cobalt); }
.bl-step__l { font: 800 var(--fs-small)/1.2 var(--font-display); }
.bl-step__t { font: 800 clamp(1.375rem, 2vw, 1.75rem)/1.08 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.bl-step__t a { text-decoration: none; }
.bl-step__t a::after { content: ""; position: absolute; inset: 0; }
.bl-step__x { font-size: var(--fs-small); line-height: 1.5; overflow-wrap: anywhere; }
.bl-step__d { margin-top: auto; padding-top: var(--space-2); }
.bl-step:hover { background: var(--p-cobalt-ink); color: var(--p-chalk); }
.bl-step:focus-within { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.bl-step :focus-visible { outline: none; }
@media (min-width: 900px) { .bl-steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } .bl-step { grid-template-rows: auto auto auto 1fr auto; } }

/* ---- post ---------------------------------------------------------------------------------------------------------- */
.bp { --bp-max: 42rem; }
@media (min-width: 1100px) { .bp { --bp-max: calc(14rem + var(--space-6) + 42rem); } }
.bp-head { position: relative; overflow: hidden; background: var(--c-bg); color: var(--c-text); }
.bp-head__in { display: grid; gap: var(--space-3); max-width: calc(var(--bp-max) + 2 * var(--edge)); padding-top: calc(var(--bar-h) + var(--space-5)); padding-bottom: var(--space-5); }
.bp-head .bl-emb { width: min(40vw, 12rem); top: calc(var(--bar-h) + var(--space-2)); right: calc(var(--space-4) * -1); }
.bp-head__t { font: 800 clamp(2.375rem, 6vw, 4.75rem)/0.95 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -0.04em; max-width: 20ch; overflow-wrap: anywhere; margin-top: var(--space-3); }
.bp-head__sub { font-size: var(--fs-lead); line-height: 1.25; max-width: 36ch; }
.bp-facts { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 2px solid currentColor; }
.bp-facts div { display: grid; gap: 2px; }
.bp-facts dt { font-size: var(--fs-small); }
.bp-facts dd { margin: 0; font-weight: 600; }
.bp-head .bl-tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; }
.bp-head .bl-tags li { display: inline-flex; }
.bp-head .bl-tags a, .bp-head .bl-tags li:not(:has(a)) { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1.5px solid currentColor; border-radius: 999px; font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.bp-head .bl-tags a:hover { background: var(--p-cobalt-ink); color: var(--p-chalk); border-color: var(--p-cobalt-ink); }
.tone--ink .bp-head .bl-tags a:hover { background: var(--p-chalk); color: var(--p-cobalt-ink); border-color: var(--p-chalk); }
@media (min-width: 900px) {
  .bp-head__in { padding-top: calc(var(--bar-h) + var(--space-6)); padding-bottom: var(--space-6); }
  .bp-head .bl-emb { width: min(30vw, 26rem); top: 50%; right: calc(var(--space-6) * -1); transform: translateY(-46%); }
  .bp-head__t { max-width: min(20ch, calc(100vw - min(30vw, 26rem) - 2 * var(--edge))); }
}

.bp-wrap { background: var(--c-bg); color: var(--c-text); }
.bp-grid { display: grid; max-width: calc(var(--bp-max) + 2 * var(--edge)); padding-block: var(--space-5) var(--space-6); }
.bp-col { min-width: 0; font-size: var(--fs-body); line-height: 1.65; }
@media (min-width: 1100px) {
  .bp-grid { grid-template-columns: 14rem minmax(0, 42rem); gap: var(--space-6); padding-block: var(--space-6) var(--space-7); }
  .bp-col { grid-column: 2; }
}

/* on this page */
.bp-toc { display: none; }
.bp-toc ol, .bp-toc-m ol { list-style: none; margin: 0; padding: 0; }
.bp-toc__h { font: 800 var(--fs-small)/1.2 var(--font-display); margin-bottom: var(--space-3); }
.bp-toc a { display: block; padding: 6px 0 6px var(--space-3); border-left: 2px solid color-mix(in srgb, var(--p-cobalt-ink) 18%, transparent); font-size: var(--fs-small); line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; transition: border-color 150ms var(--ease-out); }
.bp-toc a:hover { border-left-color: var(--p-cobalt-ink); }
.bp-toc a.is-active { border-left: 4px solid var(--t); padding-left: calc(var(--space-3) - 2px); font-weight: 600; }
.tone--ink .bp-toc a.is-active { border-left-color: var(--p-vermilion); }
@media (min-width: 1100px) {
  .bp-toc { display: block; position: sticky; top: calc(var(--bar-h) + var(--space-5)); align-self: start; max-height: calc(100dvh - var(--bar-h) - var(--space-6)); overflow-y: auto; }
  .bp-toc-m { display: none; }
}
.bp-toc-m { margin-bottom: var(--space-5); border: 2px solid var(--p-cobalt-ink); }
.bp-toc-m summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 var(--space-3); font: 800 var(--fs-small)/1.2 var(--font-display); cursor: pointer; list-style: none; }
.bp-toc-m summary::-webkit-details-marker { display: none; }
.bp-toc-m summary::after { content: "+"; font: 800 1.5rem/1 var(--font-display); }
.bp-toc-m[open] summary::after { content: "\2212"; }
.bp-toc-m ol { padding: 0 var(--space-3) var(--space-3); }
.bp-toc-m a { display: block; padding: var(--space-2) 0; border-top: 1.5px solid color-mix(in srgb, var(--p-cobalt-ink) 18%, transparent); font-size: var(--fs-small); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

/* series strip inside a post */
.bp-series { margin: 0 0 var(--space-5); border: 2px solid var(--p-cobalt-ink); }
.bp-series__k { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 10px var(--space-3); background: var(--t); color: var(--t-fg); font: 800 var(--fs-small)/1.2 var(--font-display); }
.bp-series__list { list-style: none; margin: 0; padding: 0; }
.bp-series__list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-2); padding: var(--space-3); border-top: 1.5px solid var(--p-cobalt-ink); font-size: var(--fs-body); line-height: 1.35; }
.bp-series__list li:first-child { border-top: 0; }
.bp-series__l { font: 800 var(--fs-small)/1.5 var(--font-display); }
.bp-series__t { overflow-wrap: anywhere; }
.bp-series__list a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.bp-series__list a:hover { text-decoration-thickness: 3px; }
.bp-series__list .is-current { background: var(--p-cobalt-pale); box-shadow: inset 6px 0 0 var(--t); padding-left: calc(var(--space-3) + 6px); }
.bp-series__list .is-current .bp-series__t { font-weight: 800; }
@media (max-width: 480px) { .bp-series__list li { grid-template-columns: 1fr; gap: 0; } }

/* body copy */
.bp__body > *:first-child { margin-top: 0; }
.bp__body h2, .bp-faq > h2 { font: 800 clamp(1.625rem, 3.4vw, 2.25rem)/1.05 var(--font-display); letter-spacing: -0.03em; margin: var(--space-6) 0 var(--space-3); overflow-wrap: anywhere; scroll-margin-top: calc(var(--bar-h) + var(--space-4)); }
.bp__body h2::before, .bp-faq > h2::before { content: ""; display: block; width: 40px; height: 6px; margin-bottom: var(--space-3); background: var(--t); }
.tone--ink .bp__body h2::before, .tone--ink .bp-faq > h2::before { background: var(--p-vermilion); }
.bp__body h3, .bp-faq h3 { font: 800 1.3125rem/1.2 var(--font-display); letter-spacing: -0.015em; margin: var(--space-5) 0 var(--space-2); overflow-wrap: anywhere; }
.bp__body h4 { font: 700 1.0625rem/1.3 var(--font-text); margin: var(--space-4) 0 var(--space-1); overflow-wrap: anywhere; }
.bp__body p, .bp-faq p { margin: 0 0 var(--space-3); overflow-wrap: break-word; }
.bp__body ul, .bp__body ol, .bp-faq ul, .bp-faq ol { margin: 0 0 var(--space-3); padding-left: 1.4em; }
.bp__body ul, .bp-faq ul { list-style: disc; }
.bp__body ol, .bp-faq ol { list-style: decimal; }
.bp__body li, .bp-faq li { margin-bottom: var(--space-2); padding-left: 0.2em; }
.bp__body li::marker { font-weight: 600; }
.bp__body li > ul, .bp__body li > ol { margin: var(--space-2) 0 0; }
.bp__body a, .bp-faq a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bp__body a:hover, .bp-faq a:hover { text-decoration-thickness: 3px; }
.bp__body strong { font-weight: 600; }
.bp__body img { max-width: 100%; height: auto; margin: var(--space-4) 0; }
.bp__body figure { margin: var(--space-4) 0; }
.bp__body figcaption { font-size: var(--fs-small); margin-top: var(--space-2); }
.bp__body hr { border: 0; border-top: 2px solid var(--p-cobalt-ink); margin: var(--space-5) 0; }
.bp__body code { font: 0.9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--p-cobalt-pale); padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.bp__body pre { margin: var(--space-4) 0; padding: var(--space-3); background: var(--p-cobalt-pale); overflow-x: auto; max-width: 100%; font-size: var(--fs-small); line-height: 1.5; }
.bp__body pre code { background: none; padding: 0; overflow-wrap: normal; }

/* pull quote: any blockquote except the takeaways panel */
.bp__body blockquote { position: relative; margin: var(--space-6) 0; padding: var(--space-5) 0 var(--space-4); border-top: 2px solid var(--p-cobalt-ink); border-bottom: 2px solid var(--p-cobalt-ink); font: 800 clamp(1.5rem, 3.6vw, 2.125rem)/1.12 var(--font-display); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.bp__body blockquote::before { content: "\201C"; position: absolute; top: -0.42em; left: -0.04em; padding-right: 0.12em; background: var(--p-chalk); color: var(--t); font: 800 5rem/1 var(--font-display); }
.tone--ink .bp__body blockquote::before { color: var(--p-vermilion); }
.bp__body blockquote p { margin: 0 0 var(--space-2); }
.bp__body blockquote p:last-child { margin-bottom: 0; }

/* key takeaways panel (first blockquote, class set in blog.js) */
.bp__body blockquote.bp-takeaways { margin: 0 0 var(--space-5); padding: 0 var(--space-4) var(--space-4); border: 2px solid var(--p-cobalt-ink); background: var(--p-cobalt-pale); font: 400 var(--fs-body)/1.55 var(--font-text); letter-spacing: 0; }
.bp__body blockquote.bp-takeaways::before { content: none; }
.bp__body blockquote.bp-takeaways > p:first-child { margin: 0 calc(var(--space-4) * -1) var(--space-3); padding: 12px var(--space-4); background: var(--t); color: var(--t-fg); font: 800 var(--fs-body)/1.2 var(--font-display); letter-spacing: -0.01em; }
.bp__body blockquote.bp-takeaways > p:first-child strong { font-weight: 800; }
.bp__body blockquote.bp-takeaways ul, .bp__body blockquote.bp-takeaways ol { margin-bottom: 0; }
.bp__body blockquote.bp-takeaways li { margin-bottom: var(--space-2); }
.bp__body blockquote.bp-takeaways li:last-child { margin-bottom: 0; }
.bp__body blockquote.bp-takeaways li::marker { color: var(--p-cobalt-ink); }

/* tables scroll inside their own box */
.bp-table { margin: var(--space-5) 0; overflow-x: auto; max-width: 100%; border: 2px solid var(--p-cobalt-ink); -webkit-overflow-scrolling: touch; }
.bp-table:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.bp-table table { border-collapse: collapse; min-width: 100%; font-size: var(--fs-small); line-height: 1.45; }
.bp-table th, .bp-table td { text-align: left; vertical-align: top; padding: 12px var(--space-3); min-width: 8rem; }
.bp-table th { background: var(--p-cobalt-ink); color: var(--p-chalk); font: 800 var(--fs-small)/1.25 var(--font-display); white-space: nowrap; }
.bp-table tbody tr:nth-child(even) td { background: var(--p-cobalt-pale); }
.bp-table td + td, .bp-table th + th { border-left: 1.5px solid color-mix(in srgb, var(--p-cobalt-ink) 20%, transparent); }
.bp-table tbody td:first-child { font-weight: 600; }

/* closing WhatsApp link */
.bp__body .bp-cta { margin-top: var(--space-4); }
.bp__body .bp-cta a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--space-4); background: var(--p-cobalt-ink); color: var(--p-chalk); text-decoration: none; transition: background-color 200ms var(--ease-out); }
.bp__body .bp-cta a:hover { background: var(--p-cobalt); }

/* questions */
.bp-faq { margin-top: var(--space-6); }
.bp-faq__i { padding-block: var(--space-4); border-top: 2px solid var(--p-cobalt-ink); }
.bp-faq__i:last-child { border-bottom: 2px solid var(--p-cobalt-ink); }
.bp-faq__i h3 { margin-top: 0; }
.bp-faq__i > :last-child { margin-bottom: 0; }

/* after the post */
.bp-next { padding-block: var(--space-6); background: var(--c-bg); color: var(--c-text); }
.bp-next .wrap { display: grid; gap: var(--space-6); }
.bp-next__g { min-width: 0; }
.bp-next__g + .bp-next__g { padding-top: var(--space-6); border-top: 2px solid var(--p-cobalt-ink); }
@media (min-width: 900px) { .bp-next { padding-block: var(--space-7); } }

/* ---- the "blog unavailable" page (unchanged template) --------------------------------------------------------------- */
.bl__in { max-width: 48rem; margin-inline: auto; font-size: var(--fs-body); line-height: 1.6; }
.bl__lead { font-size: var(--fs-lead); line-height: 1.25; max-width: 32ch; margin-bottom: var(--space-6); overflow-wrap: anywhere; }
.bl__back { margin-top: var(--space-5); }

@media (prefers-reduced-motion: reduce) {
  .bl-ar, .bl-row, .bl-tile__a, .bl-step, .bl-btn, .bl-chip { transition: none; }
}
