/*
  BLM V10.12 — TWO MOBILE HOMEPAGE PANEL FIXES
  This file is loaded only at 760px and below.
  No desktop rules are included.
*/

@media only screen and (max-width: 760px) {

  /* -------------------------------------------------------------
     1. DARK TRUST STRIP
     The inherited desktop height was clipping the second mobile row.
     ------------------------------------------------------------- */
  .page-home .hero-strip {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .page-home .hero-strip .shell {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(112px, auto) !important;
    align-items: stretch !important;
    padding: 0 !important;
  }

  .page-home .hero-feature {
    width: 100%;
    min-width: 0;
    min-height: 112px !important;
    height: auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 14px !important;
    border-right: 1px solid rgba(212, 180, 109, .28) !important;
    border-bottom: 1px solid rgba(212, 180, 109, .28) !important;
  }

  .page-home .hero-feature:nth-child(2n) {
    border-right: 0 !important;
  }

  .page-home .hero-feature:nth-child(n+3) {
    border-bottom: 0 !important;
  }

  .page-home .hero-feature .icon {
    width: 31px !important;
    height: 31px !important;
    flex: 0 0 31px !important;
  }

  .page-home .hero-feature span {
    min-width: 0;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1.38 !important;
  }

  .page-home .hero-feature strong {
    margin-bottom: 2px;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.22 !important;
  }

  /* -------------------------------------------------------------
     2. CREAM EXPERIENCE / REGULATION PANEL
     Keep a compact, legible 2 × 2 layout on phones.
     ------------------------------------------------------------- */
  .page-home .stats-bar {
    width: calc(100% - 28px) !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(142px, auto) !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 26px auto 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px !important;
  }

  .page-home .stat {
    width: 100%;
    min-width: 0;
    min-height: 142px !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    align-content: center !important;
    gap: 12px !important;
    padding: 20px 15px !important;
    border-right: 1px solid #d8cbb4 !important;
    border-bottom: 1px solid #d8cbb4 !important;
  }

  .page-home .stat:nth-child(2n) {
    border-right: 0 !important;
  }

  .page-home .stat:nth-child(n+3) {
    border-bottom: 0 !important;
  }

  .page-home .stat-icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
  }

  .page-home .stat-icon .icon {
    width: 24px !important;
    height: 24px !important;
  }

  .page-home .stat > div:last-child {
    min-width: 0;
  }

  .page-home .stat strong {
    display: block;
    margin: 0 !important;
    color: #064b3f !important;
    font-size: clamp(19px, 5.4vw, 23px) !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .page-home .stat strong[data-count] {
    font-size: clamp(26px, 7.2vw, 31px) !important;
  }

  .page-home .stat span {
    display: block;
    margin-top: 7px !important;
    color: #263f38 !important;
    font-size: 11.5px !important;
    line-height: 1.42 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

@media only screen and (max-width: 390px) {

  /* Override the older one-column rule only for this statistics panel. */
  .page-home .stats-bar {
    width: calc(100% - 22px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(132px, auto) !important;
  }

  .page-home .stat {
    min-height: 132px !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 16px 10px !important;
    border-right: 1px solid #d8cbb4 !important;
  }

  .page-home .stat:nth-child(2n) {
    border-right: 0 !important;
  }

  .page-home .stat:nth-child(n+3) {
    border-bottom: 0 !important;
  }

  .page-home .stat-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .page-home .stat-icon .icon {
    width: 21px !important;
    height: 21px !important;
  }

  .page-home .stat strong {
    font-size: 17px !important;
    line-height: 1.1 !important;
  }

  .page-home .stat strong[data-count] {
    font-size: 25px !important;
  }

  .page-home .stat span {
    font-size: 10px !important;
    line-height: 1.4 !important;
  }

  .page-home .hero-strip .shell {
    grid-auto-rows: minmax(108px, auto) !important;
  }

  .page-home .hero-feature {
    min-height: 108px !important;
    padding: 16px 11px !important;
    gap: 9px !important;
  }

  .page-home .hero-feature .icon {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
  }

  .page-home .hero-feature strong {
    font-size: 13.5px !important;
  }

  .page-home .hero-feature span {
    font-size: 10.5px !important;
  }
}
