/* polish-1: shared finishing layer for every page (loaded last) */
/* 1 · pages glide into each other instead of cutting; the header stays still */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.4s;animation-timing-function:cubic-bezier(.22,.61,.36,1)}
header{view-transition-name:bmhdr}
::view-transition-group(bmhdr){animation-duration:0s}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}}
/* 2 · touch: no 300 ms wait, no grey flash, anchors land below the header */
a,button,summary,label,[role=button],.chip,.mbt,.rbtn,.nbtn{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html{scroll-padding-top:76px}
/* 3 · every small control gets a thumb-sized hit area without changing how it looks */
.mbtn,.chip{position:relative}
.mbtn::after{content:"";position:absolute;inset:-8px -10px}
.chip::after{content:"";position:absolute;inset:-5px -3px}
.ds-lnk,.ds-play{position:relative}
.ds-lnk::after{content:"";position:absolute;inset:-9px -6px}
/* 4 · controls answer the finger at once */
.mbt:active,.rbtn:active,.nbtn:active,.chip:active,.hcta:active,.wl:active,.ds-play:active,.primary:active,.ghost:active,.s-surprise:active,.wfab:active,.mbtn:active,.snd:active{scale:.965}
/* 5 · keyboard focus is always visible and always graceful */
:focus-visible{outline:2px solid rgba(217,84,43,.85);outline-offset:3px;border-radius:6px}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:1px}
/* 6 · text and images paint crisply while scrolling */
img,video{image-rendering:auto}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* 7 · hover-only flourishes never stick on touch screens */
@media(hover:none){.mbt:hover,.rbtn:hover,.nbtn:hover,.chip:hover{transform:none}}
