/* Maya Calendar – [maya_events] list view */
.maya-ev {
	--mev-accent: #13305a;      /* navy: headings, active tab, today ring */
	--mev-hl: #b23a2a;          /* red: date tile top, event dots */
	--mev-card: #fdf8ec;
	--mev-line: #e6d9bf;
	--mev-evday: #efe1c4;
	--mev-active: #efe3cc;
	--mev-text: #3b3a36;
	--mev-muted: #8b8274;
	--mev-serif: "Merriweather", Georgia, "Times New Roman", serif;

	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 32px;
	max-width: 1140px;
	margin: 0 auto 2em;
	color: var(--mev-text);
	font-size: 15px;
	line-height: 1.55;
}
.maya-ev *, .maya-ev *::before, .maya-ev *::after { box-sizing: border-box; }
.maya-ev.no-side { grid-template-columns: minmax(0, 1fr); }
.maya-ev:not(.is-ready) { display: block; }
.maya-ev button { font: inherit; color: inherit; cursor: pointer; margin: 0; }
.maya-ev svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.maya-ev button:focus-visible, .maya-ev a:focus-visible { outline: 2px solid var(--mev-accent); outline-offset: 2px; }
.maya-ev.is-loading .maya-ev__list { opacity: .5; transition: opacity .2s; }

/* ---------- sidebar ---------- */
.maya-ev__side { display: flex; flex-direction: column; gap: 22px; align-self: start; position: sticky; top: 24px; }
.maya-ev__cal, .maya-ev__cats {
	background: var(--mev-card);
	border: 1px solid var(--mev-line);
	border-radius: 4px;
}
.maya-ev__cal { padding: 18px 16px 16px; }
.maya-ev__calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.maya-ev .maya-ev__month { margin: 0; padding: 0; font-family: var(--mev-serif); font-size: 19px; font-weight: 400; color: var(--mev-accent); line-height: 1.2; }
.maya-ev__calnav { display: flex; gap: 8px; }
.maya-ev__calnav button {
	width: 34px; height: 34px; display: grid; place-items: center;
	border: 1px solid var(--mev-line); border-radius: 50%; background: #fff; color: var(--mev-accent);
	transition: background .15s, border-color .15s;
}
.maya-ev__calnav button:hover { border-color: var(--mev-accent); }
.maya-ev__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.maya-ev__dow { font-size: 11.5px; font-weight: 700; color: var(--mev-muted); padding-bottom: 6px; }
.maya-ev__day {
	position: relative;
	justify-self: center;
	width: 36px; height: 36px;
	border: 0; border-radius: 50%;
	background: transparent;
	font-size: 13.5px;
	transition: background .15s, color .15s;
}
.maya-ev__day:hover { background: var(--mev-active); }
.maya-ev__day.is-out { color: #c4baa8; }
.maya-ev__day.has-ev { background: var(--mev-evday); font-weight: 700; color: var(--mev-accent); }
.maya-ev__day.has-ev::after {
	content: ""; position: absolute; left: 50%; bottom: 5px;
	width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mev-hl);
}
.maya-ev__day.is-today { box-shadow: inset 0 0 0 1.5px var(--mev-accent); }
.maya-ev__day.is-sel { background: var(--mev-accent); color: #fff; }
.maya-ev__day.is-sel::after { background: #fff; }
.maya-ev__legend { display: flex; gap: 18px; margin-top: 14px; padding-left: 4px; font-size: 12.5px; color: var(--mev-muted); }
.maya-ev__legend span { display: inline-flex; align-items: center; gap: 6px; }
.maya-ev__legend i { width: 12px; height: 12px; border-radius: 50%; }
.maya-ev__legend i.is-ev { background: var(--mev-evday); }
.maya-ev__legend i.is-today { box-shadow: inset 0 0 0 1.5px var(--mev-accent); }

.maya-ev__cats { display: flex; flex-direction: column; padding: 8px; }
.maya-ev__cats button {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	width: 100%; padding: 12px 12px; border: 0; border-radius: 3px;
	background: transparent; text-align: left; font-size: 15.5px; color: var(--mev-text);
	transition: background .15s;
}
.maya-ev__cats button:hover { background: color-mix(in srgb, var(--mev-active) 60%, transparent); }
.maya-ev__cats button.is-active { background: var(--mev-active); font-weight: 700; color: var(--mev-accent); }
.maya-ev__cats small { font-size: 12px; color: var(--mev-muted); font-weight: 400; }

/* ---------- main ---------- */
.maya-ev__top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding-bottom: 18px; border-bottom: 1px solid var(--mev-line); }
.maya-ev__tabs { display: inline-flex; padding: 3px; gap: 2px; background: #fff; border: 1px solid var(--mev-line); border-radius: 4px; }
.maya-ev__tabs button {
	padding: 8px 16px; border: 0; border-radius: 3px; background: transparent;
	font-size: 13.5px; font-weight: 700; color: var(--mev-text);
}
.maya-ev__tabs button:hover { background: var(--mev-card); }
.maya-ev__tabs button.is-active { background: var(--mev-accent); color: #fff; }
.maya-ev__dayfilter { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mev-accent); font-weight: 700; }
.maya-ev__dayfilter[hidden] { display: none; }
.maya-ev__dayfilter button { padding: 5px 12px; border: 1px solid var(--mev-line); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; }

.maya-ev__row {
	display: grid;
	grid-template-columns: 190px 64px minmax(0, 1fr) auto;
	gap: 0 20px;
	align-items: start;
	padding: 18px 0;
	border-bottom: 1px solid var(--mev-line);
}
.maya-ev__img { display: block; aspect-ratio: 190 / 119; overflow: hidden; border-radius: 2px; background: var(--mev-evday); }
.maya-ev__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.maya-ev__row:hover .maya-ev__img img { transform: scale(1.04); }
.maya-ev__ph {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: linear-gradient(135deg, color-mix(in srgb, var(--ev) 70%, #fff), var(--ev));
	color: rgba(255, 255, 255, .85);
}
.maya-ev__ph svg { width: 40px; height: 40px; stroke-width: 1.3; }
.maya-ev__tile {
	display: flex; flex-direction: column; align-items: center;
	padding: 8px 0 9px;
	background: #fff;
	border: 1px solid var(--mev-line);
	border-top: 5px solid var(--mev-hl);
	line-height: 1;
}
.maya-ev__tile b { font-family: var(--mev-serif); font-size: 26px; font-weight: 400; color: var(--mev-accent); }
.maya-ev__tile span { margin-top: 7px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mev-muted); }
.maya-ev .maya-ev__title { margin: 0 0 6px; padding: 0; font-family: var(--mev-serif); font-size: 21px; font-weight: 400; line-height: 1.3; }
.maya-ev .maya-ev__title a { color: var(--mev-accent); text-decoration: none; }
.maya-ev .maya-ev__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.maya-ev__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 6px; font-size: 13.5px; color: var(--mev-text); }
.maya-ev__meta span { display: inline-flex; align-items: center; gap: 6px; }
.maya-ev__meta svg { color: var(--mev-text); opacity: .75; }
.maya-ev .maya-ev__text { margin: 0; font-size: 14px; line-height: 1.7; color: #5a554c; }
.maya-ev a.maya-ev__btn {
	align-self: center;
	padding: 9px 15px;
	border: 1px solid var(--mev-line);
	border-radius: 2px;
	background: var(--mev-card);
	font-size: 13px; font-weight: 700;
	color: var(--mev-accent);
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.maya-ev a.maya-ev__btn:hover { background: var(--mev-accent); border-color: var(--mev-accent); color: #fff; }
.maya-ev__row.is-past .maya-ev__tile { border-top-color: #b9ae9c; }
.maya-ev__row.is-past .maya-ev__img { filter: saturate(.6); }

.maya-ev__empty { margin: 0; padding: 40px 0; text-align: center; color: var(--mev-muted); }
.maya-ev__more { text-align: center; padding-top: 22px; }
.maya-ev__more button {
	padding: 10px 26px; border: 1px solid var(--mev-accent); border-radius: 3px;
	background: transparent; color: var(--mev-accent); font-weight: 700; font-size: 14px;
}
.maya-ev__more button:hover { background: var(--mev-accent); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
	.maya-ev { grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
	.maya-ev__row { grid-template-columns: 140px 56px minmax(0, 1fr); }
	.maya-ev a.maya-ev__btn { grid-column: 3; justify-self: start; margin-top: 10px; }
}
@media (max-width: 760px) {
	.maya-ev { grid-template-columns: minmax(0, 1fr); }
	.maya-ev__side { position: static; }
	.maya-ev__cal { max-width: 360px; width: 100%; margin: 0 auto; }
	.maya-ev__cats { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
	.maya-ev__cats::-webkit-scrollbar { display: none; }
	.maya-ev__cats button { flex: none; width: auto; padding: 8px 12px; font-size: 14px; }
	.maya-ev__row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px 14px; }
	.maya-ev__img { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
	.maya-ev a.maya-ev__btn { grid-column: 2; }
	.maya-ev .maya-ev__title { font-size: 19px; }
}

/* "Finished" tag on past events */
.maya-ev__badge {
	display: inline-block;
	margin: 0 0 6px;
	padding: 2px 9px;
	border-radius: 3px;
	background: var(--mev-active);
	color: var(--mev-muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .02em;
}
