/* ════════════════════════════════════════════════════════
   Celvo — easier reading (loaded last, after vivid.css)

   Peter found the screens hard to read where menus and option lists are dense. Three
   causes, fixed here and nowhere else so the change can be judged and undone in one place:

   1. The face. IBM Plex Sans Arabic draws its letters small for their size, so 14px Arabic
      reads like 12px. Readex Pro (SIL OFL 1.1, served from css/fonts.css) is one family for
      Arabic and Latin, drawn for reading ease, with open counters and a tall x-height.
   2. Sizes and weights. Menu links, captions, badges and table headers sat at 11-13px in a
      light weight. Nothing on screen goes below 12px now, and menu text is 15px.
   3. Contrast in the purple side menu. Links were 86% white and group labels 66%: now
      white and 82%.

   Screens that still name Cairo inline (older dialogs) take the same face. Printed
   documents open in their own window with their own embedded fonts and are unaffected.
   ════════════════════════════════════════════════════════ */

:root, [dir="ltr"] {
  --font-ui: 'Readex Pro', 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --sidebar-width: 256px;
}

body, [dir="ltr"] body { font-size: 15px; line-height: 1.6; }
.badge, .sb-word,
[style*="font-family:Cairo"], [style*="font-family: Cairo"],
[style*="font-family:'Cairo'"], [style*="font-family: 'Cairo'"] { font-family: var(--font-ui) !important; }

/* ─── Side menu ─── */
.sidebar-link { font-size: 15px; font-weight: 400; line-height: 1.45; padding: 9px 12px; color: #fff; }
.sidebar-link i { font-size: 16px; color: rgba(255, 255, 255, .8); }
.sidebar-link.active { font-weight: 600; }
.sidebar-section-title, .sidebar-section-title.sg-h { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.sb-count { font-size: 12.5px; }
.sidebar-footer { font-size: 12px; }

/* ─── Menus, option lists and form fields ─── */
.tb-new-menu button, .ha-more-menu button, .tb-acc-item, .dropdown-item { font-size: 15px; line-height: 1.5; }
.form-control, .form-select, .list-filter .form-select, .list-search input { font-size: 15px; }
.form-label, label { font-size: 14px; }
.form-text, small, .small { font-size: 13px; }

/* ─── Lists and tables ─── */
.table thead th { font-size: 13px; }
.table tbody td { font-size: 14px; }
/* the wider face takes a little more room per column: trim the side padding so the row's
   last buttons stay on screen at laptop widths */
.list-table thead th, .list-table tbody td { padding-inline: 10px; }
.list-meta, .hf-meta, .ha-meta, .ha-when, .home-late { font-size: 13.5px; }
.list-pill, .list-flag { font-size: 12.5px; }
.badge { font-size: 12px; font-weight: 600; letter-spacing: 0; }

/* the wider face needs a little more room for the four home tiles to stay on one row,
   and the big figure scales with the tile instead of running past its edge */
.home-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kp-val { font-size: clamp(26px, 2.3vw, 36px); }
