/*
 * The yellow box of the home hero, shared with the page hero: a static photo
 * behind the box instead of the drifting cover wall.
 * Not in a layer, like home.css: core's block styles are unlayered too.
 */
.b24-hbox {
	inline-size: min(640px, 100%);
	display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 4px; align-items: end;
	padding: 24px 28px; border-radius: var(--b24-r-panel);
	background: var(--b24-accent); color: var(--b24-on-accent);
	box-shadow: 0 24px 60px rgb(0 0 0 / .45);
}
.b24-hbox :focus-visible { outline-color: var(--b24-on-accent); }
.b24-hbox__num { grid-column: 1 / -1; margin: 0 0 6px; font-size: clamp(56px, 5.6vw, 84px); font-weight: 800; letter-spacing: -.045em; line-height: .85; }
.b24-hbox__nums { display: grid; font-variant-numeric: tabular-nums; }
.b24-hbox__nums > span { grid-area: 1 / 1; white-space: nowrap; }
.b24-hbox__ghost { visibility: hidden; }
.b24-hbox h1 { grid-column: 1; font-size: 22px; letter-spacing: -.015em; line-height: 1.15; }
.b24-hbox__text { grid-column: 1; margin: 0; font-size: 15px; line-height: 1.45; }
.b24-hbox__cta { grid-column: 2; grid-row: 2 / 4; align-self: end; min-block-size: 52px; }
.b24-hbox__kick { grid-column: 1 / -1; margin: 0 0 8px; font: 600 13px var(--b24-font-mono); letter-spacing: .12em; text-transform: uppercase; }
.b24-hbox--page { grid-template-columns: minmax(0, 1fr); align-items: start; }
.b24-hbox--page h1 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.035em; line-height: 1; }
.b24-hbox--page .b24-hbox__text { margin-block-start: 10px; font-size: 17px; max-inline-size: 56ch; }
/* The introduction of a genre or label page (HTML from the editor) in the box. */
.b24-hbox__prose > * { margin: 0 0 .6em; }
.b24-hbox__prose > :last-child { margin-block-end: 0; }
.b24-hbox__prose a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Page hero ---- */
.b24-phero {
	position: relative; isolation: isolate; display: flex; overflow: hidden;
	min-block-size: min(46vh, 460px); background: var(--b24-s2);
}
.b24-phero__img { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center 40%; }
.b24-phero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, color-mix(in srgb, var(--b24-bg) 55%, transparent), color-mix(in srgb, var(--b24-bg) 10%, transparent) 70%);
}
.b24-phero__in { display: flex; align-items: flex-end; inline-size: 100%; padding-block: 56px; }

@media (max-width: 720px) {
	.b24-hbox { inline-size: 100%; grid-template-columns: minmax(0, 1fr); padding: 22px; }
	.b24-hbox__num { font-size: 52px; }
	.b24-hbox__cta { grid-column: 1; grid-row: auto; inline-size: 100%; margin-block-start: 14px; }
	.b24-phero { min-block-size: 300px; }
	.b24-phero__in { padding-block: 120px 20px; }
	/* Room under the box, so the note does not touch it. */
	:is(.b24-hero, .b24-phero) > .b24-ai-note { inset-block-end: 8px; }
	:is(.b24-hero, .b24-phero):has(> .b24-ai-note) :is(.b24-hero__in, .b24-phero__in) { padding-block-end: 36px; }
}
