/* Anxine multilingual navigation and bidirectional layout support. */
.dc-language-switcher {
  position: relative;
  flex: 0 0 auto;
  color: var(--ink, #17364c);
  font-family: var(--font-sans, sans-serif);
}

.dc-language-switcher--mobile { display: none; }
.dc-language-switcher details {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}
.dc-language-switcher summary {
  min-width: 54px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong, #8ea59a);
  border-radius: var(--radius-control, 10px);
  background: var(--paper, #fbf8f0);
  color: inherit;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  list-style: none;
}
.dc-language-switcher summary::marker { content: ''; }
.dc-language-switcher summary::-webkit-details-marker { display: none; }
.dc-language-switcher summary svg {
  width: 10px;
  height: 7px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 160ms ease;
}
.dc-language-switcher details[open] summary svg { transform: rotate(180deg); }
.dc-language-switcher summary:hover,
.dc-language-switcher summary:focus-visible {
  border-color: var(--accent, #078264);
  color: var(--accent, #078264);
  outline: none;
}
.dc-language-switcher summary:focus-visible { box-shadow: 0 0 0 3px rgb(7 130 100 / 16%); }
.dc-language-switcher ul {
  min-width: 230px;
  display: grid;
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 120;
  overflow: hidden;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line-strong, #8ea59a);
  border-radius: var(--radius-panel, 14px);
  background: var(--paper, #fbf8f0);
  box-shadow: 0 18px 42px rgb(23 54 76 / 18%);
  list-style: none;
}
.dc-language-switcher li { margin: 0; }
.dc-language-switcher li + li { border-block-start: 1px solid var(--line, #d1dcd6); }
.dc-language-switcher a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink, #17364c);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.dc-language-switcher a:hover,
.dc-language-switcher a:focus-visible,
.dc-language-switcher .is-current a {
  color: var(--accent, #078264);
  background: var(--accent-soft, #e3f2ec);
  outline: none;
}
.dc-language-switcher a small {
  color: var(--muted, #66736d);
  font-family: var(--font-mono, monospace);
  font-size: .7rem;
}
.dc-header-actions .dc-language-switcher { order: -1; }

/* RTL is driven by Polylang's language direction on the html element. */
:where(html[dir='rtl'], body.rtl, .rtl) body,
:where(html[dir='rtl'], body.rtl, .rtl) .editor-styles-wrapper {
  font-family: 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
  text-align: start;
}
:where(html[dir='rtl'], body.rtl, .rtl) h1,
:where(html[dir='rtl'], body.rtl, .rtl) h2,
:where(html[dir='rtl'], body.rtl, .rtl) h3,
:where(html[dir='rtl'], body.rtl, .rtl) h4,
:where(html[dir='rtl'], body.rtl, .rtl) .dc-button {
  font-family: 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
}
:where(html[dir='rtl'], body.rtl, .rtl) .dc-brand-tagline,
:where(html[dir='rtl'], body.rtl, .rtl) .dc-eyebrow,
:where(html[dir='rtl'], body.rtl, .rtl) .dc-breadcrumbs,
:where(html[dir='rtl'], body.rtl, .rtl) .dc-record-grid span {
  letter-spacing: 0;
}
:where(html[dir='rtl'], body.rtl, .rtl) .dc-brand-tagline > [aria-hidden='true'],
:where(html[dir='rtl'], body.rtl, .rtl) .dc-brand-tagline > [lang='ar'] {
  display: none;
}
:where(html[dir='rtl'], body.rtl, .rtl) .dc-site-nav a::after { transform-origin: right; }
:where(html[dir='rtl'], body.rtl, .rtl) .dc-section--hero {
  background-image: linear-gradient(270deg, rgb(23 54 76 / 99%) 0%, rgb(23 54 76 / 95%) 38%, rgb(23 54 76 / 79%) 60%, rgb(23 54 76 / 40%) 78%, rgb(23 54 76 / 16%) 100%), var(--hero-image, url('../../../themes/dynacaps/assets/images/hero-capsules.jpg'));
  background-position: center, 28% 58%;
}
:where(html[dir='rtl'], body.rtl, .rtl) .dc-section--page-hero {
  background-image: linear-gradient(270deg, rgb(23 54 76 / 99%) 0%, rgb(23 54 76 / 95%) 40%, rgb(23 54 76 / 79%) 60%, rgb(23 54 76 / 40%) 78%, rgb(23 54 76 / 18%) 100%), var(--page-hero-image, url('../../../themes/dynacaps/assets/images/page-hero-material.jpg'));
  background-position: center, var(--page-hero-position, 28% center);
}
:where(html[dir='rtl'], body.rtl, .rtl) .dc-hero-copy { margin-inline-start: auto; }
:where(html[dir='rtl'], body.rtl, .rtl) .dc-field select {
  padding-inline: 42px 14px;
  background-position: left 14px center;
}
:where(html[dir='rtl'], body.rtl, .rtl) .dc-link-icon { transform: scaleX(-1); }
@media (hover: hover) and (min-width: 681px) {
  :where(html[dir='rtl'], body.rtl, .rtl) .dc-text-link:hover .dc-link-icon,
  :where(html[dir='rtl'], body.rtl, .rtl) .is-dc-linked-card:hover .dc-card__cta .dc-link-icon,
  :where(html[dir='rtl'], body.rtl, .rtl) .dc-card--resource-link.is-dc-linked-card:hover .dc-button .dc-link-icon,
  :where(html[dir='rtl'], body.rtl, .rtl) .dc-card--resource-link.is-dc-linked-card:hover .wp-block-button__link .dc-link-icon {
    transform: translateX(-4px) scaleX(-1);
  }
}
:where(html[dir='rtl'], body.rtl, .rtl) a[href^='tel:'],
:where(html[dir='rtl'], body.rtl, .rtl) a[href^='mailto:'],
:where(html[dir='rtl'], body.rtl, .rtl) input[type='tel'],
:where(html[dir='rtl'], body.rtl, .rtl) input[type='email'],
:where(html[dir='rtl'], body.rtl, .rtl) .is-dc-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

@media (max-width: 900px) {
  .dc-header-actions .dc-language-switcher summary { min-width: 50px; }
  .dc-site-nav > .dc-language-switcher--mobile { order: 1; }
  .dc-site-nav > .dc-mobile-nav-actions { order: 2; }
}

@media (max-width: 680px) {
  .dc-language-switcher--mobile {
    display: block;
    margin-block-start: 16px;
    padding-block-start: 16px;
    border-block-start: 1px solid var(--line, #d1dcd6);
  }
  .dc-language-switcher--mobile summary {
    width: 100%;
    justify-content: space-between;
    padding-inline: 14px;
  }
  .dc-language-switcher--mobile ul {
    width: 100%;
    position: static;
    margin-block-start: 8px;
    box-shadow: none;
  }
}

@media (max-width: 680px) {
  :where(html[dir='rtl'], body.rtl, .rtl) .dc-section--hero {
    background-image: linear-gradient(180deg, rgb(23 54 76 / 96%) 0%, rgb(23 54 76 / 90%) 64%, rgb(23 54 76 / 86%) 100%), var(--hero-image, url('../../../themes/dynacaps/assets/images/hero-capsules.jpg'));
    background-position: center, center;
  }
  :where(html[dir='rtl'], body.rtl, .rtl) .dc-section--page-hero {
    background-image: linear-gradient(180deg, rgb(23 54 76 / 96%) 0%, rgb(23 54 76 / 90%) 64%, rgb(23 54 76 / 86%) 100%), var(--page-hero-image, url('../../../themes/dynacaps/assets/images/page-hero-material.jpg'));
    background-position: center, center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-language-switcher summary svg { transition: none; }
}
