/* =========================================================================
   Blog listing (Soft v20) — "The Pundit Journal".
   Same system as Home / Features / Pricing: paper ground, white cards on
   hairlines, RP blue accent, aqua/lime only as small data accents.
   ========================================================================= */
.rp-root:has(.bc), .rp-root:has(.bs) { background: transparent; }

/* ---------------------------------------------------------------- shared frame (masthead) */
.rp-root .pr-sec { position: relative; isolation: isolate; padding: var(--pr-top, 96px) var(--pr-side, 32px) var(--pr-bottom, 96px); background: var(--pr-bg, transparent); }
.rp-root .pr-in { width: min(var(--pr-w, 1240px), 100%); margin-inline: auto; position: relative; }

/* ---------------------------------------------------------------- masthead */
.rp-root .bm { padding-top: var(--pr-top, 168px); padding-bottom: var(--pr-bottom, 56px); overflow: clip; }
.rp-root .bm-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rp-root .bm.has-wash .bm-bg { background:
  radial-gradient(40% 46% at 50% 0%, rgba(0, 102, 255, var(--bm-glow-a, .1)), transparent 70%),
  radial-gradient(28% 40% at 90% 30%, rgba(0, 255, 217, var(--bm-glow-b, .08)), transparent 70%),
  radial-gradient(28% 36% at 8% 40%, rgba(149, 255, 0, var(--bm-glow-c, .06)), transparent 70%); }
.rp-root .bm.has-grid .bm-bg::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(16, 20, 46, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 20, 46, .045) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(64% 70% at 50% 0%, #000 30%, transparent 78%); mask-image: radial-gradient(64% 70% at 50% 0%, #000 30%, transparent 78%); }
.rp-root .bm-in { display: grid; justify-items: center; text-align: center; gap: 20px; }
.rp-root .bm--left .bm-in { justify-items: start; text-align: left; }
.rp-root .bm-eyebrow { margin: 0; }
.rp-root .bm h1.bm-title { margin: 0; font-size: var(--bm-h1, clamp(44px, 6.4cqw, 96px)); line-height: .98; letter-spacing: -.035em; font-weight: 500; max-width: var(--bm-h1-w, 14ch); }
.rp-root .bm-w { display: inline-block; overflow: clip; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.rp-root .bm-wi { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1s var(--rp-ease); transition-delay: calc(var(--i, 0) * 70ms + 60ms); }
.rp-root .bm.is-in .bm-wi { transform: none; }
.rp-root .bm-wi.is-blue { color: var(--bm-accent, var(--rp-blue)); }
.rp-root .bm-body { margin: 0; max-width: var(--bm-body-w, 58ch); font-size: var(--bm-body, 18px); line-height: 1.6; color: var(--rp-ink-soft); }
.rp-root .bm :is(.bm-body, .bm-meta, .bm-search, .bm-topics, .bm-marquee) { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .8s ease, transform .9s var(--rp-ease); }
.rp-root .bm.is-in :is(.bm-body, .bm-meta, .bm-search, .bm-topics, .bm-marquee) { opacity: 1; transform: none; }
.rp-root .bm.is-in .bm-body { transition-delay: .35s; } .rp-root .bm.is-in .bm-meta { transition-delay: .45s; }
.rp-root .bm.is-in .bm-search { transition-delay: .55s; } .rp-root .bm.is-in .bm-topics { transition-delay: .65s; } .rp-root .bm.is-in .bm-marquee { transition-delay: .8s; }
.rp-root .bm-meta { margin: 0; display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: var(--sh-1); font: 500 13px/1 var(--rp-font-body); color: var(--rp-ink-soft); font-variant-numeric: tabular-nums; }
.rp-root .bm-meta i { width: 7px; height: 7px; border-radius: 50%; background: #2fd3bd; box-shadow: 0 0 0 0 rgba(47, 211, 189, .5); animation: bm-live 2.4s ease-out infinite; }
@keyframes bm-live { 0% { box-shadow: 0 0 0 0 rgba(47, 211, 189, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 211, 189, 0); } }

.rp-root .bm-search { position: relative; z-index: 5; width: min(var(--bm-search-w, 640px), 100%); margin-top: 6px; text-align: left; }
.rp-root .bm-field { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 12px 0 22px; border-radius: 999px; background: #fff; box-shadow: var(--sh-2), 0 0 0 0 rgba(0, 102, 255, 0); transition: box-shadow .35s ease, border-radius .3s ease; cursor: text; }
.rp-root .bm-field:focus-within { box-shadow: var(--sh-3), 0 0 0 4px rgba(0, 102, 255, .12); }
.rp-root .bm-search.is-open .bm-field { border-radius: 28px 28px 0 0; }
.rp-root .bm-field svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--rp-ink-soft); stroke-width: 1.8; stroke-linecap: round; }
.rp-root .bm-field input { all: unset; flex: 1; min-width: 0; font: 400 16.5px/1.2 var(--rp-font-body); color: var(--rp-ink); }
.rp-root .bm-field input::placeholder { color: var(--rp-ink-faint); }
.rp-root .bm-field input::-webkit-search-cancel-button { display: none; }
.rp-root .bm-field kbd { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--rp-line-2); font: 500 13px/1 var(--rp-font-body); color: var(--rp-ink-faint); }
.rp-root .bm-x { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--rp-ink-soft); background: var(--rp-paper-2); }
.rp-root .bm-drop { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 2px; padding: 8px; background: #fff; border-radius: 0 0 26px 26px; box-shadow: 0 30px 60px -26px rgba(16, 40, 100, .38), 0 0 0 1px rgba(16, 20, 46, .06); max-height: min(60vh, 520px); overflow: auto; animation: bm-drop .35s var(--rp-ease) both; }
.rp-root .bm-drop::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: var(--rp-line); }
@keyframes bm-drop { from { opacity: 0; transform: translate3d(0, -6px, 0); } }
.rp-root .bm-hit { display: grid; grid-template-columns: 58px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 9px 10px; border-radius: 16px; text-decoration: none; color: var(--rp-ink); transition: background .2s ease; }
.rp-root .bm-hit.is-act { background: var(--rp-blue-soft); }
.rp-root .bm-hit-img { width: 58px; height: 42px; border-radius: 10px; overflow: hidden; background: var(--rp-paper-2); }
.rp-root .bm-hit-img img { width: 100%; height: 100%; object-fit: cover; }
.rp-root .bm-hit-tx { display: grid; gap: 3px; min-width: 0; }
.rp-root .bm-hit-tx b { font: 500 14.5px/1.35 var(--rp-font-body); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-root .bm-hit-tx mark { background: rgba(0, 102, 255, .14); color: inherit; border-radius: 3px; padding: 0 1px; }
.rp-root .bm-hit-tx small { font: 400 12.5px/1.2 var(--rp-font-body); color: var(--rp-ink-faint); }
.rp-root .bm-hit svg, .rp-root .bm-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--rp-ink-faint); transition: transform .3s var(--rp-ease), color .3s; }
.rp-root .bm-hit.is-act svg { transform: translateX(3px); color: var(--rp-blue); }
.rp-root .bm-none { margin: 0; padding: 18px 12px; color: var(--rp-ink-soft); font-size: 14.5px; }
.rp-root .bm-none b { color: var(--rp-ink); }
.rp-root .bm-all { all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; margin-top: 4px; border-radius: 14px; font: 600 13.5px/1 var(--rp-font-body); color: var(--rp-blue); box-shadow: inset 0 1px 0 var(--rp-line); }
.rp-root .bm-all.is-act { background: var(--rp-blue-soft); }
.rp-root .bm-all svg { color: var(--rp-blue); }
.rp-root .bm-topics { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.rp-root .bm--left .bm-topics { justify-content: flex-start; }
.rp-root .bm-topics-l { font: 500 13px/1 var(--rp-font-body); color: var(--rp-ink-faint); margin-right: 4px; }
.rp-root .bm-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: var(--sh-1); font: 500 13.5px/1 var(--rp-font-body); color: var(--rp-ink); transition: transform .35s var(--rp-ease), box-shadow .35s, background .3s; }
.rp-root .bm-chip em { font-style: normal; font-size: 11.5px; padding: 4px 7px; border-radius: 999px; background: var(--rp-paper-2); color: var(--rp-ink-soft); font-variant-numeric: tabular-nums; }
.rp-root .bm-chip:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 102, 255, .2), 0 12px 24px -16px rgba(0, 60, 160, .45); }
.rp-root .bm-chip:focus-visible { outline: 2px solid var(--rp-blue); outline-offset: 2px; }
.rp-root .bm-marquee { width: 100vw; max-width: 100cqw; margin-top: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rp-root .bm-mq { display: flex; gap: 14px; width: max-content; animation: bm-mq var(--bm-mq-d, 60s) linear infinite; }
.rp-root .bm-marquee:hover .bm-mq { animation-play-state: paused; }
@keyframes bm-mq { to { transform: translate3d(-50%, 0, 0); } }
.rp-root .bm-mq-i { width: 190px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--rp-paper-2); box-shadow: var(--sh-1); flex: none; transform: rotate(var(--r, 0deg)); }
.rp-root .bm-mq-i:nth-child(odd) { --r: -1.5deg; } .rp-root .bm-mq-i:nth-child(3n) { --r: 1.5deg; }
.rp-root .bm-mq-i img { width: 100%; height: 100%; object-fit: cover; }
@container rp (max-width: 767px) {
  .rp-root .bm-field { height: 54px; padding-left: 18px; }
  .rp-root .bm-field kbd { display: none; }
  .rp-root .bm-mq-i { width: 140px; }
}

/* ---------------------------------------------------------------- section controller */
.rp-root .bs-frame { width: min(var(--bs-w, 1240px), 100%); margin-inline: auto; padding: var(--bs-top, 88px) var(--bs-side, 32px) 0; box-sizing: content-box; max-width: calc(100% - 2 * var(--bs-side, 32px)); }
.rp-root .bs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--bs-head-gap, 32px); }
.rp-root .bs-head--center { flex-direction: column; align-items: center; text-align: center; }
.rp-root .bs-head-tx { display: grid; gap: 12px; max-width: 720px; }
.rp-root .bs-head--center .bs-head-tx { justify-items: center; }
.rp-root .bs-eyebrow { margin: 0; }
.rp-root .bs h2.bs-title { margin: 0; font-size: var(--bs-h2, var(--fs-h2, clamp(32px, 3.9cqw, 56px))); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; }
.rp-root .bs h2.bs-title em { font-style: normal; color: var(--bs-accent, var(--rp-blue)); }
.rp-root .bs-body { margin: 0; max-width: 56ch; }
.rp-root .bs-head-side { display: flex; align-items: center; gap: 14px; flex: none; }
.rp-root .bs-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 6px 10px 16px; border-radius: 999px; text-decoration: none; font: 600 14px/1 var(--rp-font-body); color: var(--rp-ink); box-shadow: inset 0 0 0 1px var(--rp-line-2); transition: background .3s, box-shadow .3s; }
.rp-root .bs-link svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--rp-ink); color: #fff; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; transition: transform .35s var(--rp-ease); margin: -6px 0; }
.rp-root .bs-link:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 20, 46, .2), 0 10px 22px -16px rgba(16, 20, 46, .4); }
.rp-root .bs-link:hover svg { transform: translateX(3px); }
/* cover ticks */
.rp-root .bs-ticks { display: flex; gap: 6px; }
.rp-root .bs-tick { all: unset; cursor: pointer; width: 34px; height: 18px; display: grid; align-items: center; }
.rp-root .bs-tick i { display: block; height: 3px; border-radius: 3px; background: rgba(16, 20, 46, .12); position: relative; overflow: hidden; }
.rp-root .bs-tick i::after { content: ''; position: absolute; inset: 0; background: var(--rp-blue); transform: scaleX(0); transform-origin: left; }
.rp-root .bs-tick.is-on i::after { animation: bs-tick var(--d, 6s) linear forwards; }
.rp-root .bs-tick.is-on.is-paused i::after { animation-play-state: paused; }
.rp-root .bs-tick:focus-visible i { outline: 2px solid var(--rp-blue); outline-offset: 4px; }
@keyframes bs-tick { to { transform: scaleX(1); } }
/* latest arrows + rail */
.rp-root .bs-arrows { display: flex; gap: 8px; }
.rp-root .bs-arrow { all: unset; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--sh-2); color: var(--rp-ink); transition: transform .3s var(--rp-ease), opacity .3s, box-shadow .3s; }
.rp-root .bs-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-root .bs-arrow:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--sh-3); }
.rp-root .bs-arrow:disabled { opacity: .35; cursor: default; }
.rp-root .bs-arrow:focus-visible { outline: 2px solid var(--rp-blue); outline-offset: 3px; }
.rp-root .bs-rail { height: 2px; border-radius: 2px; background: rgba(16, 20, 46, .08); margin: -12px 0 22px; overflow: hidden; }
.rp-root .bs-rail i { display: block; height: 100%; background: linear-gradient(90deg, var(--rp-blue), #2fd3bd); transform-origin: left; transition: transform .2s linear; }
/* feed toolbar */
.rp-root .bs-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .82); box-shadow: var(--sh-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rp-root .bs-tabs-wrap { min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
.rp-root .bs-tabs-wrap::-webkit-scrollbar { display: none; }
.rp-root .bs-tabs { position: relative; display: inline-flex; gap: 2px; }
.rp-root .bs-ind { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: var(--bs-tab-on, var(--rp-ink)); box-shadow: 0 6px 16px -8px rgba(16, 20, 46, .55); transition: transform .5s var(--rp-ease), width .5s var(--rp-ease); }
.rp-root .bs-tab { all: unset; box-sizing: border-box; cursor: pointer; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; font: 500 14px/1 var(--rp-font-body); color: var(--rp-ink-soft); white-space: nowrap; transition: color .3s ease; }
.rp-root .bs-tab em { font-style: normal; font-size: 11.5px; padding: 4px 7px; border-radius: 999px; background: rgba(16, 20, 46, .06); font-variant-numeric: tabular-nums; transition: background .3s, color .3s; }
.rp-root .bs-tab:hover { color: var(--rp-ink); }
.rp-root .bs-tab.is-on { color: #fff; }
.rp-root .bs-tab.is-on em { background: rgba(255, 255, 255, .16); color: #fff; }
.rp-root .bs-tab:focus-visible { outline: 2px solid var(--rp-blue); outline-offset: -2px; }
.rp-root .bs-tools { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; }
.rp-root .bs-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px; border-radius: 999px; background: var(--rp-paper-2); width: 240px; transition: width .4s var(--rp-ease), box-shadow .3s, background .3s; }
.rp-root .bs-search:focus-within { width: 300px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 102, 255, .3), 0 0 0 4px rgba(0, 102, 255, .1); }
.rp-root .bs-search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--rp-ink-soft); stroke-width: 1.9; stroke-linecap: round; }
.rp-root .bs-search input { all: unset; flex: 1; min-width: 0; font: 400 14px/1 var(--rp-font-body); color: var(--rp-ink); }
.rp-root .bs-search input::-webkit-search-cancel-button { display: none; }
.rp-root .bs-x { all: unset; cursor: pointer; font-size: 18px; color: var(--rp-ink-soft); padding: 0 4px; }
.rp-root .bs-sort { position: relative; display: flex; align-items: center; }
.rp-root .bs-sort select { appearance: none; -webkit-appearance: none; height: 42px; padding: 0 34px 0 16px; border: 0; border-radius: 999px; background: var(--rp-paper-2); font: 500 14px/1 var(--rp-font-body); color: var(--rp-ink); cursor: pointer; }
.rp-root .bs-sort select:focus-visible { outline: 2px solid var(--rp-blue); outline-offset: 2px; }
.rp-root .bs-sort svg { position: absolute; right: 12px; width: 16px; height: 16px; fill: none; stroke: var(--rp-ink-soft); stroke-width: 2; pointer-events: none; }
.rp-root .bs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rp-root .bs-count { margin: 16px 4px 18px; min-height: 1em; font: 500 13px/1 var(--rp-font-body); color: var(--rp-ink-faint); font-variant-numeric: tabular-nums; }
@container rp (max-width: 991px) {
  .rp-root .bs-head { flex-direction: column; align-items: flex-start; }
  .rp-root .bs-head--center { align-items: center; }
  .rp-root .bs-bar { border-radius: 26px; }
  .rp-root .bs-tabs-wrap { flex-basis: 100%; }
  .rp-root .bs-tools { flex: 1 1 100%; padding: 0 2px 2px; }
  .rp-root .bs-search, .rp-root .bs-search:focus-within { flex: 1; width: auto; }
}
@container rp (max-width: 478px) {
  .rp-root .bs-tab { padding: 0 13px; font-size: 13.5px; }
  .rp-root .bs-sort select { padding-right: 30px; font-size: 13.5px; }
}

/* ---------------------------------------------------------------- card */
.rp-root .bc {
  --pad: var(--bc-pad, 22px); --r: var(--bc-r, 22px); --ratio: var(--bc-ratio, 16 / 10);
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; box-sizing: border-box;
  text-decoration: none; color: var(--rp-ink); border-radius: var(--r); background: var(--bc-bg, #fff); box-shadow: var(--sh-1);
  transition: transform .55s var(--rp-ease), box-shadow .55s var(--rp-ease); isolation: isolate; outline: none;
}
.rp-root .bc:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.rp-root .bc:focus-visible { box-shadow: 0 0 0 2px var(--rp-blue), var(--sh-2); }
.rp-root .bc--spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease; z-index: 2;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 102, 255, .07), transparent 60%); }
.rp-root .bc--spot:hover::after { opacity: 1; }
.rp-root .bc-media { position: relative; display: block; margin: var(--bc-media-inset, 8px) var(--bc-media-inset, 8px) 0; border-radius: calc(var(--r) - 6px); overflow: hidden; background: var(--rp-paper-2); aspect-ratio: var(--ratio); flex: none; }
.rp-root .bc-media-in { position: absolute; inset: 0; display: block; transition: transform 1s var(--rp-ease); }
.rp-root .bc-media img { width: 100%; height: 100%; object-fit: var(--bc-fit, cover); display: block; }
.rp-root .bc-noimg { position: absolute; inset: 0; background: radial-gradient(60% 60% at 30% 30%, rgba(0, 102, 255, .14), transparent), radial-gradient(60% 60% at 80% 80%, rgba(47, 211, 189, .16), transparent), var(--rp-paper-2); }
.rp-root .bc:hover .bc-media-in { transform: scale(1.045); }
.rp-root .bc-badge { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); font: 600 11px/1 var(--rp-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--rp-blue); }
.rp-root .bc-body { display: flex; flex-direction: column; gap: 10px; padding: calc(var(--pad) - 4px) var(--pad) var(--pad); flex: 1; min-width: 0; }
.rp-root .bc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font: 500 12.5px/1.2 var(--rp-font-body); color: var(--rp-ink-faint); }
.rp-root .bc-topic { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--bc-topic-bg, var(--rp-blue-soft)); color: var(--bc-topic-text, var(--sky-ink, #0b4fc4)); font-weight: 600; font-size: 11.5px; letter-spacing: .01em; }
.rp-root .bc-date { font-variant-numeric: tabular-nums; }
.rp-root .bc h3.bc-title { margin: 0; font-size: var(--bc-title, 20px); line-height: 1.22; letter-spacing: -.018em; font-weight: 500; text-wrap: balance; }
.rp-root .bc-title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .55s var(--rp-ease); padding-bottom: 1px; }
.rp-root .bc:hover .bc-title span { background-size: 100% 1.5px; }
.rp-root .bc-sum { font-size: var(--bc-sum, 14.5px); line-height: 1.6; color: var(--rp-ink-soft); display: -webkit-box; -webkit-line-clamp: var(--bc-lines, 3); -webkit-box-orient: vertical; overflow: hidden; }
.rp-root .bc-read { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1 var(--rp-font-body); color: var(--rp-ink); }
.rp-root .bc-read svg, .rp-root .bc-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--rp-ease); }
.rp-root .bc:hover .bc-read { color: var(--rp-blue); }
.rp-root .bc:hover .bc-read svg { transform: translateX(4px); }

/* Cover (lead story): image fills, copy on a glass panel; leans toward the cursor */
.rp-root .bc--cover { min-height: var(--bc-cover-h, 520px); overflow: hidden; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--rp-ease), box-shadow .55s var(--rp-ease); }
.rp-root .bc--cover:hover { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }
.rp-root .bc--cover .bc-media { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; }
.rp-root .bc--cover .bc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 38%, rgba(247, 248, 252, .55) 70%, rgba(247, 248, 252, .9)); }
.rp-root .bc--cover .bc-body { position: relative; margin-top: auto; margin: auto 14px 14px; padding: 22px 24px 24px; border-radius: calc(var(--r) - 6px); background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 20px 40px -28px rgba(16, 40, 100, .5); flex: none; }
.rp-root .bc--cover h3.bc-title { font-size: var(--bc-cover-title, clamp(24px, 2.4cqw, 34px)); line-height: 1.12; letter-spacing: -.025em; }
.rp-root .bc--cover .bc-sum { --bc-lines: 2; font-size: 15px; }
.rp-root .bc--cover .bc-badge { left: 22px; top: 22px; }

/* Generated artwork on the cover: lift the object above the glass caption */
.rp-root .bc--cover.is-art .bc-media img { transform: translateY(-16%) scale(1.06); transform-origin: 50% 0; }
.rp-root .bc--cover.is-art .bc-media::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(247, 248, 252, .5) 80%, rgba(247, 248, 252, .85)); }
@container rp (max-width: 767px) { .rp-root .bc--cover.is-art .bc-media img { transform: translateY(-31%) scale(1.02); transform-origin: 50% 0; } }

/* Side (stacked next to the cover) */
.rp-root .bc--side { flex-direction: row; align-items: stretch; gap: 0; }
.rp-root .bc--side .bc-media { width: 38%; aspect-ratio: auto; margin: 8px 0 8px 8px; }
.rp-root .bc--side .bc-body { justify-content: center; gap: 8px; padding: 14px 18px; }
.rp-root .bc--side h3.bc-title { font-size: var(--bc-side-title, 17px); line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Wide (bento cell in the feed): image beside copy */
.rp-root .bc--wide { flex-direction: row; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.rp-root .bc--wide:hover { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.rp-root .bc--wide .bc-media { width: 56%; aspect-ratio: auto; margin: 8px 0 8px 8px; min-height: 300px; }
.rp-root .bc--wide .bc-body { justify-content: center; padding: 28px; }
.rp-root .bc--wide h3.bc-title { font-size: var(--bc-wide-title, 28px); line-height: 1.14; letter-spacing: -.024em; }
.rp-root .bc--wide .bc-sum { --bc-lines: 4; }

/* Timeline (latest rail): a dated marker on one continuous line, the card hangs below it */
.rp-root .bc--timeline { background: transparent; box-shadow: none; padding: 0 9px; border-radius: 0; }
.rp-root .bc--timeline:hover { transform: none; box-shadow: none; }
.rp-root .bc--timeline::after { display: none; }
.rp-root .bc-tl { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; margin: 0 -9px 14px; padding-left: 9px; font: 500 12.5px/1 var(--rp-font-body); color: var(--rp-ink-soft); font-variant-numeric: tabular-nums; }
.rp-root .bc-tl::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rp-line-2); z-index: -1; }
.rp-root .bc-tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--rp-blue); flex: none; transition: transform .4s var(--rp-ease), background .3s; }
.rp-root .bc-tl-date { padding: 4px 8px; border-radius: 999px; background: var(--bc-tl-date-bg, #f7f8fc); }
.rp-root .bc--timeline:hover .bc-tl-dot { transform: scale(1.35); background: var(--rp-blue); }
.rp-root .bc-box { position: relative; display: flex; flex-direction: column; flex: 1; border-radius: var(--r); background: var(--bc-bg, #fff); box-shadow: var(--sh-1); transition: transform .55s var(--rp-ease), box-shadow .55s var(--rp-ease); overflow: hidden; }
.rp-root .bc--timeline:hover .bc-box { transform: translateY(-4px); box-shadow: var(--sh-3); }
.rp-root .bc-box::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 102, 255, .07), transparent 60%); }
.rp-root .bc--spot.bc--timeline:hover .bc-box::after { opacity: 1; }
.rp-root .bc--timeline h3.bc-title { font-size: var(--bc-tl-title, 18px); }
.rp-root .bc--timeline .bc-sum { --bc-lines: 2; }

/* Ranked (most read) */
.rp-root .bc--ranked { flex-direction: row; align-items: center; gap: clamp(16px, 3cqw, 40px); padding: 26px 8px; border-radius: 0; background: transparent; box-shadow: inset 0 -1px 0 var(--rp-line-2); }
.rp-root .bc--ranked:hover { transform: none; box-shadow: inset 0 -1px 0 var(--rp-ink); }
.rp-root .bc--ranked::after { border-radius: 18px; }
.rp-root .bc-num { flex: none; width: 2.1ch; font: 500 var(--bc-num, clamp(40px, 5cqw, 72px))/1 var(--rp-font-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1.2px rgba(16, 20, 46, .35); transition: color .45s ease, -webkit-text-stroke-color .45s ease; }
.rp-root .bc--ranked:hover .bc-num { color: var(--rp-blue); -webkit-text-stroke-color: var(--rp-blue); }
.rp-root .bc--ranked .bc-body { padding: 0; gap: 8px; }
.rp-root .bc--ranked h3.bc-title { font-size: var(--bc-rank-title, clamp(20px, 1.9cqw, 28px)); line-height: 1.18; letter-spacing: -.022em; max-width: 34ch; }
.rp-root .bc--ranked .bc-sum { --bc-lines: 1; max-width: 70ch; }
.rp-root .bc-go { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--rp-line-2); transition: background .35s, box-shadow .35s, color .35s, transform .45s var(--rp-ease); }
.rp-root .bc--ranked:hover .bc-go { background: var(--rp-ink); color: #fff; box-shadow: none; transform: rotate(-45deg); }
.rp-root .bc-float { position: absolute; z-index: 5; left: 0; top: 0; width: var(--bc-float-w, 260px); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; pointer-events: none; box-shadow: 0 30px 60px -24px rgba(16, 40, 100, .45);
  opacity: 0; transform: translate3d(calc(var(--mx, 0px) + 28px), calc(var(--my, 0px) - 50%), 0) rotate(-4deg) scale(.85); transition: opacity .3s ease, transform .45s var(--rp-ease); }
.rp-root .bc--ranked:hover .bc-float { opacity: 1; transform: translate3d(calc(var(--mx, 0px) + 28px), calc(var(--my, 0px) - 50%), 0) rotate(-2deg) scale(1); }
.rp-root .bc-float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .rp-root .bc-float { display: none; } }
@container rp (max-width: 767px) {
  .rp-root .bc--ranked { gap: 14px; padding: 20px 2px; align-items: flex-start; }
  .rp-root .bc-go { display: none; }
  .rp-root .bc--ranked .bc-sum { display: none; }
  .rp-root .bc--cover { min-height: var(--bc-cover-h, 420px); }
  .rp-root .bc--cover .bc-body { margin: auto 10px 10px; padding: 18px; }
  .rp-root .bc--side .bc-media { width: 34%; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-root :is(.bc, .bc-media-in, .bc-float, .bm-wi, .bm-mq, .bm-meta i, .bs-tick i::after) { transition: none !important; animation: none !important; }
  .rp-root .bm :is(.bm-body, .bm-meta, .bm-search, .bm-topics, .bm-marquee), .rp-root .bm-wi { opacity: 1; transform: none; }
}
.rp-root[data-motion='off'] :is(.bm-wi, .bm-body, .bm-meta, .bm-search, .bm-topics, .bm-marquee) { opacity: 1 !important; transform: none !important; transition: none !important; }

/* CMS images (titled 16:10 covers): always show the whole picture, never crop it or cover it with text. */
.rp-root .bc.is-pic .bc-media { aspect-ratio: var(--ratio, 16 / 10); }
.rp-root .bc.is-pic .bc-media img { object-fit: var(--bc-fit, cover); object-position: 0 50%; }
/* Cover story lead: picture on top, text below (no glass panel over the title in the picture). */
.rp-root .bc--cover.is-pic { min-height: 0; }
.rp-root .bc--cover.is-pic .bc-media { position: relative; inset: auto; margin: 8px 8px 0; border-radius: calc(var(--r) - 6px); }
.rp-root .bc--cover.is-pic .bc-media::after { display: none; }
.rp-root .bc--cover.is-pic .bc-body { margin: 0; padding: 22px 26px 26px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
/* Side cards: picture height = card height (desktop, the three cards share the lead card's height), so no empty bands. */
.rp-root .bc--side.is-pic { align-items: stretch; }
.rp-root .bc--side.is-pic .bc-media { width: var(--bc-side-img, 40%); align-self: center; margin: 8px 0 8px 8px; }
.rp-root .bc--side.is-pic .bc-body { padding: 14px 20px; }
.rp-root .bc--side.is-pic.is-d { container-type: size; }
.rp-root .bc--side.is-pic.is-d .bc-media { height: calc(100cqh - 16px); width: min(calc((100cqh - 16px) * 1.6), var(--bc-side-img, 48%)); aspect-ratio: auto; }
.rp-root .bc--side.is-pic.is-d .bc-body { min-width: 0; }
/* Wide feature row (desktop): picture and text side by side, both centred, card height = picture height. */
.rp-root .bc--wide.is-pic { align-items: center; }
.rp-root .bc--wide.is-pic .bc-media { width: var(--bc-wide-img, 56%); min-height: 0; margin: 8px 0 8px 8px; }
.rp-root .bc--wide.is-pic .bc-body { padding: 32px 44px; gap: 14px; }
.rp-root .bc--wide.is-pic h3.bc-title { font-size: var(--bc-wide-title, clamp(26px, 2.4cqw, 34px)); }
.rp-root .bc-badge.bc-badge--meta { position: static; inset: auto; }

