/* Logical layout for locale drafts and future validated RTL pages. */
html[dir="rtl"] .reference-header,
html[dir="rtl"] .reference-main-nav,
html[dir="rtl"] .world-footer-navigation { direction: rtl; }
html[dir="rtl"] .place-panel,
html[dir="rtl"] .world-footer { text-align: start; }
html[dir="rtl"] .place-map { direction: ltr; }
html[dir="rtl"] .place-local-time,
html[dir="rtl"] .place-zone bdi,
html[dir="rtl"] .place-coordinates { unicode-bidi: isolate; }
html[dir="rtl"] .reference-language-chevron { transform: scaleX(-1); }
bdi[dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
#preview-menu input { box-sizing: border-box; max-inline-size: 100%; inline-size: 100%; }
.reference-main-nav span { margin-inline: .4rem; }

#preview-menu { margin-block: 1.5rem; }
#preview-menu label { display: block; margin-block-end: .5rem; line-height: 1.6; }
button.reference-language-link { background: transparent; color: inherit; border: 1px solid #53616e; border-radius: 6px; padding: .5rem; font: inherit; cursor: pointer; }
/* Public locale layout; keep geographic projections and numeric offsets LTR. */
html[dir="rtl"] .city-card, html[dir="rtl"] .city-search-wrap,
html[dir="rtl"] .language-directory-item { text-align: start; }
html[dir="rtl"] .digital-time, html[dir="rtl"] .city-time { direction: ltr; unicode-bidi: isolate; }
.world-footer-navigation { flex-wrap: wrap; gap: 1rem; }
html[dir="rtl"] .reference-main-nav, html[dir="rtl"] .world-footer-navigation { flex-wrap: wrap; }
html[lang="ar"] .reference-header, html[lang="zh-Hans"] .reference-header { letter-spacing: normal; }
.city-results { overflow-wrap: anywhere; }
.he-home .time-panel[data-reference-label]::before { content: attr(data-reference-label) !important; }
html[dir="rtl"] .time-panel::before { letter-spacing: normal; }
html[dir="rtl"] .city-difference { direction: ltr; unicode-bidi: isolate; }
/* Brahmic scripts require joined shaping without decorative letter spacing. */
html:is([lang="hi"],[lang="bn"]) :is(h1,h2,h3,.editorial-kicker,.place-kicker,.reference-header,.city-country,.place-clock-label,.world-footer-brand small) { letter-spacing: normal; }
/* Preserve joined glyphs in the additional Indic, Arabic and Southeast Asian scripts. */
html:is([dir="rtl"],[data-script="Deva"],[data-script="Beng"],[data-script="Taml"],[data-script="Telu"],[data-script="Knda"],[data-script="Mlym"],[data-script="Orya"],[data-script="Khmr"],[data-script="Mymr"],[data-script="Thai"],[data-script="Ethi"],[data-script="Guru"]) :is(h1,h2,h3,.editorial-kicker,.place-kicker,.city-country,.place-clock-label,.world-footer-brand small) { letter-spacing: normal; }
