/* State and county rate tables. Shares the market hero and data table. */
body[data-section="rates"] .market-hero h1 {
  max-width: 28ch;
}

.table-wrap {
  overflow-x: auto;
}

table.sortable th button {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  text-align: inherit;
}

table.sortable th.num button {
  width: 100%;
  text-align: right;
}

.county-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.county-index li {
  display: flex;
  max-width: 100%;
  min-width: 0;
}

.county-index a {
  display: flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.county-index a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.county-index a:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

.rate-links {
  margin: 0;
  padding-left: 1.2em;
}

.rate-links li {
  margin: 0.35em 0;
}

.source-line {
  max-width: 78ch;
}

.error-msg {
  color: var(--negative);
  font-size: var(--text-sm);
  min-height: 1.2em;
}

#zip-result table {
  margin-top: var(--s-4);
}
