/* UX17 (owner, 20 November 2026): small fixes for the public and customer pages, Arabic and English.
   Loaded right after brandbar.css by the public and customer pages only. NEVER loaded by cv-builder.php
   (owner rule: the builder and the files it loads stay as they are), checkout.php or the admin area.
   Tokens only (theme.css); logical properties only; light and dark come from the tokens. */

/* 2. Phones and iPads: «دخول» / "Sign in" stays in the top bar next to the main action (it was only in the ⋯ menu). */
@media (max-width:1023px){
  html body .bb-bar a.btn-signin{display:inline-flex;align-items:center;min-height:44px;padding-block:0;padding-inline:var(--space-3);white-space:nowrap}
  html body .bb-bar .bb-links a[href="/login.php"]{display:none}   /* the menu no longer repeats it */
}
@media (max-width:359px){ html body .bb-bar a.btn-signin{padding-inline:var(--space-2)} }

/* 4. No letter-spacing on Arabic text (it pulls joined letters apart). English keeps its spacing.
   The homepage welcome animation (#intro), the ElitCV logo (Latin brand) and any CV paper are left exactly as they are. */
html[lang="ar"] body :not(#intro):not(#intro *):not(.cvpaper):not(.cvpaper *):not(.elit-logo):not(.elit-logo *){letter-spacing:normal!important}

/* 6. Phone tap areas of at least 24 px. */
input[type="checkbox"][name="agree"],input[type="checkbox"][name="remember"]{width:24px;height:24px;min-width:24px;flex-shrink:0;accent-color:var(--ink)}
.qz-choice input[type="radio"]{width:20px;height:20px;flex-shrink:0}   /* the whole option (label) is the tap area, 44 px high */
/* small text links inside sentences, footers and breadcrumbs: an invisible tap area 6 px above and below the words,
   so the tap target is at least 24 px high. Nothing moves: the link keeps its size, place and look. */
:where(main,footer,.bb-foot,.auth-card,.auth-form,.legal,article,section,.foot-l,.foot-c,.bb-org,.wrap) a:not([class]),
.bb-org a{position:relative}
:where(main,footer,.bb-foot,.auth-card,.auth-form,.legal,article,section,.foot-l,.foot-c,.bb-org,.wrap) a:not([class])::after,
.bb-org a::after{content:"";position:absolute;inset-block:-6px;inset-inline:0}

/* 7. No text smaller than 12 px. */
.pw-hint,.field-link,.foot-c,.plan-badge,.badge,.msg-meta,.ticket-item .meta,.pw-strength-label{font-size:12px!important}

/* DEC21 (owner, 21 November): the Arabic language button label «ع / العربية» never gets letter-spacing, also on English pages. */
.bb-lang [lang="ar"],.bb-lang [lang="ar"] *{letter-spacing:normal!important}
