@font-face {
  font-family: 'Source Han Sans SC';
  src: url('/website/tansun/figma/fonts/SourceHanSansSC-VF.otf.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}

.tn-header,
.tn-header * {
  box-sizing: border-box;
}

.tn-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  color: #111111;
  font-family: 'Source Han Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.tn-header__stage {
  position: relative;
  width: max(100%, 1200px);
  height: 100px;
}

.tn-header__stage:has(.tn-dropdown.is-open) {
  height: var(--tn-open-height, 681px);
}

.tn-header a,
.tn-header button {
  color: inherit;
  text-decoration: none;
}

.tn-header__mobile-toggle,
.tn-mobile-nav {
  display: none;
}

.tn-header button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
}

.tn-header__bar {
  position: relative;
  z-index: 2;
  height: 100px;
  background: transparent;
}

.tn-header__logo {
  position: absolute;
  top: 29px;
  left: 3.2291667%;
  width: 156px;
  height: 52px;
}

.tn-header__logo img,
.tn-header__search img,
.tn-arrow-link img {
  display: block;
  flex: 0 0 auto;
}

.tn-header__nav-item {
  position: absolute;
  top: 38px;
  display: flex;
  height: 28px;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  cursor: pointer;
}

.tn-header__nav-item--home { left: 27.5520833%; }
.tn-header__nav-item--product { left: 32.1875%; }
.tn-header__nav-item--consulting { left: 41.0416667%; }
.tn-header__nav-item--technology { left: 48.2291667%; }
.tn-header__nav-item--investor { left: 54.5833333%; }
.tn-header__nav-item--about { left: 61.7708333%; }

.tn-header__search {
  position: absolute;
  top: 28px;
  left: 86.4583333%;
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.tn-header__contact {
  position: absolute;
  top: 28px;
  left: 89.5833333%;
  display: flex;
  width: 140px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  background: #1f3efe;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.tn-dropdown {
  --tn-panel-height: 482px;
  position: absolute;
  z-index: 1;
  top: 99px;
  left: 0;
  display: none;
  width: 100%;
  height: var(--tn-panel-height);
  overflow: hidden;
  background: #ffffff;
}

.tn-dropdown.is-open {
  display: block;
}

.tn-dropdown--product { --tn-panel-height: 582px; }
.tn-dropdown--technology,
.tn-dropdown--about { --tn-panel-height: 483px; }

.tn-dropdown__title,
.tn-dropdown__heading {
  margin: 0;
}

.tn-dropdown__title {
  position: absolute;
  top: 43px;
  left: 8.4375%;
  font-size: 30px;
  font-weight: 700;
  line-height: 50px;
  white-space: nowrap;
}

.tn-dropdown__divider {
  position: absolute;
  top: 54px;
  left: 20.9895833%;
  width: 1px;
  height: 361px;
  background: #e5e5e5;
}

.tn-dropdown--product .tn-dropdown__divider {
  height: 399px;
}

.tn-dropdown__column {
  position: absolute;
  top: 56px;
}

.tn-dropdown__heading {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  transform: translateX(-1px);
}

.tn-dropdown--consulting .tn-dropdown__heading {
  transform: translate(-1px, -3px);
}

.tn-dropdown--technology .tn-dropdown__heading,
.tn-dropdown--about .tn-dropdown__heading {
  transform: translate(-1px, -2px);
}

.tn-dropdown__heading.tn-arrow-link img {
  margin-left: 9px;
}

.tn-dropdown__column--product-center,
.tn-dropdown__column--consulting,
.tn-dropdown__column--platform {
  left: 26.3541667%;
}

.tn-dropdown__column--market-risk,
.tn-dropdown__column--operations {
  left: 46.1458333%;
}

.tn-dropdown__column--market-risk {
  top: 51px;
}

.tn-dropdown__column--compute-rental {
  left: 67.3958333%;
}

.tn-dropdown__column--understand { left: 26.40625%; }
.tn-dropdown__column--sustainability { left: 39.7395833%; }
.tn-dropdown__column--news { left: 56.40625%; }
.tn-dropdown__column--careers { left: 69.53125%; }
.tn-dropdown__column--contact-us { left: 86.1458333%; }

.tn-link-list {
  display: flex;
  flex-direction: column;
}

.tn-link-list--product {
  margin-top: 20px;
}

.tn-link-list--product .tn-arrow-link {
  height: 40px;
  font-size: 16px;
  line-height: 40px;
}

.tn-link-list--compact {
  margin-top: 24px;
  transform: translateX(-2px);
}

.tn-dropdown--consulting .tn-link-list--compact {
  margin-top: 22px;
  transform: translateX(-2px);
}

.tn-link-list--compact .tn-arrow-link {
  height: 36px;
  font-size: 16px;
  line-height: 36px;
}

.tn-link-list--sub {
  margin-top: 27px;
  transform: translateX(-2px);
}

.tn-link-list--sub .tn-arrow-link {
  height: 30px;
  color: #444444;
  font-size: 14px;
  line-height: 30px;
}

.tn-dropdown--technology .tn-link-list--compact img {
  width: 10px;
  height: 8px;
}

.tn-arrow-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  white-space: nowrap;
}

.tn-link-list .tn-arrow-link img,
.tn-branch__panel .tn-arrow-link img {
  margin-left: 8px;
}

.tn-arrow-link.is-active {
  color: #1f3efe;
}

.tn-branch-list {
  display: flex;
  width: 250px;
  margin-top: 20px;
  flex-direction: column;
  transform: translateX(-2px);
}

.tn-branch__toggle {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: flex-start;
  color: #111111;
  font-size: 16px;
  font-weight: 400;
  line-height: 36px;
  cursor: pointer;
}

.tn-branch__toggle[aria-expanded='true'] {
  font-weight: 700;
}

.tn-branch__mark {
  display: inline-flex;
  width: 13px;
  height: 36px;
  margin-left: 15px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 36px;
}

.tn-branch__mark::before {
  content: '+';
}

.tn-branch__toggle[aria-expanded='true'] .tn-branch__mark {
  margin-left: 17px;
}

.tn-branch__toggle[aria-expanded='true'] .tn-branch__mark::before {
  width: 13px;
  height: 4px;
  background: url('./assets/minus.png') center / 13px 4px no-repeat;
  content: '';
}

.tn-branch__panel {
  width: 250px;
  height: 80px;
  margin-top: 12px;
  margin-bottom: 13px;
  padding: 7px 17px 13px;
  border-radius: 10px;
  background: #f8f8f8;
}

.tn-branch__panel[hidden] {
  display: none;
}

.tn-branch__panel:empty {
  display: none;
}

.tn-branch__panel .tn-arrow-link {
  height: 30px;
  color: #444444;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
}

.tn-branch__panel .tn-arrow-link img {
  width: 10px;
  height: 8px;
  margin-left: 10px;
}

.tn-header a:focus-visible,
.tn-header button:focus-visible {
  outline: 2px solid #1f3efe;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tn-header *,
  .tn-header *::before,
  .tn-header *::after {
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1023px) {
  body.tn-mobile-nav-open {
    overflow: hidden;
  }

  .tn-header {
    overflow: visible;
  }

  .tn-header__stage,
  .tn-header__bar {
    width: 100%;
    height: calc(72px + env(safe-area-inset-top));
  }

  .tn-header__bar {
    background: transparent;
  }

  .tn-header__logo {
    top: calc(13px + env(safe-area-inset-top));
    left: 20px;
    width: 126px;
    height: 42px;
  }

  .tn-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .tn-header__nav,
  .tn-header__search,
  .tn-header__contact {
    display: none;
  }

  .tn-header__mobile-toggle {
    position: absolute;
    z-index: 4;
    top: calc(14px + env(safe-area-inset-top));
    right: 18px;
    display: flex;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
  }

  .tn-header__mobile-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: #111111;
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .tn-header__mobile-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .tn-header__mobile-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .tn-header__mobile-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .tn-mobile-nav {
    position: fixed;
    z-index: 3;
    top: calc(72px + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    padding: 12px 20px calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
  }

  .tn-header.is-mobile-open .tn-mobile-nav {
    display: block;
  }

  .tn-mobile-nav__link,
  .tn-mobile-nav__toggle {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5 !important;
    color: #111111;
    font-size: 17px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
  }

  .tn-mobile-nav__arrow {
    width: 12px;
    height: 10px;
    margin-right: 2px;
  }

  .tn-mobile-nav__mark {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }

  .tn-mobile-nav__mark::before,
  .tn-mobile-nav__mark::after {
    position: absolute;
    top: 9px;
    left: 3px;
    width: 14px;
    height: 1px;
    background: #111111;
    content: '';
  }

  .tn-mobile-nav__mark::after {
    transform: rotate(90deg);
    transition: transform 180ms ease;
  }

  .tn-mobile-nav__toggle[aria-expanded='true'] {
    font-weight: 700;
  }

  .tn-mobile-nav__toggle[aria-expanded='true'] .tn-mobile-nav__mark::after {
    transform: rotate(0deg);
  }

  .tn-mobile-panel {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    padding: 13px 0 18px 18px;
    overflow: visible;
    background: #ffffff;
  }

  .tn-mobile-panel[hidden] {
    display: none;
  }

  .tn-mobile-panel .tn-dropdown__title,
  .tn-mobile-panel .tn-dropdown__divider {
    display: none;
  }

  .tn-mobile-panel .tn-dropdown__column {
    position: relative;
    inset: auto;
    margin: 0 0 18px;
  }

  .tn-mobile-panel .tn-dropdown__heading {
    min-height: 44px;
    font-size: 16px;
    line-height: 24px;
    transform: none;
  }

  .tn-mobile-panel .tn-link-list,
  .tn-mobile-panel .tn-branch-list {
    width: 100%;
    margin-top: 4px;
    transform: none;
  }

  .tn-mobile-panel .tn-arrow-link,
  .tn-mobile-panel .tn-branch__toggle {
    min-height: 44px;
    height: auto;
    white-space: normal;
    line-height: 24px;
  }

  .tn-mobile-panel .tn-branch__panel {
    width: calc(100% - 16px);
    height: auto;
    min-height: 80px;
  }
}
