/* Shared aix Korea header and footer. Loaded after page-specific styles. */
body > header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 10, .66);
  backdrop-filter: blur(18px);
}

body > header .wrap,
body > footer .wrap {
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
}

body > header nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body > header .brand {
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

body > header .brand img {
  width: 76px;
  max-height: 46px;
  display: block;
}

body > header .brand-country {
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(239, 242, 255, .58);
  transform: translateY(2px);
  white-space: nowrap;
}

body > header .navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: #c9c9c4;
}

body > header .navlinks > a:not(.navcta) {
  height: auto;
  display: inline;
  position: static;
}

body > header .navlinks > a:not(.navcta)::after {
  display: none;
}

body > header .navlinks > a:not(.insights-link):not(.navcta):hover {
  color: inherit;
}

body > header .navcta {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #080808;
  font-weight: 700;
}

body > header .navlinks .insights-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(151, 169, 255, .34);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(83, 119, 255, .18), rgba(143, 105, 255, .12));
  color: #dfe5ff;
  font-weight: 750;
  box-shadow: inset 0 0 18px rgba(111, 139, 255, .05);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}

body > header .navlinks .insights-link::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: #9eb0ff;
  box-shadow: 0 0 11px #7894ff;
}

body > header .navlinks .insights-link:hover {
  border-color: rgba(170, 185, 255, .68);
  background: linear-gradient(120deg, rgba(83, 119, 255, .27), rgba(143, 105, 255, .2));
  box-shadow: 0 0 24px rgba(90, 118, 255, .14);
  transform: translateY(-1px);
}

body > header .navlinks .insights-link + .navcta {
  margin-left: -13px;
}

body > header .mobile-nav {
  display: none;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #d6d9e5;
}

body > header .mobile-nav a {
  white-space: nowrap;
}

body > header .mobile-nav .insights-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9c7ff;
  font-weight: 700;
}

body > header .mobile-nav .insights-link::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9eb0ff;
  box-shadow: 0 0 8px #7894ff;
}

body > footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 38px;
  color: #777;
  background: rgba(1, 1, 7, .32);
  font-size: 12px;
}

body > footer .foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}

body > footer .foot-copy {
  text-align: right;
  white-space: nowrap;
}

body > footer .company-bilingual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 920px;
}

body > footer .company-info {
  display: grid;
  gap: 6px;
  line-height: 1.55;
}

body > footer .company-info strong {
  color: #aaa;
  font-size: 13px;
}

body > footer .company-info.ko {
  padding-left: 34px;
  margin-left: 34px;
  border-left: 1px solid var(--line);
  word-break: keep-all;
}

@media (max-width: 900px) {
  body > header .wrap,
  body > footer .wrap {
    width: min(calc(100% - 32px), var(--max));
  }

  body > header nav {
    height: 66px;
  }

  body > header .brand {
    gap: 8px;
  }

  body > header .brand img {
    width: 70px;
  }

  body > header .brand-country {
    font-size: 10px;
    transform: translateY(2px);
  }

  body > header .navlinks {
    display: none;
  }

  body > header .mobile-nav {
    display: flex;
  }

  body > footer .foot {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body > footer .foot-copy {
    text-align: left;
  }

  body > footer .company-bilingual {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body > footer .company-info.ko {
    padding-left: 0;
    margin-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  body > header .wrap,
  body > footer .wrap {
    width: calc(100% - 28px);
  }

  body > header .mobile-nav {
    gap: 12px;
    font-size: 11px;
  }

  body > footer .company-info {
    font-size: 11px;
  }
}
