/* reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* layout */
body {
  font-family: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: none;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  color: #1a1a1a;
  background: #fafafa;
  font-size: 15px;
  line-height: 1.6;
}

/* header */
header {
  position: relative;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: .75rem;
}

header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 5rem;
  margin-bottom: 3rem;
  color: #231cff;
}

.subtitle {
  font-size: 1rem;
  color: #3b35ff;
}

.subtitle em {
  font-style: normal;
  color: black;
}

#stats {
  font-family: "Space Grotesk", sans-serif;
  font-size: .85rem;
  color: #3d809a;
  margin-top: .3rem;
}

/* github link */
.gh-link {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: .85rem;
  color: #555;
  text-decoration: none;
}

.gh-link:hover {
  color: #0969da;
}

/* filters */
.filters {
  font-family: "Space Grotesk", sans-serif;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #eee;
  font-size: .85rem;
  color: #555;
}

.filters label {
  display: flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}

/* links */
a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* badges */
.badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: .8rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.b-ok { background: #d1fae5; color: #065f46; }
.b-zombie { background: #fef3c7; color: #92400e; }
.b-inactive { background: #e5e7eb; color: #374151; }
.b-failing { background: #fee2e2; color: #991b1b; }
.b-archived { background: #e0e7ff; color: #3730a3; }

/* table container */
#table {
  width: 100%;
  overflow-x: auto;
}

/* gridjs tweaks */
.gridjs-container {
  width: 100%;
  font-size: 14px;
}

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

.gridjs-table {
  min-width: 1200px; /* prevents squashing */
}

.gridjs-td,
.gridjs-th {
  padding: 8px 16px !important;
  white-space: nowrap;
}

/* monospace for repo names */
.gridjs-td:nth-child(2) {
  font-family: "Inconsolata", monospace;
  font-weight: 500;
}

/* First column spacing */
.gridjs-td:first-child,
.gridjs-th:first-child {
  min-width: 100px !important;
}

/* Column spacing */
.gridjs-td,
.gridjs-th {
  min-width: 130px !important;
}

/* Don't make the drag handle wide */
.gridjs-th.gridjs-resizable {
  min-width: initial !important;
}
