:root {
    color-scheme: light dark;
    --r: 14px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --safe-top: max(env(safe-area-inset-top), 0px);
    --safe-bottom: max(env(safe-area-inset-bottom), 0px);
    --safe-left: max(env(safe-area-inset-left), 0px);
    --safe-right: max(env(safe-area-inset-right), 0px);
    --safe-b: var(--safe-bottom);
    --nav-h: 64px;
    --z-header: 1000;
    --z-cmp-float: 8000;
    --z-bottom-nav: 9999;
    --z-overlay: 20000;
    --z-overlay-content: 20001;
    --z-dropdown-in-overlay: 30000;
    --z-toast: 40000;
}

[data-theme="dark"] {
    --bg: #0e1116;
    --bg2: #131820;
    --bg3: #171d26;
    --sf: #171d26;
    --sf2: #1d242e;
    --sf3: #252d39;
    --bd: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .06);
    --panel: #131820;
    --bd2: rgba(255, 255, 255, .11);
    --t1: #e4e8ee;
    --t2: #98a2b0;
    --t3: #616c7b;
    --ac: #5aa5db;
    --ac2: #8b90d0;
    --ac3: #5fba8c;
    --red: #db7684;
    --yel: #d4a45f;
    --glow: rgba(90, 165, 219, .18);
    --sh: 0 4px 20px rgba(0, 0, 0, .38);
    --shlg: 0 18px 48px rgba(0, 0, 0, .5);
    --hbg: rgba(14, 17, 22, .92);
    --mbg: #131820;
    --noise: .022;
    --nav-bg: rgba(14, 17, 22, .96);
    --drawer-bg: #131820;
    --ios-theme-color: #0e1116;
}

[data-theme="light"] {
    --bg: #f5f6f8;
    --bg2: #eceef2;
    --bg3: #fafbfc;
    --sf: #ffffff;
    --sf2: #f2f4f7;
    --sf3: #e6e9ee;
    --bd: rgba(24, 34, 48, .09);
    --line: rgba(24, 34, 48, .09);
    --panel: #eceef2;
    --bd2: rgba(24, 34, 48, .16);
    --t1: #1f2733;
    --t2: #5d6879;
    --t3: #95a0ae;
    --ac: #28729f;
    --ac2: #5a60ab;
    --ac3: #2a7f54;
    --red: #c04455;
    --yel: #a87220;
    --glow: rgba(40, 114, 159, .16);
    --sh: 0 2px 12px rgba(24, 34, 48, .07);
    --shlg: 0 16px 44px rgba(24, 34, 48, .14);
    --hbg: rgba(245, 246, 248, .94);
    --mbg: #ffffff;
    --noise: .012;
    --nav-bg: rgba(245, 246, 248, .97);
    --drawer-bg: #ffffff;
    --ios-theme-color: #f5f6f8;
}

:root {
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --e1: 0 1px 2px rgba(0, 0, 0, .06);
    --e2: 0 2px 6px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
    --e3: 0 4px 12px rgba(0, 0, 0, .10), 0 16px 40px rgba(0, 0, 0, .10);
    --ring: 0 0 0 1px var(--bd);
    --ring-ac: 0 0 0 1px color-mix(in srgb, var(--ac) 45%, transparent);
}

[data-theme="dark"] {
    --e1: 0 1px 2px rgba(0, 0, 0, .3);
    --e2: 0 2px 8px rgba(0, 0, 0, .34), 0 10px 28px rgba(0, 0, 0, .28);
    --e3: 0 6px 16px rgba(0, 0, 0, .4), 0 20px 48px rgba(0, 0, 0, .36);
}

:where(button, a, select, input, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--ac);
    outline-offset: 2px;
    border-radius: 6px;
}

:where(button, a, select, input):focus:not(:focus-visible) {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    --ic-scale: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v16M7 20h10M4 8h16M4 8l-2 6a3 3 0 006 0L6 8M18 8l-2 6a3 3 0 006 0l-2-6'/></svg>");
}

.ic {

    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -.14em;
    pointer-events: none;
}

.ic-lg { width: 1.35em; height: 1.35em; }
.ic-sm { width: .85em;  height: .85em; }

.ic-spin {
    animation: icSpin 1s linear infinite;
}

@keyframes icSpin {
    to { transform: rotate(360deg); }
}

.ft-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ft-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 32px;
    flex-wrap: wrap;
}

.ft-mark {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.3px;
    color: var(--t1);
    text-decoration: none;
    transition: color .16s var(--ease);
}

.ft-mark:hover {
    color: var(--ac);
}

.ft-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.ft-nav a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t2);
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s var(--ease);
}

.ft-group {
    border-top: 1px solid var(--bd);
    padding-top: 12px;
}

.ft-group-t {
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--t3);
    transition: color .16s var(--ease);
}

.ft-group-t::-webkit-details-marker {
    display: none;
}

.ft-group-t:hover {
    color: var(--t2);
}

.ft-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--t3);
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--sf2);
    border: 1px solid var(--bd);
}

.ft-group-t::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s var(--ease);
}

.ft-group[open] > .ft-group-t::after {
    transform: translateY(1px) rotate(-135deg);
}

.ft-links {
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
}

.ft-group[open] > .ft-links {
    display: flex;
}

.ft-links a {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--bd);
    background: var(--sf2);
    font-size: 11.5px;
    line-height: 1.3;
    color: var(--t2);
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s var(--ease), border-color .16s var(--ease);
}

.ft-nav a:hover,
.ft-links a:hover {
    color: var(--ac);
}

.ft-links a:hover {
    border-color: color-mix(in srgb, var(--ac) 45%, transparent);
}

.ft-bot {
    display: flex;
    justify-content: space-between;
    gap: 6px 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--bd);
    font-size: 10.5px;
    color: var(--t3);
}

@media (min-width: 861px) {
    .ft-group-t {
        cursor: default;
        pointer-events: none;
    }

    .ft-group-t::after {
        display: none;
    }
}

@media (max-width: 768px) {
    footer:last-of-type {
        padding: 18px 16px calc(84px + var(--safe-bottom));
    }

    .ft-inner {
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .ft-top {
        gap: 8px 16px;
    }

    .ft-nav {
        gap: 4px 14px;
    }

    .ft-nav a {
        font-size: 12px;
    }

    .ft-links a {
        font-size: 11px;
        padding: 4px 9px;
    }
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: var(--r-md);
    background: var(--ac);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--e3);
    transform: translateY(-160%);
    transition: transform .18s var(--ease);
}

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

main {
    display: block;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

main {
    flex: 1 0 auto;
}

body > footer {
    flex-shrink: 0;
}

.ft-mark,
.ft-nav a,
.ft-links a,
.crumbs a,
.b-nm,
.show-more,
.tbl-hint,
.ptab,
.cmp-go,
.cmp-clear,
.curr-links a,
.cu-sub a,
.ba-site,
.drawer-refresh-btn {
    position: relative;
}

.ft-mark::before,
.ft-nav a::before,
.ft-links a::before,
.crumbs a::before,
.b-nm::before,
.show-more::before,
.tbl-hint::before,
.ptab::before,
.cmp-go::before,
.cmp-clear::before,
.curr-links a::before,
.cu-sub a::before,
.ba-site::before,
.drawer-refresh-btn::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 24px;
    transform: translateY(-50%);
}

.slot-rm,
.modal-close,
.drawer-close-btn {
    position: relative;
}

.slot-rm::before,
.modal-close::before,
.drawer-close-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
}

header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding-top: var(--safe-top);
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, transform .3s var(--ease);
    border-bottom: 1px solid var(--bd);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    z-index: -1;
}

@supports (backdrop-filter: blur(1px)) {
    header {
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
    }
}

header.header-hidden {
    transform: translateY(-100%);
}

@media (max-width: 768px) {
    header {
        display: none;
    }
}

.hdr {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: none;
    box-shadow: none;
    transition: transform .2s var(--spring);
}

.logo-mark svg,
.logo-mark img,
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    display: block;
}

.logo:hover .logo-mark {
    transform: rotate(-6deg) scale(1.1);
}

.logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--t1);
    letter-spacing: -.3px;
    white-space: nowrap;
    line-height: 1;
}

.logo-text span {
    color: var(--ac);
}

.hdr-nav {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hdr-nav::-webkit-scrollbar {
    display: none;
}

.hdr-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 6px 9px;
    border-radius: 7px;
    color: var(--t2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s var(--ease), background .2s var(--ease);
}

.hdr-nav a:hover {
    color: var(--t1);
    background: var(--sf2);
}

.hdr-nav a.active {
    color: var(--ac);
    background: color-mix(in srgb, var(--ac) 10%, transparent);
}

.hdr-r {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
}

.time-b {
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1;
    color: var(--ac);
    background: color-mix(in srgb, var(--ac) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--ac) 20%, transparent);
    padding: 5px 8px;
    border-radius: 7px;
    white-space: nowrap;
}

.th-tog {
    display: flex;
    align-items: center;
    background: var(--sf2);
    border: 1.5px solid var(--bd2);
    border-radius: 50px;
    padding: 2px;
    gap: 1px;
}

.tt {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: var(--t3);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
    background: none;
    border: none;
}

.tt.on {
    background: var(--ac);
    color: #fff;
    box-shadow: 0 2px 8px var(--glow);
}

.btn-p {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ac);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn-p:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--glow);
}

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

.bg-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    will-change: transform;
    animation: bF 22s ease-in-out infinite;
}

[data-theme="dark"] .b1 {
    width: 650px;
    height: 650px;
    background: #4b7fa3;
    top: -180px;
    left: -130px;
    opacity: .075;
}

[data-theme="dark"] .b2 {
    width: 480px;
    height: 480px;
    background: #6a6f92;
    top: 44%;
    right: -110px;
    opacity: .065;
    animation-delay: -8s;
}

[data-theme="dark"] .b3 {
    width: 400px;
    height: 400px;
    background: #5c8570;
    bottom: -90px;
    left: 33%;
    opacity: .04;
    animation-delay: -16s;
}

[data-theme="light"] .b1 {
    width: 650px;
    height: 650px;
    background: #8fb6d4;
    top: -180px;
    left: -130px;
    opacity: .2;
}

[data-theme="light"] .b2 {
    width: 480px;
    height: 480px;
    background: #b0b4cd;
    top: 44%;
    right: -110px;
    opacity: .12;
    animation-delay: -8s;
}

[data-theme="light"] .b3 {
    width: 400px;
    height: 400px;
    background: #a6c3b0;
    bottom: -90px;
    left: 33%;
    opacity: .1;
    animation-delay: -16s;
}

@keyframes bF {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(26px, -34px); }
    66%      { transform: translate(-16px, 18px); }
}

@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
        will-change: auto;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .fu.anim {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .55s var(--ease), transform .55s var(--ease);
    }

    .fu.anim.vis {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-pending {
    opacity: .72;
}

@media (prefers-reduced-motion: no-preference) {
    .nav-pending {
        transition: opacity .12s var(--ease);
    }
}
