/* ===== Small desktop / large tablets (≤ 992px = 62rem) ===== */
@media (max-width: 62rem) {
    .mf_flow{
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    .mf_arrow{
      display:none;
    }
  
    .mf_ins_grid{
      grid-template-columns: 1fr;
    }
    .mf_create_grid{
      grid-template-columns: 1fr;
    }
    .mf_queue_body{
      grid-template-columns: 1fr;
    }
  
    .mf_foot{
      grid-template-columns: 1.3fr 1fr;
    }
    .mf_section_image{
      margin-right: auto;
    }
  }
  
  /* ===== Tablets / small laptops (≤ 896px = 56rem) ===== */
  @media (max-width: 56rem) {
    /* Optional: only do fixed navbar on desktop */
    .mf_tag_header{
      position: sticky;  /* revert to sticky on smaller screens */
    }
    .mf_tag_main{
      padding-top: 0;
    }
  }
  
  /* ===== Tablet & up mobile nav collapse (≤ 832px = 52rem) ===== */
  @media (max-width: 52rem) {
    .mf_nav_links,
    .mf_nav_actions .mf_btn_primary,
    .mf_lang{
      display:none;
    }
    .mf_hamburger{
      display:inline-flex;
    }
    .mf_nav_pill{
      padding: .65rem .75rem;
    }
    .mf_brand_badge{
      font-size: .7rem;
    }
    .mf_stats_row{
      gap: 2rem;
    }
    .mf_stat{
      min-width: 11.5rem;
    }
  }
  
  /* ===== Mobile phones (≤ 480px = 30rem) ===== */
  @media (max-width: 30rem) {
    .mf_tiles{
      grid-template-columns: 1fr;
    }
    .mf_row{
      grid-template-columns: 1fr;
    }
    .mf_foot{
      grid-template-columns: 1fr;
    }
    .mf_section_cta .mf_btn{
      padding: .5rem;
      width: 100%;
    }
    .mf_ins_copy .mf_btn {      
        padding: .5rem;
        width: 100%;
    }
    .mf_queue_bottom {
        gap: 0.6rem;
        flex-direction: row;
    }
    .mf_queue_bottom .mf_tag_span {
        font-size: 0.8rem;
        white-space: nowrap;
        
    }
    .mf_helpbar {flex-direction: column;}
    .mf_helpbar .mf_btn{width: 100%;}
    .mf_hamburger{
      padding: 0.5rem;
      border: none;
      color: var(--blue);
    }
    #mf_closeDrawer{
      padding: 0.5rem;
      border: none;
    }
  
    .mf_chipbar{
      width: 100%;
      justify-content: space-between;
    }
    .mf_chipbar .mf_tag_span{
      flex-direction: row;
      font-size: 0.8rem;
      white-space: nowrap;
    }
  
    .mf_note_pill{
      align-items: flex-start;
      text-align: left;
      font-weight: 500;
      font-size: 0.8rem;
      gap: 0.4rem;
    }
  
    .mf_auth_grid2{
      grid-template-columns: 1fr;
    }
    .mf_auth_row{
      align-items:flex-start;
      flex-direction: column;
    }
    .mf_auth_modal{
      top: auto;
      bottom: 1rem;
      transform: translate(-50%, 0) scale(.98);
    }
    .mf_tag_body.auth-open .mf_auth_modal{
      transform: translate(-50%, 0) scale(1);
    }
    .mf_modal_status_body {
        width: 100%;
    }
    .mf_section_image{
      height: 70vw;
      margin-right: auto;
    }
  
    .mf_modal_shell{
      height: fit-content;
      margin-top: auto;
    }
  }
  
  /* ===== Reduced motion preference ===== */
  @media (prefers-reduced-motion: reduce){
    .mf_ticker_track{
      animation: none;
    }
    *{
      scroll-behavior: auto !important;
    }
  }
  
  /* ===== Desktop layout: center modal, not fullscreen (≥ 768px) ===== */
@media (min-width: 768px) {
    .mf_modal{
      align-items: center; /* vertically center the shell */
    }
  
    .mf_modal_shell{
      width: min(26rem, 100% - 3rem);
      height: auto;
      max-height: 90vh;
      border-radius: 1.5rem;
      border: 1px solid rgba(15,23,42,.12);
      box-shadow: 0 22px 60px rgba(15,23,42,.2);
    }
  
    .mf_modal_head{
      border-radius: 1.5rem 1.5rem 0 0;
    }
    
  }
  