/* ══════════════════════════════════════════════════════════════════
   Arabic font + RTL foundation
   Scoped entirely to [dir="rtl"] / html[lang="ar"] — no effect on
   English/LTR rendering. See Part 1 audit + Part 2 for background.
   ══════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'GE SS Two';
    src: url('../fonts/ge-ss-two-light.otf') format('opentype');
    font-weight: 300 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GE SS Two';
    src: url('../fonts/ge-ss-two-medium.otf') format('opentype');
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GE SS Two';
    src: url('../fonts/ge-ss-two-bold.otf') format('opentype');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

html[lang="ar"] body {
    font-family: 'GE SS Two', 'Cairo', sans-serif;
}

/* Arabic script has no concept of uppercase and wide letter-spacing
   breaks glyph joining — confirmed by the supplied Arabic reference,
   which explicitly disables both for the same class names. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .r-project-overview-label {
    letter-spacing: normal;
    text-transform: none;
}

/* Decorative watermark text/circle — physical corner placement,
   mirror so they anchor to the same reading-flow corner in RTL.
   (.r-project-system-dots and .r-project-hero__dots are full-bleed
   background patterns via inset:0 — nothing to mirror there.) */
[dir="rtl"] .r-project-hero__watermark {
    left: auto;
    right: -20px;
}

[dir="rtl"] .r-project-watermark-section--system {
    right: auto;
    left: -10px;
}

[dir="rtl"] .r-project-system-deco-circle {
    left: auto;
    right: -60px;
}

/* External-link / arrow icons stay as-is intentionally — diagonal
   "opens externally" arrows and the dropdown caret are direction-
   agnostic and should NOT be mirrored. Logos and imagery are also
   left untouched per Part 1 scope. */

/* input[type="tel"] is forced to direction:ltr by the browser's own UA
   stylesheet regardless of the [dir="rtl"] ancestor (confirmed: text/
   email inputs correctly inherit rtl; the tel input alone computes ltr).
   That's the right call for the digits themselves — direction:ltr keeps
   a typed number's internal digit order correct — but it does NOT mean
   the field has to be left-aligned. text-align:right here just parks the
   (still LTR-ordered) text block against the right edge, matching every
   other RTL field's placeholder position; the wide icon-clearance
   padding stays pinned to the left physically since it's evaluated in
   the input's forced-ltr context, not the page's rtl one. */
[dir="rtl"] .r-form-input[type="tel"] {
    padding-left: 52px;
    padding-right: 22px;
    text-align: right;
}

[dir="rtl"] .r-form-input[type="tel"]::placeholder {
    text-align: right;
}
