.post a {
  color: white;
  font-weight: normal;
  text-decoration: underline;
}

main#licence > header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

span.licence-icon > svg, span.licence-icon > img {
  display: inline;
  height: 2rem;
  width: 2rem;
  vertical-align: text-bottom;
}

#licence-tool-identifier {
  font-size: 2.1rem;
}

main#licence > header h1 {
  font-weight: normal;
  font-size: 2.5rem;
  text-align: center;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

main#licence h2 {
  font-size: 2.1rem;
  font-weight: normal;
  margin: 0;
}

#licence-tool-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  padding-top: 1em;
  padding-bottom: 1em;
}

#licence-meta-box {
  background-color: lightskyblue;
  border-radius: 5px;
  padding: 0.8em;
  color: black;
}

#licence-meta-box a {
  color: #903101;
}

#licence-deed-body {
  border: 5px solid white;
  border-top: 10px solid lightskyblue;
  padding: 3rem;
}

#licence-deed-body p, #licence-notice-bottom p, #licence-cc-attrib {
  font-style: normal;
  line-height: 150%;
}

#licence-deed-body p:last-child, #licence-notice-bottom p:last-child {
  margin-bottom: 0;
}

main#licence ul, main#licence ol {
  font-style: normal;
  line-height: 150%;
}

#licence-deed-body > ol {
  list-style: none;
}

#licence-deed-body > ol > li {
  clear: both;
  margin-bottom: 1em;
  min-height: 1em;
}

#licence-deed-body > ol > li:before {
  float: left;
  margin-left: -2.5em;
  height: 2em;
  width: 2em;
  content: '';
  background-repeat: no-repeat;
  background-size: contain;
}

#licence-term-by:before {
  /* Recolour SVG; see https://pqina.nl/blog/set-svg-background-image-fill-color/ */
  mask: url(/img/cc-icons.svg#cc-by);
  background-color: white;
}

#licence-term-nc:before {
  /* Recolour SVG; see https://pqina.nl/blog/set-svg-background-image-fill-color/ */
  mask: url(/img/cc-icons.svg#cc-nc);
  background-color: white;
}

#licence-term-nai:before {
  background-image: url(/img/licence-nai.png);
}

#licence-term-ns:before {
  background-image: url(/img/licence-ns.png);
}

#licence-notice-bottom {
  background-color: lightskyblue;
  color: black;
  margin-top: 1em;
  margin-bottom: 1em;
  padding: 1em;
}

#licence-footnotes {
  border-top: 2px solid white;
  padding-top: 1em;
  margin-top: 2em;
}

#licence-footnotes ul {
  font-size: 1rem;
}

#licence-footnotes > ul {
  list-style: none;
}

#licence-footnotes > ul > li {
  margin-bottom: 1em;
  margin-left: -2em;
}

@media screen and (min-width: 600px) {

  main#licence > header {
    padding: 3em;
  }

  span.licence-icon > svg, span.licence-icon > img {
    height: 2em;
    width: 2em;
  }

  #licence-tool-identifier {
    font-size: 2.1em;
  }

  main#licence > header h1 {
    font-size: 2.5em;
  }

  main#licence h2 {
    font-size: 2.1em;
  }

  #licence-tool-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding-top: 0em;
    padding-bottom: 0em;
  }

  #licence-meta-box {
    max-width: 50%;
  }

  #licence-meta-box a {
    color: #903101;
  }

  #licence-deed-body {
    border: 5px solid white;
    border-top: 10px solid lightskyblue;
    margin: 2em;
    padding: 3em;
  }

  #licence-deed-body p, #licence-notice-bottom p, #licence-cc-attrib {
    font-size: 1.5rem;
    font-style: normal;
    line-height: 150%;
    margin-bottom: 2em;
  }

  #licence-deed-body p:last-child, #licence-notice-bottom p:last-child {
    margin-bottom: 0;
  }

  main#licence ul, main#licence ol {
    font-style: normal;
    line-height: 150%;
  }

  #licence-deed-body > ol {
    list-style: none;
    margin-left: 2em;
    margin-right: 2em;
  }

  #licence-deed-body > ol > li:before {
    float: left;
    margin-left: -2.5em;
    height: 2em;
    width: 2em;
    content: '';
    background-repeat: no-repeat;
    background-size: contain;
  }

  #licence-deed-body > ol > li {
    font-size: 1.5rem;
    clear: both;
    margin-bottom: 2em;
    min-height: 2em;
  }

  #licence-term-by:before {
    /* Recolour SVG; see https://pqina.nl/blog/set-svg-background-image-fill-color/ */
    mask: url(/img/cc-icons.svg#cc-by);
    background-color: white;
  }

  #licence-term-nc:before {
    /* Recolour SVG; see https://pqina.nl/blog/set-svg-background-image-fill-color/ */
    mask: url(/img/cc-icons.svg#cc-nc);
    background-color: white;
  }

  #licence-term-nai:before {
    background-image: url(/img/licence-nai.png);
  }

  #licence-notice-bottom {
    background-color: lightskyblue;
    color: black;
    margin: 4em;
    padding: 3em;
  }

  #licence-cc-attrib {
    margin-left: 2em;
    margin-right: 2em;
  }

  #licence-footnotes {
    padding-top: 1em;
    border-top: 2px solid white;
    margin-left: 2em;
    margin-right: 2em;
  }

  #licence-footnotes ul {
    font-size: 1rem;
  }

  #licence-footnotes > ul {
    list-style: none;
  }

  #licence-footnotes > ul > li {
    margin-bottom: 2em;
  }
}
