/* GENM Foreign Holders page (Phase 10, Batch E, PR 2): CL9, the foreign holder rank slope chart
/* ----------------------------------------------------------
Loaded by the Foreign Holders page's "head" part (partials/genm-tools/foreign-holders.hbs). Markup: partials/genm-tools/foreign-rank.hbs, written by
assets/js/tools/foreign-rank.js. Every rule is scoped to .genm-fr. Colors and fonts come only from genm-tokens.css. The panel, stamp, table and chart
frame come from genm-bars.css and genm-charts.css; the date control's look is in genm-paid.css. Nothing here animates. Sizes are in px because Source sets
the root font size to 10px.
*/

.genm-fr .genm-bar-asof {
    color: var(--genm-muted);
    margin: 0 0 14px;
}

.genm-fr .genm-fr-pickers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 32px;
}

@media (min-width: 720px) {
    .genm-fr .genm-fr-pickers {
        grid-template-columns: 1fr 1fr;
    }
}

.genm-fr .genm-fr-hint,
.genm-fr .genm-fr-key,
.genm-fr .genm-fr-history-note {
    color: var(--genm-muted);
    margin: 8px 0 0;
}

.genm-fr .genm-fr-history-note {
    margin: 16px 0;
}

.genm-fr .genm-fr-hint[hidden],
.genm-fr .genm-fr-soon[hidden],
.genm-fr [data-fr="results"][hidden] {
    display: none;
}

.genm-fr .genm-fr-soon {
    margin: 16px 0;
}

.genm-fr .genm-fr-soon-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
}

/* The chart is as wide as its box; the script sets its height from the number of rank slots (taller on a phone). It does not capture a vertical swipe. */
.genm-fr .genm-fr-canvas {
    width: 100%;
    min-height: 360px;
    touch-action: pan-y;
}

.genm-fr .genm-fr-canvas[hidden] {
    display: none;
}

.genm-fr .genm-fr-key {
    margin: 12px 0 0;
}

.genm-fr .genm-bar-table tbody th {
    text-align: left;
}

@media (max-width: 520px) {
    .genm-fr .genm-bar-table {
        font-size: 13px;
    }
}

/* Save image button (Batch F): the shared paid button, with room around it */
.genm-fr .genm-fr-actions {
    margin: 16px 0 8px;
}

.genm-fr .genm-fr-actions .genm-paid-btn {
    cursor: pointer;
}

.genm-fr [data-fr="image-status"][hidden] {
    display: none;
}
