/*
 * SBC27 Event Hub — public pages.
 * Clean cards on a light gray field. Everything is scoped under .eh so the
 * site theme is never affected. Colors meet WCAG 2.1 AA contrast.
 */

.eh {
	/*
	 * Tokens come from the active theme (the SBC27 block theme's theme.json),
	 * so the hub matches the site and follows it if the theme changes.
	 * Fallbacks are the 2027 Indy style guide values, for any other theme.
	 */
	--eh-navy: var(--wp--preset--color--navy, #002d61);
	--eh-blue: var(--wp--preset--color--accent, #3174b9);
	--eh-red: var(--wp--preset--color--red, #cd2128);
	--eh-red-hover: var(--wp--preset--color--red-hover, #a8191f);
	--eh-black: var(--wp--preset--color--ink, #15141f);

	--eh-bg: var(--wp--preset--color--surface-alt, #f4f6f9);
	--eh-card: var(--wp--preset--color--surface, #ffffff);
	--eh-border: var(--wp--preset--color--divider, #dfe4ec);
	--eh-text: var(--eh-black);
	--eh-muted: var(--wp--preset--color--ink-secondary, #545a68);
	--eh-accent: var(--eh-blue);
	--eh-accent-hover: var(--wp--preset--color--accent-hover, #002d61);
	--eh-accent-soft: var(--wp--preset--color--wash, #eaf2fb);
	--eh-heading: var(--wp--preset--color--accent, #002d61);
	--eh-display: var(--wp--preset--font-family--headline, "Arial Black", "Arial Bold", Gadget, ui-sans-serif, system-ui, sans-serif);
	--eh-btn-radius: var(--wp--custom--radius--button, 10px);
	--eh-input-radius: var(--wp--custom--radius--input, 8px);
	--eh-radius: var(--wp--custom--radius--card, 12px);
	--eh-font: var(--wp--preset--font-family--sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);

	background: var(--eh-bg);
	color: var(--eh-text);
	font-family: var(--eh-font);
	font-size: 16px;
	line-height: 1.55;
	padding: 40px 16px 64px;
}

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

.eh-wrap {
	max-width: 880px;
	margin: 0 auto;
}

.eh a {
	color: var(--eh-accent);
	text-underline-offset: 2px;
}

.eh a:hover {
	color: var(--eh-accent-hover);
}

.eh :focus-visible {
	outline: 3px solid var(--eh-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.eh h1,
.eh h2,
.eh h3 {
	font-family: var(--eh-font);
	color: var(--eh-text);
	letter-spacing: -0.01em;
	margin: 0;
	padding: 0;
}

.eh h1 { font-size: 30px; line-height: 1.2; font-weight: 700; }
.eh h2 { font-size: 20px; line-height: 1.3; font-weight: 650; }
.eh h3 { font-size: 18px; line-height: 1.35; font-weight: 650; }

.eh p { margin: 0 0 8px; padding: 0; }

/* Page heading */
.eh-head { margin-bottom: 28px; }
.eh-sub { color: var(--eh-muted); font-size: 17px; margin-top: 6px; max-width: 640px; }
.eh-back { margin-bottom: 12px; font-size: 15px; }
.eh-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--eh-muted); margin-bottom: 4px; }
.eh-muted { color: var(--eh-muted); }

/* Cards */
.eh-card {
	background: var(--eh-card);
	border: 1px solid var(--eh-border);
	border-radius: var(--eh-radius);
	padding: 24px;
	margin: 0 0 16px;
}

.eh-card--quiet { background: transparent; }
.eh-narrow { max-width: 520px; }

.eh-section { margin: 36px 0 0; }
.eh-section > h2 { margin-bottom: 14px; }

.eh-grid { display: grid; gap: 16px; }
.eh-grid .eh-card { margin: 0; }

/* Who's signed in */
.eh-who { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.eh-who__name { font-weight: 650; margin: 0; }
.eh-who .eh-muted { margin: 0; }
.eh-who__links { margin: 0; font-size: 15px; }

/* Event card */
.eh-event__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.eh-event__name { margin-bottom: 4px; }
.eh-event__desc { margin-top: 8px; }
.eh-event__speakers { color: var(--eh-muted); font-size: 15px; }
.eh-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--eh-muted); font-size: 15px; margin: 0; }
.eh-price { font-weight: 700; font-size: 18px; white-space: nowrap; margin: 0; }
.eh-price--free { color: var(--eh-ok); }

.eh-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.eh-pill {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--eh-accent-soft);
	color: #1a3f8f;
	margin: 6px 0 0;
}
.eh-tags .eh-pill { margin: 0; }
.eh-pill--ok { background: var(--eh-ok-soft); color: var(--eh-ok); }
.eh-pill--muted { background: #eef0f3; color: var(--eh-muted); }

.eh-details { margin-top: 14px; border-top: 1px solid var(--eh-border); padding-top: 12px; }
.eh-details summary { cursor: pointer; font-weight: 600; color: var(--eh-accent); }
.eh-details[open] summary { margin-bottom: 10px; }
.eh-details p,
.eh-prose { font-size: 15px; }
.eh-prose p { margin-bottom: 8px; }

.eh-select {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px solid var(--eh-border);
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
}
.eh-select:hover { border-color: var(--eh-accent); }
.eh-select input { width: 20px; height: 20px; accent-color: var(--eh-accent); margin: 0; }
.eh-select:has(input:checked) { border-color: var(--eh-accent); background: var(--eh-accent-soft); }

/* Sticky continue bar */
.eh-actionbar {
	position: sticky;
	bottom: 0;
	padding: 16px 0;
	margin-top: 24px;
	background: linear-gradient(to top, var(--eh-bg) 70%, rgba(245, 246, 248, 0));
	display: flex;
	justify-content: flex-end;
}

/* Buttons */
.eh-btn,
.eh .eh-btn {
	display: inline-block;
	background: var(--eh-accent);
	color: #fff;
	border: 1px solid var(--eh-accent);
	border-radius: 10px;
	padding: 12px 20px;
	font: 600 16px/1.2 var(--eh-font);
	text-decoration: none;
	cursor: pointer;
	min-height: 44px;
}
.eh .eh-btn:hover { background: var(--eh-accent-hover); border-color: var(--eh-accent-hover); color: #fff; }
.eh .eh-btn--secondary { background: var(--eh-card); color: var(--eh-text); border-color: var(--eh-border); }
.eh .eh-btn--secondary:hover { background: #eef0f3; color: var(--eh-text); border-color: var(--eh-border); }
.eh .eh-btn--danger { background: var(--eh-danger); border-color: var(--eh-danger); }
.eh .eh-btn--danger:hover { background: #8f1c13; border-color: #8f1c13; }
.eh-btn--block { width: 100%; text-align: center; }
.eh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.eh-link-btn {
	background: none;
	border: 0;
	padding: 8px 0;
	font: 600 15px var(--eh-font);
	color: var(--eh-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	min-height: 44px;
}

/* Rows (My registrations) */
.eh-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.eh-row__title { font-weight: 650; margin: 0 0 2px; }
.eh-row__actions { margin: 0; flex-shrink: 0; }

/* Lists */
.eh-list { list-style: none; margin: 0 0 12px; padding: 0; }
.eh-list li { padding: 10px 0; border-bottom: 1px solid var(--eh-border); display: flex; flex-direction: column; }
.eh-list li:last-child { border-bottom: 0; }

/* Cart */
.eh-line { margin: 0 0 16px; min-width: 0; }
.eh-line--inactive { opacity: 0.8; }
.eh-line__state { font-weight: 600; margin-top: 10px; }
.eh-line__remove { margin: 12px 0 0; font-size: 15px; }
.eh-summary__total { display: flex; justify-content: space-between; font-size: 20px; margin-bottom: 16px; }

/* Forms */
.eh-field { margin: 18px 0 0; border: 0; padding: 0; min-width: 0; }
.eh-field legend,
.eh-label { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.eh-req { font-weight: 400; color: var(--eh-muted); font-size: 14px; }
.eh-input {
	width: 100%;
	max-width: 100%;
	border: 1px solid #c4cad3;
	border-radius: 8px;
	padding: 10px 12px;
	font: 16px var(--eh-font);
	background: #fff;
	color: var(--eh-text);
	min-height: 44px;
}
.eh-input:focus { border-color: var(--eh-accent); }
.eh-radios { display: grid; gap: 6px; margin-bottom: 12px; }
.eh-radios label,
.eh-check { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.eh-radios input,
.eh-check input { width: 18px; height: 18px; accent-color: var(--eh-accent); margin: 0; }
.eh-hint { color: var(--eh-muted); font-size: 14px; margin-top: 6px; }

/* Notices */
.eh-notice { border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; border: 1px solid; }
.eh-notice--info { background: var(--eh-accent-soft); border-color: #c9d8f5; color: #1a3f8f; }
.eh-notice--success { background: var(--eh-ok-soft); border-color: #bfe0cc; color: var(--eh-ok); }
.eh-notice--error { background: var(--eh-danger-soft); border-color: #f4c7c3; color: var(--eh-danger); }
.eh-notice ul { margin: 6px 0 0 20px; padding: 0; }

.eh .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

@media (max-width: 600px) {
	.eh { padding: 24px 16px 48px; }
	.eh h1 { font-size: 26px; }
	.eh-card { padding: 18px; }
	.eh-row { flex-direction: column; align-items: flex-start; }
	.eh-actionbar .eh-btn { width: 100%; text-align: center; }
}

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

/*
 * Theme isolation: some themes style every <button> with very specific
 * selectors. Pin our button colors so the hub looks the same under any theme.
 */
.eh .eh-btn { background-color: var(--eh-accent) !important; color: #fff !important; border-color: var(--eh-accent) !important; }
.eh .eh-btn:hover { background-color: var(--eh-accent-hover) !important; border-color: var(--eh-accent-hover) !important; }
.eh .eh-btn--secondary { background-color: var(--eh-card) !important; color: var(--eh-text) !important; border-color: var(--eh-border) !important; }
.eh .eh-btn--secondary:hover { background-color: #eef0f3 !important; }
.eh .eh-btn--danger { background-color: var(--eh-danger) !important; border-color: var(--eh-danger) !important; }
.eh .eh-btn--danger:hover { background-color: #8f1c13 !important; border-color: #8f1c13 !important; }
.eh .eh-link-btn { background: none !important; color: var(--eh-accent) !important; border: 0 !important; }

/* Event image: always 16:9, edge to edge across the top of the card. */
.eh-event__media {
	margin: -24px -24px 18px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--eh-radius) var(--eh-radius) 0 0;
	background: #e9ecf0;
}
/* Absolute fill + !important so no theme image rule (height:auto, max-width, margins) can break the 16:9 frame. */
.eh-event__media { position: relative; }
.eh .eh-event__media img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}
.eh-more { margin: 12px 0 0; font-weight: 600; }
@media (max-width: 600px) {
	.eh-event__media { margin: -18px -18px 14px; }
}
.eh-external { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 0; }
.eh-external .eh-hint { margin: 0; }

/* Add to calendar: a quiet text link that opens a short list. */
.eh-cal { margin: 8px 0 0; font-size: 14px; }
.eh-cal summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--eh-muted); font-weight: 500; list-style: none; }
.eh-cal summary::-webkit-details-marker { display: none; }
.eh-cal summary::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat; }
.eh-cal summary:hover { color: var(--eh-accent); }
.eh-cal[open] summary { color: var(--eh-text); }
.eh-cal ul { list-style: none; margin: 8px 0 0; padding: 4px 0; border: 1px solid var(--eh-border); border-radius: 10px; background: var(--eh-card); max-width: 260px; }
.eh-cal li { margin: 0; }
.eh-cal li a { display: block; padding: 8px 14px; text-decoration: none; color: var(--eh-text); }
.eh-cal li a:hover, .eh-cal li a:focus-visible { background: var(--eh-accent-soft); color: var(--eh-accent); }
.eh-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.eh-section-head h2 { margin: 0; }
.eh-quiet-link { font-size: 14px; color: var(--eh-muted) !important; }
.eh-quiet-link:hover { color: var(--eh-accent) !important; }

/* Event names link to their own page. */
.eh .eh-event__link { color: inherit; text-decoration: none; }
.eh .eh-event__link:hover { color: var(--eh-accent); text-decoration: underline; }
.eh-single h1.eh-event__name { font-size: 28px; margin-bottom: 6px; }

/* ---------- Compact catalog (built for 100+ events) ---------- */
.eh-filters {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
	position: sticky; top: 0; z-index: 5;
	background: var(--eh-bg); padding: 12px 0; margin: 8px 0 4px;
	border-bottom: 1px solid var(--eh-border);
}
.eh-filters[hidden] { display: none; }
.eh-filters .eh-input { width: auto; min-height: 40px; padding: 8px 10px; font-size: 15px; }
.eh-filters__search { flex: 1 1 240px; }
.eh-filters__search .eh-input { width: 100%; }
.eh-filters__count { margin: 0 4px; color: var(--eh-muted); font-size: 14px; }
.eh-filters__clear { min-height: 0; padding: 0; font-size: 14px; }
body.admin-bar .eh-filters { top: 32px; }

.eh-day { margin: 28px 0 0; }
.eh-day[hidden] { display: none; }
.eh-day__label { font-size: 17px !important; margin: 0 0 10px !important; color: var(--eh-text); }
.eh-list-card { background: var(--eh-card); border: 1px solid var(--eh-border); border-radius: var(--eh-radius); overflow: hidden; }

.eh-ev {
	display: grid;
	grid-template-columns: 176px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: start;
	padding: 14px 16px;
	border-top: 1px solid var(--eh-border);
}
.eh-ev:first-child { border-top: 0; }
.eh-ev[hidden] { display: none; }
.eh-ev:has(input[data-eh-pick]:checked) { background: var(--eh-accent-soft); }

.eh-ev__thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #e9ecf0; }
.eh .eh-ev__thumb img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover !important; display: block !important; }
.eh-ev__thumb-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--eh-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; }
.eh-ev__thumb-empty strong { font-size: 22px; color: var(--eh-text); letter-spacing: 0; }

.eh-ev__main { min-width: 0; }
.eh-ev__main .eh-eyebrow { margin: 0 0 2px; font-size: 12px; }
.eh .eh-ev__name { font-size: 17px; line-height: 1.3; margin: 0 0 2px; }
.eh .eh-ev__name a { color: var(--eh-text); text-decoration: none; }
.eh .eh-ev__name a:hover { color: var(--eh-accent); text-decoration: underline; }
.eh-ev__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; color: var(--eh-muted); font-size: 14px; }
.eh-ev__time { color: var(--eh-text); font-weight: 600; }
.eh-ev__desc { margin: 4px 0 0; font-size: 14px; color: var(--eh-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.eh-ev__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.eh-ev__tags .eh-pill { margin: 0; font-size: 12px; padding: 2px 8px; }

.eh-ev__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 120px; text-align: right; }
.eh-ev__side .eh-price { font-size: 16px; }
.eh-ev__pick {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	border: 1px solid var(--eh-border); border-radius: 8px; padding: 6px 10px; font-weight: 600; font-size: 14px; background: var(--eh-card);
	min-height: 36px;
}
.eh-ev__pick:hover { border-color: var(--eh-accent); }
.eh-ev__pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--eh-accent); }
.eh-ev__pick:has(input:checked) { border-color: var(--eh-accent); background: var(--eh-accent); color: #fff; }
.eh-ev__out { font-weight: 600; font-size: 14px; border: 1px solid var(--eh-border); border-radius: 8px; padding: 6px 10px; text-decoration: none; background: var(--eh-card); }
.eh-ev__more { font-size: 13px; color: var(--eh-muted) !important; }
.eh-ev__more:hover { color: var(--eh-accent) !important; }

/* Selection bar: with JavaScript it appears only after something is picked. */
.eh-actionbar.is-js { visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .15s ease, transform .15s ease; }
.eh-actionbar.is-js.is-active { visibility: visible; opacity: 1; transform: none; }

@media (max-width: 700px) {
	.eh-ev { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
	.eh-ev__side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; min-width: 0; text-align: left; gap: 8px 12px; }
	.eh-ev__desc { -webkit-line-clamp: 2; }
	.eh-filters .eh-input { flex: 1 1 calc(50% - 8px); }
	.eh-filters__search { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.eh-actionbar.is-js { transition: none; }
}

/* Wider list page so the filters fit on one line; shorter rows. */
.eh-hub-page .eh-wrap:has(.eh-catalog) { max-width: 1040px; }
.eh-ev { grid-template-columns: 144px minmax(0, 1fr) auto; }
.eh-filters .eh-input { max-width: 190px; }
.eh-filters__search { max-width: none; }
.eh-filters__search .eh-input { max-width: none; }
.eh-ev__thumb-empty { background: #f0f2f5; }
@media (max-width: 700px) {
	.eh-ev { grid-template-columns: 96px minmax(0, 1fr); }
	.eh-filters .eh-input { max-width: none; }
}
@media (max-width: 700px) {
	.eh-filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.eh-filters[hidden] { display: none; }
	.eh-filters__search { grid-column: 1 / -1; }
	.eh-filters .eh-input { width: 100%; max-width: none; }
	.eh-filters__count, .eh-filters__clear { grid-column: 1 / -1; margin: 0; }
	.eh-ev__desc { display: none; }
	.eh-ev__meta { font-size: 13px; }
}


/* ---------- SBC27 brand layer ---------- */

/* Display type: heavy italic, like the INDY wordmark. */
.eh h1,
.eh .eh-day__label,
.eh-single h1.eh-event__name {
	font-family: var(--eh-display);
	font-style: italic;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--eh-navy);
}
.eh h1 { font-size: 30px; text-transform: none; }
@media (max-width: 600px) { .eh h1 { font-size: 24px; } }
.eh h2 { font-family: var(--eh-display); font-style: italic; font-weight: 700; color: var(--eh-navy); }
.eh .eh-day__label { font-size: 20px !important; font-weight: 700; }

/* Speed stripes from the logo, beside the page title. */
.eh-head h1 { display: flex; align-items: center; gap: 14px; }
.eh-head h1::before {
	content: "";
	flex: 0 0 auto;
	width: 46px;
	height: 22px;
	transform: skewX(-20deg);
	background:
		linear-gradient(var(--eh-navy), var(--eh-navy)) 0 0 / 100% 6px no-repeat,
		linear-gradient(var(--eh-blue), var(--eh-blue)) 6px 8px / calc(100% - 6px) 6px no-repeat,
		linear-gradient(var(--eh-red), var(--eh-red)) 12px 16px / calc(100% - 12px) 6px no-repeat;
}

/* Type labels in red, like "SBC27". */
.eh .eh-eyebrow { color: var(--eh-red); font-family: var(--eh-display); font-style: italic; font-weight: 900; font-size: 11px; letter-spacing: 0.04em; }

/* Buttons: navy, hover to blue. */
.eh .eh-btn { background-color: var(--eh-navy) !important; border-color: var(--eh-navy) !important; font-family: var(--eh-display); font-style: italic; font-weight: 700; letter-spacing: 0.01em; }
.eh .eh-btn:hover { background-color: var(--eh-blue) !important; border-color: var(--eh-blue) !important; }
.eh .eh-btn--secondary { font-family: var(--eh-font); font-style: normal; background-color: var(--eh-card) !important; color: var(--eh-navy) !important; border-color: var(--eh-border) !important; }
.eh .eh-btn--secondary:hover { background-color: var(--eh-accent-soft) !important; color: var(--eh-navy) !important; }
.eh .eh-btn--danger { background-color: var(--eh-red) !important; border-color: var(--eh-red) !important; }

/* Prices and picks. */
.eh .eh-price { color: var(--eh-navy); font-family: var(--eh-display); font-style: italic; font-weight: 700; }
.eh .eh-price--free { color: var(--eh-blue); }
.eh-ev__pick:has(input:checked) { background: var(--eh-navy); border-color: var(--eh-navy); }
.eh-ev:has(input[data-eh-pick]:checked) { background: var(--eh-accent-soft); box-shadow: inset 4px 0 0 var(--eh-blue); }
.eh .eh-ev__name a, .eh .eh-ev__name { color: var(--eh-black); }
.eh-ev__time { color: var(--eh-navy); }
.eh-pill { background: var(--eh-accent-soft); color: var(--eh-navy); }

/* Date tiles for events without a photo: navy with italic white type. */
.eh-ev__thumb-empty { background: var(--eh-navy) !important; color: rgba(255,255,255,0.85) !important; font-family: var(--eh-display); font-style: italic; }
.eh-ev__thumb-empty strong { color: #fff !important; font-size: 26px; font-weight: 800; }

/* Filter bar accent. */
.eh-filters { border-bottom: 2px solid var(--eh-navy); }
.eh-input:focus { border-color: var(--eh-blue); box-shadow: 0 0 0 2px rgba(49, 116, 185, 0.25); outline: none; }

/* ---------- Type scale: body 18px; every heading +4px (Jonathan, Oct 12) ---------- */
.eh { font-size: 18px; line-height: 1.55; }
.eh h1 { font-size: 34px; }                             /* was 30 */
.eh h2 { font-size: 24px; }                             /* was 20 */
.eh h3 { font-size: 22px; }                             /* was 18 */
.eh .eh-day__label { font-size: 24px !important; }     /* was 20 */
.eh .eh-ev__name { font-size: 21px; }                   /* was 17 */
.eh-single h1.eh-event__name { font-size: 32px; }       /* was 28 */
.eh .eh-summary__total { font-size: 24px; }             /* was 20 */
@media (max-width: 600px) {
	.eh h1 { font-size: 28px; }                         /* was 24 */
	.eh-single h1.eh-event__name { font-size: 26px; }
}

/* Supporting text moves up with the larger body so nothing reads as tiny. */
.eh-sub { font-size: 19px; }
.eh-back, .eh-who__links, .eh-meta, .eh-event__speakers, .eh-prose, .eh-details p, .eh-line__remove { font-size: 17px; }
.eh-ev__meta, .eh-ev__desc, .eh-hint, .eh-req, .eh-cal, .eh-quiet-link, .eh-filters__count, .eh-filters__clear { font-size: 16px; }
.eh-filters .eh-input, .eh-ev__pick, .eh-ev__out { font-size: 16px; }
.eh-ev__more { font-size: 15px; }
.eh-pill, .eh-ev__tags .eh-pill { font-size: 14px; }
.eh .eh-eyebrow, .eh-ev__main .eh-eyebrow { font-size: 13px; }
.eh .eh-ev__side .eh-price { font-size: 20px; }
.eh .eh-price { font-size: 22px; }
.eh .eh-btn { font-size: 18px; }
.eh-input { font-size: 18px; }
@media (max-width: 700px) {
	.eh-ev__meta { font-size: 15px; }
}

/* ---------- Arial Black italic: always uppercase, tight tracking ---------- */
.eh h1,
.eh h2,
.eh .eh-day__label,
.eh-single h1.eh-event__name,
.eh .eh-eyebrow,
.eh .eh-price,
.eh .eh-btn:not(.eh-btn--secondary),
.eh-ev__thumb-empty {
	text-transform: uppercase;
	letter-spacing: -0.035em;
}
/* Small sizes get a lighter squeeze so they stay legible. */
.eh .eh-eyebrow,
.eh-ev__thumb-empty { letter-spacing: -0.01em; }
.eh .eh-btn:not(.eh-btn--secondary) { letter-spacing: -0.02em; }

/* Event colors (Jonathan, Oct 12): prices in red, type labels in blue. */
.eh .eh-price,
.eh .eh-price--free { color: var(--eh-red); }
.eh .eh-eyebrow { color: var(--eh-blue); }

/* Room and venue in italics (Jonathan, Oct 12). */
.eh .eh-where,
.eh .eh-ev__where { font-style: italic; }

/* ---------- Our own checkboxes and radios (themes draw theirs differently) ---------- */
.eh input[type="checkbox"],
.eh input[type="radio"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid #8a93a3 !important;
	border-radius: 5px !important;
	background: #fff center / 14px 14px no-repeat !important;
	box-shadow: none !important;
	display: inline-block !important;
	position: relative;
	vertical-align: middle;
	cursor: pointer;
	flex: 0 0 auto;
}
.eh input[type="radio"] { border-radius: 50% !important; }
/* Kill any theme-drawn marks. */
.eh input[type="checkbox"]::before,
.eh input[type="checkbox"]::after,
.eh input[type="radio"]::before,
.eh input[type="radio"]::after { content: none !important; display: none !important; }

.eh input[type="checkbox"]:checked {
	border-color: var(--eh-navy) !important;
	background-color: var(--eh-navy) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.eh input[type="radio"]:checked {
	border-color: var(--eh-navy) !important;
	background-image: radial-gradient(circle, var(--eh-navy) 0 4.5px, transparent 5px) !important;
	background-size: 100% 100% !important;
}
.eh input[type="checkbox"]:focus-visible,
.eh input[type="radio"]:focus-visible { outline: 3px solid var(--eh-blue) !important; outline-offset: 2px; }

/* Inside the navy "Register" button once picked: white box, navy check. */
.eh-ev__pick:has(input:checked) input[type="checkbox"]:checked {
	border-color: #fff !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23002d61' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.eh-ev__pick input, .eh-select input, .eh-check input, .eh-radios input { width: 20px !important; height: 20px !important; }


/* ---------- Fit the SBC27 block theme ---------- */
/* Headings in the theme's heading color (accent blue), like every other page on the site. */
.eh h1,
.eh h2,
.eh .eh-day__label,
.eh-single h1.eh-event__name { color: var(--eh-heading); }

/* Primary actions follow the theme: red pill, like the site's Register button. */
.eh .eh-btn:not(.eh-btn--secondary):not(.eh-btn--danger) { background-color: var(--eh-red) !important; border-color: var(--eh-red) !important; border-radius: var(--eh-btn-radius); }
.eh .eh-btn:not(.eh-btn--secondary):not(.eh-btn--danger):hover { background-color: var(--eh-red-hover) !important; border-color: var(--eh-red-hover) !important; }
.eh .eh-btn--secondary, .eh .eh-btn--danger { border-radius: var(--eh-btn-radius); }
.eh-ev__pick, .eh-ev__out { border-radius: var(--eh-btn-radius); padding-inline: 14px; }
.eh .eh-input, .eh-filters .eh-input { border-radius: var(--eh-input-radius); }

/* The theme's header is sticky; the hub's filter bar tucks under it (height measured in hub.js). */
.eh-filters { top: var(--eh-sticky-top, 0px); }
body.admin-bar .eh-filters { top: calc(var(--eh-sticky-top, 0px) + 32px); }
@media (max-width: 782px) { body.admin-bar .eh-filters { top: var(--eh-sticky-top, 0px); } }

/* Event names stay in the body face (the theme styles every heading as uppercase Galano). */
.eh .eh-ev__name,
.eh .eh-line .eh-event__name,
.eh .eh-row__title,
.eh h3:not(.eh-day__label) {
	font-family: var(--eh-font) !important;
	font-style: normal !important;
	text-transform: none !important;
	letter-spacing: -0.01em !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
}
.eh .eh-line .eh-event__name { font-size: 22px; color: var(--eh-black); }

/* Speakers on an event page: label, name, title or role, optional photo. */
.eh-speakers { margin: 14px 0 0; }
.eh .eh-speakers__label { margin: 0 0 6px; font-family: var(--eh-display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 13px; color: var(--eh-blue); }
.eh-speakers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eh-speaker { display: flex; align-items: center; gap: 12px; margin: 0; }
.eh .eh-speaker__photo { width: 48px !important; height: 48px !important; border-radius: 50%; object-fit: cover; flex: 0 0 48px; margin: 0 !important; }
.eh-speaker__text { display: flex; flex-direction: column; line-height: 1.3; }
.eh-speaker__name { font-size: 18px; color: var(--eh-black); }
.eh-speaker__title { font-size: 16px; color: var(--eh-muted); }

/* "View details →" reads as a link: site link color, semi-bold, underline on hover. */
.eh .eh-ev__more,
.eh .eh-ev__more:visited { color: var(--eh-blue) !important; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.eh .eh-ev__more:hover,
.eh .eh-ev__more:focus-visible { color: var(--eh-accent-hover) !important; text-decoration: underline; text-underline-offset: 3px; }
.eh .eh-speaker__initials { display: inline-flex; align-items: center; justify-content: center; background: var(--eh-accent-soft); color: var(--eh-blue); font-family: var(--eh-display); font-style: italic; font-weight: 900; font-size: 16px; letter-spacing: -0.02em; border-radius: 50%; }

/* ---------- [sbc_events] lists on regular site pages ---------- */
/* Sits on the page's own background inside the theme's content column. */
.eh.eh--embed { background: transparent; padding: 0; margin-block: 24px; }
.eh--embed [hidden] { display: none !important; }
.eh--embed .eh-filters { position: static; background: transparent; }
.eh--embed .eh-day:first-of-type { margin-top: 12px; }

/* ---------- Sign in with an emailed code ---------- */
.eh-signin { margin-top: 16px; }
.eh-signin__form { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.eh-signin__form .eh-input { flex: 1 1 240px; width: auto; }
.eh-signin .eh-hint { margin: 0; }
.eh .eh-code { max-width: 200px; font-size: 26px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; text-align: center; }

/* Sign-out links at the foot of My registrations. */
.eh-signout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 24px; font-size: 15px; }
.eh-signout form { margin: 0; }

/* The star that saves an event to someone's schedule. */
.eh-save { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--eh-border); border-radius: var(--eh-btn-radius); background: var(--eh-card); color: var(--eh-blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.eh-save[hidden] { display: none; }
.eh-save:hover { border-color: var(--eh-blue); }
.eh-save svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.eh-save[aria-pressed="true"] svg { fill: currentColor; }

/* Sessions of an event that runs over several. */
.eh-schedule { margin: 14px 0; }
.eh-schedule ul { list-style: none; margin: 0; padding: 0; }
.eh-schedule li { margin: 2px 0; }

/* The theme zeroes paragraph margins, which left form buttons touching the field above. */
.eh form > p:has(> .eh-btn), .eh form > .eh-btn { margin-top: 20px; margin-bottom: 0; }
.eh-card > form + .eh-hint { margin-top: 16px; }

/* Details form for people not yet in the registration system. */
.eh-details-form legend { float: left; width: 100%; margin-bottom: 4px; font-size: 18px; }
.eh-details-form legend + * { clear: both; }
.eh-cart > .eh-notice { margin-bottom: 16px; }

/* "Registration opens February 1, 2027" in place of the register button. */
.eh-ev__opens { margin: 0; font-size: 14px; font-weight: 600; color: var(--eh-muted); max-width: 180px; }
.eh-opens { margin-top: 16px; }

/* Phone check. */
.eh-check-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.eh-check-table th, .eh-check-table td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--eh-border); }
.eh-check-ok { color: #1a6b2d; font-weight: 600; }
.eh-check-bad { color: #b32d2e; font-weight: 600; }
