/* ==========================================================================
   abcBIM — jobs.css
   Jobs board (archive-abc_job.php, taxonomy-abc_discipline.php) and single job
   (single-abc_job.php). Page-specific only: job rows/cards, chips, buttons,
   page hero, pagination, empty state and the community band come from base.css.
   ========================================================================== */

/* ---------- Archive: board band ---------- */
.jobs-board__inner {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: var(--section-y-tight);
}

.jobs-toolbar {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* ---------- Archive: filter form ---------- */
.jobs-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 12px;
	margin: 0;
}

.jobs-filter__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 140px;
	min-width: 0;
}

.jobs-filter__field--keyword {
	flex: 2 1 280px;
}

.jobs-filter__field--check {
	flex: 0 0 auto;
}

.jobs-filter__label {
	font-family: var(--f-mono);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-subtle);
}

.jobs-filter__input,
.jobs-filter__select {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid var(--c-rule-strong);
	border-radius: 999px;
	background-color: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: 16px; /* 16px+ stops iOS Safari zooming the page on focus. */
	line-height: 1.2;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease;
}

.jobs-filter__input::placeholder {
	color: var(--c-subtle);
	opacity: 1;
}

.jobs-filter__input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.jobs-filter__select {
	padding-right: 44px;
	cursor: pointer;
	text-overflow: ellipsis;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315171A' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
	background-size: 12px 8px;
}

.jobs-filter__input:hover,
.jobs-filter__select:hover {
	border-color: var(--c-ink);
}

.jobs-filter__input:focus,
.jobs-filter__select:focus {
	outline: 2px solid var(--c-green);
	outline-offset: 2px;
	border-color: var(--c-green);
}

/* Remote toggle styled as a chip-height pill. */
.jobs-filter__check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 20px 0 16px;
	border: 1px solid var(--c-rule-strong);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	color: var(--c-ink);
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.jobs-filter__check:hover,
.jobs-filter__check:has(input:checked) {
	border-color: var(--c-ink);
}

.jobs-filter__check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--c-green);
	cursor: pointer;
}

.jobs-filter__check:has(input:focus-visible) {
	outline: 2px solid var(--c-green);
	outline-offset: 2px;
}

.jobs-filter__check input:focus-visible {
	outline: 0;
}

.jobs-filter__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 0 0 auto;
}

.jobs-filter__actions .btn {
	min-height: 46px;
}

/* ---------- Archive: results line ---------- */
.jobs-results {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 24px;
	margin-top: 48px;
}

.jobs-results__count,
.jobs-results__page {
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--c-muted);
}

.jobs-results__count {
	color: var(--c-ink);
}

.jobs-results + .job-list,
.jobs-results + .job-grid {
	margin-top: 16px;
}

/* ---------- Archive: empty state ---------- */
.jobs-empty {
	margin-top: 16px;
	border-top: 1px solid var(--c-ink);
}

.jobs-empty__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	margin-top: 20px;
}

/* ---------- Single: header ---------- */
.job-single__head {
	padding-top: clamp(32px, 5vw, 64px);
	padding-bottom: clamp(36px, 5vw, 56px);
}

.job-single__head .breadcrumbs {
	margin-bottom: clamp(28px, 4vw, 44px);
}

.job-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	font-family: var(--f-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.job-single__meta a.tag:hover {
	color: var(--c-ink);
}

.job-single__closes {
	color: var(--c-ink);
}

.job-single__closes.is-closed {
	color: var(--c-muted);
}

.job-single__title {
	max-width: 22ch;
	margin-top: 20px;
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(40px, 4.8vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.job-single__company {
	margin-top: 16px;
	font-size: 18px;
	line-height: 1.45;
	color: var(--c-slate);
}

/* ---------- Single: closed notice ---------- */
.job-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	margin-bottom: clamp(28px, 4vw, 40px);
	padding: 18px 22px;
	border: 1px solid var(--c-ink);
	border-left-width: 4px;
	border-radius: var(--radius);
	background: var(--c-paper);
}

.job-notice__text {
	flex: 1 1 360px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--c-slate);
}

.job-notice__title {
	display: block;
	font-family: var(--f-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--c-ink);
	margin-bottom: 4px;
}

.job-notice__link {
	white-space: nowrap;
}

/* ---------- Single: two columns ---------- */
.job-single__layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px 64px;
	padding-top: clamp(36px, 5vw, 56px);
	padding-bottom: var(--section-y-tight);
	border-top: 1px solid var(--c-ink);
}

.job-single__main {
	flex: 1 1 560px;
	min-width: 0;
	max-width: 760px;
}

.job-single__label {
	margin-bottom: 28px;
}

.job-single__aside {
	flex: 0 1 380px;
	min-width: 0;
}

/* Stacked (one column): let the card use the line, within a readable width. */
@media (max-width: 1099.98px) {
	.job-single__aside {
		flex: 1 1 100%;
		max-width: 560px;
	}
}

/* Side by side: the summary follows the reader. */
@media (min-width: 1100px) {
	.job-single__aside {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}

	.admin-bar .job-single__aside {
		top: calc(var(--header-h) + 56px);
	}
}

/* ---------- Single: summary card ---------- */
.job-summary {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	background: var(--c-paper);
	border: 1px solid var(--c-rule);
	border-radius: var(--radius);
}

.job-summary__list {
	border-top: 1px solid var(--c-rule);
}

.job-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px solid var(--c-rule);
	font-size: 15px;
	line-height: 1.45;
}

.job-summary__row dt {
	flex: 0 0 auto;
	font-family: var(--f-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-subtle);
}

.job-summary__row dd {
	min-width: 0;
	text-align: right;
	color: var(--c-ink);
	overflow-wrap: anywhere;
}

.job-summary__actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 4px;
}

.job-summary__btn {
	width: 100%;
	white-space: normal;
	text-align: center;
}

.job-summary__note {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--c-muted);
}

/* "My applications" link inside the signed-in note. */
.job-summary__note a {
	font-weight: 600;
	color: var(--c-green);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.job-summary__note a:hover {
	color: var(--c-ink);
}

/* Signed-in members who already opened the advert (same voice as the dialog's
   "● Signed in as …" line). */
.job-summary__applied {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: -4px;
	font-family: var(--f-mono);
	font-size: 11.5px;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-green);
}

.job-summary__applied-dot {
	flex: 0 0 auto;
	font-size: 9px;
}

/* ---------- Single: more roles ---------- */
.job-more .section-head + .job-list,
.job-more .section-head + .job-grid {
	margin-top: 40px;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.jobs-filter__field--keyword {
		flex-basis: 100%;
	}

	.jobs-filter__field--check,
	.jobs-filter__actions {
		flex: 1 1 auto;
	}

	.jobs-filter__check {
		width: 100%;
	}

	.jobs-results {
		margin-top: 40px;
	}

	.job-summary {
		padding: 20px;
	}
}
