/*
 * Speakers skin: Space & Connectivity Summit 2026 (CST, Riyadh).
 *
 * The third file in the scs26 set, beside skins/scs26.css (agenda) and
 * registration/static/inline/skins/scs26.css (booking flow) — same event, same host site, so the
 * palette block is copied from them deliberately rather than re-picked, and the three can be
 * diffed against each other.
 *
 * Ported from the host site's own /css/style.css §"Speakers — 2026-08", where the card is a
 * portrait variant of their .trip-card. Their values are kept EXACTLY: the same gradients, the same
 * 24px radius, the same 0.3s lift, the same three rotating accents. Only the selectors change,
 * because the markup is ours (.mep-speaker-card__*) and not theirs.
 *
 * Loaded only for [mep_speakers skin="scs26"], after mep-speakers.css so these rules win.
 *
 * Fonts are NOT declared here, for the same reason as the agenda skin: the host page already
 * serves Space Grotesk and IBM Plex, and a second @font-face would be a cross-origin fetch for a
 * family the page has loaded. The stack falls back to the theme's own if it isn't there.
 */

.mep-speakers--skin-scs26 {
	/* ---- their palette, mirrored ------------------------------------------ */
	--scs-white: #fff;
	--scs-slate: #94a3b8;

	--scs-text-1: #eef2fa;
	--scs-text-2: #a8b3c7;
	--scs-text-3: #7c879c;

	--scs-blue-300: #93c5fd;
	--scs-cyan-300: #3dd6f0;
	--scs-gold-300: #ffd08a;

	--scs-surface-2: rgba(255, 255, 255, 0.07);
	--scs-border: rgba(148, 163, 184, 0.16);

	--scs-radius-lg: 24px;
	--scs-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--scs-glow-blue: 0 0 40px rgba(59, 130, 246, 0.35);

	--scs-display: 'Space Grotesk', system-ui, sans-serif;
	--scs-body: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;

	font-family: var(--scs-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--scs-text-1);

	/* Their own measure, copied from the host site's `.container`:
	   `width: min(var(--container), 100% - 48px)` with `--container: 1200px`. So the grid lines up
	   with every other section of their page instead of running the full bleed of whatever block it
	   was dropped into. */
	width: min(1200px, 100% - 48px);
	margin-inline: auto;
	box-sizing: border-box;

	/* The host page is a dark starfield; browser-painted UI (focus rings, scrollbars) has to know. */
	color-scheme: dark;
}

/* Their gutter closes up on a phone, exactly as their own container does. */
@media (max-width: 560px) {
	.mep-speakers--skin-scs26 {
		width: calc(100% - 36px);
	}
}

/* Their .trip-card exactly: a padding-box gradient fill inside a border-box gradient edge, so the
   1px rim fades top to bottom rather than sitting as a flat line. */
.mep-speakers--skin-scs26 .mep-speaker-card {
	border-radius: var(--scs-radius-lg);
	border: 1px solid transparent;
	background:
		linear-gradient(160deg, var(--scs-surface-2), rgba(255, 255, 255, 0.02)) padding-box,
		linear-gradient(180deg, rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0.06) 60%) border-box;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: transform 0.3s var(--scs-ease-out), box-shadow 0.3s;
}

.mep-speakers--skin-scs26 .mep-speaker-card:hover {
	transform: translateY(-6px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--scs-glow-blue);
}

.mep-speakers--skin-scs26 .mep-speaker-card__media {
	border-bottom: 1px solid var(--scs-border);
	background: linear-gradient(160deg, rgba(59, 130, 246, 0.18), rgba(0, 184, 217, 0.06));
}

.mep-speakers--skin-scs26 .mep-speaker-card__photo {
	transition: transform 0.5s var(--scs-ease-out);
}

.mep-speakers--skin-scs26 .mep-speaker-card:hover .mep-speaker-card__photo {
	transform: scale(1.05);
}

.mep-speakers--skin-scs26 .mep-speaker-card__initials {
	font-family: var(--scs-display);
	font-size: clamp(1.7rem, 3.4vw, 2.3rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--scs-blue-300);
}

/* Three accents rotating through the grid, so a wall of portraits still has rhythm. Their rule,
   ported as-is: only rendered cards are in the list, so counting DOM children counts speakers. */
.mep-speakers--skin-scs26 .mep-speaker-card:nth-child(3n + 2) .mep-speaker-card__media {
	background: linear-gradient(160deg, rgba(0, 184, 217, 0.18), rgba(59, 130, 246, 0.05));
}

.mep-speakers--skin-scs26 .mep-speaker-card:nth-child(3n + 2) .mep-speaker-card__initials {
	color: var(--scs-cyan-300);
}

.mep-speakers--skin-scs26 .mep-speaker-card:nth-child(3n + 3) .mep-speaker-card__media {
	background: linear-gradient(160deg, rgba(245, 166, 35, 0.16), rgba(59, 130, 246, 0.05));
}

.mep-speakers--skin-scs26 .mep-speaker-card:nth-child(3n + 3) .mep-speaker-card__initials {
	color: var(--scs-gold-300);
}

/* A card that is a link says so on focus. Their site has no keyboard style of its own for this, so
   it takes the same solid ring the agenda and registration skins use — their translucent blue is
   ~1.2:1 here and effectively invisible. */
.mep-speakers--skin-scs26 .mep-speaker-card__open:focus-visible {
	outline: 2px solid var(--scs-blue-300);
	outline-offset: 2px;
	border-radius: var(--scs-radius-lg);
}

.mep-speakers--skin-scs26 .mep-speaker-card__open .mep-speaker-card__name {
	transition: color 0.2s;
}

.mep-speakers--skin-scs26 .mep-speaker-card__open:hover .mep-speaker-card__name {
	color: var(--scs-blue-300);
}

.mep-speakers--skin-scs26 .mep-speaker-card__body {
	padding: 18px 20px 22px;
}

.mep-speakers--skin-scs26 .mep-speaker-card__name {
	font-family: var(--scs-display);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 4px;
	color: var(--scs-text-1);
}

/* Their .trip-card__desc grows so links can sit at the bottom of a card; here the role line
   ("title · organisation") has to stay tight under the name instead, which is why flex:none is
   part of the port. */
.mep-speakers--skin-scs26 .mep-speaker-card__role {
	flex: none;
	color: var(--scs-text-2);
	font-size: 0.9rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

/* ---- their light theme ---------------------------------------------------
 * The host page flips on html[data-theme="light"], which is on the document, so these can key off
 * it from inside our own scope exactly as their stylesheet does. */
html[data-theme='light'] .mep-speakers--skin-scs26 {
	color-scheme: light;
	--scs-text-1: #0a1428;
	--scs-text-2: #42516b;
	--scs-text-3: #64748b;
	--scs-border: rgba(12, 26, 56, 0.14);
	/* Their light glow is a drop shadow, not a halo — a 0.35-alpha blue bloom on white reads as a
	   smudge. Same token name, their light value. */
	--scs-glow-blue: 0 14px 34px rgba(37, 99, 235, 0.18);
	/* Accents pulled down to clear 4.5:1 on a white canvas — their values, not a dimmed guess. */
	--scs-blue-300: #1d4ed8;
	--scs-cyan-300: #0e7490;
}

html[data-theme='light'] .mep-speakers--skin-scs26 .mep-speaker-card {
	background:
		linear-gradient(165deg, #ffffff, #f5f8fd) padding-box,
		linear-gradient(180deg, rgba(12, 26, 56, 0.16), rgba(12, 26, 56, 0.07) 60%) border-box;
	box-shadow: 0 2px 12px rgba(12, 26, 56, 0.05);
}

html[data-theme='light'] .mep-speakers--skin-scs26 .mep-speaker-card:hover {
	box-shadow: var(--scs-glow-blue);
}

/* gold-300 is a night colour — on the light canvas the initials need the same amber their IEEE
   note uses. Their rule, ported. */
html[data-theme='light'] .mep-speakers--skin-scs26 .mep-speaker-card:nth-child(3n + 3) .mep-speaker-card__initials {
	color: #a65a05;
}

/* ---- their small-screen step ---------------------------------------------
 * The grid's own breakpoints live in mep-speakers.css; these are the type and padding changes the
 * host site makes at the same width. */
@media (max-width: 460px) {
	.mep-speakers--skin-scs26 .mep-speaker-card__body { padding: 12px 12px 16px; }
	.mep-speakers--skin-scs26 .mep-speaker-card__name { font-size: 0.92rem; }
	.mep-speakers--skin-scs26 .mep-speaker-card__role { font-size: 0.78rem; line-height: 1.45; }
	.mep-speakers--skin-scs26 .mep-speaker-card__initials { font-size: 1.5rem; }
}

/* Motion is decoration here: the lift and the photo zoom are the only movement, and neither
   carries meaning. Their stylesheet honours the preference globally; ours has to say so itself. */
@media (prefers-reduced-motion: reduce) {
	.mep-speakers--skin-scs26 .mep-speaker-card,
	.mep-speakers--skin-scs26 .mep-speaker-card__photo {
		transition: none;
	}

	.mep-speakers--skin-scs26 .mep-speaker-card:hover { transform: none; }
	.mep-speakers--skin-scs26 .mep-speaker-card:hover .mep-speaker-card__photo { transform: none; }
}


/* ---- one speaker's page --------------------------------------------------
 * Same palette, same card language: the portrait sits in the card's own gradient block, the bio is
 * body text at their measure, and "Appearing at" is a plain list rather than a second card grid —
 * a profile is a page, not a wall. */

.mep-speaker-profile--skin-scs26 {
	--scs-white: #fff;
	--scs-slate: #94a3b8;

	--scs-text-1: #eef2fa;
	--scs-text-2: #a8b3c7;
	--scs-text-3: #7c879c;

	--scs-blue-300: #93c5fd;

	--scs-surface-2: rgba(255, 255, 255, 0.07);
	--scs-border: rgba(148, 163, 184, 0.16);

	--scs-radius-lg: 24px;
	--scs-display: 'Space Grotesk', system-ui, sans-serif;
	--scs-body: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;

	font-family: var(--scs-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--scs-text-1);
	color-scheme: dark;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__head {
	gap: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--scs-border);
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__media {
	border-radius: var(--scs-radius-lg);
	border: 1px solid transparent;
	background:
		linear-gradient(160deg, var(--scs-surface-2), rgba(255, 255, 255, 0.02)) padding-box,
		linear-gradient(180deg, rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0.06) 60%) border-box;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__initials {
	font-family: var(--scs-display);
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--scs-blue-300);
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__name {
	font-family: var(--scs-display);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 8px;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__role {
	color: var(--scs-text-2);
	font-size: 1rem;
	overflow-wrap: anywhere;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__socials {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__social {
	color: var(--scs-blue-300);
	font-size: 0.92rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* A bio is prose: it gets a measure of its own rather than running the full width of a wide page. */
.mep-speaker-profile--skin-scs26 .mep-speaker-profile__bio {
	margin-top: 28px;
	max-width: 68ch;
	color: var(--scs-text-2);
	font-size: 1rem;
	line-height: 1.7;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__bio p + p {
	margin-top: 14px;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__appearing {
	margin-top: 36px;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__appearance {
	padding: 12px 0;
	border-top: 1px solid var(--scs-border);
	align-items: baseline;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__appearance-event {
	font-weight: 600;
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__appearance-session {
	color: var(--scs-text-2);
}

.mep-speaker-profile--skin-scs26 .mep-speaker-profile__appearance-role {
	color: var(--scs-text-2);
	font-size: 1rem;
}

html[data-theme='light'] .mep-speaker-profile--skin-scs26 {
	color-scheme: light;
	--scs-text-1: #0a1428;
	--scs-text-2: #42516b;
	--scs-text-3: #64748b;
	--scs-border: rgba(12, 26, 56, 0.14);
	--scs-blue-300: #1d4ed8;
}

html[data-theme='light'] .mep-speaker-profile--skin-scs26 .mep-speaker-profile__media {
	background:
		linear-gradient(165deg, #ffffff, #f5f8fd) padding-box,
		linear-gradient(180deg, rgba(12, 26, 56, 0.16), rgba(12, 26, 56, 0.07) 60%) border-box;
}


/* ---- the popout ----------------------------------------------------------- */

.mep-speaker-dialog.mep-speakers--skin-scs26 {
	border-radius: var(--scs-radius-lg);
	background: #0a1226;
	color: var(--scs-text-1);
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.mep-speaker-dialog.mep-speakers--skin-scs26::backdrop {
	background: rgba(6, 11, 26, 0.72);
}

.mep-speaker-dialog .mep-speaker-dialog__close {
	color: var(--scs-text-2);
	border-radius: 999px;
}

.mep-speaker-dialog .mep-speaker-dialog__close:hover {
	color: var(--scs-text-1);
	background: rgba(255, 255, 255, 0.06);
}

.mep-speaker-dialog .mep-speaker-dialog__close:focus-visible {
	outline: 2px solid var(--scs-blue-300);
	outline-offset: 2px;
}

/* The dialog is its own measure — the 1200px container above is for the grid on the page. */
.mep-speaker-dialog.mep-speakers--skin-scs26 {
	width: min(620px, 100% - 32px);
	margin: auto;
}

.mep-speaker-dialog .mep-speaker-profile__bio {
	margin-top: 20px;
	font-size: 0.95rem;
}

.mep-speaker-dialog .mep-speaker-profile__appearing {
	margin-top: 24px;
}

html[data-theme='light'] .mep-speaker-dialog.mep-speakers--skin-scs26 {
	background: #ffffff;
	box-shadow: 0 40px 90px rgba(12, 26, 56, 0.22);
}

html[data-theme='light'] .mep-speaker-dialog.mep-speakers--skin-scs26::backdrop {
	background: rgba(12, 26, 56, 0.4);
}


/* ---- loading and the read-more, in their colours -------------------------- */

.mep-speaker-dialog .mep-speaker-profile__more,
.mep-speaker-dialog .mep-speaker-dialog__retry {
	color: var(--scs-blue-300);
}

.mep-speaker-dialog .mep-speaker-profile__more:focus-visible,
.mep-speaker-dialog .mep-speaker-dialog__retry:focus-visible {
	outline: 2px solid var(--scs-blue-300);
	outline-offset: 3px;
}

.mep-speaker-dialog .mep-speaker-dialog__error {
	color: var(--scs-text-2);
}

/* The clamp fades out rather than guillotining a line in half. */
.mep-speaker-dialog .mep-speaker-profile__bio.is-clamped {
	-webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
