/*
 * Bare-bones default styling for the [ai_event_promo] widget. Deliberately
 * plain and theme-agnostic: system fonts only (no font loading of any
 * kind), a simple neutral palette, low-specificity selectors (never more
 * than two classes deep, no !important), and every color/font surfaced as
 * a CSS custom property on .ai-event-promo — so a theme can either
 * override a handful of variables, or replace this file outright.
 *
 * To replace it from a theme: enqueue your own stylesheet on the
 * `ai_event_promo_enqueue_assets` action (fires only when the widget is
 * actually about to render) with `array('ai-event-promo-frontend')` as a
 * dependency, so it's guaranteed to load after — and win the cascade
 * over — this one. See wp-content/themes/ce2022/functions.php for an
 * example that does exactly this.
 */

.ai-event-promo {
	--aep-border: #d5d8dc;
	--aep-surface: #ffffff;
	--aep-surface-alt: #f7f8f9;
	--aep-ink: #1f2937;
	--aep-ink-muted: #5b6572;
	--aep-accent: #1d4ed8;
	--aep-accent-ink: #ffffff;

	--aep-font-heading: inherit;
	--aep-font-body: inherit;
	--aep-font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

	margin: 2rem 0;
	border: 1px solid var(--aep-border);
	border-radius: 6px;
	background: var(--aep-surface);
	color: var(--aep-ink);
	font-family: var(--aep-font-body);
}

/* Header */

.ai-event-promo .aep-header {
	padding: 1.5rem 1.75rem;
}

.ai-event-promo .aep-eyebrow {
	margin: 0 0 0.75rem;
	font-family: var(--aep-font-mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aep-ink-muted);
}

.ai-event-promo .aep-header-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
}

.ai-event-promo .aep-brand {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-shrink: 0;
}

.ai-event-promo .aep-logo-link {
	display: block;
	line-height: 0;
}

.ai-event-promo .aep-logo-wrap {
	display: inline-block;
}

.ai-event-promo .aep-logo-img {
	display: block;
	max-width: 180px;
	height: auto;
}

.ai-event-promo .aep-meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-family: var(--aep-font-heading);
}

.ai-event-promo .aep-dates {
	font-size: 1rem;
	font-weight: 600;
}

.ai-event-promo .aep-location {
	font-size: 0.85rem;
	color: var(--aep-ink-muted);
}

.ai-event-promo .aep-pitch {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex: 1;
	min-width: 260px;
}

.ai-event-promo .aep-blurb {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.ai-event-promo .aep-blurb p {
	margin: 0 0 0.4rem;
}

.ai-event-promo .aep-program-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--aep-accent);
	text-decoration: none;
	white-space: nowrap;
}

.ai-event-promo .aep-program-link:hover,
.ai-event-promo .aep-program-link:focus-visible {
	text-decoration: underline;
}

.ai-event-promo .aep-cta {
	flex-shrink: 0;
	display: inline-block;
	padding: 0.65rem 1.4rem;
	border-radius: 4px;
	background: var(--aep-accent);
	color: var(--aep-accent-ink);
	font-family: var(--aep-font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.ai-event-promo .aep-cta:hover,
.ai-event-promo .aep-cta:focus-visible {
	color: var(--aep-accent-ink);
	opacity: 0.85;
}

.ai-event-promo .aep-seam {
	height: 1px;
	background: var(--aep-border);
}

/* Sessions */

.ai-event-promo .aep-sessions {
	background: var(--aep-surface-alt);
	padding: 1rem 1.75rem 1.25rem;
}

.ai-event-promo .aep-sessions-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.5rem;
	font-family: var(--aep-font-mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--aep-ink-muted);
}

.ai-event-promo .related-sessions {
	position: relative;
}

.ai-event-promo .related-sessions:not(.slick-initialized) {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
}

.ai-event-promo .related-sessions.slick-initialized {
	max-height: none;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.ai-event-promo .session-item {
	text-align: left;
	padding: 0.4rem 0.1rem;
}

.ai-event-promo .session-toggle {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-align: left;
	color: inherit;
	font: inherit;
}

.ai-event-promo .session-toggle-main {
	display: block;
	flex: 1;
	min-width: 0;
}

.ai-event-promo .session-time {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.2rem;
	font-family: var(--aep-font-mono);
}

.ai-event-promo .session-time-day {
	display: inline-block;
	padding: 0.05rem 0.4rem;
	border-radius: 2px;
	background: var(--aep-border);
	color: var(--aep-ink);
	font-size: 0.68rem;
	font-weight: 600;
}

.ai-event-promo .session-time-range {
	font-size: 0.75rem;
	color: var(--aep-ink-muted);
}

.ai-event-promo .session-title {
	display: block;
	font-family: var(--aep-font-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.ai-event-promo .session-toggle-icon {
	flex-shrink: 0;
	margin-top: 0.35rem;
	color: var(--aep-ink-muted);
	transition: transform 0.2s ease;
}

.ai-event-promo .session-toggle[aria-expanded="true"] .session-toggle-icon {
	transform: rotate(180deg);
}

.ai-event-promo .session-description {
	margin: 0.4rem 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--aep-ink-muted);
}

.ai-event-promo .line-clamp-2 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ai-event-promo .line-clamp-1 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.ai-event-promo .session-toggle[aria-expanded="true"] ~ .session-description {
	overflow: visible;
	text-overflow: clip;
	display: block;
	-webkit-line-clamp: unset;
}

.ai-event-promo .collapse {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--aep-border);
}

.ai-event-promo .session-speaking-label {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--aep-font-mono);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--aep-ink-muted);
}

.ai-event-promo .session-speakers {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.88rem;
}

.ai-event-promo .session-speakers li {
	padding: 0.15rem 0;
}

/* Slick dots (no arrows: the carousel is initialized with arrows: false,
   so no .slick-arrow elements exist to hide) */

.ai-event-promo .slick-dots {
	position: static;
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.ai-event-promo .slick-dots li {
	width: auto;
	height: auto;
	margin: 0;
}

.ai-event-promo .slick-dots li button {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 50%;
	background: var(--aep-border);
	font-size: 0;
	line-height: 0;
	border: none;
}

.ai-event-promo .slick-dots li button::before {
	content: none;
}

.ai-event-promo .slick-dots li.slick-active button {
	background: var(--aep-accent);
}

@media (max-width: 640px) {
	.ai-event-promo .aep-header {
		padding: 1.25rem;
	}

	.ai-event-promo .aep-header-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.ai-event-promo .aep-pitch {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.ai-event-promo .aep-cta {
		width: 100%;
		text-align: center;
	}

	.ai-event-promo .aep-sessions {
		padding: 1rem 1.25rem 1.25rem;
	}
}
