/* ==========================================================================
   chart.css — /chart/ and /chart/{market}/ pages only. Every class is cp-.
   ========================================================================== */

.cp {
    padding-block: 8px 20px;
    max-width: 980px;
}


/* ===== HERO ===== */

.cp-hero {
    background: linear-gradient(135deg, #1c1608, #0f0f18);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
}

.cp h1,
.cp-hero h1 {
    font-size: clamp(22px, 4vw, 32px);
    line-height: 1.3;
    color: #fff;
    margin-bottom: 10px;
}

.cp-lead {
    margin: 0;
    color: #d6d6e2;
}

.cp-lead a {
    font-weight: 700;
}


/* ===== HASHTAG ROW ===== */

.cp-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
}

.cp-tags li {
    background: var(--panel-2);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
}


/* ===== BLOCKS ===== */

.cp-block {
    margin-top: 34px;
}

.cp-block h2 {
    font-size: clamp(20px, 3.4vw, 26px);
    color: var(--gold);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cp-note {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 14px;
}


/* ===== YEAR CHART FILTER ===== */

.cp-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

.cp-filter div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cp-filter label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.cp-filter select {
    background: #0d0d16;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
}

.cp-filter button {
    background: var(--gold);
    color: #1a1300;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 800;
    cursor: pointer;
}

.cp-filter button:hover {
    background: var(--gold-soft);
}


/* ===== YEAR CHART TABLE ===== */

.cp-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cp-table {
    width: 100%;
    min-width: 620px;
}

.cp-table th,
.cp-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.cp-table thead th {
    background: #0d0d16;
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
}

.cp-table thead th.is-hl {
    background: var(--gold);
    color: #1a1300;
}

.cp-table tbody th {
    background: var(--panel);
    color: var(--muted);
    font-weight: 700;
    position: sticky;
    left: 0;
}

.cp-table td {
    background: var(--panel);
    font-weight: 800;
}

.cp-table td.is-na {
    color: #3a3a4d;
    font-weight: 400;
}

.cp-table td.is-hl {
    background: #241c0a;
}

.cp-table td.is-today {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    color: var(--gold);
}


/* ===== COMPARE TOOL ===== */

.cp-compare {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.cp-cmp-set {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cp-cmp-set legend {
    padding: 0 6px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
}

.cp-cmp-set select {
    background: #0d0d16;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 8px;
    font-size: 13px;
    font-family: inherit;
}

.cp-cmp-vs {
    font-weight: 900;
    color: var(--gold);
    font-size: 15px;
}

.cp-compare button {
    background: var(--gold);
    color: #1a1300;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 800;
    cursor: pointer;
}

.cp-compare button:hover {
    background: var(--gold-soft);
}

.cp-cmp-result {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.cp-cmp-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 22px;
    text-align: center;
    min-width: 140px;
}

.cp-cmp-date {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.cp-cmp-num {
    font-size: 32px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.cp-cmp-note {
    width: 100%;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}


/* ===== FAQ ===== */

.cp-faq-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.cp-faq-item summary {
    cursor: pointer;
    font-weight: 800;
    color: #fff;
}

.cp-faq-item summary::marker {
    color: var(--gold);
}

.cp-faq-item p {
    margin: 10px 0 0;
    color: #d6d6e2;
}

.cp-faq-item[open] {
    border-color: var(--gold);
}


/* ===== DISCLAIMER ===== */

.cp-disclaimer {
    margin-top: 30px;
    background: #1c1011;
    border: 1px solid var(--red);
    border-left-width: 5px;
    border-radius: 10px;
    padding: 14px 16px;
    color: #f2d6d9;
    font-size: 14px;
}

.cp-disclaimer strong {
    color: var(--gold);
    display: block;
    margin-bottom: 4px;
}

.cp-disclaimer a {
    color: var(--gold);
    font-weight: 700;
}


/* ===== MARKET BUTTON GRID (index page + bottom of market page) ===== */

.cp-grid-btns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.cp-mbtn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
}

.cp-mbtn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cp-mbtn small {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 640px) {
    .cp-cmp-set {
        width: 100%;
        justify-content: center;
    }
    .cp-cmp-vs {
        width: 100%;
        text-align: center;
    }
    .cp-grid-btns {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}