/*
 * Jemdoc-style academic page foundation.
 * Reimplemented for this site from the visual conventions of legacy Jemdoc.
 */

html {
  background-color: #eeeeee;
}

body {
  max-width: 960px;
  margin: 30px auto;
  padding: 10px 50px 30px;
  background-color: #ffffff;
  color: #000000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-align: left;
}

a {
  color: #224b8d;
  text-decoration: none;
}

a:hover {
  border-bottom: 1px dotted #808080;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #224b8d;
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin-top: 0.7em;
  margin-bottom: 0.5em;
  padding-top: 0.5em;
  padding-bottom: 0.2em;
  color: #527bbd;
  line-height: 1;
}

h1,
h2 {
  border-bottom: 1px solid #aaaaaa;
}

h1 {
  padding-bottom: 0.3em;
  font-size: 165%;
}

h2 {
  padding-top: 0.8em;
  font-size: 125%;
}

h2 + h3 {
  padding-top: 0.2em;
}

h3 {
  border-bottom: 0;
  font-size: 110%;
}

h4 {
  border-bottom: 0;
  font-size: 105%;
}

p {
  margin-top: 0;
  margin-bottom: 0.8em;
  padding: 0;
  line-height: 1.3;
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

ul,
ol,
dl {
  margin-top: 0.2em;
  margin-bottom: 0.8em;
  padding-top: 0;
}

ul {
  list-style-position: outside;
  list-style-type: square;
}

ol {
  list-style-position: outside;
  list-style-type: decimal;
}

p + ul,
p + ol {
  margin-top: -0.5em;
}

li {
  margin-top: 0.9em;
}

img {
  border: 0;
}

#layout-content {
  border: 0;
  background: #ffffff;
  text-align: left;
  vertical-align: top;
}

div#toptitle {
  margin-bottom: 1.5em;
  padding-bottom: 0.2em;
}

div#toptitle + h2,
div#toptitle + h3 {
  margin-top: 0;
}

div#toptitle h1,
#layout-content div#toptitle h1 {
  margin-top: 0.5em;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0.1em;
  border-bottom: 0;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-160%);
  border: 1px solid #224b8d;
  background: #ffffff;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

@media print {
  html,
  body {
    background: #ffffff;
  }

  body {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  a {
    color: #000000;
  }
}
