/* Hinman — consolidated front-end styles
 * Covers: Courses, Speakers, Special Events, Receptions, and the shared
 * Program-Details + speaker modals. */

/* ============ Shared variables & modal ============ */

/* The variables also apply to .hinman-modal because modals are moved to
 * <body> (portal-style) and are no longer inside a listing container. */
.hinman-courses,
.hinman-speakers,
.hinman-events,
.hinman-modal {
	--hinman-accent: #e8a33d;
	--hinman-ink: #1c2b4a;
	--hinman-text: #333;
	--hinman-muted: #5a6472;
	--hinman-border: #d8dde3;
	--hinman-link: #2e6da4;
	--hinman-icon: #2f6f4f;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--hinman-text);
}

.hinman-modal[hidden] { display: none; }

.hinman-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) */
}

/* Base dialog — light, used by the details/courses modals. */
.hinman-modal-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(92vw, 860px);
	max-height: 86vh;
	background: #fff;
	border-radius: 6px;
	z-index: 100001;
	display: flex;
	flex-direction: column;
}

.hinman-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: 0;
	color: var(--hinman-ink, #1c2b4a);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.hinman-modal-body {
	padding: 28px;
	overflow-y: auto;
}

.hinman-modal-loading,
.hinman-modal-error {
	padding: 24px 0;
	text-align: center;
	color: var(--hinman-muted, #5a6472);
}

/* Speaker video modal ("Meet the Speaker") — dark, 16:9. Overrides base dialog.
 * Scoped by #hinman-modal because the modals are moved to <body> (portal-style)
 * and are no longer inside the .hinman-speakers container. */
#hinman-modal .hinman-modal-dialog {
	width: min(90vw, 720px);
	background: #000;
	aspect-ratio: 16 / 9;
	max-height: none;
}

#hinman-modal .hinman-modal-body { width: 100%; height: 100%; padding: 0; overflow: visible; }
#hinman-modal .hinman-modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }
#hinman-modal .hinman-modal-close { top: -36px; right: 0; color: #fff; }

/* ============ Details (Program-Details) modal ============ */

.hinman-details-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--hinman-ink);
	margin: 0 32px 12px 0;
	line-height: 1.25;
}

.hinman-details-meta {
	margin: 4px 0;
	font-size: 14.5px;
}

.hinman-details-fees {
	margin: 8px 0;
	font-size: 14.5px;
}

.hinman-details-fees p { margin: 0 0 4px; }

.hinman-details-register { margin: 10px 0; }

.hinman-register-button {
	display: inline-block;
	background: var(--hinman-accent);
	color: #fff;
	padding: 8px 18px;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
}

.hinman-register-button:hover { opacity: 0.92; text-decoration: none; }

.hinman-register-note { color: var(--hinman-muted); }

.hinman-details-keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0;
}

.hinman-details-chip {
	display: inline-block;
	background: #eef3fb;
	border: 1px solid #d3e0f0;
	border-radius: 20px;
	padding: 3px 12px;
	font-size: 13px;
	color: var(--hinman-ink);
}

.hinman-details-description {
	font-size: 14.5px;
	line-height: 1.6;
	color: #444;
	margin: 14px 0;
}

.hinman-details-description p { margin: 0 0 10px; }
.hinman-details-description :last-child { margin-bottom: 0; }

.hinman-details-image { margin: 16px 0; line-height: 0; }

.hinman-details-image img {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--hinman-border);
	border-radius: 4px;
}

.hinman-details-speakers {
	margin-top: 20px;
	border-top: 1px solid var(--hinman-border);
	padding-top: 6px;
}

.hinman-details-speaker {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 16px 0;
	border-bottom: 1px solid var(--hinman-border);
}

.hinman-details-speaker:last-child { border-bottom: 0; }

.hinman-details-speaker-photo {
	max-width: 110px;
	max-height: 140px;
	width: auto;
	height: auto;
	background: #eee;
	flex-shrink: 0;
}

.hinman-details-speaker-body { min-width: 0; }

.hinman-details-speaker-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--hinman-accent);
	margin: 0 0 4px;
	line-height: 1.2;
}

.hinman-details-speaker-subject {
	font-weight: 700;
	color: var(--hinman-ink);
	margin: 0 0 2px;
	font-size: 14.5px;
}

.hinman-details-speaker-location {
	color: var(--hinman-muted);
	margin: 0 0 4px;
	font-size: 14px;
}

.hinman-speaker-social {
	display: flex;
	gap: 8px;
	margin: 8px 0 2px;
}

.hinman-speaker-social-link {
	display: inline-flex;
	width: 24px;
	height: 24px;
	color: var(--hinman-icon);
}

.hinman-speaker-social-link svg { width: 100%; height: 100%; fill: currentColor; }

.hinman-details-speaker-bio {
	font-size: 14px;
	line-height: 1.55;
}

.hinman-details-speaker-bio ul { margin: 6px 0 0; padding-left: 20px; }

.hinman-details-speaker-bio li { color: #2d6bac; margin: 5px 0; }

/* ============ Courses ============ */

.hinman-courses {
	max-width: 1200px;
	margin: 0 auto;
}

.hinman-layout {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

.hinman-filters {
	flex: 0 0 260px;
	max-width: 260px;
}

.hinman-favorites-tools {
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
}

.hinman-favorites-toggle {
	display: flex !important;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
}

.hinman-star,
.hinman-favorite-star {
	color: #4b8abd;
}

.hinman-star-label { font-size: 1.2rem; }

.hinman-download-favorites {
	margin-top: 0.6rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid #999;
	border-radius: 3px;
	background: #f7f7f7;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.hinman-download-favorites:disabled { cursor: not-allowed; opacity: 0.55; }

.hinman-favorites-note { margin: 0.4rem 0 0; font-size: 0.85rem; }

.hinman-filter-group { margin-bottom: 1.5rem; }

.hinman-filter-group h3 {
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 0.5rem;
}

.hinman-filter-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.hinman-keyword-input,
.hinman-filter-group select {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.hinman-checkbox-list {
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 0.5rem;
}

.hinman-checkbox-list[data-loading="1"]::before {
	content: "Loading…";
	color: #777;
}

.hinman-checkbox {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.2rem 0;
	font-size: 0.95rem;
}

.hinman-results { flex: 1 1 auto; min-width: 0; }

.hinman-results-count { font-weight: 600; margin-bottom: 1rem; }

.hinman-results-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.hinman-course-card {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 1rem;
}

.hinman-course-heading {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
}

.hinman-favorite-star {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	margin: -0.25rem 0 0 -0.35rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.45;
}

.hinman-favorite-star:hover,
.hinman-favorite-star:focus-visible,
.hinman-favorite-star.is-favorite { opacity: 1; }

.hinman-favorite-star:focus-visible,
.hinman-download-favorites:focus-visible {
	outline: 2px solid #1d5d91;
	outline-offset: 2px;
}

.hinman-course-title { flex: 1 1 auto; margin: 0 0 0.5rem; font-size: 1.1rem; }

.hinman-course-title-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-weight: inherit;
	color: var(--hinman-link);
	cursor: pointer;
	text-align: left;
}

.hinman-course-title-link:hover { text-decoration: underline; }

.hinman-course-meta,
.hinman-course-location,
.hinman-course-speakers {
	color: #555;
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
}

.hinman-speaker-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--hinman-link);
	cursor: pointer;
}

.hinman-speaker-link:hover { text-decoration: underline; }

.hinman-course-keywords { margin-bottom: 0.5rem; }

.hinman-chip {
	display: inline-block;
	background: #f0f0f0;
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	margin: 0 0.25rem 0.25rem 0;
	font-size: 0.8rem;
}

.hinman-course-details span,
.hinman-course-fees span {
	display: inline-block;
	margin-right: 0.75rem;
	font-size: 0.85rem;
}

.hinman-course-fees { font-weight: 600; }

.hinman-error { color: #a00; }

/* ============ Speakers directory ============ */

.hinman-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.hinman-title { font-size: 30px; font-weight: 700; color: var(--hinman-accent); margin: 0; }

.hinman-new-key {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--hinman-muted);
}

.hinman-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 2px solid var(--hinman-ink);
	color: #c0392b;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.02em;
	padding: 3px 8px;
	border-radius: 40% 40% 40% 4px;
}

.hinman-alphabet {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--hinman-border);
	margin-bottom: 24px;
}

.hinman-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;
}

.hinman-letter:hover:not(:disabled) { text-decoration: underline; }
.hinman-letter.is-active { border-color: var(--hinman-ink); }
.hinman-letter:disabled { color: #c2c8d0; cursor: default; }

.hinman-clear {
	background: none;
	border: 0;
	color: var(--hinman-icon);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	margin-left: auto;
}

.hinman-results-count { min-height: 1em; }

.hinman-results-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.hinman-empty, .hinman-error {
	grid-column: 1 / -1;
	padding: 24px;
	text-align: center;
	color: var(--hinman-muted);
}

.hinman-card {
	position: relative;
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 20px;
	padding: 20px;
	border: 1px solid var(--hinman-border);
	border-radius: 6px;
}

.hinman-card-photo { position: relative; grid-row: 1; justify-self: start; }

.hinman-card-photo-img {
	display: block;
	max-width: 140px;
	max-height: 140px;
	width: auto;
	height: auto;
	background: #eee;
}

.hinman-card-badge { position: absolute; top: -10px; left: -10px; }

.hinman-card-body { min-width: 0; }

.hinman-card-name {
	font-size: 21px;
	font-weight: 700;
	color: var(--hinman-accent);
	margin: 0 0 6px;
	line-height: 1.2;
}

.hinman-card-subject { font-weight: 700; color: var(--hinman-ink); margin: 0 0 4px; }

.hinman-card-format,
.hinman-card-location { color: var(--hinman-muted); margin: 0 0 4px; font-size: 14.5px; }

.hinman-social { display: flex; gap: 8px; margin: 10px 0 4px; }

.hinman-social-link { display: inline-flex; width: 24px; height: 24px; color: var(--hinman-icon); }
.hinman-social-link svg { width: 100%; height: 100%; fill: currentColor; }

.hinman-virtual-bio,
.hinman-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;
}

.hinman-view-courses:hover { text-decoration: underline; }
.hinman-view-courses svg { width: 18px; height: 18px; fill: currentColor; }

.hinman-card-bio { grid-column: 1 / -1; margin-top: 4px; }
.hinman-card-bio ul { margin: 0; padding-left: 20px; }
.hinman-card-bio li { color: #2d6bac; margin: 6px 0; font-size: 14.5px; }

/* Courses modal (speaker courses / details) — light background variant. */
.hinman-courses-dialog {
	width: min(92vw, 900px);
	max-height: 85vh;
	background: #fff;
	aspect-ratio: auto;
	display: flex;
	flex-direction: column;
}

.hinman-courses-close { top: 10px; right: 14px; color: var(--hinman-ink); z-index: 2; }

.hinman-courses-body { padding: 28px; overflow-y: auto; }

.hinman-courses-speaker {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 8px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--hinman-border);
}

.hinman-courses-speaker-photo {
	max-width: 90px;
	max-height: 110px;
	width: auto;
	height: auto;
	background: #eee;
}

.hinman-courses-speaker-name {
	font-size: 22px;
	font-weight: 700;
	color: var(--hinman-accent);
	margin: 0 0 4px;
	line-height: 1.2;
}

.hinman-courses-speaker-subject { font-weight: 700; color: var(--hinman-ink); margin: 0 0 2px; }
.hinman-courses-speaker-location { color: var(--hinman-muted); margin: 0; font-size: 14.5px; }

.hinman-courses-loading,
.hinman-courses-empty { padding: 24px 0; text-align: center; color: var(--hinman-muted); }

.hinman-courses-day { font-size: 24px; font-weight: 700; color: var(--hinman-accent); margin: 26px 0 12px; }
.hinman-courses-day:first-of-type { margin-top: 0; }

.hinman-course {
	background: #eef3fb;
	border: 1px solid #d3e0f0;
	border-radius: 6px;
	padding: 16px 18px;
	margin: 0 0 14px;
}

.hinman-course-title { font-size: 16.5px; font-weight: 700; color: var(--hinman-ink); margin: 0 0 8px; line-height: 1.3; }
.hinman-course-meta { margin: 0 0 4px; font-size: 14.5px; }
.hinman-course-fees { margin: 4px 0 8px; font-size: 14.5px; }
.hinman-course-fees p { margin: 0 0 4px; }
.hinman-course-description { font-size: 14px; line-height: 1.55; color: #444; }
.hinman-course-description p { margin: 0 0 8px; }
.hinman-course-description :last-child { margin-bottom: 0; }

/* ============ Special Events & Receptions ============ */

.hinman-day-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.hinman-day-nav a {
	display: inline-block;
	padding: 8px 20px;
	background: #f2f2f2;
	border: 1px solid var(--hinman-border);
	border-radius: 4px;
	color: #4a4a4a;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.hinman-day-nav a:hover,
.hinman-day-nav a:focus { background: #e4e4e4; text-decoration: none; }

.hinman-day { margin-bottom: 44px; scroll-margin-top: 24px; }

.hinman-day-heading {
	font-size: 26px;
	font-weight: 600;
	color: var(--hinman-accent);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--hinman-accent);
	margin: 0 0 8px;
}

.hinman-event {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 20px;
	align-items: start;
	padding: 22px 0;
}

.hinman-event-no-image { grid-template-columns: 1fr; }

.hinman-event-thumb { display: inline-block; line-height: 0; }

.hinman-event-thumb img {
	width: 100%;
	max-width: 200px;
	height: auto;
	background: #fff;
	border: 1px solid var(--hinman-border);
	border-radius: 4px;
	padding: 3px;
}

.hinman-event-body { min-width: 0; }

.hinman-event-title {
	display: inline-block;
	font-size: 17px;
	font-weight: 600;
	color: var(--hinman-link);
	line-height: 1.35;
	margin-bottom: 2px;
}

button.hinman-event-title,
button.hinman-reception-title {
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	border-radius: 0;
}

button.hinman-event-title:hover,
button.hinman-event-title:focus,
button.hinman-reception-title:hover,
button.hinman-reception-title:focus {
	text-decoration: underline;
	background: none;
	color: var(--hinman-link);
}

.hinman-event-course,
.hinman-event-date,
.hinman-event-location {
	margin: 2px 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--hinman-text);
}

.hinman-empty,
.hinman-error { padding: 24px; text-align: center; color: var(--hinman-muted); }
.hinman-error-admin { font-size: 13px; padding-top: 0; }

/* Receptions */
.hinman-receptions-head { display: block; margin-bottom: 20px; overflow: hidden; }
.hinman-receptions-message { margin: 0; font-weight: 600; color: var(--hinman-text); }

.hinman-reception { padding: 0 0 22px; margin-bottom: 22px; }

.hinman-reception-title {
	display: inline-block;
	background: none;
	border: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--hinman-link);
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}

.hinman-reception-date,
.hinman-reception-time,
.hinman-reception-location,
.hinman-reception-speakers {
	margin: 3px 0;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--hinman-text);
}

.hinman-reception-speakers { color: var(--hinman-muted); }

/* ============ Speaker landing page ============ */

.hinman-speaker-landing-header {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 20px;
}

.hinman-speaker-landing-photo {
	max-width: 180px;
	max-height: 220px;
	width: auto;
	height: auto;
	background: #eee;
	border: 1px solid var(--hinman-border);
	border-radius: 6px;
}

.hinman-speaker-landing-intro { min-width: 0; }

.hinman-speaker-landing-name {
	font-size: 30px;
	font-weight: 700;
	color: var(--hinman-accent);
	margin: 0 0 8px;
	line-height: 1.2;
}

.hinman-speaker-landing-subject { font-weight: 700; color: var(--hinman-ink); margin: 0 0 4px; }
.hinman-speaker-landing-location { color: var(--hinman-muted); margin: 0 0 4px; font-size: 14.5px; }
.hinman-speaker-landing-format { color: var(--hinman-muted); margin: 0; font-size: 14.5px; }

.hinman-speaker-landing-bio { margin: 18px 0 28px; }
.hinman-speaker-landing-bio ul { margin: 0; padding-left: 20px; }
.hinman-speaker-landing-bio li { color: #2d6bac; margin: 6px 0; font-size: 15px; }

.hinman-speaker-landing-courses h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--hinman-ink);
	margin: 0 0 16px;
}

/* ============ Responsive ============ */

@media (max-width: 782px) {
	.hinman-layout { flex-direction: column; }
	.hinman-filters { max-width: 100%; flex-basis: auto; }
}

@media (max-width: 850px) {
	.hinman-results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.hinman-courses,
	.hinman-speakers,
	.hinman-events { padding: 16px 14px 40px; }

	.hinman-event { grid-template-columns: 1fr; gap: 12px; }
	.hinman-event-thumb img { max-width: 240px; }
	.hinman-day-heading { font-size: 22px; }
	.hinman-modal-dialog { width: 94vw; max-height: 90vh; }
	.hinman-modal-body { padding: 18px; }
}

@media (max-width: 480px) {
	.hinman-card { grid-template-columns: 1fr; }
	.hinman-card-photo { justify-self: center; }
	.hinman-card-photo-img { max-width: 100%; max-height: 220px; }
	.hinman-courses-dialog { width: 94vw; max-height: 88vh; }
	.hinman-courses-body { padding: 18px; }
	.hinman-courses-day { font-size: 20px; }
	.hinman-speaker-landing-header { flex-direction: column; }
}
