@import url("language-switch.css");

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

html, body {
  margin: 0;
}

body {
  font-family: system-ui, sans-serif;
  background: #f4f5f7;
  color: #1a1a1a;
  padding: 32px 16px 48px;
  line-height: 1.5;
}

main {
  max-width: 53rem;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.brand img {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

h1 {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.github-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.github-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #444;
  text-decoration: none;
}

.github-links a:hover {
  background: #e8e8e8;
  color: #1a1a1a;
}

.github-links a:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 2px;
}

.github-links svg {
  display: block;
  width: 18px;
  height: 18px;
}

.lede {
  color: #444;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.lede a, .report-problem a, td.properties a {
  color: #0b57d0;
}

.updated {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 0.8rem;
  color: #555;
}

.updated time {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 2px 10px;
}

.navigation {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
}

.navigation button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #444;
  cursor: pointer;
}

.navigation button[aria-selected="true"] {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.navigation button:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 2px;
}

.tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
}

.tools-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.tools-row .search {
  flex: 1;
  max-width: 24rem;
}

.report-problem {
  margin: 16px 0 0;
  font-size: 0.85rem;
}

/* here */
.search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.search input {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: inherit;
}

.search input:focus-visible, #state-filters button:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 2px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

#state-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#state-filters button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #444;
  cursor: pointer;
}

#state-filters button[aria-pressed="true"] {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

#project-count, #holder-count {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
  font-variant-numeric: tabular-nums;
}

.empty {
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #444;
}

nav {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

nav a[hidden], nav[hidden] {
  display: none;
}

nav a:last-child, nav a.is-last {
  border-bottom: none;
}

nav a:hover {
  background: #f7f8fa;
}

.item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.name {
  font-weight: 550;
}

.props {
  color: #555;
  font-size: 0.8rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-construction {
  background: #f4efe4;
  color: #7a5b2e;
}

.tag-rental {
  background: #e7f2ea;
  color: #1d6b3a;
}

.tag-redeemed {
  background: #e8eef6;
  color: #1e4a7a;
}

.tags {
  align-items: center;
}

.rating {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.rating-high {
  background: #e7f2ea;
  color: #1d6b3a;
}

.rating-mid {
  background: #fff4d6;
  color: #8a5a00;
}

.rating-low {
  background: #fde8e8;
  color: #b42318;
}
