/**
 * Candidate profile v2.
 * Extends the shared directory visual system while preserving plugin behaviour.
 */
body .tjb-full-width-wrapper {
	--cp-ink: #17243d;
	--cp-muted: #647286;
	--cp-line: #dfe7ef;
	--cp-blue: #2879c7;
	--cp-blue-dark: #165f9f;
	--cp-green: #80bf2f;
	--cp-soft-green: #eff8e7;
	--cp-surface: #f5f8fb;
	width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 28px 0 80px;
	left: auto;
	right: auto;
	color: var(--cp-ink);
	background:
		linear-gradient(180deg, #f0f8f4 0, #f5f8fb 310px, #f5f8fb 100%);
	font-family: inherit;
}

body.single-candidate {
	overflow-x: hidden;
}

body .tjb-full-width-wrapper .tjb-container.tjb-single-candidate {
	width: 100%;
	max-width: 1260px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

body .tjb-profile-breadcrumb {
	margin: 0 0 18px;
}

body .tjb-profile-breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #557086;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

body .tjb-profile-breadcrumb a span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: var(--cp-blue);
	background: #fff;
	border: 1px solid var(--cp-line);
	border-radius: 50%;
	transition: transform .2s ease;
}

body .tjb-profile-breadcrumb a:hover span {
	transform: translateX(-3px);
}

body .tjb-full-width-wrapper .tjb-profile-header-card {
	position: relative;
	overflow: hidden;
	margin: 0 0 26px;
	background: #fff;
	border: 1px solid var(--cp-line);
	border-radius: 22px;
	box-shadow: 0 18px 45px rgba(23, 36, 61, .09);
}

body .tjb-full-width-wrapper .tjb-cover-banner {
	position: relative;
	height: 210px;
	background:
		radial-gradient(circle at 8% 70%, rgba(128, 191, 47, .28) 0 100px, transparent 101px),
		radial-gradient(circle at 89% 15%, rgba(40, 121, 199, .15) 0 140px, transparent 141px),
		linear-gradient(135deg, #eefaf2 0%, #e8f5ff 100%);
	background-position: center;
	background-size: cover;
}

body .tjb-full-width-wrapper .tjb-cover-banner.has-cover-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(18, 38, 58, .22), rgba(18, 38, 58, .04));
}

body .tjb-full-width-wrapper .tjb-cover-banner::after {
	content: "";
	position: absolute;
	right: 8%;
	bottom: -78px;
	width: 420px;
	height: 160px;
	background: transparent;
	border: 1px solid rgba(40, 121, 199, .15);
	border-radius: 50%;
}

body .tjb-full-width-wrapper .tjb-profile-main-info {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
	padding: 0 34px 32px;
}

body .tjb-full-width-wrapper .tjb-profile-avatar-wrapper {
	position: relative;
	z-index: 2;
	width: 160px;
	height: 160px;
	margin: -72px 0 0;
	overflow: hidden;
	background: #fff;
	border: 5px solid #fff;
	border-radius: 28px;
	box-shadow: 0 12px 28px rgba(23, 36, 61, .16);
}

body .tjb-full-width-wrapper .tjb-profile-avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body .tjb-full-width-wrapper .tjb-profile-identity {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 26px;
	min-width: 0;
	margin: 0;
	padding-top: 22px;
}

body .tjb-profile-availability {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: #4e771d;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

body .tjb-profile-availability i {
	width: 8px;
	height: 8px;
	background: var(--cp-green);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(128, 191, 47, .14);
}

body .tjb-full-width-wrapper .tjb-candidate-name {
	margin: 0;
	color: var(--cp-ink);
	font-size: clamp(30px, 3.5vw, 44px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -.04em;
}

body .tjb-full-width-wrapper .tjb-candidate-headline {
	max-width: 680px;
	margin-top: 9px;
	color: #435368;
	font-size: 17px;
	line-height: 1.5;
}

body .tjb-profile-primary-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 16px;
}

body .tjb-profile-action {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 17px !important;
	border-radius: 11px !important;
	font-size: 13px;
	font-weight: 800 !important;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

body .tjb-profile-action .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

body .tjb-profile-action-primary {
	color: #fff !important;
	background: var(--cp-blue) !important;
	border: 1px solid var(--cp-blue) !important;
	box-shadow: 0 8px 18px rgba(40, 121, 199, .2);
}

body .tjb-profile-action-primary:hover {
	background: var(--cp-blue-dark) !important;
	transform: translateY(-2px);
}

body .tjb-profile-action-secondary {
	color: var(--cp-ink) !important;
	background: #fff !important;
	border: 1px solid var(--cp-line) !important;
}

body .tjb-profile-action-secondary:hover {
	color: var(--cp-blue) !important;
	border-color: rgba(40, 121, 199, .45) !important;
	transform: translateY(-2px);
}

body .tjb-full-width-wrapper .tjb-candidate-meta-row {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	color: var(--cp-muted);
	font-size: 13px;
}

body .tjb-full-width-wrapper .tjb-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

body .tjb-full-width-wrapper .tjb-meta-item .dashicons {
	color: var(--cp-green);
}

body .tjb-full-width-wrapper .tjb-meta-item a {
	color: var(--cp-blue);
	font-weight: 750;
	text-decoration: none;
}

body .tjb-profile-focus-areas {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: -3px;
}

body .tjb-profile-focus-areas span {
	padding: 6px 10px;
	color: #4e771d;
	background: var(--cp-soft-green);
	border: 1px solid #d8eac5;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 750;
}

body .tjb-profile-section-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: -4px 0 22px;
	padding: 6px;
	overflow-x: auto;
	background: rgba(255, 255, 255, .82);
	border: 1px solid var(--cp-line);
	border-radius: 13px;
	box-shadow: 0 6px 18px rgba(23, 36, 61, .04);
	scrollbar-width: none;
}

body .tjb-profile-section-nav::-webkit-scrollbar {
	display: none;
}

body .tjb-profile-section-nav a {
	padding: 9px 14px;
	color: #56677a;
	border-radius: 9px;
	font-size: 12px;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}

body .tjb-profile-section-nav a:first-child,
body .tjb-profile-section-nav a:hover {
	color: var(--cp-blue);
	background: #eff6fc;
}

body .tjb-about-section,
body .tjb-experience-section,
body .tjb-education-section,
body .tjb-skills-section {
	scroll-margin-top: 100px;
}

body .tjb-full-width-wrapper .tjb-layout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

body .tjb-full-width-wrapper .tjb-main-column {
	min-width: 0;
}

body .tjb-full-width-wrapper .tjb-card {
	margin: 0 0 20px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--cp-line);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(23, 36, 61, .05);
}

body .tjb-full-width-wrapper .tjb-card-title {
	position: relative;
	margin: 0 0 22px;
	padding-left: 16px;
	color: var(--cp-ink);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.025em;
}

body .tjb-full-width-wrapper .tjb-card-title::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 3px;
	left: 0;
	width: 4px;
	background: linear-gradient(var(--cp-green), #aed872);
	border-radius: 4px;
}

body .tjb-full-width-wrapper .tjb-about-section .tjb-card-content {
	max-width: 76ch;
	color: #3f4f61;
	font-size: 15px;
	line-height: 1.8;
}

body .tjb-full-width-wrapper .tjb-about-section .tjb-card-content p {
	margin: 0 0 16px;
}

body .tjb-full-width-wrapper .tjb-about-section .tjb-card-content p:last-child {
	margin-bottom: 0;
}

body .tjb-full-width-wrapper .tjb-candidate-action-buttons {
	display: none !important;
}

body .tjb-full-width-wrapper .tjb-timeline-entry {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0 0 28px;
	border: 0;
}

body .tjb-full-width-wrapper .tjb-timeline-entry:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 49px;
	bottom: 0;
	left: 23px;
	width: 1px;
	background: #dbe5ec;
}

body .tjb-full-width-wrapper .tjb-timeline-entry:last-child {
	padding-bottom: 0;
}

body .tjb-full-width-wrapper .tjb-timeline-icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	color: var(--cp-blue);
	background: #eff6fc;
	border: 1px solid #dce9f4;
	border-radius: 14px;
}

body .tjb-full-width-wrapper .tjb-timeline-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body .tjb-full-width-wrapper .tjb-entry-title {
	margin: 0 0 4px;
	color: var(--cp-ink);
	font-size: 17px;
	font-weight: 800;
}

body .tjb-full-width-wrapper .tjb-entry-subtitle {
	margin: 0;
	color: #39495c;
	font-size: 14px;
	font-weight: 650;
}

body .tjb-full-width-wrapper .tjb-entry-date {
	display: inline-flex;
	margin-top: 7px;
	padding: 4px 8px;
	color: var(--cp-muted);
	background: #f5f7f9;
	border-radius: 6px;
	font-size: 12px;
}

body .tjb-full-width-wrapper .tjb-entry-description {
	margin-top: 12px;
	color: #526174;
	font-size: 14px;
	line-height: 1.7;
}

body .tjb-full-width-wrapper .tjb-entry-description p {
	margin: 0;
}

body .tjb-full-width-wrapper .tjb-skills-block {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

body .tjb-full-width-wrapper .tjb-pill {
	padding: 7px 12px;
	color: #4d751e;
	background: var(--cp-soft-green);
	border: 1px solid #d5e7c1;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 750;
}

body .tjb-full-width-wrapper .tjb-pill-outline {
	color: var(--cp-blue);
	background: #eff6fc;
	border-color: #d7e7f5;
}

body .tjb-full-width-wrapper .tjb-separator {
	margin: 20px 0;
	border-color: #edf1f4;
}

body .tjb-full-width-wrapper .tjb-skills-subsection h4 {
	margin: 0 0 8px;
	color: var(--cp-ink);
	font-size: 14px;
	font-weight: 800;
}

body .tjb-full-width-wrapper .tjb-text-block {
	color: var(--cp-muted);
	line-height: 1.7;
}

body .tjb-full-width-wrapper .tjb-sidebar-column {
	position: sticky;
	top: 100px;
}

body .tjb-full-width-wrapper .tjb-sidebar-column .tjb-card {
	padding: 22px;
}

body .tjb-full-width-wrapper .tjb-sidebar-column .tjb-card-title {
	margin-bottom: 18px;
	font-size: 17px;
}

body .tjb-full-width-wrapper .tjb-contact-list {
	display: flex;
	flex-direction: column;
	gap: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body .tjb-full-width-wrapper .tjb-contact-list li {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	margin: 0;
	color: #526174;
	font-size: 13px;
	line-height: 1.55;
}

body .tjb-full-width-wrapper .tjb-contact-list li > .dashicons {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	color: var(--cp-blue);
	background: #eff6fc;
	border-radius: 9px;
	font-size: 17px;
}

body .tjb-full-width-wrapper .tjb-contact-list a:not(.tjb-profile-action) {
	align-self: center;
	min-width: 0;
	color: var(--cp-blue);
	font-weight: 700;
	text-decoration: none;
	word-break: break-word;
}

body .tjb-full-width-wrapper .tjb-contact-primary-action {
	display: block !important;
	grid-template-columns: none !important;
	margin-top: 6px;
	padding-top: 16px;
	border-top: 1px solid #edf1f4;
}

body .tjb-contact-primary-action .tjb-profile-action {
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 1020px) {
	body .tjb-full-width-wrapper .tjb-layout-grid {
		grid-template-columns: 1fr;
	}

	body .tjb-full-width-wrapper .tjb-sidebar-column {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	body .tjb-full-width-wrapper .tjb-sidebar-column .tjb-card {
		margin: 0;
	}
}

@media (max-width: 780px) {
	body .tjb-full-width-wrapper {
		padding: 18px 0 56px;
	}

	body .tjb-full-width-wrapper .tjb-container.tjb-single-candidate {
		padding: 0 15px;
	}

	body .tjb-full-width-wrapper .tjb-cover-banner {
		height: 150px;
	}

	body .tjb-full-width-wrapper .tjb-profile-main-info {
		display: block;
		padding: 0 20px 24px;
	}

	body .tjb-full-width-wrapper .tjb-profile-avatar-wrapper {
		width: 126px;
		height: 126px;
		margin: -60px auto 0;
		border-radius: 24px;
	}

	body .tjb-full-width-wrapper .tjb-profile-identity {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 16px;
		padding-top: 16px;
		text-align: center;
	}

	body .tjb-full-width-wrapper .tjb-candidate-name {
		font-size: 32px;
	}

	body .tjb-full-width-wrapper .tjb-candidate-headline {
		font-size: 15px;
	}

	body .tjb-profile-primary-actions {
		width: 100%;
		padding: 0;
	}

	body .tjb-profile-primary-actions .tjb-profile-action {
		flex: 1;
	}

	body .tjb-full-width-wrapper .tjb-candidate-meta-row,
	body .tjb-profile-focus-areas {
		justify-content: center;
	}

	body .tjb-full-width-wrapper .tjb-card {
		padding: 21px;
		border-radius: 15px;
	}

	body .tjb-full-width-wrapper .tjb-sidebar-column {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	body .tjb-profile-primary-actions {
		flex-direction: column;
	}

	body .tjb-profile-primary-actions .tjb-profile-action {
		width: 100%;
		box-sizing: border-box;
	}

	body .tjb-full-width-wrapper .tjb-timeline-entry {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 12px;
	}

	body .tjb-full-width-wrapper .tjb-timeline-icon {
		width: 42px;
		height: 42px;
	}

	body .tjb-full-width-wrapper .tjb-timeline-entry:not(:last-child)::before {
		top: 43px;
		left: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .tjb-full-width-wrapper * {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
