:root {
    --color-ink: #14194D;
    --color-white: #fff;
    --color-cta: #84CEFF;
    --color-cta-hover: #3EA2F9;
}

/*-- Start nav menu ---*/

.overflow-hidden {
    overflow: hidden !important;
    height: 100vh !important;
}

body.header_dark_mode {
    .hamburger:not(.menu-open) {
        span {
            background-color: #F5F3EF !important;
        }
    }
}

.snorkel-nav-wrapper-v2 {
    /* --- Variable Definitions --- */
    --nav-title-fade: rgb(17 28 45 / 56%);
    --nav-title: #111C2D;
    --accent-color: #5E5AD1;
    --bg-white: #ffffff;
    --bg-default: #F5F3EF;
    --bg-promo: #F1EFE9;
    --bg-hover: rgba(17, 28, 45, 0.04);
    --border-light: rgba(17, 28, 45, 0.08);
    --border-promo: rgba(17, 28, 45, 0.16);
    --border-mobile: #ccc;

    --headline-text: "Geist Mono", "geist-mono", monospace;
    --badge-text-font: inherit;

    --title-font: 16px;
    --nav-font: 14px;
    --headline-font: 12px;
    --description-font: 14px;
    --promo-title-font: 20px;

    --promo_width: 400px;
    --offset: 40px;
    --items-gap: 0px;

    .snorkel-nav {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        row-gap: 0px;
        column-gap: 32px;
    }

    .snorkel-mobile_toggle {
        display: none;

        svg {
            display: block
        }
    }

    .hamburger {
        cursor: pointer;
        height: 32px;
        overflow: hidden;
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: 0.5s ease-in-out;
        transition: 0.5s ease-in-out;
        width: 32px;
        z-index: 99999999 !important;

        span {
            background-color: var(--nav-title);
            display: block;
            height: 1px;
            left: 7px;
            opacity: 1;
            position: absolute;
            -webkit-transform: rotate(0deg);
            -ms-transform: rotate(0deg);
            transform: rotate(0deg);
            -webkit-transition: 1s cubic-bezier(0.3, -0.55, 0.265, 1.55);
            transition: 1s cubic-bezier(0.3, -0.55, 0.265, 1.55);
            width: 18px;

            &:nth-child(1) {
                top: 16px;
            }

            &:nth-child(2) {
                top: 10px;
            }

            &:nth-child(3) {
                top: 22px;
                width: 12px;
            }
        }

        &.menu-open {
            span {
                &:nth-child(1) {
                    top: 16px;
                    left: 4px;
                    width: 22.63px;
                    -webkit-transform: rotate(135deg);
                    -ms-transform: rotate(135deg);
                    transform: rotate(135deg);
                }

                &:nth-child(2) {
                    left: -30px;
                    opacity: 0;
                }

                &:nth-child(3) {
                    top: 16px;
                    left: 4px;
                    width: 22.63px;
                    -webkit-transform: rotate(-135deg);
                    -ms-transform: rotate(-135deg);
                    transform: rotate(-135deg);
                }
            }
        }
    }

    .sn-menu-item {
        position: relative;
        display: flex;

        .sn-primary-link {
            display: flex;
            align-items: center;
            column-gap: 10px;
            justify-content: space-between;
            height: 80px;
            color: var(--nav-title);
            font-weight: 500;
            letter-spacing: 0;
            font-size: var(--nav-font);
            background: transparent;
            border: none;
            padding: 0;
        }

        .snorkel-submenu {
            position: absolute;
            background: var(--bg-white);
            pointer-events: none;
            opacity: 0;
            z-index: -999;
            visibility: hidden;
            top: 100%;
            transition: all .3s, height 0s;
            overflow: hidden;
            display: flex;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0px 4px 24px -2px rgb(0 0 0 / 8%);
            outline: 1px solid var(--border-light);
            border-radius: 16px;

            .menu_items {
                width: 100%;
                display: flex;
            }

            .menu-col {
                width: var(--column-width);
                display: flex;
                flex-direction: column;
                row-gap: var(--items-gap);
                column-gap: var(--items-gap);
                padding: 40px 16px 16px;

                @media (min-width: 1199px) {
                    background-color: var(--bg);
                }

                &:not(:first-child) {
                    border-left: 1px solid var(--border-light);
                }

                .menu_cols {
                    display: block;
                    column-count: var(--col_count);
                    column-gap: 16px;

                    @media (max-width:767px) {
                        column-count: 1;
                    }
                }
            }

            a.menu-details {
                display: flex;
                flex-direction: column;
                min-height: 188px;
                padding: 24px;
                justify-content: space-between;
                align-items: flex-start;
                border-radius: 8px;
                row-gap: 16px;
                column-gap: 16px;
                transition: .3s ease-out;

                &:hover {
                    background-color: var(--bg-hover);
                }

                .menu_description {
                    font-family: inherit;
                    font-size: var(--description-font);
                    line-height: 1.43;
                    letter-spacing: 0;
                    color: var(--nav-title-fade);
                }

                .button_text {
                    font-family: inherit;
                    font-size: var(--description-font);
                    line-height: 1.43;
                    letter-spacing: 0;
                    color: var(--nav-title);
                    background: var(--bg-hover);
                    display: table;
                    padding: 10px 16px;
                    border-radius: 100px;
                }
            }

            .promo_box {
                display: flex;
                width: var(--promo_width);
                flex-direction: column;
                row-gap: var(--items-gap);
                column-gap: var(--items-gap);
                padding: 40px;
                background-color: var(--bg-promo);

                .menu_headline_promo {
                    font-family: var(--headline-text);
                    font-weight: 500;
                    font-size: var(--headline-font);
                    line-height: 1.333333333;
                    text-transform: uppercase;
                    letter-spacing: .2em;
                    color: var(--accent-color);
                    padding: 0 0 24px;
                }

                .promo_content {
                    border: 0.5px solid var(--border-promo);
                    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.08);
                    padding: 8px;
                    background: var(--bg-default);
                }

                .menu-content {
                    padding: 24px 16px 16px;
                    background-color: transparent !important;
                }
            }

            .promo_box_cover {
                width: var(--promo_width);
                position: relative;
                display: flex;
                align-items: flex-end;

                .pbc_bg,
                .pbc_bg img {
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                .pbc_content {
                    position: relative;
                    width: 100%;
                    z-index: 2;
                    color: #fff;
                    display: flex;
                    align-items: flex-end;
                    padding: 40px;
                    column-gap: 16px;
                    row-gap: 16px;

                    .pbc_right {
                        flex-shrink: 0;
                    }
                }

                .pbc_title {
                    font-size: var(--promo-title-font);
                    line-height: 1.2;
                    letter-spacing: -0.02em;
                    font-weight: 300;
                    font-family: inherit;
                    margin-bottom: 4px;
                }

                .pbc_description {
                    font-size: var(--description-font);
                    line-height: 1.428571429;
                    font-family: inherit;
                }

                span.badge {
                    font-size: var(--description-font);
                    line-height: 1.428571429;
                    font-family: inherit;
                    display: block;
                    background: rgba(245, 243, 239, 0.04);
                    border-radius: 100px;
                    padding: 10px 16px;
                    font-weight: 500;
                }
            }

            .menu_headline {
                font-family: var(--headline-text);
                font-weight: 500;
                font-size: var(--headline-font);
                line-height: 1.333333333;
                text-transform: uppercase;
                letter-spacing: .2em;
                color: var(--accent-color);
                padding: 0 24px 16px;
            }

            .menu_title {
                font-family: inherit;
                font-weight: 500;
                font-size: var(--title-font);
                line-height: 1.4;
                color: var(--nav-title);
                display: flex;
                flex-wrap: nowrap;
                align-items: center;
                gap: 12px;

                &.fade_title {
                    opacity: 0.6;
                }
                .menu-icon {
                    width: 1em;
                    height: 1em;
                    background-color: var(--nav-title);
                    -webkit-mask-image: var(--svg-url);
                    mask-image: var(--svg-url);
                    -webkit-mask-repeat: no-repeat;
                    mask-repeat: no-repeat;
                    -webkit-mask-position: center;
                    mask-position: center;
                    -webkit-mask-size: contain;
                    mask-size: contain;
                    transition: background-color 0.3s ease;
                    flex-shrink: 0;
                }
            }

            .badge_text {
                font-family: var(--badge-text-font);
                font-size: var(--description-font);
                font-weight: bold;
                letter-spacing: -0.03em;
                line-height: 20px;
                display: flex;
                align-items: center;
                column-gap: 4px;
                flex-wrap: wrap;
                color: #14194D;
                opacity: .6;
            }

            .menu_description {
                font-family: inherit;
                font-size: var(--description-font);
                line-height: 1.43;
                letter-spacing: 0;
                color: var(--nav-title-fade);
            }

            .menu-content {
                display: flex;
                flex-direction: column;
                row-gap: 4px;
                column-gap: 8px;
                padding: 24px;
                border-radius: 8px;
                transition: .3s ease-out;

                &:hover {
                    background-color: var(--bg-hover);
                    .menu-icon {
                        background-color: var(--accent-color);
                    }
                }
            }
            .menu-col.small_menu .menu-content {
                padding-top: 16px;
                padding-bottom: 16px; 
            }
        }

        &:hover .snorkel-submenu {
            pointer-events: auto;
            opacity: 1;
            z-index: 9;
            visibility: visible;
            top: calc(100% - 2px);
        }

        &.type-full {
            position: static;
        }

        &.type-full .snorkel-submenu {
            max-width: 1200px;
        }
    }

    span.sn-indicator {
        width: 6px;
        height: 6px;
        display: block !important;
        border-bottom: 2px solid;
        border-right: 2px solid;
        transform: translate(0px, -2px) rotate(45deg);
    }

    .sn-menu-btn {
        display: table;
        padding: 14px 30px;
        border: 1px solid;
        border-radius: 2px;
    }

    li.sn-mobile_btns {
        padding: 20px 48px;
        display: none !important;

        a.sn-menu-btn {
            font-style: normal;
            font-weight: 500;
            font-size: 14px;
            line-height: 20px;
            letter-spacing: 0 !important;
            background: var(--nav-title);
            color: var(--bg-promo);
            border: none;
            border-radius: 100px;
            width: 100%;
            text-align: center;

            &.nav-btn-secondary {
                background: transparent;
                color: var(--nav-title);
                box-shadow: inset 0px 0px 0px 1px #111C2D3d;
            }
        }
    }

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

    .layered-menu-back {
        display: none;
    }

    .mobile_menu_footer {
        position: fixed;
        top: auto;
        bottom: -100vh;
        width: 100%;
        left: 0;
        display: none;
    }

    @media (min-width:1199.99px) {
        .snorkel-nav {
            display: flex !important;
            justify-content: center;

            .sn-primary-item {
                &:hover {
                    .sn-primary-link {
                        color: var(--nav-title)
                    }

                    .incator-wrapper {
                        transform: rotate(180deg);

                        .sn-indicator {
                            color: var(--nav-title)
                        }
                    }
                }

                .snorkel-submenu {
                    display: flex !important;

                    &.position-left {
                        transform: translateX(calc(var(--offset) * -1));
                        left: 0;
                    }

                    &.position-right {
                        transform: translateX(var(--offset));
                        left: auto;
                        right: 0;
                    }
                }
            }
        }
    }

    @media (max-width:1198.99px) {
        .mobile_menu_footer {
            display: block;
            opacity: 0;
        }

        &.menu-open {
            .mobile_menu_footer {
                animation: menu_fade 0.4s ease forwards;
            }
        }

        .snorkel-mobile_toggle {
            display: block;
            cursor: pointer;
            position: relative;
            z-index: 9;
        }

        .mobile-brand-logo {
            padding: 0 48px;
            height: 80px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid var(--border-promo);
            margin-bottom: 28px;

            .brand-logo img {
                height: 32px;
                width: 112px;
                object-fit: contain;
                display: block;
            }
        }

        span.sn-indicator {
            transform: translate(0px, -2px) rotate(-45deg);
        }

        ul.snorkel-nav {
            position: fixed;
            left: 50%;
            width: 100vw;
            transform: translateX(-50%);
            top: 0;
            background: var(--bg-default);
            height: 100vh;
            padding-bottom: 100px;
            overflow: auto;
            overflow-x: hidden;
            overflow-y: auto;
            display: none;

            &.collapsable-open {
                z-index: 2;
            }

            .sn-primary-item {
                padding: 0;
                margin: 0 48px;
                display: block;
                border-bottom: 1px solid var(--border-mobile);

                .sn-primary-link {
                    width: 100%;
                    justify-content: space-between;
                    height: 78px;
                    font-size: 20px;
                }

                &.menu-active .incator-wrapper {
                    transform: rotate(-180deg);
                }

                .snorkel-submenu {
                    width: 100%;
                    max-width: 100%;
                    height: 100vh;
                    position: fixed;
                    opacity: 1;
                    visibility: visible;
                    z-index: 999;
                    pointer-events: auto;
                    box-shadow: none;
                    display: block;
                    padding: 0;
                    border: none;
                    border-radius: 0;
                    outline: none;
                    overflow: hidden;
                    background: var(--bg-default);
                    top: 0;
                    left: 0;
                    transform: translate(100%, 0%);

                    .menu_items {
                        flex-direction: column;
                        padding: 0 48px 100px;
                        height: calc(100vh - 80px);
                        overflow: auto;
                    }

                    .menu-col {
                        width: 100%;
                        max-width: 100%;
                        border-bottom: 0.5px solid rgba(17, 28, 45, 0.2);
                        padding: 32px 0;

                        &:not(:first-child) {
                            border-left: none;
                        }

                        &:last-of-type {
                            border-bottom: none;
                        }
                    }

                    .menu_headline {
                        padding: 0 0 20px;
                    }

                    .menu-content {
                        padding: 12px 0;

                        &:hover {
                            background-color: transparent;
                        }
                    }

                    a.menu-details {
                        padding: 12px 0;
                        min-height: 120px;

                        &:hover {
                            background-color: transparent;
                        }
                    }

                    .promo_box {
                        padding: 32px 48px !important;
                        margin: 0 -48px 0;
                        max-width: unset;
                        width: auto;

                        .promo_content {
                            .menu_promot_image img {
                                width: 100%;
                            }
                        }
                    }

                    .promo_box_cover {
                        width: auto;
                        margin: 0 -48px;

                        .pbc_content {
                            padding-top: 60% !important;
                            justify-content: space-between;
                            flex-wrap: nowrap;
                        }
                    }
                }

                &.menu-active {
                    .snorkel-submenu {
                        background: var(--bg-default);
                        position: fixed;
                        top: 0;
                        left: 0;
                        transform: translate(0, 0);
                        padding: 0;
                    }

                    .layered-menu-back {
                        height: 80px;
                        padding: 0 48px;
                        display: flex;
                        align-items: center;
                        gap: 12px;
                        font-size: 14px;
                        font-weight: 500;
                        border-bottom: 1px solid var(--border-promo);
                        margin-bottom: 8px;
                    }
                }
            }
        }
    }

    @media (max-width:767px) {
        ul.snorkel-nav {
            .sn-primary-item {
                padding: 0;
                margin: 0 20px;

                .snorkel-submenu {
                    .menu_items {
                        padding: 0 20px 100px;
                        height: calc(100vh - 72px);
                    }
                }

                &.menu-active {
                    .layered-menu-back {
                        height: 72px;
                        padding: 0 20px;
                    }
                }
            }

            li.sn-mobile_btns {
                padding: 8px 20px;
            }

        }

        .mobile-brand-logo {
            padding: 0 20px;
        }

        .mobile-brand-logo {
            height: 72px;
        }

        .sn-menu-item {
            .snorkel-submenu {
                .promo_box_cover {
                    width: auto;
                    margin-left: -20px !important;
                    margin-right: -20px !important;
                    max-width: unset;
                }
            }
        }
    }

    @media (max-width:480px) {
        li.sn-mobile_btns {
            display: block !important;
        }

        .promo_box {
            max-width: 100%;
            padding: 24px !important;
        }

        .promo_box_cover {
            max-width: 100%;

            .pbc_content {
                padding: 24px !important;
            }
        }
    }
}


@keyframes menu_fade {
    0% {
        opacity: 0
    }

    90% {
        opacity: 0
    }

    to {
        opacity: 1;
    }
}

/*-- End nav menu --*/


/* ======= Snorkel Archive Template V4 ======= */

.archive_list_wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.archive_icon_list {
    display: flex;
    column-gap: 8px;
}

.archive_icon {
    width: 16px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.snorkel_archive_wrap {
    --card_bg: #F5F3EF;
    --card_title: #111C2D;
    --card_text: rgba(17, 28, 45, 0.56);
    --card_border: rgba(17, 28, 45, 0.24);
    --card_badge: rgba(17, 28, 45, 0.72);
    --card_image_border: rgba(17, 28, 45, 0.16);
    -card_menu_border: rgba(17, 28, 45, 0.8);
    --card_shadow: rgba(17, 28, 45, 0.08);
    --card_shadow_hover: rgba(17, 28, 45, 0.16);
    --card_dd_bg: #fff;
    --card_dd_active: rgba(17, 28, 45, 0.04);
    --card_check_bg: #5E5AD1;
    --dropdown_shadow: rgba(17, 28, 45, 0.08);
    font-family: 'geist';

    #bm-model-results-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-gap: 16px;

        .model-card {
            box-shadow: 0 0 0 1px rgba(17, 28, 45, 0.16);
            padding: 24px;

            .model-card-header {
                .card-top {
                    display: flex;
                    justify-content: space-between;
                    gap: 8px;
                    flex-wrap: wrap;
                    font-family: 'geist';
                    font-size: 12px;
                    line-height: 16px;
                    color: rgba(17, 28, 45, 0.56);
                    margin-bottom: 16px;

                    .card-top-left {
                        display: flex;
                        align-items: center;
                        gap: 4px;

                        img {
                            width: 20px;
                            flex-shrink: 0;
                        }

                        .card-top-right {
                            font-family: 'geist-mono';
                            font-weight: 500;
                            text-transform: uppercase;
                        }
                    }
                }

                .model-name {
                    font-family: 'Geist';
                    font-weight: 400;
                    font-size: 24px;
                    line-height: 28px;
                    letter-spacing: -0.02em;
                    color: #111C2D;
                    margin-bottom: 8px;
                }
            }

            .model-description {
                font-size: 12px;
                line-height: 16px;
                color: rgba(17, 28, 45, 0.72);
                border-bottom: 1px solid #ccc;
                padding-bottom: 16px;
                margin-bottom: 16px;
            }

            .model-rank-label {
                font-family: 'geist-mono';
                font-style: normal;
                font-weight: 500;
                font-size: 10px;
                line-height: 14px;
                color: rgba(17, 28, 45, 0.56);
                margin-bottom: 16px;
            }

            .model-rank-top {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;

                .model-rank-left {
                    display: flex;
                    gap: 4px;
                    align-items: center;
                    justify-content: flex-start;
                    font-size: 14px;
                    line-height: 20px;
                    letter-spacing: -0.02em;
                    color: #111C2D;

                    img.domain-icon {
                        width: 16px;
                        flex-shrink: 0;
                    }
                }

                .model-rank-right {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    font-family: 'geist-mono';
                    font-weight: 500;
                    font-size: 12px;
                    line-height: 20px;
                    color: #111C2D;

                    .bm-rank span {
                        opacity: .56;
                    }
                }
            }

            .mode-rank-progress {
                width: 100%;
                margin-top: 8px;

                .mr-progress-wrap {
                    width: 100%;
                    background: rgba(17, 28, 45, 0.04);
                    border-radius: 100px;

                    .mr-progress-irem {
                        height: 4px;
                        background: #5E5AD1;
                        border-radius: 100px;
                    }
                }
            }

            .model-leaderboard {
                display: grid;
                gap: 8px;
            }
        }
    }

    .snorkel_listing_filters {
        display: flex;
        justify-content: space-between;
        margin-bottom: 40px;
        flex-wrap: wrap;
        gap: 24px;

        .filter_wrapper {
            display: flex;
            flex-wrap: wrap;
            column-gap: 8px;
            row-gap: 8px;
        }

        .filter_title {
            font-weight: 300;
            font-size: 32px;
            line-height: 1.12;
            letter-spacing: -0.02em;
            color: var(--card_title);
        }

        .search_item {
            display: flex;
            align-items: center;
            border: 0.5px solid var(--card_border);
            border-radius: 8px;
            overflow: hidden;
            padding: 0;
            position: relative;

            svg {
                width: 16px;
                height: auto;
                display: block;
                position: absolute;
                left: 16px;
                top: 50%;
                transform: translateY(-50%);
                color: var(--card_text);
            }

            input {
                background: transparent;
                margin: 0;
                height: 46px;
                width: 320px;
                position: relative;
                padding: 0 16px 0 40px;
                border: none;
                outline: none;
                font-size: 14px;
                font-weight: 500;
                color: var(--card_title);
                box-shadow: none;
            }
        }

        select {
            background: var(--card_bg);
            border: .5px solid var(--card_border);
            height: 48px;
            line-height: 48px;
            padding: 0 40px 0 16px;
            border-radius: 8px;
            -webkit-appearance: none;
            background-image: url('data:image/svg+xml,<svg width="9" height="5" viewBox="0 0 9 5" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.5 0.5L4.5 4.5L8.5 0.5" stroke="%23111C2D" stroke-opacity="0.72" stroke-linecap="round" stroke-linejoin="round"/></svg>');
            background-repeat: no-repeat;
            background-position: right 15px center;
            outline: none;
            box-shadow: none;
            margin: 0;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: var(--card_title);
        }

        .filter_dorpdown {
            position: relative;
            display: flex;
            align-items: center;
            height: 48px;
            background: var(--card_bg);
            border: .5px solid var(--card_border);
            padding: 0 16px;
            border-radius: 8px;
            cursor: pointer;

            .current_filter {
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-weight: 500;
                font-size: 14px;
                line-height: 20px;
                color: var(--card_title);
                gap: 12px;

                .current_selected {
                    color: var(--card_badge);
                }
            }

            .filter_menu {
                position: absolute;
                background: var(--card_dd_bg);
                border: 0.5px solid var(--card_menu_border);
                box-shadow: 0px 4px 8px -2px var(--dropdown_shadow), 0px 2px 4px -1px var(--dropdown_shadow);
                border-radius: 8px;
                padding: 8px;
                top: calc(100% + 8px);
                width: calc(100% + 16px);
                min-width: 240px;
                z-index: 9;
                left: -8px;
                display: none;
                max-height: 250px;
                overflow: auto;

                &::-webkit-scrollbar {
                    width: 5px;
                    height: 5px;
                }

                &::-webkit-scrollbar-thumb {
                    background: var(--card_border);
                    border-radius: 3px
                }

                &.dd-right {
                    left: auto;
                    right: -8px;
                }
            }

            &.active {
                .filter_menu {
                    display: block;
                }
            }

            .filter_menu input[type="checkbox"],
            .filter_menu input[type="radio"] {
                display: none;
            }

            .filter_menu {
                input[type="checkbox"] {
                    &+label {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        cursor: pointer;
                        padding: 10px 8px;
                        border-radius: 4px;
                        transition: .2s linear;
                        font-weight: 500;
                        font-size: 14px;
                        line-height: 20px;
                        color: var(--card_title);

                        &:hover {
                            background-color: var(--card_bg);
                        }

                        .label-indicator {
                            display: flex;
                            border: 1px solid var(--card_border);
                            width: 16px;
                            height: 16px;
                            border-radius: 4px;
                            flex-shrink: 0;
                            align-items: center;
                            justify-content: center;

                            svg {
                                opacity: 0;
                            }
                        }
                    }

                    &:checked+label {
                        margin: 0;

                        /*background-color: var(--card_bg); */
                        .label-indicator {
                            background: #5E5AD1;
                            border-color: #5E5AD1;

                            svg {
                                opacity: 1;
                            }
                        }

                    }
                }

                input[type="radio"] {
                    &+label {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        cursor: pointer;
                        padding: 10px 8px;
                        border-radius: 4px;
                        transition: .2s linear;
                        font-weight: 500;
                        font-size: 14px;
                        line-height: 20px;
                        color: var(--card_badge);

                        &:hover {
                            background-color: var(--card_bg);
                        }

                        .label-indicator {
                            display: flex;

                            width: 16px;
                            height: 16px;
                            flex-shrink: 0;
                            align-items: center;
                            justify-content: center;

                            svg {
                                opacity: 0;
                            }
                        }
                    }

                    &:checked+label {
                        margin: 0;
                        background-color: var(--card_dd_active);
                        color: var(--card_title);

                        .label-indicator {
                            svg {
                                opacity: 1;
                            }
                        }

                    }
                }

            }

        }

    }

    .snorkel_topics_button_group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 40px;
        color: var(--card_title);

        .topic_btn_item {
            input {
                display: none;
            }

            .topic_button_label {
                display: flex;
                align-items: center;
                gap: 4px;
                border: 1px solid var(--card_border);
                padding: 9px 12px;
                border-radius: 100px;
                font-weight: 500;
                font-size: 12px;
                line-height: 16px;
                cursor: pointer;

                span.btn-topic-icon {
                    display: block;
                    width: 16px;
                    height: 16px;
                    background-color: var(--card_title);
                    -webkit-mask-image: var(--bg);
                    mask-image: var(--bg);
                    -webkit-mask-repeat: no-repeat;
                    mask-repeat: no-repeat;
                    -webkit-mask-position: center;
                    mask-position: center;
                    -webkit-mask-size: contain;
                    mask-size: contain;
                    transition: background-color 0.3s ease;
                }
            }

            input:checked+.topic_button_label {
                background-color: var(--card_title);
                color: var(--card_bg);

                span.btn-topic-icon {
                    background-color: var(--card_bg);
                }
            }
        }

    }
    
    .snorkel_post_loop {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        grid-gap: 16px;

        &.loading {
            opacity: .6;
            filter: blur(2px);
        }

        .snorkel_post_irem {
            min-height: 100px;
            background: var(--card_bg);
            box-shadow: 0px 2px 4px -2px var(--card_shadow);
            border: .5px solid var(--card_image_border);
            position: relative;
            padding: 8px;
            transition: .2s ease-out;
            top: 0;

            &:hover {
                box-shadow: 0px 2px 16px -2px var(--card_shadow_hover);
                transform: translateY(-8px);
            }

            .responsive-thumb {
                padding-bottom: 56.25%;
                position: relative;
                background: var(--card_shadow);
                overflow: hidden;
                border: 1px solid var(--card_image_border);

                .logo {
                    position: absolute;
                    max-width: 75%;
                    width: 100%;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    max-height: 60%;
                    filter: grayscale(1);
                    mix-blend-mode: darken;
                    display: flex;

                    img {
                        width: 100%;
                        max-height: 100%;
                        object-fit: contain;
                    }
                }

                .cover,
                .cover img {
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

            }

            .snorkel_overlay {
                position: absolute;
                left: 0;
                top: 0;
                display: block;
                width: 100%;
                height: 100%;
                font-size: 0;
                opacity: 0;
            }

            .snorkel_post_content {
                padding: 24px 16px;

                .badges {
                    display: flex;
                    gap: 6px;
                    margin-bottom: 8px
                }

                .badge {
                    font-weight: 500;
                    font-size: 12px;
                    line-height: 14.4px;
                    color: var(--card_badge);
                    border: 0.5px solid var(--card_border);
                    border-radius: 100px;
                    padding: 4px 8px;

                    &.new {
                        background-color: #8ABEE0;
                        color: #111C2D;
                    }
                }

                a.badge {
                    position: relative;
                    z-index: 2;
                }

                .snorkel_card_title {
                    font-weight: 300;
                    font-size: 20px;
                    line-height: 1.2;
                    letter-spacing: -0.02em;
                    color: var(--card_title);
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: initial;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                }

                .snorkel_card_excerpt {
                    font-size: 14px;
                    line-height: 20px;
                    color: var(--card_badge);
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: initial;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    margin-top: 8px;

                    p {
                        margin-bottom: 0;
                    }
                }

                .snorkel_card_meta {
                    font-size: 14px;
                    line-height: 20px;
                    color: var(--card_badge);
                    margin-top: 24px;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 8px;
                }

                .author-list a {
                    color: inherit;
                    text-decoration: underline !important;
                    position: relative;
                    z-index: 2;
                    text-underline-offset: .2em;
                }
            }

            .archive_list_wrapper {
                margin-top: 24px;
                display: flex;
                flex-direction: column;
                row-gap: 8px;
            }

            .archive_icon_list {
                display: flex;
                column-gap: 8px;
                font-size: 14px;
                line-height: 20px;
                color: var(--card_badge);
            }

            .archive_icon {
                width: 16px;
                flex-shrink: 0;
                display: flex;
                justify-content: center;
                align-items: center;
                color: var(--card_check_bg);
                fill: var(--card_badge);
            }

        }

        &.list {
            grid-template-columns: 1fr;

            @media(min-width:767px) {
                .snorkel_post_irem {
                    display: flex;
                    align-items: flex-start;

                    .responsive-thumb {
                        flex-basis: 288px;
                        padding-bottom: 0;
                        aspect-ratio: 16 / 9;
                        flex-shrink: 0;
                    }

                    .snorkel_post_content {
                        padding: 8px 16px;
                    }

                    .snorkel_card_meta {
                        margin-top: 20px;
                    }
                }

            }
        }

        .snorkel_benchmark_item {
            position: relative;
            transition: .2s ease-out;
            top: 0;
            padding: 32px 24px;
            color: var(--card_title);
            background: #F1EFE9;
            border: 1px solid var(--card_image_border);

            &:hover {
                box-shadow: 0px 2px 16px -2px var(--card_shadow_hover);
                transform: translateY(-8px);
            }

            a.snorkel_overlay {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
            }

            .benchmark-domain {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;

                .domain-badge {
                    display: flex;
                    align-items: center;
                    background-color: #F5F3EF;
                    gap: 4px;
                    box-shadow: inset 0px 0px 0px 1px var(--card_border);
                    padding: 4px 12px 4px 8px;
                    border-radius: 100px;
                    font-weight: 500;
                    font-size: 12px;
                    line-height: 16px;
                    cursor: pointer;

                    .topic-icon {
                        display: block;
                        width: 14px;
                        height: 14px;
                        background-color: var(--card_title);
                        -webkit-mask-image: var(--bg);
                        mask-image: var(--bg);
                        -webkit-mask-repeat: no-repeat;
                        mask-repeat: no-repeat;
                        -webkit-mask-position: center;
                        mask-position: center;
                        -webkit-mask-size: contain;
                        mask-size: contain;
                        transition: background-color 0.3s ease;
                    }

                    &.attributes {
                        background: linear-gradient(90deg, #5E5AD1 0%, #4B84C5 100%);
                        padding: 3px 8px 3px 3px;
                        color: #F5F3EF;
                        box-shadow: inset 0px 0px 0px 1px rgb(245 243 239 / 24%);

                        .topic-icon-wrap {
                            width: 18px;
                            height: 18px;
                            background: rgba(245, 243, 239, 0.24);
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            border-radius: 100px;
                            flex-shrink: 0;

                            .topic-icon {
                                width: 12px;
                                height: 12px;
                                background: #F5F3EF;
                            }
                        }
                    }

                    &.category {
                        background: #fff;
                        box-shadow: none;

                        .topic-icon {
                            background: #A0AFEE;
                        }
                    }
                }
            }

            .badges_wrap {
                display: flex;
                flex-wrap: wrap;
                align-items: flex-start;
                gap: 6px;
                margin-bottom: 16px;
            }

            .badges {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
            }

            .badge.new {
                color: #227329;
                background: #f2fbf2;
                padding: 8px 12px;
                border-radius: 100px;
                font-weight: 500;
                font-size: 12px;
                line-height: 16px;
            }

            .snorkel_card_title {
                font-size: 24px;
                line-height: 1.17;
                letter-spacing: -0.02em;
                margin-bottom: 14px;
            }

            .snorkel_card_excerpt {
                font-weight: 400;
                font-size: 12px;
                line-height: 1.33;
                opacity: .72;
            }

            .b-gap {
                width: 100%;
                margin-top: 32px;
            }

            .benchmark-label {
                font-family: 'geist-mono';
                font-weight: 500;
                font-size: 10px;
                line-height: 14px;
                color: var(--card_title);
                opacity: .72;
                text-transform: uppercase;
            }

            .preview-benchmark {
                margin-top: 16px;
                color: var(--card_title);
                display: grid;
                gap: 8px;

                .bp-top {
                    display: flex;
                    gap: 4px;
                    margin-bottom: 8px;
                    align-items: center;
                }

                .bp-index {
                    font-size: 10px;
                    line-height: 14px;
                    opacity: .72;
                }

                .bp-model {
                    letter-spacing: -0.02em;
                }

                .bp-icon {
                    width: 20px;
                    height: 20px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 2px;
                }

                .bp-score {
                    margin: 0 0 0 auto;
                    font-size: 12px;
                    line-height: 16px;
                    letter-spacing: -0.02em;
                }

                .bp-progress {
                    background: rgba(17, 28, 45, 0.04);
                    border-radius: 100px;
                }

                .bp-progress-bar {
                    height: 4px;
                    background: #5E5AD1;
                    border-radius: 999px;
                }

            }
        }

    }

    .snorkel_archive_pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 40px;
        flex-wrap: wrap;

        .page-numbers {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 40px;
            min-width: 40px;
            color: var(--card_badge);
            border: 1px solid var(--card_border);
            font-family: 'Geist';
            line-height: 1.2;
            font-weight: 500;
            font-size: 14px;

            svg {
                width: 10px;
                height: auto;
                color: inherit;
                fill: currentColor;
            }

            &.current {
                color: var(--card_title);
                border: 1px solid var(--card_title);
            }
        }
    }

    &.dark {
        --card_bg: #111C2D;
        --card_title: #F5F3EF;
        --card_text: rgba(245, 243, 239, 0.56);
        --card_border: rgba(245, 243, 239, 0.24);
        --card_badge: rgba(245, 243, 239, 0.72);
        --card_image_border: rgba(245, 243, 239, 0.16);
        --card_shadow: rgba(14, 23, 37, 0.08);
        --card_shadow_hover: rgba(14, 23, 37, 0.16);
        --card_menu_border: rgba(245, 243, 239, 0.08);
        --card_dd_bg: #16253B;
        --card_dd_active: rgba(245, 243, 239, 0.04);
        --card_check_bg: #A0AFEE;
        --dropdown_shadow: rgba(17, 28, 45, 0.08);

        .snorkel_listing_filters {
            select {
                background-image: url('data:image/svg+xml,<svg width="9" height="5" viewBox="0 0 9 5" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.5 0.5L4.5 4.5L8.5 0.5" stroke="%23F5F3EF" stroke-opacity="0.72" stroke-linecap="round" stroke-linejoin="round"/></svg>');
            }
        }

        &.v2 {
            .snorkel_post_irem {
                background: #0E1725;
            }

            .search_item {
                background: #0E1725;
            }
        }
    }

    @media (max-width: 767px) {
        .snorkel_listing_filters {
            .filter_title {
                font-size: 28px;
            }
        }
    }

    @media (max-width: 639px) {
        .snorkel_listing_filters {
            &.mobile_gap_8 {
                gap: 8px;
            }

            .filter_title {
                width: 100%;
            }

            .filter_wrapper {
                width: 100%;
                justify-content: space-between;
            }

            .snorkel_filter_item {
                flex-basis: calc(50% - 4px);

                &.mobile_full {
                    flex-basis: 100%;
                }
            }
        }
    }
}

.research_thumb {
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: #fff;
    display: grid;
    grid-template-columns: 10fr 7fr;
    gap: 2%;
    container-type: inline-size;

    .rt_left {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding: 5% 0 5% 5%;

        .rt_logo {
            width: 20%;
        }

        .rt_title {
            font-family: 'Geist';
            font-weight: 500;
            line-height: 1.1;
            color: #111C2D;
            font-size: clamp(10px, 5cqi, 96px);

            /*overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;*/
            &.small-font {
                font-size: clamp(10px, 4cqi, 96px);
            }
        }
    }

    .rt_right {
        position: relative;
        display: flex;
        height: 100%;
        overflow: hidden;

        .right_content {
            font-size: clamp(6px, 2.5cqi, 48px);
            color: rgba(17, 28, 45, 0.56);
            font-family: "source-serif-pro", sans-serif;
            line-height: 1.5;
            margin-right: -25%;
        }

    }

}