/* F v3 only. Existing lab.css and A-E are untouched. */
/* In raw F, suppress all app-owned full-width chrome paint before the first JS frame. */
body[data-variant=f][data-material=raw] :is(.glass,.edge-wash,.sample,.legacy-edge){display:none}
body[data-variant=f][data-material=raw] .chrome{background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
/* Keep the same control rectangles, scroll owner, artwork dimensions and legacy metadata. */
body[data-f-refinement]:not([data-f-refinement=original]) #heading,
body[data-f-refinement]:not([data-f-refinement=original]) #subtitle{opacity:var(--f-title-alpha,1)}
body[data-f-refinement]:not([data-f-refinement=original]) .compact{
 visibility:var(--f-compact-visibility,hidden);
 text-shadow:0 1px 5px rgb(var(--rgb)/.9),0 0 8px rgb(var(--rgb)/.6);
}
/* Per-foreground-element alpha only; the landscape has no mask or filter. */
[data-f-mask=dim]{opacity:.32}
[data-f-mask=ramp]{
 -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.32) var(--f-mask-start),#000 var(--f-mask-end));
 mask-image:linear-gradient(to bottom,rgba(0,0,0,.32) var(--f-mask-start),#000 var(--f-mask-end));
}
/* Optional backing, below the document and not a new front-facing header.
   Actual rubber-band paint belongs to the installed iOS host; this is an experiment. */
html[data-f-art-backing]{
 background-image:linear-gradient(to bottom,#779cb3 0px,#779cb3 140px,var(--canvas) 330px);
 background-attachment:fixed;background-repeat:no-repeat;
}
html[data-f-art-backing] .art::before{
 content:"";position:absolute;left:0;right:0;top:-180px;height:180px;background:#779cb3;pointer-events:none;
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
 body[data-variant=f][data-material=raw] .chrome{background:var(--canvas)}
 [data-f-mask=dim]{opacity:1}
 [data-f-mask=ramp]{-webkit-mask-image:none;mask-image:none}
}
