/* Shared header across the catalog, guides, downloads and application pages. */
.global-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #e0e7f0;
  background: #fff;
  color: #102035;
}

.global-header .header-inner {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 64px), 1300px);
  height: 72px;
  margin: 0 auto;
  padding: 0;
}

.global-header .brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  margin: 0;
  color: inherit;
  white-space: nowrap;
}

.global-header .brand img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.global-header .brand strong {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.035em;
}

.global-header .site-header-nav {
  display: flex;
  align-self: center;
  align-items: center;
  gap: clamp(5px, 1.2vw, 18px);
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.global-header .site-header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.global-header .site-header-nav a[aria-current=page] {
  background: #edf4ff;
  color: #0752c9;
  font-weight: 700;
}

.global-header .site-header-nav a[aria-current=page]::after {
  content: none;
}

.global-header .site-header-nav a:hover,
.global-header .site-language summary:hover {
  background: #f3f6fb;
}

.global-header .header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  margin: 0;
}

.global-header .account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #a6b4c5;
  border-radius: 9px;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.global-header .account-link:hover {
  border-color: #0752c9;
  color: #0752c9;
}

.site-language {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.4;
}

.site-language summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 9px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.site-language summary::-webkit-details-marker {
  display: none;
}

.site-language summary::after {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.site-language > div {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 116px;
  padding: 4px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px #10203514;
}

.site-language .language {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 7px;
  color: inherit;
  white-space: nowrap;
}

.site-language .language:hover {
  background: #edf4ff;
  color: #0752c9;
}

.global-header :is(a,summary):focus-visible {
  outline: 3px solid #4289d2;
  outline-offset: 3px;
}

.section-nav {
  top: 72px;
}

@media (max-width: 820px) {
  .global-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 60px 48px;
    gap: 0 10px;
    width: calc(100% - 40px);
    height: 108px;
  }

  .global-header .brand img {
    width: 34px;
    height: 34px;
  }

  .global-header .brand strong {
    font-size: 21px;
  }

  .global-header .site-header-nav {
    grid-area: 2 / 1 / 3 / -1;
    align-self: stretch;
    justify-content: space-between;
    gap: 2px;
    border-top: 1px solid #edf1f6;
  }

  .global-header .site-header-nav a {
    min-height: 36px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .global-header .header-actions {
    grid-area: 1 / 2;
    gap: 6px;
  }

  .global-header .account-link {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .site-language {
    font-size: 13px;
  }

  .section-nav {
    top: 108px;
  }

  :root {
    scroll-padding-top: 172px;
  }

  .gallery,.support-section {
    scroll-margin-top: 172px;
  }
}

@media (max-width: 359px) {
  .global-header .header-inner {
    width: calc(100% - 32px);
  }

  .global-header .site-header-nav a {
    padding-inline: 3px;
  }
}

/* Shared footer for the public page layouts. */
body:has(> .site-footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(> .site-footer) > #main {
  margin-block: 0;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid #dbe4ef;
  background: #f5f8fd;
  color: #102035;
  line-height: 1.5;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, .8fr);
  gap: clamp(20px, 4vw, 64px);
  width: min(calc(100% - 64px), 1200px);
  margin-inline: auto;
  padding-block: clamp(36px, 4.2vw, 64px);
}

.site-footer a {
  color: #0752c9;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible {
  outline: 3px solid #4289d2;
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer .site-footer-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.03em;
}

.site-footer-home img {
  display: block;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.site-footer-download {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  margin-top: 9px;
  font-size: 15px;
  font-weight: 650;
}

.site-footer .site-footer-group {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.site-footer-title {
  margin: 3px 0 9px;
  font-size: 16px;
  font-weight: 700;
}

.site-footer-group ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .site-footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 0;
  font-size: 14px;
  font-weight: 450;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
    width: calc(100% - 40px);
  }

  .site-footer-brand,
  .site-footer-group:has(#footer-social) {
    grid-column: 1 / -1;
  }

  .site-footer-group:has(#footer-social) ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
  }
}

@media (max-width: 359px) {
  .site-footer-grid {
    width: calc(100% - 32px);
  }
}
