/* Stocks → Buzz. Uses terminal tokens; layout only. */

.buzz-hdr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.buzz-hdr .section-title {
    margin-bottom: 0;
}

.buzz-updated {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#section-buzz:has(#buzz-ai:not([hidden])) .buzz-updated {
    display: none;
}

.buzz-block {
    margin-top: 32px;
}

.buzz-block:first-child {
    margin-top: 12px;
}

.buzz-block .section-title {
    margin-bottom: 12px;
    font-size: 18px;
}

.buzz-stocks-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.buzz-stocks-head .section-title {
    margin-bottom: 0;
}

.buzz-search-wrap {
    position: relative;
    flex: 0 1 260px;
    min-width: 160px;
}

.buzz-search-wrap .flow-search {
    width: 100%;
    margin-bottom: 0;
    padding-left: 32px;
}

.buzz-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.buzz-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.buzz-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

#section-buzz,
#section-buzz-body,
#section-buzz .buzz-block {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    #section-buzz.market-section {
        overflow-x: clip;
    }
    /* Phone rules squeeze .movers-table to the viewport. Keep Buzz columns
       at desk width and swipe them inside .buzz-scroll. */
    .buzz-scroll .buzz-table {
        width: 760px !important;
        min-width: 760px !important;
    }
}

.buzz-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
}

.buzz-col-name { width: 36%; }
.buzz-col-num { width: 12%; }
.buzz-col-spark { width: 16%; }

/* Flow column labels are 14px, the same size as the other market tables. */
.buzz-table thead th,
.buzz-table .movers-sort-badge {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.buzz-table .movers-sort-badge {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.buzz-table .movers-sort-badge.active {
    background: transparent;
    color: var(--text-primary);
}

.buzz-table th.num,
.buzz-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 400;
}

.buzz-up { color: var(--gain); }
.buzz-down { color: var(--loss); }
.buzz-flat { color: var(--text-secondary); }

a.buzz-name,
a.buzz-sector {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

a.buzz-name:hover .mover-name-text,
a.buzz-sector:hover .mover-name-text {
    color: var(--neon-cyan);
}

.buzz-table .mover-name-text--sm {
    max-width: none !important;
}

.buzz-overall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.buzz-sources {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.buzz-source {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.buzz-sources svg {
    display: block;
}

.buzz-source svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.buzz-spark {
    display: block;
}

.buzz-sort {
    cursor: pointer;
    user-select: none;
}

.buzz-sort:hover {
    color: var(--text-secondary);
}

.buzz-table tr.buzz-fold-row td,
.buzz-table tr.buzz-fold-row:hover td {
    padding: 0 0 4px;
    text-align: center;
    border-bottom: none;
    background: transparent;
}

.buzz-fold-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.buzz-fold-btn::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
}

.buzz-fold-btn[aria-expanded="true"]::before {
    transform: rotate(225deg) translate(-1px, -1px);
}

.buzz-fold-btn:hover {
    color: var(--text-secondary);
}
