/* HTM Mixer Sessions: education archive */

.hm-sessions {
	--hm-text: #222222;
	--hm-muted: #575757;
	--hm-heading: #222222;
	--hm-link: #222222;
	--hm-btn-bg: #222222;
	--hm-btn-fg: #ffffff;
	--hm-btn2-bg: transparent;
	--hm-btn2-fg: #222222;
	--hm-btn2-border: #222222;
	--hm-surface: #ffffff;
	--hm-band: #f4f4f4;
	--hm-band-accent: transparent;
	--hm-border: #dddddd;
	--hm-field-bg: #ffffff;
	--hm-avatar-bg: #222222;
	--hm-avatar-fg: #ffffff;
	--hm-focus: #222222;
	--hm-radius: 12px;

	container-type: inline-size;
	color: var(--hm-text);
	line-height: 1.5;
}

/* Color presets (contrast checked against WCAG AA) */
.hm-preset-main {
	--hm-text: #222222; --hm-muted: #575757; --hm-heading: #222222; --hm-link: #222222;
	--hm-btn-bg: #fab015; --hm-btn-fg: #222222; --hm-btn2-fg: #222222; --hm-btn2-border: #222222;
	--hm-band: #f3f0e5; --hm-band-accent: #fab015; --hm-border: #e3ded0;
	--hm-avatar-bg: #222222; --hm-avatar-fg: #fab015; --hm-focus: #222222;
}
.hm-preset-midwest {
	--hm-text: #1e2646; --hm-muted: #3a4885; --hm-heading: #1e2646; --hm-link: #3a4885;
	--hm-btn-bg: #d03a53; --hm-btn-fg: #ffffff; --hm-btn2-fg: #3a4885; --hm-btn2-border: #3a4885;
	--hm-band: #eaf5fc; --hm-band-accent: #d03a53; --hm-border: #cfe2f0;
	--hm-avatar-bg: #3a4885; --hm-avatar-fg: #ffffff; --hm-focus: #1e2646;
}
.hm-preset-nashville {
	--hm-text: #3b2412; --hm-muted: #6b4a33; --hm-heading: #1a5f70; --hm-link: #1a5f70;
	--hm-btn-bg: #b5450f; --hm-btn-fg: #ffffff; --hm-btn2-fg: #1a5f70; --hm-btn2-border: #1a5f70;
	--hm-band: #fff2d2; --hm-band-accent: #e96222; --hm-border: #ebddbc;
	--hm-avatar-bg: #1a5f70; --hm-avatar-fg: #fff2d2; --hm-focus: #3b2412;
}
.hm-preset-none {
	--hm-text: inherit; --hm-muted: currentColor; --hm-heading: inherit; --hm-link: currentColor;
	--hm-btn-bg: transparent; --hm-btn-fg: currentColor; --hm-btn2-fg: currentColor; --hm-btn2-border: currentColor;
	--hm-surface: transparent; --hm-band: rgba(128, 128, 128, .08); --hm-border: rgba(128, 128, 128, .3);
	--hm-field-bg: transparent; --hm-avatar-bg: rgba(128, 128, 128, .2); --hm-avatar-fg: currentColor; --hm-focus: currentColor;
}
.hm-preset-none .hm-btn--primary { border-color: currentColor; }

.hm-sessions *,
.hm-sessions *::before,
.hm-sessions *::after { box-sizing: border-box; }

.hm-sessions [hidden] { display: none !important; }

.hm-sessions :focus-visible {
	outline: 2px solid var(--hm-focus);
	outline-offset: 2px;
}

.hm-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- filter bar ---------- */

.hm-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: .75rem 1rem;
	margin: 0 0 2rem;
	padding: 1rem 1.25rem;
	background: var(--hm-band);
	border-radius: var(--hm-radius);
}
.hm-filter__field { flex: 1 1 12rem; min-width: 0; }
.hm-filter__field--grow { flex: 3 1 16rem; }
.hm-sessions .hm-filter label {
	display: block;
	margin: 0 0 .3rem;
	font-size: .875rem;
	font-weight: 700;
	color: var(--hm-text);
}
.hm-sessions .hm-filter select,
.hm-sessions .hm-filter input {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: .55rem .75rem;
	font: inherit;
	font-size: 1rem;
	color: var(--hm-text);
	background-color: var(--hm-field-bg);
	border: 1px solid var(--hm-muted);
	border-radius: 8px;
	box-shadow: none;
}
.hm-filter__count {
	flex: 1 0 100%;
	margin: 0;
	font-size: .875rem;
	color: var(--hm-muted);
}

/* ---------- event group ---------- */

.hm-event {
	margin: 0 0 2.5rem;
	background: var(--hm-surface);
	border: 1px solid var(--hm-border);
	border-radius: var(--hm-radius);
	overflow: hidden;
	scroll-margin-top: 6rem;
}
.hm-event__header {
	display: grid;
	gap: 1rem;
	padding: 1rem;
	background: var(--hm-band);
	border-top: 4px solid var(--hm-band-accent);
}
.hm-event__media {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 420px;
	overflow: hidden;
	border-radius: calc(var(--hm-radius) - 4px);
	background: var(--hm-avatar-bg);
}
.hm-event__media a { display: block; height: 100%; }
.hm-event__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover; /* crops the letterbox bars on YouTube's 4:3 thumbnails */
}
.hm-event__media--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	color: var(--hm-avatar-fg);
	text-align: center;
}
.hm-event__year { font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.hm-event__place { margin-top: .35rem; font-size: 1rem; font-weight: 600; }

.hm-sessions .hm-event__title {
	margin: 0 0 .35rem;
	padding: 0;
	font-size: 1.625rem;
	line-height: 1.2;
	color: var(--hm-heading);
}
.hm-event__info p { margin: 0 0 .3rem; }
.hm-sessions .hm-event__dates { margin-bottom: 0; font-weight: 700; }
.hm-event__stats span { white-space: nowrap; }
.hm-event__ce { font-size: .9375rem; font-weight: 600; }
.hm-badge--ce { color: var(--hm-text); }
.hm-event__stats { font-size: .875rem; color: var(--hm-muted); }
.hm-event__links a { color: var(--hm-link); font-weight: 700; }

/* ---------- session rows ---------- */

.hm-sessions .hm-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.hm-sessions .hm-session {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: .25rem 1rem;
	margin: 0;
	padding: 1.125rem 1rem;
	border-top: 1px solid var(--hm-border);
}
.hm-session:first-child { border-top: 0; }
.hm-session__body { min-width: 0; }

.hm-sessions .hm-session__title {
	margin: 0 0 .3rem;
	padding: 0;
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--hm-heading);
}
.hm-session__people { font-size: .9375rem; }
.hm-sessions .hm-session__people p { margin: 0 0 .15rem; }
.hm-person__name { font-weight: 700; }
.hm-person__role { color: var(--hm-muted); }
.hm-sep { color: var(--hm-muted); }
.hm-role {
	display: inline-block;
	margin-right: .5em;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hm-muted);
}

.hm-sessions .hm-session__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: .3rem 0 0;
	font-size: .875rem;
	color: var(--hm-muted);
}
.hm-badge {
	display: inline-block;
	padding: .1rem .55rem;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	border: 1px solid currentColor;
	border-radius: 999px;
}

.hm-session__desc { margin-top: .35rem; }
.hm-session__desc summary {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	min-height: 28px;
	font-size: .875rem;
	font-weight: 700;
	color: var(--hm-link);
	cursor: pointer;
	list-style: none;
}
.hm-session__desc summary::-webkit-details-marker { display: none; }
.hm-session__desc summary::before {
	content: "";
	width: .45em;
	height: .45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .15s ease;
}
.hm-session__desc[open] summary::before { transform: rotate(45deg); }
.hm-session__desc-body {
	max-width: 70ch;
	margin-top: .35rem;
	font-size: .9375rem;
}
.hm-sessions .hm-session__desc-body p { margin: 0 0 .6em; }

/* ---------- speaker avatars: fixed slot so titles always line up ---------- */

.hm-avatars {
	position: relative;
	width: 64px;
	height: 58px;
}
.hm-avatar {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 50%;
	background: var(--hm-avatar-bg);
	color: var(--hm-avatar-fg);
	font-weight: 800;
	line-height: 1;
	letter-spacing: .02em;
	box-shadow: 0 0 0 2px var(--hm-surface);
}
.hm-sessions .hm-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}
.hm-avatars--1 .hm-avatar { top: 0; left: 0; width: 58px; height: 58px; font-size: 1.125rem; }
.hm-avatars--2 .hm-avatar { width: 42px; height: 42px; font-size: .875rem; }
.hm-avatars--2 .hm-avatar:nth-child(1) { top: 0; left: 0; }
.hm-avatars--2 .hm-avatar:nth-child(2) { top: 16px; left: 22px; }
/* initials in the back circle sit in the part that isn't covered */
.hm-avatars--2 .hm-avatar--initials:first-child { align-items: flex-start; justify-content: flex-start; padding: 8px 0 0 6px; font-size: .8125rem; }
.hm-avatars .hm-avatar--more {
	top: auto; bottom: -6px; left: -4px;
	width: 26px; height: 26px;
	font-size: .6875rem;
	background: var(--hm-surface);
	color: var(--hm-text);
	box-shadow: 0 0 0 1px var(--hm-muted);
}

/* ---------- buttons ---------- */

.hm-session__actions {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: .6rem;
}
.hm-sessions .hm-btn {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 40px;
	padding: .45rem 1rem;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 999px;
	box-shadow: none;
	transition: filter .15s ease, background-color .15s ease;
}
.hm-sessions .hm-btn--primary,
.hm-sessions .hm-btn--primary:hover,
.hm-sessions .hm-btn--primary:visited {
	background: var(--hm-btn-bg);
	border-color: var(--hm-btn-bg);
	color: var(--hm-btn-fg);
}
.hm-sessions .hm-btn--secondary,
.hm-sessions .hm-btn--secondary:hover,
.hm-sessions .hm-btn--secondary:visited {
	background: var(--hm-btn2-bg);
	border-color: var(--hm-btn2-border);
	color: var(--hm-btn2-fg);
}
.hm-sessions .hm-btn:hover { filter: brightness(.9); }
.hm-sessions .hm-btn--secondary:hover { filter: none; background: var(--hm-band); }
.hm-icon { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }
.hm-btn__tag {
	padding-left: .45rem;
	font-size: .6875rem;
	letter-spacing: .04em;
	border-left: 1px solid currentColor;
}

/* ---------- narrow containers (phones, sidebars) ---------- */

@container (max-width: 479px) {
	.hm-sessions .hm-session { grid-template-columns: 48px minmax(0, 1fr); gap: .25rem .75rem; }
	.hm-avatars { width: 48px; height: 46px; }
	.hm-avatars--1 .hm-avatar { width: 46px; height: 46px; font-size: 1rem; }
	.hm-avatars--2 .hm-avatar { width: 34px; height: 34px; font-size: .75rem; }
	.hm-avatars--2 .hm-avatar:nth-child(2) { top: 12px; left: 14px; }
	.hm-avatars--2 .hm-avatar--initials:first-child { padding: 5px 0 0 4px; font-size: .6875rem; }
	.hm-sessions .hm-btn { padding: .45rem .8rem; }
	.hm-sessions .hm-event__title { font-size: 1.375rem; }
}

/* ---------- wider containers ---------- */

@container (min-width: 640px) {
	.hm-event__header {
		grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
		align-items: center;
		gap: 1.5rem;
		padding: 1.25rem;
	}
	.hm-event__media { max-width: none; }
}
@container (min-width: 760px) {
	.hm-sessions .hm-session {
		grid-template-columns: 64px minmax(0, 1fr) auto;
		column-gap: 1.25rem;
		padding: 1.25rem;
	}
	.hm-session__actions {
		grid-column: 3;
		grid-row: 1;
		align-self: start;
		justify-content: flex-end;
		margin-top: 0;
	}
}

/* ---------- messages ---------- */

.hm-empty {
	padding: 2rem 1rem;
	text-align: center;
	color: var(--hm-muted);
}
.hm-notice {
	padding: 1rem;
	color: #8a1f11;
	background: #fff;
	border: 2px dashed #8a1f11;
	border-radius: 8px;
}

/* ---------- session and speaker pages ---------- */

.hm-single { max-width: 820px; margin: 0 0 2rem; }
.hm-sessions .hm-single__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem .4rem;
	margin: 0 0 1.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--hm-muted);
}
.hm-sessions .hm-single__eyebrow a { color: var(--hm-link); }
.hm-single__eyebrow .hm-badge { margin-right: .35rem; }

.hm-single__video { margin: 0 0 1rem; }
.hm-sessions .hm-embed {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border-radius: var(--hm-radius);
}
.hm-sessions .hm-embed img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}
.hm-embed__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: auto;
	color: var(--hm-btn-fg);
	background: var(--hm-btn-bg);
	border-radius: 50%;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
	transition: transform .15s ease;
}
.hm-embed__play .hm-icon { width: 34px; height: 34px; margin-left: 4px; }
.hm-embed:hover .hm-embed__play,
.hm-embed:focus-visible .hm-embed__play { transform: scale(1.08); }
.hm-single__video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--hm-radius);
}

.hm-single__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.hm-single__desc { margin: 0 0 1.5rem; font-size: 1.0625rem; }
.hm-sessions .hm-single__desc p { margin: 0 0 1em; }
.hm-sessions .hm-single__ce {
	margin: 0 0 2rem;
	padding: .85rem 1rem;
	font-size: .9375rem;
	background: var(--hm-band);
	border-left: 4px solid var(--hm-band-accent);
	border-radius: 0 8px 8px 0;
}
.hm-sessions .hm-single__heading {
	margin: 2rem 0 .75rem;
	padding: 0;
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--hm-heading);
}

.hm-card {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	padding: 1.25rem 0;
	border-top: 1px solid var(--hm-border);
}
.hm-single__heading + .hm-card { padding-top: .5rem; border-top: 0; }
.hm-face {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 88px;
	height: 88px;
	overflow: hidden;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--hm-avatar-fg);
	background: var(--hm-avatar-bg);
	border-radius: 50%;
}
.hm-sessions .hm-face img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}
.hm-sessions .hm-card__name { margin: .4rem 0 .15rem; padding: 0; font-size: 1.125rem; line-height: 1.3; }
.hm-sessions .hm-card__name a,
.hm-sessions .hm-talk__title a { color: var(--hm-heading); text-decoration: none; }
.hm-sessions .hm-card__name a:hover,
.hm-sessions .hm-talk__title a:hover { text-decoration: underline; }
.hm-sessions .hm-card__role { margin: 0; color: var(--hm-muted); }
.hm-card__bio { margin-top: .6rem; font-size: .9375rem; }
.hm-sessions .hm-card__bio p { margin: 0 0 .75em; }

.hm-profile { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 1.5rem; }
.hm-profile .hm-face { width: 128px; height: 128px; font-size: 2.25rem; }
.hm-sessions .hm-profile__role { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--hm-muted); }

.hm-sessions .hm-talks { margin: 0; padding: 0; list-style: none; }
.hm-sessions .hm-talk { margin: 0; padding: 1rem 0; border-top: 1px solid var(--hm-border); }
.hm-talk:first-child { padding-top: .25rem; border-top: 0; }
.hm-sessions .hm-talk__meta { margin: 0 0 .2rem; font-size: .875rem; font-weight: 700; color: var(--hm-muted); }
.hm-sessions .hm-talk__title { margin: 0; padding: 0; font-size: 1.125rem; line-height: 1.35; }
.hm-sessions .hm-talk__has { margin: .25rem 0 0; font-size: .8125rem; color: var(--hm-muted); }

.hm-single__nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	font-weight: 700;
	border-top: 1px solid var(--hm-border);
}
.hm-sessions .hm-single__nav a { color: var(--hm-link); }

@container (max-width: 479px) {
	.hm-card { grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; }
	.hm-card .hm-face { width: 64px; height: 64px; font-size: 1.125rem; }
	.hm-profile .hm-face { width: 96px; height: 96px; font-size: 1.75rem; }
	.hm-embed__play { width: 60px; height: 60px; }
	.hm-embed__play .hm-icon { width: 26px; height: 26px; }
}

/* ---------- video player ---------- */

.hm-player {
	width: min(960px, 94vw);
	max-width: none;
	padding: 0;
	color: #fff;
	background: #000;
	border: 0;
	border-radius: var(--hm-radius);
	overflow: hidden;
}
.hm-player::backdrop { background: rgba(0, 0, 0, .8); }
.hm-player__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .35rem .35rem .35rem 1rem;
}
.hm-sessions .hm-player__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}
.hm-sessions .hm-player__close {
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 1.75rem;
	line-height: 1;
	color: #fff;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
.hm-sessions .hm-player__close:focus-visible { outline-color: #fff; }
.hm-player__frame { aspect-ratio: 16 / 9; background: #000; }
.hm-player__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
	.hm-sessions * { transition: none !important; }
}

@media print {
	.hm-filter, .hm-session__actions { display: none !important; }
	.hm-session__desc-body { display: block !important; }
}
