/* Workday job board: the Job Board page row (template-parts/flex/flex-jobs.php, inc/workday-jobs.php,
   js/jobs.js), styled after the ClearCompany embed it replaces. Standalone on purpose: style.css
   is not rebuilt from build/sass (see docs/theme.md). */

/* Same spacing as the .embed__wrap row the ClearCompany embed sat in. */
.jobs__wrap {
	padding: 1.6666666667rem 0;
}

.jobs {
	--jobs-accent: #68016e;
	--jobs-panel: #f3f3f4;
	--jobs-rule: #d5d5d5;
	--jobs-muted: #5f636c;
	--jobs-heading: #202124;
	--jobs-field-border: rgba(117, 117, 117, .3);
	padding-bottom: 3.3333333333rem;
	color: #000;
	letter-spacing: .5px;
}

.jobs [hidden] {
	display: none;
}

/* Focus rings only for keyboard focus; the :focus reset must come first. */
.jobs :focus {
	outline: none;
}

.jobs :focus-visible {
	outline: 2px solid var(--jobs-accent);
	outline-offset: 2px;
}

/* Filters */

.jobs__filters {
	display: grid;
	gap: 10px;
	margin: 0 0 20px;
	padding: 15px;
	background: var(--jobs-panel);
}

.jobs__search {
	position: relative;
}

/* Scoped under .jobs to outrank the theme's global input[type=search] / select rules (0,1,1),
   which would otherwise reset the padding that keeps the text and the native clear "x" off the icon. */
.jobs .jobs__search-input {
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 56px 0 20px;
	border: 1px solid var(--jobs-accent);
	border-radius: 0;
	background: var(--jobs-panel);
	color: #000;
	font: inherit;
	font-size: 16px;
	letter-spacing: normal;
	-webkit-appearance: none;
	appearance: none;
}

.jobs .jobs__search-input::placeholder {
	color: var(--jobs-muted);
	opacity: 1;
}

.jobs__search-icon {
	position: absolute;
	top: 50%;
	right: 18px;
	color: var(--jobs-accent);
	transform: translateY(-50%);
	pointer-events: none;
}

.jobs__filter-row {
	display: grid;
	gap: 10px;
}

.jobs .jobs__select {
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 44px 0 16px;
	border: 1px solid var(--jobs-field-border);
	border-radius: 4px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
	color: #000;
	font: inherit;
	font-size: 18px;
	letter-spacing: .5px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.jobs__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.jobs__submit {
	flex: 1 1 auto;
	height: 56px;
	margin: 0;
	padding: 0 16px;
	border: 2px solid var(--jobs-accent);
	border-radius: 4px;
	background: var(--jobs-accent);
	color: #fff;
	font: inherit;
	font-size: 16px;
	letter-spacing: normal;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}

.jobs__submit:hover {
	background: #fff;
	color: var(--jobs-accent);
}

.jobs__reset {
	padding: 10px;
	color: var(--jobs-accent);
	font-size: 16px;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.jobs__reset:hover {
	color: #000;
}

/* Portal link, result count */

.jobs__portal {
	margin: 15px 0;
	font-size: 18px;
	line-height: 1.4;
}

.jobs__portal a,
.jobs__empty a,
.jobs__notice a {
	color: var(--jobs-accent);
	text-decoration: underline;
}

.jobs__portal a:hover,
.jobs__empty a:hover,
.jobs__notice a:hover {
	color: #000;
}

.jobs__status {
	margin: 0 0 20px;
	color: var(--jobs-muted);
	font-size: 16px;
}

/* Department groups */

.jobs__list {
	outline: none;
}

.jobs__group {
	margin: 0 0 25px;
	padding: 0 0 25px;
	border-bottom: 1px solid var(--jobs-rule);
}

.jobs__group-title {
	margin: 0 0 15px;
	color: var(--jobs-heading);
	font-family: inherit;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .5px;
	text-transform: none;
}

.jobs__group-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jobs__item {
	margin: 0 0 14px;
	padding: 0;
	line-height: 1.2;
}

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

.jobs__item::before {
	content: none;
}

.jobs__item-title {
	color: var(--jobs-accent);
	font-size: 18px;
	line-height: 1.2;
	text-decoration: none;
}

.jobs__item-title:hover {
	color: #000;
	text-decoration: underline;
}

.jobs__item-location {
	display: block;
	margin-top: 4px;
	color: var(--jobs-muted);
	font-size: 16px;
	line-height: 1.3;
}

.jobs__empty,
.jobs__notice {
	margin: 0 0 25px;
	font-size: 18px;
}

/* Pagination */

.jobs__pagination-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jobs__pagination-list li::before {
	content: none;
}

.jobs__page {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--jobs-accent);
	font-size: 18px;
	text-decoration: none;
}

.jobs__page:hover {
	background: var(--jobs-panel);
}

/* Two classes, so hovering the current page doesn't repaint it. */
.jobs__page.jobs__page--current {
	background: var(--jobs-accent);
	color: #fff;
}

/* Job detail */

.jobs__back {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 15px 0;
	color: var(--jobs-accent);
	font-size: 20px;
	text-decoration: none;
}

.jobs__back::before {
	content: "";
	width: 10px;
	height: 10px;
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(45deg);
}

.jobs__back:hover {
	color: #000;
}

.jobs__detail-title {
	margin: 0 0 10px;
	color: #000;
	font-family: inherit;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: .5px;
	text-transform: none;
}

.jobs__detail-meta {
	display: flex;
	flex-wrap: wrap;
	row-gap: 4px;
	margin: 0 0 20px;
	padding: 0;
	color: var(--jobs-muted);
	font-size: 16px;
	line-height: 1.4;
	list-style: none;
}

.jobs__detail-meta li {
	margin: 0;
	padding: 0;
}

/* Separator after each item, so a wrapped line never starts with a stray dot. */
.jobs__detail-meta li:not(:last-child)::after {
	content: "·";
	margin: 0 10px;
}

.jobs__detail-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px 30px;
	margin: 0 0 25px;
}

.jobs__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 200px;
	min-height: 48px;
	padding: 5px 20px;
	border: 2px solid var(--jobs-accent);
	border-radius: 4px;
	background: var(--jobs-accent);
	color: #fff;
	font-size: 21px;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: uppercase;
}

.jobs__apply:hover {
	background: #fff;
	color: var(--jobs-accent);
}

.jobs__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.jobs__share-label {
	color: var(--jobs-muted);
	font-size: 16px;
	text-transform: uppercase;
}

.jobs__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--jobs-panel);
	color: var(--jobs-accent);
	cursor: pointer;
}

.jobs__share-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.jobs__share-link:hover {
	background: var(--jobs-accent);
	color: #fff;
}

.jobs__copy-status {
	color: var(--jobs-muted);
	font-size: 14px;
}

.jobs__description {
	font-size: 16px;
	line-height: 1.6;
}

.jobs__description p {
	margin: 0 0 1em;
}

.jobs__description ul,
.jobs__description ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

.jobs__description ul {
	list-style: disc;
}

.jobs__description ol {
	list-style: decimal;
}

.jobs__description li {
	margin: 0 0 .25em;
	padding: 0;
}

.jobs__description li::before {
	content: none;
}

.jobs__description a {
	color: var(--jobs-accent);
	text-decoration: underline;
}

.jobs__detail-footer {
	margin-top: 30px;
}

@media (min-width: 992px) {
	.jobs__filters {
		gap: 5px;
	}

	.jobs .jobs__search-input {
		height: 72px;
		padding-left: 26px;
		font-size: 18px;
	}

	.jobs__filter-row {
		grid-template-columns: 1fr 1fr auto;
		gap: 5px;
	}

	.jobs .jobs__select {
		height: 72px;
		font-size: 22px;
	}

	.jobs__submit {
		height: 72px;
		font-size: 21px;
	}

	.jobs__reset {
		font-size: 21px;
	}

	.jobs__portal {
		font-size: 22px;
	}

	.jobs__group-title {
		font-size: 24px;
	}

	.jobs__item-location {
		font-size: 18px;
	}

	.jobs__back {
		font-size: 24px;
	}

	.jobs__detail-title {
		font-size: 42px;
	}

	.jobs__detail-meta {
		font-size: 18px;
	}
}
