/* Shivay Export — languages: region picker, script fonts, right-to-left (Arabic). Loaded after style.css + site.css. */

/* ---------- region / language picker (header) ---------- */
.rgn{position:relative;flex:none}
.rgn-btn{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 12px 0 8px;border-radius:999px;border:0;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font:600 14px/1 var(--bf);color:var(--ink);cursor:pointer;transition:box-shadow .2s,background .2s}
.rgn-btn:hover,.rgn.open .rgn-btn{box-shadow:inset 0 0 0 1.5px var(--green);background:#f6faf7}
.rgn-btn img{width:28px;height:20px;border-radius:4px;object-fit:cover;box-shadow:0 0 0 1px rgba(15,34,25,.12)}
.rgn-btn .rgn-c{display:none;font-weight:700;font-size:12.5px;letter-spacing:.04em;color:var(--muted)}
.rgn-btn svg{width:14px;height:14px;color:var(--muted);transition:transform .25s}
.rgn.open .rgn-btn svg{transform:rotate(180deg)}
.rgn-menu{position:absolute;top:calc(100% + 12px);right:0;z-index:70;width:290px;padding:10px;background:#fff;border-radius:20px;border:1px solid var(--line2);box-shadow:var(--sh2);opacity:0;visibility:hidden;transform:translateY(8px);transition:.22s}
.rgn.open .rgn-menu{opacity:1;visibility:visible;transform:none}
.rgn-h{margin:4px 8px 8px;font:700 11.5px/1.2 var(--bf);letter-spacing:.14em;text-transform:uppercase;color:var(--sun)}
.rgn-o{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:13px;color:var(--ink);transition:background .15s}
.rgn-o:hover{background:var(--paper2)}
.rgn-o.on{background:#e9f4ec}
.rgn-o img{width:34px;height:24px;border-radius:5px;object-fit:cover;flex:none;box-shadow:0 0 0 1px rgba(15,34,25,.12)}
.rgn-o span{flex:1;min-width:0}
.rgn-o b{display:block;font:600 14.5px/1.25 var(--bf)}
.rgn-o small{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}
.rgn-o .ck{width:18px;height:18px;color:var(--leaf);opacity:0}
.rgn-o.on .ck{opacity:1}
@media (max-width:1320px){.rgn-btn .rgn-l{display:none}.rgn-btn .rgn-c{display:inline}}
@media (max-width:1100px){
  .rgn{margin-left:auto}
  .burger{margin-left:10px}
}
@media (max-width:700px){
  .rgn-btn{height:44px;padding:0 10px 0 7px;gap:6px}
  .rgn-menu.rgn-sheet{position:fixed;top:auto;left:12px;right:12px;width:auto;bottom:12px;z-index:1001;max-height:calc(100svh - 24px);overflow-y:auto;overscroll-behavior:contain;border-radius:22px;transform:translateY(24px)}
  html.rgn-on .rgn-menu.rgn-sheet{opacity:1;visibility:visible;transform:none}
  html.rgn-on::after{content:"";position:fixed;inset:0;background:rgba(8,22,15,.45);z-index:1000}
}

/* ---------- fonts per script (Latin words keep the site fonts) ---------- */
html[lang=hi]{--hf:"Bricolage Grotesque","Noto Sans Devanagari",Inter,system-ui,sans-serif;--bf:Inter,"Noto Sans Devanagari",system-ui,sans-serif}
html[lang=hi] body{line-height:1.75}
html[lang=hi] h1,html[lang=hi] h2,html[lang=hi] h3,html[lang=hi] h4{line-height:1.3;letter-spacing:0}
html[lang=ar]{--hf:"Noto Sans Arabic","Bricolage Grotesque",system-ui,sans-serif;--bf:"Noto Sans Arabic",Inter,system-ui,sans-serif}
html[lang=ja]{--hf:"Bricolage Grotesque","Noto Sans JP",system-ui,sans-serif;--bf:Inter,"Noto Sans JP",system-ui,sans-serif}
html[lang=ja] body{line-break:strict;word-break:normal}
html[lang=ja] h1,html[lang=ja] h2,html[lang=ja] h3,html[lang=ja] .hero-lead,html[lang=ja] .btn,html[lang=ja] .pcard h3{word-break:auto-phrase}
html[lang=ja] h1,html[lang=ja] h2,html[lang=ja] h3,html[lang=ja] h4{letter-spacing:0;line-height:1.3}
@media (min-width:901px){html[lang=ja] body .hero h1{font-size:clamp(30px,3.2vw,50px)}}
html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3,html[lang=ar] h4{letter-spacing:0;line-height:1.35}
/* Arabic letters join, so no letter-spacing anywhere; uppercase labels have no case */
html[lang=ar] *{letter-spacing:0!important}
html[lang=hi] .eyebrow,html[lang=ja] .eyebrow,html[lang=hi] .pcard .pc,html[lang=ja] .pcard .pc,html[lang=hi] .rgn-h,html[lang=ja] .rgn-h{letter-spacing:.04em}
/* long German/French words wrap instead of overflowing */
html[lang=de] h1,html[lang=de] h2,html[lang=de] h3,html[lang=fr] h1,html[lang=fr] h2{hyphens:auto;overflow-wrap:anywhere}
html[lang=de] .hero h1,html[lang=fr] .hero h1{font-size:clamp(36px,4vw,60px)}
html[lang=hi] .hero h1,html[lang=ja] .hero h1,html[lang=ar] .hero h1{font-size:clamp(34px,4vw,58px)}
@media (max-width:700px){
  html[lang=de] .hero h1,html[lang=fr] .hero h1,html[lang=hi] .hero h1,html[lang=ja] .hero h1,html[lang=ar] .hero h1{font-size:clamp(26px,7.6vw,36px)}
}

/* ---------- right-to-left (Arabic) ---------- */
[dir=rtl] .topbar .tb-r{margin-left:0;margin-right:auto}
[dir=rtl] .nav{margin-left:0;margin-right:auto}
[dir=rtl] .rgn-menu{right:auto;left:0}
[dir=rtl] .btn svg[class~=i]:has(use[href="#i-arrow"]),[dir=rtl] .link svg,[dir=rtl] .cat .go svg,[dir=rtl] .pcard .pa .btn-o svg{transform:scaleX(-1)}
[dir=rtl] .link:hover svg{transform:scaleX(-1) translateX(4px)}
[dir=rtl] .hero-stats div{padding-right:0;padding-left:14px}
[dir=rtl] .hero-stats div+div{padding-left:14px;padding-right:16px;border-left:0;border-right:1px solid var(--line)}
[dir=rtl] .ticker,[dir=rtl] .lane-map,[dir=rtl] .stage,[dir=rtl] .sxl-sea{direction:ltr}
[dir=rtl] .pcard .hs{left:auto;right:12px}
[dir=rtl] .cat .cnt{left:auto;right:16px}
[dir=rtl] .cat .go{right:auto;left:14px;transform:rotate(45deg)}
[dir=rtl] .cat:hover .go{transform:none}
[dir=rtl] .wcard .n{right:auto;left:18px}
[dir=rtl] .qa summary i{margin-left:0;margin-right:auto}
[dir=rtl] .search svg{left:auto;right:18px}
[dir=rtl] .search input{padding:0 48px 0 18px}
[dir=rtl] .count{margin-left:0;margin-right:auto}
[dir=rtl] .fld select,[dir=rtl] .spec{background-position:left 12px center}
[dir=rtl] .fld select{padding-right:15px;padding-left:38px}
[dir=rtl] .spec th,[dir=rtl] .spec td{text-align:right}
[dir=rtl] .lane .ld{margin-left:0;margin-right:auto;text-align:left}
[dir=rtl] .dl-x{margin-left:0;margin-right:auto}
[dir=rtl] .ph-art{right:auto;left:28px}
[dir=rtl] .foot-bot .fb-est{text-align:left}
[dir=rtl] .drawer .dr-panel{right:auto;left:0;transform:translateX(-100%)}
[dir=rtl] .drawer.open .dr-panel{transform:none}
[dir=rtl] .fcard.f-a{left:auto;right:-6%}
[dir=rtl] .fcard.f-b{right:auto;left:-4%}
[dir=rtl] .fab{right:auto;left:20px}
@media (max-width:1100px){
  [dir=rtl] .rgn{margin-left:0;margin-right:auto}
  [dir=rtl] .burger{margin-left:0;margin-right:10px}
}
@media (max-width:900px){[dir=rtl] .foot-bot .fb-est{text-align:center}}
@media (max-width:700px){
  [dir=rtl] .step::before{left:auto;right:27px}
  [dir=rtl] .fab{left:16px}
  [dir=rtl] #catTabs,[dir=rtl] #ptabs{scroll-padding-inline:16px}
}
@media (max-width:700px){[dir=rtl] .rgn-menu.rgn-sheet{left:12px;right:12px}}

/* long hero heading typed in admin (live has 4 lines) — lines flow together, smaller size, accent line on its own row */
html body .hero h1.h-long{font-size:clamp(32px,3vw,48px);margin:18px 0 16px}
html body .hero h1.h-long .ln{display:inline}
html body .hero h1.h-long .ln.grad{display:block;margin-top:.08em}
@media (max-width:700px){
  html body .hero h1.h-long{font-size:clamp(23px,6.4vw,30px);margin:12px 0 8px}
  html body .hero h1.h-long .ln.grad{display:inline}
}
