/* Alliance Careers — /careers listing + /careers/{slug} position page.
   Same decoration language as the Contact page (cream hero, masked dot
   clusters, single corner bracket). The application form inside
   .careers-apply is styled by alliance-core (careers.css on top of
   leads.css) — nothing here targets form fields. */

.careers-wrap {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 48px; /* matches .pdp-container on Products / Resources */
}

/* ── Hero ── */
.careers-hero {
	position: relative;
	overflow: hidden;
	background: var(--au-cream);
	padding: 88px 0 84px;
}

.careers-hero::before {
	content: '';
	position: absolute;
	top: 40px;
	right: 0;
	width: 520px;
	height: 240px;
	background-image: radial-gradient(circle, rgba(54, 54, 54, .24) 1.5px, transparent 1.5px);
	background-size: 16px 16px;
	-webkit-mask-image:
		linear-gradient(#000, #000),
		linear-gradient(#000, #000),
		linear-gradient(#000, #000);
	        mask-image:
		linear-gradient(#000, #000),
		linear-gradient(#000, #000),
		linear-gradient(#000, #000);
	-webkit-mask-size: 200px 80px, 140px 120px, 170px 60px;
	        mask-size: 200px 80px, 140px 120px, 170px 60px;
	-webkit-mask-position: 90% 10%, 40% 60%, 80% 100%;
	        mask-position: 90% 10%, 40% 60%, 80% 100%;
	-webkit-mask-repeat: no-repeat;
	        mask-repeat: no-repeat;
	pointer-events: none;
	z-index: 0;
}

.careers-hero::after {
	content: '';
	position: absolute;
	bottom: 40px;
	left: 5%;
	width: 18px;
	height: 18px;
	border-bottom: 1.5px solid rgba(54, 54, 54, .5);
	border-left: 1.5px solid rgba(54, 54, 54, .5);
	pointer-events: none;
}

.careers-hero h1 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: clamp(30px, 3.6vw, 40px);
	line-height: 1.15;
	letter-spacing: -.5px;
	color: var(--au-charcoal);
	margin: 0 0 16px;
	max-width: 640px;
}

.careers-lead {
	font-family: var(--au-font-body);
	font-size: 16px;
	color: var(--au-text-mid);
	max-width: 560px;
	margin: 0;
}

.careers-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--au-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--au-gold);
	margin-bottom: 14px;
}

.careers-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--au-success-green);
	box-shadow: 0 0 0 4px rgba(60, 122, 70, .15);
	flex-shrink: 0;
}

/* Under-construction wall: hero only, a bit taller */
.careers-wall {
	padding: 96px 0 104px;
}
.careers-wall .careers-lead {
	margin-bottom: 28px;
}

/* Position page hero (.au-page-hero): back link above the title */
.careers-back {
	display: inline-block;
	font-family: var(--au-font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--au-link-color);
	margin-bottom: 22px;
	text-decoration: none;
}
.careers-back:hover {
	color: var(--au-link-hover);
}

/* ── Chips (location / type / pay / posted) ── */
.careers-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Job page header: .au-page-hero-title only leaves 12px below it. */
.careers-role-hero .careers-chips {
	margin-top: 12px; /* + 12px from the title = 24px gap */
}

.careers-chip {
	font-family: var(--au-font-body);
	font-size: 13px;
	font-weight: 500;
	color: var(--au-charcoal);
	background: var(--au-pill-bg);
	border: 0;
	border-radius: 999px;
	padding: 5px 12px;
	line-height: 1.4;
}

/* ── Body ── */
.careers-body {
	padding: 64px 0 88px;
	background: var(--au-white);
}

/* Listing page: extra breathing room so a one-or-two-job list (or the
   empty state) doesn't leave the footer riding up the screen. */
.careers-listing {
	padding: 88px 0 160px;
	min-height: 52vh;
}

/* Listing */
.careers-list-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--au-border);
}

.careers-list-head h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: 26px;
	color: var(--au-charcoal);
	margin: 0;
}

.careers-list-head p {
	font-size: 16px;
	color: var(--au-text-mid);
	margin: 0;
}

.careers-list {
	display: flex;
	flex-direction: column;
}

.careers-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 24px 20px;
	margin: 0 -20px;
	border-bottom: 1px solid var(--au-border);
	border-left: 3px solid transparent;
	text-decoration: none;
	color: inherit;
	transition: background .15s, border-color .15s;
}
.careers-row:hover {
	background: var(--au-cream-tint);
	border-left-color: var(--au-gold);
	color: inherit;
}

.careers-row h3 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: 21px;
	color: var(--au-charcoal);
	margin: 0 0 4px;
}

.careers-row p {
	font-size: 16px;
	color: var(--au-text-mid);
	max-width: 640px;
	margin: 0 0 12px;
}

/* Looks like .au-btn-primary, but it's a span inside the row link. */
.careers-row-cta {
	flex-shrink: 0;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	min-height: var(--au-btn-min-height);
	padding: 5px 20px;
	border-radius: 3px;
	font-family: var(--au-font-button);
	font-weight: var(--au-btn-font-weight);
	font-size: var(--au-btn-font-size);
	letter-spacing: var(--au-btn-letter-spacing);
	color: var(--au-btn-text-color);
	background: var(--au-gold);
	transition: background .15s;
}
.careers-row:hover .careers-row-cta {
	background: var(--au-tan-light);
}

.careers-empty .au-btn {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Empty state (no open positions) */
.careers-empty {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	background: var(--au-cream-tint);
	border: 1px solid var(--au-border-soft);
	border-radius: 10px;
	padding: 48px 32px;
}

.careers-empty .careers-eyebrow {
	justify-content: center;
}

.careers-empty h2 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: 26px;
	color: var(--au-charcoal);
	margin: 0 0 10px;
}

.careers-empty p {
	font-size: 16px;
	color: var(--au-text-mid);
	max-width: 480px;
	margin: 0 auto 22px;
}

/* ── Description + sticky apply card ── */
.careers-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 64px;
	align-items: start;
}

.careers-content {
	font-family: var(--au-font-body);
	font-size: 16px;
	color: var(--au-text-mid);
	line-height: 1.65;
}

.careers-content > *:first-child {
	margin-top: 0;
}

/* Section headings (About us, What you'll do, …) — clearly larger than the
   h4 sub-group headings below them (Drafting & design, …). */
.careers-content > h2,
.careers-content > h3 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
	color: var(--au-charcoal);
	margin: 40px 0 12px;
}

/* Sub-group headings inside a section (e.g. "Drafting & design") */
.careers-content > h4 {
	font-family: var(--au-font-heading);
	font-weight: 600;
	font-size: 16px;
	color: var(--au-charcoal);
	margin: 18px 0 8px;
}

.careers-content p {
	margin: 0 0 14px;
}

.careers-content ul {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.careers-content ul li {
	position: relative;
	padding-left: 20px;
}

/* Gold square bullets */
.careers-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .62em;
	width: 7px;
	height: 7px;
	background: var(--au-gold);
}

.careers-content a {
	color: var(--au-link-color);
}
.careers-content a:hover {
	color: var(--au-link-hover);
}

.careers-apply {
	position: sticky;
	top: 24px;
	background: var(--au-cream); /* #EDEBE3 */
	border-radius: 10px;
	padding: 30px 28px;
}

/* Clear Blocksy's sticky header when logged in / on scroll. */
.admin-bar .careers-apply {
	top: 56px;
}

.careers-apply h2 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: 22px;
	color: var(--au-charcoal);
	margin: 0 0 4px;
}

.careers-apply-sub {
	font-size: 16px;
	color: var(--au-text-mid);
	margin: 0 0 22px;
}

.careers-apply-fine {
	font-size: 12.5px;
	color: var(--au-text-mid);
	text-align: center;
	margin: 14px 0 0;
}
.careers-apply-fine a {
	color: var(--au-link-color);
	word-break: break-word;
}
.careers-apply-fine a:hover {
	color: var(--au-link-hover);
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.careers-wrap {
		padding: 0 22px;
	}
	.careers-hero {
		padding: 48px 0;
	}
	.careers-hero::before {
		opacity: .5;
	}
	.careers-body {
		padding: 48px 0 64px;
	}
	.careers-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.careers-apply {
		position: static;
	}
	.careers-listing {
		padding: 56px 0 104px;
		min-height: 0;
	}
	.careers-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
}

@media (max-width: 560px) {
	.careers-wrap {
		padding: 0 16px;
	}
	.careers-apply {
		padding: 24px 18px;
	}
	.careers-hero::after {
		display: none;
	}
	.careers-empty {
		padding: 36px 20px;
	}
}
