/* Win over per-page rules and late inline writes only while an item has an image. */
body.highr-how-it-works-active #gf-hero-bg[data-highr-hiw-background] {
  background-image: var(--highr-hiw-background) !important;
  background-color: var(--highr-hiw-background-color) !important;
  transition: none !important;
}

body.highr-how-it-works-active #gf-hero-bg[data-highr-hiw-background]::before {
  display: none !important;
}

#gf-hero-bg .highr-how-it-works__background-layer {
  position: absolute;
  inset: 0;
  background-size: inherit;
  background-position: inherit;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* [highr_how_it_works] */
.highr-how-it-works {
  --highr-hiw-base-color: #000;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 120px) clamp(0px, 2vw, 32px);
  box-sizing: border-box;
  color: #fff;
  text-align: left;
}

.highr-how-it-works .highr-how-it-works__heading {
  margin: 0 0 clamp(56px, 8vw, 140px);
  padding: 0;
  font-family: "FT-Lambert";
  font-size: clamp(32px, 3.2vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: left !important;
  color: inherit;
}

.highr-how-it-works__items {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: repeat(var(--highr-hiw-count), max-content);
  min-height: var(--highr-hiw-panel-height, 0px);
  gap: 24px clamp(32px, 6vw, 100px);
  align-items: start;
  align-content: start;
}

.highr-how-it-works__item {
  display: contents;
}

.highr-how-it-works .highr-how-it-works__item-heading {
  grid-column: 1;
  grid-row: var(--highr-hiw-row);
  min-width: 0;
  margin: 0;
  padding: 0;
  font: inherit;
}

.highr-how-it-works .highr-how-it-works__trigger {
  display: grid;
  grid-template-columns: 2.1ch minmax(0, 1fr);
  gap: clamp(16px, 2vw, 40px);
  align-items: baseline;
  width: 100%;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #a6a6a6;
  font-family: "FT-Lambert", Arial, sans-serif;
  font-size: clamp(23px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 150ms ease;
}

.highr-how-it-works .highr-how-it-works__trigger::before,
.highr-how-it-works .highr-how-it-works__trigger::after {
  content: none;
}

.highr-how-it-works .highr-how-it-works__trigger[aria-expanded="true"],
.highr-how-it-works .highr-how-it-works__trigger:hover {
  color: #fff;
}

.highr-how-it-works .highr-how-it-works__trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.highr-how-it-works__number {
  color: #a6a6a6;
  font-variant-numeric: tabular-nums;
  font-family: GT-America-Mono, monospace !important;
}

.highr-how-it-works__icon {
  display: none;
}

.highr-how-it-works .highr-how-it-works__panel {
  /* Content cannot resize the title rows. JS reserves the tallest panel below. */
  position: absolute;
  inset: 0 0 auto;
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
  font-family: "General-Sans", Arial, sans-serif;
  font-size: clamp(16px, 1.2vw, 22px);
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: left;
  color: inherit;
}

.highr-how-it-works__panel[hidden] {
  display: none !important;
}

@media (min-width: 1024px) {
  .highr-how-it-works {
    padding-block: clamp(16px, 3vh, 32px) 16px;
  }

  .highr-how-it-works .highr-how-it-works__heading {
    margin-bottom: clamp(36px, 7vw, 100px);
    /* The theme's form-ID heading rule otherwise adds another bottom gap. */
    padding: 0 !important;
  }

  /* Fade emphasis without changing the title's size, spacing or position. */
  .highr-how-it-works .highr-how-it-works__trigger {
    color: #fff;
    opacity: 0.42;
    transition: opacity 200ms ease;
  }

  .highr-how-it-works
    .highr-how-it-works__trigger:is(
      [aria-expanded="true"],
      :hover,
      :focus-visible
    ) {
    opacity: 1;
  }

  .highr-how-it-works__title {
    font-style: normal;
    transform: skewX(0deg);
    transform-origin: left center;
    transition: transform 180ms ease;
  }

  .highr-how-it-works__trigger:is(
      [aria-expanded="true"],
      :hover,
      :focus-visible
    )
    .highr-how-it-works__title {
    transform: skewX(-8deg);
  }

  @media (prefers-reduced-motion: reduce) {
    .highr-how-it-works__title {
      transition: none;
    }
  }

  /* Measure inactive panels without exposing them visually or to assistive tech. */
  .highr-how-it-works__panel[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
  }
}

.highr-how-it-works__panel p {
  margin: 0 0 1.25em;
  font: inherit;
  color: inherit;
  text-align: left;
}

.highr-how-it-works__content > :last-child {
  margin-bottom: 0;
}

.highr-how-it-works__panel ul {
  padding: 0;
  margin: 48px 0 0;
  list-style: none;
}

.highr-how-it-works__panel ul > li {
  position: relative;
  margin: 0;
  padding: 20px 0 20px 32px;
  border-top: 1px dotted rgb(255 255 255 / 45%);
  font-size: 0.875em;
  list-style: none;
  font-family: "General-Sans", Arial, sans-serif;
}

.highr-how-it-works__panel ul > li:last-child {
  border-bottom: 1px dotted rgb(255 255 255 / 45%);
}

.highr-how-it-works__panel ul > li::before {
  content: "";
  position: absolute;
  top: calc(20px + 0.35em);
  left: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(115deg, #fff, #aaa);
}

.highr-how-it-works__panel a {
  color: inherit;
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .highr-how-it-works__panel ul {
    margin-top: 28px;
  }

  .highr-how-it-works__panel ul > li {
    padding-block: 14px;
  }

  .highr-how-it-works__panel ul > li::before {
    top: calc(14px + 0.35em);
  }

  /* Scope footer spacing to whichever GF page contains this shortcode. */
  .gform_page:has([data-highr-how-it-works]) .gform_page_footer {
    /* Override the theme's form-ID sibling spacing without affecting other pages. */
    margin-top: 52px !important;
    padding-bottom: 24px;
  }
}

@media (max-width: 1023px) {
  /* Keep this screen dark on mobile, even if the pager writes a late background. */
  body.highr-how-it-works-mobile #gf-hero-bg {
    background-image: url("../img/pager-bg/generic-bg.png") !important;
    background-color: #000 !important;
    transition: none !important;
  }

  body.highr-how-it-works-mobile #gf-hero-bg::before {
    display: none !important;
  }

  .highr-how-it-works {
    padding: 40px 0;
  }

  .highr-how-it-works__items,
  .highr-how-it-works__item {
    display: block;
  }

  .highr-how-it-works__item {
    border-top: 1px solid rgb(255 255 255 / 70%);
  }

  .highr-how-it-works__item:last-child {
    border-bottom: 1px solid rgb(255 255 255 / 70%);
  }

  .highr-how-it-works .highr-how-it-works__trigger {
    grid-template-columns: 2.1ch minmax(0, 1fr) 18px;
    gap: 14px;
    padding: 24px 0;
    font-size: clamp(20px, 3.8vw, 32px);
    color: #fff;
  }

  .highr-how-it-works__icon {
    display: block;
    position: relative;
    align-self: center;
    width: 18px;
    height: 18px;
  }

  .highr-how-it-works__icon::before,
  .highr-how-it-works__icon::after {
    content: "";
    position: absolute;
    background: currentColor;
  }

  .highr-how-it-works__icon::before {
    top: 8px;
    left: 0;
    width: 18px;
    height: 1px;
  }

  .highr-how-it-works__icon::after {
    top: 0;
    left: 8px;
    width: 1px;
    height: 18px;
  }

  .highr-how-it-works__trigger[aria-expanded="true"]
    .highr-how-it-works__icon::after {
    display: none;
  }

  .highr-how-it-works .highr-how-it-works__panel {
    position: static;
    overflow: hidden;
    font-size: clamp(17px, 3vw, 23px);
  }

  .highr-how-it-works__content {
    display: flow-root;
    padding: 4px 0 44px;
  }

  .highr-how-it-works__panel ul {
    margin-top: 28px;
  }

  .highr-how-it-works__panel ul > li,
  .highr-how-it-works__panel ul > li:last-child {
    border: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 18px;
    font-size: 1em;
  }

  .highr-how-it-works__panel ul > li::before {
    top: 0.35em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .highr-how-it-works .highr-how-it-works__trigger {
    transition: none;
  }
}
