body {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}

a {
  scroll-margin-top: 5rem;
}

.pagetext,
footer {
  line-height: 1.5;
}

html,
body,
.wrap-outer {
  height: 100%;
}

.wrap-outer {
  display: flex;
  flex-direction: column;
  z-index: 0;
  height: auto;
  min-height: 100vh;
}

header,
footer {
  flex-shrink: 0;
  text-align: center;
}

header .site-brand {
  font-size: 2rem;
}

.wrap-inner {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page,
footer > .grid {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
}

.pagetext {
  font-size: 1.25rem;
  text-align: justify;
}

.page {
  margin: 1rem 3%;
  padding: 2rem 2rem 1.25rem;
}
.page ol, .page ul {
  text-align: left;
}
.page .site-brand {
  display: block;
  margin: 0 auto 1em;
  font-size: 3rem;
  width: 10.143em;
}
.page .site-brand .site-motto {
  font-size: 1rem !important;
}
@media all and (max-width: 40rem) {
  .page .site-brand {
    font-size: 2.25rem;
  }
}
@media all and (max-width: 35rem) {
  .page .site-brand {
    font-size: 1.75rem;
  }
}
@media all and (max-width: 35rem) {
  .page .site-brand {
    font-size: 1.75rem;
  }
  .page .site-brand .site-motto {
    font-size: 0.75rem !important;
  }
}

nav ul {
  list-style: none;
}

p,
h2,
h3,
table {
  margin: 0 0 1rem 0;
}

ul.blank li, ol.blank li {
  margin-bottom: 1rem;
}

h1, h2, h3 {
  line-height: initial;
}

h1 {
  margin: 0 auto;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.75em;
}
h1:has(.subtitle) {
  margin-bottom: 0.5em;
}

.pagetext h2 {
  font-size: 1.375em;
}
.pagetext h3 {
  font-size: 1.125em;
}

@media all and (max-width: 48rem) {
  h1 {
    font-size: 1.5em;
  }
  .pagetext h2 {
    font-size: 1.125em;
  }
  .pagetext h3 {
    font-size: 1.0625em;
  }
}
@media all and (max-width: 38rem) {
  h1 {
    font-size: 1.25em;
  }
  .pagetext h2 {
    font-size: 1.125em;
  }
  .pagetext h3 {
    font-size: 1em;
  }
}
.nobreak,
.site-name {
  white-space: nowrap;
}

.site-name {
  font-weight: bold;
  font-size: 1.2em;
  word-spacing: -0.225em;
}

.subtitle {
  display: block;
  font-size: 0.75em;
}

.pagetext {
  display: flex;
  flex-direction: column;
}

.pagetext > * {
  order: 0;
}

.to-top {
  order: -1;
}

.to-bottom {
  order: 1;
}

@media all and (min-width: 48rem) {
  .pagetext {
    display: initial;
  }
}
.media {
  margin: 0 auto 1em;
}
.media picture, .media img {
  display: block;
  margin: 0 auto;
}
.media img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 75vw;
  max-height: 75vh;
}
.media.cap-height img {
  max-height: 35vh;
}
.media.cap-width img {
  max-width: 35vw;
}

@media all and (min-width: 48rem) {
  .img-left {
    float: left;
    max-width: 50%;
    margin: 0 1em 1em;
  }
  .img-right {
    float: right;
    max-width: 50%;
    margin: 0 1em 1em;
  }
}
.centered {
  text-align: center;
  clear: both;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  margin-left: auto;
  margin-right: auto;
}
table caption {
  padding: 0 0.5em 0.5em;
  font-weight: bold;
  font-size: 1.2em;
}
table th {
  font-weight: bold;
}
table th, table td {
  padding: 0.25em;
}
table img {
  max-width: inherit;
}

.pagetext ul,
.pagetext ol {
  padding: 0 0 0 1.5rem;
  margin-top: 0;
}
.pagetext ul.blank,
.pagetext ol.blank {
  padding: 0;
  margin-left: 0;
  list-style-type: none;
}
.pagetext ul li,
.pagetext ul li .list-label,
.pagetext ol li,
.pagetext ol li .list-label {
  display: list-item;
  margin-bottom: 0.5em;
}
.pagetext ul h3,
.pagetext ol h3 {
  margin-bottom: 0.5rem;
}
.pagetext ul.grid,
.pagetext ol.grid {
  text-align: center;
}

footer {
  padding-top: 1rem;
}
footer .grid > * {
  padding-bottom: 1em;
}
footer table {
  text-align: right;
}
footer table caption {
  padding: 0 0 0.5em;
  font-weight: bold;
  font-size: inherit;
}
footer table td {
  padding: 0 1em 0 0;
}

@media all and (min-width: 45rem) {
  footer .grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  footer .grid > * {
    padding-bottom: 0;
  }
  footer table {
    text-align: left;
  }
  footer table caption {
    display: none;
  }
}
