/* Mizan public site: the phone and tablet layer.
   Linked after site.css (and after the homepage's inline styles) on every page,
   so these rules are the one place mobile behaviour is defined.

   - A menu: below 1000px the nav links were hidden with nothing in their place.
   - Tap targets of at least 40px for the controls that were smaller.
   - Gutters of 20px instead of 40px on phones.
   - Mono labels no smaller than 12px on phones. */

/* ---------- menu button + sheet (hidden on desktop) ---------- */
.nav__menu { display: none; flex: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 99px; background: transparent; color: var(--ink-900); cursor: pointer; padding: 0; }
.nav__menu:hover { border-color: var(--ink-900); }
.nav__menu:focus-visible, .nav__lang:focus-visible, .nav__sheet a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.nav__menu svg { display: block; }
.nav__sheet { max-width: var(--maxw); margin: 8px auto 0; display: flex; flex-direction: column;
  background: rgba(243,239,230,0.97); backdrop-filter: blur(14px); border: 1px solid var(--border-hair); border-radius: 22px;
  box-shadow: 0 14px 40px rgba(22,32,26,0.14); padding: 6px 8px 10px; animation: navsheet 180ms cubic-bezier(.22,.61,.36,1); }
@keyframes navsheet { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .nav__sheet { animation: none; } }
.nav__sheet a { display: flex; align-items: center; min-height: 50px; padding: 0 14px; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid var(--rule-soft); }
.nav__sheet a:last-of-type { border-bottom: 0; }
.nav__sheet a.is-active { color: var(--ink-900); }
.nav__sheet a.is-active::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-inline-start: 10px; }
.nav__sheet .btn { justify-content: center; margin: 8px 6px 2px; min-height: 48px; }
.site[dir="rtl"] .nav__sheet a { font-family: var(--font-arabic); font-size: 16px; letter-spacing: 0; text-transform: none; }
@media (min-width: 1001px) { .nav__sheet { display: none; } }

/* ---------- tablets and phones ---------- */
@media (max-width: 1000px) {
  .nav__menu { display: inline-flex; }
  .nav { gap: 14px; }
  .nav__lang { width: 40px; height: 40px; }
  .logo { min-height: 40px; }
  .dp-back { padding: 11px 0; margin-top: -11px; margin-bottom: 11px; }
  .cta__mail { display: inline-block; padding: 12px 0 8px; }
  .link-arrow { padding-top: 22px; }
}

/* ---------- phones ---------- */
@media (max-width: 620px) {
  :root { --pagex: 20px; }
  .navwrap { padding: 10px 12px 0; }
  .nav { padding: 6px 6px 6px 16px; gap: 8px; }
  .site[dir="rtl"] .nav { padding: 6px 16px 6px 6px; }
  .nav__cta { display: none; } /* the call to action moves into the menu */
  .logo { gap: 9px; }
  .logo__w { font-size: 16px; }

  .figlabel, .meta__k, .foot__min-bar, .k, .dp-rel__k, .ins-card__cat, .ins-card__meta, .art__figcap, .eye,
  .tag, .phero__no, .dp-block__k, .sec__no, .row__n, .stp__n, .fcard__tag, .teamadd__label, .capd__block .k, .apx__out .k {
    font-size: 12px;
  }
  .phero { padding-top: 40px; }
  .phero__sub { margin-bottom: 36px; }
}

/* Arabic eyebrows: a mono face with wide tracking breaks Arabic letter joining. */
.site[dir="rtl"] .phero__no, .site[dir="rtl"] .dp-back, .site[dir="rtl"] .dp-block__k, .site[dir="rtl"] .sec__no {
  font-family: var(--font-arabic); letter-spacing: 0; text-transform: none;
}
