/* Walidia landing pages: language add-on for the Arabic, Russian and Chinese drafts. Loaded after lp.css.
   Same rules as the main site (src/layouts/Layout.astro): the English layout is kept exactly; only the script
   faces, Arabic text direction, tracking, italics and heading leading change. */

/* Cyrillic: Cormorant Garamond's Cyrillic subset for display text, Manrope for Russian letters in body text. */
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:400 600;font-display:swap;src:url(https://walidiayachts.com/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:400 500;font-display:swap;src:url(https://walidiayachts.com/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:"Walidia Cyrillic Sans";font-style:normal;font-weight:400 800;font-display:swap;src:url(https://walidiayachts.com/fonts/manrope-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

/* Arabic: IBM Plex Sans Arabic for body text, Noto Naskh Arabic for display text, sized like the site. */
@font-face{font-family:"Walidia Arabic Sans";font-style:normal;font-weight:400;font-display:swap;size-adjust:112%;src:url(https://walidiayachts.com/fonts/ibm-plex-sans-arabic-400.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Walidia Arabic Sans";font-style:normal;font-weight:500;font-display:swap;size-adjust:112%;src:url(https://walidiayachts.com/fonts/ibm-plex-sans-arabic-500.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Walidia Arabic Sans";font-style:normal;font-weight:600;font-display:swap;size-adjust:112%;src:url(https://walidiayachts.com/fonts/ibm-plex-sans-arabic-600.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Walidia Arabic Sans";font-style:normal;font-weight:700 800;font-display:swap;size-adjust:112%;src:url(https://walidiayachts.com/fonts/ibm-plex-sans-arabic-700.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Walidia Arabic Display";font-style:normal;font-weight:400 600;font-display:swap;size-adjust:80%;src:url(https://walidiayachts.com/fonts/noto-naskh-arabic-400-600.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}

/* Chinese: the site's Noto Serif SC subset for display text (missing characters fall back to the system serif),
   the system Chinese sans for body text. */
@font-face{font-family:"Walidia Chinese Display";font-style:normal;font-weight:400 600;font-display:swap;src:url(https://walidiayachts.com/fonts/noto-serif-sc-400.woff2) format("woff2");unicode-range:U+00B7,U+2014,U+2018-2019,U+201C-201D,U+2026,U+2E80-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}

html[lang=ru]{
  --font-display:"Walidia Figures","Cormorant Garamond",Georgia,serif;
  --font-body:"Plus Jakarta Sans","Walidia Cyrillic Sans",Arial,sans-serif;
}
html[lang=ar]{
  --font-display:"Walidia Figures","Cormorant Garamond","Walidia Arabic Display",Georgia,serif;
  --font-body:"Plus Jakarta Sans","Walidia Arabic Sans",Arial,sans-serif;
  --font-wordmark:"Walidia Wordmark","Walidia Arabic Display",var(--font-body);
  --font-tagline:"Walidia Tagline","Walidia Arabic Sans",var(--font-body);
}
html[lang=zh-CN]{
  --font-display:"Walidia Figures","Cormorant Garamond","Walidia Chinese Display","Songti SC","Noto Serif CJK SC","Source Han Serif SC",serif;
  --font-body:"Plus Jakarta Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
}

/* Arabic and Chinese are never tracked, and have no true italic. */
html[lang=ar] body *{letter-spacing:0!important}
/* The Latin lockup keeps its English tracking on the Chinese page. */
html[lang=zh-CN] body *:not(.brand,.brand *,.foot-word,.foot-tag,.foot-tag *,:lang(en)){letter-spacing:0!important}
html:is([lang=ar],[lang=zh-CN]) body :is(em,i){font-style:normal}
/* Their glyphs need more room than the tight Latin display leading. */
html:is([lang=ar],[lang=zh-CN]) body :is(h1,h2,h3,.title,.form-title,.done-title,.faq summary,.dest,.ticker span){line-height:1.3}
html[lang=zh-CN] body{line-break:strict}
html[lang=zh-CN] body :is(h1,h2,h3){word-break:normal}

/* Arabic keeps the English layout: boxes stay left to right, text inside them runs right to left. */
html[dir=rtl]{direction:ltr}
html[dir=rtl] body :is(h1,h2,h3,h4,p,li,dt,dd,label,summary,address,input,textarea,select,option,legend,.err-msg){direction:rtl}
html[dir=rtl] body :is(h1,h2,h3,h4,p,li,dt,dd,label,summary,address) :is(div,section,article,header,footer,nav,ul,ol,dl,form,details){direction:ltr}
/* Links and buttons are rows (label, icon): their parts keep the English order; the label reads right to left. */
html[dir=rtl] body :is(a,button){direction:ltr}
html[dir=rtl] body :is(a,button)>:not(div,ul,ol,nav,svg){direction:rtl}
:where(html[dir=rtl] body) :where(a,button,p,li,label,summary,address,h1,h2,h3){text-align:right}
/* Phone numbers, email addresses and the phone and email fields stay left to right. */
html[dir=rtl] body [dir=ltr][dir=ltr],html[dir=rtl] body :is(input[type=tel],input[type=email]){direction:ltr}
html[dir=rtl] body :is(input[type=tel],input[type=email]){text-align:left}
