/* "watching now": the chip in the token header's link row (class prefix wt-). docs/UPDATES-1.md section 2.
   Colours only through the tokens of styles.css: no colour literal and no custom property in this file, so the
   light theme and the flame accents arrive without touching it. The chip lives in its slot box, the last child of
   .th-links; an empty box takes no room (styles.css: [data-slot]:empty). Nothing here has a fixed width. */

.wt-chip { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; height: 22px; margin: 0 0 0 5px; padding: 0 8px 0 7px; border: 0; border-radius: 999px; background: var(--chip); color: var(--text); font: 600 11px/1 var(--font-mono); white-space: nowrap; cursor: help; animation: wt-in 0.28s ease-out both; }
.wt-chip:hover, .wt-chip:focus-visible { background: var(--hover); }
.wt-chip:focus-visible { outline: 0; box-shadow: var(--ring); }
.wt-chip .ico { flex: none; width: 12px; height: 12px; color: var(--muted); }
.wt-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-hi); animation: wt-beat 1.8s ease-in-out infinite; }
.wt-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

@keyframes wt-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@keyframes wt-beat { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.72); } }

/* phone and tablet: the row's links are 32 px targets (chart.css); the chip is as tall, and the row wraps it onto
   its own line when the icons took the first one. It shrinks before it would ever push the page sideways. */
@media (max-width: 899px) {
  .wt-chip { height: 32px; margin-left: 0; padding: 0 11px 0 10px; font-size: 12px; }
  .wt-chip .ico { width: 14px; height: 14px; }
}
/* phone: the header's second line wraps and shows what overflows (chart.css), and its children do not shrink. With
   the chip in it the link row is wider than a 360 px screen, so WHILE the chip is drawn the row may shrink to the
   line it sits on: its icons and the chip's box then wrap inside it (the row is a wrapping flex line already). The
   box may shrink too, and the words end in an ellipsis before anything is pushed sideways. */
@media (max-width: 559px) {
  .th-links:has(.wt-chip) { flex: 0 1 auto; min-width: 0; max-width: 100%; }
  [data-slot]:has(> .wt-chip) { min-width: 0; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .wt-chip, .wt-dot { animation: none; }
}
