.block-overlay.s-dark {
    background: var(--c-contrast-10);
    padding: 22px 22px 8px;
}

.bw-home-ref {
    margin: 0 0 36px;
}

.bw-home-ref .block-wrap {
    margin: 0;
}

.bw-home-ref .block-head {
    margin-bottom: 14px;
}

.bw-home-ref .media img,
.bw-home-ref .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bw-home-ref .grid-overlay::before {
    background: linear-gradient(transparent 32%, rgba(8, 12, 18, 0.84) 100%);
}

.bw-home-ref .loop-grid .meta-below .post-cat,
.bw-home-ref .loop-overlay .meta-below .post-cat {
    display: none;
}

.bw-home-ref .loop-grid .meta-below .post-cat + .meta-item::before,
.bw-home-ref .loop-overlay .meta-below .post-cat + .meta-item::before {
    content: none;
}

.bw-ref-body {
    min-width: 0;
}

.bw-region-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "feature"
        "left"
        "right";
    gap: 16px;
}

.bw-slot-feature {
    grid-area: feature;
}

.bw-slot-left {
    grid-area: left;
}

.bw-slot-right {
    grid-area: right;
}

.bw-region-bottom {
    margin-top: 16px;
}

.bw-ref-latest[data-count="1"] .bw-region-top,
.bw-ref-latest[data-count="2"] .bw-region-top {
    grid-template-areas: "feature" "left";
}

@media (min-width: 900px) {
    .bw-region-top {
        grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.45fr) minmax(0, 0.86fr);
        grid-template-areas: "left feature right";
        align-items: stretch;
        gap: 14px;
    }

    .bw-ref-latest[data-count="2"] .bw-region-top {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.86fr);
        grid-template-areas: "feature left";
    }

    .bw-ref-latest[data-count="1"] .bw-region-top {
        grid-template-columns: minmax(0, 640px);
        justify-content: center;
        grid-template-areas: "feature";
    }

    .bw-ref-ethereum .bw-ref-body,
    .bw-ref-technology .bw-ref-body,
    .bw-ref-security .bw-ref-body {
        display: grid;
        gap: 16px 18px;
        align-items: start;
    }

    .bw-ref-ethereum .bw-ref-body {
        grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
        gap: 8px;
        align-items: stretch;
    }

    .bw-ref-ethereum .bw-slot-feature,
    .bw-ref-ethereum .bw-slot-feature .block-wrap,
    .bw-ref-ethereum .bw-slot-feature .block-content,
    .bw-ref-ethereum .bw-slot-feature .loop,
    .bw-ref-ethereum .bw-slot-feature article,
    .bw-ref-ethereum .bw-slot-feature .media,
    .bw-ref-ethereum .bw-slot-feature .image-link {
        height: 100%;
    }

    .bw-ref-ethereum .bw-slot-feature .media-ratio,
    .bw-ref-ethereum .bw-slot-feature .image-link {
        height: 100%;
        padding-top: 0;
    }

    .bw-ref-technology .bw-ref-body {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.16fr);
        gap: 8px 26px;
    }

    .bw-ref-technology .bw-region-list {
        order: -1;
    }

    .bw-ref-research .bw-ref-body {
        display: grid;
        grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
        gap: 16px 24px;
        align-items: start;
    }

    .bw-ref-research .bw-region-feature {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .bw-ref-research .bw-region-medium,
    .bw-ref-research .bw-region-compact {
        grid-column: 2;
    }

    .bw-ref-security .bw-ref-body {
        grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.9fr);
        gap: 16px 20px;
    }

    .bw-ref-bitcoin .bw-ref-body {
        display: grid;
        grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
        gap: 28px 22px;
        align-items: stretch;
    }

    .bw-ref-bitcoin .bw-region-lower {
        grid-column: 1 / -1;
    }

    .bw-ref-bitcoin .bw-region-feature,
    .bw-ref-bitcoin .bw-slot-feature,
    .bw-ref-bitcoin .bw-slot-feature .block-wrap,
    .bw-ref-bitcoin .bw-slot-feature .block-content,
    .bw-ref-bitcoin .bw-slot-feature .loop,
    .bw-ref-bitcoin .bw-slot-feature article {
        height: 100%;
        min-height: 0;
    }

    .bw-ref-bitcoin .bw-slot-feature article {
        display: flex;
        flex-direction: column;
    }

    .bw-ref-bitcoin .bw-slot-feature .media {
        display: flex;
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .bw-ref-bitcoin .bw-slot-feature .media-ratio,
    .bw-ref-bitcoin .bw-slot-feature .image-link {
        flex: 1 1 auto;
        align-self: stretch;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .bw-ref-bitcoin .bw-slot-feature .content {
        flex: 0 0 auto;
    }
}

.bw-ref-ethereum .bw-region-support .content,
.bw-ref-ethereum .bw-region-support .l-post {
    text-align: center;
}

.bw-ref-ethereum .bw-region-support .post-meta-items {
    justify-content: center;
}

.bw-ref-policy .bw-region-support {
    margin-top: 18px;
}

.bw-ref-security {
    position: relative;
    isolation: isolate;
    background: #12171f;
    padding: 18px 18px 10px;
}

.bw-ref-security::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: -100vmax;
    right: -100vmax;
    background: #12171f;
    pointer-events: none;
}

.bw-ref-security .heading,
.bw-ref-security .heading a,
.bw-ref-security .bw-region-list .post-title a {
    color: #f5f7fa;
}

.bw-ref-security .bw-region-list .meta-item,
.bw-ref-security .bw-region-list .post-date,
.bw-ref-security .bw-region-list .excerpt {
    color: #c5ccd6;
}

.elementor-top-section:has(.bw-ref-markets) {
    position: relative;
    z-index: 0;
    background-color: #f2f3ff !important;
}

.elementor-top-section:has(.bw-ref-markets)::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: -100vmax;
    right: -100vmax;
    height: 256px;
    background: #1c2334;
    pointer-events: none;
}

.elementor-top-section:has(.bw-ref-markets) > .elementor-container {
    position: relative;
    z-index: 1;
}

.bw-ref-markets {
    position: relative;
    background: transparent;
    padding: 28px 0 56px;
    margin-bottom: 28px;
}

.bw-ref-markets .block-head {
    margin-bottom: 22px;
}

body.page-id-199 .bw-fin-bar .bw-ref-markets .block-head .heading {
    margin-bottom: 0;
}

.bw-ref-markets .heading,
.bw-ref-markets .heading a {
    color: #f5f7fa;
}

.bw-ref-markets .bw-region-feature {
    max-width: 760px;
    margin: 4px auto 0;
}

.bw-ref-markets .bw-region-strip {
    margin-top: 22px;
}

.bw-ref-technology .loop-list .media,
.bw-ref-security .loop-list .media,
.bw-ref-research .loop-small .media {
    width: 96px;
    flex: 0 0 96px;
}

@media (max-width: 899px) {
    .elementor-top-section:has(.bw-ref-markets)::before {
        height: 200px;
    }

    .bw-ref-markets .bw-region-feature {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .bw-home-ref {
        margin-bottom: 28px;
    }

    .bw-ref-security {
        padding: 14px 12px 6px;
    }
}
