.cc-calendar,
.cc-event-single,
.cc-event-details {
	box-sizing: border-box;
}

.cc-calendar *,
.cc-calendar *::before,
.cc-calendar *::after,
.cc-event-single *,
.cc-event-single *::before,
.cc-event-single *::after,
.cc-event-details *,
.cc-event-details *::before,
.cc-event-details *::after {
	box-sizing: inherit;
}

.cc-calendar,
.cc-event-single,
.cc-event-details {
	--cc-border: rgba(127, 127, 127, 0.24);
	--cc-muted-bg: rgba(127, 127, 127, 0.08);
}

.cc-calendar {
	margin: 2rem 0;
}

.cc-calendar__title {
	margin: 0 0 1rem;
}

.cc-calendar__filters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	align-items: end;
	margin: 0 0 1.5rem;
	padding: 1rem;
	border: 1px solid var(--cc-border);
	border-radius: 8px;
}

.cc-calendar__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.cc-calendar__field input,
.cc-calendar__field select {
	width: 100%;
	min-height: 2.5rem;
}

.cc-calendar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.55rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: CanvasText;
	color: Canvas;
	font: inherit;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.cc-button:hover,
.cc-button:focus {
	text-decoration: none;
	opacity: 0.88;
}

.cc-button--secondary {
	background: transparent;
	color: inherit;
}

.cc-event-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.cc-event-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--cc-border);
	border-radius: 8px;
	background: Canvas;
	color: CanvasText;
}

.cc-event-card--expired {
	opacity: 0.86;
}

.cc-event-card__image-link {
	display: block;
	background: var(--cc-muted-bg);
}

.cc-event-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.cc-event-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.8rem;
	padding: 1rem;
}

.cc-event-card__heading {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	justify-content: space-between;
}

.cc-event-card__title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.25;
}

.cc-event-card__title a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.15em;
}

.cc-event-card__badges,
.cc-event-single__badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.cc-event-card__excerpt {
	margin: 0;
	color: inherit;
	line-height: 1.5;
	opacity: 0.82;
}

.cc-event-meta {
	display: grid;
	gap: 0.45rem;
	margin: 0;
}

.cc-event-meta__row {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 0.75rem;
}

.cc-event-meta dt {
	font-weight: 600;
}

.cc-event-meta dd {
	margin: 0;
}

.cc-event-card__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

.cc-event-card__details {
	font-weight: 600;
}

.cc-badge {
	display: inline-flex;
	align-items: center;
	min-height: 1.6rem;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	background: var(--cc-muted-bg);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.cc-badge--cancelled {
	background: #f8d7da;
	color: #842029;
}

.cc-badge--expired,
.cc-badge--postponed {
	background: #fff3cd;
	color: #664d03;
}

.cc-badge--sold-out {
	background: #e7f1ff;
	color: #084298;
}

.cc-badge--featured {
	background: #e8f5e9;
	color: #1b5e20;
}

.cc-badge--promoted {
	background: #fff3cd;
	color: #664d03;
}

.cc-promoted-group,
.cc-event-placement {
	margin: 1.5rem 0;
}

.cc-promoted-group__title,
.cc-event-placement__title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	line-height: 1.3;
}

.cc-event-placement__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-event-placement__item {
	margin: 0;
}

.cc-event-card--rail,
.cc-event-card--compact,
.cc-event-card--recommendation {
	font-size: 0.95rem;
}

.cc-pagination {
	margin-top: 1.5rem;
}

.cc-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-pagination a,
.cc-pagination span {
	display: inline-flex;
	min-width: 2.25rem;
	min-height: 2.25rem;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.6rem;
	border: 1px solid var(--cc-border);
	border-radius: 6px;
	text-decoration: none;
}

.cc-pagination .current {
	background: CanvasText;
	color: Canvas;
}

.cc-event-single {
	margin: 2rem 0;
}

.cc-event-single__image {
	margin: 0 0 1.25rem;
}

.cc-event-single__image img {
	display: block;
	width: 100%;
	max-height: 540px;
	object-fit: cover;
}

.cc-event-single__header {
	margin-bottom: 1.25rem;
}

.cc-event-single__title {
	margin: 0 0 0.5rem;
}

.cc-event-single__summary {
	margin: 0.65rem 0 0;
	font-weight: 600;
}

.cc-event-description {
	margin: 1.5rem 0;
}

.cc-event-details {
	margin: 2rem 0;
	padding: 1rem 0 0;
	border-top: 1px solid rgba(127, 127, 127, 0.24);
}

.cc-event-details h2 {
	margin-top: 0;
}

.cc-event-details__tickets {
	margin-top: 1rem;
}

@media (max-width: 900px) {
	.cc-calendar__filters,
	.cc-event-grid,
	.cc-event-placement__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cc-calendar__filters,
	.cc-event-grid,
	.cc-event-placement__items,
	.cc-event-meta__row {
		grid-template-columns: 1fr;
	}

	.cc-calendar__actions,
	.cc-event-card__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.cc-button {
		width: 100%;
	}
}
