/* ============================================================
   Addaliil — Midnight Market · base.css
   Reset + base typography. Complements the Bootstrap reboot (kept as vendor).
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}

/* Self-hosted flag-only web font (no CDN at runtime). unicode-range restricts it to the regional-indicator
   block so it ONLY supplies country-flag glyphs (🇯🇴 …) — every other character falls through to the real
   UI font. Prepended to --font-en/--font-ar (tokens.css) so flags render app-wide, fixing the Windows/Chrome
   "🇯🇴 → JO" issue with zero markup change. */
@font-face{
  font-family:"Twemoji Country Flags";
  unicode-range:U+1F1E6-1F1FF;
  src:url("/css/flags/TwemojiCountryFlags.woff2") format("woff2");
  font-display:swap;
}

body{
  background:var(--bg); color:var(--text);
  font-family:var(--font-en);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  padding-top:58px;            /* offset the fixed .ad-topnav */
}
html[dir="rtl"] body{font-family:var(--font-ar)}
html[dir="ltr"] body{font-family:var(--font-en)}

a{color:var(--brand-dark);text-decoration:none}
a:hover{color:var(--brand)}

h1,h2,h3,h4,h5,h6{color:var(--text)}

:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}

/* opt-in hidden scrollbars */
.hide-scroll{scrollbar-width:none}
.hide-scroll::-webkit-scrollbar{width:0;height:0;display:none}

/* bidi helpers (Convention #10) */
bdi,.ltr-isolate{unicode-bidi:isolate}
html[dir="rtl"] .icon-dir{transform:scaleX(-1)}

/* Clear the fixed bottom bar AND the "+" FAB that floats above it on mobile, so the last card on a page can
   scroll out from under both. 64px bar + FAB (56px, sitting 74px up) + a little air = 144px. This used to be
   keyed on body.has-bottom-bar, a class no view ever set, so it never applied and both covered the bottom of
   every page (UX study item B-1). The bar renders on every page below 860, so it is unconditional now. */
@media (max-width:859px){
  body{padding-bottom:144px}
}


/* Owner 2026-10-19: in the live environment other languages are filled overnight, so the forms' instant
   "Translate" buttons go away (_Layout sets the attribute; /media/translate refuses too). */
html[data-translation-nightly] .ef-translate-btn{display:none!important}

/* placeholders read clearly AS placeholders (lighter than real text) */
::placeholder{color:var(--muted);opacity:.55}
