/* ==========================================================
   WYAFF Officials Map — front end
   Colors follow the theme palette when it has these presets,
   and fall back to the WYAFF navy / gold / cream look.
   ========================================================== */

.wom,
.wom-modal {
	--wom-navy: var(--wp--preset--color--dark, #0b1f3a);
	--wom-gold: var(--wp--preset--color--foreground, #ffc629);
	--wom-blue: var(--wp--preset--color--primary, #1a6fc0);
	--wom-ink: var(--wp--preset--color--text-regular, #1f2430);
	--wom-muted: var(--wp--preset--color--text-light, #5b6472);
	--wom-line: var(--wp--preset--color--stroke, #e5e1d8);
	--wom-cream: var(--wp--preset--color--tertiary, #f7f4ef);
	--wom-card: #ffffff;
	--wom-land: #dbe6f7;
	--wom-radius: 22px;
	--wom-shadow: 0 1px 2px rgba(11, 31, 58, 0.05), 0 22px 50px -30px rgba(11, 31, 58, 0.38);
}

.wom {
	display: grid;
	gap: 18px;
	color: var(--wom-ink);
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
}
.wom *,
.wom-modal * {
	box-sizing: border-box;
}
/* Doubled class so theme rules like ":root :where(p) { margin-bottom: 2em }" can't win. */
.wom.wom :where(h2, h3, h4, p, ul, form) {
	margin: 0;
	padding: 0;
}
.wom.wom :where(li) {
	margin: 0;
}
.wom ul,
.wom-modal ul {
	list-style: none;
}
.wom-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Buttons & links ---------- */
.wom-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.wom-btn:hover {
	transform: translateY(-1px);
}
.wom-btn:focus-visible,
.wom-link:focus-visible,
.wom-chip:focus-visible,
.wom-pill:focus-visible,
.wom-close:focus-visible,
.wom-alt-btn:focus-visible,
.wom-select:focus-visible {
	outline: 3px solid var(--wom-blue);
	outline-offset: 2px;
}
.wom-btn-primary {
	background: var(--wom-navy);
	color: #fff !important;
}
.wom-btn-primary:hover {
	background: var(--wom-blue);
}
.wom-btn-gold {
	background: var(--wom-gold);
	color: var(--wom-navy) !important;
}
.wom-btn-gold:hover {
	background: var(--wom-navy);
	color: #fff !important;
}
.wom-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--wom-blue);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.wom-link:hover {
	color: var(--wom-navy);
}

/* ---------- Search card ---------- */
.wom-search {
	position: relative;
	z-index: 5; /* keeps its dropdowns above the map */
	padding: clamp(18px, 4vw, 28px);
	border: 1px solid var(--wom-line);
	border-radius: var(--wom-radius);
	background: var(--wom-card);
	box-shadow: var(--wom-shadow);
	container: wom-card / inline-size;
}
.wom .wom-search-title {
	margin-bottom: 6px;
	color: var(--wom-navy);
	font-family: var(--wp--preset--font-family--headings, inherit);
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.wom .wom-search-intro {
	margin-bottom: 16px;
	color: var(--wom-muted);
	font-size: 15px;
}
.wom-search-form {
	display: flex;
	gap: 10px;
}
.wom-field {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}
.wom .wom-input {
	display: block;
	width: 100%;
	min-width: 0;
	height: 52px;
	padding: 0 20px;
	border: 1.5px solid var(--wom-line);
	border-radius: 999px;
	background: var(--wom-cream);
	color: var(--wom-ink);
	font: inherit;
	font-size: 16px; /* 16px stops iPhones from zooming in */
	font-weight: 400;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.wom .wom-input::placeholder {
	color: var(--wom-muted);
	opacity: 0.8;
}
.wom .wom-input:focus,
.wom .wom-input:focus-visible {
	border-color: var(--wom-blue);
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(26, 111, 192, 0.15);
}
.wom-search-form .wom-btn {
	min-height: 52px;
	padding: 0 26px;
}
/* Spinner while suggestions load */
.wom-field.is-busy .wom-input {
	padding-right: 46px;
}
.wom-field.is-busy::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid var(--wom-line);
	border-top-color: var(--wom-navy);
	border-radius: 50%;
	animation: wom-spin 0.8s linear infinite;
}

/* Address suggestions */
.wom .wom-suggest {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 1000;
	padding: 6px;
	border: 1px solid var(--wom-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 48px -16px rgba(11, 31, 58, 0.35), 0 2px 6px rgba(11, 31, 58, 0.08);
	text-align: left;
}
.wom .wom-suggest[hidden] {
	display: none;
}
.wom .wom-suggest-list {
	max-height: 330px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.wom .wom-sopt {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 12px;
	cursor: pointer;
}
.wom .wom-sopt.is-active {
	background: var(--wom-cream);
}
.wom-sopt-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #eaf1fb;
	color: var(--wom-blue);
}
.wom-sopt-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.wom-sopt-main,
.wom-sopt-sub {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.wom-sopt-main {
	color: var(--wom-navy);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.wom-sopt-sub {
	color: var(--wom-muted);
	font-size: 13px;
	line-height: 1.3;
}
.wom .wom-suggest-credit {
	margin: 4px 8px 0;
	padding: 6px 2px 2px;
	border-top: 1px solid var(--wom-line);
	color: var(--wom-muted);
	font-size: 11.5px;
	text-align: right;
}
.wom .wom-suggest-credit a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* "Use my location" · or · "Pick a district" */
.wom-search-alt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin-top: 14px;
	font-size: 15px;
}
.wom-or {
	color: var(--wom-muted);
	font-size: 14px;
}
.wom-alt-btn,
.wom-select {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid var(--wom-line);
	border-radius: 999px;
	background-color: #fff;
	color: var(--wom-navy);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.wom-alt-btn:hover,
.wom-select:hover,
.wom-pick.is-open .wom-dd-btn {
	border-color: var(--wom-navy);
}
.wom-alt-btn svg {
	flex: 0 0 auto;
	color: var(--wom-blue);
}
.wom-pick {
	position: relative;
	display: inline-flex;
	min-width: 0;
}
/* The phone's own picker (iPhone/iPad) and the no-JavaScript fallback */
.wom-select {
	-webkit-appearance: none;
	appearance: none;
	min-width: 200px;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b1f3a' d='M7.4 9.3 12 13.9l4.6-4.6L18 10.7l-6 6-6-6z'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	background-size: 20px;
	font-size: 16px; /* 16px stops iPhones from zooming in */
	text-align: left;
}
.wom-select.wom-sr {
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
}
/* The custom dropdown (laptops, desktops, Android) */
.wom-dd-btn {
	justify-content: space-between;
	min-width: 200px;
}
.wom-dd-value {
	overflow: hidden;
	text-overflow: ellipsis;
}
.wom-dd-chev {
	flex: 0 0 auto;
	margin-right: -4px;
	color: var(--wom-navy) !important;
	transition: transform 0.2s ease;
}
.wom-pick.is-open .wom-dd-chev {
	transform: rotate(180deg);
}
.wom .wom-dd-list {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 1000;
	width: max(100%, 250px);
	max-height: min(330px, 55vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px;
	border: 1px solid var(--wom-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 48px -16px rgba(11, 31, 58, 0.35), 0 2px 6px rgba(11, 31, 58, 0.08);
	outline: none;
	list-style: none;
	scrollbar-width: thin;
}
.wom .wom-dd-list[hidden] {
	display: none;
}
.wom .wom-pick.is-up .wom-dd-list {
	top: auto;
	bottom: calc(100% + 8px);
}
.wom .wom-dd-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--wom-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.wom .wom-dd-opt.is-active {
	background: var(--wom-cream);
}
.wom-dd-list:focus-visible .wom-dd-opt.is-active {
	box-shadow: inset 0 0 0 2px var(--wom-blue);
}
.wom .wom-dd-opt[aria-selected="true"] {
	background: var(--wom-navy);
	color: #fff;
}
.wom-dd-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border: 1px solid #f2d27a;
	border-radius: 999px;
	background: #fff6d6;
	color: #6b4d00;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}
.wom-dd-badge span {
	color: #d29b00;
}
.wom-dd-opt[aria-selected="true"] .wom-dd-badge {
	border-color: var(--wom-gold);
	background: var(--wom-gold);
	color: var(--wom-navy);
}
.wom-dd-opt[aria-selected="true"] .wom-dd-badge span {
	color: var(--wom-navy);
}

/* Narrow search box (phones, and the floating box on the full-page map) */
@container wom-card (max-width: 520px) {
	.wom-search-alt {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.wom-or {
		display: none;
	}
	.wom-pick,
	.wom-alt-btn,
	.wom-select {
		width: 100%;
		min-width: 0;
	}
	.wom-alt-btn,
	.wom-select {
		padding-left: 14px;
		font-size: 14.5px;
	}
	.wom-select {
		font-size: 16px;
	}
	.wom .wom-dd-list {
		right: 0;
		left: auto;
	}
}
@container wom-card (max-width: 340px) {
	.wom-search-form {
		flex-direction: column;
	}
	.wom-search-form .wom-btn {
		width: 100%;
	}
	.wom-search-alt {
		grid-template-columns: minmax(0, 1fr);
	}
	.wom-alt-btn {
		justify-content: flex-start;
		padding-left: 18px;
	}
	.wom-dd-btn {
		justify-content: space-between;
	}
	.wom-select {
		padding-left: 18px;
	}
	.wom .wom-dd-list {
		right: 0;
		left: 0;
		width: auto;
	}
}
.wom-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--wom-cream);
	color: var(--wom-ink);
	font-size: 15px;
	font-weight: 500;
}
.wom-status[hidden] {
	display: none;
}
.wom-status.is-busy::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid var(--wom-line);
	border-top-color: var(--wom-navy);
	border-radius: 50%;
	animation: wom-spin 0.8s linear infinite;
}
.wom-status.is-ok {
	background: #e8f3ee;
	color: #0b3d2e;
}
.wom-status.is-warn {
	background: #fff6d6;
	color: #5a4300;
}
.wom-status.is-error {
	background: #fde8e8;
	color: #8a1c1c;
}

/* ---------- Map ---------- */
.wom-stage {
	position: relative;
	height: var(--wom-map-h, 560px);
	overflow: hidden;
	border: 1px solid var(--wom-line);
	border-radius: var(--wom-radius);
	background: #eef2f8;
	box-shadow: var(--wom-shadow);
	isolation: isolate;
}
.wom-map {
	position: absolute;
	inset: 0;
	background: #eef2f8;
	font: inherit;
}
.wom-no-tiles .wom-stage,
.wom-no-tiles .wom-map {
	background: var(--wom-card);
}
.wom .wom-tiles-soft {
	filter: grayscale(1) contrast(0.92) brightness(1.06);
}
/* Hide hairline gaps between street-map tiles (they show when the map sits
   at a fraction of a pixel, e.g. edge to edge or with browser zoom). */
.wom .leaflet-container img.leaflet-tile {
	width: 257px !important;
	height: 257px !important;
	mix-blend-mode: normal;
}
.wom .leaflet-container {
	font: inherit;
	font-size: 13px;
}
.wom .leaflet-control-attribution {
	padding: 2px 8px;
	border-top-left-radius: 8px;
	background: rgba(255, 255, 255, 0.85);
	font-size: 11px;
}
.wom .leaflet-control-attribution a {
	color: var(--wom-navy);
}
.wom .leaflet-bar {
	overflow: hidden;
	border: 1px solid var(--wom-line);
	border-radius: 12px;
	box-shadow: 0 6px 16px -8px rgba(11, 31, 58, 0.35);
}
.wom .leaflet-bar a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-bottom-color: var(--wom-line);
	background: #fff;
	color: var(--wom-navy);
	font-size: 20px;
	line-height: 38px;
}
.wom .leaflet-bar a:hover {
	background: var(--wom-cream);
}
.wom .leaflet-bar a:focus-visible {
	outline: 3px solid var(--wom-blue);
	outline-offset: -3px;
}

/* District numbers */
.wom-label {
	pointer-events: none;
}
.wom-label span {
	display: block;
	transform: translate(-50%, -50%);
	color: var(--wom-navy);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.wom-label.is-visible span {
	opacity: 0.85;
}

/* Gold stars */
.wom-star {
	display: grid;
	place-items: center;
	border-radius: 50%;
	cursor: pointer;
}
.wom-star::before {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--wom-gold);
	opacity: 0.35;
	animation: wom-pulse 2.4s ease-out infinite;
}
.wom-star-shape {
	position: relative;
	display: grid;
	place-items: center;
	transition: transform 0.2s ease;
}
.wom-star-shape svg {
	display: block;
	fill: var(--wom-gold);
	stroke: var(--wom-navy);
	stroke-width: 1.4;
	stroke-linejoin: round;
	filter: drop-shadow(0 2px 3px rgba(11, 31, 58, 0.35));
}
.wom-star:hover .wom-star-shape,
.wom-star:focus-visible .wom-star-shape {
	transform: scale(1.15);
}
.wom-star:focus-visible {
	outline: 3px solid var(--wom-blue);
	outline-offset: 2px;
}
.wom-star-num {
	position: absolute;
	right: -4px;
	bottom: -2px;
	display: none;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--wom-navy);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 14px;
	text-align: center;
}
.wom-zoomed .wom-star-num {
	display: block;
}

/* "You are here" */
.wom-you span {
	position: relative;
	display: block;
	width: 22px;
	height: 22px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--wom-blue);
	box-shadow: 0 2px 8px rgba(11, 31, 58, 0.45);
}
.wom-you span::after {
	content: "";
	position: absolute;
	inset: -9px;
	border-radius: 50%;
	background: var(--wom-blue);
	opacity: 0.25;
	animation: wom-pulse 2s ease-out infinite;
}

/* Hover tooltips */
.wom .wom-tip,
.wom-tip {
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: var(--wom-navy, #0b1f3a);
	box-shadow: 0 6px 18px -6px rgba(11, 31, 58, 0.5);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.wom-tip.leaflet-tooltip-top::before {
	border-top-color: var(--wom-navy, #0b1f3a);
}
.wom-tip.leaflet-tooltip-bottom::before {
	border-bottom-color: var(--wom-navy, #0b1f3a);
}
.wom-tip.leaflet-tooltip-left::before {
	border-left-color: var(--wom-navy, #0b1f3a);
}
.wom-tip.leaflet-tooltip-right::before {
	border-right-color: var(--wom-navy, #0b1f3a);
}

/* Legend, loading, messages */
.wom-legend {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 500;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	max-width: calc(100% - 24px);
	padding: 8px 14px;
	border: 1px solid var(--wom-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 6px 16px -8px rgba(11, 31, 58, 0.35);
	color: var(--wom-navy);
	font-size: 13px;
	font-weight: 600;
	pointer-events: none;
}
.wom-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.wom-legend-star {
	color: var(--wom-gold);
	font-size: 16px;
	line-height: 1;
	-webkit-text-stroke: 1px var(--wom-navy);
}
.wom-legend-hint {
	color: var(--wom-muted);
	font-weight: 500;
}
.wom-loading {
	position: absolute;
	inset: 0;
	z-index: 600;
	display: none;
	place-items: center;
	background: rgba(255, 255, 255, 0.55);
}
.wom.is-loading .wom-loading {
	display: grid;
}
.wom-loading span {
	width: 34px;
	height: 34px;
	border: 3px solid var(--wom-line);
	border-top-color: var(--wom-navy);
	border-radius: 50%;
	animation: wom-spin 0.8s linear infinite;
}
.wom-map-msg {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 650;
	max-width: 80%;
	padding: 14px 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--wom-shadow);
	color: var(--wom-navy);
	font-weight: 600;
	text-align: center;
	transform: translate(-50%, -50%);
}
.wom-hint {
	position: absolute;
	inset: 0;
	z-index: 700;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(11, 31, 58, 0.55);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}
.wom-hint.is-visible {
	opacity: 1;
}

/* ---------- Endorsed districts list ---------- */
.wom-endorsed {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 18px clamp(18px, 4vw, 24px);
	border: 1px solid var(--wom-line);
	border-radius: var(--wom-radius);
	background: var(--wom-card);
}
.wom .wom-endorsed-title {
	flex: 1 0 100%;
	color: var(--wom-navy);
	font-size: 15px;
	font-weight: 700;
}
.wom-chips {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 8px;
}
.wom-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid #f2d27a;
	border-radius: 999px;
	background: #fff6d6;
	color: var(--wom-navy);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.wom-chip span {
	color: #d29b00;
}
.wom-chip:hover {
	border-color: var(--wom-gold);
	background: var(--wom-gold);
}
.wom-chip:hover span {
	color: var(--wom-navy);
}
.wom-noscript {
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--wom-cream);
}

/* ---------- Details dialog ---------- */
html.wom-modal-open {
	overflow: hidden;
}
.wom-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 16px;
	color: var(--wom-ink);
	font-family: inherit;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
}
.wom-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 31, 58, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.18s ease;
}
.wom-modal-box {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(580px, 100%);
	max-height: min(88vh, 900px);
	overflow: hidden;
	border-radius: var(--wom-radius);
	background: var(--wom-card);
	box-shadow: 0 30px 80px -20px rgba(11, 31, 58, 0.55);
	opacity: 0;
	transform: translateY(14px) scale(0.98);
	transition: opacity 0.18s ease, transform 0.18s ease;
}
.wom-modal.is-open .wom-modal-backdrop {
	opacity: 1;
}
.wom-modal.is-open .wom-modal-box {
	opacity: 1;
	transform: none;
}
.wom-modal-box.is-endorsed {
	border-top: 6px solid var(--wom-gold);
}
.wom-modal-scroll {
	overflow-y: auto;
	padding: 28px clamp(18px, 5vw, 32px) 30px;
	overscroll-behavior: contain;
}
.wom-modal.wom-modal :where(h2, h3, h4, p, ul) {
	margin: 0;
	padding: 0;
}
.wom-modal.wom-modal :where(li) {
	margin: 0;
}
/* The close button: an icon drawn exactly in the middle of the circle
   (a text "×" sits off-center in many fonts). Doubled class so theme
   button styles (padding, line-height, min sizes) can't shift it. */
.wom-modal .wom-close.wom-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 42px;
	min-width: 0;
	height: 42px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 2px solid var(--wom-navy);
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	color: var(--wom-navy);
	font-size: 0;
	line-height: 0;
	text-indent: 0;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.wom-close svg {
	display: block;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
}
.wom-modal .wom-close.wom-close:hover {
	background: var(--wom-navy);
	color: #fff;
}
.wom-head {
	padding-right: 56px;
}
.wom-modal .wom-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
	color: var(--wom-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.wom-modal-box.is-endorsed .wom-kicker {
	color: #8a6400;
}
.wom-kicker-star svg {
	display: block;
	fill: var(--wom-gold);
	stroke: var(--wom-navy);
	stroke-width: 1.6;
}
.wom-modal .wom-title {
	color: var(--wom-navy);
	font-family: var(--wp--preset--font-family--headings, inherit);
	font-size: clamp(21px, 6vw, 30px);
	text-wrap: balance;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
}
.wom-modal .wom-context {
	margin-top: 8px;
	color: var(--wom-muted);
	font-size: 14px;
}
.wom-modal .wom-context-warn {
	padding: 8px 12px;
	border-radius: 10px;
	background: #fff6d6;
	color: #5a4300;
}
.wom-sec {
	margin-top: 22px;
}
.wom-sec-endorse {
	padding: 18px;
	border: 1px solid #f2d27a;
	border-radius: 18px;
	background: linear-gradient(180deg, #fff8e0, #fffdf5);
}
.wom-modal .wom-sec-title {
	margin-bottom: 12px;
	color: var(--wom-navy);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
}
.wom-modal .wom-note {
	margin-bottom: 12px;
	white-space: pre-line;
	color: var(--wom-ink);
	font-size: 15px;
}
.wom-people {
	display: grid;
	gap: 10px;
}
.wom-modal .wom-person {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--wom-line);
	border-radius: 16px;
	background: #fff;
}
.wom-modal .wom-person.is-endorsed {
	border-color: #f2d27a;
	background: #fffdf5;
}
.wom-modal .wom-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 5px;
	padding: 3px 10px 3px 7px;
	border: 1px solid #f2d27a;
	border-radius: 999px;
	background: #fff6d6;
	color: #6b4d00;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1.3;
	text-transform: uppercase;
}
.wom-badge svg {
	display: block;
	fill: var(--wom-gold);
	stroke: var(--wom-navy);
	stroke-width: 1.6;
}
.wom-modal .wom-ref-note {
	margin-top: 10px;
	color: var(--wom-muted);
	font-size: 13px;
	line-height: 1.45;
}
.wom-avatar {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 60px;
	height: 76px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--wom-navy);
	box-shadow: 0 6px 14px -8px rgba(11, 31, 58, 0.5);
}
.wom-person-endorsed .wom-avatar {
	width: 88px;
	height: 110px;
	border-radius: 14px;
}
.wom-person-endorsed .wom-avatar img {
	object-position: 50% 0;
}
.wom-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}
.wom-initials {
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.02em;
}
.wom-person-body {
	min-width: 0;
	flex: 1 1 auto;
}
.wom-modal .wom-person-role {
	color: var(--wom-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.wom-modal .wom-person-name {
	margin-top: 2px;
	color: var(--wom-navy);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}
.wom-modal .wom-person-title {
	margin-top: 2px;
	color: var(--wom-ink);
	font-size: 14px;
	font-style: italic;
}
.wom-modal .wom-person-blurb {
	margin-top: 6px;
	white-space: pre-line;
	color: var(--wom-ink);
	font-size: 14.5px;
}
.wom-person-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.wom-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--wom-line);
	border-radius: 999px;
	background: var(--wom-cream);
	color: var(--wom-navy) !important;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wom-pill:hover {
	border-color: var(--wom-navy);
	background: var(--wom-navy);
	color: #fff !important;
}
.wom-modal .wom-actions {
	display: flex;
	margin-top: 16px;
}
.wom-modal .wom-source {
	margin-top: 10px;
	color: var(--wom-muted);
	font-size: 12.5px;
}
.wom-modal .wom-more {
	margin-top: 22px;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.wom:not(.wom--full) .wom-stage {
		height: min(var(--wom-map-h, 560px), 460px, 75vh);
	}
	.wom-legend-hint {
		display: none;
	}
	.wom-legend {
		padding: 6px 12px;
		font-size: 12px;
	}
	.wom-modal {
		align-items: end;
		padding: 0;
	}
	.wom-modal-box {
		width: 100%;
		max-height: 90vh;
		border-radius: var(--wom-radius) var(--wom-radius) 0 0;
		transform: translateY(40px);
	}
	.wom-modal-scroll {
		padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
	}
	.wom-modal .wom-actions .wom-btn {
		width: 100%;
	}
}

/* ==========================================================
   Layouts: Wide and Full page
   ========================================================== */
.wom.wom--wide {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-right: auto;
	margin-left: auto;
}

/* Full page: edge to edge, whatever the theme's content width. */
.wom.wom--full.alignfull {
	--wom-edge: max(16px, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2));
	--wom-edge-text: max(16px, calc((100% - var(--wp--style--global--content-size, 720px)) / 2));
	width: auto;
	max-width: none;
	margin-right: calc(50% - 50vw + var(--wom-sbw, 0px) / 2);
	margin-left: calc(50% - 50vw + var(--wom-sbw, 0px) / 2);
	gap: 20px;
}
.wom--full > .wom-search {
	margin-right: var(--wom-edge-text);
	margin-left: var(--wom-edge-text);
}
.wom--full > .wom-endorsed,
.wom--full > noscript {
	margin-right: var(--wom-edge);
	margin-left: var(--wom-edge);
}
.wom--full .wom-stage {
	height: clamp(380px, 68vh, 600px);
	border-right: 0;
	border-left: 0;
	border-radius: 0;
	box-shadow: none;
}
@supports (height: 100svh) {
	.wom--full .wom-stage {
		height: clamp(380px, 68svh, 600px);
	}
}
@media (min-width: 960px) {
	/* The search box floats on the map, lined up with the page's content edge. */
	.wom.wom--full {
		grid-template-columns: minmax(0, 1fr);
	}
	.wom--full > .wom-stage {
		grid-row: 1;
		grid-column: 1;
		height: clamp(560px, calc(100vh - 110px), 960px);
	}
	@supports (height: 100svh) {
		.wom--full > .wom-stage {
			height: clamp(560px, calc(100svh - 110px), 960px);
		}
	}
	.wom--full > .wom-search {
		grid-row: 1;
		grid-column: 1;
		align-self: start;
		justify-self: start;
		width: min(410px, 38%);
		margin: 24px 0 24px var(--wom-edge);
		box-shadow: 0 24px 60px -24px rgba(11, 31, 58, 0.5), 0 2px 8px rgba(11, 31, 58, 0.08);
	}
	.wom--full .wom-legend {
		top: auto;
		bottom: 24px;
		left: var(--wom-edge);
	}
	.wom--full .leaflet-top.leaflet-right .leaflet-control {
		margin-top: 24px;
		margin-right: var(--wom-edge);
	}
	.wom--full .leaflet-top.leaflet-right .leaflet-control + .leaflet-control {
		margin-top: 10px;
	}
}
.wom.wom--full.wom--fixed-h > .wom-stage {
	height: var(--wom-map-h, 560px);
}

/* Very small phones (iPhone SE and similar) */
@media (max-width: 360px) {
	.wom-modal-scroll {
		padding-right: 16px;
		padding-left: 16px;
	}
	.wom-head {
		padding-right: 50px;
	}
	.wom-sec-endorse {
		padding: 14px;
	}
	.wom-modal .wom-person {
		gap: 12px;
		padding: 12px;
	}
	.wom-modal .wom-actions .wom-btn {
		min-height: 48px;
		padding: 10px 14px;
		font-size: 14px;
		line-height: 1.25;
		text-align: center;
	}
}

@keyframes wom-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes wom-pulse {
	0% {
		transform: scale(0.7);
		opacity: 0.55;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.wom-star::before,
	.wom-you span::after {
		animation: none;
	}
	.wom-modal-box,
	.wom-modal-backdrop,
	.wom-btn,
	.wom-star-shape {
		transition: none;
	}
}
