/*
Theme Name:   Beit Midrash
Theme URI:    https://beitmidrash.org.il
Description:  Hebrew RTL child theme of Twenty Twenty-Five for the Beit Midrash e-learning platform. Self-hosted Hebrew typography (Frank Ruhl Libre + Heebo), RTL-first spacing, and course-oriented layout.
Author:       Beit Midrash
Template:     twentytwentyfive
Version:      1.1.6
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  beitmidrash
Tags:         rtl-language-support, blog, education, block-patterns, full-site-editing
*/

/* Layout and typography live in theme.json. This file carries only what theme.json
   cannot express. Keep it small. */

/* Hebrew punctuation and quotation marks sit better with a touch more line height
   than the Latin default, especially for the long liturgical quotations on these pages. */
:root :where(p) {
	line-height: 1.85;
}

/* Hebrew has no capitals, so ALL-CAPS tricks do nothing; make sure nothing inherits
   a transform that would silently no-op on Hebrew but mangle the odd Latin word. */
:root :where(h1, h2, h3, h4, h5, h6) {
	text-transform: none;
	letter-spacing: normal;
}

/* Wix marked emphasis with bold inside running text. Keep bold visually distinct from
   the Frank Ruhl Libre headings by rendering strong in the sans face. */
:root :where(p strong, li strong) {
	font-family: var(--wp--preset--font-family--heebo);
	font-weight: 700;
}

/* RTL: lists and blockquotes need their indent and border mirrored. The block editor
   emits logical properties inconsistently across blocks, so pin them. */
[dir="rtl"] :where(ul, ol) {
	padding-inline-start: 1.5em;
	padding-inline-end: 0;
}
[dir="rtl"] :where(blockquote) {
	border-inline-start: 3px solid var(--wp--preset--color--accent);
	border-inline-end: 0;
	padding-inline-start: 1.25em;
	padding-inline-end: 0;
}

/* Numerals inside Hebrew text: force them to render LTR so prices, dates and phone
   numbers do not get reordered. This is the single most common Hebrew-site bug. */
.bm-ltr-num,
:root :where(.wp-block-table td, .wp-block-table th) {
	unicode-bidi: plaintext;
}
