/* Shared horizontal news tape for the homepage and terminal panels. */
#news-feed-container {
    background: #0b0c0d;
    border: 1px solid #2b3035;
    border-radius: 2px;
    box-shadow: none;
}

html:not(.terminal-embed) #news-feed-container:not(.terminal-portaled-widget).view-news {
    height: 108px;
    min-height: 108px;
}

#news-feed-container .news-header {
    height: 20px;
    min-height: 20px;
    padding: 0;
    margin: 0;
    background: #111315;
    border-bottom: 1px solid #262b30;
}

#news-feed-container :is(.intel-view-news-trigger, .stocktwits-trigger, .scroll-control) {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-shadow: none;
    color: #838b93;
    padding: 0 7px;
    min-width: 0;
}

#news-feed-container .intel-view-news-trigger {
    border-right: 1px solid #262b30;
}

#news-feed-container .stocktwits-trigger-brand {
    color: inherit;
    text-shadow: none;
}

#news-feed-container :is(.intel-view-news-trigger.is-active, .stocktwits-trigger.is-active, .scroll-control.is-paused) {
    color: #dca75b;
    text-shadow: none;
}

#news-feed-container :is(.intel-view-news-trigger, .stocktwits-trigger):hover {
    color: #e5e8eb;
    background: #191c20;
}

#news-feed-container #news-items-list {
    padding: 0;
    mask-image: none;
    -webkit-mask-image: none;
}

#news-feed-container #news-track {
    height: 100%;
    padding: 0;
    gap: 0;
}

#news-feed-container .news-item {
    box-sizing: border-box;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    height: 100%;
    padding: 7px 9px;
    gap: 5px;
    background: #0b0c0d;
    border: 0;
    border-right: 1px solid #262b30;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

#news-feed-container .news-item.news-highlight-mag7 {
    border: 0 !important;
    border-right: 1px solid #262b30 !important;
    box-shadow: inset 0 2px #a36a83;
}

#news-feed-container .news-item:is(:hover, :focus-within) {
    background: #15181b;
}

#news-feed-container .news-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    line-height: 11px;
    gap: 8px;
    opacity: 1;
}

#news-feed-container .news-source-logo {
    display: none;
}

#news-feed-container .news-source-tag {
    color: #dca75b !important;
    font-size: inherit;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#news-feed-container .news-time {
    color: #747d86;
    white-space: nowrap;
}

#news-feed-container .news-headline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0;
    color: #dedfe2;
    text-shadow: none;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

#news-feed-container .news-headline a:focus-visible {
    outline: 1px solid #dca75b;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    #news-feed-container .news-item {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        padding: 7px 8px;
    }
}

/* Keep the same compact tape when moved into a terminal window or dock. */
html :is(.terminal-window, .terminal-native-panel) #news-feed-container .news-header {
    flex: 0 0 20px;
}

html :is(.terminal-window, .terminal-native-panel) #news-feed-container .news-item {
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
}
