/* Divers Trips - Russian typography. Enqueued ONLY when the current language is ru (inc/lang-fonts.php).
   Bricolage Grotesque and Figtree have no Cyrillic glyphs, so Russian pages use Onest (one variable
   family, weights 400-800) for display AND body text, and Martian Mono (Cyrillic subsets added here)
   for the mono labels. Latin words and digits inside Russian text come from Onest too, so a mixed
   line never switches font. Files: assets/fonts/onest-*.woff2, martian-mono-cyrillic*.woff2. */

/* Onest, variable 400-800 (subsets as served by Google Fonts). */
@font-face{font-family:'Onest';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/onest-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/onest-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/onest-latin.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}

/* Martian Mono: the latin files live in main.css; these add the Cyrillic subsets to the same family. */
@font-face{font-family:'Martian Mono';font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(../fonts/martian-mono-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Martian Mono';font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(../fonts/martian-mono-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}

/* Font-family custom properties used by the theme: main.css (--f-*, --dt-*) and home.css (--display/--body/--mono, set on body.dtrips-home). */
html[lang="ru"],
html[lang="ru"] body.dtrips-home{
  --f-display:"Onest",system-ui,"Segoe UI",sans-serif;
  --f-body:"Onest",system-ui,"Segoe UI",sans-serif;
  --f-mono:"Martian Mono",ui-monospace,Consolas,monospace;
  --dt-display:"Onest",system-ui,"Segoe UI",sans-serif;
  --dt-body:"Onest",system-ui,"Segoe UI",sans-serif;
  --dt-mono:"Martian Mono",ui-monospace,Consolas,monospace;
  --display:"Onest",system-ui,"Segoe UI",sans-serif;
  --body:"Onest",system-ui,"Segoe UI",sans-serif;
  --mono:"Martian Mono",ui-monospace,Consolas,monospace;
}

/* Russian words are longer than English ones: break instead of overflowing, hyphenate long words. */
html[lang="ru"] body{overflow-wrap:break-word;line-height:1.6}
html[lang="ru"] h1,html[lang="ru"] h2,html[lang="ru"] h3,html[lang="ru"] h4{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;letter-spacing:-.015em;line-height:1.14}
html[lang="ru"] h1{font-size:clamp(30px,4.3vw,54px)}
html[lang="ru"] h2{font-size:clamp(24px,3.2vw,37px)}
html[lang="ru"] body.dtrips-home h1{line-height:1.1}
html[lang="ru"] p,html[lang="ru"] li,html[lang="ru"] td,html[lang="ru"] th{hyphens:auto;-webkit-hyphens:auto}

/* Onest tops out at weight 800, the same as the Latin pair; the body weight 400-500 reads slightly lighter than Figtree, so nudge it. */
html[lang="ru"] body{font-weight:450}
html[lang="ru"] .btn{letter-spacing:0}

/* Mono labels: Cyrillic capitals in a monospace face are wide, so tighten the tracking and let long labels wrap. */
html[lang="ru"] .kicker,html[lang="ru"] .dt-kicker,html[lang="ru"] .logo small,
html[lang="ru"] .footer h4,html[lang="ru"] .dt-foot h4,html[lang="ru"] .dt-foot .dt-h4,html[lang="ru"] .dt-drawer h4,html[lang="ru"] .dt-drawer .dt-h4,
html[lang="ru"] .fact small,html[lang="ru"] .bookcard .from,html[lang="ru"] .toc b,html[lang="ru"] .rv-note,html[lang="ru"] .bkp-sub,
html[lang="ru"] .bkp-refbox span,html[lang="ru"] .prose .qa-k,html[lang="ru"] .dt-mh,html[lang="ru"] .dt-loc-h,
html[lang="ru"] body.dtrips-home .mono{letter-spacing:.03em}
html[lang="ru"] .price small,html[lang="ru"] body.dtrips-home .tkt .price small{letter-spacing:.02em;white-space:normal}
html[lang="ru"] .prose th,html[lang="ru"] .cmp thead th{letter-spacing:.03em}

/* Mobile tab bar: five equal columns; "Бронирование" is wider than an English label, so shrink slightly and clip as a last resort. */
html[lang="ru"] .tabbar a{font-size:10px;letter-spacing:-.02em;min-width:0}
html[lang="ru"] .tabbar a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Home category chips: five per row on phones; Russian labels such as "Снорклинг" are wider than the English ones. */
html[lang="ru"] body.dtrips-home .chip{font-size:10px;letter-spacing:-.02em;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;min-width:0}

