/* =====================================================================================================
   Mono — one global nav bar (same bar on every public page, EN + FA).
   Loaded last. Covers: centred button labels, burger button in the top-left corner on phones,
   and the side menu that opens from the same (left) edge.
   ===================================================================================================== */

/* ---------- nav-bar buttons: label exactly centred (equal padding, no stray line-height) ---------- */
html .topbar .btn,
html .mobile-menu-auth .btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-align:center; line-height:1; box-sizing:border-box;
}
html .topbar .btn.btn-sm{ min-height:34px; padding:0 16px; }
html .mobile-menu-auth .btn{ min-height:46px; padding:0 16px; width:100%; }
html .topbar .btn > *, html .mobile-menu-auth .btn > *{ margin:0; }

/* ---------- footer "Get started": label dead-centre, arrow pinned to the end edge ---------- */
html .ft-cta .v3-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  text-align:center; line-height:1; box-sizing:border-box; min-height:44px;
  padding:0 46px; gap:0;
}
html[dir=rtl] .ft-cta .v3-btn{ padding:0 46px; }
html .ft-cta .v3-btn > span{ display:block; line-height:1; text-align:center; margin:0; letter-spacing:0; }
@supports (text-box:trim-both cap alphabetic){
  html:not([lang=fa]) .ft-cta .v3-btn > span{ text-box:trim-both cap alphabetic; }
}
html .ft-cta .v3-btn > svg{
  position:absolute; top:50%; inset-inline-end:16px; margin-top:-7.5px; width:15px; height:15px;
}

/* ---------- phones / short landscape: burger button sits in the TOP-LEFT corner ---------- */
@media (max-width:640px),(max-height:500px) and (orientation:landscape){
  html body header.topbar,
  html[dir=rtl] body header.topbar{
    position:fixed!important;
    top:max(10px,env(safe-area-inset-top))!important;
    left:max(var(--pad,16px),env(safe-area-inset-left))!important;
    right:auto!important; bottom:auto!important;
    width:auto!important; max-width:none!important; margin:0!important; padding:0!important;
    transform:none!important; display:block!important;
    background:none!important; border:0!important; box-shadow:none!important;
    -webkit-backdrop-filter:none!important; backdrop-filter:none!important;
  }
  html body header.topbar .wordmark,
  html body header.topbar .segmented,
  html body header.topbar .topbar-auth{ display:none!important; }
  html body header.topbar .topbar-right{ display:flex!important; justify-content:flex-start!important; width:auto!important; margin:0!important; padding:0!important; gap:0!important; }
  html body header.topbar .hamburger{ display:flex!important; margin:0!important; position:relative; left:0; right:auto; }

  /* side menu opens from the same (left) edge; the burger stays on top so it can close it */
  html body .mobile-menu,
  html[dir=rtl] body .mobile-menu{
    right:auto; left:0; border-left:0; border-right:1px solid rgba(246,243,238,.1);
    box-shadow:24px 0 60px #00000080; transform:translateX(-100%);
  }
  html body .mobile-menu.is-open{ transform:none; }
  html body .mobile-menu:not(.is-open){ box-shadow:none; }
  html[dir=rtl] body .mobile-menu-link{ text-align:right; }
  body.menu-open header.topbar{ z-index:200!important; }
}

/* =====================================================================================================
   v12 — footer
   (a) contact rows: icon and text share the same line box, so every number / address sits exactly
       opposite its own icon (an address that wraps keeps the icon on its first line)
   (b) the hand in the "Crafting visuals." box: smaller and fully inside the box (fingertips were cut)
   ===================================================================================================== */
html .ft-contact li{ display:flex; align-items:flex-start; gap:12px; font-size:15px; line-height:1.35; }
html .ft-contact li > a,
html .ft-contact li > span{ font-size:inherit; line-height:inherit; margin:0; padding:0; }
html .ft-contact li > svg{ flex:none; width:1.2em; height:1.2em; margin:calc((1.35em - 1.2em) / 2) 0 0; }

html .ft-cta:before{
  content:""; display:block;
  width:clamp(120px,15vw,230px); aspect-ratio:355/381;
  inset-inline-end:clamp(22px,5vw,84px); inset-inline-start:auto;
  bottom:clamp(26px,4.4vw,64px); top:auto;
  transform:rotate(-10deg); transform-origin:50% 50%;
  background-position:center; background-size:contain; background-repeat:no-repeat;
  opacity:.1; pointer-events:none;
}
html[dir=rtl] .ft-cta:before{ transform:rotate(10deg) scaleX(-1); }
