@charset "UTF-8";
/* CSS Document */

/* =========================================
   FRAZETTA PAINTING SALES CHART
   Responsive CSS Grid - November 2026
   ========================================= */

.frazetta-sales-chart {
    width: 100%;
    max-width: 1000px;
    margin: 25px auto;
    background: #f5f1e9;
    border: 1px solid #c5bcae;
    border-radius: 5px;
    overflow: hidden;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.frazetta-sales-chart * {
    box-sizing: border-box;
}

/* Chart title */

.frazetta-chart-title {
    background: #252525;
    color: #ffffff;
    padding: 20px 15px;
}

.frazetta-chart-title h2 {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 6px 0;
}

.frazetta-chart-title p {
    color: #d5cbb9;
    font-size: 14px;
    margin: 0;
}

/* Desktop column structure */

.frazetta-chart-header,
.frazetta-chart-row {
    display: grid;
    grid-template-columns:
        80px 65px minmax(0, 1fr) 125px 50px;
    gap: 12px;
    align-items: center;
    padding: 12px;
}

/* Column headings */

.frazetta-chart-header {
    background: #383838;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Painting rows */

.frazetta-chart-row {
    background: #f5f1e9;
    border-bottom: 1px solid #cfc6b8;
    font-size: 15px;
}

.frazetta-chart-body
.frazetta-chart-row:nth-child(even) {
    background: #e9e3d8;
}

.frazetta-chart-row:hover {
    background: #ddd4c3;
}

/* Square thumbnail images */

.frazetta-thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    background: #d4cec3;
    border: 1px solid #b5ac9c;
    border-radius: 3px;
}

.frazetta-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}

/* Individual data columns */

.frazetta-year {
    color: #59534b;
    font-size: 14px;
}

.frazetta-painting {
    font-weight: bold;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.frazetta-price {
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.frazetta-rank {
    text-align: center;
    font-weight: bold;
}

/* Combined total */

.frazetta-chart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 15px;
    background: #252525;
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
}

.frazetta-total-price {
    font-size: 22px;
    color: #ffffff;
}

/* Explanatory footnote */

.frazetta-chart-note {
    padding: 12px 15px;
    font-size: 12px;
    line-height: 1.5;
    color: #59534b;
    background: #f5f1e9;
}

/* =========================================
   SMARTPHONE AND NARROW SCREEN LAYOUT
   ========================================= */

@media screen and (max-width: 600px) {

    .frazetta-chart-header {
        display: none;
    }

    .frazetta-chart-title {
        padding: 15px 12px;
    }

    .frazetta-chart-title h2 {
        font-size: 21px;
    }

    .frazetta-chart-row {
        grid-template-columns: 90px minmax(0, 1fr);
        grid-template-areas:
            "thumbnail painting"
            "thumbnail year"
            "thumbnail price"
            "thumbnail rank";
        column-gap: 14px;
        row-gap: 3px;
        padding: 12px;
        align-items: center;
    }

    .frazetta-thumbnail {
        grid-area: thumbnail;
        width: 90px;
        height: 90px;
        align-self: center;
    }

    .frazetta-painting {
        grid-area: painting;
        font-size: 16px;
    }

    .frazetta-year {
        grid-area: year;
        font-size: 12px;
    }

    .frazetta-year::before {
        content: "Sold: ";
    }

    .frazetta-price {
        grid-area: price;
        font-size: 18px;
        text-align: left;
    }

    .frazetta-rank {
        grid-area: rank;
        text-align: left;
        font-size: 12px;
        font-weight: normal;
        color: #59534b;
    }

    .frazetta-rank::before {
        content: "Price rank: #";
    }

    .frazetta-chart-total {
        font-size: 14px;
        padding: 15px 12px;
    }

    .frazetta-total-price {
        font-size: 20px;
    }
}

<!--add for rank-->
/* =========================================
   FRAZETTA CHART - INTERACTIVE SORTING
   November 2026
   ========================================= */

/* Clickable column headings */

.frazetta-sort-button {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 3px;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 4px;
    margin: 0;
    white-space: nowrap;
    text-align: inherit;
    transition: background-color 0.2s,
                color 0.2s;
}

.frazetta-sort-button:hover {
    background: #555555;
    color: #ffe2a0;
}

.frazetta-sort-button:focus-visible {
    outline: 2px solid #ffe2a0;
    outline-offset: 2px;
}

/* Currently selected sorting column */

.frazetta-sort-button.frazetta-sort-active {
    color: #ffe2a0;
}

/* Sorting direction arrows */

.frazetta-sort-arrow {
    display: inline-block;
    margin-left: 3px;
    font-size: 12px;
    opacity: 0.5;
}

.frazetta-sort-active .frazetta-sort-arrow {
    opacity: 1;
}

/* Desktop column alignment */

.frazetta-chart-header .frazetta-sort-button {
    width: 100%;
}

.frazetta-chart-header .frazetta-price {
    text-align: right;
}

.frazetta-chart-header .frazetta-rank {
    text-align: center;
}

/* Smartphone sorting controls */

.frazetta-mobile-sort {
    display: none;
    background: #383838;
    color: #ffffff;
    padding: 10px 12px;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.frazetta-mobile-sort-label {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 3px;
}

.frazetta-mobile-sort .frazetta-sort-button {
    flex: 1;
    border: 1px solid #777777;
    background: #484848;
    padding: 9px 6px;
    font-size: 12px;
    text-align: center;
}

.frazetta-mobile-sort
.frazetta-sort-button.frazetta-sort-active {
    background: #66553a;
    border-color: #d5bb83;
    color: #ffffff;
}

/* Display mobile controls when the
   desktop column headings disappear */

@media screen and (max-width: 600px) {

    .frazetta-mobile-sort {
        display: flex;
    }

    .frazetta-mobile-sort-label {
        width: 100%;
        margin-bottom: 3px;
    }

    .frazetta-chart-header {
        display: none;
    }
}