
/* BKS_DEEPDIVE_POLISH_V1 */
/* Shared visual pass for /deep-dive/* only. Content remains untouched. */

body.bks-deepdive-v1{
    background:
      radial-gradient(ellipse at top, #2f2542 0%, #0d1328 42%, #070b18 100%) !important;
    color:#efeaf6 !important;
}

/* remove the ugly fixed side placeholders on deep dives only */
body.bks-deepdive-v1 > .ad-rail{
    display:none !important;
}

/* hide the generic floating back wrapper on deep dives only */
body.bks-deepdive-v1 .sage-backwrap{
    display:none !important;
}

/* widen and tighten the page */
body.bks-deepdive-v1 #main-content{
    padding-top:0 !important;
}
body.bks-deepdive-v1 .sage-container{
    max-width:1180px !important;
    padding:14px 24px 26px !important;
}

/* global type polish */
body.bks-deepdive-v1 h1,
body.bks-deepdive-v1 h2,
body.bks-deepdive-v1 h3{
    color:#f3dcff !important;
    text-shadow:0 0 18px rgba(154,114,216,.16);
}
body.bks-deepdive-v1 p,
body.bks-deepdive-v1 li{
    color:#efeaf5 !important;
    line-height:1.74 !important;
    font-size:1.08rem !important;
}

/* hero image / artwork */
body.bks-deepdive-v1 img{
    display:block !important;
    max-width:100% !important;
    height:auto !important;
    margin:18px auto 14px !important;
    border-radius:22px !important;
    border:1px solid rgba(198,181,236,.28) !important;
    box-shadow:0 20px 42px rgba(0,0,0,.34) !important;
}

/* main content cards — only blocks that actually contain paragraphs */
body.bks-deepdive-v1 .sage-container > div:has(p),
body.bks-deepdive-v1 .sage-container > section:has(p),
body.bks-deepdive-v1 .sage-container > article:has(p){
    background:linear-gradient(180deg, rgba(24,22,47,.94), rgba(13,17,35,.94)) !important;
    border:1px solid rgba(144,130,190,.28) !important;
    border-radius:28px !important;
    padding:28px 34px !important;
    box-shadow:0 12px 28px rgba(0,0,0,.18) !important;
    margin-bottom:20px !important;
}

/* section titles inside cards */
body.bks-deepdive-v1 .sage-container > div:has(p) h2,
body.bks-deepdive-v1 .sage-container > section:has(p) h2,
body.bks-deepdive-v1 .sage-container > article:has(p) h2{
    color:#ffd86e !important;
    font-size:clamp(1.45rem, 2vw, 2rem) !important;
    margin:0 0 16px 0 !important;
}

/* stronger emphasis text */
body.bks-deepdive-v1 strong{
    color:#ffe16d !important;
}

/* lore/secondary links */
body.bks-deepdive-v1 .sage-container a{
    transition:all .2s ease;
}
body.bks-deepdive-v1 .sage-container a:hover{
    filter:brightness(1.08);
}

/* layer navigation buttons */
body.bks-deepdive-v1 .sage-container a[href*="/deep-dive/"][href*="/layer"]{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:44px !important;
    min-height:44px !important;
    padding:0 14px !important;
    border-radius:14px !important;
    border:1px solid rgba(184,163,232,.30) !important;
    background:rgba(24,22,46,.88) !important;
    color:#f5e7ff !important;
    text-decoration:none !important;
    box-shadow:none !important;
}
body.bks-deepdive-v1 .sage-container a[href*="/deep-dive/"][href*="/layer"]:hover{
    background:rgba(72,55,112,.92) !important;
    border-color:rgba(214,194,255,.52) !important;
    transform:translateY(-1px);
}

/* back to horoscope / home style */
body.bks-deepdive-v1 .sage-container a[href*="/horoscope/"],
body.bks-deepdive-v1 .sage-container a[href="/"]{
    color:#d8cdef !important;
    text-decoration:none !important;
}

/* compact footer */
body.bks-deepdive-v1 .sage-footer{
    margin-top:20px !important;
    padding-top:18px !important;
    border-top:1px solid rgba(139,126,183,.24) !important;
}
body.bks-deepdive-v1 .sage-footer p,
body.bks-deepdive-v1 .footer-link{
    color:#d2c8e6 !important;
}
body.bks-deepdive-v1 .footer-link:hover{
    color:#fff2c8 !important;
}

/* if a floating QR widget belongs to the page skin, suppress it on deep dives */
body.bks-deepdive-v1 [class*="qr-widget"],
body.bks-deepdive-v1 [id*="qr-widget"],
body.bks-deepdive-v1 .floating-qr{
    display:none !important;
}

@media (max-width: 900px){
    body.bks-deepdive-v1 .sage-container{
        padding:12px 16px 22px !important;
    }
    body.bks-deepdive-v1 .sage-container > div:has(p),
    body.bks-deepdive-v1 .sage-container > section:has(p),
    body.bks-deepdive-v1 .sage-container > article:has(p){
        padding:22px 18px !important;
        border-radius:22px !important;
    }
    body.bks-deepdive-v1 p,
    body.bks-deepdive-v1 li{
        font-size:1rem !important;
    }
}
