/*
 * com.beatsresearch.bx.styles
 */

/* BEaTS Components for Stacks — shared styles.
   Defaults use :where() so the BEaTS Heart theme colours (Theme Styles > Colours)
   always win. With any other theme these defaults apply. */
:where(:root) {
	--bx-primary: #c3002b;
	--bx-primary-dark: #8c001f;
	--bx-ink: #16191d;
	--bx-surface: #f4f2f1;
	--bx-text: #2a2e33;
	--bx-muted: #5c636b;
	--bx-line: #e2dedc;
	--bx-on-dark: rgba(255, 255, 255, .78);
	--bx-font-head: "Montserrat", "Inter", "Helvetica Neue", Arial, sans-serif;
	--bx-font-body: "Open Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
	--bx-max: 1240px;
	--bx-gutter: clamp(16px, 4vw, 40px);
	--bx-radius: 6px;
	--bx-shadow: 0 10px 30px rgba(22, 25, 29, .10);
	--bx-shadow-lg: 0 18px 44px rgba(22, 25, 29, .18);
}
body { overflow-x: clip; }
.bx, .bx * { box-sizing: border-box; }
.bx img { max-width: 100%; height: auto; }

/* ---------- Section ---------- */
.bx-section { position: relative; font-family: var(--bx-font-body); color: var(--bx-text); }
.bx-section.bx-pad--normal { padding: clamp(56px, 8vw, 104px) 0; }
.bx-section.bx-pad--tight { padding: clamp(32px, 5vw, 56px) 0; }
.bx-section.bx-pad--none { padding: 0; }
.bx-section--white { background: #fff; }
.bx-section--alt { background: var(--bx-surface); }
.bx-section--dark { background: var(--bx-ink); color: var(--bx-on-dark); }
.bx-section--red { background: var(--bx-primary); color: rgba(255, 255, 255, .92); }
.bx-section--dark :is(h1, h2, h3, h4, .bx-title), .bx-section--red :is(h1, h2, h3, h4, .bx-title) { color: #fff; }
.bx-section--dark a:not([class]), .bx-section--red a:not([class]) { color: #fff; }
.bx-wrap { max-width: var(--bx-max); margin: 0 auto; padding: 0 var(--bx-gutter); }
.bx-wrap--narrow { max-width: 860px; }
.bx-wrap--full { max-width: none; }
.bx-bleed { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.bx-align--center { text-align: center; }
.bx-align--center .bx-lead { margin-left: auto; margin-right: auto; }

/* ---------- Heading group ---------- */
.bx-eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--bx-font-head); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
	color: var(--bx-primary); margin: 0 0 14px;
}
.bx-eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.bx-align--center .bx-eyebrow::after, .bx-center .bx-eyebrow::after { content: ""; width: 28px; height: 3px; background: currentColor; }
.bx-section--dark .bx-eyebrow, .bx-section--red .bx-eyebrow, .bx-hero .bx-eyebrow { color: #fff; }
.bx-section--dark .bx-eyebrow::before, .bx-hero .bx-eyebrow::before { background: var(--bx-primary); }
.bx-title {
	font-family: var(--bx-font-head); color: var(--bx-ink); font-weight: 800; line-height: 1.15;
	font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 18px; letter-spacing: -.015em;
}
.bx-title--small { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.bx-title--large { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.bx-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--bx-muted); max-width: 62ch; margin: 0 0 18px; }
.bx-section--dark .bx-lead, .bx-section--red .bx-lead { color: inherit; }
.bx-head { margin-bottom: clamp(28px, 4vw, 48px); }
.bx-head > :last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */
.bx-hero { position: relative; overflow: hidden; color: #fff; background: var(--bx-ink); isolation: isolate; font-family: var(--bx-font-body); }
.bx-hero__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.bx-hero__shade { position: absolute; inset: 0; z-index: -1; }
.bx-hero--dark .bx-hero__shade {
	background:
		linear-gradient(100deg, color-mix(in srgb, var(--bx-ink) 92%, transparent) 0%, color-mix(in srgb, var(--bx-ink) 65%, transparent) 50%, color-mix(in srgb, var(--bx-ink) 20%, transparent) 100%),
		linear-gradient(0deg, color-mix(in srgb, var(--bx-primary) 35%, transparent) 0%, transparent 45%);
}
.bx-hero--red .bx-hero__shade { background: linear-gradient(100deg, color-mix(in srgb, var(--bx-primary) 92%, transparent) 0%, color-mix(in srgb, var(--bx-primary-dark) 55%, transparent) 100%); }
.bx-hero--light .bx-hero__shade { background: linear-gradient(100deg, color-mix(in srgb, var(--bx-ink) 55%, transparent) 0%, transparent 80%); }
.bx-hero__inner { max-width: var(--bx-max); margin: 0 auto; padding: 0 var(--bx-gutter); display: flex; flex-direction: column; justify-content: center; }
.bx-hero--large .bx-hero__inner { min-height: clamp(460px, 78vh, 760px); padding-top: 60px; padding-bottom: 110px; }
.bx-hero--medium .bx-hero__inner { min-height: clamp(340px, 52vh, 520px); padding-top: 48px; padding-bottom: 80px; }
.bx-hero--small .bx-hero__inner { min-height: 240px; padding-top: 48px; padding-bottom: 56px; }
.bx-hero__title { font-family: var(--bx-font-head); color: #fff; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0; max-width: 16ch; }
.bx-hero--large .bx-hero__title { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
.bx-hero--medium .bx-hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.bx-hero--small .bx-hero__title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.bx-hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 56ch; margin: 20px 0 0; }
.bx-hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.bx-hero.bx-align--center .bx-hero__inner { align-items: center; }
.bx-hero.bx-align--center .bx-hero__title, .bx-hero.bx-align--center .bx-hero__text { margin-left: auto; margin-right: auto; }
.bx-ecg { position: absolute; left: 0; right: 0; bottom: 18px; height: 70px; width: 100%; fill: none; stroke: var(--bx-primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.bx-hero--red .bx-ecg { stroke: #fff; }
.bx-ecg path { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: bx-ecg 4.2s ease-in-out .3s infinite; }
@keyframes bx-ecg { 0% { stroke-dashoffset: 1600; } 55% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bx-ecg path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Buttons ---------- */
.bx-btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--bx-font-head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--bx-primary);
	background: var(--bx-primary); color: #fff; transition: background-color .2s, color .2s, transform .2s;
}
.bx-btn:hover { background: var(--bx-primary-dark); border-color: var(--bx-primary-dark); color: #fff; transform: translateY(-2px); }
.bx-btn--ghost { background: transparent; color: var(--bx-primary); }
.bx-btn--ghost:hover { background: var(--bx-primary); color: #fff; }
.bx-section--dark .bx-btn--ghost, .bx-section--red .bx-btn--ghost, .bx-hero .bx-btn--ghost { color: #fff; border-color: #fff; }
.bx-section--red .bx-btn--solid, .bx-hero--red .bx-btn--solid { background: #fff; color: var(--bx-primary); border-color: #fff; }
.bx-arrow { color: var(--bx-primary); text-decoration: none; font-family: var(--bx-font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.bx-arrow::after { content: " \2192"; transition: margin .2s; }
.bx-arrow:hover::after { margin-left: 4px; }
.bx-section--dark .bx-arrow:not(.bx-news__item .bx-arrow), .bx-section--red .bx-arrow { color: #fff; }
.bx-button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.bx-button-row.bx-align--center { justify-content: center; }
.bx-button-row.bx-align--right { justify-content: flex-end; }

/* ---------- Grids (columns chosen in the inspector) ---------- */
.bx-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(var(--bx-min, 230px), 1fr)); }
.bx-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bx-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bx-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bx-cols--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bx-cols--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .bx-cols--4, .bx-cols--5, .bx-cols--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bx-cols--3, .bx-cols--4, .bx-cols--5, .bx-cols--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bx-cols--2, .bx-cols--3, .bx-cols--4, .bx-cols--5 { grid-template-columns: 1fr; } .bx-logos.bx-cols--6, .bx-logos.bx-cols--5, .bx-logos.bx-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* In the Stacks editor each child item sits inside Stacks' own wrapper divs.
   Flatten those wrappers so the items still lay out as a grid while editing. */
.bx-grid :not([class*="bx-"]):has(.bx-card, .bx-person, .bx-news__item, .bx-stat, .bx-logo) { display: contents !important; }
.bx-grid :not([class*="bx-"]):not(:has(.bx-card, .bx-person, .bx-news__item, .bx-stat, .bx-logo)):not(:is(.bx-card, .bx-person, .bx-news__item, .bx-stat, .bx-logo) *) { align-self: center; justify-self: center; }
.bx-grid > .stacks_out, .bx-grid > div[id^="stacks_out"] { min-width: 0; }

/* Placeholder shown while no image is chosen */
.bx-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 120px;
	background: repeating-linear-gradient(45deg, #e9e5e3 0 12px, #f2efed 12px 24px); color: #8a8f95;
	font: 600 .78rem/1.3 var(--bx-font-body); text-align: center; padding: 12px; }

/* ---------- Image cards ---------- */
.bx-card { position: relative; display: block; overflow: hidden; border-radius: var(--bx-radius); aspect-ratio: 3 / 4; background: var(--bx-ink); color: #fff; text-decoration: none; isolation: isolate; }
.bx-shape--square .bx-card { aspect-ratio: 1 / 1; }
.bx-shape--wide .bx-card { aspect-ratio: 4 / 3; }
.bx-card > img, .bx-card > .bx-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.bx-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--bx-ink) 92%, transparent) 0%, color-mix(in srgb, var(--bx-ink) 10%, transparent) 62%); }
.bx-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--bx-primary); transition: width .35s ease; }
.bx-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.bx-card__title { font-family: var(--bx-font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin: 0; color: #fff; }
.bx-card__text { font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .82); margin: 8px 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s; }
.bx-card:hover, .bx-card:focus-visible { color: #fff; }
.bx-card:hover > img, .bx-card:focus-visible > img { transform: scale(1.06); }
.bx-card:hover::after, .bx-card:focus-visible::after { width: 100%; }
.bx-card:hover .bx-card__text, .bx-card:focus-visible .bx-card__text, .bx-card--open .bx-card__text { max-height: 8em; opacity: 1; }
@media (hover: none) { .bx-card__text { max-height: none; opacity: 1; } }

/* ---------- People ---------- */
.bx-person { background: #fff; border-radius: var(--bx-radius); overflow: hidden; box-shadow: var(--bx-shadow); display: flex; flex-direction: column; height: 100%; transition: transform .25s, box-shadow .25s; color: var(--bx-text); }
.bx-person:hover { transform: translateY(-4px); box-shadow: var(--bx-shadow-lg); }
.bx-person__photo { aspect-ratio: 1 / 1; background: var(--bx-surface); overflow: hidden; }
.bx-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bx-person__body { padding: 22px 24px 26px; border-top: 4px solid var(--bx-primary); flex: 1; }
.bx-person__name { font-family: var(--bx-font-head); font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; color: var(--bx-ink); }
.bx-person__role { font-size: .9rem; line-height: 1.5; color: var(--bx-muted); margin: 0 0 14px; }
.bx-person__links { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.bx-person__links li + li { margin-top: 6px; }
.bx-section--dark .bx-person__links .bx-arrow, .bx-section--red .bx-person__links .bx-arrow { color: var(--bx-primary); }

/* ---------- News ---------- */
.bx-news__item { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--bx-radius); overflow: hidden; box-shadow: var(--bx-shadow); color: var(--bx-text); }
.bx-news__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bx-surface); }
.bx-news__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.bx-news__item:hover .bx-news__media img { transform: scale(1.04); }
.bx-news__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bx-news__tag { font-family: var(--bx-font-head); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bx-primary); }
.bx-news__title { font-family: var(--bx-font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 0; color: var(--bx-ink); }
.bx-news__text { font-size: .95rem; line-height: 1.55; color: var(--bx-muted); margin: 0; }
.bx-news__body .bx-arrow { margin-top: auto; padding-top: 8px; color: var(--bx-primary); }
.bx-section--dark .bx-news__title, .bx-section--red .bx-news__title { color: var(--bx-ink); }

/* ---------- Stats ---------- */
.bx-stat { padding: 10px 24px; border-left: 3px solid var(--bx-primary); }
.bx-stat__num { font-family: var(--bx-font-head); font-weight: 800; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1; color: var(--bx-ink); display: block; }
.bx-section--dark .bx-stat__num, .bx-section--red .bx-stat__num { color: #fff; }
.bx-section--red .bx-stat { border-color: #fff; }
.bx-stat__label { display: block; margin-top: 8px; font-size: .92rem; }

/* ---------- Logos ---------- */
.bx-logo { display: flex; align-items: center; justify-content: center; min-height: 104px; height: 100%; padding: 18px; background: #fff; border: 1px solid var(--bx-line); border-radius: var(--bx-radius); text-decoration: none; color: var(--bx-ink); font: 700 .95rem/1.3 var(--bx-font-head); text-align: center; transition: border-color .2s, box-shadow .2s; }
.bx-logo img { max-height: 64px; width: auto; }
.bx-logos--grey .bx-logo img { filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.bx-logo:hover { border-color: var(--bx-primary); box-shadow: var(--bx-shadow); color: var(--bx-primary); }
.bx-logos--grey .bx-logo:hover img { filter: none; opacity: 1; }

/* ---------- Image + text ---------- */
.bx-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.bx-split--right .bx-split__media { order: 2; }
.bx-split__media { position: relative; z-index: 0; }
.bx-split:not(.bx-split--frame) .bx-split__media::after { content: none; }
.bx-split__media img, .bx-split__media .bx-ph { display: block; width: 100%; border-radius: var(--bx-radius); }
.bx-split__media .bx-ph { aspect-ratio: 4 / 3; }
.bx-split--frame .bx-split__media::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 40%; height: 40%; border-left: 4px solid var(--bx-primary); border-bottom: 4px solid var(--bx-primary); z-index: -1; }
.bx-split--right.bx-split--frame .bx-split__media::after { left: auto; right: -14px; border-left: 0; border-right: 4px solid var(--bx-primary); }
.bx-split__body > :last-child { margin-bottom: 0; }
.bx-split__text { font-size: 1.02rem; line-height: 1.65; }
.bx-split__text p { margin: 0 0 1em; }
.bx-split .bx-button-row { margin-top: 26px; }
@media (max-width: 820px) { .bx-split { grid-template-columns: 1fr; } .bx-split--right .bx-split__media { order: 0; } }

/* ---------- Call-to-action band ---------- */
.bx-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bx-band__title { font-family: var(--bx-font-head); font-weight: 800; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.25; margin: 0; max-width: 30ch; color: var(--bx-ink); }
.bx-band__text { margin: 8px 0 0; max-width: 60ch; }
.bx-section--dark .bx-band__title, .bx-section--red .bx-band__title { color: #fff; }

/* ---------- Statement ---------- */
.bx-statement { font-family: var(--bx-font-head); font-weight: 700; color: var(--bx-ink); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; letter-spacing: -.015em; max-width: 24ch; margin: 0; }
.bx-align--center .bx-statement { margin: 0 auto; }
.bx-statement em { font-style: normal; color: var(--bx-primary); }
.bx-section--dark .bx-statement, .bx-section--red .bx-statement { color: #fff; }
.bx-section--red .bx-statement em { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }

/* ---------- Note ---------- */
.bx-note { border-left: 4px solid var(--bx-primary); background: var(--bx-surface); padding: 22px 26px; border-radius: 0 var(--bx-radius) var(--bx-radius) 0; font-size: .97rem; line-height: 1.6; color: var(--bx-text); }
.bx-note--plain { background: transparent; }
.bx-note p:last-child { margin-bottom: 0; }
.bx-section--dark .bx-note { background: rgba(255, 255, 255, .06); color: var(--bx-on-dark); }

/* ---------- Heartbeat divider ---------- */
.bx-ecg-line { display: block; width: 100%; height: 60px; fill: none; stroke: var(--bx-primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bx-ecg-line path { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: bx-ecg 5s ease-in-out .3s infinite; }
@media (prefers-reduced-motion: reduce) { .bx-ecg-line path { animation: none; stroke-dashoffset: 0; } }
.bx-ecg-line--static path { animation: none; stroke-dashoffset: 0; }

/* ==========================================================================
   Media: BEaTS Video and BEaTS Journal Covers (added in 1.1.0)
   ========================================================================== */

/* ---------- Video player (click-to-play poster) ---------- */
.bx-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--bx-radius); overflow: hidden; background: var(--bx-ink); box-shadow: var(--bx-shadow-lg); isolation: isolate; }
.bx-video--square { aspect-ratio: 1 / 1; }
.bx-video--tall { aspect-ratio: 4 / 5; }
.bx-video iframe, .bx-video video, .bx-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.bx-video__poster { background: var(--bx-ink) center / cover no-repeat; display: block; cursor: pointer; z-index: 1; }
.bx-video__poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--bx-ink) 70%, transparent), color-mix(in srgb, var(--bx-ink) 10%, transparent) 60%); transition: opacity .3s; }
.bx-video__play {
	position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; z-index: 2;
	border-radius: 50%; border: 0; background: var(--bx-primary); color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--bx-primary) 60%, transparent); animation: bx-pulse 2.4s ease-out infinite;
	transition: transform .25s, background-color .25s;
}
.bx-video__play::after { content: ""; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.bx-video:hover .bx-video__play, .bx-video__play:focus-visible { transform: scale(1.08); background: var(--bx-primary-dark); }
@keyframes bx-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bx-primary) 55%, transparent); } 70% { box-shadow: 0 0 0 26px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .bx-video__play { animation: none; } }
.bx-video__label { position: absolute; left: 22px; bottom: 18px; right: 22px; z-index: 2; color: #fff; font: 700 .78rem/1.3 var(--bx-font-head); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.bx-video.is-playing .bx-video__poster, .bx-video.is-playing .bx-video__play, .bx-video.is-playing .bx-video__label { display: none; }
.bx-video__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: rgba(255, 255, 255, .7); font: 600 .9rem/1.4 var(--bx-font-body); z-index: 0; }
.bx-video__caption { margin: 14px 0 0; font-size: .9rem; color: var(--bx-muted); }
.bx-section--dark .bx-video__caption, .bx-section--red .bx-video__caption { color: inherit; }

/* Layout: feature (video beside text) */
.bx-vfeature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.bx-vfeature--right .bx-vfeature__media { order: 2; }
.bx-vfeature__body > :last-child { margin-bottom: 0; }
.bx-vfeature .bx-button-row { margin-top: 24px; }
@media (max-width: 860px) { .bx-vfeature { grid-template-columns: 1fr; } .bx-vfeature--right .bx-vfeature__media { order: 0; } }

/* Layout: cinema (big centred video) */
.bx-vcinema .bx-head { text-align: center; }
.bx-vcinema .bx-head .bx-eyebrow::after { content: ""; width: 28px; height: 3px; background: currentColor; }
.bx-vcinema .bx-lead { margin-left: auto; margin-right: auto; }
.bx-vcinema__frame { position: relative; max-width: 1080px; margin: 0 auto; }
.bx-vcinema__frame::before { content: ""; position: absolute; left: -14px; top: -14px; width: 120px; height: 120px; border-left: 4px solid var(--bx-primary); border-top: 4px solid var(--bx-primary); z-index: -1; }
.bx-vcinema__frame::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 120px; height: 120px; border-right: 4px solid var(--bx-primary); border-bottom: 4px solid var(--bx-primary); z-index: -1; }
.bx-vcinema .bx-button-row { justify-content: center; margin-top: 28px; }

/* Layout: background (looping muted video behind a headline) */
.bx-vbg { position: relative; overflow: hidden; color: #fff; background: var(--bx-ink); isolation: isolate; font-family: var(--bx-font-body); }
.bx-vbg__media { position: absolute; inset: 0; z-index: -2; }
.bx-vbg__media video, .bx-vbg__media iframe { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.bx-vbg__media iframe { width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%; }
.bx-vbg__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bx-vbg__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--bx-ink) 88%, transparent) 0%, color-mix(in srgb, var(--bx-ink) 55%, transparent) 55%, color-mix(in srgb, var(--bx-ink) 25%, transparent) 100%), linear-gradient(0deg, color-mix(in srgb, var(--bx-primary) 30%, transparent), transparent 50%); }
.bx-vbg__inner { max-width: var(--bx-max); margin: 0 auto; padding: 0 var(--bx-gutter); min-height: clamp(420px, 70vh, 680px); display: flex; flex-direction: column; justify-content: center; }
.bx-vbg .bx-title { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.05; max-width: 16ch; }
.bx-vbg .bx-lead { color: rgba(255, 255, 255, .86); }
.bx-vbg .bx-eyebrow { color: #fff; }
.bx-vbg .bx-eyebrow::before { background: var(--bx-primary); }
.bx-vbg .bx-button-row { margin-top: 28px; }
.bx-vbg.bx-align--center .bx-vbg__inner { align-items: center; text-align: center; }
.bx-vbg.bx-align--center .bx-title { margin-left: auto; margin-right: auto; }
.bx-vbg__toggle { position: absolute; right: 20px; bottom: 20px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer; font: 700 .7rem var(--bx-font-head); }
.bx-vbg__toggle:hover { background: var(--bx-primary); border-color: var(--bx-primary); }

/* ---------- Journal covers ---------- */
.bx-covers { position: relative; }
.bx-covers__track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--bx-cover-w, 23%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 28px; scrollbar-width: thin; scrollbar-color: var(--bx-primary) transparent; }
.bx-covers__track::-webkit-scrollbar { height: 6px; }
.bx-covers__track::-webkit-scrollbar-thumb { background: var(--bx-primary); border-radius: 3px; }
.bx-covers__track > * { scroll-snap-align: start; min-width: 0; }
.bx-covers--per-3 { --bx-cover-w: calc((100% - 48px) / 3); }
.bx-covers--per-4 { --bx-cover-w: calc((100% - 72px) / 4); }
.bx-covers--per-5 { --bx-cover-w: calc((100% - 96px) / 5); }
@media (max-width: 900px) { .bx-covers--per-4, .bx-covers--per-5 { --bx-cover-w: calc((100% - 24px) / 2.3); } .bx-covers--per-3 { --bx-cover-w: calc((100% - 24px) / 2.2); } }
@media (max-width: 520px) { .bx-covers__track { --bx-cover-w: 72% !important; } }

.bx-cover { display: block; text-decoration: none; color: var(--bx-text); }
.bx-cover__img { display: block; position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--bx-surface); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 14px 30px rgba(22, 25, 29, .18); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; transform-origin: center bottom; }
.bx-cover__img img, .bx-cover__img .bx-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bx-cover__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%); pointer-events: none; }
.bx-cover__img::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent); z-index: 1; }
a.bx-cover:hover .bx-cover__img, a.bx-cover:focus-visible .bx-cover__img { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 4px 8px rgba(0, 0, 0, .14), 0 26px 46px rgba(22, 25, 29, .26); }
.bx-cover__meta { display: block; padding-top: 16px; }
.bx-cover__journal { display: block; font: 700 .72rem/1.3 var(--bx-font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--bx-primary); }
.bx-cover__title { display: block; margin-top: 6px; font: 700 1rem/1.35 var(--bx-font-head); color: var(--bx-ink); }
.bx-cover__year { display: block; margin-top: 4px; font-size: .85rem; color: var(--bx-muted); }
.bx-section--dark .bx-cover__title, .bx-section--red .bx-cover__title { color: #fff; }
.bx-section--dark .bx-cover__year, .bx-section--red .bx-cover__year { color: var(--bx-on-dark); }
.bx-section--red .bx-cover__journal { color: #fff; }
.bx-covers--nocaption .bx-cover__meta { display: none; }

/* Style: spotlight (one cover at a time, details beside it) */
.bx-covers--spotlight .bx-covers__track { grid-auto-columns: 100%; gap: 0; padding-bottom: 8px; }
.bx-covers--spotlight .bx-cover { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding: 10px clamp(8px, 4vw, 60px); }
.bx-covers--spotlight .bx-cover__img { transform: rotate(-3deg); }
.bx-covers--spotlight a.bx-cover:hover .bx-cover__img { transform: rotate(0deg) translateY(-6px); }
.bx-covers--spotlight .bx-cover__meta { padding: 0; }
.bx-covers--spotlight .bx-cover__journal { font-size: .8rem; }
.bx-covers--spotlight .bx-cover__title { font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.2; margin-top: 12px; letter-spacing: -.01em; }
.bx-covers--spotlight .bx-cover__year { font-size: 1rem; margin-top: 12px; }
.bx-covers--spotlight .bx-cover__meta::after { content: "Read the article \2192"; display: inline-block; margin-top: 22px; font: 700 .8rem var(--bx-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--bx-primary); }
.bx-covers--spotlight div.bx-cover .bx-cover__meta::after { content: none; }
.bx-section--dark .bx-covers--spotlight .bx-cover__meta::after, .bx-section--red .bx-covers--spotlight .bx-cover__meta::after { color: #fff; }
@media (max-width: 700px) { .bx-covers--spotlight .bx-cover { grid-template-columns: 1fr; justify-items: center; text-align: center; } .bx-covers--spotlight .bx-cover__img { width: min(260px, 80%); } }

/* Style: wall (all covers in a fanned grid, no scrolling) */
.bx-covers--wall .bx-covers__track { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; padding: 10px 0; gap: 28px 22px; }
.bx-covers--wall .bx-covers__track > :nth-child(odd) .bx-cover__img { transform: rotate(-2deg); }
.bx-covers--wall .bx-covers__track > :nth-child(even) .bx-cover__img { transform: rotate(2deg) translateY(8px); }
.bx-covers--wall a.bx-cover:hover .bx-cover__img { transform: rotate(0) translateY(-6px) scale(1.04); z-index: 2; }

/* Controls (added by beats-media.js) */
.bx-covers__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.bx-covers__dots { display: flex; gap: 8px; flex-wrap: wrap; }
.bx-covers__dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: var(--bx-line); cursor: pointer; transition: width .3s, background-color .3s; }
.bx-covers__dot[aria-current="true"] { width: 28px; background: var(--bx-primary); }
.bx-section--dark .bx-covers__dot { background: rgba(255, 255, 255, .25); }
.bx-section--red .bx-covers__dot { background: rgba(255, 255, 255, .4); }
.bx-section--red .bx-covers__dot[aria-current="true"] { background: #fff; }
.bx-covers__arrows { display: flex; gap: 10px; }
.bx-covers__arrow { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--bx-primary); background: transparent; color: var(--bx-primary); cursor: pointer; font: 700 1.1rem/1 var(--bx-font-head); transition: background-color .2s, color .2s; }
.bx-covers__arrow:hover, .bx-covers__arrow:focus-visible { background: var(--bx-primary); color: #fff; }
.bx-section--dark .bx-covers__arrow, .bx-section--red .bx-covers__arrow { border-color: #fff; color: #fff; }
.bx-section--dark .bx-covers__arrow:hover, .bx-section--red .bx-covers__arrow:hover { background: #fff; color: var(--bx-ink); }
.bx-covers--wall .bx-covers__nav { display: none; }

/* Stacks editor: flatten Stacks' wrappers inside the cover track too */
.bx-covers__track :not([class*="bx-"]):has(.bx-cover) { display: contents !important; }

/* ==========================================================================
   Podcast: BEaTS Podcast Header, BEaTS Episodes, BEaTS Podcast Player (1.2.0)
   ========================================================================== */

/* ---------- Header ---------- */
.bx-pod { position: relative; overflow: hidden; isolation: isolate; }
.bx-pod__grid { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.bx-pod__art { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.bx-pod__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bx-pod__art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.bx-pod__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 22px; font: 600 .82rem/1.4 var(--bx-font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--bx-muted); }
.bx-section--dark .bx-pod__stats, .bx-section--red .bx-pod__stats { color: var(--bx-on-dark); }
.bx-pod__stats span + span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bx-primary); margin-right: 18px; vertical-align: middle; }
.bx-section--red .bx-pod__stats span + span::before { background: #fff; }
.bx-pod .bx-lead { max-width: 60ch; }
.bx-pod__listen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.bx-pod__listen-label { width: 100%; font: 700 .72rem var(--bx-font-head); letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.bx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; text-decoration: none; font: 700 .78rem/1 var(--bx-font-head); letter-spacing: .06em; border: 1.5px solid var(--bx-line); color: var(--bx-ink); background: #fff; transition: border-color .2s, background-color .2s, color .2s, transform .2s; }
.bx-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bx-primary); }
.bx-pill:hover { border-color: var(--bx-primary); color: var(--bx-primary); transform: translateY(-2px); }
.bx-section--dark .bx-pill, .bx-section--red .bx-pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #fff; }
.bx-section--dark .bx-pill:hover, .bx-section--red .bx-pill:hover { background: #fff; color: var(--bx-ink); border-color: #fff; }
.bx-section--red .bx-pill::before { background: #fff; }
@media (max-width: 760px) { .bx-pod__grid { grid-template-columns: 1fr; } .bx-pod__art { width: min(240px, 70%); } }

/* Sound-wave decoration */
.bx-wave { position: absolute; right: -2%; bottom: 0; height: 70%; width: 46%; display: flex; align-items: flex-end; gap: 6px; opacity: .14; z-index: -1; pointer-events: none; }
.bx-wave i { flex: 1; background: var(--bx-primary); border-radius: 4px 4px 0 0; height: 30%; animation: bx-wave 1.6s ease-in-out infinite; }
.bx-section--red .bx-wave i { background: #fff; }
.bx-wave i:nth-child(3n) { animation-delay: -.4s; } .bx-wave i:nth-child(3n+1) { animation-delay: -.9s; } .bx-wave i:nth-child(4n) { animation-delay: -1.2s; }
.bx-wave i:nth-child(odd) { height: 55%; } .bx-wave i:nth-child(5n) { height: 85%; } .bx-wave i:nth-child(7n) { height: 40%; }
@keyframes bx-wave { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.bx-wave i { transform-origin: bottom; }
@media (prefers-reduced-motion: reduce) { .bx-wave i { animation: none; } }
@media (max-width: 760px) { .bx-wave { width: 90%; height: 35%; } }

/* Generated artwork when no image is chosen */
.bx-art-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12%; color: #fff;
	background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--bx-primary) 85%, #fff 0%) 0%, transparent 55%), linear-gradient(145deg, var(--bx-primary-dark), var(--bx-ink) 75%); }
.bx-art-ph b { font: 800 clamp(1rem, 2.2vw, 1.7rem)/1.05 var(--bx-font-head); letter-spacing: -.01em; }
.bx-art-ph small { font: 700 .62rem var(--bx-font-head); letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.bx-art-ph::before { content: ""; position: absolute; left: 12%; right: 12%; top: 18%; height: 30%;
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 3px, transparent 3px 9px);
	-webkit-mask: linear-gradient(0deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(0deg, transparent, #000 20%, #000 80%, transparent);
	clip-path: polygon(0 60%, 8% 40%, 16% 70%, 24% 20%, 32% 55%, 40% 10%, 48% 65%, 56% 30%, 64% 75%, 72% 25%, 80% 60%, 88% 35%, 100% 55%, 100% 100%, 0 100%); opacity: .7; }

/* ---------- Episodes ---------- */
.bx-eps__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 26px; }
.bx-eps__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--bx-line); background: #fff; color: var(--bx-ink); cursor: pointer; font: 700 .76rem/1 var(--bx-font-head); letter-spacing: .04em; transition: background-color .2s, color .2s, border-color .2s; }
.bx-chip:hover { border-color: var(--bx-primary); color: var(--bx-primary); }
.bx-chip[aria-pressed="true"] { background: var(--bx-primary); border-color: var(--bx-primary); color: #fff; }
.bx-section--dark .bx-chip { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.bx-eps__search { position: relative; flex: 0 1 300px; }
.bx-eps__search input { width: 100%; padding: 11px 16px 11px 40px; border-radius: 999px; border: 1.5px solid var(--bx-line); font: 500 .92rem var(--bx-font-body); background: #fff; color: var(--bx-text); }
.bx-eps__search input:focus { outline: none; border-color: var(--bx-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bx-primary) 18%, transparent); }
.bx-eps__search::before { content: ""; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border: 2px solid var(--bx-muted); border-radius: 50%; }
.bx-eps__search::after { content: ""; position: absolute; left: 28px; top: 50%; width: 6px; height: 2px; margin-top: 4px; background: var(--bx-muted); transform: rotate(45deg); }
.bx-eps__empty { display: none; padding: 30px; text-align: center; color: var(--bx-muted); }
.bx-eps.is-empty .bx-eps__empty { display: block; }

.bx-eps__list { display: grid; gap: 18px; }
.bx-ep { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; padding: 18px; background: #fff; border-radius: var(--bx-radius); box-shadow: var(--bx-shadow); color: var(--bx-text); transition: transform .25s, box-shadow .25s; }
.bx-ep:hover { transform: translateY(-3px); box-shadow: var(--bx-shadow-lg); }
.bx-ep[hidden] { display: none; }
.bx-ep__art { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--bx-ink); }
.bx-ep__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bx-ep__body { min-width: 0; }
.bx-ep__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 700 .7rem/1.4 var(--bx-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--bx-muted); }
.bx-ep__meta .bx-ep__num { color: var(--bx-primary); }
.bx-ep__series { display: inline-block; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bx-primary) 10%, transparent); color: var(--bx-primary-dark); }
.bx-ep__title { margin: 8px 0 4px; font: 700 1.15rem/1.3 var(--bx-font-head); color: var(--bx-ink); }
.bx-ep__title a { color: inherit; text-decoration: none; }
.bx-ep__title a:hover { color: var(--bx-primary); }
.bx-ep__guest { margin: 0 0 6px; font-size: .9rem; font-weight: 600; color: var(--bx-text); }
.bx-ep__desc { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--bx-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bx-ep__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bx-ep__play { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--bx-primary); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .2s, background-color .2s; }
.bx-ep__play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.bx-ep__play:hover { transform: scale(1.08); background: var(--bx-primary-dark); }
.bx-ep.is-playing .bx-ep__play::after { margin-left: 0; width: 14px; height: 16px; border: 0; border-left: 5px solid #fff; border-right: 5px solid #fff; }
.bx-ep__dur { font: 700 .72rem var(--bx-font-head); letter-spacing: .08em; color: var(--bx-muted); }
.bx-ep__audio { grid-column: 1 / -1; display: none; }
.bx-ep.is-open .bx-ep__audio { display: block; }
.bx-ep__audio audio { width: 100%; height: 40px; }
.bx-ep__progress { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--bx-line); overflow: hidden; display: none; }
.bx-ep.is-open .bx-ep__progress { display: block; }
.bx-ep__progress i { display: block; height: 100%; width: 0; background: var(--bx-primary); }
@media (max-width: 680px) {
	.bx-ep { grid-template-columns: 76px 1fr; gap: 14px; padding: 14px; }
	.bx-ep__actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Featured latest episode: the first .bx-ep in the list, however Stacks wraps the items */
.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) { position: relative; grid-template-columns: minmax(160px, 260px) 1fr auto; padding: 30px 26px 26px; background: var(--bx-ink); color: var(--bx-on-dark); }
.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__title { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__desc { color: var(--bx-on-dark); -webkit-line-clamp: 4; }
.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__guest { color: #fff; }
.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__meta, .bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__dur { color: var(--bx-on-dark); }
.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__series { background: rgba(255,255,255,.12); color: #fff; }
.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__play { width: 68px; height: 68px; }
.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-art-ph b { font-size: 1.6rem; }
.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep)::before { content: "Latest episode"; position: absolute; top: -11px; left: 26px; padding: 5px 12px; border-radius: 999px; background: var(--bx-primary); color: #fff; font: 700 .66rem/1 var(--bx-font-head); letter-spacing: .14em; text-transform: uppercase; }
.bx-eps--feature .bx-eps__list { padding-top: 11px; }
@media (max-width: 680px) {
	.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) { grid-template-columns: 1fr; }
	.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__art { width: min(220px, 70%); }
}

/* Grid layout */
.bx-eps--grid .bx-eps__list { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.bx-eps--grid .bx-ep { grid-template-columns: 1fr; align-items: start; padding: 0 0 18px; overflow: hidden; }
.bx-eps--grid .bx-ep__art { border-radius: 0; }
.bx-eps--grid .bx-ep__body, .bx-eps--grid .bx-ep__actions { padding: 0 18px; }
.bx-eps--grid .bx-ep__actions { flex-direction: row; justify-content: space-between; align-items: center; }
.bx-eps--grid.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) { grid-column: 1 / -1; grid-template-columns: minmax(200px, 300px) 1fr auto; padding: 30px 22px 22px; align-items: center; }
.bx-eps--grid.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__art { border-radius: 10px; }
.bx-eps--grid.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) :is(.bx-ep__body, .bx-ep__actions) { padding: 0; }
.bx-eps--grid.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) .bx-ep__actions { flex-direction: column; }
@media (max-width: 680px) { .bx-eps--grid.bx-eps--feature .bx-ep:not(.bx-ep ~ .bx-ep, .bx-ep ~ * .bx-ep, :has(.bx-ep) ~ .bx-ep, :has(.bx-ep) ~ * .bx-ep) { grid-template-columns: 1fr; } }

.bx-eps__more { margin-top: 30px; text-align: center; }

/* Stacks editor: flatten wrappers inside the episode list */
.bx-eps__list :not([class*="bx-"]):has(.bx-ep) { display: contents !important; }

/* ---------- Full Buzzsprout player ---------- */
.bx-podplayer { background: #fff; border-radius: var(--bx-radius); box-shadow: var(--bx-shadow); padding: clamp(10px, 2vw, 18px); border-top: 4px solid var(--bx-primary); }
.bx-podplayer__ph { padding: 40px 20px; text-align: center; color: var(--bx-muted); font: 600 .95rem/1.5 var(--bx-font-body); background: repeating-linear-gradient(45deg, #f6f3f2 0 12px, #fff 12px 24px); border-radius: 6px; }
.bx-ep__play[hidden] { display: none; }
.bx-ep__art .bx-art-ph { padding: 10%; }
.bx-ep__art .bx-art-ph b { font-size: 1.05rem; }
.bx-ep__more { display: inline-block; margin-top: 8px; font: 700 .78rem var(--bx-font-head); letter-spacing: .06em; color: var(--bx-primary); text-decoration: none; }
.bx-ep__more:hover { text-decoration: underline; }
.bx-podplayer iframe { display: block; width: 100%; border: 0; }
.bx-eps__tools[hidden] { display: none; }
.bx-podplayer__ph + div:empty { display: none; }

/* ==========================================================================
   Profiles: BEaTS Profile Hero, Text Cards, List, Columns (1.3.0)
   ========================================================================== */

/* ---------- Profile hero ---------- */
.bx-phero { position: relative; overflow: hidden; background: var(--bx-ink); color: #fff; isolation: isolate; }
.bx-phero__media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; z-index: -1; }
.bx-phero__inner { max-width: var(--bx-max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--bx-gutter) clamp(76px, 9vw, 120px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.bx-phero__body { flex: 999 1 520px; min-width: 0; }
.bx-phero__name { margin: 0; font-family: var(--bx-font-head); font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.02em; color: #fff; }
.bx-phero__post { margin: 10px 0 0; font: 600 .95rem var(--bx-font-head); letter-spacing: .08em; color: var(--bx-on-dark); }
.bx-phero__text { margin: 22px 0 0; max-width: 620px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .86); }
.bx-phero__chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bx-phero__chips li { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: .82rem; font-weight: 600; color: #fff; }
.bx-phero .bx-hero__actions { margin-top: 34px; }
.bx-phero__photo { flex: 1 1 300px; max-width: 380px; margin: 0 auto; position: relative; }
.bx-phero__frame { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #2a2e33; }
.bx-phero__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bx-phero__frame .bx-ph { height: 100%; border: 1px dashed rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .7); background: transparent; }
.bx-phero__corner { position: relative; margin: -26px 0 0 -18px; width: 120px; height: 120px; border: 4px solid var(--bx-primary); border-top-color: transparent; border-right-color: transparent; border-radius: 10px; pointer-events: none; }
.bx-phero .bx-ecg { z-index: 0; }

/* ---------- Text cards ---------- */
.bx-tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--bx-min, 300px), 1fr)); gap: 22px; }
.bx-tcards.bx-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bx-tcards.bx-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .bx-tcards.bx-cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bx-tcards.bx-cols--2, .bx-tcards.bx-cols--3 { grid-template-columns: 1fr; } }
.bx-tcards + * { margin-top: 0; }
.bx-tcards :not([class*="bx-"]):has(.bx-tcard) { display: contents !important; }
.bx-tcard { display: flex; flex-direction: column; gap: 12px; height: 100%; box-sizing: border-box; padding: 30px; border-radius: 8px; background: #fff; color: var(--bx-text); text-decoration: none; }
.bx-tcard--outline { border: 1px solid var(--bx-line); }
.bx-tcard--white { box-shadow: 0 10px 30px rgba(22, 25, 29, .08); }
.bx-tcard--dark { background: var(--bx-ink); color: var(--bx-on-dark); }
.bx-tcard--accent { background: var(--bx-primary); color: rgba(255, 255, 255, .92); }
.bx-tcard__kicker { font: 800 .85rem/1.2 var(--bx-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--bx-primary-dark); }
.bx-tcard--big .bx-tcard__kicker { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; letter-spacing: 0; text-transform: none; color: var(--bx-primary); }
.bx-tcard--dark .bx-tcard__kicker { color: #ff8a9c; }
.bx-tcard--accent .bx-tcard__kicker { color: #fff; }
.bx-tcard__title { margin: 0; font: 700 1.3rem/1.28 var(--bx-font-head); color: var(--bx-ink); }
.bx-tcard--big .bx-tcard__title { font-size: 1.2rem; }
.bx-tcard--dark .bx-tcard__title, .bx-tcard--accent .bx-tcard__title { color: #fff; }
.bx-tcard__text { margin: 0; font-size: .98rem; line-height: 1.6; }
.bx-tcard--big .bx-tcard__text { margin-top: auto; font-size: .9rem; color: var(--bx-muted); }
.bx-tcard--big.bx-tcard--dark .bx-tcard__text { color: var(--bx-on-dark); }
.bx-tcard__tags { margin: auto 0 0; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.bx-tcard__tags span { padding: 5px 10px; border-radius: 999px; background: var(--bx-surface); color: var(--bx-ink); font-size: .74rem; font-weight: 700; }
.bx-tcard--dark .bx-tcard__tags span, .bx-tcard--accent .bx-tcard__tags span { background: rgba(255, 255, 255, .16); color: #fff; }
.bx-tcard__link { margin-top: auto; font: 700 .8rem var(--bx-font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--bx-primary); text-decoration: none; }
.bx-tcard__link::after { content: " →"; }
.bx-tcard--dark .bx-tcard__link { color: #ff8a9c; }
.bx-tcard--accent .bx-tcard__link { color: #fff; }
.bx-tcard__icon { width: 34px; height: 34px; color: var(--bx-primary-dark); }
.bx-tcard--dark .bx-tcard__icon { color: #ff8a9c; }
.bx-tcard--accent .bx-tcard__icon { color: #fff; }
.bx-tcard__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bx-section--alt .bx-tcard--outline { background: #fff; }
.bx-section--dark .bx-tcard--outline { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); color: var(--bx-on-dark); }
.bx-section--dark .bx-tcard--outline .bx-tcard__title { color: #fff; }
.bx-tcards + .bx-list, .bx-tcards + * .bx-list { margin-top: 40px; }

/* ---------- Lists ---------- */
.bx-list { margin: 0; }
.bx-list + .bx-list { margin-top: 40px; }
.bx-list__heading { margin: 0 0 6px; font: 700 1.15rem var(--bx-font-head); color: var(--bx-ink); }
.bx-section--dark .bx-list__heading { color: #fff; }
.bx-list__intro { margin: 0 0 18px; font-size: .9rem; color: var(--bx-muted); }
.bx-section--dark .bx-list__intro { color: rgba(255, 255, 255, .72); }
.bx-list__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 48px; }
.bx-list--two .bx-list__items { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.bx-list__items :not([class*="bx-"]):has(.bx-li) { display: contents !important; }
.bx-li { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid var(--bx-line); }
.bx-section--dark .bx-li { border-color: rgba(255, 255, 255, .14); }
.bx-list--plain .bx-li, .bx-list--value .bx-li { display: flex; justify-content: space-between; }
.bx-li__label { flex: 0 0 64px; font: 800 1rem var(--bx-font-head); color: var(--bx-primary-dark); }
.bx-section--dark .bx-li__label { color: #ff8a9c; }
.bx-list--plain .bx-li__label, .bx-list--value .bx-li__label { display: none; }
.bx-li__body { flex: 1 1 auto; min-width: 0; }
.bx-li__title { display: block; font-weight: 700; color: var(--bx-ink); }
.bx-section--dark .bx-li__title { color: #fff; }
.bx-li__sub { display: block; margin-top: 2px; font-size: .88rem; color: var(--bx-muted); }
.bx-section--dark .bx-li__sub { color: rgba(255, 255, 255, .72); }
.bx-li__value { flex: 0 0 auto; font: 800 1rem var(--bx-font-head); color: var(--bx-primary-dark); white-space: nowrap; }
.bx-section--dark .bx-li__value { color: #ff8a9c; }
.bx-list--timeline .bx-li__value, .bx-list--plain .bx-li__value { display: none; }
/* tiles */
.bx-list--tiles .bx-list__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bx-list--tiles .bx-li { display: block; padding: 18px; border: 0; border-radius: 8px; background: var(--bx-surface); }
.bx-section--dark .bx-list--tiles .bx-li { background: rgba(255, 255, 255, .06); }
.bx-list--tiles .bx-li__label { display: block; font-size: 1.9rem; line-height: 1; color: var(--bx-ink); margin-bottom: 6px; }
.bx-section--dark .bx-list--tiles .bx-li__label { color: #fff; }
.bx-list--tiles .bx-li__title { font-weight: 400; font-size: .85rem; color: var(--bx-muted); }
.bx-section--dark .bx-list--tiles .bx-li__title { color: rgba(255, 255, 255, .78); }
.bx-list--tiles .bx-li__value { display: none; }
.bx-list__note { margin: 18px 0 0; font-size: .95rem; }
.bx-section--dark .bx-list__note { color: rgba(255, 255, 255, .86); }
.bx-list__more { margin-top: 28px; }
.bx-list + .bx-button-row, .bx-list__more.bx-button-row { margin-top: 28px; }

/* ---------- Column group ---------- */
.bx-colgroup { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--bx-min, 300px), 1fr)); gap: 40px; align-items: start; }
.bx-colgroup.bx-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bx-colgroup.bx-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .bx-colgroup.bx-cols--3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .bx-colgroup.bx-cols--2 { grid-template-columns: 1fr; } }
.bx-colgroup > * { min-width: 0; }
.bx-colgroup .bx-list + .bx-list { margin-top: 0; }

.bx-phero .bx-eyebrow { color: #fff; }
.bx-phero .bx-eyebrow::before { background: var(--bx-primary); }
.bx-phero .bx-btn--ghost { color: #fff; border-color: #fff; }
.bx-phero .bx-btn--ghost:hover { background: #fff; color: var(--bx-ink); }
.bx-stat { min-width: 0; }
.bx-list--two { margin-top: 40px; }



#stacks_in_15 {
	border: solid rgba(253, 253, 253, 1.00);
	border-width:  10px;
}

#stacks_in_20 {
	border: solid rgba(255, 255, 255, 1.00);
	border-width:  10px;
}
