html[lang="en"] [data-language="ar"],
html[lang="ar"] [data-language="en"] {
  display: none;
}

ul, ol {
  padding-left: 0;
  padding-right: 0;
  padding-inline-start: 22px;
}

html[lang="ar"] {
  line-height: 1.8;
}

html[lang="ar"] h1 {
  line-height: 1.35;
}

html[lang="ar"] .eyebrow {
  letter-spacing: normal;
}

a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

.language-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.language-menu {
  color: #07194b;
  font-size: 13px;
  font-weight: 600;
  position: relative;
}

.language-menu summary {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e9f5;
  border-radius: 12px;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 8px;
  height: 44px;
  list-style: none;
  padding: 0 10px;
}

.language-menu summary::-webkit-details-marker { display: none; }
.language-menu svg { color: #2e5bbf; flex: none; }
.language-menu summary:focus-visible,
.language-options button:focus-visible {
  outline: 2px solid #2e5bbf;
  outline-offset: 2px;
}

.language-options {
  background: #fff;
  border: 1px solid #e1e9f5;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(7, 25, 75, .14);
  inset-inline-end: 0;
  min-width: 156px;
  padding: 4px;
  position: absolute;
  top: calc(100% + 6px);
}

.language-options button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
}

.language-options button:hover,
.language-options button:focus-visible { background: #f2f6fc; }
.language-options button[aria-checked="true"] { background: #eaf2ff; color: #2e5bbf; }
.language-options button[aria-checked="true"]::after { content: '\2713'; }

@media (max-width: 480px) {
  .panel { padding: 20px; }
  header { flex-wrap: wrap; gap: 16px; }
}
