
/* V62 FINAL RECOVERY — DATA ALUMNI MOBILE ONLY
   Desktop V58 card design remains untouched.
   No image-source/path rules are changed here. */

@media(max-width:640px){
  html,body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }
  body{padding-bottom:62px}

  .container{
    width:calc(100% - 20px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* Header / Navigation */
  .header-inner{
    min-height:62px!important;
    height:auto!important;
    padding:8px 0!important;
  }
  .brand{min-width:0!important}
  .brandmark{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    border-radius:12px!important;
  }
  .brand-copy{min-width:0!important}
  .brand-copy strong{
    font-size:12px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .brand-copy span{font-size:8px!important}

  .nav-wrap{
    position:sticky!important;
    top:0!important;
    z-index:100!important;
  }
  .nav{
    width:100%!important;
    min-height:48px!important;
    height:auto!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }
  .nav::-webkit-scrollbar{display:none!important}
  .nav-links{
    display:flex!important;
    flex-wrap:nowrap!important;
    width:max-content!important;
    min-width:max-content!important;
  }
  .nav a{
    min-height:48px!important;
    padding:0 12px!important;
    white-space:nowrap!important;
    font-size:10px!important;
  }
  .nav-cta{display:none!important}

  /* Hero */
  .hero-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    min-height:auto!important;
    gap:0!important;
  }
  .hero-copy{padding:26px 0 10px!important}
  .eyebrow{font-size:9px!important}
  .hero h1{
    font-size:34px!important;
    line-height:1.03!important;
    margin:13px 0!important;
  }
  .hero-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .hero-actions .btn{
    width:100%!important;
    min-height:44px!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .hero-art{
    height:190px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
  }
  .hero-art img{
    width:auto!important;
    height:180px!important;
    max-height:180px!important;
    object-fit:contain!important;
  }

  /* Statistics */
  .stats-card{grid-template-columns:1fr 1fr!important}
  .stat{padding:12px 10px!important}
  .stat strong{font-size:19px!important}
  .stat span{font-size:8px!important}

  /* Directory */
  .section{padding:34px 0!important}
  .section-head{display:block!important;margin-bottom:14px!important}
  .section-head h2{font-size:26px!important;line-height:1.08!important}
  .section-head p{margin-top:8px!important;font-size:10px!important}

  .search-panel{
    width:100%!important;
    padding:12px!important;
    border-radius:16px!important;
    overflow:hidden!important;
  }
  .search-main,
  .filters{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
  }
  .search-main input,
  .search-main .btn,
  .filters select,
  .filters .btn{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    font-size:16px!important;
  }

  .result-bar{
    display:block!important;
    margin:14px 2px 10px!important;
  }
  .result-bar b,
  .result-bar span{display:block!important}
  .result-bar span{margin-top:5px!important;font-size:9px!important}

  /* V58 card composition: photo left, text right */
  .alumni-grid{
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  .alumni-card.home-style-card{
    width:100%!important;
    min-width:0!important;
    min-height:88px!important;
    padding:11px!important;
    gap:11px!important;
    border-radius:16px!important;
    align-items:center!important;
  }
  .home-style-photo{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    border-radius:14px!important;
  }
  .home-style-photo img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }
  .home-style-copy{
    min-width:0!important;
    overflow:hidden!important;
  }
  .home-style-copy b{font-size:12px!important}
  .home-style-copy span{font-size:9.5px!important}
  .home-style-copy small{font-size:8px!important;margin-top:5px!important}

  /* Pagination */
  .pagination{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    gap:5px!important;
    margin-top:18px!important;
  }
  .pagination a{
    width:auto!important;
    min-width:38px!important;
    min-height:38px!important;
    padding:7px 9px!important;
    font-size:10px!important;
  }

  /* Services */
  .services{grid-template-columns:1fr!important;gap:10px!important}
  .service-card{padding:16px!important;border-radius:16px!important}
  .service-card .btn{width:100%!important}

  /* Profile modal */
  #profileModal.modal{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    padding:6px!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  #profileModal .profile-detail-card{
    width:calc(100vw - 12px)!important;
    max-width:none!important;
    max-height:calc(100dvh - 12px)!important;
    margin:0!important;
    border-radius:16px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
  #profileModal .profile-detail-layout{
    display:block!important;
    min-height:0!important;
    max-height:none!important;
  }
  #profileModal .profile-photo-panel{
    padding:14px 12px 12px!important;
    border-right:0!important;
    border-bottom:1px solid var(--line)!important;
  }
  #profileModal .modal-avatar.profile-photo-large{
    width:min(260px,74vw)!important;
    min-width:0!important;
    height:min(340px,48vh)!important;
    margin:0 auto!important;
    border-radius:16px!important;
  }
  #profileModal .modal-avatar.profile-photo-large img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }
  #profileModal .profile-name-mobile{
    display:block!important;
    margin-top:10px!important;
    text-align:center!important;
  }
  #profileModal .profile-head-compact{display:none!important}
  #profileModal .profile-data-panel{
    max-height:none!important;
    overflow:visible!important;
  }
  #profileModal .profile-body-compact{padding:12px 10px 26px!important}
  #profileModal .profile-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  #profileModal .profile-wide,
  #profileModal .profile-section-title{grid-column:auto!important}
  #profileModal .profile-close{
    position:fixed!important;
    top:10px!important;
    right:10px!important;
    width:42px!important;
    height:42px!important;
    z-index:2147483002!important;
  }

  /* Footer / live widget */
  .footer-grid{grid-template-columns:1fr!important;gap:20px!important}
  .footer-bottom{display:block!important;line-height:1.8!important}
  .site-live-info{
    left:8px!important;
    right:8px!important;
    bottom:8px!important;
    max-width:none!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:5px!important;
    padding:7px 9px!important;
    font-size:9px!important;
  }
}
