/* DelusionScale Languages — switcher UI only (v1.0.0).
 * Styles ONLY the header dropdown (.ds-lang) and the footer
 * language bar (.ds-langbar). No global resets, no element
 * selectors outside those two components, no !important.
 * Playful look matching the site: Outfit, white pills, pink
 * hover, pink-to-purple gradient for the active language. */

/* ---- Header dropdown: <details>/<summary>, so opening it needs
 * no JavaScript and it stays keyboard-accessible. ---- */
.ds-lang {
  position: relative;
  display: inline-block;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.ds-lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.ds-lang summary::-webkit-details-marker {
  display: none;
}
.ds-lang summary::marker {
  content: '';
}
.ds-lang summary:hover {
  border-color: #ec008c;
  color: #ec008c;
}
.ds-lang summary:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.ds-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
}
.ds-lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.ds-lang-menu a:hover {
  background: #fdf2f8;
  color: #ec008c;
}
.ds-lang-menu a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
}
.ds-lang-menu a[aria-current="true"] {
  background: linear-gradient(90deg, #ec008c, #7c3aed);
  color: #ffffff;
}

/* ---- Footer language bar: label + pill links, inside .ds-footer. ---- */
.ds-langbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e5e7eb;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.ds-langbar-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}
.ds-langbar a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.ds-langbar a:hover {
  border-color: #ec008c;
  color: #ec008c;
}
.ds-langbar a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.ds-langbar a.active,
.ds-langbar a[aria-current="true"] {
  background: linear-gradient(90deg, #ec008c, #7c3aed);
  color: #ffffff;
  border-color: transparent;
}
