/* ============================================================
   inbithaq_dashboard - inb-dir.css (ARSHAD-190)
   Direction-aware and small-screen rules for the Inbithaq theme (school 25).
   Linked once in partials/head.blade.php, after page-inline.css.
   - app.css is a frozen Tailwind v4 build (INV-C02-86): a new utility class
     written in a blade has no rule, so the rules here use selectors.
   - Logical properties only (inline-size, padding-inline, gap): one rule
     serves Arabic (rtl) and English (ltr). No left/right, no per-language copy.
   - Unlayered on purpose: it outranks app.css, whose utilities sit in @layer.
   ============================================================ */

/* ---- Phase 1: the header row fits from 320px up -------------------------
   Measured before (guest, home): the row needs 370px in Arabic and 361px in
   English (menu 40 + logo 128 + language 67 + sign-up 79, gaps 16, padding 32),
   so at 320/360 the page scrolled sideways in Arabic and the sign-up button was
   cut in English. Below 400px: smaller logo, tighter gaps and padding; below
   360px the sign-up button leaves the row (the menu carries it, interactions.js). */
@media (max-width: 399.98px) {
  header > div:last-child {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }
  header > div:last-child > * {
    min-inline-size: 0;
  }
  header > div:last-child > a:first-of-type img {
    block-size: 3rem;                    /* logo 64px -> 48px */
  }
  header > div:last-child > .ms-auto {
    gap: 0.375rem;
  }
}
@media (max-width: 359.98px) {
  header > div:last-child a[href$="/inbithaq/signup"] {
    display: none;
  }
}

/* The guest's login / sign-up rows in the mobile menu (built by interactions.js
   mobileMenu()): each shows only while the header row hides its button
   (login: below 640px, the row's "hidden sm:inline-flex"; sign-up: below 360px). */
.inb-menu-auth {
  display: block;
  padding-block: 11px;
  padding-inline: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #A63A4A;
  text-decoration: none;
  border-block-end: 1px solid rgba(27, 43, 75, 0.07);
}
@media (min-width: 640px) {
  .inb-menu-auth[data-inb-auth="login"] { display: none; }
}
@media (min-width: 360px) {
  .inb-menu-auth[data-inb-auth="signup"] { display: none; }
}
