:is(.site-header, .inner-header) .brand img { width: 172.5px; }

@media (max-width: 960px), (max-width: 1400px) and (hover: none) and (pointer: coarse) {
  :is(.site-header, .inner-header) .brand img { width: 189.75px; }
}

@media (max-width: 900px) {
  :is(.site-header, .inner-header) .brand img { width: 116.38px; }
}

@media (min-width: 901px) and (max-width: 1199px) {
  body header[data-mobile-navigation] #menu {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border: 1px solid #9bdcff70;
    border-radius: 24px;
    font-size: 14px;
  }

  body header[data-mobile-navigation] #navigation { display: none !important; }

  body header[data-mobile-navigation] #navigation.open {
    position: absolute;
    inset: 100% 0 auto;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100svh - 88px);
    overflow: auto;
    padding: 16px 20px 24px;
    background: #0a2345;
    box-shadow: 0 18px 42px #020d2159;
  }

  body header[data-mobile-navigation] #navigation a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 12px !important;
  }

  body header[data-mobile-navigation] #navigation .nav-disclosure { justify-content: space-between; }
}

:root body main > .contact > footer.site-footer.shell:has(> .site-social) {
  grid-template-columns: max-content max-content minmax(max-content, 1fr) max-content;
  align-items: center;
  gap: 14px clamp(12px, calc(4vw - 28px), 22px);
  font-size: clamp(13px, 1.2vw, 14px);
}

:root body main > .contact > footer.site-footer.shell:has(> .site-social) > div {
  align-items: center;
  gap: 8px clamp(9px, 1vw, 12px);
}

:root body main > .contact > footer.site-footer:has(> .site-social) > a:first-child img {
  width: clamp(156.4px, 13.8vw, 170.2px);
}

.site-footer:has(> .site-social) > div a,
.site-footer:has(> .site-social) > span {
  white-space: nowrap;
}

.site-footer:has(> .site-social) > span { justify-self: end; }

.site-footer .site-social {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 14px;
}

.site-footer .site-social > a {
  box-sizing: border-box;
  width: 29.4px;
  height: 29.4px;
  display: grid;
  place-items: center;
  color: #edf9ff;
  background: linear-gradient(145deg, #c4e5ff42, #5c9ed52a 45%, #b6dfff1c);
  border: 1px solid #acd8ff60;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #e4f3ff40, inset 0 -1px 0 #04132666, 0 0 9px #60bfff28;
  backdrop-filter: blur(8px);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.site-footer .site-social svg {
  width: 14.7px;
  height: 14.7px;
}

.site-footer .site-social > a:is(:hover, :focus-visible) {
  color: #fff;
  background-color: #3e98ba30;
  border-color: #77d6ef;
  box-shadow: inset 0 1px 0 #e4f3ff55, 0 0 12px #60bfff52;
}

.site-footer .site-social > a:focus-visible {
  outline: 2px solid #44caed;
  outline-offset: 2px;
}

@media (min-width: 961px) and (max-width: 1000px) {
  :root body main > .contact > footer.site-footer.shell:has(> .site-social) { column-gap: 9px; }
  :root body main > .contact > footer.site-footer.shell:has(> .site-social) > div { column-gap: 8px; }
}

@media (max-width: 960px), (max-width: 1400px) and (hover: none) and (pointer: coarse) {
  :root body main > .contact > footer.site-footer.shell:has(> .site-social) {
    --footer-control-gap: 10px;
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    gap: 14px var(--footer-control-gap);
  }

  :root body main > .contact > footer.site-footer.shell:has(> .site-social) > div {
    display: none;
  }

  :root body main > .contact > footer.site-footer:has(> .site-social) > a:first-child {
    grid-area: 1 / 1;
    justify-self: start;
  }

  :root body main > .contact > footer.site-footer:has(> .site-social) > a:first-child img {
    width: auto;
    height: 72.36px;
  }

  :root body main > .contact > footer.site-footer:has(> .site-social) > span {
    grid-area: 1 / 3;
    font-size: 13px;
  }

  .site-footer:has(> .site-social) > .site-social {
    grid-area: 1 / 2;
    gap: var(--footer-control-gap);
  }

  .site-footer .site-social > a {
    width: 39.6px;
    height: 39.6px;
    border-radius: 9px;
  }

  .site-footer .site-social svg {
    width: 16.2px;
    height: 16.2px;
  }
}

@media (max-width: 599px) {
  :root body main > .contact > footer.site-footer.shell:has(> .site-social) {
    --footer-control-gap: 8px;
    grid-template-columns: max-content minmax(max-content, 1fr) max-content;
  }

  :root body main > .contact > footer.site-footer:has(> .site-social) > a:first-child {
    margin-inline-start: -16px;
  }

  :root body main > .contact > footer.site-footer:has(> .site-social) > a:first-child img {
    height: 65.78px;
  }

  :root body main > .contact > footer.site-footer:has(> .site-social) > span {
    font-size: 11px;
  }

  .site-footer .site-social > a {
    width: 27.54px;
    height: 27.54px;
    border-radius: 8px;
  }

  .site-footer .site-social svg {
    width: 12.15px;
    height: 12.15px;
  }
}

@media (max-width: 375px) {
  :root body main > .contact > footer.site-footer.shell:has(> .site-social) {
    grid-template-columns: max-content minmax(max-content, 1fr);
  }

  :root body main > .contact > footer.site-footer:has(> .site-social) > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .site-social > a { transition: none; }
}
