@font-face {
  font-family: Skaybase;
  src: url("./manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: SkaybaseDisplay;
  src: url("./skaybase-display.woff2") format("woff2");
  font-display: swap;
}

.chem-header {
  --header-bg: #101c24;
  --header-line: #3b4d59;
  --header-ink: #f0f5f7;
  --header-secondary: #b0bfc8;
  --header-mint: #a8e4bc;
  --header-active: #a1f4d7;
  background: var(--header-bg);
  color: var(--header-ink);
  color-scheme: dark;
  flex: none;
  font: 16px/1.4 Skaybase, Manrope, system-ui, sans-serif;
  position: relative;
  z-index: 20;
}

.chem-header, .chem-header * { box-sizing: border-box; }
.chem-header :is(a, button):focus-visible {
  outline: 2px solid var(--header-active);
  outline-offset: -2px;
  border-radius: 4px;
}
.chem-header svg { flex: none; }

.chem-header__bar {
  min-height: 64px;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--header-line);
}

.chem-header__brand {
  align-items: center;
  color: var(--header-ink);
  display: flex;
  flex: none;
  gap: 9px;
  text-decoration: none;
}
.chem-header__brand:hover { color: white; }
.chem-header__mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--header-mint);
}
.chem-header__mark img { width: 32px; height: 32px; display: block; }
.chem-header__wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: 400 20px/1.4 SkaybaseDisplay, Manrope, sans-serif;
}
.chem-header__wordmark small {
  font-size: 10px;
  line-height: 1.12;
  letter-spacing: 1px;
  color: #b6d0cb;
}

.chem-header__tabs, .chem-header__actions { display: flex; align-items: center; }
.chem-header__tabs { min-height: 63px; gap: 22px; align-self: stretch; }
.chem-header__tab {
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  gap: 9px;
  padding-inline: 5px;
  border-bottom: 3px solid transparent;
  color: var(--header-secondary);
  font: 600 14px/1.3 Skaybase, Manrope, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.chem-header__tab:hover { color: white; }
.chem-header__tab[aria-current] {
  color: var(--header-active);
  border-bottom-color: #68e0b7;
}

.chem-header__actions { gap: 13px; margin-left: auto; }
.chem-header__action {
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 20px;
  padding: 0;
  background: none;
  color: #d1dce2;
  gap: 8px;
  text-decoration: none;
  font: 400 13px/1.3 Skaybase, Manrope, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.chem-header__action:hover { color: var(--header-active); background: none; }
.chem-header__action[aria-current] { color: var(--header-active); }

.chem-header__education {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(13px, 3vw, 28px);
  padding-inline: clamp(14px, 4vw, 36px);
  background: #17252e;
  border-bottom: 1px solid var(--header-line);
}
.chem-header__education a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 2px solid transparent;
  padding: 0 1px;
  color: #c6d2d8;
  font-size: 13px;
  font-weight: 630;
  text-decoration: none;
}
.chem-header__education a:hover, .chem-header__education a[aria-current] {
  color: var(--header-active);
}
.chem-header__education a[aria-current] { border-bottom-color: #68e0b7; }

@media (max-width: 1050px) {
  .chem-header__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 60px 47px;
    gap: 0;
    padding-inline: 20px;
  }
  .chem-header__brand { justify-self: start; }
  .chem-header__actions { grid-column: 2; grid-row: 1; }
  .chem-header__tabs { grid-column: 1 / -1; min-height: 0; gap: 16px; }
  .chem-header__tab { flex: 1; justify-content: center; }
}

@media (max-width: 700px) {
  .chem-header__bar { grid-template-rows: 54px 43px; padding-inline: 14px; }
  .chem-header__brand { gap: 6px; }
  .chem-header__mark, .chem-header__mark img { width: 28px; height: 28px; }
  .chem-header__wordmark { font-size: 16px; }
  .chem-header__wordmark small { font-size: 9px; }
  .chem-header__actions { gap: 3px; }
  .chem-header__action { min-width: 30px; }
  .chem-header__action span { display: none; }
  .chem-header__tabs { gap: 3px; }
  .chem-header__tab { font-size: 11px; min-width: 0; gap: 5px; padding: 0 3px; }
  .chem-header__tab svg { width: 13px; }
}

@media (max-width: 365px) {
  .chem-header__bar { padding-inline: 9px; }
  .chem-header__wordmark { font-size: 14px; }
  .chem-header__action { min-width: 28px; }
  .chem-header__tab { white-space: normal; text-align: center; }
  .chem-header__education { gap: 12px; padding-inline: 10px; }
  .chem-header__education a { font-size: 12px; }
}

@media print { .chem-header { display: none !important; } }
