/*
 * assets/css/scripts.css: Hebrew, Aramaic, Greek and inline Arabic set as
 * text (3.0.1). These words and passages were pictures until 3.0.1; as text
 * they can be searched, read aloud, copied and quoted.
 *
 * Fonts: Noto Serif Hebrew and Gentium Plus, both under the SIL Open Font
 * License 1.1, subset to their scripts. Arabic uses the faces declared in
 * inc/arabic-fonts.php (KFGQPC Hafs for the Qur'an, Noto Naskh for prose).
 */

@font-face {
	font-family: "BismikaHebrew";
	src: url("../fonts/noto-serif-hebrew-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "BismikaHebrew";
	src: url("../fonts/noto-serif-hebrew-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "BismikaGreek";
	src: url("../fonts/gentium-plus-greek-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
	font-family: "BismikaGreek";
	src: url("../fonts/gentium-plus-greek-ext-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+1F00-1FFF;
}
@font-face {
	font-family: "BismikaGreek";
	src: url("../fonts/gentium-plus-greek-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0370-03FF;
}

.bismika-hebrew {
	font-family: "BismikaHebrew", "Noto Serif Hebrew", "SBL Hebrew", serif;
	font-size: 1.25em;
	line-height: 1.7;
	unicode-bidi: isolate;
}
.bismika-greek {
	font-family: "BismikaGreek", "Gentium Plus", "SBL Greek", serif;
	font-size: 1.12em;
	unicode-bidi: isolate;
}

/* Inline Arabic inside an English sentence: the block sizes would tower over the line. */
span.bismika-quran,
span.bismika-citation {
	display: inline;
	font-size: 1.3em;
	line-height: 1.6;
	text-align: start;
	unicode-bidi: isolate;
}
span.bismika-quran { font-size: 1.45em; }

/* A word or line that stood on a line of its own as a picture keeps that line. */
.bismika-script.is-line {
	display: block;
	margin: .35em 0;
}
.bismika-script.is-line[dir="rtl"] { text-align: right; }
.has-text-align-center .bismika-script.is-line,
center .bismika-script.is-line { text-align: center; }

p.bismika-hebrew,
p.bismika-greek,
p.bismika-citation {
	margin: 1em 0;
}
p.bismika-hebrew[dir="rtl"] { text-align: right; }

/* Classical Arabic poetry: two hemistichs per verse, the key word marked. */
.bismika-verse {
	margin: 1.2em 0;
	text-align: center;
	line-height: 2.2;
}
mark.bismika-hl {
	background: none;
	color: var(--bm-red, #c62828);
	font-weight: 700;
}

/* The three-script comparison table (Arabic, Hebrew, transliteration). */
.bismika-script-table {
	border-collapse: collapse;
	margin: 1em auto;
}
.bismika-script-table td {
	padding: .2em 1.1em;
	font-size: 1.35em;
	text-align: center;
}

/* <picture> added for AVIF must not change how an image sits. */
picture.bismika-picture { display: contents; }
