.tc-threat-board {
    --led-red: #ff665c;
    --led-amber: #ffb65d;
    clear: both;
    margin: 12px 0;
    padding: 8px 12px;
    color: #f2d7ce;
    border: 1px solid #593e36;
    border-radius: 5px;
    background: #160f0e;
    box-shadow: inset 0 1px #524038;
    font: 13px/1.5 'Courier New', monospace;
}
.tc-threat-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 12px;
}
.tc-threat-title {
    color: #f2d7ce;
    font-weight: bold;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.tc-threat-title small { color: #c4a79b; font-size: inherit; }
.tc-threat-window {
    display: none;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #3d2520;
    border-radius: 3px;
    background: radial-gradient(circle, #38201d 1px, transparent 1.5px) 0 0 / 4px 4px, #0b0707;
}
.tc-threat-ready .tc-threat-window { display: block; }
.tc-threat-track {
    display: flex;
    width: max-content;
    box-sizing: content-box;
    padding: 6px 0;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    animation: tc-threat-scroll 120s linear infinite reverse;
}
.tc-threat-track > div {
    display: flex;
    flex: none;
    gap: 36px;
    padding: 0 36px 0 8px;
}
.tc-threat-track span {
    text-shadow: 0 0 3px currentColor, 0 0 12px currentColor;
}
.tc-threat-stopped .tc-threat-track {
    width: auto;
    display: block;
    white-space: normal;
}
.tc-threat-stopped .tc-threat-track > div { display: block; padding: 0 8px; }
.tc-threat-stopped .tc-threat-track > div + div,
.tc-threat-stopped .tc-threat-track span:not(:first-child) { display: none; }
.tc-threat-kev { color: var(--led-red); }
.tc-threat-news, .tc-threat-canada { color: var(--led-amber); }
@keyframes tc-threat-scroll { to { transform: translateX(-50%); } }
.tc-threat-stopped .tc-threat-track {
    animation: none;
}
.tc-threat-stopped .tc-threat-window { overflow-x: auto; }
.tc-threat-board button {
    display: none;
    color: #f2d7ce;
    background: transparent;
    border: 1px solid #80645a;
    border-radius: 3px;
    padding: 2px 8px;
    font: inherit;
    cursor: pointer;
}
.tc-threat-ready button:not([hidden]) { display: inline-block; }
.tc-threat-board summary { cursor: pointer; padding: 3px 0; }
.tc-threat-board a { color: #fff2eb; text-decoration: underline; }
.tc-threat-board :focus-visible { outline: 2px solid var(--led-amber); outline-offset: 2px; }
.tc-threat-board .tc-threat-list { list-style: none; padding: 0; margin: 0; }
.tc-threat-list li { padding: 4px 0; overflow-wrap: anywhere; }
.tc-threat-list strong { display: block; }
.tc-threat-status:empty, .tc-threat-source-status:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
    .tc-threat-board:not(.tc-threat-motion-enabled) .tc-threat-track { animation: none; }
}

/* Match the homepage's vintage terminal treatment for editorial headlines. */
body[data-ticker-autoplay] .tc-threat-track .tc-threat-news {
    align-self: baseline;
    color: #78e889;
    font-size: .82em;
}

body[data-ticker-autoplay] .tc-threat-board .tc-threat-list:not(:empty) {
    direction: rtl; /* Put the scrollbar on the left in Chrome. */
    max-height: min(12rem, 45vh);
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-color: #ae8c7e #281b17;
    scrollbar-width: auto;
    margin: 4px 0 8px;
    padding: 4px 10px;
    border: 1px solid;
    border-color: #59423a #ae8c7e #ae8c7e #59423a;
    background: #100b09;
}
body[data-ticker-autoplay] .tc-threat-list > li {
    direction: ltr;
    text-align: left;
}
