/* Wise Members public event pages, the Upcoming Events block and the member's
   bookings. Builds on portal.css (tokens and buttons); scoped to .wm-portal. */

/* ---------- Icons (masks, so they take the text colour) ---------- */

.wm-portal .wm-ficon {
	display: inline-block;
	flex: none;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: var(--wm-i) center / contain no-repeat;
	mask: var(--wm-i) center / contain no-repeat;
	vertical-align: -4px;
}

.wm-portal .wm-ficon-sm {
	width: 16px;
	height: 16px;
	vertical-align: -3px;
}

.wm-portal .wm-ficon-cal {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-pin {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-video {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 8-6 4 6 4V8z'/%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-users {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-lock {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-mail {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-link {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-user {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-phone {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-receipt {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z'/%3E%3Cpath d='M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8M12 17.5v-11'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-card {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
}

.wm-portal .wm-ficon-ticket,
.wm-portal .wm-icon-ticket::before {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 0 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 0 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2z'/%3E%3Cpath d='M13 5v2M13 17v2M13 11v2'/%3E%3C/svg%3E");
}

/* Quick-links icon in the member portal (portal.css draws the others). */
.wm-portal .wm-icon-ticket::before {
	width: 18px;
	height: 18px;
	border: 0;
	background-color: var(--wm-ink);
	-webkit-mask: var(--wm-i) center / contain no-repeat;
	mask: var(--wm-i) center / contain no-repeat;
}

/* ---------- Shared ---------- */

/* Event and ticket views: the event's title is the heading, not the page's. */
body.wm-event-view .wp-block-post-title,
body.wm-event-view .entry-header .entry-title {
	display: none;
}

.wm-portal .wm-back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
	color: var(--wm-muted);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.wm-portal .wm-back:hover {
	color: var(--wm-brand);
}

.wm-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.04em;
}

.wm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.wm-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border-radius: calc(999px * var(--wm-round));
	border: 1px solid var(--wm-line);
	background: var(--wm-bg-soft);
	color: var(--wm-muted);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.wm-tag-success {
	background: var(--wm-success-bg);
	border-color: #bfe8cc;
	color: var(--wm-success-ink);
}

.wm-tag-warning {
	background: var(--wm-warn-bg);
	border-color: #f1dfa6;
	color: var(--wm-warn-ink);
}

.wm-tag-danger {
	background: var(--wm-error-bg);
	border-color: #f3c4c4;
	color: var(--wm-error-ink);
}

/* "Happening now": a started event still taking bookings until it ends. */
.wm-portal .wm-tag-live {
	gap: 6px;
	border-color: color-mix(in srgb, var(--wm-brand) 30%, transparent);
	background: var(--wm-accent-soft);
	color: var(--wm-brand);
}

.wm-tag-live::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 0 currentColor;
	animation: wm-live 1.8s ease-out infinite;
}

@keyframes wm-live {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
	70%, 100% { box-shadow: 0 0 0 6px transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.wm-tag-live::before {
		animation: none;
	}
}

.wm-badge-success {
	background: var(--wm-success-bg);
	color: var(--wm-success-ink);
	border-color: #bfe8cc;
}

.wm-badge-warning {
	background: var(--wm-warn-bg);
	color: var(--wm-warn-ink);
	border-color: #f1dfa6;
}

.wm-badge-danger {
	background: var(--wm-error-bg);
	color: var(--wm-error-ink);
	border-color: #f3c4c4;
}

/* A calendar leaf: "OCT / 12". */
.wm-ev-leaf {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	flex: none;
	width: 64px;
	overflow: hidden;
	border: 1px solid var(--wm-line);
	border-radius: calc(12px * var(--wm-round));
	background: var(--wm-card);
	box-shadow: var(--wm-shadow);
	text-align: center;
	line-height: 1.1;
}

.wm-ev-leaf span {
	display: block;
	width: 100%;
	padding: 0.2rem 0;
	background: var(--wm-brand);
	color: var(--wm-brand-ink);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wm-ev-leaf strong {
	display: block;
	padding: 0.35rem 0 0.45rem;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--wm-ink);
}

.wm-ev-leaf-sm {
	width: 48px;
	border-radius: calc(10px * var(--wm-round));
	box-shadow: none;
}

.wm-ev-leaf-sm span {
	font-size: 0.62rem;
}

.wm-ev-leaf-sm strong {
	padding: 0.2rem 0 0.3rem;
	font-size: 1.2rem;
}

.wm-ev-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	border: 1px dashed var(--wm-line-strong);
	border-radius: var(--wm-radius);
	background: var(--wm-bg-soft);
}

.wm-ev-empty .wm-ficon {
	width: 36px;
	height: 36px;
	color: var(--wm-brand);
	margin-bottom: 0.75rem;
}

.wm-portal .wm-ev-empty h3 {
	font-size: 1.2rem;
	margin-bottom: 0.4rem;
}

.wm-ev-empty p {
	margin: 0 auto;
	max-width: 36rem;
}

.wm-ev-empty p + p {
	margin-top: 1rem;
}

/* ---------- Events list ---------- */

.wm-ev-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2rem;
}

.wm-portal .wm-ev-heading {
	font-size: clamp(1.7rem, 3.2vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.015em;
}

.wm-portal .wm-ev-mine {
	gap: 0.5rem;
}

.wm-ev-month + .wm-ev-month {
	margin-top: 2.5rem;
}

.wm-portal .wm-ev-month-title {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wm-muted);
}

.wm-ev-month-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wm-line);
}

.wm-ev-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wm-ev-card {
	margin: 0;
}

.wm-portal .wm-ev-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	background: var(--wm-card);
	box-shadow: var(--wm-shadow);
	color: var(--wm-ink);
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wm-portal .wm-ev-card-link:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--wm-brand) 35%, var(--wm-line));
	box-shadow: 0 2px 4px rgba(28, 25, 23, 0.05), 0 16px 36px rgba(28, 25, 23, 0.1);
}

.wm-portal .wm-ev-card-link:focus-visible {
	outline: 3px solid var(--wm-brand);
	outline-offset: 2px;
}

.wm-ev-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--wm-bg-soft);
}

.wm-ev-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.wm-ev-card-link:hover .wm-ev-media img {
	transform: scale(1.04);
}

.wm-ev-media.is-empty {
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
		linear-gradient(135deg, var(--wm-brand), color-mix(in srgb, var(--wm-brand) 60%, #0c0a09));
}

.wm-ev-datechip {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 52px;
	padding: 0.3rem 0.5rem 0.35rem;
	border-radius: calc(10px * var(--wm-round));
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	line-height: 1.1;
	color: var(--wm-ink);
}

.wm-ev-datechip span {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wm-brand);
}

.wm-ev-datechip strong {
	font-size: 1.35rem;
	font-weight: 800;
}

.wm-ev-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.1rem 1.25rem 1.2rem;
}

.wm-ev-when {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wm-brand);
}

.wm-ev-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
}

.wm-ev-where {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9rem;
	color: var(--wm-muted);
}

.wm-ev-summary {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.9rem;
	color: var(--wm-muted);
}

.wm-ev-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	margin-top: auto;
	padding-top: 0.75rem;
}

.wm-ev-price {
	font-weight: 700;
	white-space: nowrap;
}

/* Columns: Appearance > Events list, or [wisemembers_events columns="…"].
   "auto" fits as many 270px cards as there's room for. Fixed counts step
   down with the space the grid really has (a container query), so a theme
   with a narrow content column or a phone never gets squeezed cards. */
.wm-ev-month {
	container-type: inline-size;
}

.wm-ev-grid.wm-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wm-ev-grid.wm-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wm-ev-grid.wm-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

/* One column: each event is a wide row, the image on the left. */
.wm-ev-grid.wm-cols-1 {
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.wm-portal .wm-ev-grid.wm-cols-1 .wm-ev-card-link {
	flex-direction: row;
}

.wm-ev-grid.wm-cols-1 .wm-ev-media {
	flex: 0 0 min(300px, 36%);
	aspect-ratio: auto;
	min-height: 170px;
}

.wm-ev-grid.wm-cols-1 .wm-ev-body {
	padding: 1.25rem 1.5rem;
}

.wm-ev-grid.wm-cols-1 .wm-ev-title {
	font-size: 1.25rem;
}

@container (max-width: 960px) {
	.wm-ev-grid.wm-cols-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container (max-width: 720px) {
	.wm-ev-grid.wm-cols-3,
	.wm-ev-grid.wm-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (max-width: 520px) {
	.wm-ev-grid.wm-cols-2,
	.wm-ev-grid.wm-cols-3,
	.wm-ev-grid.wm-cols-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.wm-portal .wm-ev-grid.wm-cols-1 .wm-ev-card-link {
		flex-direction: column;
	}

	.wm-ev-grid.wm-cols-1 .wm-ev-media {
		flex: none;
		aspect-ratio: 16 / 9;
		min-height: 0;
	}
}

/* Header actions: the Grid | List switch and My booked events. */
.wm-ev-header-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.wm-view-switch {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--wm-line-strong);
	border-radius: calc(10px * var(--wm-round));
	background: var(--wm-card);
}

.wm-portal .wm-view-switch a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	border-radius: calc(7px * var(--wm-round));
	color: var(--wm-muted);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wm-portal .wm-view-switch a:hover {
	color: var(--wm-ink);
}

.wm-portal .wm-view-switch a.is-active {
	background: var(--wm-ink);
	color: var(--wm-card);
}

.wm-portal .wm-view-switch a:focus-visible {
	outline: 2px solid var(--wm-brand);
	outline-offset: 2px;
}

.wm-view-switch svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

/* List view: one compact row per event. */
.wm-ev-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wm-ev-row {
	margin: 0;
}

.wm-portal .wm-ev-row-link {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px 18px;
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	background: var(--wm-card);
	color: var(--wm-ink);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wm-portal .wm-ev-row-link:hover {
	border-color: color-mix(in srgb, var(--wm-brand) 35%, var(--wm-line));
	box-shadow: var(--wm-shadow);
}

.wm-portal .wm-ev-row-link:focus-visible {
	outline: 3px solid var(--wm-brand);
	outline-offset: 2px;
}

.wm-ev-row .wm-ev-leaf {
	flex: none;
	width: 58px;
	box-shadow: none;
}

.wm-ev-row .wm-ev-leaf strong {
	padding: 0.25rem 0 0.35rem;
	font-size: 1.4rem;
}

.wm-ev-row-thumb {
	flex: none;
	width: 104px;
	height: 72px;
	border-radius: calc(10px * var(--wm-round));
	object-fit: cover;
}

.wm-ev-row-thumb.is-empty {
	display: block;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
		linear-gradient(135deg, var(--wm-brand), color-mix(in srgb, var(--wm-brand) 60%, #0c0a09));
}

.wm-ev-row-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.wm-ev-row .wm-ev-title {
	font-size: 1.05rem;
}

.wm-ev-row-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	font-size: 0.88rem;
	color: var(--wm-muted);
}

.wm-ev-row-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.wm-ev-row .wm-ev-summary {
	-webkit-line-clamp: 1;
	font-size: 0.86rem;
}

.wm-ev-row-side {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
}

.wm-ev-row-cta {
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--wm-brand);
	white-space: nowrap;
}

@container (max-width: 640px) {
	.wm-portal .wm-ev-row-link {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 12px 14px;
		padding: 14px;
	}

	.wm-ev-row-thumb {
		display: none;
	}

	.wm-ev-row-body {
		flex-basis: calc(100% - 58px - 14px);
	}

	.wm-ev-row-side {
		flex-basis: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		padding-top: 10px;
		border-top: 1px dashed var(--wm-line);
		text-align: left;
	}
}

.wm-ev-pages {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 2.5rem;
}

/* ---------- Event page ----------
   The WiseMembers portal's layout: cover, title + facts and the write-up on
   the left; the booking card on the right from the very top, so booking is
   always in view. Below 960px it all stacks with the booking card straight
   after the key facts, and a bar at the bottom of the screen jumps back to
   it. The last row is 1fr so a tall booking card never opens gaps. */

.wm-portal.wm-events {
	width: min(1080px, calc(100vw - 2rem));
}

.wm-evd {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
	grid-template-rows: auto auto 1fr;
	grid-template-areas:
		"hero book"
		"head book"
		"body book";
	column-gap: 48px;
	row-gap: 32px;
	align-items: start;
}

.wm-evd-no-cover {
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"head book"
		"body book";
}

.wm-evd-hero {
	grid-area: hero;
}

.wm-evd-head {
	grid-area: head;
}

.wm-evd-body {
	grid-area: body;
}

.wm-evd-book {
	grid-area: book;
	align-self: stretch;
}

.wm-evd-cover {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	border-radius: calc(18px * var(--wm-round));
	background: var(--wm-bg-soft);
	box-shadow: var(--wm-shadow);
}

/* Title with a calendar leaf */
.wm-evd-head-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.wm-evd-head-text {
	min-width: 0;
}

.wm-evd-head .wm-eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: 0.16em;
}

.wm-portal .wm-evd-title {
	margin: 0;
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
}

.wm-evd .wm-ev-leaf {
	width: 64px;
	border-radius: calc(12px * var(--wm-round));
	box-shadow: var(--wm-shadow);
}

.wm-evd .wm-ev-leaf span {
	padding: 5px 0 4px;
	font-size: 11px;
}

.wm-evd .wm-ev-leaf strong {
	padding: 8px 0 10px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.wm-evd-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.wm-evd-tags .wm-tag {
	padding: 4px 11px;
	border-color: var(--wm-line);
	background: var(--wm-card);
	font-size: 12px;
	line-height: 1.5;
}

.wm-evd-tags .wm-tag-warning {
	border-color: #fcd9a0;
	background: #fef3c7;
	color: #92400e;
}

.wm-evd-tags .wm-tag-danger {
	border-color: #f7c1c1;
	background: #fee2e2;
	color: #dc2626;
}

/* The event type, e.g. "Conference". */
.wm-evd-tags .wm-tag-type {
	border-color: transparent;
	background: var(--wm-accent-soft);
	color: var(--wm-brand);
}

/* Key facts */
.wm-facts {
	margin: 28px 0 0;
	padding: 0;
	border-top: 1px solid var(--wm-line);
}

.wm-fact {
	display: flex;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--wm-line);
}

.wm-fact dt {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: calc(12px * var(--wm-round));
	background: var(--wm-accent-soft);
	color: var(--wm-brand);
}

.wm-fact dd {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wm-muted);
}

.wm-fact dd strong {
	font-size: 15px;
	font-weight: 600;
	color: var(--wm-ink);
}

.wm-fact dd span {
	color: var(--wm-muted);
}

.wm-portal .wm-fact-link {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wm-brand);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.wm-portal .wm-fact-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* About + host */
.wm-evd-section + .wm-evd-section {
	margin-top: 40px;
}

.wm-portal .wm-evd-section-title {
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.wm-prose {
	max-width: 68ch;
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--wm-ink);
	overflow-wrap: anywhere;
}

.wm-prose p {
	margin: 0 0 1em;
}

.wm-portal .wm-prose h2,
.wm-portal .wm-prose h3,
.wm-portal .wm-prose h4,
.wm-portal .wm-prose h5 {
	margin: 0 0 0.5em;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--wm-ink);
}

.wm-portal .wm-prose h5 {
	font-size: 15.5px;
}

.wm-portal .wm-prose * + h2,
.wm-portal .wm-prose * + h3,
.wm-portal .wm-prose * + h4,
.wm-portal .wm-prose * + h5 {
	margin-top: 1.4em;
}

.wm-portal .wm-prose > :last-child {
	margin-bottom: 0;
}

.wm-prose ul,
.wm-prose ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.wm-prose li + li {
	margin-top: 0.25em;
}

.wm-prose blockquote {
	margin: 0 0 1em;
	padding: 2px 0 2px 16px;
	border-left: 3px solid var(--wm-line-strong);
	color: var(--wm-muted);
}

.wm-prose blockquote p {
	margin-bottom: 0.5em;
}

.wm-prose a {
	color: var(--wm-brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wm-host {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	background: var(--wm-card);
}

.wm-host .wm-brand-logo {
	flex: none;
	width: 48px;
	height: 48px;
	padding: 3px;
	border-radius: calc(12px * var(--wm-round));
}

.wm-host .wm-brand-initial {
	padding: 0;
	border: 0;
	background: var(--wm-brand);
	color: var(--wm-brand-ink);
	font-size: 18px;
	font-weight: 600;
}

.wm-host-name {
	margin: 0 0 2px;
	font-weight: 600;
	color: var(--wm-ink);
}

.wm-portal .wm-host-text a {
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.wm-portal .wm-host-text a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Booking card */

.wm-book-card {
	overflow: hidden;
	scroll-margin-top: 16px;
	border: 1px solid var(--wm-line);
	border-radius: calc(18px * var(--wm-round));
	background: var(--wm-card);
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 24px 48px -28px rgba(28, 25, 23, 0.35);
}

.wm-book-card.is-sticky {
	position: sticky;
	top: 24px;
}

.admin-bar .wm-book-card.is-sticky {
	top: calc(24px + 32px);
}

.wm-book-head {
	padding: 22px 24px 20px;
	border-bottom: 1px solid var(--wm-line);
	background: linear-gradient(180deg, var(--wm-accent-soft), var(--wm-card));
}

.wm-book-price {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums;
	color: var(--wm-ink);
}

.wm-book-price-prefix {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--wm-muted);
}

.wm-book-note {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--wm-muted);
}

.wm-book-state {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 24px 26px;
}

.wm-book-state strong {
	font-size: 15px;
	color: var(--wm-ink);
}

.wm-book-state p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--wm-muted);
}

.wm-book-state-danger strong {
	color: #dc2626;
}

.wm-book-done {
	align-items: flex-start;
}

.wm-book-check {
	width: 44px;
	height: 44px;
	margin-bottom: 6px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 22px no-repeat,
		#dcfce7;
}

.wm-book-done strong {
	font-size: 17px;
}

.wm-book-done .wm-button {
	margin-top: 14px;
}

.wm-book-done .wm-button + .wm-button {
	margin-top: 4px;
}

.wm-portal .wm-book-more {
	align-self: center;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
}

.wm-book-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 22px 24px 24px;
}

.wm-book-form > .wm-alert {
	margin: 0;
}

.wm-step {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.wm-step + .wm-step {
	padding-top: 22px;
	border-top: 1px solid var(--wm-line);
}

.wm-portal .wm-step-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14.5px;
	font-weight: 700;
}

.wm-step-num {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wm-ink);
	color: var(--wm-card);
	font-size: 11.5px;
	font-weight: 700;
}

.wm-book-form .wm-field {
	margin: 0;
}

.wm-book-form .wm-label {
	font-size: 14px;
	font-weight: 500;
}

.wm-book-form .wm-grid-2 {
	gap: 0 18px;
}

.wm-book-form .wm-step > .wm-field + .wm-field,
.wm-book-form .wm-grid-2 + .wm-field {
	margin-top: 0;
}

.wm-portal .wm-book-form .wm-input {
	min-height: 40px;
	padding: 0.5rem 0.75rem;
	border-color: var(--wm-line-strong);
	border-radius: calc(8px * var(--wm-round));
	font-size: 14.5px;
}

.wm-signin-hint {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--wm-muted);
}

/* Ticket options */
.wm-tiers {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wm-tier {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--wm-line-strong);
	border-radius: calc(12px * var(--wm-round));
	background: var(--wm-card);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wm-tier:hover {
	border-color: var(--wm-brand);
}

.wm-tier:has(input:checked) {
	border-color: var(--wm-brand);
	background: var(--wm-accent-soft);
	box-shadow: inset 0 0 0 1px var(--wm-brand);
}

.wm-tier:has(input:focus-visible) {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wm-brand) 18%, transparent), inset 0 0 0 1px var(--wm-brand);
}

.wm-tier input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--wm-brand);
}

.wm-tier-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wm-tier-name {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--wm-ink);
}

.wm-tier-desc {
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--wm-muted);
}

.wm-tier-badge {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 7px;
	border-radius: calc(999px * var(--wm-round));
	background: var(--wm-bg-soft);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: 2px;
	color: var(--wm-muted);
}

.wm-tier-price {
	flex: none;
	font-size: 14.5px;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	color: var(--wm-ink);
}

/* Quantity stepper: a plain number input until events.js adds − / + */
.wm-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wm-qty-label {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	font-weight: 600;
	color: var(--wm-ink);
}

.wm-qty-hint {
	font-size: 12px;
	font-weight: 400;
	color: var(--wm-muted);
}

.wm-stepper {
	display: inline-flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--wm-line-strong);
	border-radius: calc(10px * var(--wm-round));
	background: var(--wm-card);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wm-stepper:focus-within {
	border-color: var(--wm-brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wm-brand) 15%, transparent);
}

.wm-portal .wm-stepper-btn {
	display: grid;
	place-items: center;
	width: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wm-ink);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.wm-portal .wm-stepper-btn[hidden] {
	display: none;
}

.wm-stepper-btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.wm-portal .wm-stepper-btn:hover:not(:disabled) {
	background: var(--wm-canvas);
}

.wm-portal .wm-stepper-btn:disabled {
	color: var(--wm-line-strong);
	cursor: default;
}

.wm-portal .wm-book-form .wm-stepper-input {
	width: 56px;
	height: 42px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
	color: var(--wm-ink);
}

.wm-portal .wm-stepper-input:focus {
	outline: none;
}

.wm-portal .wm-book-form .wm-stepper.is-enhanced .wm-stepper-input {
	width: 48px;
	border-left: 1px solid var(--wm-line);
	border-right: 1px solid var(--wm-line);
	-moz-appearance: textfield;
	appearance: textfield;
}

.wm-stepper.is-enhanced .wm-stepper-input::-webkit-outer-spin-button,
.wm-stepper.is-enhanced .wm-stepper-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wm-coupon summary {
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	color: var(--wm-brand);
	cursor: pointer;
	list-style: none;
}

.wm-coupon summary::-webkit-details-marker {
	display: none;
}

.wm-coupon summary:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wm-coupon[open] summary {
	margin-bottom: 8px;
}

.wm-coupon .wm-input {
	text-transform: uppercase;
}

.wm-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px dashed var(--wm-line-strong);
}

.wm-total[hidden],
.wm-total-note[hidden] {
	display: none;
}

.wm-total-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--wm-ink);
}

.wm-total-label span {
	margin-left: 4px;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--wm-muted);
}

.wm-total strong {
	font-size: 19px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wm-ink);
}

.wm-total-note {
	margin: -6px 0 0;
	font-size: 12px;
	color: var(--wm-muted);
}

.wm-book-form .wm-note {
	margin: 0;
	padding: 12px 14px;
	border-radius: calc(10px * var(--wm-round));
	background: var(--wm-canvas);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--wm-muted);
}

.wm-booking-as {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 12px 14px;
	border-radius: calc(12px * var(--wm-round));
	background: var(--wm-canvas);
	font-size: 14px;
}

.wm-booking-as > span:last-child {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.wm-choices {
	margin: 0;
	padding: 0;
	border: 0;
}

.wm-choices .wm-check {
	margin-bottom: 0.35rem;
}

.wm-book-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wm-portal .wm-book-cta {
	min-height: 52px;
	border-radius: var(--wm-button-radius-lg);
	font-size: 15.5px;
	letter-spacing: 0;
	box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--wm-button) 80%, transparent);
}

.wm-portal .wm-book-cta[aria-busy="true"] {
	opacity: 0.8;
	cursor: progress;
}

.wm-secure {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	margin: -10px 0 0;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
	color: var(--wm-muted);
}

.wm-secure .wm-ficon {
	width: 14px;
	height: 14px;
	margin-top: 2px;
}

/* Phones: a "Get tickets" bar at the bottom of the screen */
.wm-mobilebar {
	display: none;
}

.wm-mobilebar-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wm-mobilebar-price {
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--wm-ink);
}

.wm-mobilebar-date {
	font-size: 12px;
	color: var(--wm-muted);
}

.wm-portal .wm-mobilebar-btn {
	flex: none;
	min-height: 44px;
	padding-inline: 22px;
}

@media (max-width: 960px) {
	.wm-evd,
	.wm-evd-no-cover {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas: "hero" "head" "book" "body";
		row-gap: 28px;
	}

	.wm-evd-no-cover {
		grid-template-areas: "head" "book" "body";
	}

	.wm-mobilebar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--wm-line);
		background: var(--wm-card);
		box-shadow: 0 -12px 32px -20px rgba(28, 25, 23, 0.35);
		transition: transform 0.25s ease;
	}

	.wm-mobilebar.is-hidden {
		transform: translateY(110%);
	}

	body:has(.wm-mobilebar) {
		padding-bottom: 76px;
	}
}

@media (max-width: 600px) {
	.wm-evd-cover {
		border-radius: calc(14px * var(--wm-round));
	}

	.wm-evd-head-row {
		gap: 14px;
	}

	.wm-evd .wm-ev-leaf {
		width: 56px;
	}

	.wm-evd .wm-ev-leaf strong {
		font-size: 22px;
	}

	.wm-book-head,
	.wm-book-form,
	.wm-book-state {
		padding-right: 18px;
		padding-left: 18px;
	}
}

/* ---------- Ticket ---------- */

.wm-ticket {
	max-width: 440px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--wm-line);
	border-radius: calc(20px * var(--wm-round));
	background: var(--wm-card);
	box-shadow: 0 2px 4px rgba(28, 25, 23, 0.04), 0 22px 50px rgba(28, 25, 23, 0.12);
	text-align: center;
}

.wm-ticket-top {
	padding: 1.75rem 1.5rem 1.5rem;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.25), transparent 55%),
		var(--wm-brand);
	color: var(--wm-brand-ink);
}

.wm-ticket-top .wm-eyebrow,
.wm-ticket-top .wm-muted {
	color: inherit;
	opacity: 0.85;
}

.wm-portal .wm-ticket-title {
	margin: 0.2rem 0 0.4rem;
	color: inherit;
	font-size: 1.45rem;
	font-weight: 800;
}

.wm-ticket-when {
	margin: 0;
	font-weight: 600;
}

.wm-ticket-top p {
	margin: 0;
}

.wm-ticket-top .wm-badge {
	margin-top: 0.9rem;
	background: #fff;
}

.wm-ticket-perf {
	position: relative;
	height: 0;
	border-top: 2px dashed var(--wm-line);
	margin: 0 1.25rem;
}

.wm-ticket-perf::before,
.wm-ticket-perf::after {
	content: "";
	position: absolute;
	top: -13px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wm-bg-soft);
	border: 1px solid var(--wm-line);
}

.wm-ticket-perf::before {
	left: -34px;
}

.wm-ticket-perf::after {
	right: -34px;
}

.wm-ticket-body {
	padding: 1.5rem 1.5rem 1.75rem;
}

.wm-ticket-qr {
	display: block;
	width: 200px;
	height: 200px;
	margin: 0 auto 0.75rem;
	padding: 0.5rem;
	border: 1px solid var(--wm-line);
	border-radius: calc(14px * var(--wm-round));
	background: #fff;
}

.wm-ticket-code {
	margin: 0 0 0.75rem;
	font-size: 1.3rem;
	font-weight: 700;
}

.wm-ticket-who {
	display: flex;
	flex-direction: column;
	margin: 0 0 1rem;
}

.wm-ticket-note {
	margin: 0 0 1rem;
	color: var(--wm-muted);
}

.wm-ticket-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 1.25rem;
}

/* Google Wallet (the button itself is styled in portal.css, .wm-gwallet). */
.wm-ticket-wallet {
	display: flex;
	justify-content: center;
	margin-top: 1.25rem;
}

.wm-wallet-form.wm-inline {
	display: inline-flex;
}

.wm-book-done .wm-wallet-form {
	display: flex;
	width: 100%;
	margin-top: 4px;
}

.wm-portal .wm-gwallet.wm-gwallet-block {
	width: 100%;
}

.wm-portal .wm-gwallet.wm-gwallet-sm {
	min-height: 36px;
	gap: 8px;
	padding: 0 14px 0 11px;
	font-size: 13.5px;
}

.wm-gwallet-sm .wm-gwallet-icon {
	width: 18px;
	height: 18px;
}

/* ---------- Upcoming Events block / widget ---------- */

.wm-portal.wm-upcoming {
	max-width: none;
	margin: 0;
}

.wm-portal .wm-upcoming-title {
	margin-bottom: 1rem;
	font-size: 1.35rem;
	font-weight: 700;
}

.wm-upcoming-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wm-upcoming-list > li {
	margin: 0;
}

.wm-portal .wm-upcoming-item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.75rem 0;
	color: var(--wm-ink);
	text-decoration: none;
}

.wm-upcoming-list > li + li .wm-upcoming-item {
	border-top: 1px solid var(--wm-line);
}

.wm-portal a.wm-upcoming-item:hover .wm-upcoming-name {
	color: var(--wm-brand);
}

.wm-upcoming-thumb {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: calc(10px * var(--wm-round));
	object-fit: cover;
}

.wm-upcoming-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wm-upcoming-name {
	font-weight: 700;
	line-height: 1.3;
	transition: color 0.15s ease;
}

.wm-upcoming-meta {
	color: var(--wm-muted);
	font-size: 0.85rem;
}

.wm-portal .wm-upcoming-all {
	display: inline-block;
	margin-top: 0.75rem;
	font-weight: 600;
	text-decoration: none;
}

.wm-upcoming-empty {
	margin: 0;
}

/* Cards layout */
.wm-upcoming-grid .wm-upcoming-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

/* Cards layout columns (block setting / columns="…"), stepping down with the space. */
.wm-portal.wm-upcoming-grid {
	container-type: inline-size;
}

.wm-upcoming-grid .wm-upcoming-list.wm-cols-1 {
	grid-template-columns: minmax(0, 1fr);
}

.wm-upcoming-grid .wm-upcoming-list.wm-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wm-upcoming-grid .wm-upcoming-list.wm-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wm-upcoming-grid .wm-upcoming-list.wm-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@container (max-width: 760px) {
	.wm-upcoming-grid .wm-upcoming-list.wm-cols-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container (max-width: 600px) {
	.wm-upcoming-grid .wm-upcoming-list.wm-cols-3,
	.wm-upcoming-grid .wm-upcoming-list.wm-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (max-width: 420px) {
	.wm-upcoming-grid .wm-upcoming-list[class*="wm-cols-"] {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wm-portal.wm-upcoming-grid .wm-upcoming-item {
	flex-direction: column;
	align-items: stretch;
	height: 100%;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--wm-line) !important;
	border-radius: var(--wm-radius);
	background: var(--wm-card);
	box-shadow: var(--wm-shadow);
}

.wm-upcoming-grid .wm-upcoming-thumb {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.wm-upcoming-grid .wm-ev-leaf {
	margin: 1rem 1rem 0;
}

.wm-upcoming-grid .wm-upcoming-body {
	padding: 0.85rem 1rem 1rem;
}

/* ---------- Member portal: My events ---------- */

.wm-section-head {
	align-items: center;
	margin-bottom: 1.25rem;
}

.wm-section-head .wm-section-title {
	margin-bottom: 0 !important;
}

.wm-portal .wm-subhead {
	margin: 1.75rem 0 0.9rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wm-muted);
}

.wm-section-head + .wm-subhead {
	margin-top: 0;
}

.wm-passes {
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wm-pass {
	display: flex;
	overflow: hidden;
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	background: var(--wm-card);
	box-shadow: var(--wm-shadow);
}

.wm-pass-stub {
	position: relative;
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 96px;
	padding: 1rem 0.5rem;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
		var(--wm-brand);
	color: var(--wm-brand-ink);
	line-height: 1.1;
	text-align: center;
}

.wm-pass-stub::after {
	content: "";
	position: absolute;
	top: 8px;
	right: -1px;
	bottom: 8px;
	border-right: 2px dashed rgba(255, 255, 255, 0.55);
}

.wm-pass-dow,
.wm-pass-month {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.9;
}

.wm-pass-day {
	margin: 0.15rem 0;
	font-size: 2rem;
	font-weight: 800;
}

.wm-pass-main {
	flex: 1;
	min-width: 0;
	padding: 1rem 1.25rem 1.1rem;
}

.wm-pass-head {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
}

.wm-pass-thumb {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: calc(10px * var(--wm-round));
	object-fit: cover;
}

.wm-pass-heading {
	flex: 1;
	min-width: 0;
}

.wm-pass-kicker {
	margin: 0;
	color: var(--wm-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wm-portal .wm-pass-title {
	margin: 0.1rem 0 0;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
}

.wm-portal .wm-pass-title a {
	color: var(--wm-ink);
	text-decoration: none;
}

.wm-portal .wm-pass-title a:hover {
	color: var(--wm-brand);
}

.wm-pass-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 0.6rem 1.25rem;
	margin: 0.9rem 0 0;
	padding: 0.85rem 0 0;
	border-top: 1px dashed var(--wm-line);
}

.wm-pass-facts dt {
	color: var(--wm-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wm-pass-facts dd {
	margin: 0;
	font-size: 0.93rem;
	font-weight: 600;
}

.wm-pass-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.wm-portal .wm-pass-more {
	margin-left: auto;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.wm-pass-line {
	margin: 0.35rem 0 0;
	color: var(--wm-muted);
	font-size: 0.9rem;
}

.wm-pass.is-muted {
	box-shadow: none;
}

.wm-pass.is-muted .wm-pass-stub {
	width: 72px;
	padding: 0.6rem 0.4rem;
	background: var(--wm-bg-soft);
	color: var(--wm-muted);
	border-right: 1px dashed var(--wm-line);
}

.wm-pass.is-muted .wm-pass-stub::after {
	display: none;
}

.wm-pass.is-muted .wm-pass-day {
	font-size: 1.4rem;
}

.wm-pass.is-muted .wm-pass-main {
	padding: 0.75rem 1rem;
}

.wm-pass.is-muted .wm-pass-title {
	font-size: 1rem;
}

.wm-passes-compact {
	margin-top: 0.25rem;
}

.wm-home-events-head {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wm-line);
}

/* ---------- Member portal: Payments ---------- */

.wm-portal .wm-icon-receipt::before {
	--wm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z'/%3E%3Cpath d='M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8M12 17.5v-11'/%3E%3C/svg%3E");
	width: 18px;
	height: 18px;
	border: 0;
	background-color: var(--wm-ink);
	-webkit-mask: var(--wm-i) center / contain no-repeat;
	mask: var(--wm-i) center / contain no-repeat;
}

.wm-section-sub {
	margin: 4px 0 0;
	color: var(--wm-muted);
	font-size: 0.92rem;
}

.wm-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.wm-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 18px;
	border: 1px solid var(--wm-line);
	border-radius: var(--wm-radius);
	background: var(--wm-card);
	box-shadow: var(--wm-shadow);
}

.wm-stat-label {
	color: var(--wm-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wm-stat-value {
	color: var(--wm-ink);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.wm-stat-note {
	color: var(--wm-muted);
	font-size: 0.8rem;
}

.wm-card.wm-pay-card {
	padding: 0;
	overflow: hidden;
}

.wm-pay-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.wm-pay-table th {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--wm-line);
	background: var(--wm-canvas);
	color: var(--wm-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-align: left;
	text-transform: uppercase;
}

.wm-pay-table td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--wm-line);
	vertical-align: middle;
}

.wm-pay-table tbody tr:last-child td {
	border-bottom: 0;
}

.wm-pay-table tbody tr:hover td {
	background: color-mix(in srgb, var(--wm-canvas) 60%, transparent);
}

.wm-pay-table .wm-num {
	text-align: right;
	white-space: nowrap;
}

.wm-pay-date {
	color: var(--wm-muted);
	white-space: nowrap;
}

.wm-pay-title {
	display: block;
	color: var(--wm-ink);
	font-weight: 600;
}

.wm-pay-sub {
	display: block;
	margin-top: 2px;
	color: var(--wm-muted);
	font-size: 0.8rem;
}

.wm-pay-method {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wm-muted);
	white-space: nowrap;
}

.wm-pay-amount {
	display: block;
	color: var(--wm-ink);
	font-variant-numeric: tabular-nums;
}

.wm-pay-refund {
	display: block;
	color: var(--wm-warn-ink);
	font-size: 0.78rem;
}

.wm-pay-receipt {
	width: 1%;
	text-align: right;
	white-space: nowrap;
}

.wm-portal .wm-pay-receipt-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border: 1px solid var(--wm-line-strong);
	border-radius: calc(8px * var(--wm-round));
	background: var(--wm-card);
	color: var(--wm-ink);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.wm-portal .wm-pay-receipt-btn:hover {
	border-color: var(--wm-brand);
	color: var(--wm-brand);
}

.wm-portal .wm-pay-receipt-btn:focus-visible {
	outline: 2px solid var(--wm-brand);
	outline-offset: 2px;
}

.wm-pay-pages {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-top: 1px solid var(--wm-line);
	background: var(--wm-canvas);
}

.wm-pay-empty {
	padding: 40px 24px;
	text-align: center;
}

.wm-pay-empty-icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--wm-accent-soft);
	color: var(--wm-brand);
}

.wm-pay-empty-icon .wm-ficon {
	width: 24px;
	height: 24px;
}

.wm-portal .wm-pay-empty h3 {
	margin-bottom: 6px;
	font-size: 1.1rem;
}

.wm-pay-empty p {
	max-width: 420px;
	margin: 0 auto;
}

/* Phones: each payment becomes a small card. */
@media (max-width: 700px) {
	/* Totals as compact rows: label and note on the left, the figure on the right. */
	.wm-stats {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.wm-stat {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 0 12px;
		padding: 12px 16px;
	}

	.wm-stat-value {
		grid-row: 1 / span 2;
		grid-column: 2;
		font-size: 1.2rem;
		white-space: nowrap;
	}

	.wm-pay-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.wm-pay-table,
	.wm-pay-table tbody,
	.wm-pay-table tr,
	.wm-pay-table td {
		display: block;
		width: auto;
	}

	.wm-pay-table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 6px 12px;
		padding: 14px 16px;
		border-bottom: 1px solid var(--wm-line);
	}

	.wm-pay-table tbody tr:last-child {
		border-bottom: 0;
	}

	.wm-pay-table td {
		padding: 0;
		border: 0;
		text-align: left;
	}

	.wm-pay-table tbody tr:hover td {
		background: none;
	}

	/* Description and amount on the first line, then date · method, status, receipt. */
	.wm-pay-table td.wm-pay-what {
		grid-column: 1;
		grid-row: 1;
	}

	.wm-pay-table td.wm-num {
		grid-column: 2;
		grid-row: 1;
		text-align: right;
	}

	.wm-pay-table td.wm-pay-date {
		grid-column: 1 / -1;
		font-size: 0.82rem;
	}

	.wm-pay-table td.wm-pay-receipt {
		grid-column: 1 / -1;
		justify-self: end;
		width: auto;
		text-align: right;
	}

	.wm-pay-table td.wm-pay-receipt.is-empty {
		display: none;
	}
}

/* ---------- Small screens ---------- */


@media (max-width: 600px) {
	.wm-ev-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.wm-ev-leaf {
		width: 54px;
	}

	.wm-ev-leaf strong {
		font-size: 1.35rem;
	}

	.wm-pass-stub {
		width: 72px;
	}

	.wm-pass-day {
		font-size: 1.6rem;
	}

	.wm-pass-head .wm-badge {
		display: none;
	}

	.wm-pass-thumb {
		display: none;
	}

	.wm-portal .wm-pass-more {
		margin-left: 0;
	}

	.wm-ticket-perf::before {
		left: -32px;
	}

	.wm-ticket-perf::after {
		right: -32px;
	}
}

@media print {
	.wm-ticket,
	.wm-ticket * {
		visibility: visible;
	}

	.wm-ticket {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		box-shadow: none;
	}

	.wm-no-print {
		display: none !important;
	}
}
