@import "./normalize.scss", "./text.scss";

body {
  background-color: var(--body-bg);
  color: var(--body-color);
}

.post-preview {
  h3.post-title {
    margin-bottom: 0;
  }

  .summary {
    margin-top: 0.8rem;
  }

  margin-bottom: 2rem;
}

.post-title {

  .tags {
    > *:not(:last-child) {
      margin-right: 0.25rem;
    }
  }

  > h1 {
    margin-bottom: 0.4rem;
  }

  margin-bottom: 3rem;
}

.footer-rule {
  margin-top: 4rem;
}

.related-container {
  margin-top: 3rem;
  margin-bottom: 4rem;
  display: flex;
  text-align: center;

  > .link {
    flex-shrink: 0;
    padding: 1rem;
    box-sizing: border-box;
    width: 50%;
  }
}

.footer-about {
  text-align: center;
  font-size: 1rem;
  padding: 0 1rem;
}

img {
  max-width: 100%;
  margin: auto;
  border: solid rgba(0, 0, 0, 0.04);
}

.taxonomy-name {
  text-transform: capitalize;
}

.taxonomy-container {
  display: flex;
  flex-wrap: wrap;

  > .term:not(:last-child) {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }
}

table {
  border-collapse: collapse;
  margin: 25px auto;
  font-size: 0.9em;
  font-family: sans-serif;
  min-width: 400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

thead tr {
  background-color: var(--accent-color);
  color: var(--accent-overlay-color);
  text-align: left;
}

table th,
table td {
    padding: 10px 12px;
}


table tbody tr {
    border-bottom: 1px solid var(--table-border-bottom);
}

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

table tbody tr:last-of-type {
    border-bottom: 2px solid var(--accent-color);
}
