/**
 * Divi Event Hub — Event Details, Countdown and Venue Map (modules + single template).
 *
 * @package Divi_Event_Hub
 * @since   1.0.0
 */

/* ── Details ──────────────────────────────────────────────────────────── */

.deh-details {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-details-gap: 14px;
	--deh-details-icon-bg: #e7f0fe;
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: var(--deh-text);
}

.deh-details__rows { display: flex; flex-direction: column; gap: var(--deh-details-gap); }
.deh-details--inline .deh-details__rows { flex-direction: row; flex-wrap: wrap; gap: 10px 28px; }

.deh-details__row { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; }
.deh-details__row .deh-details__icon { grid-row: span 2; }

.deh-details__icon {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--deh-details-icon-bg);
	color: var(--deh-accent);
}

.deh-details__label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--deh-muted);
}

.deh-details__value { font-size: 15px; font-weight: 600; line-height: 1.45; }
.deh-details__value a { color: inherit; text-decoration: none; }
.deh-details__value a:hover { color: var(--deh-accent); }
.deh-details__sub { display: block; font-weight: 400; font-size: 13.5px; color: var(--deh-muted); }
.deh-details__tz { font-weight: 400; color: var(--deh-muted); }
.deh-details__status { position: static; align-self: flex-start; display: inline-block; }
.deh-details__row--category .deh-card__cats { margin-top: 2px; }

.deh-details__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Add to calendar dropdown */
.deh-atc { position: relative; }

.deh-atc__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid #e6e9f0;
	border-radius: 8px;
	background: #fff;
	color: var(--deh-text, #0f172a);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}

.deh-atc__toggle .deh-icon { color: var(--deh-accent, #1d47ff); }

.deh-atc__menu {
	display: none;
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	min-width: 200px;
	padding: 6px;
	background: #fff;
	border: 1px solid #e6e9f0;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
}

.deh-atc.is-open .deh-atc__menu { display: flex; flex-direction: column; }

.deh-atc__menu a {
	padding: 9px 12px;
	border-radius: 7px;
	color: var(--deh-text, #0f172a);
	font-size: 13.5px;
	text-decoration: none;
}

.deh-atc__menu a:hover { background: #f1f5f9; }

/* ── Countdown ────────────────────────────────────────────────────────── */

.deh-countdown {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-cd-gap: 14px;
	--deh-cd-box-bg: #ffffff;
	--deh-cd-box-border: 1px solid #e6e9f0;
	--deh-cd-box-radius: 14px;
	--deh-cd-box-size: 92px;
	--deh-cd-align: center;
	display: flex;
	flex-direction: column;
	align-items: var(--deh-cd-align);
	gap: 12px;
	color: var(--deh-text);
}

.deh-countdown__heading { margin: 0; font-size: 15px; font-weight: 600; color: var(--deh-muted); }
.deh-countdown__units { display: flex; flex-wrap: wrap; gap: var(--deh-cd-gap); justify-content: var(--deh-cd-align); max-width: 100%; }
/* Four boxes share a narrow column (a sidebar) instead of wrapping one onto its own line. */
.deh-countdown--box .deh-countdown__units { flex-wrap: nowrap; }
.deh-countdown--box .deh-countdown__unit { flex: 0 1 var(--deh-cd-box-size); min-width: 0; }

.deh-countdown__unit {
	min-width: var(--deh-cd-box-size);
	padding: 14px 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: var(--deh-cd-box-bg);
	border: var(--deh-cd-box-border);
	border-radius: var(--deh-cd-box-radius);
}

.deh-countdown__value { font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--deh-accent); }
.deh-countdown__label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--deh-muted); }

.deh-countdown--inline .deh-countdown__unit { flex-direction: row; align-items: baseline; min-width: 0; padding: 0; border: 0; background: none; gap: 4px; }
.deh-countdown--inline .deh-countdown__value { font-size: 22px; }
.deh-countdown--inline .deh-countdown__label { font-size: 12px; text-transform: none; letter-spacing: 0; }

.deh-countdown__expired { font-weight: 600; }
.deh-countdown.is-expired .deh-countdown__units { opacity: .45; }

/* ── Map ──────────────────────────────────────────────────────────────── */

.deh-map { --deh-map-height: 320px; --deh-map-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
.deh-map__frame { border-radius: var(--deh-map-radius); overflow: hidden; background: #f1f5f9; }
.deh-map__frame iframe { display: block; width: 100%; height: var(--deh-map-height); border: 0; }
.deh-map__address { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.deh-map__address span { color: #64748b; }
.deh-map--empty { padding: 28px; text-align: center; color: #64748b; border: 1px dashed #cbd5e1; border-radius: 12px; }

/* ── RSVP form ────────────────────────────────────────────────────────── */

.deh-rsvp {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-field-bg: #ffffff;
	--deh-field-border: #e2e8f0;
	--deh-field-radius: 8px;
	--deh-rsvp-gap: 14px;
	color: var(--deh-text);
}

.deh-rsvp__title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.deh-rsvp__intro { margin: 0 0 14px; color: var(--deh-muted); font-size: 14px; }
.deh-rsvp__seats { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--deh-accent); }
.deh-rsvp__form { display: flex; flex-direction: column; gap: var(--deh-rsvp-gap); }
.deh-rsvp__field { display: flex; flex-direction: column; gap: 6px; }
.deh-rsvp__label { font-size: 13px; font-weight: 600; }
.deh-rsvp__optional { font-weight: 400; color: var(--deh-muted); }

.deh-rsvp__input {
	width: 100%;
	padding: 11px 14px;
	font: inherit;
	font-size: 14.5px;
	color: var(--deh-text);
	background: var(--deh-field-bg);
	border: 1px solid var(--deh-field-border);
	border-radius: var(--deh-field-radius);
	box-sizing: border-box;
}

.deh-rsvp__input:focus { outline: 2px solid var(--deh-accent); outline-offset: 1px; border-color: var(--deh-accent); }
.deh-rsvp__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.deh-rsvp__submit { align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.deh-rsvp__submit[disabled] { opacity: .6; cursor: default; }

.deh-rsvp__notice {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.deh-rsvp__notice--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.deh-rsvp__notice--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.deh-rsvp__notice--info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; margin-bottom: 12px; }
.deh-rsvp__notice--closed { background: #f8fafc; color: var(--deh-muted); border: 1px dashed #cbd5e1; }
.deh-rsvp__notice--full, .deh-rsvp__notice--cancelled { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

/* ── Seats left ───────────────────────────────────────────────────────── */

.deh-seats {
	--deh-accent: #1d47ff;
	--deh-seats-warn: #dc2626;
	--deh-seats-track: #e2e8f0;
	--deh-text: #0f172a;
	--deh-seats-bar-height: 8px;
	--deh-seats-align: flex-start;
	display: flex;
	flex-direction: column;
	align-items: var(--deh-seats-align);
	gap: 8px;
	color: var(--deh-text);
}

.deh-seats__text { font-size: 14px; font-weight: 600; }
.deh-seats__bar { width: 100%; height: var(--deh-seats-bar-height); background: var(--deh-seats-track); border-radius: 999px; overflow: hidden; }
.deh-seats__fill { height: 100%; background: var(--deh-accent); border-radius: 999px; transition: width .4s ease; }
.deh-seats--low .deh-seats__fill, .deh-seats--low .deh-seats__text { background-color: var(--deh-seats-warn); }
.deh-seats--low .deh-seats__text { background: none; color: var(--deh-seats-warn); }
.deh-seats--full .deh-seats__fill { background: var(--deh-seats-warn); }
.deh-seats--badge .deh-seats__text { display: inline-block; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--deh-accent) 12%, #fff); color: var(--deh-accent); font-size: 12.5px; }
.deh-seats--badge.deh-seats--low .deh-seats__text, .deh-seats--badge.deh-seats--full .deh-seats__text { background: color-mix(in srgb, var(--deh-seats-warn) 12%, #fff); color: var(--deh-seats-warn); }

/* ── Shared: avatars + social links ───────────────────────────────────── */

.deh-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	overflow: hidden;
	background: #eef2ff;
	color: var(--deh-accent, #1d47ff);
	text-decoration: none;
}

.deh-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deh-avatar__initials { font-weight: 700; font-size: .38em; letter-spacing: .02em; line-height: 1; }

.deh-social { display: flex; flex-wrap: wrap; gap: 8px; }

.deh-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f1f5f9;
	color: var(--deh-muted, #64748b);
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.deh-social__link:hover { background: var(--deh-accent, #1d47ff); color: #fff; }
.deh-social__link .deh-icon { width: 15px; height: 15px; }

/* ── Speakers ─────────────────────────────────────────────────────────── */

.deh-speakers {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-speakers-columns: 3;
	--deh-speakers-gap: 24px;
	--deh-speaker-img: 96px;
	--deh-speaker-bg: #ffffff;
	--deh-speaker-radius: 14px;
	--deh-speaker-padding: 20px;
	--deh-speakers-align: center;
	color: var(--deh-text);
}

.deh-speakers__heading { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.deh-speakers__empty { margin: 0; color: var(--deh-muted); }
.deh-speakers__items { display: grid; gap: var(--deh-speakers-gap); }
.deh-speakers--grid .deh-speakers__items { grid-template-columns: repeat(var(--deh-speakers-columns), minmax(0, 1fr)); }
.deh-speakers--list .deh-speakers__items { grid-template-columns: minmax(0, 1fr); }
.deh-speakers--inline .deh-speakers__items { display: flex; flex-wrap: wrap; gap: calc(var(--deh-speakers-gap) / 2) var(--deh-speakers-gap); }

.deh-speaker {
	display: flex;
	flex-direction: column;
	align-items: var(--deh-speakers-align);
	text-align: var(--deh-speakers-align);
	gap: 12px;
	padding: var(--deh-speaker-padding);
	background: var(--deh-speaker-bg);
	border: 1px solid #e6e9f0;
	border-radius: var(--deh-speaker-radius);
}

.deh-speakers--list .deh-speaker { flex-direction: row; align-items: center; text-align: left; }
.deh-speakers--inline .deh-speaker { --deh-speaker-img: 40px; flex-direction: row; align-items: center; text-align: left; gap: 10px; padding: 0; border: 0; background: none; }
.deh-speakers--inline .deh-speaker__role, .deh-speakers--inline .deh-speaker__bio, .deh-speakers--inline .deh-social { display: none; }

.deh-speaker__image { width: var(--deh-speaker-img); height: var(--deh-speaker-img); font-size: var(--deh-speaker-img); }
.deh-speakers--img-circle .deh-speaker__image { border-radius: 50%; }
.deh-speakers--img-rounded .deh-speaker__image { border-radius: 14px; }
.deh-speakers--img-square .deh-speaker__image { border-radius: 0; }
.deh-speaker__body { display: flex; flex-direction: column; gap: 6px; align-items: inherit; min-width: 0; }
.deh-speaker__name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.deh-speaker__name a { color: inherit; text-decoration: none; }
.deh-speaker__name a:hover { color: var(--deh-accent); }
.deh-speaker__role { font-size: 13.5px; color: var(--deh-muted); }
.deh-speaker__sep { opacity: .6; }
.deh-speaker__bio { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--deh-muted); }
.deh-speaker .deh-social { margin-top: 4px; justify-content: var(--deh-speakers-align); }

@media (max-width: 980px) { .deh-speakers--grid:not(.deh-grid--module) .deh-speakers__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.deh-speakers--grid:not(.deh-grid--module) .deh-speakers__items { grid-template-columns: minmax(0, 1fr); }
	.deh-speakers--list .deh-speaker { flex-direction: column; align-items: var(--deh-speakers-align); text-align: var(--deh-speakers-align); }
}

/* ── Schedule ─────────────────────────────────────────────────────────── */

.deh-schedule {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-schedule-line: #e2e8f0;
	--deh-session-time-bg: #eef2ff;
	--deh-session-bg: #ffffff;
	--deh-schedule-gap: 12px;
	--deh-session-radius: 12px;
	--deh-session-time-width: 130px;
	color: var(--deh-text);
}

.deh-schedule__heading { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.deh-schedule__empty { margin: 0; color: var(--deh-muted); }
.deh-schedule__day + .deh-schedule__day { margin-top: 28px; }
.deh-schedule__day-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--deh-accent); }
.deh-schedule__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--deh-schedule-gap); }

.deh-session { display: flex; gap: 18px; align-items: flex-start; }
.deh-session__time {
	flex: 0 0 var(--deh-session-time-width);
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--deh-session-time-bg);
	color: var(--deh-accent);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}
.deh-session__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.deh-session__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.deh-session__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--deh-muted); }
.deh-session__meta a { color: inherit; }
.deh-session__location { display: inline-flex; align-items: center; gap: 5px; }
.deh-session__location .deh-icon { width: 14px; height: 14px; }
.deh-session__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--deh-muted); }

/* Timeline: a vertical line with a dot per session. */
.deh-schedule--timeline .deh-schedule__list { position: relative; padding-left: 22px; }
.deh-schedule--timeline .deh-schedule__list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--deh-schedule-line); }
.deh-schedule--timeline .deh-session { position: relative; }
.deh-schedule--timeline .deh-session::before { content: ""; position: absolute; left: -21px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--deh-accent); box-shadow: 0 0 0 3px var(--deh-session-bg); }

/* Table rows: full-width rows separated by lines. */
.deh-schedule--table .deh-schedule__list { gap: 0; border-top: 1px solid var(--deh-schedule-line); }
.deh-schedule--table .deh-session { padding: 14px 0; border-bottom: 1px solid var(--deh-schedule-line); }
.deh-schedule--table .deh-session__time { background: none; padding: 0; text-align: left; border-radius: 0; }

/* Cards. */
.deh-schedule--cards .deh-session { flex-direction: column; gap: 10px; padding: 18px; background: var(--deh-session-bg); border: 1px solid var(--deh-schedule-line); border-radius: var(--deh-session-radius); }
.deh-schedule--cards .deh-session__time { flex-basis: auto; align-self: flex-start; }

@media (max-width: 600px) {
	.deh-session { flex-direction: column; gap: 8px; }
	.deh-session__time { flex-basis: auto; align-self: flex-start; }
}

/* ── Organizer ────────────────────────────────────────────────────────── */

.deh-organizer {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-organizer-bg: #ffffff;
	--deh-organizer-radius: 14px;
	--deh-organizer-padding: 20px;
	--deh-organizer-img: 72px;
	--deh-organizer-gap: 16px;
	color: var(--deh-text);
}

.deh-organizer__heading { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.deh-organizer__empty { margin: 0; color: var(--deh-muted); }
.deh-organizer__items { display: flex; flex-direction: column; gap: var(--deh-organizer-gap); }
.deh-organizer__item {
	display: flex;
	gap: var(--deh-organizer-gap);
	padding: var(--deh-organizer-padding);
	background: var(--deh-organizer-bg);
	border: 1px solid #e6e9f0;
	border-radius: var(--deh-organizer-radius);
}
.deh-organizer--inline .deh-organizer__item { padding: 0; border: 0; background: none; align-items: center; }
.deh-organizer--inline .deh-organizer__bio, .deh-organizer--inline .deh-organizer__btn, .deh-organizer--inline .deh-social { display: none; }
.deh-organizer__image { width: var(--deh-organizer-img); height: var(--deh-organizer-img); font-size: var(--deh-organizer-img); border-radius: 14px; }
.deh-organizer__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.deh-organizer__name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.deh-organizer__name a { color: inherit; text-decoration: none; }
.deh-organizer__name a:hover { color: var(--deh-accent); }
.deh-organizer__bio { margin: 0; font-size: 14px; line-height: 1.6; color: var(--deh-muted); }
.deh-organizer__contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.deh-organizer__contact { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.deh-organizer__contact .deh-icon { width: 15px; height: 15px; color: var(--deh-accent); flex: 0 0 auto; }
.deh-organizer__contact a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.deh-organizer__contact a:hover { color: var(--deh-accent); }
.deh-organizer__btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 480px) { .deh-organizer__item { flex-direction: column; } }

/* ── Ticket selector ──────────────────────────────────────────────────── */

.deh-tickets {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-ticket-bg: #ffffff;
	--deh-ticket-border: #e6e9f0;
	--deh-ticket-radius: 12px;
	--deh-tickets-gap: 12px;
	--deh-field-bg: #ffffff;
	--deh-field-border: #e2e8f0;
	--deh-field-radius: 8px;
	--deh-rsvp-gap: 14px;
	color: var(--deh-text);
}

.deh-tickets__title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.deh-tickets__intro { margin: 0 0 14px; color: var(--deh-muted); font-size: 14px; }
.deh-tickets__empty { margin: 0; color: var(--deh-muted); }
.deh-tickets__list { display: flex; flex-direction: column; gap: var(--deh-tickets-gap); }
.deh-tickets--cards .deh-tickets__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.deh-ticket {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--deh-ticket-bg);
	border: 1px solid var(--deh-ticket-border);
	border-radius: var(--deh-ticket-radius);
}
.deh-tickets--cards .deh-ticket { flex-direction: column; align-items: stretch; text-align: center; }
.deh-ticket--soldout, .deh-ticket--ended, .deh-ticket--upcoming { opacity: .7; }
.deh-ticket__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.deh-ticket__name { font-weight: 700; font-size: 16px; }
.deh-ticket__desc { font-size: 13.5px; color: var(--deh-muted); line-height: 1.5; }
.deh-ticket__remaining { font-size: 12.5px; font-weight: 600; color: var(--deh-accent); }
.deh-ticket__price { flex: 0 0 auto; font-weight: 700; font-size: 17px; min-width: 70px; text-align: right; }
.deh-tickets--cards .deh-ticket__price { text-align: center; font-size: 22px; }
.deh-ticket__state { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: var(--deh-muted); padding: 6px 10px; border-radius: 999px; background: #f1f5f9; }

.deh-ticket__qty { flex: 0 0 auto; display: inline-flex; align-items: stretch; border: 1px solid var(--deh-field-border); border-radius: var(--deh-field-radius); overflow: hidden; background: var(--deh-field-bg); }
.deh-tickets--cards .deh-ticket__qty { align-self: center; }
.deh-ticket__step { width: 36px; border: 0; background: none; color: var(--deh-accent); font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; }
.deh-ticket__step:hover { background: #eef2ff; }
.deh-ticket__input { width: 44px; border: 0; border-left: 1px solid var(--deh-field-border); border-right: 1px solid var(--deh-field-border); text-align: center; font: inherit; font-weight: 600; color: var(--deh-text); background: transparent; -moz-appearance: textfield; padding: 8px 0; }
.deh-ticket__input::-webkit-outer-spin-button, .deh-ticket__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.deh-tickets__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.deh-tickets__total { font-size: 15px; }
.deh-tickets__total-label { color: var(--deh-muted); }
.deh-tickets__total-value { font-weight: 700; font-size: 18px; }
.deh-tickets__submit, .deh-tickets__confirm { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.deh-tickets__submit[disabled] { opacity: .5; cursor: default; }

.deh-tickets__form { display: flex; flex-direction: column; gap: var(--deh-rsvp-gap); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--deh-ticket-border); }
.deh-tickets__fields { display: flex; flex-direction: column; gap: var(--deh-rsvp-gap); }
.deh-tickets__attendees { display: flex; flex-direction: column; gap: 10px; }
.deh-tickets__attendee { margin: 0; padding: 10px 12px; border: 1px dashed var(--deh-field-border); border-radius: var(--deh-field-radius); display: flex; flex-direction: column; gap: 8px; }
.deh-tickets__attendee legend { font-size: 12.5px; font-weight: 600; color: var(--deh-muted); padding: 0 4px; }
.deh-tickets__confirm { align-self: flex-start; }
.deh-tickets__hp { position: absolute; left: -9999px; }

.deh-tickets__notice { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.deh-tickets__notice--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.deh-tickets__notice--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.deh-tickets__notice--closed { background: #f8fafc; color: var(--deh-muted); border: 1px dashed #cbd5e1; margin-top: 0; }
.deh-tickets__notice--full, .deh-tickets__notice--cancelled { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.deh-tickets__link { font-weight: 600; color: inherit; }

@media (max-width: 520px) {
	.deh-ticket { flex-wrap: wrap; }
	.deh-ticket__body { flex-basis: 100%; }
	.deh-ticket__price { text-align: left; flex: 1 1 auto; }
}

/* WooCommerce classic checkout attendee fields */
.deh-checkout-attendees { margin-top: 24px; }
.deh-checkout-attendees__help { color: #64748b; font-size: 14px; }
.deh-checkout-attendee { margin: 0 0 12px; padding: 12px 14px; border: 1px dashed #e2e8f0; border-radius: 10px; }
.deh-checkout-attendee legend { font-size: 13px; font-weight: 600; padding: 0 6px; }

/* ── Search & filter ──────────────────────────────────────────────────── */

.deh-filter {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-field-bg: #ffffff;
	--deh-field-border: #e2e8f0;
	--deh-field-radius: 8px;
	--deh-filter-gap: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: var(--deh-filter-gap);
	align-items: flex-end;
	color: var(--deh-text);
}
.deh-filter--stacked { flex-direction: column; align-items: stretch; }
.deh-filter__field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 160px; min-width: 0; }
.deh-filter__field--search { flex: 2 1 240px; }
.deh-filter__label { font-size: 12.5px; font-weight: 600; color: var(--deh-muted); }
.deh-filter__input { width: 100%; padding: 10px 12px; font: inherit; font-size: 14.5px; color: var(--deh-text); background: var(--deh-field-bg); border: 1px solid var(--deh-field-border); border-radius: var(--deh-field-radius); box-sizing: border-box; }
.deh-filter__input:focus { outline: 2px solid var(--deh-accent); outline-offset: 1px; border-color: var(--deh-accent); }
.deh-filter__actions { display: flex; gap: 8px; align-items: center; }
.deh-filter__submit { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.deh-filter__reset { border: 0; background: none; color: var(--deh-muted); font: inherit; font-size: 14px; cursor: pointer; padding: 10px 6px; text-decoration: underline; }
.deh-filter__status:empty { display: none; }
.deh-listing.is-loading { opacity: .55; transition: opacity .2s; }

/* ── Carousel ─────────────────────────────────────────────────────────── */

.deh-carousel {
	--deh-carousel-slides: 3;
	/* Breakpoint cap, set only by this stylesheet: Divi writes the Slides design value with a stronger selector, so a media query cannot lower it directly. */
	--deh-carousel-max: 99;
	--deh-carousel-per-view: min(var(--deh-carousel-slides), var(--deh-carousel-max));
	position: relative;
}
.deh-carousel__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding: 4px 0; }
.deh-carousel__viewport::-webkit-scrollbar { display: none; }
.deh-carousel__track { display: flex; gap: var(--deh-gap, 24px); }
.deh-carousel__track > .deh-card { flex: 0 0 calc((100% - (var(--deh-carousel-per-view) - 1) * var(--deh-gap, 24px)) / var(--deh-carousel-per-view)); scroll-snap-align: start; min-width: 0; }
.deh-carousel__track > .deh-empty { flex: 1 1 100%; }
.deh-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--deh-card-border-color, #e6e9f0);
	background: var(--deh-card-bg, #fff);
	color: var(--deh-text, #0f172a);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.deh-carousel.has-overflow .deh-carousel__arrow { display: inline-flex; }
.deh-carousel__arrow[disabled] { opacity: .35; cursor: default; }
.deh-carousel__prev { left: -12px; }
.deh-carousel__next { right: -12px; }
.deh-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.deh-carousel__dots:empty { display: none; }
.deh-carousel__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #cbd5e1; cursor: pointer; }
.deh-carousel__dot.is-active { background: var(--deh-accent, #1d47ff); transform: scale(1.25); }
@media (max-width: 980px) { .deh-carousel { --deh-carousel-max: 2; } }
@media (max-width: 600px) { .deh-carousel { --deh-carousel-max: 1; } .deh-carousel__prev { left: 4px; } .deh-carousel__next { right: 4px; } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.deh-faq {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-faq-bg: #ffffff;
	--deh-faq-border: #e6e9f0;
	--deh-faq-radius: 12px;
	--deh-faq-gap: 10px;
	--deh-faq-padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: var(--deh-faq-gap);
	color: var(--deh-text);
}
.deh-faq__heading { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.deh-faq__empty { margin: 0; color: var(--deh-muted); }
.deh-faq__item { background: var(--deh-faq-bg); border: 1px solid var(--deh-faq-border); border-radius: var(--deh-faq-radius); overflow: hidden; }
.deh-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: var(--deh-faq-padding); font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.deh-faq__q::-webkit-details-marker { display: none; }
.deh-faq__icon { flex: 0 0 auto; width: 20px; height: 20px; position: relative; color: var(--deh-accent); }
.deh-faq--icon-chevron .deh-faq__icon::before { content: ""; position: absolute; left: 6px; top: 4px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.deh-faq--icon-chevron .deh-faq__item[open] .deh-faq__icon::before { transform: rotate(-135deg); top: 8px; }
.deh-faq--icon-plus .deh-faq__icon::before, .deh-faq--icon-plus .deh-faq__icon::after { content: ""; position: absolute; left: 3px; top: 9px; width: 14px; height: 2px; background: currentColor; transition: transform .2s; }
.deh-faq--icon-plus .deh-faq__icon::after { transform: rotate(90deg); }
.deh-faq--icon-plus .deh-faq__item[open] .deh-faq__icon::after { transform: rotate(0); }
.deh-faq--icon-none .deh-faq__icon { display: none; }
.deh-faq__a { padding: 0 18px 16px; color: var(--deh-muted); font-size: 15px; line-height: 1.65; }
.deh-faq__a p { margin: 0 0 10px; }
.deh-faq__a p:last-child { margin-bottom: 0; }

/* ── Category list ────────────────────────────────────────────────────── */

.deh-cats {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-cats-bg: #ffffff;
	--deh-cats-border: #e6e9f0;
	--deh-cats-radius: 999px;
	--deh-cats-gap: 10px;
	--deh-cats-columns: 3;
	--deh-cats-align: flex-start;
	color: var(--deh-text);
}
.deh-cats__heading { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.deh-cats__empty { margin: 0; color: var(--deh-muted); }
.deh-cats__list, .deh-cats .deh-cats__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--deh-cats-gap); justify-content: var(--deh-cats-align); }
/* Divi styles lists inside modules and post content (bullets, left padding); the chips and tiles are not prose. */
.deh-cats .deh-cats__list > .deh-cats__item { list-style: none; margin: 0; padding: 0; }
.deh-cats .deh-cats__list > .deh-cats__item::before, .deh-cats .deh-cats__list > .deh-cats__item::marker { content: none; }
.deh-cats--list .deh-cats__list { flex-direction: column; }
.deh-cats--tiles .deh-cats__list, .deh-cats.deh-cats--tiles .deh-cats__list { display: grid; grid-template-columns: repeat(var(--deh-cats-columns), minmax(0, 1fr)); }
.deh-cats--tiles { --deh-cats-radius: 14px; }
.deh-cats__item { --deh-cat-color: var(--deh-accent); }
.deh-cats__link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--deh-cats-bg); border: 1px solid var(--deh-cats-border); border-radius: var(--deh-cats-radius); color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.deh-cats__link:hover { border-color: var(--deh-cat-color); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.deh-cats--list .deh-cats__link { width: 100%; justify-content: flex-start; }
.deh-cats--tiles .deh-cats__link { display: flex; width: 100%; box-sizing: border-box; flex-direction: column; align-items: flex-start; padding: 18px; gap: 6px; height: 100%; }
.deh-cats__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--deh-cat-color); flex: 0 0 auto; }
.deh-cats__count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--deh-muted); background: #f1f5f9; border-radius: 999px; padding: 2px 8px; }
.deh-cats--tiles .deh-cats__count { margin-left: 0; }
.deh-cats__desc { font-weight: 400; font-size: 13.5px; color: var(--deh-muted); line-height: 1.5; }
@media (max-width: 760px) { .deh-cats--tiles .deh-cats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .deh-cats--tiles .deh-cats__list { grid-template-columns: minmax(0, 1fr); } }

/* Custom attendee fields */
.deh-rsvp__field--custom label input[type="checkbox"] { margin-right: 6px; }

/* ── Details: repeating dates + gated link ────────────────────────────── */

.deh-details__repeats { display: block; margin-bottom: 6px; }
.deh-details__dates { display: flex; flex-wrap: wrap; gap: 6px; }
.deh-details__date { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: inherit; font-size: 13px; text-decoration: none; }
.deh-details__date:hover { background: #e2e8f0; }
.deh-details__date.is-current { background: var(--deh-accent, #1d47ff); color: #fff; }
.deh-details__date.is-cancelled { text-decoration: line-through; opacity: .6; }
.deh-details__locked { color: var(--deh-muted, #64748b); font-style: italic; }

/* ── Event submission form ────────────────────────────────────────────── */

.deh-submit {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-field-bg: #ffffff;
	--deh-field-border: #e2e8f0;
	--deh-field-radius: 8px;
	--deh-rsvp-gap: 14px;
	color: var(--deh-text);
}

.deh-submit__title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.deh-submit__intro { margin: 0 0 14px; color: var(--deh-muted); font-size: 14px; }
.deh-submit__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--deh-rsvp-gap); }
.deh-submit__field--check label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.deh-submit__file { padding: 9px 12px; }
.deh-submit__form .deh-rsvp__input:not(textarea):not(select) { min-height: 44px; }
.deh-submit .deh-rsvp__submit { background: var(--deh-accent); color: #fff; }

/* Waitlist (shared RSVP engine) */
.deh-rsvp--waitlist .deh-rsvp__form { margin-top: 12px; }
.deh-rsvp__waitlist-count { display: inline-block; margin-left: 6px; font-weight: 600; }
.deh-tickets .deh-rsvp--waitlist { margin-top: 4px; }

/* Stripe coupon field */
.deh-tickets__coupon[hidden] { display: none; }

/* ── Venue Details (Phase 9) ──────────────────────────────────────────── */

.deh-venue {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-venue-map-height: 280px;
	--deh-venue-img-radius: 14px;
	--deh-venue-gap: 20px;
	--deh-venue-bg: transparent;
	--deh-venue-radius: 14px;
	--deh-venue-padding: 0px;
	display: grid;
	gap: var(--deh-venue-gap);
	color: var(--deh-text);
	background: var(--deh-venue-bg);
	border-radius: var(--deh-venue-radius);
	padding: var(--deh-venue-padding);
}
.deh-venue--side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.deh-venue--side .deh-venue__heading, .deh-venue--side .deh-venue__image { grid-column: 1 / -1; }
@media (max-width: 767px) { .deh-venue--side { grid-template-columns: minmax(0, 1fr); } }
.deh-venue__heading { margin: 0; font-size: 22px; font-weight: 700; }
.deh-venue__image { border-radius: var(--deh-venue-img-radius); overflow: hidden; background: #f1f5f9; }
.deh-venue__image img { display: block; width: 100%; height: auto; }
.deh-venue__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.deh-venue__name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.deh-venue__name a { color: inherit; text-decoration: none; }
.deh-venue__name a:hover { color: var(--deh-accent); }
.deh-venue__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--deh-muted); }
.deh-venue__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.deh-venue__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.5; }
.deh-venue__label { color: var(--deh-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.deh-venue__value a { color: var(--deh-accent); text-decoration: none; overflow-wrap: anywhere; }
.deh-venue__value a:hover { text-decoration: underline; }
.deh-venue__button { align-self: flex-start; margin-top: 4px; }
.deh-venue__map .deh-map { --deh-map-height: var(--deh-venue-map-height); --deh-map-radius: var(--deh-venue-img-radius); }
.deh-venue--empty .deh-venue__empty, .deh-profile--empty .deh-profile__empty { margin: 0; padding: 28px; text-align: center; color: var(--deh-muted, #64748b); border: 1px dashed #cbd5e1; border-radius: 12px; }

/* ── Speaker Profile (Phase 9) ────────────────────────────────────────── */

.deh-profile {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-profile-img: 160px;
	--deh-profile-gap: 28px;
	--deh-profile-bg: transparent;
	--deh-profile-radius: 14px;
	--deh-profile-padding: 0px;
	color: var(--deh-text);
}
.deh-profile__heading { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.deh-profile__card { display: flex; gap: var(--deh-profile-gap); align-items: flex-start; background: var(--deh-profile-bg); border-radius: var(--deh-profile-radius); padding: var(--deh-profile-padding); }
.deh-profile--stacked .deh-profile__card, .deh-profile--hero .deh-profile__card { flex-direction: column; }
.deh-profile--hero { --deh-profile-img: 240px; }
.deh-profile--center .deh-profile__card { align-items: center; text-align: center; }
.deh-profile--center .deh-profile__body { align-items: center; }
.deh-profile--center .deh-social { justify-content: center; }
.deh-profile__image { flex: 0 0 auto; width: var(--deh-profile-img); height: var(--deh-profile-img); font-size: var(--deh-profile-img); }
.deh-profile--img-circle .deh-profile__image { border-radius: 50%; }
.deh-profile--img-square .deh-profile__image { border-radius: var(--deh-profile-radius); }
.deh-profile__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 auto; }
.deh-profile__name { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.deh-profile--hero .deh-profile__name { font-size: 34px; }
.deh-profile__name a { color: inherit; text-decoration: none; }
.deh-profile__name a:hover { color: var(--deh-accent); }
.deh-profile__role { font-size: 15px; color: var(--deh-muted); }
.deh-profile__sep { opacity: .6; }
.deh-profile__upcoming { display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--deh-accent); background: color-mix(in srgb, var(--deh-accent) 10%, transparent); border-radius: 999px; padding: 4px 10px; }
.deh-profile--center .deh-profile__upcoming { align-self: center; }
.deh-profile__bio { margin: 0; font-size: 15.5px; line-height: 1.7; }
.deh-profile__bio--full p:last-child { margin-bottom: 0; }
.deh-profile__website { color: var(--deh-accent); text-decoration: none; font-size: 15px; }
.deh-profile__website:hover { text-decoration: underline; }
.deh-profile .deh-social { margin-top: 4px; }
.deh-profile__button { align-self: flex-start; margin-top: 6px; }
.deh-profile--center .deh-profile__button { align-self: center; }
@media (max-width: 767px) { .deh-profile--side .deh-profile__card { flex-direction: column; } .deh-profile--hero { --deh-profile-img: 180px; } }

/* ── Directory grids: Speakers / Venues / Organizers (Phase 9) ────────── */

.deh-dir {
	--deh-accent: #1d47ff;
	--deh-text: #0f172a;
	--deh-muted: #64748b;
	--deh-dir-columns: 3;
	--deh-dir-gap: 24px;
	--deh-dir-img: 96px;
	--deh-dir-bg: #ffffff;
	--deh-dir-radius: 14px;
	--deh-dir-padding: 20px;
	color: var(--deh-text);
}
.deh-dir__heading { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.deh-dir__empty { margin: 0; padding: 28px; text-align: center; color: var(--deh-muted); border: 1px dashed #cbd5e1; border-radius: 12px; }
.deh-dir__items { display: grid; gap: var(--deh-dir-gap); }
.deh-dir--grid .deh-dir__items { grid-template-columns: repeat(var(--deh-dir-columns), minmax(0, 1fr)); }
.deh-dir--list .deh-dir__items { grid-template-columns: minmax(0, 1fr); }
.deh-dir__item { display: flex; flex-direction: column; gap: 14px; background: var(--deh-dir-bg); border: 1px solid #e2e8f0; border-radius: var(--deh-dir-radius); padding: var(--deh-dir-padding); min-width: 0; }
.deh-dir--center .deh-dir__item { align-items: center; text-align: center; }
.deh-dir--list .deh-dir__item { flex-direction: row; align-items: center; text-align: left; }
.deh-dir--list.deh-dir--center .deh-dir__item { text-align: left; align-items: center; }
.deh-dir__image { flex: 0 0 auto; width: var(--deh-dir-img); height: var(--deh-dir-img); font-size: var(--deh-dir-img); }
.deh-dir--img-circle .deh-dir__image { border-radius: 50%; }
.deh-dir--img-square .deh-dir__image { border-radius: 14px; }
.deh-dir--venue.deh-dir--img-square .deh-dir__image { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.deh-dir--venue.deh-dir--list.deh-dir--img-square .deh-dir__image { width: calc(var(--deh-dir-img) * 1.6); height: var(--deh-dir-img); aspect-ratio: auto; }
.deh-dir__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: inherit; }
.deh-dir__name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.deh-dir__name a { color: inherit; text-decoration: none; }
.deh-dir__name a:hover { color: var(--deh-accent); }
.deh-dir__meta { font-size: 13.5px; color: var(--deh-muted); }
.deh-dir__count { font-size: 12.5px; font-weight: 600; color: var(--deh-accent); }
.deh-dir__excerpt { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--deh-muted); }
.deh-dir__link { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--deh-accent); text-decoration: none; }
.deh-dir__link:hover { text-decoration: underline; }
.deh-dir .deh-social { margin-top: 4px; }
.deh-dir--center .deh-social { justify-content: center; }
@media (max-width: 980px) { .deh-dir--grid .deh-dir__items { grid-template-columns: repeat(min(var(--deh-dir-columns), 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { .deh-dir--grid .deh-dir__items { grid-template-columns: minmax(0, 1fr); } .deh-dir--list .deh-dir__item { flex-direction: column; align-items: flex-start; } }

/* Starter card layouts (Divi Library loop rows): small helpers only; everything else is Divi's own design options. */
.deh-lp-date { font-size: 13.5px; color: #64748b; margin: 0 0 4px; }
.deh-lp-venue { font-size: 14px; color: #64748b; margin: 0; }
