:root {
  --page-ink: #000;
  --link: #0068a7;
  --link-hover: #ea5f04;
  --shell-max: 990px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  color: var(--page-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt;
  line-height: 1.45;
  margin: 0;
  min-height: 100%;
}

.bg,
.legacy-bg {
  background-color: #080450;
  background-image: url("../images/template/bg.jpg");
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

a {
  color: var(--link);
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 3px;
}

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

p {
  margin: 0 0 1rem;
}

#wrapper,
.site-shell {
  background-color: transparent;
  background-image:
    image-set(
      url("../images/template/content_gradient.webp") type("image/webp"),
      url("../images/fallback/template/content_gradient.jpg") type("image/jpeg")
    ),
    linear-gradient(#fff, #fff);
  background-position: left 128px, left 128px;
  background-repeat: repeat-x, no-repeat;
  background-size: auto, 100% calc(100% - 128px);
  clear: both;
  margin: 0 auto;
  min-height: 70vh;
  padding: 0;
  position: relative;
  width: min(100%, var(--shell-max));
}

#wrapper::after {
  clear: both;
  content: "";
  display: block;
}

#header,
.legacy-header {
  background-color: transparent;
  background-image: url("../images/template/header.png");
  background-image: image-set(
    url("../images/template/header.webp") type("image/webp"),
    url("../images/template/header.png") type("image/png")
  );
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 990px 89px;
  clear: both;
  height: 128px;
  padding: 0;
  position: relative;
  width: 100%;
}

.brand-mark {
  display: block;
  font-size: 0;
  height: 100px;
  left: 0;
  line-height: 0;
  position: absolute;
  text-indent: -9999px;
  top: 0;
  width: 100%;
  z-index: 1;
}

.brand-mark picture,
.brand-mark img {
  display: none;
}

#nav {
  padding: 101px 0 0;
  position: relative;
  text-align: center;
  z-index: 2;
}

.primary-nav {
  display: block;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}

.primary-nav li {
  display: inline;
  list-style: none;
}

.primary-nav a {
  background: none;
  color: #fff;
  display: inline;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 5px;
  padding: 0 6px;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.active:hover {
  color: #ea5f04;
}

.primary-nav a.active {
  color: #fff;
}

.nav-toggle {
  background: #06115f;
  border: 1px solid #68a6d4;
  color: #fff;
  display: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.35rem 0.55rem;
  position: absolute;
  right: 0.65rem;
  top: 94px;
  z-index: 3;
}

#main,
.site-main {
  display: block;
  min-height: 450px;
  margin: 10px 0 0 10px;
  padding: 0 0 2rem;
  width: min(calc(100% - 20px), 950px);
}

.content-article {
  margin: 0;
  max-width: 950px;
  overflow-wrap: anywhere;
}

.page-title {
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7em;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0 0 0.28em;
}

.article-body {
  padding: 0;
}

.article-body img,
.article-body img[style] {
  height: auto !important;
  max-width: 100% !important;
}

.article-body a img {
  display: inline-block;
}

.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.article-body iframe {
  border: 0;
  max-width: 100%;
}

.article-body input[type="image"] {
  height: auto;
  max-width: 100%;
}

.static-missing-route {
  border: 1px solid #9db5d7;
  margin: 1rem 0;
  padding: 0.8rem;
}

.contact-form-panel {
  border: 1px solid #9db5d7;
  margin: 1rem 0;
  max-width: 520px;
  padding: 0.8rem;
}

.contact-form-panel h2 {
  font-size: 1.35em;
  line-height: 1.1;
  margin: 0 0 0.65rem;
}

.contact-form-status {
  color: #333;
}

.contact-form-panel input,
.contact-form-panel textarea {
  border: 1px solid #777;
  font: inherit;
  max-width: 100%;
  padding: 0.25rem;
  width: min(100%, 420px);
}

.contact-form-panel input:disabled,
.contact-form-panel textarea:disabled {
  background: #eee;
  color: #555;
}

.contact-form-panel button {
  background: #06115f;
  border: 1px solid #fff;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
}

.contact-form-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.required-indicator {
  color: #b00000;
}

.peachforms-honeypot {
  left: -10000px;
  position: absolute;
  top: auto;
}

.avPlayerWrapper {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.avPlayerContainer {
  max-width: 100%;
}

.avPlayerContainer iframe {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  margin: 0 auto;
  width: min(100%, 400px);
}

.legacy-block {
  clear: both;
  margin: 0 auto 2.1rem;
  overflow-wrap: anywhere;
}

.legacy-block.centered {
  text-align: center;
}

.legacy-block.compact-links p {
  margin-bottom: 0.4rem;
}

.mega-alert {
  color: #f00;
  font-size: 36pt;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.large-strong,
.headline-stack,
.quote-large {
  font-size: 24pt;
  line-height: 1.15;
}

.poes-gym-link a {
  color: #f00;
  display: inline-block;
  font-size: 36pt;
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
}

.anniversary {
  font-size: 18pt;
}

.orange-title {
  color: #f60;
  font-size: 24pt;
  font-weight: 900;
}

.legend-line {
  font-size: 18pt;
}

.drive-link a {
  color: #0068a7;
  font-size: 24pt;
}

.legacy-feature-image {
  display: block;
  margin: 0.9rem auto 1.35rem;
  max-height: none;
  width: min(100%, 580px);
}

.legacy-feature-image.portrait {
  width: min(100%, 576px);
}

.legacy-feature-image.small {
  width: min(100%, 410px);
}

.legacy-feature-image.banner {
  width: min(100%, 440px);
}

.legacy-image-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem auto;
}

.legacy-image-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legacy-image-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 840px;
}

.legacy-image-grid figure {
  margin: 0;
}

.legacy-image-grid img {
  display: block;
  margin: 0 auto;
  max-height: 250px;
  object-fit: contain;
}

.legacy-image-grid figcaption {
  font-style: italic;
  font-weight: 700;
  margin-top: 0.45rem;
}

.home-icon-row {
  align-items: start;
  gap: 1.35rem 1.75rem;
  grid-template-columns: repeat(4, 201px);
  justify-content: center;
  margin: 1.3rem auto 1.8rem;
  max-width: 900px;
  text-align: center;
}

.home-icon-row figure {
  display: grid;
  gap: 0.55rem;
  grid-template-rows: auto minmax(2.4em, auto);
}

.home-icon-row .image-crop {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #fff;
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.home-icon-row picture {
  display: block;
  height: 100%;
  width: 100%;
}

.home-icon-row img,
.home-icon-row img[style] {
  display: block;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
  width: 100% !important;
}

.home-icon-row .snake-thumb {
  object-position: 50% 34%;
}

.home-icon-row figcaption {
  align-self: start;
  font-size: 1em;
  line-height: 1.2;
  margin: 0;
}

.video-frame {
  aspect-ratio: 4 / 3;
  margin: 1rem auto 1.5rem;
  max-width: 520px;
  width: min(100%, 520px);
}

.video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.prose-page {
  max-width: 820px;
}

.bio-media {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: center;
}

.bio-media figure {
  margin: 0;
}

.bio-media img {
  max-height: 190px;
  object-fit: contain;
}

.bio-media figcaption {
  margin-top: 0.55rem;
}

.float-right {
  float: right;
  margin: 0.2rem 0 0.9rem 1rem;
}

.legacy-inline-image {
  max-width: min(248px, 45vw);
}

.legacy-inline-image.tall {
  max-width: min(178px, 42vw);
}

.vault-title {
  font-size: 2.6rem;
  text-decoration: underline;
}

.underlined {
  text-decoration: underline;
}

#footer,
.legacy-footer {
  background: #fff;
  color: #000;
  font-size: 0.8em;
  margin: 0 auto;
  padding: 10px 0;
  text-align: center;
  width: min(100%, var(--shell-max));
}

.legacy-footer img {
  display: block;
  margin: 0 auto 0.6rem;
  width: 100%;
}

.legacy-footer a {
  color: #0068a7;
}

.back-to-top {
  background: #06115f;
  border: 1px solid #fff;
  bottom: 1rem;
  color: #fff;
  opacity: 0;
  padding: 0.45rem 0.6rem;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(0.4rem);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.skip-link {
  background: #fff;
  border: 2px solid #111;
  color: #000;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: 1rem;
  transform: translateY(-160%);
  transition: transform 160ms ease;
  z-index: 20;
}

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

@media (max-width: 760px) {
  body {
    font-size: 10.5pt;
  }

  #header,
  .legacy-header {
    background-position: left bottom;
    background-size: auto 89px;
  }

  .brand-mark {
    height: 100px;
  }

  .nav-toggle {
    display: inline-block;
  }

  #nav {
    padding-top: 128px;
    text-align: left;
  }

  .primary-nav {
    background: #06115f;
    border-top: 1px solid #68a6d4;
    display: none;
    margin: 0;
    padding: 0.35rem 0;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav li {
    display: block;
  }

  .primary-nav a {
    display: block;
    margin: 0;
    padding: 0.5rem 0.75rem;
    white-space: normal;
  }

  #main,
  .site-main {
    margin: 10px auto 0;
    padding: 0 0.75rem 2rem;
    width: 100%;
  }

  .article-body span[style*="36pt"] {
    font-size: 28pt !important;
    line-height: 1.08 !important;
  }

  .article-body span[style*="24pt"] {
    font-size: 20pt !important;
    line-height: 1.12 !important;
  }

  .article-body span[style*="18pt"] {
    font-size: 15pt !important;
    line-height: 1.2 !important;
  }

  .legacy-image-grid.four-up,
  .home-icon-row,
  .legacy-image-grid.two-up,
  .bio-media {
    grid-template-columns: 1fr;
  }

  .float-right {
    float: none;
    margin: 0.75rem auto 1rem;
  }

  .legacy-inline-image,
  .legacy-inline-image.tall {
    display: block;
    max-width: min(100%, 320px);
  }
}

@media (min-width: 761px) {
  .primary-nav {
    display: block !important;
  }
}
