/* Shared navigation and contact refinements from the October site review. */
.kd-header-phone a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 14px;
  color: #145ba8;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.kd-header-phone a:hover { background: #eef5fd; }
.kd-header-phone a:focus-visible,
.kd-footer-navigation a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.kd-phone-icon { display: block; flex: 0 0 20px; color: inherit; }
.kd-footer-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0 0 34px;
  padding: 0 0 24px;
  border-bottom: 1px solid #ffffff26;
}
.kd-footer-navigation a { color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.kd-footer-navigation a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 600px) {
  .kd-header-phone a { gap: 6px; padding: 7px 12px; }
  .kd-footer-navigation { justify-content: flex-start; gap: 12px 22px; margin-bottom: 26px; }
}

@media (max-width: 1100px) {
  .kd-header-compact .kd-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content) auto;
    gap: clamp(4px, 1.8vw, 12px);
    min-height: 60px;
    padding-block: 6px;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
  .kd-header-compact :is(.kd-header-brand, .kd-header-inner > .kd-official-logo) {
    grid-area: 1 / 1;
    min-width: 0;
  }
  .kd-header-compact .kd-header-credentials { display: none; }
  .kd-header-compact .kd-official-logo {
    width: min(100%, clamp(100px, 33vw, 145px));
    min-width: 0;
    flex: 0 1 auto;
  }
  .kd-header-compact .kd-header-phone {
    grid-area: 1 / 2;
    font-size: clamp(.8125rem, 3.7vw, 1rem);
  }
  .kd-header-compact .kd-header-phone a {
    min-height: 44px;
    padding: 4px clamp(8px, 2vw, 14px);
    gap: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .kd-header-compact .kd-phone-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .kd-header-compact .kd-header-inner > .wp-block-navigation {
    grid-area: 1 / 3;
    margin-inline-start: 0;
    justify-self: end;
  }
  .kd-header-compact .wp-block-navigation__responsive-container-open {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
}
