/*
 * Dotz Events. Deliberately minimal and unbranded: colour, type and spacing
 * belong to the city theme, so this only supplies layout the templates cannot do
 * without. Everything below is scoped to .dotz-ev- classes and inherits the
 * theme's own colours through currentColor.
 */

.dotz-ev-archive,
.dotz-ev-single {
	max-width: 68rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 4rem;
}

.dotz-ev-archive__head {
	margin-bottom: 1.5rem;
}

.dotz-ev-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.dotz-ev-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid currentColor;
	border-radius: 0.5rem;
}

.dotz-ev-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.dotz-ev-card__body {
	padding: 0.875rem 1rem 1rem;
}

.dotz-ev-card__title {
	margin: 0 0 0.375rem;
	font-size: 1.0625rem;
	line-height: 1.3;
}

.dotz-ev-card__meta {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.8;
}

.dotz-ev-card__notice,
.dotz-ev-single__status {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	font-weight: 700;
}

.dotz-ev-single__status {
	padding: 0.75rem 1rem;
	border: 1px solid currentColor;
	border-radius: 0.375rem;
	margin-bottom: 1.25rem;
}

.dotz-ev-empty {
	max-width: 40rem;
	line-height: 1.6;
}

.dotz-ev-pagination {
	margin-top: 2rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.dotz-ev-single__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

.dotz-ev-single__facts {
	display: grid;
	grid-template-columns: minmax(6rem, auto) 1fr;
	gap: 0.375rem 1rem;
	margin: 1.5rem 0;
	font-size: 0.9375rem;
}

.dotz-ev-single__facts dt {
	font-weight: 700;
}

.dotz-ev-single__facts dd {
	margin: 0;
}

.dotz-ev-button {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	border: 2px solid currentColor;
	border-radius: 0.375rem;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 30rem) {
	.dotz-ev-single__facts {
		grid-template-columns: 1fr;
		gap: 0.125rem;
	}

	.dotz-ev-single__facts dd {
		margin-bottom: 0.625rem;
	}
}
