/**
 * MINEX Eurasia 2026 — single speaker page
 * ---------------------------------------------------------------------------
 * Same design language as the My Profile dashboard: soft modern SaaS, one gold
 * accent from the event brand, 16-24px radii, hairline borders, one soft shadow.
 *
 * Scoped to .mxe-speaker so nothing else on the site is affected. Loaded on
 * forum-speakers single pages only.
 */

/* ---------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------ */
.mxe-speaker {
	--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-space-2: 0.5rem;
	--mxe-space-3: 0.75rem;
	--mxe-space-4: 1rem;
	--mxe-space-5: 1.25rem;
	--mxe-space-6: 1.5rem;
	--mxe-space-8: 2rem;
	--mxe-space-10: 2.5rem;

	--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;
}

@media (prefers-color-scheme: dark) {
	.mxe-speaker {
		--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);
	}
}

/* ---------------------------------------------------------------------------
   2. Page shell
   ------------------------------------------------------------------------ */
.mxe-speaker.container {
	box-sizing: border-box;
	width: 100%;
	/* px, not rem: the theme changes html font-size per breakpoint, which would
	   otherwise make this container width jump around. */
	max-width: 1080px;
	margin-inline: auto;
	padding-block: 2rem 4rem;
	font-family: var(--mxe-font);
	/* The theme scales its root font size per breakpoint, so pin a readable
	   floor and express the type scale in em from here down. */
	font-size: max(1.0625rem, 17px);
	line-height: 1.6;
	color: var(--mxe-text);
}

.mxe-speaker *,
.mxe-speaker *::before,
.mxe-speaker *::after {
	box-sizing: inherit;
}

.mxe-speaker .mxe-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------------------
   3. Breadcrumbs
   ------------------------------------------------------------------------ */
.mxe-speaker .mxe-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mxe-space-2);
	margin-bottom: var(--mxe-space-6);
	font-size: 0.85em;
	color: var(--mxe-text-muted);
}

.mxe-speaker .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-speaker .mxe-crumbs a:hover {
	color: var(--mxe-brand);
	border-bottom-color: var(--mxe-brand);
}

.mxe-speaker .mxe-crumbs a:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 3px;
}

.mxe-speaker .mxe-crumbs__sep {
	color: var(--mxe-border-strong);
}

.mxe-speaker .mxe-crumbs__current {
	color: var(--mxe-text);
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
   4. Hero — portrait + identity
   ------------------------------------------------------------------------ */
.mxe-speaker .mxe-speaker__hero {
	display: grid;
	gap: var(--mxe-space-8);
	align-items: start;
	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);
}

@media (min-width: 800px) {
	.mxe-speaker .mxe-speaker__hero {
		grid-template-columns: minmax(200px, 280px) 1fr;
		gap: var(--mxe-space-10);
	}
}

.mxe-speaker .mxe-speaker__portrait {
	margin: 0;
	width: 100%;
	max-width: 280px;
}

.mxe-speaker .mxe-speaker__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center top;
	border: 1px solid var(--mxe-border);
	border-radius: var(--mxe-radius-lg);
	background: var(--mxe-surface-2);
	box-shadow: var(--mxe-shadow-md);
}

.mxe-speaker .mxe-speaker__initials {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--mxe-radius-lg);
	background: linear-gradient(150deg, var(--mxe-accent), var(--mxe-brand));
	color: #fff;
	font-size: 3em;
	font-weight: 700;
	letter-spacing: 0.02em;
	user-select: none;
}

.mxe-speaker .mxe-speaker__intro {
	min-width: 0;
}

.mxe-speaker .mxe-speaker__eyebrow {
	display: inline-block;
	margin: 0 0 var(--mxe-space-3);
	padding: 0.3em 0.85em;
	border-radius: var(--mxe-radius-pill);
	background: var(--mxe-brand-soft);
	color: var(--mxe-brand);
	font-family: inherit;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
}

.mxe-speaker .mxe-speaker__name {
	margin: 0;
	font-family: inherit;
	font-size: clamp(1.6em, 1.3em + 1.4vw, 2.4em);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--mxe-text);
	overflow-wrap: anywhere;
}

.mxe-speaker .mxe-badge {
	display: inline-block;
	margin-inline-start: 0.5em;
	padding: 0.25em 0.7em;
	border: 1px solid var(--mxe-border);
	border-radius: var(--mxe-radius-pill);
	background: var(--mxe-surface-2);
	color: var(--mxe-text-muted);
	font-size: 0.4em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	vertical-align: middle;
	white-space: nowrap;
}

.mxe-speaker .mxe-badge--online {
	border-color: var(--mxe-online-border);
	background: var(--mxe-online-soft);
	color: var(--mxe-online);
}

.mxe-speaker .mxe-speaker__role {
	margin: var(--mxe-space-3) 0 0;
	font-size: 1.05em;
	color: var(--mxe-text-muted);
}

.mxe-speaker .mxe-speaker__company {
	font-weight: 700;
	color: var(--mxe-text);
}

.mxe-speaker .mxe-speaker__dot {
	margin-inline: 0.4em;
	color: var(--mxe-border-strong);
}

/* ---------------------------------------------------------------------------
   5. Buttons + social links
   ------------------------------------------------------------------------ */
.mxe-speaker .mxe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--mxe-space-2);
	min-height: 44px;
	margin-top: var(--mxe-space-5);
	padding: 0.6rem 1.15rem;
	border: 1px solid transparent;
	border-radius: var(--mxe-radius-pill);
	font-size: 1em;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--mxe-speed) var(--mxe-ease),
		color var(--mxe-speed) var(--mxe-ease),
		box-shadow var(--mxe-speed) var(--mxe-ease),
		transform var(--mxe-speed) var(--mxe-ease);
}

.mxe-speaker .mxe-btn--primary {
	background: var(--mxe-brand);
	color: #fff;
	box-shadow: var(--mxe-shadow-md);
}

.mxe-speaker .mxe-btn--primary:hover {
	background: var(--mxe-brand-hover);
	color: #fff;
}

.mxe-speaker .mxe-btn:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
	.mxe-speaker .mxe-btn--primary,
	.mxe-speaker .mxe-btn--primary:hover {
		color: #1a1509;
	}
}

@media (hover: hover) {
	.mxe-speaker .mxe-btn:hover {
		transform: translateY(-1px);
	}
}

.mxe-speaker .mxe-socials {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mxe-space-2);
	margin: var(--mxe-space-5) 0 0;
	padding: 0;
	list-style: none;
}

.mxe-speaker .mxe-socials__item {
	margin: 0;
	list-style: none;
}

.mxe-speaker .mxe-social {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--mxe-border);
	border-radius: var(--mxe-radius-pill);
	background: var(--mxe-bg);
	color: var(--mxe-text-muted);
	font-size: 1.05rem;
	line-height: 1;
	text-decoration: none;
	transition: color var(--mxe-speed) var(--mxe-ease),
		border-color var(--mxe-speed) var(--mxe-ease),
		transform var(--mxe-speed) var(--mxe-ease);
}

.mxe-speaker .mxe-social:hover {
	color: var(--mxe-brand);
	border-color: var(--mxe-brand);
}

.mxe-speaker .mxe-social:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 3px;
}

@media (hover: hover) {
	.mxe-speaker .mxe-social:hover {
		transform: translateY(-1px);
	}
}

/* ---------------------------------------------------------------------------
   6. Panels (biography, sessions, presentations)
   ------------------------------------------------------------------------ */
.mxe-speaker .mxe-panel {
	margin-top: var(--mxe-space-8);
	padding: clamp(1.25rem, 3.5vw, 2rem);
	border: 1px solid var(--mxe-border);
	border-radius: var(--mxe-radius-lg);
	background: var(--mxe-surface);
}

.mxe-speaker .mxe-panel__title {
	margin: 0 0 var(--mxe-space-4);
	font-family: inherit;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--mxe-text);
}

.mxe-speaker .mxe-prose {
	max-width: 68ch;
	color: var(--mxe-text);
}

.mxe-speaker .mxe-prose > *:first-child {
	margin-top: 0;
}

.mxe-speaker .mxe-prose > *:last-child {
	margin-bottom: 0;
}

.mxe-speaker .mxe-prose p {
	margin: 0 0 1em;
}

.mxe-speaker .mxe-prose--tight {
	margin-top: var(--mxe-space-3);
	font-size: 0.95em;
	color: var(--mxe-text-muted);
}

.mxe-speaker .mxe-sessions {
	display: grid;
	gap: var(--mxe-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mxe-speaker .mxe-session {
	margin: 0;
	padding: var(--mxe-space-5);
	border: 1px solid var(--mxe-border);
	border-radius: var(--mxe-radius);
	background: var(--mxe-bg);
	box-shadow: var(--mxe-shadow-sm);
	list-style: none;
}

.mxe-speaker .mxe-session__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mxe-space-3);
}

.mxe-speaker .mxe-session__time {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--mxe-text-muted);
}

.mxe-speaker .mxe-session__hours {
	margin-inline-start: 0.6em;
	font-weight: 400;
	color: var(--mxe-text-muted);
}

.mxe-speaker .mxe-session__title {
	margin: var(--mxe-space-3) 0 0;
	font-family: inherit;
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mxe-text);
}

.mxe-speaker .mxe-session__title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--mxe-speed) var(--mxe-ease);
}

.mxe-speaker .mxe-session__title a:hover {
	color: var(--mxe-brand);
}

.mxe-speaker .mxe-session__title a:focus-visible {
	outline: 2px solid var(--mxe-brand);
	outline-offset: 3px;
}

.mxe-speaker .mxe-session__theme {
	margin: var(--mxe-space-2) 0 0;
	color: var(--mxe-text-muted);
}

.mxe-speaker .mxe-session__venue {
	margin: var(--mxe-space-2) 0 0;
	font-size: 0.9em;
}

.mxe-speaker .mxe-session__venue a {
	color: var(--mxe-brand);
	text-decoration: none;
}

.mxe-speaker .mxe-session__venue a:hover {
	text-decoration: underline;
}

.mxe-speaker .mxe-session__presentation {
	margin: var(--mxe-space-4) 0 0;
	font-weight: 700;
	color: var(--mxe-text);
}

/* ---------------------------------------------------------------------------
   7. Legacy footer offset used by this page
   ------------------------------------------------------------------------ */
#footer_minexforum,
#footer_advantix {
	top: -400px;
	position: relative;
}

/* ---------------------------------------------------------------------------
   8. Reduced motion
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.mxe-speaker *,
	.mxe-speaker *::before,
	.mxe-speaker *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
