/* ============================================================
   Blog index — v5 "House Wood & Gold"
   ============================================================
   Redesign of the v4 editorial index, direction picked by xian
   2026-08-26 from a 3-AI panel (Claude synthesis, endorsed by
   Gemini + GPT-5 review rounds; mockup:
   _internal/mockups/blog-index-redesign-2026-08.html).

   What changed vs v4, and why:
   - Dark wood hero (#43301A→#2E1F0E) in the site's own palette —
     the page had three near-identical creams and no anchor.
   - One gold token (#D9B96A) instead of three near-identical
     golds; clay stays reserved for kickers/accents.
   - No text below 12px; meta/footers 13–14px (legibility was an
     explicit owner complaint).
   - Cover images render unfiltered — the old
     saturate(0.82) sepia(0.05) made photos look aged.
   - Coverless articles get dark "book cover" glyph tiles.
   - The featured slider stays (xian: keep sliding, add a timer);
     dots are replaced by timed progress segments — see
     blog-list-loader.js for the autoplay wiring.

   NAMESPACING RULES ARE UNCHANGED from v4 (see #278): every rule
   is prefixed `bv-` AND scoped under `.blog-v4`; the palette is
   local custom properties, not tokens.css. Nothing here can reach
   the shared header/footer or another page — and they can't reach
   in either.
   ============================================================ */

.blog-v4 {
  --bv-hero-a: #43301A;        /* deep wood, kept for accents */
  --bv-hero-b: #2E1F0E;        /* deep wood ink — the active filter pill */
  --bv-cream: #F4EEE3;         /* library paper */
  --bv-cream-raised: #FBF8F2;
  --bv-cream-white: #FFFDF8;   /* card ground */
  --bv-ink: #1C1106;           /* headings */
  --bv-stone: #5C4730;         /* body text */
  --bv-stone-light: #7A6248;   /* meta text (13px+ only) */
  --bv-line: #E2D6BC;
  --bv-line-soft: #EFE5D0;
  --bv-gold: #D9B96A;          /* THE gold. Do not add more golds. */
  --bv-brown: #8C5A28;         /* em-phrases, links, author names */
  --bv-clay: #9A6035;          /* kickers, chop seal */
  --bv-clay-soft: #F0E0BC;
  --bv-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --bv-zh: 'Noto Serif SC', 'Source Han Serif SC', serif;
  --bv-content: 1080px;
}

.blog-v4 .bv-container {
  width: min(var(--bv-content), calc(100% - 96px));
  margin: 0 auto;
}
/* xian, 2026-08-31: "utilize full page, just leave little space will do".
   From 1200px up the index stops sitting in a 1080px column and takes the
   window, keeping a 56px gutter. The 1760px ceiling is not timidity: past
   that the grid rows get so wide the eye loses the line between a card's
   cover and its title. */
@media (min-width: 1200px) {
  .blog-v4 .bv-container { width: min(1760px, calc(100% - 112px)); }
}

.blog-v4 .bv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bv-clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.blog-v4 .bv-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bv-gold);
}

/* ── Hero: story-template paper editorial (xian 2026-08-27 —
   "make the blog index header match the story template also").
   Same language as article.html's header (#307): light cream ground,
   dash eyebrow, Fraunces 500 at the template scale, 17px dek. The
   dark wood band is retired from the index too. ── */
.blog-v4 .bv-hero {
  background: var(--bv-cream);
  color: var(--bv-ink);
  padding: 46px 0 54px;
  border-bottom: 1px solid var(--bv-line);
  position: relative;
}
/* The desktop nav is position:fixed and, unlike the mobile one, has NO body
   padding compensating for it — so each page clears it itself (.hero-v3 uses
   120px). It only exists at >=1001px: from 769-1000px courtyard-v3.css hides
   it in favour of .m-nav-only, which body{padding-top:64px} already offsets.
   Without this the title sat under the nav and was clipped (xian, 2026-08-31).
   The nav's own height is not constant: it wraps to ~129px just above the
   breakpoint (its content needs ~1009px) and settles at ~107px from ~1100px,
   so the tighter value belongs on the WIDER band, where the nav is stable. */
@media (min-width: 1001px) {
  .blog-v4 .bv-hero { padding-top: 150px; }
}
@media (min-width: 1101px) {
  .blog-v4 .bv-hero { padding-top: 128px; }
}
/* Below 1001px the fixed bar is .m-nav (71px, or 133px when it wraps around
   900px). courtyard-v3.css offsets the body by 64px for it, but that offset
   is not reaching this page — so the hero clears the bar itself. 96px covers
   both the 71px bar with no offset and the 133px bar with it. */
@media (min-width: 681px) and (max-width: 1000px) {
  .blog-v4 .bv-hero { padding-top: 96px; }
}
.blog-v4 .bv-hero .bv-eyebrow {
  display: block;
  color: var(--bv-clay);
  font-weight: 500;
}
.blog-v4 .bv-hero .bv-eyebrow::before {
  display: inline-block;
  width: 28px;
  height: auto;
  border-top: 1px solid var(--bv-clay);
  background: none;
  vertical-align: middle;
  margin: 0 9px 3px 0;
}
.blog-v4 .bv-hero h1 {
  font-family: var(--bv-display);
  font-size: clamp(46px, 6.6vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--bv-ink);
  margin: 16px 0 20px;
  max-width: 920px;
}
.blog-v4 .bv-hero h1 em {
  color: var(--bv-brown);
  font-style: italic;
}
/* tokens.css paints every [lang="zh"] element var(--ink-soft); keep the
   hero's own colours authoritative in both languages (see #299). */
.blog-v4 .bv-hero h1 [lang="zh"],
.blog-v4 .bv-hero p [lang="zh"] {
  color: inherit;
}
.blog-v4 .bv-hero p {
  max-width: 650px;
  margin: 0;
  color: #5F4A33;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
}
/* ── Featured slider: white band. (Top hairline dropped — the hero's
   own border-bottom now draws that line; two would double up.) ── */
.blog-v4 .bv-feature-section {
  padding: 64px 0 70px;
  background: #FFFFFF;
}
.blog-v4 .bv-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.blog-v4 .bv-section-head h2 {
  font-family: var(--bv-display);
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--bv-ink);
  margin: 14px 0 0;
}
.blog-v4 .bv-section-head h2 em {
  color: var(--bv-brown);
  font-style: italic;
}
.blog-v4 .bv-slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-v4 .bv-slider-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--bv-line);
  background: transparent;
  color: var(--bv-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.blog-v4 .bv-slider-button:hover { background: var(--bv-ink); color: #fff; }
.blog-v4 .bv-slider-status {
  font-size: 13px;
  color: var(--bv-stone);
  min-width: 46px;
  text-align: center;
}
.blog-v4 .bv-feature-window {
  overflow: hidden;
  border: 1px solid var(--bv-line);
  border-radius: 16px;
  background: var(--bv-cream-white);
  box-shadow: 0 2px 4px rgba(36, 22, 8, 0.04), 0 18px 44px rgba(74, 49, 23, 0.09);
}
.blog-v4 .bv-feature-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.blog-v4 .bv-feature-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  min-height: 420px;
}
.blog-v4 .bv-feature-image {
  min-height: 420px;
  background: var(--bv-cream);
  overflow: hidden;
  position: relative;
}
.blog-v4 .bv-feature-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.blog-v4 .bv-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 48px;
}
.blog-v4 .bv-label {
  color: var(--bv-clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.blog-v4 .bv-feature-copy h3 {
  font-family: var(--bv-display);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bv-ink);
  margin: 0 0 14px;
}
.blog-v4 .bv-feature-copy p {
  color: var(--bv-stone);
  font-size: 15px;
  line-height: 1.72;
  margin: 0;
  max-width: 470px;
}
.blog-v4 .bv-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--bv-line-soft);
  margin-top: 26px;
  padding-top: 16px;
  color: var(--bv-stone);
  font-size: 13.5px;
}
.blog-v4 .bv-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bv-clay-soft);
  border: 1px solid var(--bv-line);
  font-family: var(--bv-zh);
  color: var(--bv-brown);
  flex: 0 0 auto;
}
.blog-v4 .bv-feature-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--bv-brown);
  font-size: 14px;
  font-weight: 700;
  width: max-content;
  border-bottom: 2px solid var(--bv-gold);
  padding-bottom: 3px;
}

/* Timed progress segments (replace the v4 dots). Each segment is a
   button; the active one carries an <i> fill that blog-list-loader.js
   animates over the autoplay interval. */
.blog-v4 .bv-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px; /* the 24px tap-height already pads the bars optically */
}
/* The button is 24px tall (WCAG 2.5.8 minimum target); the visible bar
   is the 4px stripe centred inside it. */
.blog-v4 .bv-progress-seg {
  width: 56px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.blog-v4 .bv-progress-seg::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--bv-line);
}
.blog-v4 .bv-progress-seg i {
  position: absolute;
  left: 0;
  top: 10px;
  height: 4px;
  width: 0%;
  background: var(--bv-brown);
  border-radius: 2px;
}
.blog-v4 .bv-progress-seg.is-done i { width: 100%; }
.blog-v4 .bv-progress-seg.is-active i { transition: width linear; }

/* ── Library: paper ground, counted pills, card grid ──────── */
.blog-v4 .bv-library {
  padding: 64px 0 84px;
  background: var(--bv-cream);
  background-image: radial-gradient(circle, rgba(139, 90, 43, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.blog-v4 .bv-library .bv-section-head h2 { color: var(--bv-ink); }
.blog-v4 .bv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 32px;
}
.blog-v4 .bv-filter {
  border: 1px solid #CBB98F;
  background: var(--bv-cream-white);
  border-radius: 999px;
  padding: 9px 16px;
  color: #523B22;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.blog-v4 .bv-filter small {
  font-size: 12.5px;
  font-weight: 500;
  color: #6E563B; /* 4.5:1+ on the cream-white pill (12.5px text) */
  margin-left: 4px;
}
.blog-v4 .bv-filter:hover { border-color: var(--bv-hero-b); }
.blog-v4 .bv-filter.is-active {
  background: var(--bv-hero-b);
  border-color: var(--bv-hero-b);
  color: #FBF5EA;
}
.blog-v4 .bv-filter.is-active small { color: rgba(251, 245, 234, 0.72); }
.blog-v4 .bv-grid {
  display: grid;
  /* Two across is the floor: the column count only ever grows with the
     window (2 → 3 at 1600), never shrinks. */
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Grid + reading rail ────────────────────────────────────
   The filter pills stay across the top (xian's call). The rail sits beside
   the grid only where there is genuinely room; below 1200px it drops
   underneath and lays its blocks out in a row, so nothing gets squeezed. */
.blog-v4 .bv-cols { display: block; }
.blog-v4 .bv-main { min-width: 0; }
.blog-v4 .bv-rail { margin-top: 34px; }
.blog-v4 .bv-rail-block + .bv-rail-block { margin-top: 22px; }
.blog-v4 .bv-rail-h {
  font-family: var(--bv-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--bv-ink);
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--bv-line);
}
/* Most read: a ranked list. The rank numerals come from a counter so the
   markup stays an ordered list for a screen reader. */
.blog-v4 .bv-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: bv-rank;
}
.blog-v4 .bv-rail-list li { counter-increment: bv-rank; }
.blog-v4 .bv-rail-list li + li {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--bv-line-soft);
}
.blog-v4 .bv-rail-list a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: baseline;
  padding: 6px 4px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  min-height: 40px;
}
.blog-v4 .bv-rail-list a:hover { background: #EDE7D8; }
.blog-v4 .bv-rail-rank::before {
  content: counter(bv-rank);
  font-family: var(--bv-display);
  font-size: 14px;
  color: var(--bv-gold);
}
.blog-v4 .bv-rail-title {
  display: block;
  font-family: var(--bv-display);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.28;
  color: var(--bv-ink);
}
.blog-v4 .bv-rail-text small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bv-clay);
}
.blog-v4 .bv-rail-cta p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bv-stone);
  margin: 0 0 12px;
}
.blog-v4 .bv-rail-book {
  display: inline-block;
  background: var(--bv-hero-b);
  color: #FBF5EA;
  border-radius: 11px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.blog-v4 .bv-rail-list a:focus-visible,
.blog-v4 .bv-rail-book:focus-visible {
  outline: 2px solid var(--bv-clay);
  outline-offset: 3px;
}

.blog-v4 .bv-card {
  display: flex;
  flex-direction: column;
  background: var(--bv-cream-white);
  border: 1px solid var(--bv-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(36, 22, 8, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.blog-v4 .bv-card:hover {
  transform: translateY(-3px);
  border-color: var(--bv-gold);
  box-shadow: 0 16px 38px rgba(74, 49, 23, 0.13);
}
.blog-v4 .bv-card:hover h3 { color: #7F502E; }
.blog-v4 .bv-media {
  height: 184px;
  background: var(--bv-cream);
  overflow: hidden;
  position: relative;
}
.blog-v4 .bv-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-v4 .bv-card:hover .bv-media img { transform: scale(1.04); }

/* Coverless articles: dark "book cover" tile, gold glyph. The
   thumb_initial/thumb_label columns exist for exactly this. */
.blog-v4 .bv-media-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(150deg, #2A1F12, #1C1409);
}
.blog-v4 .bv-media-fallback .bv-glyph {
  font-family: var(--bv-zh);
  font-size: 64px;
  font-weight: 400;
  color: var(--bv-gold);
  line-height: 1;
}
.blog-v4 .bv-media-fallback .bv-glyph-label {
  font-size: 12px;
  color: rgba(217, 185, 106, 0.65);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 700;
}
.blog-v4 .bv-feature-image .bv-media-fallback .bv-glyph { font-size: 96px; }

.blog-v4 .bv-card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-v4 .bv-type {
  font-size: 12px;
  color: var(--bv-clay);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.blog-v4 .bv-card h3 {
  font-family: var(--bv-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--bv-ink);
  margin: 0 0 10px;
  transition: color 0.18s;
}
.blog-v4 .bv-card p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--bv-stone);
  margin: 0 0 16px;
}
.blog-v4 .bv-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--bv-line-soft);
  padding-top: 12px;
  margin-top: auto;
  color: var(--bv-stone-light);
  font-size: 13px;
}
.blog-v4 .bv-card-footer strong { font-weight: 700; color: var(--bv-brown); }

/* Whole card is the link; the heading keeps its own colour. */
.blog-v4 a.bv-card,
.blog-v4 a.bv-card:hover { text-decoration: none; color: inherit; }
.blog-v4 a.bv-card:focus-visible,
.blog-v4 .bv-filter:focus-visible,
.blog-v4 .bv-slider-button:focus-visible,
.blog-v4 .bv-progress-seg:focus-visible {
  outline: 2px solid var(--bv-clay);
  outline-offset: 3px;
}
.blog-v4 a.bv-feature-slide,
.blog-v4 a.bv-feature-slide:hover { text-decoration: none; color: inherit; }

.blog-v4 .bv-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--bv-stone);
  font-size: 14px;
}

/* ── Pager: 6 articles a page, editorial rather than app-like ── */
.blog-v4 .bv-pager {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--bv-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.blog-v4 .bv-pager-count {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--bv-stone);
}
.blog-v4 .bv-pager-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-v4 .bv-page-step,
.blog-v4 .bv-page-num {
  min-height: 44px;               /* real tap target */
  border: 1px solid var(--bv-line);
  background: var(--bv-cream-white);
  color: var(--bv-stone);
  border-radius: 999px;
  font: 600 13px 'Manrope', system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.blog-v4 .bv-page-step { padding: 0 18px; }
.blog-v4 .bv-page-num { min-width: 44px; padding: 0 6px; }
.blog-v4 .bv-page-step:hover:not(:disabled),
.blog-v4 .bv-page-num:hover:not(.is-current) {
  border-color: var(--bv-clay);
  color: var(--bv-clay);
}
.blog-v4 .bv-page-step:disabled { opacity: 0.35; cursor: default; }
.blog-v4 .bv-page-num.is-current {
  background: var(--bv-hero-b);
  border-color: var(--bv-hero-b);
  color: #FBF5EA;
}
.blog-v4 .bv-page-nums { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.blog-v4 .bv-page-step:focus-visible,
.blog-v4 .bv-page-num:focus-visible {
  outline: 2px solid var(--bv-clay);
  outline-offset: 3px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .blog-v4 .bv-container { width: min(var(--bv-content), calc(100% - 48px)); }
}

@media (max-width: 680px) {
  .blog-v4 .bv-container { width: calc(100% - 40px); }
  /* 96px, not 40px: the fixed .m-nav is 71px here and the body offset meant
     to account for it is not reaching this page, so the hero clears it. */
  .blog-v4 .bv-hero { padding: 96px 0 44px; }
  .blog-v4 .bv-hero h1 { font-size: clamp(42px, 12vw, 62px); margin-top: 14px; }
  .blog-v4 .bv-hero p { font-size: 15px; }
  .blog-v4 .bv-feature-section,
  .blog-v4 .bv-library { padding: 50px 0 56px; }
  .blog-v4 .bv-section-head { display: block; }
  .blog-v4 .bv-section-head h2 { font-size: 34px; }
  .blog-v4 .bv-slider-controls { margin-top: 18px; }
  .blog-v4 .bv-feature-slide { display: block; min-height: 0; }
  .blog-v4 .bv-feature-image { height: 250px; min-height: 0; }
  .blog-v4 .bv-feature-image img { position: static; height: 250px; }
  .blog-v4 .bv-feature-copy { padding: 28px 24px 32px; }
  .blog-v4 .bv-feature-copy h3 { font-size: 30px; }
  .blog-v4 .bv-feature-copy p { font-size: 14px; }
  .blog-v4 .bv-progress-seg { width: 44px; }
  .blog-v4 .bv-grid { grid-template-columns: 1fr; }
  .blog-v4 .bv-media { height: 210px; }
}

/* The slider animates transform; honour a reduced-motion request.
   Autoplay itself is also disabled in blog-list-loader.js. */
@media (prefers-reduced-motion: reduce) {
  .blog-v4 .bv-feature-track { transition: none; }
  .blog-v4 .bv-card,
  .blog-v4 .bv-media img { transition: none; }
  .blog-v4 .bv-card:hover { transform: none; }
  .blog-v4 .bv-progress-seg.is-active i { transition: none; width: 100%; }
}

/* Wide screens: the page widens, the rail moves alongside, and the grid drops
   to TWO columns — which is what makes the cards bigger rather than smaller
   once the rail has taken its share of the width. */
@media (min-width: 1200px) {
  .blog-v4 .bv-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 48px;
    align-items: start;
  }
  .blog-v4 .bv-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .blog-v4 .bv-media { height: 248px; }
  .blog-v4 .bv-card h3 { font-size: 24px; }
  .blog-v4 .bv-card p { font-size: 14.5px; }
  .blog-v4 .bv-rail { margin-top: 0; position: sticky; top: 148px; }
}
/* Below that the rail is a row under the grid rather than a column beside it. */
@media (min-width: 681px) and (max-width: 1199px) {
  .blog-v4 .bv-rail {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-top: 26px;
    border-top: 1px solid var(--bv-line);
  }
  .blog-v4 .bv-rail-block + .bv-rail-block { margin-top: 0; }
}

/* Once the page is genuinely wide, three across keeps the cards the size
   they are at 1440 rather than stretching two of them across the window. */
@media (min-width: 1600px) {
  .blog-v4 .bv-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Library ("More from HansMed") ──────────────────────────
   This section sits OUTSIDE main.blog-v4, so .bv-container never
   reached it and it stayed pinned to 1080px while the index went
   full width (xian, 2026-08-31). These widths mirror .bv-container
   at every breakpoint on purpose — if that changes, change both. */
.bv-library-more { padding: 80px 0; }
.bv-library-more > * {
  width: min(var(--bv-content, 1080px), calc(100% - 96px));
  margin-left: auto;
  margin-right: auto;
}
.bv-library-head { text-align: center; margin-bottom: 48px; }
.bv-library-grid {
  display: grid;
  /* Explicit counts, not auto-fit: there are FIVE cards, and auto-fit
     kept landing on four-plus-a-lonely-fifth. Only 5, 3 and 1 divide
     these cards without stranding one, so those are the only counts
     used. Update this if a sixth card is ever added. */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (min-width: 1400px) {
  .bv-library-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 680px) {
  .bv-library-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) {
  .bv-library-more > * { width: min(1760px, calc(100% - 112px)); }
}
@media (max-width: 980px) {
  .bv-library-more > * { width: min(var(--bv-content, 1080px), calc(100% - 48px)); }
}
@media (max-width: 680px) {
  .bv-library-more { padding: 56px 0; }
  .bv-library-more > * { width: calc(100% - 40px); }
}

/* ───── Touch targets ───── */
/* Measured on a phone: the topic filters were 38px, the slider arrows 42px
   and the progress segments 44x24. Each is a control a thumb aims at, and
   44px is the floor the article page was standardised to.

   The 24px segment height was deliberate, not an oversight — it is the
   WCAG 2.5.8 minimum (24x24) and the rule above says so. This does not
   contradict that: it raises the same target to the 44px comfort size on
   touch only, which is the stricter of the two.

   The visible design does not change. The bar stays a 4px stripe; only the
   invisible hit area around it grows, so the stripe is re-centred with
   50%/translateY rather than a second hard-coded offset that would have to
   track the height. The .bv-progress margin goes with it: its 8px existed
   to pad a 24px target optically, and a 44px one already carries that.

   Last in the file on purpose — these override equally specific rules
   above, including the 680px block's own .bv-progress-seg width. */
@media (max-width: 899px), (pointer: coarse) {
  .blog-v4 .bv-filter { min-height: 44px; display: inline-flex; align-items: center; }
  .blog-v4 .bv-slider-button { width: 44px; height: 44px; }
  .blog-v4 .bv-progress { margin-top: 0; }
  .blog-v4 .bv-progress-seg { height: 44px; }
  .blog-v4 .bv-progress-seg::before,
  .blog-v4 .bv-progress-seg i { top: 50%; transform: translateY(-50%); }
}
