/* ==========================================================================
   Yanza Brokerage Group: blog.css (the blog layer on top of site.css)
   Linked only on /blog/ and /es/blog/ pages, after site.css. Same tokens, same fonts, same header and footer.
   The site look is calm and ruled; the blog adds a friendlier layer on top of the same palette:
   rounded cards with soft shadows, tinted topic chips, a hover lift, a reading-progress bar.
   Everything that moves sits inside prefers-reduced-motion: no-preference. Light theme only, like the site.
   Generated pages use these class names (tools/build_blog.py); docs/growth/runbook-blog.md lists them.

   CONTENTS
    1  Blog tokens and base
    2  Chips, topic tiles, post cards, hub hero
    3  Post header and layout (TOC, sidebar)
    4  Quick answer card and post body (lists, callouts, tables, pull quote)
    5  FAQ, sources, share, author, CTA, related, pager, note
    6  Motion, print, forced colors
   ========================================================================== */

/* ---------- 1. Tokens and base ---------- */
:root {
  --b-r: 16px;
  --b-r-sm: 10px;
  --b-shadow: 0 1px 2px rgba(11, 21, 48, 0.06), 0 8px 22px -8px rgba(11, 21, 48, 0.14);
  --b-shadow-hover: 0 2px 4px rgba(11, 21, 48, 0.08), 0 18px 36px -10px rgba(11, 21, 48, 0.24);
  --b-dot: rgba(20, 33, 61, 0.16);
}
/* Topic colours: a soft background and a dark ink, each 5.9:1 or better together */
.cat-personal, .chip--personal { --cat-bg: #dfe9fb; --cat-ink: #183f7c; }
.cat-contractors, .chip--contractors { --cat-bg: #fbe8bf; --cat-ink: #774a05; }
.cat-fleets, .chip--fleets { --cat-bg: #d5ede6; --cat-ink: #0f5a49; }
.cat-business, .chip--business { --cat-bg: #e2e6ef; --cat-ink: #14213d; }
.cat-life-health, .chip--life-health { --cat-bg: #fadcdc; --cat-ink: #8f2630; }
.cat-local-seasonal, .chip--local-seasonal { --cat-bg: #e5efcf; --cat-ink: #3a5a0c; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.blog main { overflow-x: clip; }
.photo-round--sm { --size: 3.5rem; padding: 2px; }
.photo-round--lg { --size: 5rem; }

/* Reading progress (set by js/blog.js; stays empty without JavaScript) */
.read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 90; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-accent), #f0c36e); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- 2. Chips, topic tiles, post cards, hub hero ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2rem; padding: 0.3rem 0.85rem;
  background: var(--cat-bg, var(--c-paper-2)); color: var(--cat-ink, var(--c-navy));
  border-radius: 999px; font: 650 0.8125rem/1.2 var(--font-sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
}
.chip .ico { width: 1.05rem; height: 1.05rem; }
a.chip { min-height: 2.75rem; } /* links are 44px tall for thumbs; the plain label chips on cards stay 2rem */
a.chip:hover { color: var(--cat-ink, var(--c-navy)); box-shadow: 0 0 0 2px var(--cat-ink, var(--c-navy)); }
.chip.is-current { box-shadow: 0 0 0 2px var(--cat-ink, var(--c-navy)); }
.chip--all { --cat-bg: var(--c-navy); --cat-ink: #fff; }
.chip--all:hover { color: #fff; box-shadow: 0 0 0 2px var(--c-accent); }
.chip--all.is-current { box-shadow: 0 0 0 2px var(--c-accent); }
.chip__n { padding: 0 0.45rem; background: rgba(255, 255, 255, 0.7); border-radius: 999px; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--sp-5); }

/* Hub hero and category hero */
.blog-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--c-paper); border-bottom: 1px solid var(--c-rule); padding-block: var(--sp-5) var(--sp-7); }
.blog-hero::before, .post-head::before {
  content: ""; position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: min(52%, 36rem);
  background-image: radial-gradient(circle, var(--b-dot) 1.4px, transparent 1.7px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 92%); mask-image: linear-gradient(270deg, #000 0%, transparent 92%);
}
.blog-hero::after, .post-head::after {
  content: ""; position: absolute; z-index: -1; right: -5rem; top: -7rem; width: 17rem; height: 17rem; border-radius: 50%;
  background: var(--c-accent); opacity: 0.17;
}
.blog-hero__grid { display: grid; gap: var(--sp-6); }
.blog-hero__text > :last-child { margin-bottom: 0; }
.blog-hero h1 { max-width: 15ch; margin-bottom: 0.35em; }
.blog-hero h1 em { font-style: italic; text-decoration: underline wavy var(--c-accent); text-decoration-thickness: 3px; text-underline-offset: 0.16em; text-decoration-skip-ink: none; }
.blog-hero .lead { max-width: 38rem; }
.blog-hero .trust-card { background: #fff; border: 1px solid var(--c-rule); border-top: 4px solid var(--c-accent); border-radius: var(--b-r); padding: var(--sp-5); box-shadow: var(--b-shadow); }
@media (min-width: 56rem) {
  .blog-hero { padding-block: var(--sp-6) var(--sp-8); }
  .blog-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--sp-8); align-items: center; }
}
.blog-hero--cat { background: color-mix(in srgb, var(--cat-bg) 52%, #fff); }
.blog-hero--cat .wrap > .lead { max-width: 44rem; margin-bottom: 0; }
.blog-hero--cat::before { background-image: radial-gradient(circle, color-mix(in srgb, var(--cat-ink) 22%, transparent) 1.4px, transparent 1.7px); }
.blog-hero--cat::after { background: var(--cat-ink); opacity: 0.1; }
.blog-hero--cat h1 { max-width: 22ch; margin: 0; font-size: var(--step-4); }
.blog-hero__cat { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-3) 0 var(--sp-4); }
.blog-hero__cat .kicker { margin-bottom: 0.4rem; }
.blog-hero__cat .topic__icon { width: 4.5rem; height: 4.5rem; margin: 0; border-radius: 20px; background: #fff; box-shadow: var(--b-shadow); }
.blog-hero__cat .topic__icon .ico { width: 2.5rem; height: 2.5rem; stroke-width: 1.5; }
.blog-hero .kicker { margin-bottom: var(--sp-3); }
.blog-empty { max-width: 36rem; padding-block: var(--sp-6); }

/* Topic tiles */
/* Explicit columns so 3, 5 or 6 tiles never leave one orphan on its own row */
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.topic-grid li { margin: 0; }
@media (min-width: 36rem) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topic-grid > li:last-child:nth-child(odd) { grid-column: auto; }
  .topic-grid:has(> li:nth-child(3):last-child), .topic-grid:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic-grid:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.topic {
  position: relative; display: grid; align-content: start; gap: 0.3rem; height: 100%; padding: 1.25rem 1.25rem 1.1rem;
  background: var(--cat-bg); color: var(--c-text); border-radius: var(--b-r); text-decoration: none; box-shadow: var(--b-shadow);
}
.topic:hover { color: var(--c-text); box-shadow: var(--b-shadow-hover); }
.topic__icon { display: inline-grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: 0.5rem; border-radius: 14px; background: rgba(255, 255, 255, 0.78); color: var(--cat-ink); }
.topic__icon .ico { width: 1.7rem; height: 1.7rem; }
.topic__name { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--c-navy); }
.topic__blurb { font-size: var(--step--1); line-height: 1.45; color: var(--c-text); }
.topic__count { margin-top: 0.35rem; font: 700 0.75rem/1.2 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cat-ink); }
.topic:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Post cards */
.post-grid { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); } }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--c-rule); border-radius: var(--b-r); box-shadow: var(--b-shadow); }
.post-card__art {
  position: relative; display: grid; place-items: center; min-height: 6.5rem; overflow: hidden;
  background-color: var(--cat-bg); background-image: radial-gradient(circle, rgba(20, 33, 61, 0.11) 1.3px, transparent 1.6px); background-size: 16px 16px; color: var(--cat-ink);
}
.post-card__art::after { content: ""; position: absolute; right: -1.6rem; top: -1.6rem; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--cat-ink); opacity: 0.09; }
.post-card__art .ico { position: relative; z-index: 1; width: 3.6rem; height: 3.6rem; stroke-width: 1.4; transform: rotate(-5deg); }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); }
.post-card__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; margin: 0 0 var(--sp-1); }
.post-card__when { font-size: var(--step--2); color: var(--text-2); font-variant-numeric: tabular-nums; }
.post-card__title { margin: 0; font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; }
.post-card__title a { color: var(--heading); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.post-card__tldr { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; font-size: var(--step--1); line-height: 1.55; color: var(--text-2); }
.post-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: var(--sp-3); font-size: var(--step--1); font-weight: 650; color: var(--link); }
.post-card__more .ico { width: 1.05rem; height: 1.05rem; }
.post-card:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.post-card__title a:focus-visible { outline: none; box-shadow: none; }
@media (min-width: 48rem) {
  .post-card--big { flex-direction: row; }
  .post-card--big .post-card__art { flex: 0 0 38%; min-height: 17rem; }
  .post-card--big .post-card__art .ico { width: 6.5rem; height: 6.5rem; }
  .post-card--big .post-card__body { justify-content: center; padding: var(--sp-6) var(--sp-7); gap: var(--sp-3); }
  .post-card--big .post-card__title { font-size: var(--step-3); line-height: 1.1; }
  .post-card--big .post-card__tldr { -webkit-line-clamp: 4; font-size: var(--step-0); }
  .post-card--big .post-card__more { margin-top: var(--sp-3); }
}

/* ---------- 3. Post header and layout ---------- */
.post-head { position: relative; isolation: isolate; overflow: hidden; background: var(--c-paper); border-bottom: 1px solid var(--c-rule); padding: var(--sp-5) 0 var(--sp-6); }
.post-head__inner { max-width: var(--wrap); }
.post-head .chip { margin-bottom: var(--sp-4); }
.post-head h1 { max-width: 20em; margin: 0; font-size: clamp(2rem, 1.45rem + 2.7vw, 3.5rem); line-height: 1.07; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--c-rule-2); }
.post-meta .byline { margin: 0; }
.post-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0; padding: 0; font-size: var(--step--1); color: var(--text-2); }
.post-facts li { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }
.post-facts .ico { width: 1.15rem; height: 1.15rem; color: var(--c-accent-ink); }
.post-facts a { display: inline-block; padding: 0.7rem 0; margin: -0.7rem 0; font-weight: 600; } /* 44px hit area, no layout change */

.post-layout-wrap { background: #fff; }
.post-layout { display: grid; gap: var(--sp-5); padding-block: var(--sp-6) var(--sp-8); }
.post-main { min-width: 0; }
.post-aside { display: none; }
@media (min-width: 64rem) {
  .post-layout { grid-template-columns: minmax(0, 42rem) 17rem; justify-content: space-between; column-gap: var(--sp-8); padding-block: var(--sp-7) var(--sp-9); }
  .post-aside { display: block; }
  /* Sticky column: never taller than the screen (a 700px-high laptop used to cut the Call/Text buttons off); it scrolls inside itself as a last resort */
  .post-aside__sticky {
    position: sticky; top: 5.5rem; display: grid; gap: var(--sp-5); max-height: calc(100vh - 6.5rem); max-height: calc(100dvh - 6.5rem);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 8px; margin: -8px; /* room so focus rings are not clipped */
  }
}
@media (min-width: 64rem) and (max-height: 50rem) {
  .aside-card { padding: var(--sp-4); }
  .aside-card .photo-round, .aside-card p:not(.aside-card__title) { display: none; }
}

/* Breadcrumbs on a post: one line, the long title ends in an ellipsis */
.post-head .breadcrumbs ol { flex-wrap: nowrap; }
.post-head .breadcrumbs li { flex: none; }
.post-head .breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Table of contents: a collapsible card on phones, a sticky list on desktop */
.toc--m { margin: 0 0 var(--sp-5); background: var(--c-paper); border: 1px solid var(--c-rule); border-radius: var(--b-r-sm); }
.toc--m summary { display: flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0.5rem 1rem; cursor: pointer; list-style: none; font: 650 var(--step--1)/1.2 var(--font-sans); color: var(--heading); }
.toc--m summary::-webkit-details-marker { display: none; }
.toc--m summary::after { content: ""; margin-left: auto; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.toc--m[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.toc--m .toc__list { padding: 0 1rem 0.75rem; }
.toc--m .toc__list a { padding-block: 0.8rem; border-top: 1px solid var(--c-rule); } /* 44px rows on phones */
.toc--m .toc__list li:first-child a { border-top: 0; }
.toc--m summary:focus-visible { border-radius: var(--b-r-sm); }
.toc--d { display: none; }
@media (min-width: 64rem) { .toc--m { display: none; } .toc--d { display: block; padding-left: var(--sp-4); border-left: 2px solid var(--c-rule); } }
.toc__title { margin: 0 0 var(--sp-2); font: 700 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kicker); }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list li { margin: 0; }
.toc__list a { position: relative; display: block; padding: 0.35rem 0; font-size: 0.9rem; line-height: 1.35; color: var(--text-2); text-decoration: none; }
.toc__list a:hover { color: var(--heading); text-decoration: underline; text-decoration-color: var(--c-accent); }
.toc__list a[aria-current="true"] { color: var(--heading); font-weight: 650; }
.toc--d .toc__list a[aria-current="true"]::before { content: ""; position: absolute; left: calc(-1 * var(--sp-4) - 2px); top: 0.3rem; bottom: 0.3rem; width: 2px; background: var(--c-accent); }

.aside-card { padding: var(--sp-5); background: var(--c-paper); border: 1px solid var(--c-rule); border-radius: var(--b-r); }
.aside-card .photo-round { margin-bottom: var(--sp-3); }
.aside-card__title { margin: 0 0 var(--sp-2); font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; line-height: 1.2; color: var(--heading); }
.aside-card p { font-size: var(--step--1); }
.aside-card .actions { margin-top: var(--sp-3); }
.blog main .btn-small { min-height: 2.75rem; } /* the site's small button is 40px; thumbs want 44 */

/* ---------- 4. Quick answer card and post body ---------- */
.tldr {
  --heading: #fff; --text: #fff; --link: #fff; --link-hover: #ffe2a8; --focus: #fff; --focus-halo: transparent;
  position: relative; overflow: hidden; margin: 0 0 var(--sp-6); padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6);
  background: var(--c-navy); color: #fff; border-radius: var(--b-r); box-shadow: var(--b-shadow);
}
.tldr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c-accent); }
.tldr::after { content: ""; position: absolute; right: -2.5rem; bottom: -3.5rem; width: 9rem; height: 9rem; border-radius: 50%; border: 1.3rem solid rgba(224, 160, 48, 0.2); }
.tldr__label { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 var(--sp-2); font: 700 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: #f0c36e; }
.tldr__label .ico { width: 1.2rem; height: 1.2rem; }
.tldr__text { position: relative; z-index: 1; margin: 0; font-family: var(--font-serif); font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.4; letter-spacing: -0.005em; color: #fff; }

.post-body { font-size: 1.125rem; line-height: 1.72; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.15em; }
.post-body > p:first-child { font-size: var(--step-1); line-height: 1.55; color: var(--heading); }
/* html already has scroll-padding-top for the sticky header; a second scroll-margin here doubled the gap above a heading you jump to */
.post-body h2 { margin: 2.2em 0 0.6em; font-size: var(--step-3); line-height: 1.12; scroll-margin-top: 0; }
.post-body h2::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: 0.55rem; border-radius: 2px; background: var(--c-accent); }
.post-body h3 { margin: 1.8em 0 0.5em; font-size: var(--step-2); scroll-margin-top: 0; }
.post-body [tabindex="-1"]:focus, .post-faq [tabindex="-1"]:focus, .post-sources [tabindex="-1"]:focus { outline: none; box-shadow: none; } /* headings that blog.js focuses after a table-of-contents jump */
/* Balanced headings and no one-word last lines */
.post-head h1, .blog-hero h1, .post-body h2, .post-body h3, .post-faq h2, .post-sources h2, .post-card__title, .pager__title, .aside-card__title, .inline-cta__title, .tldr__text { text-wrap: balance; }
.post-body p, .post-body li, .co p { text-wrap: pretty; }
.post-body code { padding: 0.1em 0.4em; background: var(--c-paper-2); border-radius: 6px; font-family: var(--font-mono); font-size: 0.9em; }
.post-body hr { margin: var(--sp-7) 0; }

/* Lists: amber dots, numbered steps in navy discs */
.post-body ul, .post-body ol { list-style: none; margin: 0 0 1.3em; padding: 0; }
.post-body li { position: relative; margin: 0 0 0.55em; padding-left: 1.7rem; }
.post-body ul > li::before { content: ""; position: absolute; left: 0.2rem; top: 0.72em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c-accent); }
.post-body ol { counter-reset: step; }
.post-body ol > li { counter-increment: step; padding-left: 2.5rem; }
.post-body ol > li::before { content: counter(step); position: absolute; left: 0; top: 0.12em; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--c-navy); color: #fff; font: 700 0.8125rem/1.75rem var(--font-sans); text-align: center; }
.post-body li > ul, .post-body li > ol { margin: 0.5em 0 0.3em; }
.post-body li > ul > li::before { width: 0.45rem; height: 0.45rem; background: transparent; border: 2px solid var(--c-accent); top: 0.7em; }
.post-body li > ol > li::before { background: var(--c-paper-2); color: var(--c-navy); }

/* Callouts */
.co {
  --co-bg: var(--c-paper); --co-line: var(--c-rule-2); --co-ink: var(--c-navy);
  margin: 1.9rem 0; padding: 1.1rem 1.35rem 1.15rem; background: var(--co-bg); color: var(--c-text);
  border: 1px solid var(--co-line); border-left: 6px solid var(--co-ink); border-radius: var(--b-r-sm) var(--b-r) var(--b-r) var(--b-r-sm); font-size: 1.0625rem; line-height: 1.65;
}
.co--tip { --co-bg: #fdf3d9; --co-line: #ecd28b; --co-ink: #7a4d06; }
.co--plain { --co-bg: #e8eefa; --co-line: #c3d1ee; --co-ink: #183f7c; }
.co--watch { --co-bg: #fbe9e2; --co-line: #efbfae; --co-ink: #8a3216; }
.co--example { --co-bg: #e7f3eb; --co-line: #b7d9c3; --co-ink: #1b6340; }
.co--quick { --co-bg: var(--c-navy); --co-line: var(--c-navy); --co-ink: #f0c36e; color: #fff; --heading: #fff; --link: #fff; --link-hover: #ffe2a8; --focus: #fff; --focus-halo: transparent; }
.co__title { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.5rem; font: 700 0.8125rem/1.3 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--co-ink); }
.co__title .ico { width: 1.4rem; height: 1.4rem; }
.co__body > :last-child, .co__body > ul:last-child, .co__body > ol:last-child { margin-bottom: 0; }
.co p { margin: 0 0 0.8em; }
.co--quick strong { color: #fff; }
.post-body .co ul > li::before { background: var(--co-ink); }

.inline-cta { display: grid; gap: 0.2rem; margin: 2.4rem 0; padding: 1.1rem 1.35rem; background: var(--c-paper); border: 2px dashed var(--c-rule-2); border-radius: var(--b-r); }
.post-body .inline-cta__title { margin: 0; font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; line-height: 1.25; color: var(--heading); } /* .post-body p (0,1,1) used to win and left a 1.15em gap under the title */
.post-body .inline-cta p:last-child { margin: 0; font-size: 1rem; }

/* Pull quote */
.pull { position: relative; margin: 2.2rem 0; padding: 1.4rem 1.5rem 1.2rem 3.4rem; background: var(--c-paper); border-radius: var(--b-r); }
.pull::before { content: "\201C"; position: absolute; left: 0.9rem; top: 0.1rem; font-family: var(--font-serif); font-size: 4.5rem; line-height: 1; color: var(--c-accent); }
.pull blockquote { margin: 0; }
.pull p { margin: 0; font-family: var(--font-serif); font-size: var(--step-2); font-style: italic; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; color: var(--heading); }
.pull p + p { margin-top: 0.6em; }
.pull figcaption { margin-top: 0.7rem; font-size: var(--step--1); font-weight: 600; color: var(--text-2); }

/* Tables: rounded, zebra rows; wide ones scroll sideways on phones (blog.js shows a fade on the edge that has more) */
.post-table { position: relative; margin: 1.9rem 0; background: #fff; border: 1px solid var(--c-rule); border-radius: var(--b-r); box-shadow: var(--b-shadow); overflow: hidden; }
.post-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-table__scroll:focus-visible { outline-offset: -3px; }
.post-table.is-more::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2.5rem; pointer-events: none; background: linear-gradient(270deg, rgba(11, 21, 48, 0.26), rgba(11, 21, 48, 0)); }
.post-table .table { min-width: 0; font-size: 0.95rem; line-height: 1.45; }
.post-table.cols-4 .table { min-width: 30rem; }
.post-table.cols-5 .table { min-width: 38rem; }
.post-table .table th, .post-table .table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--c-rule); }
.post-table .table thead th { background: var(--c-navy); color: #fff; border-bottom: 0; text-transform: none; letter-spacing: 0.02em; font: 650 0.8125rem/1.3 var(--font-sans); }
.post-table .table tbody th { width: auto; min-width: 7rem; color: var(--heading); font-weight: 650; }
.post-table .table tbody tr:nth-child(even) > * { background: #f8f5ee; }
.post-table .table tbody tr:hover > * { background: #f1ead8; }
.post-table .table tbody tr:last-child > * { border-bottom: 0; }
/* On a phone a wide table scrolls sideways; the row label stays put so every cell still has its label */
@media (max-width: 47.99rem) {
  .post-table .table th[scope="row"], .post-table .table thead th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--c-rule); }
  .post-table .table tbody th[scope="row"] { background: #fff; }
  .post-table .table tbody tr:nth-child(even) > th[scope="row"] { background: #f8f5ee; }
  .post-table .table thead th:first-child { background: var(--c-navy); z-index: 2; box-shadow: none; }
}
.ta-center { text-align: center !important; }
.ta-right { text-align: right !important; }

/* ---------- 5. FAQ, sources, share, author, CTA, related, pager, note ---------- */
.post-faq, .post-sources { margin-top: var(--sp-8); }
.post-faq h2, .post-sources h2 { margin: 0 0 var(--sp-4); font-size: var(--step-3); scroll-margin-top: 0; }
.post-faq .faq { max-width: none; border-top: 0; }
.post-faq .faq details { margin-bottom: 0.7rem; padding: 0 1.15rem; background: #fff; border: 1px solid var(--c-rule); border-radius: var(--b-r); box-shadow: var(--b-shadow); }
.post-faq .faq details[open] { border-color: var(--c-navy); }
.post-faq .faq summary { min-height: 3.25rem; font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem); }
.post-faq .faq summary::before, .post-faq .faq summary::after { right: 0; }
.post-faq .faq .answer { font-size: 1.0625rem; }

.sources { list-style: none; margin: 0 0 var(--sp-3); padding: 0; counter-reset: src; }
.sources li { position: relative; margin: 0 0 0.35rem; padding: 0.15rem 0 0.4rem 2.1rem; counter-increment: src; line-height: 1.45; }
.sources li::before { content: counter(src); position: absolute; left: 0; top: 0.2rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-paper-2); color: var(--heading); font: 700 0.75rem/1.5rem var(--font-sans); text-align: center; }
.sources a { display: inline; padding-block: 0.65rem; font-weight: 600; overflow-wrap: anywhere; } /* inline padding grows the tap area (about 44px) without moving the lines */
.sources a::after {
  content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.3em; background: currentColor; vertical-align: -0.05em;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5H5V6h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5H5V6h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sources__host { display: block; font-size: var(--step--2); color: var(--text-2); }
.sources__note { margin: 0; font-size: var(--step--1); color: var(--text-2); }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin: var(--sp-8) 0 var(--sp-6); padding-block: var(--sp-4); border-block: 1px solid var(--c-rule); }
.post-share__label { font: 700 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.post-share ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.post-share li { margin: 0; }
.post-share a, .share__copy {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.35rem 1.05rem; background: #fff; color: var(--heading);
  border: 1.5px solid var(--c-rule-2); border-radius: 999px; font: 600 0.875rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
}
.post-share a:hover, .share__copy:hover { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.share__copy .ico { width: 1rem; height: 1rem; }

.author-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4) var(--sp-5); align-items: start; padding: var(--sp-5); background: var(--c-paper); border: 1px solid var(--c-rule); border-radius: var(--b-r); }
.author-box .photo-round { margin-top: 0.15rem; }
.author-box p { margin: 0 0 0.5rem; font-size: var(--step--1); line-height: 1.55; }
.author-box__kicker { font: 700 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kicker); }
.author-box .author-box__name { margin: 0; font-family: var(--font-serif); font-size: var(--step-2); font-weight: 600; line-height: 1.15; color: var(--heading); }
.author-box .author-box__role { margin-bottom: var(--sp-3); font-weight: 600; color: var(--text); }
.author-box .actions { margin-top: var(--sp-3); }
@media (max-width: 30rem) { .author-box { grid-template-columns: minmax(0, 1fr); } }

/* CTA band: the site's .cta-band, with a smaller heading and the "or text, WhatsApp..." line */
.post-cta h2 { max-width: 24ch; font-size: var(--step-3); }
.post-cta .kicker { color: var(--kicker); }
.cta-alt, .cta-fine { max-width: 46rem !important; margin: var(--sp-4) 0 0; font-size: var(--step--1); color: var(--text-2) !important; }
.cta-alt + .cta-fine { margin-top: var(--sp-2); }
.cta-alt a, .cta-fine a { color: #fff; }

.post-related { padding-block: var(--sp-8); background: var(--c-paper); }
.post-related h2 { margin: 0 0 var(--sp-5); font-size: var(--step-3); }

.pager { display: grid; gap: var(--sp-4); padding-block: var(--sp-7) var(--sp-6); }
@media (min-width: 40rem) { .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pager__link--next:only-child { grid-column: 2; } }
.pager__link { display: grid; gap: 0.25rem; padding: var(--sp-4) var(--sp-5); background: #fff; border: 1px solid var(--c-rule); border-radius: var(--b-r); box-shadow: var(--b-shadow); text-decoration: none; color: var(--heading); }
.pager__link:hover { color: var(--heading); border-color: var(--c-navy); }
.pager__label { font: 700 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kicker); }
.pager__title { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.pager__link--prev .pager__label::before { content: "\2190  "; }
.pager__link--next { text-align: right; }
.pager__link--next .pager__label::after { content: "  \2192"; }

.post-note { padding-block: var(--sp-5) var(--sp-8); font-size: var(--step--1); color: var(--text-2); }
.post-note p { max-width: 54rem; margin: 0 0 var(--sp-2); }

/* ---------- 6. Motion, print, forced colors ---------- */
@media (prefers-reduced-motion: no-preference) {
  .chip, .topic, .post-card, .pager__link, .post-share a, .share__copy, .post-faq .faq details { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease; }
  .post-card:hover, .topic:hover, .pager__link:hover { transform: translateY(-3px); }
  .post-card:hover, .pager__link:hover { box-shadow: var(--b-shadow-hover); }
  a.chip:hover { transform: translateY(-1px); }
  .post-card__art .ico, .topic__icon .ico { transition: transform 0.25s ease; }
  .post-card:hover .post-card__art .ico { transform: rotate(4deg) scale(1.08); }
  .topic:hover .topic__icon .ico { transform: rotate(-6deg) scale(1.08); }
  .post-card__more .ico { transition: transform 0.18s ease; }
  .post-card:hover .post-card__more .ico { transform: translateX(4px); }
  .toc__list a { transition: color 0.15s ease; }
}
@media print {
  .read-progress, .post-aside, .toc, .post-share, .inline-cta, .chips, .pager, .post-related, .share__copy { display: none !important; }
  .post-head, .blog-hero, .post-layout-wrap { background: #fff; }
  .post-head::before, .post-head::after, .blog-hero::before, .blog-hero::after { display: none; }
  .tldr, .co--quick { background: #fff; color: #000; border: 1px solid #000; }
  .tldr__text, .tldr__label, .co--quick .co__title { color: #000; }
  .post-faq details > .answer { display: block; }
  .co, .pull, .post-table, .tldr { break-inside: avoid; }
}
@media (forced-colors: active) {
  .chip, .tldr, .co, .post-card, .topic, .post-table { border: 1px solid CanvasText; }
  .read-progress span { background: Highlight; }
}
