/* ── Container ─────────────────────────────────────────────────────────── */

.amec-events-list {
	font-family: inherit;
	margin: 0;
	padding: 0;
}

.amec-no-events p {
	color: #666;
	font-style: italic;
}

/* ── Event item ────────────────────────────────────────────────────────── */

.amec-event {
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 6px;
	overflow: hidden;
}

.amec-event[open] {
	border-color: #bbb;
}

/* ── Summary (always-visible row) ─────────────────────────────────────── */

.amec-event-summary {
	display: block;
	padding: 10px 14px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.amec-event-summary::-webkit-details-marker {
	display: none;
}

.amec-event[open] > .amec-event-summary {
	border-bottom: 1px solid #ddd;
}

.amec-event-primary {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
}

/* ── Summary fields ────────────────────────────────────────────────────── */

.amec-event-datetime {
	display: inline-flex;
	gap: 6px;
	align-items: baseline;
	white-space: nowrap;
}

.amec-event-date {
	font-weight: 600;
}

.amec-event-start-time {
	color: #555;
	font-size: 0.9em;
}

.amec-event-group {
	display: inline-block;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
	background: #555;
	padding: 1px 8px;
	border-radius: 10px;
	white-space: nowrap;
}

.amec-event-venue-name {
	font-size: 0.875em;
	color: #666;
	white-space: nowrap;
}

/* ── Expanded section ──────────────────────────────────────────────────── */

.amec-event-expanded {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.amec-event-title {
	font-weight: 600;
	font-size: 1.05em;
}

.amec-event-note {
	font-size: 0.875em;
	color: #555;
	font-style: italic;
}

.amec-event-end-time {
	font-size: 0.875em;
	color: #444;
}

.amec-label {
	font-weight: 600;
	margin-right: 3px;
}

/* ── Venue detail block ────────────────────────────────────────────────── */

.amec-venue-details {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 0.875em;
}

.amec-venue-details-name {
	font-weight: 600;
}

.amec-venue-address {
	font-style: normal;
	color: #444;
	line-height: 1.5;
}

.amec-venue-url a,
.amec-venue-phone a {
	color: inherit;
	text-decoration: none;
}

.amec-venue-url a:hover,
.amec-venue-phone a:hover {
	text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.amec-event-venue-name {
		white-space: normal;
	}
}

/* ── Month grid calendar ───────────────────────────────────────────────── */

.amec-grid-calendar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	max-width: 220px;
	font-family: inherit;
}

.amec-grid-month {
	width: 100%;
}

.amec-grid-month-header {
	text-align: center;
	font-weight: 600;
	font-size: 0.85em;
	margin-bottom: 4px;
}

.amec-grid-weekdays,
.amec-grid-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.amec-grid-weekday {
	text-align: center;
	font-size: 0.65em;
	font-weight: 600;
	color: #888;
	padding: 2px 0;
}

.amec-grid-day {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.68em;
	line-height: 1;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
	color: #222;
}

.amec-grid-day-empty {
	border-color: transparent;
	background: transparent;
}

.amec-grid-day-has-event {
	background: #555;
	border-color: #555;
	color: #fff;
}

.amec-grid-day-blackout {
	background: #000;
	border-color: #000;
	color: #fff;
}

.amec-grid-show-more {
	font-size: 0.75em;
	padding: 4px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #f7f7f7;
	color: #333;
	cursor: pointer;
}

.amec-grid-show-more:hover {
	background: #eee;
}

.amec-grid-show-more:disabled {
	opacity: 0.6;
	cursor: default;
}
