/* =========================================================
   Careers page
   Loaded only on /careers/; all page content remains editable in WordPress.
   ========================================================= */

body #breadcrumbs {
	display: none !important;
}

body #primary,
body article.page {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

body article.page > .entry-header {
	box-sizing: border-box;
	width: 100vw;
	margin: 0 0 48px calc(50% - 50vw);
	padding: 56px 0 52px;
	border-bottom: 1px solid #d5d5d2;
	background: #eeeeec;
}

body article.page > .entry-header > .entry-title {
	box-sizing: border-box;
	width: calc(100% - 96px);
	max-width: 1180px;
	margin: 0 auto;
	color: #202020;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 38px;
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

body article.page > .entry-header > .entry-title::before {
	display: block;
	margin-bottom: 13px;
	color: #a11d22;
	font-family: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Helvetica, sans-serif;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	content: "IPRECIATION GALLERY";
}

body article.page > .entry-content {
	box-sizing: border-box;
	width: calc(100% - 96px);
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 0 84px;
	color: #4f4f4f;
	font-family: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.72;
}

body .entry-content > .wp-block-image:first-child {
	width: 100%;
	margin: 0 0 42px;
	overflow: hidden;
	background: #e5e5e3;
}

body .entry-content > .wp-block-image:first-child a,
body .entry-content > .wp-block-image:first-child img {
	display: block;
	width: 100%;
}

body .entry-content > .wp-block-image:first-child a {
	text-decoration: none !important;
}

body .entry-content > .wp-block-image:first-child img {
	height: auto;
	margin: 0;
}

body .entry-content p,
body .entry-content li,
body .entry-content .s7 {
	color: #4f4f4f;
	font-size: 15px;
	line-height: 1.72;
}

body .entry-content p {
	max-width: 900px;
	margin: 0 0 18px;
	text-align: left !important;
}

/* Keep inline bold text aligned with the surrounding English or Chinese copy. */
body .entry-content p strong,
body .entry-content li strong,
body .entry-content .s7 strong {
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	letter-spacing: inherit;
}

/* Job titles represented by the first paragraph or the paragraph after a divider. */
body .entry-content > p:first-of-type,
body .entry-content > hr + p,
body .entry-content > .wp-block-separator + p {
	max-width: none;
	margin: 0 0 24px;
	color: #202020;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 27px;
	line-height: 1.22;
}

body .entry-content > p:first-of-type > strong:only-child,
body .entry-content > hr + p > strong:only-child,
body .entry-content > .wp-block-separator + p > strong:only-child {
	font-weight: 400;
}

/* Gutenberg h3 headings, including Driver and the Chinese subsections. */
body .entry-content > h3.wp-block-heading {
	max-width: 900px;
	margin: 44px 0 18px;
	color: #202020;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
}

body .entry-content > h3.wp-block-heading:first-of-type {
	margin-top: 54px;
	padding-top: 42px;
	border-top: 1px solid #d5d5d2;
	font-size: 27px;
}

body .entry-content > h3.wp-block-heading strong {
	font-weight: 400;
}

/*
 * Section labels use one consistent treatment regardless of whether WordPress
 * stores them as a bold paragraph, an underlined span, or an h3 block.
 * The first h3 remains the larger Driver job title.
 */
body .entry-content > p > strong:only-child,
body .entry-content p > span[style*="text-decoration: underline"],
body .entry-content > h3.wp-block-heading:not(:first-of-type) {
	display: block;
	max-width: 900px;
	margin: 30px 0 12px;
	padding: 0;
	border: 0;
	color: #2d2d2d;
	font-family: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-decoration: none !important;
	text-transform: uppercase;
}

body .entry-content > p > strong:only-child,
body .entry-content p > span[style*="text-decoration: underline"] {
	display: inline-block;
	margin-top: 12px;
	margin-bottom: 0;
}

/*
 * The Driver section begins with an h3 followed by its About label.
 * Style the paragraph itself so theme paragraph/heading rules cannot make it
 * appear as a large serif subheading.
 */
body .entry-content > h3.wp-block-heading:first-of-type + p {
	max-width: 900px;
	margin: 30px 0 12px;
	padding: 0;
	color: #2d2d2d;
	font-family: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body .entry-content > h3.wp-block-heading:first-of-type + p > strong:only-child {
	display: inline;
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

/* Keep paragraph-based job titles distinct from section labels. */
body .entry-content > p:first-of-type > strong:only-child,
body .entry-content > hr + p > strong:only-child,
body .entry-content > .wp-block-separator + p > strong:only-child {
	display: inline;
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
}

/*
 * All job titles share the Driver heading treatment. Internship Opportunity
 * may be saved as either a bold paragraph or an h3 after a separator.
 */
body .entry-content > h3.wp-block-heading:first-of-type,
body .entry-content > p:first-of-type,
body .entry-content > hr + p,
body .entry-content > .wp-block-separator + p,
body .entry-content > hr + h3.wp-block-heading,
body .entry-content > .wp-block-separator + h3.wp-block-heading {
	max-width: 900px;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	color: #202020;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 27px;
	font-weight: 400;
	line-height: 1.22;
	letter-spacing: normal;
	text-transform: none;
}

body .entry-content > hr + h3.wp-block-heading,
body .entry-content > .wp-block-separator + h3.wp-block-heading {
	margin-top: 0;
}

/* Standard Gutenberg lists. */
body .entry-content ul.wp-block-list,
body .entry-content ol.wp-block-list {
	box-sizing: border-box;
	max-width: 900px;
	margin: 4px 0 30px;
	padding: 0;
	list-style: none;
}

body .entry-content ul.wp-block-list > li,
body .entry-content ol.wp-block-list > li {
	position: relative;
	margin: 0 0 8px;
	padding: 0 0 0 20px;
	border: 0;
}

body .entry-content ul.wp-block-list > li::before,
body .entry-content ol.wp-block-list > li::before {
	position: absolute;
	top: 0.78em;
	left: 2px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #a11d22;
	content: "";
}

/* Older pasted HTML bullet rows used in the internship section. */
body .entry-content .s7 {
	position: relative;
	box-sizing: border-box;
	max-width: 900px;
	margin: 0 0 8px;
	padding: 0 0 0 20px;
}

body .entry-content .s7 > .s6:first-child {
	position: absolute;
	top: 0;
	left: 2px;
	color: #a11d22;
}

/* Dividers separate complete job listings. */
body .entry-content hr,
body .entry-content .wp-block-separator {
	width: 100%;
	height: 0;
	margin: 54px 0 44px;
	padding: 0;
	border: 0;
	border-top: 1px solid #d5d5d2;
	background: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

body .entry-content a:not(.btn),
body .entry-content a:not(.btn):visited {
	color: #4f4f4f !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 4px;
}

body .entry-content a:not(.btn):hover,
body .entry-content a:not(.btn):focus {
	color: #a11d22 !important;
}

body .entry-content > p:empty {
	display: none;
}

@media screen and (max-width: 820px) {
	body article.page > .entry-header {
		margin-bottom: 36px;
		padding: 44px 0 41px;
	}

	body article.page > .entry-header > .entry-title,
	body article.page > .entry-content {
		width: calc(100% - 40px);
	}

	body article.page > .entry-header > .entry-title {
		font-size: 32px;
	}

	body article.page > .entry-content {
		padding-bottom: 62px;
	}

	body .entry-content > .wp-block-image:first-child {
		margin-bottom: 32px;
	}

	body .entry-content > h3.wp-block-heading:first-of-type {
		margin-top: 44px;
		padding-top: 34px;
	}
}

@media screen and (max-width: 520px) {
	body article.page > .entry-header {
		margin-bottom: 28px;
		padding: 36px 0 33px;
	}

	body article.page > .entry-header > .entry-title,
	body article.page > .entry-content {
		width: calc(100% - 32px);
	}

	body article.page > .entry-header > .entry-title {
		font-size: 27px;
	}

	body article.page > .entry-header > .entry-title::before {
		font-size: 9px;
	}

	body article.page > .entry-content,
	body .entry-content p,
	body .entry-content li,
	body .entry-content .s7 {
		font-size: 14px;
		line-height: 1.68;
	}

	body .entry-content > p:first-of-type,
	body .entry-content > hr + p,
	body .entry-content > .wp-block-separator + p,
	body .entry-content > h3.wp-block-heading:first-of-type {
		font-size: 23px;
	}

	body .entry-content > h3.wp-block-heading {
		margin-top: 34px;
		font-size: 20px;
	}

	body .entry-content > p > strong:only-child,
	body .entry-content p > span[style*="text-decoration: underline"],
	body .entry-content > h3.wp-block-heading:not(:first-of-type),
	body .entry-content > h3.wp-block-heading:first-of-type + p {
		font-size: 14px;
	}

	body .entry-content > h3.wp-block-heading:not(:first-of-type) {
		margin: 26px 0 10px;
	}

	body .entry-content > p:first-of-type > strong:only-child,
	body .entry-content > hr + p > strong:only-child,
	body .entry-content > .wp-block-separator + p > strong:only-child {
		font-size: inherit;
	}

	body .entry-content > h3.wp-block-heading:first-of-type {
		margin-top: 38px;
		padding-top: 30px;
		border-top: 1px solid #d5d5d2;
	}

	body .entry-content > hr + h3.wp-block-heading,
	body .entry-content > .wp-block-separator + h3.wp-block-heading {
		font-size: 23px;
	}

	body .entry-content hr,
	body .entry-content .wp-block-separator {
		margin: 42px 0 34px;
	}
}
