/* Brand lockup. The font-size lives on the row so the mark can be sized in em
   and track the name at every width, on one line. */
.cs_site_branding,
.milr-brand-lockup {
        display: inline-flex;
        align-items: center;
        gap: 0.5em;
        white-space: nowrap;
        font-size: clamp(14px, 2.5vw, 20px);
      }

.milr-brand-logo {
        flex: 0 0 auto;
        width: 1.5em;
        height: 1.5em;
      }

.milr-brand-text {
        font-size: 1em;
        font-weight: 700;
        color: #274760;
        line-height: 1.2;
        white-space: nowrap;
      }

.cs_site_branding img { display: none; }

.cs_logo_box img { display: none; }

.cs_footer_brand_text {
        font-size: clamp(18px, 3vw, 28px);
        color: #0d3a5c !important;
        font-weight: 700;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
      }

@media (max-width: 1199.98px) {
body.directory-page .cs_site_header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff !important;
}

body.directory-page .cs_main_header_in {
  flex-wrap: nowrap;
  height: auto;
  min-height: 72px;
}

body.directory-page .cs_main_header_left {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.directory-page .cs_site_branding {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 52px);
}

body.directory-page .milr-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

body.directory-page .cs_nav {
  flex: 0 0 auto;
  position: relative;
  width: 44px;
  height: 44px;
}

body.directory-page .cs_main_header_right {
  display: none !important;
}

body.directory-page .cs_menu_toggle {
  display: inline-block !important;
  position: relative;
  top: auto;
  right: auto;
  margin-top: 0;
}

body.directory-page .cs_sidenav {
  z-index: 1000001;
}
}

.mobile-call-bar {
        display: none;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 9999;
        box-sizing: border-box;
        width: 100%;
        background: #22a06b;
        color: #fff;
        text-align: center;
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
        font-weight: 700;
        font-size: clamp(14px, 3.8vw, 16px);
        min-height: 48px;
        box-shadow: 0 -4px 20px rgba(0,0,0,.15);
        text-decoration: none;
        align-items: center;
        justify-content: center;
      }

.mobile-call-bar:hover { color: #fff; background: #1a8f5c; }

@media (max-width: 767px) {
.mobile-call-bar { display: flex; }

body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Minimal mobile sticky call bar */
.mobile-call-bar {
  position: fixed;
  z-index: 99999;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  color: #ffffff;
  background: #02b615;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-call-bar:hover {
  color: #ffffff;
  background: #029a12;
}

@media (max-width: 991px) {
body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

.mobile-call-bar {
    display: flex;
  }
}

.site-footer {
  padding: 85px 0 28px;
  color: #ffffff;
  background: #17332c;
}

.footer-about > p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-brand .brand-logo {
  height: 36px;
  max-width: min(110px, 34vw);
}

@media (max-width: 1080px) {
.footer-brand .brand-logo {
    height: 32px;
    max-width: min(92px, 32vw);
  }
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--header-bar-border, rgba(16, 46, 68, 0.08));
  background: var(--header-bar-bg, rgba(255, 255, 255, 0.96));
  color: var(--header-bar-text, inherit);
  backdrop-filter: var(--header-bar-backdrop, blur(14px));
}

.site-header .brand-name,
.site-header .brand-copy strong,
.site-header .brand-text strong,
.site-header .primary-nav > a,
.site-header .main-nav > a,
.site-header .nav-menu > a,
.site-header .desktop-nav > a {
  color: var(--header-bar-link, inherit);
}

.site-header .brand-copy small,
.site-header .brand-text small {
  color: var(--header-bar-link-muted, inherit);
}

.site-header .menu-toggle {
  color: var(--header-bar-link, inherit);
}

.site-header .header-inner,
.site-header .nav-wrap,
.site-header .container.nav-wrap,
.header-inner.shell,
.header-inner.page-shell,
.page-shell.header-inner,
.shell.header-inner {
  width: min(var(--content-max, 2400px), calc(100% - 40px));
  max-width: none;
  min-height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: none;
  width: auto;
  margin-right: 0;
}

.logo-placeholder,
.brand-mark,
.logo-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  padding: 0;
  box-shadow: none;
}

.brand-logo,
.brand .brand-logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: min(120px, 38vw);
  flex: 0 0 auto;
  object-fit: contain;
  background: var(--header-logo-bg, transparent);
  border: 0;
  border-radius: var(--header-logo-radius, 0);
  padding: var(--header-logo-pad, 0);
  box-shadow: none;
  overflow: visible;
  box-sizing: content-box;
}

.footer-brand .brand-logo {
  height: 36px;
  max-width: min(110px, 34vw);
  background: var(--footer-logo-bg, var(--header-logo-bg, transparent));
  padding: var(--footer-logo-pad, var(--header-logo-pad, 0));
  border-radius: var(--footer-logo-radius, var(--header-logo-radius, 0));
}

.logo-placeholder svg,
.brand-mark svg,
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-placeholder:has(svg) {
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.brand-copy,
.brand-text {
  display: grid;
  line-height: 1.05;
  min-width: 0;
}

.brand-copy strong,
.brand-text strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-copy small,
.brand-text small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-brand.brand,
.brand.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.primary-nav,
.main-nav,
.nav-menu,
.desktop-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.8vw, 24px);
  white-space: nowrap;
  margin-left: auto;
}

.primary-nav > a,
.main-nav > a,
.nav-menu > a,
.desktop-nav > a {
  position: relative;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-nav > a:not(.nav-call)::after,
.main-nav > a:not(.nav-call)::after,
.nav-menu > a:not(.nav-call)::after,
.desktop-nav > a:not(.nav-call)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav > a:not(.nav-call):hover::after,
.primary-nav > a:not(.nav-call):focus-visible::after,
.primary-nav > a.active::after,
.main-nav > a:not(.nav-call):hover::after,
.main-nav > a:not(.nav-call):focus-visible::after,
.main-nav > a.active::after,
.nav-menu > a:not(.nav-call):hover::after,
.nav-menu > a:not(.nav-call):focus-visible::after,
.nav-menu > a.active::after,
.desktop-nav > a:not(.nav-call):hover::after,
.desktop-nav > a:not(.nav-call):focus-visible::after,
.desktop-nav > a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .nav-call,
.main-nav .nav-call,
.nav-menu .nav-call,
.desktop-nav .nav-call {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
}

.primary-nav .nav-call::after,
.main-nav .nav-call::after,
.nav-menu .nav-call::after,
.desktop-nav .nav-call::after {
  display: none;
}

.header-phone,
.header-call,
.header-cta,
.header-quote {
  display: none !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

@media (max-width: 1080px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav,
  .main-nav,
  .nav-menu,
  .desktop-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 18px 20px 24px;
    margin-left: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .primary-nav.open,
  .main-nav.open,
  .nav-menu.open,
  .desktop-nav.open {
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav > a,
  .main-nav > a,
  .nav-menu > a,
  .desktop-nav > a {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 1rem;
  }

  .primary-nav .nav-call,
  .main-nav .nav-call,
  .nav-menu .nav-call,
  .desktop-nav .nav-call {
    margin-top: 8px;
    width: fit-content;
  }

  .logo-placeholder,
  .brand-mark,
  .logo-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .brand-logo {
    height: 34px;
    max-width: min(100px, 34vw);
  }

  .footer-brand .brand-logo {
    height: 32px;
    max-width: min(92px, 32vw);
  }
}