/**
 * Scoutadelic Events — Theme-inheriting styles tailored for the Scoutadelic Theme.
 * Covers List cards, Independent Disclaimer, Monthly Calendar, Free OpenStreetMap view,
 * and the "Suggest an event or correction" form.
 */

.se-events-wrapper,
.se-suggest-form-wrapper {
	--se-card-bg: var(--wp--preset--color--base, #ffffff);
	--se-card-border: color-mix(in srgb, currentColor 11%, transparent);
	--se-card-shadow: 0 3px 0 color-mix(in srgb, currentColor 7%, transparent), 0 8px 24px color-mix(in srgb, currentColor 5%, transparent);
	--se-radius: 18px;
	--se-accent: var(--wp--preset--color--primary, #e44d2e);
	--se-button-bg: var(--wp--preset--color--secondary, #102347);
	--se-button-text: #ffffff;
	--se-input-bg: transparent;

	font-family: inherit;
	color: inherit;
	width: 100%;
	box-sizing: border-box;
}

.se-events-wrapper *,
.se-events-wrapper *::before,
.se-events-wrapper *::after,
.se-suggest-form-wrapper *,
.se-suggest-form-wrapper *::before,
.se-suggest-form-wrapper *::after {
	box-sizing: border-box;
}

.se-events-wrapper [hidden],
.se-suggest-form-wrapper [hidden] {
	display: none !important;
}

/* Heading & Unofficial Independent Disclaimer */
.se-calendar-header {
	margin-bottom: 1rem;
}

.se-calendar-heading {
	margin: 0;
	font-family: inherit;
	color: inherit;
	line-height: 1.2;
}

.se-disclaimer {
	background: var(--se-card-bg);
	border: 1px solid rgba(16, 35, 71, 0.12);
	border-color: var(--se-card-border);
	border-radius: 14px;
	padding: 1.15rem 1.35rem;
	margin: 0 0 1.75rem;
}

.se-disclaimer-title {
	margin: 0 0 0.35rem;
	font-size: 0.95em;
	font-weight: 700;
}

.se-disclaimer-body {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.55;
	opacity: 0.84;
}

/* View Switcher Toolbar */
.se-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	margin-bottom: 1.5rem;
}

.se-view-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem;
	border: 1px solid rgba(16, 35, 71, 0.12);
	border-color: var(--se-card-border);
	border-radius: 9999px;
	background: var(--se-card-bg);
}

.se-view-tab {
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.88em;
	font-weight: 600;
	padding: 0.45em 1.05em;
	border-radius: 9999px;
	cursor: pointer;
	opacity: 0.78;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.se-view-tab:hover {
	opacity: 1;
}

.se-events-wrapper .se-view-tab.is-active {
	background: var(--se-button-bg, #102347) !important;
	color: #ffffff !important;
	opacity: 1;
}

.se-events-wrapper a.se-jump-suggest,
.se-events-wrapper a.se-jump-suggest:link,
.se-events-wrapper a.se-jump-suggest:visited {
	font-size: 0.88em;
	font-weight: 600;
	color: var(--se-accent, #e44d2e) !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.se-events-wrapper a.se-jump-suggest:hover,
.se-events-wrapper a.se-jump-suggest:focus {
	color: var(--se-button-bg, #102347) !important;
}

/* Upcoming Events List */
.se-events-list {
	display: grid;
	gap: 1.25rem;
	margin: 0 0 2.5rem;
}

.se-event-item {
	position: relative;
	background: var(--se-card-bg);
	border: 1px solid rgba(16, 35, 71, 0.1);
	border-color: var(--se-card-border);
	border-radius: var(--se-radius);
	box-shadow: var(--se-card-shadow);
	padding: 1.5rem 1.75rem;
}

.se-closed-ribbon-wrap {
	position: absolute;
	top: -1px;
	right: -1px;
	width: 94px;
	height: 94px;
	overflow: hidden;
	pointer-events: none;
	border-top-right-radius: var(--se-radius);
	z-index: 2;
}

.se-closed-ribbon {
	position: absolute;
	top: 19px;
	right: -28px;
	width: 120px;
	padding: 4px 0;
	background: #b91c1c;
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	transform: rotate(45deg);
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
	line-height: 1.25;
}

.se-event-item.is-closed .se-event-header {
	padding-right: 4.75rem;
}

.se-event-header {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.se-event-topline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
	font-size: 0.88em;
	line-height: 1.4;
}

.se-event-date {
	font-weight: 700;
	color: var(--se-accent);
	font-variant-numeric: tabular-nums;
}

.se-sep {
	opacity: 0.45;
}

.se-event-location {
	font-weight: 600;
	opacity: 0.9;
}

.se-event-title {
	margin: 0;
	font-family: inherit;
	color: inherit;
	font-weight: 700;
	line-height: 1.25;
}

.se-event-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.95rem 1.35rem;
	margin: 0 0 1.1rem;
	padding: 1rem 0 0;
	border-top: 1px solid rgba(16, 35, 71, 0.08);
	border-top-color: color-mix(in srgb, currentColor 9%, transparent);
}

.se-event-meta-row {
	margin: 0;
}

.se-event-meta-row dt {
	font-size: 0.78em;
	font-weight: 700;
	opacity: 0.65;
	margin: 0 0 0.2rem;
}

.se-event-meta-row dd {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.45;
}

.se-meta-sub {
	display: block;
	font-size: 0.88em;
	opacity: 0.76;
	margin-top: 0.18rem;
}

.se-intl-flag {
	font-weight: 600;
	opacity: 0.92;
}

.se-intl-flag.is-restrictions {
	color: #9a5b13;
	opacity: 1;
}

.se-intl-flag.is-no {
	opacity: 0.68;
}

/* Expandable Cost & Full Listing Details */
.se-event-details {
	margin: 0 0 1.15rem;
	padding-top: 0.8rem;
	border-top: 1px solid rgba(16, 35, 71, 0.08);
	border-top-color: color-mix(in srgb, currentColor 9%, transparent);
}

.se-details-summary {
	cursor: pointer;
	font-size: 0.9em;
	font-weight: 600;
	list-style-position: outside;
	margin-left: 1rem;
}

.se-details-body {
	padding-top: 0.7rem;
	font-size: 0.92em;
	line-height: 1.55;
	opacity: 0.88;
}

.se-fee-line {
	margin: 0 0 0.35rem;
}

.se-fee-disclaimer {
	margin: 0 0 0.65rem;
	font-size: 0.85em;
	font-style: italic;
	opacity: 0.78;
}

.se-event-notes p:last-child {
	margin-bottom: 0;
}

/* Event Footer: CTA + Last Checked */
.se-event-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(16, 35, 71, 0.08);
	border-top-color: color-mix(in srgb, currentColor 9%, transparent);
}

.se-last-checked {
	margin: 0;
	font-size: 0.8em;
	opacity: 0.72;
	font-variant-numeric: tabular-nums;
}

.se-events-wrapper a.se-event-link,
.se-events-wrapper a.se-event-link:link,
.se-events-wrapper a.se-event-link:visited,
.se-events-wrapper .se-event-link {
	background-color: var(--se-button-bg, #102347) !important;
	color: #ffffff !important;
	border: 0 !important;
	text-decoration: none !important;
}

.se-suggest-form-wrapper .se-submit-button,
.se-suggest-form-wrapper button.se-submit-button {
	background-color: var(--se-accent, #e44d2e) !important;
	color: #ffffff !important;
	border: 0 !important;
	text-decoration: none !important;
}

.se-event-link,
.se-submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	font-family: inherit;
	font-size: 0.92em;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	border-radius: 9999px;
	padding: 0.7em 1.4em;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.se-events-wrapper a.se-event-link:hover,
.se-events-wrapper a.se-event-link:focus,
.se-suggest-form-wrapper .se-submit-button:hover,
.se-suggest-form-wrapper .se-submit-button:focus {
	color: #ffffff !important;
	text-decoration: none !important;
	opacity: 0.92;
}

/* Monthly Calendar View */
.se-cal-card,
.se-map-card {
	background: var(--se-card-bg);
	border: 1px solid rgba(16, 35, 71, 0.1);
	border-color: var(--se-card-border);
	border-radius: var(--se-radius);
	box-shadow: var(--se-card-shadow);
	padding: 1.5rem;
	margin-bottom: 2.5rem;
}

.se-cal-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.se-cal-month-title {
	margin: 0;
	font-size: 1.2em;
	font-weight: 700;
}

.se-cal-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.se-cal-btn {
	border: 1px solid rgba(16, 35, 71, 0.2);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.4em 0.85em;
	border-radius: 9999px;
	cursor: pointer;
}

.se-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 1px solid rgba(16, 35, 71, 0.1);
	border-left: 1px solid rgba(16, 35, 71, 0.1);
}

.se-cal-dow {
	font-size: 0.75em;
	font-weight: 700;
	padding: 0.5rem;
	text-align: center;
	opacity: 0.7;
	border-right: 1px solid rgba(16, 35, 71, 0.1);
	border-bottom: 1px solid rgba(16, 35, 71, 0.1);
}

.se-cal-cell {
	min-height: 82px;
	padding: 0.35rem;
	border-right: 1px solid rgba(16, 35, 71, 0.1);
	border-bottom: 1px solid rgba(16, 35, 71, 0.1);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.se-cal-cell.is-outside {
	opacity: 0.4;
}

.se-cal-day-num {
	font-size: 0.78em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.se-cal-event-btn {
	border: 0;
	background: var(--se-button-bg);
	color: var(--se-button-text);
	font-family: inherit;
	font-size: 0.72em;
	font-weight: 600;
	text-align: left;
	padding: 0.22rem 0.45rem;
	border-radius: 6px;
	cursor: pointer;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Free OpenStreetMap Container & Region Controls */
.se-map-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.se-map-regions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.se-map-caption {
	font-size: 0.8em;
	opacity: 0.72;
}

.se-leaflet-map {
	width: 100%;
	height: 440px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(16, 35, 71, 0.12);
}

.se-map-pin-wrapper {
	background: transparent;
	border: 0;
}

.se-map-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 3px solid #ffffff;
	color: #ffffff;
	font-weight: 800;
	font-size: 12px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	box-sizing: border-box;
}

.se-map-popup {
	min-width: 195px;
	max-width: 260px;
	line-height: 1.4;
}

.se-map-popup-date {
	font-size: 0.78em;
	font-weight: 700;
	color: var(--se-accent, #e44d2e);
	margin-bottom: 0.15rem;
}

.se-map-popup-title {
	display: block;
	font-size: 0.98em;
	margin-bottom: 0.2rem;
}

.se-map-popup-loc {
	font-size: 0.84em;
	opacity: 0.82;
	margin-bottom: 0.4rem;
}

.se-map-popup-list {
	margin: 0.35rem 0 0;
	padding: 0.35rem 0 0;
	border-top: 1px solid rgba(16, 35, 71, 0.12);
	list-style: none;
	font-size: 0.82em;
}

.se-map-popup-list li {
	margin: 0.2rem 0;
}

.se-map-popup-link {
	font-size: 0.84em;
	font-weight: 600;
	text-decoration: underline;
}

.se-map-list-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.se-map-card-wrap {
	position: relative;
}

.se-map-focus-btn {
	margin-top: 0.5rem;
	border: 0;
	background: transparent;
	color: var(--se-accent);
	font-family: inherit;
	font-size: 0.84em;
	font-weight: 600;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.se-map-note {
	margin: 0.75rem 0 0;
	font-size: 0.82em;
	opacity: 0.75;
}

/* Suggest an Event or Correction Form (Minimised by default) */
.se-suggest-form-wrapper {
	margin-top: 2.5rem;
	background: var(--se-card-bg);
	border: 1px solid rgba(16, 35, 71, 0.1);
	border-color: var(--se-card-border);
	border-radius: var(--se-radius);
	box-shadow: var(--se-card-shadow);
	padding: 1.5rem 1.75rem;
}

.se-suggest-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.se-suggest-intro {
	flex: 1 1 320px;
	margin: 0;
}

.se-suggest-bar-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.se-suggest-secondary-btn,
.se-suggest-close-btn {
	white-space: nowrap;
}

.se-suggest-body {
	margin-top: 1.5rem;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(16, 35, 71, 0.08);
	border-top-color: color-mix(in srgb, currentColor 9%, transparent);
}

.se-suggest-mode-bar {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem;
	margin-bottom: 1.25rem;
	border: 1px solid rgba(16, 35, 71, 0.12);
	border-color: var(--se-card-border);
	border-radius: 9999px;
	background: var(--se-card-bg);
}

.se-suggest-form-wrapper .se-view-tab.is-active {
	background: var(--se-button-bg, #102347) !important;
	color: #ffffff !important;
	opacity: 1;
}

.se-suggest-heading {
	margin: 0 0 0.35rem;
	font-family: inherit;
	color: inherit;
	font-weight: 700;
}

.se-suggest-description {
	margin: 0;
	opacity: 0.82;
	max-width: 66ch;
	font-size: 0.92em;
	line-height: 1.55;
}

.se-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem 1.25rem;
}

.se-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.se-form-field-full {
	grid-column: 1 / -1;
}

.se-form-field label {
	font-size: 0.88em;
	font-weight: 600;
}

.se-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	cursor: pointer;
}

.se-checkbox-label input {
	width: auto;
}

.se-form-field input:not([type="checkbox"]),
.se-form-field select,
.se-form-field textarea {
	width: 100%;
	font-family: inherit;
	color: inherit;
	background: var(--se-input-bg);
	border: 1px solid rgba(16, 35, 71, 0.22);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 10px;
	padding: 0.65em 0.9em;
	line-height: 1.45;
}

.se-form-field input:focus,
.se-form-field select:focus,
.se-form-field textarea:focus,
.se-multiselect-trigger:focus {
	outline: 2px solid var(--se-accent);
	outline-offset: 1px;
}

/* Eligible sections multi-select checkbox dropdown */
.se-multiselect {
	position: relative;
	width: 100%;
}

.se-multiselect-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background: var(--se-card-bg, #ffffff);
	border: 1px solid rgba(16, 35, 71, 0.22);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 10px;
	padding: 0.65em 0.9em;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
}

.se-multiselect-trigger.is-placeholder .se-multiselect-value {
	opacity: 0.62;
}

.se-multiselect-value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.se-multiselect-caret {
	flex-shrink: 0;
	font-size: 0.85em;
	opacity: 0.65;
	transition: transform 0.15s ease;
}

.se-multiselect.is-open .se-multiselect-caret {
	transform: rotate(180deg);
}

.se-multiselect-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 45;
	background: var(--se-card-bg, #ffffff);
	border: 1px solid rgba(16, 35, 71, 0.18);
	border-color: var(--se-card-border);
	border-radius: 12px;
	box-shadow: 0 10px 26px rgba(16, 35, 71, 0.14);
	padding: 0.45rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.se-multiselect-option {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0.6rem;
	border-radius: 8px;
	font-size: 0.92em;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
}

.se-multiselect-option:hover {
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.se-multiselect-option input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--se-accent, #e44d2e);
	cursor: pointer;
}

/* Searchable Country Dropdown Combobox */
.se-country-combobox {
	position: relative;
	width: 100%;
}

.se-country-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.se-country-input-wrap input {
	padding-right: 2.35em;
}

.se-country-toggle {
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.9em;
	opacity: 0.65;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 8px;
}

.se-country-toggle:hover {
	opacity: 1;
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.se-country-combobox.is-open .se-country-toggle span {
	transform: rotate(180deg);
	display: inline-block;
}

.se-country-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 50;
	max-height: 240px;
	overflow-y: auto;
	background: var(--se-card-bg, #ffffff);
	border: 1px solid rgba(16, 35, 71, 0.18);
	border-color: var(--se-card-border);
	border-radius: 12px;
	box-shadow: 0 10px 26px rgba(16, 35, 71, 0.14);
	padding: 0.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.se-country-option {
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.9em;
	font-weight: 500;
	padding: 0.45rem 0.65rem;
	border-radius: 8px;
	cursor: pointer;
}

.se-country-option:hover,
.se-country-option.is-selected {
	background: color-mix(in srgb, currentColor 7%, transparent);
	font-weight: 600;
}

.se-country-empty {
	padding: 0.65rem 0.75rem;
	font-size: 0.86em;
	opacity: 0.68;
}

/* Expandable "Add more details (optional)" drawer inside Suggest form */
.se-more-details {
	margin-top: 1.35rem;
	border: 1px solid rgba(16, 35, 71, 0.14);
	border-color: var(--se-card-border);
	border-radius: 14px;
	background: color-mix(in srgb, currentColor 2.5%, transparent);
}

.se-more-details-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem 1rem;
	padding: 0.85rem 1.1rem;
	font-size: 0.92em;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.se-more-details-summary::-webkit-details-marker {
	display: none;
}

.se-more-details-summary > span:first-child::before {
	content: '+ ';
	color: var(--se-accent, #e44d2e);
	font-weight: 800;
	margin-right: 0.25rem;
}

.se-more-details[open] .se-more-details-summary > span:first-child::before {
	content: '− ';
}

.se-more-details-hint {
	font-size: 0.84em;
	font-weight: 500;
	opacity: 0.7;
}

.se-more-details-body {
	padding: 0.25rem 1.1rem 1.2rem;
	border-top: 1px solid rgba(16, 35, 71, 0.08);
	border-top-color: color-mix(in srgb, currentColor 9%, transparent);
	padding-top: 1.1rem;
}

.se-label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.se-char-counter {
	font-size: 0.78em;
	font-variant-numeric: tabular-nums;
	opacity: 0.65;
}

/* Uniform structured inputs inside Add more details */
.se-age-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	gap: 0.65rem;
	align-items: center;
}

.se-age-inline {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 0.45rem;
}

.se-age-dash {
	opacity: 0.55;
	font-weight: 700;
}

.se-subpanel {
	margin-top: 0.55rem;
	padding: 0.75rem 0.85rem;
	border-radius: 10px;
	border: 1px solid rgba(16, 35, 71, 0.12);
	border-color: var(--se-card-border);
	background: var(--se-card-bg, #ffffff);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.se-subpanel > label {
	font-size: 0.82em;
	font-weight: 600;
	opacity: 0.82;
}

.se-check-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.1rem;
	margin: 0.15rem 0 0.25rem;
}

.se-check-group .se-checkbox-label {
	font-size: 0.88em;
	font-weight: 500;
}

.se-fee-rows {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-bottom: 0.55rem;
}

.se-fee-row {
	display: grid;
	grid-template-columns: minmax(90px, 0.8fr) minmax(110px, 0.9fr) minmax(135px, 1.1fr) auto;
	gap: 0.5rem;
	align-items: center;
}

.se-fee-remove-btn {
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 8px;
	border: 1px solid rgba(16, 35, 71, 0.18);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	background: transparent;
	color: inherit;
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
	opacity: 0.72;
}

.se-fee-remove-btn:hover {
	opacity: 1;
	color: var(--se-accent, #e44d2e);
	border-color: var(--se-accent, #e44d2e);
}

.se-add-fee-btn {
	border: 1px dashed rgba(16, 35, 71, 0.28);
	border-color: color-mix(in srgb, currentColor 28%, transparent);
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.84em;
	font-weight: 600;
	padding: 0.45em 0.9em;
	border-radius: 9999px;
	cursor: pointer;
}

.se-add-fee-btn:hover {
	border-color: var(--se-accent, #e44d2e);
	color: var(--se-accent, #e44d2e);
}

.se-form-submit {
	margin-top: 1.5rem;
}

.se-notice {
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	border: 1px solid rgba(16, 35, 71, 0.2);
	border-radius: 12px;
}

.se-notice p {
	margin: 0;
}

.se-notice ul {
	margin: 0.5rem 0 0 1.25rem;
	padding: 0;
}

.se-hp-field {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* List Pagination */
.se-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 1.25rem 0 2.5rem;
}

.se-page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.se-page-btn,
.se-page-num {
	border: 1px solid rgba(16, 35, 71, 0.18);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	background: var(--se-card-bg);
	color: inherit;
	font-family: inherit;
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.45em 0.9em;
	border-radius: 9999px;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
}

.se-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.se-page-num.is-active,
.se-cal-btn.is-active {
	background: var(--se-button-bg);
	color: var(--se-button-text);
	border-color: var(--se-button-bg);
}

.se-page-summary {
	font-size: 0.82em;
	opacity: 0.72;
	font-variant-numeric: tabular-nums;
}

.se-cal-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.se-cal-month-list {
	margin-top: 1.5rem;
}

.se-cal-month-list-heading {
	margin: 0 0 1rem;
	font-size: 1.15em;
	font-weight: 700;
}

/* Cheeky Going Abroad Shop Promo Callout */
.se-shop-promo {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 1.5rem;
	margin: 2rem 0 2.5rem;
	padding: 1.75rem;
	border-radius: var(--se-radius);
	background: var(--se-card-bg);
	border: 1px solid rgba(228, 77, 46, 0.25);
	box-shadow: var(--se-card-shadow);
}

.se-shop-promo.is-inline-promo {
	margin: 0;
}

.se-shop-promo-kicker {
	margin: 0 0 0.25rem;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--se-accent);
}

.se-shop-promo-heading {
	margin: 0 0 0.4rem;
	font-family: inherit;
	color: inherit;
	font-weight: 700;
	line-height: 1.25;
}

.se-shop-promo-desc {
	margin: 0 0 1rem;
	font-size: 0.92em;
	opacity: 0.84;
	max-width: 58ch;
	line-height: 1.55;
}

.se-events-wrapper a.se-shop-promo-product,
.se-events-wrapper a.se-shop-promo-product:link,
.se-events-wrapper a.se-shop-promo-product:visited {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(16, 35, 71, 0.12);
	border-color: var(--se-card-border);
	text-decoration: none !important;
	color: var(--se-button-bg, #102347) !important;
	background: #ffffff;
	min-width: 220px;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.se-events-wrapper a.se-shop-promo-product:hover,
.se-events-wrapper a.se-shop-promo-product:focus {
	border-color: rgba(228, 77, 46, 0.45);
	box-shadow: 0 4px 14px rgba(16, 35, 71, 0.08);
	text-decoration: none !important;
}

.se-shop-promo-product img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
}

.se-shop-promo-product-info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.se-events-wrapper a.se-shop-promo-product .se-shop-promo-product-title {
	font-weight: 700;
	font-size: 0.9em;
	line-height: 1.3;
	color: var(--se-button-bg, #102347) !important;
	text-decoration: none !important;
}

.se-events-wrapper a.se-shop-promo-product .se-shop-promo-product-price {
	font-size: 0.85em;
	font-weight: 700;
	color: var(--se-accent, #e44d2e) !important;
	text-decoration: none !important;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
	.se-event-item,
	.se-suggest-form-wrapper,
	.se-cal-card,
	.se-map-card,
	.se-shop-promo {
		padding: 1.25rem;
	}

	.se-event-meta {
		grid-template-columns: 1fr;
	}

	.se-shop-promo {
		grid-template-columns: 1fr;
	}

	.se-form-grid {
		grid-template-columns: 1fr;
	}

	.se-age-grid {
		grid-template-columns: 1fr;
	}

	.se-fee-row {
		grid-template-columns: 1fr 1fr;
	}

	.se-cal-cell {
		min-height: 62px;
	}
}

/* Leader Filter Bar (Age / Section, Country, Search) */
.se-filter-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
	gap: 0.85rem 1rem;
	align-items: end;
	background: var(--se-card-bg);
	border: 1px solid rgba(16, 35, 71, 0.12);
	border-color: var(--se-card-border);
	border-radius: 14px;
	padding: 1rem 1.2rem;
	margin-bottom: 1.5rem;
}

.se-filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.se-filter-field label {
	font-size: 0.76em;
	font-weight: 700;
	opacity: 0.72;
}

.se-filter-field select,
.se-filter-field input {
	width: 100%;
	font-family: inherit;
	font-size: 0.88em;
	color: inherit;
	background: var(--se-input-bg);
	border: 1px solid rgba(16, 35, 71, 0.2);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 10px;
	padding: 0.5em 0.75em;
}

.se-filter-meta {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.8em;
	padding-top: 0.35rem;
	border-top: 1px solid rgba(16, 35, 71, 0.08);
	border-top-color: color-mix(in srgb, currentColor 9%, transparent);
}

.se-filter-count {
	opacity: 0.72;
	font-variant-numeric: tabular-nums;
}

.se-filter-reset {
	border: 0;
	background: transparent;
	color: var(--se-accent);
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Card Footer Secondary Actions: Add to Calendar & Share */
.se-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.se-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-family: inherit;
	font-size: 0.84em;
	font-weight: 600;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(16, 35, 71, 0.22);
	border-color: color-mix(in srgb, currentColor 22%, transparent);
	border-radius: 9999px;
	padding: 0.55em 1.05em;
	line-height: 1.2;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.se-action-btn::-webkit-details-marker {
	display: none;
}

.se-action-btn:hover {
	opacity: 0.85;
}

.se-cal-dropdown {
	position: relative;
	display: inline-block;
}

.se-cal-dropdown-menu {
	position: absolute;
	left: 0;
	top: calc(100% + 6px);
	z-index: 40;
	min-width: 195px;
	background: var(--se-card-bg, #ffffff);
	border: 1px solid rgba(16, 35, 71, 0.16);
	border-color: var(--se-card-border);
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(16, 35, 71, 0.14);
	padding: 0.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.se-events-wrapper .se-cal-dropdown-item,
.se-events-wrapper a.se-cal-dropdown-item,
.se-events-wrapper a.se-cal-dropdown-item:link,
.se-events-wrapper a.se-cal-dropdown-item:visited {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	color: var(--se-button-bg, #102347) !important;
	font-family: inherit;
	font-size: 0.84em;
	font-weight: 600;
	text-decoration: none !important;
	padding: 0.5rem 0.7rem;
	border-radius: 8px;
	cursor: pointer;
}

.se-events-wrapper .se-cal-dropdown-item:hover,
.se-events-wrapper a.se-cal-dropdown-item:hover {
	background: color-mix(in srgb, currentColor 7%, transparent);
	color: var(--se-button-bg, #102347) !important;
	text-decoration: none !important;
}

.se-event-item.is-highlighted {
	outline: 2px solid var(--se-accent);
	outline-offset: 2px;
}

/* Gentle warm polish for pure OpenStreetMap tiles */
.se-leaflet-map .leaflet-tile-pane {
	filter: saturate(0.86) contrast(0.97) brightness(1.02);
}

/* Scoutadelic Coral Halftone Hero Banner */
.se-hero-banner {
	position: relative;
	overflow: hidden;
	container-type: inline-size;
	container-name: se-hero;
	background-color: var(--se-accent, #ea5334);
	background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1.25px, transparent 1.25px);
	background-size: 22px 22px;
	color: #ffffff;
	border-radius: 22px;
	padding: 2.5rem 1.75rem 2rem;
	margin-bottom: 1.75rem;
}

.se-hero-decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
	user-select: none;
}

.se-hero-svg-left,
.se-hero-svg-right {
	position: absolute;
	top: 0.75rem;
	width: 145px;
	height: calc(100% - 1.5rem);
	opacity: 0.4;
}

.se-hero-svg-left {
	left: 1rem;
}

.se-hero-svg-right {
	right: 1rem;
}

.se-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.se-hero-heading {
	color: #ffffff !important;
	margin: 0 0 0.45rem;
	font-size: clamp(1.75rem, 3.4vw, 2.65rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.se-hero-subtitle {
	margin: 0 auto 1.4rem;
	max-width: 54ch;
	font-size: 0.96em;
	color: rgba(255, 255, 255, 0.94);
	line-height: 1.5;
}

.se-filter-bar-hero {
	text-align: left;
	color: var(--se-button-bg, #102347);
	background: #ffffff;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 12px 28px rgba(16, 35, 71, 0.16);
	margin-bottom: 0;
}

@container se-hero (max-width: 860px) {
	.se-hero-svg-left,
	.se-hero-svg-right {
		display: none;
	}
}

/* Dotted Page Stage with Flanking Scoutadelic Side-Margin Badges (wide full-width templates) */
.se-page-stage {
	position: relative;
	width: 100%;
	container-type: inline-size;
	container-name: se-stage;
	padding: 0.5rem 0 1rem;
}

.se-events-wrapper.se-has-decor .se-page-stage {
	background-image: radial-gradient(color-mix(in srgb, currentColor 8%, transparent) 1.25px, transparent 1.25px);
	background-size: 24px 24px;
	border-radius: 22px;
	padding: 1.75rem 1.25rem 2rem;
}

.se-events-inner {
	position: relative;
	z-index: 2;
	max-width: 840px;
	margin: 0 auto;
}

.se-side-decor {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
	z-index: 1;
}

.se-side-svg {
	position: absolute;
	top: 1.5rem;
	width: 138px;
	height: 980px;
}

.se-side-svg-left {
	left: 0.5rem;
}

.se-side-svg-right {
	right: 0.5rem;
}

/* When embedded inside a narrow boxed WordPress page container, keep cards flush & hide inline badges */
@container se-stage (max-width: 1080px) {
	.se-side-decor {
		display: none;
	}

	.se-events-wrapper.se-has-decor .se-page-stage {
		background-image: none;
		padding: 0;
		border-radius: 0;
	}
}

@media (max-width: 1120px) {
	.se-side-decor {
		display: none;
	}
}

/* Outer Viewport Side-Margin Rails (for boxed themes with wide cream left/right margins) */
.se-viewport-rail {
	position: absolute;
	top: 0;
	pointer-events: none;
	user-select: none;
	z-index: 4;
	overflow: hidden;
	background-image: radial-gradient(rgba(234, 83, 52, 0.16) 1.3px, transparent 1.3px);
	background-size: 22px 22px;
}

.se-viewport-rail-left {
	left: 0;
	-webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0) 100%);
	mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0) 100%);
}

.se-viewport-rail-right {
	right: 0;
	-webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0) 100%);
	mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0) 100%);
}

.se-viewport-rail-track {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding-top: 24px;
}

.se-viewport-rail-svg {
	width: min(176px, 86%);
	height: auto;
	flex-shrink: 0;
	display: block;
}

@media (max-width: 1060px) {
	.se-viewport-rail {
		display: none !important;
	}
}

@media (max-width: 780px) {
	.se-hero-svg-left,
	.se-hero-svg-right {
		display: none;
	}

	.se-hero-banner {
		padding: 1.85rem 1.15rem 1.5rem;
		border-radius: 16px;
	}
}
