/* HOA V8.90.78 P28 — phone hero balance.
   Keep the primary CTA and preparation proof on the left so the approved student/backpack photo stays visible on the right.
   Mobile-only presentation change; no handlers, routes, or data contracts are changed. */
@media (max-width: 600px) {
  body.hoa-public-front #hoaFrontPage .hoa-p8-brand-hero {
    background-color: #fffaf0 !important;
    background-image:
      linear-gradient(90deg,
        rgba(255,253,248,.985) 0%,
        rgba(255,253,248,.94) 39%,
        rgba(255,253,248,.53) 67%,
        rgba(255,253,248,.15) 100%),
      linear-gradient(180deg,
        rgba(255,253,248,.95) 0%,
        rgba(255,253,248,.83) 40%,
        rgba(255,253,248,.12) 100%),
      url('../assets/hoa-hero-student.webp?v=8.90.78-mobile-left-balance') !important;
    background-size: 100% 100%, 100% 100%, auto 82% !important;
    background-position: center center, center center, 68% bottom !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
  }

  /* A contained button is easier to scan and leaves the student's backpack unobstructed. */
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-actions {
    display: block !important;
    width: min(250px, 76%) !important;
    max-width: 250px !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    justify-self: start !important;
  }
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-actions .hoa-p4-button,
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-actions .hoa-p4-button:first-child {
    display: inline-flex !important;
    grid-column: auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    padding: 10px 11px !important;
    border-radius: 12px !important;
    font-size: clamp(10.5px, 2.8vw, 12px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  /* Stack proof points as one left-aligned column, rather than spreading them across the image. */
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-proof {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: min(230px, 76%) !important;
    max-width: 230px !important;
    gap: 6px !important;
    margin: 11px 0 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
  }
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-proof > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 3px 9px 3px 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,253,248,.84) !important;
    color: #173b5a !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-shadow: 0 2px 8px rgba(8,38,67,.045) !important;
  }
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-proof > span > i {
    flex: 0 0 17px !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
  }
}

@media (max-width: 360px) {
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-actions {
    width: min(220px, 80%) !important;
  }
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-actions .hoa-p4-button,
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-actions .hoa-p4-button:first-child {
    padding-inline: 8px !important;
    font-size: 10.5px !important;
  }
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-proof {
    width: min(215px, 80%) !important;
    font-size: 9.5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hoa-public-front #hoaFrontPage .hoa-p8-hero-actions .hoa-p4-button {
    transition: none !important;
  }
}
