body {
  background: #f6f4ef;
}

.site-header {
  grid-template-columns: max-content minmax(0, 1fr) auto;
  column-gap: clamp(12px, 1.5vw, 26px);
}

.site-header > section {
  grid-column: 3;
  gap: clamp(8px, 1vw, 18px);
}

.public-shell .site-header .header-school {
  display: flex !important;
  font: 600 clamp(11px, .85vw, 14px)/1.3 var(--font-sans);
  letter-spacing: 0;
  white-space: normal;
}

.header-school i {
  flex: 0 0 6px;
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  min-height: 38px;
  border: 1px solid #ff5a1f7a;
  border-radius: 10px;
  background: #ff5a1f14;
  color: var(--fg);
  font: 700 12px/1.2 var(--font-sans);
  white-space: nowrap;
}

.header-login:hover, .nav-overlay > nav a.nav-login:hover {
  background: #ff5a1f26;
}

.header-login:focus-visible, .nav-overlay .nav-login:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -2px;
}

.nav-overlay > nav a.nav-login {
  background: #ff5a1f12;
}

@media (max-width: 980px) {
  :root { --head: 82px; }

  .public-shell .site-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 1fr auto;
    padding-block: 4px 6px;
  }

  .site-header > section {
    grid-column: 2;
    grid-row: 1;
  }

  .public-shell .site-header .header-school {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  :root { --head: 73px; }

  .public-shell .site-header > section {
    gap: 4px !important;
  }

  .public-shell .site-header .header-school {
    font-size: 10px;
    gap: 6px;
  }

  .header-login {
    width: 38px;
    padding: 0;
  }

  .header-login span {
    display: none;
  }

  .public-shell .site-header > section > .language-switcher button {
    min-width: 29px !important;
    min-height: 32px;
    padding: 0 3px !important;
  }

  .public-shell .site-header .brand .eotf-header-logo-card {
    width: clamp(101px, 33vw, 160px) !important;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .public-shell .site-header .theme-toggle,
  .public-shell .site-header .menu-button,
  .header-login {
    width: 34px !important;
    min-width: 34px !important;
    min-height: 34px;
    flex: 0 0 34px;
  }

  .public-shell .site-header > section > .language-switcher button {
    min-width: 25px !important;
  }
}
