/* Blog archive — uses the same visual language and container width as Home. */
body:has([data-editable="blog-hero-title"]) main {
    position: relative;
    isolation: isolate;
}

body:has([data-editable="blog-hero-title"]) main > section:first-child {
    padding: 140px 0 56px !important;
    overflow: hidden;
}

body:has([data-editable="blog-hero-title"]) main > section:first-child::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(56vw, 760px);
    height: min(56vw, 760px);
    top: -48%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(254, 247, 175, .72) 0%, rgba(254, 247, 175, .18) 38%, transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

body:has([data-editable="blog-hero-title"]) main > section > div {
    width: min(100% - 96px, 1500px) !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:has([data-editable="blog-hero-title"]) [data-editable="blog-hero-title"] {
    max-width: 1080px;
    margin: 0 auto 24px !important;
    font-size: clamp(3.25rem, 5.5vw, 5.25rem) !important;
    font-weight: 460 !important;
    line-height: .98 !important;
    letter-spacing: -.065em !important;
}

body:has([data-editable="blog-hero-title"]) [data-editable="blog-hero-subtitle"] {
    max-width: 760px !important;
    font-size: 1.125rem !important;
    line-height: 1.58 !important;
    letter-spacing: -.025em !important;
    color: rgba(0, 0, 0, .62) !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) {
    padding-bottom: 88px !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) > div > .grid {
    gap: 14px !important;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, .055);
    border-radius: 34px;
    background: rgba(255, 255, 255, .38);
    box-shadow: 0 20px 55px rgba(38, 35, 26, .055);
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) .group.cursor-pointer {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 9px !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 24px rgba(25, 25, 22, .045) !important;
    transition: transform .42s cubic-bezier(.2, .8, .2, 1), box-shadow .42s ease, border-color .42s ease !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) .group.cursor-pointer:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(0, 0, 0, .10) !important;
    box-shadow: 0 20px 42px rgba(25, 25, 22, .12) !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) .group.cursor-pointer > div:first-child {
    margin-bottom: 22px !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) .group.cursor-pointer > div:nth-child(2) {
    flex: 1;
    padding: 0 15px 15px !important;
    gap: 13px !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) h3 {
    font-size: clamp(1.38rem, 2vw, 1.72rem) !important;
    font-weight: 560 !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) p {
    font-size: .9375rem !important;
    line-height: 1.58 !important;
    letter-spacing: -.015em !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) a.btn-premium-base {
    margin-top: auto !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) {
    padding: 0 0 88px !important;
    background: transparent !important;
    border: 0 !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) > div > .max-w-xl {
    max-width: 760px !important;
    padding: 52px clamp(26px, 5vw, 68px) !important;
    gap: 18px !important;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 32px;
    background:
        radial-gradient(circle at 88% 8%, rgba(254, 247, 175, .22), transparent 34%),
        linear-gradient(135deg, #151515 0%, #282827 100%);
    box-shadow: 0 28px 58px rgba(25, 25, 22, .16);
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) h2 {
    color: #fff !important;
    font-size: clamp(2rem, 3.4vw, 3rem) !important;
    font-weight: 470 !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) p {
    color: rgba(255, 255, 255, .66) !important;
    font-size: .975rem !important;
    line-height: 1.6 !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) input {
    min-height: 60px;
    padding-right: 146px !important;
    border-color: rgba(255, 255, 255, .16) !important;
    background: rgba(255, 255, 255, .94) !important;
}

body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) button {
    min-height: 44px;
}

@media (max-width: 1179px) {
    body:has([data-editable="blog-hero-title"]) main > section > div {
        width: min(100% - 56px, 1500px) !important;
    }
}

@media (max-width: 767px) {
    body:has([data-editable="blog-hero-title"]) main > section:first-child {
        padding: 108px 0 38px !important;
    }

    body:has([data-editable="blog-hero-title"]) main > section:first-child::before {
        width: 520px;
        height: 520px;
        top: -35%;
    }

    body:has([data-editable="blog-hero-title"]) main > section > div {
        width: min(100% - 36px, 1500px) !important;
    }

    body:has([data-editable="blog-hero-title"]) [data-editable="blog-hero-title"] {
        margin-bottom: 18px !important;
        font-size: clamp(2.7rem, 13vw, 4rem) !important;
    }

    body:has([data-editable="blog-hero-title"]) [data-editable="blog-hero-subtitle"] {
        font-size: 1rem !important;
        line-height: 1.52 !important;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) {
        padding-bottom: 52px !important;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) > div > .grid {
        gap: 9px !important;
        padding: 8px;
        border-radius: 24px;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) .group.cursor-pointer {
        border-radius: 19px !important;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) .group.cursor-pointer > div:first-child {
        margin-bottom: 17px !important;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) .group.cursor-pointer > div:nth-child(2) {
        padding: 0 10px 12px !important;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) h3 {
        font-size: 1.35rem !important;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) {
        padding-bottom: 52px !important;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) > div > .max-w-xl {
        padding: 36px 20px !important;
        border-radius: 24px;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) input {
        min-height: 58px;
        padding: 0 15px !important;
        padding-right: 15px !important;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) .relative.group {
        display: grid;
        gap: 9px;
    }

    body:has([data-editable="blog-hero-title"]) main > section:nth-child(3) button {
        position: static !important;
        width: 100%;
        min-height: 50px;
        transform: none !important;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has([data-editable="blog-hero-title"]) main > section:nth-child(2) .group.cursor-pointer {
        transition: none !important;
    }
}
