/* Save image button for pages that do not load genm-paid.css (the homepage slot, the Debt Sphere page, the Weekly Data Article): Phase 10 Batch F, Step 3.
   The button is the shared paid button (partials/genm-tools/save-image.hbs), so this file repeats the look of .genm-paid-btn and .genm-save from genm-paid.css, scoped to the Save image box.
   Both files give the same values; a page that loads both is unchanged. */
.genm-save .genm-save-actions {
    margin: 16px 0 8px;
}

.genm-save .genm-paid-btn {
    display: inline-block;
    box-sizing: border-box;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 8px;
    background: var(--genm-navy);
    color: var(--genm-gold);
    border: 2px solid var(--genm-gold);
    font-family: var(--genm-font-sans);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

.genm-save .genm-paid-btn:hover,
.genm-save .genm-paid-btn:focus-visible {
    background: var(--genm-gold);
    color: var(--genm-navy);
}

.genm-save .genm-paid-btn:focus-visible {
    outline: 3px solid var(--genm-cream);
    outline-offset: 2px;
}

.genm-save [data-genm-save-status][hidden] {
    display: none;
}

/* Save CSV locked message (Phase 10, Batch G, chart pages): the one message line under a locked Save CSV button (partials/genm-tools/save-csv.hbs, lockmsg="yes").
   genm-save-image.js shows it after a press. Cream text on the navy chart panel, underlined links, a gold focus ring, and the selector with .genm-bar .genm-bar-panel is there to win over
   ".genm-bar .genm-bar-panel p { margin: 0 }" in genm-bars.css. This file and the other one (genm-save.css and genm-paid.css) hold the same rule, because a page loads one or the other. */
.genm-save .genm-csv-locked-msg,
.genm-bar .genm-bar-panel .genm-save .genm-csv-locked-msg {
    max-width: 560px;
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--genm-cream);
    overflow-wrap: anywhere;
}

.genm-save .genm-csv-locked-msg[hidden],
.genm-bar .genm-bar-panel .genm-save .genm-csv-locked-msg[hidden] {
    display: none;
}

.genm-save .genm-csv-locked-msg a {
    color: var(--genm-cream);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.genm-save .genm-csv-locked-msg a:focus-visible {
    outline: 3px solid var(--genm-gold);
    outline-offset: 2px;
    border-radius: 2px;
}
