/* locale.css — terminology layer.

   Swaps are paired spans, not JS text replacement, so nothing reflows after
   paint and the whole thing survives the 1h HTML cache in .htaccess:

     <span class="loc-global">CPD</span><span class="loc-na">CE</span>

   Default with no JS and no attribute is global/CPD, which is correct for
   this domain. The 65 US/CA pages carry data-locale="na" in the served HTML,
   so they read correctly with JavaScript disabled too. */

.loc-na {
  display: none;
}

html[data-locale='na'] .loc-na {
  display: inline;
}

html[data-locale='na'] .loc-global {
  display: none;
}

/* Block variant, for whole swapped sentences of chrome copy. */
.loc-na.loc-block {
  display: none;
}

html[data-locale='na'] .loc-na.loc-block {
  display: block;
}

html[data-locale='na'] .loc-global.loc-block {
  display: none;
}

/* ---------- regional suggestion strip ----------
   Shown once to visitors who look North American, on global pages that
   declare a counterpart via data-locale-alt. It links; it never redirects. */

.loc-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid #e2ded2;
  background: #f6f4ee;
  color: #2c2a24;
  font-size: 0.875rem;
  line-height: 1.45;
}

.loc-suggest__text {
  flex: 1 1 18rem;
  margin: 0;
}

.loc-suggest__link {
  color: #1f4f8f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.loc-suggest__link:hover {
  text-decoration-thickness: 2px;
}

.loc-suggest__dismiss {
  appearance: none;
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6e675a;
  font: inherit;
  cursor: pointer;
}

.loc-suggest__dismiss:hover {
  color: #2c2a24;
  background: rgba(0, 0, 0, 0.06);
}

.loc-suggest__link:focus-visible,
.loc-suggest__dismiss:focus-visible {
  outline: 2px solid #1f4f8f;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .loc-suggest {
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
  }
}
