/*
 * Fallback templates (sites without Elementor): the archive, a facet's archive and a
 * single job. Loaded only when one of them renders - TemplateLoader::locate().
 *
 * Layout and tap targets only. Colour and type come from the theme: text inherits,
 * borders use currentColor, and the Apply button takes the theme's link colour.
 *
 * Plain class selectors, not :where(): a theme's element rules (`select`, `ul`,
 * `button`) outrank zero specificity and put back what this file sets.
 */

.smjf-archive,
.smjf-job {
	box-sizing: border-box;
	max-width: 72rem;
	margin-inline: auto;
	padding: 1.5rem 1rem 3rem;
}

.smjf-archive *,
.smjf-job * {
	box-sizing: inherit;
}

/* Filter form: stacked full-width fields on a phone, a wrapping row from 600px. */

.smjf-filter-form {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 2rem;
}

.smjf-filter-form__group {
	display: grid;
	gap: 0.25rem;
}

.smjf-filter-form label {
	font-size: 0.875em;
	font-weight: 600;
}

.smjf-filter-form select,
.smjf-filter-form button {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 6px;
	font: inherit;
}

.smjf-filter-form select {
	max-width: 100%;
	background-color: transparent;
	color: inherit;
}

.smjf-filter-form button {
	cursor: pointer;
	font-weight: 600;
}

@media (min-width: 600px) {
	.smjf-filter-form {
		grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
		align-items: end;
	}
}

/* Job list. */

.smjf-archive__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smjf-archive__list > .smjf-archive__item {
	margin: 0;
	padding: 1.25rem 0;
	border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.smjf-archive__link {
	font-size: 1.125em;
	font-weight: 600;
}

.smjf-archive__metas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 0.75em;
	margin-top: 0.25em;
	font-size: 0.875em;
}

.smjf-archive__excerpt {
	margin: 0.5em 0 0;
}

.smjf-archive__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin-top: 0.5rem;
}

.smjf-archive__actions a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.smjf-archive__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 1.5rem;
}

.smjf-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.5rem;
}

/* Single job. */

.smjf-job__facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.375rem 1rem;
	margin: 0 0 1.5rem;
}

.smjf-job__facts dt {
	font-weight: 600;
}

.smjf-job__facts dd {
	margin: 0;
}

.smjf-apply__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.5rem 1.5rem;
	border: 2px solid currentColor;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 599px) {
	.smjf-apply__link {
		width: 100%;
	}
}
