:root {
  --bg: #05060a;
  --bg-elevated: #0d1018;
  --accent: #7fffd4;
  --accent-soft: rgba(127,255,212,0.12);
  --text: #f5f7ff;
  --muted: #9aa2c3;
  --border: #252b3d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #101526 0, #05060a 55%);
  color: var(--text);
  line-height: 1.6;
}
body a, main a:visited {
  color: var(--accent);
  text-decoration: none;
}
body a:hover {
  text-decoration: underline;
}
.site-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, rgba(7,10,20,0.95), rgba(7,10,20,0.8));
  backdrop-filter: blur(12px);
}
.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .brand {
  display:flex;
  align-items:center;
  gap:.6rem;
  text-decoration:none;
  color:var(--text);
  font-size:.86rem;
}
.site-header .brand img {
  height: 26px;
}
.site-header nav a {
  color: var(--muted);
  text-decoration:none;
  margin-left:1rem;
  font-size:.86rem;
}
.site-header nav a:hover {
  color:var(--accent);
}
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
h1 {
  margin-top: 0;
}
.intro {
  color: var(--muted);
  max-width: 60rem;
}
.data-table {
  width:100%;
  border-collapse: collapse;
  margin:1rem 0 0.5rem;
  font-size:.8rem;
}
.data-table th, .data-table td {
  border:1px solid var(--border);
  padding:0.35rem 0.45rem;
  text-align:left;
}
.data-table th {
  background:rgba(255,255,255,0.02);
  font-weight:600;
}
.data-table tbody tr:nth-child(odd) {
  background:rgba(255,255,255,0.01);
}
@media (max-width: 780px) {
  .site-header nav { display:none; }
  .data-table th, .data-table td { font-size:.72rem; }
}

.filters {
  margin: 0.6rem 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}
.filters label {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.filters input,
.filters select {
  background: #05060a;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  font-size: .8rem;
}
.filters button {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .8rem;
  cursor: pointer;
}
.filters button:hover {
  background: rgba(127,255,212,0.22);
}

.data-table th {
  position: relative;
  cursor: pointer;
}
.data-table th::after {
  content: "⇅";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .65rem;
  opacity: 0;
}
.data-table th:hover::after {
  opacity: 0.4;
}
.data-table th[data-sort-dir="asc"]::after {
  content: "↑";
  opacity: 0.8;
}
.data-table th[data-sort-dir="desc"]::after {
  content: "↓";
  opacity: 0.8;
}

.filters button[type="button"] {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}
.filters button[type="button"]:hover {
  background: rgba(255,255,255,0.04);
}

/* TABLE BASE STYLES — updated padding */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;                     /* reduced from 1.5rem */
    font-size: 0.92rem;                 /* slightly smaller, reduces wrap */
    background: #15171a;
    border: 1px solid #26282c;
}

/* Header row */
.data-table thead th {
    background: #24262b;
    color: #d6d8de;
    font-weight: 700;
    padding: 6px 6px;                   /* reduced from 10px 8px */
    border-bottom: 1px solid #3a3d42;
    white-space: nowrap;                /* prevents word wrap */
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Body cells */
.data-table td {
    padding: 6px 6px;                   /* reduced from 8px 8px */
    border-bottom: 1px solid #26282c;
    color: #cacecf;
}
