.mast .brand-pair {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(.55rem, 1.25vw, 1.15rem);
}
.mast .kb7-crest {
  display: block;
  height: clamp(2.05rem, 3.3vw, 2.8rem);
  width: auto;
}

.details-list .discipline-model {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.mast .languages {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.languages details { border: 0; }
.languages summary {
  min-height: 2.75rem;
  gap: .4rem;
  padding: .4rem .15rem;
  font-size: .94rem;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: normal;
  white-space: nowrap;
}
.languages summary svg { width: 1.1rem; height: 1.1rem; }
.languages summary::after {
  background: none;
  flex: 0 0 .42rem;
  inline-size: .42rem;
  block-size: .42rem;
  border-right: .1rem solid currentColor;
  border-bottom: .1rem solid currentColor;
  transform: translateY(-.13rem) rotate(45deg);
}
.languages details[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.languages .language-list {
  position: absolute;
  inset-inline-end: 0;
  top: 100%;
  width: max-content;
  min-width: 10rem;
  max-height: min(24rem, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 .55rem 1.35rem #16203926;
  margin: 0;
  padding: .3rem;
  list-style: none;
}
.mast .language-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  font-size: .94rem;
  line-height: 1.2;
  text-decoration: none;
}
.language-list a:hover, .language-list a:focus-visible { background: #f0f3f8; }
.language-list a:focus-visible { outline-offset: -3px; }
.languages .language-list a[aria-current="page"] { color: var(--blue); text-decoration: none; }
.languages .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
footer { flex-wrap: wrap; }
.project-contact { display: grid; gap: .2rem; justify-items: start; }
.project-contact span { font-size: .86rem; }
.project-contact a {
  display: inline-block;
  padding-block: .2rem;
  font-weight: 650;
  font-size: 1rem;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
}
.hero-actions .hero-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  line-height: 1.3;
}
.hero-project-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .4rem;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: .23em;
  text-shadow: 0 1px 5px #101b2d;
}
.hero-project-link:hover { text-decoration-thickness: .14em; }
.protected-access {
  align-self: flex-start;
  max-width: 100%;
  margin-block-start: 1.1rem;
  padding: .65rem .95rem .25rem;
  background: rgba(11, 22, 41, .87);
  color: #fff;
}
.protected-access > span {
  display: block;
  color: #d8e2f4;
  font-size: .82rem;
  line-height: 1.35;
}
.protected-access ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.protected-access a {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: .65rem;
  font-size: .96rem;
  line-height: 1.45;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.protected-access a:hover { text-decoration-thickness: .14em; }
.protected-access a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 40rem) {
  footer .project-contact { order: -1; flex-basis: 100%; }
}
@media (min-width: 30.01rem) and (max-width: 45rem) {
  .mast { flex-wrap: wrap; row-gap: .15rem; }
  .mast .languages { order: 1; margin-inline-start: auto; }
  .mast nav:first-of-type { order: 2; width: 100%; justify-content: flex-start; }
}
