@import url("../fonts.css");

.cgpt-header,
.cgpt-header * {
  box-sizing: border-box;
}
.cgpt-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1056px, calc(100% - 40px));
  min-height: 72px;
  margin: 36px auto;
  padding: 11px 11px 11px 41px;
  border: 1px solid #fff;
  border-radius: 999px;
  background:
    radial-gradient(
      120% 160% at 15% 0%,
      rgb(255 255 255 / 24%),
      rgb(255 255 255 / 0%) 70%
    ),
    linear-gradient(
      135deg,
      rgb(255 255 255 / 68%),
      rgb(255 255 255 / 25%) 55%,
      rgb(247 252 255 / 46%)
    );
  box-shadow:
    0 4px 12px rgb(116 142 168 / 12%),
    inset 0 1px 2px rgb(255 255 255 / 70%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font:
    400 15px/24px "Onest",
    sans-serif;
  color: #202d42;
  letter-spacing: 0;
}
.cgpt-header::before,
.cgpt-header .cgpt-header-login::before,
.cgpt-header .cgpt-header-toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    #fff,
    rgb(255 255 255 / 10%) 30%,
    rgb(130 154 184 / 24%) 55%,
    rgb(255 255 255 / 90%) 80%,
    rgb(255 255 255 / 20%)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.cgpt-header.cgpt-header-home {
  width: min(1056px, 100%);
  margin: 0 auto;
}
.cgpt-header a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  font: inherit;
}
.cgpt-header a:hover {
  color: #a7472c;
}
.cgpt-header .cgpt-header-brand {
  gap: 9px;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -1px;
}
.cgpt-header .cgpt-header-brand span {
  font-family: "Unbounded", "Onest", sans-serif;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0;
}
.cgpt-header nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}
.cgpt-header .cgpt-header-login,
.cgpt-header .cgpt-header-toggle {
  position: relative;
  justify-content: center;
  min-width: 224px;
  min-height: 48px;
  padding: 12px 40px;
  border: 1px solid #fff;
  border-radius: 999px;
  background:
    radial-gradient(
      120% 160% at 15% 0%,
      rgb(255 255 255 / 24%),
      rgb(255 255 255 / 0%) 70%
    ),
    linear-gradient(
      135deg,
      rgb(255 255 255 / 68%),
      rgb(255 255 255 / 25%) 55%,
      rgb(247 252 255 / 46%)
    );
  box-shadow:
    0 4px 12px rgb(116 142 168 / 12%),
    inset 0 1px 2px rgb(255 255 255 / 70%);
  font:
    500 15px/24px "Onest",
    sans-serif;
  color: #202d42;
}
.cgpt-header .cgpt-header-mobile,
.cgpt-header .cgpt-header-toggle {
  display: none;
}
.cgpt-header :focus-visible {
  outline: 2px solid #a7472c;
  outline-offset: 4px;
}
@media (max-width: 1100px) {
  .cgpt-header {
    gap: 20px;
  }
  .cgpt-header nav {
    gap: 24px;
  }
  .cgpt-header .cgpt-header-login {
    min-width: 0;
    padding-inline: 28px;
  }
}
@media (max-width: 960px) {
  .cgpt-header {
    gap: 8px;
    min-height: 60px;
    padding: 7px 7px 7px 18px;
  }
  .cgpt-header .cgpt-header-brand {
    font-size: 18px;
  }
  .cgpt-header .cgpt-header-desktop {
    display: none;
  }
  .cgpt-header .cgpt-header-mobile {
    display: inline;
  }
  .cgpt-header .cgpt-header-brand span {
    font-size: 20px;
  }
  .cgpt-header .cgpt-header-login {
    min-width: 0;
    min-height: 44px;
    margin-left: auto;
    padding: 9px 18px;
  }
  .cgpt-header .cgpt-header-toggle {
    display: grid;
    align-content: center;
    gap: 4px;
    flex: 0 0 44px;
    min-width: 0;
    width: 44px;
    height: 44px;
    padding: 12px;
    cursor: pointer;
  }
  .cgpt-header-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: #202d42;
  }
  .cgpt-header nav {
    display: none;
  }
  .cgpt-header nav[data-open="true"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 12px);
    inset-inline: 0;
    gap: 8px;
    padding: 20px;
    border: 1px solid #ffffffb3;
    border-radius: 24px;
    background: #eff3f9;
    box-shadow: 0 7px 20px #748ea824;
  }
  .cgpt-header nav a {
    padding: 10px;
  }
}

a.cli-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin: 12px 0 20px;
  padding: 13px 20px;
  border: 1px solid #191919;
  border-radius: 999px;
  background: #191919;
  color: #fff;
  font: 500 15px/1.4 "Onest", sans-serif;
  text-decoration: none;
}
a.cli-source-link:hover { background: #333; color: #fff; }
a.cli-source-link:focus-visible { outline: 2px solid #a44425; outline-offset: 4px; }
