@font-face {
  font-family: 'ResumeField Arabic';
  src: url('/ar/assets/fonts/noto-sans-arabic-ui.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
html[lang='ar'] body,
html[lang='ar'] :is(button,input,textarea,select,h1,h2,h3,h4,h5,h6,p,a,span,li,summary) {
  font-family: 'ResumeField Arabic', Manrope, Arial, sans-serif;
  letter-spacing: normal;
}
html[lang='ar'] body { direction: rtl; }
html[lang='ar'] :is(p,li) { line-height: 1.85; }
html[lang='ar'] :is(h1,h2,h3,h4) { line-height: 1.4; }
html[lang='ar'] .home-hero .hero-copy h1 { line-height: 1.35; letter-spacing: normal; }
html[lang='ar'] .logo { direction: ltr; }
html[lang='ar'] :is(input[type='email'],input[type='url'],.profile-card-initials) { direction: ltr; unicode-bidi: isolate; }
html[lang='ar'] :is(.paper-contact,.profile-card-location) { unicode-bidi: plaintext; }
html[lang='ar'] :is(.button,.text-link) svg { transform: scaleX(-1); }
html[lang='ar'] .blueprint-example { border-left: 0; border-right: 2px solid #a7ca7a; }
html[lang='ar'] [data-locale-style='margin-top-26'] { margin-top: 26px; }
html[lang='ar'] .resume-paper { direction: rtl; text-align: right; }
html[lang='ar'] .paper-job ul { padding-left: 0; padding-right: 14px; }
html[lang='ar'] .article-sidebar nav { border-left: 0; border-right: 1px solid #d8e2d0; padding-left: 0; padding-right: 19px; }
html[lang='ar'] .guide-summary li { border-left: 0; border-right: 1px solid #ceddbe; padding-left: 0; padding-right: 22px; }
/* Keep supporting-column decoration beside the mirrored Arabic columns. */
html[lang='ar'] .resume-atlas :is(.paper-skills,.paper-education) {
  border-right: 0; padding-right: 0;
  border-left: 1px solid #dbd6cb; padding-left: 12px;
}
html[lang='ar'] .resume-axis :is(.paper-skills,.paper-education) {
  border-left: 0; padding-left: 0;
  border-right: 1px solid #d3d7e3; padding-right: 12px;
}
html[lang='ar'] .resume-gridline {
  background: linear-gradient(270deg,#edf2e8 34%,white 34%);
}
html[lang='ar'] :is(.resume-paper,.mini-paper) :is(h3,h4,p,span,strong,li) {
  font-family: 'ResumeField Arabic', Manrope, Arial, sans-serif;
  letter-spacing: normal;
}
/* Keep the Arabic noun phrase together within the original three-line hero. */
html[lang='ar'] .home-hero .hero-copy h1 {
  font-size: clamp(52px, 6.3vw, 94px);
}
@media (max-width: 600px) {
  html[lang='ar'] .home-hero .hero-copy h1 {
    font-size: clamp(44px, 13.3vw, 52px);
  }
}
html[lang='ar'] .locale-ltr-term {
  direction: ltr; unicode-bidi: isolate; white-space: normal; display: inline-block; max-width: 100%;
}
html[lang='ar'] h1 .locale-ltr-term { font-size: .72em; white-space: nowrap; }
html[lang='ar'] .locale-date-range,
html[lang='ar'] .paper-job span { direction: ltr; unicode-bidi: isolate; }
html[lang='ar'] .locale-date-range { white-space: nowrap; }
@media print {
  /* Preserve Arabic characters in Chrome's PDF text mapping. Joining forms
     remain enabled; only glyph substitutions that reverse clusters are off. */
  html[lang='ar'] .resume-printing #editable-preview,
  html[lang='ar'] .resume-printing #editable-preview * {
    font-feature-settings: 'rlig' 0, 'liga' 0, 'clig' 0;
  }
}
@media print {
  /* Keep decorative resume headers and their RTL text in one PDF paint group. */
  html[lang='ar'] .resume-printing .paper-header { isolation: isolate; }
}
/* Fieldnote uses the same mirrored supporting-column grid as Column. */
html[lang='ar'] .resume-fieldnote {
  background: linear-gradient(270deg,#eee6e0 34%,#fff 34%);
}
