:root {
  --teal-dark: #0f626f;
  --teal-light: #cedfe1;
  --bar-black: #1a1a1a;
  --text-color: #222;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-color);
  line-height: 1.5;
}

.site-bar {
  background: var(--bar-black);
  color: #fff;
  padding: 0.75em 1.5em;
  font-size: 0.9em;
  display: flex;
  align-items: center;
}

.site-bar a,
.site-bar a:visited {
  color: #fff;
  text-decoration: none;
}

.site-bar a:hover {
  text-decoration: underline;
}

.push-right {
  margin-left: auto;
}

footer.site-bar {
  align-items: flex-start;
  gap: 0.3em;
  margin-top: 2em;
  font-size: 0.8em;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5em 1.5em 3em;
}

h1 {
  color: var(--teal-dark);
  font-size: 1.6em;
  margin-bottom: 0.5em;
}

h2, h3 {
  color: var(--teal-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 1em 0 2em;
}

.page-nav a, .page-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 4px;
  background: var(--teal-light);
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
}

.page-nav a:hover {
  background: var(--teal-dark);
  color: #fff;
}

.page-nav .current {
  background: var(--teal-dark);
  color: #fff;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid var(--teal-light);
}

.prev-next a {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: bold;
  text-decoration: none;
  padding: 0.5em 1em;
  border: 1px solid var(--teal-dark);
  border-radius: 4px;
}

.prev-next a:hover {
  background: var(--teal-dark);
  color: #fff;
}

.prev-next .spacer {
  visibility: hidden;
}

footer.site-bar a {
  color: #fff;
}

.module-block {
  display: block;
  background: var(--teal-dark);
  color: #fff;
  padding: 1em 1.5em;
  margin-bottom: 1.5em;
  text-decoration: none;
}

.module-block h3 {
  color: #fff;
}

.module-block:hover {
  background: #0c4d57;
}

.slideshow-static img {
  display: block;
  margin: 0 auto 1em;
  max-width: 100%;
}

.slideshow-static figure {
  margin: 0 0 1.5em;
  text-align: center;
}

.slideshow-static figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 0.3em;
}
