/* ── v4.15-final: LAST cascade win for mobile compaction (source order) ── */

/* Force 2-col layouts on phones (override later-in-file rules) */
@media (max-width: 640px){
  html body .exfg-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 4px;
  }
  html body .exfg-card{
    padding: 12px 10px !important;
    border-radius: 12px !important;
  }
  html body .exfg-card .exfg-icon,
  html body .exfg-card-num,
  html body .exfg-num{ font-size: 22px !important; line-height: 1 !important }
  html body .exfg-card-title,
  html body .exfg-title-card{ font-size: 12px !important; line-height: 1.25 !important; margin: 4px 0 !important }
  html body .exfg-card-text,
  html body .exfg-text-card{ font-size: 11px !important; line-height: 1.4 !important }
  html body .exfg-tag{ font-size: 9px !important; padding: 2px 6px !important }
}
@media (max-width: 380px){
  html body .exfg-grid{ grid-template-columns: 1fr !important }
}

/* Hide non-essential decorative rows on phone (save vertical space) */
@media (max-width: 640px){
  /* Market-compare strip duplicates plans cards info → hide on phone */
  #plans .market-compare,
  #plans > .reveal.market-compare{ display: none !important }
  /* Recommendation footer in plans (if any) → hide on phone */
  #plans > .reveal:not(.plans-grid):not(.it4-tp){ font-size: 12px !important }
  /* Guarantee row: keep, but compact */
  #plans .guarantee-row{
    padding: 12px 10px !important;
    gap: 6px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  #plans .guarantee-row > *{ font-size: 11px !important; padding: 4px 8px !important }
  /* Launch banner: trim */
  #launchBannerV2{
    padding: 16px 12px !important;
    margin: 12px 0 !important;
    border-radius: 12px !important;
  }
  #launchBannerV2 *{ font-size: 12px !important; line-height: 1.4 !important }
  #launchBannerV2 .lb-title{ font-size: 14px !important }
  #launchBannerV2 .lb-price{ font-size: 18px !important }
  /* OS tabs: tighter */
  .it4-os-tabs{ padding: 4px !important; gap: 4px !important; border-radius: 12px !important }
  .it4-os-tab{ padding: 6px 12px !important; font-size: 12px !important; min-height: 36px !important }
  /* os-family-toggle */
  #os-family-toggle{ padding: 6px !important }
}
