/* ==========================================================================
   WOW! Jobs — [wow_jobs] openings list on the Employment page.
   Sized and coloured to match Divi's Toggle module so an opening sits
   naturally beside any toggles already on the page.
   ========================================================================== */

.wow-jobs {
	margin: 0 0 30px;
}

.wow-jobs__item {
	border: 1px solid #d9d9d9;
	background-color: #f4f4f4;
	margin: 0 0 10px;
	scroll-margin-top: 140px; /* clear the fixed header when opened from a #job- link */
	transition: background-color 0.2s ease;
}

.wow-jobs__item:last-child {
	margin-bottom: 0;
}

.wow-jobs__item[open] {
	background-color: #fff;
}

/* ---- title row ---- */

.wow-jobs__title,
.wow-jobs__item--empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #666;
}

.wow-jobs__title {
	cursor: pointer;
	list-style: none;
}

.wow-jobs__title::-webkit-details-marker {
	display: none;
}

.wow-jobs__title::marker {
	content: "";
}

.wow-jobs__title:hover .wow-jobs__title-text,
.wow-jobs__item[open] .wow-jobs__title-text {
	color: #333;
}

.wow-jobs__title:focus-visible {
	outline: 2px solid #3b1f59;
	outline-offset: -2px;
}

/* ---- plus / minus icon, drawn so it does not depend on Divi's icon font ---- */

.wow-jobs__icon {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #ccc;
	transition: background-color 0.2s ease;
}

.wow-jobs__icon::before,
.wow-jobs__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 2px;
	margin: -1px 0 0 -4px;
	background-color: #fff;
	transition: transform 0.2s ease;
}

.wow-jobs__icon::after {
	transform: rotate(90deg);
}

.wow-jobs__item[open] .wow-jobs__icon::after {
	transform: rotate(0deg);
}

.wow-jobs__title:hover .wow-jobs__icon {
	background-color: #999;
}

/* ---- body ---- */

.wow-jobs__content {
	padding: 0 20px 20px;
}

.wow-jobs__content > *:last-child {
	margin-bottom: 0;
}

.wow-jobs__content p {
	padding-bottom: 0;
	margin: 0 0 1em;
}

.wow-jobs__content ul,
.wow-jobs__content ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
	line-height: 1.7;
}

.wow-jobs__download {
	margin-top: 1.25em !important;
}

.wow-jobs__button {
	display: inline-block;
	background-color: #FF0158;
	color: #fff !important;
	text-decoration: none;
	padding: 11px 30px;
	border-radius: 50px;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.wow-jobs__button:hover,
.wow-jobs__button:focus-visible {
	background-color: #ee9b00;
}

.wow-jobs__filemeta {
	margin-left: 8px;
	font-size: 0.85rem;
	color: #888;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.wow-jobs__button {
		display: block;
	}
	.wow-jobs__filemeta {
		display: block;
		margin: 6px 0 0;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wow-jobs__item,
	.wow-jobs__icon,
	.wow-jobs__icon::before,
	.wow-jobs__icon::after,
	.wow-jobs__button {
		transition: none;
	}
}
