/*
 * The Joint – תיקוני נגישות (דוח דובל, 23/9/2026)
 * נטען אחרון (functions/a11y.php) כדי לגבור על build/css/*.css בלי לשנות את קובצי ה-build.
 * כל בלוק מסומן במספר הממצא בדוח ובטבלת המעקב.
 */

:root {
	/* ממצא 3 – טוקנים לניגודיות */
	--tj-cyan: #00C1DE;          /* צבע המותג: מותר כטקסט על רקע כהה בלבד (7.6:1 על #1F1F1F) */
	--tj-cyan-text: #006B7A;     /* טורקיז כהה לטקסט על רקע בהיר: 6.4:1 על לבן, 5.9:1 על #F8F9FA */
	--tj-on-cyan: #1F1F1F;       /* טקסט על רקע טורקיז: 7.6:1 */
	--tj-muted-on-dark: #A6A6A6; /* טקסט משני על #1F1F1F: 6.8:1 */
}

/* ------------------------------------------------------------------
 * ממצא 2 – זרימה מחדש: כותרת במובייל (320–390px) בלי רכיבים חתוכים
 * כפתור EN הועבר לתפריט ההמבורגר (header.php / menu-mobile.php).
 * ------------------------------------------------------------------ */
@media (max-width: 767.98px) {
	.sticky-menu .header-inner {
		gap: 8px;
		flex-wrap: nowrap;
	}
	.sticky-menu .header-inner > .right-side-menu {
		flex: 0 1 auto;
		width: auto;
		min-width: 0;
		max-width: 45%;
	}
	.sticky-menu .header-inner > .left-side-menu {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		gap: 10px !important;
		justify-content: flex-end;
	}
	.sticky-menu .logo {
		min-width: 0;
		max-width: 110px;
	}
	.sticky-menu .logo .custom-logo {
		min-width: 0;
		width: 100%;
		max-width: 110px;
		height: auto;
		max-height: 36px;
	}
	.sticky-menu .left-side-menu .button {
		display: flex;
		gap: 6px;
		min-width: 0;
	}
	.sticky-menu .left-side-menu .button .btn {
		padding-inline: 10px;
		font-size: 15px;
		white-space: nowrap;
	}
	.sticky-menu .mobile-btn {
		flex: 0 0 24px;
	}
}
@media (max-width: 360px) {
	.sticky-menu .logo,
	.sticky-menu .logo .custom-logo {
		max-width: 84px;
	}
	.sticky-menu .left-side-menu .button .btn {
		padding-inline: 8px;
		font-size: 14px;
	}
}

/* ------------------------------------------------------------------
 * ממצא 3 – ניגודיות צבע
 * ------------------------------------------------------------------ */

/* טורקיז כטקסט על רקע בהיר (כותרות כרטיסים בדפי תוכניות – "רקע" וכו') */
.bg-light .text-primary,
.bg-white .text-primary,
.card-single-program .card-title.text-primary {
	color: var(--tj-cyan-text) !important;
}

/* קישורים בתוך תוכן על רקע בהיר (למשל "מדיניות פרטיות") */
.bg-light a:not(.btn),
.bg-white a:not(.btn),
.digital-library-summary-card a:not(.btn),
.hs-form .legal-consent-container a,
.hs-richtext a {
	color: var(--tj-cyan-text);
}

/* תווית "תקציר" בספרייה הדיגיטלית – #29C7D3 על לבן (2.05:1) */
.digital-library-summary-label {
	color: var(--tj-cyan-text);
}

/* כפתורים טורקיז – טקסט כהה במקום לבן */
.btn-primary {
	--bs-btn-color: var(--tj-on-cyan);
	--bs-btn-active-color: var(--tj-on-cyan);
	--bs-btn-disabled-color: var(--tj-on-cyan);
}
.btn.btn-primary.text-white,
.btn.btn-primary.text-light,
.btn.btn-info.text-white,
.btn.btn-info.text-light {
	color: var(--tj-on-cyan) !important;
}
.btn.btn-primary.text-white:hover,
.btn.btn-primary.text-light:hover {
	color: var(--tj-cyan) !important; /* ריחוף: רקע #424242 + טורקיז = 4.6:1 */
}
.digital-library-button,
form[id^="hsForm_"] input.hs-button.primary,
.hs-button.primary {
	color: var(--tj-on-cyan) !important;
}

/* טקסט בכרטיסים טורקיז בדף הבית (#194C56 על #00C1DE – 4.38:1) */
.section-gallery .swiper-vertical-gallery .swiper-slide .card.card-light .card-inner .card-body .card-title,
.section-gallery .swiper-vertical-gallery .swiper-slide .card.card-light .card-inner .card-body .card-text,
.section-gallery .swiper-vertical-gallery .swiper-slide .card.card-light .card-inner .card-body .card-text * {
	color: var(--tj-on-cyan);
}

/* תאריכי פרסום בבלוג על רקע כהה (נמדד #535353 על #1F1F1F – 2.14:1) */
.blog-card-info .text,
.blog-card-info .text time,
.blog-card-info .text strong {
	color: #fff !important;
	opacity: 1 !important;
}
.text-muted-on-dark {
	color: var(--tj-muted-on-dark);
}

/* ------------------------------------------------------------------
 * ממצא 7 – כותרות שהומרו לרמה נכונה ושומרות על המראה הקודם
 * ------------------------------------------------------------------ */
.footer h2.accordion-header {
	font-size: 1.5rem;          /* המראה של H4 הקודם */
	line-height: 1.2;
	margin-bottom: .5rem;
}
.footer h2.top-footer-title {
	line-height: 1.2;
	margin-bottom: .5rem;
}
.section-hero h2.hero-title {
	font-size: inherit;
	line-height: inherit;
}
.section-hero .swiper .swiper-slide h2.hero-title {
	font-weight: 400;
	font-size: 130px;
	line-height: 100px;
}
@media (max-width: 1399px) {
	.section-hero .swiper .swiper-slide h2.hero-title {
		font-size: clamp(55px, 8vw, 100px);
		line-height: 0.85;
	}
}
@media (max-width: 768px) {
	.section-hero .swiper .swiper-slide h2.hero-title {
		font-size: 55px;
		line-height: 48px;
	}
}

/* ------------------------------------------------------------------
 * ממצא 8 – קישורים שאינם מובחנים בצבע בלבד
 * ------------------------------------------------------------------ */
.breadcrumbs #breadcrumbs a,
#breadcrumbs a {
	text-decoration: underline !important;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
main :is(p, li, td, dd, blockquote, figcaption) a:not([class]):not(.btn),
.blog-content-text a:not(.btn),
.blog-content-excerpt a:not(.btn),
.digital-library-content a:not(.btn),
.entry-content a:not(.btn),
.hs-form .legal-consent-container a,
.hs-richtext a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
main :is(p, li, td, dd) a:not([class]):is(:hover, :focus-visible) {
	text-decoration-thickness: 2px;
}
.offcanvas :is(p, li) a:not([class]) {
	text-decoration: none; /* תפריט המובייל – רשימת ניווט, לא קישור בתוך טקסט */
}

/* ------------------------------------------------------------------
 * ממצא 12 – רכיבים מוסתרים שמקבלים פוקוס
 * רכיב AOS שעדיין לא הופיע מוצג מיד כשהוא (או רכיב בתוכו) מקבל פוקוס.
 * ------------------------------------------------------------------ */
[data-aos]:focus,
[data-aos]:focus-within,
[data-aos].tj-aos-focus {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
}

/* ------------------------------------------------------------------
 * ממצא 5 + 15 – סליידר ה-Hero
 * ------------------------------------------------------------------ */
.section-hero .hero-swiper .hero-swiper-controls {
	z-index: 10; /* מעל swiper-wrapper (z-index:1) */
}
.section-hero #pause-play-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .85);
	background: rgba(0, 0, 0, .45);
	min-width: 44px;   /* יעד מגע (2.5.8) */
	min-height: 44px;
}
.section-hero #pause-play-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #1F1F1F;
}
.section-hero #pause-play-btn .icon-play { display: none; }
.section-hero #pause-play-btn.is-paused .icon-play { display: block; }
.section-hero #pause-play-btn.is-paused .icon-pause { display: none; }

/* ממצא 15 – שכבת הכהיה עקבית מתחת לטקסט ומשקל גופן מינימלי 300 */
.section-hero .swiper-slide .hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .55) 100%);
}
.section-hero .swiper-slide .hero-content {
	text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
.section-hero .swiper .swiper-slide .hero-text {
	font-weight: 300;
}
.section-hero .hero-title :is(.fw-light, .fw-lighter, .fw-100, .fw-200, [style*="font-weight: 100"], [style*="font-weight:100"], [style*="font-weight: 200"], [style*="font-weight:200"]),
.section-hero .hero-text :is(.fw-light, .fw-lighter, [style*="font-weight: 100"], [style*="font-weight:100"], [style*="font-weight: 200"], [style*="font-weight:200"]) {
	font-weight: 300 !important;
}

/* ------------------------------------------------------------------
 * ממצא 13 – כרטיס צוות: הטריגר הוא כפתור אמיתי
 * ------------------------------------------------------------------ */
.card-team .card-team-trigger {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	text-align: inherit;
	cursor: pointer;
}
.card-team .card-team-trigger:focus-visible {
	outline: none;
}
.card-team .card-team-trigger:focus-visible::after {
	outline: 3px solid var(--tj-cyan);
	outline-offset: 4px;
}
.card-team .card-footer {
	position: relative;
	z-index: 2; /* כפתור יצירת קשר מעל אזור ה-stretched-link */
}

/* ------------------------------------------------------------------
 * ממצא 9 – תמלול מתקפל
 * ------------------------------------------------------------------ */
.tj-transcript {
	border-top: 1px solid rgba(255, 255, 255, .3);
	padding-top: 1rem;
}
.tj-transcript__toggle {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--tj-cyan);
}
.tj-transcript__toggle:focus-visible {
	outline: 3px solid var(--tj-cyan);
	outline-offset: 3px;
}
.tj-transcript__content {
	margin-top: 1rem;
	max-height: 60vh;
	overflow-y: auto;
	line-height: 1.7;
}

/* ------------------------------------------------------------------
 * הגדרות כלליות
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	[data-aos] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
