.yko-header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

html:not([lang='en']) main {
  overflow-wrap: anywhere;
}

html:lang(de) main :is(h1, h2, h3) {
  hyphens: auto;
}

.yko-language-switcher {
  position: relative;
  z-index: 2;
  color: #fff;
}

.yko-language-switcher > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 6px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  list-style: none;
}

.yko-language-switcher > summary::-webkit-details-marker {
  display: none;
}

.yko-language-switcher > summary::after {
  width: 6px;
  height: 6px;
  margin: -3px 2px 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: '';
  transform: rotate(45deg);
}

.yko-language-switcher[open] > summary,
.yko-language-switcher > summary:hover {
  background-color: rgb(255 255 255 / 12%);
}

.yko-language-flag {
  width: 24px;
  height: 16px;
  flex: none;
  border: 1px solid rgb(120 135 143 / 35%);
  border-radius: 2px;
  object-fit: cover;
}

.yko-language-options {
  position: absolute;
  inset: calc(100% + 6px) 0 auto auto;
  width: 170px;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--line, #dfe7e9);
  border-radius: 8px;
  background: #fff;
  color: var(--navy-deep, #10222f);
  box-shadow: 0 10px 24px rgb(7 21 30 / 20%);
  list-style: none;
}

.yko-language-options a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.yko-language-options a:hover,
.yko-language-options a[aria-current='page'] {
  background: var(--soft, #f4f7f7);
  color: var(--teal-dark, #007d70);
}

.yko-language-options a[aria-current='page'] {
  font-weight: 700;
}

@media (min-width: 1181px) {
  .header-inner .primary-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px clamp(12px, 2vw, 32px);
  }
}

@media (max-width: 720px) {
  .yko-header-actions {
    gap: 2px;
  }

  .yko-language-code {
    display: none;
  }

  .yko-language-switcher > summary {
    gap: 4px;
    padding-inline: 3px;
  }

  .detail-header-inner {
    position: relative;
  }

  .detail-header-inner > .yko-header-actions {
    position: absolute;
    inset: 14px 0 auto auto;
  }
}

@media (max-width: 360px) {
  .site-header .header-inner:has(.yko-header-actions) .brand img {
    width: 104px;
  }
}
