/* Layout of the job page modeled on the common job board listing: logo + title + meta, salary row, text, perks */
.dbj-job {
	max-width: 960px;
	margin: 0 auto;
	padding: 140px 20px 80px;
}

.dbj-back {
	display: inline-block;
	margin-bottom: 24px;
}

.dbj-job-header {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid #E4ECF4;
}

.dbj-job-header h1 {
	margin: 0 0 12px;
	font-size: 40px;
	line-height: 1.2;
	font-weight: 700;
	color: #131313;
}

.dbj-job-logo {
	flex: none;
	border-radius: 50%;
}

.dbj-job-meta {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	font-size: 17px;
	color: #615C5C;
}

.dbj-job-meta span + span:before {
	content: "\2022";
	margin: 0 10px;
	font-size: 12px;
	vertical-align: middle;
}

.dbj-job-company {
	color: #2878C0;
}

.dbj-job-salary {
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid #E4ECF4;
	color: #615C5C;
}

.dbj-job-salary strong {
	margin-left: 6px;
	color: #131313;
}

.dbj-job-description {
	margin: 32px 0 56px;
	font-size: 17px;
	line-height: 1.8;
}

.dbj-job-description p {
	margin: 0 0 14px;
	line-height: inherit;
}

/* Job texts are often pasted from a job board, with h2-h4 section titles */
.dbj-job-description h2,
.dbj-job-description h3,
.dbj-job-description h4 {
	margin: 56px 0 14px;
	font-size: 24px;
	line-height: 1.3;
	color: #131313;
}

.dbj-job-description h2:first-child,
.dbj-job-description h3:first-child,
.dbj-job-description h4:first-child,
.dbj-job-description > :first-child > :first-child {
	margin-top: 0;
}

/* Plain bullets with the size of the paragraphs, instead of the big list style of the theme */
.dbj-job-description ul {
	padding-left: 1.4em;
}

.dbj-job-description li {
	font-size: inherit;
	line-height: inherit;
	text-indent: 0;
	margin-bottom: 6px;
	list-style: disc;
	background: none;
}

.dbj-job-description li:before {
	content: none;
}

.dbj-perks {
	margin: 0 0 56px;
}

.dbj-perks h2 {
	margin: 0 0 6px;
	font-size: 40px;
	line-height: 1.2;
	color: #131313;
}

.dbj-perks-intro {
	margin: 0 0 48px;
	font-size: 17px;
}

.dbj-perks ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px 32px;
	margin: 0;
	padding: 0;
}

.dbj-perks li {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	text-indent: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: #131313;
	background: none;
}

.dbj-perks li:before {
	content: none;
}

.dbj-perks li.dbj-perk-more {
	display: none;
}

.dbj-perks.is-open li.dbj-perk-more {
	display: flex;
}

/* The icons are drawn on 24px: 1.2 gives a 2px line at 40px instead of a thick scaled up one */
.dbj-perks .dbj-icon {
	width: 40px;
	height: 40px;
	stroke-width: 1.2;
	color: #2878C0;
}

.dbj-perks-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 48px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 500;
	color: #2878C0;
	cursor: pointer;
}

.dbj-perks-toggle .dbj-icon {
	width: 18px;
	height: 18px;
	stroke-width: 2;
	color: inherit;
}

@media (max-width: 600px) {
	.dbj-job-header {
		gap: 16px;
	}

	.dbj-job-header h1 {
		font-size: 28px;
	}

	.dbj-job-logo {
		width: 72px;
		height: 72px;
	}

	.dbj-perks h2 {
		font-size: 28px;
	}

	.dbj-perks ul {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 16px;
	}
}

.dbj-company {
	margin: 0 0 56px;
	padding-top: 56px;
	border-top: 1px solid #E4ECF4;
}

.dbj-company-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 20px;
}

.dbj-company-head h2 {
	max-width: 50%;
	margin: 0;
	font-size: 40px;
	line-height: 1.2;
	color: #131313;
}

.dbj-company-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	white-space: nowrap;
}

.dbj-company-link:link,
.dbj-company-link:visited {
	color: #2878C0;
}

.dbj-company-link .dbj-icon {
	width: 20px;
	height: 20px;
	stroke-width: 2;
}

/* Text a bit wider than the image, as on the job boards; minmax(0, ...) so the content can not stretch a column */
.dbj-company-body {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 72px;
	align-items: start;
}

.dbj-company-text {
	font-size: 17px;
	line-height: 1.8;
}

.dbj-company-text p {
	margin: 0 0 24px;
	line-height: inherit;
}

.dbj-company-image img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 760px) {
	.dbj-company-head {
		flex-direction: column;
		gap: 8px;
	}

	.dbj-company-head h2 {
		max-width: none;
		font-size: 28px;
	}

	.dbj-company-body {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.dbj-company-image {
		order: -1;
	}
}

.dbj-apply-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	display: flex;
	justify-content: flex-end;
	padding: 12px max(20px, calc((100vw - 960px) / 2));
	background: #fff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s;
}

.dbj-apply-bar.is-hidden {
	transform: translateY(100%);
}

.dbj-apply-bar .dbj-submit {
	color: #fff;
	text-decoration: none;
}

.dbj-apply {
	border-top: 1px solid #D8E4EF;
	padding-top: 32px;
}

.dbj-apply-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
}

.dbj-apply-form input[type="text"],
.dbj-apply-form input[type="email"],
.dbj-apply-form input[type="tel"],
.dbj-apply-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #D8E4EF;
	border-radius: 6px;
	font: inherit;
	color: #424242;
}

.dbj-apply-form input:focus,
.dbj-apply-form textarea:focus {
	border-color: #2878C0;
	box-shadow: 0 0 0 1px #2878C0;
}

.dbj-apply-form .dbj-consent label {
	font-weight: 400;
}

.dbj-field-error {
	display: block;
	margin-top: 4px;
	color: #a1281b;
}

.dbj-field-error[hidden] {
	display: none;
}

.dbj-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dbj-submit {
	display: inline-block;
	padding: 12px 30px;
	border: 0;
	border-radius: 6px;
	background: #2878C0;
	color: #fff;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.dbj-submit:hover {
	background: #1E6AAD;
}

.dbj-message {
	padding: 12px 16px;
	border-radius: 6px;
}

.dbj-message-success {
	background: #e6f4ea;
	color: #1e6b34;
}

.dbj-message-error {
	background: #fdecea;
	color: #a1281b;
}
