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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f8f9fa;
  margin: 0 auto;
  padding: 2rem;
  max-width: 1400px;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  color: #16213e;
}

header p {
  margin: 0 0 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #555;
}

.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

#search {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 300px;
}

#search:focus {
  outline: 2px solid #4a90d9;
  outline-offset: 1px;
  border-color: #4a90d9;
}

#result-count {
  font-size: 0.85rem;
  color: #666;
}

.notice {
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  color: #856404;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #dee2e6;
  font-size: 0.875rem;
}

thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

th {
  background: #16213e;
  color: white;
  padding: 0.6rem 0.75rem;
  text-align: left;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-weight: 600;
}

th:hover {
  background: #1a2744;
}

th[aria-sort="ascending"]::after {
  content: " \25B2";
}

th[aria-sort="descending"]::after {
  content: " \25BC";
}

th[aria-sort="none"]::after {
  content: " \21C5";
  opacity: 0.4;
}

td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e9ecef;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
  font-size: 0.8rem;
}

tbody tr:nth-child(even) {
  background: #f8f9fa;
}

tbody tr:hover {
  background: #e3f2fd;
}
