/**
 * Jobs (inc/jobs/): the Current Openings listing (/careers/current-openings/, archive-os_job.html) and a
 * role's page (single-os_job.html). Loaded in <head> on those pages only, after the styles they
 * build on: the listing = the search results page's navy hero (os-search.css) + the blog
 * listing's section, Filter popup, results row, loader and pagination (os-blog.css); a role =
 * the same navy band (os-blog.css hero) and the blog post's body (os-post.css) with the event
 * page's sidebar box as the model (os-event.css); the closing panel is the Careers page's
 * (os-careers.css).
 * Here: the hero's lead and count, Sort, the Filter popup's four groups, the role rows, the
 * facts with their line icons, skill tags, the Role Details box, the description and Similar
 * roles.
 */

/* ---------- Facts with line icons (rows, banner): location, experience, posted, job ID ---------- */
.os-job-facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
}
.os-job-facts > * { margin: 0; }
.os-job-fact {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.4;
	color: var(--wp--custom--color--tertiary);
}
.os-job-fact:empty { display: none; }
.os-job-fact::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background-color: var(--wp--preset--color--brand);
	-webkit-mask: var(--os-job-icon) center / contain no-repeat;
	mask: var(--os-job-icon) center / contain no-repeat;
}
.os-job-fact--place,
.os-job-box__fact--place { --os-job-icon: url("../images/ui/map-pin.svg"); }
.os-job-fact--experience,
.os-job-box__fact--experience { --os-job-icon: url("../images/ui/briefcase.svg"); }
.os-job-fact--posted,
.os-job-box__fact--posted { --os-job-icon: url("../images/ui/calendar.svg"); }
.os-job-fact--code,
.os-job-box__fact--code { --os-job-icon: url("../images/ui/hash.svg"); }
.os-job-box__fact--education { --os-job-icon: url("../images/ui/graduation-cap.svg"); }
.os-job-box__fact--type { --os-job-icon: url("../images/ui/clock.svg"); }
/* "Posted 22 Oct 2026" (os_job_posted_label): the word in the same grey, the date a shade darker. */
.os-job-posted__label { margin: 0; }
/* In the banner's date line (not a fact row, no flex gap): a space after the word. */
.os-post-meta .os-job-posted__label { margin-right: 0.4em; }
.os-job-fact time { color: var(--wp--preset--color--ink-soft); }

/* Skill tags: the post page's tags (os-post.css .os-post-tags), each a link to the listing
   filtered by that skill. */
.os-job-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.os-job-tags .wp-block-post-terms__separator { display: none; }
.os-job-tags a {
	padding: 6px 12px;
	border-radius: var(--wp--preset--border-radius--xs);
	background: var(--wp--custom--color--tag);
	font-size: 12.5px;
	font-weight: 600;
	line-height: normal;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--os-fast) var(--os-ease), color var(--os-fast) var(--os-ease);
}
.os-job-tags a:hover { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--white); }
.os-job-tags a:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 2px; }

/* ---------- Listing hero (os/jobs-hero): the search hero with a lead line and the count ---------- */
.os-jobs-hero__head > .os-jobs-hero__lead {
	max-width: 720px;
	margin-top: 16px;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: rgb(255 255 255 / 0.86);
}
.os-jobs-hero__head > .os-jobs-hero__count {
	margin-top: 16px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: rgb(255 255 255 / 0.8);
}
.os-jobs-hero__count strong { font-weight: 700; color: var(--wp--preset--color--white); }

/* ---------- Section head: Sort beside the Filter button ---------- */
.os-jobs-list__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}
.os-jobs-list__tools > * { margin: 0; }
.os-jobs-sort { display: flex; align-items: center; }
.os-jobs-sort:empty { display: none; }
form.os-jobs-sort { position: relative; gap: 10px; }
.os-jobs-sort__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--custom--color--tertiary);
}
/* The Filter button's field (os-blog.css .os-filter__toggle) with its arrow. */
.os-jobs-sort__select {
	box-sizing: border-box;
	height: 45px;
	padding: 0 40px 0 16px;
	border: 1px solid var(--wp--custom--color--field-border);
	border-radius: 8px;
	background: var(--wp--preset--color--white) url("../images/ui/nav-arrow-down.svg") right 14px center / 18px no-repeat;
	font: 500 var(--wp--preset--font-size--small) / normal var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--ink);
	appearance: none;
	cursor: pointer;
	transition: border-color var(--os-fast) var(--os-ease);
}
.os-jobs-sort__select:hover { border-color: var(--wp--preset--color--brand); }
.os-jobs-sort__select:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 2px; }
.os-jobs-sort__go {
	height: 45px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--brand);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	font: 600 var(--wp--preset--font-size--small) / normal var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--brand);
	cursor: pointer;
}
/* With JavaScript the select applies itself (os-jobs.js). */
.os-js .os-jobs-sort__go { display: none; }

/* ---------- Filter popup: Experience and Country stacked on the left, City (two columns) on the
   right, Skill across the bottom with a search box (os-jobs.js); the groups scroll together.
   Phones keep the accordions, one column. ---------- */
.os-jobs-list .os-filter__panel { width: min(820px, calc(100vw - 2 * var(--wp--custom--gutter))); }
.os-jobs-list .os-filter__groups {
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 28px 32px;
	max-height: min(62vh, 560px);
}
.os-jobs-list .os-filter__group[data-param="experience"] { grid-area: 1 / 1; }
.os-jobs-list .os-filter__group[data-param="country"] { grid-area: 2 / 1; }
.os-jobs-list .os-filter__group[data-param="city"] { grid-area: 1 / 2 / 3 / 3; }
.os-jobs-list .os-filter__group[data-param="skill"] { grid-area: 3 / 1 / 4 / -1; }
.os-jobs-list .os-filter__group:is([data-param="city"], [data-param="skill"]) .os-filter__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 24px;
}
.os-jobs-list .os-filter__group[data-param="skill"] .os-filter__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.os-jobs-list .os-filter__group[data-param="skill"] .os-filter__list > .os-jobs-skill-find,
.os-jobs-list .os-filter__group[data-param="skill"] .os-filter__list > .os-jobs-skill-none { grid-column: 1 / -1; }
.os-jobs-list .os-filter__option[hidden] { display: none; }
.os-jobs-skill-find {
	box-sizing: border-box;
	width: 100%;
	max-width: 360px;
	height: 40px;
	padding: 8px 14px;
	border: 1px solid rgb(255 255 255 / 0.4);
	border-radius: 8px;
	background: rgb(255 255 255 / 0.1);
	font: 400 var(--wp--preset--font-size--medium) var(--wp--preset--font-family--body); /* 16px: no zoom on phones */
	color: var(--wp--preset--color--white);
	outline: none;
}
.os-jobs-skill-find::placeholder { color: rgb(255 255 255 / 0.7); opacity: 1; }
.os-jobs-skill-find:focus { border-color: var(--wp--preset--color--white); box-shadow: 0 0 0 3px rgb(255 255 255 / 0.25); }
.os-jobs-skill-none { margin: 0; font-size: var(--wp--preset--font-size--small); color: rgb(255 255 255 / 0.8); }

/* ---------- Role rows (listing, Similar roles) ---------- */
.os-jobs-rows {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.os-jobs-rows > li { margin: 0; }
.os-job-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px 40px;
	padding: 24px 28px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--white);
	transition: border-color var(--os-fast) var(--os-ease), box-shadow var(--os-base) var(--os-ease), transform var(--os-base) var(--os-ease);
}
.os-job-row:hover {
	border-color: rgb(0 80 158 / 0.3);
	box-shadow: 0 12px 32px rgb(6 41 110 / 0.08);
	transform: translateY(-2px);
}
.os-job-row > * { margin: 0; }
.os-job-row__text { display: grid; gap: 10px; min-width: 0; }
.os-job-row__text > * { margin: 0; }
.os-job-row__title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.os-job-row__title a {
	color: var(--wp--preset--color--ink-deep);
	text-decoration: none;
	transition: color var(--os-fast) var(--os-ease);
}
/* The title link covers the row: a click anywhere opens the role. The skill tags stay their own
   links above it. */
.os-job-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.os-job-row:hover .os-job-row__title a { color: var(--wp--preset--color--brand); }
.os-job-row__title a:focus-visible { outline: none; }
.os-job-row:has(.os-job-row__title a:focus-visible) { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 2px; }
.os-job-row__skills { position: relative; z-index: 1; margin-top: 4px; }
.os-job-row__skills:empty { display: none; }
/* Up to six skills in a row; the role's page lists them all. */
.os-job-row__skills a:nth-of-type(n + 7) { display: none; }
.os-job-row__more { position: relative; z-index: 1; white-space: nowrap; }

.os-jobs-none { display: grid; gap: 24px; padding: 24px 0 8px; }
.os-jobs-none > * { margin: 0; }
.os-jobs-none__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- A role's banner (os/job-hero): the listing's navy band (user, 2026-10-24) ---------- */
/* Breadcrumbs and the title only: Apply, the facts and a closed role's note are in the Role
   Details box (user, 2026-10-24). */
.os-job-hero { padding-bottom: 56px; }

/* ---------- A role's body (os/job-body): skills, description, the Role Details box ---------- */
.os-job-article > * + * { margin-top: 48px; }
.os-job-article > .os-job-section-title + * { margin-top: 20px; }
.os-job-skills > * { margin: 0; }
.os-job-skills > .os-job-section-title + * { margin-top: 20px; }
.os-job-section-title {
	font-size: var(--wp--preset--font-size--title);
	line-height: 1.4;
	letter-spacing: -0.5px;
	color: var(--wp--preset--color--ink-deep);
}
/* The description from PeopleStrong (os_jobs_clean_description): headings, lists and the role
   card table some descriptions open with (JD No., Role, Reporting to). */
.os-job-content > h3 { margin-top: 32px; font-size: var(--wp--preset--font-size--x-large); }
.os-job-content > h3 + * { margin-top: 12px; }
.os-job-content > table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	font-size: var(--wp--preset--font-size--small);
}
.os-job-content :is(td, th) {
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: top;
}
.os-job-content :is(td, th) > * { margin: 0; }
.os-job-content :is(td, th) > * + * { margin-top: 0.5em; }
.os-job-content tr > :first-child { width: 32%; background: var(--wp--preset--color--surface); }
.os-job-content--empty a { color: var(--wp--preset--color--brand); font-weight: 600; }

/* Placement: the box comes first in the page (os/job-body), so below 1100px it opens the body,
   just under the banner; on desktop it's the post body's 337px sidebar column (a wider one was
   tried and dropped, user 2026-10-24), sticking below the header — on windows tall enough to
   show its Apply (its bottom edge there is ~830px). */
@media (min-width: 1101px) and (min-height: 861px) {
	/* os-post.css spreads an article without an index over both columns; a role keeps the box. */
	.os-job-body .os-post-body__grid:has(> .os-job-aside) > .os-post-body__main.os-job-article { grid-column: 1; grid-row: 1; }
	.os-post-body__grid > .os-job-aside { grid-column: 2; grid-row: 1; align-self: stretch; }
	.os-job-aside > .os-job-box { position: sticky; top: calc(var(--os-header-offset) + 24px); }
}
/* Shorter desktop windows: the box goes above the article, full width, as below 1100px, its
   facts in one row (user, 2026-10-24: "move the column top like how we move mobile"), so Apply
   is on the first screen. */
@media (min-width: 1101px) and (max-height: 860px) {
	.os-job-body .os-post-body__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.os-job-body .os-job-box { gap: 16px; padding: 28px; } /* .os-job-body: the base box rule comes later */
}
/* The box above the article: equal columns, every fact in its column (user, 2026-10-24: "Fix
   the grid to be equal items", Posted under Experience — a short last row stays short, no
   spanning). 901–1365px: three columns; ≤900px: two; ≥1366px (short desktop): one row. */
@media (min-width: 901px) and (max-width: 1100px), (min-width: 1101px) and (max-width: 1365px) and (max-height: 860px) {
	.os-job-box__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 900px) {
	.os-job-box__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (min-width: 1366px) and (max-height: 860px) {
	.os-job-box__facts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 24px; }
}

/* The box: the event box's look (os-event.css) — light brand surface with teal / violet glows,
   a techniqk hairline on top, facts as rows with line icons in brand rings. */
.os-job-box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* a long value can't widen the box */
	gap: 20px;
	overflow: hidden;
	padding: 28px 24px 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--lg);
	background:
		radial-gradient(70% 140% at 100% 0%, rgb(20 199 180 / 0.08) 0, rgb(20 199 180 / 0) 60%),
		radial-gradient(60% 120% at 0% 100%, rgb(108 92 231 / 0.07) 0, rgb(108 92 231 / 0) 60%),
		var(--wp--custom--color--on-brand);
}
.os-job-box::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--wp--preset--gradient--techniqk);
}
.os-job-box > * { margin: 0; }
.os-job-box__facts { display: grid; margin: 0; }
.os-job-box__fact {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-content: center;
	column-gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid rgb(0 80 158 / 0.1); /* below each, so the last one sets off Apply */
}
.os-job-box__fact::before,
.os-job-box__fact::after {
	content: "";
	grid-row: 1 / 3;
	grid-column: 1;
	align-self: center;
	justify-self: center;
}
.os-job-box__fact::before {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 1px rgb(0 80 158 / 0.16);
}
.os-job-box__fact::after {
	width: 20px;
	height: 20px;
	background-color: var(--wp--preset--color--brand);
	-webkit-mask: var(--os-job-icon) center / contain no-repeat;
	mask: var(--os-job-icon) center / contain no-repeat;
}
.os-job-box__fact dt,
.os-job-box__fact dd { grid-column: 2; margin: 0; }
.os-job-box__fact dt {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	color: var(--wp--custom--color--tertiary);
}
.os-job-box__fact dd {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
	overflow-wrap: anywhere;
}
.os-job-box__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.os-job-box__note {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--custom--color--tertiary);
}

/* ---------- Similar roles (os/jobs-related) ---------- */
.os-jobs-related {
	padding-top: 64px;
	padding-bottom: 64px;
	background: var(--wp--preset--color--surface);
}
.os-jobs-related > * { margin-block: 0; }
.os-jobs-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
}
.os-jobs-related__head > * { margin: 0; }
.os-jobs-related__head h2 { margin: var(--wp--custom--section-head-gap) 0 0; }
.os-jobs-related > .os-jobs-related__query { margin-top: 32px; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1100px) {
	.os-jobs-list .os-filter__group[data-param="skill"] .os-filter__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.os-job-body .os-post-body__grid { gap: 40px; }
	.os-job-box { gap: 16px; padding: 28px; }
}
@media (max-width: 900px) {
	.os-jobs-list__tools { justify-content: stretch; }
	.os-jobs-list__tools > .os-blog-filters { flex: 1 1 200px; }
}
@media (max-width: 768px) {
	.os-jobs-list .os-filter__groups { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.os-jobs-list .os-filter__group { grid-area: auto; }
	.os-jobs-list .os-filter__group:is([data-param="city"], [data-param="skill"]) .os-filter__list { grid-template-columns: minmax(0, 1fr); }
	.os-job-row { grid-template-columns: minmax(0, 1fr); padding: 20px; }
	.os-job-row__title { font-size: var(--wp--preset--font-size--large); }
	.os-job-row__skills a:nth-of-type(n + 5) { display: none; }
	.os-jobs-related { padding-top: 40px; padding-bottom: 40px; }
	.os-jobs-related > .os-jobs-related__query { margin-top: 24px; }
	.os-job-article > * + * { margin-top: 40px; }
	.os-job-content tr > :first-child { width: 40%; }
}
@media (max-width: 640px) {
	.os-job-hero { padding-bottom: 40px; }
	/* Above the description on phones: compact, the facts two by two without their rings. */
	.os-job-box { gap: 16px; padding: 24px 20px 20px; }
	.os-job-box__facts { column-gap: 16px; }
	.os-job-box__fact { grid-template-columns: minmax(0, 1fr); padding: 10px 0; }
	.os-job-box__fact::before,
	.os-job-box__fact::after { display: none; }
	.os-job-box__fact :is(dt, dd) { grid-column: 1; }
	.os-job-box__fact dd { font-size: var(--wp--preset--font-size--small); }
	.os-job-section-title { font-size: var(--wp--preset--font-size--x-large); }
	form.os-jobs-sort { flex: 1 1 100%; }
	.os-jobs-sort__select { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.os-job-row,
	.os-job-row:hover { transform: none; }
}
