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

/* Links */

a:link,
a:visited {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 1px dotted var(--accent);
  outline-offset: 2px;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font:
    12px / 1.5 "JetBrains Mono",
    "Iosevka",
    monospace;
}

main {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Repository listing */

.list table {
  width: 100%;
  border: 1px solid var(--border-muted);
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.list th,
.list td {
  padding: 8px;
  border: none;
  text-align: left;
}

.list thead th {
  background: var(--surface);
  color: var(--accent);
}

.list tbody tr:nth-child(even) {
  background: var(--surface);
}

.list tbody tr:hover {
  background: var(--surface-hover);
}

.list table a {
  color: inherit;
  text-decoration: none;
}

.list table a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.list td:nth-child(2) {
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;

  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--border-muted);

  color: var(--foreground-muted);
  font-size: 10px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--link);
  text-decoration: none;
}

.footer a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.branch-selector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

select {
  appearance: none;
  -webkit-appearance: none;

  min-width: 100px;
  padding: 7px 30px 7px 10px;

  color: var(--branch-text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;

  font: inherit;
  font-weight: 700;
  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239eb2c3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.branch-selector select:hover {
  border-color: var(--accent);
}

.branch-selector select:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.branch-selector option {
  color: var(--text);
  background: var(--surface);
}
