:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --accent: #0b3a67;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}

.container {
  width: min(1120px, 95vw);
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}

.site-title {
  margin: 0;
  padding: 0.75rem 0;
  font-size: 1.2rem;
}

.site-title a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-bottom: 0.85rem;
}

.site-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

.card {
  margin: 1.2rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

h2,
h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

th {
  background: #f1f5f9;
}

.sort-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.result-col {
  text-align: center;
}

.table-key {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

a {
  color: var(--accent);
}

.icon-link {
  text-decoration: none;
  font-size: 1.05rem;
}

.search-label {
  display: block;
  font-weight: 600;
}

.search-input {
  margin-top: 0.35rem;
  width: min(400px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
}

.run-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.run-meta dt {
  font-weight: 700;
}

.run-meta dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.75rem;
  border-radius: 6px;
  overflow-x: auto;
}

@media (max-width: 640px) {
  th,
  td {
    font-size: 0.88rem;
    padding: 0.4rem;
  }
}
