/**
 * City × role matrix — additive styles on top of professions + /vakansii/ job cards.
 */

body.rework-24r-city-role .careerfy-subheader {
	display: none !important;
}

body.rework-24r-city-role #careerfy-header.careerfy-header-two {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: 100%;
	z-index: 1000;
	background: #fff !important;
	border-bottom: 1px solid var(--rework-24r-border, #e2e8f0);
	box-shadow: none !important;
}

body.rework-24r-city-role.careerfy-sticky-header #careerfy-header.careerfy-header-two {
	position: fixed !important;
	top: 0;
	left: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

body.admin-bar.rework-24r-city-role.careerfy-sticky-header #careerfy-header.careerfy-header-two {
	top: 32px;
}

/* Minimum readable type: nothing below 16px on matrix pages */
body.rework-24r-city-role .rework-city-role,
body.rework-24r-city-role .rework-city-role p,
body.rework-24r-city-role .rework-city-role li,
body.rework-24r-city-role .rework-city-role a,
body.rework-24r-city-role .rework-city-role span,
body.rework-24r-city-role .rework-city-role summary,
body.rework-24r-city-role .rework-city-role button,
body.rework-24r-city-role .rework-24r-prof-single__text,
body.rework-24r-city-role .rework-24r-prof-vacancies__count,
body.rework-24r-city-role .rework-24r-prof-vacancies__all,
body.rework-24r-city-role .rework-24r-prof-hero-stat__label,
body.rework-24r-city-role .rework-24r-professions-breadcrumb,
body.rework-24r-city-role .rework-24r-professions-breadcrumb li,
body.rework-24r-city-role .rework-24r-professions-breadcrumb a,
body.rework-24r-city-role .job-card-company-name,
body.rework-24r-city-role .job-card-location,
body.rework-24r-city-role .job-card-experience,
body.rework-24r-city-role .careerfy-job-card-salary,
body.rework-24r-city-role .rework-24r-card__button,
body.rework-24r-city-role .job-card-details-link,
body.rework-24r-city-role .job-card-quick-apply,
body.rework-24r-city-role .rework-24r-btn {
	font-size: 16px !important;
	line-height: 1.5;
}

body.rework-24r-city-role .rework-24r-prof-single__title-row h1 {
	font-size: clamp(26px, 3vw, 32px) !important;
	line-height: 1.2 !important;
}

body.rework-24r-city-role .rework-24r-prof-hero-stat__value {
	font-size: clamp(20px, 2.5vw, 28px) !important;
}

body.rework-24r-city-role .rework-24r-prof-vacancies h2,
body.rework-24r-city-role .rework-city-role__salary h2,
body.rework-24r-city-role .rework-city-role__faq h2,
body.rework-24r-city-role .rework-city-role__cta h2 {
	font-size: 20px !important;
	font-weight: 600;
	margin: 0 0 16px;
	color: var(--rework-24r-text, #1a202c);
}

body.rework-24r-city-role .careerfy-job-card-heading,
body.rework-24r-city-role .careerfy-job-card-heading a {
	font-size: 18px !important;
	line-height: 1.35 !important;
}

/* Vacancy list: match /vakansii/ spacing, no bootstrap column quirks */
body.rework-24r-city-role .rework-24r-prof-vacancies__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.rework-24r-city-role .rework-24r-prof-vacancies__list > li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	float: none !important;
}

body.rework-24r-city-role .rework-24r-prof-vacancies__list > li::marker,
body.rework-24r-city-role .rework-24r-prof-vacancies__list > li::before {
	content: none !important;
	display: none !important;
}

.rework-city-role__salary {
	margin: 0 0 28px;
}

.rework-city-role__salary-range {
	display: block;
	margin-top: 4px;
	font-size: 14px !important;
	font-weight: 500;
	color: var(--rework-24r-muted, #64748b);
}

.rework-city-role__prose {
	max-width: 68ch;
}

.rework-city-role__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.rework-city-role__filter {
	appearance: none;
	border: 1px solid var(--rework-24r-border, #e2e8f0);
	background: #fff;
	color: var(--rework-24r-text, #1a202c);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 16px !important;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.rework-city-role__filter:hover,
.rework-city-role__filter:focus-visible {
	color: var(--rework-24r-primary, #0a65fc);
	border-color: var(--rework-24r-primary, #0a65fc);
	outline: none;
}

.rework-city-role__filter.is-active {
	background: rgba(10, 101, 252, 0.08);
	border-color: var(--rework-24r-primary, #0a65fc);
	color: var(--rework-24r-primary, #0a65fc);
}

.rework-city-role__filter-empty {
	margin: 8px 0 0;
	color: var(--rework-24r-muted, #64748b);
}

.rework-city-role__links-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.rework-city-role__employer-link {
	font-size: 16px !important;
	font-weight: 500;
	color: var(--rework-24r-muted, #64748b);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rework-city-role__employer-link:hover {
	color: var(--rework-24r-primary, #0a65fc);
}

/* Local cards: reuse /vakansii/ footer action styles inside matrix */
body.rework-24r-city-role .job-card-footer-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 12px;
}

.rework-city-role__content {
	margin-bottom: 28px;
}

.rework-city-role__faq {
	margin: 0 0 28px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--rework-24r-border, #e2e8f0);
	border-radius: var(--rework-24r-radius-lg, 12px);
	box-shadow: var(--rework-24r-shadow, 0 4px 12px rgba(0, 0, 0, 0.05));
}

.rework-city-role__faq-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.rework-city-role__faq-item {
	border-top: 1px solid var(--rework-24r-border, #e2e8f0);
	padding: 14px 0;
}

.rework-city-role__faq-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.rework-city-role__faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--rework-24r-text, #1a202c);
	list-style: none;
}

.rework-city-role__faq-item summary::-webkit-details-marker {
	display: none;
}

.rework-city-role__faq-item summary::after {
	content: "+";
	float: right;
	color: var(--rework-24r-primary, #0a65fc);
	font-weight: 500;
}

.rework-city-role__faq-item[open] summary::after {
	content: "−";
}

.rework-city-role__faq-item p {
	margin: 10px 0 0;
	line-height: 1.65;
	color: var(--rework-24r-muted, #64748b);
}

.rework-city-role__cta {
	margin: 0 0 28px;
	padding: 28px;
	background: rgba(10, 101, 252, 0.06);
	border: 1px solid rgba(10, 101, 252, 0.18);
	border-radius: var(--rework-24r-radius-lg, 12px);
}

.rework-city-role__cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
}

.rework-city-role__cta p {
	margin: 0;
	color: var(--rework-24r-muted, #64748b);
	line-height: 1.55;
}

.rework-city-role__links {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 40px;
}

.rework-city-role__neighbors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.rework-city-role__neighbors-label {
	color: var(--rework-24r-muted, #64748b);
}

.rework-city-role__neighbors-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rework-city-role__neighbors-list a,
.rework-city-role__neighbors a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--rework-24r-border, #e2e8f0);
	border-radius: 999px;
	background: #fff;
	color: var(--rework-24r-text, #1a202c);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.rework-city-role__neighbors-list a:hover,
.rework-city-role__neighbors a:hover {
	color: var(--rework-24r-primary, #0a65fc);
	border-color: var(--rework-24r-primary, #0a65fc);
}

/*
 * Hub / employer link blocks reuse theme .seo-job-tags + .sjt cards.
 * Keep only CTA and employer-list tweaks so they don't fight pill styles.
 */
.rework-city-role-hub-links.seo-job-tags,
.rework-city-role-prof-cities.seo-job-tags {
	margin: 0 0 30px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.rework-24r-prof-single .rework-city-role-prof-cities {
	margin-top: 28px;
}

/* Avoid full-bleed flash before JS moves hub into the VC column. */
.careerfy-entry-content > aside.rework-city-role-hub-links:not([data-rework-hub-placed]) {
	margin-left: auto;
	margin-right: auto;
	width: min(100%, 1280px);
	max-width: calc(100% - 32px);
}

.rework-city-role-hub-links__cta {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid #eef1f5;
}

.rework-city-role-hub-links__cta a {
	display: inline-block;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--cfy-primary, #0a65fc);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

.rework-city-role-hub-links__cta a:hover {
	text-decoration: underline;
	box-shadow: none;
	transform: none;
}

.rework-city-role-employer-links {
	margin: 28px 0;
	padding: 24px 28px;
	background: #fff;
	border: 1px solid rgba(10, 101, 252, 0.08);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(7, 18, 50, 0.06);
	box-sizing: border-box;
}

.rework-city-role-employer-links h2 {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eef1f5;
	font-size: 20px;
	font-weight: 600;
	color: #071232;
}

.rework-city-role-employer-links__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin: 0;
}

.rework-city-role-employer-links__list a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: rgba(10, 101, 252, 0.06);
	color: var(--cfy-primary, #0a65fc);
	text-decoration: none;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rework-city-role-employer-links__list a:hover {
	background: var(--cfy-primary, #0a65fc);
	color: #fff;
	box-shadow: 0 4px 12px rgba(10, 101, 252, 0.25);
	transform: translateY(-1px);
}

@media (max-width: 767px) {
	.rework-city-role__faq,
	.rework-city-role__cta {
		padding: 20px;
	}

	.rework-city-role__cta-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.rework-city-role__cta-inner .rework-24r-btn {
		width: 100%;
	}
}
