.cs-top-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1vw, 18px);
}

.cs-top-links > a,
.cs-top-links summary,
.cs-top-submenu a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #e6e4df;
  background: transparent;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.cs-top-links summary {
  list-style: none;
  cursor: pointer;
}

.cs-top-links summary::-webkit-details-marker { display: none; }
.cs-top-links summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 1px 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.cs-top-links details { position: relative; }
.cs-top-links details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.cs-top-links a:hover,
.cs-top-links a[aria-current],
.cs-top-links summary:hover,
.cs-top-links details[open] > summary,
.cs-top-links details[data-current] > summary { color: #ffab70; }

.cs-top-submenu {
  position: absolute;
  z-index: 10;
  inset: 100% auto auto 0;
  box-sizing: border-box;
  width: max-content;
  min-width: 200px;
  max-height: 68vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #474549;
  border-radius: 12px;
  background: #222327;
  box-shadow: 0 14px 32px #10101342;
}

.cs-top-links details:last-child .cs-top-submenu { left: auto; right: 0; }
.cs-top-submenu a { min-height: 40px; padding: 6px 12px; border-radius: 7px; }
.cs-top-submenu a:hover, .cs-top-submenu a:focus-visible { background: #373538; }
.cs-top-submenu a:first-child { color: #ffab70; }
.cs-top-submenu a:focus-visible { outline-offset: -2px; }

@media (min-width: 1101px) {
  .modern-site .modern-header-v2 .modern-header__inner { gap: clamp(13px,1.4vw,24px); }
  .modern-site .modern-header-v2 .modern-brand-v5 { min-width: 0; }
  .modern-header-v2 .modern-nav { gap: clamp(12px,1.3vw,22px); }
  .modern-header-v2 .modern-search { width: clamp(142px,14vw,210px); }
}

@media (max-width: 1100px) {
  .cs-top-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 0 18px; }
  .cs-top-links > a, .cs-top-links summary { min-height: 44px; }
  .cs-top-links summary { justify-content: space-between; padding-right: 8px; }
  .cs-top-links details { grid-column: 1 / -1; border-top: 1px solid #353638; }
  .cs-top-submenu { position: static; width: 100%; min-width: 0; max-height: none; overflow: visible; margin-bottom: 8px; box-shadow: none; }
  .cs-top-submenu a { min-height: 44px; }
}
