/*
Theme Name: Gillion Child
Description: Child theme for Gillion theme — Hebrew/RTL edition
Author: Shufflehound
Author URI: http://shufflehound.com
Template: gillion
Version: 1.0.0
Text Domain: gillion-child
*/

/* Шрифты с ивритскими начертаниями. Rubik — весь текст и заголовки (22.09.2026, см. 03-site/DESIGN.md). */
:root {
	--sh-font-body: 'Rubik', 'Heebo', 'Assistant', 'Arial Hebrew', Arial, sans-serif;
	--sh-font-heading: 'Rubik', 'Heebo', 'Arial Hebrew', Arial, sans-serif;
}

html[lang^="he"] body,
html[lang^="he"] p,
html[lang^="he"] input,
html[lang^="he"] textarea,
html[lang^="he"] select,
html[lang^="he"] button,
html[lang^="he"] .sh-blog-post,
html[lang^="he"] .elementor-widget-container {
	font-family: var(--sh-font-body);
	letter-spacing: 0;
}

html[lang^="he"] h1, html[lang^="he"] h2, html[lang^="he"] h3,
html[lang^="he"] h4, html[lang^="he"] h5, html[lang^="he"] h6,
html[lang^="he"] .post-title, html[lang^="he"] .logo-text {
	font-family: var(--sh-font-heading);
	letter-spacing: 0;
	font-weight: 700;
}

/* В иврите нет курсива и капители — убираем, чтобы не ломать глифы. */
html[lang^="he"] em, html[lang^="he"] i, html[lang^="he"] blockquote {
	font-style: normal;
}
html[lang^="he"] .post-meta, html[lang^="he"] .sh-category {
	text-transform: none;
}

/* Цифры и латиница внутри ивритского текста — не переворачивать. */
html[dir="rtl"] .post-meta time,
html[dir="rtl"] .price, html[dir="rtl"] .num, html[dir="rtl"] code, html[dir="rtl"] pre {
	unicode-bidi: isolate;
	direction: ltr;
	display: inline-block;
}

/* Детские и подростковые тексты (рубрика kids-finance): крупнее и просторнее — edu-text, профиль K/T */
.category-kids-finance .post-content p,
.category-kids-finance .post-content li { font-size: 18px; line-height: 1.7; }
.category-kids-finance .post-content h2 { font-size: 26px; margin-top: 1.6em; }
.category-kids-finance .post-content h3 { font-size: 21px; }
.category-kids-finance .post-content { max-width: 720px; }

/* === Врезки статей (edu-text): [box], [chips], [imgcard] === */
.msi-box { --bx: #2563eb; --bx-bg: #eff6ff; border-right: 5px solid var(--bx); background: var(--bx-bg); border-radius: 14px; padding: 16px 20px; margin: 24px 0; font-size: 17px; line-height: 1.7; }
.msi-box__title { font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--bx); margin-bottom: 6px; }
.msi-box__body > p:last-child { margin-bottom: 0; }
.msi-box--answer { --bx: #2563eb; --bx-bg: #eff6ff; } .msi-box--answer .msi-box__body { font-size: 19px; font-weight: 600; color: #0f172a; }
.msi-box--term { --bx: #7c3aed; --bx-bg: #f5f3ff; }
.msi-box--example { --bx: #0891b2; --bx-bg: #ecfeff; }
.msi-box--try, .msi-box--mission { --bx: #d97706; --bx-bg: #fef3c7; border-style: dashed; border-width: 2px; border-right-width: 5px; border-color: var(--bx); }
.msi-box--note { --bx: #64748b; --bx-bg: #f8fafc; }
.msi-box--tldr { --bx: #16a34a; --bx-bg: #f0fdf4; }
.msi-box ol, .msi-box ul { margin: 6px 0 0; padding-right: 20px; }
.msi-chipsrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.msi-chip { background: #eff6ff; color: #2563eb; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.msi-imgcard { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 10px; margin: 28px 0; box-shadow: 0 10px 25px -5px rgba(15,23,42,.06); }
.msi-imgcard img { width: 100%; height: auto; border-radius: 12px; display: block; }
.msi-imgcard figcaption { font-size: 14px; color: #64748b; text-align: center; margin-top: 8px; }
