/* Use the same three shared rows for ordinary cards as for promoted cards. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 481px) {
    .sgh-page :is(.sgh-grid.sgh-finder-original, .sgh-finder-results .sgh-grid):not(:has(.sgh-finder-promotion:not([hidden]))) {
      --sgh-card-row-spacing: 20px;
      row-gap: 0;
    }

    .sgh-page :is(.sgh-grid.sgh-finder-original, .sgh-finder-results .sgh-grid):not(:has(.sgh-finder-promotion:not([hidden]))) > .sgh-card-group {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      row-gap: 0;
      align-self: stretch;
      margin-block-end: var(--sgh-card-row-spacing);
    }
  }

  @media (min-width: 481px) and (max-width: 700px) {
    .sgh-page :is(.sgh-grid.sgh-finder-original, .sgh-finder-results .sgh-grid):not(:has(.sgh-finder-promotion:not([hidden]))) {
      --sgh-card-row-spacing: 12px;
    }
  }

  @media (min-width: 1051px) {
    .sgh-yamaha-offers > .sgh-yamaha-offer {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 11;
      row-gap: 0;
      align-items: start;
    }

    .sgh-yamaha-offers {
      row-gap: 0;
    }

    .sgh-yamaha-offers .sgh-yamaha-offer > .nmp-compare {
      margin-block-start: 0;
      align-self: stretch;
    }
  }

  @media (min-width: 651px) {
    .sgh-service-request .sgh-service-field:not(.sgh-service-field-full) {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 2;
      row-gap: 8px;
    }

    .sgh-service-request .sgh-service-field:not(.sgh-service-field-full) > label {
      margin-block-end: 0;
      align-self: start;
    }
  }
}

@media (max-width: 700px) {
  .sgh-page .sgh-hero-grid:has(.sgh-spotlight-slide) {
    min-height: 0;
    row-gap: 16px;
  }

  .sgh-page .sgh-hero-grid:has(.sgh-spotlight-slide) .sgh-hero-copy {
    padding-block: 22px 0;
  }

  body.sgh-site .sgh-hero-grid:has(.sgh-spotlight-slide) .sgh-hero-copy h1 {
    font-size: clamp(40px, 12vw, 52px) !important;
    margin-block: 12px;
  }

  .sgh-page .sgh-hero-grid:has(.sgh-spotlight-slide) .sgh-hero-copy > .sgh-button {
    margin-inline-end: 12px;
  }

  .sgh-page .sgh-hero-grid:has(.sgh-spotlight-slide) .sgh-hero-copy > .sgh-textlink {
    margin: 6px 0 0;
  }

  .sgh-page .sgh-hero-visual:has(.sgh-spotlight-slide) {
    grid-template-rows: auto;
    padding-block: 0 20px;
  }

  .sgh-page .sgh-hero-visual:has(.sgh-spotlight-slide) > .sgh-big-type {
    display: none;
  }

  .sgh-page .sgh-hero-visual:has(.sgh-spotlight-slide) > .sgh-spotlight-slide {
    grid-area: 1 / 1;
  }

  .sgh-page .sgh-hero-visual:has(.sgh-spotlight-slide) img {
    height: clamp(215px, 60vw, 280px);
  }
}

.sgh-page .sgh-plan-payments-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0 0 12px;
    padding: 0;
}

.sgh-plan-payments-arrow {
    width: .43em;
    height: .43em;
    flex: 0 0 auto;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
}

.sgh-detail-grid [data-sgh-payment-grid] {
    scroll-margin-top: 20px;
}

@media (max-width: 700px) {
    .sgc-selected-mobile .sgc-intro {
        padding: 18px 0;
    }

    .sgc-selected-mobile .sgc-intro h1 {
        font-size: clamp(30px, 9vw, 40px) !important;
        margin-bottom: 0 !important;
    }

    .sgc-selected-mobile :is(.sgc-lede, .sgc-step-number) {
        display: none;
    }

    .sgc-selected-mobile .sgc-bike-summary {
        margin-bottom: 12px;
    }

    .sgc-selected-mobile .sgc-bike-summary h2 {
        margin: 2px 0 8px !important;
    }

    .sgc-root .sgc-change-bike {
        display: block;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--sgc-ink);
        text-align: start;
        text-decoration: underline;
        text-underline-offset: 4px;
        min-height: 44px;
        padding: 4px 0;
        cursor: pointer;
        font: 700 14px/1.4 var(--sgh-font-text, 'DM Sans', Arial, sans-serif) !important;
    }

    .sgc-root .sgc-change-bike:hover {
        color: var(--sgc-red);
    }

    .sgc-selected-mobile .sgc-results > .sgc-quote {
        margin: 0 0 20px;
    }

    .sgc-current-plan {
        display: block;
        color: var(--sgc-ink);
        font-size: 14px !important;
        font-weight: 700;
    }
}

.sgh-card-image > .sgh-card-webp, .sge-hero-grid picture.sgh-service-webp { display: contents; }
