/* GENM paid block (Phase 10 Batch 5): the locked placeholder and the shared date control
/* ----------------------------------------------------------
Loaded by the Yield Curve page (its "head" part). Markup: partials/genm-tools/paid-gate.hbs (the locked placeholder),
assets/js/tools/genm-date-control.js (the date control builds its own markup). The panel, stamp and table look of the paid
sections come from genm-bars.css. Colors and fonts come only from genm-tokens.css. Nothing here animates. Sizes are in px
because Source sets the root font size to 10px.
*/

/* ---------- the locked placeholder: words and one button, no figures ---------- */

.genm-paid-locked {
    font-family: var(--genm-font-sans);
    line-height: 1.5;
}

.genm-paid-locked .genm-paid-lede {
    max-width: 760px;
}

.genm-paid-locked .genm-paid-action {
    margin: 16px 0 0;
}

.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-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

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

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

/* ---------- the date control: a slider on record dates, three buttons and a month jump ---------- */

.genm-dc-ctl {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--genm-cream);
    font-family: var(--genm-font-sans);
}

.genm-dc-ctl .genm-dc-ctl-label {
    font-size: 14px;
    color: var(--genm-muted);
}

.genm-dc-ctl .genm-dc-ctl-date {
    font-size: 17px;
    font-weight: 600;
    color: var(--genm-cream);
}

.genm-dc-ctl input[type="range"] {
    width: 100%;
    min-height: 44px;
    margin: 0;
    accent-color: var(--genm-gold);
    touch-action: pan-y;
}

.genm-dc-ctl .genm-dc-ctl-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.genm-dc-ctl button,
.genm-dc-ctl select {
    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: inherit;
    font-size: 14px;
    max-width: 100%;
}

.genm-dc-ctl button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.genm-dc-ctl button:focus-visible,
.genm-dc-ctl select:focus-visible,
.genm-dc-ctl input[type="range"]:focus-visible {
    outline: 3px solid var(--genm-gold);
    outline-offset: 2px;
}

.genm-dc-ctl .genm-dc-ctl-month {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--genm-muted);
}

/* ---------- the yield toggle's chart ---------- */

.genm-yt .genm-yt-canvas {
    width: 100%;
}

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

/* ---------- the yield heatmap (CL1, #yield-heatmap) ---------- */
/* The section's own classes carry its status, as-of, note and legal text, so none of it uses the small-text class whose dark text is unreadable on the navy panel. */

.genm-hm .genm-hm-status {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--genm-navy);
}

.genm-hm .genm-hm-status[hidden],
.genm-hm .genm-hm-hint[hidden],
.genm-hm .genm-hm-canvas[hidden] {
    display: none;
}

.genm-hm .genm-hm-asof {
    color: var(--genm-muted);
    margin: 0 0 12px;
    font-size: 13px;
}

.genm-hm .genm-hm-colnote {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--genm-cream);
}

.genm-hm .genm-hm-affil {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: color-mix(in srgb, var(--genm-navy) 85%, transparent);
}

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

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

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

.genm-hm .genm-hm-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-hm .genm-hm-ctl input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

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

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

/* The chart: row labels stay at the left while the grid scrolls sideways inside its own box; the page body never scrolls sideways */
.genm-hm .genm-hm-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.genm-hm .genm-hm-scroll:focus-visible {
    outline: 2px solid var(--genm-gold);
    outline-offset: 2px;
}

.genm-hm .genm-hm-inner {
    display: flex;
    align-items: flex-start;
    width: max-content;
    min-width: 100%;
}

.genm-hm .genm-hm-rows {
    position: sticky;
    left: 0;
    z-index: 1;
    flex: 0 0 64px;
    box-sizing: border-box;
    width: 64px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--genm-navy);
    font-family: var(--genm-font-mono);
    font-size: 12px;
    color: var(--genm-cream);
}

.genm-hm .genm-hm-rows li {
    height: 28px;
    line-height: 28px;
    margin: 0;
    padding: 0 6px 0 0;
    white-space: nowrap;
}

.genm-hm .genm-hm-canvas {
    flex: 0 0 auto;
    touch-action: pan-x pan-y;
}

.genm-hm .genm-hm-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--genm-muted);
}

.genm-hm .genm-hm-legend {
    margin: 14px 0 0;
}

.genm-hm .genm-hm-scale {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 13px;
    color: var(--genm-cream);
}

.genm-hm .genm-hm-swatches {
    display: inline-flex;
    flex: 0 1 220px;
    min-width: 120px;
    height: 16px;
    border: 1px solid var(--genm-navy-track);
}

.genm-hm .genm-hm-swatches i {
    flex: 1 1 0;
}

.genm-hm .genm-hm-gapkey {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.genm-hm .genm-hm-gapswatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid var(--genm-muted);
    background: repeating-linear-gradient(135deg, var(--genm-navy-panel) 0 3px, var(--genm-muted) 3px 4px);
}

.genm-hm .genm-hm-legend-text {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--genm-muted);
}

.genm-hm .genm-hm-details {
    margin: 16px 0 0;
}

.genm-hm .genm-hm-details-title {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--genm-cream);
}

.genm-hm .genm-hm-table th,
.genm-hm .genm-hm-table td {
    padding-right: 12px;
}

/* ---------- the monthly yield candlestick and range bar (CL2, #yield-candlestick) ---------- */
/* The section also carries the heatmap's classes (.genm-hm) for its status, as-of, notes, window buttons, legend text, details and table, so those look the same. These rules add the chooser,
the chart with its percent labels, the readout panel and the legend marks. The readout sits under the chart, not on it, so it can never be cut off at an edge. */

.genm-cs .genm-cs-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 20px;
    margin: 0 0 6px;
}

.genm-cs .genm-cs-chooser {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 14px;
}

.genm-cs .genm-cs-chooser label {
    font-size: 14px;
    color: var(--genm-muted);
}

.genm-cs .genm-cs-select {
    box-sizing: border-box;
    min-height: 44px;
    min-width: 140px;
    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: 14px;
}

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

.genm-cs .genm-cs-plot {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
}

.genm-cs .genm-cs-yaxis {
    position: relative;
    flex: 0 0 52px;
    width: 52px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--genm-font-mono);
    font-size: 11px;
    color: var(--genm-muted);
}

.genm-cs .genm-cs-yaxis li {
    position: absolute;
    right: 6px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    white-space: nowrap;
}

.genm-cs .genm-cs-scroll {
    flex: 1 1 auto;
    min-width: 0;
}

.genm-cs .genm-cs-canvas {
    touch-action: pan-x pan-y;
}

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

.genm-cs .genm-cs-readout {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--genm-navy-track);
    border-radius: 8px;
    background: var(--genm-navy-panel);
    color: var(--genm-cream);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.genm-cs .genm-cs-readout-title {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--genm-cream);
}

.genm-cs .genm-cs-readout-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.genm-cs .genm-cs-readout-note,
.genm-cs .genm-cs-readout-hint {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--genm-muted);
}

.genm-cs .genm-cs-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--genm-cream);
}

.genm-cs .genm-cs-keys li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* The marks: one hue (#A4C1E8). Filled and hollow differ by the fill, not the color. */
.genm-cs .genm-cs-key {
    display: inline-block;
    box-sizing: border-box;
    width: 14px;
    height: 16px;
    border: 2px solid #A4C1E8;
    background: #A4C1E8;
}

.genm-cs .genm-cs-key-hollow {
    background: var(--genm-navy-panel);
}

.genm-cs .genm-cs-key-flat {
    height: 0;
    width: 16px;
    border-width: 2px 0 0;
    background: none;
}

.genm-cs .genm-cs-key-range {
    width: 8px;
}

.genm-cs .genm-cs-key-gap {
    border: 1px solid var(--genm-muted);
    background: repeating-linear-gradient(135deg, var(--genm-navy-panel) 0 3px, var(--genm-muted) 3px 4px);
}

@media (max-width: 480px) {
    .genm-cs .genm-cs-yaxis {
        flex-basis: 46px;
        width: 46px;
        font-size: 10px;
    }
}


/* ---------- the 2-year against 10-year scatter (CL4, #yield-scatter) ---------- */
/* The section also carries the heatmap's classes (.genm-hm) for its status, as-of, notes, window buttons, legend text, details and table, so those look the same. These rules add the
square chart box, the readout panel under the chart and the legend marks. Blue is the one hue; gray is every other dot. Shape and size differ as well as color. */

.genm-sc .genm-sc-controls {
    margin: 0 0 6px;
}

.genm-sc .genm-sc-plot {
    max-width: 100%;
    overflow: hidden;
}

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

.genm-sc .genm-sc-canvas {
    max-width: 100%;
    touch-action: pan-y;
}

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

.genm-sc .genm-sc-readout {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--genm-navy-track);
    border-radius: 8px;
    background: var(--genm-navy-panel);
    color: var(--genm-cream);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.genm-sc .genm-sc-readout-title {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--genm-cream);
}

.genm-sc .genm-sc-readout-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.genm-sc .genm-sc-readout-note,
.genm-sc .genm-sc-readout-hint {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--genm-muted);
}

.genm-sc .genm-sc-keys {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--genm-cream);
}

.genm-sc .genm-sc-keys li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.genm-sc .genm-sc-key {
    display: inline-block;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.genm-sc .genm-sc-key-recent {
    width: 11px;
    height: 11px;
    margin: 0 2px;
    background: #A4C1E8;
    transform: rotate(45deg);
}

.genm-sc .genm-sc-key-earlier {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    border-radius: 50%;
    background: #8A97AE;
}

.genm-sc .genm-sc-key-equal {
    width: 16px;
    height: 0;
    border-top: 2px dashed var(--genm-muted);
}


/* ---------- the receipts charts (CL13, #budget-charts) ---------- */
/* The section also carries the heatmap's classes (.genm-hm) for its status, as-of, notes, legend, details and table. These rules add the year selector's spacing, the two chart blocks, the chart
boxes, the color keys and the How this is calculated note. Each color has its name written beside it, so color carries nothing alone. */

.genm-bc .genm-bc-controls {
    margin: 0 0 14px;
}

.genm-bc .genm-bc-controls:empty {
    display: none;
}

.genm-bc .genm-bc-block {
    margin: 0 0 26px;
}

.genm-bc .genm-bc-h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--genm-cream);
}

.genm-bc .genm-bc-block [hidden] {
    display: none;
}

.genm-bc .genm-bc-plot {
    max-width: 100%;
    overflow: hidden;
}

.genm-bc .genm-bc-canvas {
    max-width: 100%;
}

.genm-bc .genm-bc-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--genm-cream);
}

.genm-bc .genm-bc-keys li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.genm-bc .genm-bc-key {
    display: inline-block;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.genm-bc .genm-bc-how {
    margin: 16px 0 0;
}

.genm-bc .genm-bc-how p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--genm-muted);
}

.genm-bc .genm-dc-how-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--genm-cream);
}
