/**
 * עיצוב הצהרת הנגישות וטופס הפניות.
 * הצבעים נבחרו לעמידה ביחס ניגודיות 4.5:1 לפחות (WCAG 1.4.3).
 */

.il-a11y-statement {
	--il-a11y-text: #1a1a1a;
	--il-a11y-muted: #595959;
	--il-a11y-border: #c7c7c7;
	--il-a11y-accent: #0b5c8a;
	--il-a11y-ok-bg: #e6f4ea;
	--il-a11y-ok-text: #1b5e20;
	--il-a11y-warn-bg: #fdf0e3;
	--il-a11y-warn-text: #8a4b08;
	--il-a11y-no-bg: #fbe9e9;
	--il-a11y-no-text: #8a1c1c;

	color: var(--il-a11y-text);
	line-height: 1.7;
}

.il-a11y-statement h2 {
	margin: 2em 0 0.6em;
	font-size: 1.25em;
	line-height: 1.4;
}

.il-a11y-statement h2:first-child {
	margin-top: 0;
}

.il-a11y-statement ul {
	margin: 0 1.5em 1em 0;
	padding: 0;
}

.il-a11y-statement li {
	margin-bottom: 0.4em;
}

/* טקסט לקוראי מסך בלבד — לא display:none, שאחרת לא ייקרא */
.il-a11y-statement .screen-reader-text,
.il-a11y-form-wrap .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- טבלאות ---------- */

.il-a11y-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0 1.5em;
}

.il-a11y-table th,
.il-a11y-table td {
	border: 1px solid var(--il-a11y-border);
	padding: 0.6em 0.8em;
	text-align: right;
	vertical-align: top;
}

.il-a11y-table thead th {
	background: #f2f2f2;
	font-weight: 700;
}

.il-a11y-table tbody th[scope="row"] {
	font-weight: 600;
	background: #fafafa;
}

.il-a11y-state {
	display: inline-block;
	padding: 0.15em 0.6em;
	border-radius: 3px;
	font-size: 0.9em;
	font-weight: 600;
}

.il-a11y-state--yes {
	background: var(--il-a11y-ok-bg);
	color: var(--il-a11y-ok-text);
}

.il-a11y-state--partial {
	background: var(--il-a11y-warn-bg);
	color: var(--il-a11y-warn-text);
}

.il-a11y-state--no {
	background: var(--il-a11y-no-bg);
	color: var(--il-a11y-no-text);
}

.il-a11y-updated {
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid var(--il-a11y-border);
	color: var(--il-a11y-muted);
}

.il-a11y-contact {
	list-style: none;
	margin-right: 0;
}

/* ---------- טופס פניות ---------- */

.il-a11y-form-wrap {
	margin: 1.5em 0;
	max-width: 40em;
}

.il-a11y-field {
	margin-bottom: 1.1em;
}

.il-a11y-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
}

.il-a11y-field input,
.il-a11y-field textarea {
	width: 100%;
	padding: 0.55em 0.7em;
	border: 1px solid #767676;
	border-radius: 3px;
	font: inherit;
	color: #1a1a1a;
	background: #fff;
}

.il-a11y-hint {
	display: block;
	font-size: 0.9em;
	color: #595959;
	font-weight: 400;
	margin-bottom: 0.3em;
}

.il-a11y-req {
	color: #8a1c1c;
}

.il-a11y-submit {
	padding: 0.6em 1.6em;
	background: #0b5c8a;
	color: #fff;
	border: 1px solid #0b5c8a;
	border-radius: 3px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.il-a11y-submit:hover {
	background: #08466a;
}

/* מלכודת ספאם — מוסתרת מהעין ומהמקלדת, ללא display:none */
.il-a11y-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.il-a11y-notice {
	padding: 0.9em 1.1em;
	border-radius: 3px;
	margin-bottom: 1.2em;
	border-right: 4px solid;
}

.il-a11y-notice--ok {
	background: #e6f4ea;
	color: #1b5e20;
	border-right-color: #1b5e20;
}

.il-a11y-notice--error {
	background: #fbe9e9;
	color: #8a1c1c;
	border-right-color: #8a1c1c;
}

/* ---------- מיקוד נראה — WCAG 2.4.7 ---------- */

.il-a11y-statement a:focus-visible,
.il-a11y-form-wrap a:focus-visible,
.il-a11y-form-wrap input:focus-visible,
.il-a11y-form-wrap textarea:focus-visible,
.il-a11y-form-wrap button:focus-visible,
.il-a11y-footer-link a:focus-visible {
	outline: 3px solid #0b5c8a;
	outline-offset: 2px;
}

.il-a11y-footer-link {
	text-align: center;
	padding: 0.8em 1em;
}

/* ---------- מובייל: טבלאות הופכות לכרטיסים ---------- */

@media (max-width: 600px) {

	.il-a11y-table,
	.il-a11y-table tbody,
	.il-a11y-table tr,
	.il-a11y-table td,
	.il-a11y-table th {
		display: block;
		width: auto;
	}

	.il-a11y-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.il-a11y-table tr {
		margin-bottom: 1em;
		border: 1px solid var(--il-a11y-border);
	}

	.il-a11y-table td,
	.il-a11y-table th {
		border: 0;
		border-bottom: 1px solid #e5e5e5;
	}

	.il-a11y-table td[data-label]::before {
		content: attr(data-label) ": ";
		font-weight: 600;
	}
}

/* ---------- העדפת תנועה מופחתת ---------- */

@media (prefers-reduced-motion: reduce) {

	.il-a11y-statement *,
	.il-a11y-form-wrap * {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
