html, body {
  min-height: 100%;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  align-items: center;
  margin: 0;
  padding: 0;
}

article {
  background: #f8f8f8;
  padding: 1rem;
  flex-grow: 1;
  max-width: calc(100% - 2rem);
}

h1 {
  margin-top: 0;
}

@media(min-width: 1080px) {
  article > p, article > details {
    max-width: 50%;
  }
  
  article {
    width: 80%;
  }
}

summary {
  cursor: pointer;
}

dd p {
  margin: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 1rem 0;
}

.table {
  width: 100%;
  overflow-x: auto;
}

thead {
  border-bottom: 1px solid #888;
}

th {
   padding: 0 0.5rem;
}

tr:nth-child(2n+0) {
  background: #ddd;
}

td {
  text-align: center;
  padding: 0 0.5rem;
}

a, a:visited {
  color: #0056b3;
}

.icon {
    display: inline-block;
    line-height: .75em;
    width: 1em;
}

.icon svg {
    display: block;
}

.icon svg path {
    fill: currentColor;
}

.green.major {
  font-weight: bold;
  color: white;
  background: #0cce6b;
}

.orange.major {
  font-weight: bold;
  color: white;
  background: #ffa400;
  border-bottom: 2px solid #d04900;
}

.red.major {
  font-weight: bold;
  color: white;
  background: #ff4e42;
}

.green {
  color: #018642;
  border-bottom: 2px solid #018642;
}

.orange {
  color: #e69400;
  border-bottom: 2px solid #ffa400;
}

.red {
  color: #eb0f00;
  border-bottom: 2px solid #eb0f00;
}

.grey {
  border-bottom: 2px solid #666;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.notes {
  margin-top: 1rem;
}

.notes ul {
  padding-left: 0;
  margin-top: 0.5rem;
  list-style: none;
}

.key {
  float: right;
  background: white;
  border-radius: 3px;
  padding: 0.5rem;
}

.key .range:not(:last-child) {
  padding-right: 0.5rem;
}

.key .range span {
  display: inline-block;
  width: 1rem;
  height: 10px;
  border-radius: 5px;
  border: none;
}

@media(max-width: 720px) {
  .key {
    margin-top: 1rem;
    display: inline-block;
    float: none;
  }

  .wide {
    min-width: 12rem;
  }

  .wideish {
    min-width: 6rem;
  }
}
