/* V10.1: identical runtime for editor, export and hosting. */
html{overflow-x:clip;max-width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:0}
body{max-width:100%;overflow-x:clip;padding-bottom:var(--dm-player-space,0px)!important}
html body main{padding-bottom:0!important}
html body .player{position:fixed!important;inset:auto 0 0!important;width:100%!important;max-width:100%!important;min-width:0!important;translate:none!important;scale:none!important;transform:none!important;box-sizing:border-box!important;z-index:40!important}
html[data-dm-player="closed"] body .player.player.player{display:none!important}
html[data-dm-player="mini"] body .player.player.player{display:flex!important;align-items:center!important;gap:10px!important;padding:8px 4% calc(8px + env(safe-area-inset-bottom))!important;height:auto!important;min-height:0!important;max-height:none!important}
html[data-dm-player="mini"] body .player .controls,html[data-dm-player="mini"] body .player .volume{display:none!important}
html[data-dm-player="mini"] body .player .nowwrap{width:100%!important;min-width:0!important}
.player .nowwrap{min-width:0}.player .nowwrap>div:not(.dm-player-tools){flex:1;min-width:0}.dm-player-tools{display:flex;gap:4px;flex:none!important;margin-left:auto}.dm-player-tools button{border:0;background:transparent;color:var(--gold);font:600 16px Arial,sans-serif;min-width:30px;min-height:32px;padding:2px;cursor:pointer}.player .player-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand img{filter:url(#dm-logo-tint)!important}
@media(min-width:1025px){.hero.custom-hero{min-height:clamp(440px,40vw,650px)}.hero.custom-hero .dm-hero-photo img{object-position:var(--dx,50%) var(--dy,0%);transform-origin:var(--dx,50%) var(--dy,0%)}}
@media(max-width:760px){
 html body .player.player{grid-template-columns:minmax(0,1fr)!important;gap:4px!important;padding:6px 10px calc(6px + env(safe-area-inset-bottom))!important;height:auto!important;min-height:0!important;max-height:none!important}
 html body .player .controls.controls{grid-template-columns:repeat(6,minmax(0,1fr))!important;display:grid!important;gap:3px!important;transform:none!important;min-width:0!important}
 html body .player .timeline.timeline{grid-column:1/-1!important;display:flex!important;min-width:0!important;transform:none!important}
 html body .player .nowwrap.nowwrap{transform:none!important;display:flex!important;min-width:0!important}
 html body .player .nowwrap img{display:block!important;flex:0 0 30px;width:30px!important;height:30px!important}
 html body .player .volume{display:none!important}

#tracks .track-entry,#tracks .track,#tracks .media-actions{max-width:100%;min-width:0}
}

/* These are layout safety constraints only: color, font and compact sizes remain editable. */
html :is(#dm-safe#dm-safe#dm-safe,.player){position:fixed!important;inset:auto 0 0!important;width:100%!important;max-width:100%!important;min-width:0!important;translate:none!important;transform:none!important;scale:none!important;box-sizing:border-box!important}
html[data-dm-player="closed"] :is(#dm-safe#dm-safe#dm-safe,.player){display:none!important}
html[data-dm-player="mini"] :is(#dm-safe#dm-safe#dm-safe,.player){display:flex!important;height:auto!important;max-height:none!important;min-height:0!important}
html[data-dm-player="mini"] :is(#dm-safe#dm-safe#dm-safe,.player .controls,.player .volume){display:none!important}
@media(max-width:760px){html[data-dm-player="open"] :is(#dm-safe#dm-safe#dm-safe,.player){display:grid!important;grid-template-columns:minmax(0,1fr)!important;height:auto!important;min-height:0!important;max-height:none!important;gap:4px!important}html[data-dm-player="open"] :is(#dm-safe#dm-safe#dm-safe,.player .controls){display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;max-width:100%!important;min-width:0!important;translate:none!important;transform:none!important;scale:none!important}html[data-dm-player="open"] :is(#dm-safe#dm-safe#dm-safe,.player .timeline){display:flex!important;grid-column:1/-1!important;min-width:0!important;max-width:100%!important;translate:none!important;transform:none!important;scale:none!important}html[data-dm-player="open"] :is(#dm-safe#dm-safe#dm-safe,.player .volume){display:none!important}}

/* DM CONTACT EDIT FIX 105 */
/* Only structural wrappers are protected. Individual links retain editor styles. */
html body :is(#dm-flow#dm-flow#dm-flow,footer){
 position:relative!important;inset:auto!important;translate:none!important;transform:none!important;scale:none!important;
 float:none!important;clear:both!important;height:auto!important;max-height:none!important;min-height:0!important;
 margin-top:0!important;margin-bottom:0!important;width:100%!important;max-width:100%!important;min-width:0!important;
 box-sizing:border-box!important;
}
footer,footer .social{flex-wrap:wrap;}
@media(max-width:760px){
 html body :is(#dm-flow#dm-flow#dm-flow,main#home,#booking,#booking>.booking,#bookingform){
  position:relative!important;inset:auto!important;translate:none!important;transform:none!important;scale:none!important;
  height:auto!important;max-height:none!important;min-height:0!important;width:100%!important;max-width:100%!important;min-width:0!important;
  margin-top:0!important;margin-bottom:0!important;box-sizing:border-box!important;overflow:visible!important;
 }
 html body :is(#dm-flow#dm-flow#dm-flow,#booking>.booking,#bookingform){display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
 html body :is(#dm-flow#dm-flow#dm-flow,#booking>.booking>div,#bookingform>*,#bookingform label>*){
  position:relative!important;inset:auto!important;translate:none!important;transform:none!important;scale:none!important;
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
 }
 html body :is(#dm-flow#dm-flow#dm-flow,#bookingform>label){display:grid!important;height:auto!important;max-height:none!important;}
 html body :is(#dm-flow#dm-flow#dm-flow,#bookingform .note){height:auto!important;max-height:none!important;}
 /* Defaults are intentionally NOT important: editor controls can override them. */
 #booking .actions,#booking .contact-social{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;max-width:100%;}
 #booking .contact-social{flex-basis:100%;width:100%;margin-top:0;}
 #booking .actions>a,#booking .contact-social>a{flex:0 0 auto;width:calc(50% - 4px);text-align:center;white-space:normal;overflow-wrap:anywhere;}
 #booking a[href^="tel:"]{font-size:clamp(11px,3.2vw,14px);padding-inline:8px;white-space:normal;}
 footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 4%;}
 footer .social{display:flex;flex-wrap:wrap;gap:8px 12px;justify-content:center;}
 /* Keep links within the available width without blocking X/Y, height, font, padding, color or scale. */
 html body :is(#dm-flow#dm-flow#dm-flow,#booking .actions>a,#booking .contact-social>a,footer>a,footer .social>a){
  max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
 }
}

/* V10.4: retain saved editor positioning; avoid cropping heads on default desktop framing. */
@media(min-width:1025px){.hero.custom-hero .dm-hero-photo img{object-position:var(--dx,50%) var(--dy,0%);transform-origin:var(--dx,50%) var(--dy,0%);}}
