/* ==========================================================================
   Accessibility fixes (תיקוני דוח נגישות)
   Loaded after style.css and responsive.css
   ========================================================================== */

/* --- Skip link ("דלג לתוכן המרכזי") - visible only on keyboard focus --- */
.skip-link {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 100000;
	background: #282830;
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	padding: 12px 20px;
	border-radius: 4px;
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
	transform: translateY(0);
}
#page-main:focus {
	outline: none;
}

/* --- Focus indicator for every interactive element (keyboard) ---
   Black ring with a thin white inner ring, visible on light and dark backgrounds. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
iframe:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
	outline: 3px solid #000 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #fff !important;
}
/* Mouse clicks keep the original look */
:focus:not(:focus-visible) {
	outline: none;
}
/* Elements inside containers with overflow:hidden - draw the ring inside */
.floating-share-main-btn:focus-visible,
.floating-share-btns:focus-visible,
.cwl-logo-wrap:focus-visible,
.jobs-item-a:focus-visible,
.inputs:focus-visible,
.inputs-submit:focus-visible,
.swiper-pagination-bullet:focus-visible {
	outline-offset: -4px !important;
	box-shadow: inset 0 0 0 6px #fff !important;
}
/* Hidden file input (opacity:0) - show the ring on its visible wrapper */
.upload-btn-wrap:focus-within {
	outline: 3px solid #000;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
}
.yBoxFrame:focus-visible,
.cfp-title:focus,
.single-job-title:focus,
.tnx-popup-title:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* --- Popups: headings that were div's --- */
h2.cfp-title {
	margin: 0;
}

/* --- Main banner: contrast of white text on changing images --- */
/* Uniform dark layer above the images (H1 >= 3:1 on any image) */
.hp-top-banner-section.a11y-light-text .hp-top-banner-figure::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: none;
}
/* Dark semi-transparent background behind the "all jobs" link (>= 4.5:1) */
.hp-top-banner-container > .hp-top-banner-link {
	background: rgba(0, 0, 0, 0.6);
	padding: 10px 20px 14px;
	border-radius: 4px;
}
.hp-top-banner-container > .hp-top-banner-link::before {
	right: 20px;
	left: 20px;
	width: auto;
	bottom: 8px;
}

/* --- Pause / play button for moving content (sliders, galleries, logos strip) --- */
.a11y-autoplay-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(40, 40, 48, 0.85);
	border: 2px solid #fff;
	color: #fff;
	cursor: pointer;
	position: relative;
}
.a11y-autoplay-toggle .a11y-autoplay-icon {
	display: block;
	position: relative;
	width: 12px;
	height: 14px;
}
/* Pause icon (two bars) */
.a11y-autoplay-toggle .a11y-autoplay-icon::before,
.a11y-autoplay-toggle .a11y-autoplay-icon::after {
	content: "";
	position: absolute;
	top: 0;
	width: 4px;
	height: 14px;
	background: #fff;
}
.a11y-autoplay-toggle .a11y-autoplay-icon::before {
	right: 0;
}
.a11y-autoplay-toggle .a11y-autoplay-icon::after {
	left: 0;
}
/* Play icon (triangle) */
.a11y-autoplay-toggle.is-paused .a11y-autoplay-icon::after {
	display: none;
}
.a11y-autoplay-toggle.is-paused .a11y-autoplay-icon::before {
	width: 0;
	height: 0;
	right: auto;
	left: 1px;
	background: none;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent #fff;
}
/* Positions */
.a11y-autoplay-toggle--banner {
	position: absolute;
	left: 24px;
	bottom: 24px;
	z-index: 7;
}
.a11y-autoplay-toggle--overlay {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 20;
}
.horizontal-smooth-scroll-wrap {
	position: relative;
}
.a11y-autoplay-toggle--marquee {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
}

/* --- Share buttons: closed menu - buttons are hidden and not focusable --- */
.floating-share:not(.active) > li:not(:first-child) {
	visibility: hidden;
	transition: height 0.5s ease, visibility 0s linear 0.5s;
}
.floating-share.active > li:not(:first-child) {
	visibility: visible;
	transition: height 0.5s ease, visibility 0s linear 0s;
}

/* --- Job page content: real headings instead of bold+underline text --- */
.single-job-content h2.single-job-content-title {
	font-size: 24px;
	font-weight: 500;
	line-height: 1.33;
	color: #494950;
	text-decoration: underline;
	margin: 24px 0 0 0;
}
.single-job-content h2.single-job-content-title:first-child {
	margin-top: 0;
}
.single-job-content h2.single-job-content-title + p {
	margin-top: 12px;
}

/* --- Forms: required fields --- */
.a11y-required-note {
	font-size: 15px;
	line-height: 1.4;
	color: #494950;
	margin: 0 0 16px 0 !important;
}
.a11y-required-mark {
	color: #c4001a;
}

/* --- Footer: accessibility statement link --- */
.footer-bottom-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}
.footer-bottom-links a.footer-a11y-statement-link::after {
	display: none;
}

/* --- Users who prefer reduced motion --- */
@media (prefers-reduced-motion: reduce) {
	.skip-link,
	.floating-share > li {
		transition: none !important;
	}
}

@media screen and (max-width: 767px) {
	.a11y-autoplay-toggle--banner {
		left: 16px;
		bottom: 16px;
	}
}

/* --- Accessibility statement page template --- */
.a11y-statement-page {
	padding: 64px 0 96px;
}
.a11y-statement-title {
	margin: 0 0 32px 0;
}
.a11y-statement-content {
	max-width: 860px;
	color: #494950;
	font-size: 20px;
	line-height: 1.6;
}
.a11y-statement-content h2 {
	color: #282830;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.33;
	margin: 40px 0 16px 0;
}
.a11y-statement-content ul {
	margin: 16px 0;
	padding: 0 24px 0 0;
}
.a11y-statement-content li {
	margin: 0 0 8px 0;
}
.a11y-statement-content a {
	color: #c4001a;
	text-decoration: underline;
}
.a11y-statement-dates {
	margin-top: 40px !important;
	font-size: 16px;
	color: #6A6B70;
}
.a11y-statement-admin-notice {
	border: 2px solid #c4001a;
	background: #fff4f5;
	color: #282830;
	padding: 16px 20px;
	margin: 0 0 32px 0;
	border-radius: 4px;
	font-size: 16px;
}
@media screen and (max-width: 767px) {
	.a11y-statement-page {
		padding: 40px 0 64px;
	}
	.a11y-statement-content {
		font-size: 18px;
	}
	.a11y-statement-content h2 {
		font-size: 24px;
	}
}
