:root {
  --text: #333;
  --muted: #767676;
  --border: #eee;
  --link: #222;
  --green: #19a974;
  --wrap: min(1000px, calc(100% - 3em));
  --content: min(740px, calc(100% - 3em));
  --font: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.66;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #000;
  box-shadow: inset 0 -1px 0 currentcolor;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: #222;
  transform: translateY(-160%);
}

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

.custom-header {
  position: relative;
  height: 35vh;
  min-height: 250px;
  overflow: hidden;
  background: #ddd;
}

.custom-header-media {
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/header.jpg");
  background-position: center center;
  background-size: cover;
}

.site-branding {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.4em 0;
}

.custom-logo {
  display: block;
  width: auto;
  max-width: min(419px, 72vw);
  max-height: 82px;
  object-fit: contain;
}

.navigation-top {
  position: sticky;
  z-index: 50;
  top: 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.navigation-inner {
  min-height: 60px;
  display: flex;
  align-items: stretch;
}

.navigation-inner a {
  padding: 1.35em 1.25em;
  display: flex;
  align-items: center;
  color: #222;
  font-size: 14px;
  font-weight: 800;
}

.navigation-inner a:first-child {
  padding-left: 0;
}

.navigation-inner a:hover,
.navigation-inner a:focus {
  color: var(--green);
  box-shadow: none;
}

.front-page-section {
  scroll-margin-top: 60px;
}

.panel-content {
  background: #fff;
}

.content-wrap {
  width: var(--content);
  margin-inline: auto;
  padding-block: 5em;
}

.entry-content {
  overflow-wrap: break-word;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  padding: 1.5em 0 0;
  clear: both;
  color: #222;
  font-weight: 300;
  line-height: 1.25;
}

.entry-content h1 {
  margin: 0 0 0.75em;
  padding-top: 20px;
  font-size: 30px;
  text-align: center;
}

.entry-content h2 {
  margin: 0 0 0.75em;
  padding-top: 0.7em;
  font-size: 26px;
}

.entry-content p {
  margin: 0 0 1.5em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.35em;
}

.entry-content li > ul {
  margin-top: 0.35em;
  margin-bottom: 0.75em;
}

.entry-content a {
  box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 1);
  transition: color 80ms ease, box-shadow 80ms ease;
}

.entry-content a:hover,
.entry-content a:focus {
  color: #000;
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 #000;
}

.section-label {
  margin-top: -24px !important;
}

.development-list {
  padding-left: 2em !important;
}

.panel-image {
  height: 30vh;
  min-height: 220px;
  max-height: 360px;
  scroll-margin-top: 60px;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.training-image {
  background-image: url("/assets/images/training-panel.jpg");
}

.contact-image {
  background-image: url("/assets/images/contact-panel.jpg");
}

.module-banner {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 2.3em auto 0.45em;
  display: block;
}

.contact-content {
  padding-bottom: 6em;
}

.contact-content h1 a {
  word-break: break-word;
}

.site-footer {
  padding: 3em 0;
  border-top: 1px solid #eee;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2em;
}

.site-footer nav {
  display: flex;
  gap: 1.5em;
}

.site-footer a {
  color: var(--muted);
}

.legal-page {
  min-height: 100vh;
}

.legal-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.legal-header .header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
}

.legal-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: none;
}

.legal-header .brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #bbb;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 21px;
}

.legal-header .brand-copy {
  display: grid;
  line-height: 1.15;
}

.legal-header .brand-copy small {
  color: var(--muted);
}

.legal-main {
  width: var(--content);
  margin-inline: auto;
  padding-block: 5em;
}

.legal-main h1 {
  margin: 0 0 1em;
  color: #222;
  font-size: 36px;
  font-weight: 300;
}

.legal-main h2 {
  margin-top: 2em;
  color: #222;
  font-size: 24px;
  font-weight: 300;
}

.section-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draft-note {
  padding: 1.4em;
  border-left: 4px solid var(--green);
  background: #f7f7f7;
}

.button {
  padding: 0.8em 1.2em;
  display: inline-block;
  color: #fff;
  background: #222;
  box-shadow: none !important;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  :root {
    --wrap: min(100% - 2em, 1000px);
    --content: min(100% - 2em, 740px);
  }

  .custom-header {
    min-height: 220px;
  }

  .site-branding {
    padding: 1.5em 0;
  }

  .custom-logo {
    max-height: 62px;
  }

  .navigation-inner {
    min-height: 52px;
    overflow-x: auto;
  }

  .navigation-inner a {
    padding: 1em;
    flex: 0 0 auto;
    font-size: 12px;
  }

  .navigation-inner a:first-child {
    padding-left: 0;
  }

  .content-wrap {
    padding-block: 3.5em;
  }

  .entry-content h1 {
    font-size: 25px;
  }

  .entry-content h2 {
    font-size: 22px;
  }

  .panel-image {
    min-height: 210px;
    background-attachment: scroll;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
