/* Hinman Special Events — front-end styles */

.hse-events {
	--hse-accent: #e8a33d;
	--hse-ink: #1c2b4a;
	--hse-text: #333;
	--hse-muted: #5a6472;
	--hse-border: #d8dde3;
	--hse-link: #2e6da4;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--hse-text);
}

/* ---------- Day jump buttons ---------- */
.hse-day-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.hse-day-nav a {
	display: inline-block;
	padding: 8px 20px;
	background: #f2f2f2;
	border: 1px solid var(--hse-border);
	border-radius: 4px;
	color: #4a4a4a;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.hse-day-nav a:hover,
.hse-day-nav a:focus {
	background: #e4e4e4;
	text-decoration: none;
}

/* ---------- Day sections ---------- */
.hse-day {
	margin-bottom: 44px;
	scroll-margin-top: 24px;
}

.hse-day-heading {
	font-size: 26px;
	font-weight: 600;
	color: var(--hse-accent);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--hse-accent);
	margin: 0 0 8px;
}

/* ---------- Event rows ---------- */
.hse-event {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 20px;
	align-items: start;
	padding: 22px 0;
}

.hse-event-no-image {
	grid-template-columns: 1fr;
}

.hse-event-thumb {
	display: inline-block;
	line-height: 0;
}

.hse-event-thumb img {
	width: 100%;
	max-width: 200px;
	height: auto;
	background: #fff;
	border: 1px solid var(--hse-border);
	border-radius: 4px;
	padding: 3px;
}

.hse-event-body {
	min-width: 0;
}

.hse-event-title {
	display: inline-block;
	font-size: 17px;
	font-weight: 600;
	color: var(--hse-link);
	line-height: 1.35;
	margin-bottom: 2px;
}

button.hse-event-title,
button.hse-reception-title {
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	border-radius: 0;
}

a.hse-event-title:hover,
a.hse-event-title:focus,
button.hse-event-title:hover,
button.hse-event-title:focus {
	text-decoration: underline;
	background: none;
	color: var(--hse-link);
}

.hse-event-course,
.hse-event-date {
	margin: 2px 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--hse-text);
}

/* ---------- States ---------- */
.hse-empty,
.hse-error {
	padding: 24px;
	text-align: center;
	color: var(--hse-muted);
}

.hse-error-admin {
	font-size: 13px;
	padding-top: 0;
}

/* ---------- Receptions list ---------- */
.hse-receptions-head {
	display: block;
	margin-bottom: 20px;
	overflow: hidden;
}

.hse-receptions-message {
	margin: 0;
	font-weight: 600;
	color: var(--hse-text);
}

.hse-reception {
	padding: 0 0 22px;
	margin-bottom: 22px;
}

.hse-reception-title {
	display: inline-block;
	background: none;
	border: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--hse-link);
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}

.hse-reception-title:hover,
.hse-reception-title:focus {
	text-decoration: underline;
}

.hse-reception-date,
.hse-reception-time,
.hse-reception-speakers {
	margin: 3px 0;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--hse-text);
}

.hse-reception-speakers {
	color: var(--hse-muted);
}

/* ---------- Details modal ---------- */
.hse-modal[hidden] { display: none; }

.hse-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) */
}

.hse-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;
}

.hse-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: 0;
	color: var(--hse-ink);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.hse-modal-body {
	padding: 28px;
	overflow-y: auto;
}

.hse-modal-loading,
.hse-modal-error {
	padding: 24px 0;
	text-align: center;
	color: var(--hse-muted);
}

.hse-details-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--hse-ink);
	margin: 0 32px 12px 0;
	line-height: 1.25;
}

.hse-details-meta {
	margin: 4px 0;
	font-size: 14.5px;
}

.hse-details-fees {
	margin: 8px 0;
	font-size: 14.5px;
}

.hse-details-fees p { margin: 0 0 4px; }

.hse-details-keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0;
}

.hse-details-chip {
	display: inline-block;
	background: #eef3fb;
	border: 1px solid #d3e0f0;
	border-radius: 20px;
	padding: 3px 12px;
	font-size: 13px;
	color: var(--hse-ink);
}

.hse-details-description {
	font-size: 14.5px;
	line-height: 1.6;
	color: #444;
	margin: 14px 0;
}

.hse-details-description p { margin: 0 0 10px; }
.hse-details-description :last-child { margin-bottom: 0; }

.hse-details-image {
	margin: 16px 0;
	line-height: 0;
}

.hse-details-image img {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--hse-border);
	border-radius: 4px;
}

.hse-details-speakers {
	margin-top: 20px;
	border-top: 1px solid var(--hse-border);
	padding-top: 6px;
}

.hse-details-speaker {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 16px 0;
	border-bottom: 1px solid var(--hse-border);
}

.hse-details-speaker:last-child { border-bottom: 0; }

.hse-details-speaker-photo {
	max-width: 110px;
	max-height: 140px;
	width: auto;
	height: auto;
	background: #eee;
	flex-shrink: 0;
}

.hse-details-speaker-body { min-width: 0; }

.hse-details-speaker-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--hse-accent);
	margin: 0 0 4px;
	line-height: 1.2;
}

.hse-details-speaker-subject {
	font-weight: 700;
	color: var(--hse-ink);
	margin: 0 0 2px;
	font-size: 14.5px;
}

.hse-details-speaker-location {
	color: var(--hse-muted);
	margin: 0 0 4px;
	font-size: 14px;
}

.hse-speaker-social {
	display: flex;
	gap: 8px;
	margin: 8px 0 2px;
}

.hse-speaker-social-link {
	display: inline-flex;
	width: 24px;
	height: 24px;
	color: #2f6f4f;
}

.hse-speaker-social-link svg { width: 100%; height: 100%; fill: currentColor; }

.hse-details-speaker-bio {
	font-size: 14px;
	line-height: 1.55;
}

.hse-details-speaker-bio ul {
	margin: 6px 0 0;
	padding-left: 20px;
}

.hse-details-speaker-bio li {
	color: #2d6bac;
	margin: 5px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.hse-events {
		padding: 16px 14px 40px;
	}

	.hse-event {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hse-event-thumb img {
		max-width: 240px;
	}

	.hse-day-heading {
		font-size: 22px;
	}

	.hse-modal-dialog {
		width: 94vw;
		max-height: 90vh;
	}

	.hse-modal-body {
		padding: 18px;
	}

	.hse-details-title {
		font-size: 20px;
	}

	.hse-details-speaker {
		flex-direction: column;
		gap: 10px;
	}

	.hse-details-speaker-photo {
		max-width: 140px;
	}
}
