/* fix.css: spacing/wrapping audit (all 5 languages, 360px phone + 1440px desktop). Loaded after styles.css.
   Rules: a button label never wraps or gets cut off; if two buttons don't fit side by side they stack, each full width
   (Material 3 / Apple HIG: labels stay on one line, stack buttons instead of truncating). Kept clear of the hub and schedule-top selectors. */

/* 1. Trainer hero actions ("Add to calendar" / "Can't make it"): were cut off in ar/ru/es at 360px.
      Equal halves when both labels fit; otherwise each button keeps its full label and they stack. */
.hh-acts { flex-wrap: wrap; }
.hh-acts > button, .hh-acts > a { flex: 1 1 0; min-width: max-content; padding-inline: 10px; }

/* 2. Home tiles: two-line titles break evenly instead of leaving one word alone on the second line */
.sq b { text-wrap: balance; }

/* 3. List-row captions: no single orphan word on the second line */
.li .cap, .li small { text-wrap: pretty; }

/* 4. Usual-week grid on phones: Latin/Cyrillic names were cut to 3 letters ("Джу…"); tighter type fits 6-7 letters */
@media (max-width: 599px) {
  html:not([lang="he"]):not([lang="ar"]) .mg .c .nm { font-size: 10px; letter-spacing: -0.03em; }
}

/* 5. Arabic: letter-spacing breaks the joins between Arabic letters, so drop it on text (the !CON logo keeps its own) */
html[lang="ar"] .hh .k, html[lang="ar"] .welcome .word, html[lang="ar"] #splash .sp-word, html[lang="ar"] .brand { letter-spacing: 0; }
/* Arabic glyphs sit taller; give multi-line Arabic text a little more leading so lines don't touch */
html[lang="ar"] body { line-height: 1.6; }

/* 6. Arabic font: Readex Pro (user pick 2026-11-12). Arabic letters only (unicode-range), so Latin digits/times stay Google Sans
      and other languages never download it. Its larger x-height puts Arabic at the same visual size as the times. */
@font-face { font-family: "Readex Arabic"; font-style: normal; font-weight: 160 700; font-display: swap;
  src: url(https://fonts.gstatic.com/s/readexpro/v27/SLXYc1bJ7HE5YDoGPuzj_dh8uc7wUy8ZQQyX2Iw1ZEzMhQ.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
html[lang="ar"] { --font: "Readex Arabic", "Google Sans", "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; }
