/* =========================================================
FLIPCLOCK BASE — CSS START
Shared design tokens + generic page foundation.
========================================================= */
:root {
    color-scheme: light;
    --bg: #f7f3ea;
    --bg2: #efe8dc;
    --paper: rgba(255,255,255,.76);
    --paper2: rgba(255,255,255,.94);
    --text: #17130f;
    --muted: rgba(23,19,15,.66);
    --soft: rgba(23,19,15,.46);
    --line: rgba(58,42,24,.13);
    --line2: rgba(58,42,24,.22);
    --brand: #8b5cf6;
    --brand2: #ef7d51;
    --green: #0f766e;
    --gold: #bd8a2d;
    --red: #c72525;
    --steel: #4a6b7f;
    --nav: rgba(255,255,255,.62);
    --btn: rgba(255,255,255,.72);
    --bottom: rgba(255,255,255,.78);
    --shadow: 0 24px 80px rgba(83,58,30,.14);
    --shadow2: 0 14px 40px rgba(83,58,30,.10);
    --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,.075);
    --paper2: rgba(255,255,255,.105);
    --text: #f5f7fb;
    --muted: rgba(245,247,251,.72);
    --soft: rgba(245,247,251,.52);
    --line: rgba(255,255,255,.13);
    --line2: rgba(255,255,255,.22);
    --brand: #a8c7ff;
    --brand2: #f4c7ff;
    --green: #75ffd6;
    --gold: #f0c25c;
    --red: #ff6565;
    --steel: #b9d7ff;
    --nav: rgba(255,255,255,.045);
    --btn: rgba(255,255,255,.075);
    --bottom: rgba(13,15,23,.72);
    --shadow: 0 30px 90px rgba(0,0,0,.34);
    --shadow2: 0 16px 44px rgba(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 .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: -.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,.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: -.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: .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,.9fr) minmax(0,1.1fr) minmax(220px,.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,.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 .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);
    }

}
