/**
 * Single job page. Mobile-first. Loaded only on job pages.
 * The hero uses the hero block's styles (blocks/hero/style.css, Compact).
 */

/* Astra: no padding around the page; the sections are edge to edge. */
.single-cxo_job .site-content > .ast-container {
	display: block;
	max-width: none;
	padding: 0;
}

.single-cxo_job #primary {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* base.css pads page articles for full-width blocks; the job page draws
 * its own edge-to-edge sections, so opt out (beats the doubled class). */
.ast-page-builder-template.ast-page-builder-template .site-main > article.cxo-job {
	padding: 0;
}

/* ---------- Hero ---------- */
/* The Compact hero flows top to bottom, so the extra back link and meta
 * row just stack. Tighter rows here. */
.cxo-hero.cxo-job__hero .cxo-hero__inner {
	row-gap: 1.25rem;
}

.cxo-job__back {
	margin: 0 0 clamp(0.5rem, 2vw, 2rem);
	animation: cxo-hero-fade-up 0.9s var(--cxo-ease, ease) both;
}

.cxo-hero.cxo-hero .cxo-job__back a {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--cxo-white);
	font-size: 1.0625rem;
	font-weight: 500;
	text-decoration: none;
}

.cxo-hero.cxo-hero .cxo-job__back a:hover span,
.cxo-hero.cxo-hero .cxo-job__back a:focus-visible span {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.cxo-job__back .cxo-icon {
	transition: transform 0.25s var(--cxo-ease);
}

.cxo-job__back a:hover .cxo-icon {
	transform: translateX(-3px);
}

.cxo-hero.cxo-hero .cxo-job__meta {
	align-items: center;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	animation: cxo-hero-fade-up 0.9s var(--cxo-ease, ease) 0.1s both;
}

.cxo-hero.cxo-hero .cxo-job__meta .cxo-badge {
	font-size: 0.875rem;
}

.cxo-hero.cxo-hero .cxo-badge--outline.cxo-badge--filled {
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
}

/* ---------- Body ---------- */
.cxo-job__layout {
	display: grid;
	gap: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.cxo-job__content {
	display: grid;
	gap: clamp(2.5rem, 2rem + 2vw, 4rem);
	max-width: 48rem;
}

.cxo-job__section > .cxo-label {
	margin-bottom: 1.25rem;
}

.cxo-section .cxo-job__prose,
.cxo-section .cxo-job__prose :where(p, li) {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
	line-height: 1.55;
}

/* Lists typed in the editor keep their bullets (base.css resets lists). */
.cxo-section.cxo-section .cxo-job__prose :where(ul, ol) {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

.cxo-section.cxo-section .cxo-job__prose ul {
	list-style: disc;
}

.cxo-section.cxo-section .cxo-job__prose ol {
	list-style: decimal;
}

.cxo-section .cxo-job__prose > :first-child {
	margin-top: 0;
}

.cxo-section .cxo-job__prose > :last-child {
	margin-bottom: 0;
}

.cxo-section.cxo-section .cxo-job__prose a {
	text-decoration: underline;
	color: var(--cxo-white);
	text-decoration-color: var(--cxo-red-light);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.cxo-job__list {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cxo-section .cxo-job__list li {
	position: relative;
	margin: 0;
	padding-left: 1.5rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
	line-height: 1.45;
}

.cxo-job__list li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0.1rem;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--cxo-red-light);
}

/* ---------- "Interested?" box ---------- */
.cxo-job__box {
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
	border: 1px solid var(--cxo-line);
	border-radius: calc(var(--cxo-radius) + 4px);
	background: var(--cxo-surface-raised);
}

.cxo-section .cxo-job__box-title {
	margin: 0 0 0.75rem;
	color: var(--cxo-white);
	font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.cxo-section .cxo-job__box-text {
	margin: 0 0 1.75rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.0625rem;
	line-height: 1.5;
}

.cxo-section .cxo-job__apply,
.cxo-section .cxo-job__apply:hover,
.cxo-section .cxo-job__apply:focus {
	text-decoration: none;
}

@media (max-width: 479px) {
	.cxo-job__apply {
		width: 100%;
	}
}

.cxo-job__facts {
	display: grid;
	gap: 0.9rem;
	margin: 2rem 0 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--cxo-line);
}

.cxo-job__facts > div {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1rem;
}

.cxo-section .cxo-job__facts dt {
	margin: 0;
	color: var(--cxo-text-dim);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.6;
	text-transform: uppercase;
}

.cxo-section .cxo-job__facts dd {
	margin: 0;
	color: var(--cxo-white);
	font-size: 1rem;
	line-height: 1.45;
}

/* ---------- Desktop: content left, box right and sticky ---------- */
@media (min-width: 1024px) {
	.cxo-job__layout {
		grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
		align-items: start;
	}

	.cxo-job__aside {
		position: sticky;
		top: 2rem;
	}

	.admin-bar .cxo-job__aside {
		top: calc(32px + 2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cxo-job__back,
	.cxo-hero.cxo-hero .cxo-job__meta {
		animation: none;
	}
}
