@layer pages {
	/* ---- Three columns: pictures, identity, buy box ---- */
	.b24-pd { padding-block-start: 12px; }
	.b24-pd__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(300px, 3fr); gap: 40px; align-items: start; }
	/* The buy box is taller than pictures and facts: the tracklist and the sections after it move up beside it. */
	@media (min-width: 1181px) {
		.b24-pd__grid { grid-template-rows: auto 1fr; }
		/* Only beside the content does the buy box stay in view; stacked, it would cover what follows. */
		.b24-buy { grid-column: 3; grid-row: 1 / span 2; position: sticky; inset-block-start: calc(var(--b24-header-h) + 24px); }
		.b24-pd__more { grid-column: 1 / 3; grid-row: 2; }
		.b24-pd__more > :first-child { margin-block-start: 0; padding-block-start: 0; }
	}
	@media (max-width: 1180px) {
		.b24-pd__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
		.b24-buy { grid-column: 1 / -1; }
		/* Below the grid as before: take back the row gap. */
		.b24-pd__more { grid-column: 1 / -1; margin-block-start: -40px; }
	}
	@media (max-width: 900px) {
		.b24-pd__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
		.b24-pd .b24-pd__id { display: contents; }
		.b24-pd__id > * { order: 2; margin-block-end: 12px; }
		.b24-gal { order: 1; margin-block-end: 24px; }
		.b24-buy { order: 3; margin-block: 12px 20px; }
		.b24-pd__id > .b24-kv, .b24-pd__id > .b24-internal { order: 4; }
		.b24-pd__more { order: 5; margin-block-start: 0; }
	}

	/* ---- Stage and thumbnails ---- */
	.b24-stage {
		position: relative; overflow: hidden; aspect-ratio: 1;
		display: flex; align-items: center; justify-content: center;
		border-radius: var(--b24-r-tile); background: var(--b24-stage);
	}
	.b24-stage__disc { position: absolute; inline-size: 64%; inset-inline-end: 2%; border-radius: 50%; box-shadow: 0 20px 50px rgb(0 0 0 / .5); }
	.b24-stage__open { position: relative; display: block; inline-size: 70%; translate: -12% 0; border-radius: 4px; cursor: zoom-in; }
	.b24-stage__cover { position: relative; inline-size: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: var(--b24-shadow-cover); }
	.b24-stage.is-photo .b24-stage__disc { display: none; }
	.b24-stage.is-photo .b24-stage__open { inline-size: 82%; translate: none; }
	.b24-stage__cover--none { inline-size: 70%; translate: -12% 0; }
	.b24-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 14px; padding: 0; list-style: none; }
	.b24-thumb { inline-size: 86px; block-size: 86px; overflow: hidden; border: 2px solid var(--b24-line); border-radius: 12px; background: var(--b24-s1); }
	.b24-thumb:hover { border-color: var(--b24-ctl); }
	.b24-thumb[aria-pressed="true"] { border-color: var(--b24-accent-ink); }
	.b24-thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; }
	.b24-gal__note { margin-block-start: 12px; font-size: 14px; line-height: 1.45; color: var(--b24-mut); }

	/* ---- Identity ---- */
	.b24-pd__id { display: flex; flex-direction: column; gap: 14px; }
	.b24-pd__id h1 { font-size: clamp(34px, 3.2vw, 48px); line-height: 1.02; letter-spacing: -.025em; }
	.b24-pd__by a, .b24-pd__by { font-size: 20px; color: var(--b24-mut); text-underline-offset: 4px; }
	.b24-pd__by a:hover { color: var(--b24-ink); }

	.b24-kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
	.b24-kv dt, .b24-kv dd { padding-block: 10px; border-block-end: 1px solid var(--b24-line); font-size: 15px; }
	.b24-kv dt { padding-inline-end: 12px; color: var(--b24-mut); }
	.b24-kv dd { font: 14px/1.6 var(--b24-font-mono); color: var(--b24-ink); overflow-wrap: anywhere; }
	.b24-kv dd a { font-family: var(--b24-font-sans); font-size: 15px; font-weight: 600; color: var(--b24-accent-ink); }
	.b24-kv--wide { max-inline-size: 760px; }
	.b24-internal { font-size: 14px; color: var(--b24-mut); }
	.b24-internal summary { cursor: pointer; }

	/* ---- Buy box ---- */
	.b24-buy {
		display: flex; flex-direction: column; gap: 16px; padding: 22px;
		border: 1px solid var(--b24-line); border-radius: var(--b24-r-tile); background: var(--b24-s1);
	}
	.b24-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
	.b24-price--xl { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
	.b24-tax--wide { white-space: normal; font-size: 14px; }
	/* Sold: a clear way to a search request instead of the price. */
	.b24-buy__sold {
		display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px;
		background: color-mix(in srgb, var(--b24-accent) 14%, var(--b24-s1)); border: 1px solid color-mix(in srgb, var(--b24-accent) 45%, transparent);
	}
	.b24-buy__sold > * { margin: 0; }
	.b24-buy__soldtag { font: 600 13px var(--b24-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--b24-accent-ink); }
	.b24-buy__sold strong { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; color: var(--b24-ink); }
	.b24-buy__sold p:last-child { color: var(--b24-tx2); font-size: 15px; }
	.b24-buy__note { color: var(--b24-mut); font-size: 14px; }
	.b24-buy__act .b24-btn[data-save-search] { flex: 1; padding-inline: 16px; white-space: nowrap; font-size: 16px; }
	.b24-buy__note a { color: var(--b24-accent-ink); font-weight: 600; text-underline-offset: 3px; }

	.b24-buy__grades { display: flex; flex-direction: column; gap: 14px; padding-block: 16px; border-block: 1px solid var(--b24-line); }
	.b24-grade { display: flex; flex-direction: column; gap: 6px; }
	.b24-grade__k { font-size: 15px; color: var(--b24-mut); }
	.b24-grade__scale { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
	.b24-grade__scale span { display: flex; flex-direction: column; align-items: center; gap: 7px; font: 500 14px var(--b24-font-mono); letter-spacing: -.04em; color: var(--b24-mut); }
	.b24-grade__scale span::before { content: ""; align-self: stretch; block-size: 8px; background: var(--b24-hov); }
	.b24-grade__scale span:first-child::before { border-radius: 4px 0 0 4px; }
	.b24-grade__scale span:last-child::before { border-radius: 0 4px 4px 0; }
	.b24-grade__scale span.is-fill::before { background: var(--b24-accent); }
	:root[data-theme="light"] .b24-grade__scale span.is-fill::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b24-ink) 55%, transparent); }
	.b24-grade__scale span.is-on { color: var(--b24-ink); font-weight: 700; }
	.b24-grade__d { font-size: 14px; color: var(--b24-tx2); }
	/* A cover without a grade (no cover, generic sleeve, not graded): the empty scale, the state in words. */
	.b24-grade--none .b24-grade__d { color: var(--b24-ink); font-weight: 600; }
	.b24-grade__d a { color: inherit; text-decoration: underline; text-decoration-color: var(--b24-ctl); text-underline-offset: 3px; }
	.b24-grade__d a:hover { color: var(--b24-ink); text-decoration-color: currentColor; }
	.b24-grade__note { font-size: 14px; color: var(--b24-ink); overflow-wrap: anywhere; }
	.b24-grade__note.is-long { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.b24-grade__more { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--b24-accent-ink); }
	.b24-note-abbr { color: inherit; text-underline-offset: 3px; }
	.b24-note-abbr abbr { text-decoration: none; cursor: help; }
	.b24-note-x { color: var(--b24-tx2); }

	/* GPSR: the product safety note below the grades. */
	.b24-gpsr { display: flex; flex-direction: column; gap: 4px; padding-block-end: 16px; border-block-end: 1px solid var(--b24-line); }
	.b24-gpsr__k { font-size: 15px; color: var(--b24-mut); }
	.b24-gpsr p { font-size: 13px; line-height: 1.5; color: var(--b24-tx2); }
	.b24-buy__act { display: flex; gap: 10px; }
	.b24-btn--big { flex: 1; min-block-size: 56px; font-size: 17px; }
	.b24-bm--big { inline-size: 56px; block-size: 56px; }
	.b24-btn.is-in-cart { background: transparent; color: var(--b24-ink); box-shadow: inset 0 0 0 1px var(--b24-ctl); }
	.b24-fx { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; font-size: 14px; color: var(--b24-tx2); }
	.b24-fx li { display: flex; gap: 12px; align-items: flex-start; }
	.b24-fx .b24r-icon { color: var(--b24-accent-ink); }
	.b24-fx a { color: var(--b24-ink); font-weight: 600; }
	.b24-legal--product { font-size: 14px; line-height: 1.45; color: var(--b24-tx2); }
	.b24-legal--product strong { display: block; color: var(--b24-ink); }
	.b24-glossary summary { cursor: pointer; padding-block: 4px; font-size: 15px; font-weight: 700; }
	.b24-glossary summary:hover { color: var(--b24-accent-ink); }
	.b24-glossary dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); margin-block: 8px; }
	.b24-glossary dt, .b24-glossary dd { padding-block: 8px; border-block-end: 1px solid var(--b24-line); font-size: 14px; }
	.b24-glossary dt { font: 600 14px var(--b24-font-mono); }
	.b24-glossary dd { color: var(--b24-tx2); }
	.b24-glossary a { font-size: 14px; font-weight: 600; color: var(--b24-accent-ink); }

	/* ---- Jump links and sections ---- */
	/* The jump links glide to their section; with reduced motion they jump at once. */
	@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
	.b24-jump {
		display: flex; flex-wrap: wrap; gap: 8px; inline-size: max-content; max-inline-size: 100%; margin-block-start: 56px; padding: 8px;
		border: 1px solid var(--b24-line); border-radius: var(--b24-r-pill); background: var(--b24-s1);
	}
	.b24-jump a { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 18px; border-radius: var(--b24-r-pill); font-size: 15px; font-weight: 600; text-decoration: none; }
	.b24-jump a:hover { background: var(--b24-s2); }
	@media (max-width: 900px) { .b24-jump { border-radius: 16px; inline-size: auto; } }
	@media (max-width: 720px) { .b24-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .b24-jump a { white-space: nowrap; } }

	.b24-psec { padding-block-start: 64px; scroll-margin-block-start: calc(var(--b24-header-h) + 1rem); }
	.b24-psec__h { margin-block-end: 18px; font-size: 32px; letter-spacing: -.02em; line-height: 1.1; }
	.b24-psec__sub { margin-block: -8px 22px; color: var(--b24-mut); }
	.b24-psec__h3 { margin-block: 28px 8px; font-size: 18px; letter-spacing: -.01em; }
	@media (max-width: 720px) { .b24-psec__h { font-size: 26px; } }

	.b24-side { margin-block: 18px 6px; font-size: 16px; }
	.b24-trk { max-inline-size: 680px; padding: 0; list-style: none; }
	.b24-trk li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--b24-line); }
	.b24-trk__n, .b24-trk__d { font: 500 14px var(--b24-font-mono); color: var(--b24-mut); }
	.b24-trk-text { max-inline-size: 680px; white-space: pre-wrap; font: 14px/1.6 var(--b24-font-mono); }

	.b24-related .b24-grid { padding-block-start: 0; }

	/* ---- Quick-buy bar ---- */
	.b24-bbar {
		position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 45;
		background: var(--b24-header-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
		border-block-start: 1px solid var(--b24-line); box-shadow: 0 -10px 30px light-dark(rgb(40 34 20 / .1), rgb(0 0 0 / .25));
		translate: 0 100%; transition: translate .25s var(--b24-ease);
	}
	.b24-bbar.is-visible { translate: 0 0; }
	/* At the end of the page the bar is still there: the footer's legal row keeps room for it (about 70 px). */
	.b24-footer__legal { padding-block-end: 112px; }
	@media (max-width: 720px) { .b24-footer__legal { padding-block-end: 100px; } }
	.b24-bbar__in { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding-block: 10px; }
	.b24-bbar img, .b24-bbar .b24-cover { inline-size: 48px; block-size: 48px; border-radius: 4px; object-fit: cover; }
	.b24-bbar__t strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.b24-bbar__t span { display: block; font-size: 14px; color: var(--b24-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.b24-bbar__price { display: flex; align-items: center; gap: 10px; }
	.b24-bbar__price .b24-price { font-size: 24px; font-weight: 800; }
	@media (max-width: 720px) { .b24-bbar__in { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; } .b24-bbar__price { display: none; } }

	/* ---- Lightbox ---- */
	.b24-lightbox { inline-size: min(1200px, 100vw - 16px); background: transparent; box-shadow: none; overflow: visible; }
	.b24-lightbox[open] { display: grid; place-items: center; }
	.b24-lightbox__img { max-inline-size: 100%; max-block-size: calc(100dvh - 32px); inline-size: auto; border-radius: 8px; box-shadow: var(--b24-shadow-cover); }
	.b24-lightbox__close { position: absolute; inset-block-start: 0; inset-inline-end: 0; z-index: 2; background: rgb(20 20 22 / .8); color: #f2efe8; }
	.b24-lightbox__nav { position: absolute; inset-block-start: 50%; translate: 0 -50%; background: rgb(20 20 22 / .8); color: #f2efe8; }
	.b24-lightbox__nav--prev { inset-inline-start: 0; rotate: 180deg; }
	.b24-lightbox__nav--next { inset-inline-end: 0; }
}
