/* Market Data pages — matched to StackUlator's established calculator styling. */
.market-page {
    color: #1f2937;
}

.market-page a {
    color: #974806;
}

.market-page .subtext {
    margin: 0 0 14px 0;
    color: #555;
    line-height: 1.45;
}

.market-page .status:empty {
    display: none;
}

.market-page .status {
    margin: 8px 0;
    color: #555;
}

.market-card,
.price-tile,
.source-list li {
    background: linear-gradient(to bottom, #ffffff 0%, #f7f7f7 100%);
    border: 1px solid #c9c9c9;
    border-radius: 10px;
}

.market-card {
    padding: 10px;
    margin: 0 0 10px 0;
}

.market-card h2 {
    padding-bottom: 6px;
    border-bottom: 1px solid #d0d0d0;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.price-tile {
    padding: 10px;
}

.price-tile h2 {
    margin: 0 0 6px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #d0d0d0;
    font-size: 1.05rem;
}

.big-price {
    font-size: 1.4rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.muted {
    color: #555;
    font-size: .9rem;
}

.market-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 8px 0;
}

.market-controls label {
    color: #333;
}

.market-controls input,
.market-controls select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #aeb6bf;
    border-radius: 6px;
    background: #fff;
}

.market-controls input:focus,
.market-controls select:focus {
    outline: none;
    border-color: #7E481C;
    box-shadow: 0 0 0 2px rgba(126, 72, 28, .18);
}

.market-controls button,
.market-table button {
    width: auto;
    padding: 9px 14px;
    font-size: 15px;
    font-weight: bold;
    color: #111;
    background: #e3e7eb;
    border: 1px solid #777;
    border-radius: 6px;
    cursor: pointer;
}

.market-controls button:hover,
.market-table button:hover {
    background: #d6dbe1;
}

#trackerForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
}

#trackerForm label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
}

#trackerForm button {
    justify-self: start;
}

.market-table {
    width: 90%;
    max-width: 900px;
    margin: 8px auto 4px auto;
    border-collapse: collapse;
    font-size: .96rem;
}

.market-table th,
.market-table td {
    padding: 7px 9px;
    border: 1px solid #cdcdcd;
    text-align: left;
    vertical-align: middle;
}

.market-table th {
    background: #f0f0f0;
    color: #333;
}

.market-table tr:nth-child(even) td {
    background: #f7f7f7;
}

.market-table .number {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.positive { color: #0f7a32; }
.negative { color: #b00020; }

.ad-card.reader-first {
    margin: 14px 0 16px 0;
    padding: 0;
    border: 0;
    min-height: 0;
    text-align: center;
}

.ad-card.reader-first .ad-label,
.ad-card.reader-first ins.adsbygoogle:empty {
    display: none !important;
}

.source-note {
    margin: 12px 0 16px 0;
    padding-top: 8px;
    border-top: 1px solid #c0c0c0;
    font-size: .9rem;
}

.source-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}

.source-list li {
    padding: 10px;
}

.source-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 7px;
    border-radius: 50%;
    background: #7E481C;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 700px) {
    .market-grid,
    .source-list,
    #trackerForm {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .market-card,
    .price-tile {
        padding: 10px;
    }

    .market-table {
        width: 100%;
        font-size: .86rem;
    }

    .market-table th,
    .market-table td {
        padding: 6px;
    }

    .market-controls button,
    .market-table button {
        padding: 8px 10px;
    }
}
