.explore-page {
	padding-block: clamp(2rem, 5vw, 4rem);
}
.explore-page .catalogue-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid var(--lot-gold-dark);
	background: var(--site-panel);
}
.explore-page .catalogue-tools label,
.collection-filter label {
	display: grid;
	gap: 0.4rem;
	flex: 1 1 12rem;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	color: var(--site-muted);
}
.explore-page input[type='search'],
.explore-page select {
	min-width: 0;
	width: 100%;
	min-height: 46px;
	padding: 0.65rem;
	font: inherit;
	background: #151318;
	color: var(--lot-cream);
	border: 1px solid var(--lot-gold-dark);
}
.explore-page button:not(.site-button),
.explore-pagination a {
	min-height: 44px;
	padding: 0.6rem 0.9rem;
	font: inherit;
	background: #242028;
	color: var(--lot-cream);
	border: 1px solid var(--lot-gold-dark);
	cursor: pointer;
}
.explore-page button:not(.site-button):hover:not(:disabled) {
	border-color: var(--lot-gold-light);
	color: var(--lot-gold-light);
}
.explore-page button:disabled {
	opacity: 0.45;
	cursor: default;
}
.explore-page :where(a, button, select, input, canvas, summary):focus-visible {
	outline: 2px solid var(--lot-gold-light);
	outline-offset: 2px;
}
/* Chamfered plates clip anything drawn outside them, so their focus ring sits inside. */
.explore-page :is(.g-tools, .g-tour, .g-panel) :focus-visible,
.explore-page :is(.exhibit-dialog__close, .exhibit-dialog .room-controls button):focus-visible {
	outline-offset: -4px;
}
.explore-page input[type='checkbox'] {
	margin: 0 0.4rem 0 0;
	accent-color: var(--lot-gold-light);
}
.explore-note {
	color: var(--site-muted);
	font-size: 0.9rem;
}
.explore-status:empty {
	display: none;
}
.explore-status {
	color: var(--site-muted);
	margin-block: 0.75rem;
}

/* The Elysian Collection */
.collection-hero {
	max-width: 46rem;
	padding-bottom: clamp(1rem, 3vw, 2rem);
}
.collection-hero h1 {
	color: var(--lot-cream);
	font-size: clamp(2.2rem, 5vw, 4.3rem);
	line-height: 1.12;
	text-align: left;
	margin: 0 0 1.25rem;
	text-wrap: balance;
}
.collection-browse {
	margin-top: clamp(1.5rem, 4vw, 3rem);
}
.collection-browse__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--lot-gold-dark);
}
.collection-browse__head h2 {
	color: var(--lot-cream);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0;
	text-align: left;
}
.collection-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 0.75rem;
	flex: 1 1 28rem;
	max-width: 40rem;
}
.collection-filter label {
	flex: 1 1 11rem;
}
.collection-count,
.collection-empty {
	margin-block: 1rem 0;
	color: var(--site-muted);
}
.collection-empty {
	padding: 1.25rem;
	border: 1px dashed var(--lot-gold-dark);
	color: var(--lot-cream);
}
.exhibit-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
	gap: clamp(0.75rem, 2vw, 1.25rem);
	padding: 0;
	list-style: none;
	margin-block: 1.25rem 0;
}
.exhibit-card {
	position: relative;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: var(--site-panel);
	border: 1px solid #3a3024;
	transition: border-color 0.2s ease;
}
.exhibit-card:hover,
.exhibit-card:focus-within {
	border-color: var(--lot-gold);
}
.exhibit-card__open {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.75rem 0.75rem 0.5rem;
	color: inherit;
	text-decoration: none;
	flex: 1;
}
.exhibit-card__frame {
	display: grid;
	place-items: center;
	aspect-ratio: 3 / 4;
	margin-bottom: 0.5rem;
	background: #0e0c10;
	overflow: hidden;
}
.exhibit-card__frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}
.exhibit-card:hover .exhibit-card__frame img {
	transform: scale(1.03);
}
.exhibit-card__series {
	color: var(--lot-gold-light);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.exhibit-card h3 {
	color: var(--lot-cream);
	font-size: 1.05rem;
	line-height: 1.3;
	margin: 0;
	text-align: left;
}
.exhibit-card--auxiliary .exhibit-card__frame {
	opacity: 0.85;
}
.explore-page .exhibit-card__walk {
	margin: 0 0.75rem 0.75rem;
	min-height: 40px;
	padding: 0.4rem 0.6rem;
	font-size: 0.85rem;
	background: transparent;
}
.exhibit-detail {
	max-width: 60rem;
	margin: 2rem auto;
	padding: 1.5rem;
	background: var(--site-panel);
	border: 1px solid var(--lot-gold-dark);
}
.exhibit-detail img {
	max-height: 70vh;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 1rem auto;
	display: block;
}
.exhibit-metadata {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 0.5rem 1rem;
}
.exhibit-metadata dd {
	margin: 0;
}
.exhibit-metadata dt {
	color: var(--site-muted);
}
.explore-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-block: 2rem;
}
.exhibit-dialog {
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	inset: 0;
	padding: clamp(3.5rem, 6vh, 4.5rem) clamp(3.75rem, 7vw, 6rem) 1.5rem;
	border: 0;
	background: transparent;
	color: var(--lot-cream);
	overflow: auto;
	overscroll-behavior: contain;
}
.exhibit-dialog[open] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}
.exhibit-dialog::backdrop {
	background: radial-gradient(ellipse at center, #17120fee, #070605f7);
	backdrop-filter: blur(6px);
}
/* The image leads; its title and notes sit beneath it, as on a gallery label. */
.exhibit-dialog header,
.exhibit-dialog [data-exhibit-detail] {
	display: contents;
}
.exhibit-dialog [data-exhibit-detail] > img {
	order: 1;
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100dvh - 16rem);
	margin: 0 auto 0.9rem;
	object-fit: contain;
	box-shadow: 0 0 0 1px #c4a35a80, 0 0 0 7px #0f0c0a, 0 0 0 8px #c4a35a59, 0 24px 60px #000c;
}
.exhibit-dialog [data-exhibit-detail] > * {
	order: 3;
	max-width: 46rem;
	margin: 0;
	text-align: center;
}
.exhibit-dialog h2 {
	order: 2;
	margin: 0.1rem 0 0.2rem;
	font-family: var(--lot-font-display);
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	background: var(--lot-shine);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 0 #000a);
}
.explore-page .exhibit-dialog__close,
.explore-page .exhibit-dialog .room-controls button {
	position: fixed;
	z-index: 1;
	display: grid;
	place-items: center;
	--cut: 9px;
	--rim: #c4a35a8c;
	width: 48px;
	min-height: 48px;
	padding: 0;
	border: 1px solid var(--rim);
	background:
		linear-gradient(135deg, var(--rim) calc(var(--cut) * 0.7071 + 0.8px), transparent 0) border-box,
		linear-gradient(315deg, var(--rim) calc(var(--cut) * 0.7071 + 0.8px), transparent 0) border-box,
		linear-gradient(180deg, #1b1519eb, #0d0a0ef0) border-box;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
	color: #d9cfb8;
}
.explore-page .exhibit-dialog__close {
	top: 1rem;
	right: 1rem;
	font-size: 1.6rem;
	line-height: 1;
}
.explore-page .exhibit-dialog .room-controls button {
	top: 50%;
	translate: 0 -50%;
}
.explore-page .exhibit-dialog .room-controls button:first-child {
	left: 1rem;
}
.explore-page .exhibit-dialog .room-controls button:last-child {
	right: 1rem;
}
.explore-page .exhibit-dialog .room-controls button:disabled {
	display: none;
}
.explore-page .exhibit-dialog__close:hover,
.explore-page .exhibit-dialog .room-controls button:hover {
	--rim: var(--lot-gold-light);
	border-color: var(--lot-gold-light);
	color: var(--lot-gold-light);
}
.room-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: 1rem;
}
.room-controls button {
	flex: 1 1 8rem;
}

/* Gallery: a full-bleed view with a quiet overlay */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.explore-stage {
	position: relative;
	margin-block: 1rem 2rem;
	padding: 0;
	border: 1px solid var(--lot-gold);
	background: #0e0c0a;
	scroll-margin-top: 4rem;
}
.explore-stage__head {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 4;
}
/* The gallery puts Leave in its own toolbar, so the page's button steps aside. */
.explore-stage:has(.gallery-view) .explore-stage__head {
	display: none;
}
.explore-page .explore-stage__head button {
	min-height: 40px;
	padding: 0.45rem 0.85rem;
	background: #100d0fd9;
	border-color: #c4a35a99;
	backdrop-filter: blur(6px);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}
.explore-stage:fullscreen {
	margin: 0;
	border: 0;
}
.explore-stage[hidden],
.explore-page [data-room-art][hidden],
.explore-page [data-map-open][hidden] {
	display: none;
}
.gallery-viewport {
	position: relative;
	height: clamp(22rem, calc(100dvh - 5.25rem), 52rem);
	overflow: hidden;
	background: #0e0c0a;
}
.explore-stage:fullscreen .gallery-viewport {
	height: 100dvh;
}
.gallery-canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
	cursor: grab;
}
.gallery-canvas:active {
	cursor: grabbing;
}
.explore-page .gallery-canvas:focus-visible {
	outline-offset: -3px;
}
/* Shared chrome for overlay controls: smoked glass plates with chamfered corners.
   The two corner gradients paint the rim along each cut, where the border is clipped away. */
.gallery-view :is(.g-place, .g-tools, .g-tour, .g-panel, .g-tooltip) {
	--cut: 10px;
	--rim: #c4a35a8c;
	background:
		linear-gradient(135deg, var(--rim) calc(var(--cut) * 0.7071 + 0.8px), transparent 0) border-box,
		linear-gradient(315deg, var(--rim) calc(var(--cut) * 0.7071 + 0.8px), transparent 0) border-box,
		linear-gradient(180deg, #1b1519eb, #0d0a0ef0) border-box;
	border: 1px solid var(--rim);
	box-shadow: inset 0 1px 0 #f3da9540;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.gallery-view .g-tooltip {
	--cut: 6px;
}
.g-place {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	display: grid;
	gap: 0.1rem;
	max-width: min(26rem, calc(100% - 22rem));
	padding: 0.5rem 1rem 0.55rem;
	pointer-events: none;
}
.g-place__room {
	font-family: var(--lot-font-ui);
	font-size: 0.86rem;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	background: var(--lot-shine);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.g-place__title {
	color: #ddd4c0;
	font-size: 0.92rem;
	line-height: 1.35;
}
.g-place__title:empty {
	display: none;
}
.g-tools {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	align-items: center;
	display: flex;
	gap: 0.1rem;
	padding: 0.25rem 0.35rem;
}
.explore-page .g-tools button {
	display: grid;
	place-items: center;
	width: 40px;
	min-height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #d9cfb8;
	transition: color 0.2s ease, background 0.2s ease;
}
.explore-page .g-tools button:hover {
	background: #c4a35a1f;
	color: #fff0c2;
}
.explore-page .g-tools button[aria-expanded='true'] {
	background: #c4a35a2e;
	color: #fff0c2;
	box-shadow: inset 0 -2px 0 var(--lot-gold-light);
}
.explore-page .g-tools .g-leave {
	display: flex;
	gap: 0.45rem;
	width: auto;
	margin-left: 0.3rem;
	padding: 0 0.8rem 0 0.75rem;
	box-shadow: inset 1px 0 0 #c4a35a4d;
	font-family: var(--lot-font-ui);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.g-panel {
	position: absolute;
	top: 4rem;
	right: 0.75rem;
	z-index: 3;
	width: min(21rem, calc(100% - 1.5rem));
	max-height: calc(100% - 9rem);
	overflow: hidden auto;
	padding: 0.9rem 1rem 1rem;
	color: var(--lot-cream);
}
.g-panel h3 {
	margin: 0 0 0.7rem;
	font-family: var(--lot-font-ui);
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: left;
	background: var(--lot-shine);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.g-list {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.explore-page .g-list button {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	min-height: 42px;
	padding: 0.5rem 0.7rem;
	background: transparent;
	border: 0;
	box-shadow: inset 2px 0 0 transparent;
	text-align: left;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}
.explore-page .g-list button small {
	color: var(--site-muted);
	font-size: 0.78rem;
	white-space: nowrap;
}
.explore-page .g-list button:hover {
	background: #c4a35a14;
}
.explore-page .g-list button[aria-current='true'] {
	background: linear-gradient(90deg, #c4a35a2e, transparent);
	box-shadow: inset 2px 0 0 var(--lot-gold-light);
	color: #fff0c2;
}
.g-music__now {
	margin: 0 0 0.8rem;
	color: #ddd4c0;
	font-size: 0.95rem;
	line-height: 1.35;
}
.g-music__controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.8rem;
}
.explore-page .g-music__controls button {
	display: grid;
	flex: none;
	place-items: center;
	--cut: 7px;
	width: 44px;
	min-height: 44px;
	padding: 0;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.g-music__progress {
	display: grid;
	flex: 1;
	gap: 0.25rem;
	min-width: 0;
}
.g-music__seek {
	--at: 0%;
	width: 100%;
	height: 3px;
	margin: 0;
	appearance: none;
	background: linear-gradient(90deg, var(--lot-gold-light) var(--at), #f0e6c829 var(--at));
	cursor: pointer;
}
.g-music__seek::-webkit-slider-thumb {
	width: 10px;
	height: 10px;
	appearance: none;
	transform: rotate(45deg);
	background: #fff0c2;
	box-shadow: 0 0 0 1px #7d5c25;
}
.g-music__seek::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 0;
	transform: rotate(45deg);
	background: #fff0c2;
}
.explore-page .g-music__controls .g-music__play {
	border: 0;
	background: var(--lot-shine);
	color: #1d1408;
}
.explore-page .g-music__controls .g-music__play:hover:not(:disabled) {
	color: #1d1408;
	filter: brightness(1.08);
}
.g-music__time {
	color: var(--site-muted);
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	text-align: right;
}
.explore-page .g-list--tracks button span {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.explore-page .g-list--tracks button {
	align-items: center;
	min-height: 38px;
	padding-block: 0.35rem;
}
.g-segment {
	display: inline-flex;
	gap: 0.3rem;
	margin-bottom: 0.8rem;
}
.explore-page .g-segment button {
	min-height: 34px;
	padding: 0.25rem 0.95rem;
	border: 1px solid #c4a35a59;
	background: transparent;
	color: #d9cfb8;
	font-family: var(--lot-font-ui);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.explore-page .g-segment button[aria-pressed='true'] {
	border-color: transparent;
	background: var(--lot-shine);
	color: #1d1408;
}
/* Sound: a row per channel, its name, a mute button and a gold level slider. */
.g-sound {
	display: grid;
	gap: 0.15rem;
	margin: 0.2rem 0 0.7rem;
	padding: 0.5rem 0;
	border-block: 1px solid #c4a35a26;
}
.g-level {
	display: grid;
	grid-template-columns: 4.2rem 36px 1fr;
	align-items: center;
	gap: 0.4rem;
	min-height: 40px;
	color: #d9cfb8;
	font-size: 0.9rem;
}
.explore-page .g-level__mute {
	display: grid;
	place-items: center;
	width: 36px;
	min-height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #d9cfb8;
}
.explore-page .g-level__mute:hover {
	color: #fff0c2;
}
.explore-page .g-level__mute[aria-pressed='true'] {
	color: #8d8576;
}
.g-level input[type='range'] {
	--at: 60%;
	width: 100%;
	height: 3px;
	margin: 0;
	appearance: none;
	background: linear-gradient(90deg, var(--lot-gold-light) var(--at), #f0e6c829 var(--at));
	cursor: pointer;
}
.g-level input[type='range']::-webkit-slider-thumb {
	width: 12px;
	height: 12px;
	appearance: none;
	transform: rotate(45deg);
	background: #fff0c2;
	box-shadow: 0 0 0 1px #7d5c25;
}
.g-level input[type='range']::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 0;
	transform: rotate(45deg);
	background: #fff0c2;
}
/* The weather picker: a label over a dark field with a gold underline, like the catalogue's search. */
.g-field {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 0.6rem;
	color: var(--site-muted);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}
.explore-page .g-field select {
	min-height: 40px;
	padding: 0.4rem 0.6rem;
	border: 0;
	background: rgba(9, 7, 11, 0.85);
	box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.28), inset 0 -2px 0 rgba(201, 155, 71, 0.6);
	color: var(--lot-cream);
	font: inherit;
	font-size: 0.92rem;
}
.g-check {
	display: flex;
	align-items: center;
	min-height: 40px;
	font-size: 0.9rem;
}
.g-help {
	margin: 0.6rem 0 0;
	color: var(--site-muted);
	font-size: 0.85rem;
	line-height: 1.55;
}
.g-tour {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.3rem;
}
.explore-page .g-tour button {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.6rem;
	border: 0;
	background: transparent;
	color: #d9cfb8;
}
.explore-page .g-tour .g-inspect {
	--cut: 7px;
	padding-inline: 1.5rem;
	background: var(--lot-shine);
	color: #1d1408;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
	font-family: var(--lot-font-ui);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.explore-page .g-tour .g-inspect:hover:not(:disabled) {
	color: #1d1408;
	filter: brightness(1.08);
}
.explore-page .g-tour .g-sit {
	display: flex;
	gap: 0.35rem;
	padding-inline: 0.8rem 1rem;
	box-shadow: inset 1px 0 0 #c4a35a40;
}
/* At the hearth: the fire's controls join the tour, separated by a hairline. */
.g-fire,
.g-pipe {
	display: flex;
	gap: 0.1rem;
	padding-left: 0.3rem;
	box-shadow: inset 1px 0 0 #c4a35a40;
}
.g-fire[hidden],
.g-fire button[hidden],
.g-pipe[hidden],
.g-pipe button[hidden] {
	display: none !important;
}
.explore-page .g-tour .g-fire button,
.explore-page .g-tour .g-pipe button {
	display: flex;
	gap: 0.35rem;
	padding-inline: 0.6rem 0.8rem;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.explore-page .g-tour .g-sit[hidden] {
	display: none;
}
.explore-page .g-tour .g-sit.is-seated {
	color: var(--lot-gold-light);
}
.g-tooltip {
	position: absolute;
	top: 0;
	left: 0;
	max-width: 18rem;
	padding: 0.35rem 0.6rem;
	color: var(--lot-cream);
	font-size: 0.82rem;
	pointer-events: none;
	animation: g-rise 0.18s ease-out;
}
@keyframes g-rise {
	from {
		opacity: 0;
		translate: 0 4px;
	}
}
.gallery-pad {
	position: absolute;
	right: 0.75rem;
	bottom: 1rem;
	display: none;
	grid-template-columns: repeat(3, 2.75rem);
	gap: 0.3rem;
}
.show-pad .gallery-pad {
	display: grid;
}
.explore-page .gallery-pad button {
	min-height: 2.75rem;
	padding: 0;
	font-size: 1rem;
	line-height: 1;
	background: #100d0fcc;
	border-color: #c4a35a66;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}
@media (max-width: 640px) {
	.gallery-viewport {
		height: min(72vh, 34rem);
	}
	.g-place {
		top: auto;
		bottom: 4.6rem;
		max-width: calc(100% - 1.5rem);
	}
	.show-pad .g-place {
		bottom: 7.4rem;
	}
	.g-tools {
		right: auto;
		left: 0.75rem;
	}
	.explore-page .g-tools .g-leave span {
		display: none;
	}
	.explore-page .g-tools .g-leave {
		padding: 0 0.7rem;
	}
	.g-tour {
		left: 0.75rem;
		transform: none;
	}
	/* Beside the walk pad the tour pill tightens so the two never overlap. */
	.show-pad .g-tour {
		max-width: calc(100% - 11rem);
	}
	.explore-page .show-pad .g-tour button {
		min-width: 40px;
		padding-inline: 0.3rem;
	}
	.explore-page .show-pad .g-tour .g-inspect {
		padding-inline: 0.8rem;
		font-size: 0.85rem;
	}
	.g-panel {
		top: 3.9rem;
		left: 0.75rem;
		right: 0.75rem;
		width: auto;
	}
}

/* The Prime Plane: the chart and its detail panel side by side in a fine gold frame, the
   directory of every location beneath. */
.site-content.map-page {
	max-width: var(--lot-container);
}
.map-page .site-actions {
	justify-content: center;
}
.map-stage {
	margin-block: 0 1rem;
	border: 1px solid rgba(196, 163, 90, 0.4);
	background: #07080c;
	box-shadow: inset 0 1px 0 rgba(243, 218, 149, 0.32), 0 28px 50px -30px rgba(0, 0, 0, 0.95);
}
/* Rarely wanted, so it stays out of sight until it has keyboard focus. */
.explore-page .map-stage__hide:not(:focus-visible) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.map-stage__hide {
	position: absolute;
	right: 0.6rem;
	bottom: 0.6rem;
	z-index: 2;
	min-height: 36px;
	padding: 0.35rem 0.8rem;
	font-size: 0.8rem;
	background: #0b0a10d9;
	border-color: rgba(196, 163, 90, 0.5);
}
.map-open-row {
	text-align: center;
}
.map-open-row [hidden],
.map-stage:not([hidden]) + .map-open-row {
	display: none;
}
.galaxy-view {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
}
.galaxy-chart {
	position: relative;
	min-width: 0;
}
.galaxy-chart svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	background: #07080c;
	cursor: grab;
	touch-action: none;
	user-select: none;
}
.galaxy-chart svg:active {
	cursor: grabbing;
}
.galaxy-vignette {
	fill: rgba(5, 6, 12, 0.16);
	pointer-events: none;
}
.galaxy-toolbar {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	right: 0.6rem;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	pointer-events: none;
}
.galaxy-toolbar > * {
	pointer-events: auto;
}
.galaxy-search input {
	width: min(16rem, 60vw);
	min-height: 38px;
	padding: 0.4rem 0.75rem;
	background: #0b0a10e0;
	border: 1px solid rgba(196, 163, 90, 0.5);
	color: var(--lot-text);
	font: inherit;
	font-size: 0.9rem;
}
.galaxy-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 38px;
	padding: 0.3rem 0.75rem;
	background: #0b0a10e0;
	border: 1px solid rgba(196, 163, 90, 0.5);
	font-size: 0.85rem;
	cursor: pointer;
}
.galaxy-toggle input {
	accent-color: var(--lot-gold);
}
.galaxy-zoom {
	display: inline-flex;
	margin-left: auto;
}
.explore-page .galaxy-zoom button {
	min-width: 38px;
	min-height: 38px;
	padding: 0.3rem 0.6rem;
	background: #0b0a10e0;
	border: 1px solid rgba(196, 163, 90, 0.5);
	color: var(--lot-gold-light);
	font-size: 0.85rem;
}
.explore-page .galaxy-zoom button + button {
	border-left: 0;
}
.galaxy-zoom button:disabled {
	opacity: 0.45;
}
.galaxy-lane {
	stroke: #e0c27a;
	stroke-opacity: 0.35;
}
.galaxy-lane.is-lit {
	stroke: #fff1c7;
	stroke-opacity: 0.9;
}
.galaxy-node {
	cursor: pointer;
	color: var(--lot-gold);
}
.galaxy-node:focus-visible {
	outline: none;
}
.galaxy-node:focus-visible > circle,
.galaxy-node.is-selected > circle {
	stroke: var(--lot-gold-light);
}
.galaxy-node.is-found > circle {
	stroke: #ffe3a0;
	stroke-dasharray: 2 2;
}
.galaxy-label,
.galaxy-territory text {
	text-anchor: middle;
	paint-order: stroke;
	stroke: #06070b;
	stroke-width: 0.32em;
	stroke-linejoin: round;
	pointer-events: none;
}
.galaxy-label {
	fill: #f3e6c4;
	font-family: var(--lot-font-ui);
	letter-spacing: 0.04em;
}
.galaxy-node.is-selected .galaxy-label {
	fill: #fff6d6;
	font-weight: 500;
}
.galaxy-territory text {
	font-family: var(--lot-font-display);
	letter-spacing: 0.12em;
	opacity: 0.85;
}
.galaxy-node .node__bracket {
	fill: none;
	stroke-width: 0.8;
}
.galaxy-node .node__waypoint {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.2;
}
.galaxy-node .node__waycross {
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
}
/* The detail panel: what the place is, its story on Kanka, what lies within it and where the lanes go. */
.map-detail {
	display: grid;
	align-content: start;
	gap: 0.8rem;
	/* Adds no height of its own: the chart sets the row and the panel scrolls within it. */
	height: 0;
	min-height: 100%;
	overflow-y: auto;
	padding: 1.4rem 1.3rem;
	border-left: 1px solid rgba(196, 163, 90, 0.35);
	background: linear-gradient(180deg, rgba(30, 24, 32, 0.95), rgba(14, 11, 16, 0.97));
}
.map-detail > * {
	margin: 0;
}
.map-detail__kind {
	color: var(--site-muted);
	font-size: 0.85rem;
}
.map-detail h3 {
	font-family: var(--lot-font-display);
	font-size: clamp(1.6rem, 2.4vw, 2rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.04em;
	background: var(--lot-shine);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.map-detail__faction,
.map-detail__faction a {
	color: var(--lot-gold-light);
}
.map-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.map-detail__actions .site-button {
	min-height: 40px;
	padding: 0.55rem 1rem;
	font-size: 0.85rem;
}
.map-detail h4 {
	margin-top: 0.4rem;
	color: var(--lot-cream);
	font-family: var(--lot-font-ui);
	font-size: 0.95rem;
	font-weight: 500;
}
.map-detail__places {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0;
	list-style: none;
}
.map-detail__places a {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	border: 1px solid rgba(196, 163, 90, 0.45);
	color: var(--lot-gold-light);
	font-size: 0.85rem;
	text-decoration: none;
}
.map-detail__places a:hover,
.map-detail__places a:focus-visible {
	background: #c4a35a26;
}
.map-detail__lanes {
	display: grid;
	gap: 0.15rem;
	padding: 0;
	list-style: none;
}
.map-detail__lanes li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.3rem 0;
	border-bottom: 1px solid #ffffff0d;
}
.explore-page .map-detail__lanes button {
	min-height: 0;
	min-width: 0;
	box-shadow: none;
	clip-path: none;
	padding: 0;
	border: 0;
	background: none;
	color: var(--lot-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.explore-page .map-detail__lanes button:hover,
.explore-page .map-detail__lanes button:focus-visible {
	background: none;
	color: var(--lot-gold-light);
	text-decoration: underline;
}
.map-detail__lanes small {
	color: var(--site-muted);
	white-space: nowrap;
}
.map-detail__link {
	color: var(--site-muted);
	font-size: 0.85rem;
}
@media (max-width: 959px) {
	.galaxy-view {
		grid-template-columns: 1fr;
	}
	.map-detail {
		height: auto;
		min-height: 0;
		border-left: 0;
		border-top: 1px solid rgba(196, 163, 90, 0.35);
	}
	.galaxy-zoom {
		margin-left: 0;
	}
}
/* The directory: every location as a compact card, filtered without scripts. */
.map-directory {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}
.map-directory > h2 {
	margin-bottom: 1.2rem;
	text-align: center;
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.map-count {
	margin: 0.9rem 0;
	color: var(--site-muted);
}
.location-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 0.8rem;
	padding: 0;
	list-style: none;
}
.location-list > li {
	display: grid;
	align-content: start;
	gap: 0.45rem;
	padding: 1.1rem 1.2rem;
	border: 1px solid rgba(196, 163, 90, 0.24);
	background: linear-gradient(180deg, rgba(30, 24, 32, 0.9), rgba(14, 11, 16, 0.92));
	box-shadow: inset 0 1px 0 rgba(243, 218, 149, 0.32);
	scroll-margin-top: 7rem;
}
.location-list > li > * {
	margin: 0;
}
.location-list h3 {
	font-size: 1.25rem;
	font-weight: 400;
}
.location-list h3 a {
	color: var(--lot-cream);
	text-decoration: none;
}
.location-list h3 a:hover,
.location-list h3 a:focus-visible {
	color: var(--lot-gold-light);
}
.location-meta {
	color: var(--site-muted);
	font-size: 0.85rem;
}
.location-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	font-size: 0.9rem;
}
.location-links a,
.location-places a {
	color: var(--lot-gold-light);
}
.location-places {
	font-size: 0.85rem;
	color: var(--site-muted);
}
.explore-rights {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--lot-gold-dark);
	max-width: 75ch;
	font-size: 0.9rem;
	color: var(--site-muted);
}
.explore-rights h2 {
	color: var(--lot-cream);
	font-size: 1.1rem;
	text-align: left;
	margin-bottom: 0.5rem;
}
.explore-page :where(a, button, select, input) {
	scroll-margin-block: 8rem;
}
@media (max-width: 420px) {
	.exhibit-dialog {
		padding-inline: 0.75rem;
	}
	.explore-page .exhibit-dialog .room-controls button {
		top: auto;
		bottom: 1rem;
		translate: none;
	}
	.location-list > li {
		padding: 1rem;
	}
	.exhibit-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (prefers-reduced-motion: reduce) {
	.explore-page * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
.explore-page button.site-button {
	cursor: pointer;
}
/* Room title card: fades in on entering a room, then away. */
.g-title-card {
	position: absolute;
	top: 18%;
	left: 50%;
	display: grid;
	justify-items: center;
	gap: 0.35rem;
	padding: 0.8rem 2rem 0.9rem;
	transform: translate(-50%, 0.4rem);
	border-block: 1px solid transparent;
	border-image: var(--lot-metallic-border) 1;
	background: radial-gradient(ellipse at center, #100d0fd9 0%, #100d0f99 60%, transparent 100%);
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.g-title-card.is-shown {
	opacity: 1;
	transform: translate(-50%, 0);
}
.g-title-card__kicker:empty {
	display: none;
}
.g-title-card__kicker {
	color: #d9cfb8;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
}
.g-title-card__title {
	font-family: var(--lot-font-display);
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--lot-shine);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 0 #000a);
}
.explore-embed {
	padding-block: 0;
}
/* With the chart showing, its panel already describes the chosen location. */
.map-stage:not([hidden]) ~ .map-location {
	display: none;
}
@media (max-width: 600px) {
	.galaxy-toolbar {
		position: static;
		padding: 0.5rem;
		border-bottom: 1px solid rgba(196, 163, 90, 0.35);
	}
	.galaxy-search {
		flex: 1 1 100%;
	}
	.galaxy-search input {
		width: 100%;
	}
}
