:root{
    --v17-gold:#b98a36;
    --v17-gold2:#dfc078;
    --v17-dark:#2f2118;
    --v17-bg:#fff8ea;
    --v17-muted:#756556;
    --v17-line:rgba(185,138,54,.22);
}

html,
body{
    max-width:100%;
    overflow-x:hidden!important;
}

body{
    background:linear-gradient(180deg,#fff,var(--v17-bg),#fff)!important;
    color:var(--v17-dark);
}

/* Kill old useless bottom toolbars */
.appv5-actions,
.appv5-toast,
[data-appv5-actions],
[data-appv5-toast]{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
}

/* Hide duplicated homepage blocks only if new landing/slim exists */
body:has(.ahv16-home) .alp13-landing,
body:has(.ahv16-home) .ahs-home-studio,
body:has(.ahv16-home) .ahs11-public,
body:has(.ahv16-home) .anf14-home-start,
body:has(.ahv16-home) .actx-section,
body:has(.ahv16-home) .asfq-section{
    display:none!important;
}

/* Global layout stability */
main,
section,
.container,
.container-x{
    max-width:100%;
}

img,
video,
iframe{
    max-width:100%;
}

img{
    height:auto;
}

/* Header lighter and clearer */
header,
.site-header,
.main-header,
.public-header{
    background:rgba(255,255,255,.96)!important;
    border-bottom:1px solid rgba(185,138,54,.18)!important;
    box-shadow:0 8px 26px rgba(75,51,34,.07)!important;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}

/* Unified buttons */
a,
button{
    -webkit-tap-highlight-color:transparent;
}

.btn,
.btn-gold,
.gold,
a.gold,
button.gold,
.ahv16-actions a,
.ahv16-strip a,
.alp13-actions-public a,
.acd12-quick-links a,
.anf14-internal-bar a{
    border-radius:999px!important;
    font-weight:900!important;
}

.gold,
a.gold,
button.gold,
.btn-gold{
    background:linear-gradient(135deg,var(--v17-gold),var(--v17-gold2))!important;
    color:#fff!important;
    border-color:transparent!important;
    box-shadow:0 12px 30px rgba(185,138,54,.22)!important;
}

.gold:hover,
a.gold:hover,
button.gold:hover,
.btn-gold:hover{
    transform:translateY(-1px);
    box-shadow:0 18px 42px rgba(185,138,54,.28)!important;
}

/* Cards lighter */
.card,
article,
.acd12-enhanced-card,
.ahv16-info article,
.ahv16-slide{
    border:1px solid rgba(185,138,54,.18)!important;
    box-shadow:0 12px 34px rgba(75,51,34,.07)!important;
}

/* Internal quick bar should not become heavy */
.anf14-internal-bar{
    margin-top:8px!important;
    box-shadow:0 8px 24px rgba(75,51,34,.06)!important;
}

/* SEO readable content */
h1,h2,h3{
    text-wrap:balance;
}

p{
    text-wrap:pretty;
}

/* Performance */
main section,
section[class*="section"],
.card,
article{
    content-visibility:auto;
    contain-intrinsic-size:1px 420px;
}

.ahv16-home,
.alp13-landing,
.acd12-page-hero{
    content-visibility:visible;
}

/* Mobile first cleanup */
@media(max-width:760px){
    body{
        font-size:15px;
    }

    header,
    .site-header,
    .main-header,
    .public-header{
        position:relative!important;
    }

    .container,
    .container-x{
        padding-left:10px!important;
        padding-right:10px!important;
    }

    .ahv16-home{
        padding-top:22px!important;
    }

    .ahv16-copy h1,
    .alp13-hero h1{
        font-size:clamp(32px,9.5vw,44px)!important;
        line-height:1.12!important;
    }

    .ahv16-copy p,
    .alp13-hero p{
        font-size:15px!important;
        line-height:1.75!important;
    }

    .ahv16-actions,
    .alp13-actions-public{
        gap:7px!important;
    }

    .ahv16-actions a,
    .alp13-actions-public a{
        min-height:42px!important;
        width:100%;
    }

    .ahv16-slide,
    .alp13-slide{
        height:210px!important;
        border-radius:22px!important;
    }

    .ahv16-strip,
    .alp13-category-strip,
    .anf14-internal-bar div{
        overflow-x:auto!important;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .ahv16-strip::-webkit-scrollbar,
    .alp13-category-strip::-webkit-scrollbar,
    .anf14-internal-bar div::-webkit-scrollbar{
        display:none;
    }

    main section,
    section[class*="section"],
    .card,
    article{
        contain-intrinsic-size:1px 360px;
    }
}

@media(max-width:760px), (prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        animation-duration:.001ms!important;
        animation-iteration-count:1!important;
        transition-duration:.001ms!important;
        scroll-behavior:auto!important;
    }
}
