/* BWB-MK17: hug the Calendly card. Removes the oversized #f5f5f5 panel
   from MK16, which stretched the widget to a 650px+ column at 620px tall.
   The iframe uses Calendly's reported day-picker height (typically 602px)
   so the document does not scroll. The wrapper clips the empty bottom
   padding at 520px, and JS grows the wrapper to match after a date is
   picked. */

/* Visible card: clips leftover day-picker padding. JS raises height
   to the iframe's height when time slots need more room. */
.mk14-book-embed{
  background:#f5f5f5;
  border-radius:12px;
  overflow:hidden;
  padding:0;
  width:100%;
  max-width:520px;
  min-width:0;
  height:520px;
  min-height:520px;
}

/* Widget and iframe keep Calendly's reported height (not 520) so the
   iframe viewport is at least as tall as the document. min-height
   guards the early 26px / 2px resize collapse. */
.calendly-inline-widget.mk14-calendly{
  min-width:0;
  width:100%;
  max-width:520px;
  min-height:520px;
  background:#f5f5f5;
  overflow:visible;
}
.calendly-inline-widget.mk14-calendly iframe{
  background:#f5f5f5;
  display:block;
}

/* Desktop: copy and a 520px calendar, centered as a balanced pair. */
@media(min-width:1100px){
  .mk14-book{
    display:grid;
    grid-template-columns:minmax(280px,480px) 520px;
    column-gap:clamp(40px,5vw,88px);
    align-items:center;
    justify-content:center;
  }
  .mk14-book-lead{margin-bottom:0}
  .mk14-book noscript,
  .mk14-book .mk14-book-fallback{grid-column:1/-1}
}

@media(max-width:1099px){
  .mk14-book-embed{
    margin-inline:0;
    max-width:520px;
  }
}

@media(max-width:760px){
  .calendly-inline-widget.mk14-calendly{
    min-width:0;
  }
}
