header.topHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--headerH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: calc(12px + var(--safeTop)) calc(18px + var(--safeRight)) 12px calc(18px + var(--safeLeft));
  background: var(--headerBg);
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}

header img[data-role="school-logo"] {
  height: 56px;
  width: auto;
  flex: 0 0 auto;
}

.headLeft {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.headerTitle {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.titleBanner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.titleMainLine {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .2px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titleMain {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.1;
  color: #fff;
  flex: 0 0 auto;
}

.titleDash {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, .78);
  flex: 0 0 auto;
}

.titleSchool {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  color: rgba(255, 255, 255, .96);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schoolYearBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .4px;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--yearBadgeText);
  background: var(--yearBadgeBg);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 6px rgba(0, 0, 0, .15);
}

.topNav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.topNavLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--navBtnText);
  background: linear-gradient(180deg, color-mix(in srgb, var(--navBtnBg) 92%, white 8%), var(--navBtnBg));
  border: 1px solid var(--navBtnBorder);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .18s ease, opacity .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.topNavLink:hover {
  background: var(--navBtnHoverBg);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .10);
}

.topNavLink:active {
  transform: translateY(0);
}

.topNavLink.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--navBtnActiveBg) 88%, white 12%), var(--navBtnActiveBg));
  border-color: var(--navBtnActiveBorder);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.topNavLink.disabled {
  opacity: .7;
  cursor: default;
  pointer-events: none;
}

.soon {
  font-size: .82em;
  opacity: .85;
}

@media (max-width: 1100px) {

  .titleMain,
  .titleMainLine {
    font-size: 17px;
  }

  .titleSchool {
    font-size: 16px;
  }

  .topNavLink {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  header.topHeader {
    position: fixed;
    min-height: var(--headerH);
    padding: calc(7px + var(--safeTop)) calc(10px + var(--safeRight)) 8px calc(10px + var(--safeLeft));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
  }

  header img[data-role="school-logo"] {
    height: 28px;
  }

  .headLeft {
    width: 100%;
    gap: 9px;
  }

  .titleBanner {
    gap: 3px;
  }

  .titleMainLine {
    display: block;
    font-size: 15px;
    line-height: 1.12;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .titleSchool {
    display: inline;
    font-size: inherit;
    line-height: 1.12;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .schoolYearBadge {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .topNav {
    width: 100%;
    justify-content: stretch;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .topNavLink {
    flex: 1 1 0;
    min-width: 0;
    min-height: 34px;
    padding: 0 6px;
    font-size: 11px;
    gap: 5px;
    border-radius: 16px;
  }

  .topNavLink .navIcon {
    transform: scale(.92);
  }

  .topNavLink span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}