/* WorkScout Platform — single job page, mobile first.
   Colours, chips, buttons and job cards come from site.css and home.css. */

/* ---------- Hero ---------- */
.wsp-jhero {
	position: relative;
	overflow: hidden;
	background: var(--wsp-sky);
}

.wsp-jhero__in {
	position: relative;
	z-index: 1;
	max-width: 1232px;
	margin: 0 auto;
	padding: 20px 16px 28px;
}

.wsp-jhero__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--wsp-muted);
	font-size: 13px;
	line-height: 1.4;
}

.wsp-jhero__crumbs li { margin: 0; padding: 0; list-style: none; min-width: 0; }
.wsp-jhero__crumbs li + li::before { content: "\203A"; margin: 0 8px; color: #9aa5b1; }
.wsp-jhero__crumbs a { color: var(--wsp-action); text-decoration: none; }
.wsp-jhero__crumbs a:hover { text-decoration: underline; }

.wsp-jhero__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.wsp-chip--white { background: #fff; }
.wsp-chip--type { background: #fff; color: var(--wsp-action); box-shadow: inset 0 0 0 1px #cfe6f8; font-weight: 600; }
.wsp-chip--new { background: #e6f6ec; color: #0d6b38; font-weight: 600; }

.wsp-jhero .wsp-jhero__title {
	margin: 0;
	color: var(--wsp-ink);
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-transform: none;
	overflow-wrap: break-word;
}

.wsp-jhero__org { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.wsp-jhero__orgtext { display: grid; gap: 2px; min-width: 0; }
.wsp-jhero__company { color: var(--wsp-ink); font-weight: 600; font-size: 16px; line-height: 1.35; }
.wsp-jhero__company a { color: var(--wsp-ink); text-decoration: none; }
.wsp-jhero__company a:hover { color: var(--wsp-action); text-decoration: underline; }
.wsp-jhero__loc { display: inline-flex; align-items: center; gap: 4px; color: var(--wsp-text); font-size: 14px; }
.wsp-jhero__loc svg { flex: none; color: var(--wsp-muted); }

.wsp-jhero__facts { margin: 14px 0 0; color: var(--wsp-muted); font-size: 14px; line-height: 1.5; }
.wsp-jhero__closing { color: #9a3c0b; font-weight: 600; }
.wsp-jhero__closing.is-urgent { padding: 1px 8px; border-radius: 999px; background: #9a3c0b; color: #fff; }

.wsp-jhero__grid { display: grid; gap: 20px; }

.wsp-jhero__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border-radius: var(--wsp-radius);
	background: #fff;
	box-shadow: 0 12px 32px rgba(9, 29, 46, 0.12);
}

@media (min-width: 1025px) {
	.wsp-jhero__in { padding: 28px 16px 48px; }
	.wsp-jhero .wsp-jhero__title { font-size: 40px; line-height: 1.12; }
	.wsp-jhero__chips { margin-top: 24px; }
	.wsp-jhero__grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: end; gap: 48px; }
	.wsp-jhero__actions { padding: 20px; }

	/* Same navy shape as the homepage hero. */
	.wsp-jhero::after {
		content: "";
		position: absolute;
		top: 0;
		right: -8%;
		width: 30%;
		height: 100%;
		background: var(--wsp-ink);
		border-radius: 0 0 0 200px;
		z-index: 0;
	}
}

/* ---------- Apply ---------- */
.wsp-apply {
	justify-content: center;
	min-height: 52px;
	font-size: 16px;
}

.wsp-apply:focus-visible { outline: 3px solid var(--wsp-ink); outline-offset: 2px; }
.wsp-apply__note { color: var(--wsp-muted); font-size: 13px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }

.wsp-jstatus {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff1e6;
	color: #9a3c0b;
	font-weight: 600;
	font-size: 15px;
	text-align: center;
}

/* Theme bookmark button (WP Job Manager Bookmarks), restyled */
.wsp-jhero__bookmark .bookmark-notice,
.wsp-jhero__bookmark a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	box-sizing: border-box;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--wsp-line);
	color: var(--wsp-ink);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
}

.wsp-jhero__bookmark .bookmark-notice:hover,
.wsp-jhero__bookmark a.button:hover { background: var(--wsp-sky); color: var(--wsp-ink); }
.wsp-jhero__bookmark .bookmark-notice i { color: #d4a53a; }

/* ---------- Main ---------- */
.wsp-jmain__in { max-width: 1232px; margin: 0 auto; padding: 32px 16px 48px; }
.wsp-jmain__start:empty { display: none; }
.wsp-jmain__grid { display: grid; gap: 32px; }

@media (min-width: 1025px) {
	.wsp-jmain__in { padding: 56px 16px 72px; }
	.wsp-jmain__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
}

.wsp-jsec__title,
.wsp-jmain .wsp-jsec__title {
	margin: 0 0 16px;
	color: var(--wsp-ink);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

/* Description: readable text whatever the import looks like */
.wsp-jdesc__text {
	max-width: 760px;
	color: var(--wsp-text);
	font-size: 16px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.wsp-jdesc__text > :first-child { margin-top: 0; }
.wsp-jdesc__text p { margin: 0 0 16px; }
.wsp-jdesc__text h1,
.wsp-jdesc__text h2,
.wsp-jdesc__text h3,
.wsp-jdesc__text h4,
.wsp-jdesc__text h5 {
	margin: 28px 0 10px;
	color: var(--wsp-ink);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
}
.wsp-jdesc__text ul,
.wsp-jdesc__text ol { margin: 0 0 20px; padding-left: 1.4em; }
.wsp-jdesc__text ul { list-style: disc; }
.wsp-jdesc__text ol { list-style: decimal; }
.wsp-jdesc__text li { margin: 0 0 6px; padding: 0; line-height: 1.65; list-style: inherit; }
.wsp-jdesc__text li::marker { color: var(--wsp-action); }
.wsp-jdesc__text a { color: var(--wsp-action); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.wsp-jdesc__text strong { color: var(--wsp-ink); }
.wsp-jdesc__text img { max-width: 100%; height: auto; }
.wsp-jdesc__text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.wsp-jdesc__text th,
.wsp-jdesc__text td { padding: 8px 10px; border: 1px solid var(--wsp-line); text-align: left; vertical-align: top; }

@media (min-width: 1025px) {
	.wsp-jdesc__text { font-size: 17px; }
	.wsp-jsec__title,
	.wsp-jmain .wsp-jsec__title { font-size: 26px; }
}

.wsp-jdesc__after { margin-top: 24px; }
.wsp-jdesc__after .job-manager-single-alert-link { margin: 0; }
.wsp-jdesc__after .job-manager-single-alert-link a { color: var(--wsp-action); font-weight: 600; }

.wsp-note {
	padding: 16px 18px;
	border-radius: 12px;
	background: #fff1e6;
	color: #9a3c0b;
	font-weight: 600;
}

/* Share */
.wsp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wsp-line); }
.wsp-share__label { color: var(--wsp-ink); font-weight: 600; font-size: 14px; }
.wsp-share__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wsp-share__list li { margin: 0; padding: 0; list-style: none; }

.wsp-share__btn {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--wsp-sky);
	color: var(--wsp-ink);
	font: inherit;
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.wsp-share__btn:hover { background: #dcedfb; color: var(--wsp-ink); }
.wsp-share__btn:focus-visible { outline: 3px solid var(--wsp-action); outline-offset: 2px; }
.wsp-share__btn--whatsapp { background: #0d6b38; color: #fff; }
.wsp-share__btn--whatsapp:hover { background: #0a5229; color: #fff; }

/* Scam warning */
.wsp-safety {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	padding: 16px 18px;
	border: 1px solid #f1dfb4;
	border-radius: 14px;
	background: var(--wsp-cream);
	color: #5a4a1f;
}

.wsp-safety svg { flex: none; margin-top: 2px; color: #b07d12; }
.wsp-safety p { margin: 0; font-size: 14px; line-height: 1.55; }
.wsp-safety strong { color: var(--wsp-ink); }
.wsp-safety a { color: var(--wsp-action); font-weight: 600; }

/* ---------- Side cards ---------- */
.wsp-jmain__side { display: grid; gap: 16px; }

.wsp-card {
	padding: 20px;
	border: 1px solid var(--wsp-line);
	border-radius: var(--wsp-radius);
	background: #fff;
}

.wsp-card__title,
.wsp-jmain .wsp-card__title {
	margin: 0 0 12px;
	color: var(--wsp-ink);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.wsp-ov__list { margin: 0; }
.wsp-ov__row { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--wsp-line); }
.wsp-ov__row:last-child { border-bottom: 0; }
.wsp-ov__row dt { color: var(--wsp-muted); font-weight: 400; font-size: 13px; }
.wsp-ov__row dd { margin: 0; color: var(--wsp-ink); font-weight: 600; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }

.wsp-ov__more { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.wsp-ov__more li { margin: 0; padding: 8px 0; list-style: none; border-top: 1px solid var(--wsp-line); }

.wsp-ov__apply { display: grid; gap: 8px; margin-top: 16px; scroll-margin-top: 120px; }
.wsp-apply--block { width: 100%; box-sizing: border-box; }

/* WP Job Manager's own apply block (email or form applications) */
.wsp-ov__apply .job_application { margin: 0; }
.wsp-ov__apply .application_button,
.wsp-ov__apply input.application_button {
	display: block;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 999px;
	background: var(--wsp-action);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

.wsp-ov__apply .application_button:hover { background: var(--wsp-action-dark); }
.wsp-ov__apply .application_details { margin-top: 12px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }

/* Company card */
.wsp-co-card__head { display: flex; align-items: center; gap: 14px; }
.wsp-co-card__name { margin: 0; color: var(--wsp-ink); font-weight: 700; font-size: 17px; line-height: 1.3; }
.wsp-co-card__name a { color: var(--wsp-ink); text-decoration: none; }
.wsp-co-card__name a:hover { color: var(--wsp-action); text-decoration: underline; }
.wsp-co-card__tag { margin: 4px 0 0; color: var(--wsp-muted); font-size: 13px; line-height: 1.45; }

.wsp-co-card__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; }
.wsp-co-card__links li { margin: 0; padding: 0; list-style: none; }
.wsp-co-card__links a { color: var(--wsp-action); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.wsp-co-card__links a:hover { text-decoration: underline; }

.wsp-co-card__more,
.wsp-co-card__msg { justify-content: center; width: 100%; box-sizing: border-box; margin-top: 16px; }
.wsp-co-card__msg { box-shadow: inset 0 0 0 2px var(--wsp-line); }

/* Similar jobs */
.wsp-block--similar { background: var(--wsp-sky); }
.wsp-block--similar .wsp-job { border-color: transparent; }