/**
 * Single Job Template – Styles
 * Loaded only on single `jobs` pages.
 */

[x-cloak] { display: none !important; }

/* ── Reset GeneratePress container constraints ─────────────────────────────────
 * get_header() wraps our content in .inside-site-content which has a max-width
 * and padding set by the theme. Strip all of that so our sections can be truly
 * full-width. Scoped to body.single-jobs so it doesn't affect other pages.
 * ─────────────────────────────────────────────────────────────────────────── */

/* #content.site-content is a flex container in GeneratePress — our template
 * elements are direct children, so they'd stack horizontally instead of
 * vertically. Setting display:block removes the flex context entirely. */
body.single-jobs #content {
	display: block !important;
}

/* Strip any remaining container padding/max-width from GP's inner wrappers
 * in case they exist (depends on GP version / child theme setup). */
body.single-jobs .inside-site-content,
body.single-jobs .content-area,
body.single-jobs #main,
body.single-jobs .entry-content,
body.single-jobs .entry-header {
	max-width: none;
	padding: 0;
	margin: 0;
	float: none;
	width: 100%;
}

body.single-jobs .widget-area {
	display: none;
}

/* ── Sticky Topbar ────────────────────────────────────────────────────────────── */

.dbw-job-topbar {
	position: sticky;
	/* --dbw-site-header-offset is the live bottom-edge of the GP site
	 * header in the viewport (set by inline JS, recomputed on scroll +
	 * resize). It already includes the admin-bar offset, so the topbar
	 * always sits flush below whatever's pinned at the top. Falls back
	 * to the admin-bar height when JS hasn't run yet, so the first paint
	 * on logged-in users isn't behind the admin bar. */
	top: var(--dbw-site-header-offset, var(--wp-admin--admin-bar--height, 0px));
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	height: 64px;
	display: flex;
	align-items: center;
}

.dbw-job-topbar__inner {
	max-width: min(var(--wp--style--global--wide-size, 1200px), 100%);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.dbw-job-topbar__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.dbw-job-topbar__name {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--wp--preset--color--base-dark, #0f0f11);
	line-height: 1.2;
}

.dbw-job-topbar__meta {
	font-size: 12px;
	color: #888;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
}

/* Topbar CTA — colour/variant come from .dbw-button.is-style-primary
 * (foundation). Only the topbar-specific compact sizing lives here. */
.dbw-job-topbar__cta.dbw-button {
	flex-shrink: 0;
	padding: 9px 20px;
	font-size: 13px;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.dbw-job-topbar__meta { display: none; }
}

/* ── Hero: Gender-Suffix (m/w/d) ──────────────────────────────────────────────── */

.wp-block-dbw-base-hero .dbw-job-gender-mark {
	color: var(--wp--preset--color--accent, #f5a623);
	font-style: italic;
}

/* ── Accent-clash fallbacks ───────────────────────────────────────────────────
 * `dbw-job-accent-clash` is set server-side when the configured background
 * (hero or CTA band) is nearly the same color as the accent. Accent elements
 * switch to contrast-safe colors so they don't vanish (e.g. gold on gold). */

.wp-block-dbw-base-hero.dbw-job-accent-clash .dbw-job-gender-mark {
	color: rgba(255, 255, 255, 0.55);
}

.wp-block-dbw-base-hero.dbw-job-accent-clash .dbw-button.is-style-accent {
	background-color: var(--wp--preset--color--dark-grey, #1a1a1a);
	border-color: var(--wp--preset--color--dark-grey, #1a1a1a);
	color: #fff;
}

.wp-block-dbw-base-hero.dbw-job-accent-clash .dbw-button.is-style-accent:hover,
.wp-block-dbw-base-hero.dbw-job-accent-clash .dbw-button.is-style-accent:focus-visible {
	background-color: color-mix(in srgb, var(--wp--preset--color--dark-grey, #1a1a1a) 80%, #fff);
	border-color: color-mix(in srgb, var(--wp--preset--color--dark-grey, #1a1a1a) 80%, #fff);
	color: #fff;
}

/* ── Hero USP Pills ───────────────────────────────────────────────────────────── */

.wp-block-dbw-base-hero .dbw-hero-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.wp-block-dbw-base-hero .dbw-hero-pill {
	display: inline-flex;
	align-items: center;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 5px 14px;
	white-space: nowrap;
	backdrop-filter: blur(4px);
}

.wp-block-dbw-base-hero .dbw-hero-pill--salary {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--wp--preset--color--accent, #f5a623);
	color: var(--wp--preset--color--accent, #f5a623);
}

/* ── Key Facts Cards (2×2 grid in content column) ─────────────────────────────── */

.dbw-job-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 2.5rem;
}

.dbw-job-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding: 24px 20px;
	border-radius: 14px;
	/* Very subtle primary tint — color-mix gives a clean tonal background
	 * that follows the theme primary, with a static fallback for older browsers. */
	background: color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 5%, #fff);
	background-color: #f3f5f8; /* fallback */
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 10%, transparent);
}

.dbw-job-stat__icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	background: color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 12%, #fff);
	color: var(--wp--preset--color--primary, #00376B);
}

.dbw-job-stat__icon svg {
	width: 20px;
	height: 20px;
}

.dbw-job-stat__value {
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00376B);
	line-height: 1.3;
}

.dbw-job-stat__label {
	font-size: 12.5px;
	color: var(--wp--preset--color--secondary, #6b7280);
	line-height: 1.4;
	font-weight: 500;
}

@media (max-width: 480px) {
	.dbw-job-stats {
		grid-template-columns: 1fr;
	}
}

/* ── Two-column body (content + sidebar) ──────────────────────────────────────── */

.dbw-job-body {
	background: #fff;
	padding-block: clamp(3rem, 6vw, 5rem);
}

.dbw-job-body__inner {
	max-width: min(var(--wp--style--global--wide-size, 1200px), 100%);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem);
	/* No `align-items: start` here: the sidebar grid item must stretch
	 * to the row height so position:sticky inside it has a long enough
	 * scrolling parent to actually stick. */
}

@media (max-width: 920px) {
	.dbw-job-body__inner {
		grid-template-columns: 1fr;
	}
	.dbw-job-sidebar {
		order: -1;
	}
	/* Sticky doesn't make sense once the sidebar sits above the content
	 * — it would just glue the card to the top of the viewport while the
	 * user scrolls through the body. Static feels right on mobile. */
	.dbw-job-sidebar__sticky {
		position: static;
		top: auto;
	}
}

/* ── Content sections ─────────────────────────────────────────────────────────── */

.dbw-job-content {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 5vw, 4rem);
}

.dbw-job-section__eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--accent, #f5a623);
	margin: 0 0 6px;
}

.dbw-job-section__title {
	font-family: var(--wp--preset--font-family--serif-heading, "Playfair Display", serif);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--primary, #00376B);
	margin: 0 0 20px;
	line-height: 1.15;
}

.dbw-job-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dbw-job-list li {
	background: color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 4%, #fff);
	background-color: #f3f5f8; /* fallback */
	border-radius: 10px;
	padding: 16px 18px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	color: var(--wp--preset--color--dark-grey, #1a1a1a);
	line-height: 1.55;
}

.dbw-job-list li::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent, #e8a020);
	flex-shrink: 0;
	margin-top: 0.55em;
}

/* ── Benefits checklist ────────────────────────────────────────────────────── */

.dbw-job-benefits-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dbw-job-benefits-list li {
	background: color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 4%, #fff);
	background-color: #f3f5f8; /* fallback */
	border-radius: 10px;
	padding: 16px 18px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	color: var(--wp--preset--color--dark-grey, #1a1a1a);
	line-height: 1.55;
}

.dbw-job-benefits-list li::before {
	content: "✓";
	color: var(--wp--preset--color--accent, #e8a020);
	font-weight: 800;
	font-size: 17px;
	flex-shrink: 0;
	line-height: 1.55;
}

/* ── Content image (between „Was du machst" and „Dein Profil") ─────────────── */

.dbw-job-content-image {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 4%, #fff);
	background-color: #f3f5f8; /* fallback */
}

.dbw-job-content-image__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Aspect-ratio modifiers — admin can pick auto / 1:1 / 4:5 / 16:9 */
.dbw-job-content-image.is-aspect-1-1 .dbw-job-content-image__img,
.dbw-job-content-image.is-aspect-4-5 .dbw-job-content-image__img,
.dbw-job-content-image.is-aspect-16-9 .dbw-job-content-image__img {
	height: 100%;
	width: 100%;
}

.dbw-job-content-image.is-aspect-1-1  .dbw-job-content-image__img { aspect-ratio: 1 / 1; }
.dbw-job-content-image.is-aspect-4-5  .dbw-job-content-image__img { aspect-ratio: 4 / 5; }
.dbw-job-content-image.is-aspect-16-9 .dbw-job-content-image__img { aspect-ratio: 16 / 9; }

.dbw-job-content-image__caption {
	font-size: 13px;
	color: var(--wp--preset--color--secondary, #6b7280);
	font-style: italic;
	text-align: center;
	padding: 12px 16px 14px;
	margin: 0;
	line-height: 1.5;
}

/* Requirements with MUSS / GUT tags — 2-column card layout */

.dbw-job-req-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (max-width: 600px) {
	.dbw-job-req-list {
		grid-template-columns: 1fr;
	}
}

.dbw-job-req-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 4%, #fff);
	background-color: #f3f5f8; /* fallback */
	color: var(--wp--preset--color--dark-grey, #1a1a1a);
	line-height: 1.4;
}

/* MUSS items get a stronger primary tint */
.dbw-job-req-item--muss {
	background: color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 9%, #fff);
	background-color: #e6ecf3; /* fallback */
}

.dbw-job-req-check {
	color: var(--wp--preset--color--accent, #e8a020);
	flex-shrink: 0;
}

.dbw-job-req-text {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--primary, #00376B);
	line-height: 1.35;
}

.dbw-job-req-tag {
	font-size: 9.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 4px 10px;
	border-radius: 100px;
	flex-shrink: 0;
	line-height: 1.4;
}

.dbw-job-req-tag--muss {
	background: var(--wp--preset--color--primary, #00376B);
	color: #fff;
}

.dbw-job-req-tag--gut {
	background: transparent;
	color: var(--wp--preset--color--primary, #00376B);
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 25%, transparent);
}

.dbw-job-section__prose {
	color: #555;
	line-height: 1.65;
	margin: 0;
}

.dbw-job-section__intro {
	margin-bottom: 20px;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────────── */

.dbw-job-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-self: stretch;
}

.dbw-job-sidebar__sticky {
	position: sticky;
	/* Sit below: site-header → topbar → small gap. JS keeps both
	 * --dbw-site-header-offset and --dbw-topbar-height live with the
	 * actual rendered heights (recomputed on scroll/resize). Fallbacks:
	 * admin-bar + topbar's static 64px height. */
	top: calc(var(--dbw-site-header-offset, var(--wp-admin--admin-bar--height, 0px)) + var(--dbw-topbar-height, 64px) + 16px);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.dbw-job-sidebar__card {
	background: color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 4%, #fff);
	background-color: #f3f5f8; /* fallback */
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 10%, transparent);
	border-radius: 18px;
	padding: 26px 24px;
	box-shadow: 0 4px 24px color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 8%, transparent);
}

.dbw-job-sidebar__heading {
	font-family: var(--wp--preset--font-family--serif-heading, "Playfair Display", serif);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--primary, #00376B);
	margin: 0 0 18px;
	line-height: 1.2;
}

.dbw-job-sidebar__list {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dbw-job-sidebar__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.dbw-job-sidebar__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 10%, #fff);
	color: var(--wp--preset--color--primary, #00376B);
}

.dbw-job-sidebar__icon svg {
	width: 18px;
	height: 18px;
}

.dbw-job-sidebar__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dbw-job-sidebar__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00376B);
	line-height: 1.35;
}

.dbw-job-sidebar__sub {
	font-size: 12.5px;
	color: var(--wp--preset--color--secondary, #6b7280);
	font-weight: 500;
	line-height: 1.4;
}

/* Sidebar CTAs — only layout (full-width, stacked spacing). The colour
 * variant comes from .dbw-button.is-style-primary / .is-style-outline. */
.dbw-job-sidebar__cta.dbw-button {
	width: 100%;
}

/* Spacing only between two stacked CTAs — disclaimer has its own margin-top. */
.dbw-job-sidebar__cta.dbw-button + .dbw-job-sidebar__cta.dbw-button {
	margin-top: 10px;
}

.dbw-job-sidebar__disclaimer {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--wp--preset--color--secondary, #6b7280);
	text-align: center;
	line-height: 1.5;
}

/* ── Sidebar: Ansprechpartner Card ─────────────────────────────────────────── */

.dbw-job-sidebar__contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
}

.dbw-job-sidebar__contact-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 8px;
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--primary, #00376B) 15%, transparent);
}

.dbw-job-sidebar__contact-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dbw-job-sidebar__contact-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--secondary, #6b7280);
	margin: 0;
}

.dbw-job-sidebar__contact-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--wp--preset--color--primary, #00376B);
	margin: 0 0 8px;
	line-height: 1.3;
}

.dbw-job-sidebar__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--wp--preset--color--primary, #00376B);
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.dbw-job-sidebar__contact-link:hover {
	opacity: 0.7;
}

.dbw-job-sidebar__contact-link svg {
	flex-shrink: 0;
	opacity: 0.6;
}

/* ── Split Content: About + Company Image ─────────────────────────────────────── */

.dbw-job-split {
	background: #fff;
	padding-block: clamp(3rem, 6vw, 5rem);
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.dbw-job-split__inner {
	max-width: min(var(--wp--style--global--wide-size, 1200px), 100%);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.dbw-job-split.has-image .dbw-job-split__inner {
	grid-template-columns: 1fr 1fr;
}

.dbw-job-split__heading {
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--base-dark, #0f0f11);
	margin: 0 0 16px;
	line-height: 1.2;
}

.dbw-job-split__prose {
	color: #555;
	line-height: 1.7;
	margin: 0;
}

/* Conversion CTA below the about-us prose. Plain text-flow continuation —
 * no card chrome, just a slightly heavier line setting up the question and
 * a single accent button under it. */
.dbw-job-split__cta {
	margin-top: 24px;
}

.dbw-job-split__cta-text {
	color: var(--wp--preset--color--base-dark, #0f0f11);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	margin: 0 0 14px;
}

.dbw-job-split__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dbw-job-split__media img {
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

@media (max-width: 768px) {
	.dbw-job-split.has-image .dbw-job-split__inner {
		grid-template-columns: 1fr;
	}

	.dbw-job-split__media {
		order: -1;
	}
}

/* ── Employee Quote ───────────────────────────────────────────────────────────── */

.dbw-job-quote-section {
	background: var(--wp--preset--color--primary, #781c2e);
	padding-block: clamp(3rem, 6vw, 5rem);
}

.dbw-job-quote-section__inner {
	max-width: min(var(--wp--style--global--content-size, 800px), 100%);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.dbw-job-quote {
	margin: 0;
}

.dbw-job-quote__text {
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 600;
	font-style: italic;
	line-height: 1.45;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 28px;
}

.dbw-job-quote__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.dbw-job-quote__author {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	font-style: normal;
}

.dbw-job-quote__role {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

/* ── Process Steps ────────────────────────────────────────────────────────────── */

.dbw-job-process {
	background: #f7f7fb;
	padding-block: clamp(3rem, 6vw, 5rem);
}

.dbw-job-process__inner {
	max-width: min(var(--wp--style--global--wide-size, 1200px), 100%);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.dbw-job-process__heading {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--base-dark, #0f0f11);
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	line-height: 1.2;
}

.dbw-job-steps {
	display: flex;
	justify-content: center;
	position: relative;
	gap: 0;
}

/* Connecting line – spans roughly from first to last circle center (4 steps = 12.5% each side) */
.dbw-job-steps::before {
	content: '';
	position: absolute;
	top: 24px;
	left: 12.5%;
	right: 12.5%;
	height: 1px;
	background: #d8dce8;
	z-index: 0;
}

.dbw-job-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 0 12px;
	position: relative;
	z-index: 1;
}

.dbw-job-step__num {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	/* default: pending (white + border) */
	background: #fff;
	border: 2px solid #d0d4dc;
	color: #b0b8c8;
}

/* Step 1 – done: primary */
.dbw-job-step:nth-child(1) .dbw-job-step__num {
	background: var(--wp--preset--color--primary, #1a2e4a);
	border-color: var(--wp--preset--color--primary, #1a2e4a);
	color: #fff;
}

/* Step 2 – current: accent */
.dbw-job-step:nth-child(2) .dbw-job-step__num {
	background: var(--wp--preset--color--accent, #f5a623);
	border-color: var(--wp--preset--color--accent, #f5a623);
	color: #fff;
}

.dbw-job-step__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--base-dark, #0f0f11);
	margin: 0;
	line-height: 1.25;
}

.dbw-job-step__desc {
	font-size: 13px;
	color: #888;
	line-height: 1.5;
	margin: 0;
}

.dbw-job-step__duration {
	margin: 6px 0 0;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent, #e8a020);
	line-height: 1.3;
}

@media (max-width: 640px) {
	.dbw-job-steps {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.dbw-job-steps::before { display: none; }

	.dbw-job-step {
		flex-direction: row;
		text-align: left;
		align-items: flex-start;
		padding: 0;
		gap: 16px;
	}

	.dbw-job-step__num { flex-shrink: 0; }
}

/* ── Apply Section (final CTA, dark primary band) ──────────────────────────── */

.dbw-job-apply {
	background: var(--wp--preset--color--primary, #00376B);
	color: #fff;
	padding-block: clamp(3.5rem, 7vw, 6rem);
}

/* Background variants — driven by the career_cta_bg setting (section-bg slugs) */
.dbw-job-apply.is-bg-accent {
	background: var(--wp--preset--color--accent, #e8a020);
}

.dbw-job-apply.is-bg-dark {
	background: var(--wp--preset--color--dark-grey, #1a1a1a);
}

.dbw-job-apply.is-bg-white {
	background: var(--wp--preset--color--white, #fff);
}

.dbw-job-apply.is-bg-off-white {
	background: var(--wp--preset--color--base-bg, #f5f3ef);
}

/* Accent clash on the CTA band: gold-on-gold highlights flip to white,
 * the accent CTA button flips to dark. */
.dbw-job-apply.dbw-job-accent-clash .dbw-job-apply__eyebrow,
.dbw-job-apply.dbw-job-accent-clash .dbw-job-apply__title-accent {
	color: rgba(255, 255, 255, 0.85);
}

.dbw-job-apply.dbw-job-accent-clash .dbw-button.is-style-accent {
	background-color: var(--wp--preset--color--dark-grey, #1a1a1a);
	border-color: var(--wp--preset--color--dark-grey, #1a1a1a);
	color: #fff;
}

.dbw-job-apply.dbw-job-accent-clash .dbw-button.is-style-accent:hover,
.dbw-job-apply.dbw-job-accent-clash .dbw-button.is-style-accent:focus-visible {
	background-color: color-mix(in srgb, var(--wp--preset--color--dark-grey, #1a1a1a) 80%, #fff);
	border-color: color-mix(in srgb, var(--wp--preset--color--dark-grey, #1a1a1a) 80%, #fff);
	color: #fff;
}

/* Light backgrounds: flip to dark text */
.dbw-job-apply.is-light {
	color: var(--wp--preset--color--dark-grey, #1a1a1a);
}

.dbw-job-apply.is-light .dbw-job-apply__title {
	color: var(--wp--preset--color--dark-grey, #1a1a1a);
}

.dbw-job-apply.is-light .dbw-job-apply__desc {
	color: rgba(0, 0, 0, 0.65);
}

.dbw-job-apply__inner {
	max-width: min(var(--wp--style--global--content-size, 800px), 100%);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.dbw-job-apply__head {
	margin-bottom: 32px;
	max-width: 640px;
}

.dbw-job-apply__eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent, #e8a020);
	margin: 0 0 14px;
	line-height: 1.2;
}

.dbw-job-apply__title {
	font-family: var(--wp--preset--font-family--serif-heading, "Playfair Display", serif);
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #fff;
	margin: 0 0 18px;
	line-height: 1.1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
}

.dbw-job-apply__title-accent {
	font-style: italic;
	font-weight: 700;
	color: var(--wp--preset--color--accent, #e8a020);
}

.dbw-job-apply__desc {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
	line-height: 1.55;
}

/* Apply CTA — colour comes from .dbw-button.is-style-accent (foundation).
 * The dark band needs slightly chunkier sizing for hierarchy. */
.dbw-job-apply__cta.dbw-button {
	gap: 10px;
	padding: 16px 36px;
	font-size: 15.5px;
	border-radius: 100px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* ── Apply modal styles live in apply-modal.css ────────────────────────────
 * The modal markup itself ships from inc/features/career/apply-modal.php
 * (rendered both inline by single-job.php for the page-bound trigger and
 * site-wide by site-apply-modal.php for the picker variant). Styles are
 * loaded once via the dbw-base-apply-modal-style handle so the look is
 * identical wherever the modal opens. */
