/*
 * The theme's layout and components.
 *
 * ⚠️ **No media queries live here.** Every one of them is in jobs-mobile.css, which loads
 * last, so §AB's three responsive tiers are auditable in one file instead of being scattered
 * through a thousand lines. This file describes the desktop shape; that one reshapes it.
 *
 * Colours come from tokens.css and appear here only as `var(--sjb-…)`.
 */

/* ===================================================================================
 * Base
 * =================================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--sjb-bg);
	color: var(--sjb-text);
	font-family: var(--sjb-font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

/*
 * The workspace is an app shell: the document itself must not scroll, or the map slides out
 * from under the reader while they scroll the list. Every other page scrolls normally.
 */
body.sjb-body--workspace {
	overflow: hidden;
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--sjb-accent-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.25;
	font-weight: 650;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

/*
 * §AE: a focus ring that is always visible and never removed. `:focus-visible` keeps it off
 * mouse clicks, where it reads as noise, and on for every keyboard interaction.
 */
:focus-visible {
	outline: 2px solid var(--sjb-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sjb-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--sjb-accent);
	color: var(--sjb-text-on-accent);
	font-weight: 600;
	border-radius: 0 0 var(--sjb-radius) 0;
}

.sjb-skip:focus {
	left: 0;
}

/* ===================================================================================
 * Buttons and small controls
 * =================================================================================== */

.sjb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: var(--sjb-radius);
	background: var(--sjb-surface-2);
	color: var(--sjb-text);
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sjb-btn--primary {
	background: var(--sjb-accent);
	color: var(--sjb-text-on-accent);
}

.sjb-btn--primary:hover,
.sjb-btn--primary:focus-visible {
	background: var(--sjb-accent-hover);
	color: var(--sjb-text-on-accent);
}

.sjb-btn--primary:active {
	background: var(--sjb-accent-active);
	color: var(--sjb-text-on-accent);
}

.sjb-btn--ghost {
	background: transparent;
	border-color: var(--sjb-border-strong);
	color: var(--sjb-text);
}

.sjb-btn--ghost:hover,
.sjb-btn--ghost:focus-visible {
	background: var(--sjb-surface-2);
	color: var(--sjb-text);
}

.sjb-btn--block {
	width: 100%;
}

.sjb-btn--large {
	padding: 13px 24px;
	font-size: 16px;
}

.sjb-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.sjb-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius);
	background: transparent;
	color: var(--sjb-text-dim);
	cursor: pointer;
	text-decoration: none;
}

.sjb-iconbtn:hover,
.sjb-iconbtn:focus-visible {
	background: var(--sjb-surface-2);
	color: var(--sjb-text);
}

.sjb-iconbtn--count {
	width: auto;
	gap: 6px;
	padding: 0 11px;
}

.sjb-iconbtn__count {
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/*
 * The toggle shows the icon for where the reader is *going*, not where they are: a sun on a
 * dark page means "switch to light". The four blocks mirror tokens.css exactly — base, the
 * system preference, and the explicit choice in both directions.
 */
.sjb-icon-sun { display: inline-block; }
.sjb-icon-moon { display: none; }

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) .sjb-icon-sun { display: none; }
	:root:not([data-theme="dark"]) .sjb-icon-moon { display: inline-block; }
}

:root[data-theme="light"] .sjb-icon-sun { display: none; }
:root[data-theme="light"] .sjb-icon-moon { display: inline-block; }

:root[data-theme="dark"] .sjb-icon-sun { display: inline-block; }
:root[data-theme="dark"] .sjb-icon-moon { display: none; }

/* ===================================================================================
 * Header (§I)
 * =================================================================================== */

.sjb-header {
	position: relative;
	z-index: 60;
	height: var(--sjb-header-h);
	background: var(--sjb-header-bg);
	border-bottom: 1px solid var(--sjb-border);
}

.sjb-header__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	height: 100%;
	padding: 0 20px;
}

.sjb-brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1px;
	text-decoration: none;
	color: var(--sjb-text);
	flex: 0 0 auto;
}

.sjb-brand__name {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.sjb-brand__swiss { color: var(--sjb-text); }
.sjb-brand__jobs { color: var(--sjb-accent-text); }

.sjb-brand__cross {
	display: inline-flex;
	color: var(--sjb-accent-text);
}

.sjb-brand__tagline {
	font-size: 11px;
	color: var(--sjb-text-faint);
	font-weight: 500;
	letter-spacing: 0.01em;
}

.sjb-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.sjb-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sjb-nav__link {
	display: block;
	padding: 8px 12px;
	border-radius: var(--sjb-radius);
	color: var(--sjb-text-dim);
	font-size: 14px;
	font-weight: 550;
	text-decoration: none;
	white-space: nowrap;
}

.sjb-nav__link:hover,
.sjb-nav__link:focus-visible {
	background: var(--sjb-surface-2);
	color: var(--sjb-text);
}

.sjb-nav .current-menu-item > .sjb-nav__link,
.sjb-nav__item.is-current > .sjb-nav__link {
	color: var(--sjb-text);
	box-shadow: inset 0 -2px 0 var(--sjb-accent);
}

.sjb-header__tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	margin-left: auto;
}

.sjb-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius);
	background: transparent;
	color: var(--sjb-text);
	cursor: pointer;
}

/* --- Language switcher --- */

.sjb-langs {
	position: relative;
}

.sjb-langs__toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius);
	color: var(--sjb-text-dim);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.sjb-langs__toggle::-webkit-details-marker { display: none; }

.sjb-langs[open] .sjb-langs__chevron { transform: rotate(180deg); }

/*
 * ⚠️ A closed `<details>` hides its contents, but an absolutely positioned child escapes that
 * — so all five language links stayed rendered and stayed in the tab order, five stops before
 * the main content on every page. `display: none` puts them properly out of the flow.
 */
.sjb-langs:not([open]) .sjb-langs__list {
	display: none;
}

.sjb-langs__list {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 70;
	min-width: 92px;
	margin: 0;
	padding: 5px;
	list-style: none;
	background: var(--sjb-surface);
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius);
	box-shadow: var(--sjb-shadow-lg);
}

.sjb-langs__item {
	display: block;
	padding: 7px 10px;
	border-radius: 6px;
	color: var(--sjb-text-dim);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.sjb-langs__item:hover,
.sjb-langs__item.is-current {
	background: var(--sjb-surface-2);
	color: var(--sjb-text);
}

/* ===================================================================================
 * The trade rail (§J)
 * =================================================================================== */

.sjb-rail {
	height: var(--sjb-rail-h);
	background: var(--sjb-bg);
	border-bottom: 1px solid var(--sjb-border);
}

/*
 * ⚠️ `position: relative` here is load-bearing, not tidiness.
 *
 * Every chip contains a `.screen-reader-text` span, which is `position: absolute`. An
 * absolutely positioned box is only clipped by an ancestor's `overflow` if that ancestor is
 * in its containing-block chain. Left `static`, this scroller is not — so those invisible
 * 1px spans escape the clip, stretch the *document* to the rail's full scroll width, and put
 * a horizontal scrollbar across the whole page.
 *
 * Any future scroll container holding a `.screen-reader-text` needs the same guard.
 */
.sjb-rail__scroller {
	position: relative;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}

.sjb-rail__scroller::-webkit-scrollbar {
	display: none;
}

.sjb-rail__list {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	margin: 0;
	padding: 0 16px;
	list-style: none;
}

.sjb-rail__item {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.sjb-chip {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 92px;
	padding: 6px 4px 8px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius);
	background: var(--sjb-surface);
	color: var(--sjb-text-dim);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.sjb-chip:hover {
	border-color: var(--sjb-hover-line);
	background: var(--sjb-surface-2);
	color: var(--sjb-text);
}

.sjb-chip.is-active {
	border-color: var(--sjb-accent-line);
	background: var(--sjb-accent-soft);
	color: var(--sjb-text);
}

.sjb-chip__icon {
	display: block;
	width: 36px;
	height: 36px;
}

.sjb-profession-icon {
	display: block;
	max-width: 100%;
	height: auto;
}

.sjb-chip .sjb-profession-icon {
	transition: transform 0.15s ease, filter 0.15s ease;
}

.sjb-chip:hover .sjb-profession-icon,
.sjb-chip.is-active .sjb-profession-icon {
	filter: saturate(1.15) brightness(1.08);
	transform: translateY(-1px);
}

.sjb-chip__label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* ===================================================================================
 * The app shell (§B, §H)
 * =================================================================================== */

/*
 * ⚠️ WordPress pushes the whole document down by the admin bar's own height (`html { margin-top }`
 * in core's admin-bar.css) whenever a logged-in editor is looking at the site — a real visitor
 * never has it. Every `.sjb-app` height below assumes 100dvh is all ours; without this, the
 * workspace is exactly the admin bar's height too tall for a logged-in reader, its bottom edge
 * lands under the phone's tab bar, and Leaflet's own panes — deep inside `.sjb-app__map`, which
 * has no `z-index` of its own to contain them — carry z-indexes in the hundreds that then win
 * against the tab bar's 80 wherever the two overlap.
 */
body.admin-bar {
	--sjb-adminbar-h: 32px;
}

/* WordPress's own responsive breakpoint for the admin bar, not one of ours (§AB). */
@media screen and (max-width: 782px) {
	body.admin-bar {
		--sjb-adminbar-h: 46px;
	}
}

.sjb-main {
	display: block;
}

.sjb-app {
	position: relative;

	display: grid;
	grid-template-columns: minmax(0, var(--sjb-map-share)) minmax(0, var(--sjb-list-share));
	gap: var(--sjb-gap);
	padding: var(--sjb-gap) 16px 16px;

	/* A `vh` fallback first, for anything without `dvh`. */
	height: calc(100vh - var(--sjb-header-h) - var(--sjb-rail-h) - var(--sjb-adminbar-h));
	height: calc(100dvh - var(--sjb-header-h) - var(--sjb-rail-h) - var(--sjb-adminbar-h));
}

/*
 * ⚠️ Without `min-height: 0` a grid item refuses to shrink below its content's height, the
 * list pane grows to fit every card, and the inner scroller never scrolls at all — the whole
 * layout silently degrades into a very long page.
 */
.sjb-app > * {
	min-height: 0;
	min-width: 0;
}

.sjb-app__map,
.sjb-app__list {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius-card);
	background: var(--sjb-surface);
	overflow: hidden;
}

.sjb-app__map {
	border-color: var(--sjb-map-frame-border);
	box-shadow: var(--sjb-map-frame-shadow);
}

/* ===================================================================================
 * The map (§M, §N, §O)
 * =================================================================================== */

.sjb-map {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: var(--sjb-map-bg);
}

.sjb-map__canvas {
	position: absolute;
	inset: 0;
}

.sjb-map--single {
	height: 320px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius-card);
	overflow: hidden;
}

.sjb-map--single .sjb-map__canvas {
	position: absolute;
	inset: 0;
}

.sjb-map__noscript {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	margin: 0;
	text-align: center;
	color: var(--sjb-text-dim);
}

.sjb-map__corner {
	position: absolute;
	z-index: 500;
	pointer-events: none;
}

.sjb-map__corner > * {
	pointer-events: auto;
}

.sjb-map__corner--bl { left: 12px; bottom: 12px; }
.sjb-map__corner--br { right: 12px; bottom: 12px; }

.sjb-map__save {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 13px;
	border: 1px solid var(--sjb-border-strong);
	border-radius: var(--sjb-radius);
	background: var(--sjb-surface);
	color: var(--sjb-text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--sjb-shadow);
}

.sjb-map__save.is-saved {
	border-color: var(--sjb-accent-line);
	color: var(--sjb-accent-text);
}

/* Result count and geographic scope — more useful than the former cluster-size legend. */
.sjb-map-status {
	margin: 0;
	padding: 7px 12px;
	border: 1px solid var(--sjb-map-overlay-border);
	border-radius: var(--sjb-radius-pill);
	background: var(--sjb-map-overlay-bg);
	box-shadow: var(--sjb-shadow);
	color: var(--sjb-map-place-text);
	font-size: 11.5px;
	font-weight: 650;
	white-space: nowrap;
}

/* --- Leaflet overrides. Loaded after leaflet.css, so single-class rules win. --- */

.leaflet-container {
	background: var(--sjb-map-bg);
	font-family: var(--sjb-font);
}

/* Leaflet's own max-width reset names only its default overlay pane. Our canton SVG lives in
 * a dedicated pane, so the theme's global `svg { max-width: 100% }` would otherwise collapse
 * it to the zero-width pane element and leave interactive but invisible paths. */
.leaflet-container .leaflet-sjbCantons-pane svg {
	max-width: none !important;
	max-height: none !important;
}

/* Voyager carries the dense roads, rail, buildings, water and natural features visible in the
 * design. Keep the raster fully opaque: a modest brightness reduction and contrast/saturation
 * lift preserve the cream paper character without putting a pale wash over its detail. */
.leaflet-tile-pane {
	background: var(--sjb-map-bg);
	filter: sepia(0.04) saturate(1.06) brightness(0.9) contrast(1.18);
}

/* Transparent label tiles sit above canton outlines and below job markers. They are darkened
 * separately so place names stay legible on the warmed paper without darkening roads or lakes.
 * Do not lower this pane's opacity: the source tiles are already transparent. */
.leaflet-sjbLabels-pane {
	filter: sepia(0.03) saturate(1.03) brightness(0.8) contrast(1.24);
	pointer-events: none;
}

.leaflet-control-attribution {
	background: color-mix(in srgb, var(--sjb-surface) 82%, transparent) !important;
	color: var(--sjb-text-faint) !important;
	font-size: 10px !important;
}

.leaflet-control-attribution a {
	color: var(--sjb-text-dim) !important;
}

.leaflet-bar a,
.leaflet-bar a:hover {
	background: var(--sjb-surface);
	color: var(--sjb-text);
	border-bottom-color: var(--sjb-border);
}

.leaflet-bar a:hover {
	background: var(--sjb-surface-2);
}

.sjb-maptools {
	display: grid;
	overflow: hidden;
}

.sjb-maptool {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--sjb-border);
	background: var(--sjb-surface);
	color: var(--sjb-text);
	font: 700 17px/1 var(--sjb-font);
	cursor: pointer;
}

.sjb-maptool:last-child {
	border-bottom: 0;
}

.sjb-maptool:hover,
.sjb-maptool:focus-visible {
	background: var(--sjb-surface-2);
}

.sjb-maptool:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid var(--sjb-focus);
	outline-offset: -2px;
}

.sjb-maparea-control {
	min-height: 34px;
}

.sjb-maparea {
	padding: 8px 13px;
	border: 1px solid var(--sjb-map-point-border);
	border-radius: var(--sjb-radius-pill);
	background: var(--sjb-map-overlay-bg);
	color: var(--sjb-map-place-text);
	font: 650 12px/1 var(--sjb-font);
	box-shadow: var(--sjb-shadow-lg);
	cursor: pointer;
}

.sjb-maparea:hover,
.sjb-maparea:focus-visible {
	background: color-mix(in srgb, var(--sjb-map-overlay-bg) 82%, var(--sjb-map-active-line));
}

.sjb-maparea:focus-visible {
	outline: 2px solid var(--sjb-focus);
	outline-offset: 2px;
}

.sjb-maparea[hidden] {
	display: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: var(--sjb-surface);
	color: var(--sjb-text);
	box-shadow: var(--sjb-shadow-lg);
}

.leaflet-popup-content {
	margin: 12px 14px;
	font-size: 13px;
}

.leaflet-popup-content a {
	color: var(--sjb-text);
	font-weight: 650;
	text-decoration: none;
}

.leaflet-popup-content a:hover {
	text-decoration: underline;
}

.leaflet-popup-close-button {
	color: var(--sjb-text-faint) !important;
}

/*
 * ⚠️ The canton layer is styled here and never in JavaScript. Setting Leaflet's `fillColor`
 * or `color` options would bake one palette into the markup and dark mode would need a second
 * code path; a CSS class gets both for nothing.
 *
 * Every polygon stays transparent so the basemap remains fully readable. At national zoom the
 * boundaries are only a hint; from the configured threshold they become a fine olive network.
 * The selected canton is identified by its outline alone.
 */
.sjb-canton {
	fill: none;
	fill-opacity: 0;
	stroke: var(--sjb-map-canton-line);
	stroke-width: 1;
	stroke-opacity: 0;
	vector-effect: non-scaling-stroke;
	transition: stroke 0.16s ease, stroke-opacity 0.16s ease, stroke-width 0.16s ease;
	outline: none;
}

.sjb-map[data-borders="on"] .sjb-canton:not(.is-active):not(.is-hovered) {
	stroke-width: 0.65;
	stroke-opacity: 0.44;
}

.sjb-country-outline {
	fill: none;
	stroke: var(--sjb-map-border);
	stroke-width: 1.5;
	stroke-opacity: 0.9;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}

.sjb-canton.is-hovered,
.sjb-canton.is-active,
.sjb-canton:focus-visible {
	fill: none;
	fill-opacity: 0;
	stroke: var(--sjb-map-active-line);
	stroke-width: 3;
	stroke-opacity: 1;
}

.sjb-canton.is-active,
.sjb-canton:focus-visible {
	filter: drop-shadow(0 0 4px var(--sjb-map-active-glow));
}

/* The submission form's picker only needs to orient the reader within Switzerland, not which
 * canton they are in — the dissolved national outline, no fill, no internal borders. */
.sjb-country {
	fill: none;
	stroke: var(--sjb-map-border);
	stroke-width: 2;
	stroke-opacity: 0.9;
	vector-effect: non-scaling-stroke;
}

/* Main geographic anchors only; offer clusters intentionally carry no visible place label. */
.sjb-map-city-wrap {
	background: none;
	border: 0;
	pointer-events: none;
}

.sjb-map-city {
	position: relative;
	display: block;
	padding-left: 8px;
	color: var(--sjb-map-label);
	font-size: 10px;
	font-weight: 550;
	letter-spacing: 0.015em;
	line-height: 1;
	text-shadow: 0 1px 4px var(--sjb-map-bg), 0 0 8px var(--sjb-map-bg);
	white-space: nowrap;
}

.sjb-map-city::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 50%;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	transform: translateY(-50%);
}

.sjb-map-city--major {
	color: var(--sjb-map-city);
	font-size: 11px;
	font-weight: 650;
}

.sjb-map-country-wrap {
	width: 0 !important;
	height: 0 !important;
	background: none;
	border: 0;
	pointer-events: none;
}

.sjb-map-country {
	display: block;
	transform: translate(-50%, -50%);
	color: var(--sjb-map-label);
	font-size: 17px;
	font-weight: 550;
	letter-spacing: 0.045em;
	line-height: 1;
	text-transform: uppercase;
	text-shadow: 0 1px 5px var(--sjb-map-bg), 0 0 10px var(--sjb-map-bg);
	white-space: nowrap;
}

.sjb-map-country--home {
	color: var(--sjb-map-city);
	font-size: 20px;
	font-weight: 600;
}

/* --- Pins and clusters (§O). --- */

.sjb-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50% 50% 50% 4px;
	transform: rotate(-45deg);
	background: var(--sjb-accent);
	border: 2px solid var(--sjb-map-point-border);
	box-shadow: var(--sjb-map-point-shadow);
}

.sjb-pin::after {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sjb-text-on-accent);
}

.sjb-pin.is-active {
	background: var(--sjb-accent-hover);
	z-index: 800;
}

.sjb-spider-leg {
	stroke: var(--sjb-map-spider);
	stroke-width: 1;
	stroke-opacity: 0.8;
	vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: no-preference) {
	.sjb-pin.is-active {
		animation: sjb-pulse 1.6s ease-out infinite;
	}
}

@keyframes sjb-pulse {
	0%   { box-shadow: 0 0 0 0 var(--sjb-accent-line); }
	70%  { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/*
 * The mock's bubble: the count inside the circle, the place name beside it. This shape is why
 * clustering is ours rather than Leaflet.markercluster's — markercluster draws one number in
 * one circle and has nowhere to put the second label.
 */
.sjb-cluster {
	display: flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}

.sjb-cluster__place {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	max-width: 132px;
	padding: 4px 9px;
	overflow: hidden;
	border: 1px solid var(--sjb-map-label-border);
	border-radius: var(--sjb-radius-pill);
	background: var(--sjb-map-label-bg);
	color: var(--sjb-map-label-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-overflow: ellipsis;
	box-shadow: var(--sjb-map-label-shadow);
}

.sjb-cluster__count {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--sjb-cluster-s);
	height: var(--sjb-cluster-s);
	border-radius: 50%;
	background: var(--sjb-accent);
	color: var(--sjb-map-point-text);
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	border: 2px solid var(--sjb-map-point-border);
	box-shadow: var(--sjb-map-point-shadow);
}

.sjb-cluster--m .sjb-cluster__count {
	width: var(--sjb-cluster-m);
	height: var(--sjb-cluster-m);
	font-size: 14px;
}

.sjb-cluster--l .sjb-cluster__count {
	width: var(--sjb-cluster-l);
	height: var(--sjb-cluster-l);
	font-size: 16px;
}

.sjb-cluster:hover .sjb-cluster__count {
	background: var(--sjb-accent-hover);
}

.sjb-clusterbtn {
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.sjb-clusterbtn:focus-visible {
	outline: none;
}

.sjb-clusterbtn:focus-visible .sjb-cluster__count {
	outline: 2px solid var(--sjb-focus);
	outline-offset: 3px;
}

/* ===================================================================================
 * The list pane (§K, §L)
 * =================================================================================== */

.sjb-listpane {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
}

.sjb-filters {
	flex: 0 0 auto;
	padding: 14px 14px 10px;
	border-bottom: 1px solid var(--sjb-border);
}

.sjb-search {
	position: relative;
	display: flex;
	align-items: center;
}

.sjb-search__icon {
	position: absolute;
	left: 11px;
	color: var(--sjb-text-faint);
	pointer-events: none;
}

.sjb-search__input {
	width: 100%;
	padding: 10px 12px 10px 36px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius);
	background: var(--sjb-surface-2);
	color: var(--sjb-text);
	font: inherit;
	font-size: 14px;
}

.sjb-search__input::placeholder {
	color: var(--sjb-text-faint);
}

.sjb-filters__row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 8px;
	margin-top: 8px;
}

.sjb-field__control {
	position: relative;
	display: flex;
	align-items: center;
}

.sjb-field__chevron {
	position: absolute;
	right: 10px;
	color: var(--sjb-text-faint);
	pointer-events: none;
}

.sjb-select,
.sjb-input,
.sjb-textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius);
	background: var(--sjb-surface-2);
	color: var(--sjb-text);
	font: inherit;
	font-size: 14px;
}

.sjb-select {
	appearance: none;
	padding-right: 30px;
	cursor: pointer;
}

.sjb-textarea {
	resize: vertical;
	line-height: 1.5;
}

.sjb-filters .sjb-field__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.sjb-filters__more {
	position: relative;
	padding: 9px 12px;
	white-space: nowrap;
}

.sjb-filters__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: var(--sjb-radius-pill);
	background: var(--sjb-accent);
	color: var(--sjb-text-on-accent);
	font-size: 10px;
	font-weight: 700;
}

.sjb-more {
	margin-top: 10px;
}

/* The disclosure's own summary duplicates the "More options" button; the button drives it. */
.sjb-more__summary {
	display: none;
}

.sjb-more:not([open]) .sjb-more__grid {
	display: none;
}

.sjb-more__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius);
	background: var(--sjb-surface-2);
}

.sjb-more__grid .sjb-field__label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--sjb-text-faint);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sjb-field--check {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sjb-field--check label {
	font-size: 13px;
	color: var(--sjb-text-dim);
}

.sjb-check {
	width: 16px;
	height: 16px;
	accent-color: var(--sjb-accent);
}

.sjb-filters__actions {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

/*
 * The submit button is the JavaScript-off path. Once the script is running it hides itself,
 * because a live-updating panel with a "Show offers" button in it is confusing — but it is
 * always in the markup, and it comes back if a fetch fails.
 */
.sjb-filters__submit {
	flex: 1 1 auto;
}

body.sjb-js .sjb-filters__actions {
	display: none;
}

body.sjb-js .sjb-filters__actions.is-forced {
	display: flex;
}

/* --- Active filter chips --- */

.sjb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.sjb-chips[hidden] {
	display: none;
}

.sjb-chiptag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border: 1px solid var(--sjb-accent-line);
	border-radius: var(--sjb-radius-pill);
	background: var(--sjb-accent-soft);
	color: var(--sjb-text);
	font-size: 12px;
	font-weight: 550;
	text-decoration: none;
}

.sjb-chiptag:hover {
	background: var(--sjb-surface-3);
}

.sjb-chiptag__x {
	color: var(--sjb-text-faint);
}

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

.sjb-listpane__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 0 0 auto;
	padding: 10px 14px;
	border-bottom: 1px solid var(--sjb-border);
}

.sjb-listpane__count {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--sjb-text-dim);
	font-variant-numeric: tabular-nums;
}

.sjb-sort {
	position: relative;
	display: flex;
	align-items: center;
}

.sjb-sort__select {
	appearance: none;
	padding: 4px 22px 4px 8px;
	border: 0;
	background: transparent;
	color: var(--sjb-text-dim);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.sjb-sort__chevron {
	position: absolute;
	right: 4px;
	color: var(--sjb-text-faint);
	pointer-events: none;
}

/*
 * ⚠️ The list pane scrolls, not the window. `jobs-list.js` observes this element for the
 * infinite scroll, because on desktop `window` never scrolls at all.
 */
.sjb-listpane__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px;
}

.sjb-cards {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

/* ===================================================================================
 * Cards (§L)
 * =================================================================================== */

.sjb-card {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 11px;
	padding: 10px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius-card);
	background: var(--sjb-surface-2);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sjb-card:hover {
	border-color: var(--sjb-hover-line);
	background: var(--sjb-surface-3);
}

/* The keyboard equivalent of the hover state, so the card a reader is on is obvious. */
.sjb-card:focus-within {
	border-color: var(--sjb-accent-line);
}

.sjb-card.is-featured {
	border-color: var(--sjb-accent-line);
}

.sjb-card.is-highlighted {
	border-color: var(--sjb-accent);
	background: var(--sjb-accent-soft);
}

.sjb-card__media {
	min-height: 118px;
}

.sjb-card__img,
.sjb-card__fallback {
	display: block;
	width: 118px;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
	background: var(--sjb-surface-3);
}

.sjb-card__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sjb-text-faint);
}

.sjb-card__body {
	min-width: 0;
	/* Room for the heart and the date, both of which are absolutely positioned. */
	padding-right: 30px;
}

.sjb-card__title {
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;

	/* §L: two or three lines, never more. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sjb-card__link {
	color: var(--sjb-text);
	text-decoration: none;
}

/*
 * The whole card is clickable, without wrapping anything in a second anchor: this overlay
 * covers the card and belongs to the title link. The heart and the locate button sit above
 * it, so they stay independently clickable (§L.512–516).
 */
.sjb-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--sjb-radius-card);
}

.sjb-card__employer,
.sjb-card__where {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 2px;
	font-size: 12.5px;
	color: var(--sjb-text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sjb-card__pin {
	flex: 0 0 auto;
	color: var(--sjb-text-faint);
}

.sjb-verified {
	display: inline-flex;
	color: var(--sjb-accent-text);
}

.sjb-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.sjb-tag {
	padding: 2px 7px;
	border: 1px solid var(--sjb-border-strong);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--sjb-text-dim);
	white-space: nowrap;
}

.sjb-tag.is-accent {
	border-color: var(--sjb-accent-line);
	color: var(--sjb-accent-text);
}

.sjb-card__save,
.sjb-card__locate {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--sjb-text-faint);
	cursor: pointer;
}

.sjb-card__save { top: 8px; right: 8px; }
.sjb-card__locate { top: 40px; right: 8px; opacity: 0; }

.sjb-card:hover .sjb-card__locate,
.sjb-card__locate:focus-visible {
	opacity: 1;
}

.sjb-card__save:hover,
.sjb-card__locate:hover {
	background: var(--sjb-surface-3);
	color: var(--sjb-text);
}

.sjb-save[aria-pressed="true"] {
	color: var(--sjb-accent-text);
}

.sjb-save[aria-pressed="true"] .sjb-save__icon {
	fill: var(--sjb-accent);
	stroke: var(--sjb-accent);
}

.sjb-card__date {
	position: absolute;
	right: 10px;
	bottom: 9px;
	font-size: 11px;
	color: var(--sjb-text-faint);
}

/* --- Sentinel, status, pagination --- */

.sjb-list__sentinel {
	height: 1px;
}

.sjb-list__status {
	margin: 12px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: var(--sjb-text-faint);
}

.sjb-pagination {
	margin: 14px 0 4px;
	text-align: center;
}

.sjb-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}

.sjb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid var(--sjb-border);
	border-radius: 8px;
	color: var(--sjb-text-dim);
	font-size: 13px;
	text-decoration: none;
}

.sjb-pagination .page-numbers.current {
	background: var(--sjb-accent-soft);
	border-color: var(--sjb-accent-line);
	color: var(--sjb-text);
}

/*
 * Marked only once appending has actually worked, and un-marked again if a fetch fails —
 * a reader must never be left with neither a working scroll nor a page link.
 */
.sjb-pagination.is-superseded {
	opacity: 0.45;
}

/* --- Empty state (§AH) --- */

.sjb-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 44px 20px;
	text-align: center;
}

.sjb-empty__icon {
	color: var(--sjb-text-faint);
}

.sjb-empty__text {
	max-width: 34ch;
	margin: 0;
	color: var(--sjb-text-dim);
}

.sjb-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.sjb-empty__aside {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: var(--sjb-text-faint);
}

/* ===================================================================================
 * The mobile tab bar. Hidden here, shown in jobs-mobile.css.
 * =================================================================================== */

.sjb-tabbar {
	display: none;
}

/* ===================================================================================
 * The single offer (§R)
 * =================================================================================== */

.sjb-single {
	max-width: var(--sjb-single-max);
	margin: 0 auto;
	padding: 20px 20px 48px;
}

.sjb-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
	gap: 24px;
	align-items: start;
}

.sjb-single__side {
	position: sticky;
	top: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sjb-backlink {
	margin: 0 0 14px;
}

.sjb-backlink__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--sjb-text-dim);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.sjb-backlink__link:hover {
	color: var(--sjb-text);
}

.sjb-hero__media {
	position: relative;
	margin: 0 0 16px;
	border-radius: var(--sjb-radius-card);
	overflow: hidden;
}

.sjb-hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

.sjb-hero__stamp {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 4px 10px;
	border-radius: var(--sjb-radius-pill);
	background: color-mix(in srgb, var(--sjb-bg) 78%, transparent);
	color: var(--sjb-text);
	font-size: 11px;
	font-weight: 600;
}

.sjb-source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	padding: 4px 10px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius-pill);
	font-size: 12px;
	color: var(--sjb-text-dim);
}

.sjb-hero__title {
	margin: 0 0 6px;
	font-size: 28px;
	line-height: 1.2;
}

.sjb-hero__employer {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--sjb-text-dim);
}

.sjb-hero__where {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--sjb-text-dim);
}

.sjb-hero__approx {
	color: var(--sjb-text-faint);
	font-size: 12.5px;
}

.sjb-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.sjb-section {
	margin: 0 0 26px;
}

.sjb-section__title {
	margin: 0 0 10px;
	font-size: 17px;
}

.sjb-section__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sjb-section__list li {
	position: relative;
	padding: 4px 0 4px 22px;
	color: var(--sjb-text-dim);
}

.sjb-section__list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 13px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sjb-accent);
}

.sjb-section__note {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--sjb-text-faint);
}

.sjb-section__lede {
	margin: -6px 0 12px;
	font-size: 13px;
	color: var(--sjb-text-faint);
}

/* --- Gallery (§R, between "what is offered" and the map) --- */

.sjb-gallery__main {
	margin: 0 0 8px;
	border-radius: var(--sjb-radius-card);
	overflow: hidden;
}

.sjb-gallery__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--sjb-surface);
}

.sjb-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sjb-gallery__thumbitem {
	flex: 1 1 0;
	min-width: 0;
}

.sjb-gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--sjb-radius);
	overflow: hidden;
	background: none;
	cursor: pointer;
	line-height: 0;
}

.sjb-gallery__thumb:hover {
	border-color: var(--sjb-border-strong);
}

.sjb-gallery__thumb:focus-visible {
	outline: 2px solid var(--sjb-accent);
	outline-offset: 2px;
}

.sjb-gallery__thumb.is-active {
	border-color: var(--sjb-accent);
}

.sjb-gallery__thumbimg {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.sjb-prose {
	color: var(--sjb-text-dim);
}

.sjb-prose p:last-child {
	margin-bottom: 0;
}

.sjb-langlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sjb-langlist__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--sjb-border);
	font-size: 14px;
}

.sjb-langlist__item:last-child {
	border-bottom: 0;
}

.sjb-langlist__name {
	font-weight: 600;
}

.sjb-langlist__level {
	padding: 1px 7px;
	border: 1px solid var(--sjb-border-strong);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--sjb-text-dim);
}

.sjb-langlist__need {
	margin-left: auto;
	font-size: 12px;
	color: var(--sjb-text-faint);
}

/* --- Sidebar boxes --- */

.sjb-box {
	padding: 16px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius-card);
	background: var(--sjb-surface);
}

.sjb-box__title {
	margin: 0 0 12px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--sjb-text-faint);
}

.sjb-box--apply {
	border-color: var(--sjb-accent-line);
	background: var(--sjb-accent-soft);
}

.sjb-box__note {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: var(--sjb-text-faint);
}

.sjb-box__note--quiet {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--sjb-accent-text);
}

.sjb-box__warning {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 10px 0 0;
	padding: 9px 11px;
	border-radius: var(--sjb-radius);
	background: var(--sjb-danger-soft);
	color: var(--sjb-text-dim);
	font-size: 12.5px;
}

.sjb-contacts {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.sjb-contacts__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	font-size: 13.5px;
	color: var(--sjb-text-dim);
}

.sjb-contacts__item a {
	color: var(--sjb-text);
	text-decoration: none;
	word-break: break-word;
}

.sjb-contacts__item a:hover {
	text-decoration: underline;
}

.sjb-facts {
	margin: 0;
}

.sjb-facts__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid var(--sjb-border);
}

.sjb-facts__row:last-child {
	border-bottom: 0;
}

.sjb-facts__label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12.5px;
	color: var(--sjb-text-faint);
}

.sjb-facts__icon {
	flex: 0 0 auto;
}

.sjb-facts__value {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	text-align: right;
}

.sjb-facts__value--accent {
	color: var(--sjb-accent-text);
}

.sjb-facts__value a {
	color: var(--sjb-text);
	text-decoration: none;
}

.sjb-facts__value a:hover {
	color: var(--sjb-accent-text);
}

.sjb-employer {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sjb-employer__logo img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 8px;
	background: var(--sjb-surface-2);
}

.sjb-employer__name {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-weight: 650;
}

.sjb-employer__type {
	margin: 0;
	font-size: 12.5px;
	color: var(--sjb-text-faint);
}

.sjb-share {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sjb-share__save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--sjb-border-strong);
	border-radius: var(--sjb-radius);
	background: transparent;
	color: var(--sjb-text-dim);
	cursor: pointer;
}

/* --- Expired (§Y) --- */

.sjb-expired {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid var(--sjb-border-strong);
	border-radius: var(--sjb-radius-card);
	background: var(--sjb-surface-2);
}

.sjb-expired__icon {
	flex: 0 0 auto;
	color: var(--sjb-warning);
}

.sjb-expired__title {
	margin: 0;
	font-weight: 650;
}

.sjb-expired__text {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--sjb-text-dim);
}

.sjb-expired .sjb-btn {
	margin-left: auto;
	flex: 0 0 auto;
}

/* --- External preview (§X) --- */

.sjb-preview__frame iframe {
	display: block;
	width: 100%;
	height: 100dvh;
	min-height: 640px;
	border: 1px solid var(--sjb-border);
	border-radius: var(--sjb-radius);
	background: var(--sjb-surface-2);
}

/* --- Related --- */

.sjb-related {
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--sjb-border);
}

.sjb-related__title {
	margin: 0 0 14px;
	font-size: 19px;
}

.sjb-related__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 11px;
}

.sjb-related__more {
	margin: 16px 0 0;
}

/* The sticky call to action is a phone affordance; jobs-mobile.css reveals it. */
.sjb-stickycta {
	display: none;
}

/* ===================================================================================
 * Ordinary pages
 * =================================================================================== */

.sjb-page,
.sjb-savedpage {
	max-width: var(--sjb-page-max);
	margin: 0 auto;
	padding: 32px 20px 56px;
}

.sjb-page__title,
.sjb-savedpage__title {
	font-size: 30px;
}

.sjb-page__lede,
.sjb-savedpage__lede {
	color: var(--sjb-text-dim);
}

.sjb-page__actions {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}

.sjb-taxintro {
	max-width: 70ch;
	margin: 0 auto;
	padding: 8px 20px 0;
	font-size: 13.5px;
	color: var(--sjb-text-faint);
}

.sjb-savedpage__section {
	margin-top: 28px;
}

.sjb-savedpage__subtitle {
	font-size: 17px;
}

.sjb-savedpage__status {
	font-size: 13px;
	color: var(--sjb-text-faint);
}

.sjb-savedpage .sjb-cards {
	max-width: 620px;
}

.sjb-searchlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sjb-searchlist li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--sjb-border);
}

.sjb-searchlist a {
	color: var(--sjb-text);
	font-weight: 600;
	text-decoration: none;
}

.sjb-searchlist button {
	margin-left: auto;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--sjb-text-faint);
	cursor: pointer;
}

.sjb-searchform__row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 520px;
}

.sjb-searchform__icon {
	position: absolute;
	left: 11px;
	color: var(--sjb-text-faint);
	pointer-events: none;
}

.sjb-searchform .sjb-input {
	padding-left: 36px;
}

/* ===================================================================================
 * Footer
 * =================================================================================== */

.sjb-footer {
	border-top: 1px solid var(--sjb-border);
	background: var(--sjb-header-bg);
}

/* The workspace fills the viewport exactly, so a footer under it would create a scrollbar. */
body.sjb-body--workspace .sjb-footer {
	display: none;
}

.sjb-footer__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: var(--sjb-page-max);
	margin: 0 auto;
	padding: 22px 20px;
}

.sjb-footer__brand {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.sjb-footer__tagline,
.sjb-footer__legal {
	margin: 0;
	font-size: 12px;
	color: var(--sjb-text-faint);
}

.sjb-footer__legal {
	margin-left: auto;
}

.sjb-footer__list {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sjb-footer__list a {
	color: var(--sjb-text-dim);
	font-size: 13px;
	text-decoration: none;
}
