/*
 * The rates page (/rates): washing-machine draw tables, reforge odds and the dungeon drop and card tables. It builds
 * on the shared .tabs, .data-table, .btn and .notice-banner components of site.css. The page sits directly in .page,
 * so site.css gives it the page column and the spacing. No inline styles: the CSP forbids them.
 */

.rates-lead {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.7;
}

.rates-note {
    margin: 12px 0 0;
    color: var(--c-muted);
    font-size: 13px;
    line-height: 1.7;
}

.rates-empty {
    padding: 48px 0;
    color: var(--c-muted);
    text-align: center;
}

.rates-empty--inline {
    padding: 16px 0;
    text-align: left;
}

.rates-stale {
    margin-bottom: 24px;
}

/* ---- class filter (washer tab) --------------------------------------------------------------------------------- */

.rates-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 24px;
    margin: 0 0 32px;
}

.rates-filter__field {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.rates-filter__field label {
    flex: 0 0 auto;
    font-size: 15px;
    white-space: nowrap;
}

.page .rates-filter select {
    flex: 1 1 auto;
    min-width: 158px;
    max-width: 100%;
    background-color: #e9e9e9;
    border-color: #e9e9e9;
    cursor: pointer;
}

.rates-filter__apply {
    height: 48px;
}

.js .rates-filter__apply {
    display: none;
}

/* ---- jump links (one entry per machine or dungeon) --------------------------------------------------------------- */

.rates-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 20px 0 32px;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

/* ---- blocks ------------------------------------------------------------------------------------------------------ */

.rates-block {
    margin: 0 0 48px;
    scroll-margin-top: 90px;
}

.rates-block__title {
    margin: 0 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--c-accent);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.rates-block__sub {
    margin: 24px 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.rates-meta,
.rates-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.8;
}

.rates-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

.rates-list li {
    padding-left: 14px;
    text-indent: -14px;
}

.rates-list li::before {
    content: "·";
    display: inline-block;
    width: 14px;
    text-indent: 0;
    text-align: center;
}

/* ---- tables ------------------------------------------------------------------------------------------------------ */

/* Wide tables scroll inside their own box instead of widening the page. */
.rates-scroll {
    overflow-x: auto;
}

.rates-table th,
.rates-table td {
    padding: 10px 12px;
    font-size: 14px;
}

.rates-table td.data-table__num,
.rates-table th.data-table__num {
    white-space: nowrap;
}

.rates-table__notes {
    line-height: 1.9;
}

.rates-tag {
    display: inline-block;
    margin: 0 6px 0 0;
    padding: 0 8px;
    background: #e9e9e9;
    color: #333;
    font-size: 12px;
    line-height: 22px;
    white-space: nowrap;
}

.rates-tag--gate {
    background: #fff6d6;
    color: #4d3d00;
}

.rates-pool {
    display: block;
    font-weight: 700;
}

.rates-pool__flag {
    display: block;
    color: var(--c-muted);
    font-size: 12px;
}

.rates-scope {
    margin-top: 4px;
    color: var(--c-muted);
    font-size: 12px;
}

.rates-scope__count {
    display: block;
    color: var(--c-muted);
    font-size: 12px;
}

.rates-scope summary {
    cursor: pointer;
}

.rates-scope__list {
    margin: 6px 0 0;
    padding-left: 18px;
    columns: 2;
    column-gap: 24px;
}

.rates-part {
    margin: 0 0 28px;
}

@media (max-width: 575.98px) {
    .rates-block__title {
        font-size: 18px;
    }

    .rates-table th,
    .rates-table td {
        padding: 8px 8px;
        font-size: 13px;
    }

    .rates-scope__list {
        columns: 1;
    }
}
