.language-picker {
  position: relative;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 12px;
  color: #272550;
  z-index: 60;
}
.language-picker summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
  white-space: nowrap;
}
.language-picker summary::-webkit-details-marker {
  display: none;
}
.language-picker summary:hover,
.language-picker[open] summary {
  background: #efedf9;
}
.language-picker summary:focus-visible,
.language-options a:focus-visible {
  outline: 2px solid #4942c7;
  outline-offset: 3px;
}
.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 160px;
  padding: 6px;
  border: 1px solid #e1def0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px #2725501a;
}
.language-options a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none !important;
  font-size: 14px;
  color: #272550 !important;
}
.language-options a:hover,
.language-options a[aria-current] {
  background: #f1effb;
  color: #4840be !important;
}
.nav-actions {
  gap: 12px;
}
@media (max-width: 1150px) {
  .nav-actions .login {
    display: none;
  }
}
@media (max-width: 620px) {
  .nav-actions {
    gap: 5px;
  }
  .language-picker summary {
    padding: 8px 4px;
    gap: 4px;
  }
  .language-picker summary svg {
    display: none;
  }
  .language-picker {
    font-size: 11px;
  }
}
@media (max-width: 620px) {
  .header {
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .header > .brand img {
    width: 100px;
    max-width: 24vw;
    height: auto;
  }
  .header .button.small {
    font-size: 12px;
    padding: 9px 11px;
    white-space: nowrap;
  }
  .header .menu-toggle {
    padding: 4px;
  }
  .demo-header {
    gap: 10px;
  }
  .demo-header > .brand {
    margin-right: auto;
  }
  .demo-header .back-link {
    font-size: 11px;
  }
  .demo-header .language-picker {
    order: 3;
  }
}
@media (max-width: 380px) {
  .product-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .product-tabs button {
    min-width: 0;
    justify-content: center;
  }
  .product-tabs button > span:first-child {
    display: none;
  }
}
@media (max-width: 380px) {
  .knowledge-hero h1 {
    font-size: 38px;
  }
  .article-hero h1,
  .sub-hero h1 {
    overflow-wrap: anywhere;
  }
}

/* Allow translated headings and directory columns to fit narrow screens. */
.case-hero h1 { overflow-wrap: anywhere; hyphens: auto; }
.guide-directory-card { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .guide-directory { grid-template-columns: minmax(0, 1fr); }
  #root h1, #root h2 { overflow-wrap: anywhere; hyphens: auto; }
  #root .header { flex-wrap: nowrap; }
}

#root .grid > *, #root .flex > *, .guide-directory-card > div { min-width: 0; }
#root h3, #root p { overflow-wrap: anywhere; }
@media (max-width: 620px) {
  #root .flex.gap-6 { gap: 1rem; }
  #root .flex-1 { min-width: 0; }
}
