/*
 * AIM Careers — front-end styles.
 *
 * Scoped to plugin classes only. Colours, spacing and radii come from the
 * theme's CSS custom properties so this inherits the AIM look and adapts if the
 * palette changes. Nothing here resets or restyles a global element.
 *
 * Card and apply-button styles for .aim-vacancy* already ship in the theme; this
 * file adds the facts panel, filters, department grouping, application form,
 * sticky apply bar and confirmation — the 2.0 surfaces the theme has not seen.
 */

.aim-careers,
.aim-vacancies,
.aim-vacancies-empty,
.aim-filters,
.aim-job-layout,
.aim-job-main,
.aim-job-summary,
.aim-apply,
.aim-job-applybar {
	--aimc-accent: var(--wp--preset--color--aim-red, #DA0024);
	--aimc-accent-dark: var(--wp--preset--color--aim-red-dark, #A80020);
	--aimc-ink: var(--wp--preset--color--ink, #15181B);
	--aimc-soft: var(--wp--preset--color--ink-soft, #3A4046);
	--aimc-line: var(--wp--preset--color--mist, #E2E6EA);
	--aimc-surface: var(--wp--preset--color--surface, #F4F6F7);
	--aimc-radius: 6px;
	--aimc-gap: clamp(1rem, 2.5vw, 1.75rem);
}

/* ---------- Filters bar ----------
 *
 * Fields mirror the site form inputs (the .aim-rfq field styling): 3rem tall,
 * silver border, brand-red focus ring, so the whole site's controls match.
 */

.aim-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1rem;
	align-items: flex-end;
	margin-bottom: calc(var(--aimc-gap) * 1.5);
	padding: clamp(1rem, 2vw, 1.5rem);
	background: var(--aimc-surface);
	border: 1px solid var(--aimc-line);
	border-radius: var(--aimc-radius);
}

.aim-filters__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1 1 180px;
	min-width: 0;
}

.aim-filters__field label {
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--aimc-soft);
}

.aim-filters__field input,
.aim-filters__field select {
	box-sizing: border-box;
	width: 100%;
	height: 3rem;
	padding: 0 0.85rem;
	border: 1px solid var(--wp--preset--color--silver, #C7C7C7);
	border-radius: 2px;
	background: #fff;
	font: inherit;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	color: var(--aimc-ink);
	transition: border-color 160ms, box-shadow 160ms;
}

.aim-filters__field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233A4046' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
}

.aim-filters__field input:focus,
.aim-filters__field select:focus {
	outline: none;
	border-color: var(--aimc-accent);
	box-shadow: 0 0 0 3px rgba(218, 0, 36, 0.12);
}

.aim-filters__actions {
	display: flex;
	gap: 0.5rem;
	flex: 0 0 auto;
	align-items: stretch;
}

/* When the bar wraps onto a narrow screen the actions take the full row and the
 * buttons share it evenly, instead of a lone left-hugging Filter button. */
@media (max-width: 40rem) {
	.aim-filters__field {
		flex-basis: 100%;
	}

	.aim-filters__actions {
		flex: 1 1 100%;
	}

	.aim-filters__submit {
		flex: 1 1 auto;
		justify-content: center;
	}
}

.aim-filters__submit,
.aim-filters__clear {
	height: 3rem;
	padding: 0 1.4rem;
	border-radius: 2px;
	font: inherit;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--aimc-accent);
	transition: background 160ms, color 160ms;
}

.aim-filters__submit {
	background: var(--aimc-accent);
	color: #fff;
}

.aim-filters__submit:hover,
.aim-filters__submit:focus-visible {
	background: var(--aimc-accent-dark);
	border-color: var(--aimc-accent-dark);
}

.aim-filters__clear {
	background: #fff;
	color: var(--aimc-accent);
	text-decoration: none;
}

.aim-filters__clear:hover,
.aim-filters__clear:focus-visible {
	background: var(--aimc-accent);
	color: #fff;
}

/* ---------- Department grouping ---------- */

.aim-dept-group {
	margin-bottom: calc(var(--aimc-gap) * 1.75);
}

.aim-dept-group__head {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 0 0 1.1rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--aimc-line);
}

/* Sized down from the theme's default h2 so a department heading labels its
 * group without competing with the role titles inside it. The .aim-careers
 * prefix lifts specificity above the theme's `.alignfull h2` rhythm rule, which
 * would otherwise inject a large top margin and drop the heading out of line
 * with its count chip. */
.aim-careers .aim-dept-group__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	line-height: 1.2;
}

.aim-dept-group__count {
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--aimc-soft);
	background: var(--aimc-surface);
	border: 1px solid var(--aimc-line);
	border-radius: 999px;
	padding: 0.2rem 0.65rem;
	white-space: nowrap;
}

.aim-results-summary {
	margin: 0 0 var(--aimc-gap);
	color: var(--aimc-soft);
	font-size: 0.9rem;
}

/* The theme caps a child of a main > .alignfull band at the 760px content size
 * and left-aligns it, which left the whole careers page in a narrow left column
 * with a wide empty gutter. These wrappers are full-width layouts (a role list
 * and card grids), so opt them out of that cap and let them fill the rail. */
.aim-careers.aim-vacancies-wrap,
.aim-careers.aim-careers-section,
.aim-careers.aim-careers-cta {
	max-width: none;
}

/* ---------- Vacancy list ----------
 *
 * Scoped under .aim-careers so these win over the theme's base .aim-vacancy
 * rules. Full-width row cards rather than a tile grid: with only a handful of
 * open roles a grid leaves large empty gaps, whereas a row per role fills the
 * width and reads like a proper job board. Each card is a stretched link over
 * the title that lifts on hover, with a brand-red edge that grows in, and the
 * Apply button pinned to the right.
 */

.aim-careers .aim-vacancies {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.aim-careers .aim-vacancy {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem 2rem;
	padding: 1.4rem 1.6rem;
	background: #fff;
	border: 1px solid var(--aimc-line);
	border-radius: var(--aimc-radius);
	box-shadow: 0 1px 2px rgba(21, 24, 27, 0.04);
	overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

/* Growing red edge on hover/focus — the accent the flat cards were missing. */
.aim-careers .aim-vacancy::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--aimc-accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 180ms ease;
}

.aim-careers .aim-vacancy:hover,
.aim-careers .aim-vacancy:focus-within {
	transform: translateY(-2px);
	border-color: var(--wp--preset--color--silver, #C7C7C7);
	box-shadow: var(--wp--preset--shadow--lift, 0 2px 4px rgba(21, 24, 27, .08), 0 12px 32px rgba(21, 24, 27, .1));
}

.aim-careers .aim-vacancy:hover::before,
.aim-careers .aim-vacancy:focus-within::before {
	transform: scaleY(1);
}

.aim-careers .aim-vacancy__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.aim-careers .aim-vacancy__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	line-height: 1.25;
}

.aim-careers .aim-vacancy__title a {
	text-decoration: none;
	color: var(--aimc-ink);
	transition: color 160ms ease;
}

/* Stretched link: the title covers the whole card, so the tile is clickable
 * while the Apply button (lifted above) stays a separate action. */
.aim-careers .aim-vacancy__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.aim-careers .aim-vacancy:hover .aim-vacancy__title a {
	color: var(--aimc-accent);
}

.aim-careers .aim-vacancy__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
}

.aim-vacancy__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.6rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 0.72rem;
	letter-spacing: 0.02em;
	line-height: 1.2;
	color: var(--aimc-soft);
	background: var(--aimc-surface);
	border: 1px solid var(--aimc-line);
}

.aim-vacancy__chip--status {
	color: var(--aimc-accent-dark);
	background: #fff2f4;
	border-color: #f6ccd3;
}

.aim-careers .aim-vacancy__summary {
	margin: 0;
	max-width: 70ch;
	color: var(--aimc-soft);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Apply sits at the right edge of the row, vertically centred with the copy. */
.aim-careers .aim-vacancy__foot {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border-top: 0;
}

/* Lift the Apply button above the stretched title link so it stays clickable.
 * The theme's default apply button carries a large red drop-shadow tuned for the
 * single-vacancy page; soften it a touch inside the list row. */
.aim-careers .aim-vacancy__foot .aim-vacancy__apply {
	position: relative;
	z-index: 1;
	box-shadow: 0 2px 8px rgba(218, 0, 36, 0.18);
}

.aim-careers .aim-vacancy__foot .aim-vacancy__apply:hover,
.aim-careers .aim-vacancy__foot .aim-vacancy__apply:focus-visible {
	box-shadow: 0 4px 14px rgba(218, 0, 36, 0.26);
}

/* Narrow screens: stack the row and let Apply span the full width. */
@media (max-width: 40rem) {
	.aim-careers .aim-vacancy {
		flex-direction: column;
		align-items: stretch;
	}

	.aim-careers .aim-vacancy__foot .aim-vacancy__apply {
		width: 100%;
		justify-content: center;
	}
}

/* ---------- Header chips (single vacancy) ----------
 *
 * The at-a-glance facts, shown as pills beneath the title inside the dark ink
 * header band. Neutral facts sit on a translucent white fill; the closing
 * status is tinted so the deadline reads first.
 */

/* The department eyebrow is a linked term; on the dark band render it as the
 * lightened brand tint with no underline, matching the static eyebrow. */
.aim-job-header .aim-eyebrow,
.aim-job-header .aim-eyebrow a {
	color: var(--wp--preset--color--aim-red-light, #FF4356);
	text-decoration: none;
}

.aim-job-header .aim-eyebrow a:hover,
.aim-job-header .aim-eyebrow a:focus-visible {
	text-decoration: underline;
}

.aim-job-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.aim-job-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	line-height: 1.2;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.aim-job-chip--status {
	color: #fff;
	background: rgba(255, 67, 86, 0.16);
	border-color: rgba(255, 67, 86, 0.55);
}

/* ---------- Two-column body layout ----------
 *
 * Description on the left, a sticky Apply card on the right. The aside is first
 * in the DOM (so it stacks under the header on narrow screens) but placed into
 * the right rail explicitly, so source order and visual order can differ.
 */

.aim-job-layout {
	max-width: var(--aim-rail, 1280px);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--50, 3rem) var(--aim-gutter, clamp(1.25rem, 4vw, 2.5rem)) var(--wp--preset--spacing--60, 4.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 21rem;
	grid-template-areas: "main aside";
	column-gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

.aim-job-main {
	grid-area: main;
	min-width: 0;
	max-width: 68ch;
}

.aim-job-aside {
	grid-area: aside;
	position: sticky;
	top: 1.5rem;
	align-self: start;
}

@media (max-width: 880px) {
	.aim-job-layout {
		display: block;
	}

	.aim-job-main {
		max-width: none;
	}

	.aim-job-aside {
		position: static;
		margin-bottom: var(--aimc-gap);
	}
}

/* ---------- Description polish ---------- */

.aim-job-main .wp-block-post-content > :first-child {
	margin-top: 0;
}

/* Section headings inside the description get an accent tick and clear space. */
.aim-job-main .wp-block-post-content h2,
.aim-job-main .wp-block-post-content h3 {
	margin: 2.25rem 0 0.85rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--aimc-line);
}

.aim-job-main .wp-block-post-content > h2:first-child,
.aim-job-main .wp-block-post-content > h3:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.aim-job-main .wp-block-post-content ul {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.aim-job-main .wp-block-post-content ul li {
	position: relative;
	padding-left: 1.6rem;
	line-height: 1.6;
}

/* A small square tick in the brand red, aligned to the first line. */
.aim-job-main .wp-block-post-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.5rem;
	height: 0.5rem;
	background: var(--aimc-accent);
	border-radius: 1px;
}

/* ---------- Sticky Apply card ---------- */

.aim-job-summary {
	margin: 0;
	padding: 1.5rem 1.5rem 1.6rem;
	background: #fff;
	border: 1px solid var(--aimc-line);
	border-top: 3px solid var(--aimc-accent);
	border-radius: var(--aimc-radius);
	box-shadow: var(--wp--preset--shadow--soft, 0 1px 2px rgba(21, 24, 27, .06), 0 6px 20px rgba(21, 24, 27, .06));
}

.aim-job-summary__eyebrow {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--aimc-accent);
}

.aim-job-facts {
	display: grid;
	gap: 0;
	margin: 0 0 1.25rem;
}

.aim-job-facts__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 0.7rem 0;
	border-top: 1px solid var(--aimc-line);
}

.aim-job-facts__row:first-child {
	border-top: 0;
	padding-top: 0;
}

.aim-job-facts dt {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
	color: var(--aimc-soft);
	margin: 0;
	flex: 0 0 auto;
}

.aim-job-facts dd {
	margin: 0;
	font-weight: 600;
	color: var(--aimc-ink);
	text-align: right;
}

.aim-job-summary__how {
	margin: 0.85rem 0 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--aimc-soft);
	text-align: center;
}

/* Full-width Apply button for the card. */
.aim-vacancy__apply--block {
	display: flex;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

/* ---------- Application form ----------
 *
 * The form reuses the theme's shared .aim-rfq* form system (the same card,
 * section legends, field grid, consent row and submit button as the Request-a-
 * Quote and Contact forms), so it is styled by theme.css. Only the pieces the
 * RFQ form does not have — the section wrapper, a CV upload, per-field inline
 * errors, the accessible error summary and the confirmation panel — are styled
 * here, and each is tuned to match the shared look.
 */

.aim-apply {
	margin-top: calc(var(--aimc-gap) * 1.75);
	padding-top: var(--aimc-gap);
	border-top: 1px solid var(--aimc-line);
	scroll-margin-top: 2rem;
}

.aim-apply__title {
	margin: 0 0 0.35rem;
}

.aim-apply__closing {
	color: var(--aimc-soft);
	margin: 0 0 0.5rem;
}

/* The card sits at the column's left edge, not centred, and fills its width. */
.aim-apply .aim-rfq {
	margin-top: 1rem;
	max-width: none !important;
}

/* Help text under a field label (e.g. accepted CV formats). Matches the mono
 * note used elsewhere in the form. */
.aim-rfq-help {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	color: var(--aimc-soft);
	line-height: 1.5;
}

/* File input: the shared rule gives single-line controls a fixed 3rem height
 * with zero vertical padding, which crushes a file picker — restore sensible
 * padding and auto height just for it. */
.aim-rfq-field .aim-rfq-file {
	height: auto;
	padding: 0.7rem 0.85rem;
	background: var(--aimc-surface);
	cursor: pointer;
}

.aim-rfq-field .aim-rfq-file::file-selector-button {
	font: inherit;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	font-weight: 600;
	margin-right: 0.85rem;
	padding: 0.45rem 0.9rem;
	color: #fff;
	background: var(--aimc-accent);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}

.aim-rfq-field .aim-rfq-file::file-selector-button:hover {
	background: var(--aimc-accent-dark);
}

/* Per-field inline error, beneath the control. */
.aim-apply__err {
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--danger, #8C1D18);
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
	font-weight: 600;
}

.aim-apply__privacy {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--x-small, 0.8125rem);
}

/* Error summary at the top of the card. Reuses .aim-rfq-error's panel; this
 * only lays out the linked list of fields to fix. */
.aim-apply__errors ul {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

.aim-apply__errors a {
	color: var(--wp--preset--color--danger, #8C1D18);
}

/* Confirmation panel — mirrors .aim-rfq-success (white card, green edge). */
.aim-apply--done {
	background: #fff;
	border: 1px solid var(--aimc-line);
	border-left: 3px solid var(--wp--preset--color--success, #1F8A5B);
	border-radius: 3px;
	padding: clamp(1.5rem, 3vw, 2.75rem);
}

.aim-apply__done-title {
	margin: 0 0 0.5rem;
}

.aim-apply__ref strong {
	font-size: 1.1rem;
}

.aim-apply--closed {
	color: var(--aimc-soft);
	font-style: italic;
}

/* ---------- Sticky mobile apply bar ---------- */

.aim-job-applybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.6rem 1rem;
	background: var(--aimc-ink);
	color: #fff;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}

.aim-job-applybar__title {
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aim-job-applybar .aim-vacancy__apply {
	flex: 0 0 auto;
	white-space: nowrap;
}

@media (min-width: 800px) {
	.aim-job-applybar {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aim-apply {
		scroll-behavior: auto;
	}
}

/* ---------- Careers page content ----------
 *
 * Supporting sections on the vacancies archive — why work at AIM, the hiring
 * process and the speculative-application prompt. These are plain block content
 * in the template; the classes below give the benefit and step items a light
 * card treatment consistent with the vacancy cards and the site's accent tick.
 */

/* Section heading + intro rhythm. The heading inherits the band's text colour
 * (dark on white/surface, white on ink) from the template group. The .aim-careers
 * prefix lifts these above the theme's `.alignfull h2` rhythm rule. */
.aim-careers .aim-careers-section > h2:first-child,
.aim-careers .aim-careers-cta__intro > h2:first-child {
	margin-top: 0;
}

.aim-careers-section__intro {
	margin: 0.75rem 0 0;
	max-width: 60ch;
	color: var(--aimc-soft);
	line-height: 1.7;
}

.aim-careers-cards,
.aim-careers-steps {
	list-style: none;
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.aim-careers-card {
	position: relative;
	padding: 1.5rem 1.5rem 1.6rem;
	background: #fff;
	border: 1px solid var(--aimc-line);
	border-top: 3px solid var(--aimc-accent);
	border-radius: var(--aimc-radius);
	box-shadow: 0 1px 2px rgba(21, 24, 27, 0.04);
}

/* .aim-careers prefix keeps these above the theme's `.alignfull h3` rhythm rule,
 * which would otherwise add a large top margin inside the card. */
.aim-careers .aim-careers-card__title {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	line-height: 1.3;
	color: var(--aimc-ink);
}

.aim-careers-card__text {
	margin: 0;
	color: var(--aimc-soft);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	line-height: 1.6;
}

/* Numbered steps: white cards (matching the benefit cards) that sit on the grey
 * Surface band, with a brand-red index badge above each step's heading. */
.aim-careers-step {
	position: relative;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--aimc-line);
	border-radius: var(--aimc-radius);
	box-shadow: 0 1px 2px rgba(21, 24, 27, 0.04);
	counter-increment: aim-step;
}

.aim-careers-step::before {
	content: counter(aim-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.9rem;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: var(--aimc-accent);
	border-radius: 999px;
}

.aim-careers-steps {
	counter-reset: aim-step;
}

.aim-careers .aim-careers-step__title {
	margin: 0 0 0.4rem;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	line-height: 1.3;
	color: var(--aimc-ink);
}

.aim-careers-step__text {
	margin: 0;
	color: var(--aimc-soft);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	line-height: 1.6;
}

/* Speculative CTA — an intro column beside the on-site application form, so the
 * band fills the width and a candidate can apply without leaving the page. */
.aim-careers-cta {
	display: grid;
	grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

.aim-careers-cta__intro {
	position: sticky;
	top: 1.5rem;
}

.aim-careers-cta__text {
	margin: 0.75rem 0 0;
	max-width: 42ch;
	color: var(--aimc-soft);
	line-height: 1.7;
}

/* The shared .aim-rfq card carries its own top margin; none is needed here. */
.aim-careers-cta__form .aim-rfq {
	margin-top: 0;
}

/* Stack the intro above the form on narrow screens. */
@media (max-width: 52rem) {
	.aim-careers-cta {
		grid-template-columns: 1fr;
	}

	.aim-careers-cta__intro {
		position: static;
	}
}

/* ---------- Careers messaging page ----------
 *
 * Extra sections that make the Careers page a candidate-facing messaging portal
 * rather than a second job board: the vision statement (on the dark ink band),
 * a compact openings teaser that links out to the full /vacancies/ listing, and
 * a no-JavaScript FAQ accordion. The why/values card grid and the section
 * heading/intro rhythm are shared with the existing sections above.
 */

/* Vision — a single bold statement on the ink band. The heading is forced white
 * and the .aim-careers prefix keeps it above the theme's `.alignfull h2` rhythm
 * rule; the eyebrow uses the lightened brand tint that reads on dark. */
.aim-careers-vision__eyebrow {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--aim-red-light, #FF4356);
}

.aim-careers .aim-careers-vision__heading {
	margin: 0;
	max-width: 22ch;
	font-size: clamp(1.6rem, 3.6vw, 2.5rem);
	line-height: 1.15;
	color: #fff;
}

.aim-careers-vision__text {
	margin: 1.25rem 0 0;
	max-width: 60ch;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	line-height: 1.7;
	color: var(--wp--preset--color--silver, #C7C7C7);
}

/* Openings teaser — slim hairline rows, each a link to the role, with the meta
 * chips pushed right and an arrow that slides in on hover. Deliberately lighter
 * than the full .aim-vacancy cards on /vacancies/. */
.aim-careers-openings__list {
	list-style: none;
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	padding: 0;
}

.aim-careers-opening {
	border-top: 1px solid var(--aimc-line);
}

.aim-careers-opening:last-child {
	border-bottom: 1px solid var(--aimc-line);
}

.aim-careers-opening__link {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 0.25rem;
	text-decoration: none;
	color: var(--aimc-ink);
	transition: color 160ms ease, padding-left 160ms ease;
}

.aim-careers-opening__link:hover,
.aim-careers-opening__link:focus-visible {
	color: var(--aimc-accent);
	padding-left: 0.75rem;
}

.aim-careers-opening__title {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	line-height: 1.3;
}

.aim-careers-opening__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	flex: 0 0 auto;
}

/* The band is grey (Surface); the shared chip fill is the same grey, so lift the
 * chips to white here to keep them legible. */
.aim-careers-openings .aim-vacancy__chip {
	background: #fff;
}

.aim-careers-opening__arrow {
	flex: 0 0 auto;
	font-size: 1.15rem;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.aim-careers-opening__link:hover .aim-careers-opening__arrow,
.aim-careers-opening__link:focus-visible .aim-careers-opening__arrow {
	opacity: 1;
	transform: none;
}

.aim-careers-openings__all {
	margin: clamp(1.5rem, 3vw, 2rem) 0 0;
}

.aim-careers-openings__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	height: 3rem;
	padding: 0 1.5rem;
	background: var(--aimc-accent);
	color: #fff;
	font-weight: 600;
	border-radius: 2px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(218, 0, 36, 0.18);
	transition: background 160ms ease, box-shadow 160ms ease;
}

.aim-careers-openings__button:hover,
.aim-careers-openings__button:focus-visible {
	background: var(--aimc-accent-dark);
	box-shadow: 0 4px 14px rgba(218, 0, 36, 0.26);
}

.aim-careers-openings__empty {
	margin: clamp(1.5rem, 3vw, 2rem) 0 0;
	color: var(--aimc-soft);
	line-height: 1.7;
}

.aim-careers-openings__empty a {
	color: var(--aimc-accent-dark);
}

/* Narrow screens: let the meta wrap under the title and drop the hover arrow. */
@media (max-width: 40rem) {
	.aim-careers-opening__link {
		flex-wrap: wrap;
		gap: 0.5rem 1rem;
	}

	.aim-careers-opening__title {
		flex-basis: 100%;
	}

	.aim-careers-opening__arrow {
		display: none;
	}
}

/* FAQ — a plain <details>/<summary> accordion (works with no JavaScript). The
 * default disclosure triangle is replaced with a brand chevron that flips open. */
.aim-careers-faq__list {
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	border-top: 1px solid var(--aimc-line);
}

.aim-careers-faq__item {
	border-bottom: 1px solid var(--aimc-line);
}

.aim-careers-faq__q {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 1.15rem 2.5rem 1.15rem 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	line-height: 1.4;
	color: var(--aimc-ink);
	transition: color 160ms ease;
}

.aim-careers-faq__q::-webkit-details-marker {
	display: none;
}

.aim-careers-faq__q:hover,
.aim-careers-faq__item[open] .aim-careers-faq__q {
	color: var(--aimc-accent);
}

/* Chevron built from two borders; rotates from pointing-down to pointing-up. */
.aim-careers-faq__q::after {
	content: "";
	position: absolute;
	right: 0.35rem;
	top: 1.5rem;
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2px solid var(--aimc-accent);
	border-bottom: 2px solid var(--aimc-accent);
	transform: rotate(45deg);
	transition: transform 200ms ease;
}

.aim-careers-faq__item[open] .aim-careers-faq__q::after {
	transform: rotate(-135deg);
}

.aim-careers-faq__a {
	padding: 0 2.5rem 1.3rem 0;
}

.aim-careers-faq__a p {
	margin: 0;
	max-width: 70ch;
	color: var(--aimc-soft);
	line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
	.aim-careers-opening__link,
	.aim-careers-opening__arrow,
	.aim-careers-faq__q::after {
		transition: none;
	}
}
