/* EXKO V21: restore the original wordmark typography without enlarging navigation.
   Load AFTER header-and-service-image-v18.css. */

/* Desktop: the logo keeps its original font sizes and enough grid width. */
@media (min-width: 1181px) {
  .site-header .header-inner,
  html.is-landing-home .site-header .header-inner {
    grid-template-columns: minmax(320px, 320px) minmax(0, 1fr) max-content;
    column-gap: clamp(.45rem, .7vw, .75rem);
  }
  .site-header .site-logo,
  html.is-landing-home .site-header .site-logo {
    width: fit-content;
    min-width: 0;
    max-width: 24rem;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  .site-header .site-logo__title,
  html.is-landing-home .site-header .site-logo__title {
    font-size: 1.34rem;
    font-weight: var(--font-weight-bold);
    line-height: .9;
    letter-spacing: -.052em;
  }
  .site-header .site-logo__subtitle,
  html.is-landing-home .site-header .site-logo__subtitle {
    font-size: .90rem;
    line-height: 1.15;
    white-space: nowrap;
  }
}

/* Tablet and phone: restore the original theme's logo, not the V18 override. */
@media (max-width: 1180px) {
  .site-header .site-logo,
  html.is-landing-home .site-header .site-logo {
    width: fit-content;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}
@media (min-width: 768px) and (max-width: 1180px) {
  .site-header .site-logo__title,
  html.is-landing-home .site-header .site-logo__title { font-size: 1.34rem; line-height: .9; letter-spacing: -.052em; }
  .site-header .site-logo__subtitle,
  html.is-landing-home .site-header .site-logo__subtitle { font-size: .90rem; line-height: 1.15; white-space: nowrap; }
}
@media (min-width: 421px) and (max-width: 767px) {
  .site-header .site-logo__title,
  html.is-landing-home .site-header .site-logo__title { font-size: .90rem; line-height: 1; letter-spacing: -.04em; }
}
@media (max-width: 420px) {
  .site-header .site-logo,
  html.is-landing-home .site-header .site-logo { max-width: 8.75rem; }
  .site-header .site-logo__title,
  html.is-landing-home .site-header .site-logo__title { font-size: .75rem; line-height: 1; letter-spacing: -.04em; }
}

/* V28: visually centre only the phone number in the header action. 
   Keep wordmark size, navigation, all buttons, and the phone-button size intact. */
.site-header .header-actions > a[href^="tel:"],
.site-header .header-actions > a:not(.header-mail-v15) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: 1.15;
  /* A small optical adjustment: the label was sitting above the middle. */
  padding-top: calc(.38rem + 1px);
  padding-bottom: calc(.38rem - 1px);
}

/* Keep icons and nested spans centred too if the CMS wraps the phone text. */
.site-header .header-actions > a[href^="tel:"] > *,
.site-header .header-actions > a:not(.header-mail-v15) > * {
  align-self: center;
}
