/**
 * Block: wp-career-board-pro/resume-single
 *
 * Premium-feel pattern: prominent hero with avatar + headline +
 * open-to-work pill (teal token pair), uppercase eyebrow heading per
 * section, hairline dividers, transparent body container, print-clean
 * stylesheet. 100% token-driven.
 *
 * @package WP_Career_Board_Pro
 * @since   1.0.0
 */

/* ── Members-only access gate ────────────────────────────────────────── */
.wcb-resume-access-gate {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: 420px;
	margin: 48px auto;
	padding: 32px 24px;
	text-align: center;
	background: var( --wcb-base, #ffffff );
	border: 1px solid var( --wcb-border, #e2e8f0 );
	border-radius: var( --wcb-radius-lg, 12px );
}

/* ── CSS custom properties ───────────────────────────────────────────── */
.wcb-rs {
	--wcb-rs-otw:        var( --wcb-teal );
	--wcb-rs-otw-fg:     var( --wcb-teal-fg );
	--wcb-rs-otw-bg:     var( --wcb-teal-bg );
	--wcb-rs-ink:        var( --wcb-contrast, #0f172a );
	--wcb-rs-ink-2:      var( --wcb-text-secondary );
	--wcb-rs-ink-3:      var( --wcb-text-secondary );

	font-family: inherit;
	font-size: var( --wcb-text-md );
	color: var( --wcb-rs-ink );
	line-height: var( --wcb-leading-relaxed );
	/* No max-width, no side padding and no vertical margin of its own: the
	   shell (.wcb-archive-shell, 1200px) already sets the page's canonical
	   content width, inset and vertical rhythm - a local 20px side padding
	   double-inset the content vs. the hero/section cards, and a local 32px
	   top margin stacked on top of the shell's own vertical padding,
	   measuring header-to-hero 32px further than company-profile, which has
	   neither (Basecamp 10348287376 / 10348287589). See the job-single fix
	   for the same reason. */
	margin: 0 auto;
}

/* ── Suppress theme post title + sidebar on wcb_resume pages ───────────
 *
 * `!important` policy in this file: every `!important` is fighting a
 * theme rule that itself uses `!important` (Astra container width,
 * BuddyX Pro grid-template-columns, Reign sidebar display, theme
 * link underlines). Specificity alone cannot beat a theme's own
 * `!important`, so the keyword is the right tool here. The print
 * stylesheet at the bottom uses the same defense against `@media
 * print` overrides themes ship to keep their navigation visible.
 * Do not refactor away without testing on the four target themes
 * (Reign, BuddyX Pro, Astra, Twenty Twenty-Five). */
.wcb-resume-page .entry-title,
.wcb-resume-page .page-title,
.wcb-resume-page h1.post-title,
.wcb-resume-page .post-title,
.wcb-resume-page .wp-block-post-title {
	display: none !important;
}

.wcb-resume-page #secondary,
.wcb-resume-page .widget-area,
.wcb-resume-page aside.sidebar,
.wcb-resume-page .sidebar-area,
.wcb-resume-page .site-sidebar,
.wcb-resume-page #sidebar {
	display: none !important;
}

/* :not(.wcb-archive-shell) — this rule exists to strip a THEME's own
 * sidebar column when the theme's own single-wcb_resume.php renders the
 * block with `id="primary"` in its normal two-column layout. Our own
 * fallback template's shell (modules/resume/templates/single-wcb_resume.php)
 * also happens to carry `id="primary"` to blend with theme markup, and its
 * own max-width (--wcb-container-max-width, canonically 1280px) was losing
 * to this rule's !important + ID-anchored selector, collapsing to the full
 * (often 1400px+) theme container width instead. */
.wcb-resume-page #primary:not(.wcb-archive-shell),
.wcb-resume-page .content-area,
.wcb-resume-page .site-main {
	max-width: 100% !important;
	width: 100% !important;
	float: none !important;
	padding-inline-end: 0 !important;
}

/* ── Hero — prominent avatar + headline + OtW pill ───────────────────── */
/* Card shape (background/border/radius/shadow/padding/margin) comes from
 * the shared `.wcb-detail-hero` primitive in Free's wcb-ui.css. */
.wcb-rs-hero {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var( --wcb-space-3xl );
}

/* Save button anchored top-right of the hero card so it sits in the same
 * spot as Find Jobs and Companies single. (0,3,1) wins over the canonical
 * `.wcb-bookmark-hero-btn` rule that has no positioning. */
[class*="wp-block-wcb-"] .wcb-rs-hero > .wcb-rs-hero-save {
	position: absolute;
	top: var( --wcb-space-lg );
	inset-inline-end: var( --wcb-space-lg );
	z-index: 1;
}

/* 640, not 720 — the standard mobile breakpoint. */
@media (max-width: 640px) {
	[class*="wp-block-wcb-"] .wcb-rs-hero > .wcb-rs-hero-save {
		position: static;
		align-self: flex-end;
		margin: var( --wcb-space-md ) 0 0;
	}
}

.wcb-rs-hero-avatar-wrap {
	position: relative;
	flex-shrink: 0;
}

.wcb-rs-hero-avatar {
	width: 120px;
	height: 120px;
	border-radius: var( --wcb-radius-full );
	object-fit: cover;
	border: 3px solid var( --wcb-base, #ffffff );
	box-shadow: 0 0 0 2px var( --wcb-border, #e2e8f0 );
	display: block;
}

/* Open to Work ring — teal trust accent. */
.wcb-rs-otw-ring {
	position: absolute;
	inset: -4px;
	border-radius: var( --wcb-radius-full );
	border: 3px solid var( --wcb-rs-otw );
	pointer-events: none;
}

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

.wcb-rs-hero-name-row {
	display: flex;
	align-items: center;
	gap: var( --wcb-space-md );
	flex-wrap: wrap;
	margin-bottom: var( --wcb-space-xs );
}

/* One hero title size across job/company/resume single (was --wcb-text-3xl,
 * 34px, against job/company's 26px) - Basecamp 10348287589. */
.wcb-rs-hero-name {
	font-size: var( --wcb-text-2xl );
	font-weight: var( --wcb-font-bold );
	color: var( --wcb-rs-ink );
	margin: 0;
	line-height: var( --wcb-leading-tight );
}

/* Open-to-work pill — teal token pair. */
.wcb-rs-otw-badge {
	display: inline-flex;
	align-items: center;
	background: var( --wcb-rs-otw-bg );
	color: var( --wcb-rs-otw-fg );
	font-size: var( --wcb-text-xs );
	font-weight: var( --wcb-font-semibold );
	padding: var( --wcb-space-xs ) var( --wcb-space-md );
	border-radius: var( --wcb-radius-full );
	border: 1px solid currentColor;
	white-space: nowrap;
	letter-spacing: 0.02em;
}

.wcb-rs-hero-headline {
	font-size: var( --wcb-text-lg );
	color: var( --wcb-rs-ink-2 );
	font-weight: var( --wcb-font-medium );
	margin: 0 0 var( --wcb-space-sm );
}

.wcb-rs-hero-meta-row {
	display: flex;
	align-items: center;
	gap: var( --wcb-space-xl );
	flex-wrap: wrap;
	margin-bottom: var( --wcb-space-lg );
}

.wcb-rs-hero-meta-item {
	display: inline-flex;
	align-items: center;
	gap: var( --wcb-space-xs );
	font-size: var( --wcb-text-sm );
	color: var( --wcb-rs-ink-3 );
}

.wcb-rs-hero-meta-link {
	color: var( --wcb-primary, #2563eb );
	text-decoration: none;
}

.wcb-rs-hero-meta-link:hover {
	text-decoration: underline;
}

/* ── Hero action row ─────────────────────────────────────────────────── */
.wcb-rs-hero-actions {
	display: flex;
	align-items: center;
	gap: var( --wcb-space-sm );
	flex-wrap: wrap;
}

.wcb-rs-hero-social {
	display: flex;
	align-items: center;
	gap: var( --wcb-space-sm );
}

.wcb-rs-social-btn {
	display: inline-flex;
	align-items: center;
	gap: var( --wcb-space-xs );
	font-size: var( --wcb-text-sm );
	font-weight: var( --wcb-font-medium );
	color: var( --wcb-rs-ink-2 );
	background: transparent;
	border: 1px solid var( --wcb-border, #e2e8f0 );
	border-radius: var( --wcb-radius-md );
	padding: var( --wcb-space-sm ) var( --wcb-space-md );
	text-decoration: none;
	transition: background var( --wcb-transition-fast ), border-color var( --wcb-transition-fast ), color var( --wcb-transition-fast );
}

.wcb-rs-social-btn:hover {
	background: var( --wcb-bg-subtle );
	border-color: var( --wcb-primary, #2563eb );
	color: var(--wcb-primary-text, #1d4ed8);
}

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

/* ── Sections (main) — light hairline panels ───────────────────────────
 * Tightened from `--wcb-space-3xl` padding + `--wcb-space-xl` margin to
 * `--wcb-space-xl` + `--wcb-space-md` so the cards stack with the same
 * vertical rhythm as the dashboard surfaces. Earlier values left ~80px
 * of dead air between ABOUT and WORK EXPERIENCE on short bios. */
/* Card shape now comes from the shared `.wcb-detail-section` primitive
 * in Free's wcb-ui.css (render.php uses that class alongside
 * `.wcb-rs-section`). */
.wcb-rs-section:last-child {
	margin-bottom: 0;
}

/* Section heading paint is owned by `assets/css/wcb-ui.css` - merged into
 * the same shared rule job-single/company-profile use (was a distinct
 * "eyebrow" style; owner decision: uniform, no exceptions - Basecamp
 * 10348287589). No per-block heading style needed here. */

.wcb-rs-section-icon {
	color: var( --wcb-primary, #2563eb );
	flex-shrink: 0;
}

.wcb-rs-summary {
	font-size: var( --wcb-text-md );
	line-height: var( --wcb-leading-relaxed );
	color: var( --wcb-rs-ink-2 );
	margin: 0;
}

/* ── Timeline (experience, education) ────────────────────────────────── */
.wcb-rs-timeline {
	position: relative;
	padding-inline-start: var( --wcb-space-2xl );
}

.wcb-rs-tl-item {
	position: relative;
	margin-bottom: var( --wcb-space-3xl );
}

/* Rail runs dot to dot: from this item's dot centre (13px) to the next
 * one's, so it stops at the last dot instead of running on past it. */
.wcb-rs-tl-item:not( :last-child )::before {
	content: '';
	position: absolute;
	inset-inline-start: calc( var( --wcb-space-2xl ) * -1 + 6px );
	top: 13px;
	bottom: calc( ( var( --wcb-space-3xl ) + 13px ) * -1 );
	width: 2px;
	background: var( --wcb-border, #e2e8f0 );
	border-radius: 2px;
}

.wcb-rs-tl-item:last-child {
	margin-bottom: 0;
}

.wcb-rs-tl-dot {
	position: absolute;
	inset-inline-start: calc( var( --wcb-space-2xl ) * -1 );
	top: 6px;
	width: 14px;
	height: 14px;
	border-radius: var( --wcb-radius-full );
	background: var( --wcb-primary, #2563eb );
	border: 2px solid var( --wcb-base, #ffffff );
	box-shadow: 0 0 0 2px var( --wcb-primary, #2563eb );
}

.wcb-rs-tl-dot--edu {
	background: var( --wcb-base, #ffffff );
	border-color: var( --wcb-primary, #2563eb );
	box-shadow: 0 0 0 2px var( --wcb-primary, #2563eb );
}

.wcb-rs-tl-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var( --wcb-space-md );
	margin-bottom: var( --wcb-space-xs );
}

.wcb-rs-tl-role-wrap {
	display: flex;
	align-items: center;
	gap: var( --wcb-space-sm );
	flex-wrap: wrap;
}

.wcb-rs-tl-role {
	font-size: var( --wcb-text-lg );
	font-weight: var( --wcb-font-semibold );
	color: var( --wcb-rs-ink );
}

.wcb-rs-badge {
	display: inline-flex;
	align-items: center;
	font-size: var( --wcb-text-xs );
	font-weight: var( --wcb-font-medium );
	padding: 2px var( --wcb-space-sm );
	border-radius: var( --wcb-radius-sm );
	line-height: var( --wcb-leading-tight );
}

.wcb-rs-badge--type {
	background: var( --wcb-info-bg-soft );
	color: var( --wcb-info-fg );
}

.wcb-rs-tl-duration {
	font-size: var( --wcb-text-xs );
	color: var( --wcb-rs-ink-3 );
	white-space: nowrap;
	flex-shrink: 0;
}

.wcb-rs-tl-company {
	font-size: var( --wcb-text-base );
	color: var( --wcb-rs-ink-2 );
	margin: 0 0 2px;
}

.wcb-rs-tl-sep {
	margin: 0 var( --wcb-space-xs );
	color: var( --wcb-rs-ink-3 );
}

.wcb-rs-edu-gpa {
	margin-inline-start: var( --wcb-space-sm );
	background: var( --wcb-bg-subtle );
	border: 1px solid var( --wcb-border, #e2e8f0 );
	border-radius: var( --wcb-radius-sm );
	font-size: var( --wcb-text-xs );
	padding: 1px var( --wcb-space-xs );
	color: var( --wcb-rs-ink-3 );
}

.wcb-rs-tl-dates {
	font-size: var( --wcb-text-xs );
	color: var( --wcb-rs-ink-3 );
	margin: 0 0 var( --wcb-space-sm );
}

.wcb-rs-tl-desc {
	font-size: var( --wcb-text-base );
	line-height: var( --wcb-leading-relaxed );
	color: var( --wcb-rs-ink-2 );
	margin: var( --wcb-space-sm ) 0 0;
}

.wcb-rs-tl-achievements {
	font-style: italic;
	color: var( --wcb-rs-ink-3 );
}

.wcb-rs-tl-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var( --wcb-space-xs );
	margin-top: var( --wcb-space-md );
}

.wcb-rs-tag {
	font-size: var( --wcb-text-xs );
	color: var( --wcb-rs-ink-2 );
	background: var( --wcb-bg-subtle );
	border: 1px solid var( --wcb-border, #e2e8f0 );
	border-radius: var( --wcb-radius-sm );
	padding: 2px var( --wcb-space-sm );
}

/* ── Portfolio grid ──────────────────────────────────────────────────── */
.wcb-rs-portfolio-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: var( --wcb-space-md );
}

.wcb-rs-portfolio-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var( --wcb-space-md );
	padding: var( --wcb-space-md ) var( --wcb-space-lg );
	background: var( --wcb-base, #ffffff );
	border: 1px solid var( --wcb-border, #e2e8f0 );
	border-radius: var( --wcb-radius-md );
	text-decoration: none;
	color: var( --wcb-rs-ink-2 );
	font-size: var( --wcb-text-base );
	font-weight: var( --wcb-font-medium );
	box-shadow: var( --wcb-shadow-sm );
	transition: border-color var( --wcb-transition-fast ), box-shadow var( --wcb-transition-fast ), transform var( --wcb-transition-fast );
	min-width: 0;
}

.wcb-rs-portfolio-card:hover {
	transform: translateY( -1px );
	border-color: var( --wcb-primary, #2563eb );
	box-shadow: var( --wcb-shadow-md );
	color: var( --wcb-primary, #2563eb );
}

.wcb-rs-portfolio-label {
	display: block;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── Aside cards ─────────────────────────────────────────────────────── */
/* No box-shadow: border-only matches job's .wcb-sidebar-card and
 * company's .wcb-cp-side-card - was the odd one out with both a border
 * and a shadow (Basecamp 10348288572, owner: uniform). */
.wcb-rs-aside-card {
	background: var( --wcb-base, #ffffff );
	border: 1px solid var( --wcb-border, #e2e8f0 );
	border-radius: var( --wcb-radius-xl );
	padding: var( --wcb-space-2xl );
	margin-bottom: var( --wcb-space-xl );
}

.wcb-rs-aside-card:last-child {
	margin-bottom: 0;
}

/* `.wcb-rs-aside-heading` paint owned by `assets/css/wcb-ui.css`. The
 * SVG icon color override stays here as it's a single declaration. */
.wcb-rs-aside-heading svg {
	color: var( --wcb-primary, #2563eb );
}

/* ── Skills bars ─────────────────────────────────────────────────────── */
.wcb-rs-skill-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var( --wcb-space-md );
}

.wcb-rs-skill-item {
	display: flex;
	flex-direction: column;
	gap: var( --wcb-space-xs );
}

.wcb-rs-skill-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wcb-rs-skill-name {
	font-size: var( --wcb-text-sm );
	font-weight: var( --wcb-font-medium );
	color: var( --wcb-rs-ink );
}

.wcb-rs-skill-level {
	font-size: var( --wcb-text-xs );
	color: var( --wcb-rs-ink-3 );
}

.wcb-rs-skill-bar {
	height: 5px;
	background: var( --wcb-border, #e2e8f0 );
	border-radius: 3px;
	overflow: hidden;
}

.wcb-rs-skill-fill {
	height: 100%;
	background: var( --wcb-primary, #2563eb );
	border-radius: 3px;
	transition: width var( --wcb-transition-slow );
}

@media ( prefers-reduced-motion: reduce ) {
	.wcb-rs-skill-fill {
		transition: none;
	}
}

/* ── Language dots ───────────────────────────────────────────────────── */
.wcb-rs-lang-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var( --wcb-space-md );
}

.wcb-rs-lang-item {
	display: flex;
	flex-direction: column;
	gap: var( --wcb-space-xs );
}

.wcb-rs-lang-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wcb-rs-lang-name {
	font-size: var( --wcb-text-sm );
	font-weight: var( --wcb-font-medium );
	color: var( --wcb-rs-ink );
}

.wcb-rs-lang-level {
	font-size: var( --wcb-text-xs );
	color: var( --wcb-rs-ink-3 );
}

.wcb-rs-lang-dots {
	display: flex;
	gap: var( --wcb-space-xs );
}

.wcb-rs-lang-dot {
	width: 10px;
	height: 10px;
	border-radius: var( --wcb-radius-full );
	background: var( --wcb-border, #e2e8f0 );
}

.wcb-rs-lang-dot--filled {
	background: var( --wcb-primary, #2563eb );
}

/* ── Certifications ──────────────────────────────────────────────────── */
.wcb-rs-cert-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var( --wcb-space-md );
}

.wcb-rs-cert-item {
	display: flex;
	gap: var( --wcb-space-md );
	align-items: flex-start;
}

.wcb-rs-cert-dot {
	width: 8px;
	height: 8px;
	border-radius: var( --wcb-radius-full );
	background: var( --wcb-primary, #2563eb );
	flex-shrink: 0;
	margin-top: 5px;
}

.wcb-rs-cert-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wcb-rs-cert-name {
	font-size: var( --wcb-text-sm );
	font-weight: var( --wcb-font-semibold );
	color: var( --wcb-rs-ink );
}

.wcb-rs-cert-issuer {
	font-size: var( --wcb-text-xs );
	color: var( --wcb-rs-ink-3 );
}

.wcb-rs-cert-date {
	font-size: var( --wcb-text-xs );
	color: var( --wcb-rs-ink-3 );
}

.wcb-rs-cert-link {
	font-size: var( --wcb-text-xs );
	color: var( --wcb-primary, #2563eb );
	text-decoration: none;
	margin-top: 2px;
}

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

/* Decorative "opens in a new tab" arrow. Lives in markup, not in the msgid,
   so it can be mirrored for RTL without the translator carrying the glyph. */
.wcb-rs-cert-link-glyph {
	display: inline-block;
}

[dir="rtl"] .wcb-rs-cert-link-glyph {
	transform: scaleX( -1 );
}

.wcb-rs-field-label {
	font-weight: var( --wcb-font-semibold );
	margin-inline-end: var( --wcb-space-xs );
}

/* ── Responsive ──────────────────────────────────────────────────────── */
/* 1024, not 960 — matches job-single's own two-column collapse so every
   detail page hits the same tablet breakpoint. */
@media ( max-width: 1024px ) {
	.wcb-rs-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.wcb-rs-aside {
		display: grid;
		grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
		gap: var( --wcb-space-lg );
	}

	.wcb-rs-aside-card {
		margin-bottom: 0;
	}
}

@media ( max-width: 640px ) {
	/* Left-aligned like the job and company heroes (owner decision on
	 * Basecamp 10348287589). */
	.wcb-rs-hero {
		flex-direction: column;
		align-items: flex-start;
		gap: var( --wcb-space-lg );
	}

	.wcb-rs-hero-name {
		font-size: var( --wcb-text-xl );
	}

	.wcb-rs-tl-duration {
		display: none;
	}

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

/* ── Print - one continuous CV, sidebar beside the main column ───────────
 * Last in the file so the two-column body beats the narrow-width rules above
 * (an A4 page is narrower than 960px). Only small units are kept whole: the
 * resume and its sections are longer than a page and must be free to break,
 * otherwise the browser pushes the whole block to page 2 and leaves page 1 blank. */
@media print {
	/* One print type size on every theme: the resume sizes in rem, and a
	 * theme's larger root (Reign's 17px) made it taller and pushed a section
	 * onto a page of its own. */
	:root:has( body.single-wcb_resume ) {
		font-size: 16px;
	}

	.wcb-rs-hero-actions,
	.wcb-rs-hero-save,
	.wcb-rs-hero-social {
		display: none !important;
	}

	.wcb-rs,
	.wcb-rs-hero,
	.wcb-rs-section,
	.wcb-rs-aside-card,
	.wcb-rs-portfolio-card {
		box-shadow: none !important;
		border-color: #cccccc !important;
	}

	.wcb-rs-hero,
	.wcb-rs-aside-card,
	.wcb-rs-portfolio-card,
	.wcb-rs-tl-item {
		break-inside: avoid;
	}

	/* A section heading stranded alone at the bottom of a page, with its one
	 * entry pushed to the next, wastes a page on a short resume (Education
	 * with a single degree was the case QA found). Keep a heading with what
	 * follows it rather than making the whole section unbreakable, which
	 * would just move the "orphan" problem to longer sections. */
	.wcb-rs-section-heading,
	.wcb-rs-aside-heading {
		break-after: avoid;
	}

	/* A CV prints as main column + narrow sidebar, like on screen, so a short
	 * resume fits one page instead of pushing Skills onto a page of its own
	 * (Basecamp 10348185128). Flex, not the screen grid: Chromium fragments a
	 * grid item badly across pages (it pushed Education whole to the next
	 * page), while flex items break like normal block content. */
	.wcb-rs-body {
		display: flex;
		gap: var( --wcb-space-md );
		align-items: flex-start;
	}

	.wcb-rs-main {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: var( --wcb-space-md );
	}

	.wcb-rs-aside {
		flex: 0 0 32%;
		display: flex;
		flex-direction: column;
		gap: var( --wcb-space-md );
	}

	.wcb-rs-aside-card {
		margin-bottom: 0;
	}

	/* Reign's own print stylesheet strips every background with
	 * `* { background: 0 0 !important }`; a class selector beats a universal
	 * one on specificity, so these need their own !important to survive it. */
	.wcb-rs-skill-fill,
	.wcb-rs-lang-dot--filled,
	.wcb-rs-tl-dot,
	.wcb-rs-cert-dot {
		background-color: var( --wcb-primary, #2563eb ) !important;
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}

	.wcb-rs-tl-dot--edu {
		background-color: var( --wcb-base, #ffffff ) !important;
	}

	/* .wcb-rs scope: the shared detail-card padding is more specific than a
	 * bare class. */
	.wcb-rs :is( .wcb-rs-hero, .wcb-rs-section, .wcb-rs-aside-card ) {
		padding: var( --wcb-space-md ) var( --wcb-space-lg ) !important;
	}

	.wcb-rs .wcb-rs-hero-avatar {
		width: 80px;
		height: 80px;
	}

	/* The page margin (@page below) is the edge in print; the shell's and the
	 * theme's top padding only push a short resume onto a second page. */
	body.single-wcb_resume :is( .wcb-archive-shell, #content, .site-content, .container ) {
		padding: 0 !important;
		margin-top: 0 !important;
	}

	/* A theme grid row inside .container (Reign's .wb-grid) carries a negative
	 * gutter that the container's side padding paid for; with that padding
	 * gone the row would push the resume past both page edges. */
	body.single-wcb_resume .container > :has( .wcb-rs ) {
		margin-inline: 0 !important;
	}

	body :is( header, nav, footer, .site-header, .site-footer, #masthead, #colophon,
		.site-header-wrapper, .site-sub-header ) {
		display: none !important;
	}

	/* A block theme's single.html appends its own "next/previous post" and
	 * comments patterns after the content; on a resume page they are dead
	 * weight in a printout. Scoped to the resume single so nothing else the
	 * theme prints is touched. */
	body.single-wcb_resume :is( nav[aria-label], #comments, .wp-block-comments-query-loop, .comments-area ) {
		display: none !important;
	}

	/* A block theme's single.html appends further top-level groups after the
	 * post content for its own patterns (post navigation, comments, "more
	 * posts" - the exact pattern varies by theme). The resume block is
	 * always the first of these; hide anything the theme added after it. */
	body.single-wcb_resume main.wp-block-group > .wp-block-group:not( :first-child ) {
		display: none !important;
	}

	/* BuddyX's "Boxed" site layout wraps the page in `.site` with its own
	 * background (content_background_color, often grey) independent of
	 * `body` - printing that layout otherwise leaves a grey band wherever
	 * `.site` doesn't fully cover the printed page (Basecamp 10348185128). */
	html,
	body,
	.site,
	#page {
		background: #ffffff !important;
	}

	/* A block theme's own top/bottom page spacing (TT25 stacks a main margin,
	 * a global-padding group and an entry-content margin - about 130px before
	 * the resume even starts) is meant for on-screen reading, not a print
	 * budget; on a short resume it alone was enough to push content past one
	 * A4 page. Side padding matters just as much here: A4's printable width
	 * (~794px) is already far narrower than the resume's normal 1200px
	 * shell, and TT25's has-global-padding still ate 50px off each side of
	 * that on top - the extra text wrapping from the narrower column was
	 * enough on its own to spill a short resume onto a near-empty 3rd page. */
	body.single-wcb_resume main.wp-block-group,
	body.single-wcb_resume main.wp-block-group > .wp-block-group:first-child,
	body.single-wcb_resume .entry-content {
		margin: 0 !important;
		padding: 0 !important;
	}
}

/* The print page margin (@page) is printed by ResumeModule::enqueue_print_margin()
 * after the theme's stylesheets, so a theme's own @page (Reign's 0.5cm) can't
 * override it. */
