:root {
  --table-row-odd-bg-color: #28282870;
  --table-row-hover-bg-color: #36363670;
}

header {
  padding: 1.6em 2em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2em;

  // Container is reused elsewhere, so this must be declared here
  nav {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: right;
    gap: 1em 1em;
    margin: 0;
  }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

@media only screen and (max-width: 1000px) {
  header {
    display: inline-block;
    margin-bottom: 1.6em;
    max-height: 60px;

    nav {
      float: right;
      padding: 0 0.6em;
      line-height: 3.2;
    }
  }
}

.content {
  flex-grow: 1;
  padding: 2em 3em;

  &--reversed {
    background: $foreground;
    color: $background;
  }
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 1em;
  margin: 0 0 20px;
  width: 100%;
}

tbody tr:nth-of-type(odd) {
  background: var(--table-row-odd-bg-color);
}

tbody tr:hover {
  background: var(--table-row-hover-bg-color);
}

caption,
td,
th {
  padding: 8px;
}

td,
th {
  border: 1px solid #ddd;
  border-bottom: 3px solid #ddd;
}

th {
  font-weight: 700;
  padding-bottom: 10px;
}

td {
  border-bottom-width: 1px;
}

@media (max-width: 960px) {
  .content {
    padding: 0 1em;
  }
}

footer {
  text-align: center;
  padding: 2rem 3rem;

  p.links a {
    display: inline-block;
  }
}
