.navline {
  margin: 14px 0 0;
}

.navline a {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.index-hero h1 {
  max-width: 980px;
}

.index-controls {
  grid-template-columns: 160px 160px 220px 140px 1fr;
}

.index-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.index-panel,
.index-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

.index-panel {
  padding: 18px;
  position: sticky;
  top: 12px;
}

.mini-metrics {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mini-metrics div {
  padding: 10px;
  border: 1px solid #e3e9e5;
  border-radius: 7px;
  background: #fafbf8;
}

.mini-metrics strong {
  display: block;
  font-size: 14px;
}

.mini-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.index-table-wrap {
  overflow: hidden;
  padding: 16px;
}

.table-scroll {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid #e1e8e4;
  border-radius: 8px;
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1060px;
  background: #fff;
}

.geo-table th,
.geo-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf1ee;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.geo-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f8f5;
  color: #425047;
  font-size: 11px;
  text-transform: uppercase;
}

.geo-table tr:hover td {
  background: #f8fbf8;
}

.rank {
  font-weight: 900;
  color: var(--green);
}

.city-cell strong {
  display: block;
  font-size: 15px;
}

.city-cell span,
.route-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 7px;
  background: #edf5ef;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.index-score {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.question-cell {
  max-width: 320px;
  color: #3f4d46;
  line-height: 1.35;
}

@media (max-width: 1000px) {
  .index-layout { grid-template-columns: 1fr; }
  .index-panel { position: static; }
}

@media (max-width: 760px) {
  .index-controls { grid-template-columns: 1fr; }
}
