.statistics-controls {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.statistics-controls label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.statistics-controls input {
  width: 140px;
}
.statistics-controls select {
  min-width: 165px;
}
.statistics-controls .text-button {
  min-height: 38px;
}
.statistics-controls p {
  margin-left: auto;
  align-self: center;
  font-size: 14px;
}
.km-explanation {
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 0;
  color: #394d5d;
}
.coverage {
  font-size: 13px;
  color: #526170;
  margin: 10px 0 18px;
  line-height: 1.6;
}
.leaders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.leader {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid #738b9e;
  border-radius: 5px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.leader h2 {
  font-size: 13px;
  font-weight: 600;
  color: #465c6c;
  line-height: 1.5;
}
.leader a {
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.leader a:hover {
  text-decoration: underline;
}
.leader strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.leader small {
  font-size: 12px;
  color: var(--muted);
}
.methodology {
  background: #e8edf2;
  border: 1px solid #c2ced8;
  border-radius: 5px;
  margin: 18px 0;
  font-size: 14px;
}
.methodology summary {
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}
.methodology > div {
  padding: 0 16px 12px;
}
.methodology p {
  line-height: 1.6;
  margin: 0 0 8px;
}
.statistics-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0;
  font-size: 13px;
}
.statistics-index a {
  text-decoration: none;
  border-bottom: 1px solid #a1b5c4;
  padding-bottom: 3px;
}
.rankings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.ranking-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 76px;
}
.ranking-panel.wide {
  grid-column: 1/-1;
}
.ranking-heading {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.ranking-heading h2 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 5px;
}
.ranking-heading p {
  font-size: 13px;
  color: #526170;
  line-height: 1.5;
}
.ranking-heading select {
  font-size: 13px;
  min-height: 32px;
  padding: 4px;
  max-width: 130px;
}
.ranking-scroll {
  overflow: auto;
  max-height: 390px;
}
.ranking-table {
  table-layout: auto;
  min-width: 520px;
  font-size: 14px;
}
.ranking-table th,
.ranking-table td {
  padding: 8px 12px;
  height: auto;
}
.ranking-table th {
  width: auto !important;
  font-size: 12px;
  white-space: nowrap;
}
.ranking-table th button {
  background: none;
  border: 0;
  font-weight: 600;
  font-size: inherit;
  padding: 2px 0;
  min-height: 28px;
}
.ranking-table th button:hover {
  text-decoration: underline;
}
.ranking-table td:first-child {
  font-size: 12px;
  color: #596979;
  width: 38px;
}
.ranking-table td:nth-child(2) {
  min-width: 160px;
}
.ranking-table .number {
  white-space: nowrap;
}
.ranking-table th[data-column="missingLengths"],
.ranking-table td[data-column="missingLengths"] {
  text-align: center;
  vertical-align: middle;
}
.ranking-table .rank-name {
  color: #23546c;
  font-size: 14px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-weight: 600;
  line-height: 1.4;
}
.ranking-table .rank-name:hover {
  text-decoration: underline;
}
.ranking-table .map-cell {
  white-space: nowrap;
  width: 1%;
}
.ranking-table .map-heading {
  text-align: center;
}
.ranking-table .map-link {
  font-size: 13px;
  text-decoration: none;
}
.ranking-table .map-link:hover {
  text-decoration: underline;
}
.ranking-table .metric-cell {
  min-width: 120px;
}
.rank-meter {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 4px;
  accent-color: #6a8295;
}
.rank-meter::-webkit-meter-bar {
  background: #e7ecf0;
  border: 0;
  border-radius: 1px;
}
.rank-meter::-webkit-meter-optimum-value {
  background: #718a9d;
}
.rank-meter::-moz-meter-bar {
  background: #718a9d;
}
.ranking-note {
  font-size: 12px;
  color: #526170;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.ranking-empty {
  padding: 24px;
  color: #526170;
}
.statistics-detail-content {
  padding: 18px 22px;
}
.statistics-detail-content h2 {
  font-size: 22px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.statistics-detail-content > p {
  font-size: 13px;
  line-height: 1.6;
  color: #526170;
  margin-bottom: 12px;
}
.statistics-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.statistics-detail-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #dce3e9;
  font-size: 14px;
}
.statistics-detail-list a {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.statistics-detail-list span {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.statistics-source-note {
  margin-top: 12px;
  font-size: 12px;
  color: #526170;
}
@media (max-width: 1100px) {
  .leaders {
    grid-template-columns: 1fr 1fr;
  }
  .rankings {
    grid-template-columns: 1fr;
  }
  .ranking-panel.wide {
    grid-column: auto;
  }
  .statistics-controls p {
    width: 100%;
    margin: 0;
  }
  .statistics-page .stats > div {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .statistics-controls {
    gap: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }
  .statistics-controls > div:first-child {
    grid-column: 1/-1;
  }
  .statistics-controls select,
  .statistics-controls input {
    width: 100%;
    min-width: 0;
  }
  .statistics-controls > p {
    grid-column: 1/-1;
  }
  .leaders {
    gap: 10px;
  }
  .leader {
    padding: 12px;
  }
  .leader h2 {
    font-size: 12px;
  }
  .leader a {
    font-size: 14px;
  }
  .leader strong {
    font-size: 19px;
  }
  .ranking-heading {
    padding: 12px;
  }
  .ranking-heading h2 {
    font-size: 16px;
  }
  .ranking-heading select {
    max-width: 105px;
  }
  .statistics-detail-content {
    padding: 14px 16px;
  }
}
