/* Live 1.0.3 — gedeelde compacte tegelstijl voor profiel en ledenoverzicht. */
@media screen and (max-width: 700px) {
  html body .den-wrap dialog#den-panel-profile .den-modal-tabs {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 10px !important;
    width: 100%;
    padding: 12px 14px !important;
  }

  html body .den-wrap dialog#den-panel-profile .den-modal-tabs > .den-modal-tab {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 62px;
    margin: 0 !important;
    padding: 13px 9px !important;
    border: 1px solid #e8d9ef;
    border-radius: 13px;
    color: #5b3d6c;
    background: linear-gradient(132deg, #fff 20%, #fbf6fe 100%);
    box-shadow: 0 4px 14px rgba(69, 30, 86, .06);
    font-size: 13px !important;
    line-height: 1.3;
    font-weight: 800;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: center;
  }

  html body .den-wrap dialog#den-panel-profile .den-modal-tabs > .den-modal-tab[aria-selected="true"] {
    border-color: #a36bbb;
    color: #6b2a91;
    background: linear-gradient(125deg, #f8edfc, #f2e3f9);
    box-shadow: inset 0 -4px 0 #934ac2, 0 5px 16px rgba(93, 39, 119, .1);
  }
  html body .den-wrap dialog#den-panel-profile .den-modal-tabs > .den-modal-tab:focus-visible {
    outline: 3px solid #a66ec6;
    outline-offset: 2px;
  }
  /* Alle instrumentsecties, inclusief crew en chronologisch overzicht,
     blijven op telefoons twee kolommen breed. */
  html body .den-wrap dialog.den-modal-directory .den-directory-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  html body .den-wrap dialog.den-modal-directory .den-directory-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 174px;
    padding: 12px 7px 13px;
    border-radius: 13px;
    text-align: center;
  }
  html body .den-wrap dialog.den-modal-directory .den-directory-photo-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0 0 7px;
  }
  html body .den-wrap dialog.den-modal-directory .den-directory-photo-button {
    width: clamp(64px, 21vw, 86px);
    height: clamp(64px, 21vw, 86px);
  }
  html body .den-wrap dialog.den-modal-directory .den-directory-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 1px 2px 0;
    gap: 3px;
  }
  html body .den-wrap dialog.den-modal-directory .den-directory-card h5 {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  html body .den-wrap dialog.den-modal-directory .den-directory-instrument,
  html body .den-wrap dialog.den-modal-directory .den-directory-function {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
  }
  html body .den-wrap dialog.den-modal-directory .den-directory-since,
  html body .den-wrap dialog.den-modal-directory .den-directory-tenure {
    font-size: 9px;
    line-height: 1.25;
  }
  html body .den-wrap dialog.den-modal-directory .den-directory-card-action {
    display: none;
  }
}

/* De release-informatie scrolt binnen haar eigen venster, nooit de pagina erachter. */
html body.den-release-scroll-locked{overscroll-behavior:none}
html body .den-release-overlay{overscroll-behavior:contain;overflow:hidden!important}
html body .den-release-overlay .den-release-modal{
  display:flex;flex-direction:column;min-height:0;
  overflow:hidden!important;overscroll-behavior:contain;
  max-height:calc(100dvh - 36px)!important;padding:clamp(20px,4vw,32px)!important;
}
html body .den-release-overlay .den-release-scroll{
  flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding-right:4px;
}
html body .den-release-overlay .den-release-version{
  flex:none;margin:0 0 12px;padding-top:12px;
}
html body .den-release-overlay [data-den-release-ack]{flex:none;margin:0;min-height:48px}
