/* IRES Mobile Library v1: standalone mobile catalog presentation */
@media(max-width:767px){
body.ires-ps-repository-page .ires-ps-explorer-shell{display:block!important;width:100%!important;max-width:none!important;padding:0 12px!important;box-sizing:border-box!important}
body.ires-ps-repository-page .ires-ps-explorer-main{width:100%!important;max-width:none!important;padding:0!important}
body.ires-ps-repository-page .ires-ps-publications-grid{display:flex!important;flex-direction:column!important;gap:0!important}
body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card{display:block!important;position:relative!important;min-height:0!important;height:auto!important;width:100%!important;padding:16px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #e4e8ed!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready>*:not(.ires-ml-card){display:none!important}
body.ires-ps-repository-page .ires-ml-card{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;align-items:start!important;gap:14px!important;width:100%!important}
body.ires-ps-repository-page .ires-ml-cover{display:flex!important;width:90px!important;height:126px!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#f1f3f5!important;border-radius:5px!important;margin:0!important;padding:4px!important;box-sizing:border-box!important}
body.ires-ps-repository-page .ires-ml-cover img{display:block!important;max-width:100%!important;max-height:118px!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:auto!important}
body.ires-ps-repository-page .ires-ml-content{min-width:0!important;display:flex!important;flex-direction:column!important;gap:6px!important}
body.ires-ps-repository-page .ires-ml-date{font-size:11px!important;font-weight:600!important;color:#687785!important}
body.ires-ps-repository-page .ires-ml-title{font-size:17px!important;line-height:1.28!important;font-weight:700!important;margin:0!important;letter-spacing:-.012em!important}
body.ires-ps-repository-page .ires-ml-title a{color:#2d3945!important;text-decoration:none!important}
body.ires-ps-repository-page .ires-ml-authors{font-size:12px!important;line-height:1.35!important;font-weight:600!important;color:#51606e!important;margin:0!important}
body.ires-ps-repository-page .ires-ml-excerpt{font-size:13px!important;line-height:1.45!important;color:#596776!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;margin:0!important}
body.ires-ps-repository-page .ires-ps-results-actions .ires-ps-view-switch,body.ires-ps-repository-page .ires-ps-results-actions .ires-ps-results-caption{display:none!important}
body.ires-ps-repository-page .ires-ps-results-toolbar{padding:8px 0!important;border:0!important;box-shadow:none!important;background:transparent!important}
body.ires-ps-repository-page .ires-ps-mobile-filter-toggle{width:auto!important;min-height:40px!important;padding:9px 14px!important;font-size:14px!important;border-radius:20px!important}
body.ires-ps-repository-page .ires-ml-filter-done{width:100%;border:0;border-radius:8px;background:#243b53;color:white;padding:13px;margin-top:15px;font-weight:700}
}

/* Mobile Library isolation: override all legacy card and heading selectors. */
@media(max-width:767px){
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready{
  display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;
  padding:14px 0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready>.ires-ml-original{
  display:none!important;visibility:hidden!important;position:absolute!important;width:0!important;height:0!important;overflow:hidden!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready>.ires-ml-card{
  display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;
  gap:12px!important;align-items:start!important;min-width:0!important;width:100%!important;
  max-width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready .ires-ml-card>.ires-ml-cover{
  display:flex!important;position:static!important;float:none!important;clear:none!important;
  width:78px!important;min-width:78px!important;max-width:78px!important;
  height:110px!important;min-height:0!important;max-height:110px!important;
  aspect-ratio:auto!important;overflow:hidden!important;margin:0!important;padding:3px!important;
  align-items:center!important;justify-content:center!important;border-radius:5px!important;
  background:#f2f4f6!important;box-sizing:border-box!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready .ires-ml-cover>img{
  display:block!important;width:auto!important;max-width:72px!important;
  height:auto!important;max-height:104px!important;object-fit:contain!important;
  margin:auto!important;float:none!important;position:static!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready .ires-ml-content{
  display:flex!important;flex-direction:column!important;gap:5px!important;
  width:auto!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready .ires-ml-title{
  display:block!important;font-size:16px!important;line-height:1.3!important;font-weight:700!important;
  letter-spacing:0!important;margin:0!important;padding:0!important;
  max-width:100%!important;overflow-wrap:break-word!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready .ires-ml-title>a{
  font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important;
  color:#2c3946!important;text-decoration:none!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready :is(.ires-ml-authors,.ires-ml-excerpt){
  display:block!important;font-size:12px!important;line-height:1.4!important;
  margin:0!important;padding:0!important;min-width:0!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready .ires-ml-excerpt{
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
 }
 html body.ires-ps-repository-page .ires-ps-explorer-main .ires-pubblicazione-card.ires-ml-ready .ires-ml-date{
  display:block!important;font-size:11px!important;line-height:1.25!important;
  font-weight:600!important;color:#687785!important;margin:0!important;padding:0!important;
 }
 html body.ires-ps-repository-page .ires-ps-results-toolbar .ires-ps-share-search{
  font-size:12px!important;padding:7px 10px!important;min-height:0!important;
 }
}
