/* WorkScout Platform — Jobs page and job category / type archives, mobile first.
   Colours, search form, buttons and job cards come from site.css and home.css. */

/* ---------- Hero ---------- */
.wsp-lhero {
	position: relative;
	overflow: hidden;
	background: var(--wsp-sky);
}

.wsp-lhero__in {
	position: relative;
	z-index: 1;
	max-width: 1232px;
	margin: 0 auto;
	padding: 20px 16px 28px;
}

.wsp-lhero__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	color: var(--wsp-muted);
	font-size: 13px;
	line-height: 1.4;
}

.wsp-lhero__crumbs li { margin: 0; padding: 0; list-style: none; }
.wsp-lhero__crumbs li + li::before { content: "\203A"; margin: 0 8px; color: #9aa5b1; }
.wsp-lhero__crumbs a { color: var(--wsp-action); text-decoration: none; }
.wsp-lhero__crumbs a:hover { text-decoration: underline; }

.wsp-lhero .wsp-lhero__title {
	max-width: 760px;
	margin: 0;
	color: var(--wsp-ink);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: none;
	overflow-wrap: break-word;
}

.wsp-lhero__lead { max-width: 640px; margin: 10px 0 20px; color: var(--wsp-text); font-size: 15px; line-height: 1.55; }
.wsp-lhero__search { max-width: 760px; }

@media (min-width: 1025px) {
	.wsp-lhero__in { padding: 28px 16px 48px; }
	.wsp-lhero .wsp-lhero__title { font-size: 44px; line-height: 1.1; }
	.wsp-lhero__lead { font-size: 16px; margin-bottom: 24px; }

	.wsp-lhero::after {
		content: "";
		position: absolute;
		top: 0;
		right: -8%;
		width: 24%;
		height: 100%;
		background: var(--wsp-ink);
		border-radius: 0 0 0 200px;
		z-index: 0;
	}
}

/* ---------- Layout ---------- */
.wsp-list__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	max-width: 1232px;
	margin: 0 auto;
	padding: 20px 16px 48px;
}

@media (min-width: 1025px) {
	.wsp-list__in { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding: 40px 16px 72px; }
}

/* ---------- Filters ---------- */
.wsp-filters__box {
	border: 1px solid var(--wsp-line);
	border-radius: var(--wsp-radius);
	background: #fff;
}

.wsp-filters__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 16px;
	color: var(--wsp-ink);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	list-style: none;
}

.wsp-filters__toggle::-webkit-details-marker { display: none; }
.wsp-filters__toggle::after { content: "+"; margin-left: auto; color: var(--wsp-muted); font-size: 20px; font-weight: 400; }
.wsp-filters__box[open] > .wsp-filters__toggle::after { content: "\2212"; }
.wsp-filters__toggle:focus-visible { outline: 3px solid var(--wsp-action); outline-offset: 2px; border-radius: var(--wsp-radius); }

.wsp-filters__form { display: grid; gap: 20px; padding: 4px 16px 16px; }

.wsp-filters__group { margin: 0; padding: 0; border: 0; min-width: 0; }

.wsp-filters__label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--wsp-ink);
	font-weight: 600;
	font-size: 14px;
}

.wsp-filters__form select {
	width: 100%;
	min-height: 44px;
	padding: 0 10px;
	border: 1px solid var(--wsp-line);
	border-radius: 10px;
	background: #fff;
	color: var(--wsp-ink);
	font: inherit;
	font-size: 14px;
	box-shadow: none;
}

.wsp-filters__form select:focus { border-color: var(--wsp-action); outline: 3px solid rgba(2, 112, 187, 0.18); }

.wsp-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	margin: 0;
	color: var(--wsp-text);
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
}

.wsp-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--wsp-action); }

.wsp-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.wsp-filters__actions .wsp-btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.wsp-filters__clear { color: var(--wsp-action); font-weight: 600; font-size: 14px; }

@media (min-width: 1025px) {
	.wsp-filters { position: sticky; top: 100px; }
	.wsp-filters__toggle { cursor: default; pointer-events: none; }
	.wsp-filters__toggle::after { content: none; }
	.wsp-filters__box[open] > .wsp-filters__toggle::after { content: none; }
}

/* ---------- Results ---------- */
.wsp-filters,
.wsp-list__results { min-width: 0; }
.wsp-list__bar { display: grid; gap: 10px; margin-bottom: 16px; }
.wsp-list__count { margin: 0; color: var(--wsp-ink); font-weight: 600; font-size: 15px; }
.wsp-list__count span { color: var(--wsp-muted); font-weight: 400; }

.wsp-active { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wsp-active li { margin: 0; padding: 0; list-style: none; }

.wsp-active a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--wsp-sky);
	color: var(--wsp-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.wsp-active a:hover { background: #dcedfb; }
.wsp-active a:focus-visible { outline: 3px solid var(--wsp-action); outline-offset: 2px; }

/* Three cards per row beside the filters on desktop */
@media (min-width: 1025px) {
	.wsp-list__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Pagination ---------- */
.wsp-pager { margin-top: 32px; }
.wsp-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wsp-pager li { margin: 0; padding: 0; list-style: none; }

.wsp-pager__num,
.wsp-pager__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid var(--wsp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--wsp-ink);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

a.wsp-pager__num:hover,
.wsp-pager__step:hover { border-color: var(--wsp-action); color: var(--wsp-action); }
.wsp-pager__num.is-current { border-color: var(--wsp-ink); background: var(--wsp-ink); color: #fff; }
.wsp-pager__gap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--wsp-muted); }

/* ---------- Empty state ---------- */
.wsp-empty {
	padding: 24px 20px;
	border: 1px dashed #c9d3dd;
	border-radius: var(--wsp-radius);
	background: #fff;
}

.wsp-empty__title { margin: 0 0 12px; color: var(--wsp-ink); font-weight: 700; font-size: 18px; }
.wsp-empty__tips { margin: 0 0 8px; padding-left: 1.2em; color: var(--wsp-text); font-size: 15px; line-height: 1.6; }
.wsp-empty__tips li { margin: 0 0 6px; list-style: disc; }
.wsp-empty__tips a { color: var(--wsp-action); font-weight: 600; }