/* Fit the complete CV page within the available modal window. */
#portfolio-table-study .profile-panel {
  height:calc(100svh - 48px);
  max-height:calc(100svh - 48px);
  overflow:hidden;
}
#portfolio-table-study .profile-panel[open] {
  display:flex;
  flex-direction:column;
}
#portfolio-table-study .profile-panel .cv-dialog-head {
  position:relative;
  flex:0 0 auto;
  height:auto;
  min-height:58px;
}
#portfolio-table-study .profile-panel .cv-document {
  position:relative;
  flex:1 1 0;
  width:100%;
  height:auto;
  min-width:0;
  min-height:0;
  aspect-ratio:auto;
  overflow:hidden;
  background:#fff;
  box-shadow:none;
}
#portfolio-table-study .profile-panel .cv-sheet {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background:transparent;
}
#portfolio-table-study .profile-panel .cv-sheet[hidden] { display:none; }
#portfolio-table-study .profile-panel .cv-page-image {
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
}
/* Preserve the original CV wording for assistive reading at every viewport. */
#portfolio-table-study .profile-panel .cv-text {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  border:0;
}

/* Contact: keep the invitation, remove its redundant section label. */
#portfolio-table-study .contact-panel .panel-index { display:none; }
#portfolio-table-study .contact-panel h2 { margin-top:14px; }
#portfolio-table-study .contact-panel dl {
  grid-template-columns:70px minmax(0,1fr);
  align-items:center;
  column-gap:18px;
  row-gap:10px;
}
#portfolio-table-study .contact-panel dl dt {
  align-self:center;
  line-height:1.4;
}
#portfolio-table-study .contact-panel dl dd {
  min-width:0;
  margin:0;
  line-height:1.4;
}
#portfolio-table-study .contact-panel dl dd a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0;
  max-width:100%;
  overflow-wrap:anywhere;
  vertical-align:middle;
}
@media(max-width:720px){
  #portfolio-table-study .profile-panel { max-width:calc(100vw - 16px); }
  #portfolio-table-study .profile-panel .cv-dialog-head { min-height:0; }
  #portfolio-table-study .contact-panel { padding:24px; }
  #portfolio-table-study .contact-panel dl {
    grid-template-columns:58px minmax(0,1fr);
    column-gap:14px;
  }
}
@media(max-width:360px){
  #portfolio-table-study .contact-panel dl { grid-template-columns:1fr; row-gap:0; }
  #portfolio-table-study .contact-panel dl dd + dt { margin-top:12px; }
}
