/* scroll-hint.css — pairs with scroll-hint.js (doc-design #36). Theme tokens only: --fg, --teal, --line, --card-bg.
   The pill sits in a thin row ABOVE the scroller (or in a header-bar slot), so it never covers a table header,
   code or a control. Edge shadows mark the side(s) that still hold content. Nothing shows when the content fits. */
.sh-frame{position:relative;min-width:0;max-width:100%}
.sh-box{position:relative;min-width:0}
.sh-bar{display:flex;justify-content:flex-end;margin:0 0 4px}
.sh-bar[hidden],.sh-pill[hidden]{display:none}
.sh-pill{display:inline-flex;align-items:center;gap:4px;font:700 11px/1 system-ui,-apple-system,sans-serif;letter-spacing:.02em;
  color:var(--teal,#0f766e);background:var(--card-bg,#fff);border:1px solid color-mix(in srgb,var(--teal,#0f766e) 45%,transparent);
  border-radius:999px;padding:4px 10px;cursor:pointer;white-space:nowrap;transition:opacity .2s}
.sh-pill:hover{background:color-mix(in srgb,var(--teal,#0f766e) 10%,var(--card-bg,#fff))}
.sh-slot .sh-pill{margin-left:auto}
.sh-slot .sh-pill + *{margin-left:8px}
/* edge shadows: drawn from the ink colour, so they read on light and dark surfaces alike */
.sh-edge{position:absolute;top:0;bottom:0;width:26px;pointer-events:none;opacity:0;transition:opacity .2s;z-index:1}
.sh-l{left:0;background:linear-gradient(90deg,color-mix(in srgb,var(--fg,#0b2b26) 26%,transparent),transparent)}
.sh-r{right:0;background:linear-gradient(270deg,color-mix(in srgb,var(--fg,#0b2b26) 26%,transparent),transparent)}
.sh-frame[data-sh="start"] .sh-r,.sh-frame[data-sh="middle"] .sh-r,
.sh-frame[data-sh="middle"] .sh-l,.sh-frame[data-sh="end"] .sh-l{opacity:1}
/* the scroller becomes a focusable region only while it overflows: show where keyboard focus is */
[data-scroll-x]:focus-visible{outline:2px solid var(--teal,#0f766e);outline-offset:2px}
/* no JavaScript: classic scroll shadows painted by the scroller itself (background-attachment:local) */
html.no-js [data-scroll-x]{background:
  linear-gradient(90deg,var(--card-bg,#fff) 30%,transparent) left/40px 100% no-repeat local,
  linear-gradient(270deg,var(--card-bg,#fff) 30%,transparent) right/40px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%,color-mix(in srgb,var(--fg,#000) 25%,transparent),transparent) left/14px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%,color-mix(in srgb,var(--fg,#000) 25%,transparent),transparent) right/14px 100% no-repeat scroll}
@media (prefers-reduced-motion:reduce){.sh-pill,.sh-edge{transition:none}}
@media (pointer:coarse){.sh-pill{min-height:30px;padding:6px 12px}}
@media print{.sh-bar,.sh-pill,.sh-edge{display:none!important}}
