/**
 * DST Events front end.
 *
 * Every colour resolves from a --dst-* variable emitted by the Design tab, so
 * this file never needs editing to rebrand the calendar. Fallbacks after each
 * var() keep the plugin usable if the option row is ever missing.
 */

/* ------------------------------------------------------------------
 * Shell
 * --------------------------------------------------------------- */

.dst-calendar {
	--dst-gap: 16px;
	position: relative;
	color: var(--dst-text, #111827);
	font-size: 15px;
	line-height: 1.5;
}

.dst-calendar *,
.dst-lightbox * {
	box-sizing: border-box;
}

.dst-calendar.is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.dst-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--dst-text-muted, #6b7280);
	background: var(--dst-surface-soft, #f7f8fa);
	border: 1px dashed var(--dst-border, #e3e6ea);
	border-radius: 10px;
}

/* ------------------------------------------------------------------
 * Buttons
 * --------------------------------------------------------------- */

.dst-btn,
.dst-nav-prev,
.dst-nav-next,
.dst-nav-today,
.dst-view-btn,
.dst-period-btn,
.dst-map-toggle,
.dst-cat-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border-radius: 8px;
	background: var(--dst-btn-s-bg, #fff);
	border: 1px solid var(--dst-btn-s-border, #e3e6ea);
	color: var(--dst-btn-s-text, #1f2937);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dst-btn:hover,
.dst-nav-prev:hover,
.dst-nav-next:hover,
.dst-nav-today:hover,
.dst-view-btn:hover,
.dst-period-btn:hover,
.dst-map-toggle:hover,
.dst-cat-toggle:hover {
	background: var(--dst-btn-s-bg-hover, #f0f4f8);
	border-color: var(--dst-btn-s-border-hover, #1f4e79);
	color: var(--dst-btn-s-text-hover, #1f4e79);
}

.dst-view-btn.is-active,
.dst-period-btn.is-active,
.dst-map-toggle.is-active {
	background: var(--dst-btn-s-bg-active, #1f4e79);
	border-color: var(--dst-btn-s-border-active, #1f4e79);
	color: var(--dst-btn-s-text-active, #fff);
}

.dst-btn-primary {
	background: var(--dst-btn-p-bg, #1f4e79);
	border-color: var(--dst-btn-p-border, #1f4e79);
	color: var(--dst-btn-p-text, #fff);
}

.dst-btn-primary:hover {
	background: var(--dst-btn-p-bg-hover, #17395a);
	border-color: var(--dst-btn-p-border-hover, #17395a);
	color: var(--dst-btn-p-text-hover, #fff);
}

.dst-btn-primary:active {
	background: var(--dst-btn-p-bg-active, #102943);
	border-color: var(--dst-btn-p-border-active, #102943);
}

.dst-btn-ghost {
	background: transparent;
	border-color: transparent;
	color: var(--dst-text-muted, #6b7280);
}

.dst-btn-ghost:hover {
	background: var(--dst-surface-soft, #f7f8fa);
	border-color: transparent;
	color: var(--dst-accent, #1f4e79);
}

/* ------------------------------------------------------------------
 * Toolbar
 * --------------------------------------------------------------- */

.dst-cal-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: var(--dst-gap);
}

.dst-cal-nav,
.dst-cal-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.dst-cal-title {
	margin-left: 6px;
	font-size: 18px;
	font-weight: 600;
	color: var(--dst-heading, #0b1727);
}

.dst-period-pills,
.dst-view-switcher {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 3px;
	background: var(--dst-surface-soft, #f7f8fa);
	border: 1px solid var(--dst-border, #e3e6ea);
	border-radius: 10px;
}

.dst-period-pills .dst-period-btn,
.dst-view-switcher .dst-view-btn {
	border: 1px solid transparent;
	background: transparent;
	padding: 6px 12px;
}

.dst-period-pills .dst-period-btn:hover,
.dst-view-switcher .dst-view-btn:hover {
	background: var(--dst-btn-s-bg, #fff);
}

/* Category dropdown */

.dst-cat-dropdown {
	position: relative;
}

.dst-cat-count:not(:empty) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 9px;
	background: var(--dst-accent, #1f4e79);
	color: var(--dst-accent-contrast, #fff);
}

.dst-cat-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	min-width: 210px;
	max-height: 280px;
	overflow-y: auto;
	padding: 8px;
	background: var(--dst-surface, #fff);
	border: 1px solid var(--dst-border, #e3e6ea);
	border-radius: 10px;
	box-shadow: 0 12px 32px var(--dst-card-shadow, rgba(11, 23, 39, 0.12));
}

.dst-cat-opt {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}

.dst-cat-opt:hover {
	background: var(--dst-surface-soft, #f7f8fa);
}

.dst-cat-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.dst-cat-clear {
	width: 100%;
	margin-top: 6px;
	padding: 7px;
	font: inherit;
	font-size: 13px;
	color: var(--dst-text-muted, #6b7280);
	background: none;
	border: 0;
	border-top: 1px solid var(--dst-border, #e3e6ea);
	cursor: pointer;
}

.dst-cat-clear:hover {
	color: var(--dst-accent, #1f4e79);
}

/* ------------------------------------------------------------------
 * Cards
 * --------------------------------------------------------------- */

.dst-cards {
	display: grid;
	grid-template-columns: repeat(var(--dst-cols, 3), minmax(0, 1fr));
	gap: 22px;
}

.dst-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	cursor: pointer;
	background: var(--dst-card-bg, #fff);
	border: 1px solid var(--dst-card-border, #e3e6ea);
	border-radius: var(--dst-card-radius, 14px);
	transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1),
		box-shadow 0.22s ease,
		border-color 0.22s ease,
		background 0.22s ease;
}

.dst-card:hover,
.dst-card:focus-visible {
	transform: translateY(-4px);
	background: var(--dst-card-bg-hover, #fff);
	border-color: var(--dst-card-border-hover, #1f4e79);
	box-shadow: 0 16px 34px var(--dst-card-shadow, rgba(11, 23, 39, 0.08));
	outline: none;
}

.dst-card:focus-visible {
	outline: 2px solid var(--dst-accent, #1f4e79);
	outline-offset: 2px;
}

/* Media */

.dst-card-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--dst-surface-soft, #f7f8fa);
}

.dst-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.dst-card:hover .dst-card-media img {
	transform: scale(1.06);
}

.dst-card-media-fallback {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg,
			var(--dst-event-color, #1f4e79) 0%,
			transparent 140%),
		var(--dst-surface-soft, #f7f8fa);
	opacity: 0.9;
}

/* Stylised date badge */

.dst-card-date {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 52px;
	padding: 8px 6px 6px;
	border-radius: 10px;
	background: var(--dst-card-date-bg, #1f4e79);
	color: var(--dst-card-date-text, #fff);
	box-shadow: 0 4px 12px rgba(11, 23, 39, 0.18);
}

.dst-card-day {
	font-size: 21px;
	font-weight: 700;
	line-height: 1;
}

.dst-card-mon {
	margin-top: 2px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	opacity: 0.92;
}

/* Body */

.dst-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 9px;
	padding: 16px 16px 14px;
}

.dst-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.dst-card-cat {
	display: inline-block;
	padding: 3px 9px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 999px;
	color: var(--dst-cat-color, #1f4e79);
	background: color-mix(in srgb, var(--dst-cat-color, #1f4e79) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--dst-cat-color, #1f4e79) 28%, transparent);
}

.dst-card-title {
	margin: 0;
	font-size: 17px;
	font-weight: 650;
	line-height: 1.32;
	color: var(--dst-card-title, #0b1727);
	transition: color 0.18s ease;
}

.dst-card:hover .dst-card-title {
	color: var(--dst-card-title-hover, #1f4e79);
}

.dst-card-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--dst-card-text, #6b7280);
}

.dst-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
	padding-top: 4px;
	font-size: 13px;
	color: var(--dst-text-muted, #6b7280);
}

.dst-card-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}

.dst-card-meta svg {
	flex: 0 0 auto;
	color: var(--dst-event-color, #1f4e79);
}

.dst-card-cost {
	font-weight: 650;
	color: var(--dst-event-color, #1f4e79);
}

.dst-card-cost.is-free {
	padding: 1px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 999px;
	color: #047857;
	background: color-mix(in srgb, #047857 12%, transparent);
	border: 1px solid color-mix(in srgb, #047857 26%, transparent);
}

.dst-card-repeat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--dst-text-muted, #6b7280);
}

.dst-card-repeat svg {
	color: var(--dst-event-color, #1f4e79);
}

.dst-cards-overlay .dst-card-cost {
	color: #fff;
}

.dst-cards-overlay .dst-card-repeat,
.dst-cards-overlay .dst-card-repeat svg {
	color: rgba(255, 255, 255, 0.82);
}

/* Actions */

.dst-card-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--dst-border, #e3e6ea);
}

.dst-card-save {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 7px;
	color: var(--dst-text-muted, #6b7280);
	border: 1px solid transparent;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dst-card-save:hover {
	color: var(--dst-accent, #1f4e79);
	background: var(--dst-surface-soft, #f7f8fa);
	border-color: var(--dst-border, #e3e6ea);
}

.dst-card-more {
	padding: 6px 12px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 7px;
	background: transparent;
	border: 1px solid var(--dst-border, #e3e6ea);
	color: var(--dst-event-color, #1f4e79);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dst-card:hover .dst-card-more {
	background: var(--dst-event-color, #1f4e79);
	border-color: var(--dst-event-color, #1f4e79);
	color: #fff;
}

/* --- Style: overlay --- */

.dst-cards-overlay .dst-card-media {
	aspect-ratio: 3 / 4;
}

.dst-cards-overlay .dst-card {
	justify-content: flex-end;
}

.dst-cards-overlay .dst-card-media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.dst-cards-overlay .dst-card {
	min-height: 380px;
}

.dst-cards-overlay .dst-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(8, 14, 24, 0.92) 0%,
		rgba(8, 14, 24, 0.62) 38%,
		rgba(8, 14, 24, 0.06) 72%
	);
	transition: opacity 0.3s ease;
}

.dst-cards-overlay .dst-card:hover .dst-card-media::after {
	opacity: 0.88;
}

.dst-cards-overlay .dst-card-body {
	position: relative;
	z-index: 2;
	padding: 18px;
	/* The media is out of flow here, so the date badge floats over the card while
	   the body is anchored to the bottom. Without a reserved band at the top, a
	   long title or description grows the body upward and runs into the badge.
	   This margin keeps a gap the body can never cross; the card grows instead. */
	margin-top: 78px;
}

/* The gradient is the last child of the media, so it would otherwise paint over
   the badge. Lift the badge above it. */
.dst-cards-overlay .dst-card-date {
	z-index: 3;
}

.dst-cards-overlay .dst-card-title,
.dst-cards-overlay .dst-card:hover .dst-card-title {
	color: #fff;
}

.dst-cards-overlay .dst-card-desc,
.dst-cards-overlay .dst-card-meta {
	color: rgba(255, 255, 255, 0.82);
}

.dst-cards-overlay .dst-card-meta svg {
	color: rgba(255, 255, 255, 0.82);
}

.dst-cards-overlay .dst-card-cat {
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.28);
}

.dst-cards-overlay .dst-card-actions {
	border-top-color: rgba(255, 255, 255, 0.18);
}

.dst-cards-overlay .dst-card-save {
	color: rgba(255, 255, 255, 0.88);
}

.dst-cards-overlay .dst-card-save:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.24);
}

.dst-cards-overlay .dst-card-more {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.34);
}

/* --- Style: horizontal --- */

.dst-cards-horizontal {
	grid-template-columns: repeat(var(--dst-cols-h, 1), minmax(0, 1fr));
}

.dst-cards-horizontal .dst-card {
	flex-direction: row;
}

.dst-cards-horizontal .dst-card-media {
	flex: 0 0 34%;
	max-width: 260px;
	aspect-ratio: auto;
}

.dst-cards-horizontal .dst-card-body {
	flex: 1;
}

/* --- Style: minimal --- */

.dst-cards-minimal .dst-card-body {
	flex-direction: row;
	gap: 16px;
	padding: 18px;
}

.dst-card-datestack {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 72px;
	padding: 12px 6px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--dst-event-color, #1f4e79) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--dst-event-color, #1f4e79) 22%, transparent);
	color: var(--dst-event-color, #1f4e79);
}

.dst-card-datestack .dst-card-dow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.75;
}

.dst-card-datestack .dst-card-day {
	font-size: 28px;
	font-weight: 750;
	line-height: 1.05;
}

.dst-card-datestack .dst-card-mon {
	opacity: 0.85;
}

.dst-card-maintext {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

/* Cards map */

.dst-cards-map-wrap {
	margin-bottom: 22px;
}

.dst-cards-map {
	height: 340px;
	border-radius: var(--dst-card-radius, 14px);
	border: 1px solid var(--dst-border, #e3e6ea);
}

/* ------------------------------------------------------------------
 * Lightbox
 * --------------------------------------------------------------- */

body.dst-lb-lock {
	overflow: hidden;
}

.dst-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.dst-lightbox.is-open {
	display: flex;
}

.dst-lb-overlay {
	position: absolute;
	inset: 0;
	background: var(--dst-lb-overlay, rgba(11, 23, 39, 0.8));
	animation: dst-fade 0.2s ease;
}

.dst-lb-panel {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 720px;
	max-height: 88vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: var(--dst-lb-bg, #fff);
	color: var(--dst-lb-text, #1f2937);
	border: 1px solid var(--dst-lb-border, #e3e6ea);
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	animation: dst-rise 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes dst-fade {
	from {
		opacity: 0;
	}
}

@keyframes dst-rise {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
	}
}

.dst-lb-content {
	overflow-y: auto;
	overscroll-behavior: contain;
}

.dst-lb-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--dst-lb-border, #e3e6ea);
	color: #1f2937;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dst-lb-close:hover {
	background: var(--dst-accent, #1f4e79);
	color: #fff;
	transform: rotate(90deg);
}

.dst-lb-nav {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0 10px;
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
	background: var(--dst-lb-nav-bg, #fff);
	border: 1px solid var(--dst-lb-border, #e3e6ea);
	color: var(--dst-lb-nav-icon, #1f2937);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dst-lb-nav:hover {
	background: var(--dst-lb-nav-bg-hover, #1f4e79);
	color: var(--dst-lb-nav-icon-hover, #fff);
	transform: scale(1.07);
}

.dst-lb-counter {
	flex: 0 0 auto;
	padding: 9px 16px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: center;
	color: var(--dst-text-muted, #6b7280);
	background: var(--dst-surface-soft, #f7f8fa);
	border-top: 1px solid var(--dst-lb-border, #e3e6ea);
}

.dst-lb-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
}

.dst-spinner {
	width: 26px;
	height: 26px;
	border: 2.5px solid var(--dst-border, #e3e6ea);
	border-top-color: var(--dst-accent, #1f4e79);
	border-radius: 50%;
	animation: dst-spin 0.7s linear infinite;
}

@keyframes dst-spin {
	to {
		transform: rotate(360deg);
	}
}

.dst-lb-error {
	padding: 48px 24px;
	text-align: center;
	color: var(--dst-text-muted, #6b7280);
}

/* Lightbox body */

.dst-lb-hero {
	aspect-ratio: 16 / 8;
	overflow: hidden;
	background: var(--dst-surface-soft, #f7f8fa);
}

.dst-lb-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dst-lb-main {
	padding: 22px 24px 26px;
}

.dst-lb-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 10px;
}

.dst-lb-title {
	margin: 0 0 16px;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--dst-heading, #0b1727);
}

.dst-lb-facts {
	margin: 0 0 18px;
	padding: 14px 16px;
	list-style: none;
	background: var(--dst-surface-soft, #f7f8fa);
	border-left: 3px solid var(--dst-event-color, #1f4e79);
	border-radius: 8px;
}

.dst-lb-facts li {
	display: flex;
	gap: 12px;
	padding: 5px 0;
	font-size: 14px;
}

.dst-lb-fact-label {
	flex: 0 0 84px;
	font-weight: 600;
	color: var(--dst-text-muted, #6b7280);
}

.dst-lb-fact-value {
	flex: 1;
	color: var(--dst-text, #111827);
}

.dst-lb-desc {
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.65;
}

.dst-lb-desc > *:first-child {
	margin-top: 0;
}

.dst-lb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.dst-lb-map {
	height: 240px;
	border-radius: 10px;
	border: 1px solid var(--dst-border, #e3e6ea);
}

/* ------------------------------------------------------------------
 * Map and popups
 * --------------------------------------------------------------- */

.dst-map {
	width: 100%;
	height: 480px;
	border-radius: 12px;
	border: 1px solid var(--dst-border, #e3e6ea);
	z-index: 1;
}

.dst-map-hint {
	margin-top: 10px;
	font-size: 13px;
	text-align: center;
	color: var(--dst-text-muted, #6b7280);
}

.dst-pop-wrap .leaflet-popup-content-wrapper {
	padding: 0;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(11, 23, 39, 0.22);
}

.dst-pop-wrap .leaflet-popup-content {
	margin: 0;
	width: 240px !important;
}

.dst-pop-wrap-multi .leaflet-popup-content {
	width: 280px !important;
}

.dst-pop-img {
	display: block;
	width: 100%;
	height: 96px;
	object-fit: cover;
}

/* The accent border lives on the event block, so it reads correctly whether the
   popup holds one event or a list of them. */
.dst-pop-ev {
	border-top: 3px solid var(--dst-event-color, #1f4e79);
}

.dst-pop-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 11px 13px 12px;
}

.dst-pop-title {
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
	color: var(--dst-heading, #0b1727);
}

.dst-pop-when,
.dst-pop-where {
	font-size: 12px;
	color: var(--dst-text-muted, #6b7280);
}

.dst-pop-link {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	color: var(--dst-event-color, #1f4e79);
}

.dst-pop-link:hover {
	text-decoration: underline;
}

/* Numbered marker for a location with several events */

.dst-map-cluster {
	background: none;
	border: 0;
}

.dst-map-count {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(11, 23, 39, 0.35);
	cursor: pointer;
}

/* Multi-event popup: a header, then a scrolling list */

.dst-pop-multi {
	display: flex;
	flex-direction: column;
	max-height: 340px;
}

.dst-pop-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 13px;
	border-top: 3px solid var(--dst-event-color, #1f4e79);
	background: var(--dst-surface-soft, #f7f8fa);
	border-bottom: 1px solid var(--dst-border, #e3e6ea);
}

.dst-pop-head strong {
	font-size: 13px;
	font-weight: 650;
	line-height: 1.25;
	color: var(--dst-heading, #0b1727);
}

.dst-pop-badge {
	flex: none;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	color: #fff;
	background: var(--dst-event-color, #1f4e79);
	border-radius: 999px;
}

/* The list scrolls when the events do not fit, so the popup never runs off the
   map. The event blocks inside drop their own top border, since the rows are
   separated by a divider instead. */
.dst-pop-list {
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.dst-pop-list .dst-pop-ev {
	border-top: 0;
	border-bottom: 1px solid var(--dst-border, #eef0f2);
}

.dst-pop-list .dst-pop-ev:last-child {
	border-bottom: 0;
}

.dst-pop-list .dst-pop-body {
	gap: 2px;
	padding: 10px 13px;
}

.dst-pop-list .dst-pop-title {
	font-size: 13px;
}

.dst-pop-list .dst-pop-when {
	font-size: 11px;
}

.dst-pop-list .dst-pop-link {
	margin-top: 4px;
	font-size: 11px;
}

/* A thin, unobtrusive scrollbar for the list */
.dst-pop-list::-webkit-scrollbar {
	width: 8px;
}

.dst-pop-list::-webkit-scrollbar-thumb {
	background: var(--dst-border-strong, #cbd2d9);
	border-radius: 4px;
}

/* ------------------------------------------------------------------
 * Calendar grid
 * --------------------------------------------------------------- */

.dst-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border: 1px solid var(--dst-cal-cell-border, #e3e6ea);
	border-radius: 12px;
	overflow: hidden;
}

.dst-grid-head {
	padding: 10px 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	background: var(--dst-cal-head-bg, #f7f8fa);
	color: var(--dst-cal-head-text, #6b7280);
	border-bottom: 1px solid var(--dst-cal-cell-border, #e3e6ea);
}

.dst-cell {
	position: relative;
	min-height: 118px;
	padding: 8px;
	background: var(--dst-cal-cell-bg, #fff);
	border-right: 1px solid var(--dst-cal-cell-border, #e3e6ea);
	border-bottom: 1px solid var(--dst-cal-cell-border, #e3e6ea);
	transition: background 0.15s ease;
}

.dst-cell:hover {
	background: var(--dst-cal-cell-hover, #f0f4f8);
}

.dst-cell.is-other {
	background: var(--dst-cal-other-bg, #fbfcfd);
	opacity: 0.72;
}

.dst-cell.is-today {
	background: var(--dst-cal-today-bg, #eaf1f8);
}

.dst-cell-date {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 50%;
	color: var(--dst-text, #111827);
}

.dst-cell.is-today .dst-cell-date {
	background: var(--dst-cal-today-badge, #1f4e79);
	color: var(--dst-cal-today-text, #fff);
}

.dst-pill {
	display: block;
	margin-bottom: 3px;
	padding: 3px 7px;
	font-size: 12px;
	line-height: 1.35;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-radius: 5px;
	border-left: 3px solid var(--dst-event-color, #1f4e79);
	background: color-mix(in srgb, var(--dst-event-color, #1f4e79) 11%, transparent);
	color: var(--dst-text, #111827);
	transition: background 0.15s ease;
}

.dst-pill:hover {
	background: color-mix(in srgb, var(--dst-event-color, #1f4e79) 22%, transparent);
}

.dst-more {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	font-weight: 600;
	color: var(--dst-text-muted, #6b7280);
}

/* Agenda rows (week, day, list) */

.dst-agenda-day {
	margin-bottom: 22px;
}

.dst-agenda-date {
	margin: 0 0 10px;
	padding-bottom: 7px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--dst-heading, #0b1727);
	border-bottom: 2px solid var(--dst-border, #e3e6ea);
}

.dst-agenda-row {
	display: flex;
	gap: 14px;
	padding: 13px;
	margin-bottom: 7px;
	text-decoration: none;
	border: 1px solid var(--dst-border, #e3e6ea);
	border-left: 4px solid var(--dst-event-color, #1f4e79);
	border-radius: 9px;
	background: var(--dst-surface, #fff);
	color: inherit;
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dst-agenda-row:hover {
	transform: translateX(3px);
	border-color: var(--dst-card-border-hover, #1f4e79);
	border-left-color: var(--dst-event-color, #1f4e79);
	box-shadow: 0 6px 18px var(--dst-card-shadow, rgba(11, 23, 39, 0.07));
}

.dst-agenda-time {
	flex: 0 0 96px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dst-text-muted, #6b7280);
}

.dst-agenda-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--dst-heading, #0b1727);
}

.dst-agenda-venue {
	margin-top: 2px;
	font-size: 13px;
	color: var(--dst-text-muted, #6b7280);
}

/* ------------------------------------------------------------------
 * Single event and RSVP
 * --------------------------------------------------------------- */

.dst-single-wrap {
	color: var(--dst-text, #111827);
}

.dst-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin: 24px 0;
	padding: 18px;
	background: var(--dst-surface-soft, #f7f8fa);
	border-left: 3px solid var(--dst-accent, #1f4e79);
	border-radius: 10px;
}

.dst-detail-label {
	display: block;
	margin-bottom: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dst-text-muted, #6b7280);
}

.dst-detail-value {
	font-size: 15px;
}

.dst-rsvp {
	margin: 28px 0;
	padding: 22px;
	background: var(--dst-surface, #fff);
	border: 1px solid var(--dst-border, #e3e6ea);
	border-radius: 12px;
	font-size: var(--dst-form-font, 15px);
}

.dst-rsvp h3 {
	margin: 0 0 4px;
	font-size: 19px;
}

.dst-rsvp-status {
	margin-bottom: 14px;
	font-size: 14px;
	color: var(--dst-text-muted, #6b7280);
}

.dst-rsvp-passed {
	margin: 0;
	padding: 16px 18px;
	font-size: 15px;
	color: var(--dst-text-muted, #6b7280);
	background: var(--dst-surface-soft, #f7f8fa);
	border-left: 3px solid var(--dst-border-strong, #cbd2d9);
	border-radius: 8px;
}

/* Ticket type selector: a radio list styled as selectable rows, each naming its
   own price so a visitor sees what a ticket costs before choosing. */

.dst-rsvp-tickets {
	border: 0;
	padding: 0;
	margin: 0 0 var(--dst-form-gap, 14px);
	min-width: 0;
}

.dst-rsvp-tickets-label {
	display: block;
	padding: 0;
	margin-bottom: 8px;
	font-size: 0.86em;
	font-weight: 600;
	color: var(--dst-form-in-label, #1f2937);
}

.dst-ticket-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 8px;
	border: var(--dst-form-in-border-w, 1px) solid var(--dst-form-in-border, #cbd2d9);
	border-radius: var(--dst-form-in-radius, 8px);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.dst-ticket-opt:hover {
	border-color: var(--dst-form-in-border-focus, #1f4e79);
}

.dst-ticket-opt input {
	flex: 0 0 auto;
	margin: 0;
}

.dst-ticket-opt:has(input:checked) {
	border-color: var(--dst-form-in-border-focus, #1f4e79);
	background: color-mix(in srgb, var(--dst-form-in-border-focus, #1f4e79) 7%, transparent);
}

.dst-ticket-name {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	color: var(--dst-form-in-text, #111827);
}

.dst-ticket-price {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--dst-form-in-text, #111827);
}

.dst-ticket-note {
	flex: 0 0 auto;
	font-size: 0.82em;
	color: var(--dst-text-muted, #6b7280);
}

.dst-ticket-opt.is-sold-out {
	opacity: 0.55;
	cursor: not-allowed;
}

.dst-ticket-opt.is-sold-out:hover {
	border-color: var(--dst-form-in-border, #cbd2d9);
}

/* Fields laid out by percentage width.
   Each field's flex-basis is its width minus the gap, so two fields totalling
   100% share one row, and a field set to 100% takes a row of its own. */

.dst-rsvp-fields {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dst-form-gap, 14px);
	margin-bottom: var(--dst-form-gap, 14px);
}

.dst-rsvp-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
	flex: 1 1 calc(var(--dst-field-w, 100%) - var(--dst-form-gap, 14px));
}

.dst-rsvp-field label {
	font-size: 0.86em;
	font-weight: 600;
	color: var(--dst-form-in-label, #1f2937);
}

.dst-rsvp-field input {
	width: 100%;
	font: inherit;
	font-size: var(--dst-form-font, 15px);
	padding: var(--dst-form-in-pad-y, 10px) var(--dst-form-in-pad-x, 12px);
	color: var(--dst-form-in-text, #111827);
	background: var(--dst-form-in-bg, #fff);
	border: var(--dst-form-in-border-w, 1px) solid var(--dst-form-in-border, #cbd2d9);
	border-radius: var(--dst-form-in-radius, 8px);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dst-rsvp-field input::placeholder {
	color: var(--dst-form-in-placeholder, #9aa3ad);
}

.dst-rsvp-field input:focus {
	outline: none;
	background: var(--dst-form-in-bg-focus, #fff);
	border-color: var(--dst-form-in-border-focus, #1f4e79);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dst-form-in-border-focus, #1f4e79) 18%, transparent);
}

/* Label inside the field: the placeholder carries it, and the label stays in
   the DOM for screen readers rather than being removed. */
.dst-rsvp-label-inside .dst-rsvp-field .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Button */

.dst-rsvp-actions {
	display: flex;
}

.dst-rsvp-align-left {
	justify-content: flex-start;
}

.dst-rsvp-align-center {
	justify-content: center;
}

.dst-rsvp-align-right {
	justify-content: flex-end;
}

.dst-rsvp-align-full .dst-rsvp-submit {
	width: 100%;
}

.dst-rsvp-submit {
	font: inherit;
	font-size: var(--dst-form-font, 15px);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	padding: var(--dst-form-btn-pad-y, 12px) var(--dst-form-btn-pad-x, 24px);
	color: var(--dst-form-btn-text, #fff);
	background: var(--dst-form-btn-bg, #1f4e79);
	border: var(--dst-form-btn-border-w, 1px) solid var(--dst-form-btn-border, #1f4e79);
	border-radius: var(--dst-form-btn-radius, 8px);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dst-rsvp-submit:hover {
	color: var(--dst-form-btn-text-hover, #fff);
	background: var(--dst-form-btn-bg-hover, #17395a);
	border-color: var(--dst-form-btn-border-hover, #17395a);
}

/* The pressed state deliberately returns to the idle colour, so clicking does
   not introduce a third colour the admin never chose. */
.dst-rsvp-submit:active {
	color: var(--dst-form-btn-text, #fff);
	background: var(--dst-form-btn-bg, #1f4e79);
	border-color: var(--dst-form-btn-border, #1f4e79);
}

.dst-rsvp-submit:disabled,
.dst-rsvp-submit.is-busy {
	opacity: 0.6;
	cursor: default;
}

.dst-rsvp-msg {
	margin-top: 12px;
	font-size: 0.93em;
	min-height: 1.2em;
}

.dst-rsvp-msg.is-ok {
	color: #047857;
	font-weight: 600;
}

.dst-rsvp-msg.is-error {
	color: #b91c1c;
	font-weight: 600;
}

.dst-widget-events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dst-widget-events li {
	padding: 9px 0;
	border-bottom: 1px solid var(--dst-border, #e3e6ea);
}

.dst-widget-events a {
	font-weight: 600;
	text-decoration: none;
	color: var(--dst-heading, #0b1727);
}

.dst-widget-events a:hover {
	color: var(--dst-accent, #1f4e79);
}

.dst-widget-date {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--dst-text-muted, #6b7280);
}

/* ------------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------- */

@media (max-width: 980px) {
	.dst-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dst-cards-horizontal {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.dst-cal-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.dst-cal-nav,
	.dst-cal-controls {
		justify-content: center;
	}

	.dst-period-pills,
	.dst-view-switcher {
		width: 100%;
		justify-content: center;
	}

	.dst-lb-nav {
		position: absolute;
		bottom: 16px;
		width: 42px;
		height: 42px;
		margin: 0;
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	}

	.dst-lb-prev {
		left: 16px;
	}

	.dst-lb-next {
		right: 16px;
	}

	.dst-lightbox {
		padding: 12px;
	}

	.dst-lb-panel {
		max-height: 92vh;
	}
}

@media (max-width: 640px) {
	.dst-cards {
		grid-template-columns: 1fr;
	}

	.dst-cards-horizontal .dst-card {
		flex-direction: column;
	}

	.dst-cards-horizontal .dst-card-media {
		flex: none;
		max-width: none;
		aspect-ratio: 16 / 9;
	}

	/* Percentage widths are a desktop concern. On a narrow screen every field
	   takes the full width regardless of what the admin set. */
	.dst-rsvp-field {
		flex: 1 1 100%;
	}

	.dst-cell {
		min-height: 76px;
		padding: 5px;
	}

	.dst-pill {
		font-size: 0;
		height: 6px;
		padding: 0;
		margin-bottom: 3px;
		border-radius: 3px;
		border-left: 0;
		background: var(--dst-event-color, #1f4e79);
	}

	.dst-agenda-row {
		flex-direction: column;
		gap: 4px;
	}

	.dst-agenda-time {
		flex: none;
	}

	.dst-lb-facts li {
		flex-direction: column;
		gap: 1px;
	}

	.dst-lb-fact-label {
		flex: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dst-card,
	.dst-card-media img,
	.dst-agenda-row,
	.dst-lb-panel,
	.dst-lb-overlay,
	.dst-lb-close,
	.dst-lb-nav {
		transition: none;
		animation: none;
	}

	.dst-card:hover {
		transform: none;
	}

	.dst-card:hover .dst-card-media img {
		transform: none;
	}
}

/* ------------------------------------------------------------------
 * Required-field asterisk
 * --------------------------------------------------------------- */

.dst-rsvp-field .dst-req {
	margin-left: 3px;
	font-weight: 700;
	color: #b91c1c;
}

/* ------------------------------------------------------------------
 * reCAPTCHA
 * --------------------------------------------------------------- */

.dst-rsvp-captcha {
	margin-bottom: var(--dst-form-gap, 14px);
}

/* The v2 widget is a fixed-width iframe. On a narrow screen it is scaled down
   rather than allowed to push the form sideways. */
@media (max-width: 400px) {
	.dst-rsvp-captcha .g-recaptcha {
		transform: scale(0.85);
		transform-origin: 0 0;
	}
}

/* ------------------------------------------------------------------
 * Past events
 * --------------------------------------------------------------- */

.dst-card-ago {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--dst-text-muted, #6b7280);
}

.dst-cards-overlay .dst-card-ago {
	color: rgba(255, 255, 255, 0.82);
}

.dst-lb-ago {
	font-weight: 600;
	color: var(--dst-text-muted, #6b7280);
}

.dst-single-ago {
	display: inline-block;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dst-text-muted, #6b7280);
	background: var(--dst-surface-soft, #f7f8fa);
	border: 1px solid var(--dst-border, #e3e6ea);
	border-radius: 8px;
}

/* ==================================================================
 * Control states: hover, focus and pressed
 *
 * Every interactive control here is a <button> or an <a>, which means a
 * theme's own button styling applies to it unless we say otherwise. Earlier
 * versions only styled :hover, leaving :focus, :focus-visible and :active
 * to whatever the theme happened to use. On a theme whose button colour is,
 * say, a magenta, that colour appeared on click and then stayed put, because
 * focus persists after the mouse is released. The plugin's own palette had no
 * say in it.
 *
 * So every state is now declared, and every declaration names its background,
 * border and text rather than setting one and leaving the others to be
 * inherited from somewhere unknown. This block sits last on purpose: it has the
 * same specificity as the rules above and therefore wins on source order.
 * ================================================================== */

.dst-calendar button,
.dst-calendar .dst-btn,
.dst-lightbox button,
.dst-lightbox .dst-btn,
.dst-single-wrap .dst-btn,
.dst-rsvp button {
	-webkit-appearance: none;
	appearance: none;
	/* Suppresses the grey flash Android paints over a tapped control. */
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
}

/* A focus ring the plugin controls, rather than the theme's. Using
   :focus-visible means it appears for keyboard users and not on mouse click,
   which is where the lingering colour came from. */
.dst-calendar button:focus-visible,
.dst-calendar a:focus-visible,
.dst-lightbox button:focus-visible,
.dst-lightbox a:focus-visible,
.dst-rsvp button:focus-visible,
.dst-rsvp input:focus-visible {
	outline: 2px solid var(--dst-focus-ring, #1f4e79);
	outline-offset: 2px;
}

/* Category dropdown button */

.dst-cat-toggle {
	color: var(--dst-filter-text, #374151);
	background: var(--dst-filter-bg, #fff);
	border: 1px solid var(--dst-filter-border, #cbd2d9);
}

.dst-cat-toggle:hover {
	color: var(--dst-filter-text-hover, #1f4e79);
	background: var(--dst-filter-bg-hover, #f0f4f8);
	border-color: var(--dst-filter-border-hover, #1f4e79);
}

.dst-cat-toggle:focus {
	color: var(--dst-filter-text-hover, #1f4e79);
	background: var(--dst-filter-bg-hover, #f0f4f8);
	border-color: var(--dst-filter-border-hover, #1f4e79);
	outline: none;
}

.dst-cat-toggle:active,
.dst-cat-toggle[aria-expanded="true"] {
	color: var(--dst-filter-text-active, #1f4e79);
	background: var(--dst-filter-bg-active, #f0f4f8);
	border-color: var(--dst-filter-border-active, #1f4e79);
}

/* Clear all.
   Its hover rule used to set the text colour and nothing else, so the theme
   supplied the background. It now states all three. */

.dst-cat-clear {
	color: var(--dst-filter-clear-text, #6b7280);
	background: none;
	border: 0;
}

.dst-cat-clear:hover,
.dst-cat-clear:focus {
	color: var(--dst-filter-clear-text-hover, #1f4e79);
	background: var(--dst-filter-clear-bg-hover, #f0f4f8);
	outline: none;
}

.dst-cat-clear:active {
	color: var(--dst-filter-clear-text-hover, #1f4e79);
	background: var(--dst-filter-clear-bg-hover, #f0f4f8);
}

/* Secondary controls: view switcher, period pills, map toggle, month nav,
   the Details button on a card, and generic buttons. All were missing their
   focus and pressed states. */

.dst-view-btn:focus,
.dst-period-btn:focus,
.dst-map-toggle:focus,
.dst-nav-btn:focus,
.dst-card-more:focus,
.dst-btn:focus,
.dst-view-btn:hover,
.dst-period-btn:hover,
.dst-map-toggle:hover,
.dst-nav-btn:hover,
.dst-card-more:hover,
.dst-btn:hover {
	color: var(--dst-btn-s-text-hover, #1f4e79);
	background: var(--dst-btn-s-bg-hover, #f0f4f8);
	border-color: var(--dst-btn-s-border-hover, #1f4e79);
	outline: none;
}

.dst-view-btn:active,
.dst-period-btn:active,
.dst-map-toggle:active,
.dst-nav-btn:active,
.dst-card-more:active,
.dst-btn:active {
	color: var(--dst-btn-s-text-active, #1f4e79);
	background: var(--dst-btn-s-bg-active, #e3ebf3);
	border-color: var(--dst-btn-s-border-active, #1f4e79);
}

/* The primary button keeps its own palette in every state. */

.dst-btn-primary:hover,
.dst-btn-primary:focus {
	color: var(--dst-btn-p-text-hover, #fff);
	background: var(--dst-btn-p-bg-hover, #17395a);
	border-color: var(--dst-btn-p-border-hover, #17395a);
	outline: none;
}

.dst-btn-primary:active {
	color: var(--dst-btn-p-text-hover, #fff);
	background: var(--dst-btn-p-bg-active, #122d47);
	border-color: var(--dst-btn-p-border-active, #122d47);
}

/* An active view or period pill stays on the accent whatever the pointer does,
   so hovering the tab you are already on does not repaint it. */

.dst-view-btn.is-active,
.dst-view-btn.is-active:hover,
.dst-view-btn.is-active:focus,
.dst-view-btn.is-active:active,
.dst-period-btn.is-active,
.dst-period-btn.is-active:hover,
.dst-period-btn.is-active:focus,
.dst-period-btn.is-active:active,
.dst-map-toggle.is-active,
.dst-map-toggle.is-active:hover,
.dst-map-toggle.is-active:focus,
.dst-map-toggle.is-active:active {
	color: var(--dst-accent-contrast, #fff);
	background: var(--dst-accent, #1f4e79);
	border-color: var(--dst-accent, #1f4e79);
}

/* Lightbox controls */

.dst-lb-nav:hover,
.dst-lb-nav:focus,
.dst-lb-close:hover,
.dst-lb-close:focus {
	color: var(--dst-lb-nav-icon-hover, #111827);
	background: var(--dst-lb-nav-bg-hover, #e5e7eb);
	outline: none;
}

.dst-lb-nav:active,
.dst-lb-close:active {
	color: var(--dst-lb-nav-icon-hover, #111827);
	background: var(--dst-lb-nav-bg-hover, #e5e7eb);
}

/* The card's save link and the registration button: pressed returns to the idle
   colour, so a click never introduces a shade nobody chose. */

.dst-card-save:hover,
.dst-card-save:focus,
.dst-card-save:active {
	color: var(--dst-event-color, #1f4e79);
	background: none;
	outline: none;
}

.dst-rsvp-submit:focus {
	color: var(--dst-form-btn-text-hover, #fff);
	background: var(--dst-form-btn-bg-hover, #17395a);
	border-color: var(--dst-form-btn-border-hover, #17395a);
	outline: none;
}

/* ------------------------------------------------------------------
 * Events page header (optional title + description)
 * --------------------------------------------------------------- */

.dst-events-header {
	margin: 0 0 20px;
}

.dst-events-title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--dst-heading, #0b1727);
}

.dst-events-desc {
	max-width: 720px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--dst-text-muted, #52606d);
}

.dst-events-desc p {
	margin: 0 0 8px;
}

.dst-events-desc p:last-child {
	margin-bottom: 0;
}

/* Pro upsell notice (admin) */
.dst-evt-upsell {
	margin: 0 0 14px;
	padding: 12px 14px;
	font-size: 13px;
	background: #fff8f0;
	border: 1px solid #f3d7b5;
	border-left: 4px solid var(--dst-accent, #f68633);
	border-radius: 5px;
}

.dst-evt-upsell-badge {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--dst-accent, #f68633);
	border-radius: 999px;
}

.dst-evt-upsell a {
	font-weight: 600;
	color: var(--dst-accent, #c25e14);
}
