/* Sikh shared kit · tv-focus 1.0.0 (30 Nov 2026, Australia/Sydney)
   ONE focus style on TV for every item: an outline on the item itself, with an even gap (outline-offset).
   No glow, no box-shadow rings, no scaling, no inner rings on thumbnails. Same colour on tabs, cards, buttons, player.
   The two :not(#_) raise the specificity above any app rule, so app CSS can never add a second ring.
   Apps may set --tvf-color / --tvf-w / --tvf-off on html.tv. --tvf-reach (w + off) is read by tv-spatial-nav.js
   so scrolling always keeps the whole ring on screen. Rows that scroll sideways need padding >= --tvf-reach
   (see .tvf-row below) so the ring is not clipped. */
html.tv{--tvf-color:#ffffff;--tvf-w:3px;--tvf-off:3px;--tvf-reach:8px}
html.tv:not(#_):not(#_) :is(a[href],button,input,select,textarea,summary,[tabindex]):is(:focus,:focus-visible){
  outline:var(--tvf-w) solid var(--tvf-color)!important;outline-offset:var(--tvf-off)!important;
  box-shadow:none!important;transform:none!important;filter:none!important;text-shadow:none!important;transition:none!important}
html.tv:not(#_):not(#_) :is(a[href],button,input,select,textarea,summary,[tabindex]):focus :is(*){outline:none!important}
html.tv:not(#_):not(#_) :is(a[href],button,summary,[tabindex]):focus :is(img,picture,video,.thumb,.athumb){transform:none!important;box-shadow:none!important;filter:none!important}
html.tv:not(#_):not(#_) :is(a[href],button,summary,[tabindex]):focus-within:not(:focus){box-shadow:none}
/* rows that scroll sideways: room for the ring on every side, and scrollIntoView keeps the same gap */
html.tv .tvf-row{padding:var(--tvf-reach)!important;scroll-padding-inline:var(--tvf-reach)}
/* nothing wider than the screen */
html.tv,html.tv body{overflow-x:hidden;max-width:100vw}
