/* GIS workspace: bring the map and primary readings into one working view. */
:root body.observatory-interface #content {
    padding: 18px 22px 28px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-page-heading {
    margin-bottom: 14px;
    gap: 16px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-page-heading
    h1 {
    font-size: 28px;
    margin: 3px 0 4px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-page-heading
    p {
    font-size: 14px;
}
.ob-heading-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-mode {
    margin: 0;
    color: #607490;
    font-size: 11px;
    letter-spacing: 0;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-stat {
    padding: 10px 14px 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-kpi-main {
    min-height: 0;
    margin: 5px 0 7px;
    align-items: center;
    gap: 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-kpi-main
    > strong {
    font-size: 34px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-kpi-main
    > span {
    font-size: 12px;
    line-height: 1.5;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-kpi-action {
    padding-top: 6px;
    min-height: 30px;
    font-size: 12px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-network {
    padding: 12px 14px 0;
    margin-bottom: 14px;
    border-radius: 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-network
    .ob-section-heading {
    margin-bottom: 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-network
    h2 {
    font-size: 16px;
    margin: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-network-count {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-station-tabs {
    gap: 8px;
    margin-bottom: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .river-node.ob-station-tab {
    padding: 8px 10px;
    gap: 3px 8px;
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-station-symbol {
    width: 24px;
    height: 28px;
    border-radius: 6px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-station-symbol
    svg {
    width: 17px;
    height: 17px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-tab-status {
    border: 0;
    margin: 1px 0 0;
    padding: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-tab-status
    .badge {
    font-size: 11px;
    background: transparent;
    padding: 1px 0;
}
.ob-route-disclosure {
    margin-top: 4px;
}
.ob-route-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: fit-content;
    margin-left: auto;
    min-height: 32px;
    font-size: 12px;
    color: #53749e;
    cursor: pointer;
    list-style: none;
}
.ob-route-disclosure > summary::-webkit-details-marker {
    display: none;
}
.ob-route-disclosure > summary svg {
    transition: transform 0.2s;
}
.ob-route-disclosure[open] > summary svg {
    transform: rotate(90deg);
}
.ob-route-disclosure .ob-live-preview {
    margin: 0 0 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .river-observatory.ob-live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 18px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .station-instrument {
    padding: 14px;
    min-width: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-measurement-header {
    display: block;
    margin-bottom: 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .station-instrument
    h2 {
    font-size: 20px;
    line-height: 1.4;
    margin: 4px 0 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-selector {
    margin-bottom: 10px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .hydro-hero {
    padding: 10px 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .hydro-hero
    > .badge {
    font-size: 14px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .hydro-hero
    > p {
    font-size: 12px;
    margin: 5px 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .hydro-hero
    .trial-note {
    margin: 4px 0 0;
    font-size: 11px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .hydro-hero-meta {
    gap: 6px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric {
    padding: 10px 12px;
    min-height: 0;
    border-radius: 9px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-label {
    padding-right: 23px;
    min-height: 0;
    margin: 0 0 3px;
    font-size: 13px;
    line-height: 1.5;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-value {
    font-size: 27px;
    margin: 0;
    line-height: 1.25;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-icon {
    width: 23px;
    height: 23px;
    top: 9px;
    right: 9px;
    border-radius: 6px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-icon
    svg {
    width: 16px;
    height: 16px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-spark {
    height: 16px;
    margin: 3px 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .metric-source {
    margin-top: 3px;
    font-size: 11px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-unconfigured {
    padding-top: 3px;
    margin-top: auto;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-empty-line {
    display: none;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-unconfigured
    small {
    font-size: 10px;
    color: #78899f;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured)) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    > div:not(.measurement-gauge) {
    grid-column: 1;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    > .metric-source {
    grid-column: 1;
    align-self: start;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    > .measurement-gauge {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin: 0;
    padding: 0;
    border: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    .metric-icon {
    display: none;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric:has(.measurement-gauge:not(.gauge-unconfigured))
    .metric-label {
    padding-right: 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
    > .metric:last-child:nth-child(even):not(
        :has(.measurement-gauge:not(.gauge-unconfigured))
    ) {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
    > .metric:last-child:nth-child(even)
    .metric-spark {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    height: 25px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
    > .metric:last-child:nth-child(even)
    .measurement-gauge {
    grid-column: 1/-1;
}
.ob-extra-readings {
    margin-top: 8px;
    border: 1px solid #e1e8f4;
    border-radius: 8px;
    background: #f9fbff;
}
.ob-extra-readings > summary {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 9px 10px;
    min-height: 40px;
    font-size: 12px;
    color: #516885;
    cursor: pointer;
    list-style: none;
}
.ob-extra-readings > summary > svg {
    color: #8b5cf6;
    flex-shrink: 0;
}
.ob-extra-readings > summary > span {
    margin-left: auto;
    color: #3970bd;
    white-space: nowrap;
}
.ob-extra-readings[open] > summary {
    border-bottom: 1px solid #e1e8f4;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-secondary-readings {
    padding: 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-measurement-footer {
    display: block;
    padding-top: 10px;
    margin-top: 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-provenance {
    gap: 10px;
    justify-content: space-between;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-provenance
    strong {
    font-size: 11px;
    padding-left: 0;
    margin-top: 1px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-detail {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 12px;
    margin-top: 8px;
    justify-content: space-between;
    font-size: 13px;
}

/* Map canvas height follows the map itself, never the length of a station list. */
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map {
    padding: 14px;
    border-radius: 12px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header {
    margin-bottom: 10px;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-header h3 {
    font-size: 20px;
    margin: 2px 0;
}
:root
    body.observatory-interface
    .gis-map.water-alert-map
    .river-header
    :is(p, .river-instruction) {
    font-size: 11px;
    letter-spacing: 0.3px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-actions {
    gap: 6px;
    flex-wrap: wrap;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-segment button,
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #map-fullscreen {
    font-size: 11px;
    min-height: 34px;
    padding: 6px 9px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-situation {
    padding: 9px 10px;
    margin-bottom: 8px;
    gap: 9px;
}
:root
    body.observatory-interface
    .gis-map.water-alert-map
    .map-situation-symbol {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
:root
    body.observatory-interface
    .gis-map.water-alert-map
    .map-situation-symbol
    svg {
    width: 19px;
    height: 19px;
}
:root
    body.observatory-interface
    .gis-map.water-alert-map
    .map-situation
    strong {
    font-size: 13px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-situation p {
    font-size: 11px;
    margin: 2px 0 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-mode {
    padding: 3px 6px;
    font-size: 10px;
    margin-left: auto;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .map-command-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .river-canvas {
    align-self: start;
    min-height: 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #geographic-map {
    height: 410px !important;
}
:root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map .leaflet-tile-pane {
    filter: saturate(0.95) contrast(1);
}
.gis-layer-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 8px;
    flex-wrap: wrap;
}
.gis-layer-toolbar > span {
    margin-right: auto;
    font:
        10px/1.4 "JetBrains Mono",
        monospace;
    color: #73839b;
}
.gis-layer-toolbar button {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 4px 7px;
    font-size: 11px;
    min-height: 30px;
    background: #f8faff;
    color: #687b98;
    border: 1px solid #dce6f4;
    border-radius: 6px;
}
.gis-layer-toolbar button[aria-pressed="true"] {
    background: #eaf2ff;
    border-color: #b8cff3;
    color: #3264a9;
}
.gis-layer-toolbar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.gis-layer-toolbar svg {
    width: 14px;
    height: 14px;
}
.gis-line-key {
    width: 15px;
    height: 3px;
    border-radius: 2px;
    background: #2875cf;
}
.gis-map.labels-hidden .map-pin-label {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-alert-rail {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-focus-strip {
    display: none;
}
.gis-view-coordinate {
    position: absolute;
    bottom: 28px;
    left: 7px;
    z-index: 500;
    pointer-events: none;
    background: #fffffff0;
    padding: 3px 5px;
    border: 1px solid #d9e3f1;
    border-radius: 4px;
    color: #5b7290;
    font:
        9px/1.4 "JetBrains Mono",
        monospace;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-floating-tools {
    bottom: 48px;
    right: 8px;
    gap: 6px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-floating-tools button {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 11px;
}
.gis-location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding: 9px 10px;
    background: #f1f6ff;
    border: 1px solid #dce7f8;
    border-radius: 8px;
}
.gis-coordinate-label {
    display: block;
    font-size: 9px;
    color: #6c82a3;
    letter-spacing: 0.4px;
}
.gis-location-bar strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #2e568d;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.gis-location-bar small {
    display: block;
    color: #72839c;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.gis-coordinate-state {
    border: 1px solid #dce6f6;
    color: #657994;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 10px;
    white-space: nowrap;
}
.gis-coordinate-state.confirmed {
    color: #2b7186;
    background: #e9f7fb;
    border-color: #cfe8f0;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-level-legend {
    padding: 9px 0;
    gap: 5px 12px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-level-legend > span {
    font-size: 11px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .river-footer {
    padding-top: 8px;
    gap: 7px;
    flex-wrap: wrap;
}
:root body:is(.observatory-interface,.community-view) .gis-map .geographic-legend {
    gap: 10px;
    font-size: 10px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-angle {
    font-size: 10px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-angle input {
    width: 80px;
}
.gis-map-notes {
    margin-top: 7px;
    border-top: 1px solid #e6ecf5;
    font-size: 12px;
    color: #6a7d97;
}
.gis-map-notes summary {
    min-height: 32px;
    padding-top: 8px;
    cursor: pointer;
    font-size: 11px;
}
.gis-map-notes p {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.gis-map .geographic-message:empty {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map .alert-map-pin .map-pin-label {
    width: 76px;
    padding: 5px 6px;
    border-radius: 6px;
    bottom: 47px;
    font-family: "Be Vietnam Pro", sans-serif;
}
:root
    body.observatory-interface
    .gis-map
    .alert-map-pin.label-below
    .map-pin-label {
    top: 47px;
    bottom: auto;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-pin-label > strong {
    font-size: 11px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-pin-label > small {
    font-size: 9px;
    margin: 2px 0 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map .map-pin-label > span {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded {
    display: flex;
    flex-direction: column;
    overflow: auto;
    gap: 0;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-command-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded #geographic-map {
    height: max(350px, calc(100dvh - 310px)) !important;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-alert-rail {
    display: flex;
    margin-left: 12px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-rail-heading {
    padding: 0 5px 8px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-rail-heading strong,
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-rail-heading p {
    display: none;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .river-stations {
    margin: 8px 0;
    gap: 4px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .river-station {
    padding: 7px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-focus-strip {
    display: grid;
    margin-top: 8px;
}
:root body:is(.observatory-interface,.community-view) .gis-map.expanded .gis-map-notes {
    display: none;
}

/* Remove legacy nested padding and keep optional navigation out of the main flow. */
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .river-observatory-map {
    padding: 0;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-network {
    position: relative;
    padding-bottom: 12px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-network-count {
    display: none;
}
.ob-route-disclosure {
    margin: 0;
}
.ob-route-disclosure > summary {
    position: absolute;
    top: 8px;
    right: 14px;
}
.ob-route-disclosure .ob-live-preview {
    margin: 12px 0 0;
}
.ob-change-station {
    position: relative;
    margin-left: auto;
}
.ob-change-station > summary {
    cursor: pointer;
    font-size: 11px;
    line-height: 1.4;
    color: #4774b5;
    min-height: 30px;
    display: flex;
    align-items: center;
}
.ob-change-station > .instrument-selector {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 800;
    width: min(340px, calc(100vw - 60px));
    border: 1px solid #cddcf3;
    border-radius: 9px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 10px 30px #294b7725;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    .metric-spark {
    display: none;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-primary-readings
    > .metric:last-child:nth-child(even)
    .metric-spark {
    display: block;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-unconfigured {
    font-size: 10px;
    line-height: 1.3;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .instrument-readings
    .gauge-unconfigured
    small {
    display: block;
    line-height: 1.3;
}
:root body:is(.observatory-interface,.community-view) .gis-map .river-footer {
    margin-top: 0;
    padding-bottom: 0;
}
/* Analysis and utility screens use natural card heights. */
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-trend-heading {
    margin: 0 0 10px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-trend-heading
    .ob-eyebrow,
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-trend-heading
    p {
    display: none;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-trend-heading
    h2 {
    font-size: 20px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .river-analysis {
    gap: 14px;
    margin-bottom: 18px;
    align-items: start;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .analysis-trend,
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .data-context {
    padding: 14px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .data-context
    h2 {
    font-size: 20px;
    margin-top: 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .data-context
    p {
    font-size: 12px;
    margin-bottom: 6px;
}
:root body.observatory-interface .ob-gis-upgrade.ob-design-system .context-row {
    padding: 7px 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-data-coverage {
    padding: 7px 0;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .ob-context-link {
    margin-top: 8px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .fleet-comparison
    .analysis-heading {
    padding: 14px;
}
:root
    body.observatory-interface
    .ob-gis-upgrade.ob-design-system
    .fleet-comparison
    td {
    padding: 10px 14px;
}
:root body.observatory-interface .card:not(.metric) {
    padding: 16px;
}
:root body.observatory-interface .page-head {
    margin-bottom: 16px;
}
:root body.observatory-interface .grid.detail {
    gap: 14px;
    align-items: start;
}
@media (max-width: 1250px) {
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .river-observatory.ob-live-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr);
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .river-header {
        flex-direction: column;
    }
}
@media (max-width: 900px) {
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .river-observatory.ob-live-grid,
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .river-analysis {
        grid-template-columns: minmax(0, 1fr);
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .instrument-readings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings
        .metric:has(.measurement-gauge:not(.gauge-unconfigured)) {
        grid-column: 1/-1;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
        > .metric:last-child:nth-child(even) {
        grid-column: auto;
        display: flex;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .river-header {
        flex-direction: row;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .data-context {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
}
@media (max-width: 760px) {
    :root body.observatory-interface #content {
        padding: 14px 12px 20px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading {
        align-items: flex-start;
        gap: 10px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading
        h1 {
        font-size: 23px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading
        .ob-eyebrow {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading
        p {
        font-size: 12px;
    }
    .ob-heading-actions {
        gap: 6px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    :root body.observatory-interface .ob-gis-upgrade.ob-design-system .ob-stat {
        padding: 8px 10px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-stat-top {
        font-size: 12px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-kpi-main {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-kpi-main
        > strong {
        font-size: 30px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-kpi-main
        > span {
        font-size: 11px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-kpi-action {
        font-size: 11px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-network-count {
        display: none;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-station-tabs {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-station-tab {
        flex: 0 0 150px;
        scroll-snap-align: start;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .instrument-readings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings:has(.measurement-gauge:not(.gauge-unconfigured))
        > .metric:last-child:nth-child(even) {
        grid-column: 1/-1;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #geographic-map {
        height: 360px !important;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .map-situation {
        flex-wrap: nowrap;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .map-mode {
        display: none;
    }
    .gis-layer-toolbar > span {
        font-size: 9px;
    }
    .gis-location-bar {
        flex-wrap: wrap;
    }
    .gis-view-coordinate {
        max-width: calc(100% - 14px);
        font-size: 8px;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-command-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-alert-rail {
        margin: 8px 0 0;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.expanded .river-stations {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    :root body:is(.observatory-interface,.community-view) .gis-map.expanded .map-focus-strip {
        grid-template-columns: minmax(0, 1fr);
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .data-context {
        display: block;
    }
}
@media (max-width: 480px) {
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-page-heading {
        flex-wrap: wrap;
    }
    .ob-heading-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-report {
        min-height: 34px;
        font-size: 12px;
        padding: 6px 10px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .instrument-readings
        .metric {
        padding: 10px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings
        .metric:has(.measurement-gauge:not(.gauge-unconfigured)) {
        display: flex;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-primary-readings
        .metric:has(.measurement-gauge:not(.gauge-unconfigured))
        > .measurement-gauge {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #ffffff30;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .river-header {
        flex-direction: column;
    }
    :root body:is(.observatory-interface,.community-view) .gis-map .map-actions {
        width: 100%;
        justify-content: space-between;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ob-route-disclosure > summary svg {
        transition: none;
    }
}
@media (max-width: 760px) {
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-stat-top {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-height: 30px;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-stat-top
        .ob-stat-icon {
        width: 25px;
        height: 25px;
        flex-shrink: 0;
    }
    :root
        body.observatory-interface
        .ob-gis-upgrade.ob-design-system
        .ob-station-tabs {
        scrollbar-width: thin;
        padding-bottom: 4px;
    }
    :root
        body.observatory-interface
        .gis-map.water-alert-map
        .map-segment
        button,
    :root body:is(.observatory-interface,.community-view) .gis-map.water-alert-map #map-fullscreen,
    :root body:is(.observatory-interface,.community-view) .gis-map .gis-layer-toolbar button {
        min-height: 36px;
        font-size: 12px;
    }
    :root
        body.observatory-interface
        .gis-map
        .alert-map-pin.edge-start
        .map-pin-label {
        left: calc(50% + 20px);
    }
    :root
        body.observatory-interface
        .gis-map
        .alert-map-pin.edge-start
        .map-pin-label:after {
        left: calc(50% - 20px);
    }
}
:root body:is(.observatory-interface,.community-view) .gis-map .gis-location-bar strong {
    font-size: 14px;
}
:root body:is(.observatory-interface,.community-view) .gis-map .gis-location-bar small {
    font-size: 11px;
}
