/* High-contrast language selector in the site's original sage and gold. */
.topbar {
  grid-template-columns: minmax(295px, 1fr) minmax(0, 240px) minmax(265px, .82fr);
  grid-template-areas: "languages languages languages" "brand coverage certification";
  column-gap: clamp(18px, 2.75vw, 36px);
  row-gap: 12px;
  padding-top: 17px;
}

.topbar > .brand { grid-area: brand; }
.topbar > .coverage { grid-area: coverage; white-space: normal; line-height: 1.45; }
.topbar > .topbar-nna { grid-area: certification; }

.topbar-controls {
  grid-area: languages;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
}

.language-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  width: max-content;
  border: 1px solid rgba(239, 204, 158, .44);
  border-radius: 999px;
  background: rgba(36, 57, 48, .44);
}

.language-switch a {
  display: inline-flex;
  width: 54px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ivory);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.language-switch a:not([aria-current]):hover {
  background: rgba(239, 204, 158, .15);
}

.language-switch a[aria-current="page"] {
  color: #273d34;
  background: var(--gold);
}

.language-switch a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Keep translated labels from forcing a wider layout at narrow sizes. */
.intro-service-row .intro-service,
.eyebrow .eyebrow-item { max-width: 100%; }
.eyebrow span { white-space: normal; }

.local-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: 7px;
  margin-inline-end: auto;
}

.local-editor [hidden] { display: none !important; }

.local-editor button {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid rgba(239, 204, 158, .48);
  background: rgba(36, 57, 48, .44);
  color: var(--ivory);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.local-editor button:hover { background: rgba(239, 204, 158, .16); }
.local-editor button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.local-editor .local-editor-save { color: #273d34; background: var(--gold); }
.local-editor .local-editor-save:hover { background: #ffe1b5; }
.local-editor-status {
  flex: 1 1 170px;
  max-width: 440px;
  color: var(--ivory);
  font-size: .75rem;
  line-height: 1.45;
}
.local-editor-status:empty { display: none; }

.is-local-editing [data-preview-edit-field][contenteditable] {
  min-width: .6em;
  border-radius: 3px;
  outline: 1px dashed var(--gold-deep);
  outline-offset: 3px;
  cursor: text;
  overflow-wrap: anywhere;
}

.is-local-editing [data-preview-edit-field][contenteditable]:focus {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  background: rgba(239, 204, 158, .18);
}

.is-local-editing [data-preview-edit-field][contenteditable]:empty::before {
  content: "…";
  opacity: .65;
}

/* Keep the divider close even when a saved edit deletes a legal paragraph. */
.disclaimer-copy > .credentials { margin-top: -2px; }

body:not(.is-local-editing) .disclaimer-copy > p:empty,
body:not(.is-local-editing) .disclaimer-copy > p:has([data-preview-edit-field]):not(:has([data-preview-edit-field]:not(:empty))) {
  display: none;
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(245px, .8fr);
    grid-template-areas: "languages languages" "brand certification" "coverage certification";
  }
}

@media (max-width: 620px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "languages" "brand" "coverage" "certification";
    gap: 12px;
    padding-top: 13px;
  }

  .language-switch a { min-height: 44px; }
  .local-editor button { min-height: 44px; }
  .is-local-editing .local-editor { flex-basis: 100%; order: 1; }
}
