.mf-results-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.mf-results-nav a {
    padding: 10px 16px;
    border: 1px solid #b8175b;
    border-radius: 999px;
    color: #a21350;
    background: #fff;
    font-weight: 600;
    text-decoration: none;
}

.mf-results-nav a:hover,
.mf-results-nav a:focus-visible {
    color: #fff;
    background: #a21350;
}

.mf-results-nav a:focus-visible {
    outline: 3px solid #54268d;
    outline-offset: 3px;
}

#main-results,
#main-charts,
.mf-extra-results {
    scroll-margin-top: 110px;
}

.mf-extra-results {
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 12px auto 32px;
    padding: 20px 16px;
}

.mf-extra-results__heading {
    margin-bottom: 22px;
    text-align: center;
}

.mf-extra-results__heading h2 {
    margin: 0 0 10px;
    color: #25182b;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
}

.mf-extra-results__heading p,
.mf-extra-results__empty {
    color: #5f5364;
    font-size: 15px;
    line-height: 1.6;
}

.mf-extra-results__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mf-extra-results__card {
    min-width: 0;
    padding: 22px 16px;
    border: 1px solid #eadce4;
    border-top: 3px solid #c52669;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(83, 32, 64, .06);
    text-align: center;
    overflow-wrap: anywhere;
}

.mf-extra-results__card h3 {
    margin: 0 0 5px;
    color: #8f174a;
    font-size: 17px;
    font-weight: 600;
}

.mf-extra-results__name {
    margin: 0;
    color: #322333;
    font-size: 18px;
    font-weight: 600;
}

.mf-extra-results__value {
    margin: 12px 0;
    color: #25182b;
    font-size: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mf-extra-results__date {
    margin: 0;
    color: #66566c;
    font-size: 14px;
    line-height: 1.5;
}

.mf-extra-results__empty {
    padding: 24px 16px;
    border-radius: 12px;
    background: #faf5f8;
    text-align: center;
}

.mf-result-chart-link,
.mf-chart-directory a,
.mf-history__links a,
.mf-history__pagination a {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #b8175b;
    border-radius: 8px;
    color: #a21350;
    background: #fff;
    font-weight: 600;
    text-decoration: none;
}

.mf-result-chart-link {
    margin-top: 16px;
}

.mf-result-chart-link:hover,
.mf-chart-directory a:hover,
.mf-history__links a:hover,
.mf-history__pagination a:hover {
    background: #faf0f5;
}

.mf-result-chart-link:focus-visible,
.mf-chart-directory a:focus-visible,
.mf-history a:focus-visible,
.mf-history__scroll:focus-visible {
    outline: 3px solid #54268d;
    outline-offset: 3px;
}

.mf-chart-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    text-align: center;
}

.mf-history {
    width: calc(100% - 32px);
    max-width: 1200px;
    margin: 115px auto 40px;
    color: #25182b;
}

.mf-history__links,
.mf-history__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0;
}

.mf-history h1 {
    margin: 28px 0 12px;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.3;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.mf-history__hint {
    color: #66566c;
    margin: 16px 0 10px;
    font-size: 14px;
    line-height: 1.6;
}

.mf-history__scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dbcbd4;
    border-radius: 12px;
    background: #fff;
}

.mf-history__table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    text-align: center;
}

.mf-history__table caption {
    padding: 14px;
    text-align: left;
    color: #66566c;
    font-size: 14px;
}

.mf-history__table th,
.mf-history__table td {
    padding: 14px 8px;
    border-right: 1px solid #eadce4;
    border-bottom: 1px solid #eadce4;
    vertical-align: middle;
}

.mf-history__table thead th {
    color: #8f174a;
    background: #faf0f5;
    font-size: 15px;
}

.mf-history__table tr > :first-child {
    position: sticky;
    left: 0;
    width: 110px;
    background: #faf0f5;
    font-size: 13px;
    z-index: 1;
}

.mf-history__table time {
    display: block;
    margin-bottom: 7px;
    color: #66566c;
    font-size: 12px;
}

.mf-history__result {
    display: block;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .mf-extra-results__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .mf-extra-results__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mf-results-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

[data-category-tabs] { overflow-anchor: none; }
[data-category-tabs] [data-category-panel][hidden] { display: none !important; }
[data-category-tablist] { scroll-margin-top: 90px; }
.mf-results-nav a[aria-selected="true"] { color: #fff; background: #a21350; }
[data-category-panel]:focus-visible { outline: 3px solid #8b48b9; outline-offset: 3px; }
