/* ==========================================================================
   Myths redesign, version C ("playlist and spotlight").
   Loaded only on the front page and on the myths page template.
   Every rule is scoped to .bsm-home / .bsm-page / .bsm-vd so the rest of the site is untouched.
   ========================================================================== */

.bsm-home, .bsm-page, .bsm-vd {
	--bsm-paper: #faf8f2;
	--bsm-paper-2: #f1eee4;
	--bsm-forest: #1f3312;
	--bsm-forest-2: #2c4a19;
	--bsm-muted: #59604f;
	--bsm-line: rgba(31, 51, 18, .13);
	--bsm-lime: #c0ea6a;
	--bsm-green: #61a229;
	--bsm-green-text: #3a6912;
	--bsm-radius: 18px;
	font-family: agas, arial, sans-serif;
	color: var(--bsm-forest);
	-webkit-font-smoothing: antialiased;
}
.bsm-home *, .bsm-page *, .bsm-vd * { box-sizing: border-box; }
.bsm-home button, .bsm-page button, .bsm-vd button { font: inherit; color: inherit; }
.bsm-home img, .bsm-page img { display: block; max-width: 100%; }

.bsm-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- shared bits ---------- */
.bsm-eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0;
	font-size: 15px; font-weight: 700; color: var(--bsm-green-text); letter-spacing: .2px;
}
.bsm-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--bsm-green); }

.bsm-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
	background: var(--bsm-forest); color: #fff; font-weight: 700; font-size: 16.5px; line-height: 1.2;
	text-decoration: none; border: 0; cursor: pointer; transition: background .2s;
}
.bsm-btn:hover { background: var(--bsm-forest-2); color: #fff; }
.bsm-btn:focus-visible { outline: 3px solid var(--bsm-green); outline-offset: 3px; }

.bsm-chip {
	display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px;
	background: var(--bsm-lime); color: var(--bsm-forest); font-size: 13.5px; font-weight: 800; line-height: 1.2;
}

.bsm-playdisc { display: grid; place-items: center; border-radius: 50%; background: var(--bsm-lime); color: var(--bsm-forest); flex: none; }
.bsm-playdisc svg { fill: currentColor; margin-left: 8%; } /* the play triangle is not mirrored in RTL */

/* decorative struck-through ticker (aria-hidden) */
.bsm-ticker {
	overflow: hidden; border-block: 1px solid var(--bsm-line); background: var(--bsm-paper-2); padding: 18px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bsm-ticker-track { display: flex; gap: 44px; width: max-content; animation: bsm-tick 90s linear infinite; }
.bsm-ticker span {
	font-size: 22px; font-weight: 700; white-space: nowrap; color: var(--bsm-forest); opacity: .82;
	text-decoration: line-through; text-decoration-color: var(--bsm-green); text-decoration-thickness: 3px;
}
.bsm-ticker i { font-style: normal; color: var(--bsm-green); opacity: .7; }
@keyframes bsm-tick { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .bsm-ticker-track { animation: none; } }

/* ==========================================================================
   A) Home section: spotlight + playlist
   ========================================================================== */
.bsm-home { padding: 84px 24px 0; background: var(--bsm-paper); }
.bsm-head {
	max-width: 1240px; margin: 0 auto 40px; display: flex; flex-wrap: wrap;
	align-items: flex-end; justify-content: space-between; gap: 20px 40px;
}
.bsm-title {
	margin: 14px 0 0; font-size: clamp(44px, 6vw, 84px); line-height: .95; font-weight: 800;
	letter-spacing: -1px; color: var(--bsm-forest);
}
.bsm-title em, .bsm-hero h1 em { font-style: normal; color: var(--bsm-green-text); }
.bsm-sub { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--bsm-muted); }
.bsm-sub p { margin: 0; }
.bsm-count { font-size: 15px; color: var(--bsm-muted); text-align: center; line-height: 1.2; }
.bsm-count b { display: block; font-size: 44px; font-weight: 800; color: var(--bsm-forest); line-height: 1; }
.bsm-head-btn { max-width: 1240px; margin: 0 auto 48px; }

.bsm-stage {
	max-width: 1240px; margin: 0 auto 64px; display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 28px; align-items: stretch;
}

/* spotlight */
.bsm-spot {
	position: relative; border-radius: var(--bsm-radius); overflow: hidden; min-height: 480px;
	background: #203018; color: #fff; isolation: isolate; box-shadow: 0 30px 60px -30px rgba(31, 51, 18, .45);
}
/* The server's WebP plugin wraps <img> in <picture> (and moves the class to it).
   display:contents lets the rules below apply to the <img> itself either way. */
.bsm-spot picture, .bsm-thumb picture, .bsm-tile picture { display: contents; }
.bsm-home .bsm-spot img {
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2;
	transition: opacity .35s ease, transform 6s ease;
}
.bsm-spot:hover img { transform: scale(1.04); }
.bsm-spot::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgba(12, 20, 8, .92) 0%, rgba(12, 20, 8, .55) 38%, rgba(12, 20, 8, 0) 68%);
}
.bsm-spot-body {
	position: absolute; inset: 0; padding: 32px 36px; display: flex;
	align-items: flex-end; justify-content: space-between; gap: 24px;
}
.bsm-spot-text { position: relative; z-index: 1; pointer-events: none; }
.bsm-spot-title {
	margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 800;
	max-width: 22ch; text-wrap: balance; color: #fff;
}
.bsm-spot-sub { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: #e4eadc; max-width: 44ch; }
.bsm-spot-sub[hidden] { display: none; }
.bsm-spot-play {
	display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none;
	cursor: pointer; font-weight: 700; font-size: 15px; color: #fff; padding: 0;
}
.bsm-spot-play::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole spotlight is clickable */
.bsm-spot-play > * { position: relative; z-index: 1; }
.bsm-spot-play .bsm-playdisc {
	width: 84px; height: 84px; box-shadow: 0 0 0 10px rgba(192, 234, 106, .22);
	transition: transform .2s ease, box-shadow .2s ease;
}
.bsm-spot-play .bsm-playdisc svg { width: 30px; height: 30px; }
.bsm-spot-play:hover .bsm-playdisc { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(192, 234, 106, .18); }
.bsm-spot:has(.bsm-spot-play:focus-visible) { outline: 3px solid var(--bsm-green); outline-offset: 4px; }
.bsm-spot-play:focus-visible { outline: 3px solid var(--bsm-lime); outline-offset: 4px; }
.bsm-spot:has(.bsm-spot-play:focus-visible) .bsm-spot-play:focus-visible { outline: none; }

/* playlist */
.bsm-list {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--bsm-radius);
	box-shadow: 0 0 0 1px var(--bsm-line); padding: 10px;
}
.bsm-list-h {
	display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 14px;
	border-bottom: 1px solid var(--bsm-line); margin-bottom: 6px; font-size: 15px; color: var(--bsm-muted);
}
.bsm-list-h b { color: var(--bsm-forest); font-size: 17px; }
.bsm-list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bsm-row {
	width: 100%; display: grid; grid-template-columns: auto 96px 1fr; align-items: center; gap: 14px;
	padding: 12px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
	text-align: start; transition: background .2s; color: var(--bsm-forest);
}
.bsm-row:hover { background: var(--bsm-paper); }
.bsm-row[aria-current="true"] { background: var(--bsm-paper-2); }
.bsm-row:focus-visible { outline: 3px solid var(--bsm-green); outline-offset: 1px; }
.bsm-num {
	font-size: 30px; font-weight: 800; color: rgba(31, 51, 18, .22); width: 1.6em; text-align: center;
	font-variant-numeric: tabular-nums; line-height: 1;
}
.bsm-row[aria-current="true"] .bsm-num { color: var(--bsm-green); }
.bsm-thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; position: relative; background: var(--bsm-paper-2); }
.bsm-home .bsm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bsm-row-t { font-size: 17px; font-weight: 700; line-height: 1.3; }
.bsm-row-s { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--bsm-muted); }
.bsm-row[aria-current="true"] .bsm-row-s { color: var(--bsm-green-text); font-weight: 700; }
.bsm-list-foot { padding: 14px 14px 8px; border-top: 1px solid var(--bsm-line); margin-top: 6px; }
.bsm-list-foot .bsm-btn { width: 100%; justify-content: center; }

@media (max-width: 1023px) {
	.bsm-home { padding: 56px 0 0; }
	.bsm-head { padding: 0 20px; margin-bottom: 28px; }
	.bsm-head-btn { padding: 0 20px; }
	.bsm-count { display: flex; align-items: baseline; gap: 8px; font-size: 16px; }
	.bsm-count b { display: inline; font-size: 30px; }
	.bsm-stage { grid-template-columns: 1fr; gap: 16px; padding: 0 16px; margin-bottom: 44px; }
	/* iOS Safari can drop aspect-ratio on a stretched grid item (and old iOS has none), and every child
	   here is absolutely positioned, so the box would collapse to 0. min-height from the width is the fallback. */
	.bsm-spot { align-self: start; aspect-ratio: 4 / 5; min-height: calc((100vw - 32px) * 1.25); }
	.bsm-spot-body { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 22px 22px 24px; gap: 18px; }
	.bsm-spot-play { flex-direction: row; gap: 12px; }
	.bsm-spot-play .bsm-playdisc { width: 60px; height: 60px; box-shadow: 0 0 0 7px rgba(192, 234, 106, .22); }
	.bsm-spot-play .bsm-playdisc svg { width: 22px; height: 22px; }
	.bsm-spot-sub { font-size: 15.5px; }
	.bsm-row { grid-template-columns: auto 80px 1fr; gap: 12px; padding: 10px; }
	.bsm-thumb { width: 80px; }
	.bsm-num { font-size: 24px; }
	.bsm-ticker span { font-size: 18px; }
}
@media (max-width: 1023px) and (min-width: 640px) { .bsm-spot { aspect-ratio: 16 / 10; min-height: calc((100vw - 32px) * .625); } }

/* ==========================================================================
   B) Inner page: hero + facts + ticker + image-tile grid
   ========================================================================== */
.bsm-page { display: block; background: var(--bsm-paper); }
.bsm-hero { padding: 40px 24px 40px; background: var(--bsm-paper); }
.bsm-hero-in { max-width: 1240px; margin: 0 auto; }
.bsm-crumbs { margin: 0 0 28px; font-size: 14px; color: var(--bsm-muted); }
.bsm-crumbs a { color: var(--bsm-forest); }
.bsm-crumbs .page-title { display: none; } /* the breadcrumbs partial prints its own <h1>; the hero has the page's single h1 */
.bsm-crumbs p { margin: 0; }
.bsm-hero-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.bsm-hero h1 {
	margin: 14px 0 0; font-size: clamp(48px, 7vw, 104px); line-height: .92; font-weight: 800;
	letter-spacing: -1.5px; color: var(--bsm-forest);
}
.bsm-hero-sub { margin: 18px 0 0; font-size: 20px; line-height: 1.5; color: var(--bsm-muted); max-width: 40ch; }
.bsm-facts { display: flex; background: #fff; border-radius: var(--bsm-radius); box-shadow: 0 0 0 1px var(--bsm-line); }
.bsm-facts div { padding: 18px 26px; text-align: center; font-size: 14px; color: var(--bsm-muted); }
.bsm-facts div + div { border-inline-start: 1px solid var(--bsm-line); }
.bsm-facts b { display: block; font-size: 34px; font-weight: 800; color: var(--bsm-forest); line-height: 1.05; }

.bsm-main { padding: 48px 24px 80px; background: var(--bsm-paper); }
.bsm-grid {
	list-style: none; margin: 0 auto; padding: 0; max-width: 1240px;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.bsm-grid > li { display: flex; min-width: 0; margin: 0; }
.bsm-grid > li.is-lead { grid-column: span 2; grid-row: span 2; }
@media (min-width: 1101px) { .bsm-grid > li.is-wide { grid-column: span 2; } }

.bsm-tile {
	position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px;
	border-radius: var(--bsm-radius); overflow: hidden; color: #fff; background: #203018; isolation: isolate;
	box-shadow: 0 18px 40px -24px rgba(31, 51, 18, .5);
}
.bsm-page .bsm-tile img {
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2;
	transition: transform .5s ease;
}
.bsm-tile::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgba(12, 20, 8, .9) 0%, rgba(12, 20, 8, .45) 45%, rgba(12, 20, 8, 0) 72%);
}
.bsm-tile:hover img { transform: scale(1.05); }
.bsm-ep {
	position: absolute; inset-block-start: 14px; inset-inline-start: 14px; padding: 5px 11px; border-radius: 999px;
	background: rgba(250, 248, 242, .92); color: var(--bsm-forest); font-size: 13px; font-weight: 800; line-height: 1.2;
}
.bsm-tile-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px; }
.bsm-tile h3 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; text-wrap: balance; color: #fff; }
.bsm-tile .bsm-playdisc { width: 44px; height: 44px; transition: transform .2s ease; }
.bsm-tile .bsm-playdisc svg { width: 16px; height: 16px; }
.bsm-tile:hover .bsm-playdisc { transform: scale(1.1); }
.bsm-tile-btn { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; z-index: 1; border-radius: inherit; padding: 0; }
.bsm-tile:has(.bsm-tile-btn:focus-visible) { outline: 3px solid var(--bsm-green); outline-offset: 3px; }
.bsm-tile-btn:focus-visible { outline: 3px solid var(--bsm-lime); outline-offset: -3px; }
.bsm-tile:has(.bsm-tile-btn:focus-visible) .bsm-tile-btn:focus-visible { outline: none; }
.is-lead .bsm-tile { min-height: 624px; }
.is-lead .bsm-tile h3 { font-size: 34px; max-width: 18ch; }
.is-lead .bsm-tile-body { padding: 30px; }
.is-lead .bsm-tile .bsm-playdisc { width: 72px; height: 72px; box-shadow: 0 0 0 9px rgba(192, 234, 106, .22); }
.is-lead .bsm-tile .bsm-playdisc svg { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) {
	.bsm-page .bsm-tile img, .bsm-home .bsm-spot img { transition: none; }
	.bsm-tile:hover img, .bsm-spot:hover img { transform: none; }
}

@media (max-width: 1100px) { .bsm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
	.bsm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.is-lead .bsm-tile { min-height: 420px; }
	.bsm-hero-row { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
	.bsm-hero { padding: 24px 20px 28px; }
	.bsm-crumbs { margin-bottom: 20px; }
	.bsm-hero-sub { font-size: 17px; }
	.bsm-facts div { flex: 1; padding: 14px 10px; }
	.bsm-facts b { font-size: 26px; }
	.bsm-main { padding: 28px 16px 56px; }
	.bsm-grid { grid-template-columns: 1fr; gap: 16px; }
	.bsm-grid > li.is-lead { grid-column: auto; grid-row: auto; }
	/* same iOS fallback as the spotlight: height from the width, not only aspect-ratio */
	.bsm-tile { aspect-ratio: 4 / 3; min-height: calc((100vw - 32px) * .75); }
	.is-lead .bsm-tile { aspect-ratio: 4 / 5; min-height: calc((100vw - 32px) * 1.25); }
	.is-lead .bsm-tile h3 { font-size: 26px; }
	.is-lead .bsm-tile-body { padding: 22px; }
	.is-lead .bsm-tile .bsm-playdisc { width: 56px; height: 56px; }
}

/* pagination: WordPress paginate_links() output (plain), 44px targets */
.bsm-pager {
	max-width: 1240px; margin: 52px auto 0; display: flex; flex-wrap: wrap; align-items: center;
	justify-content: center; gap: 8px;
}
.bsm-pager .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; font-size: 16px; text-decoration: none; color: var(--bsm-forest); background: #fff;
	box-shadow: 0 0 0 1px var(--bsm-line);
}
.bsm-pager a.page-numbers:hover { box-shadow: 0 0 0 1px var(--bsm-forest); }
.bsm-pager .page-numbers.current { background: var(--bsm-forest); color: #fff; box-shadow: none; font-weight: 700; }
.bsm-pager .page-numbers.dots { background: transparent; box-shadow: none; }
.bsm-pager a.page-numbers:focus-visible { outline: 3px solid var(--bsm-green); outline-offset: 2px; }

/* ==========================================================================
   Video dialog (native <dialog>)
   ========================================================================== */
dialog.bsm-vd {
	padding: 0; border: 0; border-radius: 18px; background: var(--bsm-forest); color: #fff;
	width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); overflow: hidden;
}
dialog.bsm-vd::backdrop { background: rgba(12, 20, 8, .84); }
.bsm-vd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 14px 12px; }
.bsm-vd-head h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; color: #fff; }
.bsm-vd-close {
	flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
	background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.bsm-vd-close:focus-visible { outline: 3px solid var(--bsm-lime); outline-offset: 2px; }
.bsm-vd-media { aspect-ratio: 16 / 9; background: #000; }
.bsm-vd-media video, .bsm-vd-media iframe { width: 100%; height: 100%; display: block; border: 0; }
