/* Long-form article treatment. Content remains deliberately unchanged. */
body:has(.blog-content) main {
    position: relative;
    isolation: isolate;
}

body:has(.blog-content) main > section:first-child {
    padding: 142px 0 54px !important;
    overflow: hidden;
}

body:has(.blog-content) main > section:first-child::before {
    position: absolute;
    z-index: -1;
    top: -44%;
    left: 50%;
    width: min(62vw, 900px);
    height: min(62vw, 900px);
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(254, 247, 175, .84) 0%, rgba(254, 247, 175, .23) 38%, transparent 69%);
    filter: blur(18px);
    content: "";
    pointer-events: none;
}

body:has(.blog-content) main > section:first-child > div {
    width: min(100% - 96px, 1120px) !important;
    max-width: none !important;
    padding: 0 !important;
}

body:has(.blog-content) main > section:first-child > div > div:first-child {
    padding: 8px 14px !important;
    border-color: rgba(0, 0, 0, .075) !important;
    background: rgba(254, 247, 175, .92) !important;
    box-shadow: 0 9px 22px rgba(109, 92, 20, .11) !important;
}

body:has(.blog-content) main > section:first-child > div > .bg-accent-blue\/20 {
    background: rgba(132, 230, 246, .30) !important;
    box-shadow: 0 9px 22px rgba(28, 133, 151, .11) !important;
}

body:has(.blog-content) main > section:first-child h1 {
    max-width: 1030px !important;
    margin-bottom: 18px !important;
    font-size: clamp(3.15rem, 5.6vw, 5.25rem) !important;
    font-weight: 460 !important;
    line-height: .98 !important;
    letter-spacing: -.065em !important;
}

body:has(.blog-content) main > section:first-child .text-sm {
    margin-bottom: 34px !important;
    color: rgba(0, 0, 0, .48) !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    letter-spacing: .035em !important;
}

body:has(.blog-content) main > section:first-child .aspect-\[16\/9\] {
    border: 1px solid rgba(0, 0, 0, .075) !important;
    border-radius: 32px !important;
    box-shadow: 0 24px 56px rgba(35, 30, 20, .14) !important;
}

body:has(.blog-content) main > section:nth-child(2) {
    padding-bottom: 94px !important;
}

body:has(.blog-content) .blog-content {
    width: min(100% - 96px, 840px) !important;
    max-width: none !important;
    padding: 0 !important;
}

body:has(.blog-content) .blog-content > p {
    margin-bottom: 22px !important;
    color: rgba(17, 17, 17, .67) !important;
    font-size: 1.0625rem !important;
    line-height: 1.73 !important;
    letter-spacing: -.018em !important;
}

body:has(.blog-content) .blog-content h2 {
    position: relative;
    margin-top: 76px !important;
    margin-bottom: 19px !important;
    padding-top: 21px;
    color: #111 !important;
    font-size: clamp(2rem, 3.25vw, 2.75rem) !important;
    font-weight: 520 !important;
    line-height: 1.04 !important;
    letter-spacing: -.055em !important;
}

body:has(.blog-content) .blog-content h2::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 3px;
    border-radius: 99px;
    background: #fecd1a;
    content: "";
}

body:has(.blog-content) .blog-content h3 {
    margin-top: 44px !important;
    margin-bottom: 12px !important;
    color: #171717 !important;
    font-size: clamp(1.32rem, 2.1vw, 1.58rem) !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    letter-spacing: -.042em !important;
}

body:has(.blog-content) .blog-content ul {
    display: grid;
    gap: 10px;
    margin: 28px 0 31px !important;
    padding: 22px 24px !important;
    border: 1px solid rgba(17, 17, 17, .07);
    border-radius: 19px;
    background: rgba(255, 255, 255, .62);
}

body:has(.blog-content) .blog-content ul li {
    min-height: 20px;
    margin: 0 !important;
    padding-left: 25px !important;
    color: rgba(17, 17, 17, .68) !important;
    font-size: .98rem !important;
    line-height: 1.5 !important;
}

body:has(.blog-content) .blog-content ul li::before {
    top: -.05em !important;
    color: #d6ad08 !important;
}

body:has(.blog-content) .blog-content > div.my-10.rounded-\[24px\] {
    margin: 42px 0 !important;
    border-color: rgba(17, 17, 17, .075) !important;
    border-radius: 26px !important;
    box-shadow: 0 18px 46px rgba(35, 30, 20, .12) !important;
}

body:has(.blog-content) .blog-content > .group.bg-white,
body:has(.blog-content) .blog-content > .bg-white.border,
body:has(.blog-content) .blog-content > .bg-gradient-to-br,
body:has(.blog-content) .blog-content > .text-center {
    position: relative;
    margin: 48px 0 !important;
    border-color: rgba(17, 17, 17, .075) !important;
    border-radius: 27px !important;
    box-shadow: 0 16px 40px rgba(35, 30, 20, .075) !important;
}

body:has(.blog-content) .blog-content > .group.bg-white,
body:has(.blog-content) .blog-content > .bg-white.border {
    padding: clamp(24px, 4vw, 40px) !important;
    background: rgba(255, 255, 255, .82) !important;
    transition: transform .38s cubic-bezier(.2, .8, .2, 1), box-shadow .38s ease !important;
}

body:has(.blog-content) .blog-content > .group.bg-white:hover,
body:has(.blog-content) .blog-content > .bg-white.border:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(35, 30, 20, .12) !important;
}

body:has(.blog-content) .blog-content > .bg-gradient-to-br {
    padding: clamp(24px, 4vw, 38px) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.93), rgba(240,236,230,.72)) !important;
}

body:has(.blog-content) .blog-content > .text-center {
    padding: clamp(34px, 5vw, 60px) !important;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .12) !important;
    background:
        radial-gradient(circle at 88% 12%, rgba(254, 247, 175, .22), transparent 34%),
        linear-gradient(135deg, #181817 0%, #2a2a28 100%) !important;
    box-shadow: 0 28px 62px rgba(25, 25, 22, .20) !important;
}

body:has(.blog-content) .blog-content > .text-center h3 {
    max-width: 700px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(2rem, 3.5vw, 3rem) !important;
    font-weight: 480 !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em !important;
}

body:has(.blog-content) .blog-content > .text-center p {
    margin: 0 !important;
    color: rgba(255, 255, 255, .65) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* The closing CTA sits on a dark surface, so its actions need their own clear contrast. */
body:has(.blog-content) .blog-content > .text-center .btn-premium-black {
    border: 1px solid rgba(255, 255, 255, .22) !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .20) !important;
}

body:has(.blog-content) .blog-content > .text-center .btn-premium-black .icon-box {
    background: #111 !important;
    color: #fff !important;
}

body:has(.blog-content) .blog-content > .text-center .btn-premium-outline {
    border-color: rgba(255, 255, 255, .58) !important;
    background: rgba(255, 255, 255, .03) !important;
    color: #fff !important;
}

body:has(.blog-content) .blog-content > .text-center .btn-premium-outline:hover {
    background: rgba(255, 255, 255, .12) !important;
}

body:has(.blog-content) .blog-content > .text-center .btn-premium-outline .icon-box {
    background: rgba(255, 255, 255, .16) !important;
    color: #fff !important;
}

body:has(.blog-content) .blog-content .btn-premium-base {
    min-height: 48px;
}

body:has(.blog-content) .blog-content .grid > div.rounded-2xl {
    border-color: rgba(17, 17, 17, .07) !important;
    border-radius: 18px !important;
}

body:has(.blog-content) .blog-content .grid > div.rounded-2xl ul {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body:has(.blog-content) .blog-content .grid > div.rounded-2xl ul li {
    margin-bottom: 9px !important;
}

@media (max-width: 767px) {
    body:has(.blog-content) main > section:first-child {
        padding: 108px 0 38px !important;
    }

    body:has(.blog-content) main > section:first-child > div,
    body:has(.blog-content) .blog-content {
        width: min(100% - 36px, 840px) !important;
    }

    body:has(.blog-content) main > section:first-child h1 {
        margin-bottom: 16px !important;
        font-size: clamp(2.65rem, 12.4vw, 4rem) !important;
    }

    body:has(.blog-content) main > section:first-child .text-sm {
        margin-bottom: 24px !important;
        font-size: .7rem !important;
        line-height: 1.5 !important;
    }

    body:has(.blog-content) main > section:first-child .aspect-\[16\/9\] {
        border-radius: 21px !important;
    }

    body:has(.blog-content) main > section:nth-child(2) {
        padding-bottom: 54px !important;
    }

    body:has(.blog-content) .blog-content > p {
        margin-bottom: 19px !important;
        font-size: 1rem !important;
        line-height: 1.66 !important;
    }

    body:has(.blog-content) .blog-content h2 {
        margin-top: 56px !important;
        margin-bottom: 16px !important;
        padding-top: 17px;
        font-size: 2rem !important;
    }

    body:has(.blog-content) .blog-content h3 {
        margin-top: 33px !important;
        font-size: 1.34rem !important;
    }

    body:has(.blog-content) .blog-content ul {
        margin: 22px 0 26px !important;
        padding: 18px !important;
        border-radius: 16px;
    }

    body:has(.blog-content) .blog-content ul li {
        font-size: .93rem !important;
    }

    body:has(.blog-content) .blog-content > div.my-10.rounded-\[24px\],
    body:has(.blog-content) .blog-content > .group.bg-white,
    body:has(.blog-content) .blog-content > .bg-white.border,
    body:has(.blog-content) .blog-content > .bg-gradient-to-br,
    body:has(.blog-content) .blog-content > .text-center {
        margin: 34px 0 !important;
        border-radius: 21px !important;
    }

    body:has(.blog-content) .blog-content > .group.bg-white,
    body:has(.blog-content) .blog-content > .bg-white.border,
    body:has(.blog-content) .blog-content > .bg-gradient-to-br {
        padding: 21px !important;
    }

    body:has(.blog-content) .blog-content > .text-center {
        padding: 36px 21px !important;
    }

    body:has(.blog-content) .blog-content > .text-center h3 {
        font-size: 2rem !important;
    }

    body:has(.blog-content) .blog-content > .text-center .flex {
        width: 100%;
    }

    body:has(.blog-content) .blog-content .btn-premium-base {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has(.blog-content) .blog-content > .group.bg-white,
    body:has(.blog-content) .blog-content > .bg-white.border {
        transition: none !important;
    }
}
