/* בסיס: טיפוגרפיה, קישורים, פוקוס. נטען אחרי Astra ודורס רק את מה שצריך. */

/* Astra צובע את הרקע דרך מחלקות הפריסה על body, ולכן בורר עם מחלקה. */
body,
body:is(.ast-plain-container, .ast-page-builder-template, .ast-separate-container) {
	background: var(--sil-ivory);
	color: var(--sil-ink);
	font-family: var(--sil-font-body);
	font-size: var(--sil-text-base);
	line-height: var(--sil-leading);
	overflow-wrap: break-word;
}

h1, h2, h3, h4,
.entry-title {
	color: var(--sil-navy);
	font-family: var(--sil-font-display);
	line-height: var(--sil-leading-tight);
	text-wrap: balance;
}

h1, .entry-title { font-size: var(--sil-text-2xl); }
h2 { font-size: var(--sil-text-xl); margin-block-start: var(--sil-space-7); }
h3 { font-size: var(--sil-text-lg); margin-block-start: var(--sil-space-6); }

.entry-content > p,
.entry-content > ul,
.entry-content > ol {
	max-inline-size: var(--sil-measure);
}

/* קישורים בתוך תוכן: תמיד עם קו תחתון, כדי שלא יזוהו בצבע בלבד. */
.entry-content a:not(.wp-block-button__link):not(.sil-button) {
	color: var(--sil-navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.entry-content a:not(.wp-block-button__link):not(.sil-button):hover {
	color: var(--sil-gold-deep);
	text-decoration-thickness: 2px;
}

/* פוקוס נראה לכל רכיב אינטראקטיבי. */
/* !important: תוספים (באנר העוגיות, תפריט Astra) מבטלים outline, ופוקוס חייב להיראות תמיד. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--sil-focus) !important;
	outline-offset: 2px;
	border-radius: 2px;
}

/* תמונות בולים: יחס מקורי, בלי חיתוך של שובל או שינון. */
.sil-stamp-image,
.sil-stamp-image img {
	block-size: auto;
	max-inline-size: 100%;
	object-fit: contain;
}

/* טבלאות רחבות נגללות בתוך עצמן, כדי שהעמוד לא יגלול אופקית ב-320px. */
.entry-content .wp-block-table,
.sil-table-wrap {
	max-inline-size: 100%;
	overflow-x: auto;
}

.entry-content table {
	border-collapse: collapse;
	inline-size: 100%;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--sil-border-strong);
	padding: var(--sil-space-2) var(--sil-space-3);
	text-align: start;
}

.entry-content th {
	background: var(--sil-navy);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* תפריט ראשי: שורה אחת בשולחן עבודה, בגודל טקסט הבסיס. */
#ast-desktop-header .main-header-menu {
	flex-wrap: nowrap;
}

#ast-desktop-header .main-header-menu > .menu-item > .menu-link {
	font-size: 1rem;
	white-space: nowrap;
}

/*
 * צבעי Elementor הגלובליים של האתר הישן: טקסט #7a7a7a (3.97:1 על שנהב) וכותרת
 * #6ec1e4 (1.87:1) אינם עומדים ב-WCAG AA. מחליפים אותם בצבעי הפלטה.
 */
body[class*="elementor-kit-"] {
	--e-global-color-text: var(--sil-ink);
	--e-global-color-primary: var(--sil-navy);
}
