/* Standalone Sectors page: current quotes for every sector benchmark ETF,
   with SPY pinned at the top as the broad-market reference. Reuses the
   same visual grid design the old Sectors Watchlist modal used
   (logo | symbol+name | price | change | change%), just as page-level
   classes instead of `#sectorsModal`-scoped ones now that it's a full page. */

.sectors-page {
    max-width: 800px;
    margin: 48px auto;
    padding: 30px;
    color: white;
    background: transparent;
    box-shadow: none;
}

.sectors-page .page-heading {
    width: 560px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.sectors-intro {
    width: 560px;
    max-width: 100%;
    margin: 0 auto 20px;
    text-align: left;
    color: #d1d5db;
}

.sectors-page-status {
    min-height: 1.25em;
    margin: 4px 0 12px;
    color: #9ca3af;
    text-align: center;
}

.sectors-page-status[hidden] {
    display: none;
}

.sectors-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
}

.sectors-quote-header,
.sectors-quote-row {
    display: grid;
    grid-template-columns: 32px minmax(190px, 2fr) repeat(3, minmax(64px, 0.8fr));
    align-items: center;
    column-gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background-color: #17181c;
    border-bottom: 1px solid #2a2c33;
}

.sectors-list li:last-child {
    border-bottom: none;
}

.sectors-quote-header {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: right;
    text-transform: uppercase;
}

.sectors-quote-header span:nth-child(2) {
    text-align: left;
}

.sectors-quote-row .item-logo {
    justify-self: start;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

/* SPY's pinned benchmark row gets a subtle highlight so it visually reads
   as distinct from the sector ETFs listed beneath it. */
.sectors-quote-row.sectors-benchmark-row {
    background-color: #1c2333;
    border-bottom: 1px solid #334155;
}

.sectors-quote-data {
    display: grid;
    grid-column: 2 / -1;
    grid-template-columns: minmax(190px, 2fr) repeat(3, minmax(64px, 0.8fr));
    align-items: center;
    column-gap: 12px;
    min-width: 0;
    text-align: right;
}

.sectors-symbol {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

/* A symbol whose quote failed this refresh (see sectors.js's `data.error`
   handling): the price/change/change% columns collapse into one message
   spanning the rest of the row instead of showing blank/undefined values. */
.sectors-quote-error {
    grid-template-columns: minmax(190px, 2fr) 1fr;
}

.sectors-quote-error-message {
    color: #f87171;
    font-size: 12px;
    text-align: right;
}

.sectors-quote-data.positive { color: #4ade80; }
.sectors-quote-data.negative { color: #f87171; }
.sectors-quote-data.neutral { color: #ffffff; }

@media (max-width: 700px) {
    .sectors-page {
        width: calc(100% - 24px);
        margin: 24px auto;
        padding: 16px 12px;
    }

    .sectors-quote-header,
    .sectors-quote-row {
        grid-template-columns: 28px minmax(116px, 1.5fr) repeat(3, minmax(48px, 0.75fr));
        column-gap: 6px;
        padding: 10px 8px;
    }

    .sectors-quote-data {
        grid-template-columns: minmax(116px, 1.5fr) repeat(3, minmax(48px, 0.75fr));
        column-gap: 6px;
        font-size: 12px;
    }

    .sectors-symbol {
        font-size: 12px;
    }

    .sectors-quote-header {
        font-size: 9px;
    }
}
