/* Art Event Calendar: styles are scoped to the plugin's own markup. */
.aec-calendar {
	--aec-bg: #161B22;
	--aec-row: #1A2029;
	--aec-row-hover: #202733;
	--aec-border: #2E3744;
	--aec-rule: #3A4352;
	--aec-heading: #EEF1F5;
	--aec-text: #C3C9D2;
	--aec-muted: #8B94A1;
	--aec-link: #7FB6E6;
	--aec-accent: #B5B0F7;
	--aec-head-font: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
	--aec-font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--aec-font);
	color: var(--aec-text);
	scroll-margin-top: 120px;
}
.aec-calendar *, .aec-calendar *::before, .aec-calendar *::after { box-sizing: border-box; }

/* Filters */
.aec-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin: 0 0 8px;
	padding: 14px 16px;
	background: var(--aec-bg);
	border: 1px solid var(--aec-border);
	border-radius: 8px;
}
.aec-field { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 180px; flex: 1 1 180px; }
.aec-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--aec-muted);
}
.aec-filters select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 36px 0 12px;
	font: 500 16px/1 var(--aec-font);
	color: var(--aec-heading);
	background-color: #0E1116;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238B94A1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	border: 1px solid var(--aec-border);
	border-radius: 6px;
	cursor: pointer;
}
.aec-filters select:hover { border-color: #46505F; }
.aec-filters select:focus-visible, .aec-check input:focus-visible, .aec-row:focus-visible, .aec-reset:focus-visible {
	outline: 2px solid var(--aec-link);
	outline-offset: 2px;
}
.aec-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 42px;
	margin: 0;
	padding: 0 14px;
	font-size: 16px;
	font-weight: 500;
	color: var(--aec-heading);
	background: #0E1116;
	border: 1px solid var(--aec-border);
	border-radius: 6px;
	cursor: pointer;
	user-select: none;
}
.aec-check input {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1.5px solid #5E6878;
	border-radius: 4px;
	background: transparent;
	display: grid;
	place-content: center;
	cursor: pointer;
}
.aec-check input::before {
	content: "";
	width: 10px;
	height: 10px;
	transform: scale(0);
	transition: transform .12s ease;
	background: #0E1116;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.aec-check input:checked { background: var(--aec-accent); border-color: var(--aec-accent); }
.aec-check input:checked::before { transform: scale(1); }
.aec-check:has(input:checked) { border-color: #5E5A8F; }
.aec-btn, .aec-reset {
	height: 42px;
	display: inline-flex;
	align-items: center;
	padding: 0 16px;
	font: 600 14px/1 var(--aec-font);
	letter-spacing: .5px;
	border-radius: 6px;
	text-decoration: none;
}
.aec-btn { color: #0E1116; background: var(--aec-link); border: 0; cursor: pointer; }
.aec-reset { color: var(--aec-link); border: 1px solid transparent; }
.aec-reset:hover { color: #FFFFFF; }

/* Group headings */
.aec-month {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 26px 0 10px;
	padding: 0;
	font: 400 30px/1.2 var(--aec-head-font);
	color: var(--aec-heading);
	letter-spacing: 0;
	text-transform: none;
}
.aec-month::after { content: ""; flex: 1; height: 1px; background: var(--aec-rule); }
.aec-filters + .aec-month, .aec-filters + .aec-empty { margin-top: 18px; }

/* Rows */
.aec-list { display: flex; flex-direction: column; gap: 8px; }
.aec-row {
	display: grid;
	grid-template-columns: minmax(185px, 17%) 1fr auto 20px;
	align-items: center;
	gap: 0 16px;
	padding: 12px 14px;
	color: inherit;
	text-decoration: none;
	background: var(--aec-row);
	border: 1px solid var(--aec-border);
	border-radius: 8px;
	transition: background-color .15s ease, border-color .15s ease;
}
div.aec-row { grid-template-columns: minmax(185px, 17%) 1fr auto; }
a.aec-row:hover { background: var(--aec-row-hover); border-color: #3A4555; }
a.aec-row:hover .aec-title { color: #FFFFFF; }
a.aec-row:hover .aec-chev { color: #FFFFFF; transform: translateX(2px); }
.aec-date {
	display: flex;
	align-items: center;
	gap: 10px;
	align-self: stretch;
	padding-right: 14px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--aec-heading);
	white-space: nowrap;
	border-right: 1px solid var(--aec-border);
}
.aec-ico { flex: 0 0 auto; color: var(--aec-link); }
.aec-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aec-title {
	font: 500 21px/1.2 var(--aec-head-font);
	color: var(--aec-heading);
	transition: color .15s ease;
}
.aec-sub { font-size: 15px; line-height: 1.4; color: var(--aec-muted); }
.aec-dot { display: inline-block; margin: 0 .55em; }
.aec-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.aec-tag {
	display: inline-block;
	padding: 3px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--aec-link);
	border: 1px solid #3D5A75;
	border-radius: 20px;
}
.aec-tag--free { color: var(--aec-accent); border-color: #5E5A8F; }
.aec-tag--tbc { color: #E3C27A; border-color: #6B5A33; }
.aec-chev { display: flex; justify-content: flex-end; color: var(--aec-muted); transition: color .15s ease, transform .15s ease; }
.aec-empty {
	margin: 18px 0 0;
	padding: 18px;
	color: var(--aec-text);
	background: var(--aec-row);
	border: 1px dashed var(--aec-border);
	border-radius: 8px;
}

/* Tablet */
@media (max-width: 1024px) {
	.aec-row { grid-template-columns: minmax(170px, 22%) 1fr auto 16px; }
	div.aec-row { grid-template-columns: minmax(170px, 22%) 1fr auto; }
	.aec-date { font-size: 16px; }
	.aec-tags { max-width: 200px; }
}

/* Mobile */
@media (max-width: 767px) {
	.aec-filters { padding: 12px; gap: 10px; }
	.aec-field { flex: 1 1 100%; min-width: 0; }
	.aec-check { flex: 1 1 auto; }
	.aec-month { font-size: 24px; margin: 22px 0 8px; gap: 12px; }
	.aec-row, div.aec-row {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 12px;
	}
	.aec-date { padding: 0; border: 0; font-size: 16px; }
	.aec-title { font-size: 19px; }
	.aec-tags { justify-content: flex-start; max-width: none; }
	.aec-chev { display: none; }
}

/* [arteventcalendar_next] and [arteventcalendar_dates] */
.aec-next__prefix { font-weight: 600; }
.aec-dates { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-direction: column; gap: 8px; text-align: left; vertical-align: top; }
.aec-dates li { display: flex; align-items: center; gap: 10px; margin: 0; }
.aec-dates .aec-ico { color: #7FB6E6; }
.aec-dates__time { margin-left: .6em; opacity: .75; }
.aec-dates-line { white-space: nowrap; }
.aec-dates-lines .aec-ico { display: inline-block; width: .85em; height: .85em; margin-right: .45em; vertical-align: -.08em; color: #7FB6E6; }
.aec-dates__time::before { content: "•"; margin-right: .6em; }

@media (prefers-reduced-motion: reduce) {
	.aec-row, .aec-title, .aec-chev, .aec-check input::before { transition: none; }
}
