/**
 * MINEX Eurasia 2026 — speakers archive (forum-speakers post type archive)
 * ---------------------------------------------------------------------------
 * Same design language as the My Profile dashboard and the single speaker
 * profile: soft modern SaaS, one gold brand accent, hairline borders,
 * 16-24px radii, one soft shadow, generous whitespace.
 *
 * Scoped to .mxe-archive so nothing else on the site is touched. Enqueued only
 * on the forum-speakers archive.
 */

/* ---------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------ */
.mxe-archive {
	--mxe-bg: #ffffff;
	--mxe-surface: #fbfaf8;
	--mxe-surface-2: #f4f1ec;
	--mxe-border: #e7e2d9;
	--mxe-border-strong: #d8d1c4;

	--mxe-text: #1c1917;
	--mxe-text-muted: #625b51;

	--mxe-brand: #8a5a17;
	--mxe-brand-hover: #6f4711;
	--mxe-brand-soft: #f7eee0;
	--mxe-accent: #be8536;
	--mxe-online: #0f6f6c;
	--mxe-online-soft: #e6f3f2;
	--mxe-online-border: #b7d9d6;

	--mxe-radius-sm: 10px;
	--mxe-radius: 16px;
	--mxe-radius-lg: 24px;
	--mxe-radius-pill: 999px;

	--mxe-shadow-sm: 0 1px 2px rgb(28 25 23 / 0.05);
	--mxe-shadow-md: 0 12px 32px -18px rgb(28 25 23 / 0.28);
	--mxe-shadow-lg: 0 26px 50px -30px rgb(28 25 23 / 0.45);

	--mxe-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--mxe-speed: 200ms;

	/* The theme declares a bare "Jost" family with no fallback, so text renders
	   serif whenever the webfont is unavailable. Keep Jost first, then degrade
	   to a clean sans. */
	--mxe-font: Jost, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;

	box-sizing: border-box;
	width: 100%;
	padding-block: 1.5rem 4rem;
	background: var(--mxe-bg);
	color: var(--mxe-text);
	font-family: var(--mxe-font);
	/* The theme changes html font-size per breakpoint, so pin a readable floor
	   and express the whole type scale in em from here down. */
	font-size: max(1.0625rem, 17px);
	line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
	.mxe-archive {
		--mxe-bg: #17161a;
		--mxe-surface: #1e1d22;
		--mxe-surface-2: #26242b;
		--mxe-border: #34323a;
		--mxe-border-strong: #45424d;

		--mxe-text: #f2efe9;
		--mxe-text-muted: #a9a29a;

		--mxe-brand: #e2ab53;
		--mxe-brand-hover: #efbd6d;
		--mxe-brand-soft: #33291a;
		--mxe-accent: #e2ab53;
		--mxe-online: #6fd3cd;
		--mxe-online-soft: rgb(111 211 205 / 0.12);
		--mxe-online-border: rgb(111 211 205 / 0.3);

		--mxe-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
		--mxe-shadow-md: 0 12px 32px -18px rgb(0 0 0 / 0.7);
		--mxe-shadow-lg: 0 26px 50px -30px rgb(0 0 0 / 0.8);
	}
}

.mxe-archive *,
.mxe-archive *::before,
.mxe-archive *::after {
	box-sizing: inherit;
}

/* [hidden] must win over the display values used by the grid/list components. */
.mxe-archive [hidden] {
	display: none !important;
}

.mxe-archive .mxe-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------------------
   2. Shell
   ------------------------------------------------------------------------ */
.mxe-archive .mxe-archive__inner {
	width: 100%;
	max-width: 1080px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* ---------------------------------------------------------------------------
   3. Breadcrumbs
   ------------------------------------------------------------------------ */
.mxe-archive .mxe-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	font-size: 0.85em;
	color: var(--mxe-text-muted);
}

.mxe-archive .mxe-crumbs a {
	color: var(--mxe-text-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color var(--mxe-speed) var(--mxe-ease),
		border-color var(--mxe-speed) var(--mxe-ease);
}

.mxe-archive .mxe-crumbs a:hover {
	color: var(--mxe-brand);
	border-bottom-color: var(--mxe-brand);
}

.mxe-archive .mxe-crumbs a:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 3px;
}

.mxe-archive .mxe-crumbs__sep {
	color: var(--mxe-border-strong);
}

.mxe-archive .mxe-crumbs__current {
	color: var(--mxe-text);
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
   4. Head — title, copy, search
   ------------------------------------------------------------------------ */
.mxe-archive .mxe-archive__head {
	padding: clamp(1.25rem, 3.5vw, 2.25rem);
	border: 1px solid var(--mxe-border);
	border-radius: var(--mxe-radius-lg);
	background:
		radial-gradient(115% 150% at 100% 0%, var(--mxe-brand-soft) 0%, transparent 58%),
		var(--mxe-bg);
	box-shadow: var(--mxe-shadow-sm);
}

.mxe-archive .mxe-archive__eyebrow {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.3em 0.85em;
	border-radius: var(--mxe-radius-pill);
	background: var(--mxe-brand-soft);
	color: var(--mxe-brand);
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mxe-archive .mxe-archive__title {
	max-width: 22ch;
	margin: 0;
	font-family: inherit;
	font-size: clamp(1.6em, 1.3em + 1.4vw, 2.4em);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--mxe-text);
}

.mxe-archive .mxe-archive__lead {
	max-width: 62ch;
	margin: 0.75rem 0 0;
	color: var(--mxe-text-muted);
}

.mxe-archive .mxe-archive__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.75rem;
}

/* Search ------------------------------------------------------------------ */
.mxe-archive .mxe-field {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 18rem;
	max-width: 30rem;
	margin: 0;
}

.mxe-archive .mxe-field__icon {
	position: absolute;
	inset-inline-start: 1.05rem;
	color: var(--mxe-text-muted);
	font-size: 0.95em;
	pointer-events: none;
}

.mxe-archive .mxe-field__input {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0.6rem 3rem 0.6rem 2.85rem;
	border: 1px solid var(--mxe-border-strong);
	border-radius: var(--mxe-radius-pill);
	background: var(--mxe-bg);
	/* >= 16px so iOS does not zoom the viewport on focus. */
	font-family: inherit;
	font-size: 1em;
	line-height: 1.4;
	color: var(--mxe-text);
	-webkit-appearance: none;
	appearance: none;
	transition: border-color var(--mxe-speed) var(--mxe-ease),
		box-shadow var(--mxe-speed) var(--mxe-ease);
}

.mxe-archive .mxe-field__input::placeholder {
	color: var(--mxe-text-muted);
	opacity: 0.85;
}

.mxe-archive .mxe-field__input:hover {
	border-color: var(--mxe-brand);
}

.mxe-archive .mxe-field__input:focus {
	border-color: var(--mxe-brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mxe-brand) 18%, transparent);
	outline: none;
}

.mxe-archive .mxe-field__input:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 2px;
}

.mxe-archive .mxe-field__clear {
	position: absolute;
	inset-inline-end: 0.4rem;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--mxe-radius-pill);
	color: var(--mxe-text-muted);
	font-size: 1.05em;
	line-height: 1;
	text-decoration: none;
	transition: color var(--mxe-speed) var(--mxe-ease),
		background-color var(--mxe-speed) var(--mxe-ease);
}

.mxe-archive .mxe-field__clear:hover {
	background: var(--mxe-surface-2);
	color: var(--mxe-text);
}

.mxe-archive .mxe-field__clear:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 2px;
}

.mxe-archive .mxe-archive__count {
	margin: 0;
	color: var(--mxe-text-muted);
	font-size: 0.9em;
	font-variant-numeric: tabular-nums;
}

.mxe-archive .mxe-archive__count span[data-mxe-count-num] {
	color: var(--mxe-text);
	font-weight: 700;
}

.mxe-archive .mxe-archive__note {
	margin: 0.75rem 0 0;
	font-size: 0.9em;
}

.mxe-archive .mxe-archive__note a {
	color: var(--mxe-brand);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--mxe-brand) 40%, transparent);
}

.mxe-archive .mxe-archive__note a:hover {
	border-bottom-color: var(--mxe-brand);
}

.mxe-archive .mxe-archive__note a:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------ */
.mxe-archive .mxe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.6rem 1.15rem;
	border: 1px solid var(--mxe-border-strong);
	border-radius: var(--mxe-radius-pill);
	background: var(--mxe-bg);
	color: var(--mxe-text);
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--mxe-speed) var(--mxe-ease),
		border-color var(--mxe-speed) var(--mxe-ease),
		color var(--mxe-speed) var(--mxe-ease);
}

.mxe-archive .mxe-btn:hover {
	border-color: var(--mxe-brand);
	color: var(--mxe-brand);
}

.mxe-archive .mxe-btn:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   6. A-Z jumper
   ------------------------------------------------------------------------ */
.mxe-archive .mxe-az {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin-top: 1.5rem;
}

.mxe-archive .mxe-az__label {
	margin-inline-end: 0.35rem;
	color: var(--mxe-text-muted);
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mxe-archive .mxe-az__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mxe-archive .mxe-az__list > li {
	margin: 0;
	list-style: none;
}

.mxe-archive .mxe-az__link {
	display: grid;
	place-items: center;
	min-width: 40px;
	min-height: 44px;
	padding-inline: 0.5rem;
	border: 1px solid var(--mxe-border);
	border-radius: var(--mxe-radius-pill);
	background: var(--mxe-surface);
	color: var(--mxe-text);
	font-size: 0.9em;
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--mxe-speed) var(--mxe-ease),
		border-color var(--mxe-speed) var(--mxe-ease),
		color var(--mxe-speed) var(--mxe-ease);
}

.mxe-archive .mxe-az__link:hover {
	border-color: var(--mxe-brand);
	background: var(--mxe-brand-soft);
	color: var(--mxe-brand);
}

.mxe-archive .mxe-az__link:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   7. Speaker cards
   ------------------------------------------------------------------------ */
.mxe-archive .mxe-speakers {
	display: grid;
	/* `auto-fill`, not `auto-fit`: auto-fit collapses the empty tracks, so a
	   filtered/short result set (e.g. searching "Lund" down to one card) would
	   stretch that card — and its 1:1 portrait — across the whole container. */
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.mxe-archive .mxe-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--mxe-border);
	border-radius: var(--mxe-radius-lg);
	background: var(--mxe-bg);
	box-shadow: var(--mxe-shadow-sm);
	list-style: none;
	/* The theme header is fixed (124px on phones, 155px from tablets up), so an
	   A-Z anchor jump has to leave that much room above the card. */
	scroll-margin-top: 145px;
	transition: transform var(--mxe-speed) var(--mxe-ease),
		box-shadow var(--mxe-speed) var(--mxe-ease),
		border-color var(--mxe-speed) var(--mxe-ease);
}

@media (min-width: 768px) {
	.mxe-archive .mxe-card {
		scroll-margin-top: 180px;
	}
}

.mxe-archive .mxe-card__media {
	position: relative;
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--mxe-surface-2);
}

.mxe-archive .mxe-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	transition: transform 450ms var(--mxe-ease);
}

.mxe-archive .mxe-card__initials {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(150deg, var(--mxe-accent), var(--mxe-brand));
	color: #fff;
	font-size: 2.6em;
	font-weight: 700;
	letter-spacing: 0.02em;
	user-select: none;
}

.mxe-archive .mxe-card__online {
	position: absolute;
	top: 0.75rem;
	inset-inline-end: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.3em 0.75em;
	border: 1px solid var(--mxe-online-border);
	border-radius: var(--mxe-radius-pill);
	background: rgb(255 255 255 / 0.92);
	color: var(--mxe-online);
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}

.mxe-archive .mxe-card__online::before {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-radius: 50%;
	background: currentColor;
}

@media (prefers-color-scheme: dark) {
	.mxe-archive .mxe-card__online {
		background: rgb(23 22 26 / 0.9);
	}
}

.mxe-archive .mxe-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.1rem 1.25rem 1.25rem;
}

.mxe-archive .mxe-card__name {
	margin: 0;
	font-family: inherit;
	font-size: 1.12em;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--mxe-text);
	overflow-wrap: anywhere;
}

.mxe-archive .mxe-card__name a {
	color: inherit;
	text-decoration: none;
}

.mxe-archive .mxe-card__name a:focus-visible {
	outline: none;
}

/* Whole card is the click target, while the link name stays the only
   accessible name for the card. */
.mxe-archive .mxe-card__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.mxe-archive .mxe-card__role,
.mxe-archive .mxe-card__company {
	margin: 0.35rem 0 0;
	font-size: 0.95em;
	line-height: 1.45;
}

.mxe-archive .mxe-card__role {
	color: var(--mxe-text-muted);
}

.mxe-archive .mxe-card__company {
	font-weight: 700;
	color: var(--mxe-text);
}

.mxe-archive .mxe-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1rem;
	color: var(--mxe-brand);
	font-size: 0.9em;
	font-weight: 600;
}

.mxe-archive .mxe-card__cta i {
	font-size: 0.85em;
	transition: transform var(--mxe-speed) var(--mxe-ease);
}

/* States ------------------------------------------------------------------ */
.mxe-archive .mxe-card:focus-within {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 3px;
}

@media (hover: hover) {
	.mxe-archive .mxe-card:hover {
		transform: translateY(-3px);
		border-color: var(--mxe-border-strong);
		box-shadow: var(--mxe-shadow-lg);
	}

	.mxe-archive .mxe-card:hover .mxe-card__img {
		transform: scale(1.04);
	}

	.mxe-archive .mxe-card:hover .mxe-card__cta i {
		transform: translateX(3px);
	}
}

/* ---------------------------------------------------------------------------
   8. Empty state
   ------------------------------------------------------------------------ */
.mxe-archive .mxe-empty {
	margin-top: 1.5rem;
	padding: 2.5rem 1.5rem;
	border: 1px dashed var(--mxe-border-strong);
	border-radius: var(--mxe-radius-lg);
	background: var(--mxe-surface);
	color: var(--mxe-text-muted);
	text-align: center;
}

.mxe-archive .mxe-empty__title {
	margin: 0;
	color: var(--mxe-text);
	font-size: 1.1em;
	font-weight: 700;
}

.mxe-archive .mxe-empty p {
	margin: 0.4rem 0 0;
}

.mxe-archive .mxe-empty .mxe-btn {
	margin-top: 1.25rem;
}

/* ---------------------------------------------------------------------------
   9. Reduced motion
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.mxe-archive *,
	.mxe-archive *::before,
	.mxe-archive *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
