/* Layout fixes on top of the original HubSpot (Elevate) theme.
   The design stays the same; this only evens out spacing the old site got wrong. */

/* Short pages: no white band under the red footer */
html,
body {
  background-color: #ff3d32;
}

/* Home: the big HAUS title was fixed at 400px and overflowed on phones */
body #hs_cos_wrapper_widget_1759576076125,
body #hs_cos_wrapper_widget_1759576076125 h1 {
  font-size: min(400px, calc((100vw - 64px) / 2.7)) !important;
  line-height: 1 !important;
  white-space: nowrap;
  margin: 0;
}
@media (max-width: 767px) {
  body #hs_cos_wrapper_widget_1759576144963,
  body #hs_cos_wrapper_widget_1759576144963 span {
    font-size: 18px !important;
    margin-top: 4px !important;
  }
}

/* Footer: one compact block (email + copyright) instead of empty spacer rows */
.hs-elevate-footer .dnd-section {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
#hs_cos_wrapper_widget_1759674231438,
#hs_cos_wrapper_footer-module-6 {
  display: none;
}
.hs-elevate-footer a,
.hs-elevate-footer a:visited {
  color: #ffffff;
  text-decoration: none;
}
.hs-elevate-footer a:hover {
  text-decoration: underline;
}
.hs-elevate-footer .hs-elevate-rich-text {
  margin-bottom: 8px;
}

/* Company and Team: same text size as the production pages, readable line length */
.haus-text-page main .dnd-section > .row-fluid {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.haus-text-page main p,
.haus-text-page main li {
  font-size: 18px;
  line-height: 1.55;
}
.haus-text-page main h1 {
  margin-bottom: 24px;
}

/* Our Work: every tile row gets the same spacing */
.haus-ourwork main .dnd-section + .dnd-section {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}
.haus-ourwork main .dnd-section:first-child {
  padding-bottom: 48px !important;
}
.haus-ourwork main h2 {
  margin: 0;
}
@media (min-width: 768px) {
  .haus-ourwork main .dnd-section + .dnd-section > .row-fluid {
    display: flex;
    align-items: center;
  }
}
.haus-ourwork main h2 a:hover span {
  text-decoration: underline;
}

/* Production pages: no stray blank paragraphs */
main p:empty {
  display: none;
}

@media (max-width: 767px) {
  .haus-ourwork main .dnd-section + .dnd-section {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .haus-ourwork main .dnd-column + .dnd-column h2 {
    margin-top: 24px;
  }
  .haus-text-page main p,
  .haus-text-page main li {
    font-size: 17px;
  }
}
