/**
 * Exposants Manager — front-end styles.
 * Visual idea: exhibition hall wayfinding. Stand plates carry the colour of
 * their space, everything else stays quiet so logos and names lead.
 */

.exm-root {
	--exm-space-1: #2547E8;
	--exm-space-2: #0E8F6E;
	--exm-ink: #14161A;
	--exm-radius: 14px;
	--exm-muted: #6B7280;
	--exm-line: rgba(20, 22, 26, 0.12);
	--exm-line-soft: rgba(20, 22, 26, 0.07);
	--exm-surface: #ffffff;
	--exm-tint: rgba(20, 22, 26, 0.04);
	--exm-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
	--exm-gap: 20px;
	--exm-cols: 3;

	color: var(--exm-ink);
	position: relative;
	container-type: inline-size;
}

.exm-root *,
.exm-root *::before,
.exm-root *::after {
	box-sizing: border-box;
}

.exm-root .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.exm-root :focus-visible {
	outline: 2px solid var(--exm-ink);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------------------------------------------------------------- toolbar */

.exm-toolbar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 14px 0 18px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--exm-line-soft);
	position: sticky;
	top: 0;
	z-index: 20;
	background: color-mix(in srgb, var(--exm-surface) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.exm-toolbar {
		background: rgba(255, 255, 255, 0.92);
	}
}

.exm-search {
	position: relative;
	display: flex;
	align-items: center;
}

.exm-search-icon {
	position: absolute;
	left: 16px;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--exm-muted);
	stroke-width: 1.8;
	stroke-linecap: round;
	pointer-events: none;
}

.exm-root input[type="search"] {
	width: 100%;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--exm-ink);
	background: var(--exm-surface);
	border: 1px solid var(--exm-line);
	border-radius: 999px;
	padding: 13px 44px 13px 44px;
	margin: 0;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.exm-root input[type="search"]:focus {
	border-color: var(--exm-ink);
	box-shadow: 0 0 0 3px var(--exm-tint);
	outline: none;
}

.exm-root input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.exm-search-clear {
	position: absolute;
	right: 8px;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: var(--exm-tint);
	color: var(--exm-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

/* Segmented control: one segment per exhibition space. */

.exm-seg {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: var(--exm-tint);
	border-radius: 999px;
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.exm-seg::-webkit-scrollbar {
	display: none;
}

.exm-seg-btn {
	--exm-seg: var(--exm-ink);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--exm-muted);
	background: transparent;
	border: 0;
	border-radius: 999px;
	padding: 9px 16px;
	cursor: pointer;
	transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.exm-seg-btn:hover {
	color: var(--exm-ink);
}

.exm-seg-btn.is-active {
	color: var(--exm-ink);
	background: var(--exm-surface);
	box-shadow: 0 1px 2px rgba(20, 22, 26, 0.14);
}

.exm-seg-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--exm-seg);
	flex: none;
}

.exm-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.exm-select {
	position: relative;
	display: inline-flex;
}

.exm-root .exm-select select {
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--exm-ink);
	background: var(--exm-surface);
	border: 1px solid var(--exm-line);
	border-radius: 999px;
	padding: 9px 34px 9px 15px;
	margin: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
	max-width: 100%;
}

.exm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	color: var(--exm-ink);
	background: var(--exm-surface);
	border: 1px solid var(--exm-line);
	border-radius: 999px;
	padding: 10px 17px;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.exm-btn:hover {
	border-color: var(--exm-ink);
	color: var(--exm-ink);
	text-decoration: none;
}

.exm-btn--primary {
	background: var(--exm-ink);
	border-color: var(--exm-ink);
	color: #fff;
}

.exm-btn--primary:hover {
	color: #fff;
	opacity: 0.9;
}

.exm-btn--fav svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linejoin: round;
}

.exm-btn--fav[aria-pressed="true"] {
	background: var(--exm-ink);
	border-color: var(--exm-ink);
	color: #fff;
}

.exm-btn--fav[aria-pressed="true"] svg {
	fill: currentColor;
}

.exm-fav-count {
	font-family: var(--exm-mono);
	font-size: 12px;
	min-width: 20px;
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--exm-tint);
	text-align: center;
}

.exm-btn--fav[aria-pressed="true"] .exm-fav-count {
	background: rgba(255, 255, 255, 0.2);
}

.exm-count {
	margin: 0;
	font-size: 13px;
	color: var(--exm-muted);
	letter-spacing: 0.01em;
}

.exm-count strong {
	color: var(--exm-ink);
	font-family: var(--exm-mono);
	font-weight: 600;
}

@media (min-width: 782px) {
	.exm-toolbar {
		grid-template-columns: minmax(220px, 1fr) auto;
		align-items: center;
		row-gap: 14px;
	}

	.exm-toolbar .exm-seg {
		justify-self: end;
	}

	.exm-tools {
		grid-column: 1 / -1;
	}

	.exm-count {
		grid-column: 1 / -1;
	}
}

/* ---------------------------------------------------------------- results */

.exm-results {
	padding-top: 22px;
	transition: opacity 0.2s ease;
}

.exm-results[aria-busy="true"] {
	opacity: 0.35;
	pointer-events: none;
}

.exm-grid {
	display: grid;
	gap: var(--exm-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
}

@media (min-width: 1024px) {
	.exm-grid {
		grid-template-columns: repeat(var(--exm-cols), minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------- card */

.exm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--exm-surface);
	border: 1px solid var(--exm-line-soft);
	border-radius: var(--exm-radius);
	overflow: hidden;
	transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.exm-card:hover {
	transform: translateY(-3px);
	border-color: var(--exm-line);
	box-shadow: 0 12px 28px -14px rgba(20, 22, 26, 0.35);
}

.exm-card-visual {
	position: relative;
	aspect-ratio: 16 / 10;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px;
	border-bottom: 1px solid var(--exm-line-soft);
	/* Faint floor-plan grid behind the logo. */
	background-color: #fcfcfd;
	background-image:
		linear-gradient(to right, rgba(20, 22, 26, 0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(20, 22, 26, 0.045) 1px, transparent 1px);
	background-size: 22px 22px;
	background-position: center;
}

.exm-root img.exm-logo {
	max-width: 78%;
	max-height: 76%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.exm-logo--initials {
	font-family: var(--exm-mono);
	font-size: clamp(28px, 6vw, 40px);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--exm-muted);
	opacity: 0.55;
}

/* Signature element: the stand plate, screwed to the card like hall signage.
   An exhibitor with several stands gets one plate per stand, coloured by space. */

.exm-plaques {
	position: absolute;
	left: 14px;
	bottom: -13px;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 5px;
	max-width: calc(100% - 28px);
}

.exm-plaque {
	--exm-plaque: var(--exm-ink);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--exm-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	color: #fff;
	background: var(--exm-plaque);
	border-radius: 6px;
	padding: 8px 14px;
	box-shadow: 0 2px 8px -2px rgba(20, 22, 26, 0.4);
	position: relative;
	/* Long codes such as "Piazza12" stay on one line; the group wraps instead. */
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.exm-plaque--more {
	background: var(--exm-ink);
	letter-spacing: 0.02em;
}

.exm-plaque--empty {
	background: transparent;
	color: var(--exm-muted);
	border: 1px dashed var(--exm-line);
	box-shadow: none;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 7px 12px;
}

.exm-plaque--empty::before,
.exm-plaque--empty::after {
	content: none;
}

.exm-plaque::before,
.exm-plaque::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transform: translateY(-50%);
}

.exm-plaque::before {
	left: 5px;
}

.exm-plaque::after {
	right: 5px;
}

.exm-star {
	position: absolute;
	top: 12px;
	left: 12px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--exm-ink);
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid var(--exm-line);
	border-radius: 999px;
	padding: 5px 10px;
	backdrop-filter: blur(4px);
}

.exm-fav {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--exm-line-soft);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--exm-muted);
	cursor: pointer;
	padding: 0;
	transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.exm-fav svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linejoin: round;
}

.exm-fav:hover {
	color: var(--exm-ink);
	border-color: var(--exm-ink);
	transform: scale(1.06);
}

.exm-fav[aria-pressed="true"] {
	color: var(--exm-ink);
	border-color: var(--exm-ink);
}

.exm-fav[aria-pressed="true"] svg {
	fill: currentColor;
}

.exm-card-body {
	padding: 26px 18px 14px;
	flex: 1 1 auto;
}

.exm-root .exm-name {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--exm-ink);
}

.exm-root .exm-open {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
}

.exm-root .exm-open::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.exm-root .exm-open:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.exm-tagline {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--exm-muted);
}

.exm-root .exm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.exm-root .exm-chip {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--exm-muted);
	background: var(--exm-tint);
	border-radius: 999px;
	padding: 5px 10px;
	margin: 0;
	list-style: none;
}

.exm-card-foot {
	padding: 12px 18px 16px;
	border-top: 1px solid var(--exm-line-soft);
}

.exm-space-line {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--exm-muted);
}

.exm-space-line .exm-space-dot + .exm-space-dot {
	margin-left: -3px;
}

.exm-space-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: none;
}

/* ------------------------------------------------------------------- list */

.exm-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.exm-row {
	position: relative;
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 16px;
	align-items: center;
	background: var(--exm-surface);
	border: 1px solid var(--exm-line-soft);
	border-radius: var(--exm-radius);
	padding: 14px 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exm-row:hover {
	border-color: var(--exm-line);
	box-shadow: 0 8px 20px -16px rgba(20, 22, 26, 0.5);
}

.exm-row-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border: 1px solid var(--exm-line-soft);
	border-radius: 10px;
	background: #fcfcfd;
	padding: 10px;
	overflow: hidden;
}

.exm-row .exm-logo--initials {
	font-size: 22px;
}

.exm-row-body .exm-name {
	font-size: 16px;
}

.exm-row-body .exm-tagline {
	margin-bottom: 8px;
}

.exm-row-side {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	grid-column: 1 / -1;
	padding-top: 12px;
	border-top: 1px dashed var(--exm-line-soft);
}

.exm-row-side .exm-plaques,
.exm-td-stand .exm-plaques,
.exm-sheet-head .exm-plaques {
	position: static;
	bottom: auto;
	left: auto;
	max-width: none;
}

.exm-row-side .exm-plaques {
	justify-content: flex-end;
}

.exm-row-side .exm-fav {
	position: static;
	margin-left: auto;
	z-index: 3;
}

@media (min-width: 782px) {
	.exm-row {
		grid-template-columns: 84px 1fr auto;
	}

	.exm-row-side {
		grid-column: auto;
		flex-direction: column;
		align-items: flex-end;
		gap: 8px;
		padding-top: 0;
		border-top: 0;
		min-width: 150px;
	}

	.exm-row-side .exm-fav {
		margin-left: 0;
	}
}

/* ------------------------------------------------------------------ table */

.exm-root table.exm-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	background: var(--exm-surface);
	border: 1px solid var(--exm-line-soft);
	border-radius: var(--exm-radius);
	overflow: hidden;
}

.exm-root .exm-table th {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--exm-muted);
	padding: 14px 16px;
	border-bottom: 1px solid var(--exm-line);
	background: var(--exm-tint);
}

.exm-root .exm-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--exm-line-soft);
	vertical-align: middle;
}

.exm-root .exm-table tr:last-child td {
	border-bottom: 0;
}

.exm-root .exm-table tr {
	position: relative;
	transition: background-color 0.15s ease;
}

.exm-root .exm-table tr:hover td {
	background: var(--exm-tint);
}

.exm-td-stand .exm-plaque {
	font-size: 12px;
	padding: 6px 12px;
}

.exm-td-stand .exm-plaques {
	gap: 4px;
}

.exm-td-name .exm-open {
	font-weight: 600;
}

.exm-td-name .exm-open::after {
	content: none;
}

.exm-td-sub {
	display: block;
	font-size: 12px;
	color: var(--exm-muted);
	margin-top: 2px;
}

.exm-td-sector {
	color: var(--exm-muted);
	font-size: 13px;
}

.exm-td-space {
	white-space: nowrap;
	font-size: 13px;
	color: var(--exm-muted);
}

.exm-td-space .exm-space-dot {
	display: inline-block;
	margin-right: 7px;
}

.exm-td-actions {
	text-align: right;
	width: 60px;
}

.exm-td-actions .exm-fav {
	position: static;
}

@media (max-width: 640px) {
	.exm-td-sector,
	.exm-td-space {
		display: none;
	}
}

/* ------------------------------------------------------- empty, load more */

.exm-empty {
	text-align: center;
	padding: 56px 20px;
	border: 1px dashed var(--exm-line);
	border-radius: var(--exm-radius);
}

.exm-empty svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: var(--exm-muted);
	stroke-width: 1.6;
	stroke-linecap: round;
	margin-bottom: 12px;
}

.exm-empty-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
}

.exm-empty-sub {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--exm-muted);
}

.exm-loadmore {
	display: flex;
	justify-content: center;
	padding: 28px 0 4px;
}

.exm-loadmore[hidden] {
	display: none;
}

.exm-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ------------------------------------------------------------ detail panel */

.exm-panel {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.exm-panel[hidden] {
	display: none;
}

.exm-panel-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 18, 22, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: exm-fade 0.2s ease;
}

.exm-panel-card {
	position: relative;
	width: 100%;
	max-width: 760px;
	max-height: 92vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--exm-surface);
	border-radius: 20px 20px 0 0;
	padding: 28px 22px 32px;
	animation: exm-rise 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
	-webkit-overflow-scrolling: touch;
}

@media (min-width: 782px) {
	.exm-panel {
		align-items: center;
		padding: 24px;
	}

	.exm-panel-card {
		border-radius: 18px;
		padding: 34px 36px 38px;
	}
}

.exm-panel-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--exm-tint);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	z-index: 2;
}

.exm-panel-close svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--exm-ink);
	stroke-width: 1.8;
	stroke-linecap: round;
}

@keyframes exm-fade {
	from {
		opacity: 0;
	}
}

@keyframes exm-rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
}

/* ------------------------------------------------------------------ sheet */

.exm-sheet-head {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 18px;
	align-items: center;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--exm-line-soft);
	position: relative;
}

.exm-sheet-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border: 1px solid var(--exm-line-soft);
	border-radius: 12px;
	background: #fcfcfd;
	padding: 10px;
	overflow: hidden;
}

.exm-sheet-logo .exm-logo--initials {
	font-size: 24px;
}

.exm-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--exm-muted);
	margin-bottom: 6px;
}

.exm-root .exm-sheet-name {
	margin: 0;
	font-size: clamp(21px, 3.4vw, 28px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 700;
}

.exm-sheet-tagline {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--exm-muted);
}

.exm-sheet-head .exm-plaques {
	grid-column: 1 / -1;
	justify-self: start;
}

.exm-sheet-head .exm-plaque {
	font-size: 14px;
	padding: 9px 16px;
}

@media (min-width: 782px) {
	.exm-sheet-head {
		grid-template-columns: 96px 1fr auto;
	}

	.exm-sheet-head .exm-plaques {
		grid-column: auto;
		justify-self: end;
		max-width: 210px;
		justify-content: flex-end;
	}
}

.exm-root .exm-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 18px 24px;
	margin: 22px 0 0;
	padding: 0;
}

.exm-root .exm-fact {
	margin: 0;
}

.exm-root .exm-facts dt {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--exm-muted);
	margin: 0 0 5px;
}

.exm-root .exm-facts dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 500;
}

.exm-root .exm-stand-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.exm-root .exm-stand-list li {
	margin: 0;
	list-style: none;
}

.exm-stand-list-space {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--exm-muted);
}

.exm-stand-list-codes {
	display: block;
	font-family: var(--exm-mono);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-top: 3px;
}

.exm-fact--stands {
	grid-column: span 2;
}

.exm-fact-sub {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: var(--exm-muted);
}

.exm-sheet-text {
	margin-top: 24px;
	font-size: 15px;
	line-height: 1.65;
}

.exm-sheet-text > *:first-child {
	margin-top: 0;
}

.exm-sheet-text > *:last-child {
	margin-bottom: 0;
}

.exm-embed {
	margin-top: 22px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--exm-tint);
}

.exm-embed iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

.exm-sheet-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--exm-line-soft);
}

/* Standalone sheet (single page or [exposant] shortcode). */

.exm-root--single {
	max-width: 820px;
}

/* Detail sheets disabled: names stay plain text. */

.exm-nolink .exm-open {
	cursor: default;
}

.exm-nolink .exm-open::after {
	content: none;
}

.exm-nolink .exm-open:hover {
	text-decoration: none;
}

/* --------------------------------------------------------------- feedback */

.exm-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%) translateY(8px);
	z-index: 1000000;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background: var(--exm-ink, #14161A);
	border-radius: 999px;
	padding: 11px 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.exm-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ------------------------------------------------------------------ print */

@media print {
	.exm-toolbar,
	.exm-loadmore,
	.exm-fav,
	.exm-panel {
		display: none !important;
	}

	.exm-card,
	.exm-row {
		break-inside: avoid;
		box-shadow: none;
	}

	.exm-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.exm-root *,
	.exm-panel-card,
	.exm-panel-backdrop {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	.exm-card:hover {
		transform: none;
	}
}
