/* Hinman Speakers — front-end styles */

.hs-speakers {
	--hs-accent: #e8a33d;
	--hs-ink: #1c2b4a;
	--hs-text: #333;
	--hs-muted: #5a6472;
	--hs-border: #d8dde3;
	--hs-icon: #2f6f4f;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--hs-text);
}

.hs-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.hs-title {
	font-size: 30px;
	font-weight: 700;
	color: var(--hs-accent);
	margin: 0;
}

.hs-new-key {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--hs-muted);
}

.hs-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 2px solid var(--hs-ink);
	color: #c0392b;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.02em;
	padding: 3px 8px;
	border-radius: 40% 40% 40% 4px;
}

/* ---------- Alphabet bar ---------- */
.hs-alphabet {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--hs-border);
	margin-bottom: 24px;
}

.hs-letter {
	background: none;
	border: 1px solid transparent;
	color: #2d6bac;
	font-weight: 700;
	font-size: 15px;
	padding: 3px 6px;
	cursor: pointer;
	border-radius: 3px;
	line-height: 1.2;
}

.hs-letter:hover:not(:disabled) { text-decoration: underline; }
.hs-letter.is-active { border-color: var(--hs-ink); }
.hs-letter:disabled { color: #c2c8d0; cursor: default; }

.hs-clear {
	background: none;
	border: 0;
	color: #2f6f4f;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	margin-left: auto;
}

/* ---------- Results ---------- */
.hs-results-count { min-height: 1em; }

.hs-results-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.hs-empty, .hs-error {
	grid-column: 1 / -1;
	padding: 24px;
	text-align: center;
	color: var(--hs-muted);
}

.hs-card {
	position: relative;
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 20px;
	padding: 20px;
	border: 1px solid var(--hs-border);
	border-radius: 6px;
}

.hs-card-photo {
	position: relative;
	grid-row: 1;
	justify-self: start;
}

.hs-card-photo-img {
	display: block;
	max-width: 140px;
	max-height: 140px;
	width: auto;
	height: auto;
	background: #eee;
}

.hs-card-badge {
	position: absolute;
	top: -10px;
	left: -10px;
}

.hs-card-body { min-width: 0; }

.hs-card-name {
	font-size: 21px;
	font-weight: 700;
	color: var(--hs-accent);
	margin: 0 0 6px;
	line-height: 1.2;
}

.hs-card-subject {
	font-weight: 700;
	color: var(--hs-ink);
	margin: 0 0 4px;
}

.hs-card-format,
.hs-card-location {
	color: var(--hs-muted);
	margin: 0 0 4px;
	font-size: 14.5px;
}

.hs-social {
	display: flex;
	gap: 8px;
	margin: 10px 0 4px;
}

.hs-social-link {
	display: inline-flex;
	width: 24px;
	height: 24px;
	color: var(--hs-icon);
}

.hs-social-link svg { width: 100%; height: 100%; fill: currentColor; }

.hs-virtual-bio {
	display: inline-block;
	background: none;
	border: 0;
	padding: 6px 0 0;
	color: #2d6bac;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.hs-card-bio {
	grid-column: 1 / -1;
	margin-top: 4px;
}

.hs-card-bio ul {
	margin: 0;
	padding-left: 20px;
}

.hs-card-bio li {
	color: #2d6bac;
	margin: 6px 0;
	font-size: 14.5px;
}

/* ---------- Modal (Meet the Speaker) ---------- */
.hs-modal[hidden] { display: none; }

.hs-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(20, 33, 58, 0.6);
	z-index: 100000; /* above Enfold header (501) and WP admin bar (99999) */
}

.hs-modal-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(90vw, 720px);
	background: #000;
	border-radius: 6px;
	z-index: 100001;
	aspect-ratio: 16 / 9;
}

.hs-modal-body { width: 100%; height: 100%; }
.hs-modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }

.hs-modal-close {
	position: absolute;
	top: -36px;
	right: 0;
	background: none;
	border: 0;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* ---------- View Courses button ---------- */
.hs-view-courses {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	padding: 6px 0 0;
	color: #2d6bac;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.hs-view-courses:hover { text-decoration: underline; }

.hs-view-courses svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* ---------- Courses Modal ---------- */
.hs-courses-dialog {
	width: min(92vw, 900px);
	max-height: 85vh;
	background: #fff;
	aspect-ratio: auto;
	display: flex;
	flex-direction: column;
}

.hs-courses-close {
	top: 10px;
	right: 14px;
	color: var(--hs-ink);
	z-index: 2;
}

.hs-courses-body {
	padding: 28px;
	overflow-y: auto;
}

.hs-courses-speaker {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 8px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--hs-border);
}

.hs-courses-speaker-photo {
	max-width: 90px;
	max-height: 110px;
	width: auto;
	height: auto;
	background: #eee;
}

.hs-courses-speaker-name {
	font-size: 22px;
	font-weight: 700;
	color: var(--hs-accent);
	margin: 0 0 4px;
	line-height: 1.2;
}

.hs-courses-speaker-subject {
	font-weight: 700;
	color: var(--hs-ink);
	margin: 0 0 2px;
}

.hs-courses-speaker-location {
	color: var(--hs-muted);
	margin: 0;
	font-size: 14.5px;
}

.hs-courses-loading,
.hs-courses-empty {
	padding: 24px 0;
	text-align: center;
	color: var(--hs-muted);
}

.hs-courses-day {
	font-size: 24px;
	font-weight: 700;
	color: var(--hs-accent);
	margin: 26px 0 12px;
}

.hs-courses-day:first-of-type { margin-top: 0; }

.hs-course {
	background: #eef3fb;
	border: 1px solid #d3e0f0;
	border-radius: 6px;
	padding: 16px 18px;
	margin: 0 0 14px;
}

.hs-course-title {
	font-size: 16.5px;
	font-weight: 700;
	color: var(--hs-ink);
	margin: 0 0 8px;
	line-height: 1.3;
}

.hs-course-meta {
	margin: 0 0 4px;
	font-size: 14.5px;
}

.hs-course-fees {
	margin: 4px 0 8px;
	font-size: 14.5px;
}

.hs-course-fees p { margin: 0 0 4px; }

.hs-course-description {
	font-size: 14px;
	line-height: 1.55;
	color: #444;
}

.hs-course-description p { margin: 0 0 8px; }
.hs-course-description :last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 850px) {
	.hs-results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.hs-card { grid-template-columns: 1fr; }
	.hs-card-photo { justify-self: center; }
	.hs-card-photo-img { max-width: 100%; max-height: 220px; }
	.hs-courses-dialog { width: 94vw; max-height: 88vh; }
	.hs-courses-body { padding: 18px; }
	.hs-courses-day { font-size: 20px; }
}
