/* PSS languages: menu, suggestion bar, scripts that need their own fonts, right-to-left layout. */
.pss-lang { position: relative; margin-left: 8px; }
.pss-lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--pss-line); border-radius: 12px; cursor: pointer; font: 700 13px var(--pss-body); color: var(--pss-ink); }
.pss-lang summary::-webkit-details-marker { display: none; }
.pss-lang summary:hover, .pss-lang[open] summary { border-color: var(--pss-blue); color: var(--pss-blue); }
.pss-lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 8px; list-style: none; background: var(--pss-surface); border: 1px solid var(--pss-line); border-radius: 14px; box-shadow: var(--pss-shadow); display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 32px); }
.pss-lang a, .pss-lang-foot a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--pss-ink); text-decoration: none; font: 600 14.5px var(--pss-body); }
.pss-lang a:hover { background: var(--pss-chip); color: var(--pss-blue); }
.pss-lang a[aria-current="true"] { background: var(--pss-chip); color: var(--pss-blue); }
.pss-lang-code { display: inline-block; min-width: 26px; font: 600 11px var(--pss-mono); color: var(--pss-muted); }
.pss-lang-foot ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.pss-lang-foot a { padding: 4px 8px; font-size: 13.5px; color: inherit; opacity: .85; }
.pss-lang-foot a[aria-current="true"] { opacity: 1; text-decoration: underline; }
.pss-lang-foot .pss-lang-code { display: none; }
.pss-lang-offer { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: var(--pss-blue); color: #fff; font: 600 15px var(--pss-body); }
.pss-lang-offer a { color: #fff; text-decoration: underline; }
.pss-lang-offer button { background: transparent; border: 1px solid rgba(255, 255, 255, .6); color: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
@media (max-width: 1080px) { .pss-lang { margin-left: 4px; } .pss-lang summary { height: 38px; padding: 0 9px; } }
@media (max-width: 600px) { .pss-lang ul { grid-template-columns: 1fr 1fr; right: -60px; } .pss-lang summary span { display: none; } }
@media print { .pss-lang, .pss-lang-offer, .pss-lang-foot { display: none !important; } }

.pss-legal-note { margin: 24px auto 0; padding: 12px 16px; border-radius: 10px; background: var(--pss-chip); font-size: 14.5px; color: var(--pss-ink); }

/* Scripts with their own fonts */
html[lang="ar"] { --pss-body: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; --pss-display: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang="ur"] { --pss-body: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Segoe UI", sans-serif; --pss-display: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Segoe UI", sans-serif; }
html[lang="ur"] body { line-height: 2.1; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.9; }
html[lang="bn"] { --pss-body: "Noto Sans Bengali", "Manrope", system-ui, sans-serif; --pss-display: "Noto Sans Bengali", "Manrope", system-ui, sans-serif; }
html[lang="bg"], html[lang="uk"] { --pss-display: "Manrope", system-ui, sans-serif; }
html[lang="ar"] .pss-eyebrow, html[lang="ur"] .pss-eyebrow, html[lang="bn"] .pss-eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--pss-body); font-size: .9rem; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="bn"] h1, html[lang="bn"] h2 { letter-spacing: 0; }

/* Right to left (Arabic, Urdu) */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .pss-menu-toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .pss-lang { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .pss-lang ul { right: auto; left: 0; }
[dir="rtl"] .pss-ico-arrow, [dir="rtl"] .pss-more svg { transform: scaleX(-1); } /* Only arrows point the other way; ticks and pictures stay as they are. */
[dir="rtl"] .pss-brand { flex-shrink: 0; }
[dir="rtl"] .pss-toc { border-left: 0; border-right: 3px solid var(--pss-line); padding-left: 0; padding-right: 16px; }
[dir="rtl"] .pss-quote { border-left: 0; border-right: 4px solid var(--pss-blue); border-radius: var(--pss-radius) 0 0 var(--pss-radius); }
[dir="rtl"] ul, [dir="rtl"] ol { padding-right: 1.3em; padding-left: 0; }
[dir="rtl"] .pss-crumbs, [dir="rtl"] .pss-topbar-contact, [dir="rtl"] a[href^="tel:"], [dir="rtl"] .pss-mono { unicode-bidi: plaintext; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="number"] { direction: ltr; text-align: right; }
[dir="rtl"] .pss-dock { right: auto; left: 16px; }
[dir="rtl"] .pss-ai-panel, [dir="rtl"] .pss-ai { right: auto; left: 16px; }

/* Right to left: mirror the blueprint artwork, and shade the slide pictures behind the text (they contain lettering, so they are not mirrored). */
[dir="rtl"] .pss-hero { background-image: url("../img/hero-bg-rtl.jpg"); background-position: left center; }
[dir="rtl"] .pss-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(5, 7, 11, .94) 0%, rgba(5, 7, 11, .82) 48%, rgba(5, 7, 11, .2) 80%, rgba(5, 7, 11, 0) 100%); pointer-events: none; }
[dir="rtl"] .pss-slide .pss-wrap { position: relative; z-index: 1; }
[dir="rtl"] .pss-timeline { padding: 0 20px 0 0; border-left: 0; border-right: 2px solid var(--pss-line); }
[dir="rtl"] .pss-timeline li::before { left: auto; right: -27px; }
