/* furrsati.com/ar/freelance: the approved freelance page mirrored for Arabic, right to left, the way
   pages/ar/index.css mirrors the home page. Loaded AFTER pages/freelance.css, which stays untouched; this file
   only re-states what assumed left-to-right, with logical properties where a box flips with the page and mirrored
   values where a drawn thing moves to the other side. Not mirrored on purpose: photos, the app screens, the route
   map's drawing (its geometry is measured from the page, so it follows the mirrored layout by itself), and the
   digits inside dollar amounts (isolated left to right in the markup). */

/* ═══ type: Tajawal (sys.css maps --display and --ui on lang=ar); Arabic letters join, so no letter-spacing;
   taller lines than Futura; dollar amounts keep Futura with Western digits ═══ */
:root { --amt: "Futura Furrsati", "Tajawal", system-ui, sans-serif; }
body { font-family: var(--ui); }
main *, .foot *, .sheet * { letter-spacing: 0 !important; }
main .title { line-height: 1.15; font-weight: 800; }
main .title__light { line-height: 1.55; font-weight: 400; }
.fh__title { line-height: 1.12; font-weight: 800; }
.tl__s h3, .door__t, .rp h3, .lvp__k, .lv__never b, .pp b, .prof__name, .pc__name, .kb__lines { line-height: 1.2; }
.fh__lead, .tl__s p, .fqc__a p { line-height: 1.75; }
.wal__amt, .fc__y em, .tkt em, .pcf__big, .sp__big, .sp__mid, .sp__row dd, .rmap__amt, .pf__meter b { font-family: var(--amt); }
.wal__sample, .pc__sample, .prof__sample, .prof__h, .rmap__k span { text-transform: none; }

/* ═══ 1. hero · payday: the wallet and the flying chips sit on the right, the ticket on the left ═══ */
.pay__photo { inset: 0 72px 64px 0; }
.wal, .pay__fly { left: auto; inset-inline-start: 0; }
.fc { left: auto; inset-inline-start: 14px; }
.tkt { right: auto; inset-inline-end: -10px; padding: 10px; padding-inline: 10px 16px; }
@keyframes fc-fly-rtl {
  0% { opacity: 0; transform: translateX(calc(var(--sx) * -1)) scale(.9) rotate(6deg); }
  74% { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-10px, 46px) scale(.55); }
}
.pay.is-run .tkt { transform: translateX(60px) rotate(-4deg) scale(.9); }
.pay.is-run .tkt.is-out { transform: rotate(2deg); }
@media (max-width: 959px) {
  .pay__photo { inset: 40px 56px 0 0; }
  .fc { left: auto; inset-inline-start: 6px; }
  .tkt { right: auto; left: 10px; }
}

/* ═══ 2. how you get paid: the rail and the step dots on the right ═══ */
.pc__meter li::after { transform-origin: right; }
.tl__rail { left: auto; inset-inline-start: 22px; }
.tl__dot { left: auto; inset-inline-start: -76px; }
@media (max-width: 959px) {
  .tl__rail { left: auto; inset-inline-start: 18px; }
  .tl__dot { left: auto; inset-inline-start: -60px; }
}

/* ═══ 3. what you take home: the bar fills from the right ═══ */
.sp__fillbar { transform-origin: right; background: linear-gradient(270deg, var(--teal-m), var(--teal)); }
.sp__fillbar::after { background: linear-gradient(260deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%); animation-direction: reverse; }
.sp__scale [data-sc="1"] { transform: translateX(-5.5%); }

/* ═══ 4. doors ═══ */
.door__f::before { right: auto; inset-inline-end: -30%; }

/* ═══ 5. take it out your way: rails slide toward the map, which is on their left now ═══ */
.rmap__coin { left: 0; }
.rail { padding: 12px; padding-inline: 12px 16px; }
.rail:hover { transform: translateX(4px); }
.rail[aria-selected="true"] { transform: translateX(10px); }

/* ═══ 6. levels ═══ */
.stair__fee::before { background: repeating-linear-gradient(270deg, var(--teal-m) 0 8px, transparent 8px 14px); }

/* ═══ 7. profile builder ═══ */
.ck__b { padding: 10px; padding-inline: 12px 16px; }
.prof__sample { right: auto; inset-inline-end: 14px; }
.prof__skills .prof__blank-chip { left: auto; inset-inline-start: 0; }
.prof__work span::before { left: auto; inset-inline-start: 14%; }
.prof__work span::after { right: auto; inset-inline-end: 12%; }

/* ═══ 8. proposals are free: the strike runs right to left; the stacked proposals fan the other way ═══ */
.kb::before { right: auto; inset-inline-end: -12%; }
.kb__lines { justify-items: start; }
.kb__l i { transform-origin: right; }
.pp::before { left: auto; inset-inline-start: 0; border-radius: 4px 0 0 4px; }
.pp:nth-child(1) { transform: translate(-30px, -118px) rotate(-6deg); }
.pp:nth-child(2) { transform: translate(16px, -50px) rotate(4deg); }
.pp:nth-child(3) { transform: translate(-4px, 34px) rotate(-1.5deg); }
.kb.is-run:not(.is-free) .pp { transform: translate(0, 0) rotate(0); }

/* ═══ 9–10. questions and the close card ═══ */
.fqc__q { padding: 18px; padding-inline: 24px 20px; }
.fqc__more svg, .cl__other b svg, .link svg { transform: scaleX(-1); }
.fqc__more:hover svg { transform: scaleX(-1) translateX(5px); }
.cl__other:hover b svg { transform: scaleX(-1) translateX(4px); }
.cl__ph--a { left: auto; inset-inline-start: 8%; transform: rotate(8deg); }
.cl__ph--b { right: auto; inset-inline-end: 6%; transform: rotate(-7deg); }
@media (max-width: 767px) {
  .cl__ph--a { left: auto; inset-inline-start: 4%; }
  .cl__ph--b { right: auto; inset-inline-end: 4%; }
}

/* ═══ amounts the scripts write ("+$40.50", "−$25.00"): isolated left to right so the sign stays in front of
   the dollar sign; their alignment re-stated, since an ltr box would otherwise align to the left ═══ */
.wal__amt, .wal__log b, .fc__y em, .tkt em, .pcf__big, .sp__big, .sp__mid, .sp__row dd, .rmap__amt { direction: ltr; unicode-bidi: isolate; }
.wal__amt, .fc__y em, .tkt em, .pcf__big, .sp__big, .sp__row dd, .rmap__amt { text-align: right; }
.wal__log b, .sp__mid { text-align: left; }
@media (max-width: 520px) { .sp__mid { text-align: right; } }
