/* GENM Series Viewer (Phase 10 Batch 8, PR 1): the series picker and the window buttons
/* ----------------------------------------------------------
Loaded by the Series Viewer page's "head" part (partials/genm-tools/series-viewer.hbs). Markup: partials/genm-tools/series-picker.hbs, written by
assets/js/tools/genm-series-viewer.js. Every rule is scoped to .genm-sv. Colors and fonts come only from genm-tokens.css. The panel, stamp, table
and chart come from genm-bars.css and genm-charts.css. Nothing here animates. Sizes are in px because Source sets the root font size to 10px.
*/

/* the as-of line sits on the navy panel: light text, not the small-text class's dark text */
.genm-sv .genm-bar-asof {
    color: var(--genm-muted);
    margin: 0 0 14px;
}

.genm-sv .genm-sv-picker {
    display: block;
    margin: 0 0 14px;
}

.genm-sv .genm-sv-picker-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--genm-muted);
}

.genm-sv .genm-sv-select {
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--genm-navy-track);
    background: var(--genm-navy-panel);
    color: var(--genm-cream);
    font: inherit;
    font-size: 15px;
}

.genm-sv .genm-sv-select:focus-visible {
    outline: 3px solid var(--genm-gold);
    outline-offset: 2px;
}

/* The window buttons: native radio buttons drawn as buttons, each at least 44 px high */
.genm-sv .genm-sv-ctl {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.genm-sv .genm-sv-ctl legend {
    padding: 0;
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--genm-muted);
}

.genm-sv .genm-sv-ctl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genm-sv .genm-sv-ctl label {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--genm-navy-track);
    background: var(--genm-navy-panel);
    color: var(--genm-cream);
    font-size: 14px;
    cursor: pointer;
}

.genm-sv .genm-sv-ctl input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.genm-sv .genm-sv-ctl label:has(input:checked) {
    border-color: var(--genm-gold);
    box-shadow: inset 0 0 0 1px var(--genm-gold);
    font-weight: 600;
}

.genm-sv .genm-sv-ctl label:has(input:focus-visible) {
    outline: 3px solid var(--genm-gold);
    outline-offset: 2px;
}

.genm-sv .genm-sv-heading {
    margin: 4px 0 10px;
    font-size: 17px;
    color: var(--genm-cream);
}

.genm-sv .genm-bar-canvas {
    min-height: 360px;
}

/* Phase 10 Batch 8, PR 2: the series check boxes of section 3 use the same button look as the window buttons (.genm-sv-ctl above); the hint under them */
.genm-sv .genm-sv-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--genm-muted);
}
