/* ── Reset / shared ────────────────────────────────────────────────────────── */
.wp-block-wp-career-board-job-single {
	max-width: 1100px;
	margin: 0 auto;
	padding: var(--wcb-space-2xl) var(--wcb-space-lg) var(--wcb-space-4xl);
	font-family: inherit;
	color: var(--wcb-contrast, #1e293b);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.wcb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wcb-space-xs); /* 0.4rem ≈ 6px → xs */
	padding: var(--wcb-space-md) var(--wcb-space-2xl); /* 0.7rem ≈ 11px → md */
	border: none;
	border-radius: var(--wcb-radius-md);
	font-size: var(--wcb-text-md);
	font-weight: var(--wcb-font-semibold);
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background var(--wcb-transition-snappy), opacity var(--wcb-transition-snappy);
	white-space: nowrap;
}
.wcb-btn--primary {
	background: var(--wcb-primary, #2563eb);
	color: var(--wcb-base, #fff);
}
.wcb-btn--primary:hover {
	background: var(--wcb-primary-dark, #1d4ed8);
	color: var(--wcb-base, #fff);
	text-decoration: none;
}
.wcb-btn--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.wcb-btn--full {
	width: 100%;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.wcb-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--wcb-space-xs) var(--wcb-space-sm); /* 0.2rem ≈ 3px → xs; 0.65rem ≈ 10px → sm */
	border-radius: var(--wcb-radius-full);
	font-size: var(--wcb-text-sm);
	font-weight: var(--wcb-font-medium);
	line-height: 1.4;
	text-decoration: none;
	color: inherit;
}
.wcb-badge--featured  { background: var(--wcb-warning-bg); color: var(--wcb-warning-fg); }
.wcb-badge--remote    { background: var(--wcb-success-bg); color: var(--wcb-success); }
.wcb-badge--type      { background: var(--wcb-surface, #f1f5f9); color: var(--wcb-text-secondary); }
.wcb-badge--exp       { background: var(--wcb-surface, #f1f5f9); color: var(--wcb-text-secondary); }
.wcb-badge--salary    { background: var(--wcb-surface, #f1f5f9); color: var(--wcb-text-secondary); font-weight: var(--wcb-font-semibold); }
.wcb-badge--location  { background: var(--wcb-surface, #f1f5f9); color: var(--wcb-text-secondary); }
.wcb-badge--posted    { background: transparent; color: var(--wcb-text-tertiary); font-size: var(--wcb-text-sm); padding: 0; }
.wcb-badge--sm { font-size: var(--wcb-text-xs); padding: 2px var(--wcb-space-sm); }

a.wcb-badge:hover { opacity: 0.8; }

.wcb-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: var(--wcb-text-xs);
	color: var(--wcb-teal-fg);
	font-weight: var(--wcb-font-semibold);
	background: var(--wcb-teal-bg);
	padding: 2px var(--wcb-space-sm); /* 0.45rem ≈ 7px → sm */
	border-radius: var(--wcb-space-xs);
	margin-inline-start: var(--wcb-space-xs); /* 0.4rem ≈ 6px → xs */
}

.wcb-verified-badge svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

/* ── Hero banner ─────────────────────────────────────────────────────────── */
.wcb-job-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	gap: var(--wcb-space-lg) var(--wcb-space-3xl);
	align-items: start;
	padding: var(--wcb-space-3xl);
	background: var(--wcb-base, #fff);
	border: 1px solid var(--wcb-border, #e2e8f0);
	border-radius: var(--wcb-radius-xl);
	margin-bottom: var(--wcb-space-2xl); /* 1.75rem ≈ 28px → 2xl */
}

.wcb-job-hero-brand {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	align-items: flex-start;
	gap: var(--wcb-space-lg);
	min-width: 0;
}

.wcb-company-avatar {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	background: var(--wcb-avatar-bg, #1e293b);
	color: var(--wcb-on-primary, #ffffff);
	border-radius: var(--wcb-radius-xl);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--wcb-text-xl);
	font-weight: var(--wcb-font-bold);
	letter-spacing: 0.02em;
}

.wcb-company-avatar--sm {
	width: 44px;
	height: 44px;
	border-radius: var(--wcb-radius-md);
	font-size: var(--wcb-text-base);
}

.wcb-hero-titles {
	flex: 1;
	min-width: 0;
}

.wcb-job-title {
	font-size: var(--wcb-text-2xl); /* 1.625rem ≈ 26px → 2xl (24px) */
	font-weight: var(--wcb-font-bold);
	line-height: var(--wcb-leading-tight);
	margin: 0 0 var(--wcb-space-xs); /* 0.3rem ≈ 5px → xs */
	color: var(--wcb-contrast, #0f172a);
}

.wcb-hero-company {
	font-size: 1rem; /* base body size — no token at 16px */
	font-weight: var(--wcb-font-medium);
	color: var(--wcb-text-secondary);
	margin: 0;
}

.wcb-hero-company-link {
	color: var(--wcb-text-secondary);
	text-decoration: none;
	font-weight: var(--wcb-font-medium);
}

.wcb-hero-company-link:hover {
	color: var(--wcb-primary, #2563eb);
	text-decoration: underline;
}

.wcb-job-hero-meta {
	grid-column: 1;
	grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wcb-space-xs);
	align-items: center;
	min-width: 0;
}

.wcb-hero-cta {
	grid-column: 2;
	grid-row: 1 / 3;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--wcb-space-sm); /* 0.6rem ≈ 10px → sm */
	padding-top: var(--wcb-space-xs);
}

.wcb-hero-cta .wcb-btn {
	min-width: 9rem; /* component-specific button width */
}

.wcb-deadline-note {
	font-size: var(--wcb-text-sm);
	color: var(--wcb-text-tertiary);
	margin: 0;
	text-align: end;
}

/* `.wcb-bookmark-hero-btn` styles live in assets/css/frontend-components.css
 * since Find Jobs, Companies, and Find Candidates single pages all use this
 * affordance. Removing the local copy here so the canonical rules win
 * regardless of which block stylesheet is enqueued first. */

.wcb-applied-badge {
	display: none;
	font-size: var(--wcb-text-md);
	font-weight: var(--wcb-font-semibold);
	color: var(--wcb-success);
	background: var(--wcb-success-bg-soft);
	border: 1px solid var(--wcb-success-border, #bbf7d0);
	border-radius: var(--wcb-radius-md);
	padding: var(--wcb-space-sm) var(--wcb-space-lg);
	margin: 0;
	text-align: center;
}

.wcb-applied-badge.wcb-shown {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wcb-space-xs);
}

.wcb-applied-badge svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.wcb-applied-badge--center {
	text-align: center;
}

/* ── Two-column body ─────────────────────────────────────────────────────── */
.wcb-job-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px; /* component-specific sidebar width */
	gap: var(--wcb-space-2xl);
	align-items: start;
}

/* ── Main content ────────────────────────────────────────────────────────── */
.wcb-job-main {
	min-width: 0;
}

.wcb-section {
	background: var(--wcb-base, #fff);
	border: 1px solid var(--wcb-border, #e2e8f0);
	border-radius: var(--wcb-radius-xl);
	padding: var(--wcb-space-2xl); /* 1.75rem ≈ 28px → 2xl */
	margin-bottom: var(--wcb-space-xl);
}

.wcb-section-heading {
	font-size: var(--wcb-text-lg);
	font-weight: var(--wcb-font-bold);
	color: var(--wcb-contrast, #0f172a);
	margin: 0 0 var(--wcb-space-xl);
	padding-bottom: var(--wcb-space-md);
	border-bottom: 1px solid var(--wcb-surface, #f1f5f9);
}

.wcb-section-heading-sm {
	font-size: var(--wcb-text-md);
	font-weight: var(--wcb-font-semibold);
	color: var(--wcb-contrast, #334155);
	margin: 0 0 var(--wcb-space-md);
}

/* Editor.js-authored job description — explicit rhythm so it reads as
   premium prose regardless of which theme is active. */
.wcb-job-description {
	font-size: var(--wcb-text-md);
	line-height: 1.75;
	color: var(--wcb-contrast, #334155);
}

.wcb-job-description > :first-child {
	margin-top: 0;
}

.wcb-job-description > :last-child {
	margin-bottom: 0;
}

.wcb-job-description p {
	margin: 0 0 var(--wcb-space-md);
}

.wcb-job-description h2,
.wcb-job-description h3,
.wcb-job-description h4 {
	margin: var(--wcb-space-xl) 0 var(--wcb-space-sm);
	color: var(--wcb-contrast, #0f172a);
	line-height: 1.35;
}

.wcb-job-description h2 { font-size: var(--wcb-text-xl); font-weight: var(--wcb-font-bold); } /* 1.25rem */
.wcb-job-description h3 { font-size: var(--wcb-text-lg); font-weight: var(--wcb-font-bold); } /* 1.0625rem ≈ 17px → lg (18px) */
.wcb-job-description h4 { font-size: 1rem; font-weight: var(--wcb-font-semibold); } /* base body size */

.wcb-job-description ul,
.wcb-job-description ol {
	padding-inline-start: var(--wcb-space-2xl);
	margin: 0 0 var(--wcb-space-md);
}

.wcb-job-description li {
	margin-bottom: var(--wcb-space-xs);
}

.wcb-job-description li::marker {
	color: var(--wcb-text-tertiary);
}

.wcb-job-description strong,
.wcb-job-description b {
	color: var(--wcb-contrast, #0f172a);
	font-weight: var(--wcb-font-semibold);
}

.wcb-job-description blockquote {
	margin: var(--wcb-space-md) 0;
	padding: var(--wcb-space-sm) 0 var(--wcb-space-sm) var(--wcb-space-lg);
	border-inline-start: 3px solid var(--wcb-border, #e2e8f0);
	color: var(--wcb-text-secondary);
	font-style: italic;
}

.wcb-job-description blockquote cite {
	display: block;
	margin-top: var(--wcb-space-xs);
	font-size: var(--wcb-text-sm);
	font-style: normal;
	color: var(--wcb-primary);
	font-weight: var(--wcb-font-semibold);
}

.wcb-job-description a {
	color: var(--wcb-primary);
	text-decoration: underline;
}

.wcb-job-description code {
	background: var(--wcb-bg-subtle, rgba(0, 0, 0, 0.05));
	border-radius: var(--wcb-radius-sm, 4px);
	padding: 0.125em 0.375em; /* em-based inline-code padding */
	font-size: 0.9em; /* relative to surrounding text */
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.wcb-tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wcb-space-sm);
}

.wcb-tag {
	display: inline-block;
	padding: var(--wcb-space-xs) var(--wcb-space-md);
	background: var(--wcb-bg-subtle);
	border: 1px solid var(--wcb-border, #e2e8f0);
	border-radius: var(--wcb-radius-full);
	font-size: var(--wcb-text-sm);
	color: var(--wcb-text-secondary);
	text-decoration: none;
}

a.wcb-tag:hover {
	background: var(--wcb-surface, #f1f5f9);
	border-color: var(--wcb-text-tertiary, #cbd5e1);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.wcb-job-sidebar {
	position: sticky;
	top: var(--wcb-space-3xl);
	display: flex;
	flex-direction: column;
	gap: var(--wcb-space-xl);
}

.wcb-sidebar-card {
	background: var(--wcb-base, #fff);
	border: 1px solid var(--wcb-border, #e2e8f0);
	border-radius: var(--wcb-radius-xl);
	padding: var(--wcb-space-2xl);
}

.wcb-card-title {
	display: flex;
	align-items: center;
	gap: var(--wcb-space-sm);
	font-size: var(--wcb-text-md);
	font-weight: var(--wcb-font-bold);
	color: var(--wcb-contrast, #0f172a);
	/* The job-single sidebar cards already sit inside their own rounded
	 * outer border, so the heading's old underline read as a second border
	 * stacked just inside the card edge. Drop the underline + extra
	 * padding and let the bottom margin do the breathing room instead.
	 * (Gap value is governed by wcb-ui.css's .wcb-card-title rule, which wins
	 * specificity over the theme's h3 cascade.) */
	margin: 0 0 var(--wcb-space-lg);
}

.wcb-card-title > svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	color: var(--wcb-primary);
}

.wcb-detail-list {
	margin: 0 0 var(--wcb-space-xl);
	display: flex;
	flex-direction: column;
	gap: var(--wcb-space-md);
}

.wcb-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--wcb-space-sm);
	font-size: var(--wcb-text-base);
}

.wcb-detail-row dt {
	color: var(--wcb-text-secondary);
	font-weight: var(--wcb-font-medium);
	flex-shrink: 0;
}

.wcb-detail-row dd {
	color: var(--wcb-contrast, #1e293b);
	font-weight: var(--wcb-font-medium);
	text-align: end;
	margin: 0;
}

/* Specificity bump to (0,2,1) so it beats theme `.entry-content
 * strong` typography rules without `!important`. */
[class*="wp-block-wp-career-board"] .wcb-salary-highlight {
	color: var(--wcb-primary, #2563eb);
	font-weight: var(--wcb-font-bold);
}

/* ── Company card ────────────────────────────────────────────────────────── */
.wcb-company-card-header {
	display: flex;
	align-items: center;
	gap: var(--wcb-space-md);
	margin-bottom: var(--wcb-space-md);
}

.wcb-company-card-name {
	font-size: var(--wcb-text-md);
	font-weight: var(--wcb-font-bold);
	color: var(--wcb-contrast, #0f172a);
	margin: 0;
	text-decoration: none;
	display: block;
}

a.wcb-company-card-name:hover {
	color: var(--wcb-primary, #2563eb);
	text-decoration: underline;
}

.wcb-company-bio {
	font-size: var(--wcb-text-base);
	line-height: 1.6;
	color: var(--wcb-text-secondary);
	margin: 0 0 var(--wcb-space-md);
}

.wcb-company-link {
	display: inline-flex;
	align-items: center;
	gap: var(--wcb-space-xs);
	font-size: var(--wcb-text-base);
	color: var(--wcb-primary, #2563eb);
	text-decoration: none;
	font-weight: var(--wcb-font-medium);
}

.wcb-company-link:hover {
	text-decoration: underline;
}

/* ── Interactivity API — class-based visibility ──────────────────────────── */

.wcb-panel-overlay,
.wcb-apply-panel {
	display: none;
}

.wcb-panel-overlay.wcb-open,
.wcb-apply-panel.wcb-open {
	display: block;
}

.wcb-apply-error {
	display: none;
	background: var(--wcb-danger-bg-soft);
	border: 1px solid var(--wcb-danger-border, #fecaca);
	color: var(--wcb-danger, #b91c1c);
	padding: var(--wcb-space-sm) var(--wcb-space-lg); /* 0.65rem ≈ 10px → sm */
	border-radius: var(--wcb-radius-md);
	font-size: var(--wcb-text-base);
	margin-bottom: var(--wcb-space-lg);
}

.wcb-apply-error.wcb-shown { display: block; }

.wcb-submitting-label {
	display: none;
}

.wcb-submitting-label.wcb-shown {
	display: inline;
}

/* ── Apply panel ─────────────────────────────────────────────────────────── */
/* z-index above common theme overlays (Reign rg-dark__scheme-toggle uses 99999). */
.wcb-panel-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 100000;
	backdrop-filter: blur(2px);
}

.wcb-apply-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(520px, 100%); /* component-specific panel width */
	background: var(--wcb-base, #fff);
	z-index: 100001;
	overflow-y: auto;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

/* Hide common theme-supplied floating widgets while the apply panel is
 * open so they don't visually overlap form fields. `!important` kept:
 * Reign / BuddyX dark-mode toggles ship their own `display: !important`
 * on .rg-dark__scheme-toggle / [class*="scheme-toggle"] - specificity
 * cannot beat their `!important`. */
body:has(.wcb-apply-panel.wcb-open) .rg-dark__scheme-toggle,
body:has(.wcb-apply-panel.wcb-open) [class*="scheme-toggle"],
body:has(.wcb-apply-panel.wcb-open) [class*="theme-toggler"] {
	display: none !important;
}

.wcb-apply-panel.wcb-open {
	animation: wcb-slide-in 0.25s ease-out;
}

@keyframes wcb-slide-in {
	from { transform: translateX(100%); }
	to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.wcb-apply-panel { animation: none !important; transition: none !important; }
}

/* `.wcb-panel-body` lives globally in `assets/css/frontend-components.css`. */

.wcb-panel-close {
	position: absolute;
	top: var(--wcb-space-xl);
	right: var(--wcb-space-xl);
	background: var(--wcb-surface, #f1f5f9);
	border: none;
	width: var(--wcb-space-3xl);
	height: var(--wcb-space-3xl);
	border-radius: 50%;
	font-size: var(--wcb-text-xl);
	line-height: 1;
	padding: 0;
	cursor: pointer;
	color: var(--wcb-text-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.wcb-panel-close:hover {
	background: var(--wcb-border, #e2e8f0);
	color: var(--wcb-text-secondary);
}

.wcb-panel-title {
	font-size: var(--wcb-text-2xl); /* 1.375rem ≈ 22px → 2xl (24px) */
	font-weight: var(--wcb-font-bold);
	color: var(--wcb-contrast, #0f172a);
	margin: 0 0 var(--wcb-space-xs);
}

.wcb-panel-subtitle {
	font-size: 1rem; /* base body size */
	color: var(--wcb-contrast, #334155);
	font-weight: var(--wcb-font-semibold);
	margin: 0 0 var(--wcb-space-xs); /* 0.15rem ≈ 2px → xs */
}

.wcb-panel-company {
	font-size: var(--wcb-text-base);
	color: var(--wcb-text-secondary);
	margin: 0 0 var(--wcb-space-2xl);
}

.wcb-field-label {
	display: block;
	font-size: var(--wcb-text-base);
	font-weight: var(--wcb-font-semibold);
	color: var(--wcb-contrast, #374151);
	margin-bottom: var(--wcb-space-xs); /* 0.4rem ≈ 6px → xs */
}

.wcb-field-hint {
	font-weight: var(--wcb-font-normal);
	color: var(--wcb-text-tertiary);
}

.wcb-cover-letter {
	width: 100%;
	padding: var(--wcb-space-md) var(--wcb-space-lg);
	border: 1.5px solid var(--wcb-border, #e2e8f0);
	border-radius: var(--wcb-radius-md);
	font-size: var(--wcb-text-md);
	font-family: inherit;
	line-height: 1.6;
	resize: vertical;
	color: var(--wcb-contrast, #1e293b);
	margin-bottom: var(--wcb-space-lg);
	transition: border-color var(--wcb-transition-snappy);
	box-sizing: border-box;
}

/* The cover letter now renders as the rich .wcb-editor (the plain
   .wcb-cover-letter textarea above is the legacy fallback). Give the editor the
   same bottom gap so it never touches the Submit button when it's the last field. */
.wcb-apply-panel .wcb-editor {
	margin-bottom: var(--wcb-space-lg);
}

/* Cover-letter label row — label on the left, "Write with AI" (Pro) on the right. */
.wcb-cover-letter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wcb-space-sm);
	flex-wrap: wrap;
}

.wcb-ai-cover-btn {
	margin-top: 6px;
}

.wcb-cover-letter:focus {
	outline: 2px solid transparent;
	border-color: var(--wcb-primary, #2563eb);
	box-shadow: var(--wcb-shadow-focus);
}

/* ── Apply panel — resume section ────────────────────────────────────────── */
.wcb-apply-resume-section {
	margin-block-end: var(--wcb-space-xl);
}

.wcb-apply-resume-select {
	display: block;
	width: 100%;
	padding: var(--wcb-space-sm) var(--wcb-space-md);
	border: 1px solid var(--wcb-border, #d1d5db);
	border-radius: var(--wcb-radius-sm);
	font-size: var(--wcb-text-md);
	font-family: inherit;
	background: var(--wcb-base, #fff);
}

.wcb-apply-resume-select:focus {
	outline: 2px solid var(--wcb-primary, #2563eb);
	outline-offset: 2px;
}

.wcb-apply-resume-file {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.wcb-upload-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wcb-space-xs);
	padding: var(--wcb-space-xl) var(--wcb-space-lg);
	border: 2px dashed var(--wcb-border, #d1d5db);
	border-radius: var(--wcb-radius-md);
	text-align: center;
	cursor: pointer;
	position: relative;
	transition: border-color var(--wcb-transition-snappy), background var(--wcb-transition-snappy);
}

.wcb-upload-zone:hover {
	border-color: var(--wcb-primary, #2563eb);
	background: var(--wcb-info-bg-soft);
}

.wcb-upload-zone.wcb-has-file {
	border-color: var(--wcb-success, #22c55e);
	background: var(--wcb-success-bg-soft);
}

.wcb-upload-icon {
	font-size: var(--wcb-text-2xl);
	line-height: 1;
	color: var(--wcb-text-tertiary);
}

.wcb-upload-zone:hover .wcb-upload-icon {
	color: var(--wcb-primary, #2563eb);
}

.wcb-upload-zone.wcb-has-file .wcb-upload-icon {
	color: var(--wcb-success, #22c55e);
}

.wcb-upload-text {
	font-size: var(--wcb-text-base);
	font-weight: var(--wcb-font-medium);
	color: var(--wcb-contrast, #374151);
}

.wcb-upload-hint {
	font-size: var(--wcb-text-xs);
	color: var(--wcb-text-tertiary);
}

.wcb-upload-filename {
	font-size: var(--wcb-text-sm);
	font-weight: var(--wcb-font-semibold);
	color: var(--wcb-success, #22c55e);
}

.wcb-upload-filename:empty {
	display: none;
}

/* ── Post-apply alert prompt ───────────────────────────────────────────── */
.wcb-post-apply-alert {
	margin-top: var(--wcb-space-sm);
}

/* `.wcb-shown` toggle - (0,2,1) parent prefix beats the global
 * `.wcb-shown { display: block }` utility at (0,1,0) on specificity. */
[class*="wp-block-wp-career-board"] .wcb-post-apply-alert.wcb-shown {
	display: block;
}

[class*="wp-block-wp-career-board"] .wcb-post-apply-alert-done.wcb-shown {
	display: inline;
}

.wcb-post-apply-alert-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--wcb-space-xs); /* 0.375rem ≈ 6px → xs */
	padding: var(--wcb-space-xs) var(--wcb-space-md);
	font-size: var(--wcb-text-sm);
	font-weight: var(--wcb-font-medium);
	font-family: inherit;
	color: var(--wcb-primary, #2563eb);
	background: var(--wcb-info-bg-soft);
	border: 1px solid var(--wcb-primary, #2563eb);
	border-radius: var(--wcb-radius-sm);
	cursor: pointer;
	transition: border-color var(--wcb-transition-snappy), color var(--wcb-transition-snappy), background-color var(--wcb-transition-snappy);
}

.wcb-post-apply-alert-btn:hover {
	background: var(--wcb-primary, #2563eb);
	color: var(--wcb-base, #fff);
}

.wcb-post-apply-alert-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.wcb-post-apply-alert-done {
	display: inline-flex;
	align-items: center;
	gap: var(--wcb-space-xs);
	font-size: var(--wcb-text-sm);
	color: var(--wcb-success, #22c55e);
	font-weight: var(--wcb-font-medium);
}

.wcb-post-apply-alert-btn svg,
.wcb-post-apply-alert-done svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.wcb-apply-no-resume {
	font-size: var(--wcb-text-base);
	color: var(--wcb-text-secondary);
	margin: 0;
}

.wcb-apply-no-resume a {
	color: var(--wcb-primary, #2563eb);
}

.wcb-apply-or-divider {
	text-align: center;
	font-size: var(--wcb-text-sm);
	color: var(--wcb-text-tertiary);
	margin: var(--wcb-space-lg) 0 var(--wcb-space-md);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.wcb-job-hero {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto;
	}

	.wcb-hero-cta {
		grid-column: 1;
		grid-row: 3;
		align-items: flex-start;
	}

	.wcb-hero-cta .wcb-btn {
		width: 100%;
	}

	.wcb-job-body {
		grid-template-columns: minmax(0, 1fr);
	}

	/* On mobile, drop sticky behaviour but keep the natural document order
	   so "About This Role" stays the first heading users see (audit fix). */
	.wcb-job-sidebar {
		position: static;
	}
}

/* ── Share bar ──────────────────────────────────────────────────────────────── */
.wcb-share-bar {
	display: flex;
	align-items: center;
	gap: var(--wcb-space-xs);
	margin-top: var(--wcb-space-lg);
	padding-top: var(--wcb-space-lg);
	border-top: 1px solid var(--wcb-surface, #f1f5f9);
}

.wcb-share-label {
	font-size: var(--wcb-text-xs); /* 0.78rem ≈ 12px → xs */
	font-weight: var(--wcb-font-semibold);
	color: var(--wcb-text-tertiary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-inline-end: var(--wcb-space-xs); /* 0.15rem ≈ 2px → xs */
}

.wcb-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px; /* component dimension */
	height: 30px;
	border-radius: var(--wcb-radius-sm);
	border: 1.5px solid var(--wcb-border, #e2e8f0);
	background: var(--wcb-base, #fff);
	color: var(--wcb-text-secondary);
	text-decoration: none;
	cursor: pointer;
	transition: border-color var(--wcb-transition-fast), color var(--wcb-transition-fast);
	padding: 0;
}

.wcb-share-btn:hover {
	border-color: var(--wcb-text-tertiary);
	color: var(--wcb-contrast, #0f172a);
}

/* ── Theme-agnostic sidebar + title suppression ───────────────────────────────
 *
 * `!important` kept: target themes (Reign, BuddyX Pro, Astra, Kadence)
 * ship their `#sidebar` / `.entry-title` rules with their own
 * `!important` to win over child-theme overrides. Specificity alone
 * cannot beat a theme's `!important` - we mirror the keyword. Same
 * pattern as company-profile/style.css and resume-single/style.css. */
.wcb-job-page #secondary,
.wcb-job-page .widget-area,
.wcb-job-page aside.sidebar,
.wcb-job-page .sidebar-area,
.wcb-job-page .site-sidebar,
.wcb-job-page #sidebar { display: none !important; }

.wcb-job-page .entry-title,
.wcb-job-page .page-title,
.wcb-job-page h1.post-title,
.wcb-job-page .post-title,
.wcb-job-page .wp-block-post-title { display: none !important; }

/* ── Report this job ─────────────────────────────────────────────────────── */
.wcb-job-report {
	margin: var(--wcb-space-lg) 0 0;
	padding-top: var(--wcb-space-md);
	border-top: 1px solid var(--wcb-border, #e2e8f0);
	text-align: center;
}

.wcb-job-report__trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--wcb-space-xs);
	padding: var(--wcb-space-xs) var(--wcb-space-sm);
	background: none;
	border: none;
	color: var(--wcb-text-tertiary);
	font-size: var(--wcb-text-sm);
	font-family: inherit;
	cursor: pointer;
	border-radius: var(--wcb-radius-sm);
	transition: color var(--wcb-transition-snappy);
}

.wcb-job-report__trigger:hover,
.wcb-job-report__trigger:focus-visible {
	color: var(--wcb-danger, #dc2626);
}

.wcb-job-report__trigger svg {
	width: 15px;
	height: 15px;
}

.wcb-job-report__form {
	max-width: 420px;
	margin: var(--wcb-space-md) auto 0;
	padding: var(--wcb-space-md);
	text-align: start;
	background: var(--wcb-surface, #f8fafc);
	border: 1px solid var(--wcb-border, #e2e8f0);
	border-radius: var(--wcb-radius-md);
}

.wcb-report-reason {
	width: 100%;
	margin-top: var(--wcb-space-xs);
	padding: var(--wcb-space-sm);
	font-size: var(--wcb-text-md);
	font-family: inherit;
	color: var(--wcb-contrast, #1e293b);
	background: var(--wcb-base, #fff);
	border: 1px solid var(--wcb-border, #e2e8f0);
	border-radius: var(--wcb-radius-sm);
}

.wcb-job-report__actions {
	display: flex;
	justify-content: flex-end;
	gap: var(--wcb-space-sm);
	margin-top: var(--wcb-space-md);
}

.wcb-job-report__error {
	display: none;
	margin: var(--wcb-space-sm) 0 0;
	color: var(--wcb-danger, #dc2626);
	font-size: var(--wcb-text-sm);
}

.wcb-job-report__error.wcb-shown {
	display: block;
}

.wcb-job-report__done {
	display: inline-flex;
	align-items: center;
	gap: var(--wcb-space-xs);
	margin: var(--wcb-space-sm) 0 0;
	color: var(--wcb-success, #16a34a);
	font-size: var(--wcb-text-sm);
}

.wcb-job-report__done svg {
	width: 15px;
	height: 15px;
}

/* ── Honeypot anti-spam ──────────────────────────────────────────────────── */
.wcb-hp-wrap {
	position: absolute;
	left: -9999px; /* off-screen honeypot */
	overflow: hidden;
	width: 1px;
	height: 1px;
}
