/* v13.5.0 — final consistency layer. No redesign; only compactness and cross-device guardrails. */
body.as-v1350:not(.home) .as1350-editorial-intro,
body.as-v1350:not(.home) .as95-article-head,
body.as-v1350:not(.home) .as95-masthead{max-width:1180px;}

body.as-v1350:not(.home) :is(.as95-hub-image,.as1026-hub-image--portrait){margin-top:12px!important;margin-bottom:20px!important;}
body.as-v1350:not(.home) .as1026-hub-image--portrait{max-width:min(680px,84vw)!important;}
body.as-v1350:not(.home) .as94-picture img{max-width:100%;height:auto;}

/* Every content carousel follows the same visual grammar as Profile / Volare Alto. */
body.as-v1350:not(.home) .as1340-editorial-carousel{border-top:1px solid rgba(16,40,63,.12);border-bottom:1px solid rgba(16,40,63,.12);}
body.as-v1350:not(.home) .as1340-editorial-carousel .as1300-home-desk__heading h2{max-width:24ch;}
body.as-v1350:not(.home) .as1340-editorial-carousel .as116-carousel-track>section>.container{max-width:980px;}
body.as-v1350:not(.home) .as1340-editorial-carousel :is(p,li){overflow-wrap:break-word;word-break:normal;hyphens:auto;}
body.as-v1350:not(.home) .as1340-editorial-carousel :is(h2,h3,strong){overflow-wrap:anywhere;}

/* Topic pages: introduction outside, one compact panel at a time. */
body.as-v1350 .as1350-topic-page .as1310-topic-hero{padding-bottom:clamp(18px,3vw,34px)!important;}
body.as-v1350 .as1350-topic-carousel{margin-top:0!important;}
body.as-v1350 .as1350-topic-panel .as1310-topic-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;}
body.as-v1350 .as1350-topic-panel .as1310-topic-items>*{min-width:0;}

/* Keep pages visually finite: long table/media elements scroll locally, not the whole viewport. */
body.as-v1350:not(.home) :is(.post-content,.as95-reading,.as1344-longform-panel,.as1344-profile-panel,.as1341-volare-panel,.as1350-topic-panel) table{min-width:680px;}
body.as-v1350:not(.home) :is(.post-content,.as95-reading,.as1344-longform-panel,.as1344-profile-panel,.as1341-volare-panel,.as1350-topic-panel) :is(.wp-block-table,.table-scroll,.as1330-table-wrap){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}

@media (min-width:681px) and (max-width:1180px){
 body.as-v1350:not(.home) .as1340-editorial-carousel .as1300-carousel-layout{grid-template-columns:minmax(190px,225px) minmax(0,1fr)!important;gap:14px!important;}
 body.as-v1350 .as1350-topic-panel .as1310-topic-items{grid-template-columns:1fr;}
}
@media (max-width:680px){
 body.as-v1350:not(.home) :is(.as95-article-head,.as95-masthead,.as1345-internal-intro,.as1345-profile-intro,.as1345-book-intro){padding-inline:max(16px,env(safe-area-inset-left))!important;padding-right:max(16px,env(safe-area-inset-right))!important;}
 body.as-v1350:not(.home) .as1026-hub-image--portrait{max-width:calc(100vw - 32px)!important;}
 body.as-v1350:not(.home) .as1340-editorial-carousel .as1300-home-desk__heading h2{max-width:none;font-size:clamp(1.55rem,8vw,2.05rem)!important;}
 body.as-v1350 .as1350-topic-panel .as1310-topic-items{grid-template-columns:1fr;gap:10px;}
 body.as-v1350:not(.home) .as1340-editorial-carousel .as116-carousel-track>section>.container{padding-inline:14px!important;}
}


/* v14.2.3 — surgical Journal long-form carousel readability fix.
   Scope: article "Approfondimenti" only. No layout/SEO/content changes elsewhere. */
body.as-v1350 .as95-article .as1344-longform-carousel .as1300-carousel-viewport{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
body.as-v1350 .as95-article .as1344-longform-carousel .as116-carousel-track,
body.as-v1350 .as95-article .as1344-longform-carousel .as116-carousel-track>section[data-chapter],
body.as-v1350 .as95-article .as1344-longform-carousel .as1344-longform-panel{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
body.as-v1350 .as95-article .as1344-longform-carousel .as116-carousel-track>section[data-chapter]:last-child{
  padding-bottom:clamp(28px,3.5vw,46px)!important;
}
body.as-v1350 .as95-article .as1344-longform-carousel .as116-carousel-track>section[data-chapter]:last-child .as1344-longform-panel{
  padding-bottom:clamp(10px,1.5vw,18px)!important;
}
body.as-v1350 .as95-article .as1344-longform-carousel .as1344-longform-panel :is(p,li,a,strong,em,span){
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
}
body.as-v1350 .as95-article .as1344-longform-carousel .as1344-longform-panel :is(ul,ol){
  max-width:100%;
  padding-left:clamp(1.15rem,2.5vw,1.7rem);
}
body.as-v1350 .as95-article .as1344-longform-carousel .as1344-longform-panel :is(img,video,iframe,figure){
  max-width:100%;
}
@media (max-width:680px){
  body.as-v1350 .as95-article .as1344-longform-carousel .as1300-carousel-index{
    padding-left:2px!important;
    padding-right:14px!important;
    scroll-padding-inline:12px!important;
  }
  body.as-v1350 .as95-article .as1344-longform-carousel .as1300-carousel-tab:last-of-type{
    margin-right:6px!important;
  }
  body.as-v1350 .as95-article .as1344-longform-carousel .as116-carousel-track>section[data-chapter]:last-child{
    padding-bottom:30px!important;
  }
  body.as-v1350 .as95-article .as1344-longform-carousel .as1344-longform-panel{
    padding-left:max(14px,env(safe-area-inset-left))!important;
    padding-right:max(14px,env(safe-area-inset-right))!important;
  }
}
