/* LUMINA — corecturile aprobate pentru TELEFON și TABLETĂ. Desktopul nu se modifică. */
.footer-university-mobile,.footer-bottom-mobile{display:none}
@media (max-width:1024px){
  /* Scurtăturile de la început: termeni exacți în toate cele 5 limbi. */
  .mobile-quick-nav .mobile-quick-item{min-width:0}
  .mobile-quick-nav .mobile-quick-item>span:nth-child(2){min-width:0;overflow-wrap:break-word;text-wrap:balance}
  /* Istoric: buton vizibil de numai 30 px, dar zonă reală de atingere 44 px. */
  .story-history-photo .story-history-fullscreen{
    box-sizing:border-box;top:6px;right:6px;display:grid;place-items:center;
    width:44px;min-width:44px;height:44px;min-height:44px;max-width:44px;
    padding:7px;gap:0;border:0;border-radius:50%;background:transparent;
    box-shadow:none;opacity:1;transform:none;cursor:zoom-in;
    -webkit-tap-highlight-color:transparent;
  }
  .story-history-photo .story-history-fullscreen-icon{
    display:grid;place-items:center;width:30px;height:30px;min-width:30px;flex:none;
    background:rgba(255,255,255,.97);color:#286486;
    border:1px solid rgba(105,160,192,.42);border-radius:50%;
    box-shadow:0 2px 7px rgba(20,64,94,.13);transform:none;
    transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
  }
  .story-history-photo .story-history-fullscreen-icon svg{width:17px;height:17px;stroke-width:2;stroke:currentColor}
  .story-history-photo .story-history-fullscreen-label{display:none}
  .story-history-photo .story-history-fullscreen:active .story-history-fullscreen-icon{
    transform:scale(.91);background:#e8f4fa;box-shadow:0 0 0 4px rgba(77,146,185,.11)
  }
  .story-history-photo .story-history-fullscreen:focus-visible{outline:2px solid #4088af;outline-offset:0}
  /* Consiliul Director și maeștrii de ceremonie: funcții centrate uniform. */
  .leadership-grid .leader-card .leader-role{
    width:100%;max-width:100%;margin-left:auto;margin-right:auto;
    text-align:center;text-wrap:balance;overflow-wrap:break-word;
  }
  .leadership-grid .leader-card .leader-role-line{
    display:block;width:100%;text-align:center;
  }
  .leadership-grid .leader-card:last-child .leader-role{max-width:100%;text-align:center}
  .ceremony-grid .ceremony-card .ceremony-info{text-align:center}
  .ceremony-grid .ceremony-card .ceremony-info strong,
  .ceremony-grid .ceremony-card .ceremony-info small{text-align:center;text-wrap:balance}
  /* Modalul tuturor profilurilor: niciun portret decupat, inclusiv consiliu și ceremonie. */
  .profile-dialog{
    box-sizing:border-box;max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);
    overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  }
  .profile-dialog .dialog-avatar{
    background:#e7eff3;overflow:hidden;min-width:0;
  }
  .profile-dialog .dialog-avatar .avatar-shell{
    display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;
    background:#e7eff3;
  }
  .profile-dialog .dialog-avatar .avatar-shell img{
    display:block;width:100%;height:100%;max-width:100%;max-height:100%;
    object-fit:contain!important;object-position:center center!important;
    transform:none!important;filter:none!important;
  }
  /* Footerul: două identități instituționale cu aceeași structură. */
  .footer .footer-main{align-items:stretch}
  .footer .footer-university .footer-university-original{display:none}
  .footer .footer-university-mobile{display:flex;flex-direction:column;gap:5px;min-width:0}
  .footer .footer-university-mobile strong{
    color:#204b6a;font-size:18px;font-weight:800;letter-spacing:.12em;line-height:1.2
  }
  .footer .footer-university-mobile small{
    color:#47677a;font-size:10.5px;font-weight:650;letter-spacing:0;
    line-height:1.5;overflow-wrap:break-word;text-transform:none;
  }
  .footer .footer-right .footer-university{max-width:100%;align-items:center;gap:13px;text-align:left}
  .footer .footer-bottom>.footer-bottom-desktop{display:none}
  .footer .footer-bottom-mobile{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:14px;text-align:center;width:100%;max-width:100%;margin:0 auto;
    color:#56768b;line-height:1.65;letter-spacing:.025em;
  }
  .footer .footer-copyright-line{font-size:clamp(9px,1.5vw,11px);line-height:1.7;max-width:65ch;text-wrap:balance}
  .footer .footer-rights-line{font-size:10px;font-weight:850;letter-spacing:.11em;color:#2c6484}
  .footer .footer-season-line{font-size:10px;font-weight:800;letter-spacing:.08em;color:#527a90}
}
@media (max-width:700px){
  .profile-dialog .dialog-main{display:grid;grid-template-columns:minmax(0,1fr);min-height:0}
  .profile-dialog .dialog-avatar,
  .profile-dialog .dialog-main--leadership .dialog-avatar{
    box-sizing:border-box;width:100%;height:clamp(235px,55svh,495px);
    min-height:0!important;max-height:495px;aspect-ratio:auto;
  }
  .profile-dialog .dialog-avatar .avatar-shell{
    box-sizing:border-box;height:100%;min-height:0!important;
  }
  .profile-dialog .dialog-info{padding:25px 25px 23px}
  .profile-dialog .dialog-info h2{font-size:clamp(29px,8vw,40px);overflow-wrap:break-word}
  .profile-dialog .dialog-close{position:sticky;float:right;top:10px;margin:10px 10px -54px 0;z-index:9}
  .profile-dialog .dialog-controls{clear:both}
  .footer .footer-university-mobile strong{font-size:17px}
  .footer .footer-university-mobile small{font-size:10.5px}
  .footer .footer-bottom-mobile{gap:13px}
}
@media (min-width:701px) and (max-width:1024px){
  .profile-dialog .dialog-avatar{min-height:0;}
  .profile-dialog .dialog-avatar .avatar-shell{min-height:0}
}
@media (max-width:380px){
  .mobile-quick-nav .mobile-quick-item{gap:5px;padding-left:8px;padding-right:8px}
  .mobile-quick-nav .mobile-quick-item>span:nth-child(2){font-size:7.6px;letter-spacing:0;line-height:1.25}
  .footer .footer-university-mobile strong{font-size:16px}
  .footer .footer-university-mobile small{font-size:10px}
  .footer .footer-bottom-mobile{gap:12px}
  .footer .footer-copyright-line{font-size:9px}
}
@media (prefers-reduced-motion:reduce){
  .story-history-photo .story-history-fullscreen-icon{transition:none}
}
