/**
 * JFC Job Board
 *
 * One stylesheet, every rule scoped under #jb. The id is deliberate: it out-ranks the
 * WordPress theme's element and class rules by specificity alone, so there is no
 * !important anywhere and no need to reload the theme CSS to win the cascade. Nothing in
 * here reaches outside #jb, so the site header and footer are never affected.
 *
 * Type is inherited from the theme (PT Sans). Colours are the site's navy and sky.
 */

#jb {
	--jb-navy: #1a2540;
	--jb-navy-2: #2b3a5f;
	--jb-sky: #7ec8e3;
	--jb-sky-soft: #e8f5fa;
	--jb-text: #212121;
	--jb-muted: #5b6474;
	--jb-line: #dfe3ea;
	--jb-bg: #f6f8fb;
	--jb-error: #b3261e;
	--jb-radius: 8px;
	--jb-gap: 24px;

	box-sizing: border-box;
	max-width: 1520px; /* same as the site footer's inner width, so the edges line up */
	margin: 0 auto;
	padding: 24px 20px 56px;
	color: var(--jb-text);
	font-size: 17px;
	line-height: 1.55;
	text-align: left;
}

#jb *,
#jb *::before,
#jb *::after { box-sizing: border-box; }

#jb [hidden] { display: none; }

/* ---------------------------------------------------------------- type */

#jb h1,
#jb h2,
#jb h3 {
	margin: 0;
	color: var(--jb-navy);
	font-family: inherit;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
}

#jb h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
#jb h2 { font-size: 1.35rem; }
#jb h3 { font-size: 1.1rem; }

/* Job descriptions come from Bullhorn with headings written as <h3><strong>..</strong></h3>
   (and sometimes h4-h6). The theme paints "h3 strong" light grey, which is unreadable on
   white, so anything inside a board heading takes the heading's own colour and weight. */
#jb h4,
#jb h5,
#jb h6 { margin: 0; color: var(--jb-navy); font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; }

#jb :is(h1, h2, h3, h4, h5, h6) :is(strong, b, em, i, span, u) { color: inherit; font-weight: inherit; }

#jb p { margin: 0 0 1em; }

#jb a { color: var(--jb-navy); text-decoration: underline; text-underline-offset: 2px; }
#jb a:hover { color: var(--jb-navy-2); }

#jb :focus-visible { outline: 3px solid var(--jb-sky); outline-offset: 2px; }

#jb ul,
#jb ol { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------- buttons */

#jb .jb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border: 2px solid var(--jb-navy);
	border-radius: var(--jb-radius);
	background: var(--jb-navy);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

#jb .jb-btn:hover { background: var(--jb-navy-2); border-color: var(--jb-navy-2); color: #fff; }
#jb .jb-btn[disabled] { opacity: 0.6; cursor: progress; }

#jb .jb-btn-ghost { background: transparent; color: var(--jb-navy); }
#jb .jb-btn-ghost:hover { background: var(--jb-sky-soft); border-color: var(--jb-navy); color: var(--jb-navy); }

#jb .jb-btn-lg { padding: 14px 28px; font-size: 1.1rem; }
#jb .jb-btn-block { display: flex; width: 100%; }

#jb .jb-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--jb-navy);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------------------------------------------------------- breadcrumb */

#jb .jb-crumbs { margin-bottom: 16px; font-size: 0.9rem; color: var(--jb-muted); }
#jb .jb-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
#jb .jb-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--jb-line); }
#jb .jb-crumbs a { color: var(--jb-muted); }

/* ---------------------------------------------------------------- head */

#jb .jb-head { margin-bottom: var(--jb-gap); }
#jb .jb-head h1 { margin-bottom: 12px; }
#jb .jb-intro { max-width: 75ch; font-size: 1.1rem; }
#jb .jb-note { max-width: 75ch; margin-bottom: 0; color: var(--jb-muted); }

/* ------------------------------------------------------------ meta row */

#jb .jb-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0 12px; font-size: 0.9rem; }

#jb .jb-meta li {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--jb-bg);
	color: var(--jb-navy);
	white-space: nowrap;
}

#jb .jb-meta li { display: inline-flex; align-items: center; gap: 6px; }

/* Badge icons. Drawn with a CSS mask so they take the badge's own text colour and need no
   icon font, no extra markup and no extra request. */
#jb .jb-meta li::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: var(--jb-icon) center / contain no-repeat;
	mask: var(--jb-icon) center / contain no-repeat;
}

#jb .jb-meta-cat { --jb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
#jb .jb-meta-loc { --jb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.800-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.500'/%3E%3C/svg%3E"); }
#jb .jb-meta-type { --jb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
#jb .jb-meta-date { --jb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E"); }

#jb .jb-meta .jb-meta-cat { background: var(--jb-sky-soft); font-weight: 700; }
#jb .jb-meta .jb-meta-date { background: none; padding-left: 2px; color: var(--jb-muted); }
#jb .jb-meta a { color: inherit; text-decoration: none; }

/* A badge with a link is clickable across the whole pill, icon and padding included:
   the link's hit area is stretched over its badge. */
#jb .jb-meta li { position: relative; }
#jb .jb-meta a::after { content: ""; position: absolute; inset: 0; border-radius: 999px; }
#jb .jb-meta li:has(a) { transition: background-color 0.15s, color 0.15s; }
#jb .jb-meta li:has(a):hover { background: var(--jb-navy); color: #fff; }
#jb .jb-meta a:focus-visible { outline: none; }
#jb .jb-meta a:focus-visible::after { outline: 3px solid var(--jb-sky); outline-offset: 2px; }

#jb .jb-more { margin: 20px 0 0; text-align: center; }
#jb .jb-more + .jb-list { margin-top: 20px; }
#jb .jb-more [aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* -------------------------------------------------------------- layout */

#jb .jb-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--jb-gap); align-items: start; }

#jb .jb-side { position: sticky; top: 110px; }

#jb .jb-filter-panel {
	padding: 20px;
	border-radius: var(--jb-radius);
	background: var(--jb-navy);
	color: #fff;
}

/* ------------------------------------------------------------- filters */

#jb .jb-filters { margin: 0; }
#jb .jb-field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }

#jb .jb-filters label,
#jb .jb-filters .jb-label,
#jb .jb-filters legend {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#jb input[type="text"],
#jb input[type="search"],
#jb input[type="email"],
#jb input[type="tel"],
#jb input[type="file"],
#jb select {
	width: 100%;
	height: auto;
	min-height: 44px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid var(--jb-line);
	border-radius: 6px;
	background: #fff;
	color: var(--jb-text);
	font: inherit;
	line-height: 1.3;
	box-shadow: none;
}

/* Inputs on the navy filter panel: a lighter blue field instead of stark white. */
#jb .jb-filters input[type="text"],
#jb .jb-filters input[type="search"],
#jb .jb-filters select {
	border-color: rgba(255, 255, 255, 0.22);
	background-color: var(--jb-navy-2);
	color: #fff;
}

#jb .jb-filters input::placeholder { color: rgba(255, 255, 255, 0.6); opacity: 1; }
#jb .jb-filters input:focus,
#jb .jb-filters select:focus { border-color: var(--jb-sky); background-color: #34466f; }
#jb .jb-filters select option { background: #fff; color: var(--jb-text); }

#jb input[type="checkbox"] { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--jb-sky); flex: none; }

#jb .jb-cats a,
#jb .jb-checks label {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 6px 8px;
	border-radius: 6px;
	color: #fff;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

#jb .jb-cats li { margin: 0; padding: 0; }
#jb .jb-cats a,
#jb .jb-checks label { padding: 4px 8px; line-height: 1.4; }

#jb .jb-cats a:hover,
#jb .jb-checks label:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

#jb .jb-cats a[aria-current="page"] { background: var(--jb-sky); color: var(--jb-navy); font-weight: 700; }

#jb .jb-n { margin-left: auto; padding-left: 10px; font-size: 0.85rem; opacity: 0.75; font-variant-numeric: tabular-nums; }

/* Long facets (cities) scroll inside the panel. The scrollbar is drawn for the dark
   background: a slim translucent thumb on a transparent track, instead of the browser's
   light default. scrollbar-* is the standard; ::-webkit-scrollbar covers older Safari. */
#jb .jb-checks {
	max-height: 260px;
	overflow-y: auto;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

#jb .jb-checks::-webkit-scrollbar { width: 8px; }
#jb .jb-checks::-webkit-scrollbar-track { background: transparent; }
#jb .jb-checks::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 255, 255, 0.35); }
#jb .jb-checks::-webkit-scrollbar-thumb:hover { background: var(--jb-sky); }

/* The theme hides native checkboxes (opacity: 0) and draws its own on its own markup, so
   the board draws its own too: white outline on the navy panel, navy outline elsewhere. */
#jb input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	display: inline-grid;
	place-content: center;
	border: 2px solid var(--jb-navy);
	border-radius: 4px;
	background: #fff;
	opacity: 1;
	cursor: pointer;
}

#jb .jb-checks input[type="checkbox"] { border-color: rgba(255, 255, 255, 0.7); background: transparent; }

/* The site's script wraps every checkbox in <span class="cr-input"> for its own custom
   control. Inside the board that wrapper is made layout-neutral, so the checkbox sits in
   the label exactly as it does without the script. */
#jb .cr-input { display: contents; }
#jb .cr-input::before,
#jb .cr-input::after { content: none; }

#jb input[type="checkbox"]:checked { border-color: var(--jb-sky); background: var(--jb-sky); }

#jb input[type="checkbox"]:checked::after {
	content: "";
	width: 5px;
	height: 10px;
	margin-top: -2px;
	border: solid var(--jb-navy);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Zip code and radius share the row half and half. minmax(0, ...) lets both shrink with
   the panel, so neither can push past its edge. */
#jb .jb-zip-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
#jb .jb-zip-row > input,
#jb .jb-zip-row > select { width: 100%; min-width: 0; max-width: 100%; }

/* Custom dropdown (see src/js/select.mjs). The native select stays in the page for the
   form and for visitors without JavaScript; with JavaScript it is hidden and a button
   plus list, styled for the navy panel, take its place. */
#jb .jb-select { position: relative; min-width: 0; }
#jb .jb-select-native { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }

#jb .jb-select-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	background: var(--jb-navy-2);
	color: #fff;
	font: inherit;
	line-height: 1.3;
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
	overflow: hidden;
}

/* The chosen option. It gives way before the arrow does: when the box is too narrow the
   text ends in an ellipsis inside the box and never spills over the edge. */
#jb .jb-select-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

#jb .jb-select-btn::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform 0.15s;
}

#jb .jb-select-btn[aria-expanded="true"] { border-color: var(--jb-sky); background: #34466f; }
#jb .jb-select-btn[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }

#jb .jb-select-pop {
	position: absolute;
	z-index: 20;
	top: calc(100% + 4px);
	/* At least as wide as the box, and wide enough for its longest option. It grows to the
	   left, into the zip code's half of the row, so it stays inside the panel. */
	right: 0;
	min-width: 100%;
	width: max-content;
	max-width: calc(200% + 8px);
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 8px;
	background: var(--jb-navy-2);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

#jb .jb-select.is-up .jb-select-pop { top: auto; bottom: calc(100% + 4px); }
#jb .jb-select-list { margin: 0; padding: 0; outline: none; }
#jb .jb-select-typed { margin: 0 0 4px; padding: 4px 10px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); color: var(--jb-sky); font-size: 0.85rem; }
#jb .jb-select-list li.jb-select-none,
#jb .jb-select-list li.jb-select-none:hover { background: none; color: rgba(255, 255, 255, 0.6); cursor: default; }

#jb .jb-select-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 8px 10px;
	border-radius: 5px;
	color: #fff;
	white-space: nowrap;
	cursor: pointer;
}

#jb .jb-select-list li:hover,
#jb .jb-select-list li.is-active { background: rgba(255, 255, 255, 0.12); }
#jb .jb-select-list li[aria-selected="true"] { background: var(--jb-sky); color: var(--jb-navy); font-weight: 700; }
#jb .jb-zip-row > :only-child,
#jb .jb-zip-row > input:has(+ [hidden]) { grid-column: 1 / -1; }

#jb .jb-actions { display: flex; align-items: center; gap: 16px; }
#jb .jb-actions .jb-btn { flex: 1; background: var(--jb-sky); border-color: var(--jb-sky); color: var(--jb-navy); }
#jb .jb-actions .jb-btn:hover { background: #fff; border-color: #fff; }
/* Reset is a real button-sized control. */
#jb .jb-filters .jb-reset {
	flex: 1;
	padding: 10px 16px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: var(--jb-radius);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

#jb .jb-filters .jb-reset:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

/* With JavaScript every change searches straight away, so the Search button is only
   needed (and only shown) when the form has to be submitted the old-fashioned way. */
#jb.jb-js .jb-actions .jb-btn { display: none; }

#jb .jb-filter-toggle { display: none; width: 100%; margin-bottom: 12px; }

/* ------------------------------------------------------------- results */

/* Room for the site's fixed header when the results are scrolled back into view. */
#jb .jb-results { scroll-margin-top: var(--jb-sticky-top, 110px); }
#jb .jb-results[aria-busy="true"] { opacity: 0.55; transition: opacity 0.15s; }
#jb .jb-count { margin-bottom: 14px; color: var(--jb-muted); font-weight: 700; }
#jb .jb-count .jb-reset { margin-left: 10px; font-weight: 400; }

#jb .jb-list { display: grid; gap: 16px; }
#jb .jb-list-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

#jb .jb-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 20px 22px;
	border: 1px solid var(--jb-line);
	border-left: 4px solid var(--jb-sky);
	border-radius: var(--jb-radius);
	background: #fff;
}

#jb .jb-card:hover { border-color: var(--jb-navy); border-left-color: var(--jb-navy); }
#jb .jb-card-title { font-size: 1.3rem; }
#jb .jb-card-title a { text-decoration: none; }
#jb .jb-card-title a:hover { text-decoration: underline; }
#jb .jb-card-text { color: var(--jb-muted); font-size: 0.97rem; }
#jb .jb-card-cta { margin: auto 0 0; }

#jb .jb-empty { padding: 28px; border: 1px dashed var(--jb-line); border-radius: var(--jb-radius); background: var(--jb-bg); }

/* -------------------------------------------------------- landing copy */

/* The landing copy sits in the results column, directly under the jobs and the same
   width as them, so the page reads as one column beside the filters. */
#jb .jb-main { min-width: 0; }
#jb .jb-copy { margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--jb-line); }
#jb .jb-copy h2 { margin: 1.4em 0 0.5em; font-size: 1.5rem; }
#jb .jb-copy h3 { margin: 1.2em 0 0.4em; }
#jb .jb-copy > :first-child { margin-top: 0; }

#jb .jb-copy ul,
#jb .jb-copy ol,
#jb .jb-desc ul,
#jb .jb-desc ol { margin: 0 0 1em; padding-left: 1.4em; }

#jb .jb-copy ul,
#jb .jb-desc ul { list-style: disc; }

#jb .jb-copy ol,
#jb .jb-desc ol { list-style: decimal; }

#jb .jb-copy li,
#jb .jb-desc li { margin: 0 0 0.35em; }

/* ----------------------------------------------------------------- job */

#jb .jb-job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }

#jb .jb-job-main > h2 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--jb-sky); }
#jb .jb-desc { overflow-wrap: anywhere; }
#jb .jb-desc h2,
#jb .jb-desc h3 { margin: 1.3em 0 0.4em; }
#jb .jb-desc img { max-width: 100%; height: auto; }
#jb .jb-job-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

#jb .jb-job-side { position: sticky; top: 110px; display: grid; gap: 20px; }

#jb .jb-summary,
#jb .jb-recruiter { padding: 22px; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); background: var(--jb-bg); }

#jb .jb-summary h2,
#jb .jb-recruiter h2 { margin-bottom: 12px; font-size: 1.15rem; }

#jb .jb-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 18px; }
#jb .jb-summary dt { margin: 0; color: var(--jb-muted); font-size: 0.9rem; font-weight: 400; }
#jb .jb-summary dd { margin: 0; font-weight: 700; }
/* Small link under the Apply button, back to similar jobs. */
#jb .jb-explore { margin: -6px 0 16px; font-size: 0.85rem; text-align: center; }
#jb .jb-explore a { color: var(--jb-muted); text-decoration: underline; text-underline-offset: 3px; }
#jb .jb-explore a:hover,
#jb .jb-explore a:focus-visible { color: var(--jb-navy); }
/* Category and location lead to their own pages. */
#jb .jb-summary dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--jb-sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
#jb .jb-summary dd a:hover,
#jb .jb-summary dd a:focus-visible { color: var(--jb-navy-2); text-decoration-color: currentColor; }

#jb .jb-applied { margin: 0 0 10px; color: var(--jb-muted); font-size: 0.92rem; text-align: center; }

/* Share and Print: two small buttons with icons. Share opens the browser's own share
   sheet (or copies the link where there is none), so there are no per-network links to
   maintain. Icons are CSS masks, like the badge icons. */
#jb .jb-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--jb-line); }

#jb .jb-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--jb-line);
	border-radius: 999px;
	background: #fff;
	color: var(--jb-navy);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

#jb .jb-share-btn::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--jb-icon) center / contain no-repeat;
	mask: var(--jb-icon) center / contain no-repeat;
}

#jb .jb-share-btn:hover { border-color: var(--jb-navy); background: var(--jb-navy); color: #fff; }

#jb .jb-share-native { --jb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.600 10.500l6.800-4M8.600 13.500l6.800 4'/%3E%3C/svg%3E"); }
#jb .jb-share-print { --jb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9V4h10v5M7 17H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2M7 14h10v6H7z'/%3E%3C/svg%3E"); }
#jb .jb-share-note { flex-basis: 100%; margin: 0; text-align: center; color: var(--jb-muted); font-size: 0.88rem; }

#jb .jb-recruiter { text-align: center; }
#jb .jb-recruiter h2 { text-align: center; }
#jb .jb-recruiter p { margin-bottom: 10px; }
#jb .jb-recruiter-photo { display: block; width: 160px; height: 160px; margin: 0 auto 12px; border: 1px solid var(--jb-line); border-radius: 50%; object-fit: cover; }
#jb .jb-recruiter-name { font-size: 1.1rem; font-weight: 700; }
#jb .jb-recruiter-title { color: var(--jb-muted); }
#jb .jb-recruiter .jb-btn { max-width: 100%; overflow-wrap: anywhere; font-size: 0.95rem; }

#jb .jb-related { margin-top: 56px; }
#jb .jb-related > h2 { margin-bottom: 16px; }
#jb .jb-related .jb-card-title { font-size: 1.15rem; }
#jb .jb-related .jb-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#jb .jb-cat-links { margin-bottom: 8px; }
#jb .jb-cat-links ul { display: flex; flex-wrap: wrap; gap: 8px; }
#jb .jb-cat-links a { display: flex; gap: 8px; padding: 6px 14px; border: 1px solid var(--jb-line); border-radius: 999px; text-decoration: none; }
#jb .jb-cat-links a:hover { background: var(--jb-sky-soft); }

/* -------------------------------------------------------------- dialog */

#jb .jb-dialog {
	width: min(680px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: var(--jb-text);
	box-shadow: 0 24px 80px rgba(10, 18, 40, 0.45);
	overflow: hidden;
}

#jb .jb-dialog::backdrop { background: rgba(10, 18, 40, 0.6); }

/* No JavaScript: "Apply Now" is an in-page link, so show the form in the flow. */
#jb .jb-dialog:target { display: block; position: static; margin: 40px auto 0; box-shadow: none; border: 1px solid var(--jb-line); max-height: none; }

#jb .jb-apply { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
#jb .jb-dialog-head { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; background: var(--jb-navy); }
#jb .jb-dialog-head h2 { flex: 1; color: #fff; font-size: 1.25rem; }
#jb .jb-x { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
#jb .jb-x:hover { background: rgba(255, 255, 255, 0.25); }

#jb .jb-dialog-body { padding: 22px 24px 8px; overflow-y: auto; }
#jb .jb-dialog-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--jb-line); background: var(--jb-bg); }

#jb .jb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

#jb .jb-apply label { display: block; margin: 0 0 5px; color: var(--jb-navy); font-size: 0.92rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
#jb .jb-help { margin: 6px 0 0; color: var(--jb-muted); font-size: 0.88rem; }
#jb .jb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#jb .jb-eeo { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--jb-line); border-radius: 6px; }
#jb .jb-eeo summary { color: var(--jb-navy); font-weight: 700; cursor: pointer; }
#jb .jb-eeo[open] summary { margin-bottom: 8px; }
#jb .jb-eeo .jb-help { margin: 0 0 14px; }

#jb .jb-consent label { position: relative; display: block; padding-left: 28px; font-weight: 400; line-height: 1.45; }
#jb .jb-consent input { position: absolute; left: 0; top: 2px; }

#jb .jb-error { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--jb-error); border-radius: 4px; background: #fdecea; color: var(--jb-error); font-weight: 700; }

/* Sent: the form stays where it is, greyed out and switched off (apply.mjs makes it
   inert), and the thank-you sits on top of it. :not([hidden]) because a plain display
   rule here would outrank the [hidden] rule and show it from the start. */
#jb .jb-apply.is-sent { opacity: 0.45; filter: grayscale(1); pointer-events: none; user-select: none; }
#jb .jb-apply-done:not([hidden]) {
	position: absolute; inset: 0; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; background: rgba(238, 241, 246, 0.6); text-align: center;
}
#jb .jb-apply-done:focus { outline: 0; }
#jb .jb-apply-done-box { max-width: 460px; max-height: 100%; overflow-y: auto; padding: 32px 28px 24px; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(10, 18, 40, 0.3); }
#jb .jb-apply-done h2 { margin-bottom: 12px; text-align: center; font-size: 1.6rem; }
#jb .jb-apply-done p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 960px) {
	#jb .jb-layout { grid-template-columns: minmax(0, 1fr); }
	#jb .jb-side { position: static; }

	/* Job page in one column: summary (with Apply) first, then the description, then the
	   recruiter. The sidebar wrapper steps aside so its two cards can be ordered apart. */
	#jb .jb-job-layout { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
	#jb .jb-job-side { display: contents; }
	#jb .jb-summary { order: 1; }
	#jb .jb-job-main { order: 2; }
	#jb .jb-recruiter { order: 3; }

	/* Collapse the filters only when JavaScript is there to reopen them. */
	#jb.jb-js .jb-filter-toggle { display: flex; }
	#jb.jb-js .jb-filter-panel:not(.is-open) { display: none; }
}

@media (max-width: 560px) {
	#jb { padding: 16px 14px 40px; font-size: 16px; }
	#jb .jb-row { grid-template-columns: 1fr; }
	#jb .jb-related .jb-list-grid { grid-template-columns: minmax(0, 1fr); }
	#jb .jb-card { padding: 16px; }
	#jb .jb-dialog-foot .jb-btn { flex: 1; }
}

/* Loading indicator (see busy() in src/js/boot.mjs). It sits on <body>, outside #jb, so it
   survives the board being swapped; it only appears when something takes over 0.3s. */
.jb-loader {
	position: fixed;
	z-index: 9990;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 22px;
	border-radius: 999px;
	background: #1a2540;
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(0.96);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.jb-loader.is-on {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.jb-loader-spin {
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #7ec8e3;
	border-radius: 50%;
	animation: jb-spin 0.8s linear infinite;
}

@keyframes jb-spin { to { transform: rotate(360deg); } }

/* While the loader is up the board dims, so it is clear the old content is on its way out. */
#jb .jb-layout,
#jb .jb-job { transition: opacity 0.2s ease; }
#jb.jb-wait .jb-layout,
#jb.jb-wait .jb-job { opacity: 0.45; }

@media (prefers-reduced-motion: reduce) {
	#jb * { transition: none; }
	.jb-loader,
	.jb-loader.is-on { transition: none; }
	.jb-loader-spin { animation-duration: 2.4s; }
}

@media print {
	#jb .jb-side,
	#jb .jb-crumbs,
	#jb .jb-related,
	#jb .jb-share,
	#jb .jb-job-cta,
	#jb .jb-btn,
	#jb .jb-dialog { display: none; }
	#jb .jb-job-layout { display: block; }
}

/* Desktop: the filter panel follows the visitor down the page and is never taller than
   the window. If the filters do not fit, the panel scrolls on its own (same slim
   scrollbar as the city list) instead of running off the bottom of the screen. */
@media (min-width: 961px) {
	#jb .jb-side { position: sticky; top: var(--jb-sticky-top, 110px); align-self: start; }

	#jb .jb-filter-panel {
		max-height: calc(100vh - var(--jb-sticky-top, 110px) - 20px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
	}

	/* The job page's side column sticks by its top, just under the site header, and never
	   scrolls on its own. --jb-sticky-top is the header's measured bottom edge (boot.mjs). */
	#jb .jb-job-side { top: var(--jb-sticky-top, 110px); }

	#jb .jb-filter-panel::-webkit-scrollbar { width: 8px; }
	#jb .jb-filter-panel::-webkit-scrollbar-track { background: transparent; }
	#jb .jb-filter-panel::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 255, 255, 0.35); }
}

/* The one rule outside #jb. The theme wraps every page in .page-wrap { overflow: hidden },
   and an overflow:hidden ancestor switches off position: sticky for everything inside it.
   "clip" hides overflow exactly the same way without creating a scroll container, so the
   sticky filter panel and job summary work. Scoped to the body class that only job-board
   pages carry, so no other page on the site is touched. */
body.jfc-job-board .page-wrap { overflow: clip; }

/* Small screens: an Apply bar pinned to the bottom of the window on job pages, so the
   button is always one tap away however far down the description the visitor is. It sits
   above the site's own fixed bottom menu (--jb-bottom-offset is measured by trackApplyBar in apply.mjs).
   With JavaScript it only appears once the summary's own Apply button has scrolled out of
   view, so the two are never on screen together. Hidden on desktop, where the sticky
   side column already keeps Apply in view. */
#jb .jb-apply-bar { display: none; }

@media (max-width: 960px) {
	#jb .jb-apply-bar {
		display: block;
		position: fixed;
		z-index: 30;
		left: 0;
		right: 0;
		bottom: var(--jb-bottom-offset, 0px);
		padding: 10px 14px;
		border-top: 1px solid var(--jb-line);
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 -6px 20px rgba(10, 18, 40, 0.12);
		transition: transform 0.2s, opacity 0.2s;
	}

	#jb.jb-js .jb-apply-bar:not(.is-on) { transform: translateY(110%); opacity: 0; pointer-events: none; }

	/* Leave room so the bar never covers the end of the page. */
	#jb[data-jb-view="job"] { padding-bottom: calc(110px + var(--jb-bottom-offset, 0px)); }
}

@media print {
	#jb .jb-apply-bar { display: none; }
}

/* Desktop: a compact recruiter card (small photo beside the name, buttons in a row).
   The centred, large-photo card made the sticky side column taller than most windows,
   so its top slid up behind the site header while scrolling. Compact, the whole column
   fits under the header and simply stays put. Phones keep the large centred card. */
@media (min-width: 961px) {
	#jb .jb-recruiter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; align-items: center; text-align: left; }
	#jb .jb-recruiter:has(.jb-recruiter-photo) { grid-template-columns: 72px minmax(0, 1fr); }
	#jb .jb-recruiter h2 { grid-column: 1 / -1; text-align: left; }
	#jb .jb-recruiter-photo { grid-row: span 2; width: 72px; height: 72px; margin: 0; }
	#jb .jb-recruiter-name { margin: 0; align-self: end; }
	#jb .jb-recruiter-title { margin: 0; align-self: start; font-size: 0.92rem; }
	#jb .jb-recruiter p:has(.jb-btn) { grid-column: 1 / -1; margin: 12px 0 0; }
	#jb .jb-recruiter p:has(.jb-btn) + p:has(.jb-btn) { margin-top: 8px; }
	#jb .jb-recruiter .jb-btn { display: flex; width: 100%; padding: 9px 14px; }
}
