/* Homepage refinements. Kept separate from shared/interior page styles. */
.hq-home main section[id] {
  scroll-margin-top: calc(var(--hq-header-h, 85px) + 24px);
}

/* Reserve the tallest quote's space without dropping shorter quotes below it. */
.hq-home .hq-slide-text { align-self: start; }
.hq-home .hq-marker-name { overflow-wrap: normal; line-height: 1.45; }

.hq-home .hq-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 36px; }
.hq-home .hq-faq-a { margin-bottom: 20px; }
.hq-home .hq-request-quote,
.hq-home .hq-proof-source { margin-top: auto; }
/* Share content tracks so different title/quote lengths keep their dividers aligned. */
@supports (grid-template-rows: subgrid) {
  .hq-home .hq-request-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 16px;
  }
  .hq-home .hq-request-quote { margin-top: 0; }
}
.hq-home #pricing .hq-intro { align-items: start; margin-bottom: 0; }
.hq-home #pricing .hq-intro-text { display: flex; flex-direction: column; gap: 20px; }
.hq-home #pricing .hq-intro-text > a { align-self: flex-start; }
/* With the award unpublished, these are consecutive white sections. */
.hq-home #award[hidden] + #products { padding-top: 0; }

@media (max-width: 1023px) {
  .hq-home .hq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .hq-home .hq-rail { gap: 8px; }
  .hq-home .hq-marker-name { font-size: 11px; min-height: 2.9em; }
  .hq-home .hq-owners { padding: 20px; }
  .hq-home .hq-owner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .hq-home .hq-owner-name { font-size: 17px; line-height: 1.3; }
  .hq-home .hq-owner-logo {
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    height: 44px;
    padding: 7px;
  }
  .hq-home .hq-owner-logo--compact { width: 48px; }
  .hq-home .hq-module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .hq-home .hq-module-tab { gap: 8px; align-items: center; min-height: 64px; }
  .hq-home .hq-module-n { width: auto; flex-shrink: 0; font-size: 10px; }
  .hq-home .hq-module-name { font-size: 18px; line-height: 1.25; }
  .hq-home .hq-module-tab .hq-module-arrow { display: none; }
  .hq-home .hq-module-tab.is-active { border-bottom-color: var(--lo-azure); }
  .hq-home .hq-modules { row-gap: 28px; }
  .hq-home .hq-steps { grid-template-columns: 1fr; }
  .hq-home .hq-step { padding-right: 0; }
}

@media (max-width: 359px) {
  .hq-home .hq-rail { gap: 5px; }
  .hq-home .hq-marker-name { font-size: 10px; }
  .hq-home .hq-owner-grid { grid-template-columns: 1fr; }
  .hq-home .hq-owner-logo { height: 56px; padding: 8px; }
  .hq-home .hq-owner-logo--compact { width: 60px; }
}
