/* Live 1.0.6: uitsluitend de door Nick gemelde correcties. */

/* De deadline blijft in de bestaande optredenkaart, maar staat nu op de
   middenlijn en vermeldt ook de werkelijke uiterste afmelddatum. */
html body .den-wrap .den-agenda-card-head .den-agenda-card-deadline{
  align-self:center;margin-block:auto;line-height:1.35;text-align:center;
  padding:5px 8px;white-space:normal;max-width:100%;box-sizing:border-box;
}

/* Eén rustige witregel na de introductie van privéberichten. */
html body .den-wrap .den-message-section > .den-help,
html body .den-wrap .den-my-messages > .den-help{margin-bottom:19px}

/* De individuele Wie-is-wie-kaart gebruikt exact dezelfde gekozen
   profielachtergrond als de homekaart. De kaart blijft overal klikbaar. */
html body .den-wrap .den-directory-card.den-directory-card-themed{
  background:radial-gradient(circle at 50% 0%,#81419f 0%,transparent 55%),linear-gradient(125deg,#25152f 0%,#4c2764 65%,#70398a 100%);
  background-size:cover;background-position:center;color:#fff;border-color:#694376;
}
html body .den-wrap .den-directory-card.den-directory-card-themed h5,
html body .den-wrap .den-directory-card.den-directory-card-themed .den-directory-instrument,
html body .den-wrap .den-directory-card.den-directory-card-themed .den-directory-function,
html body .den-wrap .den-directory-card.den-directory-card-themed .den-directory-since,
html body .den-wrap .den-directory-card.den-directory-card-themed .den-directory-tenure,
html body .den-wrap .den-directory-card.den-directory-card-themed .den-directory-card-action{color:#fff;text-shadow:0 1px 3px #160a28bd}
html body .den-wrap .den-directory-card.den-directory-card-themed .den-directory-card-action{opacity:.9}

/* Persoonlijke D! CONNECT-tijdlijn: een compact profiel met echte omslagfoto,
   profielfoto en daaronder uitsluitend de al zichtbare berichten van dat lid. */
.den-wrap .den-connect-selected-profile[hidden]{display:none!important}
.den-wrap .den-connect-layout:not([data-den-connect-view="person"]) .den-connect-selected-profile{display:none!important}
.den-wrap .den-connect-selected-profile{margin:0 0 18px}
.den-wrap .den-connect-public-profile{position:relative;overflow:hidden;border:1px solid #e7dceb;border-radius:18px;background:#fff;box-shadow:0 8px 22px #36164a15}
.den-wrap .den-connect-public-cover{position:relative;height:clamp(116px,21vw,188px);display:flex;align-items:center;justify-content:center;background:linear-gradient(125deg,#25152f,#70398a);color:#ffffffc7;font-size:19px;letter-spacing:.14em;font-weight:850}
.den-wrap .den-connect-public-cover-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.den-wrap .den-connect-public-identity{display:flex;align-items:center;gap:14px;min-height:66px;padding:12px 18px 15px}
.den-wrap .den-connect-public-avatar{position:relative;z-index:1;flex:none;width:76px;height:76px;margin-top:-44px;border-radius:50%;border:4px solid #fff;overflow:hidden;background:#efe3f4;display:grid;place-items:center;font-size:25px}
.den-wrap .den-connect-public-avatar img{width:100%;height:100%;object-fit:cover;object-position:var(--den-photo-focus-x,50%) var(--den-photo-focus-y,50%)}
.den-wrap .den-connect-public-identity strong{display:block;color:#392542;font-size:18px;line-height:1.25}
.den-wrap .den-connect-public-identity small{display:block;margin-top:3px;color:#796888;font-size:12px}

/* Verjaardagen: kleine vooruitblik en precies één bladerbare maand.
   Het oorspronkelijke jaaroverzicht blijft intact en is direct opvraagbaar. */
html body .den-wrap .den-birthday-months[hidden],
html body .den-wrap .den-birthday-modern[hidden]{display:none!important}
.den-wrap .den-birthday-modern{padding:16px 0 4px}
.den-wrap .den-birthday-next{border-radius:16px;border:1px solid #e8d9ef;background:linear-gradient(135deg,#f8effc,#fff 75%);padding:15px 17px;margin-bottom:17px}
.den-wrap .den-birthday-next-title{display:block;margin-bottom:11px;font-size:11px;letter-spacing:.07em;font-weight:900;color:#753f8d;text-transform:uppercase}
.den-wrap .den-birthday-next-list{display:grid;gap:0}
.den-wrap .den-birthday-next-list .den-birthday-person{padding:8px 1px;border-bottom:1px solid #ede0f0}
.den-wrap .den-birthday-next-list .den-birthday-person:last-child{border-bottom:0}
.den-wrap .den-birthday-next-list .den-birthday-date{min-width:61px;text-align:center;font-size:12px}
.den-wrap .den-birthday-month-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.den-wrap .den-birthday-month-nav strong{font-size:18px;color:#4a2b5c;text-transform:capitalize;text-align:center}
.den-wrap .den-birthday-month-nav button{display:grid;place-items:center;min-width:39px;min-height:39px;padding:5px;border-radius:11px;border:1px solid #e4d2ed;background:#fff;color:#6a3785;font-size:23px;font-weight:800;cursor:pointer}
.den-wrap .den-birthday-month-panel{min-height:92px;padding:12px 15px;border:1px solid #e9ddec;border-radius:14px;background:#fff}
.den-wrap .den-birthday-month-panel .den-birthday-people{gap:0}
.den-wrap .den-birthday-month-panel .den-birthday-person{padding:10px 1px;border-bottom:1px solid #f1e8f4}
.den-wrap .den-birthday-month-panel .den-birthday-person:last-child{border-bottom:0}
.den-wrap .den-birthday-month-panel .den-birthday-date{display:grid;place-items:center;min-width:34px;height:32px;border-radius:9px;background:#f0e3f6;font-weight:850;color:#6c3984}
.den-wrap .den-birthday-month-panel .den-birthday-empty{margin:17px 0;text-align:center;color:#816f8c;font-size:13px}
.den-wrap .den-birthday-view-toggle{display:block;margin:13px auto 2px;border:0;background:transparent;color:#754099;text-decoration:underline;text-underline-offset:3px;font-weight:800;font-size:12px;cursor:pointer}
.den-wrap .den-birthday-months.den-birthday-classic{margin-top:14px}

/* Albumtegels zijn nu op iPhone veel smaller; desktop blijft 1.0.5. */
@media(max-width:580px){
  html body .den-wrap .den-download-section>.den-file-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  html body .den-wrap .den-download-section .den-audio-item{padding:9px 7px;border-radius:10px}
  html body .den-wrap .den-download-section .den-audio-item::before{width:27px;height:27px;border-radius:7px;font-size:17px}
  html body .den-wrap .den-download-section .den-audio-item .den-audio-name{font-size:10px;line-height:1.25}
  html body .den-wrap .den-download-section .den-audio-item svg{width:14px;height:14px;padding:4px;top:9px;right:7px}
  .den-wrap .den-connect-public-identity{padding:10px 12px 13px}
  .den-wrap .den-connect-public-avatar{width:67px;height:67px;margin-top:-39px}
  .den-wrap .den-connect-public-identity strong{font-size:16px}
  .den-wrap .den-birthday-modern{padding-top:11px}
  .den-wrap .den-birthday-next{padding:12px}
  .den-wrap .den-birthday-next-list .den-birthday-date{min-width:49px}
  .den-wrap .den-story-viewer-actions{left:21px;right:21px;bottom:calc(23px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:370px){html body .den-wrap .den-download-section>.den-file-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Live 1.0.13 · De eerstvolgende verjaardag wordt een echte, feestelijke datumkaart. */
.den-wrap .den-birthday-next{border-color:#e7c8ef;background:linear-gradient(125deg,#f4e5fa 0%,#fff8fd 55%,#fff 100%);box-shadow:0 7px 22px #64267b0c}
.den-wrap .den-birthday-next-title{font-size:12px;letter-spacing:.03em;margin-bottom:12px;color:#66317d}
.den-wrap .den-birthday-next-list .den-birthday-person{display:flex;align-items:center;gap:12px;min-height:93px;padding:6px 0;border:0}
.den-wrap .den-birthday-next-list .den-birthday-date{box-sizing:border-box;display:flex;flex:0 0 86px;min-width:86px;width:86px;height:86px;flex-direction:column;justify-content:center;align-items:center;gap:2px;border:1px solid #8e4ca6;border-radius:15px;background:linear-gradient(155deg,#7d42a0,#53286c);color:#fff!important;box-shadow:0 6px 15px #57307025;line-height:1.1;text-align:center;padding:7px 5px}
.den-wrap .den-birthday-next-list .den-birthday-date-day{font-family:inherit!important;font-size:30px!important;line-height:1;font-weight:900!important;color:#fff!important}
.den-wrap .den-birthday-next-list .den-birthday-date-month{font-family:inherit!important;font-size:12px!important;line-height:1.2;font-weight:750!important;color:#f8eafd!important;letter-spacing:.02em;text-transform:capitalize}
.den-wrap .den-birthday-next-list .den-birthday-name{min-width:0}
.den-wrap .den-birthday-view-toggle{display:flex;align-items:center;justify-content:center;gap:7px;width:max-content;max-width:100%;min-height:39px;padding:9px 15px;margin:15px auto 3px;border:1px solid #d7b3e7;border-radius:100px;background:linear-gradient(120deg,#f4e6fa,#fff);color:#68317f;text-decoration:none;font-size:12px;font-weight:850;box-shadow:0 4px 13px #6e3b8412;transition:background .15s,border-color .15s}
.den-wrap .den-birthday-view-toggle:before{content:'🎉';font-size:15px;line-height:1}
.den-wrap .den-birthday-view-toggle:hover{background:#ebd9f4;border-color:#b982d1}
.den-wrap .den-birthday-view-toggle:focus-visible{outline:3px solid #a96bca;outline-offset:2px}
.den-wrap .den-birthday-month-panel .den-birthday-date{min-width:43px;height:40px;font-size:16px;font-weight:900}
@media(max-width:580px){.den-wrap .den-birthday-next-list .den-birthday-date{flex-basis:76px;min-width:76px;width:76px;height:80px}.den-wrap .den-birthday-next-list .den-birthday-date-day{font-size:27px!important}.den-wrap .den-birthday-next-list .den-birthday-date-month{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){.den-wrap .den-birthday-view-toggle{transition:none}}

/* Het native <dialog> moet niet de linkerbovenhoek van het thema erven. */
html body dialog.den-video-overlay[open]{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;margin:0!important;max-height:calc(100dvh - 26px)!important}
