/**
 * MSAD Events 2026 -- styles for the "All Events" page (82611): the
 * list/calendar toggle buttons, the calendar grid (msad_h26_events_toggle /
 * msad_h26_events_views shortcodes, msad-2026-bricks.php), and the native
 * Bricks Query Loop list view (msad-h26__ev-row, wired up via the
 * msad_event_* dynamic tags in inc/events-2026.php).
 *
 * Previously lived as inline `_cssCustom` blocks directly on the two
 * shortcode elements -- moved here so it's an ordinary external stylesheet
 * like every other page-specific file in this theme.
 */

@media (max-width: 991px) {
	.msad-h26__ev-toggle {
		align-self: start !important;
		width: max-content !important;
	}
}
.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(--font-body);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 20px;
	border-style: none;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	transition: background-color var(--transition-fast), color var(--transition-fast);
}
.msad-h26__ev-toggle-btn.is-active {
	background: #fff;
	color: var(--brand-primary);
}
.msad-h26__ev-toggle-btn:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 3px;
}

@media (max-width: 991px) {
	.msad-h26__ev-row {
		grid-template-columns: 84px 1fr auto !important;
	}

	.msad-h26__ev-thumb {
		display: none !important;
	}
}
@media (max-width: 767px) {
	.msad-h26__ev-row {
		grid-template-columns: 64px 1fr auto !important;
		gap: 14px !important;
	}

	.msad-h26__ev-arrow {
		font-size: 15px !important;
	}

	.msad-h26__ev-month {
		padding-bottom: 32px !important;
	}

	.msad-h26__ev-load-more-wrap {
		margin-bottom: 24px !important;
	}

	/* The .msad-h26__ev global class (Bricks) pads this whole section 32px
	   left/right down to phone widths -- too tight for a 7-column grid, so
	   the calendar gets the room back here instead of via the builder. */
	.msad-h26__ev {
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

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

	/* Mobile calendar: a real month grid, but compact -- day number with up
	   to 2 colour dots centred underneath. Multi-day bars and the desktop
	   per-day chip list are hidden; both are folded into all_events for the
	   day-popup (assets/js/events-2026.js) opened by tapping a day. */
	.msad-h26__ev-cal-num,
	.msad-h26__ev-cal-cell-barspace,
	.msad-h26__ev-cal-week-bars-overlay {
		display: none !important;
	}

	.msad-h26__ev-cal-week-grid .msad-h26__ev-cal-cell {
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-height: 60px !important;
		padding: 6px 4px !important;
		border: 1px solid var(--border-hairline) !important;
		border-radius: 6px;
	}

	.msad-h26__ev-cal-week-grid .msad-h26__ev-cal-cell[data-day-events] {
		cursor: pointer;
	}

	.msad-h26__ev-cal-week-grid .msad-h26__ev-cal-chip {
		display: none !important;
	}

	.msad-h26__ev-cal-cell-mobile {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
	}

	.msad-h26__ev-cal-cell-mobile-dots {
		justify-content: center;
		flex-wrap: wrap;
	}
}
@media (max-width: 480px) {
	.msad-h26__ev-cal-head {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.msad-h26__ev-cal-nav {
		justify-content: space-between;
		width: 100%;
	}

	.msad-h26__ev-cal-nav .msad-h26__ev-cal-btn {
		flex: 1 1 0;
		max-width: none;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		padding: 0 10px;
		font-size: 14px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.msad-h26__ev-cal-chip:hover,
	.msad-h26__ev-cal-chip:focus-visible {
		transform: none !important;
	}
}
.msad-h26__ev-view[hidden] {
	display: none;
}
.msad-h26__ev-month[hidden] {
	display: none;
}
.msad-h26__ev-month {
	padding-bottom: 40px;
}
.msad-h26__ev-month-head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	border-bottom: 2px solid var(--brand-primary);
	padding-bottom: 10px;
}
.msad-h26__ev-month-name {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.03em;
	color: var(--brand-primary);
}
.msad-h26__ev-month-count {
	font-size: 14px;
	color: var(--text-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(--border-hairline);
	transition: background-color var(--transition-fast);
}
.msad-h26__ev-row:hover,
.msad-h26__ev-row:focus-visible {
	background: var(--surface-band);
}
.msad-h26__ev-row:focus-visible {
	outline: var(--focus-ring);
	outline-offset: -2px;
}
.msad-h26__ev-date {
	text-align: center;
	border-right: 1px solid var(--border-hairline);
	padding-right: 20px;
}
.msad-h26__ev-day {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 30px;
	letter-spacing: -0.03em;
	color: var(--brand-primary);
	line-height: 1;
}
.msad-h26__ev-dow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-secondary-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: 14px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	background: var(--surface-band);
	color: var(--brand-secondary-700);
	padding: 4px 9px;
	border-radius: 999px;
}
.msad-h26__ev-tag--featured {
	background: var(--surface-band);
	color: var(--brand-accent-700);
}
.msad-h26__ev-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--brand-primary);
	margin-top: 8px;
	text-wrap: pretty;
}
.msad-h26__ev-meta {
	font-size: 14px;
	color: var(--text-muted);
	margin-top: 6px;
}
.msad-h26__ev-meta i {
	color: var(--brand-secondary-700);
	margin-right: 6px;
}
.msad-h26__ev-arrow {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--brand-primary);
}
.msad-h26__ev-none {
	padding: 28px 8px;
	font-size: 15px;
	color: var(--text-muted);
}
.msad-h26__ev-view--cal {
	background: #fff;
	border: 1px solid var(--border-hairline);
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(15, 25, 52, 0.05);
	padding: 20px;
}
.msad-h26__ev-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}
.msad-h26__ev-cal-title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.03em;
	color: var(--brand-primary);
}
.msad-h26__ev-cal-nav {
	display: flex;
	gap: 8px;
}
.msad-h26__ev-cal-btn {
	font-family: var(--font-heading);
	min-width: 44px;
	padding: 0 16px;
	white-space: nowrap;
	height: 44px;
	border-radius: 8px;
	border: 1.5px solid var(--border-hairline);
	background: #fff;
	color: var(--brand-secondary-700);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background-color var(--transition-fast), color var(--transition-fast),
		border-color var(--transition-fast);
}
.msad-h26__ev-cal-btn:hover:not(:disabled) {
	background: var(--brand-primary);
	border-color: var(--brand-primary);
	color: #fff;
}
.msad-h26__ev-cal-btn:disabled {
	opacity: 0.35;
	cursor: default;
}
.msad-h26__ev-cal-btn:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 3px;
}
.msad-h26__ev-cal-month[hidden] {
	display: none;
}
.msad-h26__ev-cal-grid {
	border: 1px solid var(--border-hairline);
	border-radius: 12px;
	overflow: hidden;
}
/* One grid per week (day number + that day's own chips, all in one cell)
   instead of three separately-sized grids stacked on top of each other --
   multi-day bars are a %-positioned overlay on this same grid (see
   .msad-h26__ev-cal-week-bars-overlay below), so a bar's left/width is
   always exact against the day cells instead of two grids' column tracks
   coincidentally lining up. The dow-row header shares the identical
   template + zero gap so its labels land on the same columns too. */
.msad-h26__ev-cal-dow-row,
.msad-h26__ev-cal-week-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}
.msad-h26__ev-cal-dow {
	background: var(--brand-primary);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	padding: 12px 4px;
}
.msad-h26__ev-cal-weeks {
	display: flex;
	flex-direction: column;
}
.msad-h26__ev-cal-week {
	position: relative;
	background: #fff;
}
.msad-h26__ev-cal-week-bars-overlay {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	pointer-events: none;
}
.msad-h26__ev-cal-week-bars-overlay .msad-h26__ev-cal-bar {
	position: absolute;
	height: 24px;
	pointer-events: auto;
}
.msad-h26__ev-cal-cell-barspace {
	flex-shrink: 0;
}
.msad-h26__ev-cal-cell {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: #fff;
	min-height: 110px;
	padding: 8px 12px 10px;
	border-right: 1px solid var(--border-hairline);
	border-bottom: 1px solid var(--border-hairline);
}
.msad-h26__ev-cal-week-grid .msad-h26__ev-cal-cell:nth-child(7n) {
	border-right: none;
}
.msad-h26__ev-cal-cell--blank {
	background: var(--surface-band);
}
.msad-h26__ev-cal-num {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	height: 26px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 14px;
	color: var(--brand-primary);
}
.msad-h26__ev-cal-cell--today .msad-h26__ev-cal-num {
	justify-content: center;
	min-width: 26px;
	border-radius: 999px;
	background: var(--brand-secondary-700);
	color: #fff;
}
.msad-h26__ev-cal-cell-mobile {
	display: none;
}
button.msad-h26__ev-cal-cell-mobile {
	width: 100%;
	min-height: 44px;
	padding: 2px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
}
.msad-h26__ev-cal-cell-mobile-num {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 13px;
	color: var(--brand-primary);
	line-height: 1;
}
.msad-h26__ev-cal-cell--today .msad-h26__ev-cal-cell-mobile-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	border-radius: 999px;
	background: var(--brand-secondary-700);
	color: #fff;
}
.msad-h26__ev-cal-cell-mobile-dots {
	display: flex;
	align-items: center;
	gap: 3px;
}
.msad-h26__ev-cal-cell-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	flex-shrink: 0;
}
.msad-h26__ev-cal-cell-more {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-muted);
	line-height: 1;
}
.msad-h26__ev-cal-chip {
	display: block;
	background: var(--surface-band);
	background: color-mix(in srgb, var(--ev-color, var(--brand-primary)) 10%, white);
	box-shadow: inset 3px 0 0 var(--ev-color, var(--brand-primary));
	border-radius: 6px;
	padding: 6px 9px 6px 7px;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.msad-h26__ev-cal-chip:hover,
.msad-h26__ev-cal-chip:focus-visible {
	transform: translateY(-2px);
	box-shadow: inset 3px 0 0 var(--ev-color, var(--brand-primary)), 0 8px 18px rgba(15, 25, 52, 0.18);
}
.msad-h26__ev-cal-chip:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}
.msad-h26__ev-cal-chip-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
	color: var(--brand-primary);
}
.msad-h26__ev-cal-bar {
	display: flex;
	align-items: center;
	min-width: 0;
	background: var(--surface-band);
	background: color-mix(in srgb, var(--ev-color, var(--brand-primary)) 10%, white);
	color: var(--brand-primary);
	box-shadow: inset 3px 0 0 var(--ev-color, var(--brand-primary));
	border-radius: 5px;
	padding: 0 10px 0 7px;
	font-weight: 700;
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.msad-h26__ev-cal-bar:hover,
.msad-h26__ev-cal-bar:focus-visible {
	transform: translateY(-1px);
	box-shadow: inset 3px 0 0 var(--ev-color, var(--brand-primary)), 0 8px 18px rgba(15, 25, 52, 0.18);
}
.msad-h26__ev-cal-bar:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}
.msad-h26__ev-cal-bar--open-start {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	box-shadow: none;
	padding-left: 10px;
}
.msad-h26__ev-cal-bar--open-start:hover,
.msad-h26__ev-cal-bar--open-start:focus-visible {
	box-shadow: 0 8px 18px rgba(15, 25, 52, 0.18);
}
.msad-h26__ev-cal-bar--open-end {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.msad-h26__ev-cal-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border-hairline);
}
.msad-h26__ev-cal-note {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0;
}
.msad-h26__ev-cal-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}
.msad-h26__ev-cal-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text-muted);
}
.msad-h26__ev-cal-legend-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	flex-shrink: 0;
}
.msad-h26__ev-preview {
	position: absolute;
	z-index: 60;
	width: 300px;
	padding-top: 10px;
	pointer-events: auto;
}
.msad-h26__ev-preview--above {
	padding-top: 0;
	padding-bottom: 10px;
}
.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);
}
/* Time + location are two consecutive .msad-h26__card-meta lines here (the
   shared class only accounts for one on other cards) -- tighten the gap
   between them specifically, without touching the shared class elsewhere. */
.msad-h26__ev-preview .msad-h26__card-meta + .msad-h26__card-meta {
	margin-top: 2px;
}

/* Mobile calendar day-popup: tapping a day with events opens this bottom
   sheet instead of the desktop hover-preview card (assets/js/events-2026.js). */
.msad-h26__ev-day-popup {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(15, 25, 52, 0.45);
}
.msad-h26__ev-day-popup[hidden] {
	display: none;
}
.msad-h26__ev-day-popup-sheet {
	width: 100%;
	max-width: 560px;
	max-height: 82vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px 16px 0 0;
	padding: 18px;
	padding-bottom: max(18px, env(safe-area-inset-bottom));
	box-shadow: 0 -8px 30px rgba(15, 25, 52, 0.3);
}
.msad-h26__ev-day-popup-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.msad-h26__ev-day-popup-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--brand-primary);
}
.msad-h26__ev-day-popup-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	flex-shrink: 0;
	border-radius: 999px;
	border: none;
	background: var(--surface-band);
	color: var(--brand-primary);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.msad-h26__ev-day-popup-close:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}
.msad-h26__ev-day-popup-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.msad-h26__ev-day-popup-item {
	display: block;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--surface-band);
	text-decoration: none;
	transition: background-color var(--transition-fast);
}
.msad-h26__ev-day-popup-item:hover,
.msad-h26__ev-day-popup-item:focus-visible {
	background: var(--surface-band);
}
.msad-h26__ev-day-popup-item:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}
.msad-h26__ev-day-popup-item-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.msad-h26__ev-day-popup-thumb {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 8px;
	background-color: var(--surface-placeholder);
	background-size: cover;
	background-position: center;
}
.msad-h26__ev-day-popup-item-content {
	min-width: 0;
	flex: 1;
}
.msad-h26__ev-day-popup-item-head {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}
.msad-h26__ev-day-popup-dot {
	width: 10px;
	height: 10px;
	margin-top: 5px;
	border-radius: 999px;
	flex-shrink: 0;
}
.msad-h26__ev-day-popup-item-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.3;
	color: var(--brand-primary);
}
.msad-h26__ev-day-popup-item-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: 7px;
}
.msad-h26__ev-day-popup-item-fact {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--text-muted);
}
.msad-h26__ev-day-popup-item-fact i {
	color: var(--brand-secondary-700);
	font-size: 11px;
}
.msad-h26__ev-day-popup-item-desc {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--text-muted);
	margin: 8px 0 0;
	padding-top: 8px;
	border-top: 1px solid var(--border-hairline);
}

/* Hide the Readabler accessibility launcher only while the mobile
   event-detail sheet is open (assets/js/events-2026.js toggles this body
   class on every open/close path). Remove the wrapper from layout so the
   plugin's explicitly visible button cannot overlap the modal content. */
body.is-event-dialog-open .mdp-readabler-trigger-button-box {
	display: none !important;
}
