.kwhr-slot {
  margin: 48px 0 58px;
}

#kwhr-heading {
  scroll-margin-top: 54px;
}

.kwhr {
  --kwhr-ink: #183b4e;
  --kwhr-muted: #536d79;
  --kwhr-line: #dce7eb;
  --kwhr-soft: #f1f8fa;
  color: var(--kwhr-ink);
}

.kwhr [hidden] {
  display: none !important;
}

.kwhr *,
.kwhr *::before,
.kwhr *::after {
  box-sizing: border-box;
}

.kwhr .kwhr__header {
  margin-bottom: 24px;
}

.kwhr .kwhr__kicker {
  margin: 0 0 8px;
  color: #187c90;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
}

.kwhr .kwhr__header h2 {
  margin: 0 0 14px;
  color: var(--kwhr-ink);
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.5;
}

.kwhr .kwhr__intro {
  max-width: 54em;
  margin: 0;
  color: var(--kwhr-muted);
  font-size: 16px;
  line-height: 1.85;
}

.kwhr .kwhr__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.kwhr .kwhr__sort {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--kwhr-line);
  border-radius: 12px;
  background: var(--kwhr-soft);
}

.kwhr .kwhr__sort button,
.kwhr .kwhr__toggle {
  appearance: none;
  margin: 0;
  color: var(--kwhr-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.kwhr .kwhr__sort button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.kwhr .kwhr__sort button:hover {
  background: #dceef3;
}

.kwhr .kwhr__sort button[aria-pressed="true"] {
  color: #fff;
  background: var(--kwhr-ink);
}

.kwhr a:focus-visible,
.kwhr button:focus-visible {
  outline: 3px solid #158da9;
  outline-offset: 4px;
}

.kwhr .kwhr__summary {
  margin: 0 0 16px;
  color: var(--kwhr-muted);
  font-size: 14px;
  line-height: 1.7;
}

.kwhr .kwhr__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kwhr .kwhr__row {
  display: grid;
  grid-template-columns: 44px 88px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--kwhr-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(24 59 78 / 3%);
}

.kwhr .kwhr__row::before,
.kwhr .kwhr__row::after {
  content: none;
}

.kwhr .kwhr__rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--kwhr-ink);
  font-size: 25px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.kwhr .kwhr__rank small {
  margin-top: 4px;
  color: var(--kwhr-muted);
  font-size: 11px;
  font-weight: 500;
}

.kwhr .kwhr__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid #e4edf0;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.kwhr .kwhr__photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.kwhr .kwhr__photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--kwhr-soft);
  font-size: 29px;
  line-height: 1;
}

.kwhr .kwhr__content {
  min-width: 0;
}

.kwhr .kwhr__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  min-width: 0;
}

.kwhr .kwhr__name {
  min-width: 0;
  color: var(--kwhr-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-decoration-color: #a9c4d1;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.kwhr .kwhr__name:hover {
  color: #126c85;
  text-decoration: underline;
}

.kwhr .kwhr__value {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 5px;
  color: var(--kwhr-ink);
  white-space: nowrap;
}

.kwhr .kwhr__value strong {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.kwhr .kwhr__value small {
  color: var(--kwhr-muted);
  font-size: 12px;
  font-weight: 500;
}

.kwhr .kwhr__location {
  margin: 4px 0 10px;
  color: var(--kwhr-muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.kwhr .kwhr__track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f5;
}

.kwhr .kwhr__bar {
  display: block;
  width: clamp(0%, var(--kwhr-width, 0%), 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--kwhr-color, #7dcbe5);
}

.kwhr .kwhr__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.kwhr .kwhr__toggle {
  max-width: 100%;
  min-height: 46px;
  padding: 11px 24px;
  border: 1px solid #9cb8c5;
  border-radius: 999px;
  background: #fff;
}

.kwhr .kwhr__toggle:hover {
  border-color: #508ca2;
  background: var(--kwhr-soft);
}

.kwhr .kwhr__note {
  align-self: stretch;
  margin: 0;
  color: var(--kwhr-muted);
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .kwhr .kwhr__header {
    margin-bottom: 20px;
  }

  .kwhr .kwhr__intro {
    font-size: 15px;
  }

  .kwhr .kwhr__toolbar,
  .kwhr .kwhr__sort {
    width: 100%;
  }

  .kwhr .kwhr__sort {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kwhr .kwhr__sort button {
    min-width: 0;
    padding: 10px 6px;
    font-size: 13px;
  }

  .kwhr .kwhr__summary {
    font-size: 13px;
  }

  .kwhr .kwhr__row {
    grid-template-columns: 28px 62px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 12px;
    border-radius: 10px;
  }

  .kwhr .kwhr__rank {
    font-size: 22px;
  }

  .kwhr .kwhr__photo {
    width: 62px;
    height: 76px;
    border-radius: 6px;
  }

  .kwhr .kwhr__photo-placeholder {
    font-size: 25px;
  }

  .kwhr .kwhr__label {
    flex-wrap: wrap;
    gap: 3px 8px;
  }

  .kwhr .kwhr__name {
    flex: 1 1 100%;
    font-size: 15px;
    line-height: 1.55;
  }

  .kwhr .kwhr__value strong {
    font-size: 21px;
  }

  .kwhr .kwhr__value small {
    font-size: 11px;
  }

  .kwhr .kwhr__location {
    margin-top: 3px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .kwhr .kwhr__track {
    height: 8px;
  }
}

@media (max-width: 360px) {
  .kwhr .kwhr__row {
    grid-template-columns: 24px 54px minmax(0, 1fr);
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .kwhr .kwhr__photo {
    width: 54px;
    height: 70px;
  }

  .kwhr .kwhr__rank {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kwhr .kwhr__sort button,
  .kwhr .kwhr__toggle {
    transition: none;
  }
}
