/* sky-credit-cost.css — the inline "Uses N credits · you have X · Buy credits"
   line filled by sky-credit-cost.js (John, 2026-10-13: a line on the page, never
   a popup). Small and muted, from theme variables, so it reads correctly in
   Classic and every new theme, light and dark, and wraps cleanly on phones. */
.sky-credit-cost {
    --scc-ink: var(--sky-text-muted, #6c757d);
    --scc-warn: var(--theme-warning-fg, #b45309);
    --scc-link: var(--sky-primary, #0369a1);
    display: block;
    margin-top: .25rem;
    font-size: .8125rem;
    line-height: 1.4;
    font-weight: 400;
    color: var(--scc-ink);
    overflow-wrap: anywhere;
    text-align: inherit;
}
.sky-credit-cost[hidden] { display: none !important; }
.sky-credit-cost[data-credit-cost-inline] { display: inline; margin-top: 0; margin-left: .5rem; }
.sky-credit-cost[data-credit-cost-inline] .scc-note { display: inline; margin-left: .35rem; }
.sky-credit-cost .scc-line { display: inline; }
.sky-credit-cost .scc-low { color: var(--scc-warn); font-weight: 600; }
.sky-credit-cost .scc-buy {
    color: var(--scc-link);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.sky-credit-cost .scc-buy:hover,
.sky-credit-cost .scc-buy:focus-visible { text-decoration-thickness: 2px; }
.sky-credit-cost .scc-buy:focus-visible { outline: 2px solid var(--scc-link); outline-offset: 2px; border-radius: 2px; }
.sky-credit-cost .scc-note { display: block; opacity: .92; }

/* Light/dark: every pack (Classic = vercel/linear, and the new themes) sets
   --sky-text-muted, --theme-warning-fg and --sky-primary per mode, so nothing
   here is mode-specific. */

/* Phones: the Buy link is a real tap target, not a 13px sliver. */
@media (max-width: 575.98px) {
    .sky-credit-cost { font-size: .8125rem; }
    .sky-credit-cost .scc-buy { display: inline-block; padding: .3rem 0; min-height: 24px; }
    .sky-credit-cost[data-credit-cost-inline] { display: block; margin-left: 0; margin-top: .25rem; }
}

/* The ONE page-level live region ("Credits: you have N" after a spend):
   read by screen readers, never seen. The per-button lines are not live. */
.scc-live {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
