/* Scope the viewport layout to the full-page website route. */
html.full-page-explorer body { margin: 0; padding: 0; }
html.full-page-explorer .dashboard-map-shell,
html.full-page-explorer .dashboard-map-shell.network-active {
  height: 100dvh;
  min-height: 0;
  margin: 0;
  gap: 0;
  flex-direction: row;
}
html.full-page-explorer .dashboard-map-pane {
  height: 100%;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
html.full-page-explorer .dashboard-map-canvas {
  height: 100%;
  min-height: 0;
  border: 0;
}
html.full-page-explorer .dashboard-side-pane {
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(330px, 30vw, 420px);
  width: clamp(330px, 30vw, 420px);
  max-width: 420px;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid #e1e5e9;
  padding: 12px 18px;
}
html.full-page-explorer .dashboard-side-pane > .tabbable {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
html.full-page-explorer #bank_network,
html.full-page-explorer #bank_network .vis-network { min-height: 0; }
html.full-page-explorer .dashboard-analytics { margin: 0; }
html.full-page-explorer .dashboard-analytics { border-top: 0 !important; }
html.full-page-explorer .spatial-analytics { height: 100dvh; min-height: 100dvh; box-sizing: border-box; overflow-y: auto; overflow-x: hidden; }
html.full-page-explorer { scroll-snap-type: y mandatory; }
html.full-page-explorer #map-explorer, html.full-page-explorer #spatial-analytics { scroll-snap-align: start; scroll-snap-stop: always; }
.spatial-analytics .dashboard-card { border-top: 0; border-bottom: 0; }
.insights-value-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 48px; margin-top: -5px; }
.insights-value-controls .shiny-input-container { width: auto !important; margin-bottom: 0; }
.insights-value-controls label { font-size: 11px; font-weight: 400; }
.insights-value-controls input[type=radio] { width: 10px; height: 10px; margin-top: 4px; }
.insights-value-controls .radio-inline { padding-left: 15px; }
.dashboard-map-pane, .spatial-analytics { position: relative; }
.explorer-jump {
  display: inline-flex;
  align-items: center;
  width: 130px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5e708b !important;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
  z-index: 1050;
  gap: 8px;
  transition: color .15s;
}
.explorer-jump:hover { color: #0a2878 !important; }
.explorer-jump:focus-visible { outline: 2px solid #8fa1bd; outline-offset: 3px; }
.explorer-jump-down { align-self: flex-end; flex: 0 0 auto; margin: 10px 0 4px; }
.explorer-jump-back { position: absolute; right: 18px; top: 16px; }
.explorer-chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; flex: 0 0 6px; }
.chevron-down { transform: rotate(45deg); margin-top: -3px; }
.chevron-up { transform: rotate(225deg); margin-top: 3px; }
#map-explorer:focus, #spatial-analytics:focus { outline: none; }
.spatial-analytics .dashboard-section-title { padding-right: 130px; }
.spatial-analytics .analytics-selector-card { border-top: 0; border-bottom: 0; }
.spatial-analytics .shiny-input-container:has(#analytics_metric) .selectize-input { border-bottom: 0 !important; }
html.banks-page .explorer-jump { display: none; }
/* The bank explorer has its own website page and controls. */
html:not(.banks-page) #side_panel_tabs li:has(a[data-value="network"]),
html:not(.banks-page) .tab-pane:has(.bank-network-controls) {
  display: none !important;
}
html.banks-page #side_panel_tabs { display: none; }
html.banks-page .dashboard-analytics { display: none; }
.map-controls-body .shiny-input-container { width: 100% !important; max-width: 100%; }
.map-controls-body .irs-min, .map-controls-body .irs-max,
.map-controls-body .irs-from, .map-controls-body .irs-to,
.map-controls-body .irs-single { display: none !important; }
.map-controls-body .irs-single { display: block !important; visibility: visible !important; top: 0; color: #7a8089; background: transparent; font-size: 10px; font-weight: 400; padding: 0; }
.map-controls-body .shiny-input-container:has(#geo_level) { margin-bottom: 46px; }
.map-controls-body .shiny-input-container:has(#municipal_metric),
.map-controls-body .shiny-input-container:has(#region_metric) { margin-top: 44px; }
.map-controls-body .shiny-input-container:has(#municipal_metric) .selectize-input,
.map-controls-body .shiny-input-container:has(#region_metric) .selectize-input { border-bottom: 0 !important; }
.dashboard-controls.panel { border-top: 0 !important; border-bottom: 0 !important; }
.dashboard-side-pane .nav-tabs { border-bottom: 0 !important; }
.dashboard-side-pane .nav-tabs > li > a,
.dashboard-side-pane .nav-tabs > li.active > a,
.dashboard-side-pane .nav-tabs > li.active > a:hover,
.dashboard-side-pane .nav-tabs > li.active > a:focus { position: relative; border-bottom: 0 !important; }
.dashboard-side-pane .nav-tabs > li > a::before { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--site-navy); left: 50%; top: 0; transform: translateX(-50%); opacity: 0; }
.dashboard-side-pane .nav-tabs > li.active > a::before { opacity: 1; }
.map-controls-body .irs-single::before, .map-controls-body .irs-single::after { display: none !important; }
.region-month-control .form-group { margin-bottom: 0; }
.region-year-ticks { position: relative; height: 22px; margin: -8px 4px 16px; color: #333; font-size: 10px; }
.region-year-ticks span { position: absolute; top: 0; transform: translateX(-50%); padding-top: 9px; }
.region-year-ticks span::before { content: ''; position: absolute; top: 0; left: 50%; height: 6px; border-left: 1px solid #0a2878; }
/* A taller, wider menu makes grouped municipal indicators easy to browse. */
.shiny-input-container:has(#municipal_metric) .selectize-input,
.shiny-input-container:has(#region_metric) .selectize-input,
.shiny-input-container:has(#analytics_metric) .selectize-input {
  min-height: 44px;
  font-size: 14px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--site-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 26px 8px 0 !important;
}
#region_basis label:has(input:disabled), #analytics_basis label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.municipal-metric-menu {
  z-index: 3000 !important;
  background: white;
  border: 1px solid #dce2eb;
  box-shadow: 0 5px 18px rgba(10, 40, 120, .09) !important;
}
.municipal-metric-menu .selectize-dropdown-content {
  max-height: 480px;
  overscroll-behavior: contain;
}
.municipal-metric-menu .optgroup-header,
.dashboard-controls .selectize-dropdown .optgroup-header {
  font-size: 15px;
  font-weight: 400;
  font-variant: small-caps;
  min-height: 46px;
  box-sizing: border-box;
  color: #0a2878;
  padding: 12px 14px 7px;
  background: #f5f7fa;
}
.municipal-metric-menu .option {
  font-size: 13px;
  min-height: 40px;
  box-sizing: border-box;
  line-height: 1.35;
  padding: 9px 12px 9px 27px;
  margin: 0;
}
.radar-dimension-name { cursor: help; pointer-events: auto; }
.map-popup-radar-labels .radar-dimension-name text { fill: var(--site-navy); font-variant: small-caps; font-weight: 400; }
.dashboard-area-details { border-top: 0 !important; }
.dashboard-area-details .map-popup-table { margin-top: 24px; margin-bottom: 26px; }
.map-popup-profile-row { margin-bottom: 38px !important; }
.radar-formula-popup { position: fixed; z-index: 5000; width: 460px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto; padding: 16px 18px; border: 1px solid #dce2eb; border-radius: 4px; background: #fff; box-shadow: 0 3px 14px #182e4920; color: #26384f; font-size: 12px; line-height: 1.45; pointer-events: none; }
.radar-formula-popup math { margin: 10px 0; font-size: 14px; }
.radar-formula-popup mtext[mathcolor] { font-size: 11px; }
.formula-axis { font-variant: small-caps; color: #0a2878; font-size: 16px; text-align: center; }
.formula-note { color: #6f7b8e; font-size: 11px; margin-top: 12px; }
.map-popup-radar-svg { width: 100%; max-width: 400px; height: auto; flex-shrink: 0; }
.map-loading-dots { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 9px; background: #fff; color: #0a2878; font-size: 42px; z-index: 1100; }
.map-loading-dots span:nth-child(2) { animation: map-dot-two 1.5s steps(1,end) infinite; }
.map-loading-dots span:nth-child(3) { animation: map-dot-three 1.5s steps(1,end) infinite; }
@keyframes map-dot-two { 0% { opacity: 0; } 33.333% { opacity: 1; } }
@keyframes map-dot-three { 0% { opacity: 0; } 66.666% { opacity: 1; } }
.map-ready .map-loading-dots { display: none; }
.map-switching .map-loading-dots { display: flex; }
.dashboard-area-details .map-popup-metric-label,
.dashboard-area-details .map-popup-metric-value,
.dashboard-area-details .map-popup-metric-trailing {
  padding-top: 2px;
  padding-bottom: 2px;
  vertical-align: middle;
  line-height: 1.15;
}
.profile-currency { display: inline-block; width: 1.2em; font-weight: 400; }
.profile-number { font-variant-numeric: tabular-nums; }
.dashboard-area-details .map-popup-pie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.composition-reference-key { font-size: 9px; color: #6f7b8e; margin: 12px 0 0; text-align: center; }
.composition-reference-key i { display: inline-block; height: 8px; border-left: 2px solid #26384f; margin-right: 5px; vertical-align: middle; }
.map-popup-pie-title { font-size: 12px !important; font-weight: 400 !important; font-variant: small-caps; }
.composition-bars { display: flex; flex-direction: column; gap: 2px; }
.composition-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 65px; gap: 4px; align-items: center; padding: 0; font-size: 10px; line-height: 1.15; }
.composition-bar-label { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11.5px; line-height: 1.25; color: #666; }
.composition-category-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composition-bar-value { flex: 0 0 auto; font-size: 10px; font-weight: 400; white-space: nowrap; color: var(--site-muted); }
.composition-bar-track { position: relative; width: 65px; height: 8px; background: transparent; }
.composition-bar-fill { display: block; height: 100%; border-radius: 2px; }
.composition-national-marker { position: absolute; top: 0; height: 8px; width: 2px; background: #26384f; transform: translateX(-1px); }
.composition-bar-axis { display: flex; justify-content: space-between; color: #7f8c8d; font-size: 10px; }
@media (max-width: 850px) {
  html.full-page-explorer .dashboard-map-shell,
  html.full-page-explorer .dashboard-map-shell.network-active {
    flex-direction: column;
    height: auto;
  }
  html.full-page-explorer .dashboard-map-pane { height: 65dvh; flex: none; }
  html.full-page-explorer .dashboard-side-pane {
    flex: none;
    width: 100%;
    max-width: none;
    height: auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid #e1e5e9;
  }
}
.full-quarter-loading { display: flex !important; }
.network-renderer-panel:has(#full_bank_graph iframe) .full-quarter-loading { display: none !important; }
