/**
 * [smokeschool_events] list layout + chip styling.
 *
 * Scoped under .osc-events so theme rules can target it without
 * a !important war. Single stylesheet covers both OSS and Singleton
 * renders — chip color comes from the inline --brand custom property
 * set per-event.
 */

.osc-events {
	box-sizing: border-box;
	font-family: inherit;
	color: inherit;
	margin: 1.5rem 0;
}

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

.osc-section-title {
	font-size: 1.5rem;
	line-height: 1.2;
	margin: 0 0 1rem;
	letter-spacing: 0.01em;
}

.osc-section-title--completed {
	color: #666;
	font-size: 1.15rem;
	margin-top: 2.5rem;
}

.osc-events-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 480px;
}

.osc-event-chip-wrap {
	margin: 0;
	padding: 0;
}

.osc-event-chip {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 0.35rem;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	color: #222;
	cursor: pointer;
	width: 100%;
	min-height: 110px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
	border-left: 6px solid var(--brand, #1e3167);
	font: inherit;
}

.osc-event-chip:hover,
.osc-event-chip:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 0, 0, 0.16);
	outline: none;
}

.osc-event-chip:focus-visible {
	outline: 2px solid var(--brand, #1e3167);
	outline-offset: 2px;
}

.osc-chip-date {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--brand, #1e3167);
}

.osc-chip-title {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
}

.osc-chip-venue {
	font-size: 0.85rem;
	color: #555;
}

/* Recently-completed strip: subdued. */
.osc-events-list--completed .osc-event-chip {
	opacity: 0.78;
	background: #fafafa;
	min-height: 90px;
}

.osc-events-list--completed .osc-event-chip:hover,
.osc-events-list--completed .osc-event-chip:focus-visible {
	opacity: 1;
}

.osc-events-list--completed .osc-chip-date {
	color: #777;
}

.osc-empty {
	padding: 1.5rem;
	background: #f5f5f5;
	border-radius: 8px;
	color: #555;
	text-align: center;
}

/* Mobile: shrink chip height; column layout is already vertical. */
@media (max-width: 640px) {
	.osc-events-list {
		max-width: 100%;
	}
	.osc-event-chip {
		min-height: 0;
	}
}
