/* Honk Radar Ticker page (templates/radar_ticker.html): a worldwide board of plain blocks, one per service, each with a strip of
   its reports over the last three hours. Colours are Radar's own variables (dark and light follow the site); no pills, glows or
   gradients. The state is a thin left border and the bar colour; the block says its numbers in words. */
.tk { --tk-gap: 12px; }
.tk h1 { margin: 0 0 4px; }
.tk .tk-lead { margin: 0 0 8px; }
.tk-filter { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tk-filter select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; max-width: 100%; }
.tk-tape { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; padding: 8px 0; margin: 0 0 16px; }
.tk-run { display: inline-block; }
.tk-tape.tk-go { display: flex; }
.tk-tape.tk-go .tk-run { flex: none; animation: tk-run var(--tk-dur, 40s) linear infinite; }
.tk-tape.tk-go:hover .tk-run { animation-play-state: paused; }
.tk-t { display: inline-block; margin-right: 28px; font-variant-numeric: tabular-nums; }
.tk-t[data-state="major"] b { color: var(--down); }
.tk-t[data-state="partial"] b { color: var(--warn); }
.tk-t[data-state="unconfirmed"] b { color: var(--muted); }
@keyframes tk-run { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--tk-w, 100%))); } }
.tk-board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--tk-gap); }
.tk-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 4px; transition: opacity .5s ease, transform .5s ease; }
.tk-b[hidden] { display: none; }
.tk-b[data-state="major"] { border-left-color: var(--down); }
.tk-b[data-state="partial"] { border-left-color: var(--warn-bar); }
.tk-b.enter { animation: tk-in .6s ease both; }
.tk-b.leave { opacity: 0; transform: translateX(32px); }
@keyframes tk-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.tk-name { font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-name:hover { text-decoration: underline; }
.tk-cat { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-tr { display: block; margin-top: 4px; }
.tk-trend { display: block; width: 100%; height: 34px; fill: var(--muted); }
.tk-b[data-state="major"] .tk-trend rect:not(.z) { fill: var(--down); }
.tk-b[data-state="partial"] .tk-trend rect:not(.z) { fill: var(--warn-bar); }
.tk-trend .z { opacity: .35; }
.tk-ax { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); padding-top: 2px; }
.tk-n { font-variant-numeric: tabular-nums; font-size: 14px; }
.tk-n b { font-size: 18px; }
.tk-ch { white-space: nowrap; }
.tk-ch[data-dir="up"], .tk-ch[data-dir="new"] { color: var(--down); }
.tk-ch[data-dir="down"] { color: var(--up); }
.tk-ch[data-dir="flat"] { color: var(--muted); }
.tk-since { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.tk-tvhead { display: none; }
.tk-empty, .tk-more { margin: 12px 0; }
.tk-resolved { margin: 16px 0 4px; }
.tk-note { margin: 16px 0 0; max-width: 70ch; }
@media (max-width: 479px) { .tk-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tk-b { padding: 8px 8px 8px 10px; } .tk-n b { font-size: 16px; } .tk-n { font-size: 13px; } }
@media (max-width: 359px) { .tk-board { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .tk-tape.tk-go .tk-run { animation: none; }
  .tk-tape { overflow-x: auto; }
  .tk-b, .tk-b.enter { animation: none; transition: none; }
}
/* ?tv=1: no header or footer, big type, blocks fill the screen */
.rd-tvmode { overflow: hidden; }
.rd-tvmode main { max-width: none; padding: 1.2vw 2vw; }
.rd-tvmode .tk { font-size: clamp(16px, 1.6vw, 40px); max-width: none; padding: 1vw 2vw; }
.rd-tvmode .tk-tvhead { display: flex; justify-content: space-between; align-items: baseline; gap: 2vw; margin: 0 0 .4em; font-weight: 600; font-size: 1.5em; }
.rd-tvmode .tk-clock { font-variant-numeric: tabular-nums; }
.rd-tvmode .tk-tape { padding: .4em 0; margin-bottom: .6em; }
.rd-tvmode .tk-board { grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 19vw, 560px), 1fr)); gap: .6em; }
.rd-tvmode .tk-b { padding: .5em .7em; gap: .2em; border-left-width: .25em; }
.rd-tvmode .tk-name { font-size: 1.15em; }
.rd-tvmode .tk-cat, .rd-tvmode .tk-since { font-size: .72em; }
.rd-tvmode .tk-ax { font-size: .6em; }
.rd-tvmode .tk-trend { height: 2.4em; }
.rd-tvmode .tk-n { font-size: .85em; }
.rd-tvmode .tk-n b { font-size: 1.5em; }
.tk-why { font-size: 13px; color: var(--muted); }
.tk-why b { font-weight: 600; color: var(--text, inherit); }
.tk-b[data-state="major"] .tk-why b { color: var(--down); }
.rd-tvmode .tk-why { font-size: .72em; }
