:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: dark;
    --bg: #24242c;
    --panel: #21212c;
    --panel2: #202136;
    --field: #2b2c38;
    --header: #24242c;
    --sidebar: #24242c;
    --ink: #f7f6ff;
    --muted: #b4b7d6;
    --line: #3b3e68;
    --control-line: var(--line);
    --accent: #32d5f3;
    --accent-ink: #10172e;
    --chart-accent: #32d5f3;
    --support: #B8F000;
    /* The map's Supportive green: brighter, as #B8F000 is faint on the greyscale map. */
    --map-support: #4ddc0e;
    --opposition: #F2156C;
    --neutral: #806bca;
    --unsure: #ae9de9;
    --missing: #e0ded9;
    --scheme: #5F636D;
    /* Map dots matching a chosen comment category; kept apart from the support colours. */
    --reason: #B57EF0;
    --change: #14C8B4;
    --shadow: 0 12px 30px #08092250, inset 0 1px 0 #ffffff05;
    --glow: #7442db16;
    /* Search matches in the comments dialog. */
    --mark: #f5d547;
    --mark-ink: #1b1b24
}
:root[data-theme=light] {
    color-scheme: light;
    /* Tinted page, header and sidebar so white cards and fields stand out. */
    --bg: #f9f9f9;
    --panel: #fff;
    --panel2: #ebebeb;
    --field: #fff;
    --header: #fff;
    --sidebar: #ebeaed;
    --ink: #232447;
    --muted: #4f5370;
    --line: #c6c9e0;
    /* Form controls need 3:1 boundaries against white fields. */
    --control-line: #8a8eac;
    /* Accent meets WCAG AA 4.5:1 as text on every light background (4.8:1 on --header); white text on it is 6.6:1. */
    --accent: #05667b;
    --accent-ink: #fff;
    /* Supportive uses the map's green on light backgrounds, where #B8F000 looks washed out. */
    --support: var(--map-support);
    --shadow: 0 1px 2px #2324471a, 0 8px 24px #23244712;
    --glow: #7442db05;
    --mark: #ffe27a;
    --mark-ink: #232447
}
* {
    box-sizing: border-box
}
body {
    margin: 0;
    background: radial-gradient(ellipse at 78% 18%, var(--glow), transparent 65%), var(--bg);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.5
}
button,
input,
select {
    font: inherit;
    color: inherit
}
button,
summary,
select {
    cursor: pointer
}
button {
    border: 1px solid var(--control-line);
    border-radius: 4px;
    background: var(--panel2);
    padding: 9px 13px;
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap
}
button:hover {
    border-color: var(--accent);
    background: var(--panel2)
}
button:disabled {
    opacity: .45;
    cursor: default
}
button.primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent)
}
button.quiet {
    background: transparent
}
button.text-button {
    padding: 0;
    border: 0;
    color: var(--accent);
    background: transparent;
    font-size: .875rem
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px
}
input,
select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--control-line);
    border-radius: 4px;
    background: var(--field);
    padding: 9px 10px;
    font-size: .875rem
}
input[type=range] {
    padding: 0;
    accent-color: var(--accent);
    height: 22px;
    cursor: pointer;
    border: none;
}
label {
    display: block;
    font-size: .875rem;
    color: var(--muted);
    font-weight: 500
}
label select,
label input {
    margin-top: 5px;
    color: var(--ink)
}
h1,
h2,
h3,
p {
    margin: 0
}
h1 {
    font-size: 1.375rem;
    font-weight: 650;
    letter-spacing: -.035em
}
h2 {
    font-size: 1.25rem;
    letter-spacing: -.025em
}
h3 {
    /* font-size: 1rem; */
    font-size: 1.2rem;
    font-weight: 650;
    /* letter-spacing: -.015em */
}
small,
.metadata {
    font-size: .75rem;
    color: var(--muted)
}
[hidden] {
    display: none !important
}
.skip {
    position: absolute;
    top: -80px;
    left: 20px;
    z-index: 20;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 10px
}
.skip:focus {
    top: 8px
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 30px;
    border-bottom: 1px solid var(--line)
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px
}
.brand p {
    color: var(--muted);
    font-size: .8125rem
}
.toolbar {
    display: flex;
    align-items: center;
    gap: 9px
}
.workspace {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    max-width: 1900px;
    margin: auto
}
.sidebar {
    padding: 24px 18px;
    border-right: 1px solid var(--line)
}
/* Beside the results, the sidebar stays in view while the page scrolls, scrolling on its own when the filters are taller than the window. */
@media screen and (min-width:721px) {
    .sidebar {
        position: sticky;
        top: 0;
        align-self: start;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px
}
.section-heading h2 {
    font-size: 1rem
}
.sidebar > label,
.sidebar .more-filters label {
    margin-bottom: 13px
}
.filter-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 13px
}
.all-records {
    font-size: .8125rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 0 20px
}
.mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent)
}
.more-filters {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 6px
}
.more-filters summary {
    font-size: .875rem;
    margin-bottom: 12px;
    color: var(--muted)
}
.date-filter {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 15px 0 0;
    margin: 22px 0 0
}
.date-filter legend {
    font-size: .875rem;
    padding: 0 6px 0 0;
    color: var(--muted)
}
.date-filter label {
    margin-bottom: 12px
}
main {
    min-width: 0;
    padding: 25px 28px 15px
}
.results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px
}
.results-heading h2 {
    font-size: 1.5rem
}
.empty-filters {
    margin: 4px 0 0;
    font-size: .8125rem;
    color: var(--opposition)
}
.pill {
    font-size: .75rem;
    background: var(--panel2);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap
}
.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px
}
.stats article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 17px 20px
}
.stats article > span {
    font-size: .875rem;
    color: var(--muted)
}
.stats strong {
    display: block;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -.025em;
    margin: 7px 0
}
.stats small {
    display: block
}
.stats .support-stat {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    background: linear-gradient(120deg, var(--glow), transparent), var(--panel)
}
.support-stat strong {
    color: var(--accent)
}
.tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
    overflow-x: auto
}
.tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0 1px 12px;
    background: transparent;
    color: var(--muted)
}
.tabs button.selected {
    color: var(--accent);
    border-bottom-color: var(--accent)
}
.card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    min-width: 0
}
.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 15px
}
.card-heading p {
    font-size: .8125rem;
    color: var(--muted);
    margin-top: 4px
}
.chart-switch {
    font-size: .75rem;
    min-width: 108px;
    max-width: 145px
}
.chart-switch select {
    padding: 6px 8px;
    font-size: .8125rem
}
.overview-grid {
    display: grid;
    grid-template-columns: minmax(285px, 0.8fr) minmax(0, 1.5fr);
    gap: 18px
}
.chart-wrap {
    position: relative;
    min-width: 0
}
.donut-wrap {
    height: 238px;
    margin: 8px 10px 18px
}
/* Chart.js draws tooltips inside the canvas, so lift the (transparent) canvas above the centre label. */
.donut-wrap canvas {
    position: relative;
    z-index: 1
}
.donut-centre {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none
}
.donut-centre strong {
    font-size: 1.8rem;
    display: block;
    letter-spacing: -.025em
}
.donut-centre span {
    font-size: .75rem;
    color: var(--muted)
}
.support-legend {
    display: grid;
    gap: 7px
}
.legend-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    text-align: left;
    border: 0;
    padding: 4px 0;
    font-weight: 400;
    font-size: .8125rem;
    width: 100%;
    white-space: normal
}
.swatch {
    height: 8px;
    width: 8px;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--swatch)
}
.legend-row .legend-label {
    flex: 1
}
.legend-row strong {
    font-size: .875rem;
    font-weight: 550;
    min-width: 48px;
    text-align: right
}
.legend-row .count {
    font-size: .75rem;
    color: var(--muted);
    min-width: 42px;
    text-align: right
}
.trend-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px
}
/* Overview timeline beside the quick-range buttons: label and Clear dates on top, then first month, slider, last month. */
.trend-tools .timeline {
    flex: 1 1 320px;
    min-width: 0;
    margin: 0;
    padding: 6px 12px 4px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: center
}
.trend-tools .timeline-label {
    grid-column: 1 / -1;
    margin-bottom: 0
}
.trend-tools .range-endpoints {
    display: contents
}
.trend-tools .dual-range {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0
}
#range-first {
    grid-column: 1;
    grid-row: 2
}
#range-last {
    grid-column: 3;
    grid-row: 2
}
.quick-ranges {
    display: flex;
    gap: 5px
}
.quick-ranges button {
    font-size: .75rem;
    padding: 6px 8px;
    background: transparent
}
.quick-ranges .selected {
    color: var(--accent);
    border-color: var(--accent)
}
.trend-wrap {
    height: 235px
}
.inline-legend {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: .75rem;
    color: var(--muted)
}
.inline-legend button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    padding: 0;
    border: 0;
    font-size: .75rem;
    font-weight: 400;
    color: var(--muted)
}
.inline-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.theme-legend {
    margin: 0 0 10px;
}
.inline-legend button[aria-pressed=false] {
    opacity: .4;
    text-decoration: line-through
}
.timeline {
    margin-top: 16px;
    padding: 13px 14px 8px;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 9px
}
.timeline-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .8125rem;
    margin-bottom: 8px
}
.timeline-label button {
    font-size: .75rem
}
.range-endpoints {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--muted)
}
/* Date sliders sit on the timeline's field background, so the handles' ring matches it. */
.timeline .dual-range {
    --range-ring: var(--field)
}
.chart-note {
    max-width: 720px;
    font-size: .75rem;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 14px
}
.data-details {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 13px
}
.data-details summary {
    width: fit-content
}
/* The toggle arrow in the chart blue. */
.data-details summary::marker {
    color: var(--chart-accent)
}
.data-details summary::-webkit-details-marker {
    color: var(--chart-accent)
}
.data-details > div {
    margin-top: 10px;
    overflow: auto
}
.overview-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(275px, .8fr);
    gap: 18px;
    margin-top: 18px
}
.age-wrap {
    height: 285px
}
.distance-wrap {
    height: 360px;
    margin-top: 12px
}
.comments-teaser .comment-shortcut {
    padding: 15px 0;
    border-top: 1px solid var(--line)
}
.comment-shortcut h4 {
    font-size: .875rem;
    font-weight: 550;
    margin: 0 0 8px
}
.comment-shortcut p {
    font-size: .8125rem;
    color: var(--muted);
    margin-bottom: 9px
}
.comment-shortcut button {
    font-size: .8125rem
}
.compare-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin: 20px 0
}
.compare-controls label:first-child {
    flex: 1;
    min-width: 180px
}
.compare-controls label {
    display: flex;
    flex-direction: column;
    min-width: 130px;
    max-width: 400px
}
.compare-controls input {
    max-width: 130px
}
.compare-wrap {
    height: 460px
}
.table-scroll {
    overflow: auto;
    max-width: 100%;
    margin-top: 14px
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: .8125rem;
    text-align: left
}
th,
td {
    padding: 10px 9px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}
th {
    font-weight: 550;
    color: var(--muted);
    background: var(--panel2)
}
td:first-child,
th:first-child {
    padding-left: 0
}
td:not(:first-child),
th:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}
tr:last-child td {
    border-bottom: 0
}
.table-scroll table th:first-child {
    padding-left: 9px
}
.table-scroll table td:first-child {
    padding-left: 9px;
    min-width: 150px;
    max-width: 380px;
    overflow-wrap: anywhere
}
.section-intro {
    margin: 6px 0 20px
}
.section-intro p {
    font-size: .875rem;
    color: var(--muted);
    margin-top: 5px
}
.comment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}
.comment-card .chart-wrap {
    height: 265px;
    max-width: 400px;
    margin: 0 auto 20px
}
.comment-card .read-button {
    margin-top: 17px
}
.comment-card h3 {
    max-width: 400px
}
.participation-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 24px 0
}
.participation-stats strong {
    display: block;
    font-size: 1.45rem
}
.participation-stats span {
    font-size: .8125rem;
    color: var(--muted)
}
.coverage-wrap {
    height: 330px
}
.completion-card {
    margin-top: 18px
}
.completion-link {
    font-size: .8125rem;
    text-align: left;
    white-space: normal;
    color: var(--accent);
    border: 0;
    background: transparent;
    padding: 0
}
.status {
    padding: 14px 18px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: .875rem
}
.status[hidden] {
    display: none
}
.status.loading {
    display: flex;
    align-items: center;
    gap: 10px
}
.status.loading::before {
    content: '';
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: status-spin .8s linear infinite
}
@keyframes status-spin {
    to {
        transform: rotate(360deg)
    }
}
.status.error,
.error {
    color: var(--opposition)
}
.status button {
    margin-left: 12px
}
.error {
    font-size: .8125rem;
    margin-top: 10px
}
footer {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: .75rem;
    color: var(--muted);
    padding: 24px 0 4px
}
dialog {
    width: min(970px, calc(100% - 32px));
    max-height: 88dvh;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 35px 120px #0008
}
dialog::backdrop {
    background: #020a12b8;
    backdrop-filter: blur(5px)
}
.dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px
}
.dialog-heading h2 {
    font-size: 1.25rem;
    max-width: 720px;
    line-height: 1.45
}
.dialog-heading p {
    font-size: .8125rem;
    color: var(--muted);
    margin-top: 7px
}
.eyebrow {
    font-size: .75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 4px
}
.dialog-tools {
    display: flex;
    align-items: end;
    gap: 13px
}
.dialog-tools label:first-child {
    flex: 1
}
.dialog-tools label:nth-child(2) {
    width: 170px
}
.dialog-tools button {
    padding: 10px 18px
}
.dialog-count {
    display: flex;
    justify-content: space-between;
    font-size: .8125rem;
    color: var(--muted);
    padding: 16px 0
}
.comment-list {
    border-top: 1px solid var(--line)
}
.comment-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line)
}
.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: .75rem;
    margin-bottom: 9px
}
.comment-meta strong {
    font-weight: 550;
    color: var(--ink)
}
.comment-item p {
    font-size: 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.65
}
.comment-item mark {
    background: var(--mark);
    color: var(--mark-ink);
    border-radius: 3px;
    padding: 0 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone
}
@media (forced-colors: active) {
    .comment-item mark {
        background: Mark;
        color: MarkText
    }
}
.comment-support-tag {
    border-radius: 20px;
    padding: 2px 8px;
    background: var(--field);
    color: var(--swatch);
    border: 1px solid var(--line)
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: .8125rem;
    color: var(--muted)
}
#copy-status {
    color: var(--accent)
}
.empty-message {
    padding: 30px 15px;
    text-align: center;
    color: var(--muted);
    font-size: .875rem
}
.chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    color: var(--muted);
    font-size: .875rem;
    background: var(--panel)
}
body.dialog-open {
    overflow: hidden
}
@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important
    }
    .status.loading::before {
        animation-duration: 2.4s
    }
}
@media(min-width:1600px) {
    main {
        padding: 28px 36px
    }
    .donut-wrap {
        height: 275px
    }
    .trend-wrap {
        height: 275px
    }
    .stats article {
        padding: 20px 24px
    }
}
@media(max-width:1200px) {
    .workspace {
        grid-template-columns: 250px minmax(0, 1fr)
    }
    main {
        padding: 22px 20px
    }
    .overview-grid {
        grid-template-columns: minmax(245px, .8fr) minmax(0, 1.2fr)
    }
    .overview-bottom {
        grid-template-columns: 1fr
    }
    .stats article {
        padding: 14px
    }
    .stats strong {
        font-size: 1.7rem
    }
    .trend-tools {
        flex-wrap: wrap
    }
    .tabs {
        gap: 16px
    }
    .comments-teaser #comment-shortcuts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px
    }
    .compare-wrap {
        height: 420px
    }
}
@media(max-width:980px) {
    .overview-grid {
        grid-template-columns: 1fr
    }
    .support-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 22px
    }
    .support-card > .card-heading,
    .support-card > .data-details {
        grid-column: 1/-1
    }
    .support-card .donut-wrap {
        margin: 0;
        height: 220px
    }
    .support-legend {
        align-content: center
    }
    .comment-grid {
        grid-template-columns: 1fr
    }
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    /* Responses across the top, then the four Support answers two by two. */
    .stats article:first-child {
        grid-column: 1 / -1
    }
    .topbar {
        padding: 18px 20px
    }
    .brand p {
        display: none
    }
}
@media(max-width:720px) {
    .workspace {
        display: block
    }
    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 18px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px
    }
    .sidebar > .section-heading,
    .sidebar > .all-records,
    .sidebar > .more-filters,
    .sidebar > .date-filter,
    .sidebar > .error {
        grid-column: 1/-1
    }
    .sidebar > .section-heading {
        margin-bottom: 0
    }
    .all-records {
        padding: 0 0 3px
    }
    .sidebar > label,
    .sidebar .filter-pair {
        margin-bottom: 0
    }
    .filter-pair {
        display: contents
    }
    .sidebar .more-filters {
        margin: 0
    }
    .date-filter {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 8px;
        padding-top: 8px
    }
    .date-filter label {
        margin: 0
    }
    .topbar {
        align-items: flex-start;
        gap: 15px;
        flex-wrap: wrap
    }
    .toolbar {
        width: 100%;
        flex-wrap: wrap
    }
    .toolbar button {
        flex: 1
    }
    main {
        padding: 20px 16px
    }
    .results-heading {
        align-items: flex-start
    }
    .results-heading h2 {
        font-size: 1.25rem
    }
    .pill {
        display: none
    }
    .stats {
        gap: 10px
    }
    .stats article {
        padding: 14px
    }
    .stats strong {
        font-size: 1.75rem
    }
    .card {
        padding: 16px
    }
    .card-heading {
        gap: 10px
    }
    .chart-switch {
        min-width: 96px
    }
    .support-card {
        display: block
    }
    .support-card .donut-wrap {
        height: 230px;
        margin: 10px 0 20px
    }
    .support-legend {
        gap: 6px
    }
    .tabs {
        gap: 20px
    }
    .tabs button {
        font-size: .8125rem
    }
    .comments-teaser #comment-shortcuts {
        display: block
    }
    .compare-controls label {
        max-width: none;
        flex: 1
    }
    .compare-controls input {
        max-width: none
    }
    .coverage-wrap {
        height: 350px
    }
    .participation-stats {
        gap: 20px
    }
    dialog {
        padding: 18px;
        width: calc(100% - 20px);
        max-height: 93dvh
    }
    .dialog-heading {
        gap: 12px
    }
    .dialog-heading h2 {
        font-size: 1.125rem
    }
    .dialog-tools {
        flex-wrap: wrap
    }
    .dialog-tools label:first-child {
        flex-basis: 100%
    }
    .dialog-tools label:nth-child(2) {
        flex: 1
    }
    .dialog-tools button {
        flex: 1
    }
    .trend-tools {
        align-items: end
    }
    .quick-ranges {
        flex-wrap: wrap
    }
    footer {
        flex-wrap: wrap
    }
    .footer-meta {
        white-space: normal
    }
    .completion-card .table-scroll {
        max-height: 500px
    }
    .compare-wrap {
        height: 430px
    }
}
@media print {
    body {
        background: #fff;
        color: #000
    }
    .sidebar,
    .toolbar,
    .tabs,
    button,
    dialog,
    .timeline {
        display: none
    }
    .workspace {
        display: block
    }
    main {
        padding: 0
    }
    .card,
    .stats article {
        box-shadow: none;
        break-inside: avoid;
        background: #fff;
        border-color: #aaa
    }
    .overview-grid,
    .overview-bottom {
        display: block
    }
    .card {
        margin-bottom: 20px
    }
    .data-details {
        display: none
    }
}
.filter-toggle {
    display: none !important
}
#filter-controls > label {
    margin-bottom: 13px
}
.topbar {
    background: var(--header)
}
.sidebar {
    background: var(--sidebar)
}
@media(max-width:720px) {
    .sidebar {
        display: block
    }
    .sidebar .section-heading h2 {
        display: none
    }
    .filter-toggle {
        display: inline-block !important
    }
    #filter-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-top: 16px
    }
    .sidebar:not(.filters-open) #filter-controls {
        display: none
    }
    #filter-controls > .all-records,
    #filter-controls > .more-filters,
    #filter-controls > .date-filter,
    #filter-controls > .error {
        grid-column: 1/-1
    }
    #filter-controls > label {
        margin-bottom: 0
    }
    .sidebar .date-filter {
        margin: 8px 0 0
    }
}

@media(max-width:1100px) {
    .topbar {
        flex-wrap: wrap;
        gap: 12px;
    }
    .toolbar {
        margin-left: auto;
        flex-wrap: wrap;
    }
}
.footer-meta {
    white-space: nowrap;
}
.footer-meta a {
    color: var(--muted);
}
.footer-meta a:hover,
.footer-meta a:focus-visible {
    color: var(--ink);
}

.theme-grid {
    display: grid;
    gap: 18px;
}
.theme-card {
    min-width: 0;
}
.theme-chart-wrap {
    height: 460px;
}
.theme-support {
    display: block;
    max-width: 220px;
    margin-bottom: 16px;
}

.comment-details {
    margin-top: 14px;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.comment-details span {
    display: block;
}
.theme-trend {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.theme-trend h4 {
    margin: 0;
    font-size: 1rem;
}
.theme-trend-wrap {
    height: 280px;
}
.theme-trend .card-heading {
    flex-wrap: wrap;
    gap: 12px;
}
.theme-trend select {
    max-width: 100%;
}

.map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0;
}
.map-controls label {
    flex: 1 1 200px;
    min-width: 0;
}
.map-controls select {
    width: 100%;
}
.scheme-map {
    height: 65vh;
    min-height: 360px;
    max-height: 800px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: #222;
    background: var(--field);
}
/* Full-screen button, styled to match Google's own map controls. */
.map-fullscreen {
    width: 40px;
    height: 40px;
    margin: 10px;
    padding: 11px;
    border: 0;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 4px -1px #0000004d;
}
.map-fullscreen:hover {
    background: #fff;
}
.map-fullscreen svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #666;
    stroke-width: 2.5;
}
.map-fullscreen:hover svg {
    stroke: #333;
}
/* Full screen: the controls, legend and notes become a single-column sidebar beside the map. */
.map-card:fullscreen {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0 20px;
    border: 0;
    border-radius: 0;
    background: var(--panel);
    color: var(--ink);
}
.map-card:fullscreen .map-panel {
    grid-column: 1;
}
.map-card:fullscreen .map-notes {
    grid-column: 1;
    min-height: 0;
    overflow-y: auto;
}
.map-card:fullscreen .scheme-map {
    grid-column: 2;
    grid-row: 1 / 3;
    height: auto;
    min-height: 0;
    max-height: none;
}
.map-card:fullscreen .card-heading,
.map-card:fullscreen .map-controls {
    flex-direction: column;
}
.map-card:fullscreen .map-controls label,
.map-card:fullscreen .map-support {
    flex: none;
}
.map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}
/* Reset filters is for full screen, where the page sidebar (and its Reset all) is out of reach. */
.map-reset {
    display: none;
}
.map-card:fullscreen .map-reset {
    display: inline-block;
}
@media(max-width:720px) {
    /* Too narrow for a sidebar: controls above a full-width map, notes left out. */
    .map-card:fullscreen {
        grid-template-columns: minmax(0, 1fr);
    }
    .map-card:fullscreen .map-panel {
        max-height: 40vh;
        overflow-y: auto;
    }
    .map-card:fullscreen .scheme-map {
        grid-column: 1;
        grid-row: 2;
    }
    .map-card:fullscreen .map-notes {
        display: none;
    }
}
/* Show responses: one checkbox per support level, drawn in that level's dot colour, so it doubles as the key. */
.map-support {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.map-support legend {
    width: 100%;
    margin-bottom: 6px;
    padding: 0;
    font-size: .875rem;
    color: var(--muted);
}
.map-support label {
    flex: none;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    cursor: pointer;
}
.map-support .support-supportive {
    --swatch: var(--map-support);
}
.map-support .support-neutral {
    --swatch: var(--neutral);
}
.map-support .support-unsure {
    --swatch: var(--unsure);
}
.map-support .support-opposed {
    --swatch: var(--opposition);
}
.map-support .support-missing {
    --swatch: var(--missing);
}
.map-support input {
    flex: none;
    appearance: none;
    display: grid;
    place-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 2px solid var(--swatch);
    border-radius: 50%;
    background: var(--field);
    cursor: pointer;
}
.map-support input::before {
    content: "";
    width: 8px;
    height: 4px;
    margin-bottom: 2px;
    border-left: 2px solid #1b1b24;
    border-bottom: 2px solid #1b1b24;
    transform: rotate(-45deg);
    visibility: hidden;
}
.map-support input:checked {
    background: var(--swatch);
}
.map-support input:checked::before {
    visibility: visible;
}
.map-support input:focus-visible {
    outline-offset: 2px;
}
@media (forced-colors: active) {
    .map-support input {
        border-color: CanvasText;
    }
    .map-support input:checked {
        background: Highlight;
    }
}
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: .8rem;
    color: var(--muted);
}
.map-legend-item::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
    /* Set per item by the map view to match the dot colours. */
    background: var(--swatch, var(--missing));
    box-shadow: 0 0 0 2px var(--ring, transparent);
    margin-left: 2px;
}

/* No gap where the map status line is empty (no support level ticked). */
#map-status:empty {
    display: none
}

/* Map popups: Google's info window, recoloured to follow the dashboard theme. */
.scheme-map .gm-style .gm-style-iw-c {
    background: var(--panel);
    color: var(--ink);
    /* An outline, unlike a border, adds no width to Google's measured popup. */
    outline: 1px solid var(--line);
}
.scheme-map .gm-style .gm-style-iw-d {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.scheme-map .gm-style .gm-style-iw-tc::after {
    background: var(--panel);
}
.scheme-map .gm-style .gm-ui-hover-effect > span {
    background-color: var(--ink) !important;
}
/* The title sits in Google's header row; centre it against the 48px close button. */
.scheme-map .gm-style .gm-style-iw-ch {
    padding-top: 13px;
}
.map-popup-title {
    margin: 0;
    font-size: .9375rem;
    line-height: 22px;
}
.map-popup {
    max-width: 280px;
    /* Google's popup has no right padding of its own; keep text off its edge. */
    padding-right: 14px;
    padding-bottom: 14px;
    font-size: .8125rem;
    line-height: 1.45;
}
.map-popup .text-button {
    font-size: inherit;
    text-decoration: underline;
}
.map-popup p {
    margin: 0 0 10px;
    color: var(--muted);
}
.map-popup dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    margin: 0;
}
.map-popup dt {
    color: var(--muted);
}
.map-popup dd {
    margin: 0;
}
/* A single response: its written answers, then a footer with basic demographics. */
.map-popup-single {
    max-width: 320px;
}
.map-popup-comment {
    margin-bottom: 12px;
}
.map-popup-comment h5 {
    margin: 0 0 3px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
}
.map-popup .map-popup-comment p {
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.map-popup .map-popup-footer {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: .75rem;
}
.map-popup .map-popup-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.map-popup-sep {
    color: var(--muted);
}
/* One line of support shares under the scheme name: a colour square, then the percentage. */
.map-popup .map-popup-shares {
    display: flex;
    gap: 10px;
    color: var(--ink);
    white-space: nowrap;
}
.map-popup-share {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.map-popup-swatch {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--swatch);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.map-popup-links a {
    color: var(--accent);
    font-weight: 600;
}

/* Compare's scheme popup: drawn like the map's info window (same panel, outline, shadow, close button and tail),
   since it is the browser's own popover rather than Google's. */
.scheme-popover {
    position: fixed;
    inset: auto;
    margin: 0;
    padding: 0 0 0 12px;
    max-width: 320px;
    overflow: visible;
    border: 0;
    border-radius: 4px;
    outline: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    box-shadow: 0 2px 7px 1px #0000004d;
}
.scheme-popover::after {
    content: "";
    position: absolute;
    left: var(--tail-x, 50%);
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: var(--panel);
    box-shadow: 1px 1px 0 var(--line);
    transform: translateX(-50%) rotate(45deg);
}
.scheme-popover.below::after {
    top: -6px;
    bottom: auto;
    box-shadow: -1px -1px 0 var(--line);
}
.scheme-popover-head {
    display: flex;
    align-items: flex-start;
}
.scheme-popover-head .map-popup-title {
    flex: 1;
    padding-top: 13px;
    padding-bottom: 8px;
}
/* The same 48px close button as the map's, a cross drawn in the text colour. */
.scheme-popover-close {
    flex: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
    opacity: .6;
}
.scheme-popover-close::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    margin: auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.scheme-popover-close:hover,
.scheme-popover-close:focus-visible {
    opacity: 1;
}
.scheme-popover .map-popup {
    min-width: 180px;
}

/* Multi-select sidebar filters: a field-styled button opening an inline checkbox list. */
.multi-filter {
    margin-bottom: 13px;
}
.multi-filter [hidden] {
    display: none !important;
}
.multi-filter-label {
    display: block;
    font-size: .875rem;
    color: var(--muted);
    font-weight: 500;
}
.multi-filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
    padding: 7px 10px;
    border-radius: 4px;
    background: var(--field);
    color: var(--ink);
    font-weight: 400;
    text-align: left;
}
.multi-filter-button::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin: 0 3px 3px 0;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg);
}
.multi-filter-button[aria-expanded=true]::after {
    margin: 3px 3px 0 0;
    transform: rotate(-135deg);
}
.multi-filter.active .multi-filter-button {
    border-color: var(--accent);
}
.multi-filter-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.multi-filter-count {
    flex: none;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.6;
}
.multi-filter-panel {
    margin-top: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}
.multi-filter-search {
    margin-bottom: 6px;
}
.multi-filter-tools {
    display: flex;
    gap: 14px;
    padding: 0 4px 4px;
}
.multi-filter-tools .text-button {
    font-size: .75rem;
    font-weight: 500;
}
.multi-filter-options {
    max-height: 240px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.multi-filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
}
.multi-filter-option:hover {
    background: var(--panel2);
}
.multi-filter-option label {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 5px 4px;
    color: var(--ink);
    font-weight: 400;
    cursor: pointer;
}
/* Drawn checkboxes so both themes use the palette rather than the browser's greys. */
.multi-filter-option input {
    flex: none;
    appearance: none;
    display: grid;
    place-content: center;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    padding: 0;
    border: 1px solid var(--muted);
    border-radius: 4px;
    background: var(--field);
    cursor: pointer;
}
.multi-filter-option input::before {
    content: "";
    width: 8px;
    height: 4px;
    margin-bottom: 2px;
    border-left: 2px solid var(--accent-ink);
    border-bottom: 2px solid var(--accent-ink);
    transform: rotate(-45deg);
    visibility: hidden;
}
.multi-filter-option input:checked {
    border-color: var(--accent);
    background: var(--accent);
}
.multi-filter-option input:checked::before {
    visibility: visible;
}
.multi-filter-option input:focus-visible {
    outline-offset: 2px;
}
.multi-filter-option span {
    overflow-wrap: anywhere;
}
.multi-filter-empty {
    padding: 6px 4px 0;
    font-size: .75rem;
    color: var(--muted);
}
@media(max-width:720px) {
    #filter-controls > .multi-filter {
        margin-bottom: 0;
    }
}

/* Report tab: a readable single column of numbered sections, each with text and compact tables. */
.report-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin: 6px 0 20px;
}
.report-toolbar p {
    margin-top: 5px;
    font-size: .875rem;
    color: var(--muted);
}
.report-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.report {
    max-width: 980px;
    padding: 28px 32px;
}
.report-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.report-header h3 {
    font-size: 1.375rem;
}
.report-scope {
    margin-top: 6px;
    font-weight: 550;
}
.report-section {
    padding: 44px 0;
    border-bottom: 1px solid var(--line);
}
.report-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.report-section h4 {
    margin: 0 0 10px;
    font-size: 1.0625rem;
}
.report-section > p {
    max-width: 75ch;
    margin-top: 8px;
    font-size: .9375rem;
}
.report-section > p:first-of-type {
    margin-top: 0;
}
.report-notes {
    max-width: 75ch;
    margin: 0;
    padding-left: 20px;
    font-size: .9375rem;
}
.report-notes li + li {
    margin-top: 6px;
}
.report-bar {
    display: flex;
    height: 28px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 6px;
    gap: 2px;
}
.report-bar span {
    display: grid;
    place-content: center;
    min-width: 2px;
    color: #10172e;
    font-size: .75rem;
    font-weight: 700;
}
.report-tables {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 16px;
}
.report-table {
    min-width: 0;
    margin: 0;
}
.report-table figcaption {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--muted);
}
.report-table .table-scroll {
    margin-top: 6px;
}
.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
@media(max-width:720px) {
    .report {
        padding: 20px 16px;
    }
}
/* Printing from the Report tab leaves only the report. */
@media print {
    body:has(#view-report:not([hidden])) :is(.topbar, .results-heading, .stats, #status, .report-toolbar, footer) {
        display: none;
    }
    /* Cards normally avoid page breaks; the report must flow across pages. */
    .report.card {
        max-width: none;
        padding: 0;
        border: 0;
        break-inside: auto;
    }
    .report-section {
        break-inside: auto;
    }
    .report-section h4,
    .report-table {
        break-inside: avoid;
    }
    .report-bar {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .report th {
        background: #f1f1f1;
        color: #000;
    }
    .report :is(th, td) {
        border-color: #bbb;
    }
}
/* Group differences: a dot-and-range chart built from HTML rows, one per group. */
.gaps-help {
    max-width: 720px;
    margin: 0 0 16px;
    font-size: .8125rem;
    line-height: 1.6;
}
.gaps-help summary {
    color: var(--accent);
    font-weight: 600;
}
.gaps-help p {
    margin: 8px 0 0;
    color: var(--muted);
}
.gaps-help strong {
    color: var(--ink);
    font-weight: 600;
}
.gaps-help .gaps-key {
    vertical-align: middle;
    margin-right: 2px;
}
.gaps-example {
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    background: var(--panel2);
    border-radius: 0 6px 6px 0;
}
.gaps-example:empty {
    display: none;
}
.gaps-key {
    display: inline-block;
    flex: none;
}
.gaps-key-adjusted {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}
.gaps-key-range {
    width: 18px;
    height: 6px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--accent) 35%, transparent);
}
.gaps-key-pooled {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--muted);
}
.gaps-chart {
    display: grid;
    gap: 2px;
}
.gaps-row {
    display: grid;
    grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: .8125rem;
    font-weight: 400;
    text-align: left;
    white-space: normal;
}
button.gaps-row:hover,
button.gaps-row.selected {
    background: var(--panel2);
}
.gaps-label {
    overflow-wrap: anywhere;
}
.gaps-track {
    position: relative;
    height: 22px;
    /* Room for the end tick labels, which centre on the track edges. */
    margin: 0 16px;
}
.gaps-axis .gaps-label {
    color: var(--muted);
    font-size: .75rem;
}
.gaps-axis .gaps-track {
    height: 40px;
    border-bottom: 1px solid var(--line);
}
.gaps-ends {
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .75rem;
}
.gaps-tick {
    position: absolute;
    bottom: 3px;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: .75rem;
}
.gaps-zero {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--control-line);
}
.gaps-range,
.gaps-adjusted,
.gaps-pooled,
.gaps-dot {
    position: absolute;
    top: 50%;
}
.gaps-range {
    height: 6px;
    margin-top: -3px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--accent) 35%, transparent);
}
.gaps-adjusted,
.gaps-dot {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--accent);
}
.gaps-dot {
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
}
.gaps-pooled {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    border: 2px solid var(--muted);
}
.gaps-detail {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.gaps-detail h4 {
    margin: 0;
}
@media(max-width:720px) {
    .gaps-row {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 8px;
        padding: 5px 2px;
    }
    .gaps-ends {
        font-size: .6875rem;
    }
}

/* Scheme size: two native range inputs share one track; only their handles take the pointer. */
.size-filter {
    margin-bottom: 13px;
}
.size-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.size-heading .text-button {
    font-size: .8125rem;
}
.dual-range {
    position: relative;
    height: 28px;
    margin-top: 4px;
}
.dual-range::before,
.dual-range-fill {
    content: '';
    position: absolute;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
}
.dual-range::before {
    left: 8px;
    right: 8px;
    background: var(--line);
}
.dual-range-fill {
    /* --from and --to are the handles' positions as fractions (0 to 1) of the track. */
    left: calc(8px + (100% - 16px) * var(--from, 0));
    right: calc(8px + (100% - 16px) * (1 - var(--to, 1)));
    background: var(--accent);
}
.dual-range input[type=range] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.dual-range input[type=range]::-webkit-slider-runnable-track {
    background: none;
    border: 0;
}
.dual-range input[type=range]::-moz-range-track {
    background: none;
    border: 0;
}
.dual-range input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--range-ring, var(--sidebar));
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    pointer-events: auto;
    cursor: pointer;
}
.dual-range input[type=range]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--range-ring, var(--sidebar));
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    pointer-events: auto;
    cursor: pointer;
}
.dual-range input[type=range]:focus-visible {
    outline: none;
}
.dual-range input[type=range]:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.dual-range input[type=range]:focus-visible::-moz-range-thumb {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.dual-range input[type=range]:disabled::-webkit-slider-thumb {
    opacity: .4;
    cursor: default;
}
.size-label,
.size-note {
    margin: 2px 0 0;
    font-size: .75rem;
    color: var(--muted);
}
.size-note {
    color: var(--opposition);
}

/* Scheme website links: the name keeps its surrounding style, underlined; a small arrow where the name is a button. */
a.scheme-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
    text-underline-offset: 3px;
}
a.scheme-link:hover,
a.scheme-link:focus-visible {
    color: var(--accent);
    text-decoration-color: currentColor;
}
.scheme-cell {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
a.scheme-site {
    color: var(--muted);
    font-size: .8125rem;
    text-decoration: none;
    line-height: 1;
}
a.scheme-site:hover,
a.scheme-site:focus-visible {
    color: var(--accent);
}