/* Source: navigation.css */
/* =========================================================
FLIPCLOCK BASE — CSS START
Shared design tokens + generic page foundation.
========================================================= */
:root {
    color-scheme: light;
    --bg: #f7f3ea;
    --bg2: #efe8dc;
    --paper: rgba(255, 255, 255, 0.76);
    --paper2: rgba(255, 255, 255, 0.94);
    --text: #17130f;
    --muted: rgba(23, 19, 15, 0.66);
    --soft: rgba(23, 19, 15, 0.46);
    --line: rgba(58, 42, 24, 0.13);
    --line2: rgba(58, 42, 24, 0.22);
    --brand: #8b5cf6;
    --brand2: #ef7d51;
    --green: #0f766e;
    --gold: #bd8a2d;
    --red: #c72525;
    --steel: #4a6b7f;
    --nav: rgba(255, 255, 255, 0.62);
    --btn: rgba(255, 255, 255, 0.72);
    --bottom: rgba(255, 255, 255, 0.78);
    --shadow: 0 24px 80px rgba(83, 58, 30, 0.14);
    --shadow2: 0 14px 40px rgba(83, 58, 30, 0.1);
    --r: 30px;
    --max: 1180px;
    --safe: env(safe-area-inset-bottom, 0px);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}

html[data-theme='dark'] {
    color-scheme: dark;
    --bg: #0b0d14;
    --bg2: #10131d;
    --paper: rgba(255, 255, 255, 0.075);
    --paper2: rgba(255, 255, 255, 0.105);
    --text: #f5f7fb;
    --muted: rgba(245, 247, 251, 0.72);
    --soft: rgba(245, 247, 251, 0.52);
    --line: rgba(255, 255, 255, 0.13);
    --line2: rgba(255, 255, 255, 0.22);
    --brand: #a8c7ff;
    --brand2: #f4c7ff;
    --green: #75ffd6;
    --gold: #f0c25c;
    --red: #ff6565;
    --steel: #b9d7ff;
    --nav: rgba(255, 255, 255, 0.045);
    --btn: rgba(255, 255, 255, 0.075);
    --bottom: rgba(13, 15, 23, 0.72);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
    --shadow2: 0 16px 44px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

/* Native anchor scrolling: the browser sets the duration and handles input. */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    background:
        radial-gradient(
            circle at 12% 8%,
            color-mix(in srgb, var(--gold) 18%, transparent),
            transparent 30rem
        ),
        radial-gradient(
            circle at 90% 6%,
            color-mix(in srgb, var(--brand) 18%, transparent),
            transparent 26rem
        ),
        radial-gradient(
            circle at 62% 94%,
            color-mix(in srgb, var(--green) 13%, transparent),
            transparent 30rem
        ),
        linear-gradient(180deg, var(--bg), var(--bg2));
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent);
    outline-offset: 4px;
}

.page {
    width: min(100% - 32px, var(--max));
    margin: auto;
    padding: 18px 0 calc(104px + var(--safe));
}

/* =========================================================
FLIPCLOCK BASE — CSS END
========================================================= */

/* =========================================================
FLIPCLOCK NAVIGATION 2026 — CSS START
Topbar + language + drawer + footer + mobile bottom nav.
========================================================= */
.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 130;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: #17130f;
    box-shadow: var(--shadow2);
    transition: transform 0.18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

body.drawer-open {
    overflow: hidden;
}

/* Topbar */
.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 6px 0 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 820;
    letter-spacing: -0.035em;
    font-size: 18px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    color: #fff;
    flex: none;
    object-fit: contain;
    box-shadow: 0 16px 42px rgba(139, 92, 246, 0.22);
    font-weight: 900;
}

.brand .flipclock-logo,
.drawer-title .flipclock-logo {
    width: 150px;
    height: 33px;
    display: inline-block;
    position: relative;
    top: 3px;
    left: 0;
}

.nav {
    justify-self: center;
    display: flex;
    gap: 5px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--nav);
    box-shadow: var(--shadow2);
    backdrop-filter: blur(18px);
}

.nav a {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.nav a:hover,
.nav a[aria-current='page'] {
    color: var(--text);
    background: color-mix(in srgb, var(--paper2) 84%, transparent);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.icon-button {
    min-width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--nav);
    box-shadow: var(--shadow2);
    cursor: pointer;
    backdrop-filter: blur(18px);
}

.menu-button {
    display: inline-flex;
    gap: 8px;
    padding: 0 14px;
    font-weight: 760;
}

.menu-bars {
    width: 16px;
    height: 12px;
    display: grid;
    gap: 3px;
    margin: auto;
}

.menu-bars i {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

/* Drawer / sidebar */
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 840;
    letter-spacing: -0.035em;
}

.drawer-section {
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.drawer-section-title {
    margin: 0 0 9px;
    color: var(--soft);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drawer-links {
    display: grid;
    gap: 7px;
}

.drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--paper2) 50%, transparent);
    font-weight: 720;
}

.drawer-links a span {
    color: var(--soft);
    font-weight: 650;
    font-size: 13px;
}

.drawer-address {
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

/* Footer */
.footer {
    margin-top: 40px;
    color: var(--soft);
    font-size: 14px;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 18px;
    align-items: start;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.footer strong {
    display: block;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 15px;
}

.footer-address {
    line-height: 1.55;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 13px;
    justify-content: center;
}

.footer-links a,
.footer-mini a {
    color: var(--muted);
}

.footer-mini {
    text-align: right;
    line-height: 1.55;
}

/* Mobile bottom navigation */
.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(14px, var(--safe));
    transform: translateX(-50%);
    width: min(100% - 24px, 620px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bottom);
    box-shadow: 0 20px 70px rgba(83, 58, 30, 0.18);
    backdrop-filter: blur(22px);
    z-index: 20;
}

.bottom-nav a,
.bottom-nav button {
    display: grid;
    place-items: center;
    min-height: 42px;
    border: 0;
    border-radius: 18px;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
}

.bottom-nav a[aria-current='page'],
.bottom-nav a:hover,
.bottom-nav button:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 7%, transparent);
}

/* Navigation responsive */
@media (max-width: 1200px) {
    .topbar {
        grid-template-columns: auto 1fr;
    }

    .nav {
        display: none;
    }

    .top-actions {
        grid-column: 2;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-mini {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .topbar {
        gap: 10px;
        padding-bottom: 22px;
    }

    .brand .flipclock-logo {
        display: none;
    }

    .menu-button {
        min-width: 44px;
        padding: 0;
    }

    .menu-text,
    .share-button {
        display: none;
    }

    .bottom-nav {
        width: min(100% - 16px, 620px);
    }

    .bottom-nav a,
    .bottom-nav button {
        font-size: 11.5px;
    }
}

/* =========================================================
FLIPCLOCK NAVIGATION 2026 — CSS END
========================================================= */

/* TEMPLATE ADAPTATIONS — readability, real form, native dialog, RTL. */
:root {
    font-size: 16px;
    --ink: var(--text);
    --accent: var(--brand);
    --accent-soft: color-mix(in srgb, var(--brand) 12%, transparent);
    --solid: #fffaf2;
}

html[data-theme='dark'] {
    --solid: #171b27;
}

body {
    font-size: 17px;
    line-height: 1.65;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

button {
    cursor: pointer;
}

img,
svg {
    display: block;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.js-only {
    display: none !important;
}

.js-only.is-ready {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.nav {
    min-width: 0;
}

.nav a {
    font-size: 15px;
    line-height: 1.5;
    white-space: nowrap;
}

.icon-button {
    padding: 0;
    line-height: 1;
}

.menu-button {
    padding-inline: 14px;
    font-size: 15px;
}

.menu-bars {
    margin: 0;
}

.footer {
    font-size: 15px;
}

.footer-inner {
    gap: 24px;
}

.footer-address {
    color: var(--muted);
}

.footer-address span {
    display: inline-block;
    text-align: start;
}

.footer strong {
    font-size: 17px;
}

.footer-links {
    line-height: 1.65;
    gap: 9px 15px;
}

.footer-mini {
    font-size: 15px;
}

.footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bottom-nav a,
.bottom-nav button {
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 6px 4px;
    min-height: 46px;
}

.bottom-nav > a[aria-current='page'] {
    background: var(--accent-soft);
    color: var(--text);
}

.site-menu {
    position: fixed;
    inset: 12px auto 12px 12px;
    margin: 0;
    width: min(420px, calc(100% - 24px));
    max-width: none;
    height: fit-content;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--text);
    background: linear-gradient(180deg, var(--solid), var(--bg));
    box-shadow: var(--shadow);
    font-size: 17px;
}

.site-menu::backdrop {
    background: #0006;
    backdrop-filter: blur(6px);
}

.site-menu .drawer-head {
    margin-bottom: 24px;
}

.site-menu .eyebrow {
    margin-bottom: 12px;
}

.drawer-links a {
    font-size: 17px;
    padding: 9px 14px;
    gap: 16px;
    min-height: 48px;
}

.drawer-links a:hover,
.drawer-links a[aria-current='page'] {
    background: var(--accent-soft);
}

.drawer-secondary-title {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.drawer-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 16px;
}

.drawer-secondary a:hover {
    text-decoration: underline;
}

.site-menu .drawer-address {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 15px;
}

.site-menu .drawer-address span {
    display: inline-block;
}

[dir='rtl'] .site-menu {
    inset: 12px 12px 12px auto;
}

[dir='rtl'] .footer-mini {
    text-align: left;
}

[dir='rtl'] .brand,
[dir='rtl'] .drawer-title {
    direction: ltr;
}

[dir='rtl'] .nav,
[dir='rtl'] .top-actions {
    direction: rtl;
}

[dir='rtl'] .menu-bars {
    direction: ltr;
}

@media (min-width: 1201px) {
    .bottom-nav {
        display: none;
    }

    .page {
        padding-bottom: 32px;
    }
}

@media (max-width: 1200px) {
    .topbar {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .footer-mini,
    [dir='rtl'] .footer-mini {
        text-align: start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Keep the short code above the native select surface. */
#theme-toggle-icon svg {
    width: 21px;
    height: 21px;
}

/* Let labels determine their minimum width; never split a word to fit a tab. */
.bottom-nav {
    grid-template-columns: repeat(5, minmax(min-content, 1fr));
}

.bottom-nav a,
.bottom-nav button {
    overflow-wrap: normal;
    word-break: normal;
    padding-inline: 2px;
}

/* Keep the wordmark aligned with the original page template. */
.brand .flipclock-logo,
.drawer-title .flipclock-logo {
    object-fit: contain;
    /* Match v10's left-aligned wordmark, including the LTR logo in RTL pages. */
    object-position: left center;
    flex: none;
}

html[data-theme='dark'] .flipclock-logo {
    filter: brightness(0) invert(1);
}

/* A native disclosure with real links: usable without JavaScript. */
.language-picker {
    position: relative;
}

.language-picker summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 88px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--nav);
    box-shadow: var(--shadow2);
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 760;
    line-height: 1;
}

.language-picker summary::-webkit-details-marker {
    display: none;
}

.language-picker summary::marker {
    content: '';
}

.language-picker summary:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

.language-chevron {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    transition: transform 0.16s ease;
}

.language-picker[open] .language-chevron {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    z-index: 60;
    inset-inline-end: 0;
    top: calc(100% + 10px);
    width: 264px;
    max-width: calc(100vw - 32px);
    max-height: min(440px, 65dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid var(--line2);
    border-radius: 20px;
    background: var(--solid);
    box-shadow: var(--shadow);
}

.language-options a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    text-align: left;
}

.language-options a:hover,
.language-options a:focus-visible,
.language-options a[aria-current='page'] {
    background: var(--accent-soft);
    color: var(--text);
}

.language-options a[aria-current='page'] {
    font-weight: 750;
}

[dir='rtl'] .language-options a {
    text-align: right;
}

@media (max-width: 760px) {
    .topbar {
        gap: 8px;
    }

    .top-actions {
        gap: 6px;
    }

    .menu-button {
        padding: 0;
    }

    .language-picker summary {
        width: 84px;
    }

    .bottom-nav {
        gap: 3px;
        padding: 6px;
        border-radius: 24px;
    }

    .bottom-nav a,
    .bottom-nav button {
        font-size: 13px;
    }

    .footer {
        margin-top: 30px;
    }

    .footer-inner {
        gap: 20px;
    }

    .brand-mark {
        flex: none;
    }
}

@media (max-width: 370px) {
    .top-actions {
        gap: 5px;
    }

    .language-picker summary {
        width: 80px;
    }

    .bottom-nav a,
    .bottom-nav button {
        font-size: 12px;
        min-height: 47px;
    }

    .bottom-nav {
        width: calc(100% - 12px);
        gap: 2px;
    }

    .page {
        width: calc(100% - 24px);
    }
}


/* Source: world-clock.css */
/* Page styles are separate from the shared v13/v14 navigation. */
[hidden] {
    display: none !important;
}
.eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
}
.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    flex: none;
}
.eyebrow .live-dot {
    margin-inline-end: 8px;
}
.wc-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--paper2);
    box-shadow: var(--shadow2);
}
h1 {
    margin: 0;
    font-size: clamp(32px, 3.3vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 850;
    overflow-wrap: anywhere;
}
.wc-tagline {
    margin: 10px 0 16px;
    font-size: clamp(23px, 2.6vw, 32px);
    font-weight: 780;
    color: var(--brand);
    line-height: 1.23;
    letter-spacing: -0.025em;
}
.wc-intro {
    max-width: 48ch;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}
.wc-text-link {
    font-size: 14px;
    font-weight: 760;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.wc-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.local-clock {
    min-width: 0;
    padding: 22px;
    border: 1px solid #ffffff25;
    border-radius: 24px;
    color: #f6f5fc;
    background: linear-gradient(145deg, #262331, #12141e);
    box-shadow: 0 16px 38px #19132b20;
}
.local-clock-head,
.local-clock-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: #cac8de;
}
.local-clock-head bdi {
    font-size: 11px;
    opacity: 0.8;
    text-align: end;
    overflow-wrap: anywhere;
}
.flip-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 26px 0 16px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.flip-pair {
    position: relative;
    font-weight: 780;
    letter-spacing: 0.035em;
    padding: 12px 6px;
    font-size: clamp(25px, 3.6vw, 48px);
    border-radius: 7px;
    background: linear-gradient(#393645 49.3%, #171722 49.3%, #171722 50.8%, #403b4d 50.8%);
    box-shadow: 0 3px 0 #0005;
}
.colon {
    font-size: 25px;
    color: #b2a9c8;
}
.local-seconds {
    display: contents;
}
.day-period {
    font-size: 12px;
    align-self: flex-end;
    padding-bottom: 4px;
    margin-inline-start: 3px;
}
.local-date {
    font-size: 13px;
    color: #c3bed5;
    margin: 0 0 18px;
}
.local-clock-foot {
    font-size: 11px;
    border-top: 1px solid #ffffff18;
    padding-top: 12px;
}
.clock-source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.clock-source::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a69bb4;
}
.clock-source[data-source='server']::before {
    background: #7ed9b0;
}
.world-board {
    margin-top: 36px;
    scroll-margin-top: 20px;
}
.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
}
h2 {
    font-size: 25px;
    font-weight: 810;
    line-height: 1.24;
    letter-spacing: -0.025em;
    margin: 0 0 6px;
}
.section-note {
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}
.wc-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.wc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--line2);
    border-radius: 13px;
    background: var(--paper2);
    color: var(--text);
    font-size: 14px;
    font-weight: 730;
    line-height: 1.25;
}
.wc-button:hover {
    background: var(--accent-soft);
    border-color: var(--brand);
}
.wc-button:disabled {
    opacity: 0.55;
    cursor: default;
}
.wc-button.compact {
    font-size: 12px;
    padding: 10px 12px;
}
.wc-button.square {
    width: 44px;
    padding: 10px;
}
.wc-button svg {
    width: 18px;
    height: 18px;
}
.wc-check {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 4px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
}
.wc-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}
.city-clocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.city-clock {
    padding: 21px 22px 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--paper2);
    box-shadow: 0 7px 20px #20172a05;
    min-width: 0;
}
.city-clock-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.city-clock h3 {
    font-size: 18px;
    font-weight: 780;
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.city-clock h3 a:hover {
    text-decoration: underline;
}
.city-clock-head p {
    font-size: 12px;
    color: var(--muted);
    margin: 1px 0 0;
}
.remove-city {
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    color: var(--soft);
    font-size: 22px;
    margin-top: -7px;
    margin-inline-end: -9px;
}
.remove-city:hover {
    background: var(--accent-soft);
    color: var(--text);
}
.city-time {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-size: clamp(30px, 3.4vw, 45px);
    font-variant-numeric: tabular-nums;
    font-weight: 710;
    letter-spacing: -0.045em;
    line-height: 1.1;
    margin: 19px 0 7px;
}
.city-time .seconds {
    color: var(--soft);
    font-size: 0.6em;
    letter-spacing: 0;
    margin-inline-start: 4px;
}
.city-time .period {
    font-size: 12px;
    margin-inline-start: 7px;
    letter-spacing: 0;
    color: var(--muted);
}
.city-date {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 15px;
    line-height: 1.5;
    min-height: 18px;
}
.city-clock-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    font-size: 11px;
    color: var(--muted);
}
.city-clock-foot bdi {
    font-variant-numeric: tabular-nums;
}
.city-diff {
    font-size: 11px;
}
.empty-clocks {
    grid-column: 1/-1;
    padding: 32px;
    text-align: center;
    border: 1px dashed var(--line2);
    border-radius: 20px;
    font-size: 16px;
    color: var(--muted);
}
.compare-panel {
    margin-top: 16px;
    padding: 20px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
}
.compare-header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}
.compare-header label {
    font-size: 15px;
    font-weight: 780;
}
.compare-header .section-note {
    max-width: 75ch;
    margin-top: 4px;
}
.compare-header button {
    white-space: nowrap;
    flex: none;
}
.compare-status {
    margin: 14px 0 6px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.compare-status #time-mode {
    color: var(--green);
}
.world-board[data-preview='true'] #time-mode {
    color: var(--brand);
}
#time-slider {
    width: 100%;
    display: block;
    margin: 8px 0;
    min-height: 30px;
    accent-color: var(--brand);
    cursor: ew-resize;
}
.range-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
}
.city-directory {
    margin-top: 46px;
    scroll-margin-top: 18px;
}
.directory-search {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    min-height: 54px;
    width: min(100%, 610px);
    border: 1px solid var(--line2);
    border-radius: 16px;
    background: var(--paper2);
}
.search-field:focus-within {
    outline: 3px solid var(--accent-soft);
    border-color: var(--brand);
}
.search-field svg {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex: none;
}
.search-field input {
    outline: none;
    border: 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    height: 50px;
    font-size: 15px;
}
.catalog-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 4px 16px;
    background: var(--paper);
    gap: 0 24px;
}
.catalog-city {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
}
.catalog-name {
    min-width: 0;
}
.catalog-name h3 {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    margin: 0 0 3px;
    overflow-wrap: anywhere;
}
.catalog-name h3 a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.catalog-name p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
}
.catalog-zone {
    display: block;
    font-size: 10px;
    color: var(--soft);
    overflow-wrap: anywhere;
    line-height: 1.5;
    margin-top: 3px;
}
.catalog-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}
.catalog-time {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    font-weight: 720;
    white-space: nowrap;
}
.catalog-add {
    min-height: 36px;
    height: 36px;
    width: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 21px;
}
.catalog-add[aria-pressed='true'] {
    background: var(--accent-soft);
    color: var(--brand);
}
.show-more {
    display: flex;
    margin: 20px auto 0;
}
.wc-about {
    margin-top: 42px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 40px;
}
.wc-about h2 {
    max-width: 14ch;
    margin-bottom: 20px;
}
.faq-list details {
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
}
.faq-list details:first-child {
    padding-top: 0;
}
.faq-list details:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.faq-list summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 730;
    line-height: 1.5;
}
.faq-list p {
    color: var(--muted);
    font-size: 14px;
    margin: 10px 0 0;
    line-height: 1.75;
}
.wc-notice {
    font-size: 14px;
    color: var(--muted);
    background: var(--paper);
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
}
.wc-toast {
    position: fixed;
    z-index: 150;
    inset-inline-start: 50%;
    bottom: 110px;
    transform: translateX(-50%) translateY(15px);
    background: var(--text);
    color: var(--bg);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow2);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    max-width: calc(100vw - 32px);
    width: max-content;
    transition:
        opacity 0.15s,
        transform 0.15s;
}
.wc-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
[dir='rtl'] .wc-toast {
    transform: translateX(50%) translateY(15px);
}
[dir='rtl'] .wc-toast.visible {
    transform: translateX(50%) translateY(0);
}
.share-link {
    font-size: 13px;
}
.share-link input {
    display: block;
    margin-top: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line2);
    border-radius: 12px;
    background: var(--paper2);
}
.world-board:fullscreen {
    background: var(--bg);
    margin: 0;
    padding: clamp(20px, 4vw, 70px);
    overflow: auto;
}
.world-board:fullscreen .city-time {
    font-size: clamp(40px, 6vw, 78px);
}
.world-board:fullscreen .city-clock {
    padding: 24px;
}
.world-board:fullscreen .section-bar {
    margin-bottom: 25px;
}
.footer {
    margin-top: 35px;
}
[dir='rtl'] .city-time {
    justify-content: flex-end;
}
@media (max-width: 950px) {
    .wc-hero {
        gap: 24px;
        padding: 26px;
    }
    .local-clock {
        padding: 18px;
    }
    .catalog-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .city-clocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 650px) {
    .page {
        width: calc(100% - 24px);
        padding-top: 12px;
    }
    .topbar {
        padding-bottom: 18px;
    }
    .wc-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px 20px;
        border-radius: 24px;
    }
    .wc-tagline {
        font-size: 25px;
    }
    .wc-intro {
        font-size: 15px;
    }
    .flip-pair {
        font-size: 42px;
        padding: 12px 8px;
    }
    .local-clock {
        padding: 19px;
    }
    .flip-display {
        margin-top: 22px;
    }
    .world-board {
        margin-top: 28px;
    }
    .section-bar {
        gap: 12px;
    }
    .wc-controls {
        gap: 6px;
    }
    h2 {
        font-size: 23px;
    }
    .city-clocks {
        gap: 10px;
    }
    .city-clock {
        padding: 16px 13px 12px;
        border-radius: 17px;
    }
    .city-clock h3 {
        font-size: 16px;
    }
    .city-clock-head p {
        font-size: 11px;
    }
    .city-time {
        font-size: 32px;
        margin-top: 18px;
        flex-wrap: wrap;
    }
    .city-date {
        font-size: 11px;
        min-height: 32px;
    }
    .city-clock-foot {
        font-size: 10px;
    }
    .city-diff {
        font-size: 10px;
    }
    .compare-panel {
        padding: 17px;
    }
    .compare-header {
        gap: 12px;
        align-items: flex-start;
    }
    .compare-header .section-note {
        font-size: 12px;
    }
    .compare-header button {
        padding: 10px;
        font-size: 12px;
    }
    .directory-search {
        display: block;
    }
    #search-count {
        margin-top: 8px;
    }
    .catalog-list {
        grid-template-columns: 1fr;
        padding: 0 14px;
    }
    .catalog-city {
        padding: 14px 0;
    }
    .catalog-name h3 {
        font-size: 16px;
    }
    .catalog-name p {
        font-size: 12px;
    }
    .catalog-zone {
        font-size: 11px;
    }
    .catalog-right {
        gap: 14px;
    }
    .catalog-time {
        font-size: 18px;
    }
    .wc-about {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 20px;
    }
    .wc-about h2 {
        max-width: none;
    }
    .bottom-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
    }
    .bottom-nav a,
    .bottom-nav button {
        font-size: 11px;
        overflow-wrap: anywhere;
    }
    .world-board:fullscreen .city-clocks {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 350px) {
    .city-clocks {
        grid-template-columns: 1fr;
    }
    .city-date {
        min-height: 0;
    }
    .city-time {
        font-size: 42px;
    }
    .flip-pair {
        font-size: 32px;
    }
}
