/* Multilingual layer for refina.ae, loaded after core.css on every page that has language counterparts.
   Holds the extra letter sets of the house typeface and the right to left
   adjustments for Arabic. Rules in memory/multilingual/MASTER-MULTILINGUAL-DIRECTIVE.md. */

/* Cormorant Garamond, Cyrillic and Latin Extended sets (variable font, Google Fonts v21, downloaded 18 November 2026).
   core.css carries the Latin set, so each language loads only the letters it uses. Each face repeats the exact
   style and weight of a core.css face (normal 300, 400 and 500, italic 300 and 400), so the browser joins the sets
   by unicode range. A weight range here would outrank the Latin faces and drop English text to a fallback serif. */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/cormorant-garamond-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/cormorant-garamond-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

/* The Language control is a header disclosure styled with Share and Menu in core.css, decision D23. */

/* Arabic. A paired Arabic typeface carries the display and text roles (provisional choice, open for Hamad). */
:root:lang(ar) {
  --font-display: 'Noto Naskh Arabic', 'Cormorant Garamond', Georgia, serif;
  --font-text: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
}
:lang(ar) body, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4, :lang(ar) p, :lang(ar) a, :lang(ar) span, :lang(ar) li, :lang(ar) blockquote, :lang(ar) summary, :lang(ar) cite, :lang(ar) small {
  letter-spacing: 0;
  font-style: normal;
}
:lang(ar) [lang]:not([lang="ar"]) { letter-spacing: normal; }
/* Naskh letters rise and fall further than Latin, so display headings take looser leading to keep every dot inside clipped boxes. */
:lang(ar) :is(h1, h2, h3, blockquote, .positioning-headline, .home-cta-headline) { line-height: 1.6; }
/* The 404 heading sets its leading in an inline style, which outranks the rule above, so its wrapped Naskh lines met (edge case E55). */
:lang(ar) .page-404 main h1 { line-height: 1.6 !important; }
:lang(ar) .parallax-word { padding-block: 0.08em; }
/* Naskh's metric box is about 1.7 times the font size, so headings pad it inside any clipped box. */
:lang(ar) :is(h1, h2, h3) { padding-block: 0.06em; }

/* Right to left. The header controls keep the physical order of every language (D23, core.css), so the panels keep
   their anchors and only their text reads from the right. */
[dir="rtl"] .nav-mobile-list a { text-align: right; }
[dir="rtl"] .nav-disclosure.share-disclosure .nav-mobile-list a { text-align: right; }
[dir="rtl"] [aria-hidden="true"]:is(.methodology-cta-link span, .insights-cta-link span) { display: inline-block; transform: scaleX(-1); }
/* Directional arrows point the reading way and their hover movement runs the same way. */
/* Every card arrow is centred, so the mirror turns it in place. */
[dir="rtl"] .pillar-arrow { transform: scaleX(-1); }
[dir="rtl"] .rec-q { unicode-bidi: plaintext; }
[dir="rtl"] .stat-number[data-counter] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .pillar-card:hover .pillar-arrow { transform: translateX(-4px) scaleX(-1); }
/* The Services hub link clips its gradient to its text, which ignores a mirror, so Arabic hides the right arrow and draws a left one in its place. */
[dir="rtl"] .svc-enter-arrow { position: relative; visibility: hidden; }
[dir="rtl"] .svc-enter-arrow::before { content: '\2190'; position: absolute; inset: 0; visibility: visible; background: linear-gradient(to bottom, #f0d898 0%, #d4bc7a 50%, #caaf73 100%); -webkit-background-clip: text; background-clip: text; }
[dir="rtl"] .svc-glass-link:hover .svc-enter-arrow { transform: translateX(-6px); }
[dir="rtl"] .work-list-arrow { transform: translateX(8px) scaleX(-1); }
[dir="rtl"] .work-list-item:hover .work-list-arrow { transform: scaleX(-1); }
@media (max-width: 768px) {
  [dir="rtl"] .work-list-arrow { transform: scaleX(-1); }
}

/* Arabic text orientation, directive sections 28.6 to 28.6.4 and memory/multilingual/registers/rtl-orientation-register.md.
   core.css states text alignment, last lines and the leading rules, indents and markers of quotes and lists in logical
   terms, so each starts on the right here and centred or justified copy keeps the English treatment. The rules below
   cover what core.css cannot state logically. */
/* The Work page's featured case study carries its accent rule in an inline style on the left; Arabic takes it on the right. */
[dir="rtl"] .work-list-item[style*="border-left"] { border-left: 0 !important; padding-left: 0 !important; border-right: 3px solid var(--c-accent) !important; padding-right: clamp(1rem, 3vw, 2rem) !important; }
/* The service page introductions set a left final line in an inline style; Arabic ends it at the logical start. */
[dir="rtl"] p[style*="text-align-last:left"] { text-align-last: start !important; }
/* A parent that clips its gradient to its text paints a child arrow unmirrored, so each mirrored arrow clips its own gradient. */
[dir="rtl"] :is(.methodology-cta-link, .insights-cta-link) > span[aria-hidden="true"] { background-image: var(--c-accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* The legal pages indent their lists with a physical left padding in core.css, so Arabic moves it to the right with the
   markers (edge case E39). Their cookie tables set the header alignment and the outer cell padding in inline styles on
   the left, so the first column's text sits flush with the table's start edge; Arabic mirrors both (edge case E40). */
[dir="rtl"] .legal-body :is(ul, ol) { padding-left: 0; padding-right: var(--s4); }
/* Any table cell that sets left alignment in an inline style, the legal cookie tables and the text columns of the numeric
   tables in the Dubai research articles, starts on the right in Arabic (edge cases E40 and E49). */
[dir="rtl"] :is(th, td):is([style*="text-align:left"], [style*="text-align: left"]) { text-align: start !important; }
[dir="rtl"] .legal-body tr > :first-child { padding-left: var(--s2) !important; padding-right: 0 !important; }
[dir="rtl"] .legal-body tr > :last-child { padding-left: 0 !important; padding-right: var(--s2) !important; }
/* A translated word longer than a phone's line, such as the Russian конфиденциальности in the privacy notice heading at
   320 and 375 pixels, breaks inside the heading instead of running past the page edge, where the root clips it (edge case
   E48). It acts only on a word that cannot fit, so every heading that fits keeps its lines; English is untouched. */
:root:not(:lang(en)) :is(h1, h2, h3) { overflow-wrap: break-word; }
/* The Dubai sector accent line brightens in the reading direction. */
[dir="rtl"] .sector-accent-line { background: linear-gradient(to left, var(--c-accent), var(--c-accent-light)); }
/* The homepage marquee row starts on the right in Arabic, so it travels to the right and its second set enters from the left. */
@keyframes marquee-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: no-preference) {
  [dir="rtl"] .marquee-inner { animation-name: marquee-scroll-rtl; }
}
/* The Insights carousels (related articles, the hub's articles and testimonials) run from the right in Arabic, so Previous
   sits on the right and Next on the left, each chevron points the way it moves and its heartbeat nudges outward (edge case
   E33). The independent scale property flips the chevron without touching its rotate and hover transforms. */
[dir="rtl"] .carousel-btn.carousel-btn--prev, [dir="rtl"] .page-insights :is(.insights-carousel-wrap, .testimonials-carousel-wrap) .carousel-arrow--prev { left: auto; right: 0; justify-content: flex-end; padding-left: 0; padding-right: 4.5px; --hb-dir: 1; }
[dir="rtl"] .carousel-btn.carousel-btn--next, [dir="rtl"] .page-insights :is(.insights-carousel-wrap, .testimonials-carousel-wrap) .carousel-arrow--next { right: auto; left: 0; justify-content: flex-start; padding-right: 0; padding-left: 4.5px; --hb-dir: -1; }
[dir="rtl"] .carousel-arrow__chevron { scale: -1 1; }
