/* Styles for [ctr2025_hq_map]. The legend uses Interstate, which the ITEP theme is expected to load. */
.hqmap-wrapper {
    --hqmap-primary: #13294b;
}
.hqmap-wrapper .hqmap-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--hqmap-primary);
}
.hqmap-wrapper .hqmap-table-scroll {
    max-height: 26rem;
    overflow: auto;
    font-size: 0.9rem;
}
.hqmap-wrapper .hqmap-table {
    --bs-table-striped-bg: #eef1f5;
    --bs-table-hover-bg: #e1e6ee;
}
.hqmap-wrapper .hqmap-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bs-body-bg, #fff);
}
.hqmap-wrapper .hqmap-table th[scope="row"] {
    font-weight: 400;
}
.hqmap-wrapper .hqmap-num {
    font-variant-numeric: tabular-nums;
}
.hqmap-wrapper .hqmap-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.hqmap-wrapper .hqmap-sort-btn:focus-visible {
    outline: 2px solid var(--hqmap-primary);
    outline-offset: 2px;
}
.hqmap-wrapper .hqmap-sort-icon {
    font-size: 0.75em;
    color: var(--bs-secondary-color, #6c757d);
}
.hqmap-wrapper .hqmap-table th[aria-sort="ascending"] .hqmap-sort-icon,
.hqmap-wrapper .hqmap-table th[aria-sort="descending"] .hqmap-sort-icon {
    color: var(--hqmap-primary);
}
.hqmap-wrapper .hqmap-key {
    font-family: 'Interstate', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.hqmap-wrapper .hqmap-stage {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Full-screen map view (small screens). The figure is moved to <body> while open. */
html.hqmap-noscroll {
    overflow: hidden;
}
.hqmap-figure.hqmap-fullscreen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--bs-body-bg, #fff);
}
.hqmap-figure.hqmap-fullscreen .hqmap-stage {
    flex: 1 1 auto;
    min-height: 0;
}
.hqmap-figure.hqmap-fullscreen .hqmap-map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.hqmap-figure.hqmap-fullscreen .hqmap-map svg {
    width: 100%;
    height: 100%;
}
