/* "View Role" pill on WP Job Manager listings inside the careers "Open roles" section (markup: includes/careers.php). */
.career-open-roles .job_listings .job_listing {
	position: relative;
}

.career-open-roles .job_listings .job_listing > a {
	position: relative;
	display: block;
}

.career-open-roles .job_listings .job_listing .dig-view-role {
	position: absolute;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0 !important;
	list-style: none;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 8px 14px 8px 18px;
	font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	border-radius: 999px !important;
	background: rgba(32, 81, 249, 0.1);
	border: 1px solid rgba(26, 63, 204, 0.55);
}

.career-open-roles .job_listings .job_listing:hover .dig-view-role {
	color: #fff;
	background: #2051f9;
	border-color: #2051f9;
}

.career-open-roles .job_listings .job_listing:hover .dig-view-role svg,
.career-open-roles .job_listings .job_listing:hover .dig-view-role .dig-view-role-btn {
	color: #fff !important;
}

.career-open-roles .job_listings .job_listing .dig-view-role svg {
	width: 12px;
	height: 12px;
	color: #2051f9;
}

.career-open-roles .job_listings .job_listing .dig-view-role-btn {
	line-height: 1.45em;
	color: #2051f9;
	padding-left: 14px;
}

.career-open-roles .job_listings .job_listing .dig-view-role-btn:hover {
	color: #fff;
	background: #2051f9;
	border-color: #2051f9;
}

@media (max-width: 767px) {
	.career-open-roles .job_listings .job_listing .dig-view-role {
		position: static;
		transform: none;
		margin-top: 15px !important;
	}

	.career-open-roles .job_listings .job_listing .dig-view-role-btn {
		width: 100%;
	}
}

/* Block version of the open-roles list (page 1610: a core/query on job_listing, one dgk-card row per job): the same
   "View Role" pill on the row's core/read-more link, with the arrow drawn in CSS. */
.career-open-roles .dgn-job .wp-block-read-more.dig-view-role-link {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding: 8px 14px 8px 18px;
	font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.45em;
	color: #2051f9;
	text-decoration: none;
	border-radius: 999px;
	background: rgba(32, 81, 249, 0.1);
	border: 1px solid rgba(26, 63, 204, 0.55);
}

.career-open-roles .dgn-job .wp-block-read-more.dig-view-role-link::after {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9 L9 3 M5 3 H9 V7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9 L9 3 M5 3 H9 V7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.career-open-roles .dgn-job:hover .wp-block-read-more.dig-view-role-link,
.career-open-roles .dgn-job .wp-block-read-more.dig-view-role-link:focus-visible {
	color: #fff;
	background: #2051f9;
	border-color: #2051f9;
}

/* Job page buttons (template single-job_listing): hover states, in the site's v18 button language (About bug sheet
   BUG_017, BUG_019). The design has no job page; these follow its buttons: blue fill darkens and lifts 2px, outline
   buttons and the back link turn blue. */
.single-job_listing .wp-block-button .wp-block-button__link {
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.single-job_listing .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.single-job_listing .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible {
	background-color: #1a3fcc;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -12px rgba(32, 81, 249, .6);
}
.single-job_listing .wp-block-button.is-style-outline:not(.dgn-back) .wp-block-button__link:hover,
.single-job_listing .wp-block-button.is-style-outline:not(.dgn-back) .wp-block-button__link:focus-visible {
	border-color: #2051f9;
	color: #2051f9;
	transform: translateY(-2px);
}
.single-job_listing .dgn-back .wp-block-button__link:hover,
.single-job_listing .dgn-back .wp-block-button__link:focus-visible {
	color: #2051f9;
	border-color: #2051f9;
}
/* the ATS "Apply Now" link inside the job description */
.single-job_listing .apply-btn { transition: background-color .2s ease, transform .2s ease; }
.single-job_listing .apply-btn:hover,
.single-job_listing .apply-btn:focus-visible { background-color: #1a3fcc; transform: translateY(-2px); }
