.lm-header {
  box-sizing: border-box;
  min-height: 92px;
  padding: 0 max(64px, calc((100vw - 1152px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
  background: #12294a;
  color: #fff;
  font-family: "Instrument Sans", sans-serif;
}

.lm-header .lm-brand {
  flex: none;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-decoration: none;
}

.lm-header .lm-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.lm-header .lm-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.lm-header .lm-nav a[aria-current="page"] {
  border-bottom-color: #9fb4d6;
}

.lm-header .lm-menu-toggle {
  display: none;
}

.lm-header .lm-brand:focus-visible,
.lm-header .lm-menu-toggle:focus-visible,
.lm-header .lm-nav a:focus-visible,
.lm-footer a:focus-visible,
.lm-video:focus-visible,
.lm-modal-close:focus-visible {
  outline: 3px solid #9fb4d6;
  outline-offset: 3px;
}

.lm-footer {
  box-sizing: border-box;
  border-top: 1px solid #ddd5c8;
  padding: 28px max(64px, calc((100vw - 1152px) / 2));
  background: #fffefb;
  color: #686158;
  font: 400 13px/1.6 "IBM Plex Sans", sans-serif;
}

.lm-footer p {
  margin: 0;
}

.lm-footer a {
  color: inherit;
}

.lm-video {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  padding: 0;
  border: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.lm-video img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.lm-video .lm-play {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(18, 41, 74, .88);
  box-shadow: 0 4px 18px rgba(18, 41, 74, .25);
  transition: background-color .15s ease, box-shadow .15s ease;
}

.lm-video .lm-play::after {
  content: "";
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
}

.lm-video:hover .lm-play,
.lm-video:focus-visible .lm-play {
  background: #12294a;
  box-shadow: 0 4px 24px rgba(18, 41, 74, .5);
}

.lm-modal {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 90vw;
  max-height: 90vh;
  padding: 12px;
  border: 0;
  background: #fffefb;
  color: #15202e;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

.lm-modal::backdrop {
  background: rgba(8, 19, 35, .82);
}

.lm-modal-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.lm-modal-close {
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #12294a;
  cursor: pointer;
  font: 500 15px/1.3 "Instrument Sans", sans-serif;
}

.lm-modal-video {
  display: block;
  max-width: calc(90vw - 24px);
  max-height: calc(80vh - 24px);
  width: auto;
  height: auto;
  background: #000;
}

@media (max-width: 700px) {
  .lm-header {
    min-height: 72px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 72px auto;
    column-gap: 24px;
    row-gap: 0;
  }

  .lm-header .lm-menu-toggle {
    display: block;
    padding: 8px 0 8px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: 500 15px/1.3 "Instrument Sans", sans-serif;
  }

  .lm-header .lm-nav {
    box-sizing: border-box;
    display: none;
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 12px 20px 24px;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    background: #12294a;
  }

  .lm-header .lm-nav.lm-nav-open {
    display: flex;
  }

  .lm-header .lm-nav a {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 0;
  }

  .lm-header .lm-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: #9fb4d6;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

  .lm-footer {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-video .lm-play {
    transition: none;
  }
}
