@layer blue18{
 body.blocks header .nc-masthead .tab-stack>:is(a,button){position:relative;background-image:none!important}
 body.blocks .tab-stack> :is(a,button):is([aria-current=page],[aria-expanded=true]){--tab-corner:white}
 /* Two ink-filled neighbors share one reverse rule in the existing border slot. */
 body.blocks .tab-stack>[aria-current=page]:has(+[aria-expanded=true]){border-bottom-color:white!important}
 body.blocks #saved .finder-filter-frame[data-tools-divider]::after{--rim-sw:none!important;--rim-se:none!important}
 .tab-joint,.attachment-joins,.tool-joins{position:absolute;pointer-events:none;display:block;overflow:visible}
 .tab-joint{left:0;top:0;width:100%;height:100%;fill:var(--tab-corner,var(--print-blue))}
 .attachment-joins,.tool-joins{fill:var(--print-blue);z-index:4}
 .attachment-joins{left:0;top:0;width:1px;height:1px}
 .tool-joins{left:0;width:100%;height:1px;bottom:0}
}

@media screen and (max-width:800px), screen and (pointer:coarse) and (max-height:500px){
 /* Paint each outside curve in the sticky stack's coordinate system. The
    quadratic masks match blueprintCorner.quadrant used by the inside joints. */
 .blocks .nav > .attachment-joins{display:none}
 .blocks .nav > .tab-stack::before,.blocks .nav > .tab-stack::after{
  content:"";position:absolute;left:calc(var(--feed-rule) / 2);
  pointer-events:none;z-index:4;
 }
 @layer blueprint{
  .blocks .nav > .tab-stack::before,.blocks .nav > .tab-stack::after{background-color:var(--print-blue)!important}
 }
 .blocks .nav > .tab-stack::before{
  bottom:calc(100% - var(--feed-rule) / 2);
  /* The upper shoulder belongs to the first tab, including above the results sheet. */
  width:calc(var(--feed-wedge) + var(--feed-rule));height:calc(var(--feed-wedge) + var(--feed-rule));
  /* Keep the curve in the first paint, without a separate mask image decode. */
  clip-path:polygon(0 100%,100% 100%,76.56% 98.44%,56.25% 93.75%,39.06% 85.94%,25% 75%,14.06% 60.94%,6.25% 43.75%,1.56% 23.44%,0 0);
  clip-path:shape(from 0% 100%, hline to 100%, curve to 0% 0% with 0% 100%, close);
 }
 .blocks .nav > .tab-stack::after{
  top:calc(100% - var(--feed-rule) / 2);
  width:var(--shoulder-bottom,0px);height:var(--shoulder-bottom,0px);
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath d='M0 0H1Q0 0 0 1Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
 }
}
