/**
 * Agent 14 — single job UX strip
 *
 * Careful with the Indeed-clone grid on #primary .single_job_listing:
 * that stylesheet sets display:grid + order on direct children.
 * We only claim order:0 / full column span for our own classes so we
 * do not disturb meta (1), company (2), apply/save (3), description (4).
 */

/* ---- Back to jobs ---- */
#primary .single_job_listing > .gaj-a14-back {
	order: 0;
	grid-column: 1 / -1;
	margin: 0 0 0.5rem;
	padding: 0;
}

.gaj-a14-back__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #2557a7;
	text-decoration: none;
	line-height: 1.3;
}

.gaj-a14-back__link:hover,
.gaj-a14-back__link:focus {
	color: #1a3f7a;
	text-decoration: underline;
}

.gaj-a14-back__link:focus-visible {
	outline: 2px solid #2557a7;
	outline-offset: 2px;
	border-radius: 2px;
}

.gaj-a14-back__chevron {
	font-size: 1em;
	line-height: 1;
}

/* ---- Sticky summary strip (desktop) ---- */
#primary .single_job_listing > .gaj-a14-summary {
	order: 0;
	grid-column: 1 / -1;
	margin: 0 0 0.85rem;
	/* sticky only on desktop — see media query below */
	position: relative;
	z-index: 15;
	background: #f7f8fb;
	border: 1px solid #e6e8ee;
	border-radius: 8px;
	padding: 0.55rem 0.9rem;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 0.9rem;
	flex-wrap: wrap;
}

.gaj-a14-summary__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0;
	/* Compact “sidebar summary” feel: dense horizontal facts */
	font-size: 0.875rem;
	line-height: 1.35;
	color: #1a1a2e;
	flex: 1 1 auto;
	min-width: 0;
}

/* Primary Apply in sticky strip (desktop; mobile uses bottom bar) */
.gaj-a14-summary__apply {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.95rem;
	border-radius: 8px;
	background: #2557a7;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(26, 26, 46, 0.08);
}

.gaj-a14-summary__apply:hover,
.gaj-a14-summary__apply:focus {
	background: #1a3f7a;
	color: #fff !important;
}

.gaj-a14-summary__apply:focus-visible {
	outline: 2px solid #2557a7;
	outline-offset: 2px;
}

.gaj-a14-summary__item {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	max-width: 100%;
}

.gaj-a14-summary__sep {
	display: inline-block;
	margin: 0 0.45rem;
	color: #9aa3b5;
	font-weight: 600;
	user-select: none;
}

.gaj-a14-summary__value {
	font-weight: 600;
	color: #1a1a2e;
	/* Long locations: allow wrap, keep strip tidy */
	word-break: break-word;
}

.gaj-a14-summary__item--company .gaj-a14-summary__value {
	color: #1a1a2e;
}

.gaj-a14-summary__item--location .gaj-a14-summary__value {
	font-weight: 500;
	color: #3d4454;
}

.gaj-a14-summary__item--salary .gaj-a14-summary__value {
	color: #0d7a4f;
	font-weight: 700;
}

.gaj-a14-summary__item--remote .gaj-a14-summary__value {
	color: #2557a7;
	font-weight: 700;
}

/* Screen-reader labels (theme may not define .screen-reader-text) */
.gaj-a14-summary .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Desktop: stick under viewport top while scrolling the long description */
@media (min-width: 768px) {
	#primary .single_job_listing > .gaj-a14-summary {
		position: sticky;
		top: 0;
		/* Soft lift when stuck over description content */
		box-shadow: 0 2px 10px rgba(26, 26, 46, 0.06);
	}
}

/* Mobile: static strip; bottom sticky apply already owned by pass.css */
@media (max-width: 767px) {
	#primary .single_job_listing > .gaj-a14-summary {
		position: static;
		box-shadow: none;
		padding: 0.5rem 0.75rem;
	}

	.gaj-a14-summary__list {
		font-size: 0.8125rem;
	}

	/* Avoid double Apply CTAs — fixed bottom bar is the mobile primary */
	.gaj-a14-summary__apply {
		display: none;
	}
}

/* Print: keep facts, drop sticky chrome */
@media print {
	#primary .single_job_listing > .gaj-a14-summary {
		position: static !important;
		box-shadow: none !important;
		border-color: #ccc;
	}

	#primary .single_job_listing > .gaj-a14-back {
		display: none;
	}
}
