/* V01 · A continuous full-window footer finish.
 * Extend paint, not scrollable geometry: shadow ink fills the viewport sides,
 * while clipping ONLY this decorative pseudo to the footer's top/bottom.
 * Existing max-widths, content grids, padding, foreground colors and links stay
 * untouched. There is no 100vw box, negative margin, new wrapper or overflow
 * rule; ordinary scrollbars and A3's 1920px body cap cannot cause overflow.
 * Applied with backdrop Off as well. Print and forced colors keep the original
 * accessible styling. No animation or mask support is required for the fill.
 */
@media screen and (forced-colors: none) {
  html:root[data-variant="a1"] footer.footer { --ff-fill: var(--paper); }
  html:root[data-variant="a2"] footer.footer { --ff-fill: var(--surface); }
  html:root[data-variant="a3"] footer.site-footer { --ff-fill: #0a1b15; }
  html:root[data-variant="a4"] footer.site-footer { --ff-fill: var(--paper); }
  html:root[data-variant^="b"] footer.site-footer { --ff-fill: var(--bg); }

  html:root[data-variant] footer:is(.footer, .site-footer) {
    position: relative;
    isolation: isolate;
    background-color: var(--ff-fill);
  }
  html:root[data-variant] footer:is(.footer, .site-footer)::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    background: var(--ff-fill);
    opacity: 1;
    border-radius: 0;
    transform: none;
    -webkit-mask: none;
    mask: none;
    box-shadow: none;
  }
  @supports (clip-path: inset(0 -100vmax)) or (-webkit-clip-path: inset(0 -100vmax)) {
    html:root[data-variant] footer:is(.footer, .site-footer)::before {
      box-shadow: 0 0 0 100vmax var(--ff-fill);
      -webkit-clip-path: inset(0 -100vmax);
      clip-path: inset(0 -100vmax);
    }
  }
}
