/**
 * Careers — the job openings accordion (apextion/job-openings) and the
 * single role template.
 *
 * Values follow the inline <style> of the live careers.html: navy toggle
 * buttons with a +/− marker, grey panels that slide open by max-height, and a
 * green "Apply Job" button whose address shows in a tooltip on hover.
 */

.ax-career-btn {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 10px;
	padding: 18px 18px 18px 58px;
	border: none;
	outline: none;
	background-color: #132146;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	text-align: left;
	cursor: pointer;
}

.ax-career-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.ax-career-btn.is-active,
.ax-career-btn:hover {
	background-color: #555;
}

.ax-career-btn::after {
	content: "\002B";
	float: right;
	margin-left: 5px;
	color: #fff;
	font-weight: 700;
}

.ax-career-btn.is-active::after {
	content: "\2212";
}

/* A briefcase before each role title. */
.ax-career-btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 22px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background-color: #ffb606;
	-webkit-mask: var(--ax-i-briefcase) center / contain no-repeat;
	mask: var(--ax-i-briefcase) center / contain no-repeat;
}

/* A role's description: the open panel, and the single role page. */
.ax-career,
.ax-career-page {
	padding: 0 18px;
	overflow: hidden;
	background-color: #f5f5f5;
	color: #303030;
	font-size: 16px;
	font-weight: 400;
	text-align: justify;
}

/* The live panels open and close with a <br> above and below the text. */
.ax-career::before,
.ax-career::after,
.ax-career-page::before,
.ax-career-page::after {
	content: "";
	display: block;
	height: 24px;
}

.apextion-js .ax-career {
	max-height: 0;
	visibility: hidden;
	transition: max-height 0.2s ease-out, visibility 0s 0.2s;
}

.apextion-js .ax-career.is-open {
	visibility: visible;
	transition: max-height 0.2s ease-out;
}

.ax-career h5,
.ax-career h6,
.ax-career-page h5,
.ax-career-page h6 {
	margin: 0 0 8px;
	font-weight: 700;
	line-height: 1.2;
}

.ax-career h5,
.ax-career-page h5 {
	font-size: 20px;
}

.ax-career h6,
.ax-career-page h6 {
	font-size: 16px;
}

.ax-career p,
.ax-career-page p {
	margin: 0 0 16px;
	line-height: 23px;
}

/* Section headings inside a role: Job Description, then its h6 headings
   (Key responsibilities, Requirements). */
.ax-career h5::before,
.ax-career h6::before,
.ax-career-page h5::before,
.ax-career-page h6::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.5em;
	vertical-align: -0.12em;
	background-color: #132146;
	-webkit-mask: var(--ax-i-file-lines) center / contain no-repeat;
	mask: var(--ax-i-file-lines) center / contain no-repeat;
}

.ax-career h6::before,
.ax-career-page h6::before {
	-webkit-mask-image: var(--ax-i-list-check);
	mask-image: var(--ax-i-list-check);
}

.ax-career h6 ~ h6::before,
.ax-career-page h6 ~ h6::before {
	-webkit-mask-image: var(--ax-i-clipboard-check);
	mask-image: var(--ax-i-clipboard-check);
}

/* Apply Job — the address appears while the row is hovered. */
.ax-career__apply {
	position: relative;
}

.ax-career__apply-btn {
	display: inline-block;
	margin: 0;
	padding: 15px 32px;
	border: none;
	border-radius: 10px;
	background-color: #04aa6d;
	color: #fff;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	vertical-align: top;
	cursor: pointer;
}

.ax-career__apply-btn::before {
	content: "";
	display: inline-block;
	width: 1.25em;
	height: 1em;
	margin-right: 0.6em;
	vertical-align: -0.12em;
	background-color: currentColor;
	-webkit-mask: var(--ax-i-user-plus) center / contain no-repeat;
	mask: var(--ax-i-user-plus) center / contain no-repeat;
}

.ax-career__tip {
	display: none;
	position: absolute;
	bottom: 5%;
	left: calc(12% + 32px); /* clears the button's user-plus icon */
	right: 5%;
	min-width: 10rem;
	padding: 0.5em;
	color: #fff;
}

.ax-career__apply:hover .ax-career__tip,
.ax-career__apply:focus-within .ax-career__tip {
	display: block;
}

.ax-career__tip a {
	padding: 7px 12px;
	border-radius: 5px;
	background-color: #132146;
	color: #fff;
}

.ax-career__tip a:hover {
	background-color: #0e318c;
	color: #fff;
}

/* Role facts (apextion/job-facts), when an editor adds them to a role page. */
.ax-career-facts {
	margin: 0 0 16px;
}

.ax-career-facts__row {
	display: flex;
	gap: 8px;
}

.ax-career-facts dt {
	font-weight: 700;
}

.ax-career-facts dt::after {
	content: ":";
}

.ax-career-facts dd {
	margin: 0;
}
