:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #647087;
  --line: #dce2eb;
  --accent: #2856d6;
  --accent-soft: #edf2ff;
  --surface: #ffffff;
  --background: #f5f7fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(40, 86, 214, 0.09), transparent 32rem),
    var(--background);
  font-size: 1rem;
  line-height: 1.6;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) 0;
}

.site-header { max-width: 760px; }
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1, h2 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3.8rem); letter-spacing: -0.045em; }
h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
.introduction { margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; }

.table-section { margin-top: clamp(2.5rem, 6vw, 5rem); }
.site-footer {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0; }
.table-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.result-count { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }

.search-box {
  display: flex;
  align-items: center;
  width: min(100%, 360px);
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(27, 39, 73, 0.05);
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-box input {
  width: 100%;
  padding: 0.85rem 0.7rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.search-box:has(input:disabled) { opacity: 0.65; }
.search-box input:disabled { cursor: wait; }

.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(27, 39, 73, 0.08);
}
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 780px; border-collapse: collapse; text-align: left; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8f9fc; color: #4c576c; font-size: 0.84rem; letter-spacing: 0.025em; }
td { font-size: 0.95rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
th:nth-child(1), td:nth-child(1) { width: 13%; white-space: nowrap; }
th:nth-child(2), td:nth-child(2) { width: 22%; }
th:nth-child(3), td:nth-child(3) { width: 22%; }
a { color: var(--accent); font-weight: 650; text-underline-offset: 3px; }

.empty-state { padding: 4rem 1rem; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 0.25rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 660px) {
  .page-shell { width: min(100% - 1.25rem, 1180px); padding-top: 2rem; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  th, td { padding: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
