/* RC233.98EW - Desktop resume layout stabilization.
   Scope all rules to desktop Screen 02 only. No mobile changes. */
@media (min-width:851px) {
  /* In EV the sticky column and overflow:visible caused visual redraw/overlap
     during page scrolling. Make the left illustration a normal, bounded column. */
  .personal-home.wdu-profile .desktop-profile-step-2 {
    align-items:start!important;
    overflow:hidden!important;
    min-height:0!important;
    isolation:isolate;
  }
  .personal-home.wdu-profile .desktop-profile-step-2>.wds-illustration {
    position:relative!important;
    top:auto!important;
    left:auto!important;
    align-self:start!important;
    height:clamp(500px,calc(100vh - 180px),640px)!important;
    min-height:0!important;
    max-height:640px!important;
    border-radius:0!important;
    overflow:hidden!important;
    contain:paint;
  }
  .personal-home.wdu-profile .desktop-profile-step-2 .wds-art {
    margin-top:auto!important;
    height:clamp(165px,26vh,220px)!important;
    min-height:0!important;
    max-height:220px!important;
    flex:0 0 auto!important;
  }
  .personal-home.wdu-profile .desktop-profile-step-2 .wds-art img {
    max-height:220px!important;
    height:100%!important;
    object-position:center bottom!important;
  }
  /* Remove extra CV section footprint without removing its input or controls. */
  .personal-home.wdu-profile .desktop-profile-step-2 .wdx-resume {
    margin-bottom:10px!important;
  }
  .personal-home.wdu-profile .desktop-profile-step-2 .wdx-dropzone {
    min-height:54px!important;
    padding:6px 11px!important;
  }
  .personal-home.wdu-profile .desktop-profile-step-2 .wdv-intro {
    margin:10px 0!important;
  }
  /* Editing replaces the overview on desktop instead of stacking another full
     page underneath it. The native details forms and verification controls remain. */
  .personal-home.wdu-profile .desktop-profile-step-2.wew-edit-mode .wdv-intro,
  .personal-home.wdu-profile .desktop-profile-step-2.wew-edit-mode .wdx-resume,
  .personal-home.wdu-profile .desktop-profile-step-2.wew-edit-mode .weu-overview,
  .personal-home.wdu-profile .desktop-profile-step-2.wew-edit-mode .wev-verification-card {
    display:none!important;
  }
  .personal-home.wdu-profile .desktop-profile-step-2.wew-edit-mode .wev-editor-heading {
    margin:10px 0!important;
  }
  .personal-home.wdu-profile .desktop-profile-step-2.wew-edit-mode .wdv-details>.pxp-details-panel {
    margin-top:0!important;
  }
  /* Expanded editor is still accessible, but does not affect the fixed-height
     illustration panel or cause the entire card to stretch. */
  .personal-home.wdu-profile .desktop-profile-step-2 .wdv-details.wev-editor-open {
    min-width:0!important;
    scroll-margin-top:100px;
  }
  .personal-home.wdu-profile .desktop-profile-step-2 .wev-editor-heading:not(.wev-editor-closed) {
    scroll-margin-top:100px;
  }
}
