.tek-header {
  --header-paper: #e9d9ff;
  --header-ink: #29204f;
  position: relative;
  z-index: 5;
  padding-block: .55rem .95rem;
  background: var(--header-paper);
  color: var(--header-ink);
  border-bottom: 1px solid #ccb3ee;
}

.tek-header::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: '';
  border-top: 1px solid #d6bdf2;
  background: #f5eaff;
  border-radius: 53% 47% 0 0 / 90% 100% 0 0;
}

.tek-header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: clamp(.75rem, 2.6vw, 2.6rem);
}

.tek-header-brand {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  justify-self: start;
  padding: .37rem .9rem .5rem;
  border-radius: .95rem 1.31rem 1rem .62rem;
}

.tek-header-brand::before {
  position: absolute;
  z-index: -1;
  inset: .1rem 0 .22rem;
  content: '';
  border: 1px solid #ceb5e9;
  border-radius: inherit;
  background: #fcf5ff;
  box-shadow: 2px 3px 0 #b79adb;
  transform: rotate(-3deg);
}

.tek-header-brand img { width: 78px; height: 53px; object-fit: contain; }
.tek-header-brand:hover::before { background: #f1e2fc; }

.tek-header-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(.25rem, .65vw, .65rem);
}

.tek-header-nav a {
  --tab-color: #f7edff;
  --tab-edge: #ad93cb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem clamp(.5rem, 1.1vw, 1.05rem);
  border: 1px solid transparent;
  border-radius: .85rem 1.04rem .28rem .28rem;
  color: inherit;
  font-size: .91rem;
  font-weight: 780;
  line-height: 1.16;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.tek-header-nav a:nth-child(2) { --tab-color: #def5e9; --tab-edge: #90b7a3; }
.tek-header-nav a:nth-child(3) { --tab-color: #e0edff; --tab-edge: #9baed9; }
.tek-header-nav a:nth-child(4) { --tab-color: #fbdff0; --tab-edge: #cc97b5; }

.tek-header-nav a:hover,
.tek-header-nav a[aria-current='page'] {
  border-color: var(--tab-edge);
  background: var(--tab-color);
  box-shadow: 0 2px 0 var(--tab-edge);
}

.tek-header-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: .27em; }

.tek-header-board {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: .63rem;
  min-height: 46px;
  padding: .47rem .95rem;
  border: 1px solid #4e278c;
  border-radius: 1.3rem 1.45rem .48rem 1.3rem;
  background: #4e278c;
  box-shadow: 2px 3px 0 #b498d8;
  color: #fff9ff;
  font-size: .91rem;
  font-weight: 790;
  text-decoration: none;
  white-space: nowrap;
}

.tek-header-board span { color: #ffd5ef; }
.tek-header-board:hover { background: #6533a0; }

@media (max-width: 820px) {
  .tek-header { padding-block: .46rem .83rem; }
  .tek-header-inner { grid-template-columns: 1fr auto; row-gap: .48rem; }
  .tek-header-brand { grid-column: 1; grid-row: 1; padding: .25rem .76rem .45rem; }
  .tek-header-brand img { width: 66px; height: 45px; }
  .tek-header-board { grid-column: 2; grid-row: 1; min-height: 44px; font-size: .82rem; }
  .tek-header-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .tek-header-nav a { font-size: clamp(.73rem, 3.15vw, .87rem); min-height: 42px; padding-inline: .35rem; }
}

@media (max-width: 359px) {
  .tek-header-nav { display: grid; grid-template-columns: 1fr 1.16fr; gap: .18rem .43rem; }
  .tek-header-nav a { text-align: center; }
}
