/* Blog index hero (preview 2026-10-06). Same system as redesign.css: #5b47f0, scoped .bh-* / .rd-* classes, no bare anchor rule. */
.rd-banner { background: #fffbeb; border-bottom: 1px solid #fde68a; color: #92400e; font-size: 0.82rem; }
.rd-banner .rd-wrap { max-width: 1240px; margin: 0 auto; padding: 0.5rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; justify-content: space-between; }
.rd-banner strong { font-weight: 700; }
.rd-banner-link { color: #92400e; font-weight: 600; text-decoration: underline; }
.rd-tform-note { margin-top: 0.5rem; font-size: 0.75rem; color: #92400e; }

.bh { position: relative; overflow: hidden; background: linear-gradient(180deg, #f8f7ff 0%, #f3f1fe 62%, #f5f4fb 100%); padding: 2.25rem 0 2rem; }
/* clip only sideways (the arc sits past the right edge); vertically the circle may run past the hero into the grid area */
@supports (overflow: clip) { .bh { overflow-x: clip; overflow-y: visible; } }
.bh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 640px) { .bh-wrap { padding: 0 2rem; } .bh { padding: 3rem 0 2.5rem; } }
@media (min-width: 1024px) { .bh-wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 2rem; } .bh { padding: 3.5rem 0 3rem; } }

.bh-kicker { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.4rem 0.9rem; border-radius: 999px; background: #efedfc; color: #5b47f0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; }
.bh-kicker::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: #5b47f0; }
.bh-title { margin: 1rem 0 0; font-size: clamp(3rem, 9vw, 5.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.035em; color: var(--tm-text, #0b1631); }
.bh-lede { margin: 1.1rem 0 0; max-width: 34rem; font-size: 1.125rem; line-height: 1.6; color: var(--tm-text-muted, #64748b); }
@media (min-width: 1024px) { .bh-lede { font-size: 1.3rem; } }

.bh-topics { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bh-topic { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding: 0.5rem 1rem 0.5rem 0.85rem; border: 1px solid transparent; border-radius: 999px; background: #ecebfd; color: var(--tm-text, #0b1631); font-size: 0.95rem; font-weight: 600; line-height: 1.2; }
.bh-topic svg { width: 1.15rem; height: 1.15rem; flex: none; color: #5b47f0; }
.bh-topic-link { text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, color 0.15s; }
.bh-topic-link:hover { border-color: #c9c1fa; color: #5b47f0; box-shadow: 0 6px 16px -8px rgba(91, 71, 240, 0.45); }
.bh-topic-link:focus-visible { outline: 3px solid #5b47f0; outline-offset: 2px; }
@media (max-width: 380px) { .bh-topic { font-size: 0.9rem; padding: 0.5rem 0.95rem 0.5rem 0.8rem; } }

/* illustration */
.bh-art { position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 60 / 46; }
@media (min-width: 1024px) { .bh-art { margin: 0 0 0 auto; } }
.bh-arc { position: absolute; right: -8%; top: -4%; width: 96%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.75) 0 58%, rgba(236,233,253,0.8) 58% 100%); }
.bh-arc::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1.5px solid #d9d3fb; }
.bh-arc::before { content: ""; position: absolute; left: 14.6%; top: 75%; z-index: 1; width: 2.6%; aspect-ratio: 1; border-radius: 50%; background: #5b47f0; }
.bh-dots { position: absolute; right: 0; bottom: 4%; width: 12%; aspect-ratio: 3 / 5; background-image: radial-gradient(#d9d3fb 1.6px, transparent 1.8px); background-size: 14px 14px; opacity: 0.9; }
.bh-ghost { position: absolute; background: #ffffff; border: 1px solid #ece9fb; border-radius: 16px; box-shadow: 0 18px 40px -22px rgba(55, 40, 160, 0.35); padding: 4%; opacity: 0.8; }
.bh-ghost-l { left: 2%; top: 22%; width: 34%; aspect-ratio: 1 / 0.95; transform: rotate(4deg); }
.bh-ghost-r { right: 4%; top: 30%; width: 34%; aspect-ratio: 1 / 1.15; transform: rotate(4deg); }
.bh-bar { display: block; height: 7px; border-radius: 4px; background: #ebe8fb; margin-top: 9%; }
.bh-bar.w1 { width: 70%; background: #d9d3fb; } .bh-bar.w2 { width: 90%; } .bh-bar.w3 { width: 55%; }
.bh-chart { display: flex; align-items: flex-end; gap: 8%; height: 38%; margin-top: 10%; padding: 0 4%; }
.bh-chart i { flex: 1; border-radius: 3px 3px 0 0; background: #ddd7fc; }
.bh-chart i:nth-child(1) { height: 35%; } .bh-chart i:nth-child(2) { height: 60%; } .bh-chart i:nth-child(3) { height: 45%; } .bh-chart i:nth-child(4) { height: 85%; background: #b9adf9; }
.bh-bolt { display: grid; place-items: center; width: 26%; aspect-ratio: 1; border-radius: 10px; background: #efedfc; color: #5b47f0; }
.bh-bolt svg { width: 60%; height: 60%; }
.bh-block { display: block; height: 30%; margin-top: 10%; border-radius: 10px; background: linear-gradient(135deg, #efedfc, #e3defd); }

.bh-card { position: absolute; left: 15%; top: 9%; width: 56%; z-index: 2; display: block; padding: 2.4%; border-radius: 18px; background: #ffffff; border: 1px solid #ece9fb; box-shadow: 0 30px 60px -28px rgba(45, 30, 150, 0.45), 0 4px 12px -6px rgba(15, 23, 42, 0.12); color: inherit; text-decoration: none; transform: rotate(3deg); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.bh-card:hover { transform: rotate(2deg) translateY(-4px); box-shadow: 0 36px 70px -28px rgba(45, 30, 150, 0.55), 0 4px 12px -6px rgba(15, 23, 42, 0.12); }
.bh-card:focus-visible { outline: 3px solid #5b47f0; outline-offset: 4px; }
.bh-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #efedfc; }
.bh-card-body { padding: 5% 3% 3%; }
.bh-card-kicker { display: block; color: #5b47f0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3; }
.bh-card-title { display: block; margin-top: 0.4rem; color: var(--tm-text, #0b1631); font-size: clamp(0.92rem, 1.5vw, 1.15rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.bh-card .bh-bar { margin-top: 0.7rem; height: 6px; }
.bh-card .bh-bar + .bh-bar { margin-top: 0.45rem; }
.bh-pen { position: absolute; right: 9%; top: 8%; z-index: 3; display: grid; place-items: center; width: 12%; aspect-ratio: 1; border-radius: 16px; background: #ffffff; border: 1px solid #ece9fb; color: #5b47f0; box-shadow: 0 14px 28px -14px rgba(55, 40, 160, 0.45); }
.bh-pen svg { width: 52%; height: 52%; }
.bh-spark { position: absolute; right: 1%; top: 0; width: 6%; aspect-ratio: 1; z-index: 3; color: #8b7cf6; }

@media (max-width: 1023px) { .bh-art { max-width: 520px; } }
@media (max-width: 639px) {
  .bh-art { aspect-ratio: 60 / 52; }
  .bh-card { left: 13%; top: 12%; width: 70%; }
  .bh-ghost-l { left: 0; top: 40%; width: 34%; }
  .bh-ghost-r { top: 16%; width: 34%; }
  .bh-pen { right: 6%; width: 14%; border-radius: 12px; }
  .bh-spark { right: 1%; }
  .bh-card-kicker { font-size: 0.62rem; }
  .bh-card .bh-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bh-card, .bh-topic-link { transition: none; } .bh-card:hover { transform: rotate(3deg); } }
.rd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Category filter (Chris 2026-10-06 13:58 ET): hero pills are filter buttons with aria-pressed. */
.bh-filterbar { margin-top: 1.75rem; }
.bh-filterbar .bh-topics { margin-top: 0; }
button.bh-topic { appearance: none; -webkit-appearance: none; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-align: left; transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s; }
button.bh-topic:hover { border-color: #c9c1fa; color: #5b47f0; box-shadow: 0 6px 16px -8px rgba(91, 71, 240, 0.45); }
button.bh-topic[aria-pressed="true"] { background: #5b47f0; border-color: #5b47f0; color: #ffffff; box-shadow: 0 8px 18px -10px rgba(91, 71, 240, 0.8); }
button.bh-topic[aria-pressed="true"] svg { color: #ffffff; }
button.bh-topic:focus { outline: none; }
button.bh-topic:focus-visible { outline: 3px solid #5b47f0; outline-offset: 3px; box-shadow: 0 0 0 1.5px #ffffff; }
@media (max-width: 380px) { button.bh-topic { font-size: 0.9rem; } }
.bh-filter-status { margin: 0.85rem 0 0; font-size: 0.9rem; font-weight: 500; color: var(--tm-text-muted, #64748b); }
.blog-cards-grid > article[hidden] { display: none !important; }
.bf-cat { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.4rem; margin-bottom: 0.85rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: #efedfc; color: #4a38d8; font-size: 0.75rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; }
.bf-cat::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #5b47f0; flex: none; }
.bf-empty:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; padding: 2.5rem 1.25rem; border: 1px dashed #c9c1fa; border-radius: 16px; background: #ffffff; text-align: center; }
.bf-empty-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--tm-text, #0b1631); }
.bf-empty-btn { appearance: none; -webkit-appearance: none; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; min-height: 2.75rem; padding: 0.55rem 1.25rem; border: 0; border-radius: 999px; background: #5b47f0; color: #ffffff; }
.bf-empty-btn:hover { background: #4a38d8; }
.bf-empty-btn:focus { outline: none; }
.bf-empty-btn:focus-visible { outline: 3px solid #5b47f0; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { button.bh-topic { transition: none; } }

/* Hero to grid transition (Chris 2026-10-06 14:10 ET): the hero gradient ends on the grid section colour (#f5f4fb, live
   bg-surface-muted / --tm-lavender-50), the circle is not clipped and fades out, and the first card row overlaps the hero bottom. */
.bh { --bh-overlap: 1.5rem; padding-bottom: calc(2.5rem + var(--bh-overlap)); }
.bh-art { isolation: isolate; }
.bh-arc { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 100%); }
main .blog-layout-cards { background-color: #f5f4fb; }
main .blog-layout-cards > div { position: relative; z-index: 1; margin-top: calc(-1 * var(--bh-overlap, 0px)); }
.bh + .blog-layout-cards { --bh-overlap: 1.5rem; }
@media (min-width: 640px) { .bh, .bh + .blog-layout-cards { --bh-overlap: 3.5rem; } .bh { padding-bottom: calc(2.5rem + var(--bh-overlap)); } }
/* desktop: first card row starts right at the art bottom, over the lower part of the circle, below the status line and featured card */
@media (min-width: 1024px) { .bh, .bh + .blog-layout-cards { --bh-overlap: 7.5rem; } .bh { padding-bottom: calc(var(--bh-overlap) - 0.75rem); } .bh-copy { padding-bottom: 2.5rem; } }
