:root {
  --color-bg: white;
  --color-text: #444;
  --color-table-bg: white;
  --color-table-bg--head: white;
  --color-table-bg--even: #fafafa;
  --color-table-text: #444444;
  --color-link-text: #444444;
  --color-link-text--visited: #262161;
  --color-search-text: #8e44ad;
  --color-search-bg: white;
  --color-search-border: rgba(0, 0, 0, .15);
  --color-search-border--focus: #8e44ad;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #222222;
    --color-text: #bbb;
    --color-table-bg: #222222;
    --color-table-bg--head: #181818;
    --color-table-bg--even: #333;
    --color-table-text: #ccc;
    --color-link-text: #3096d5;
    --color-link-text--visited: #9e4ebf;
    --color-search-text: #9e4ebf;
    --color-search-bg: #181818;
    --color-search-border: rgba(255, 255, 255, .15);
    --color-search-border--focus: #9e4ebf;
  }
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
}

table {
  width: 100%;
  background: var(--color-table-bg);
  border: 0;
  table-layout: auto;
  border-collapse: collapse;
}

table thead {
  background: var(--color-table-bg--head);
}

table tr th,
table tr td {
  padding: 1rem 2rem;
  font-size: 1rem;
  color: var(--color-table-text);
  text-align: left;
  line-height: 1.2;
}

table tr th.indexcollastmod,
table tr td.indexcollastmod {
  display: none;
}

table thead tr th {
  padding: 0.5rem 2rem;
  border-bottom: 2px solid #eeeeee;
  font-weight: 700;
  white-space: nowrap;
}

table tr.even {
  background: var(--color-table-bg--even);
}

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

a:hover {
  text-decoration: underline;
}

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

.img-wrap {
  vertical-align: middle;
  display: inline-block;
  margin-right: 8px;
  width: 24px;
  height: 24px;
}

.img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.img-wrap + a {
  display: inline-block;
  vertical-align: middle;
}

.hidden {
  display: none;
}

#page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 90px;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #eee;
}

#page-header::before {
  display: block;
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 16px;
  background: linear-gradient(90deg, #262161, #eb1c24);
  content: "";
}

#page-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

#main {
  min-height: calc(100vh - 291px);
  padding: 2rem 0;
}

#search {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-search-text);
  background-color: var(--color-search-bg);
  background-image: none;
  background-clip: padding-box;
  border: 1px solid var(--color-search-border);
  -webkit-appearance: textfield;
}

#search:focus {
  border-color: var(--color-search-border--focus);
  outline: 0;
}

#page-footer {
  min-height: 200px;
}

#logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background-color: #fafafa;
}

#logos img {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 auto;
}

#copyright {
  margin: 0;
  padding: 1rem 2rem;
  background-image: linear-gradient(90deg, #262161 0%, #EB1C24 100%);
  color: #fff;
  text-align: center;
}

@media (max-width: 992px) {
  #logos {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Hide extra columns so they don't squash file names */
@media (max-width: 768px) {
  table tr th,
  table tr td {
    padding: 1rem;
  }

  table thead tr th {
    padding: 0.5rem 1rem;
  }

  .indexcollastmod, .indexcoldesc, .indexcolsize {
    display: none;
  }

  #page-header {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 1rem 1rem;
  }
  
  #page-header h1 {
    font-size: 1.75rem;
    text-align: center;
  }

  #logos {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  #copyright {
    padding: 1rem;
  }
}
