﻿
.asmon-archives {
	--asmon-folder-alert-badge-size: 15px;
	--archives-bg: var(--asmon-block-bg, #0e0b08);
	--archives-accent: var(--asmon-block-accent, #c9a84c);
	--archives-text: var(--asmon-block-text, #9a8b72);
	--archives-bright: var(--asmon-block-text-bright, #e8dec8);
	--archives-line: var(--asmon-block-line, #1a1208);
	--archives-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--archives-panel: rgba(12, 10, 8, 0.94);
	--archives-scroll-card: 13.35rem;
	--archives-scroll-gap: 0.85rem;
	--archives-scroll-cols: 6;
	--archives-scroll-visible-rows: 1.5;
	--archives-scroll-view-h: calc(
		var(--archives-scroll-card) * var(--archives-scroll-visible-rows) +
			var(--archives-scroll-gap) * (var(--archives-scroll-visible-rows) - 1)
	);
	--archives-vault-pad: 0.75rem;
	--archives-vault-h: calc(var(--archives-scroll-view-h) + var(--archives-vault-pad) * 2);
	--archives-mosaic-cols: 7;
	--archives-mosaic-rows: 2;
	--archives-mosaic-row-h: var(--archives-scroll-card);
	--archives-mosaic-view-h: calc(
		var(--archives-mosaic-row-h) * var(--archives-mosaic-rows) +
			var(--archives-scroll-gap) * (var(--archives-mosaic-rows) - 1) +
			var(--archives-vault-pad) * 2
	);
	--archives-list-cols: 3;
	--archives-list-row: 4rem;
	--archives-list-thumb: 4rem;
	--archives-list-cols-hl: 4;
	--archives-list-rows-hl: 5;
	position: relative;
	min-height: min(100vh, 100dvh);
	padding: clamp(2rem, 6vh, 3.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
	color: var(--archives-text);
	overflow: hidden;
}

.asmon-archives--with-page-hero {
	min-height: 0;
	padding: 0;
}

.asmon-archives--template-full {
	display: flex;
	flex: 0 1 auto;
	flex-direction: column;
	min-height: 0;
	height: auto;
	max-height: none;
	padding: 0;
	overflow: hidden;
}

.asmon-archives--template-full .asmon-archives__hall {
	flex: 0 1 auto;
	min-height: 0;
	height: auto;
	max-height: none;
	border-left: none;
	border-right: none;
}

.asmon-archives__fx {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.asmon-archives__fx::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.045;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 200px 200px;
}

.asmon-archives__fx::after {
	content: "";
	position: absolute;
	inset: -20% -10%;
	background:
		radial-gradient(ellipse 55% 40% at 15% 20%, rgba(201, 168, 76, 0.14), transparent 60%),
		radial-gradient(ellipse 50% 45% at 85% 75%, rgba(201, 168, 76, 0.1), transparent 62%),
		linear-gradient(
			105deg,
			transparent 40%,
			rgba(201, 168, 76, 0.06) 50%,
			transparent 60%
		);
	animation: asmon-archives-glow 12s ease-in-out infinite alternate;
}

@keyframes asmon-archives-glow {
	from { opacity: 0.75; transform: scale(1); }
	to { opacity: 1; transform: scale(1.05); }
}

.asmon-archives__hall {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	align-content: stretch;
	width: 100%;
	min-height: 0;
	height: auto;
	border-top: 1px solid rgba(201, 168, 76, 0.22);
	border-bottom: 1px solid rgba(201, 168, 76, 0.22);
	background: rgba(26, 18, 8, 0.85);
	overflow: hidden;
}

.asmon-archives__hall-aura {
	position: absolute;
	inset: -3px;
	z-index: 0;
	pointer-events: none;
	border: 1px solid rgba(201, 168, 76, 0.28);
	box-shadow:
		0 0 28px rgba(201, 168, 76, 0.14),
		0 0 56px rgba(201, 168, 76, 0.08),
		inset 0 0 36px rgba(201, 168, 76, 0.06);
	animation: asmon-archives-hall-breathe 5.5s ease-in-out infinite;
}

@keyframes asmon-archives-hall-breathe {
	0%, 100% {
		opacity: 0.55;
		transform: scale(1);
		box-shadow:
			0 0 20px rgba(201, 168, 76, 0.1),
			0 0 40px rgba(201, 168, 76, 0.06),
			inset 0 0 28px rgba(201, 168, 76, 0.04);
	}

	50% {
		opacity: 1;
		transform: scale(1.006);
		box-shadow:
			0 0 36px rgba(201, 168, 76, 0.22),
			0 0 72px rgba(201, 168, 76, 0.12),
			inset 0 0 48px rgba(201, 168, 76, 0.09);
	}
}

.asmon-archives__hall > :not(.asmon-archives__hall-aura) {
	position: relative;
	z-index: 1;
}

.asmon-archives--template-full .asmon-archives__chambers {
	flex: 1 1 auto;
	min-width: 0;
	height: auto;
	min-height: 0;
}

.asmon-archives--template-full .asmon-archives__chamber {
	height: auto;
	min-height: 0;
}

.asmon-archives--template-full .asmon-archives__chamber-inner {
	flex: 1 1 auto;
	height: auto;
	min-height: 0;
	overflow: visible;
}

.asmon-archives__wings-stack {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	align-self: stretch;
	width: clamp(14rem, 28vw, 22rem);
	min-width: 14rem;
	max-width: 22rem;
	min-height: 0;
	background: rgba(26, 18, 8, 0.9);
	position: relative;
	z-index: 2;
	isolation: isolate;
}

.asmon-archives__mobile-picker-label {
	display: none;
	margin: 0;
}

.asmon-archives__wings {
	flex: 1 1 auto;
	align-self: stretch;
	width: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin: 0;
	padding: 0;
	background: transparent;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(201, 168, 76, 0.35) transparent;
}

.asmon-archives__wings::-webkit-scrollbar {
	width: 6px;
}

.asmon-archives__wings::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: rgba(201, 168, 76, 0.35);
}

.asmon-archives__wings::-webkit-scrollbar-track {
	background: transparent;
}

.asmon-archives__wings-stack {
	--asmon-archives-wing-visible: 4;
}

.asmon-archives__wings-stack .asmon-archives__wings.asmon-archives__wings--scrollable {
	max-height: calc(7.5rem * var(--asmon-archives-wing-visible) + 3px);
}

.asmon-archives__wings-stack .asmon-archives__wings.asmon-archives__wings--scrollable .asmon-archives__wing-slot {
	flex: 0 0 auto;
}


@media (max-width: 900px) {
	.asmon-archives__hall {
		flex-direction: column;
		min-height: 0;
		height: auto;
	}

	.asmon-archives--template-full .asmon-archives__hall {
		min-height: 0;
		height: auto;
	}

	.asmon-archives__wings-stack {
		width: 100%;
		min-width: 0;
		max-width: none;
		flex-shrink: 0;
		max-height: min(48vh, 20.5rem);
		border-bottom: 1px solid rgba(201, 168, 76, 0.24);
		background: linear-gradient(180deg, rgba(28, 22, 15, 0.98) 0%, rgba(18, 14, 10, 0.99) 100%);
		box-shadow: inset 0 -14px 28px -22px rgba(0, 0, 0, 0.55);
	}

	.asmon-archives__mobile-picker-label {
		display: block;
		margin: 0;
		padding: 0.6rem 0.85rem 0.45rem;
		font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
		font-size: 0.5625rem;
		letter-spacing: 0.24em;
		text-transform: uppercase;
		text-align: center;
		color: rgba(236, 224, 195, 0.96);
		background: linear-gradient(180deg, rgba(36, 28, 18, 1) 0%, rgba(26, 20, 14, 0.97) 100%);
		border-bottom: 1px solid rgba(201, 168, 76, 0.2);
	}

	.asmon-archives__wings {
		flex: 1 1 auto;
		min-height: 0;
		flex-direction: column;
		width: 100%;
		max-width: none;
		min-width: 0;
		gap: 0.5rem;
		padding: 0.55rem 0.65rem 0.65rem;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior-y: contain;
		scroll-snap-type: none;
		scroll-padding-inline: 0;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(201, 168, 76, 0.35) transparent;
	}

	.asmon-archives__wings-stack .asmon-archives__wings.asmon-archives__wings--scrollable {
		max-height: none;
	}

	.asmon-archives__wings-stack .asmon-archives__wings.asmon-archives__wings--scrollable .asmon-archives__wing-slot {
		flex: 0 0 auto;
	}

	.asmon-archives__wings::-webkit-scrollbar {
		width: 5px;
		height: auto;
	}

	.asmon-archives__wings::-webkit-scrollbar-thumb {
		border-radius: 4px;
		background: rgba(201, 168, 76, 0.35);
	}

	.asmon-archives__wing-slot {
		flex: 0 0 auto;
		width: 100%;
		min-height: 5.5rem;
		scroll-snap-align: unset;
		border-radius: 3px;
	}

	.asmon-archives__wing-slot.is-active {
		flex-grow: 0;
		width: 100%;
	}

	.asmon-archives__wing-slot.is-active .asmon-archives__wing {
		box-shadow:
			inset 0 0 0 2px rgba(201, 168, 76, 0.78),
			inset 0 0 48px rgba(201, 168, 76, 0.14),
			0 4px 20px rgba(0, 0, 0, 0.38);
	}

	.asmon-archives__wing-body {
		min-height: 5.25rem;
		justify-content: center;
		padding: 0.7rem 1rem 0.7rem 1.1rem;
	}

	.asmon-archives__wing-slot.is-active:has(.asmon-archives__wing-actions) .asmon-archives__wing-body {
		padding-right: calc(16px + 1.85rem + 0.85rem);
	}

	.asmon-archives__wing-lead {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.asmon-archives.is-engaged .asmon-archives__wing-slot:not(.is-active) {
		opacity: 0.9;
	}

	.asmon-archives.is-engaged .asmon-archives__wing-slot:not(.is-active) .asmon-archives__wing {
		filter: saturate(0.88) brightness(0.96);
	}

	.asmon-archives__chambers {
		flex: 1 1 auto;
		width: 100%;
		min-height: 0;
		height: auto;
	}

	.asmon-archives__chamber-inner {
		padding:
			calc(1rem + var(--asmon-chamber-tip-space, 2.125rem))
			0.85rem
			1.25rem;
	}

	.asmon-archives__chamber-head {
		padding-right: 4.25rem;
		margin-top: calc(-1 * var(--asmon-chamber-tip-space, 2.125rem));
		margin-bottom: 0.85rem;
		padding-bottom: 0.65rem;
	}

	.asmon-archives__chamber-head .asmon-archives__view-toggle {
		bottom: 0.15rem;
	}

	.asmon-archives__chamber-title {
		font-size: clamp(1.15rem, 5vw, 1.45rem);
	}
}


.asmon-archives__wing-slot {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-width: 0;
	min-height: 7.5rem;
	opacity: 0;
	transform: translateX(-16px);
	transition:
		flex 0.55s var(--archives-ease),
		opacity 0.45s ease,
		transform 0.55s var(--archives-ease);
}

.asmon-archives__wing-slot.reveal.is-visible {
	opacity: 1;
	transform: translateX(0);
	transition-delay: calc(var(--wing-i, 0) * 0.08s);
}

.asmon-archives__wing-slot.is-active {
	flex-grow: 1;
}

.asmon-archives__wing {
	position: relative;
	z-index: 2;
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: 7.5rem;
	padding: 0;
	border: 0;
	background: rgba(14, 11, 8, 0.96);
	color: inherit;
	cursor: pointer;
	overflow: hidden;
	text-align: left;
	transition: box-shadow 0.45s ease, filter 0.45s ease;
}

.asmon-archives__wing.reveal.is-visible {
	opacity: 1;
	transform: none;
}

.asmon-archives__wing-shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		118deg,
		transparent 30%,
		rgba(201, 168, 76, 0.18) 48%,
		transparent 62%
	);
	transform: translateX(-120%);
	transition: transform 0.7s var(--archives-ease);
	pointer-events: none;
	z-index: 2;
}

.asmon-archives__wing:hover .asmon-archives__wing-shine,
.asmon-archives__wing:focus-visible .asmon-archives__wing-shine {
	transform: translateX(120%);
}

.asmon-archives__wing-active {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(
		180deg,
		rgba(201, 168, 76, 0.32) 0%,
		rgba(255, 248, 230, 1) 45%,
		rgba(201, 168, 76, 0.32) 100%
	);
	box-shadow:
		0 0 14px rgba(201, 168, 76, 0.78),
		0 0 32px rgba(201, 168, 76, 0.48),
		4px 0 26px rgba(201, 168, 76, 0.28);
	opacity: 0;
	z-index: 4;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.asmon-archives__wing.is-active .asmon-archives__wing-active {
	opacity: 1;
	animation: asmon-archives-wing-active-pulse 3.4s ease-in-out infinite;
}

.asmon-archives__wing.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	top: 10%;
	bottom: 10%;
	width: min(36%, 4.5rem);
	background: radial-gradient(
		ellipse 100% 70% at 0% 50%,
		rgba(201, 168, 76, 0.42) 0%,
		rgba(201, 168, 76, 0.16) 45%,
		transparent 72%
	);
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	transition: opacity 0.4s ease;
}

.asmon-archives__wing.is-active::after {
	opacity: 1;
	animation: asmon-archives-wing-active-rays 3.8s ease-in-out infinite;
}

@keyframes asmon-archives-wing-active-pulse {
	0%,
	100% {
		box-shadow:
			0 0 10px rgba(201, 168, 76, 0.5),
			0 0 20px rgba(201, 168, 76, 0.28),
			2px 0 14px rgba(201, 168, 76, 0.16);
	}

	50% {
		box-shadow:
			0 0 18px rgba(201, 168, 76, 0.78),
			0 0 34px rgba(201, 168, 76, 0.42),
			4px 0 26px rgba(201, 168, 76, 0.28);
	}
}

@keyframes asmon-archives-wing-active-rays {
	0%,
	100% {
		opacity: 0.48;
		transform: scaleX(0.94);
	}

	50% {
		opacity: 0.88;
		transform: scaleX(1.06);
	}
}

.asmon-archives__wing-vignette {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.asmon-archives__wing-bg {
	position: absolute;
	inset: 0;
	background-image: var(--wing-image, none);
	background-size: cover;
	background-position: center;
	filter: sepia(0.45) brightness(0.32);
	opacity: 0.55;
	transition:
		opacity 0.45s ease,
		transform 0.65s var(--archives-ease),
		filter 0.45s ease;
}

.asmon-archives__wing:not([style*="--wing-image"]) .asmon-archives__wing-bg {
	background: linear-gradient(160deg, rgba(201, 168, 76, 0.12), rgba(0, 0, 0, 0.7));
	opacity: 1;
	filter: none;
}

.asmon-archives__wing-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(14, 11, 8, 0.95), rgba(14, 11, 8, 0.55));
}

.asmon-archives__wing-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 7.5rem;
	padding: 1rem 1.1rem;
}

.asmon-archives__wing-slot.is-active:has(.asmon-archives__wing-actions) .asmon-archives__wing-body {
	padding-right: calc(20px + 1.85rem + 1.15rem);
}

.asmon-archives__wing-kicker {
	display: block;
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: 0.5625rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--archives-accent);
}

.asmon-archives__wing-title {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: 1rem;
	line-height: 1.35;
	color: var(--archives-bright);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
	overflow-wrap: break-word;
}

.asmon-archives__wing-lead {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #c4b8a8;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.asmon-archives__wing-meta {
	display: block;
	margin-top: 0.55rem;
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: 0.5625rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--archives-accent);
}

.asmon-archives__wing:hover .asmon-archives__wing-bg,
.asmon-archives__wing:focus-visible .asmon-archives__wing-bg {
	opacity: 0.8;
	transform: scale(1.08);
	filter: sepia(0.25) brightness(0.55);
}

.asmon-archives__wing:hover,
.asmon-archives__wing:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.35);
}

.asmon-archives__wing-slot.is-active .asmon-archives__wing {
	box-shadow:
		inset 0 0 0 2px rgba(201, 168, 76, 0.72),
		inset 0 0 36px rgba(201, 168, 76, 0.14);
}

.asmon-archives__wing.is-active .asmon-archives__wing-title {
	color: #f4ecd8;
}

.asmon-archives__wing.is-active .asmon-archives__wing-kicker,
.asmon-archives__wing.is-active .asmon-archives__wing-meta {
	color: #e0c878;
}

.asmon-archives__wing.is-active .asmon-archives__wing-bg {
	opacity: 0.9;
	filter: sepia(0.2) brightness(0.65);
	animation: asmon-archives-ken 14s ease-in-out infinite alternate;
}

@keyframes asmon-archives-ken {
	from { transform: scale(1.04); }
	to { transform: scale(1.1); }
}

.asmon-archives.is-engaged .asmon-archives__wing-slot:not(.is-active) {
	opacity: 0.72;
}



.asmon-archives__chambers {
	position: relative;
	flex: 1 1 auto;
	align-self: stretch;
	display: block;
	min-width: 0;
	min-height: 0;
	height: auto;
	background: var(--archives-panel);
	overflow: hidden;
}

.asmon-archives__chamber {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateX(12px);
	pointer-events: none;
	transition:
		opacity 0.45s var(--archives-ease),
		transform 0.5s var(--archives-ease);
}

.asmon-archives__chamber.is-active {
	position: relative;
	left: auto;
	top: auto;
	right: auto;
	bottom: auto;
	height: auto;
	min-height: 0;
	flex: none;
	overflow: hidden;
	display: flex;
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
	z-index: 1;
}

.asmon-archives__chamber.is-leaving {
	opacity: 0;
	transform: translateX(-14px);
	z-index: 0;
}

.asmon-archives__chamber[hidden] {
	display: none;
}

.asmon-archives__chamber-bg {
	position: absolute;
	inset: 0;
	min-height: 100%;
	background-size: cover;
	background-position: center;
	filter: sepia(0.3) brightness(0.22);
	transform: scale(1.04);
	transition: transform 10s ease;
}

@keyframes asmon-archives-highlight-breathe {
	0%,
	100% {
		opacity: 0.4;
		transform: scale(0.9);
	}
	50% {
		opacity: 0.9;
		transform: scale(1.08);
	}
}

.asmon-archives__chamber.is-active .asmon-archives__chamber-bg {
	animation: asmon-archives-ken 18s ease-in-out infinite alternate;
}

.asmon-archives__chamber-head.reveal.is-visible {
	animation: asmon-archives-head-in 0.7s var(--archives-ease) both;
}

@keyframes asmon-archives-head-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.asmon-archives__chamber-bg--empty {
	background: linear-gradient(135deg, rgba(22, 18, 13, 1), rgba(8, 6, 4, 1));
	filter: none;
}

.asmon-archives__chamber-veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(12, 10, 8, 0.97) 0%, rgba(12, 10, 8, 0.9) 38%, rgba(12, 10, 8, 0.82) 100%),
		radial-gradient(ellipse 80% 60% at 70% 100%, rgba(201, 168, 76, 0.08), transparent 55%);
}

.asmon-archives__chamber-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	--asmon-chamber-tip-space: 2.125rem;
	padding:
		calc(clamp(1rem, 2.5vw, 1.5rem) + var(--asmon-chamber-tip-space))
		clamp(1rem, 2.5vw, 1.5rem)
		clamp(1rem, 2.5vw, 1.5rem);
	overflow: visible;
	background: linear-gradient(180deg, rgba(12, 10, 8, 0.35) 0%, rgba(12, 10, 8, 0.15) 100%);
}

.asmon-archives__vault-wrap {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-height: 0;
	overflow: hidden;
}

.asmon-archives__vault-foot {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.35rem;
	margin-top: 0.35rem;
	padding: 0;
}

.asmon-archives__vault-foot .asmon-archives__repository-nav {
	position: relative;
	left: auto;
	bottom: auto;
	z-index: 5;
	margin: 0;
	transform: none;
}

.asmon-archives__vault-foot .asmon-archives__location-stats {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 0;
}

.asmon-archives--template-full .asmon-archives__chamber.is-active .asmon-archives__chamber-inner {
	flex: 1 1 auto;
	min-height: 0;
}

.asmon-archives__chamber-head {
	position: relative;
	z-index: 6;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	align-items: stretch;
	gap: 0;
	margin-top: calc(-1 * var(--asmon-chamber-tip-space, 2.125rem));
	margin-bottom: clamp(0.75rem, 2vw, 1rem);
	padding-right: 6rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid rgba(201, 168, 76, 0.2);
	overflow: visible;
	min-height: 4.25rem;
}

.asmon-archives__chamber-head-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: visible;
}

.asmon-archives__chamber-head .asmon-archives__view-toggle {
	position: absolute;
	right: 0;
	bottom: 0.2rem;
	z-index: 7;
}

.asmon-archives__view-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.asmon-archives__view-toggle .asmon-archives__view-btn {
	width: 2.4rem;
	height: 2.4rem;
}

.asmon-archives__view-toggle .asmon-archives__view-btn-icon {
	width: 1.15rem;
	height: 1.15rem;
}

.asmon-archives__view-toggle .asmon-archives__view-btn-icon--bulk {
	width: 1.35rem;
	height: 1.35rem;
}

.asmon-archives__view-toggle .asmon-archives__view-btn-halo {
	inset: -0.5rem;
}

.asmon-archives__view-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: rgba(201, 168, 76, 0.88);
	cursor: pointer;
	transition:
		opacity 0.32s ease,
		transform 0.35s var(--archives-ease),
		color 0.25s ease,
		filter 0.3s ease;
	filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}

.asmon-archives__view-btn-halo {
	position: absolute;
	inset: -0.4rem;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(201, 168, 76, 0.28) 0%,
		rgba(201, 168, 76, 0.06) 52%,
		transparent 72%
	);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.asmon-archives__view-btn-icon {
	position: relative;
	z-index: 1;
	display: block;
}

.asmon-archives__view-btn-icon--bulk {
	width: 1.125rem;
	height: 1.125rem;
}

.asmon-archives__repository-nav-btn {
	width: 2rem;
	height: 2rem;
	padding: 0;
	line-height: 0;
}

.asmon-archives__repository-nav-btn .asmon-archives__view-btn-icon--nav {
	display: block;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	margin: 0;
	overflow: visible;
}

.asmon-archives__bulk-download-btn {
	position: relative;
}

.asmon-archives__bulk-download-btn[hidden] {
	display: none !important;
}

.asmon-archives__view-btn-tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 0.55rem);
	z-index: 40;
	width: max-content;
	max-width: 12rem;
	padding: 0.35rem 0.55rem;
	border: 1px solid rgba(201, 168, 76, 0.42);
	background: rgba(14, 11, 8, 0.96);
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--archives-bright);
	text-align: center;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(4px);
	transition:
		opacity 0.22s ease,
		transform 0.22s var(--archives-ease),
		visibility 0.22s ease;
}

.asmon-archives__chamber-head,
.asmon-archives__chamber-head-text,
.asmon-archives__repository-nav,
.asmon-archives__view-toggle {
	overflow: visible;
}

.asmon-archives__chamber .asmon-archives__view-btn-tip {
	z-index: 20;
}

.asmon-archives__bulk-download-btn:hover .asmon-archives__view-btn-tip,
.asmon-archives__bulk-download-btn:focus-visible .asmon-archives__view-btn-tip,
.asmon-archives__view-btn[data-view]:hover .asmon-archives__view-btn-tip,
.asmon-archives__view-btn[data-view]:focus-visible .asmon-archives__view-btn-tip,
.asmon-archives__repository-nav-btn:hover .asmon-archives__view-btn-tip,
.asmon-archives__repository-nav-btn:focus-visible .asmon-archives__view-btn-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.asmon-archives__view-btn:hover,
.asmon-archives__view-btn:focus-visible {
	color: rgba(244, 236, 216, 0.98);
	transform: scale(1.14);
	filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.55));
	outline: none;
}

.asmon-archives__view-btn:hover .asmon-archives__view-btn-halo,
.asmon-archives__view-btn:focus-visible .asmon-archives__view-btn-halo {
	opacity: 1;
	animation: asmon-archives-highlight-breathe 2.8s ease-in-out infinite;
}

.asmon-archives__view-btn.is-active {
	color: rgba(255, 248, 230, 0.98);
	transform: scale(1.06);
	filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.55));
}

.asmon-archives__view-btn.is-active .asmon-archives__view-btn-halo {
	opacity: 0.75;
	animation: asmon-archives-highlight-breathe 2.8s ease-in-out infinite;
}

.asmon-archives__chamber-label {
	margin: 0 0 0.35rem;
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: 0.5625rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--archives-accent);
}

.asmon-archives__chamber-title {
	margin: 0;
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: clamp(1.35rem, 3.5vw, 1.85rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--archives-bright);
	overflow: visible;
	min-height: 1.35em;
}

.asmon-archives__chamber-lead {
	margin: 0.5rem 0 0;
	max-width: 48ch;
	font-family: var(--asmon-font-body, "Crimson Pro", Georgia, serif);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.6;
	color: #c4b8a8;
}

.asmon-archives__vault,
.asmon-archives__highlight-vault {
	position: relative;
	z-index: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(201, 168, 76, 0.28);
	background:
		linear-gradient(180deg, rgba(8, 6, 4, 0.78), rgba(12, 10, 8, 0.92));
	box-shadow:
		inset 0 1px 0 rgba(201, 168, 76, 0.12),
		inset 0 0 28px rgba(0, 0, 0, 0.4),
		0 0 18px rgba(201, 168, 76, 0.06);
	animation: asmon-archives-vault-halo 5.5s ease-in-out infinite alternate;
}

.asmon-archives__location-stats {
	margin: 15px 0 0 0;
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: 0.5625rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--archives-accent);
	text-align: right;
	white-space: nowrap;
	pointer-events: none;
	font-size:10px;
}

.asmon-archives__vault {
	flex: 0 0 auto;
	min-height: var(--archives-vault-h);
	height: var(--archives-vault-h);
	max-height: var(--archives-vault-h);
}

.asmon-archives__highlight-vault {
	flex: 1 1 auto;
	min-height: var(--archives-mosaic-view-h);
	max-height: var(--archives-mosaic-view-h);
}

.asmon-archives__vault::before,
.asmon-archives__highlight-vault::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image: linear-gradient(
		100deg,
		transparent 0%,
		rgba(255, 248, 228, 0.04) 32%,
		rgba(255, 252, 245, 0.14) 50%,
		rgba(255, 248, 228, 0.04) 68%,
		transparent 100%
	);
	background-size: 42% 100%;
	background-repeat: no-repeat;
	background-position: -42% 0;
	animation: asmon-archives-vault-shine 18s ease-in-out infinite;
	opacity: 0.85;
}

.asmon-archives__vault::after,
.asmon-archives__highlight-vault::after {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: 1;
	pointer-events: none;
	box-shadow:
		0 0 0 1px rgba(201, 168, 76, 0.1),
		0 0 22px rgba(201, 168, 76, 0.08),
		inset 0 0 20px rgba(201, 168, 76, 0.03);
	animation: asmon-archives-vault-rim 4s ease-in-out infinite alternate;
}

.asmon-archives__highlight-vault .asmon-archives__highlight-mosaic {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: var(--archives-vault-pad);
	gap: var(--archives-scroll-gap);
	background: transparent;
}

@keyframes asmon-archives-vault-halo {
	from {
		border-color: rgba(201, 168, 76, 0.24);
		box-shadow:
			inset 0 1px 0 rgba(201, 168, 76, 0.1),
			inset 0 0 28px rgba(0, 0, 0, 0.42),
			0 0 14px rgba(201, 168, 76, 0.04);
	}

	to {
		border-color: rgba(232, 210, 150, 0.38);
		box-shadow:
			inset 0 1px 0 rgba(201, 168, 76, 0.16),
			inset 0 0 28px rgba(0, 0, 0, 0.35),
			0 0 26px rgba(201, 168, 76, 0.12);
	}
}

@keyframes asmon-archives-vault-shine {
	0%,
	70%,
	100% {
		background-position: -42% 0;
	}

	35% {
		background-position: 142% 0;
	}
}

@keyframes asmon-archives-vault-rim {
	from {
		box-shadow:
			0 0 0 1px rgba(201, 168, 76, 0.08),
			0 0 16px rgba(201, 168, 76, 0.05),
			inset 0 0 16px rgba(201, 168, 76, 0.02);
	}

	to {
		box-shadow:
			0 0 0 1px rgba(255, 236, 200, 0.18),
			0 0 28px rgba(201, 168, 76, 0.11),
			inset 0 0 22px rgba(201, 168, 76, 0.05);
	}
}

.asmon-archives--template-full .asmon-archives__chambers {
	min-height: calc(var(--archives-vault-h) + clamp(5.5rem, 14vh, 8.5rem));
}

.asmon-archives--template-full .asmon-archives__vault {
	flex: 0 0 auto;
	min-height: var(--archives-vault-h);
	height: var(--archives-vault-h);
	max-height: var(--archives-vault-h);
}

.asmon-archives--template-full .asmon-archives__scrolls {
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	max-height: 100%;
}

.asmon-archives__vault--empty {
	align-items: center;
	justify-content: center;
}

.asmon-archives__vault--empty .asmon-archives__empty {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	margin: 0;
	padding: 1.5rem;
	border: none;
	background: transparent;
	box-shadow: none;
	text-align: center;
}

.asmon-archives__vault--empty .asmon-archives__empty p {
	max-width: 36ch;
	margin: 0 auto;
}

.asmon-archives__scrolls {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: repeat(var(--archives-scroll-cols), minmax(0, 1fr));
	grid-auto-rows: var(--archives-scroll-card);
	gap: var(--archives-scroll-gap);
	align-items: stretch;
	align-content: start;
	width: 100%;
	min-height: 0;
	max-height: var(--archives-scroll-view-h);
	height: var(--archives-scroll-view-h);
	margin: 0;
	padding: var(--archives-vault-pad);
	list-style: none;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(201, 168, 76, 0.5) rgba(0, 0, 0, 0.2);
}

@media (max-width: 1100px) {
	.asmon-archives__scrolls {
		--archives-scroll-cols: 4;
	}
}

@media (max-width: 900px) {
	.asmon-archives {
		--archives-vault-pad: 0.6rem;
	}

	.asmon-archives__scrolls {
		--archives-scroll-cols: 2;
	}
}

.asmon-archives__scrolls::-webkit-scrollbar {
	width: 6px;
}

.asmon-archives__scrolls::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: rgba(201, 168, 76, 0.38);
}

/* Mode liste compact (3+ colonnes) */
.asmon-archives__scrolls--list {
	--archives-scroll-cols: var(--archives-list-cols);
	grid-auto-rows: var(--archives-list-row);
	gap: 0.42rem;
}

.asmon-archives__scrolls--list .asmon-archives__scroll,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-item {
	height: auto;
	min-height: var(--archives-list-row);
	max-height: none;
}

.asmon-archives__scrolls--list .asmon-archives__scroll-link,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link {
	flex-direction: row;
	align-items: stretch;
	min-height: var(--archives-list-row);
	max-height: var(--archives-list-row);
	overflow: hidden;
}

.asmon-archives__scrolls--list .asmon-archives__scroll-link.has-archive-tip:hover,
.asmon-archives__scrolls--list .asmon-archives__scroll-link.has-archive-tip:focus-visible,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link.has-archive-tip:hover,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link.has-archive-tip:focus-visible {
	z-index: 3;
}

.asmon-archives__scrolls--list .asmon-archives__scroll-preview,
.asmon-archives__scrolls--list .asmon-archives__scroll-preview--pdf,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link .asmon-archives__scroll-preview,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link .asmon-archives__scroll-preview--pdf {
	flex: 0 0 var(--archives-list-thumb);
	width: var(--archives-list-thumb);
	height: 100%;
	min-height: var(--archives-list-row);
	max-height: var(--archives-list-row);
	align-self: stretch;
	border-bottom: none;
	border-right: 1px solid rgba(201, 168, 76, 0.18);
}

.asmon-archives__scrolls--list .asmon-archives__scroll-preview-img,
.asmon-archives__scrolls--list .asmon-archives__scroll-preview--pdf object,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link .asmon-archives__scroll-preview-img,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link .asmon-archives__scroll-preview--pdf object {
	height: 100%;
	min-height: var(--archives-list-row);
	max-height: var(--archives-list-row);
	object-position: center center;
	transform: scale(1.12);
}

.asmon-archives__scrolls--list .asmon-archives__scroll-body,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link .asmon-archives__scroll-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	min-height: var(--archives-list-row);
	padding: 0.28rem 0.55rem 0.28rem 0.6rem;
}

.asmon-archives__scrolls--list .asmon-archives__scroll-name,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link .asmon-archives__scroll-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.94rem;
	line-height: 1.35;
}

.asmon-archives__scrolls--list .asmon-archives__scroll-seal,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link .asmon-archives__scroll-seal {
	position: static;
	flex: 0 0 auto;
	align-self: center;
	min-width: 2.5rem;
	padding: 0.14rem 0.4rem;
	font-size: 0.64rem;
}

.asmon-archives__scrolls--list .asmon-archives__scroll-meta,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-link .asmon-archives__scroll-meta {
	flex: 0 0 auto;
	align-self: center;
}

/* Info-bulle liste : bandeau compact sur la zone texte (évite le clipping du conteneur) */
.asmon-archives__scrolls--list .asmon-archives__scroll-tip,
.asmon-archives__highlight-mosaic--list .asmon-archives__scroll-tip {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: var(--archives-list-thumb);
	z-index: 30;
	width: auto;
	max-width: none;
	height: auto;
	padding: 0.32rem 0.55rem 0.32rem 0.45rem;
	font-size: 0.72rem;
	line-height: 1.3;
	text-align: left;
	transform: none;
	box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.38);
}

.asmon-archives__scrolls--list .asmon-archives__scroll-link.has-archive-tip:hover .asmon-archives__scroll-tip,
.asmon-archives__scrolls--list .asmon-archives__scroll-link.has-archive-tip:focus-visible .asmon-archives__scroll-tip,
.asmon-archives__highlight-mosaic--list .asmon-archives__scroll-link.has-archive-tip:hover .asmon-archives__scroll-tip,
.asmon-archives__highlight-mosaic--list .asmon-archives__scroll-link.has-archive-tip:focus-visible .asmon-archives__scroll-tip {
	transform: none;
}

@media (min-width: 1200px) {
	.asmon-archives__scrolls--list {
		--archives-list-cols: 4;
	}
}

@media (max-width: 1100px) {
	.asmon-archives__scrolls--list {
		--archives-list-cols: 3;
	}
}

@media (max-width: 900px) {
	.asmon-archives__scrolls--list {
		--archives-list-cols: 2;
	}
}

.asmon-archives__scroll {
	position: relative;
	display: block;
	width: 100%;
	height: var(--archives-scroll-card);
	min-height: var(--archives-scroll-card);
	max-height: var(--archives-scroll-card);
	margin: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(16px);
	animation: asmon-archives-scroll-in 0.55s var(--archives-ease) forwards;
}

.asmon-archives__chamber.is-active .asmon-archives__scroll:nth-child(1) { animation-delay: 0.05s; }
.asmon-archives__chamber.is-active .asmon-archives__scroll:nth-child(2) { animation-delay: 0.1s; }
.asmon-archives__chamber.is-active .asmon-archives__scroll:nth-child(3) { animation-delay: 0.15s; }
.asmon-archives__chamber.is-active .asmon-archives__scroll:nth-child(4) { animation-delay: 0.2s; }
.asmon-archives__chamber.is-active .asmon-archives__scroll:nth-child(n + 5) { animation-delay: 0.25s; }

@keyframes asmon-archives-scroll-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.asmon-archives__scroll-link {
	--archives-card-flare-cycle: 18s;
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 100%;
	max-height: 100%;
	border: 1px solid rgba(201, 168, 76, 0.22);
	background: linear-gradient(165deg, rgba(22, 18, 13, 0.92), rgba(10, 8, 6, 0.88));
	box-shadow:
		inset 0 1px 0 rgba(201, 168, 76, 0.1),
		0 12px 28px rgba(0, 0, 0, 0.35);
	color: var(--archives-bright);
	text-decoration: none;
	cursor: pointer;
	transition:
		border-color 0.3s ease,
		box-shadow 0.35s ease,
		color 0.25s ease;
}

/* Reflet sur le pourtour — même esprit que le fil d’Ariane / lightbox */
.asmon-archives__scroll-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	box-sizing: border-box;
	padding: 1px;
	pointer-events: none;
	overflow: hidden;
	opacity: 0;
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	background-image: linear-gradient(
		100deg,
		transparent 0%,
		rgba(255, 248, 228, 0.1) 34%,
		rgba(255, 252, 245, 0.38) 50%,
		rgba(255, 248, 228, 0.1) 66%,
		transparent 100%
	);
	background-size: 48% 100%;
	background-repeat: no-repeat;
	background-position: -48% 0;
	transition: opacity 0.35s ease;
}

.asmon-archives__scroll-link:hover,
.asmon-archives__scroll-link:focus-visible {
	border-color: rgba(201, 168, 76, 0.5);
	color: var(--archives-accent);
	box-shadow:
		inset 0 0 0 1px rgba(201, 168, 76, 0.15),
		0 16px 32px rgba(0, 0, 0, 0.45);
	outline: none;
}

.asmon-archives__scroll-link:hover::after,
.asmon-archives__scroll-link:focus-visible::after {
	opacity: 1;
	animation: asmon-archives-card-edge-flare var(--archives-card-flare-cycle) linear infinite;
}

@keyframes asmon-archives-card-edge-flare {
	0% {
		background-position: -48% 0;
	}

	38% {
		background-position: 148% 0;
	}

	76%,
	100% {
		background-position: -48% 0;
	}
}

.asmon-archives__scroll-tip {
	position: absolute;
	left: 50%;
	top: 7.35rem;
	z-index: 30;
	width: min(17rem, calc(100% - 1.25rem));
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(201, 168, 76, 0.42);
	background: rgba(14, 11, 8, 0.96);
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--archives-bright);
	text-align: center;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(4px);
	transition:
		opacity 0.22s ease,
		transform 0.22s var(--archives-ease),
		visibility 0.22s ease;
}

/* Titres & info-bulles : 2 lignes max., extension toujours visible */
.asmon-archives__scroll-name,
.asmon-archives__scroll-tip {
	display: -webkit-box;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.asmon-archives__scrolls--list .asmon-archives__scroll-tip,
.asmon-archives__highlight-mosaic--list .asmon-archives__scroll-tip {
	display: -webkit-box;
	text-align: left;
}

.asmon-archives__scroll-link.has-archive-tip:hover .asmon-archives__scroll-tip,
.asmon-archives__scroll-link.has-archive-tip:focus-visible .asmon-archives__scroll-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.asmon-archives__scroll-preview {
	display: block;
	flex: 0 0 auto;
	flex-shrink: 0;
	height: 8.5rem;
	min-height: 8.5rem;
	max-height: 8.5rem;
	overflow: hidden;
	border-bottom: 1px solid rgba(201, 168, 76, 0.16);
	background: rgba(0, 0, 0, 0.45);
}

.asmon-archives__scroll-preview--image,
.asmon-archives__scroll-preview--pdf {
	position: relative;
}

.asmon-archives__scroll-preview--image::before,
.asmon-archives__scroll-preview--pdf::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(180deg, rgba(14, 11, 8, 0.02) 0%, rgba(14, 11, 8, 0.55) 100%),
		radial-gradient(ellipse 90% 55% at 50% 12%, rgba(201, 168, 76, 0.1), transparent 62%);
	pointer-events: none;
	transition: opacity 0.45s ease;
}

.asmon-archives__scroll-preview--image::after,
.asmon-archives__scroll-preview--pdf::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	box-shadow: inset 0 0 32px rgba(14, 11, 8, 0.45);
	pointer-events: none;
	transition: box-shadow 0.45s ease;
}

.asmon-archives__scroll-preview-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	filter: sepia(0.48) brightness(0.58) contrast(1.08) saturate(0.78);
	opacity: 0.94;
	transform: scale(1.14);
	transition:
		transform 0.55s var(--archives-ease),
		filter 0.45s ease,
		opacity 0.45s ease;
}

.asmon-archives__scroll-link:hover .asmon-archives__scroll-preview--image::before,
.asmon-archives__scroll-link:focus-visible .asmon-archives__scroll-preview--image::before,
.asmon-archives__scroll-link:hover .asmon-archives__scroll-preview--pdf::before,
.asmon-archives__scroll-link:focus-visible .asmon-archives__scroll-preview--pdf::before {
	opacity: 0.35;
}

.asmon-archives__scroll-link:hover .asmon-archives__scroll-preview--image::after,
.asmon-archives__scroll-link:focus-visible .asmon-archives__scroll-preview--image::after,
.asmon-archives__scroll-link:hover .asmon-archives__scroll-preview--pdf::after,
.asmon-archives__scroll-link:focus-visible .asmon-archives__scroll-preview--pdf::after {
	box-shadow: inset 0 0 20px rgba(14, 11, 8, 0.25);
}

.asmon-archives__scroll-link:hover .asmon-archives__scroll-preview-img,
.asmon-archives__scroll-link:focus-visible .asmon-archives__scroll-preview-img {
	transform: scale(1.18);
	filter: sepia(0.18) brightness(0.92) contrast(1.05) saturate(1.15);
	opacity: 1;
}

.asmon-archives__scroll-preview--pdf {
	height: 8.5rem;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.45);
	border-bottom: 1px solid rgba(201, 168, 76, 0.16);
}

.asmon-archives__scroll-preview--pdf object {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0.94;
	filter: sepia(0.48) brightness(0.58) contrast(1.08) saturate(0.78);
	transform: scale(1.08);
	transition:
		transform 0.55s var(--archives-ease),
		filter 0.45s ease,
		opacity 0.45s ease;
}

.asmon-archives__scroll-link:hover .asmon-archives__scroll-preview--pdf object,
.asmon-archives__scroll-link:focus-visible .asmon-archives__scroll-preview--pdf object {
	transform: scale(1.12);
	filter: sepia(0.18) brightness(0.92) contrast(1.05) saturate(1.15);
	opacity: 1;
}

.asmon-archives__scroll-preview--file,
.asmon-archives__scroll-preview--empty {
	position: relative;
	height: 8.5rem;
	background:
		linear-gradient(165deg, rgba(32, 26, 18, 0.95), rgba(12, 10, 8, 0.98)),
		radial-gradient(ellipse 80% 60% at 50% 20%, rgba(201, 168, 76, 0.12), transparent 65%);
}

.asmon-archives__scroll-preview--file::before,
.asmon-archives__scroll-preview--empty::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		-12deg,
		transparent,
		transparent 10px,
		rgba(201, 168, 76, 0.03) 10px,
		rgba(201, 168, 76, 0.03) 11px
	);
	pointer-events: none;
}

.asmon-archives__scroll-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	min-height: 0;
	padding: 0.45rem 0.65rem 0.45rem 0.7rem;
}

.asmon-archives__scroll-name {
	flex: 1 1 auto;
	min-width: 0;
	align-self: center;
	font-size: 1rem;
	line-height: 1.35;
	text-align: left;
}

.asmon-archives__scroll-seal {
	position: static;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	z-index: 3;
	min-width: 2.65rem;
	padding: 0.18rem 0.45rem;
	border: 1px solid rgba(201, 168, 76, 0.35);
	background: rgba(14, 11, 8, 0.88);
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	color: var(--archives-accent);
	opacity: 0.95;
	pointer-events: none;
}

.asmon-archives__scroll-meta {
	position: relative;
	z-index: 4;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.24rem;
	align-self: center;
	min-width: 2.65rem;
	text-align: center;
}

.asmon-archives__scroll-download {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--archives-accent);
	cursor: pointer;
	pointer-events: auto;
}

.asmon-archives__scroll-download .asmon-archives__view-btn-icon--bulk {
	width: 1.2rem;
	height: 1.2rem;
}

.asmon-archives__scroll-download .asmon-archives__view-btn-tip {
	bottom: calc(100% + 0.35rem);
	font-size: 0.68rem;
}

.asmon-archives__scroll-download:hover,
.asmon-archives__scroll-download:focus-visible {
	outline: none;
}

.asmon-archives__scroll-info {
	flex-shrink: 0;
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 1px solid rgba(201, 168, 76, 0.35);
	border-radius: 50%;
	background: transparent;
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: 0.65rem;
	font-style: italic;
	color: var(--archives-accent);
	cursor: pointer;
}

.asmon-archives__scroll-info:hover,
.asmon-archives__scroll-info:focus-visible,
.asmon-archives__scroll-info.is-active {
	border-color: rgba(201, 168, 76, 0.6);
	background: rgba(201, 168, 76, 0.1);
	outline: none;
}

.asmon-archives__scroll-tooltip {
	position: fixed;
	z-index: 10050;
	max-width: min(20rem, calc(100vw - 2rem));
	padding: 0.55rem 0.75rem;
	border: 1px solid rgba(201, 168, 76, 0.35);
	background: rgba(14, 11, 8, 0.96);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--archives-bright);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease;
}

.asmon-archives__scroll-tooltip.is-tip-shown {
	opacity: 1;
	visibility: visible;
}

.asmon-archives__empty p {
	margin: 0;
	max-width: 32ch;
	font-size: 1.05rem;
	font-style: italic;
	line-height: 1.65;
	color: var(--archives-bright);
}

.asmon-archives .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 1s var(--archives-ease),
		transform 1s var(--archives-ease);
}

.asmon-archives .reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.asmon-archives.is-switching .asmon-archives__chambers {
	filter: brightness(0.92);
	transition: filter 0.35s ease;
}

.asmon-archives__scroll-preview--pdf-icon::before {
	content: "PDF";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--asmon-font-ui, system-ui, sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--asmon-accent, #c9a84c);
	opacity: 0.85;
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
	.asmon-archives__fx::before {
		display: none;
	}

	.asmon-archives__fx::after,
	.asmon-archives__hall-aura,
	.asmon-archives__wing.is-active .asmon-archives__wing-bg {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
	}

	.asmon-archives__scroll-preview-img,
	.asmon-archives__scroll-preview--pdf object {
		filter: none;
		transform: none;
		opacity: 1;
		transition: opacity 0.35s ease;
	}

	.asmon-archives__scroll-link:hover .asmon-archives__scroll-preview-img,
	.asmon-archives__scroll-link:focus-visible .asmon-archives__scroll-preview-img,
	.asmon-archives__scroll-link:hover .asmon-archives__scroll-preview--pdf object,
	.asmon-archives__scroll-link:focus-visible .asmon-archives__scroll-preview--pdf object {
		filter: none;
		transform: none;
	}

	.asmon-archives__wing-bg,
	.asmon-archives__chamber-bg {
		filter: none !important;
		animation: none !important;
		transform: none !important;
	}

	.asmon-archives .reveal {
		transition-duration: 0.45s;
	}

	.asmon-archives__scroll-title {
		font-size: clamp(0.95rem, 4vw, 1.1rem);
		line-height: 1.35;
	}

	.asmon-archives__scroll-excerpt {
		font-size: 0.9rem;
		line-height: 1.5;
	}
}

/* Mode focus collection → asmon-archives-highlight.css (desktop, chargement conditionnel) */

/* Mobile : lisibilité, scroll tactile, animations allégées */
@media (max-width: 900px) {
	.asmon-archives__scrolls,
	.asmon-archives__highlight-mosaic,
	.asmon-archives__wings {
		-webkit-overflow-scrolling: touch;
	}

	.asmon-archives__chamber:not(.is-active) {
		content-visibility: hidden;
		contain-intrinsic-size: auto 12rem;
	}

	.asmon-archives__vault::before,
	.asmon-archives__vault::after,
	.asmon-archives__highlight-vault::before,
	.asmon-archives__highlight-vault::after,
	.asmon-archives__hall-aura,
	.asmon-archives__wing.is-active .asmon-archives__wing-bg,
	.asmon-archives__chamber.is-active .asmon-archives__chamber-bg {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
	}

	.asmon-archives__highlight-frame::before,
	.asmon-archives__highlight.is-active .asmon-archives__highlight-frame {
		animation: none;
	}

	.asmon-archives__scrolls--list .asmon-archives__scroll-tip,
	.asmon-archives__highlight-mosaic--list .asmon-archives__scroll-tip {
		font-size: 0.68rem;
		line-height: 1.28;
		padding: 0.3rem 1.45rem 0.3rem 0.4rem;
	}

	.asmon-archives__scroll-link:hover::after,
	.asmon-archives__scroll-link:focus-visible::after {
		animation: none;
		opacity: 0.45;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asmon-archives__fx::before,
	.asmon-archives__fx::after,
	.asmon-archives__hall-aura,
	.asmon-archives__chamber-bg,
	.asmon-archives__wing.is-active,
	.asmon-archives__wing.is-active .asmon-archives__wing-bg,
	.asmon-archives__vault,
	.asmon-archives__vault::before,
	.asmon-archives__vault::after,
	.asmon-archives__highlight-vault,
	.asmon-archives__highlight-vault::before,
	.asmon-archives__highlight-vault::after {
		animation: none;
	}

	.asmon-archives__repository-nav.is-repository-nav-visible {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.asmon-archives__vault::before,
	.asmon-archives__highlight-vault::before {
		opacity: 0;
	}

	.asmon-archives__wing,
	.asmon-archives__chamber,
	.asmon-archives__scroll,
	.asmon-archives .reveal {
		transition: none;
		transform: none;
		opacity: 1;
		animation: none;
	}

	.asmon-archives__wing.reveal {
		opacity: 1;
		transform: none;
	}

	.asmon-archives__highlight-frame,
	.asmon-archives__highlight-backdrop,
	.asmon-archives__highlight-close,
	.asmon-archives__view-btn,
	.asmon-archives__view-btn-halo,
	.asmon-archives__folder-alert-badge::before,
	.asmon-archives__highlight-open,
	.asmon-archives__highlight-open-halo,
	.asmon-archives__collection-download,
	.asmon-archives__mosaic-link,
	.asmon-archives__mosaic-item,
	.asmon-archives__highlight-head,
	.asmon-archives__highlight-frame::before,
	.asmon-archives__wing.is-active .asmon-archives__wing-active,
	.asmon-archives__wing.is-active::after {
		transition: none;
		transform: none;
		animation: none;
		opacity: 1;
	}

	.asmon-archives__highlight.is-active .asmon-archives__highlight-frame {
		filter: drop-shadow(0 0 24px rgba(201, 168, 76, 0.38));
	}

	.asmon-archives__scroll-link:hover::after,
	.asmon-archives__scroll-link:focus-visible::after {
		animation: none;
		opacity: 0;
	}

	.asmon-archives__scroll--folder .asmon-archives__scroll-link:hover::after,
	.asmon-archives__scroll--folder .asmon-archives__scroll-link:focus-visible::after {
		animation: none;
		opacity: 0;
	}
}

/* Dossiers (collections) */
.asmon-archives__scroll-preview--folder {
	position: relative;
	background:
		linear-gradient(180deg, rgba(22, 18, 13, 0.92), rgba(10, 8, 6, 0.88)),
		radial-gradient(ellipse 85% 65% at 50% 38%, rgba(201, 168, 76, 0.14), transparent 68%);
}

.asmon-archives__folder-alert-badge {
	position: absolute;
	isolation: isolate;
	top: 0.4rem;
	right: 0.4rem;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.1em;
	min-height: 1.1em;
	color: rgba(255, 248, 230, 0.96);
	font-family: var(--asmon-font-display, "Cinzel", Georgia, serif);
	font-size: var(--asmon-folder-alert-badge-size, 15px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	pointer-events: none;
	filter: drop-shadow(0 0 6px rgba(255, 248, 230, 0.32))
		drop-shadow(0 0 10px rgba(201, 168, 76, 0.22));
}

.asmon-archives__folder-alert-badge::before {
	content: "";
	position: absolute;
	inset: -0.5rem;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(255, 248, 230, 0.14) 0%,
		rgba(201, 168, 76, 0.05) 52%,
		transparent 72%
	);
	opacity: 0.5;
	pointer-events: none;
	z-index: -1;
	animation: asmon-archives-highlight-breathe 2.8s ease-in-out infinite;
}

.asmon-archives__folder-illus {
	position: absolute;
	left: 50%;
	top: 54%;
	width: 13rem;
	height: 10.6rem;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.asmon-archives__folder-illus__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	transition:
		transform 0.45s var(--archives-ease),
		filter 0.35s ease;
}

.asmon-archives__folder-illus__stroke,
.asmon-archives__folder-illus__tab {
	fill: none;
	stroke: rgba(201, 168, 76, 0.72);
	stroke-width: 1.15;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	transition: stroke 0.35s ease;
}

.asmon-archives__folder-illus__tab {
	stroke-opacity: 0.55;
}

.asmon-archives__scroll--folder .asmon-archives__scroll-link:hover .asmon-archives__folder-illus__svg,
.asmon-archives__scroll--folder .asmon-archives__scroll-link:focus-visible .asmon-archives__folder-illus__svg {
	transform: translateY(-2px) scale(1.04);
	filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.35));
}

.asmon-archives__scroll--folder .asmon-archives__scroll-link:hover .asmon-archives__folder-illus__stroke,
.asmon-archives__scroll--folder .asmon-archives__scroll-link:focus-visible .asmon-archives__folder-illus__stroke,
.asmon-archives__scroll--folder .asmon-archives__scroll-link:hover .asmon-archives__folder-illus__tab,
.asmon-archives__scroll--folder .asmon-archives__scroll-link:focus-visible .asmon-archives__folder-illus__tab {
	stroke: rgba(232, 201, 106, 0.92);
}

.asmon-archives__scroll-seal--folder {
	font-size: 0.6rem;
	letter-spacing: 0.06em;
}

.asmon-archives__scroll--folder .asmon-archives__scroll-meta,
.asmon-archives__mosaic-item--folder .asmon-archives__scroll-meta {
	flex: 0 0 auto;
	align-self: center;
}

.asmon-archives__folder-open {
	cursor: pointer;
}

.asmon-archives__scrolls--list .asmon-archives__scroll--folder .asmon-archives__scroll-preview--folder,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-item--folder .asmon-archives__scroll-preview--folder {
	overflow: hidden;
}

.asmon-archives__scrolls--list .asmon-archives__scroll--folder .asmon-archives__folder-illus,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-item--folder .asmon-archives__folder-illus {
	width: calc(var(--archives-list-thumb) * 0.78);
	height: calc(var(--archives-list-thumb) * 0.62);
	top: 50%;
}

.asmon-archives__scrolls--list .asmon-archives__scroll--folder .asmon-archives__folder-alert-badge,
.asmon-archives__highlight-mosaic--list .asmon-archives__mosaic-item--folder .asmon-archives__folder-alert-badge {
	top: 0.28rem;
	right: 0.28rem;
}

.asmon-archives__chamber-title-text,
.asmon-archives__highlight-title-text {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	font: inherit;
	color: inherit;
	overflow: visible;
	min-height: 1.35em;
	padding: 0.28em 0;
	font-weight: 400;
}

.asmon-archives__repository-crumb-trail {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	overflow: visible;
}

.asmon-archives__chamber-collection-title[hidden],
.asmon-archives__highlight-collection-title[hidden] {
	display: none;
}

.asmon-archives__repository-nav {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	min-height: 1.85rem;
	vertical-align: middle;
}

.asmon-archives__repository-nav.is-repository-nav-visible {
	animation: asmon-archives-repository-nav-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes asmon-archives-repository-nav-in {
	from {
		opacity: 0;
		transform: scale(0.82) translateY(6px);
	}

	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.asmon-archives__repository-nav[hidden] {
	display: none !important;
}

.asmon-archives__chamber-title[hidden],
.asmon-archives__highlight-title[hidden] {
	display: none;
}

.asmon-archives__repository-crumb {
	position: relative;
	z-index: 0;
	display: inline-block;
	margin: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	overflow: visible;
}

.asmon-archives__repository-crumb:not(.asmon-archives__repository-crumb--current) {
	text-shadow: none;
	transition:
		color 0.14s ease-out,
		text-shadow 0.14s ease-out;
}

.asmon-archives__repository-crumb--root {
	cursor: pointer;
}

.asmon-archives__repository-crumb:not(.asmon-archives__repository-crumb--current):hover,
.asmon-archives__repository-crumb:not(.asmon-archives__repository-crumb--current):focus-visible {
	color: #f6edd4;
	outline: none;
	text-decoration: none;
	text-shadow:
		0 0 8px rgba(255, 232, 160, 0.92),
		0 0 18px rgba(201, 168, 76, 0.78),
		0 0 32px rgba(201, 168, 76, 0.52),
		0 0 48px rgba(201, 168, 76, 0.3),
		0 0 68px rgba(201, 168, 76, 0.14);
}

.asmon-archives__repository-crumb--current {
	cursor: default;
	color: var(--archives-bright);
	text-decoration:underline;
}

.asmon-archives__repository-crumb-sep {
	color : rgba(201, 168, 76, 0.88);
	user-select: none;
	font-weight: bold;
	padding: 0 5px;
}
