/* DX.Wire Station Tally / HOLD-key lamp, November 2026.
   Hardware reference: inset red rectangular telephone hold key. Only the
   lamp changes, never the masthead register, actual LIVE state or text.
   Its bright/dark cadence is deliberate, not the previous breathing orb. */
html:is([data-theme=newsprint],[data-theme=dark]) :is(#bar .edition-dateline,#mast>.edition-dateline) .edition-live .edition-dot{
  position:relative!important;isolation:isolate!important;
  display:inline-block!important;box-sizing:border-box!important;
  flex:0 0 23px!important;width:23px!important;height:19px!important;
  margin:0 1px 1px 0!important;padding:0!important;
  overflow:visible!important;opacity:1!important;
  border:1px solid #504748!important;border-radius:4px!important;
  background:linear-gradient(155deg,#e8ddcc 0%,#b6aa98 13%,#4c4650 30%,#29232b 71%,#9c8b80 100%)!important;
  box-shadow:inset 0 1px 1px #fffae744,inset 1px 0 1px #fffc,
    inset -1px -1px 1px #0009,0 1px 0 #150b10,0 2px 2px #0008!important;
  filter:none!important;transform:none!important;animation:none!important;
  pointer-events:none;
}
/* Faceted colored acrylic behind the lens. This remains visible when dark. */
html:is([data-theme=newsprint],[data-theme=dark]) :is(#bar .edition-dateline,#mast>.edition-dateline) .edition-live .edition-dot::before{
  content:''!important;position:absolute!important;z-index:1!important;
  inset:3px 3px 3px 2px!important;border:1px solid #5a0c15!important;
  border-radius:2px!important;display:block!important;
  background:linear-gradient(155deg,#d6484d 0%,#9a1725 18%,#5c0916 63%,#30070e 100%)!important;
  box-shadow:inset 1px 1px 1px #ffbbc466,inset -1px -2px 2px #25000c,
    0 0 0 1px #11070b77!important;
  opacity:1!important;filter:none!important;
  transform:none!important;animation:none!important;
  pointer-events:none!important;
}
/* The filament lights up inside the acrylic; the housing never flashes. */
html:is([data-theme=newsprint],[data-theme=dark]) :is(#bar .edition-dateline,#mast>.edition-dateline) .edition-live .edition-dot::after{
  content:''!important;position:absolute!important;z-index:2!important;
  inset:3px 3px 3px 2px!important;display:block!important;
  border-radius:2px!important;border:0!important;
  background:radial-gradient(ellipse at 38% 29%,#fff8dc 0%,#fff0a2 13%,#ff8547 29%,#ed2030 66%,#a20b1a 100%)!important;
  box-shadow:inset 0 1px 1px #fffad899,inset 0 -2px 2px #990a1d,
    0 0 3px 1px #ff6f43aa,0 0 9px 2px #ff281e77!important;
  opacity:.045;filter:none!important;transform:none!important;
  animation:none!important;pointer-events:none!important;
}
/* 1.65-second telephone tally: stable ON and OFF with brief phosphor
   attack/decay. This is visually distinct from the old sinusoidal pulse. */
html:is([data-theme=newsprint],[data-theme=dark]) :is(#bar .edition-dateline,#mast>.edition-dateline)[data-live=true] .edition-live .edition-dot::after{
  animation:dx-hold-tally-165 1.65s linear infinite!important;
}
@keyframes dx-hold-tally-165{
  0%,39%{opacity:1}
  45%,89%{opacity:.045}
  95%,100%{opacity:1}
}
/* A cache or offline condition retains the dark red glass without blinking.
   The existing LIVE/CACHED/OFFLINE wording remains the actual state authority. */
html:is([data-theme=newsprint],[data-theme=dark]) :is(#bar .edition-dateline,#mast>.edition-dateline):not([data-live=true]) .edition-live .edition-dot::after{
  opacity:.045!important;animation:none!important;
}
html:is([data-theme=newsprint],[data-theme=dark]) :is(#bar .edition-dateline,#mast>.edition-dateline)[data-hidden=true] .edition-live .edition-dot::after{
  animation-play-state:paused!important;
}
@media(prefers-reduced-motion:reduce){
  html:is([data-theme=newsprint],[data-theme=dark]) :is(#bar .edition-dateline,#mast>.edition-dateline)[data-live=true] .edition-live .edition-dot::after{
    animation:none!important;opacity:.88!important;
  }
}
/* Keep the original 38px mobile masthead strip, DATE and clock geometry. */
@media(max-width:700px){
  html:is([data-theme=newsprint],[data-theme=dark]) #mast>.edition-dateline .edition-live .edition-dot{
    flex-basis:20px!important;width:20px!important;height:17px!important;
    margin-right:0!important;
  }
}
