/* Shared safeguards and configurable controls, scoped to the home shortcode. */
.dav6-home{--davhp-accent:#e00000; box-sizing:border-box; width:100%; max-width:var(--davhp-width); margin:0 auto; font-family:inherit}
.dav6-home *, .dav6-home *::before,.dav6-home *::after{box-sizing:border-box}
.dav6-home .dav6-hero-section,.dav6-home .dav6-main-section{border-top-color:var(--davhp-accent)}
.dav6-home .dav6-heading,.dav6-home .dav6-side-heading{border-top-color:var(--davhp-accent)}
.dav6-home .dav6-label,.dav6-home .dav6-kicker,.dav6-home .dav6-offer-label,
.dav6-home .dav6-heading-actions>a,.dav6-home .dav6-side-all,
.dav6-home .dav6-read-more{color:var(--davhp-accent)}
.dav6-home .dav6-main-card h3 a:hover,.dav6-home .dav6-side-content h3 a:hover{color:var(--davhp-accent)}
.dav6-home .dav6-hero-controls button:hover,.dav6-home .dav6-cat-controls button:hover{color:var(--davhp-accent);border-color:var(--davhp-accent)}
.dav6-home .dav6-cat-page.is-active{grid-template-columns:repeat(var(--davhp-cards),minmax(0,1fr))}
.dav6-home.dav6-hide-excerpts .dav6-main-body p,.dav6-home.dav6-hide-excerpts .dav6-side-content p,.dav6-home.dav6-hide-excerpts .dav6-hero-content p{display:none}
.dav6-home.dav6-layout-three .dav6-layout{grid-template-columns:minmax(190px,21fr) minmax(0,58fr) minmax(200px,21fr)}
.dav6-home.dav6-no-left.dav6-layout-three .dav6-layout{grid-template-columns:minmax(0,1fr) minmax(235px,0.35fr)}
.dav6-home.dav6-no-right.dav6-layout-three .dav6-layout{grid-template-columns:minmax(230px,.35fr) minmax(0,1fr)}
.dav6-home.dav6-no-left.dav6-no-right .dav6-layout{display:block}
.dav6-home.dav6-layout-two .dav6-layout{grid-template-columns:minmax(0,1fr) minmax(250px,.32fr)}
.dav6-home.dav6-layout-full .dav6-layout{display:block}
.dav6-home.dav6-layout-full .dav6-center{max-width:100%}
.dav6-home a:focus-visible,.dav6-home button:focus-visible{outline:2px solid var(--davhp-accent);outline-offset:3px}
.dav6-home .dav6-cat-page:not(.is-active),.dav6-home .dav6-hero-page:not(.is-active){visibility:hidden;height:0;overflow:hidden}
.dav6-home .dav6-cat-page.is-active,.dav6-home .dav6-hero-page.is-active{visibility:visible;height:auto}

/* Premium: editorial look with larger type, clean surfaces and a modern flagship story. */
.dav6-home.dav6-mode-premium{
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  max-width:var(--davhp-width); line-height:1.5; color:#1c2330;
}
.dav6-mode-premium .dav6-hero-section{border-top:0; padding:20px; margin:18px 0 36px; background:#f5f7fa; border-radius:16px; box-shadow:0 1px 0 #e8ecf1}
.dav6-mode-premium .dav6-hero-header{padding-bottom:13px; margin-bottom:20px; border-bottom:1px solid #dfe4eb}
.dav6-mode-premium .dav6-kicker{font-size:10px;letter-spacing:1.5px;margin-bottom:5px;font-weight:850}
.dav6-mode-premium .dav6-hero-header h2{font-size:clamp(24px,2.3vw,36px);font-weight:850;letter-spacing:-.9px}
.dav6-mode-premium .dav6-hero-page.is-active{grid-template-columns:minmax(180px,.7fr) minmax(0,1.8fr) minmax(175px,.75fr);gap:20px}
.dav6-mode-premium .dav6-hero-lead{background:white;border-radius:12px;overflow:hidden;box-shadow:0 4px 20px #2438580d}
.dav6-mode-premium .dav6-hero-lead .dav6-hero-image{border-radius:0;aspect-ratio:16/8.8}
.dav6-mode-premium .dav6-hero-lead .dav6-hero-content{padding:17px 19px 20px}
.dav6-mode-premium .dav6-hero-lead h2{font-size:clamp(22px,2vw,32px);line-height:1.13;letter-spacing:-.55px}
.dav6-mode-premium .dav6-hero-lead p{font-size:13px;line-height:1.55}
.dav6-mode-premium .dav6-hero-left h3{font-size:14px;line-height:1.35}
.dav6-mode-premium .dav6-hero-bottom h3{font-size:12px;line-height:1.4}
.dav6-mode-premium .dav6-hero-right h3{font-size:12.5px;line-height:1.35}
.dav6-mode-premium .dav6-hero-right .dav6-hero-story{grid-template-columns:88px minmax(0,1fr);gap:10px}
.dav6-mode-premium .dav6-hero-right .dav6-hero-image{width:88px;height:76px}
.dav6-mode-premium .dav6-date{font-size:10px;color:#788395}
.dav6-mode-premium .dav6-layout{gap:22px}
.dav6-mode-premium .dav6-main-section{margin-bottom:34px}
.dav6-mode-premium .dav6-heading{border-top:0;border-bottom:2px solid #e7ebf0;position:relative;margin-bottom:16px}
.dav6-mode-premium .dav6-heading::before{content:"";position:absolute;left:0;bottom:-2px;background:var(--davhp-accent);height:3px;width:70px}
.dav6-mode-premium .dav6-heading h2{font-size:21px;font-weight:800;letter-spacing:-.35px;padding:0 0 13px}
.dav6-mode-premium .dav6-cat-page.is-active{gap:13px}
.dav6-mode-premium .dav6-main-card{border-radius:11px;border:1px solid #e5e9ef;box-shadow:0 6px 22px #1c23300b;transition:transform .2s,box-shadow .2s}
.dav6-mode-premium .dav6-main-card:hover{transform:translateY(-3px);box-shadow:0 8px 28px #1c23301a}
.dav6-mode-premium .dav6-main-image{aspect-ratio:16/10}
.dav6-mode-premium .dav6-main-body{padding:12px 13px 15px}
.dav6-mode-premium .dav6-main-body h3{font-size:14px;line-height:1.36;margin:6px 0 7px;font-weight:780}
.dav6-mode-premium .dav6-main-body p{font-size:11px;line-height:1.48;margin:8px 0 12px}
.dav6-mode-premium .dav6-read-more{font-size:10.5px;font-weight:800}
.dav6-mode-premium .dav6-label{font-size:9px;letter-spacing:.3px;font-weight:850}
.dav6-mode-premium .dav6-sidebar-section{border:1px solid #eaedf1;border-top:3px solid var(--davhp-accent);padding:12px 12px 14px;border-radius:9px;box-shadow:0 6px 20px #18263908;margin-bottom:20px}
.dav6-mode-premium .dav6-side-heading{border:0}
.dav6-mode-premium .dav6-side-heading h2{font-size:17px;padding:2px 0 7px;letter-spacing:-.25px}
.dav6-mode-premium .dav6-side-intro{font-size:11px;color:#747e8d}
.dav6-mode-premium .dav6-side-post{grid-template-columns:75px minmax(0,1fr);gap:8px}
.dav6-mode-premium .dav6-side-image{height:70px;width:75px}
.dav6-mode-premium .dav6-side-content h3{font-size:12px;line-height:1.35}
.dav6-mode-premium .dav6-side-content p{font-size:10px;line-height:1.4}
.dav6-mode-premium .dav6-side-all{font-size:11px}
.dav6-mode-premium .dav6-image-placeholder{background:linear-gradient(125deg,#e5ebf1,#f7f9fc);color:#7d8792;font-size:10px;min-height:120px}
.dav6-mode-premium .dav6-cat-controls button,.dav6-mode-premium .dav6-hero-controls button{border-radius:6px;background:#fff;border:1px solid #d8dfe7}
.dav6-mode-premium .dav6-cat-controls button:hover,.dav6-mode-premium .dav6-hero-controls button:hover{background:#f4f6f8}
@media(max-width:1250px){
 .dav6-home.dav6-mode-premium .dav6-layout-three .dav6-layout{grid-template-columns:190px minmax(0,1fr) 215px}
 .dav6-home.dav6-mode-premium .dav6-cat-page.is-active{grid-template-columns:repeat(min(3,var(--davhp-cards)),minmax(0,1fr))}
}
@media(max-width:980px){
 .dav6-home.dav6-mode-premium .dav6-hero-page.is-active{grid-template-columns:1fr 1.55fr}
 .dav6-home.dav6-mode-premium .dav6-layout{grid-template-columns:minmax(0,1fr) 240px}
 .dav6-home.dav6-mode-premium .dav6-left{grid-column:1/-1;grid-row:2}
 .dav6-home.dav6-mode-premium .dav6-center{grid-column:1;grid-row:1}
 .dav6-home.dav6-mode-premium .dav6-right{grid-column:2;grid-row:1}
 .dav6-home .dav6-cat-page.is-active{grid-template-columns:repeat(min(2,var(--davhp-cards)),minmax(0,1fr))}
}
@media(max-width:680px){
 .dav6-home .dav6-layout,.dav6-home.dav6-layout-three .dav6-layout,.dav6-home.dav6-layout-two .dav6-layout{display:flex;flex-direction:column}
 .dav6-home .dav6-center{order:1;width:100%}
 .dav6-home .dav6-right{order:2;width:100%}
 .dav6-home .dav6-left{order:3;width:100%}
 .dav6-mode-premium .dav6-hero-section{padding:14px;border-radius:10px}
 .dav6-home.dav6-mode-premium .dav6-hero-page.is-active{display:flex;flex-direction:column}
 .dav6-home .dav6-cat-page.is-active{grid-template-columns:repeat(min(2,var(--davhp-cards)),minmax(0,1fr))}
 .dav6-home.dav6-mode-premium .dav6-main-body h3{font-size:13px}
 .dav6-mode-premium .dav6-hero-center{order:1}.dav6-mode-premium .dav6-hero-left{order:2}.dav6-mode-premium .dav6-hero-right{order:3}
}
@media(max-width:430px){
 .dav6-home .dav6-cat-page.is-active{grid-template-columns:1fr}
 .dav6-mode-premium .dav6-hero-left{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.dav6-home *{animation:none!important;transition:none!important}}

/* Opt-in wide canvas when theme entry-content has a narrow max-width. */
.dav6-home.dav6-wide{width:min(calc(100vw - 32px),var(--davhp-width));max-width:none;position:relative;left:50%;transform:translateX(-50%)}
@media(min-width:681px) and (max-width:980px){
 .dav6-home.dav6-layout-three:not(.dav6-no-right) .dav6-layout{grid-template-columns:minmax(0,1fr) minmax(215px,30%)}
 .dav6-home.dav6-layout-three:not(.dav6-no-right) .dav6-center{grid-column:1;grid-row:1}
 .dav6-home.dav6-layout-three:not(.dav6-no-right) .dav6-right{grid-column:2;grid-row:1}
 .dav6-home.dav6-layout-three:not(.dav6-no-right) .dav6-left{grid-column:1/-1;grid-row:2}
 .dav6-home.dav6-layout-three.dav6-no-right:not(.dav6-no-left) .dav6-layout{grid-template-columns:minmax(190px,30%) minmax(0,1fr)}
 .dav6-home.dav6-layout-three.dav6-no-right:not(.dav6-no-left) .dav6-center{grid-column:2;grid-row:1}
 .dav6-home.dav6-layout-three.dav6-no-right:not(.dav6-no-left) .dav6-left{grid-column:1;grid-row:1}
 .dav6-home.dav6-layout-three.dav6-no-left.dav6-no-right .dav6-layout{display:block}
}
