/**
 * MSAD Events 2026 -- page-specific sections.
 * Spec: "MSAD Events.dc.html".
 */

/* View toggle in the hero */
.msad-h26__ev-hero-inner {
	max-width: var(--h26-max);
	margin: 0 auto;
	padding: 72px var(--h26-gutter) 56px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: end;
}

.msad-h26__ev-toggle {
	display: flex;
	gap: 2px;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	padding: 3px;
	margin-bottom: 6px;
}

.msad-h26__ev-toggle-btn {
	font-family: var(--h26-font-body);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	transition: background-color var(--h26-transition), color var(--h26-transition);
}

.msad-h26__ev-toggle-btn.is-active {
	background: #fff;
	color: var(--h26-navy);
}

.msad-h26__ev-toggle-btn:focus-visible {
	outline: var(--h26-focus);
	outline-offset: 3px;
}

/* Shared section shell */
.msad-h26__ev {
	max-width: var(--h26-max);
	margin: 0 auto;
	padding: 56px var(--h26-gutter) 0;
}

.msad-h26__ev-view[hidden] {
	display: none;
}

/* ---- List view ---- */
.msad-h26__ev-month {
	padding-bottom: 40px;
}

.msad-h26__ev-month-head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	border-bottom: 2px solid var(--h26-navy);
	padding-bottom: 10px;
}

.msad-h26__ev-month-name {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.03em;
	color: var(--h26-navy);
}

.msad-h26__ev-month-count {
	font-size: 14px;
	color: var(--h26-muted);
}

.msad-h26__ev-row {
	display: grid;
	grid-template-columns: 84px 148px 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 20px 8px;
	border-bottom: 1px solid var(--h26-border);
	transition: background-color var(--h26-transition);
}

.msad-h26__ev-row:hover,
.msad-h26__ev-row:focus-visible {
	background: var(--h26-band);
}

.msad-h26__ev-date {
	text-align: center;
	border-right: 1px solid var(--h26-border);
	padding-right: 20px;
}

.msad-h26__ev-day {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: 30px;
	letter-spacing: -0.03em;
	color: var(--h26-navy);
	line-height: 1;
}

.msad-h26__ev-dow {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--h26-sky-700);
	margin-top: 4px;
}

.msad-h26__ev-thumb {
	height: 91px;
	border-radius: 8px;
	background-color: var(--surface-placeholder);
	background-size: cover;
	background-position: center;
}

.msad-h26__ev-tags {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.msad-h26__ev-tag {
	font-weight: 700;
	font-size: 10.5px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	background: var(--h26-band);
	color: var(--h26-sky-700);
	padding: 4px 9px;
	border-radius: 999px;
}

.msad-h26__ev-tag--featured {
	background: var(--h26-band);
	color: var(--h26-accent-700);
}

.msad-h26__ev-title {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--h26-navy);
	margin-top: 8px;
	text-wrap: pretty;
}

.msad-h26__ev-meta {
	font-size: 14px;
	color: var(--h26-muted);
	margin-top: 6px;
}

.msad-h26__ev-meta i {
	color: var(--h26-sky-700);
	margin-right: 6px;
}

.msad-h26__ev-arrow {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: 18px;
	color: var(--h26-navy);
}

.msad-h26__ev-none {
	padding: 28px 8px;
	font-size: 15px;
	color: var(--h26-muted);
}

/* ---- Calendar view ---- */
.msad-h26__ev-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.msad-h26__ev-cal-title {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.03em;
	color: var(--h26-navy);
}

.msad-h26__ev-cal-nav {
	display: flex;
	gap: 8px;
}

.msad-h26__ev-cal-btn {
	font-family: var(--h26-font-head);
	min-width: 44px;
	padding: 0 16px;
	white-space: nowrap;
	height: 44px;
	border-radius: 8px;
	border: 1.5px solid var(--h26-cranberry);
	background: #fff;
	color: var(--h26-sky-700);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background-color var(--h26-transition), color var(--h26-transition),
		border-color var(--h26-transition);
}

.msad-h26__ev-cal-btn:hover:not(:disabled) {
	background: var(--h26-navy);
	border-color: var(--h26-navy);
	color: #fff;
}

.msad-h26__ev-cal-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.msad-h26__ev-cal-btn:focus-visible {
	outline: var(--h26-focus);
	outline-offset: 3px;
}

.msad-h26__ev-cal-month[hidden] {
	display: none;
}

.msad-h26__ev-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	background: var(--h26-border);
	border: 1px solid var(--h26-border);
	border-radius: 12px;
	overflow: hidden;
}

.msad-h26__ev-cal-dow {
	background: var(--h26-navy);
	color: var(--h26-accent);
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	padding: 12px 4px;
}

.msad-h26__ev-cal-cell {
	background: #fff;
	min-height: 112px;
	padding: 10px 12px;
}

.msad-h26__ev-cal-cell--blank {
	background: var(--h26-band);
}

.msad-h26__ev-cal-num {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: 14px;
	color: var(--h26-navy);
}

.msad-h26__ev-cal-cell--today .msad-h26__ev-cal-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--h26-sky-700);
	color: #fff;
}

.msad-h26__ev-cal-chip {
	display: block;
	margin-top: 8px;
	background: var(--h26-navy);
	border-radius: 7px;
	padding: 8px 10px;
	transition: transform var(--h26-transition), box-shadow var(--h26-transition);
}

.msad-h26__ev-cal-chip:hover,
.msad-h26__ev-cal-chip:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(15, 25, 52, 0.18);
}

.msad-h26__ev-cal-chip--featured {
	background: var(--h26-cranberry);
}

.msad-h26__ev-cal-chip-title {
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
	color: #fff;
}

.msad-h26__ev-cal-chip--featured .msad-h26__ev-cal-chip-title {
	color: var(--h26-on-accent);
}

.msad-h26__ev-cal-chip-time {
	font-size: 11px;
	color: var(--h26-on-navy);
	margin-top: 3px;
}

.msad-h26__ev-cal-chip--featured .msad-h26__ev-cal-chip-time {
	color: rgba(27, 45, 89, 0.75);
}

.msad-h26__ev-cal-note {
	font-size: 14px;
	color: var(--h26-muted);
	margin: 16px 0 0;
}

/* ---- Submit-event CTA band ---- */
.msad-h26__ev-cta {
	background: var(--h26-band);
	border-top: 1px solid var(--h26-band-border);
	margin-top: 88px;
}

.msad-h26__ev-cta-inner {
	max-width: var(--h26-max);
	margin: 0 auto;
	padding: 72px var(--h26-gutter);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: center;
}

.msad-h26__ev-cta-title {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--h26-navy);
	text-wrap: balance;
}

.msad-h26__ev-cta-sub {
	font-size: 16px;
	line-height: 1.6;
	color: var(--h26-muted);
	margin: 14px 0 0;
	max-width: 56ch;
}

.msad-h26__ev-cta .msad-h26__btn--accent {
	min-height: 50px;
	padding: 0 26px;
	font-size: 16px;
	white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
	.msad-h26__ev-hero-inner {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.msad-h26__ev-toggle {
		align-self: start;
		width: max-content;
	}

	.msad-h26__ev-row {
		grid-template-columns: 84px 1fr auto;
	}

	.msad-h26__ev-thumb {
		display: none;
	}

	.msad-h26__ev-cta-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 720px) {
	.msad-h26__ev {
		padding-top: 40px;
	}

	.msad-h26__ev-row {
		grid-template-columns: 64px 1fr;
		gap: 14px;
	}

	.msad-h26__ev-arrow {
		display: none;
	}

	.msad-h26__ev-cal-grid {
		font-size: 12px;
	}

	.msad-h26__ev-cal-cell {
		min-height: 72px;
		padding: 6px 8px;
	}

	.msad-h26__ev-cal-chip-time {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.msad-h26__ev-cal-chip:hover,
	.msad-h26__ev-cal-chip:focus-visible {
		transform: none;
	}
}

/* Calendar hover preview (reuses the card language) */
.msad-h26__ev-preview {
	position: absolute;
	z-index: 60;
	width: 300px;
	pointer-events: auto;
}
.msad-h26__ev-preview[hidden] { display: none; }
.msad-h26__ev-preview .msad-h26__card { box-shadow: 0 22px 48px rgba(15, 25, 52, 0.28); }
.msad-h26__ev-preview-notes { font-size: 13.5px; line-height: 1.55; color: var(--h26-muted); margin-top: 8px; }
