@import url("/css/editorial.css?v=3.0.1");

.dr-language-switcher,
.dr-locale-suggestion {
  box-sizing: border-box;
  font: inherit;
}

.dr-language-switcher-bar {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--gray-200, #e2e8f0);
  background: var(--white, #ffffff);
}

.dr-language-switcher-bar > .container {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  padding-block: 0.35rem;
}

.dr-language-switcher-bar [data-language-switcher] {
  max-width: 100%;
}

.dr-language-switcher {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.dr-language-switcher a {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.dr-language-switcher a:hover,
.dr-language-switcher a.is-current {
  background: rgba(127, 127, 127, 0.14);
}

.dr-language-switcher a.is-current {
  border-width: 2px;
  font-weight: 800;
}

.dr-language-switcher a:focus-visible,
.dr-locale-suggestion a:focus-visible,
.dr-locale-suggestion button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #0a1128;
}

.dr-locale-note,
.dr-locale-suggestion {
  max-width: 42rem;
  margin: 0.5rem 0;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
}

.dr-language-fallback {
  max-width: 100%;
  margin: 0;
  color: var(--gray-700, #334155);
  font-size: 0.875rem;
  line-height: 1.5;
}

.dr-language-fallback a {
  color: var(--blue, #0056b3);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

.dr-language-fallback a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #0a1128;
}

.dr-locale-referral-notice {
  border-bottom: 1px solid var(--green, #00a859);
  background: var(--green-light, #e6f7ef);
  color: var(--navy, #0a1931);
}

.dr-locale-referral-notice[hidden] {
  display: none !important;
}

.dr-locale-referral-notice .container {
  padding-block: 0.75rem;
}

.dr-locale-referral-notice p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.dr-locale-suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
  border-radius: 0.75rem;
}

.dr-locale-suggestion p {
  flex: 1 1 12rem;
  margin: 0;
}

.dr-locale-suggestion a,
.dr-locale-suggestion button {
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.dr-locale-suggestion a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 32rem) {
  .dr-language-switcher-bar > .container {
    justify-content: center;
  }

  .dr-language-switcher-bar [data-language-switcher] {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
  }

  .dr-locale-suggestion {
    align-items: stretch;
  }

  .dr-locale-suggestion a,
  .dr-locale-suggestion button {
    flex: 1 1 8rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr-language-switcher a {
    transition: none;
  }
}

@media (forced-colors: active) {
  .dr-language-switcher a:focus-visible,
  .dr-language-fallback a:focus-visible,
  .dr-locale-suggestion a:focus-visible,
  .dr-locale-suggestion button:focus-visible {
    outline: 2px solid Highlight;
    box-shadow: 0 0 0 5px Canvas;
    forced-color-adjust: auto;
  }
}

/* Shared header for both editions. Secondary navigation is disclosed on demand. */
.dr-header .dr-header-row {
  display: flex;
  min-height: 80px;
  height: auto;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 1rem;
  max-width: 1240px;
}
.dr-header-row > div:not([data-language-switcher]),
.dr-header-row .en-header-tools { display: contents !important; }
.dr-header .header-badge { display: none; }
.dr-header .brand-link { margin-right: auto; flex-shrink: 0; }
.dr-header .dr-primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dr-header .dr-primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
}
.dr-header .dr-header-locale { flex: 0 0 auto; }
.dr-header details { position: relative; }
.dr-header summary,
.dr-language-menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: #fff;
  color: #24364a;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  list-style: none;
}
.dr-header summary::-webkit-details-marker,
.dr-language-menu > summary::-webkit-details-marker { display: none; }
.dr-header summary::after,
.dr-language-menu > summary::after { content: "⌄"; font-size: 1rem; }
.dr-header details[open] > summary { border-color: #0056b3; }
.dr-language-switcher { display: block; }
.dr-language-menu { position: relative; }
.dr-language-options,
.dr-header .dr-more-options {
  position: absolute;
  z-index: 80;
  right: 0;
  top: calc(100% + 0.6rem);
  width: 250px;
  max-width: calc(100vw - 2rem);
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  background: #fff;
  color: #24364a;
  border: 1px solid #dbe3eb;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgb(10 25 49 / 12%);
  max-height: min(70vh, 540px);
  overflow-y: auto;
}
.dr-language-switcher .dr-language-options a,
.dr-header .dr-more-options a {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 6px;
  color: #24364a;
  line-height: 1.4;
  font-weight: 500;
  white-space: normal;
}
.dr-language-switcher .dr-language-options a.is-current {
  color: #0056b3;
  background: #eef5fc;
  font-weight: 700;
}
.dr-header .dr-more-options a:hover { background: #f1f5f9; }
.dr-locale-note { padding: 0.75rem; margin: 0.5rem 0 0; font-size: 0.8rem; color: #475569; }
.dr-language-options .dr-locale-suggestion {
  display: block;
  padding: 0.75rem;
  font-size: 0.8rem;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
}
.dr-locale-suggestion[hidden] { display: none !important; }
.dr-header summary:focus-visible { outline: 3px solid #0056b3; outline-offset: 3px; }
.dr-language-switcher-bar[hidden] { display: none !important; }
@media (max-width: 900px) {
  .dr-header .dr-header-row { gap: 0.5rem 1rem; padding-block: 0.75rem; }
  .dr-header .dr-primary-nav { order: 3; width: 100%; gap: 0.25rem 0.65rem; }
  .dr-header .dr-primary-nav a { font-size: 0.8rem; }
  .dr-header .dr-primary-nav summary { font-size: 0.8rem; padding: 0.5rem; }
  .dr-header .dr-more-options { right: auto; left: 0; }
}
@media print {
  .dr-header-locale, .dr-more-menu { display: none; }
}
