body[data-erl-contractor-branding] {
  --erl-logo-navy: #00091c;
}

html body[data-erl-contractor-branding] :is(header.public-header, header.public-header > .nav, footer.footer) {
  background: var(--erl-logo-navy) !important;
}

html body[data-erl-contractor-branding] .contractor-footer.screenshot-footer .footer-grid {
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2.5rem);
}
html body[data-erl-contractor-branding] .contractor-footer.screenshot-footer .footer-grid > nav {
  min-width: 0;
  text-align: start;
}
html body[data-erl-contractor-branding] .contractor-footer.screenshot-footer .footer-grid nav h2 {
  margin: 0 0 .75rem;
}
@media (max-width: 850px) {
  html body[data-erl-contractor-branding] .contractor-footer.screenshot-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body[data-erl-contractor-branding] .contractor-footer.screenshot-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

html body[data-erl-contractor-branding] :is(header.public-header .brand img, footer.footer .footer-logo) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--erl-logo-navy) !important;
  box-shadow: none;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}

html body[data-erl-contractor-branding] #contractor-platform-intro-title {
  letter-spacing: .005em !important;
}

@media (max-width: 1100px) {
  html body[data-erl-contractor-branding] header.public-header.erl-shared-mobile-header .nav > .brand {
    width: min(100%, clamp(9.5rem, 47vw, 13.75rem));
    max-width: none;
  }
  html body[data-erl-contractor-branding] header.public-header.erl-shared-mobile-header .nav > .brand img {
    width: 100% !important;
    max-width: none;
    max-height: 76px;
  }
  html body[data-erl-contractor-branding] .topbar .container > span {
    display: block !important;
    text-align: center;
    line-height: 1.4;
  }
}

@media (max-width: 900px) {
  html body[data-erl-contractor-branding] main :is(.page-banner-copy, .erlv-call-hero-copy, .reach-hero-copy, .contact-banner-copy) {
    text-align: center !important;
    justify-self: center;
    margin-inline: auto;
  }
  html body[data-erl-contractor-branding] main :is(.page-banner-copy, .erlv-call-hero-copy, .reach-hero-copy, .contact-banner-copy) > :is(h1, p, ul) {
    margin-inline: auto !important;
  }
  html body[data-erl-contractor-branding] main :is(.page-banner-copy, .erlv-call-hero-copy, .reach-hero-copy, .contact-banner-copy) :is(.eyebrow, .contact-kicker, .erlv-actions, .erl-launch-about-points) {
    justify-content: center;
    text-align: center !important;
  }
}

body[data-erl-contractor-branding] :is(#erlv-pricing-delivery-cards, #erlv-getting-started-cards) + .erlv-mobile-carousel-controls {
  display: none;
}

@media (max-width: 820px) {
  html body main.erlv-home > .erlv-home-pricing-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  html body main.erlv-home .erlv-home-pricing-portrait {
    height: auto !important;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 25%;
  }
  html body main.erlv-home .erlv-call-benefits li {
    text-align: left !important;
  }
  html body main.erlv-home #contractor-process .erlv-home-process-progress {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body main.erlv-home #contractor-process .erlv-home-process-progress > li:last-child {
    grid-column: 1 / -1;
  }
  html body main.erl-contractor :is(#erlv-pricing-delivery-cards, #erlv-getting-started-cards).erlv-mobile-carousel {
    display: flex;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  html body main.erl-contractor :is(#erlv-pricing-delivery-cards, #erlv-getting-started-cards).erlv-mobile-carousel > li {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
  }
  html body[data-erl-contractor-branding] :is(#erlv-pricing-delivery-cards, #erlv-getting-started-cards) + .erlv-mobile-carousel-controls {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-block-start: .85rem;
  }
  body[data-erl-contractor-branding] :is(#erlv-pricing-delivery-cards, #erlv-getting-started-cards) + .erlv-mobile-carousel-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid #d6ae68;
    border-radius: 50%;
    background: #0a2a51;
    color: #fff;
    font-size: 1.4rem;
  }
  body[data-erl-contractor-branding] :is(#erlv-pricing-delivery-cards, #erlv-getting-started-cards) + .erlv-mobile-carousel-controls button:disabled {
    opacity: .45;
  }
}

@media (max-width: 730px) {
  html body main.erlv-about .erlv-about-tech-ribbon .about-story-copy {
    min-width: 0;
    padding-inline: 1rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
  }
}

@media (max-width: 700px) {
  html body #main-content.contractor-contact-reference .reach-benefits > ul.container {
    width: max-content;
    max-width: 92%;
    grid-template-columns: minmax(0, 1fr);
    gap: .4rem;
    padding-block: .55rem;
  }
  html body #main-content.contractor-contact-reference .reach-benefits li {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }
  html body #main-content.contractor-contact-reference .reach-benefits li::before {
    content: none;
  }
  html body #main-content.contractor-contact-reference .reach-benefit-icon {
    justify-self: center;
  }
}
