@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_thinitalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_xlight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_xlightitalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_lightitalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_bookitalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_mediumitalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_bolditalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_black.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_blackitalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_ultra.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('./images/Fonts/Gotham/gotham_ultraitalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-primary: #011836;
  --color-secondary: #162D51;
  --font-gotham: 'Gotham', sans-serif;
}

body {
  color: #fff;
  padding: 0px;
  margin: 0px;
  font-family: var(--font-gotham);
}

.container {
  font-family: var(--font-gotham);
  max-width: 989px;
  background-color: var(--color-primary);
  margin: 0 auto;
  text-align: center;
  padding: 0 0 30px;
}

.title {
  font-weight: 400;
  font-size: 40px;
  font-family: 'PT Serit', serif !important;
}

.map-toolbar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(420px, calc(100% - 32px));
  padding: 0 16px;
  margin: 0;
  box-sizing: border-box;
  pointer-events: none;
}


.map-toolbar .choices {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  min-width: 0;
  margin-bottom: 0;
  pointer-events: auto;
  border-radius: 10px;
}

.map-toolbar .choices__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 44px;
  padding-bottom: 0;
  box-sizing: border-box;
  border: 1px solid #c5ced6;
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 20px;
  line-height: 1.25;
  color: #4E4E56;
  vertical-align: unset;
}

.map-toolbar .choices__list--single {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.map-toolbar .choices__list--single .choices__item {
  padding: 0;
  line-height: 1.25;
  text-align: left;
}

.choices__placeholder {
  opacity: 1
}

.map-toolbar .choices__inner::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001A4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.6 7-11a7 7 0 1 0-14 0c0 5.4 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  pointer-events: none;
}

.map-toolbar .choices.is-open .choices__inner {
  border-color: #001A4B;
}

.map-toolbar .choices[data-type*='select-one'] .choices__inner {
  padding-bottom: 0;
  padding-right: 44px;
}

.map-toolbar .choices[data-type*='select-one']::after {
  border-color: #001A4B transparent transparent transparent;
  right: 16px;
  top: 50%;
  bottom: auto;
  margin-top: -2.5px;
  /* background-image: url('./images/arrow.svg');
  background: no-repeat center / contain; */
}

.map-toolbar .choices[data-type*='select-one'].is-open::after {
  margin-top: -7.5px;
  border-color: transparent transparent #001A4B transparent;
}

.map-toolbar .choices__list--dropdown,
.map-toolbar .choices__list[aria-expanded] {
  border: 1px solid #c5ced6;
  border-radius: 6px;
  color: var(--color-secondary);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 30;
  text-align: left;
}

.map-toolbar .choices__list--dropdown .choices__item--selectable {
  padding: 10px 14px;
}

.map-toolbar .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: var(--color-secondary);
  color: #ffffff;
}



#map {
  position: relative;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

#map>svg {
  display: block;
  position: relative;
  z-index: 1;
}

#map .map-layer path {
  stroke: #ffffff;
  stroke-width: 0.15;
}

#map .map-layer path:hover {
  stroke: #ffffff;
  stroke-width: 0.25;
}

#map .map-tooltip {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  transform: translate(-50%, -100%);
  background: #ffffff;
  color: #495057;
  padding: 12px 14px;
  min-width: 132px;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

#map .map-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

#map .map-tooltip-rank {
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: #B8A46C;
  text-align: left;
}

#map .map-tooltip-name {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 400;
  color: #2f3640;

}

#map .map-tooltip-region {
  margin-top: 8px;
  font-size: 14px;
  color: #646d76;
}

.map-legend-wrap {
  position: static;
  pointer-events: none;
  z-index: 22;
}

.map-legend {
  position: absolute;
  right: 40px;
  bottom: 200px;
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.map-legend-first {
  width: 9px;
  height: 40px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  background-color: #E7D6A7;
  border: 1px solid #000000;
}

.map-legend-second {
  width: 9px;
  height: 40px;
  background-color: #CFBB7E;
  border: 1px solid #000000;
}

.map-legend-third {
  width: 9px;
  height: 40px;
  background-color: #B8A46C;
  border: 1px solid #000000;
}

.map-legend-fourth {
  width: 9px;
  height: 40px;
  background-color: #A29574;
  border: 1px solid #000000;
}

.map-legend-fifth {
  width: 9px;
  height: 40px;
  background-color: #8B8A82;
  border: 1px solid #000000;
}

.map-legend-sixth {
  width: 9px;
  height: 40px;
  background-color: #748393;
  border: 1px solid #000000;
}

.map-legend-seventh {
  width: 9px;
  height: 40px;
  background-color: #5F7697;
  border: 1px solid #000000;
}

.map-legend-eighth {
  width: 9px;
  height: 40px;
  background-color: #4A6793;
  border: 1px solid #000000;
}

.map-legend-ninth {
  width: 9px;
  height: 40px;
  background-color: #36578A;
  border: 1px solid #000000;
}

.map-legend-tenth {
  width: 9px;
  height: 40px;
  background-color: #26477D;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border: 1px solid #000000;
}




.map-legend-high,
.map-legend-low {
  position: absolute;
  font-size: 12px;
  writing-mode: vertical-rl;
  transform: rotate(360deg);
  letter-spacing: 0.05em;
  padding: 10px;
  /* height: 100px; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 22;
}

.map-legend-high {
  right: 50px;
  top: 80px;
}

.map-legend-low {
  right: 50px;
  bottom: 190px;
}


.map-legend-bar {
  width: 14px;
  height: 180px;
  /* vertical height */
  border-radius: 4px;
  border: 1px solid rgba(0, 26, 75, 0.2);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.map-zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 40px;
  z-index: 23;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.map-zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #4E4E56;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 26, 75, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  padding-bottom: 2px;
  pointer-events: auto;
}

.map-zoom-btn:hover {
  background: #f4f7fb;
  box-shadow: 0 3px 14px rgba(0, 26, 75, 0.18);
}

.map-zoom-btn:active {
  transform: scale(0.97);
  background: #eef2f8;
}

@media (max-width: 720px) {
  .map-legend-wrap {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 4px 8px;
    align-items: center;
  }

  .map-legend-high,
  .map-legend-low {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    padding: 0;
    height: auto;
    font-size: 8px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .map-legend-high {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    right: auto;
    top: auto;
  }

  .map-legend-low {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    right: auto;
    bottom: auto;
  }

  .map-legend {
    position: static;
    right: auto;
    bottom: auto;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row-reverse;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
  }

  .map-legend-bar {
    flex: 1 1 auto;
    min-width: 72px;
    max-width: 160px;
    height: 12px;
  }

  .map-zoom-controls {
    bottom: 56px;
    right: 8px;
  }

  .map-zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-width: 2px;
  }
}

.rank-table-wrap {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  /* Sticky header + ~10 body rows visible; scroll for remaining rows */
  max-height: min(500px, 78vh);
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 0 30px;
}

#rank-table {
  width: 100%;
}

.rank-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  text-align: left;
}

.rank-table-rank {
  position: relative;
  font-weight: 400;
}

.rank-table-rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--rank-accent-color, transparent);
}

.rank-table tbody tr.rank-table-accent-first td.rank-table-rank::before {
  border-top-left-radius: 4px;
}

.rank-table tbody tr.rank-table-accent-last td.rank-table-rank::before {
  border-bottom-left-radius: 4px;
}

.rank-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.02em;
  padding: 10px 6px;
  /* border-right: 1px solid rgba(255, 255, 255, 0.12); */
  text-align: center;
  vertical-align: bottom;
  white-space: normal;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
}

.rank-table-th-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-items: flex-start;
  /* min-height: 3.25rem; */
}

.rank-table thead th:first-child .rank-table-th-inner,
.rank-table thead th:nth-child(2) .rank-table-th-inner {
  align-items: flex-start;
  min-height: 0;
}

.rank-table-th-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.rank-table-th-label {
  display: block;
  text-align: center;
  font-weight:400;
}

.rank-table-th-sortable {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}



.rank-table-th-sortable:focus {
  outline: none;
}

.rank-table-th-sortable:focus-visible {
  outline: 2px solid #e8e4d4;
  outline-offset: -2px;
}

.rank-table thead th:first-child {
  width: 11%;
  text-align: left;
}

.rank-table thead th:nth-child(2) {
  width: 26%;
  text-align: left;
}

.rank-table tbody td {
  padding: 15px 6px;
  border-right: 1px solid #021B3C;
  color: #fff;
  font-size: 12px;
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}

.rank-table tbody td:not(.rank-table-rank):not(.rank-table-name) {
  font-size: 11px;
}

.rank-table-cell-value {
  display: inline;
}

.rank-table-city {
  font-weight: 400;
  color: #fff;
}

.rank-table-region-sep,
.rank-table-region-part {
  font-weight: 400;
  color: #fff;
}

/* Alternating row backgrounds follow visible rows when the region filter is active. */
.rank-table tbody tr.rank-table-band-b td {
  background: #0A2448
}

.rank-table tbody tr.rank-table-band-a td {
  background: var(--color-secondary)
}

.rank-table tbody tr.rank-table-first-row td.rank-table-rank,
.rank-table tbody tr.rank-table-first-row td.rank-table-rank .rank-table-cell-value {
  color: inherit;
}

.rank-table tbody tr.rank-table-first-row td {
  background: var(--color-secondary)
}

/* .rank-table-name {
  font-weight: 700;
} */

.rank-table-region {
  color: #fff;
}

@media (max-width: 720px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .container {
    box-sizing: border-box;
  }

  .heading {
    padding: 12px 8px;
  }

  .header-text {
    font-size: 18px;
    line-height: 1.1;
  }

  .header-desc {
    font-size: 12px;
    line-height: 1.45;
  }

  .header-desc br {
    display: none;
  }

  #map {
    min-height: 450px;
  }

  .map-toolbar {
    top: 10px;
    width: calc(100% - 20px);
    max-width: none;
    padding: 0 10px;
  }

  .map-toolbar .choices {
    max-width: none;
  }

  .map-toolbar .choices__inner {
    font-size: 15px;
    min-height: 42px;
    padding: 0 40px 0 40px;
  }

  .rank-table-wrap {
    padding: 0;
    width: 100%;
    max-width: none;

    max-height: min(72vh, 580px);

    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #rank-table {
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .rank-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
    max-width: none;
    background: #ffffff;
  }

  .rank-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
  }

  .rank-table thead th {
    font-weight: 400;
    font-size: 9px;
    letter-spacing: 0.04em;
    padding: 14px 8px 12px;
    /* border-right: 1px solid rgba(255, 255, 255, 0.18); */
    border-bottom: none;
    vertical-align: bottom;
  }

  .rank-table thead th:last-child {
    border-right: none;
  }

  .rank-table thead th:first-child,
  .rank-table tbody td:first-child {
    min-width: 52px;
    max-width: 64px;
    width: 52px;
    box-sizing: border-box;
  }

  .rank-table thead th:nth-child(2),
  .rank-table tbody td:nth-child(2) {
    width: 130px;
    box-sizing: border-box;
  }

  .rank-table thead th:nth-child(n + 3),
  .rank-table tbody td.rank-table-metric {
    min-width: 80px;
    max-width: 100px;
    box-sizing: border-box;
  }

  .rank-table tbody {
    display: table-row-group;
    font-weight: 400;
  }

  .rank-table tbody tr {
    display: table-row;
  }

  .rank-table tbody td {
    display: table-cell;
    padding: 14px 10px;
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
    font-size: 13px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .rank-table tbody td:last-child {
    border-right: none;
  }

  .rank-table tbody td.rank-table-rank {
    font-size: 13px;
  }

  .rank-table tbody td.rank-table-rank .rank-table-cell-value {
    font-size: 13px;
  }

  .rank-table tbody td.rank-table-name {
    font-size: 13px;
  }

  /* 
  .rank-table tbody td.rank-table-metric {
    text-align: center;
  } */

  .rank-table tbody td.rank-table-metric .rank-table-cell-value {
    font-weight: 400;
    color: #fff;
    font-size: 13px;
  }

  .map-legend-first,
  .map-legend-second,
  .map-legend-third,
  .map-legend-fourth,
  .map-legend-fifth,
  .map-legend-sixth,
  .map-legend-seventh,
  .map-legend-eighth,
  .map-legend-ninth,
  .map-legend-tenth {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 12px;
    border-radius: 0;
  }

  .map-legend-first {
    background-color: #E7D6A7;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
  }

  .map-legend-second {
    background-color: #CFBB7E;
  }

  .map-legend-third {
    background-color: #B8A46C;
  }

  .map-legend-fourth {
    background-color: #A29574;
  }

  .map-legend-fifth {
    background-color: #8B8A82;
  }

  .map-legend-sixth {
    background-color: #748393;
  }

  .map-legend-seventh {
    background-color: #5F7697;
  }

  .map-legend-eighth {
    background-color: #4A6793;
  }

  .map-legend-ninth {
    background-color: #36578A;
  }

  .map-legend-tenth {
    background-color: #26477D;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
  }

  .rank-table-th-icon {
    display: block;
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .main-logo {
    width: 200px;
  }

  .container {
    padding: 0px;
  }
}