/* Squad homepage heading/right-rail alignment v2 */

/* Keep the schedule footnote separated from the cards. */
.hq-home .hq-schedule-note{
  margin-top:22px;
  line-height:1.55;
}

/* Desktop/tablet landscape: every shared SectionHeading support block is
   anchored to the same right edge as the section content below it. */
@media (min-width:861px){
  .hq-home .hq-heading{
    grid-template-columns:minmax(0,1fr) minmax(300px,420px);
    column-gap:clamp(38px,5vw,72px);
    align-items:end;
  }

  .hq-home .hq-heading-side{
    width:100%;
    max-width:420px;
    justify-self:end;
    align-self:end;
    justify-items:end;
    text-align:right;
    padding-bottom:4px;
  }

  .hq-home .hq-heading-side>p{
    width:100%;
    max-width:none;
    margin-left:auto;
  }

  .hq-home .hq-heading-side>.hq-text-link,
  .hq-home .hq-heading-side>.hq-primary-link{
    justify-self:end;
    margin-left:auto;
  }

  /* Join MHQ uses the exact same right rail and alignment. */
  .hq-home .hq-join-section .hq-heading{
    grid-template-columns:minmax(0,1fr) minmax(300px,420px);
    align-items:end;
  }

  .hq-home .hq-join-section .hq-heading-side{
    width:100%;
    max-width:420px;
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
    justify-self:end;
    justify-items:end;
    align-items:start;
    text-align:right;
  }

  .hq-home .hq-join-section .hq-heading-side>p{
    width:100%;
    max-width:none;
    margin-left:auto;
  }

  .hq-home .hq-join-section .hq-primary-link{
    justify-self:end;
    margin-left:auto;
    margin-right:0;
  }
}

/* When headings stack, supporting copy/actions return to normal left alignment. */
@media (max-width:860px){
  .hq-home .hq-heading-side{
    width:100%;
    max-width:none;
    justify-self:stretch;
    justify-items:start;
    text-align:left;
  }

  .hq-home .hq-heading-side>.hq-text-link,
  .hq-home .hq-heading-side>.hq-primary-link{
    justify-self:start;
    margin-left:0;
  }

  .hq-home .hq-schedule-note{
    margin-top:18px;
  }
}