/* stylesheet for W3C list archive index pages, https://lists.w3.org/ */

body {
  max-width: 50em;
  margin: auto;
}

h1, h2 {
  color: navy;
}

h3 {
  background-color: white; 
  color: gray;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  padding: 2px 0;
}

header {
  margin-left: 1em;
  margin-right: 1em;
}

div.half {
  float: left;
  width: 48%;
  padding-left: 2px;
  padding-right: 2px;
}

div#info h3, div#info-search h3 {
  text-indent: 2em;
  width: 90%;
}

h2 {
  clear: both;
}

nav#nav-archivelinks ul {
  margin: 0;
}

.section h3 {
  font-weight: normal;
  display: inline-block;
  border-top: none;
  border-bottom: none;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.section h3:before {
  left: -20px;
  top: 1em;
  content: "";
  display: block;
  background: url(https://www.w3.org/Icons/right) no-repeat 0em 0em;
  width: 17px;
  height: 11px;
  position: relative;
}

.section h3:after {
  content: ":";
  color: black;
}

.description {
  border-bottom: 1px dotted black;
  margin-right: 2em;
}

main {
  margin-left: 1em;
  margin-right: 1em;
}

.section {
  background: white;
  border: 1px dotted black;
  padding-left: 2em;
  padding-bottom: 1em;
}

.hmenu {
  display: inline-block;
  padding: 0;
  clear: both;
  margin: 0;
  margin-bottom: 0.5em;
}

.hmenu li {
  display: inline;
}

.hmenu li:not(:first-child):before {
  content: "• ";
  color: #777;
}

main, footer {
  padding-bottom: 2em;
}

footer p {
  margin: 0;
}

footer p.copyright {
  float: left;
}

footer p.status {
  float: right;
}

a:link {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:focus {
  outline: 2px auto;
  outline-offset: 1px;
  text-decoration: underline;
}

a:hover {
  color: #930;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* reduce margins on smaller devices */
@media only screen and (max-width: 32em) {
  body {
    margin: 0.5em;
  }

  div.half {
    width: 100%;
    float: none;
  }

  div#info h3, div#info-search h3 {
    text-indent: 0;
  }

  header, main {
    margin-left: 0.5em;
    margin-right: 0.5em;
  }

  .description {
    margin-right: 1.5em;
  }

  .hmenu {
    margin: 0.5em 0;
  }
 
  footer p.copyright {
    text-align: center;
    float: none;
    max-width: 20em;
    margin: auto;
    margin-bottom: 1em;
  }

  footer p.status {
    text-align: center;
    float: none;
  }

}

