/* Library V3 — the public route theatre.
   The Homepage V3 palette and chrome are shared; the composition is Library-specific. */

/* Discovery and catalogue share the same paper, type and route primitive. */
.library-v3-search-region { margin: 36px 24px 28px; }
.library-v3-page .library-discovery-primary > .library-discovery-search {
	padding: 0 20px;
	color: var(--home-v3-forest);
	background: var(--home-v3-paper);
}
.library-v3-page .library-discovery-primary .library-discovery-search input {
	min-height: 32px;
	color: var(--home-v3-forest);
	font-size: 24px;
	caret-color: var(--home-v3-forest);
}
.library-v3-page .library-discovery-primary .library-discovery-search input::placeholder { color: var(--home-v3-forest); opacity: 1; }
.library-v3-page .library-discovery-primary .library-discovery-search:focus-within { outline: 3px solid var(--home-v3-acid); outline-offset: -3px; }
.library-v3-browse-link { color: var(--home-v3-forest); font: 14px/1.5 var(--home-v3-mono); text-underline-offset: 6px; padding: 12px 0; }
.library-v3-editorial-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
/* Use the header GET primitive; only reset native button chrome and invert selection. */
.library-v3-page button.home-v3-get { border: 0; border-radius: 0; line-height: inherit; cursor: pointer; }
.library-v3-editorial-tabs .home-v3-get[aria-pressed="true"] { background: var(--home-v3-forest); box-shadow: -3px 2px 0 var(--home-v3-acid); color: var(--home-v3-acid); }
.library-v3-page button.home-v3-get:focus-visible { outline-color: var(--home-v3-forest); }
.library-v3-page button.home-v3-get:disabled { cursor: wait; opacity: .6; }
.library-v3-all { margin: 48px 24px 0; padding-top: 0; scroll-margin-top: 24px; }
.library-v3-all-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 16px; }
.library-v3-all-heading .library-v3-eyebrow { margin: 0; font: 400 12px/1.5 var(--home-v3-mono); letter-spacing: .08em; text-transform: uppercase; }
.library-v3-result-count { margin: 4px 0 0; color: var(--home-v3-muted); font: 12px/1.5 var(--home-v3-mono); letter-spacing: .08em; text-transform: uppercase; }
.library-v3-eyebrow.visually-hidden + .library-v3-result-count { margin-top: 0; }
.library-v3-all-heading .library-v3-browse-link { flex-shrink: 0; }
.library-v3-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.library-v3-directory-route { display: grid; grid-template-columns: clamp(140px, 13vw, 210px) minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px 0; color: var(--home-v3-forest); border-top: 1px solid var(--home-v3-keyline); text-decoration: none; }
.library-v3-directory-route .home-v3-route-trace { width: 100%; height: 148px; margin: 0; justify-self: center; align-self: center; }
.library-v3-directory-route h3 { margin: 0 0 9px; font: 400 clamp(24px, 2.2vw, 34px)/1.1 var(--home-v3-serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.library-v3-directory-route:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.library-v3-directory-route .library-v3-route-meta { font-size: 12px; line-height: 1.65; text-align: left; }
.library-v3-directory-route .library-v3-route-meta > span { white-space: normal; overflow: visible; text-overflow: clip; }
.library-v3-directory-route > span { min-width: 0; }
.library-v3-page.is-library-searching .library-v3-all { margin-top: 28px; }
@media (max-width: 820px) {
	.library-v3-directory { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
	.library-v3-all { margin: 56px 16px 0; }
	.library-v3-directory-route { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
	.library-v3-directory-route .home-v3-route-trace { height: 110px; }
	.library-v3-all-heading { gap: 12px; }
	.library-v3-all-heading .library-v3-browse-link { font-size: 11px; }
}

.library-v3-page {
	--home-v3-paper: #f3f0e7;
	--home-v3-paper-bright: #fffdf8;
	--home-v3-forest: #17372d;
	--home-v3-forest-deep: #07130f;
	--home-v3-acid: #d7f05a;
	--home-v3-muted: #6c7582;
	--home-v3-keyline: rgba(23, 55, 45, 0.18);
	--home-v3-serif: "Lora Variable", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--home-v3-sans: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--home-v3-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
	min-width: 320px;
	overflow-x: clip;
	overflow-y: visible;
	background:
		radial-gradient(ellipse at 8% 23%, transparent 0 25%, rgba(23, 55, 45, 0.035) 25.1% 25.3%, transparent 25.4% 34%, rgba(23, 55, 45, 0.025) 34.1% 34.3%, transparent 34.4%),
		radial-gradient(ellipse at 92% 69%, transparent 0 30%, rgba(23, 55, 45, 0.03) 30.1% 30.3%, transparent 30.4% 39%, rgba(23, 55, 45, 0.022) 39.1% 39.3%, transparent 39.4%),
		var(--home-v3-paper);
	color: var(--home-v3-forest);
	font-family: var(--home-v3-sans);
	font-weight: 400;
}

.library-v3-page *,
.library-v3-page *::before,
.library-v3-page *::after {
	box-sizing: border-box;
}

.library-v3-page [hidden] {
	display: none !important;
}

.library-v3-page main,
.library-v3-page .library-v3-catalogue,
.library-v3-page .library-v3-catalogue-body,
.library-v3-page .library-v3-theatre {
	overflow-x: clip;
	overflow-y: visible;
}

.library-v3-page a:focus-visible,
.library-v3-page button:focus-visible,
.library-v3-page input:focus-visible,
.library-v3-page select:focus-visible {
	outline: 3px solid var(--home-v3-acid);
	outline-offset: 4px;
}

.library-v3-header {
	position: relative;
	z-index: 20;
}

.library-v3-intro {
	position: relative;
	padding: 20px 24px 0;
}

.library-v3-intro h1 {
	position: relative;
	z-index: 2;
	max-width: none;
	margin: 0;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-serif);
	font-size: clamp(61px, 9vw, 126px);
	font-weight: 400;
	letter-spacing: -0.065em;
	line-height: 0.82;
}

.library-v3-intro > p {
	position: absolute;
	z-index: 2;
	right: 24px;
	top: 30px;
	width: 25ch;
	margin: 0;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	line-height: 1.55;
	text-transform: uppercase;
}

.library-v3-intro-line {
	position: absolute;
	right: -2%;
	top: 20px;
	width: 72%;
	height: 64px;
	overflow: visible;
}

.library-v3-intro-line path {
	fill: none;
	stroke: var(--home-v3-acid);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
}

.library-v3-intro-line .library-v3-line-glow {
	opacity: 0.2;
	stroke-width: 6;
}

.library-v3-spotlight {
	position: relative;
	padding: 0 0 8px;
}

.library-v3-reel-shell {
	--library-v3-reel-cut: polygon(
		0 2.8%, 14% 1.4%, 31% 3%, 49% 1.7%, 67% 3.1%, 84% 1.5%, 100% 2.6%,
		100% 97.3%, 84% 98.6%, 66% 96.9%, 48% 98.4%, 30% 97.1%, 13% 98.5%, 0 97.2%
	);
	position: relative;
	padding: 11px 0;
}

.library-v3-reel-shell::before {
	position: absolute;
	z-index: 0;
	inset: 0 -1px;
	background: var(--home-v3-paper-bright);
	clip-path: var(--library-v3-reel-cut);
	content: "";
}

.library-v3-reel-tear-edge {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.library-v3-reel-tear-shadow,
.library-v3-reel-tear-fibre {
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.library-v3-reel-tear-shadow {
	fill: #08130f;
	stroke: #08130f;
	stroke-width: 16px;
	opacity: 0.34;
}

.library-v3-reel-tear-fibre {
	fill: var(--home-v3-paper-bright);
	stroke: var(--home-v3-paper-bright);
	stroke-width: 12px;
	opacity: 0.88;
}

.library-v3-reel-tear-narrow {
	display: none;
}

.library-v3-reel {
	position: relative;
	z-index: 2;
	/* The band's height follows its items: a Field Plate card, or the trace item. */
	height: auto;
	overflow-x: auto;
	overflow-y: hidden;
	background:
		linear-gradient(105deg, rgba(7, 19, 15, 0.86), rgba(7, 19, 15, 0.32) 52%, rgba(7, 19, 15, 0.82)),
		url("/beacen-library-terrain-v3.jpg") center 50% / cover no-repeat,
		var(--home-v3-forest-deep);
	clip-path: var(--library-v3-reel-cut);
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-color: var(--home-v3-acid) rgba(255, 255, 255, 0.08);
	scrollbar-width: thin;
}

.library-v3-reel-track {
	position: relative;
	z-index: 2;
	display: flex;
	width: max-content;
	min-width: 100%;
	align-items: center;
	padding: 18px 8vw;
}

/* Before the strip loads, hold its eventual height so it does not jump: the
   trace band's by default, and a card row's only where the server says Field
   Plate cards can appear (WEATHER_ASSETS_ENABLED; see the card reel below). */
.library-v3-reel-track:empty {
	min-height: 206px;
}

.library-v3-spotlight-route {
	position: relative;
	display: grid;
	width: clamp(390px, 36vw, 520px);
	min-height: 170px;
	flex: 0 0 auto;
	align-self: stretch;
	grid-template-columns: minmax(155px, 1fr) minmax(170px, .9fr);
	align-items: center;
	padding: 10px 26px;
	border-left: 1px solid rgba(255, 253, 248, 0.2);
	color: var(--home-v3-paper-bright);
	scroll-snap-align: start;
	text-decoration: none;
}

.library-v3-spotlight-route:last-child {
	border-right: 1px solid rgba(255, 253, 248, 0.2);
}

.library-v3-spotlight-map {
	display: block;
	width: min(100%, 250px);
	height: 104px;
	align-self: center;
	overflow: visible;
}

.library-v3-spotlight-route:nth-child(3n + 2) .library-v3-spotlight-map {
	justify-self: end;
	transform: rotate(3deg);
}

.library-v3-spotlight-route:nth-child(3n) .library-v3-spotlight-map {
	justify-self: center;
	transform: rotate(-4deg) translateY(5px);
}

/* Spotlight card reel (WEATHER_ASSETS_ENABLED; the server marks the strip with
   data-library-spotlight-cards). The band goes: no mood image, no dark fill, no
   section torn edges. The reel is the cards, on the page cream, 16 px apart,
   each snapping into place. A composite's own torn edge is the only edge: no
   hairline, border or shadow. Without the mark the trace band above is unchanged. */
.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel-shell {
	padding: 0;
}

.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel-shell::before,
.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel-tear-edge {
	display: none;
}

.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel {
	background: none;
	clip-path: none;
	scroll-padding-inline: 24px;
	scroll-snap-type: x mandatory;
	scrollbar-color: var(--home-v3-forest) transparent;
}

.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel-track {
	gap: 16px;
	align-items: center;
	/* Room for the focus ring inside the scroller. */
	padding: 8px 24px;
}

/* One card row (280 + 2 × 8) before the data arrives. */
.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel-track:empty {
	min-height: 296px;
}

.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel-footer > p {
	color: var(--home-v3-forest);
}

.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel-actions .home-v3-get {
	transform: none;
}

/* A card, plate or placeholder: a fixed CSS size per breakpoint at 1.6:1, which
   the <img>/<source> `sizes` state exactly. 448×280 from 1200 px (640x400 family). */
.library-v3-spotlight-card {
	--library-v3-card-tear: polygon(
		0% 2.53%, 3.57% 1.25%, 7.14% 0.8%, 10.71% 0.62%, 14.29% 1.5%, 17.86% 2.11%, 21.43% 1.63%, 25% 2.43%, 28.57% 1.74%, 32.14% 1.4%, 35.71% 0.36%, 39.29% 2.25%, 42.86% 1.68%, 46.43% 2.25%, 50% 1.66%,
		53.57% 0.59%, 57.14% 0.31%, 60.71% 0.7%, 64.29% 1.1%, 67.86% 0.65%, 71.43% 2.44%, 75% 0.28%, 78.57% 1.96%, 82.14% 0.76%, 85.71% 2.16%, 89.29% 2.24%, 92.86% 0.81%, 96.43% 1.49%, 100% 0.66%,
		100% 98.91%, 96.43% 97.86%, 92.86% 98.9%, 89.29% 97.65%, 85.71% 99.32%, 82.14% 99.32%, 78.57% 97.69%, 75% 99.3%, 71.43% 99.03%, 67.86% 98.79%, 64.29% 98.25%, 60.71% 98.89%, 57.14% 99.11%, 53.57% 98.82%, 50% 99.56%,
		46.43% 98.31%, 42.86% 99.53%, 39.29% 98.77%, 35.71% 98.77%, 32.14% 97.76%, 28.57% 98.02%, 25% 97.56%, 21.43% 98.12%, 17.86% 97.57%, 14.29% 99.78%, 10.71% 98.31%, 7.14% 97.99%, 3.57% 98.92%, 0% 99.33%
	);
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 448px;
	height: 280px;
	color: var(--home-v3-forest);
	scroll-snap-align: start;
	text-decoration: none;
}

.library-v3-spotlight-card picture,
.library-v3-spotlight-card img {
	display: block;
	width: 100%;
	height: 100%;
}

/* Forest, not acid: the ring sits on cream. */
.library-v3-page .library-v3-spotlight-card:focus-visible {
	outline: 3px solid var(--home-v3-forest);
	outline-offset: 3px;
}

/* Placeholder (no plate yet): paper with the composite's torn top and bottom, as
   a fixed polygon on a backing layer, so the link's focus ring is not clipped.
   Trace glyph above; title bottom-left in serif over a short acid rule, then place
   and meta in mono caps, where and at the size the composite draws them, so a
   placeholder never reads louder than a card. The type deliberately sits below
   the page's 11 px floor, as the composite's own baked type does. */
.library-v3-placeholder-paper {
	position: absolute;
	inset: 0;
	background: var(--home-v3-paper-bright);
	clip-path: var(--library-v3-card-tear);
}

.library-v3-placeholder-trace {
	position: absolute;
	top: 12%;
	right: 12%;
	bottom: 42%;
	left: 12%;
	display: block;
}

.library-v3-placeholder-trace svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.library-v3-placeholder-trace .library-map-grid,
.library-v3-placeholder-trace .library-map-contour,
.library-v3-placeholder-trace .library-map-start,
.library-v3-placeholder-trace .library-map-finish {
	display: none;
}

.library-v3-placeholder-trace .library-map-halo,
.library-v3-placeholder-trace .library-map-route {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.library-v3-placeholder-trace .library-map-halo {
	stroke: var(--home-v3-forest-deep);
	stroke-width: 5;
	opacity: 0.8;
}

.library-v3-placeholder-trace .library-map-route {
	stroke: var(--home-v3-acid);
	stroke-width: 2.5;
}

.library-v3-placeholder-copy {
	position: absolute;
	right: 4.7%;
	bottom: 9%;
	left: 4.7%;
	display: grid;
	min-width: 0;
}

.library-v3-placeholder-copy h3 {
	display: -webkit-box;
	/* Long names stop at three lines (two on phones); the link's aria-label and
	   the heading's title keep the full name. */
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	margin: 0;
	overflow: hidden;
	font-family: var(--home-v3-serif);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

/* The composite's short acid rule under the title (40 px on the 640 composite). */
.library-v3-placeholder-rule {
	display: block;
	width: 6.25%;
	height: 2px;
	margin: 4px 0 5px;
	background: var(--home-v3-acid);
}

.library-v3-placeholder-place,
.library-v3-placeholder-meta {
	display: block;
	min-width: 0;
	overflow: hidden;
	font-family: var(--home-v3-mono);
	font-size: 8.5px;
	letter-spacing: 0.06em;
	line-height: 1.45;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.library-v3-placeholder-place {
	font-weight: 700;
}

.library-v3-placeholder-meta {
	color: var(--home-v3-muted);
}

/* One meta line, as on the composite: classification · measures. */
.library-v3-placeholder-meta > span {
	display: inline;
}

.library-v3-placeholder-meta > span + span::before {
	content: " · ";
}

.library-v3-spotlight-placeholder:hover h3,
.library-v3-spotlight-placeholder:focus-visible h3 {
	text-decoration: underline;
	text-decoration-color: var(--home-v3-acid);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.12em;
}

/* 320×200 below 1200 px: the 320x200 family, whose short meta is drawn for
   cards under 400 CSS px. Never smaller, or the composite drops to its title-only
   tier; never wider, because that family tops out at 960 px (3×). */
@media (max-width: 1199px) {
	.library-v3-spotlight-card {
		width: 320px;
		height: 200px;
	}

	.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel-track:empty {
		min-height: 216px;
	}

	/* The 320 composite's own sizes (measured on a served plate-320x200-1x card:
	   serif title ≈ 10 px, mono caps ≈ 7.5 px), baseline ≈ 82% down. */
	.library-v3-placeholder-trace {
		top: 12%;
		bottom: 36%;
	}

	.library-v3-placeholder-copy {
		bottom: 6.5%;
		left: 4.5%;
	}

	.library-v3-placeholder-copy h3 {
		-webkit-line-clamp: 2;
		line-clamp: 2;
		font-size: 10px;
	}

	.library-v3-placeholder-rule {
		height: 1.5px;
		margin: 2px 0 3px;
	}

	.library-v3-placeholder-place,
	.library-v3-placeholder-meta {
		font-size: 7.5px;
	}
}

@media (max-width: 700px) {
	.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel {
		scroll-padding-inline: 15px;
	}

	.library-v3-spotlight[data-library-spotlight-cards] .library-v3-reel-track {
		padding: 8px 15px;
	}
}


.library-v3-spotlight-map svg,
.library-v3-stage-map svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.library-v3-spotlight-map .library-map-grid,
.library-v3-spotlight-map .library-map-contour,
.library-v3-spotlight-map .library-map-start,
.library-v3-spotlight-map .library-map-finish,
.library-v3-stage-map .library-map-grid,
.library-v3-stage-map .library-map-contour {
	display: none;
}

.library-v3-spotlight-map .library-map-halo,
.library-v3-spotlight-map .library-map-route,
.library-v3-stage-map .library-map-halo,
.library-v3-stage-map .library-map-route {
	fill: none;
	stroke: var(--home-v3-acid);
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.library-v3-spotlight-map .library-map-halo,
.library-v3-stage-map .library-map-halo {
	opacity: 0.2;
	stroke-width: 6;
}

.library-v3-spotlight-map .library-map-route,
.library-v3-stage-map .library-map-route {
	stroke-width: 2;
}

.library-v3-spotlight-copy {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: end;
	gap: 7px;
}

.library-v3-spotlight-identity {
	display: block;
	min-width: 0;
}

.library-v3-spotlight-copy h3 {
	display: -webkit-box;
	/* Long names stop at three lines so the meta stays inside the band; the
	   link's aria-label and the heading's title keep the full name. */
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	margin: 0;
	overflow: hidden;
	font-family: var(--home-v3-serif);
	font-size: 27px;
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.88;
	overflow-wrap: anywhere;
}

.library-v3-spotlight-location {
	display: block;
	margin-top: 7px;
	color: rgba(255, 253, 248, 0.88);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.075em;
	line-height: 1.25;
	text-transform: uppercase;
}

.library-v3-route-meta {
	display: block;
	min-width: 0;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.055em;
	line-height: 1.5;
	text-align: right;
	text-transform: uppercase;
}

.library-v3-spotlight-route .library-v3-route-meta {
	min-width: 0;
	color: rgba(255, 253, 248, 0.72);
	letter-spacing: 0.02em;
	text-align: left;
}

.library-v3-route-meta > span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.library-v3-route-index-item .library-v3-route-location {
	color: var(--home-v3-forest);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.075em;
}

.library-v3-route-proximity {
	color: var(--home-v3-forest);
}

.library-v3-spotlight-route:hover h3,
.library-v3-spotlight-route:focus-visible h3 {
	text-decoration: underline;
	text-decoration-color: var(--home-v3-acid);
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.1em;
}

.library-v3-spotlight-fallback {
	display: grid;
	width: min(88vw, 560px);
	align-content: center;
	gap: 12px;
	padding: 32px;
	color: var(--home-v3-paper-bright);
	font-family: var(--home-v3-serif);
	font-size: clamp(30px, 4vw, 48px);
	line-height: 0.9;
	text-decoration: none;
}

.library-v3-spotlight-fallback span {
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.library-v3-reel-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 10px 24px 0;
}

.library-v3-reel-footer > p {
	margin: 0;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.library-v3-reel-actions {
	display: flex;
	flex-shrink: 0;
	gap: 6px;
}

.library-v3-reel-hint {
	white-space: nowrap;
}

.library-v3-reel-drag { display: none; }

@media (max-width: 700px), (pointer: coarse) {
	.library-v3-reel-scroll { display: none; }
	.library-v3-reel-drag { display: inline; }
}

/* The GET face is compact; its surrounding button retains a 44px hit target. */
.library-v3-reel-actions button {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	cursor: pointer;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.library-v3-reel-actions .home-v3-get {
	width: 30px;
	min-height: 30px;
	justify-content: center;
	padding: 0;
	font-size: 16px;
	transform: scale(.5);
}

/* Bring the visible faces together without overlapping or shrinking their hit targets. */
.library-v3-reel-actions button:first-child { justify-items: end; }
.library-v3-reel-actions button:last-child { justify-items: start; }
.library-v3-reel-actions button:first-child .home-v3-get { transform-origin: right center; }
.library-v3-reel-actions button:last-child .home-v3-get { transform-origin: left center; }

.library-v3-reel-actions button:focus-visible { outline-color: var(--home-v3-forest); }
.library-v3-reel-actions button:disabled { cursor: default; opacity: .45; }

.library-v3-page .library-collection.library-v3-catalogue {
	position: relative;
	isolation: auto;
	padding: 14px 24px 0;
	background: transparent;
}

.library-v3-page .library-collection.library-v3-catalogue::before {
	display: none;
}

.library-v3-catalogue-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	margin-bottom: 8px;
}

.library-v3-page .library-discovery-controls {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

.library-v3-page .library-discovery-controls::before {
	display: none;
}

.library-v3-page .library-discovery-primary {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto auto minmax(154px, auto);
	min-height: 32px;
	align-items: stretch;
	border-top: 1px solid var(--home-v3-forest);
	border-bottom: 1px solid var(--home-v3-forest);
}

.library-v3-page .library-discovery-primary > * {
	min-width: 0;
}

.library-v3-page .library-discovery-primary > * + * {
	border-left: 1px solid var(--home-v3-keyline);
}

.library-v3-page .library-discovery-primary > .library-discovery-sort {
	border-left: 1px solid var(--home-v3-keyline);
}

.library-v3-page .library-discovery-search {
	display: grid;
	grid-template-columns: 21px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 0 20px 0 0;
}

.library-v3-page .library-discovery-search svg,
.library-v3-page .library-refine-toggle svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.library-v3-page .library-discovery-search input {
	width: 100%;
	min-height: 32px;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: var(--home-v3-forest);
	background: transparent;
	box-shadow: none;
	font-family: var(--home-v3-serif);
	font-size: 20px;
	outline: 0;
}

.library-v3-page .library-discovery-search input::placeholder {
	color: var(--home-v3-muted);
}

.library-v3-page .library-near-me,
.library-v3-page .library-refine-toggle,
.library-v3-page .library-discovery-sort {
	display: flex;
	min-height: 32px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 18px;
	cursor: pointer;
	border: 0;
	border-radius: 0;
	color: var(--home-v3-forest);
	background: transparent;
	box-shadow: none;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.library-v3-page .library-near-me::before {
	color: currentColor;
	content: "⌖";
	font-size: 15px;
	line-height: 1;
	transform: none;
}

.library-v3-page .library-near-me:hover,
.library-v3-page .library-refine-toggle:hover,
.library-v3-page .library-near-me:focus-visible,
.library-v3-page .library-refine-toggle:focus-visible,
.library-v3-page .library-near-me[aria-pressed="true"],
.library-v3-page .library-refine-toggle[aria-expanded="true"] {
	color: var(--home-v3-acid);
	background: var(--home-v3-forest);
}

.library-v3-page .library-refine-count {
	display: grid;
	width: 18px;
	height: 18px;
	place-items: center;
	border-radius: 50%;
	color: var(--home-v3-forest-deep);
	background: var(--home-v3-acid);
	font-size: 11px;
}

.library-v3-page .library-discovery-sort {
	padding: 0 14px;
}

.library-v3-page .library-discovery-sort select {
	width: 148px;
	height: 100%;
	min-height: 32px;
	padding: 0 22px 0 0;
	border: 0;
	border-radius: 0;
	color: var(--home-v3-forest);
	color-scheme: light;
	background-color: transparent;
	background-position: right 2px center;
	box-shadow: none;
	font: inherit;
	text-transform: none;
}

.library-v3-page .library-discovery-controls select option {
	color: var(--home-v3-forest);
	background: var(--home-v3-paper-bright);
}

.library-v3-page .library-discovery-search:focus-within,
.library-v3-page .library-discovery-sort:focus-within {
	position: relative;
	z-index: 1;
	outline: 2px solid var(--home-v3-acid);
	outline-offset: -3px;
}

.library-v3-page .library-location-note {
	margin: 8px 0 0;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	line-height: 1.4;
	text-transform: uppercase;
}

.library-v3-page .library-refine-backdrop {
	position: fixed;
	z-index: 89;
	inset: 0;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: rgba(7, 19, 15, 0.44);
}

.library-v3-page .library-refine-panel {
	position: fixed;
	z-index: 90;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(590px, 84vw);
	margin: 0;
	overflow-y: auto;
	padding: 34px;
	border: 0;
	color: var(--home-v3-forest);
	background: var(--home-v3-paper-bright);
	box-shadow: -24px 0 60px rgba(7, 19, 15, 0.2);
}

.library-v3-page .library-refine-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 8px;
	padding-bottom: 25px;
	border-bottom: 1px solid var(--home-v3-forest);
}

.library-v3-page .library-refine-heading p {
	margin: 0 0 8px;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.library-v3-page .library-refine-heading h2 {
	margin: 0;
	font-family: var(--home-v3-serif);
	font-size: 52px;
	font-weight: 400;
	letter-spacing: -0.055em;
	line-height: 0.86;
}

.library-v3-page .library-refine-close {
	display: grid;
	width: 52px;
	min-width: 52px;
	height: 44px;
	place-items: center;
	padding: 0;
	cursor: pointer;
	border: 1px solid var(--home-v3-forest);
	border-radius: 999px;
	color: var(--home-v3-forest);
	background: transparent;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.library-v3-page .library-refine-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	gap: 0 22px;
}

.library-v3-page .library-refine-fields .library-discovery-field,
.library-v3-page .library-refine-fields .library-discovery-range,
.library-v3-page .library-refine-fields .library-discovery-near {
	display: grid;
	grid-column: span 1;
	gap: 8px;
	margin: 0;
	padding: 18px 0;
	border: 0;
	border-bottom: 1px solid var(--home-v3-keyline);
}

.library-v3-page .library-refine-fields .library-discovery-near {
	grid-column: 1 / -1;
}

.library-v3-page .library-refine-fields .library-discovery-field > span,
.library-v3-page .library-refine-fields .library-discovery-range legend,
.library-v3-page .library-refine-fields .library-discovery-near legend {
	padding: 0;
	color: var(--home-v3-forest);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.library-v3-page .library-refine-fields select,
.library-v3-page .library-refine-fields input,
.library-v3-page .library-refine-fields .library-discovery-range-inputs,
.library-v3-page .library-near-me-sheet {
	width: 100%;
	min-height: 40px;
	padding: 0 5px;
	border: 0;
	border-bottom: 1px solid var(--home-v3-forest);
	border-radius: 0;
	color: var(--home-v3-forest);
	background: transparent;
	box-shadow: none;
	font-family: var(--home-v3-serif);
	font-size: 17px;
}

.library-v3-page .library-refine-fields .library-discovery-range-inputs {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	padding: 0;
}

.library-v3-page .library-refine-fields input {
	min-width: 0;
}

.library-v3-page .library-near-me-sheet {
	display: block;
	cursor: pointer;
	text-align: left;
}

.library-v3-page .library-location-note-sheet {
	display: block;
	margin: 4px 0 0;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 11px;
}

.library-v3-page .library-refine-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 29px;
	padding: 0;
	border: 0;
}

.library-v3-page .library-clear-filters,
.library-v3-page .library-refine-apply {
	min-height: 46px;
	padding: 0;
	cursor: pointer;
	border: 0;
	border-radius: 0;
	color: var(--home-v3-forest);
	background: transparent;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.library-v3-page .library-refine-apply {
	display: inline-flex;
	min-width: 180px;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 0 18px;
	background: var(--home-v3-acid);
}

.library-v3-page .library-refine-apply::before {
	display: none;
}

.library-v3-page .library-refine-apply b {
	color: var(--home-v3-forest);
}

.library-v3-editorial-status:not(.visually-hidden) {
	margin: 12px 0 20px;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.library-v3-page .library-state:not([hidden]) {
	display: flex;
	min-height: 340px;
	align-content: center;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	gap: 18px;
	margin: 34px 0 0;
	padding: 32px;
	border: 0;
	border-top: 1px solid var(--home-v3-keyline);
	border-radius: 0;
	color: var(--home-v3-forest);
	background: transparent;
	font-family: var(--home-v3-serif);
	font-size: clamp(28px, 4vw, 44px);
	letter-spacing: -0.04em;
	line-height: 0.95;
}

.library-v3-page .library-state-loading:not([hidden]) {
	min-height: 150px;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.library-v3-page .library-state-action {
	min-height: 44px;
	padding: 0;
	cursor: pointer;
	border: 0;
	border-bottom: 1px solid var(--home-v3-forest);
	border-radius: 0;
	color: var(--home-v3-forest);
	background: transparent;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.library-v3-theatre {
	position: relative;
	display: grid;
	grid-template-columns: minmax(350px, 46%) minmax(0, 54%);
	align-items: start;
	min-height: 850px;
	margin-top: 24px;
}

.library-v3-stage-wrap {
	--library-v3-stage-cut: polygon(
		2% 0, 97% 0, 99% 15%, 97.4% 34%, 98.8% 55%, 97% 76%, 98% 100%,
		2% 99%, 0.4% 82%, 1.8% 62%, 0 41%, 1.7% 20%
	);
	position: sticky;
	top: 24px;
	height: min(610px, calc(100svh - 48px));
	min-height: 520px;
	padding: 14px;
}

.library-v3-stage-fibre {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: var(--home-v3-paper-bright);
	clip-path: var(--library-v3-stage-cut);
}

.library-v3-stage-tear-edge {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.library-v3-stage-tear-shadow,
.library-v3-stage-tear-fibre {
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.library-v3-stage-tear-shadow {
	fill: #08130f;
	stroke: #08130f;
	stroke-width: 16px;
	opacity: 0.34;
}

.library-v3-stage-tear-fibre {
	fill: var(--home-v3-paper-bright);
	stroke: var(--home-v3-paper-bright);
	stroke-width: 12px;
	opacity: 0.88;
}

.library-v3-stage-tear-narrow {
	display: none;
}

.library-v3-stage {
	position: relative;
	z-index: 2;
	display: grid;
	height: 100%;
	overflow: hidden;
	place-items: center;
	background:
		linear-gradient(120deg, rgba(7, 19, 15, 0.83), rgba(7, 19, 15, 0.24) 54%, rgba(7, 19, 15, 0.86)),
		url("/beacen-library-terrain-v3.jpg") center 50% / cover no-repeat,
		var(--home-v3-forest-deep);
	clip-path: var(--library-v3-stage-cut);
}

.library-v3-stage::before {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(112deg, transparent 0 38px, rgba(255, 255, 255, 0.025) 39px, transparent 40px 64px);
	content: "";
	opacity: 0.3;
}

.library-v3-stage-identity {
	position: absolute;
	z-index: 3;
	top: 36px;
	right: auto;
	left: 8%;
	width: min(76%, 620px);
	max-width: none;
	color: var(--home-v3-paper-bright);
}

.library-v3-stage-identity h3 {
	margin: 0;
	font-family: var(--home-v3-serif);
	font-size: clamp(28px, 2.8vw, 44px);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.9;
	overflow-wrap: break-word;
	text-wrap: balance;
}

.library-v3-stage-identity p {
	margin: 9px 0 0;
	color: rgba(255, 253, 248, 0.88);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.library-v3-stage-map {
	position: relative;
	z-index: 2;
	width: 82%;
	height: 68%;
	overflow: visible;
	filter: drop-shadow(0 0 14px rgba(215, 240, 90, 0.08));
}

.library-v3-stage-artwork {
	position: relative;
	z-index: 2;
	display: block;
	width: 88%;
	height: 70%;
	object-fit: contain;
	object-position: center;
}

/* Weather stage plate (WEATHER_ASSETS_ENABLED): the raw square Field Plate
   replaces the mood photograph; the torn edge and HTML typography stay, and the
   typography switches to ink on paper. */
.library-v3-stage-plate {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.library-v3-stage.is-stage-plate {
	background: var(--home-v3-paper);
}

/* A paper wash under the type keeps the ink legible over busy plate edges. */
.library-v3-stage.is-stage-plate::before {
	z-index: 2;
	background: linear-gradient(180deg, rgba(243, 240, 231, 0.86) 0, rgba(243, 240, 231, 0) 24%, rgba(243, 240, 231, 0) 78%, rgba(243, 240, 231, 0.86) 100%);
	opacity: 1;
}

.library-v3-stage.is-stage-plate .library-v3-stage-map {
	display: none;
}

.library-v3-stage.is-stage-plate .library-v3-stage-identity {
	color: var(--home-v3-forest-deep);
}

.library-v3-stage.is-stage-plate .library-v3-stage-identity p {
	color: var(--home-v3-forest);
}

.library-v3-stage.is-stage-plate .library-v3-stage-caption {
	color: var(--home-v3-forest-deep);
}

.library-v3-stage.is-stage-plate .library-v3-stage-caption .library-v3-route-meta {
	color: var(--home-v3-forest);
}

.library-v3-stage-map .library-map-start {
	fill: var(--home-v3-acid);
	stroke: var(--home-v3-forest-deep);
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
}

.library-v3-stage-map .library-map-finish {
	fill: var(--home-v3-forest-deep);
	stroke: var(--home-v3-acid);
	stroke-width: 4;
	vector-effect: non-scaling-stroke;
}

.library-v3-stage-caption {
	position: absolute;
	z-index: 3;
	right: 11%;
	bottom: 38px;
	left: 8%;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	color: var(--home-v3-paper-bright);
}

.library-v3-stage-caption p {
	margin: 0;
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	line-height: 1.45;
	text-transform: uppercase;
}

.library-v3-stage-caption .library-v3-route-meta {
	min-width: 156px;
	color: rgba(255, 253, 248, 0.7);
	text-align: left;
}

.library-v3-page .library-route-grid.library-v3-route-index {
	position: relative;
	z-index: 4;
	display: block;
	margin: 0 0 0 -4vw;
	padding: 28px 0 90px;
}

.library-v3-route-index-item {
	position: relative;
	display: grid;
	min-height: 78px;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 11px 8px 12px 30px;
	border-top: 1px solid var(--home-v3-keyline);
	color: var(--home-v3-forest);
	background: linear-gradient(90deg, rgba(243, 240, 231, 0.86), var(--home-v3-paper) 13%);
	box-shadow: inset 0 0 0 var(--home-v3-acid);
	text-decoration: none;
	transition: box-shadow 0.18s ease;
}

.library-v3-route-index-trace {
	display: none;
	overflow: visible;
	filter: drop-shadow(-1.25px 0.6px 0 var(--home-v3-forest));
}

.library-v3-route-index-trace polyline {
	fill: none;
	stroke: var(--home-v3-acid);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.library-v3-route-index-item::before {
	position: absolute;
	top: -1px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--home-v3-acid);
	content: "";
	transition: width 0.25s ease;
}

.library-v3-route-index-item::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(215, 240, 90, 0.13), rgba(215, 240, 90, 0.045) 42%, transparent 78%);
	content: "";
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.library-v3-route-index-item.is-active::before {
	width: 100%;
}

.library-v3-route-index-item.is-active::after {
	opacity: 1;
}

.library-v3-route-index-item.is-active {
	box-shadow: inset 6px 0 0 var(--home-v3-acid);
}

.library-v3-route-index-item h3 {
	position: relative;
	z-index: 1;
	max-width: 16ch;
	margin: 0;
	font-family: var(--home-v3-serif);
	font-size: clamp(27px, 3.15vw, 44px);
	font-weight: 400;
	letter-spacing: -0.047em;
	line-height: 0.9;
	overflow-wrap: anywhere;
}

.library-v3-route-index-item .library-v3-route-meta {
	position: relative;
	z-index: 1;
	min-width: 184px;
}

.library-v3-page .library-load-more-row {
	display: grid;
	min-height: 0;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: start;
	gap: 20px;
	margin: 0;
	padding: 24px 0 26px;
	border-top: 1px solid var(--home-v3-forest);
	border-bottom: 1px solid var(--home-v3-keyline);
}

.library-v3-page .library-load-more-row::before,
.library-v3-page .library-load-more-row::after {
	display: none;
}

.library-v3-page .library-load-more-row > p {
	margin: 0;
	color: var(--home-v3-muted);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.library-v3-ending {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	padding: 60px 24px;
}

.library-v3-ending h2 {
	max-width: none;
	margin: 0;
	font-family: var(--home-v3-serif);
	font-size: clamp(36px, 5.3vw, 80px);
	font-weight: 400;
	letter-spacing: -0.06em;
	line-height: 1;
}

.library-v3-ending a {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	padding: 0 17px;
	color: var(--home-v3-forest);
	background: var(--home-v3-acid);
	font-family: var(--home-v3-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.library-v3-footer {
	color: var(--home-v3-forest);
}

@media (max-width: 1100px) {
	.library-v3-page .library-discovery-primary {
		grid-template-columns: minmax(180px, 1fr) auto auto minmax(142px, auto);
	}

	.library-v3-page .library-near-me,
	.library-v3-page .library-refine-toggle,
	.library-v3-page .library-discovery-sort {
		padding-inline: 12px;
	}

	.library-v3-route-index-item .library-v3-route-meta {
		min-width: 156px;
	}
}

@media (max-width: 820px) {
	.library-v3-page .library-discovery-primary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.library-v3-page .library-discovery-primary > .library-discovery-search {
		grid-column: 1 / -1;
		min-height: 44px;
		padding-inline: 3px;
		border-bottom: 1px solid var(--home-v3-keyline);
	}

	.library-v3-page .library-discovery-primary .library-discovery-search input {
		min-height: 44px;
	}

	.library-v3-page .library-discovery-primary > * + * {
		border-left: 1px solid var(--home-v3-keyline);
	}

	.library-v3-page .library-discovery-primary > .library-near-me {
		border-left: 0;
	}

	.library-v3-page .library-near-me,
	.library-v3-page .library-refine-toggle,
	.library-v3-page .library-discovery-sort {
		min-width: 0;
		min-height: 44px;
		padding-inline: 5px;
		font-size: 11px;
	}

	.library-v3-page .library-discovery-sort select {
		width: 100%;
		padding-right: 17px;
		background-position: right 2px center;
		font-size: 11px;
	}

	.library-v3-page .library-refine-panel {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 88svh;
		padding: 25px 17px max(28px, env(safe-area-inset-bottom));
		box-shadow: 0 -24px 60px rgba(7, 19, 15, 0.2);
	}

	.library-v3-page .library-refine-fields {
		grid-template-columns: 1fr 1fr;
	}

	.library-v3-page .library-refine-actions {
		position: sticky;
		bottom: calc(-1 * max(28px, env(safe-area-inset-bottom)));
		margin-right: -17px;
		margin-left: -17px;
		padding: 16px 17px max(28px, env(safe-area-inset-bottom));
		background: var(--home-v3-paper-bright);
	}

	.library-refine-open {
		overflow: hidden;
	}
}

@media (pointer: coarse) and (min-width: 821px) {
	.library-v3-page .library-discovery-primary,
	.library-v3-page .library-discovery-primary .library-discovery-search input,
	.library-v3-page .library-discovery-search input,
	.library-v3-page .library-near-me,
	.library-v3-page .library-refine-toggle,
	.library-v3-page .library-discovery-sort {
		min-height: 44px;
	}
}

@media (max-width: 700px) {
	.library-v3-intro {
		padding: 18px 15px 0;
	}

	.library-v3-search-region { margin: 28px 15px 22px; }

	.library-v3-intro h1 {
		font-size: clamp(49px, 14vw, 55px);
		line-height: 0.85;
	}

	.library-v3-intro > p {
		right: 15px;
		top: 20px;
		width: 18ch;
		font-size: 11px;
	}

	.library-v3-intro-line {
		right: -12%;
		top: 18px;
		width: 90%;
		height: 54px;
	}

	.library-v3-reel-tear-wide {
		display: none;
	}

	.library-v3-reel-tear-narrow {
		display: block;
	}

	.library-v3-reel-track {
		padding: 27px 7vw;
	}

	.library-v3-reel-track:empty {
		min-height: 354px;
	}

	.library-v3-spotlight-route {
		width: 94vw;
		max-width: 360px;
		min-height: 300px;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 1fr auto;
		padding-inline: 20px;
	}

	.library-v3-spotlight-map {
		height: 128px;
	}

	.library-v3-spotlight-copy {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.library-v3-spotlight-copy h3 {
		font-size: 26px;
	}

	.library-v3-spotlight-route .library-v3-route-meta {
		min-width: 0;
		font-size: 11px;
		letter-spacing: 0.02em;
	}

	.library-v3-reel-footer {
		margin-inline: 15px;
	}

	.library-v3-page .library-collection.library-v3-catalogue {
		padding: 16px 15px 0;
	}

	.library-v3-catalogue-heading {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
		gap: 8px;
	}

	.library-v3-theatre {
		display: block;
		min-height: 0;
		margin-top: 20px;
	}

	.library-v3-stage-wrap {
		position: relative;
		top: auto;
		height: 370px;
		min-height: 0;
		margin-inline: -15px;
		padding: 9px 14px;
	}

	.library-v3-stage-fibre {
		inset-inline: 0;
	}

	.library-v3-stage-tear-wide {
		display: none;
	}

	.library-v3-stage-tear-narrow {
		display: block;
	}

	.library-v3-stage-identity {
		top: 27px;
		width: 84%;
	}

	.library-v3-stage-identity h3 {
		font-size: 31px;
	}

	.library-v3-stage-caption {
		right: 9%;
		bottom: 28px;
		left: 8%;
		gap: 8px;
	}

	.library-v3-stage-caption p {
		font-size: 11px;
		letter-spacing: 0.055em;
	}

	.library-v3-stage-caption .library-v3-route-meta {
		min-width: 130px;
	}

	.library-v3-page .library-route-grid.library-v3-route-index {
		margin: -6px 0 0;
		padding: 0 0 48px;
	}

	.library-v3-route-index-item {
		min-height: 82px;
		grid-template-columns: 56px minmax(0, 1fr);
		align-items: center;
		column-gap: 12px;
		row-gap: 6px;
		padding: 13px 2px 14px 15px;
		background: var(--home-v3-paper);
	}

	.library-v3-route-index-trace {
		display: block;
		width: 56px;
		height: 46px;
		grid-row: span 2;
	}

	.library-v3-route-index-item h3 {
		grid-column: 2;
		max-width: none;
		font-size: 29px;
	}

	.library-v3-route-index-item .library-v3-route-meta {
		min-width: 0;
		grid-column: 2;
		font-size: 11px;
		letter-spacing: 0.02em;
		text-align: left;
	}

	.library-v3-page .library-load-more-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.library-v3-ending {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		gap: 20px;
		padding: 46px 15px;
		text-align: center;
	}

	.library-v3-ending h2 {
		font-size: clamp(29px, 7.4vw, 50px);
	}

	.library-v3-footer {
		width: calc(100% - 30px);
	}

	.library-v3-footer .home-v3-footer-inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		padding-block: 18px;
	}
}

/* Under 640 px the trace item is 202 px tall (a small trace above a two-line
   title, place and meta), so the trace band is 256 px. After the 700 px block
   so these win. */
@media (max-width: 639px) {
	.library-v3-spotlight-route {
		height: 202px;
		min-height: 0;
		align-self: center;
		grid-template-rows: 52px minmax(0, 1fr);
		row-gap: 8px;
		padding-block: 10px;
		overflow: hidden;
	}

	.library-v3-spotlight-map {
		height: 52px;
	}

	.library-v3-spotlight-copy {
		align-content: start;
		gap: 5px;
	}

	.library-v3-spotlight-copy h3 {
		-webkit-line-clamp: 2;
		line-clamp: 2;
		font-size: 22px;
	}

	.library-v3-spotlight-location {
		margin-top: 4px;
	}

	.library-v3-reel-track:empty {
		min-height: 256px;
	}
}

@media (max-width: 350px) {
	.library-v3-spotlight-route {
		padding-inline: 16px;
	}

	.library-v3-spotlight-route .library-v3-route-meta {
		min-width: 0;
		font-size: 11px;
	}
}

@media (max-width: 480px) {
	.library-v3-page .library-refine-fields {
		grid-template-columns: 1fr;
	}

	.library-v3-page .library-refine-fields .library-discovery-near {
		grid-column: 1;
	}

	.library-v3-page .library-refine-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.library-v3-page .library-refine-apply {
		width: 100%;
	}
}

@media (max-width: 355px) {
	.library-v3-route-index-item h3 {
		font-size: 26px;
	}
}

@media (forced-colors: active), (prefers-contrast: more), print {
	.library-v3-editorial-tabs .home-v3-get[aria-pressed="true"] {
		box-shadow: none;
		outline: 2px solid currentColor;
		outline-offset: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.library-v3-page *,
	.library-v3-page *::before,
	.library-v3-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
