.volunteer-positions-list {
 	--vp-border: var( --wp--preset--color--contrast-4, #d5d5d5 );
	--vp-border-hover: var( --wp--preset--color--contrast-3, #949494 );
	--vp-accent: var( --wp--preset--color--accent, #2271b1 );
	--vp-button-bg: #215bc2;
	--vp-button-bg-hover: #1a4aa0;
	--vp-radius: 4px;
	--vp-bg: var( --wp--preset--color--base-4, #fff );
	--vp-bg-muted: var( --wp--preset--color--base-3, #f6f6f6 );
	--vp-text: var( --wp--preset--color--contrast, #1e1e1e );
	--vp-text-muted: var( --wp--preset--color--contrast-3, #555 );
	--vp-font-2xs: var( --wp--preset--font-size--small, 0.75rem );
	--vp-font-xs: var( --wp--preset--font-size--small, 0.85rem );
	--vp-font-sm: var( --wp--preset--font-size--medium, 0.9rem );
	--vp-font-lg: var( --wp--preset--font-size--large, 1.15rem );
}

.volunteer-positions-list .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.volunteer-positions-list a:focus-visible,
.volunteer-positions-list button:focus-visible,
.volunteer-positions-list input:focus-visible,
.volunteer-positions-list summary:focus-visible {
	outline: 2px solid var(--vp-accent);
	outline-offset: 2px;
}

.volunteer-positions-list__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
	padding: 1rem;
	background: var(--vp-bg-muted);
	border-radius: var(--vp-radius);
}

.volunteer-positions-list__search {
	display: flex;
	align-self: flex-end;
}

.volunteer-positions-list__search input[type="search"] {
	box-sizing: border-box;
	min-width: 14rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius);
	background: var(--vp-bg);
	font-size: var(--vp-font-sm);
	font-family: inherit;
	appearance: none;
}

/* Dropdown multi-select, built on native <details>/<summary> so it works with no JS. */
.volunteer-positions-list__filter-group {
	position: relative;
	align-self: flex-end;
}

.volunteer-positions-list__filter-group summary {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	cursor: pointer;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius);
	background: var(--vp-bg);
	color: var(--vp-text);
	font-size: var(--vp-font-sm);
	white-space: nowrap;
	user-select: none;
}

.volunteer-positions-list__filter-group summary::-webkit-details-marker {
	display: none;
}

.volunteer-positions-list__filter-group summary::after {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -0.3em;
	opacity: 0.6;
}

.volunteer-positions-list__filter-group[open] summary::after {
	transform: rotate(-135deg);
	margin-top: 0.2em;
}

.volunteer-positions-list__filter-group summary:hover,
.volunteer-positions-list__filter-group[open] summary {
	border-color: var(--vp-border-hover);
}

.volunteer-positions-list__filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4em;
	height: 1.4em;
	padding: 0 0.35em;
	border-radius: 999px;
	background: var(--vp-accent);
	color: #fff;
	font-size: var(--vp-font-2xs);
	font-weight: 600;
}

.volunteer-positions-list__filter-count--empty {
	visibility: hidden;
}

.volunteer-positions-list__filter-count[hidden] {
	display: none;
}

.volunteer-positions-list__filter-panel {
	position: absolute;
	z-index: 10;
	top: calc(100% + 0.35rem);
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 14rem;
	max-height: 16rem;
	overflow-y: auto;
	margin: 0;
	padding: 0.75rem;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius);
	background: var(--vp-bg);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.volunteer-positions-list__filter-option {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-size: var(--vp-font-sm);
	cursor: pointer;
}

.volunteer-positions-list__filter-option input {
	flex-shrink: 0;
	width: 1.15em;
	height: 1.15em;
	margin: 0;
	position: relative;
	top: 0.15em;
}

.volunteer-positions-list__filters > button[type="submit"] {
	align-self: flex-end;
	box-sizing: border-box;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--vp-button-bg);
	border-radius: var(--vp-radius);
	background: var(--vp-button-bg);
	color: #fff;
	font-size: var(--vp-font-sm);
	font-weight: 400;
	cursor: pointer;
}

.volunteer-positions-list__filters > button[type="submit"]:hover {
	background: var(--vp-button-bg-hover);
	border-color: var(--vp-button-bg-hover);
}

.volunteer-positions-list__clear-filters {
	align-self: center;
	font-size: var(--vp-font-xs);
	color: var(--vp-text-muted);
	text-decoration: underline;
}

/* Results */
.volunteer-positions-list__results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.volunteer-positions-list__item {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius);
	background: var(--vp-bg);
}

.volunteer-positions-list__title {
	margin: 0 0 0.75rem;
	font-size: var(--vp-font-lg);
}

.volunteer-positions-list__title a {
	color: var(--vp-text);
	text-decoration: none;
}

.volunteer-positions-list__title a:hover {
	color: var(--vp-accent);
	text-decoration: underline;
}

.volunteer-positions-list__excerpt {
	margin: 0.75rem 0 0;
	color: var(--vp-text);
}

.volunteer-positions-list__item .volunteer-position-fields {
	margin: 0;
}

.volunteer-positions-list__item .volunteer-position-fields table {
	width: 100%;
	border-collapse: collapse;
}

.volunteer-positions-list__item .volunteer-position-fields th,
.volunteer-positions-list__item .volunteer-position-fields td {
	padding: 0.4rem 0.6rem 0.4rem 0;
	border-bottom: 1px solid var(--vp-border);
	text-align: left;
	vertical-align: top;
	font-size: var(--vp-font-sm);
}

.volunteer-positions-list__item .volunteer-position-fields tr:last-child th,
.volunteer-positions-list__item .volunteer-position-fields tr:last-child td {
	border-bottom: none;
}

.volunteer-positions-list__item .volunteer-position-fields th {
	width: 33%;
	color: var(--vp-text-muted);
	font-weight: 600;
}

.volunteer-positions-list__more {
	display: inline-block;
	margin-top: 1rem;
	color: var(--vp-accent);
	font-size: var(--vp-font-sm);
	font-weight: 600;
	text-decoration: none;
}

.volunteer-positions-list__more:hover {
	text-decoration: underline;
}

.volunteer-positions-list__empty {
	padding: 1.5rem;
	background: var(--vp-bg-muted);
	border-radius: var(--vp-radius);
}

.volunteer-positions-list__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

.volunteer-positions-list__pagination a,
.volunteer-positions-list__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.5rem;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius);
	text-decoration: none;
	color: var(--vp-text);
}

.volunteer-positions-list__pagination a:hover {
	border-color: var(--vp-border-hover);
}

.volunteer-positions-list__pagination span.current {
	background: var(--vp-accent);
	border-color: var(--vp-accent);
	color: #fff;
}
