*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
}

body.template01 {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #172334;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: clip;
}

.template01__header {
  --template01-header-background: #151b20;
  position: sticky;
  top: 0;
  z-index: 1000;
  left: 0;
  width: 100vw;
  max-width: none;
  padding: 10px clamp(16px, 4vw, 56px);
  background: var(--template01-header-background);
  color: #f4f6f8;
}

.template01__header .card-banner--logo,
.template01__header .site-menu {
  background-color: var(--template01-header-background);
}

.template01__header .site-menu {
  color: #f4f6f8;
}

.template01__header .site-menu__submenu {
  background: var(--template01-header-background);
}

.template01__header-grid {
  display: flex;
  align-items: center;
  width: 100%;
}

.template01__header-module {
  flex: 0 0 calc(var(--header-module-width, 12) * 100% / 12);
  width: calc(var(--header-module-width, 12) * 100% / 12);
  min-width: 0;
}

.template01__header-module--menu {
  flex-basis: calc(var(--header-module-width, 9) * 100% / 12 - 60px);
  width: calc(var(--header-module-width, 9) * 100% / 12 - 60px);
}

.template01__language-picker {
  position: relative;
  z-index: 2;
  flex: 0 0 48px;
  width: 48px;
  margin-left: auto;
}

.template01__language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 38px;
  padding: 0 6px;
  border: 1px solid #8995a2;
  border-radius: 5px;
  background: transparent;
  color: #f4f6f8;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.template01__language-button:hover,
.template01__language-button:focus-visible {
  border-color: #fff;
  outline: none;
  background: #27313a;
}

.template01__language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 64px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid #35414c;
  border-radius: 6px;
  background: #151b20;
  box-shadow: 0 8px 20px rgb(0 0 0 / 25%);
}

.template01__language-options[hidden] {
  display: none;
}

.template01__language-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #f4f6f8;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.template01__language-option:hover,
.template01__language-option:focus-visible,
.template01__language-option[aria-current="true"] {
  outline: none;
  background: #27313a;
}

.template01__home-link,
.template01__footer a {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}

.template01__footer {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 28px clamp(16px, 4vw, 56px) 0;
  background: #151b20;
  color: #b5c1d4;
  border-top: 1px solid #303a45;
}

@media (max-width: 767px) {
  .template01__header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .template01__header-module--card-banner {
    flex: 0 1 auto;
    width: auto;
    max-width: calc(100% - 108px);
  }

  .template01__header-module--menu {
    flex: 0 0 48px;
    width: 48px;
    margin-left: auto;
  }

  .template01__language-picker {
    flex-basis: 44px;
    width: 44px;
    margin-left: 8px;
  }

  .template01__language-button {
    width: 42px;
    min-height: 36px;
  }

  .template01__header-module--menu .site-menu {
    width: 100%;
  }
}

.template01__home {
  width: 100%;
  min-height: 100vh;
  overflow: clip;
}

.template01__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: 100%;
}

.template01__module {
  grid-column: span var(--module-width, 12);
  min-width: 0;
}

.template01__hero-overlay {
  position: relative;
  isolation: isolate;
  width: 100%;
}

.template01__hero-overlay > .hero-module {
  position: relative;
  z-index: 0;
}

/* Fill the visible space below the sticky header. The header height is measured
   at runtime so this also accounts for responsive wrapping and logo sizing. */
.template01 .hero-module {
  height: calc(100vh - var(--template01-header-height, 0px));
  height: calc(100svh - var(--template01-header-height, 0px));
  min-height: 0;
  aspect-ratio: auto;
}

@media (max-width: 767px) {
  .template01__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .template01__module {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .template01 .hero-module {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}
