.cw-site-language { position: relative; width: max-content; max-width: 100%; z-index: 6; color: inherit; }
.cw-site-language summary { cursor: pointer; padding: .25rem .7rem; border: 1px solid #527193; border-radius: .5rem; font: inherit; }
.cw-site-language ul { position: absolute; right: 0; top: 100%; min-width: 9rem; margin: .25rem 0 0; padding: .3rem; list-style: none; border: 1px solid #527193; border-radius: .5rem; background: #101e32; color: #eef7ff; }
.cw-site-language a { display: block; padding: .3rem .5rem; color: #cce7ff; }
.cw-site-language a[aria-current="page"] { color: #fff; font-weight: 700; }
[data-site-language-entry] { display: flex; justify-content: flex-end; padding: .5rem 1rem; }
[data-site-language-entry] .cw-site-language ul { top: auto; bottom: 100%; }
.locale-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .75rem; list-style: none; padding: 0; }
.locale-cards a { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1rem; border-radius: .75rem; border: 1px solid #3d5d84; background: #101e32; }
.locale-cards span { color: #b9cde3; }


.cw-site-language summary {
  max-width: 11rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.cw-site-language ul {
  max-height: min(68vh, 20rem);
  max-width: calc(100vw - 2rem);
  overflow-y: auto;
}
.cw-site-language a { white-space: nowrap; }
