/* Arabic layer. Loaded only by ar.html, after styles.css.
   It changes nothing about the design: it supplies an Arabic typeface, gives Arabic
   the line height it needs, and mirrors the few rules that were written left-to-right. */
@font-face{font-family:"Noto Kufi Arabic";src:url("fonts/noto-kufi-arabic-var.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

html[dir="rtl"] body{font-family:"Noto Kufi Arabic","Archivo",Tahoma,sans-serif;line-height:1.85}
html[dir="rtl"] .phone{font-family:"Noto Kufi Arabic","Archivo",Tahoma,sans-serif}
html[dir="rtl"] .ph-google{font-family:"Noto Kufi Arabic",Tahoma,Arial,sans-serif}

/* Arabic letters join, so tracking is off; its ascenders and marks need taller lines */
html[dir="rtl"] *{letter-spacing:0!important}
html[dir="rtl"] .reveal,html[dir="rtl"] .press p{font-style:normal}
html[dir="rtl"] .press p[lang="en"]{font-family:"Archivo",sans-serif;font-style:italic;text-align:right;text-wrap:pretty}
html[dir="rtl"] .press p.press-tr{font-size:.8em;font-weight:500;color:var(--mute);margin-top:8px;line-height:1.6}
html[dir="rtl"] .who-name{line-height:1.15;margin-left:0}
html[dir="rtl"] .leak-lead{line-height:1.35}
html[dir="rtl"] .check-title,html[dir="rtl"] .channels-title,html[dir="rtl"] .matrix-title,html[dir="rtl"] .log-title,html[dir="rtl"] .certs-title,html[dir="rtl"] .debrief-title{line-height:1.3}
html[dir="rtl"] .decoy-title{line-height:1.25;font-size:clamp(38px,6.4vw,118px)}
@media (min-width:768px){html[dir="rtl"] .decoy-title{max-width:none}}
html[dir="rtl"] .verdict,html[dir="rtl"] .finale{line-height:1.45}
html[dir="rtl"] .gift-title,html[dir="rtl"] .plan-fold > summary,html[dir="rtl"] .asks > summary,html[dir="rtl"] .finale-line{line-height:1.35}
html[dir="rtl"] .win-num,html[dir="rtl"] .plan-steps .days,html[dir="rtl"] .track .yr{line-height:1.3}
html[dir="rtl"] .win-num{font-size:clamp(24px,2.3vw,40px);white-space:normal;text-align:right}
html[dir="rtl"] .lead-num{line-height:1.1}
html[dir="rtl"] .ph-head{line-height:1.3;font-size:clamp(22px,1.9vw,30px)}
html[dir="rtl"] .ph-sub{line-height:1.5}
html[dir="rtl"] .quiz p,html[dir="rtl"] .fold summary b{line-height:1.6}
html[dir="rtl"] .offer .face{line-height:1.35}
html[dir="rtl"] .offer .back{line-height:1.5}
html[dir="rtl"] .short{line-height:1.8}
html[dir="rtl"] .short h2{line-height:1.3}

/* Arabic needs more size than Latin at the same pixel value: small print and the key line read clearly */
html[dir="rtl"] .ad-fine,html[dir="rtl"] .cert-date,html[dir="rtl"] .funnel-note,html[dir="rtl"] .plan-fine,html[dir="rtl"] .sad-tag,html[dir="rtl"] .offer-tag{font-size:14px}
html[dir="rtl"] .press p{line-height:1.45}
html[dir="rtl"] .aside,html[dir="rtl"] .ad-side .ad-why,html[dir="rtl"] .cert-name,html[dir="rtl"] .win-note,html[dir="rtl"] .decoy-hint,html[dir="rtl"] .offer-base{line-height:1.6}
/* mirrored rules */
html[dir="rtl"] .reveal{border-left:0;border-right:3px solid var(--line);padding-left:0;padding-right:18px}
html[dir="rtl"] .ad-side .ad-why{border-left:0;border-right:3px solid var(--line);padding-left:0;padding-right:16px}
html[dir="rtl"] .ladder-list li{margin-left:0;margin-right:calc(var(--i) * clamp(8px,2.4vw,34px));border-left:0;border-right:3px solid var(--sun)}
html[dir="rtl"] .asks .fold p{padding-left:0;padding-right:50px}
/* lessons: Kufi 600 red tag at the 14px Arabic minimum; l1 Kufi 800, l2 Kufi 500 with room for Arabic marks */
html[dir="rtl"] .tag{font-size:14px;text-transform:none;letter-spacing:0;line-height:1.7}
html[dir="rtl"] .lesson .l1{font-size:var(--t-l1);font-weight:800;line-height:1.55}
html[dir="rtl"] .lesson .l2{font-size:var(--t-l2);font-weight:500;line-height:1.8}
html[dir="rtl"] .aside{right:auto;left:var(--gutter)}
html[dir="rtl"] .dots{right:auto;left:18px;justify-items:end}
html[dir="rtl"] .dots button{min-height:41px}
html[dir="rtl"] .dots button span{right:auto;left:20px}
html[dir="rtl"] .skip{left:auto;right:-999px}
html[dir="rtl"] .skip:focus{left:auto;right:8px}
html[dir="rtl"] .row button{text-align:right}
html[dir="rtl"] .short ul{padding-left:0;padding-right:1.2em}
html[dir="rtl"] .short-roles{padding-right:0!important}
html[dir="rtl"] .paint-off{right:auto;left:var(--gutter)}
html[dir="rtl"] .ph-rail{right:auto;left:10px}
html[dir="rtl"] .ph-chev{rotate:-135deg}
html[dir="rtl"] .ph-handle{unicode-bidi:plaintext}
html[dir="rtl"] .g-rest i{background-position-x:100%}
html[dir="rtl"] .ad-tag{rotate:4deg;font-size:14px}
html[dir="rtl"] .track{scroll-padding-left:0;scroll-padding-right:var(--gutter)}

html[dir="rtl"] .pair .from{margin-right:0;margin-left:.5em}
html[dir="rtl"] .debug-log li span:nth-child(2){direction:ltr;text-align:right}
html[dir="rtl"] .ph-top span{unicode-bidi:plaintext;text-align:right}
/* the Google breadcrumb reads right to left: brand first, then the category */
html[dir="rtl"] .ph-cta span:not(.ph-swipe){unicode-bidi:plaintext}

@media (max-width:767px){
  html[dir="rtl"] body{font-size:18px}
  html[dir="rtl"] .bar{font-size:14px;padding-left:14px;padding-right:14px}
  html[dir="rtl"] .bar *{white-space:nowrap}
  html[dir="rtl"] .bar-links{gap:12px}
}
@media (max-width:380px){
  html[dir="rtl"] .bar{padding-left:12px;padding-right:12px}
  html[dir="rtl"] .bar-links{gap:8px}
}
/* narrow phones: long company names in the CV may wrap rather than run past the card */
@media (max-width:380px){
  html[dir="rtl"] .short-roles .nb{white-space:normal}
}
/* the Arabic CV fits one A4 page */
/* v38: the Arabic CV prints in the system's Arabic face: Kufi's shaped letters come out of the PDF as unreadable text (even as a
   static instance), so applicant systems could not find his name. Print only; the screen keeps Kufi */
@media print{html[dir="rtl"] .short{line-height:1.5;font-family:"Geeza Pro","SF Arabic","Archivo",Tahoma,sans-serif}}
html[dir="rtl"] .bar-who{font-size:15px;font-weight:700}
/* the dots under ي and ب stay inside the chip box */
html[dir="rtl"] .who-nm{line-height:1.7}
/* v34: the bar switch, the intro lines and the one contact block, in Kufi with the line height it needs */
html[dir="rtl"] .bar-mode,html[dir="rtl"] .bar-ct{line-height:1.7}
html[dir="rtl"] .bar-mode::before{background:radial-gradient(circle at 18px 50%,var(--ink-2) 4px,transparent 4.5px)}
html[dir="rtl"] .bar-mode[aria-pressed="true"]::before{background:radial-gradient(circle at 8px 50%,var(--ink) 4px,transparent 4.5px) var(--sunwash)}
html[dir="rtl"] .who-role,html[dir="rtl"] .who-map{line-height:1.7}
html[dir="rtl"] .contact .ct b{line-height:1.6}
html[dir="rtl"] .finale-note,html[dir="rtl"] .ct-note{line-height:1.8}
html[dir="rtl"] .bk-verdict{line-height:1.7}
html[dir="rtl"] .bk-tab{line-height:1.6}
html[dir="rtl"] .bk-end,html[dir="rtl"] .did-list li{line-height:1.8}

/* v20 moments, mirrored: the envelope's seal, the career thread, the stamp's turn */
html[dir="rtl"] .sealed{padding:22px 64px 16px 18px}
html[dir="rtl"] .sealed::after{left:auto;right:16px}
html[dir="rtl"] .knot summary::before{left:auto;right:0}
html[dir="rtl"] .track li::before{right:0;left:calc(-1 * clamp(24px,3vw,48px))}
html[dir="rtl"] .track li:last-child::before{left:0}
html[dir="rtl"] .track li.end-job::before{left:0}
html[dir="rtl"] .track li.side::after{right:0;left:calc(-1 * clamp(24px,3vw,48px))}
html[dir="rtl"] .track li.side-end::after{right:5px;border-left:0;border-right:4px dashed var(--sadu)}
html[dir="rtl"] .track li.side:last-child::after{left:0}
html[dir="rtl"] .stage-h{left:auto;right:24px}
html[dir="rtl"] .track.is-weaving li::before{transform-origin:100% 50%}
html[dir="rtl"] .side-tag summary{left:auto;right:24px;top:17px;font-size:13px;line-height:18px}
/* the career thread and its side line run down the right edge (v41: at every width) */
@media all{
  html[dir="rtl"] .knot summary::before{right:-26px}
  html[dir="rtl"] .side-tag summary{font-size:14px;line-height:18px}
  html[dir="rtl"] .track li::before{right:-22px;left:auto}
  html[dir="rtl"] .track li:last-child::before{left:auto}
  html[dir="rtl"] .track li.end-job::before{left:auto}
  html[dir="rtl"] .track li.side::after,html[dir="rtl"] .track li.side-end::after{right:-32px;left:auto;border-left:0;border-right:4px dashed var(--sadu)}
  html[dir="rtl"] .track li.side:last-child::after{left:auto}
  html[dir="rtl"] .track.is-weaving li::before{transform-origin:50% 0}
}
/* v36 the certificates' one stamp turns the other way, and the red line under «45» draws from the right */
html[dir="rtl"] .cert-seal{transform:rotate(6deg)}
html[dir="rtl"] .offer .back b{background-position:100% 100%}
html[dir="rtl"] .sc-l span{font-size:14px;line-height:1.5}
html[dir="rtl"] .why summary{font-size:15px}
html[dir="rtl"] .knot-name{font-size:1.1em;line-height:1.5}
html[dir="rtl"] .who-back svg{transform:scaleX(-1)}
@media (hover:hover){html[dir="rtl"] .who-back:hover svg{transform:scaleX(-1) translateX(-3px)}}
html[dir="rtl"] .sym-tag{line-height:18px}
html[dir="rtl"] .plan-steps .how summary,html[dir="rtl"] .fact{line-height:1.6}
/* v21 the doors: Kufi labels, and the flap's teeth start from the right like the rest of the weave */
html[dir="rtl"] .door{font-family:"Noto Kufi Arabic","Archivo",Tahoma,sans-serif;font-size:16px;line-height:1.5;padding-block:12px 8px}
html[dir="rtl"] .door::before{background-position:100% 0}
@media (max-width:389px){html[dir="rtl"] .door{font-size:14px;padding-inline:7px}}
/* v21 the recruiter card: Kufi copy, Latin figures; «مليون ريال» falls to Kufi under the big number */
html[dir="rtl"] .hire{line-height:1.7}
html[dir="rtl"] .hire h2{letter-spacing:0;line-height:1.4}
html[dir="rtl"] .hire-nums .fact{font-family:"Archivo","Noto Kufi Arabic",sans-serif}
html[dir="rtl"] .hire-nums .fact .unit{font-family:"Noto Kufi Arabic",sans-serif;font-size:14px;font-weight:700;letter-spacing:0;margin-inline-start:2px}
html[dir="rtl"] .hire-nums li>span{font-size:14px;line-height:1.6}
/* small phones: the long Arabic facts take the whole row, the label sits under its fact */
@media (max-width:479px){html[dir="rtl"] .hire-nums{grid-template-columns:minmax(0,1fr);row-gap:2px}html[dir="rtl"] .hire-nums li>span{margin-bottom:8px}}
/* v22 the budget chips: the result line in Kufi needs more room between lines */
html[dir="rtl"] .budget-out{line-height:1.6}
/* v23 the kashida clock: the tatweel is drawn by CSS (app.ar.js sets data-k, 0 to 4, one a second) */
html[dir="rtl"] .kash::before{content:attr(data-k)}
/* desktop: the line is sized so the fully stretched word still fits one line in its column (no wrap, no jump) */
/* v23 fast scroll: Arabic headings get bolder instead of narrower. A stroke thickens the letters without widening them, so no line re-breaks */
html[dir="rtl"] :is(h1,h2,.who-name,.verdict){-webkit-text-stroke:calc(var(--bold,0) * .03em) currentColor}
/* v23 Arabic sizes: nothing under 14px; phone lesson second lines at 18px */
html[dir="rtl"] .row button em{font-size:14px}
html[dir="rtl"] .dots button{font-size:14px}
@media (max-width:767px){html[dir="rtl"]{--t-l2:18px}html[dir="rtl"] .ghost-bar{font-size:14px}}
/* v27 the proof page: Kufi line heights and the 14px Arabic floor (v23) */
html[dir="rtl"] .pf-title{line-height:1.25}
html[dir="rtl"] .pf h2{line-height:1.35}
html[dir="rtl"] .pf-q blockquote p{line-height:1.6}
html[dir="rtl"] :is(.dash,.dash-kpi span,.pf-fine,.pf-voice){font-size:14px}
/* the TikTok sticker lines stay apart so no white box covers the dots of the line above */
html[dir="rtl"] .ph-tt .ph-art .ph-head{line-height:1.9}
html[dir="rtl"] .ph-tt .ph-art .ph-head span{padding-block:0}
/* v34: the «جرّب» bubble centres on the first tile from the right */
html[dir="rtl"] .tile-try{translate:50% 0}
