/* Localized text flows naturally; clocks and geometric time axes stay left-to-right. */
/* Mirror the glass header with the RTL logo; keep clock numerals in reading order. */
html[dir="rtl"] .site-header:not(.on-body){background:linear-gradient(270deg,rgba(255,255,255,.96),rgba(235,247,255,.85) 34%,rgba(13,29,60,.34) 65%,rgba(3,15,38,.08))}
.hero-time-row,.city-card b,.world-times b,#timer-count{direction:ltr;unicode-bidi:isolate}
@media(min-width:768px){
 html:lang(zh) .hero-copy{container-type:inline-size}
 html:lang(zh) .hero-copy h1{font-size:clamp(36px,17cqi,64px);line-height:1.12}
}
:where(.city-page,.seo-page) :where(button,a,input,select){font-family:inherit}
:where(.city-page,.seo-page) :where(h1,h2,h3,p,a,button){overflow-wrap:anywhere}
:where(.clock-line,[data-clock],[data-offset],.zone-value,.iana-name,.row-selected strong,#hero-sunrise,#hero-sunset,#sunrise,#sunset,#solar-noon,#weather-temperature,#hero-weather-temperature){direction:ltr;unicode-bidi:isolate}
:where(.asset-icon,.flag,.line-icon){flex-shrink:0}
html[dir="rtl"] body{letter-spacing:normal}
html[dir="rtl"] :where(.eyebrow,.kicker,.language-menu-heading){letter-spacing:normal}
html[dir="rtl"] :where(.input-like,.city-select,.compare-search,.transport-links a,.article-toc,.side-nav,.language-option){text-align:start}
html[dir="rtl"] .clock-line{justify-content:flex-end}
html[dir="rtl"] .hero-side{right:auto;left:0}
html[dir="rtl"] .hero-shade{background:linear-gradient(270deg,rgba(7,31,66,.72),rgba(6,34,68,.22) 55%,rgba(5,36,62,.04)),linear-gradient(0deg,#061c322c,transparent 50%)}
html[dir="rtl"] .overview .overview-zone{margin-left:0;margin-right:auto}
html[dir="rtl"] .compare-search>span:last-child{margin-left:0;margin-right:auto}
html[dir="rtl"] .timeline-zoom{margin-left:0;margin-right:auto}
html[dir="rtl"] .timeline-stage,html[dir="rtl"] .timeline-scroll,html[dir="rtl"] input[type="range"]{direction:ltr}
html[dir="rtl"] .timeline-header>span,html[dir="rtl"] .row-city>span,html[dir="rtl"] .row-selected small{direction:rtl;text-align:start;unicode-bidi:plaintext}
html[dir="rtl"] :where(input[type="date"],input[type="time"],#convert-time){direction:ltr;text-align:center}
html[dir="rtl"] .side-nav>a{padding:14px 15px 14px 0;border-left:0;border-right:1px solid #dfe8f5}
html[dir="rtl"] .side-nav>a.active{border-right:2px solid #0873ff}
html[dir="rtl"] .article-toc{border-left:0;border-right:1px solid #dfe8f5;padding-left:0;padding-right:20px}
html[dir="rtl"] .hero-meta>div{border-left:1px solid #ffffff55;border-right:0}
html[dir="rtl"] .hero-meta>div:last-child{border-left:0}
html[dir="rtl"] .photo-caption{right:auto;left:0;align-items:start}
html[dir="rtl"] :where(.guide-body p,.article-body p){line-height:1.95}
/* Keep the two-digit section counter together in the narrow sticky city navigation. */
.side-nav>a::before{flex:0 0 auto;white-space:nowrap}
@media(max-width:760px){html[dir="rtl"] .hero-side{left:auto;right:auto}html[dir="rtl"] .hero-meta>div:last-child{border-left:0}html[dir="rtl"] .timeline-zoom{margin-inline:0}html[dir="rtl"] .clock-line{justify-content:flex-end}}













/* localized house-ad creative */
.house-ad-creative{font-size:1rem;line-height:1.35}
.house-ad-creative .house-ad-label{font-size:.7rem}
.house-ad-creative .house-ad-card{position:relative;display:block;isolation:isolate;overflow:hidden;aspect-ratio:1/1;width:100%;color:#102d55;text-decoration:none;text-align:left;border:1px solid #d8e6f8;border-radius:16px;background:linear-gradient(145deg,#fff 4%,#f4f8ff 56%,#e8f2ff);box-shadow:0 8px 24px #17477b12;transition:transform .2s ease,box-shadow .2s ease}
.house-ad-creative a.house-ad-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px #17477b24}
.house-ad-creative a.house-ad-card:focus-visible{outline:3px solid #1769dc;outline-offset:3px}
.house-ad-creative .house-ad-art{position:absolute;z-index:0;right:0;bottom:0;display:grid;place-items:center;width:44%;height:65%;padding:7px;opacity:.96;pointer-events:none}
.house-ad-creative .house-ad-art svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 5px 8px #24548a28)}
.house-ad-creative .house-ad-copy{position:absolute;z-index:1;inset:0 auto 0 0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:70%;padding:20px 0 20px 20px}
.house-ad-creative .house-ad-free{display:inline-flex;align-items:center;border:1px solid #b8d5ff;border-radius:999px;padding:3px 9px;margin-bottom:10px;color:#0768e8;background:#fff;font-size:.75rem;font-weight:700}
.house-ad-creative .house-ad-name{max-width:100%;font-size:1.12rem;line-height:1.3;font-weight:750;letter-spacing:-.02em}
.house-ad-creative .house-ad-description{max-width:100%;margin-top:7px;color:#5d718e;font-size:.88rem;line-height:1.55}
.house-ad-creative .house-ad-cta{display:inline-flex;align-items:center;gap:4px;margin-top:13px;color:#0768e8;font-size:.85rem;font-weight:750}
.house-ad-creative.house-ad-rectangle .house-ad-card{aspect-ratio:6/5}
.house-ad-creative.house-ad-rectangle .house-ad-copy{width:70%;padding:17px 0 17px 18px}
.house-ad-creative.house-ad-tall .house-ad-card{aspect-ratio:1/2}
.house-ad-creative.house-ad-tall .house-ad-art{right:0;left:0;width:100%;height:61%;padding:18px}
.house-ad-creative.house-ad-tall .house-ad-copy{inset:0 0 auto;width:100%;height:58%;padding:22px}
.house-ad-creative.house-ad-banner{width:728px;max-width:100%}
.house-ad-creative.house-ad-banner .house-ad-card{aspect-ratio:728/90;border-radius:12px;background:linear-gradient(100deg,#f4f8ff,#fff 50%,#e8f2ff)}
.house-ad-creative.house-ad-banner .house-ad-art{inset:0 auto 0 0;width:22%;height:100%;padding:3px}
.house-ad-creative.house-ad-banner .house-ad-art svg{width:auto;height:100%;max-width:100%}
.house-ad-creative.house-ad-banner .house-ad-copy{inset:0 0 0 22%;display:block;width:auto;height:auto;padding:11px 142px 10px 12px}
.house-ad-creative.house-ad-banner .house-ad-free{position:absolute;top:10px;right:12px;margin:0;padding:2px 8px;font-size:.7rem}
.house-ad-creative.house-ad-banner .house-ad-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.98rem}
.house-ad-creative.house-ad-banner .house-ad-description{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:.78rem}
.house-ad-creative.house-ad-banner .house-ad-cta{position:absolute;right:12px;bottom:9px;margin:0;font-size:.78rem}
html[dir="rtl"] .house-ad-creative .house-ad-card{text-align:right}
html[dir="rtl"] .house-ad-creative .house-ad-art{right:auto;left:0}
html[dir="rtl"] .house-ad-creative .house-ad-copy{inset:0 0 0 auto;padding:20px 20px 20px 0}
html[dir="rtl"] .house-ad-creative.house-ad-rectangle .house-ad-copy{padding:17px 18px 17px 0}
html[dir="rtl"] .house-ad-creative.house-ad-tall .house-ad-copy{padding:22px}
html[dir="rtl"] .house-ad-creative.house-ad-banner .house-ad-art{right:auto;left:0}
html[dir="rtl"] .house-ad-creative.house-ad-banner .house-ad-copy{inset:0 0 0 22%;padding:11px 12px 10px 142px}
@media(min-width:1500px){.house-ad-creative.house-ad-banner{width:970px}.house-ad-creative.house-ad-banner .house-ad-card{aspect-ratio:970/90}}
@media(max-width:760px){.house-ad-creative.house-ad-banner{width:320px}.house-ad-creative.house-ad-banner .house-ad-card{aspect-ratio:320/100}.house-ad-creative.house-ad-banner .house-ad-art{width:28%}.house-ad-creative.house-ad-banner .house-ad-copy{inset:0 0 0 28%;padding:10px 88px 9px 7px}.house-ad-creative.house-ad-banner .house-ad-name{font-size:.78rem}.house-ad-creative.house-ad-banner .house-ad-description{font-size:.68rem}.house-ad-creative.house-ad-banner .house-ad-free{top:7px;right:7px;font-size:.62rem}.house-ad-creative.house-ad-banner .house-ad-cta{right:7px;bottom:7px;font-size:.68rem}html[dir="rtl"] .house-ad-creative.house-ad-banner .house-ad-copy{inset:0 0 0 28%;padding:10px 7px 9px 88px}}
@media(max-width:360px){.house-ad-creative .house-ad-copy{padding-left:14px}.house-ad-creative .house-ad-name{font-size:1rem}.house-ad-creative .house-ad-description{font-size:.78rem}html[dir="rtl"] .house-ad-creative .house-ad-copy{padding-right:14px}}
/* Localized homepage tool icons rendered for the server-side category cards. */
.category-grid > article.category-card::before{content:"";display:block;width:44px;height:44px;flex:none;margin-bottom:6px;background-image:url('./time-icons.webp');background-repeat:no-repeat;}
.category-grid > article.category-card:nth-child(1)::before{background-size:512.820513% 827.894737%;background-position:1.242236% 1.084599%;}
.category-grid > article.category-card:nth-child(2)::before{background-size:512.820513% 827.894737%;background-position:25.590062% 1.084599%;}
.category-grid > article.category-card:nth-child(3)::before{background-size:512.820513% 888.700565%;background-position:98.633540% 53.295129%;}
.category-grid > article.category-card:nth-child(4)::before{background-size:512.820513% 827.894737%;background-position:74.285714% 1.084599%;}
.category-grid > article.category-card:nth-child(5)::before{background-size:512.820513% 888.700565%;background-position:98.633540% 53.295129%;}
.category-grid > article.category-card:nth-child(6)::before{background-size:512.820513% 827.894737%;background-position:1.242236% 14.822849%;}
.category-grid > article.category-card:nth-child(7)::before{background-size:512.820513% 827.894737%;background-position:25.590062% 14.822849%;}
.category-grid > article.category-card:nth-child(8)::before{background-size:512.820513% 827.894737%;background-position:49.937888% 14.822849%;}
