.sitemap-tools {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid oklch(0.92 0.005 60);
  background: white;
}

.sitemap-tools__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 780px) {
  .sitemap-tools__row {
    grid-template-columns: minmax(240px, 2fr) auto auto auto;
    align-items: center;
  }
}

.sitemap-tools__search {
  width: 100%;
  min-height: 44px;
  border: 1px solid oklch(0.86 0.01 250);
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  font: inherit;
}

.sitemap-tools__search:focus-visible {
  outline: 2px solid oklch(0.82 0.16 65);
  outline-offset: 1px;
  border-color: var(--color-brand, #F97316);
}

.sitemap-chip {
  min-height: 40px;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  border: 1px solid oklch(0.85 0.01 250);
  background: white;
  color: oklch(0.28 0.015 250);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
}

.sitemap-chip.is-active {
  border-color: var(--color-brand, #F97316);
  background: oklch(0.97 0.04 75);
  color: oklch(0.32 0.08 55);
}

.sitemap-tools__meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  font-size: 0.88rem;
  color: oklch(0.4 0.01 250);
}

.sitemap-tools__meta strong {
  color: oklch(0.22 0.015 250);
}

.sitemap-groups {
  display: grid;
  gap: 1rem;
}

.sitemap-group {
  border: 1px solid oklch(0.92 0.005 60);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}

.sitemap-group__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid oklch(0.93 0.005 60);
  background: oklch(0.98 0.004 60);
}

.sitemap-group__head h3 {
  margin: 0;
  font-size: 1rem;
}

.sitemap-group__count {
  font-size: 0.8rem;
  color: oklch(0.45 0.01 250);
  border: 1px solid oklch(0.88 0.01 250);
  border-radius: 999px;
  padding: 0.15rem 0.54rem;
  background: white;
}

.sitemap-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-links li + li {
  border-top: 1px solid oklch(0.95 0.005 60);
}

.sitemap-links a {
  display: block;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem 0.95rem;
}

.sitemap-links a:hover,
.sitemap-links a:focus-visible {
  background: oklch(0.98 0.02 75);
  outline: none;
}

.sitemap-links__title {
  display: block;
  font-weight: 600;
  color: oklch(0.21 0.015 250);
}

.sitemap-links__url {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.83rem;
  color: oklch(0.43 0.01 250);
  word-break: break-word;
}

.sitemap-links__meta {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.76rem;
  color: oklch(0.5 0.01 250);
}

.sitemap-empty {
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 12px;
  border: 1px dashed oklch(0.86 0.01 250);
  background: white;
  color: oklch(0.38 0.01 250);
}
