:root {
    --bg: #0a1020;
    --bg-2: #0d1528;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-strong: rgba(255, 255, 255, 0.09);
    --panel-solid: #11192b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #f3f7ff;
    --muted: #b9c3d6;
    --muted-2: #8a96ad;
    --accent: #8fb2ff;
    --accent-2: #64dfcf;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.42);
    --content-width: 980px;
    --sidebar-width: 300px;
    --topbar-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(143, 178, 255, 0.10), transparent 24%),
        radial-gradient(circle at top left, rgba(100, 223, 207, 0.06), transparent 20%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.docs-shell {
    min-height: 100vh;
}

/* TOPBAR */

.topbar {
    position: sticky;
    top: 0;
    z-index: 300;
    height: var(--topbar-height);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 16, 32, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.topbar-inner {
    max-width: 1480px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 800;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.brand-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    color: white;
    font-weight: 700;
    line-height: 1.05;
}

.brand-subtitle {
    color: var(--muted-2);
    font-size: 0.82rem;
    line-height: 1.05;
    margin-top: 3px;
}

.topbar-center {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.topbar-badge {
    font-size: 0.82rem;
    color: var(--muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 10px;
    border-radius: 999px;
}

.topbar-link {
    color: var(--muted);
    font-size: 0.92rem;
    white-space: nowrap;
}

.topbar-link:hover {
    color: white;
    text-decoration: none;
}

/* HAMBURGER */

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 999px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* LAYOUT */

.docs-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    max-width: 1480px;
    margin: 0 auto;
}

.sidebar {
    position: sticky;
    top: var(--topbar-height);
    height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
    border-right: 1px solid var(--border);
    padding: 22px 16px 28px;
    background: rgba(10, 16, 32, 0.34);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sidebar-header-mobile {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sidebar-section-label {
    margin: 18px 12px 10px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    font-weight: 700;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    transition:
        background 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease,
        border-color 0.16s ease;
    border: 1px solid transparent;
}

.sidebar-nav a:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(2px);
}

.sidebar-nav a.active {
    background: rgba(143, 178, 255, 0.14);
    color: white;
    border-color: rgba(143, 178, 255, 0.20);
}

.sidebar-latest {
    margin-top: 24px;
    padding: 0 8px;
}

.sidebar-latest-label {
    margin: 0 0 10px;
    color: var(--muted-2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sidebar-version-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-version-card strong {
    display: block;
    margin-bottom: 6px;
}

.sidebar-version-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.docs-main {
    min-width: 0;
}

.content-wrap {
    max-width: var(--content-width);
    padding: 40px 40px 72px;
}

/* MOBILE OVERLAY */

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 18, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 180;
}

.mobile-overlay.overlay-open {
    opacity: 1;
    pointer-events: auto;
}

/* TYPO */

.kicker {
    margin: 0 0 12px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-2);
    font-weight: 700;
}

.page-title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.page-subtitle {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.08rem;
    max-width: 760px;
    font-weight: 500;
}

.page-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: white;
}

/* PANELS */

.hero-panel {
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow);
}

.apple-panel {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.compact-panel {
    margin-bottom: 28px;
}

.panel-mini-label {
    margin: 0 0 8px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.73rem;
    font-weight: 700;
}

.panel-copy {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 620px;
}

.panel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mini-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.mini-link:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
}

/* CARDS */

.section-block {
    margin-top: 38px;
}

.section-block h2 {
    margin: 0 0 12px;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

.section-block p {
    color: var(--muted);
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.doc-card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
    border-radius: 20px;
    padding: 18px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.doc-card:hover {
    transform: translateY(-2px);
    border-color: rgba(143, 178, 255, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.doc-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: white;
}

.doc-card p {
    margin: 0;
    color: var(--muted);
}

/* CONTENT */

.doc-content {
    margin-top: 26px;
}

.doc-content h2,
.doc-content h3 {
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
    color: white;
}

.doc-content p,
.doc-content li {
    color: var(--muted);
}

.doc-content ul,
.doc-content ol {
    padding-left: 1.3rem;
}

.doc-content code {
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e3edff;
}

.doc-content pre {
    overflow-x: auto;
    padding: 16px;
    border-radius: 14px;
    background: #0d1728;
    border: 1px solid var(--border);
}

.doc-content #TableOfContents {
    margin-bottom: 26px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.doc-content #TableOfContents::before {
    content: "On this page";
    display: block;
    margin-bottom: 10px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.doc-content #TableOfContents ul {
    margin: 0;
    padding-left: 18px;
}

.doc-content #TableOfContents li {
    margin-top: 8px;
}

.doc-meta {
    margin-top: 18px;
    color: var(--muted-2);
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--accent-2);
    font-weight: 600;
}

.footer-note {
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 0.92rem;
}

/* SEARCH */

.search-wrapper,
#search,
.pagefind-ui {
    width: min(620px, 100%);
    position: relative;
    z-index: 600;
}

.pagefind-ui {
    color: var(--text);
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pagefind-ui__form {
    margin: 0 !important;
}

.pagefind-ui__search-input {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
    padding: 0 18px !important;
    font-size: 0.96rem !important;
    font-weight: 600 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 32px rgba(0, 0, 0, 0.22) !important;
}

.pagefind-ui__search-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.pagefind-ui__search-clear {
    color: rgba(255, 255, 255, 0.66) !important;
}

.pagefind-ui__drawer {
    position: fixed !important;
    top: 92px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(760px, calc(100vw - 32px)) !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    background: rgba(12, 18, 30, 0.98) !important;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.pagefind-ui__drawer::before {
    content: "";
    position: fixed;
    inset: -200vh;
    background: rgba(4, 8, 18, 0.74);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
    pointer-events: none;
}

.pagefind-ui__message {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.92rem !important;
    padding: 8px 8px 12px !important;
}

.pagefind-ui__results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pagefind-ui__result {
    margin: 0 !important;
    padding: 16px 16px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)) !important;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease !important;
}

.pagefind-ui__result:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05)) !important;
    border-color: rgba(143, 178, 255, 0.24) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22) !important;
}

.pagefind-ui__result-link {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.35 !important;
}

.pagefind-ui__result-excerpt {
    color: rgba(237, 242, 250, 0.84) !important;
    margin-top: 8px !important;
    line-height: 1.55 !important;
    font-size: 0.94rem !important;
}

.pagefind-ui__result mark,
.pagefind-ui__result-mark {
    background: rgba(143, 178, 255, 0.32) !important;
    color: #fff !important;
    padding: 0.08rem 0.28rem !important;
    border-radius: 6px !important;
}

.pagefind-ui__result-nested {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.pagefind-ui__button {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    font-weight: 600 !important;
    min-height: 38px !important;
    padding: 0 12px !important;
}

.pagefind-ui__button:hover {
    background: rgba(255, 255, 255, 0.10) !important;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .topbar-inner {
        grid-template-columns: auto 1fr auto;
    }

    .topbar-right {
        gap: 12px;
    }

    .topbar-link {
        font-size: 0.88rem;
    }
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
    }

    .topbar-inner {
        grid-template-columns: auto 1fr auto;
        padding: 0 14px;
    }

    .topbar-center {
        display: none;
    }

    .topbar-right {
        display: none;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        width: min(88vw, 340px);
        height: calc(100vh - var(--topbar-height));
        z-index: 220;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        border-right: 1px solid var(--border);
        border-bottom: none;
        background: rgba(10, 16, 32, 0.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-header-mobile {
        display: flex;
    }

    .content-wrap {
        padding: 28px 18px 56px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .apple-panel {
        flex-direction: column;
    }

    .pagefind-ui__drawer {
        top: 84px !important;
        width: calc(100vw - 20px) !important;
    }

    /* BREADCRUMBS */

    .breadcrumbs {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 18px;
        color: var(--muted-2);
        font-size: 0.88rem;
    }

    .breadcrumbs a {
        color: var(--muted);
        text-decoration: none;
    }

    .breadcrumbs a:hover {
        color: white;
    }

    .crumb-current {
        color: white;
        font-weight: 600;
    }

    /* MOBILE SEARCH */

    .mobile-search-trigger {
        display: none;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.05);
        color: white;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-search-modal {
        position: fixed;
        inset: 0;
        z-index: 500;
        display: none;
        align-items: flex-start;
        justify-content: center;
        padding: 84px 14px 20px;
        background: rgba(4, 8, 18, 0.72);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .mobile-search-modal.mobile-search-open {
        display: flex;
    }

    .mobile-search-dialog {
        width: min(760px, 100%);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        background: rgba(12, 18, 30, 0.98);
        box-shadow: var(--shadow-strong);
        padding: 14px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .mobile-search-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 4px 12px;
        color: white;
    }

    .mobile-search-close {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.05);
        color: white;
        cursor: pointer;
    }

    /* make desktop search cleaner */
    .search-wrapper {
        width: min(620px, 100%);
    }

    #search,
    #mobileSearch,
    .pagefind-ui {
        width: 100%;
    }

    /* desktop only */
    @media (min-width: 981px) {
        .mobile-search-modal {
            display: none !important;
        }
    }

    /* mobile refinements */
    @media (max-width: 980px) {
        .mobile-search-trigger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .breadcrumbs {
            font-size: 0.82rem;
            gap: 6px;
        }

        .page-title {
            font-size: clamp(2rem, 9vw, 3rem);
        }

        .page-subtitle {
            font-size: 1rem;
        }

        .hero-panel {
            padding: 18px;
            border-radius: 18px;
        }

        .panel-actions {
            width: 100%;
        }

        .mini-link {
            width: 100%;
            justify-content: center;
        }

        .doc-content #TableOfContents {
            padding: 16px;
        }
    }

    /* FIX duplicated search bars */

    .mobile-search-modal {
        display: none !important;
    }

    .mobile-search-modal.mobile-search-open {
        display: flex !important;
    }

    .mobile-search-trigger {
        display: none;
    }

    @media (max-width: 980px) {
        .mobile-search-trigger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
    }

    /* HARD FIX: hide mobile search completely unless opened */

    .mobile-search-modal {
        position: fixed !important;
        inset: 0 !important;
        z-index: 500 !important;
        display: none !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 84px 14px 20px !important;
        background: rgba(4, 8, 18, 0.72) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    .mobile-search-modal.mobile-search-open {
        display: flex !important;
    }

    .mobile-search-dialog {
        width: min(760px, 100%) !important;
        border-radius: 24px !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        background: rgba(12, 18, 30, 0.98) !important;
        box-shadow: var(--shadow-strong) !important;
        padding: 14px !important;
        max-height: calc(100vh - 110px) !important;
        overflow-y: auto !important;
    }

    /* hide the mobile search content itself until modal is opened */
    #mobileSearch {
        display: none;
    }

    .mobile-search-modal.mobile-search-open #mobileSearch {
        display: block;
    }

    /* desktop: only top search */
    @media (min-width: 981px) {
        .mobile-search-trigger {
            display: none !important;
        }

        .mobile-search-modal {
            display: none !important;
        }

        #mobileSearch {
            display: none !important;
        }
    }

    /* mobile: hide desktop search, show trigger */
    @media (max-width: 980px) {
        .topbar-center {
            display: none !important;
        }

        .mobile-search-trigger {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
        }
    }

    /* kill any stray mobile Pagefind UI on desktop */

    #mobileSearch {
        display: none !important;
    }

    .mobile-search-modal {
        display: none !important;
    }

    .mobile-search-modal.mobile-search-open {
        display: flex !important;
    }

    @media (max-width: 980px) {
        #mobileSearch {
            display: block !important;
        }
    }

    /* extra hard fix for pagefind labels leaking */
    @media (min-width: 981px) {

        .mobile-search-modal,
        .mobile-search-modal *,
        #mobileSearch,
        #mobileSearch * {
            display: none !important;
            visibility: hidden !important;
        }
    }

    /* hard-hide mobile search until modal is opened */

    #mobileSearch {
        min-height: 0;
    }

    .mobile-search-modal {
        display: none !important;
    }

    .mobile-search-modal.mobile-search-open {
        display: flex !important;
    }

    @media (min-width: 981px) {
        #mobileSearch {
            display: none !important;
        }

        .mobile-search-trigger {
            display: none !important;
        }

        .mobile-search-modal {
            display: none !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }
    }

    @media (max-width: 980px) {
        .mobile-search-trigger {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
        }

        .topbar-center {
            display: none !important;
        }
    }


    /* mobile search button just focuses main search */
    .mobile-search-trigger {
        display: none;
    }

    @media (max-width: 980px) {
        .mobile-search-trigger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .topbar-center {
            display: none !important;
        }
    }

    /* mobile search dropdown */

    .mobile-search-bar {
        display: none;
    }

    @media (max-width: 980px) {
        .mobile-search-bar {
            display: none;
            padding: 10px 14px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(10, 16, 32, 0.92);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        .mobile-search-bar.mobile-search-bar-open {
            display: block;
        }

        .mobile-search-inner {
            padding-bottom: 12px;
        }

        #mobileSearchHost {
            width: 100%;
        }

        #mobileSearchHost .pagefind-ui__drawer {
            position: static !important;
            transform: none !important;
            width: 100% !important;
            max-height: 55vh;
            margin-top: 10px !important;
            left: auto !important;
            top: auto !important;
        }

        #mobileSearchHost .pagefind-ui__drawer::before {
            display: none !important;
        }
    }
}