/* ==========================================================================
   JM Theme — main.css
   Design system: Motel One-inspired minimalism.
   Mobile-first. Breakpoints: 768px, 1024px.
   ========================================================================== */

:root {
	--jm-primary: #2E75B6;
	--jm-accent: #D95929;
	--jm-text: #1a1a1a;
	--jm-muted: #6b7280;
	--jm-bg: #fff;
	--jm-bg-section: #f7f8fa;
	--jm-footer-bg: #1F3864;
	--jm-radius: 8px;
	--jm-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
	--jm-shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.10);
	--jm-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--jm-header-height: 60px; /* компактен хедър 09.09: mobile 60, ≥900px → 64 (виж media блока) */

	/* ---- Typography scale — source of truth: Legal Consultations page.
	   Values are verbatim from the .jm-legal__* design; every page reuses
	   these tokens so the whole site reads like /правни-консултации/. ---- */
	--jm-heading-color: #1F3864;
	--jm-body-color: #5b6b7f;
	--jm-h1-size: clamp(26px, 3.5vw, 40px); /* компактна скала 01.09 (беше 32/4.5vw/52) */
	--jm-h1-weight: 300;
	--jm-h1-lh: 1.15;
	--jm-h1-ls: -0.5px;
	--jm-h2-size: 22px;
	--jm-h2-weight: 400;
	--jm-h2-lh: 1.35;
	--jm-lead-size: 18px;
	--jm-lead-lh: 1.6;
	--jm-body-size: 15px;
	--jm-body-lh: 1.7;
	--jm-eyebrow-size: 11px;
	--jm-eyebrow-weight: 500;
	--jm-eyebrow-ls: 1.4px;
	--jm-btn-size: 15px;
	--jm-btn-weight: 500;
	--jm-btn-pad: 14px 28px;
	--jm-btn-radius: 4px;
	--jm-section-pad-block: 96px;
	--jm-head-mb: 72px;
	--jm-text-measure: 560px;

	/* ---- Form controls — source of truth: candidate form (398). ---- */
	--jm-field-minh: 46px;
	--jm-field-pad: 12px 14px;
	--jm-field-fs: 16px; /* 16px+ спира iOS auto-zoom при фокус */
	--jm-field-border: #d1d5db;
	--jm-field-radius: 8px;
	--jm-focus-ring: 0 0 0 3px rgba(46, 117, 182, 0.18);
	--jm-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---- Reset ---- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: #fff;
	color-scheme: light;
}

/*
 * Off-screen elements (the offcanvas nav, third-party fixed widgets) are
 * position:fixed past the right edge by design. Chrome still counts their
 * painted extent toward the root's scrollable overflow, which reveals a
 * blank strip on zoom-out / pinch-zoom. Clipping horizontally on the root
 * is the correct fix — shrinking the offcanvas itself would break its
 * intentional off-screen resting position.
 */
html,
body {
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: var(--jm-font);
	font-weight: 400;
	color: var(--jm-text);
	background: var(--jm-bg);
	background: #fff;
	color-scheme: light;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-container {
	width: 100%;
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: 20px;
}

/* ==========================================================================
   Header
   2026-09-09: меню 45 е САМО в off-canvas панела — сандвич (☰) на ВСИЧКИ
   ширини. Хедърът = лого + CTA + ☰. Панелът (.jm-nav, role="dialog") е
   извън <header>, position:fixed над overlay-а. RTL (ar): логически
   свойства → панелът идва отляво, ☰ е отляво (flex-редът се обръща сам).
   ========================================================================== */

.jm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--jm-bg);
	background: #fff;
	/* Тънка линия вместо мека сянка (09.09): голямата сянка четеше като „лента". */
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.jm-header__inner {
	max-width: 1140px;
	margin-inline: auto;
	padding: 8px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--jm-header-height);
}

/* Brand */
.jm-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.jm-brand__logo {
	/* SVG-то е 2:1 (600×300) → фиксираме само височината; квадратна кутия
	   с object-fit даваше прозрачно поле отгоре/отдолу и раздуваше хедъра. */
	width: auto;
	height: 36px;
	object-fit: contain;
}

.jm-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.jm-brand__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--jm-primary);
}

.jm-brand__tagline {
	display: none; /* видимо само ≥900px */
	font-size: 0.8rem;
	font-weight: 300;
	color: var(--jm-muted);
}

/* CTA + actions (в RTL flex-редът се обръща → ☰ е отляво) */
.jm-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-inline-start: auto;
}

.jm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--jm-radius);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jm-btn--cta {
	background: var(--jm-accent);
	color: #fff;
}

.jm-btn__short {
	display: none;
}

.jm-btn--cta:hover,
.jm-btn--cta:focus-visible {
	transform: translateY(-1px);
	box-shadow: var(--jm-shadow-lift);
}

/* Hamburger — видим на ВСИЧКИ ширини */
.jm-hamburger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: var(--jm-radius);
	background: transparent;
	cursor: pointer;
	padding: 0;
	color: var(--jm-text);
}

.jm-hamburger:hover,
.jm-hamburger:focus-visible {
	background: var(--jm-bg-section);
}

.jm-hamburger:focus-visible {
	outline: 2px solid var(--jm-primary);
	outline-offset: 2px;
}

.jm-hamburger__line {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}

/* Overlay върху страницата (над sticky хедъра: z 100) */
.jm-nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: 1000;
}

.jm-nav-overlay.is-open {
	opacity: 1;
}

/* Off-canvas панел: LTR отдясно, RTL отляво (inset-inline-end + transform) */
.jm-nav {
	position: fixed;
	top: 0;
	bottom: 0;
	inset-inline-end: 0;
	width: min(320px, 88vw);
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: 0 0 32px rgba(0, 0, 0, 0.18);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.25s ease, visibility 0s linear 0.25s;
	z-index: 1001;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	outline: none;
}

[dir="rtl"] .jm-nav {
	transform: translateX(-100%);
}

.jm-nav.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform 0.25s ease, visibility 0s;
}

/* Скролът на страницата спира, докато панелът е отворен */
html.jm-nav-open,
html.jm-nav-open body {
	overflow: hidden;
}

.jm-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px 14px 24px;
	min-height: var(--jm-header-height);
	border-bottom: 1px solid #e6e9ef;
}

.jm-nav__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.2px;
	color: var(--jm-heading-color);
	text-transform: uppercase;
}

.jm-nav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: var(--jm-radius);
	background: transparent;
	color: var(--jm-text);
	cursor: pointer;
	padding: 0;
	margin-inline-end: -8px;
}

.jm-nav__close:hover,
.jm-nav__close:focus-visible {
	background: var(--jm-bg-section);
	color: var(--jm-accent);
}

.jm-nav__close:focus-visible {
	outline: 2px solid var(--jm-primary);
	outline-offset: 2px;
}

.jm-nav__body {
	padding: 8px 0 24px;
}

.jm-nav__menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.jm-nav__menu li {
	margin: 0;
}

.jm-nav__menu a {
	display: block;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--jm-text);
	border-inline-start: 3px solid transparent;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.jm-nav__menu a:hover,
.jm-nav__menu a:focus-visible {
	color: var(--jm-accent);
	background: var(--jm-bg-section);
}

.jm-nav__menu a:focus-visible {
	outline: 2px solid var(--jm-primary);
	outline-offset: -2px;
}

.jm-nav__menu .current-menu-item > a,
.jm-nav__menu .current_page_item > a {
	color: var(--jm-primary);
	border-inline-start-color: var(--jm-accent);
}

/* Подменюта (ако някога се появят) — вложени, по-малки */
.jm-nav__menu .sub-menu a {
	padding-inline-start: 40px;
	font-size: 15px;
	font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
	.jm-nav,
	.jm-nav.is-open,
	.jm-nav-overlay {
		transition: none;
	}
}

@media (min-width: 900px) {
	/* Компактен хедър (09.09): ≤64px. Подзаглавието се показва само тук;
	   логото 44px; --jm-header-height следва (ползва се и от .jm-nav__head). */
	:root {
		--jm-header-height: 64px;
	}

	.jm-header__inner {
		padding-block: 10px;
	}

	.jm-brand__logo {
		height: 44px;
	}

	.jm-brand__tagline {
		display: block;
	}

	.jm-header__actions {
		gap: 16px;
	}
}

/*
 * Narrow phones (<=480px): brand + CTA + hamburger were overflowing the
 * header row horizontally, pushing the hamburger off-screen entirely.
 * Reclaim width: drop the tagline, tighten spacing, shrink the logo/CTA,
 * and swap the CTA to its short label. Hamburger tap target stays 44px.
 */
@media (max-width: 480px) {
	.jm-header__inner {
		padding-inline: 8px;
		gap: 4px;
	}

	.jm-brand__name {
		font-size: 20px;
	}

	.jm-header__actions {
		gap: 4px;
	}

	.jm-btn--cta {
		padding: 6px 8px;
		font-size: 11px;
	}

	.jm-btn__full {
		display: none;
	}

	.jm-btn__short {
		display: inline;
	}
}

/* ==========================================================================
   Hero (front page) — search-first, compact
   ========================================================================== */

.jm-hero {
	background: var(--jm-bg-section);
	padding-block: 32px;
}

.jm-hero__inner {
	text-align: center;
	max-width: 760px;
}

.jm-hero__title {
	font-size: var(--jm-h2-size);
	font-weight: var(--jm-h2-weight);
	margin: 0 0 18px;
	color: var(--jm-heading-color);
}

.jm-search {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 12px;
}

.jm-search__input {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font-family: var(--jm-font);
	font-size: 15px;
	color: var(--jm-text);
	background: var(--jm-bg);
	border: 1px solid #d4dae3;
	border-radius: var(--jm-radius);
}

.jm-search__input:focus {
	outline: none;
	border-color: var(--jm-primary);
	box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.15);
}

.jm-search__submit {
	min-height: 46px;
	padding: 10px 26px;
	font-family: var(--jm-font);
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--jm-primary);
	border: none;
	border-radius: var(--jm-radius);
	cursor: pointer;
	transition: background 0.15s ease;
}

.jm-search__submit:hover,
.jm-search__submit:focus-visible {
	background: #245e94;
}

.jm-hero__stats {
	font-size: 13px;
	font-weight: 400;
	color: var(--jm-muted);
	margin: 0 0 16px;
}

.jm-home .jm-hero__actions .jm-btn {
	min-height: 44px;
	font-size: 13px;
	padding: 8px 16px;
}

@media (min-width: 768px) {
	.jm-hero {
		padding-block: 44px;
	}

	.jm-hero__title {
		font-size: 28px;
	}

	.jm-search {
		flex-direction: row;
	}

	.jm-search__input--keywords {
		flex: 2 1 0;
	}

	.jm-search__input--location {
		flex: 1 1 0;
	}

	.jm-search__submit {
		flex: 0 0 auto;
	}
}

/* ==========================================================================
   Main / generic content
   ========================================================================== */

.jm-main {
	padding-block: 24px 48px; /* top 48→24 (09.09): по-близо до хедъра; bottom непроменен */
}

/* Начална: сивото hero започва директно под хедъра — без бяла ивица (09.09).
   Hero-то има собствен padding (44/32px). Вътрешните страници пазят 24px. */
.jm-main.jm-home {
	padding-top: 0;
}

/*
 * Global typography — every fallback/bare page (index.php: 396, 398, 516,
 * 546, 569, single job, archives) inherits the Legal Consultations scale.
 * Readable-text rules target DIRECT children of the content wrapper only, so
 * markup nested inside components (candidate form, login cards, WPJM forms,
 * [jobs] output) keeps its own compact component styles untouched.
 */

.jm-post__title {
	font-size: var(--jm-h1-size);
	font-weight: var(--jm-h1-weight);
	line-height: var(--jm-h1-lh);
	letter-spacing: var(--jm-h1-ls);
	color: var(--jm-heading-color);
	margin: 0 0 16px;
}

.jm-post__content > p,
.jm-post__content > ul,
.jm-post__content > ol {
	font-size: var(--jm-body-size);
	line-height: var(--jm-body-lh);
	color: var(--jm-body-color);
	max-width: var(--jm-text-measure);
	margin: 0 0 16px;
}

/* The theme reset strips list styling — restore it for content lists. */
.jm-post__content > ul {
	list-style: disc;
	padding-left: 20px;
}

.jm-post__content > ol {
	list-style: decimal;
	padding-left: 20px;
}

/* WPJM описание на обявата (single): глобалният `ul` reset маха bullets — възстановяване (28.09.2026).
   padding-inline-start → работи и за RTL (ar/fa/ps). */
.single_job_listing .job_description ul,
.single_job_listing .job_description ol {
	margin: 0 0 16px;
	padding-inline-start: 24px;
}

.single_job_listing .job_description ul {
	list-style: disc;
}

.single_job_listing .job_description ol {
	list-style: decimal;
}

.single_job_listing .job_description li {
	margin: 0 0 4px;
}

.single_job_listing .job_description li > ul,
.single_job_listing .job_description li > ol {
	margin: 4px 0 0;
}

.jm-post__content > h2 {
	font-size: var(--jm-h2-size);
	font-weight: var(--jm-h2-weight);
	line-height: var(--jm-h2-lh);
	color: var(--jm-heading-color);
	margin: 40px 0 14px;
}

.jm-post__content > h3 {
	font-size: 17px;
	font-weight: 600;
	line-height: var(--jm-h2-lh);
	color: var(--jm-heading-color);
	margin: 32px 0 10px;
}

/* WPJM form submit (516 preview/submit) + single-listing apply button. */
.job-manager-form input[type="submit"],
.application_button.button {
	font-family: var(--jm-font);
	font-size: var(--jm-btn-size);
	font-weight: var(--jm-btn-weight);
	padding: var(--jm-btn-pad);
	border: 0;
	border-radius: var(--jm-btn-radius);
	background: var(--jm-primary);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.job-manager-form input[type="submit"]:hover,
.application_button.button:hover {
	background: #245e94;
	color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.jm-footer {
	background: var(--jm-footer-bg);
	color: #fff;
}

.jm-footer__inner {
	max-width: 1140px;
	margin-inline: auto;
	padding: 56px 20px 32px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.jm-footer__heading {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.9);
}

.jm-footer__menu,
.jm-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.jm-footer__menu a,
.jm-footer__contacts a,
.jm-footer__contacts li {
	font-size: 14px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.75);
}

.jm-footer__menu a:hover,
.jm-footer__contacts a:hover {
	color: var(--jm-accent);
}

.jm-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 20px;
	text-align: center;
}

.jm-footer__bottom p {
	margin: 0;
	font-size: 13px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
}

/* Footer = 2 колони (Меню | Контакти) от 24.09.2026 — brand колоната (ФАР лого + лиценз) е премахната. */
@media (min-width: 768px) {
	.jm-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   Legal Consultations page (Template Name: Legal Consultations)
   Motel One-inspired: white space, thin 1px dividers between cards, no
   shadows, no fills. Cards are separated by hairline rules — vertical on
   multi-column layouts, horizontal when stacked.
   ========================================================================== */

.jm-legal {
	background: #fff;
	padding: var(--jm-section-pad-block) 24px;
}

.jm-legal__inner {
	max-width: 1200px;
	margin-inline: auto;
}

.jm-legal__head {
	margin-bottom: var(--jm-head-mb);
}

.jm-legal__title {
	font-weight: var(--jm-h1-weight);
	font-size: var(--jm-h1-size);
	line-height: var(--jm-h1-lh);
	letter-spacing: var(--jm-h1-ls);
	color: var(--jm-heading-color);
	margin: 0 0 16px;
}

.jm-legal__subtitle {
	font-size: var(--jm-lead-size);
	line-height: var(--jm-lead-lh);
	color: var(--jm-body-color);
	max-width: var(--jm-text-measure);
	margin: 0;
}

/* Grid — 1 column by default; dividers become horizontal between stacked cards. */
.jm-legal__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.jm-legal__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 32px 0;
}

.jm-legal__card + .jm-legal__card {
	border-top: 1px solid #E8ECF1;
}

.jm-legal__tag {
	font-weight: var(--jm-eyebrow-weight);
	font-size: var(--jm-eyebrow-size);
	text-transform: uppercase;
	letter-spacing: var(--jm-eyebrow-ls);
	color: var(--jm-accent);
	margin-bottom: 20px;
}

.jm-legal__card-title {
	font-weight: var(--jm-h2-weight);
	font-size: var(--jm-h2-size);
	line-height: var(--jm-h2-lh);
	color: var(--jm-heading-color);
	margin: 0 0 14px;
}

.jm-legal__card-text {
	flex: 1;
	font-size: var(--jm-body-size);
	line-height: var(--jm-body-lh);
	color: var(--jm-body-color);
	margin: 0 0 32px;
}

.jm-legal__btn {
	align-self: flex-start;
	display: inline-block;
	background: transparent;
	border: 1px solid var(--jm-heading-color);
	border-radius: var(--jm-btn-radius);
	color: var(--jm-heading-color);
	font-weight: var(--jm-btn-weight);
	font-size: var(--jm-btn-size);
	line-height: 1.3;
	padding: var(--jm-btn-pad);
	transition: background 0.2s ease, color 0.2s ease;
}

.jm-legal__btn:hover {
	background: var(--jm-heading-color);
	color: #fff;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
	.jm-legal {
		padding: 56px 20px;
	}

	.jm-legal__btn {
		align-self: stretch;
		width: 100%;
		text-align: center;
	}
}

/* ---- 2 columns: vertical dividers between columns, horizontal above wrapped rows ---- */
@media (min-width: 768px) {
	.jm-legal__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.jm-legal__card {
		padding: 0 40px;
	}

	.jm-legal__card + .jm-legal__card {
		border-top: 0;
	}

	.jm-legal__card:not(:nth-child(2n + 1)) {
		border-left: 1px solid #E8ECF1;
	}

	.jm-legal__card:nth-child(n + 3) {
		border-top: 1px solid #E8ECF1;
		padding-top: 40px;
		margin-top: 40px;
	}
}

/* ---- 3 columns: three cards on one row, two vertical dividers ---- */
@media (min-width: 1080px) {
	.jm-legal__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.jm-legal__card:nth-child(n + 3) {
		border-top: 0;
		padding-top: 0;
		margin-top: 0;
	}

	.jm-legal__card:not(:nth-child(2n + 1)) {
		border-left: 0;
	}

	.jm-legal__card:not(:nth-child(3n + 1)) {
		border-left: 1px solid #E8ECF1;
	}
}


/* ---------- NEWS ARCHIVE ---------- */
.jm-news__wrap{max-width:1200px;margin:0 auto;padding:48px 20px 80px;}
.jm-news__heading{font-family:var(--jm-font);font-weight:var(--jm-h1-weight);
  font-size:var(--jm-h1-size);line-height:var(--jm-h1-lh);
  letter-spacing:var(--jm-h1-ls);color:var(--jm-heading-color);margin:0 0 32px;}

.jm-news__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:28px;
}

.jm-card{background:#fff;border:1px solid #e6e9ef;border-radius:10px;overflow:hidden;
  transition:box-shadow .2s ease,transform .2s ease;}
.jm-card:hover{box-shadow:0 8px 24px rgba(31,56,100,.12);transform:translateY(-3px);}
.jm-card__link{display:block;text-decoration:none;color:inherit;height:100%;}

.jm-card__media{aspect-ratio:16/9;overflow:hidden;background:#f2f4f8;}
.jm-card__img{width:100%;height:100%;object-fit:cover;display:block;}
.jm-card__ph{display:block;width:100%;height:100%;background:#1F3864;opacity:.08;}

.jm-card__body{padding:18px 20px 24px;}
.jm-card__date{display:block;font-family:Inter,sans-serif;font-weight:300;
  font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:#D95929;margin-bottom:8px;}
.jm-card__title{font-family:var(--jm-font);font-weight:600;font-size:19px;line-height:1.35;
  color:var(--jm-heading-color);margin:0;}
.jm-card:hover .jm-card__title{color:#2E75B6;}

.jm-news__pager{margin-top:48px;font-family:Inter,sans-serif;}
.jm-news__pager .page-numbers{display:inline-block;padding:8px 14px;margin:0 4px;
  border:1px solid #e6e9ef;border-radius:6px;text-decoration:none;color:#1F3864;}
.jm-news__pager .page-numbers.current{background:#1F3864;color:#fff;border-color:#1F3864;}

@media (max-width:1023px){
  .jm-news__grid{grid-template-columns:repeat(2,1fr);gap:20px;}
}
@media (max-width:639px){
  .jm-news__grid{grid-template-columns:1fr;gap:18px;}
  .jm-news__wrap{padding:32px 16px 60px;}
  .jm-card__title{font-size:17px;}
}

/* ==========================================================================
   Home page (front-page.php) — sections 1–6
   Mobile-first. Grid: 1 col mobile → 2 col tablet → more on desktop.
   ========================================================================== */

.jm-home .jm-section__title {
	font-size: var(--jm-h2-size);
	font-weight: var(--jm-h2-weight);
	line-height: var(--jm-h2-lh);
	color: var(--jm-heading-color);
	text-align: center;
	margin: 0 0 32px;
}

.jm-section__title--left {
	text-align: left;
}

/* ---- Hero buttons (outline variant) ---- */
.jm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.jm-btn--outline {
	background: transparent;
	color: var(--jm-primary);
	border: 1px solid var(--jm-primary);
}

.jm-btn--outline:hover,
.jm-btn--outline:focus-visible {
	background: var(--jm-primary);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--jm-shadow-lift);
}

/* ==========================================================================
   Section 2 — Trust row (inline, no cards)
   ========================================================================== */
.jm-trust {
	padding-block: 18px;
	border-bottom: 1px solid #e6e9ef;
}

.jm-trust__row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 16px;
}

.jm-trust__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--jm-text);
	line-height: 1.3;
}

.jm-trust__icon {
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}

@media (min-width: 900px) {
	.jm-trust__row {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0;
	}

	.jm-trust__item {
		font-size: 14px;
	}

	.jm-trust__item + .jm-trust__item::before {
		content: "·";
		margin: 0 14px;
		color: var(--jm-muted);
		font-weight: 700;
	}
}

/* ==========================================================================
   Section 3 — Category chips (compact)
   ========================================================================== */
.jm-cats {
	padding-block: 32px;
}

.jm-cats .jm-section__title {
	margin-bottom: 20px;
}

/* 29.09.2026 mobile overflow fix: `1fr` = minmax(auto,1fr) → минималната ширина на колоната е най-дългата дума в чипа
   („Административни" + икона + padding ≈ 185px), а на 390px колоната е 171px → грид-ът излизаше вдясно от viewport-а.
   На ≤767px: minmax(0,1fr) + min-width:0 по веригата li → a → име + hyphens/overflow-wrap; при ≤360px една колона.
   Десктопът (≥768px) пази auto-размерените `1fr` колони — там думите се събират без пренос. */
.jm-chips {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.jm-chips__item {
	min-width: 0;
}

.jm-chip {
	display: flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: space-between;
	gap: 10px; /* 28.09.2026: мерки по categories-icons-preview.html (Zahid) */
	min-height: 44px;
	padding: 12px 14px;
	background: var(--jm-bg);
	border: 1px solid #e6e9ef;
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jm-chip:hover,
.jm-chip:focus-visible {
	border-color: var(--jm-primary);
	box-shadow: var(--jm-shadow);
}

.jm-chip__name {
	font-size: 15px;
	font-weight: 500;
	color: var(--jm-text);
	line-height: 1.25;
}

.jm-chip:hover .jm-chip__name {
	color: var(--jm-primary);
}

.jm-chip__count {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--jm-primary);
}

@media (min-width: 1024px) {
	.jm-chips {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 767px) {
	.jm-chips,
	.jm-chips--col,
	.jm-cols .jm-chips--col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jm-chip,
	.jm-chip__name {
		min-width: 0;
		hyphens: auto;
		overflow-wrap: anywhere;
	}
}

/* 29.09.2026 (follow-up): на 361–480px чиповете да се СЪБИРАТ без пренос; hyphens/anywhere по-горе остават само предпазна мрежа.
   Измерено в Chrome (Inter 500): „Административни и офис" min-content = 200px при 15px/pad 14/gap 10 (колона 171px на 390px);
   14px/pad 10/gap 8 → 184 (още се пренася); 13px/pad 10 8/gap 6/брояч 12 → 167 < 172 (390px) и < 167 (380px). Под ~380px
   думата не се събира при никакъв разумен размер → пренася се на срички (hyphens: auto). */
@media (max-width: 480px) {
	.jm-chips,
	.jm-chips--col,
	.jm-cols .jm-chips--col {
		gap: 6px;
	}

	.jm-chip {
		padding: 10px 8px;
		gap: 6px;
	}

	.jm-chip__name {
		font-size: 13px;
	}

	.jm-chip__count {
		font-size: 12px;
	}
}

@media (max-width: 360px) {
	.jm-chips,
	.jm-chips--col,
	.jm-cols .jm-chips--col {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   Section 4 — Employer CTA strip
   ========================================================================== */
.jm-strip {
	padding-block: 20px;
	background: var(--jm-bg-section);
}

.jm-strip__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.jm-strip__text {
	font-size: 15px;
	font-weight: 600;
	color: var(--jm-text);
	margin: 0;
}

.jm-strip .jm-btn {
	min-height: 44px;
}

@media (min-width: 900px) {
	.jm-strip__inner {
		flex-direction: row;
		justify-content: center;
		gap: 18px;
		text-align: left;
	}
}

/* ==========================================================================
   Section 5 — Latest jobs (compact list rows)
   ========================================================================== */
.jm-recent {
	padding-block: 32px;
}

.jm-recent .jm-section__title {
	margin-bottom: 20px;
}

.jm-rows {
	border: 1px solid #e6e9ef;
	border-radius: var(--jm-radius);
	overflow: hidden;
}

.jm-rows__item + .jm-rows__item {
	border-top: 1px solid #e6e9ef;
}

.jm-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	min-height: 44px;
	padding: 10px 14px;
	background: var(--jm-bg);
	transition: background 0.15s ease;
}

.jm-row:hover,
.jm-row:focus-visible {
	background: var(--jm-bg-section);
}

.jm-row__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--jm-primary);
}

.jm-row__company {
	font-size: 13px;
	font-weight: 500;
	color: var(--jm-text);
}

.jm-row__location {
	font-size: 13px;
	font-weight: 300;
	color: var(--jm-muted);
}

.jm-row__date {
	margin-left: auto;
	font-size: 12px;
	font-weight: 300;
	color: var(--jm-muted);
	white-space: nowrap;
}

.jm-recent__more {
	text-align: center;
	margin-top: 20px;
}

.jm-recent__more .jm-btn {
	min-height: 44px;
}

/* ==========================================================================
   Info notice — used in page content (e.g. Кандидати landing while the
   candidate form is not yet published).
   ========================================================================== */
.jm-notice {
	max-width: 640px;
	margin: 24px auto;
	padding: 28px 24px;
	background: var(--jm-bg-section);
	border: 1px solid #e6e9ef;
	border-left: 4px solid var(--jm-accent);
	border-radius: var(--jm-radius);
	text-align: center;
}

.jm-notice__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--jm-heading-color);
	margin: 0 0 8px;
}

.jm-notice__text {
	font-size: 15px;
	font-weight: 300;
	color: var(--jm-muted);
	margin: 0 0 20px;
}

/* ==========================================================================
   WPJM account-signin ("Имате ли профил? … Вход") — иконата от icon шрифта
   job-manager се маха, линкът става outline бутон в брандовия цвят.
   ========================================================================== */
.job-manager-form .account-sign-in .button::before,
.account-sign-in .button::before {
	content: none !important;
}

.job-manager-form .account-sign-in .button,
.account-sign-in .button {
	display: inline-block;
	margin: 2px 10px 2px 0;
	padding: 8px 18px;
	background: transparent;
	border: 1px solid var(--jm-primary);
	border-radius: var(--jm-radius);
	color: var(--jm-primary);
	font-family: var(--jm-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.job-manager-form .account-sign-in .button:hover,
.job-manager-form .account-sign-in .button:focus-visible,
.account-sign-in .button:hover,
.account-sign-in .button:focus-visible {
	background: var(--jm-primary);
	color: #fff;
}

/* „Първата обява е безплатна" ред в submit формата (jm-forms) */
.jm-free-notice {
	margin: 12px 0;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #1e6b3a;
	background: #f0f9f2;
	border: 1px solid #bfe3c8;
	border-radius: var(--jm-radius);
}

/* ==========================================================================
   Candidate form ([jm_candidate_form], стр. 398) — SaaS-onboarding вид:
   центрирана колона, две карти, 100% полета, ясен фокус. 2026-08-26.
   ========================================================================== */

.jm-candidate-form-wrap {
	max-width: 640px;
	margin-inline: auto;
	padding-block: 8px 48px;
}

/* ---- Карти ---- */
.jm-candidate-form .jm-card {
	background: #fff;
	border: 1px solid #e6e9ef;
	border-radius: 12px;
	box-shadow: var(--jm-shadow);
	padding: 32px;
	margin: 0 0 24px;
}

/* fieldset има UA default-и (min-width, border, padding), които чупят картата */
fieldset.jm-card {
	min-width: 0;
}

.jm-card__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--jm-heading-color);
	margin: 0 0 16px;
	padding: 0;
	line-height: 1.3;
}

/* legend не е в нормалния поток — float го връща като блок в картата */
legend.jm-card__title {
	float: left;
	width: 100%;
	margin-bottom: 4px;
}

.jm-registration-fields::after {
	content: "";
	display: block;
	clear: both;
}

.jm-card__intro {
	display: block;
	clear: both;
	margin: 0 0 20px;
}

.jm-card__intro a {
	color: var(--jm-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- Полета ---- */
.jm-candidate-form .jm-field {
	margin: 0 0 20px;
}

.jm-candidate-form .jm-field > label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--jm-text);
	margin: 0 0 6px;
}

.jm-candidate-form .jm-field label strong {
	font-weight: 600;
}

.jm-required {
	color: var(--jm-accent);
}

.jm-candidate-form .jm-input {
	display: block;
	width: 100%;
	min-height: var(--jm-field-minh);
	padding: var(--jm-field-pad);
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
	background: #fff;
	color: var(--jm-text);
	font-family: inherit;
	font-size: var(--jm-field-fs);
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jm-candidate-form .jm-input:focus {
	outline: none;
	border-color: var(--jm-primary);
	box-shadow: var(--jm-focus-ring);
}

/* Select-ите: без OS-default вид, custom chevron */
.jm-candidate-form select.jm-input {
	appearance: none;
	-webkit-appearance: none;
	background-image: var(--jm-select-chevron);
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	padding-right: 40px;
}

.jm-candidate-form .jm-hint {
	display: block;
	font-size: 13px;
	color: var(--jm-muted);
	line-height: 1.5;
	margin-top: 6px;
}

/* ---- Checkbox-и ---- */
.jm-candidate-form input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--jm-primary);
	flex: 0 0 auto;
	margin: 0;
	cursor: pointer;
}

/* label.* вариантите вдигат специфичността над .jm-field > label (600),
   иначе consent текстът наследява полу-bold — трябва да е спокоен 400. */
.jm-candidate-form .jm-checkbox-label,
.jm-candidate-form .jm-consent-label,
.jm-candidate-form label.jm-checkbox-label,
.jm-candidate-form .jm-field > label.jm-consent-label,
.jm-candidate-form label.jm-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.jm-candidate-form .jm-checkbox-label {
	align-items: center;
	font-size: 15px;
}

/* ---- Езиков repeater ---- */
.jm-lang-hint {
	margin-bottom: 10px;
}

.jm-lang-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
}

.jm-lang-row .jm-input {
	flex: 1 1 0;
	min-width: 0;
}

.jm-candidate-form .jm-lang-remove {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #d1d5db;
	border-radius: 50%;
	background: #fff;
	color: var(--jm-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.jm-candidate-form .jm-lang-remove:hover,
.jm-candidate-form .jm-lang-remove:focus-visible {
	border-color: #dc2626;
	color: #dc2626;
	background: #fef2f2;
}

.jm-lang-add-wrap {
	margin: 4px 0 0;
}

.jm-candidate-form .jm-lang-add {
	background: #fff;
	border: 1px solid var(--jm-primary);
	border-radius: 8px;
	color: var(--jm-primary);
	padding: 10px 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.jm-candidate-form .jm-lang-add:hover,
.jm-candidate-form .jm-lang-add:focus-visible {
	background: rgba(46, 117, 182, 0.08);
}

/* ---- Consent блок ---- */
.jm-candidate-form .jm-consent {
	background: #f9fafb;
	border: 1px solid #e6e9ef;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 0;
}

.jm-gdpr-details {
	margin: 0 0 14px;
}

.jm-gdpr-details summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	cursor: pointer;
	color: var(--jm-primary);
	font-size: 14px;
	font-weight: var(--jm-btn-weight);
	text-underline-offset: 2px;
}

/* Consent блокове: без тежък bold — акцентите минават на токените (500/navy). */
.jm-consent strong,
.jm-gdpr-details strong {
	font-weight: var(--jm-btn-weight);
	color: var(--jm-heading-color);
}

.jm-gdpr-details summary:hover {
	text-decoration: underline;
}

.jm-gdpr-details summary::-webkit-details-marker {
	display: none;
}

.jm-gdpr-details summary::after {
	content: "▾";
	font-size: 12px;
	transition: transform 0.15s ease;
}

.jm-gdpr-details[open] summary::after {
	transform: rotate(180deg);
}

.jm-gdpr-details[open] {
	padding-bottom: 4px;
}

/* Съдържанието на consent текста (gdpr-consent-text.php — НЕ пипаме файла) */
.jm-gdpr-details p,
.jm-gdpr-details li,
.jm-gdpr-details div {
	font-size: 14px;
	line-height: 1.6;
	color: var(--jm-text);
}

.jm-gdpr-details ul {
	list-style: disc;
	padding-left: 20px;
	margin: 8px 0;
}

.jm-consent-label input[type="checkbox"] {
	margin-top: 2px;
}

.jm-consent-text {
	font-size: 14px;
	line-height: 1.6;
}

/* ---- Submit ---- */
.jm-candidate-form .jm-actions {
	margin: 24px 0 0;
}

.jm-candidate-form #jm_candidate_submit {
	width: 100%;
	min-height: 48px;
	background: var(--jm-accent);
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.jm-candidate-form #jm_candidate_submit:hover:not(:disabled) {
	background: #c04a1f;
}

.jm-candidate-form #jm_candidate_submit:focus-visible {
	outline: 2px solid var(--jm-primary);
	outline-offset: 2px;
}

.jm-candidate-form #jm_candidate_submit:disabled {
	background: #f0b49c;
	cursor: not-allowed;
}

/* ---- Нотификации (scoped: темата има друг .jm-notice за info кутии) ---- */
.jm-candidate-form-wrap .jm-notice {
	max-width: none;
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 8px;
	text-align: left;
	font-size: 15px;
	line-height: 1.5;
}

.jm-candidate-form-wrap .jm-notice-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}

.jm-candidate-form-wrap .jm-notice-error ul {
	margin: 0;
	padding-left: 18px;
	list-style: disc;
}

.jm-candidate-form-wrap .jm-notice-error a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.jm-candidate-form-wrap .jm-notice-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
}

/* ---- Erasure (danger zone под формата) ---- */
.jm-candidate-erase-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 8px 0 0;
	padding: 4px;
}

.jm-candidate-erase-form .jm-erase-button {
	background: #fff;
	border: 1px solid #dc2626;
	border-radius: 8px;
	color: #dc2626;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.jm-candidate-erase-form .jm-erase-button:hover {
	background: #fef2f2;
}

.jm-erase-hint {
	font-size: 13px;
	color: var(--jm-muted);
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
	.jm-candidate-form .jm-card {
		padding: 20px 16px;
		border-radius: 0;
		border-inline: 0;
		margin-inline: -20px; /* компенсира .jm-container padding → edge-to-edge */
	}

	.jm-lang-row {
		flex-wrap: wrap;
	}

	.jm-lang-row .jm-lang-select {
		flex: 1 1 100%;
	}

	.jm-lang-row .jm-level-select {
		flex: 1 1 auto;
	}
}

/* ==========================================================================
   Homepage fixes 2026-08-26
   ========================================================================== */

/* Визуално скрито, достъпно за скрийнрийдъри (homepage H1). */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*
 * Категориен chip след посещение: UA стилът a:visited печели над слабия
 * reset a{color:inherit} (специфичност 0-1-1 срещу 0-0-1) и оцветява
 * посетените chips в синьо/лилаво. Експлицитно :visited правило (и за
 * span-а) връща брандовия текстов цвят.
 */
.jm-chip:visited,
.jm-chip:visited .jm-chip__name {
	color: var(--jm-text);
}

/* Chips секцията по-стегната след скриването на H2 (2026-08-26). */
.jm-cats {
	padding-block: 24px 32px;
}

/* ==========================================================================
   Login карта (стр. 396 „Работодатели" + гейта на 546) — 2026-08-26.
   Стилизира wp_login_form() output-а (#loginform: .login-username /
   .login-password / .login-remember / .login-submit).
   ========================================================================== */

.jm-login-card {
	max-width: 480px;
	margin: 8px auto 16px;
	background: #fff;
	border: 1px solid #e6e9ef;
	border-radius: 12px;
	box-shadow: var(--jm-shadow);
	padding: 32px;
}

.jm-login-card form {
	margin: 0;
}

.jm-login-card form > p {
	margin: 0 0 16px;
}

.jm-login-card label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--jm-text);
	margin: 0 0 6px;
}

.jm-login-card .input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: var(--jm-field-pad);
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
	background: #fff;
	color: var(--jm-text);
	font-family: inherit;
	font-size: var(--jm-field-fs);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jm-login-card .input:focus {
	outline: none;
	border-color: var(--jm-primary);
	box-shadow: var(--jm-focus-ring);
}

.jm-login-card .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	margin: 0;
	cursor: pointer;
}

.jm-login-card input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--jm-primary);
	margin: 0;
	flex: 0 0 auto;
}

.jm-login-card .login-submit {
	margin-bottom: 0;
}

.jm-login-card .button-primary {
	width: 100%;
	min-height: 48px;
	background: var(--jm-primary);
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.jm-login-card .button-primary:hover {
	background: #245e94;
}

.jm-login-card .button-primary:focus-visible {
	outline: 2px solid var(--jm-accent);
	outline-offset: 2px;
}

.jm-login-postjob {
	max-width: 480px;
	margin: 0 auto 32px;
	text-align: center;
}

.jm-login-postjob a {
	color: var(--jm-primary);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 480px) {
	.jm-login-card {
		padding: 24px 16px;
	}
}

/* ==========================================================================
   Employer consent блок (стр. 516) — стегнат, консистентен с кандидатския.
   Само CSS: текстът и markup-ът са непипнати. WPJM frontend.css float-ва
   fieldset label (width 29%) — оттам грозното чупене на checkbox реда.
   ========================================================================== */

.fieldset-jm_employer_consent.jm-consent {
	background: #f9fafb;
	border: 1px solid #e6e9ef;
	border-radius: 8px;
	padding: 16px;
	margin: 0 0 20px;
}

.fieldset-jm_employer_consent .jm-gdpr-info {
	margin: 0 0 14px;
}

/* Събираемият employer consent (2026-08-28): summary-то показва заглавието,
   затова byte-exact дубликатът от темплейта се скрива само визуално. */
.fieldset-jm_employer_consent .jm-gdpr-details .jm-gdpr-title {
	display: none;
}

.fieldset-jm_employer_consent .jm-gdpr-details {
	margin: 0 0 14px;
}

.fieldset-jm_employer_consent .jm-gdpr-details .jm-gdpr-info {
	margin: 8px 0 0;
}

.fieldset-jm_employer_consent .jm-gdpr-info p {
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 8px;
}

.fieldset-jm_employer_consent .jm-gdpr-info p:last-child {
	margin-bottom: 0;
}

.fieldset-jm_employer_consent .jm-gdpr-title,
.fieldset-jm_employer_consent .jm-gdpr-title strong {
	font-size: 15px;
	font-weight: var(--jm-btn-weight);
	color: var(--jm-heading-color);
}

.fieldset-jm_employer_consent .jm-gdpr-title {
	margin: 0 0 10px;
}

/* Checkbox редът: един flex блок — checkbox вляво, текстът на пълна ширина. */
.fieldset-jm_employer_consent .jm-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}

.fieldset-jm_employer_consent input[type=checkbox] {
	width: 20px;
	height: 20px;
	accent-color: var(--jm-primary);
	flex: 0 0 auto;
	margin: 1px 0 0;
	cursor: pointer;
}

.fieldset-jm_employer_consent .jm-consent-text {
	font-size: 14px;
	line-height: 1.5;
}

/* Специфичност: WPJM frontend.css (.job-manager-form fieldset label:not(...) =
   0,2,3) бие горните 0,2,0 селектори — качваме на 0,3,1. */
.job-manager-form .fieldset-jm_employer_consent label.jm-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}

.fieldset-jm_employer_consent .jm-gdpr-info p.jm-gdpr-title {
	font-size: 15px;
	margin: 0 0 10px;
}

/* ==========================================================================
   WPJM форма (516 [submit_job_form] + edit на таблото) — полетата наследяват
   системата на кандидатската форма (една система: --jm-field-* токените).
   Селекторите умишлено НЕ хващат checkbox/radio/submit/file и textarea-та на
   WP editor-а (.wp-editor-area) — те имат собствен chrome. 2026-08-28.
   ========================================================================== */

.job-manager-form input.input-text,
.job-manager-form input[type="text"],
.job-manager-form input[type="email"],
.job-manager-form input[type="url"],
.job-manager-form input[type="number"],
.job-manager-form input[type="password"],
.job-manager-form select {
	display: block;
	width: 100%;
	min-height: var(--jm-field-minh);
	padding: var(--jm-field-pad);
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
	background: #fff;
	color: var(--jm-text);
	font-family: var(--jm-font);
	font-size: var(--jm-field-fs);
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-manager-form textarea:not(.wp-editor-area) {
	display: block;
	width: 100%;
	min-height: 120px;
	padding: var(--jm-field-pad);
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
	background: #fff;
	color: var(--jm-text);
	font-family: var(--jm-font);
	font-size: var(--jm-field-fs);
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-manager-form input.input-text:focus,
.job-manager-form input[type="text"]:focus,
.job-manager-form input[type="email"]:focus,
.job-manager-form input[type="url"]:focus,
.job-manager-form input[type="number"]:focus,
.job-manager-form input[type="password"]:focus,
.job-manager-form select:focus,
.job-manager-form textarea:not(.wp-editor-area):focus {
	outline: none;
	border-color: var(--jm-primary);
	box-shadow: var(--jm-focus-ring);
}

/* Native select-и: custom chevron като на 398 (не за multiple списъци). */
.job-manager-form select:not([multiple]) {
	appearance: none;
	-webkit-appearance: none;
	background-image: var(--jm-select-chevron);
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	padding-right: 40px;
}

/* Файловото поле (company_logo): без 48px кутия, само подравнен шрифт. */
.job-manager-form input[type="file"] {
	display: block;
	width: 100%;
	font-family: var(--jm-font);
	font-size: 15px;
	padding: 10px 14px;
}

/* Labels: както на 398 (14/600); описанията под полетата — като .jm-hint. */
.job-manager-form fieldset label {
	font-size: 14px;
	font-weight: 600;
	color: var(--jm-text);
}

.job-manager-form fieldset small.description {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: var(--jm-muted);
	line-height: 1.5;
	margin-top: 6px;
}

/* select2 (WPJM го ползва за категориите): същият вид като нативните полета. */
.job-manager-form .select2-container--default .select2-selection--single {
	min-height: 48px;
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
}

.job-manager-form .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 46px;
	padding-left: 14px;
	font-size: var(--jm-field-fs);
	color: var(--jm-text);
}

.job-manager-form .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 46px;
	right: 8px;
}

.job-manager-form .select2-container--default .select2-selection--multiple {
	min-height: 48px;
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
	padding: 4px 8px;
	font-size: var(--jm-field-fs);
}

.job-manager-form .select2-container--default.select2-container--focus .select2-selection--multiple,
.job-manager-form .select2-container--default.select2-container--open .select2-selection--single,
.job-manager-form .select2-container--default.select2-container--open .select2-selection--multiple {
	border-color: var(--jm-primary);
	box-shadow: var(--jm-focus-ring);
}

/* ЕИК lookup бутонът („Извлечи данни") — като .jm-lang-add на 398. */
.job-manager-form button.jm-eik-lookup {
	height: auto;
	min-height: var(--jm-field-minh);
	background: #fff;
	border: 1px solid var(--jm-primary);
	border-radius: var(--jm-field-radius);
	color: var(--jm-primary);
	padding: 10px 18px;
	font-family: var(--jm-font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.job-manager-form button.jm-eik-lookup:hover,
.job-manager-form button.jm-eik-lookup:focus-visible {
	background: rgba(46, 117, 182, 0.08);
}

/* ==========================================================================
   WPJM [jobs] search форма (стр. 518) — същата система: --jm-field-* токените.
   Бутонът = 1:1 homepage .jm-search__submit (същото действие, същият вид).
   Селекторите са .job_listings .job_filters … за да бият WPJM frontend.css
   (.job_filters …) по специфичност независимо от enqueue реда — без !important.
   Layout-ът (floats 50/50, clear) е на WPJM и НЕ се пипа. 2026-08-31.
   ========================================================================== */

.job_listings .job_filters {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--jm-field-radius);
	/* Клипва сивите ленти (job_types/showing_jobs) в заоблените ъгли. */
	overflow: hidden;
	margin-bottom: 24px;
}

.job_listings .job_filters .search_jobs {
	padding: 20px;
}

.job_listings .job_filters .search_jobs input[type="text"] {
	min-height: var(--jm-field-minh);
	padding: var(--jm-field-pad);
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
	background: #fff;
	color: var(--jm-text);
	font-family: var(--jm-font);
	font-size: var(--jm-field-fs);
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job_listings .job_filters .search_jobs input[type="text"]:focus {
	outline: none;
	border-color: var(--jm-primary);
	box-shadow: var(--jm-focus-ring);
}

/* WPJM крие labels с display:none — връщаме ги за screen readers (sr-only),
   видимата „етикетка" остава placeholder-ът, както на homepage търсачката.
   Видимият remote label е изключен през :not(). */
.job_listings .job_filters .search_jobs div label:not(#remote_position_label) {
	display: block;
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* „Само дистанционни позиции" — 20px accent чекбокс, подравнен с текста. */
.job_listings .job_filters .search_jobs .search_remote_position {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 12px;
}

.job_listings .job_filters .search_jobs .search_remote_position label#remote_position_label {
	font-size: 15px;
	color: var(--jm-text);
	cursor: pointer;
	margin: 0;
}

.job_listings .job_filters .search_jobs .search_remote_position input[type="checkbox"],
.job_listings .job_filters .job_types input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--jm-primary);
	margin: 0;
	flex: 0 0 auto;
	cursor: pointer;
}

/* Бутонът — копие на homepage .jm-search__submit (същото действие на 2 места). */
.job_listings .job_filters .search_jobs .search_submit {
	padding-top: 16px;
}

.job_listings .job_filters .search_jobs .search_submit input[type="submit"] {
	width: auto;
	min-height: 46px;
	padding: 10px 26px;
	font-family: var(--jm-font);
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--jm-primary);
	border: none;
	border-radius: var(--jm-radius);
	cursor: pointer;
	transition: background 0.15s ease;
}

.job_listings .job_filters .search_jobs .search_submit input[type="submit"]:hover,
.job_listings .job_filters .search_jobs .search_submit input[type="submit"]:focus-visible {
	background: #245e94;
}

/* Tag филтърът (WPJM Tags) — тих ред, ако/когато има облак с етикети. */
.job_listings .job_filters .search_jobs .filter_by_tag {
	padding-top: 12px;
	font-size: 14px;
	color: var(--jm-muted);
}

/* Типове заетост — чист ред чекбокси вместо клетките с borders. */
.job_listings .job_filters .job_types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
	font-size: 14px;
	padding: 12px 20px;
	margin: 0;
	list-style: none;
}

.job_listings .job_filters .job_types li {
	float: none;
	border: 0;
	margin: 0;
	padding: 0;
}

.job_listings .job_filters .job_types li label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--jm-text);
	cursor: pointer;
	margin: 0;
}

/* „Показване на X обяви" лентата (появява се при активен филтър). */
.job_listings .job_filters .showing_jobs {
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
	font-size: 13px;
	color: var(--jm-muted);
	padding: 10px 20px;
}

@media (max-width: 480px) {
	.job_listings .job_filters .search_jobs {
		padding: 16px;
	}

	.job_listings .job_filters .search_jobs .search_submit input[type="submit"] {
		width: 100%;
	}
}

/* WPJM clearfix-ът (:before/:after content:'' display:table) на job_types
   става празен flex item и gap-ът го отмества — във flex не е нужен. */
.job_listings .job_filters .job_types::before,
.job_listings .job_filters .job_types::after {
	display: none;
}

/* ==========================================================================
   Промотирани (featured) обяви — бадж + отличаване на реда.
   Класът job_position_featured идва от WPJM (is_position_featured →
   job_listing_class); баджът — от jm_forms_featured_badge_html().
   ========================================================================== */

/* Баджът „⭐ Промотирана" (518 + homepage). */
.jm-featured-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--jm-accent);
	border-radius: 999px;
	padding: 1px 10px;
	white-space: nowrap;
}

/* [jobs] резултатен ред (стр. 518): топъл фон + акцентен кант.
   Селекторът повтаря WPJM frontend.css (#fefee5), зареждаме след него →
   нашият печели; border-inline-start е RTL-safe (ar/fa/ps). */
ul.job_listings li.job_listing.job_position_featured a {
	background: #fdf5f0;
	border-inline-start: 3px solid var(--jm-accent);
}

ul.job_listings li.job_listing.job_position_featured a:hover,
ul.job_listings li.job_listing.job_position_featured a:focus-visible {
	background: #fbeee6;
}

/* Баджът е <li> в ul.meta на WPJM реда — без наследените meta стилове. */
ul.job_listings li.job_listing ul.meta li.jm-featured-badge-wrap {
	background: none;
	padding: 0;
}

/* Homepage „Последни обяви" ред. */
.jm-rows__item--featured .jm-row {
	background: #fdf5f0;
	border-inline-start: 3px solid var(--jm-accent);
}

.jm-rows__item--featured .jm-row:hover,
.jm-rows__item--featured .jm-row:focus-visible {
	background: #fbeee6;
}

/* ==========================================================================
   Търсене на кандидати (стр. 546) — филтри Ниво 2.
   Основен ред + <details> „Разширени филтри"; --jm-field-* токени; RTL-safe
   (логически свойства, без ляво/дясно).
   ========================================================================== */

.jm-candidate-search__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	padding: 16px;
	margin-bottom: 24px;
	background: var(--jm-bg-section);
	border: 1px solid #e6e9ef;
	border-radius: var(--jm-radius);
}

.jm-candidate-search__filter {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	min-width: 150px;
	flex: 1 1 150px;
}

.jm-candidate-search__filter label {
	font-size: 13px;
	font-weight: 500;
	color: var(--jm-text);
}

.jm-candidate-search__filter select,
.jm-candidate-search__filter input[type="text"] {
	min-height: var(--jm-field-minh);
	padding: var(--jm-field-pad);
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
	font-size: var(--jm-field-fs);
	font-family: inherit;
	background: var(--jm-bg);
	color: var(--jm-text);
	width: 100%;
}

/* Разширените филтри заемат цял ред под основните. */
.jm-candidate-search__advanced {
	flex: 1 1 100%;
	border-top: 1px solid #e6e9ef;
	padding-top: 10px;
}

.jm-candidate-search__advanced summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	color: var(--jm-primary);
	user-select: none;
	min-height: 32px;
	display: flex;
	align-items: center;
}

.jm-candidate-search__advanced-fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	padding-top: 10px;
}

.jm-candidate-search__filter--checkbox {
	flex-direction: row;
	align-items: center;
	min-height: var(--jm-field-minh);
}

.jm-candidate-search__filter--checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}

.jm-candidate-search__filter--checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--jm-primary);
	margin: 0;
}

.jm-candidate-search__submit {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	flex: 0 0 auto;
}

.jm-candidate-search__button {
	min-height: var(--jm-field-minh);
	padding: 10px 24px;
	background: var(--jm-primary);
	color: #fff;
	border: none;
	border-radius: var(--jm-field-radius);
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease;
}

.jm-candidate-search__button:hover,
.jm-candidate-search__button:focus-visible {
	background: #245e94;
}

.jm-candidate-search__reset {
	font-size: 13px;
	color: var(--jm-muted);
}

/* Ред „Шофьорска книжка" в резултата. */
.jm-candidate-search__driving {
	font-size: 13px;
	color: var(--jm-text);
	white-space: nowrap;
}

@media (max-width: 560px) {
	.jm-candidate-search__filter {
		flex-basis: 100%;
	}

	.jm-candidate-search__submit {
		flex: 1 1 100%;
	}

	.jm-candidate-search__button {
		width: 100%;
	}
}

/* ==========================================================================
   FAQ (стр. 617) — диалогов ритъм. Scoped през body.page-id-617, за да НЕ
   пипа другите .jm-post__content страници (569 Privacy, 404 Правни).
   Логически свойства → RTL (ar/fa/ps) се обръща само.
   ========================================================================== */

/* Въпросът: italic, "реплика" маркер (ляв кант в бранд синьо), близо до
   отговора си, с повече въздух от предишната двойка. */
body.page-id-617 .jm-post__content > h3 {
	font-style: italic;
	font-weight: 500;
	border-inline-start: 3px solid var(--jm-primary);
	padding-inline-start: 14px;
	margin: 44px 0 8px;
}

/* Отговорът: подравнен с текста на въпроса (3px кант + 14px = 17px) —
   личи, че е отговор на конкретния въпрос. */
body.page-id-617 .jm-post__content > p {
	padding-inline-start: 17px;
}

/* Секциите (H2) дишат повече от двойките и имат дискретен разделител. */
body.page-id-617 .jm-post__content > h2 {
	margin-top: 64px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e6e9ef;
}

body.page-id-617 .jm-post__content > h2:first-child {
	margin-top: 24px;
}


/* ==========================================================================
   Home — Section 3 (09.2026): 3 колони  Категории | Партньори/Работодатели | Новини
   Mobile-first: 1 колона → ≥900px 2/3 колони (по реално наличните данни).
   Логата: винаги цветни (без grayscale/opacity), лек scale при hover/focus.
   Логически свойства → работи и в RTL.
   ========================================================================== */
.jm-cols {
	padding-block: 32px 40px;
	border-bottom: 1px solid #e6e9ef;
}

.jm-cols__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
}

.jm-col {
	min-width: 0;
}

.jm-col__title {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: var(--jm-eyebrow-weight);
	letter-spacing: var(--jm-eyebrow-ls);
	text-transform: uppercase;
	color: var(--jm-muted);
	text-align: start;
}

.jm-col__title a,
.jm-col__title a:visited {
	color: inherit;
	text-decoration: none;
}

.jm-col__title a:hover,
.jm-col__title a:focus-visible {
	color: var(--jm-primary);
}

/* Категориите в колона: винаги 2 чипа на ред (надписва 4-колонното правило ≥1024px). */
.jm-chips--col,
.jm-cols .jm-chips--col {
	grid-template-columns: repeat(2, 1fr);
}

/* ---- Лога (партньори / работодатели) ---- */
.jm-logos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.jm-logo,
.jm-logo:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	padding: 10px 14px;
	background: var(--jm-bg);
	border: 1px solid #e6e9ef;
	border-radius: var(--jm-radius);
	color: var(--jm-heading-color);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jm-logo:hover,
.jm-logo:focus-visible {
	border-color: var(--jm-primary);
	box-shadow: var(--jm-shadow);
}

.jm-logo__img {
	display: block;
	max-width: 100%;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.jm-logo:hover .jm-logo__img,
.jm-logo:focus-visible .jm-logo__img {
	transform: scale(1.03);
}

.jm-logo__text {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: var(--jm-heading-color);
}

/* ---- Новини ---- */
.jm-newslist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jm-newslist__item + .jm-newslist__item {
	border-top: 1px solid #e6e9ef;
}

.jm-newsitem,
.jm-newsitem:visited {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 12px 0;
	color: inherit;
	text-decoration: none;
}

.jm-newslist__item:first-child .jm-newsitem {
	padding-top: 0;
}

.jm-newsitem--nothumb {
	grid-template-columns: minmax(0, 1fr);
}

.jm-newsitem__thumb {
	display: block;
	width: 96px;
	height: 54px;
	object-fit: cover;
	border-radius: 4px;
	background: #f2f4f8;
}

.jm-newsitem__body {
	display: block;
	min-width: 0;
}

.jm-newsitem__date {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--jm-accent);
}

.jm-newsitem__title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--jm-heading-color);
}

.jm-newsitem:hover .jm-newsitem__title,
.jm-newsitem:focus-visible .jm-newsitem__title {
	color: var(--jm-primary);
}

.jm-newsitem__excerpt {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--jm-body-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jm-col__more,
.jm-col__more:visited {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--jm-primary);
	text-decoration: none;
}

.jm-col__more:hover,
.jm-col__more:focus-visible {
	text-decoration: underline;
}

@media (min-width: 600px) {
	.jm-logos {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.jm-cols__grid--2 {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	.jm-cols__grid--3 {
		grid-template-columns: 1.2fr 1fr 1.1fr;
		gap: 40px;
	}

	.jm-cols__grid--2 .jm-col + .jm-col,
	.jm-cols__grid--3 .jm-col + .jm-col {
		border-inline-start: 1px solid #e6e9ef;
		padding-inline-start: 40px;
	}
}


/* ---- Trust row: два от badge-овете са линкове (09.2026). Линкът наследява
   flex/gap на елемента, за да няма промяна в размера/подредбата. ---- */
.jm-trust__link,
.jm-trust__link:visited {
	display: flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.jm-trust__link:hover,
.jm-trust__link:focus-visible {
	color: var(--jm-primary);
}

.jm-trust__link:hover .jm-trust__text,
.jm-trust__link:focus-visible .jm-trust__text {
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* ==========================================================================
   Линкове под бутона „Кандидатствай" (single job listing) — jm-forms/includes/
   listing-declarations.php, job_application_end. Уведомлението към търсещите
   работа е в Политиката за поверителност (раздел 9) от 25.09.2026; старият
   .jm-listing-notice блок е махнат. 13px, muted, без letter-spacing (RTL ok).
   ========================================================================== */
.jm-listing-links {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--jm-muted);
	text-align: start;
}

.jm-listing-links a {
	color: var(--jm-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jm-listing-links a:hover,
.jm-listing-links a:focus-visible {
	color: var(--jm-primary);
}

.jm-listing-links__sep {
	margin: 0 4px;
}

/* ==========================================================================
   Декларация за истинност — WPJM поле jm_employer_declaration (516 / edit)
   ========================================================================== */
.fieldset-jm_employer_declaration .jm-declaration-text {
	display: block;
	margin: 0 0 12px;
	padding: 14px 16px;
	background: #f9fafb;
	border: 1px solid #e6e9ef;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--jm-body-color);
}

.fieldset-jm_employer_declaration .jm-declaration-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.5;
	color: var(--jm-text);
	cursor: pointer;
}

.fieldset-jm_employer_declaration .jm-declaration-label input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: var(--jm-primary);
}

/* ==========================================================================
   Форма „Сигнал за несъответствие" — [jm_listing_report] (наследява
   .jm-candidate-form контролите; тук само специфичното)
   ========================================================================== */
.jm-report-intro {
	max-width: var(--jm-text-measure);
	margin: 0 auto 24px;
	font-size: var(--jm-body-size);
	line-height: var(--jm-body-lh);
	color: var(--jm-body-color);
}

.jm-report-form .jm-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.jm-report-form .jm-report-listing {
	display: block;
	padding: var(--jm-field-pad);
	background: #f9fafb;
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
	font-size: 15px;
	line-height: 1.5;
	color: var(--jm-text);
}

.jm-report-form .jm-report-listing a {
	margin-inline-start: 8px;
	color: var(--jm-primary);
	white-space: nowrap;
}

.jm-report-form textarea.jm-input {
	min-height: 170px;
	resize: vertical;
	line-height: 1.55;
}

.jm-report-form .jm-consent {
	background: #f9fafb;
	border: 1px solid #e6e9ef;
	border-radius: 8px;
	padding: 16px;
	margin: 0 0 20px;
}

.jm-report-form .jm-field--submit {
	margin: 0;
}


/* ---- Trust row: inline SVG икона (item 2 „За работодатели", 14.09.2026) ---- */
.jm-trust__icon--svg {
	display: inline-block;
	width: 16px;
	height: 16px;
	color: var(--jm-primary);
}

/* ==========================================================================
   RTL (ar / fa / ps) - 2026-09-14. Arabic-script text is cursive: ANY
   letter-spacing (the negative heading tracking, the uppercase eyebrows,
   badges) breaks the letter joins. TranslatePress sets dir="rtl" on <html>
   for these languages, so the tokens are zeroed and every hard-coded value
   is neutralised. Latin/Cyrillic languages are untouched.
   ========================================================================== */
[dir="rtl"] {
	--jm-h1-ls: 0;
	--jm-eyebrow-ls: 0;
}

[dir="rtl"] * {
	letter-spacing: 0;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .jm-post__title,
[dir="rtl"] .jm-legal__title,
[dir="rtl"] .jm-legal__tag,
[dir="rtl"] .jm-news__heading,
[dir="rtl"] .jm-nav__title,
[dir="rtl"] .jm-footer__heading,
[dir="rtl"] .jm-col__title,
[dir="rtl"] .jm-card__title,
[dir="rtl"] .jm-card__date,
[dir="rtl"] .jm-newsitem__date,
[dir="rtl"] .jm-featured-badge,
[dir="rtl"] .jm-trust__link,
[dir="rtl"] .jm-trust__label {
	letter-spacing: 0 !important;
}


/* ==========================================================================
   RTL (ar / fa / ps) — без letter-spacing (14.09.2026). Арабската и персийската
   писменост са свързани (cursive) — tracking разкъсва лигатурите. TP слага
   dir="rtl" на <html> за RTL езиците. Нулираме токените + твърдите стойности.
   ========================================================================== */
[dir="rtl"] {
	--jm-h1-ls: 0;
	--jm-eyebrow-ls: 0;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .jm-nav__title,
[dir="rtl"] .jm-footer__heading,
[dir="rtl"] .jm-card__date,
[dir="rtl"] .jm-card__title,
[dir="rtl"] .jm-featured-badge,
[dir="rtl"] .jm-newsitem__date,
[dir="rtl"] .jm-legal__tag,
[dir="rtl"] .jm-col__title,
[dir="rtl"] .jm-trust__item,
[dir="rtl"] .jm-news__heading,
[dir="rtl"] .jm-post__title,
[dir="rtl"] .jm-legal__title {
	letter-spacing: 0;
}

/* WPJM Bookmarks (25.09.2026): за нелогнати формата е скрита (wpjm-strings.php); за логнати е В meta реда като
   li.jm-bookmark — малък inline линк с иконата на add-on-а (job-manager icon font), бележката е popover. */
.single_job_listing .meta li.jm-bookmark {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	overflow: visible;
	font-size: 14px;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form a.bookmark-notice {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	margin: 0;
	color: var(--jm-muted);
	text-decoration: none;
	font-weight: 500;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form a.bookmark-notice:hover,
.single_job_listing .meta .wp-job-manager-bookmarks-form a.bookmark-notice:focus-visible {
	color: var(--jm-primary);
	text-decoration: underline;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form a.bookmark-notice::before {
	font-size: 15px;
	height: auto;
	vertical-align: middle;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form .remove-bookmark-wrapper,
.single_job_listing .meta .wp-job-manager-bookmarks-form .add-bookmark-wrapper {
	display: inline;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form .remove-bookmark-wrapper {
	display: none;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form.has-bookmark .remove-bookmark-wrapper {
	display: inline;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form.has-bookmark .add-bookmark-wrapper {
	display: none;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form a.remove-bookmark {
	float: none;
	visibility: visible;
	padding: 0;
	margin-inline-start: 8px;
	font-size: 13px;
	color: var(--jm-accent);
}

.single_job_listing .meta .wp-job-manager-bookmarks-form .bookmark-details {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 8px);
	z-index: 20;
	min-width: 280px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-radius);
	box-shadow: var(--jm-shadow-lift);
	font-size: 14px;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form .bookmark-details p {
	margin: 0 0 10px;
}

.single_job_listing .meta .wp-job-manager-bookmarks-form .bookmark-details textarea {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--jm-field-border);
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
}

/* Company video: под описанието, макс. 560px (jm-forms/includes/single-listing-tweaks.php). */
.jm-company-video {
	max-width: 560px;
	margin: 28px 0 0;
}

.jm-company-video__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--jm-heading-color);
}

.jm-company-video iframe,
.jm-company-video video {
	display: block;
	width: 100%;
	max-width: 560px;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: var(--jm-radius);
}

.single_job_listing .company .company_video {
	display: none;
}


/* ==========================================================================
   WPJM 2.4 UI (табло 517, overlay/диалог „статистики", notice-и, форми 516/517)
   → Inter + мерки на темата (25.09.2026, Zahid). ui.css/job-dashboard.css се
   зареждат СЛЕД main.css → `body` префикс за specificity. WPJM дефинира
   --jm-ui-font-family: inherit (guaranteed-invalid при var()) и weight 200
   (Inter е зареден 300–700) → изрично var(--jm-font), 500 за етикетите,
   16px за overlay тялото (беше 14px). Само стил, без функционални промени.
   ========================================================================== */
:root {
	--jm-ui-font-family: var(--jm-font);
	--jm-ui-font-size: var(--jm-body-size);
}

body .jm-ui,
body .jm-dialog,
body .jm-dashboard,
body .jm-job-overlay,
body .jm-notice,
body .jm-form,
body .job-manager-form,
body .job-manager-jobs,
body #job-manager-job-dashboard,
body .job-manager-message,
body .job-manager-error,
body .job-manager-info {
	font-family: var(--jm-font);
}

body .jm-ui :is(input, select, textarea, button, summary),
body .jm-dialog :is(input, select, textarea, button, summary),
body .job-manager-form :is(input, select, textarea, button) {
	font-family: inherit;
}

body .jm-dashboard,
body .jm-dialog,
body .jm-job-overlay {
	font-size: var(--jm-body-size);
	line-height: var(--jm-body-lh);
	color: var(--jm-text);
}

/* Заглавие на overlay-а = H2 на темата; секционни етикети (DAILY VIEWS, TOTAL VIEWS…) и колонни
   етикети — 500 вместо 200; статусите (PENDING PAYMENT) — 500. */
body .jm-job-overlay-header .job_title {
	font-size: var(--jm-h2-size);
	font-weight: 600;
	line-height: var(--jm-h2-lh);
	color: var(--jm-heading-color);
}

body .jm-section-header,
body .jm-dashboard-job-column-label {
	font-weight: 500;
	letter-spacing: 0.4px;
}

body .jm-dashboard .job-status {
	font-weight: 500;
}

body .jm-notice__title {
	font-weight: 500;
	letter-spacing: 0;
}

body .jm-notice__message {
	font-weight: 500;
}

body .jm-job-stats__footnote small {
	font-size: 13px;
	color: var(--jm-muted);
}

/* RTL: без tracking (виж RTL блока по-горе). */
[dir="rtl"] .jm-section-header,
[dir="rtl"] .jm-dashboard-job-column-label,
[dir="rtl"] .jm-notice__title {
	letter-spacing: 0 !important;
}

/* ==========================================================================
   Категории: Lucide inline SVG икони (jm-forms/includes/category-icons.php,
   term meta jm_icon; theme assets/icons/lucide/) + брой (само при N ≥ 1,
   синьо число — .jm-chip__count по-горе). 28.09.2026 (Zahid), одобрен layout
   categories-icons-preview.html: чип 20px икона #2E75B6 пред името, gap 10px;
   badge на картите в [jobs] и single — pill, 16px икона. RTL: иконата остава
   преди текста в DOM (flex + логически свойства). Емоджитата от 25.09 са махнати.
   ========================================================================== */
.jm-chip__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	color: var(--jm-primary);
	line-height: 0;
}

.jm-chip__icon .jm-icon {
	width: 20px;
	height: 20px;
	display: block;
}

/* Името заема остатъка → стои вляво и при чип без брояч (иначе space-between го бута вдясно). */
.jm-chip .jm-chip__name {
	flex: 1 1 auto;
	text-align: start;
}

.job_listings .jm-cat-badge,
.single_job_listing .meta .jm-cat-badge {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

/* WPJM ul.meta li има фон/padding — баджът е чист контейнер, pill-ът е на линка. */
ul.job_listings li.job_listing ul.meta li.jm-cat-badge,
.single_job_listing ul.meta li.jm-cat-badge {
	background: none;
	padding: 0;
}

/* Специфичност над WPJM `ul.job_listings li.job_listing a { display:block; padding… }` (картата е един <a>). */
ul.job_listings li.job_listing ul.meta li.jm-cat-badge a.jm-cat-badge__link,
.single_job_listing ul.meta li.jm-cat-badge a.jm-cat-badge__link,
.jm-cat-badge__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #EEF4FA;
	color: var(--jm-primary);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
}

.jm-cat-badge__link:hover .jm-cat-badge__name,
.jm-cat-badge__link:focus-visible .jm-cat-badge__name {
	text-decoration: underline;
}

ul.job_listings li.job_listing ul.meta li.jm-cat-badge a.jm-cat-badge__link:hover,
ul.job_listings li.job_listing ul.meta li.jm-cat-badge a.jm-cat-badge__link:focus-visible {
	background: #dfeaf6;
	box-shadow: none;
}

.jm-cat-badge__icon {
	display: flex;
	align-items: center;
	line-height: 0;
}

.jm-cat-badge__icon .jm-icon {
	width: 16px;
	height: 16px;
	display: block;
}


/* ==========================================================================
   Табло 517 — „Данни за фактура" (jm-forms/includes/invoicing/billing-fields.php,
   .jm-billing__form) в системата --jm-field-* като останалите форми. 25.09.2026.
   ========================================================================== */
.jm-billing__form p {
	margin: 0 0 16px;
}

.jm-billing__form label {
	display: inline-block;
	margin-bottom: 6px;
	font-weight: 500;
	color: var(--jm-text);
}

.jm-billing__form input.input-text,
.jm-billing__form input[type="text"],
.jm-billing__form input[type="email"] {
	display: block;
	width: 100%;
	max-width: 480px;
	min-height: var(--jm-field-minh);
	padding: var(--jm-field-pad);
	border: 1px solid var(--jm-field-border);
	border-radius: var(--jm-field-radius);
	background: #fff;
	color: var(--jm-text);
	font-family: var(--jm-font);
	font-size: var(--jm-field-fs);
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jm-billing__form input.input-text:focus,
.jm-billing__form input[type="text"]:focus,
.jm-billing__form input[type="email"]:focus {
	outline: none;
	border-color: var(--jm-primary);
	box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.15);
}

.jm-billing__form small {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--jm-muted);
}

/* TP езиковият превключвател е shortcode switcher (.trp-shortcode-switcher__wrapper > .trp-language-switcher
   .trp-shortcode-switcher), НЕ #trp-floater-ls (проверено в DOM 25.09.2026). На таблото 517 се скрива (логнат
   работодател, езикът е избран; застъпваше бутоните на реда); на 516 (submit/checkout) се мести долу вляво. */
body.page-id-517 .trp-shortcode-switcher__wrapper,
body.page-id-517 .trp-language-switcher.trp-shortcode-switcher,
body.page-id-517 .trp-language-switcher.trp-floating-switcher,
body.page-id-517 #trp-floater-ls {
	display: none !important;
}

body.page-id-516 .trp-shortcode-switcher__wrapper,
body.page-id-516 .trp-language-switcher.trp-floating-switcher,
body.page-id-516 #trp-floater-ls {
	left: 20px !important;
	right: auto !important;
}

/* ==========================================================================
   Табло 517 — плащане с един клик (jm-forms/includes/dashboard-pay.php,
   28.09.2026, Zahid): оранжев бутон „Плати X €" в колоната „Действия" за
   pending_payment, оранжев бадж „Чакащо плащане", ред под заглавието, notice
   над таблото; preview submit на 516 в същия оранжев стил.
   ========================================================================== */
body .jm-dashboard .jm-btn--pay,
.jm-pay-notice .jm-btn--pay {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--jm-accent);
	color: #fff;
	font-family: var(--jm-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--jm-radius);
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body .jm-dashboard .jm-btn--pay:hover,
body .jm-dashboard .jm-btn--pay:focus-visible,
.jm-pay-notice .jm-btn--pay:hover,
.jm-pay-notice .jm-btn--pay:focus-visible {
	background: #c24d22;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--jm-shadow-lift);
}

body .jm-dashboard .jm-dashboard-job-title {
	font-weight: 600;
	color: var(--jm-heading-color);
	text-decoration: none;
}

body .jm-dashboard .jm-dashboard-job-title:hover,
body .jm-dashboard .jm-dashboard-job-title:focus-visible {
	text-decoration: underline;
}

body .jm-dashboard .job-status .jm-status-badge--pending {
	display: inline-flex;
	align-items: center;
	background: #fdede6;
	color: var(--jm-accent);
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

[dir="rtl"] .jm-dashboard .job-status .jm-status-badge--pending {
	letter-spacing: 0;
}

body .jm-dashboard .jm-dashboard-job-note {
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--jm-muted);
}

.jm-pay-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: #fdf5f0;
	border: 1px solid #f3c9b5;
	border-inline-start: 4px solid var(--jm-accent);
	border-radius: var(--jm-radius);
	padding: 14px 18px;
	margin: 0 0 16px;
}

.jm-pay-notice__text {
	margin: 0;
	font-size: var(--jm-body-size);
	font-weight: 500;
	color: var(--jm-text);
}

/* В реда на таблото бутонът е по-компактен (колоната „Действия" е тясна; RU етикетите са дълги). */
body .jm-dashboard .jm-dashboard-job-column.actions .jm-btn--pay {
	font-size: 14px;
	padding: 10px 16px;
}

/* Preview стъпка на 516 (form#job_preview, НЕ .job-manager-form): „Плати X €" оранжев като в таблото,
   „Редактирай обява" outline; заглавната лента е flex вместо WPJM float-овете. */
#job_preview .job_listing_preview_title {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}

#job_preview .job_listing_preview_title h2 {
	margin: 0 auto 0 0;
}

[dir="rtl"] #job_preview .job_listing_preview_title h2 {
	margin: 0 0 0 auto;
}

#job_preview .job_listing_preview_title .button {
	float: none;
	font-family: var(--jm-font);
	font-size: 15px;
	line-height: 1.2;
	border-radius: var(--jm-btn-radius);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

#job_preview .job_listing_preview_title .job-manager-button-edit-listing {
	order: 1;
	background: transparent;
	color: var(--jm-heading-color);
	border: 1px solid var(--jm-heading-color);
	font-weight: 500;
	padding: 11px 20px;
}

#job_preview .job_listing_preview_title .job-manager-button-edit-listing:hover,
#job_preview .job_listing_preview_title .job-manager-button-edit-listing:focus-visible {
	background: var(--jm-heading-color);
	color: #fff;
}

#job_preview #job_preview_submit_button {
	order: 2;
	background: var(--jm-accent);
	color: #fff;
	border: 0;
	font-weight: 600;
	padding: 12px 22px;
}

#job_preview #job_preview_submit_button:hover,
#job_preview #job_preview_submit_button:focus-visible {
	background: #c24d22;
	color: #fff;
}

/* ==========================================================================
   Табло 517 — колони date/stats/actions (30.09.2026, pre-launch одит, ru на 390/1440):
   WPJM job-dashboard.css слага white-space:nowrap на <small> в колоните (.job-expires,
   „Затваря след…") → 160–183px текст в 134–147px колона → влиза в „Прегледи"/„Действия".
   Тук: пренос разрешен, min-width 0, „Действия" не се свива под съдържанието си.
   ========================================================================== */
body .jm-dashboard .jm-dashboard-job-column small,
body .jm-dashboard .jm-dashboard-job-column .job-expires {
	white-space: normal;
	overflow-wrap: anywhere;
}

body .jm-dashboard .jm-dashboard-job-column.date,
body .jm-dashboard .jm-dashboard-job-column.stats {
	min-width: 0;
	overflow-wrap: anywhere;
}

body .jm-dashboard .jm-dashboard-job-column.actions {
	flex: 0 0 auto;
	max-width: 100%;
	flex-wrap: wrap;
}
