/* Hebrew pages only (linked by scripts/build_lang.mjs › 6, LANGS.he.css; Russian and English pages
   never load it). SITE123's own html[dir="rtl"] rules mirror most of the page; these fix what they
   leave wrong. Defect ids: .work/rtl/defects.md (the RTL audit, 2026-10-09). */

/* FN1. Heebo for everything that is Karla on the other pages (body text, menu, buttons): Karla has no
   Hebrew. Headings stay Rubik, tagline and logo Open Sans (both load Hebrew already). Loaded from
   Google Fonts as the page loads Rubik: the hebrew, latin-ext and latin subsets, 400 and 700. */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H4TbFhsqMA6aw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H2TbFhsqMA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H0TbFhsqMA6aw.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H4TbFhsqMA6aw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/heebo/v28/NGS6v5_NC0k9P9H2TbFhsqMA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* SITE123's theme sets these on :root and uses var(--global_font) for body text and buttons,
   var(--font_menu) for the menu */
html[dir="rtl"] {
  --global_font: 'Heebo';
  --font_menu: 'Heebo';
}

/* H2. Phone menu: SITE123 uppercases menu items; the language names stay as written. The open menu
   is SITE123's copy of #top-menu-mobile in #popupFloatDivMenu. */
html[dir="rtl"] #top-menu-mobile li[data-i18n="switch"] a,
html[dir="rtl"] #top-menu-mobile li[data-i18n="switch"] a span,
html[dir="rtl"] #popupFloatDivMenu li[data-i18n="switch"] a,
html[dir="rtl"] #popupFloatDivMenu li[data-i18n="switch"] a span {
  text-transform: none;
}

/* S1. Desktop switch: the build puts it in the left corner on Hebrew pages; its items read right to
   left (RU first, on the right) instead of Bootstrap's .navbar-nav > li { float: left }. */
html[dir="rtl"] #mainNav ul[data-i18n="switch"] > li {
  float: right;
}

/* H1. Menu lists: the browser indents a list 40 px on its start side, and SITE123 zeroes only the
   left (.nav { padding-left: 0 }), so on Hebrew pages every .nav kept 40 px on the right. In the
   header that tripped SITE123's fit check (menu width + paddings > header width): an extra hamburger
   by the e-mail and share icons at 800-864 and 960-1024 px. :where() keeps the weight of .nav, so
   SITE123's more specific paddings (5px on the phone header's icons) still win. */
:where(html[dir="rtl"]) .nav {
  padding-right: 0;
}

/* K1. Team cards («Каратели», home): the column has both col-md-push-2 (left: 16.67%) and
   col-md-pull-2 (right: 16.67%); with both set, left wins in LTR and right in RTL, so on Hebrew pages
   the column ran off the left edge. Drop right: the column sits centred as on the Russian page. */
@media (min-width: 992px) {
  html[dir="rtl"] .team-member-container.col-md-push-2.col-md-pull-2 {
    right: auto;
  }
}

/* TL1. Timeline card footer (date and «more» button): SITE123's own RTL rule sets row-reverse, which
   undoes the flip that direction: rtl already gives a flex row, so the date stayed on the left. */
html[dir="rtl"] body .s123-module-timeline .cd-timeline-content .cd-timeline-footer {
  flex-direction: row;
}

/* TL2 and FT1: Bootstrap 3 columns float left in either direction from 768 px (col-sm-*), where
   they stand side by side; below it they stack and must stay unfloated (a floated column shrinks to
   its content and runs off a phone screen). */
@media (min-width: 768px) {
  /* TL2. Timeline subpages (Арест/*, Хронология-расследования/*): icon column and text column. */
  html[dir="rtl"] .s123-page-data-timeline .row > [class*="col-"] {
    float: right;
  }
  /* FT1. Footer: the logo-and-copyright column and the menu column. */
  html[dir="rtl"] footer .footer-layout-1-sides > [class*="col-"] {
    float: right;
  }
}

/* T3. Tagline (home) and logo: Hebrew has no true italic (the browser slants the letters) and
   letter-spacing breaks the shape of its words; the user chose plain text (review, 2026-10-10).
   SITE123 sets italic by class, letter-spacing on .boxBorder h2 and, for the logo, letter-spacing 5px
   with word-spacing -5px in .s123-w-l-s; the word-spacing goes too, or the space vanishes. */
html[dir="rtl"] #top-section .hm-txt.italic {
  font-style: normal;
}
html[dir="rtl"] .magic_homepage .boxBorder h2.hm-txt,
html[dir="rtl"] .navbar-brand.s123-w-l-s,
html[dir="rtl"] .navbar-brand.s123-w-l-s .website-name {
  letter-spacing: normal;
  word-spacing: normal;
}
