/* Approved Imagegen background515: scattered ink, not a navigation strip. */
body[data-ink-background="516"] {--dvn-ink-paper:#fffefa;}
body[data-ink-scene] {background-color:var(--dvn-ink-paper)!important;}
body[data-ink-scene] #app,
body[data-ink-scene] #app main {background-color:transparent!important;}
body[data-ink-scene] #app [data-ink-page-strip] {display:none!important;}
body[data-ink-scene] #app main {position:relative;}

/* Existing product layers stay interactive. Paint only occupies the margins. */
body[data-ink-scene="product"] #app .product-gallery,
body[data-ink-scene="product"] #app [data-ink-title] {position:relative!important;inset:auto!important;isolation:isolate;}
body[data-ink-scene="product"] #app .product-gallery {overflow:visible!important;}
body[data-ink-scene="product"] #app .product-gallery::before {
 content:"";position:absolute;inset:0;z-index:2;pointer-events:none;user-select:none;
 background-image:url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/cloud.webp'),url('/images/ui/ink-background-516/heart.webp'),url('/images/ui/ink-background-516/grass.webp'),url('/images/ui/ink-background-516/rays.webp'),url('/images/ui/ink-background-516/heart.webp');
 background-repeat:no-repeat;
 background-size:44px auto,80px auto,34px auto,38px auto,42px auto,22px auto;
 background-position:right 12% top 1%,right 8% top 10%,right 4% top 27%,left 0 bottom 18%,left 0 top 34%,right 3% bottom 17%;
}
body[data-ink-scene="product"] #app [data-ink-title]::after {
 content:none;position:absolute;top:-12px;right:0;width:90px;height:calc(100% + 58px);z-index:-1;pointer-events:none;user-select:none;
 background:url('/images/ui/ink-background-516/heart.webp') right 2px top 0/25px auto no-repeat,url('/images/ui/ink-background-516/star.webp') right 32px bottom 0/32px auto no-repeat;
}
body[data-ink-scene="product"] #app .gallery-thumbs {position:relative;z-index:3;}

/* The home scene keeps its original silhouette, swing and real product links. */
body[data-ink-scene="home"] #app .workshop-hero--reference {background-color:var(--dvn-ink-paper)!important;isolation:isolate;}
body[data-ink-scene="home"] #app .workshop-hero--reference::after {
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;user-select:none;
 background-image:url('/images/ui/ink-background-516/plane.webp'),url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/heart.webp'),url('/images/ui/ink-background-516/flower.webp'),url('/images/ui/ink-background-516/grass.webp'),url('/images/ui/ink-background-516/grass.webp'),url('/images/ui/ink-background-516/grass.webp'),url('/images/ui/ink-background-516/grass.webp'),url('/images/ui/ink-background-516/rays.webp');
 background-repeat:no-repeat;
 background-size:14% auto,3.4% auto,2.2% auto,2.5% auto,1.6% auto,3% auto,7% auto,3.4% auto,3.4% auto,3.2% auto,3.6% auto,2% auto;
 background-position:right 12% top 1%,right 22% top 4%,left 2% top 27%,right 35% top 64%,left 42% bottom 12%,left 24% top 8%,left 1% bottom 3%,left 1% top 36%,left 35% top 49%,left 14% bottom 7%,right 23% bottom 11%,right 10% top 35%;
}

/* Other editorial/catalog pages carry the same sparse margin rhythm. */
body[data-ink-scene="page"] #app main {
 background-image:url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/heart.webp'),url('/images/ui/ink-background-516/grass.webp'),url('/images/ui/ink-background-516/cloud.webp');
 background-repeat:no-repeat;background-size:34px auto,28px auto,36px auto,65px auto;
 background-position:right 2% top 70px,left 1% top 430px,right 1% top 830px,left 2% top 160px;
}
@media(max-width:699px){
 body[data-ink-scene="product"] #app .product-gallery::before {
  background-image:url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/cloud.webp'),url('/images/ui/ink-background-516/heart.webp'),url('/images/ui/ink-background-516/grass.webp'),url('/images/ui/ink-background-516/rays.webp'),url('/images/ui/ink-background-516/heart.webp'),url('/images/ui/ink-background-516/rays.webp');
  background-size:35px auto,63px auto,29px auto,31px auto,35px auto,18px auto,35px auto;
  background-position:right 0 top 0,right 12px top 46px,right 2px top 98px,left 0 bottom 135px,left -8px top 88px,right 2px bottom 135px,left 0 bottom 73px;
 }
 body[data-ink-scene="product"] #app .partner-product-gallery::before {top:-56px;background-position:right 0 top 0,right 12px top 54px,right 2px top 112px,left 0 bottom 135px,left -8px top 144px,right 2px bottom 135px,left 0 bottom 73px;}
 body[data-ink-scene="product"] #app [data-ink-title]::after {content:"";right:0;top:-9px;width:110px;height:calc(100% + 62px);background-image:url('/images/ui/ink-background-516/heart.webp'),url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/trail.webp');background-size:24px auto,30px auto,110px auto;background-position:right 0 top 0,right 55px bottom 18px,right -8px top 0;}
 body.wood-workshop-active[data-ink-scene="product"] #app [data-ink-title]::after {content:none;}
 body[data-ink-scene="home"] #app .workshop-hero--reference::after {
  background-image:url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/heart.webp'),url('/images/ui/ink-background-516/grass.webp'),url('/images/ui/ink-background-516/star.webp');
  background-size:25px auto,23px auto,29px auto,17px auto;
  background-position:right 12px top 12px,right 8px top 39%,left 3px bottom 58px,left 42% top 52%;
 }
 body[data-ink-scene="page"] #app main {background-size:29px auto,24px auto,29px auto,52px auto;background-position:right 7px top 64px,left 5px top 430px,right 5px top 830px,right 12px top 160px;}
}
@media(max-width:359px){
 /* Compact headers leave no safe margin above the gallery. */
 body[data-ink-scene="product"] #app .product-gallery::before {top:0;background-image:url('/images/ui/ink-background-516/star.webp'),url('/images/ui/ink-background-516/grass.webp');background-size:25px auto,24px auto;background-position:right 0 top 0,left 0 bottom 135px;}
 body[data-ink-scene="product"] #app [data-ink-title]::after {content:none;}
}
/* Keep real resizable text and uncluttered reading/printing modes. */
body.dvn-workshop-text-reflow[data-ink-scene="home"] #app .workshop-hero--reference::after {display:none;}
@media(prefers-contrast:more),(forced-colors:active){
 body[data-ink-scene] #app .product-gallery::before,body[data-ink-scene] #app [data-ink-title]::after,body[data-ink-scene] #app .workshop-hero--reference::after {display:none!important;}
 body[data-ink-scene] #app main {background-image:none!important;}
 body[data-ink-scene] {--dvn-ink-paper:Canvas;}
}
@media print {
 body[data-ink-scene] #app .product-gallery::before,body[data-ink-scene] #app [data-ink-title]::after,body[data-ink-scene] #app .workshop-hero--reference::after {display:none!important;}
 body[data-ink-scene] #app main {background-image:none!important;}
 body[data-ink-scene] {--dvn-ink-paper:#fff;}
}
