/* CCDSS / SCSMC data tool — shared layout, measure picker, charts, controls */

/* Header "Take the tour" — keep in main.css so colour is correct before tour.css loads. */
.blue-header #ccdss-take-tour {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.blue-header #ccdss-take-tour-label {
    text-decoration: underline;
}

.blue-header #ccdss-take-tour:hover,
.blue-header #ccdss-take-tour:focus {
    color: #fff;
    text-decoration: none;
}

.blue-header #ccdss-take-tour:hover #ccdss-take-tour-label,
.blue-header #ccdss-take-tour:focus #ccdss-take-tour-label {
    text-decoration: underline;
}

.blue-header #ccdss-take-tour:focus,
.blue-header #ccdss-take-tour:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.ccdss-tour-icon {
    flex-shrink: 0;
    font-size: 0.95em;
}

.sidebar {
    height: fit-content;
    position: sticky;
    top: 1em;
}
.sidebar h2 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.5em;
}
label {
    font-weight: bold;
    display: block;
    margin-top: 0em;
    margin-bottom: 0.2em;
}
select {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ced4da;
    border-radius: 4px;
}
/* Closed FR condition names are long; slightly widen the sidebar select column. */
@media (min-width: 992px) {
    .sidebar {
        min-width: 18.5rem;
    }
}
.content-area {
    padding: 0 0.5em;
}
.visualization-panel {
    background-color: #ffffff;
    /* Align measure tab titles with sidebar headings */
    padding: 0;
}
.visualization-panel-chart {
    border-top: 1px solid #ececec;
    margin-top: 0;
    padding-top: 0.75em;
}
.dashboard-title-host--chart #dynamicTitle {
    margin-top: 0;
    /* Match padding-top above so air under the title equals air above. */
    margin-bottom: 0.75em;
}
.visualization-panel.is-compact-measure {
    padding-top: 0;
}
.visualization-panel.is-compact-measure .visualization-panel-chart {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
table {
    font-size: 0.9em;
}
th {
    position: sticky;
    top: 0;
    z-index: 10;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
tr:hover {
    background-color: #e8f4f8;
}
#line-chart {
    width: 100%;
    height: 500px;
    background-color: #fff;
}
.ccdss-viz-svg {
    width: 100%;
    height: 500px;
    background-color: #fff;
}
.legend-item {
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
}
.legend-item:hover {
    background-color: #f0f0f0;
}
.legend-item.inactive {
    opacity: 0.3;
}
.ccdss-viz-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
/* Single (non-small-multiples) charts: centre the legend under the graph.
   Line/bar/combo SVGs follow their viewBox aspect instead of the fixed
   500px stage so the x-axis title stays near the SVG's bottom edge at
   any width (no letterbox gap); the map keeps its fixed-height stage. */
#line-chart-container > svg.ccdss-viz-svg[data-renderer="line"],
#line-chart-container > svg.ccdss-viz-svg[data-renderer="bar"],
#line-chart-container > svg.ccdss-viz-svg[data-renderer="combo"] {
    height: auto;
    display: block;
}
#line-chart-container > .ccdss-viz-legend {
    justify-content: center;
    gap: 4px 20px;
    /* Match plot gutters so the legend lines up with the x-axis title when
       left/right margins are asymmetric (slim desktop right gutter). */
    box-sizing: border-box;
    padding-left: var(--ccdss-plot-margin-left, 0px);
    padding-right: var(--ccdss-plot-margin-right, 0px);
}
/* Flex gap replaces the trailing per-item margin so centring is exact. */
#line-chart-container > .ccdss-viz-legend > .legend-item {
    margin-right: 0;
}
.legend-color {
    display: inline-block;
    width: 20px;
    height: 3px;
    margin-right: 5px;
    vertical-align: middle;
    flex-shrink: 0;
}
.legend-color--line {
    width: 20px;
    height: 3px;
    border-radius: 1px;
}
.legend-color--point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.legend-color--point.has-point-symbol {
    border-radius: 0;
    background-color: transparent !important;
    background-image: none !important;
}
.legend-color--point .legend-point-symbol {
    display: block;
    overflow: visible;
}
.legend-color--bar {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}
/* Static COVID pandemic annotation (not a series toggle).
   order:1 keeps it last in the primary legend row (series are 0;
   combo mark-key uses 99). */
.legend-item.ccdss-covid-pandemic-legend {
    cursor: default;
    order: 1;
}
.legend-item.ccdss-covid-pandemic-legend:hover {
    background-color: transparent;
}
.legend-color--band {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    opacity: 0.55;
}
.ccdss-covid-pandemic-band {
    pointer-events: none;
}
.axis-label {
    font-size: 18px;
    font-weight: bold;
}
/* Match GCWeb abbr[title] affordance for the fiscal-year axis definition. */
.x-axis-label--fiscal {
    cursor: help;
    text-decoration: underline;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}
.x-axis text {
    font-size: 13px;
}
.y-axis text {
    font-size: 16px;
}
.confidence-band {
    opacity: 0.2;
}
.line {
    fill: none;
    stroke-width: 2px;
    /* Round caps make degenerate gap islands (M…Z) visible, matching thumbnails. */
    stroke-linecap: round;
}
.line.inactive {
    opacity: 0.3;
}
/* Overflow series (11+) reuse Tableau10 with a dash texture.
   No border-radius: radius + dashed border left a white fleck at the end. */
.legend-color--line.is-textured {
    border-radius: 0;
    height: 3px;
    border: none;
    background-color: transparent !important;
}
.measure-picker-cards {
    margin-top: 0;
}
.compact-measure-control {
    margin-top: 0;
}
.measure-picker-compact-label {
    display: block;
    margin-bottom: 0.35em;
}
.measure-picker-compact--loading {
    color: #5c6b7a;
    font-style: italic;
}
.measure-picker-loading-skeleton {
    min-height: 148px;
}
/* CLS: hold measure slot before skeleton/cards mount. */
#measure-picker-content {
    min-height: 148px;
}
/* CLS: #data-visualization starts display:none — reserve on always-visible column. */
#ccdss-chart-col {
    min-height: 36rem;
}
.measure-picker-tabs--skeleton {
    pointer-events: none;
}
.measure-picker-tab-skeleton {
    display: inline-block;
    width: 6.5em;
    height: 1.55em;
    margin: 0 0.35em -1px 0;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 50%, #e8ecf0 75%);
    background-size: 200% 100%;
    animation: measure-picker-shimmer 1.2s ease-in-out infinite;
}
.measure-picker-tab-skeleton.is-active {
    width: 5.5em;
    background-color: #eef4fa;
}
.measure-picker-card--skeleton {
    cursor: default;
    pointer-events: none;
    border-color: #e0e4e8;
    background-color: #f8f9fb;
}
.measure-picker-skeleton-line {
    display: block;
    margin: 0 auto;
    border-radius: 3px;
    background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 50%, #e8ecf0 75%);
    background-size: 200% 100%;
    animation: measure-picker-shimmer 1.2s ease-in-out infinite;
}
.measure-picker-skeleton-line--label {
    width: 78%;
    height: 0.85em;
}
.measure-picker-skeleton-line--rate {
    width: 42%;
    height: 0.7em;
}
.measure-picker-thumbnail--skeleton {
    border-color: #e0e4e8;
    background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 50%, #e8ecf0 75%);
    background-size: 200% 100%;
    animation: measure-picker-shimmer 1.2s ease-in-out infinite;
}
@keyframes measure-picker-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .measure-picker-tab-skeleton,
    .measure-picker-skeleton-line,
    .measure-picker-thumbnail--skeleton {
        animation: none;
    }
    .measure-picker-horizontal.is-updating .measure-picker-card-host,
    .measure-picker-tab,
    .measure-picker-column,
    .measure-picker-thumbnail-slot .measure-picker-thumbnail.is-outgoing,
    .measure-picker-thumbnail-slot .measure-picker-thumbnail.is-incoming.is-visible {
        transition: none;
    }
}
.measure-picker-rate-group + .measure-picker-rate-group,
.measure-picker-carousel + .measure-picker-carousel {
    margin-top: 1em;
}
.measure-picker-rate-heading {
    margin: 0 0 0.5em;
    font-size: 0.95em;
    font-weight: 700;
}
.measure-picker-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d6d6d6;
}
.measure-picker-tab {
    appearance: none;
    margin: 0 0 -1px;
    padding: 0.3em 0.75em;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #26374a;
    font-weight: 700;
    cursor: pointer;
}
.measure-picker-tab.is-active {
    border-bottom-color: #26374a;
    background-color: #eef4fa;
}
.measure-picker-tab.is-disabled,
.measure-picker-tab:disabled {
    color: #6f6f6f;
    cursor: not-allowed;
    opacity: 0.55;
}
.measure-picker-tab:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}
.measure-picker-row {
    margin-left: -5px;
    margin-right: -5px;
}
.measure-picker-column {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
}
.measure-picker-highlight-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.measure-picker-highlight-row .measure-picker-column {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    max-width: calc((100% - 50px) / 6);
    padding: 0;
    margin-bottom: 0;
}
.measure-picker-carousel-frame {
    position: relative;
    display: block;
}
.measure-picker-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    width: 100%;
    container-type: inline-size;
}
/* Equal air above/below cards (matches former tabs margin-bottom).
   Avoid min-height here — it left a taller empty band under short cards
   and could collapse to zero when FR labels grew the tiles. */
.measure-picker-card-host {
    box-sizing: border-box;
    padding-top: 0.75em;
    padding-bottom: 0.75em;
}
/* Confirmed empty discovery: keep tab chrome, no measure cards. */
.measure-picker-empty-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 9.5em;
    padding: 1em 1.25em;
    color: #5c5c5c;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
}
.measure-picker-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.measure-picker-carousel-track .measure-picker-column {
    display: flex;
    /* Six slots per viewport; avoid min-width that forces phantom overflow. */
    flex: 0 0 calc((100cqw - 50px) / 6);
    min-width: 0;
    margin-bottom: 0;
    padding: 0;
    scroll-snap-align: start;
}
.measure-picker-carousel-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 2em;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.92);
    color: #26374a;
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
}
/* Theme button { display } rules beat the UA [hidden] stylesheet. */
.measure-picker-carousel-nav[hidden] {
    display: none !important;
}
.measure-picker-carousel-nav.is-prev {
    left: 0;
}
.measure-picker-carousel-nav.is-next {
    right: 0;
}
.measure-picker-carousel-nav:disabled {
    opacity: 0.35;
    cursor: default;
}
.measure-picker-card {
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 0.4em;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    width: 100%;
    height: 100%;
    min-height: 108px;
    /* Narrow cards swap ASE badge to AS/SA via @container below */
    container-type: inline-size;
    container-name: measure-card;
}
.measure-picker-label {
    line-height: 1.15;
    font-size: 0.72em;
    /* Reserve two lines so Incidence / All-cause mortality tiles stay even height */
    min-height: 2.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    hyphens: auto;
}
.measure-picker-rate-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ASE badge: full word by default; AS/SA when the card (or viewport) is narrow */
.measure-picker-ase-badge {
    text-decoration: none;
    border-bottom: 0;
}
.measure-picker-ase-badge-short {
    display: none;
}
@container measure-card (max-width: 7.25rem) {
    .measure-picker-ase-badge-full {
        display: none;
    }
    .measure-picker-ase-badge-short {
        display: inline;
    }
}
@media (max-width: 767px) {
    .measure-picker-ase-badge-full {
        display: none;
    }
    .measure-picker-ase-badge-short {
        display: inline;
    }
}
.measure-picker-thumbnail {
    width: 100%;
    height: 52px;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    background-color: #f8f9fb;
}
/* Stable chrome on the slot; SVG fills the content box so layered/instant updates share one size. */
.measure-picker-thumbnail-slot {
    position: relative;
    width: 100%;
    height: 52px;
    flex-shrink: 0;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    background-color: #f8f9fb;
    overflow: hidden;
    box-sizing: border-box;
}
.measure-picker-thumbnail-slot .measure-picker-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background-color: transparent;
}
/* Keep graph SVG mounted; flip overlay instead of destroying marks. */
.measure-picker-thumbnail-slot.is-unavailable .measure-picker-thumbnail {
    visibility: hidden;
}
.measure-picker-thumbnail-slot .measure-thumbnail-unavailable {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 6px;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}
.measure-picker-thumbnail-slot.is-unavailable .measure-thumbnail-unavailable {
    display: flex;
}
.ccdss-data-alert {
    margin: 0 0 0.75rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid #d3080c;
    background: #f9e9e9;
    color: #333;
}
.ccdss-data-alert-message {
    margin: 0 0 0.75rem;
}
.ccdss-data-alert-retry {
    margin: 0;
}
.ccdss-data-alert[hidden] {
    display: none !important;
}
#geo-dropdown:focus-visible,
#disease-dropdown:focus-visible,
#api-table-dropdown:focus-visible,
.year-range-inputs input[type="range"]:focus-visible,
.measure-picker-card:focus-visible,
.ccdss-viz-legend .legend-item:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}
.measure-picker-thumbnail-slot .measure-picker-thumbnail.is-layered {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.measure-picker-thumbnail-slot .measure-picker-thumbnail.is-outgoing {
    opacity: 0;
    transition: opacity 180ms ease;
}
.measure-picker-thumbnail-slot .measure-picker-thumbnail.is-incoming {
    opacity: 0;
}
.measure-picker-thumbnail-slot .measure-picker-thumbnail.is-incoming.is-visible {
    opacity: 1;
    transition: opacity 180ms ease;
}
.measure-picker-card:not(.is-selected) .measure-picker-thumbnail {
    filter: grayscale(1);
}
.measure-picker-card:not(.is-selected):hover .measure-picker-thumbnail,
.measure-picker-card:not(.is-selected):focus-visible .measure-picker-thumbnail {
    filter: none;
}
/* Dim cards only — tab chrome stays put so its border does not flash. */
.measure-picker-horizontal.is-updating .measure-picker-card-host {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 150ms ease;
}
.measure-picker-horizontal.is-updating {
    pointer-events: none;
}
.measure-picker-tab,
.measure-picker-column {
    transition: opacity 180ms ease;
}
.measure-picker-tab.is-exit,
.measure-picker-column.is-exit {
    opacity: 0;
    pointer-events: none;
}
/* Exiting columns must leave the flex row immediately or Main measures squash. */
.measure-picker-highlight-row > .measure-picker-column.is-exit,
.measure-picker-carousel-track > .measure-picker-column.is-exit {
    position: absolute;
    width: 0;
    min-width: 0;
    max-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
}
.measure-picker-tab.is-enter,
.measure-picker-column.is-enter {
    opacity: 0;
}
.measure-picker-tab.is-enter.is-visible,
.measure-picker-column.is-enter.is-visible {
    opacity: 1;
}
.measure-picker-card-host.is-height-locked {
    overflow: hidden;
}
.measure-thumbnail-axis {
    stroke: #6f7780;
    stroke-width: 1.5;
    fill: none;
}
.measure-thumbnail-line {
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
}
.measure-thumbnail-line--ratio {
    stroke-width: 3;
}
.measure-thumbnail-bar {
    stroke: none;
}
.measure-thumbnail-empty {
    fill: #555;
    font-size: 11px;
}
.measure-picker-card.is-selected {
    border-color: #26374a;
    background-color: #eef4fa;
}
.measure-picker-card.is-empty:not(.is-selected) .measure-picker-thumbnail-slot {
    background-color: #f3f3f3;
}
.measure-picker-card.is-empty:not(.is-selected) .measure-picker-thumbnail {
    filter: none;
}
.measure-picker-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.65;
}
.measure-picker-card.is-disabled .measure-picker-thumbnail {
    filter: grayscale(1);
}
.measure-picker-card.is-disabled:hover .measure-picker-thumbnail,
.measure-picker-card.is-disabled:focus-visible .measure-picker-thumbnail {
    filter: grayscale(1);
}
.combo-line {
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sidebar-panel {
    background-color: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 0.85em;
}
.sidebar-panel-group + .sidebar-panel-group {
    margin-top: 0.75em;
}
.sidebar-panel-heading {
    color: #26374a;
    /* font-size: 1em; */
    font-size:19px;
    font-weight: 700;
    margin: 0 0 0.35em;
}
.sidebar-panel div:not(:first-child) {
    margin-top: 0.65em;
    margin-bottom: 0;
}
/* Below-chart sections: notes first, then data table, downloads, acknowledgements */
#about-this-data-section {
    margin-top: 15px;
}
#chart-notes-section {
    margin-top: 0;
}
#data-table-section {
    margin-top: 6px;
}
#download-share-section,
#acknowledgements-section {
    margin-top: 30px;
    margin-bottom: 0.75em;
}
#api-results {
    margin-bottom: 0.75em;
}
/* Soft-hide Developer details from the public UI (DOM retained for agents/debug). */
#api-results.ccdss-soft-hidden,
#api-results[hidden] {
    display: none !important;
}
#about-this-data-section > h3,
#download-share-section > h3,
#acknowledgements-section > h3 {
    margin: 0 0 0.5em;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}
/* Mobile-only grouping label above notes + data table. */
.about-this-data-heading {
    display: none;
}
.ccdss-mobile-section-rule {
    display: none;
}
@media (max-width: 767px) {
    .about-this-data-heading {
        display: block;
        margin-bottom: 0.65em;
    }
    .ccdss-mobile-section-rule {
        display: block;
        margin: 0 0 0.85em;
        border: 0;
        border-top: 1px solid #ccc;
    }
    #about-this-data-section,
    #download-share-section {
        margin-top: 1.25em;
    }
}
.ccdss-acknowledgements {
    margin: 0;
    padding: 0.9em 1em 0.95em 1.1em;
    border: 0;
    border-left: 4px solid #4e79a7;
    background: #f4f7fa;
    color: #333;
    font-size: 0.95em;
    line-height: 1.45;
}
.ccdss-acknowledgements p {
    margin: 0;
}
#api-results > details.developer-details > summary,
#api-results details.developer-details-item > summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 0.5em;
}
#api-results details.developer-details-item {
    margin: 0.75em 0 0;
}
#api-results details.developer-details-item:first-of-type {
    margin-top: 0.5em;
}
.open-data-panel {
    margin: 0.25em 0 0;
    padding: 0.85em 0 0;
    border: 0;
    background: transparent;
}
.open-data-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    align-items: stretch;
}
.open-data-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    border: 0;
    border-top: 3px solid #4e79a7;
    padding: 0.65em 0 0;
}
/* Match chart series colours (Tableau10 / sex palette). */
.open-data-column:nth-child(1) { border-top-color: #4e79a7; }
.open-data-column:nth-child(2) { border-top-color: #e15759; }
.open-data-column:nth-child(3) { border-top-color: #f28e2c; }
.open-data-column:nth-child(4) { border-top-color: #76b7b2; }
.open-data-column-title {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin: 0 0 0.35em;
    color: #26374a;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}
/* Title proxies the icon button — no link/visited chrome; idle when action disabled. */
.open-data-column:has(.open-data-icon-btn:disabled) .open-data-column-title {
    cursor: default;
}
.open-data-column-title .fas {
    flex: 0 0 auto;
    width: 1.15em;
    text-align: center;
    color: #26374a;
}
.open-data-blurb {
    flex: 1 1 auto;
    margin: 0;
    color: #555;
    font-size: 0.9em;
    line-height: 1.35;
}
.open-data-panel .open-data-field {
    display: flex;
    align-items: stretch;
    gap: 0.3em;
    margin-top: 0.75em;
}
.open-data-panel .open-data-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0.35em 0.5em;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.85em;
    line-height: 1.3;
}
.open-data-panel .open-data-icon-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25em;
    padding: 0.3em 0.5em;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #f8f8f8;
    color: #26374a;
    line-height: 1;
    cursor: pointer;
}
.open-data-panel .open-data-icon-btn:hover:not(:disabled),
.open-data-panel .open-data-icon-btn:focus-visible {
    background: #eef4fa;
    border-color: #26374a;
}
.open-data-panel .open-data-icon-btn:focus-visible {
    outline: 2px solid #1d5a96;
    outline-offset: 1px;
}
/* In-column copy feedback (API / Share), sits between blurb and field. */
.open-data-copy-status {
    min-height: 1.35em;
    margin: 0 0 0.5rem;
    font-size: 0.9em;
    font-weight: 600;
    color: #26374a;
    line-height: 1.35;
}
.open-data-copy-status:empty {
    visibility: hidden;
}
.open-data-panel .open-data-icon-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
@media (max-width: 1199px) {
    .open-data-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.year-filter-control {
    border-top: 1px solid #ececec;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}
.year-filter-label-row {
    align-items: baseline;
    display: flex;
    gap: 0.55rem;
    justify-content: space-between;
    margin-top: 0;
}
.year-filter-label-row > label {
    margin-bottom: 0;
    margin-top: 0;
}
.year-range-show-all {
    background: none;
    border: 0;
    color: #5c6f7c;
    cursor: pointer;
    font-size: 0.78em;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    white-space: nowrap;
}
.year-range-show-all:hover,
.year-range-show-all:focus {
    color: #26374a;
}
.year-range-show-all:focus-visible {
    outline: 2px solid #26374a;
    outline-offset: 2px;
}
.year-range-control {
    margin-top: 0;
}
.year-range-header {
    align-items: center;
    display: flex;
    gap: 0.75em;
    justify-content: space-between;
    margin-bottom: 0em;
}
.year-range-values {
    color: #26374a;
    font-weight: 700;
    margin-bottom: 0;
}
/* Desktop default: edges hidden; slider row is just the track (stacked under header). */
.year-range-inline {
    display: block;
    width: 100%;
}
.year-range-edge {
    display: none;
}
.year-range-inline .year-range-slider {
    margin: 0.15em 0 0;
}
.year-range-play-button {
    background-color: #ffffff;
    border: 2px solid #d6d6d6;
    border-radius: 6px;
    color: #26374a;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    min-width: 4.5rem;
    padding: 0.25em 0.65em;
}
.year-range-play-button:hover,
.year-range-play-button:focus {
    background-color: #eef4fa;
    border-color: #26374a;
}
.year-range-play-button:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}
.year-range-play-button.is-playing {
    background-color: #eef4fa;
    border-color: #26374a;
    color: #26374a;
}
/* Label-row Play (xs single) — same quiet linked-text treatment as Show all. */
.year-range-play-button--label {
    background: none;
    border: 0;
    border-radius: 0;
    color: #5c6f7c;
    font-size: 0.78em;
    font-weight: 400;
    min-width: 0;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}
.year-range-play-button--label:hover,
.year-range-play-button--label:focus {
    background: none;
    border: 0;
    color: #26374a;
}
.year-range-play-button--label.is-playing {
    background: none;
    border: 0;
    color: #26374a;
}
.year-range-slider {
    position: relative;
    height: 34px;
    margin: 0.15em 0 0;
}
.year-range-track {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #d6d6d6;
    border-radius: 999px;
}
.year-range-track-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: #26374a;
    border-radius: 999px;
}
.year-range-inputs input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent;
    pointer-events: none;
}
.year-range-inputs input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border: 2px solid #26374a;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
}
.year-range-inputs input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border: 2px solid #26374a;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
}
.year-range-inputs input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}
.year-range-inputs input[type="range"]:focus-visible::-moz-range-thumb {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}
.viz-sidebar-controls {
    margin-top: 0;
}
.advanced-display-options-host {
    margin-top: 0.85rem;
}
/* Override GCWeb/WET details+summary chrome so More options opens in-panel. */
details.advanced-display-options,
details.advanced-display-options[open] {
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    visibility: visible;
}
details.advanced-display-options > summary.advanced-display-options-summary,
details.advanced-display-options[open] > summary.advanced-display-options-summary {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #26374a;
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    list-style: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
}
details.advanced-display-options > summary.advanced-display-options-summary:hover,
details.advanced-display-options > summary.advanced-display-options-summary:focus,
details.advanced-display-options > summary.advanced-display-options-summary:focus-visible {
    background: transparent;
    color: #1d5a96;
    outline: none;
    text-decoration: none;
}
details.advanced-display-options > summary.advanced-display-options-summary:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}
details.advanced-display-options > summary.advanced-display-options-summary::-webkit-details-marker {
    display: none;
}
details.advanced-display-options > summary.advanced-display-options-summary::marker {
    content: "";
    display: none;
}
details.advanced-display-options > summary.advanced-display-options-summary::before {
    content: "+";
    display: inline-block;
    width: 1em;
    margin-right: 0.35rem;
    font-weight: 700;
}
details.advanced-display-options[open] > summary.advanced-display-options-summary::before {
    content: "−";
}
.advanced-display-options-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0.75rem 0 0;
    padding: 0;
}
.advanced-display-toggles {
    flex-wrap: nowrap;
    margin: 0;
}
.advanced-display-toggles .viz-type-button {
    flex: 0 0 auto;
}
.advanced-display-toggle-button .advanced-display-toggle-icon {
    display: block;
    /* Match Font Awesome glyph size on the first-row viz-type buttons */
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    pointer-events: none;
}
.chart-gridline {
    stroke: #d9d9d9;
    stroke-opacity: 0.9;
}
.viz-sidebar-control-label {
    font-weight: 700;
    margin: 0 0 0.35em;
}
.year-range-control, .year-range-slider {
    margin-top: 0em !important;
}
.viz-type-button-group {
    align-items: center;
    display: flex;
    gap: 0.5em;
    margin-top: 0em !important;
}
.viz-type-button-divider {
    align-self: stretch;
    border-left: 1px solid #d6d6d6;
    margin: 0 0.15em;
    min-height: 44px;
}
.viz-type-button {
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #d6d6d6;
    border-radius: 6px;
    color: #26374a;
    display: inline-flex;
    font-size: 1.25em;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.45em 0.6em;
}
.viz-type-button:hover,
.viz-type-button:focus {
    background-color: #eef4fa;
    border-color: #26374a;
}
.viz-type-button[aria-pressed="true"] {
    background-color: #eef4fa;
    border-color: #26374a;
}
.viz-type-button:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}
.breakdown-sidebar-controls {
    margin-top: 0.65rem;
}
.breakdown-control-label {
    margin-top: 0.5rem;
}
.breakdown-control-label:first-child {
    margin-top: 0;
}
.breakdown-button-group,
.group-by-button-group {
    flex-wrap: wrap;
}
.breakdown-button,
.group-by-button {
    min-width: 4.5rem;
    padding-inline: 0.5rem;
}
.breakdown-button-label {
    font-size: 1.25rem;
}
.breakdown-button--age {
    position: relative;
    display: flex;
    align-items: stretch;
    min-width: 10.5rem;
    padding: 0;
    overflow: hidden;
}
.breakdown-button--age-group-by {
    min-width: 10.5rem;
}
.breakdown-button--age:focus-within {
    background-color: #eef4fa;
    border-color: #26374a;
}
.breakdown-age-fallback-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.35rem 0.5rem;
    margin: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}
.breakdown-age-fallback-label:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
    z-index: 1;
}
.breakdown-age-segments {
    display: none;
    width: 100%;
    align-items: stretch;
}
.breakdown-button--age.is-active .breakdown-age-fallback-label {
    display: none;
}
.breakdown-button--age.is-active .breakdown-age-segments {
    display: flex;
}
.breakdown-button--age.is-preview-open .breakdown-age-fallback-label,
.breakdown-button--age:hover .breakdown-age-fallback-label {
    display: none;
}
.breakdown-button--age.is-preview-open .breakdown-age-segments,
.breakdown-button--age:hover .breakdown-age-segments {
    display: flex;
}
.breakdown-age-segment {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0.25rem 0.2rem;
    border: 0;
    background: transparent;
    color: inherit;
    /* Fixed rem for both halves — do not use em (parent .viz-type-button is 1.25em). */
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.15;
    cursor: pointer;
    text-align: center;
}
.breakdown-age-segment-label {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.breakdown-age-segment + .breakdown-age-segment {
    border-left: 1px solid #d6d6d6;
}
.breakdown-age-segments, .breakdown-button--age {
    margin-top: 0 !important;
}
.breakdown-button--age.is-active .breakdown-age-segment[aria-pressed="true"] {
    background-color: #26374a;
    color: #fff;
}
.breakdown-age-segment:hover:not(:disabled),
.breakdown-age-segment:focus-visible:not(:disabled) {
    background-color: #e9ecef;
}
.breakdown-button--age.is-active .breakdown-age-segment[aria-pressed="true"]:hover,
.breakdown-button--age.is-active .breakdown-age-segment[aria-pressed="true"]:focus-visible {
    background-color: #1f2d3d;
    color: #fff;
}
.breakdown-age-segment:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.breakdown-age-segment:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: -3px;
    z-index: 1;
}
.breakdown-age-segments--compact .breakdown-age-segment {
    padding-inline: 0.15rem;
}
.ccdss-sm-facet-section {
    margin-bottom: 1.5rem;
}
.ccdss-sm-facet-heading {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}
.viz-layout-toggle-button {
    width: 50px;
}
.ccdss-map-legend-title {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    font-weight: 600;
    margin: 0.75em 0 0.35em;
}
.ccdss-map-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0;
}
.ccdss-map-legend-swatch {
    display: inline-block;
    width: 80px;
    height: 14px;
    border: 1px solid #767676;
    /* Gradient is set from interpolateYlGnBu in map-chart.js so it matches region fills. */
    background: #d9d9d9;
}
/* Map: float legend in Labrador Sea gap (SE Nunavut / NE Newfoundland). */
#line-chart-container:has(> svg[data-renderer="map"]) > .ccdss-viz-legend {
    position: absolute;
    /* Same anchor as desktop; phone uses a slightly lower % for the taller stage. */
    top: 26%;
    right: 2%;
    z-index: 2;
    max-width: 12.5rem;
    margin: 0;
    padding: 0.5rem 0.65rem;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(38, 55, 74, 0.12);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}
#line-chart-container:has(> svg[data-renderer="map"]) > .ccdss-viz-legend .ccdss-map-legend-title {
    flex: none;
    width: auto;
    margin: 0;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.3;
}
#line-chart-container:has(> svg[data-renderer="map"]) > .ccdss-viz-legend .ccdss-map-legend {
    font-size: 0.75rem;
    line-height: 1.25;
    gap: 0.45em;
    color: #333;
}
#line-chart-container:has(> svg[data-renderer="map"]) > .ccdss-viz-legend .ccdss-map-legend-swatch {
    width: 64px;
    height: 11px;
    flex-shrink: 0;
}
/* Desktop: larger type; same Labrador Sea nestle. */
@media (min-width: 768px) {
    #line-chart-container:has(> svg[data-renderer="map"]) > .ccdss-viz-legend {
        top: 24%;
        right: 2.5%;
        max-width: 22rem;
        padding: 0.95rem 1.15rem;
        gap: 0.55rem;
    }
    #line-chart-container:has(> svg[data-renderer="map"]) > .ccdss-viz-legend .ccdss-map-legend-title {
        font-size: 1.2rem;
        line-height: 1.35;
    }
    #line-chart-container:has(> svg[data-renderer="map"]) > .ccdss-viz-legend .ccdss-map-legend {
        font-size: 1.05rem;
        line-height: 1.35;
        gap: 0.65em;
    }
    #line-chart-container:has(> svg[data-renderer="map"]) > .ccdss-viz-legend .ccdss-map-legend-swatch {
        width: 120px;
        height: 18px;
    }
}
.ccdss-map-tiles-grid {
    container-type: inline-size;
    container-name: ccdss-map-tiles;
}
.ccdss-map-tile {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 0.75rem;
    background-color: #fff;
}
.ccdss-map-tile h3 {
    margin-top: 0;
    font-size: 1rem;
}
.ccdss-map-tile-value {
    margin: 0.35rem 0 0;
    font-size: 1rem;
}
.ccdss-map-tile-value[hidden] {
    display: none !important;
    margin: 0;
}
.ccdss-map-tile svg {
    width: 100%;
    height: 120px;
}
@container ccdss-map-tiles (min-width: 380px) {
    .ccdss-map-tile.is-featured {
        display: flex;
        flex-direction: column;
        grid-column: span 2;
        grid-row: span 2;
        min-height: 0;
    }
    .ccdss-map-tile.is-featured h3 {
        flex: 0 0 auto;
        font-size: 1.35rem;
    }
    .ccdss-map-tile.is-featured svg {
        flex: 1 1 0;
        width: 100%;
        min-height: 0;
    }
    /* Value lives in the SVG marker — collapse the caption slot entirely. */
    .ccdss-map-tile.is-featured.has-inline-value .ccdss-map-tile-value {
        display: none !important;
        margin: 0;
    }
}
.ccdss-dt-host {
    background: transparent;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    padding: 0;
}
/* Visible under 768px; JS adds wb-inv from sm+ so screen readers still hear it. */
.ccdss-dt-caption {
    caption-side: top;
    color: #333;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.65rem;
    padding: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}
/* Desktop condition column: wrap long names; never ellipsize (program rule). */
.ccdss-dt-th.ccdss-dt-col--condition,
.ccdss-dt-td.ccdss-dt-col--condition {
    max-width: 16rem;
    overflow-wrap: anywhere;
    hyphens: auto;
    white-space: normal;
}
.ccdss-dt-toolbar {
    align-items: center;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    justify-content: space-between;
    margin: 0 0 0.85rem;
    padding: 0;
    row-gap: 0.65rem;
}
.ccdss-dt-toolbar-main {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}
.ccdss-dt-search-wrapper {
    flex: 0 1 16rem;
    max-width: 18rem;
    min-width: 11rem;
}
.ccdss-dt-search,
.ccdss-dt-columns-summary,
.ccdss-dt-mode-button,
.ccdss-dt-scope-chip {
    background-color: #fff;
    border: 2px solid #d6d6d6;
    border-radius: 6px;
    box-sizing: border-box;
    color: #26374a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    height: 2.5rem;
    line-height: 1.2;
}
.ccdss-dt-search {
    font-weight: 400;
    padding: 0 0.85em;
    width: 100%;
}
.ccdss-dt-search::placeholder {
    color: #6f6f6f;
    font-weight: 400;
}
.ccdss-dt-search:hover,
.ccdss-dt-columns-summary:hover,
.ccdss-dt-scope-chip:hover,
.ccdss-dt-mode-button:hover:not([aria-checked="true"]),
.ccdss-dt-mode-flip:hover {
    border-color: #26374a;
}
/* Match page-wide focus ring (#geo-dropdown, measure cards, viz buttons). */
.ccdss-dt-search:focus-visible,
.ccdss-dt-columns-summary:focus-visible,
.ccdss-dt-scope-chip:focus-visible,
.ccdss-dt-mode-button:focus-visible,
.ccdss-dt-mode-flip:focus-visible,
.ccdss-dt-clear-filters:focus-visible,
.ccdss-dt-columns-show-all:focus-visible,
.ccdss-dt-columns-deselect-all:focus-visible,
.ccdss-dt-sort-button:focus-visible,
.ccdss-dt-footer-button:focus-visible,
.ccdss-dt-scroll:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}
.ccdss-dt-columns {
    flex: 0 0 auto;
    position: relative;
}
.ccdss-dt-columns-summary {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    padding: 0 0.9em;
    white-space: nowrap;
}
.ccdss-dt-columns-summary::after {
    content: " ▾";
    font-weight: 400;
    margin-left: 0.2em;
}
.ccdss-dt-columns.is-open .ccdss-dt-columns-summary {
    border-color: #26374a;
    box-shadow: inset 0 0 0 1px #26374a;
}
.ccdss-dt-columns-panel {
    background-color: #fff;
    border: 2px solid #d6d6d6;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(38, 55, 74, 0.16);
    left: 0;
    max-height: 20rem;
    min-width: 15rem;
    overflow-y: auto;
    padding: 0.7em 0.95em;
    position: absolute;
    top: calc(100% + 6px);
    width: max-content;
    z-index: 40;
}
.ccdss-dt-columns-panel[hidden] {
    display: none !important;
}
.ccdss-dt-columns-actions {
    display: flex;
    gap: 1em;
    margin-bottom: 0.45em;
}
.ccdss-dt-columns-show-all,
.ccdss-dt-columns-deselect-all {
    background: none;
    border: 0;
    color: #284162;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}
.ccdss-dt-columns-option {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 400;
    gap: 0.55em;
    margin: 0.35em 0;
}
.ccdss-dt-columns-option input {
    flex: 0 0 auto;
    height: 1.1em;
    margin: 0;
    width: 1.1em;
}
.ccdss-dt-mode-group {
    border: 2px solid #d6d6d6;
    border-radius: 6px;
    display: inline-flex;
    flex: 0 0 auto;
    overflow: hidden;
}
.ccdss-dt-mode-button {
    border: 0;
    border-radius: 0;
    border-right: 1px solid #d6d6d6;
    cursor: pointer;
    height: calc(2.5rem - 4px);
    padding: 0 0.95em;
    white-space: nowrap;
}
.ccdss-dt-mode-button:last-child {
    border-right: 0;
}
.ccdss-dt-mode-button[aria-checked="true"] {
    background-color: #26374a;
    color: #fff;
}
.ccdss-dt-clear-filters {
    background: none;
    border: 0;
    color: #284162;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    height: 2.5rem;
    padding: 0 0.35em;
    text-decoration: underline;
    white-space: nowrap;
}
.ccdss-dt-scope-chip {
    cursor: pointer;
    flex: 0 0 auto;
    padding: 0 0.95em;
    white-space: nowrap;
}
.ccdss-dt-scope-label-short {
    display: none;
}
.ccdss-dt-scope-chip[aria-pressed="true"] {
    background-color: #26374a;
    border-color: #26374a;
    color: #fff;
}
.ccdss-dt-scope-chip[aria-pressed="true"]:hover {
    background-color: #1c2b39;
    border-color: #1c2b39;
}
.ccdss-dt-rowcount {
    align-self: center;
    color: #555;
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.2;
    margin-left: auto;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .ccdss-dt-caption {
        color: #333;
        font-size: 1.1em;
        font-weight: bold;
        margin: 0 0 0.65rem;
    }
    .ccdss-dt-toolbar-main {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    .ccdss-dt-toolbar-search-row {
        align-items: center;
        display: flex;
        gap: 0.5rem;
        min-width: 0;
        width: 100%;
    }
    .ccdss-dt-toolbar-search-row .ccdss-dt-search-wrapper {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        width: auto;
    }
    .ccdss-dt-toolbar-search-row .ccdss-dt-rowcount {
        flex: 0 0 auto;
        margin-left: 0;
        text-align: right;
        white-space: nowrap;
    }
    .ccdss-dt-toolbar-controls-row {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    .ccdss-dt-mode-flip {
        background-color: #fff;
        border: 2px solid #d6d6d6;
        border-radius: 6px;
        box-sizing: border-box;
        color: #26374a;
        cursor: pointer;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        height: 44px;
        padding: 0 0.9em;
        white-space: nowrap;
    }
    .ccdss-dt-scope-chip,
    .ccdss-dt-columns-summary,
    .ccdss-dt-footer-button {
        height: 44px;
    }
    .ccdss-dt-scope-label-full {
        display: none;
    }
    .ccdss-dt-scope-label-short {
        display: inline;
    }
    /* Free horizontal space: condition title is already above the scroll box. */
    .ccdss-dt-scroll th:first-child,
    .ccdss-dt-scroll td:first-child {
        left: auto;
        box-shadow: none;
    }
    .ccdss-dt-scroll td:first-child {
        position: static;
        z-index: auto;
    }
    .ccdss-dt-scroll th:first-child {
        /* Keep top sticky header; drop left pin. */
        position: sticky;
        top: 0;
        z-index: 2;
    }
}
.ccdss-dt-scroll {
    background-color: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 0;
    max-height: 65vh;
    overflow: auto;
}
.ccdss-dt-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
    width: max-content;
}
@media (max-width: 991px) {
    .ccdss-dt-scroll {
        position: relative;
    }
    .ccdss-dt-scroll::after {
        content: "";
        pointer-events: none;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 1.5rem;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
    }
}
.ccdss-dt-th {
    background-color: #fff;
    border-bottom: 2px solid #26374a;
    border-right: 1px solid #e8edf2;
    min-width: 9.5rem;
    padding: 0.65em 0.85em 0.55em;
    position: sticky;
    top: 0;
    vertical-align: bottom;
    z-index: 2;
}
/* Phone/tablet: keep the first (row-label) column visible while scrolling sideways (R1) */
.ccdss-dt-scroll th:first-child,
.ccdss-dt-scroll td:first-child {
    position: sticky;
    left: 0;
    background-color: #fff;
    z-index: 1;
    box-shadow: 1px 0 0 #e8edf2;
}
.ccdss-dt-scroll th:first-child {
    z-index: 3; /* corner: above other sticky headers */
}
.ccdss-dt-scroll tbody tr:nth-child(even) td:first-child {
    background-color: #f7f9fb;
}
.ccdss-dt-scroll tbody tr:hover td:first-child {
    background-color: #eef3f7;
}
.ccdss-dt-th:last-child {
    border-right: 0;
}
.ccdss-dt-th.ccdss-dt-cell--categorical {
    min-width: 11rem;
}
.ccdss-dt-cell--categorical {
    text-align: left;
}
.ccdss-dt-cell--numeric {
    text-align: right;
}
.ccdss-dt-cell--numeric .ccdss-dt-sort-button {
    justify-content: flex-end;
    text-align: right;
    width: 100%;
}
.ccdss-dt-sort-button {
    align-items: flex-start;
    background: none;
    border: 0;
    color: #26374a;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 0.4em;
    line-height: 1.3;
    max-width: 100%;
    padding: 0;
    text-align: left;
}
.ccdss-dt-sort-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}
.ccdss-dt-sort-button:hover {
    text-decoration: underline;
}
.ccdss-dt-sort-button:focus-visible {
    text-decoration: underline;
    border-radius: 2px;
}
.ccdss-dt-sort-arrow {
    color: #6c8cab;
    flex: 0 0 auto;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-top: 0.1em;
}
.ccdss-dt-sort-priority {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0.15em;
    opacity: 0.9;
}
/* Default stack: subtle direction mark only. */
.ccdss-dt-th--sorted-default .ccdss-dt-sort-arrow {
    color: #26374a;
}
/* User sort levels: navy header chrome. */
.ccdss-dt-th--sorted {
    background-color: #26374a;
    border-bottom-color: #26374a;
    color: #fff;
}
.ccdss-dt-th--sorted .ccdss-dt-sort-button,
.ccdss-dt-th--sorted .ccdss-dt-sort-arrow,
.ccdss-dt-th--sorted .ccdss-dt-sort-priority,
.ccdss-dt-th--sorted .ccdss-dt-summary-note {
    color: #fff;
}
.ccdss-dt-th--sorted .ccdss-dt-sort-button:hover,
.ccdss-dt-th--sorted .ccdss-dt-sort-button:focus-visible {
    color: #fff;
}
.ccdss-dt-summary-chart {
    display: block;
    height: 28px;
    margin-top: 0.4em;
    max-width: 100%;
    width: 100%;
}
.ccdss-dt-summary-chart:has(.ccdss-dt-summary-bar--clickable) {
    border-radius: 2px;
}
.ccdss-dt-summary-bar--clickable {
    cursor: pointer;
    transition: fill 120ms ease, opacity 120ms ease;
}
.ccdss-dt-summary-bar--clickable:hover {
    fill: #1d5a96;
    opacity: 1;
}
.ccdss-dt-summary-note {
    color: #555;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0.25em;
    white-space: nowrap;
}
.ccdss-dt-cell--numeric .ccdss-dt-summary-note {
    text-align: right;
}

.ccdss-chart-notes-list {
    margin-bottom: 0.75em;
    padding-left: 1.75em;
}
.ccdss-chart-notes-list:last-child {
    margin-bottom: 0;
}
.ccdss-chart-notes-list li + li {
    margin-top: 0.75em;
}
.ccdss-chart-notes-category {
    font-weight: 700;
    margin: 1em 0 0.4em;
    color: #26374a;
}
.ccdss-chart-notes-category:first-child {
    margin-top: 0.35em;
}
.ccdss-chart-notes-symbol {
    font-weight: 700;
}
.ccdss-chart-short-notes {
    margin-top: 0.65em;
    color: #333;
    font-size: 14px;
    line-height: 1.35;
}
.ccdss-chart-notes-cue {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    margin: 0;
    color: #333;
}
.ccdss-chart-notes-cue-icon {
    flex-shrink: 0;
    margin-top: 0.15em;
    color: #26374a;
}
.ccdss-chart-notes-summary .ccdss-chart-notes-cue-icon {
    margin-top: 0;
    margin-right: 0.15em;
}
.ccdss-chart-short-notes-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ccdss-chart-short-note {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    margin-bottom: 0.35em;
}
.ccdss-chart-short-note:last-child {
    margin-bottom: 0;
}
.ccdss-chart-short-note-symbol {
    flex-shrink: 0;
    font-weight: 700;
    color: #26374a;
}
.ccdss-chart-short-note-text {
    color: #333;
}
.ccdss-dt-td {
    border-bottom: 1px solid #eef1f4;
    border-right: 1px solid #f3f5f7;
    font-size: 14px;
    padding: 0.65em 0.85em;
    vertical-align: middle;
    white-space: nowrap;
}
.ccdss-dt-td:last-child {
    border-right: 0;
}
.ccdss-dt-cell--numeric.ccdss-dt-td {
    font-variant-numeric: tabular-nums;
}
.ccdss-dt-scroll tbody tr:nth-child(even) {
    background-color: #f7f9fb;
}
.ccdss-dt-scroll tbody tr:hover {
    background-color: #eef4fa;
}
.ccdss-dt-empty {
    color: #555;
    font-size: 14px;
    margin: 0.75em 0;
    text-align: center;
}
.ccdss-dt-footer {
    margin-top: 0.65em;
    text-align: center;
}
.ccdss-dt-footer-button {
    background-color: #ffffff;
    border: 2px solid #d6d6d6;
    border-radius: 6px;
    color: #26374a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    height: 2.5rem;
    padding: 0 1.1em;
}
.ccdss-dt-footer-button:hover {
    background-color: #eef4fa;
    border-color: #26374a;
}
.ccdss-active-geo-row {
    font-weight: 700;
    outline: 2px solid #26374a;
    outline-offset: -2px;
}
#line-chart-container,
.ccdss-small-multiples-chart {
    position: relative;
}
.chart-empty-message {
    fill: #555;
    font-size: 16px;
    pointer-events: none;
}
.ccdss-panel-chart .chart-empty-message {
    font-size: 12px;
}
.ccdss-small-multiples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}
.ccdss-small-multiples-panel {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 0.5rem 0.5rem 0.35rem;
    background-color: #fff;
}
.ccdss-small-multiples-panel h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}
.ccdss-small-multiples-chart .ccdss-viz-svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 298px;
}
.ccdss-small-multiples-chart .ccdss-viz-legend {
    display: none;
}
@media (max-width: 991px) {
    .ccdss-small-multiples-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .ccdss-small-multiples-grid {
        grid-template-columns: 1fr;
    }
}
.ccdss-chart-tooltip {
    position: absolute;
    z-index: 20;
    min-width: 10rem;
    /* Size to the content; only the chart container bounds the width
       (16px matches the 8px positioning clamp on each side). */
    width: max-content;
    max-width: calc(100% - 16px);
    padding: 0.65rem 0.75rem;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
    line-height: 1.35;
    transition: opacity 120ms ease;
}
.ccdss-chart-tooltip--table {
    max-width: calc(100% - 16px);
    min-width: 0;
    width: max-content;
}
.ccdss-chart-tooltip-year {
    margin: 0 0 0.45rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #26374a;
}
.ccdss-chart-tooltip-covid {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.45rem;
}
.ccdss-chart-tooltip-list > .ccdss-chart-tooltip-covid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    margin-top: 0;
}
.ccdss-chart-tooltip-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ccdss-chart-tooltip-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.3rem;
    will-change: transform;
}
.ccdss-chart-tooltip-row:last-child {
    margin-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
    .ccdss-chart-tooltip-row {
        transition: none !important;
        transform: none !important;
    }
}
.ccdss-chart-tooltip-indicator {
    display: inline-block;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 1px solid #bfbfbf;
}
.ccdss-chart-tooltip-indicator-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.ccdss-chart-tooltip-indicator-square {
    width: 10px;
    height: 10px;
    border-radius: 1px;
}
.ccdss-chart-tooltip-indicator-symbol {
    width: 12px;
    height: 12px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.ccdss-chart-tooltip-indicator-symbol svg {
    display: block;
    overflow: visible;
}
.ccdss-chart-tooltip-label {
    color: #333;
}
.ccdss-chart-tooltip-value {
    font-weight: 700;
    color: #26374a;
    text-align: right;
}
.ccdss-chart-tooltip-table {
    width: auto;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 1rem;
}
.ccdss-chart-tooltip-table th,
.ccdss-chart-tooltip-table td {
    padding: 0.25rem 0.4rem;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}
.ccdss-chart-tooltip-table th:first-child,
.ccdss-chart-tooltip-table td:first-child {
    padding-left: 0;
    text-align: left;
    width: auto;
    white-space: nowrap;
}
.ccdss-chart-tooltip-table th:last-child,
.ccdss-chart-tooltip-table td:last-child {
    padding-right: 0;
}
.ccdss-chart-tooltip-table thead th {
    font-weight: 600;
    font-size: 0.875rem;
    color: #555;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.35rem;
}
.ccdss-chart-tooltip-table thead th:first-child {
    text-align: left;
}
.ccdss-chart-tooltip-table tbody th {
    font-weight: 400;
    color: #333;
}
.ccdss-chart-tooltip-table tbody td {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    color: #26374a;
    text-align: right;
}
.ccdss-chart-tooltip-table.has-focus tbody td:not(.is-focused) {
    color: #6b7280;
}
.ccdss-chart-tooltip-table tbody td.is-focused {
    background-color: #eef4fa;
    color: #26374a;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px #c5d5e5;
}
.ccdss-chart-tooltip-ci {
    display: block;
    margin-top: 0.1rem;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.2;
    color: #555;
}
.ccdss-chart-tooltip-table tr.is-ratio th,
.ccdss-chart-tooltip-table tr.is-ratio td {
    border-top: 1px solid #d0d7de;
    padding-top: 0.4rem;
}
/* Transposed tables put the ratio in a column instead of a row. */
.ccdss-chart-tooltip-table--transposed th.is-ratio-col,
.ccdss-chart-tooltip-table--transposed td.is-ratio-col {
    border-left: 1px solid #d0d7de;
}
.ccdss-combo-mark-key {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0.35rem 0 0.65rem;
    width: 100%;
    /* Always below the primary legend: when the mark key shares the
       flex legend container, it takes a full row after every series
       item (default order 0), whatever order D3 appended them in. */
    flex: 0 0 100%;
    order: 99;
}
.ccdss-combo-mark-key .legend-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}
.ccdss-combo-mark-label-short {
    display: none;
    cursor: help;
    text-decoration: underline;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}
.ccdss-combo-mark-key .legend-mark {
    width: 20px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
    flex-shrink: 0;
    border-radius: 1px;
}
.ccdss-combo-mark-key .legend-mark--with {
    height: 14px;
    background-color: #4e79a7;
}
.ccdss-combo-mark-key .legend-mark--without {
    height: 14px;
    background: repeating-linear-gradient(
        -45deg,
        #4e79a7,
        #4e79a7 1.5px,
        #fff 1.5px,
        #fff 4px
    );
    border: 1px solid #cfd8e3;
    box-sizing: border-box;
}
.ccdss-combo-mark-key .legend-mark--ratio {
    position: relative;
    height: 3px;
    background-color: #333;
}
.ccdss-combo-mark-key .legend-mark--ratio::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #333;
    left: 6.5px;
    top: -2px;
}
.ccdss-chart-tooltip-sex {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.chart-tracking-line {
    stroke: #767676;
    stroke-width: 1;
    pointer-events: none;
}
.chart-hover-point {
    pointer-events: none;
}
.chart-band-highlight {
    fill: #bfbfbf;
    opacity: 0.45;
    pointer-events: none;
}
.chart-overlay-hitarea {
    fill: transparent;
    cursor: default;
}
.ccdss-map-canada {
    outline: none;
}
.ccdss-map-canada-background {
    fill: none;
    stroke: none;
    stroke-width: 0;
    pointer-events: none;
}
.ccdss-map-canada:hover .ccdss-map-canada-background,
.ccdss-map-canada:focus-visible .ccdss-map-canada-background {
    stroke: #000;
    stroke-width: 3px;
}

/* Responsive touch targets and one-row section tabs below the desktop breakpoint. */
@media (max-width: 991px) {
    .sidebar .form-select,
    .breakdown-sidebar-controls button,
    .viz-sidebar-controls button,
    details.advanced-display-options > summary.advanced-display-options-summary,
    .measure-picker-compact-select,
    .ccdss-dt-search,
    .ccdss-dt-columns-summary,
    .ccdss-dt-mode-button {
        min-height: 44px;
    }
    details.advanced-display-options > summary.advanced-display-options-summary {
        padding: 12px 0;
    }
    /* Keep WCAG 2.5.8 minimum (24px) — avoid 44px thumbs crowding dual handles. */
    .year-range-inputs input[type="range"] {
        height: 32px;
        top: 0;
    }
    .year-range-slider {
        height: 32px;
    }
    .year-range-track {
        top: 14px;
    }
    .year-range-inputs input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    .year-range-inputs input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
}

/* Acknowledgements: always expanded; strip GCWeb details chrome (h3 is the heading).
   Download and share is a plain section (no details) on all breakpoints. */
@media (min-width: 768px) {
    details.ccdss-mobile-collapse,
    details.ccdss-mobile-collapse[open] {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    details.ccdss-mobile-collapse > summary {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        /* GCWeb sets summary to list-item with !important. */
        display: none !important;
    }
    details.ccdss-mobile-collapse::details-content {
        content-visibility: visible;
        block-size: auto;
    }
    details.ccdss-mobile-collapse > *:not(summary) {
        display: block;
    }
}
@media (max-width: 767px) {
    /* Compact measure list is unused on xs (carousel only). */
    #advanced-display-compact-measure-list {
        display: none !important;
    }
    .advanced-display-toggles .viz-type-button-divider:has(+ #advanced-display-compact-measure-list) {
        display: none !important;
    }
    /* CLS: measure (~148) + chart (500) + title/legend slack before hydrate. */
    #ccdss-chart-col {
        min-height: 42rem;
    }
    /* Align filters/chart with #ccdss-more-options (outside .content-area). */
    #ccdss-chart-col .content-area {
        padding-left: 0;
        padding-right: 0;
    }
    /* Match Age group rendered height (≈48px with label padding + 2px borders). */
    .breakdown-sidebar-controls .viz-type-button:not(.breakdown-button--age) {
        min-height: 48px;
        padding: 0.35rem 0.5rem;
    }
    /* Match small-multiples tile (row 1 + More display options toggles). */
    .viz-sidebar-controls .viz-type-button,
    .advanced-display-toggles .viz-type-button {
        box-sizing: border-box;
        width: 50px;
        height: 51.5px;
        min-width: 50px;
        min-height: 51.5px;
        padding: 0;
    }
    .viz-sidebar-controls .viz-type-button-divider,
    .advanced-display-toggles .viz-type-button-divider {
        min-height: 51.5px;
    }
    /* Phone: Download/share stays expanded (h3 + panel). Acknowledgements match. */
    #acknowledgements-section details.ccdss-mobile-collapse,
    #acknowledgements-section details.ccdss-mobile-collapse[open] {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    #acknowledgements-section details.ccdss-mobile-collapse > summary {
        display: none !important;
    }
    #acknowledgements-section details.ccdss-mobile-collapse::details-content {
        content-visibility: visible;
        block-size: auto;
    }
    #acknowledgements-section details.ccdss-mobile-collapse > *:not(summary) {
        display: block;
    }
    html {
        scroll-padding-top: 56px;
    }
    /* Controls relocate into chart column; hide empty sidebar shell. */
    #ccdss-sidebar-col {
        display: none;
    }
    #ccdss-mobile-chart-slot {
        display: none;
    }
    #ccdss-data-filters-heading {
        display: none;
    }
    #ccdss-chart-col .visualization-panel-chart {
        border-top: none;
        padding-top: 0;
    }
    .ccdss-above-chart-filters,
    .ccdss-under-chart-filters {
        margin: 0 0 0.75rem;
    }
    .ccdss-above-chart-filters > * + *,
    .ccdss-under-chart-filters > * + * {
        margin-top: 0.65em;
    }
    /* ~2.5 cards: Incidence + Prevalence full, Mortality + AS peek.
       Prefer cqw (viewport is a size container); % fallback if cqw unavailable. */
    .measure-picker-unified-carousel .measure-picker-carousel-track .measure-picker-column,
    .measure-picker-carousel-track .measure-picker-column {
        flex: 0 0 calc((100% - 20px) / 2.5);
        flex: 0 0 calc((100cqw - 20px) / 2.5);
        max-width: none;
    }
    .measure-picker-highlight-row {
        display: none !important; /* xs uses unified carousel only */
    }
    .measure-picker-carousel-nav {
        display: none !important;
    }
    .measure-picker-unified-carousel .measure-picker-carousel-viewport {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        /* Hide scrollbar; scroll/swipe still works. Peek + hint carry the affordance. */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .measure-picker-unified-carousel .measure-picker-carousel-viewport::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    /* Match GCWeb label → control gap (~5px); drop card-host top padding on xs. */
    .measure-picker-unified-carousel .measure-picker-unified-heading {
        align-items: baseline;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35em 0.5em;
        margin: 0 0 5px;
    }
    .measure-picker-unified-carousel .measure-picker-card-host {
        padding-top: 0;
    }
    .measure-picker-unified-title {
        color: #26374a;
        font-size: 1.05em;
        font-weight: 700;
        margin: 0;
    }
    .measure-picker-unified-hint {
        color: #5c6b7a;
        font-size: 0.85em;
        font-weight: 400;
        line-height: 1.3;
    }
    /* Let GCWeb details chrome apply; sits outside .content-area for full col width. */
    #ccdss-more-options {
        display: block;
        margin: 0.75rem 0 1rem;
        width: 100%;
    }
    #ccdss-more-options > summary {
        cursor: pointer;
        font-weight: 700;
        min-height: 44px;
    }
    #ccdss-more-options-body > * + * {
        margin-top: 0.75em;
    }
    /* Cozier chart legends on phones. */
    .legend-item {
        font-size: 0.82em;
        line-height: 1.25;
        margin-right: 8px;
        padding: 2px 4px;
    }
    #line-chart-container > .ccdss-viz-legend {
        gap: 2px 8px;
        font-size: 0.92em;
    }
    .legend-color {
        margin-right: 4px;
    }
    .legend-color--line {
        width: 14px;
    }
    .legend-color--bar {
        width: 11px;
        height: 11px;
    }
    .legend-color--point {
        width: 10px;
        height: 10px;
    }
    .ccdss-combo-mark-key {
        gap: 2px 8px;
        margin: 0.2rem 0 0.4rem;
        /* Short ratio label + full legend width keeps this on one row. */
        flex-wrap: nowrap;
    }
    .ccdss-combo-mark-label-full {
        display: none;
    }
    .ccdss-combo-mark-label-short {
        display: inline;
    }
    .ccdss-combo-mark-key .legend-item {
        margin-right: 0;
        padding: 2px 4px;
    }
    .ccdss-combo-mark-key .legend-mark {
        margin-right: 4px;
        width: 16px;
        height: 11px;
    }
    /* Ratio is a line+dot, not a bar — don't inherit the bar swatch size. */
    .ccdss-combo-mark-key .legend-mark--ratio {
        width: 20px;
        height: 3px;
    }
    .ccdss-combo-mark-key .legend-mark--ratio::after {
        left: 6.5px;
        top: -2px;
    }
    /* Map legend phone sizes come from the base map-overlay rules above. */
    /* Mobile: start | slider | end on one line; keep combined text for SRs only. */
    .year-range-control .year-range-header {
        border: 0;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    .year-range-inline {
        align-items: center;
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    .year-range-edge {
        color: #26374a;
        display: block;
        flex: 0 0 auto;
        font-size: 0.8em;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }
    .year-range-edge--from {
        text-align: left;
    }
    .year-range-edge--to {
        text-align: right;
    }
    .year-range-inline .year-range-slider {
        flex: 1 1 auto;
        margin: 0;
        min-width: 0;
    }
    /* Single-year (map/snapshot): hide header; slider | fiscal year like range edges. */
    .year-range-control--single .year-range-header {
        border: 0;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    .year-range-control--single .year-range-edge--to {
        display: block;
    }
}

@media (min-width: 768px) {
    #ccdss-above-chart-filters,
    #ccdss-under-chart-filters,
    #ccdss-more-options {
        display: none !important;
    }
}

.ccdss-viewing-chip-bar,
.ccdss-viewing-chip-bar[hidden] {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 991px) {
    .sidebar {
        position: sticky;
        top: 1em;
        min-width: 0;
    }
    /* Tablet: 6-across (~67px) clipped labels (Mobile N2). Prefer 3×2 wrap
       for the highlight row and ~3.5 visible cards in additional carousels. */
    .measure-picker-highlight-row {
        flex-wrap: wrap;
    }
    .measure-picker-highlight-row .measure-picker-column {
        flex: 1 1 calc((100% - 20px) / 3);
        max-width: calc((100% - 20px) / 3);
    }
    .measure-picker-carousel-track .measure-picker-column {
        flex: 0 0 calc((100cqw - 30px) / 3.5);
    }
}

/* Guided tour: vendor/driver.css → css/guided-tour/wet-driver-tour.css → ccdss/tour.css */
