/* FITSTRONG v60.5.116 — bodyweight explanation, workout search and print margin repair */

/* Make the Bodyweight Review explanation impossible to miss: it opens as a readable modal overlay. */
.bodyweight-review-detail:not([hidden]){
  position:fixed;
  inset:0;
  z-index:12000;
  display:grid;
  place-items:center;
  padding:clamp(16px,4vw,48px);
  margin:0;
  background:rgba(17,31,31,.56);
  overflow:auto;
}
.bodyweight-review-detail-card{
  width:min(760px,100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1.25rem;
  padding:1.35rem;
  border-radius:18px;
  background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.24);
}
.bodyweight-review-detail-copy{min-width:0;flex:1}
.bodyweight-review-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:1rem 0}
.bodyweight-review-detail-grid p{margin:0;padding:.7rem .8rem;border:1px solid rgba(4,93,93,.13);border-radius:10px;background:#f8fbfb}
.bodyweight-review-detail-grid span{display:block;font-size:.78rem;color:#687575;margin-bottom:.15rem}
.bodyweight-review-detail-grid strong{display:block}
.bodyweight-review-explanation{border-top:1px solid rgba(4,93,93,.14);padding-top:.8rem}
.bodyweight-review-explanation h4{margin:.7rem 0 .2rem;color:#045D5D}
.bodyweight-review-explanation p{margin:.2rem 0 .8rem}
.bodyweight-review-detail-safety{margin:.9rem 0 0;padding:.75rem .85rem;border-left:4px solid #045D5D;background:#f2f8f8}
@media(max-width:680px){.bodyweight-review-detail-card{display:block}.bodyweight-review-detail-card>.button{margin-top:1rem}.bodyweight-review-detail-grid{grid-template-columns:1fr}}

.workout-search-empty{margin:.75rem 0 1rem;padding:.9rem 1rem;border:1px solid rgba(4,93,93,.16);border-radius:12px;background:#f8fbfb}
.workout-search-empty p{margin:.2rem 0 0}
.workout-library-row[hidden]{display:none!important}

/* Browser PDF/print safety. Named page keeps these margins scoped to FITSTRONG generic reports. */
@page fitstrong-report{size:auto;margin:14mm 14mm 16mm 14mm}
@media print{
  html.printing-fitstrong-report,body.printing-fitstrong-report{margin:0!important;padding:0!important}
  body.printing-fitstrong-report #fitstrong-generic-print-root{
    page:fitstrong-report;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.printing-fitstrong-report #fitstrong-generic-print-root *,
  body.printing-fitstrong-report #fitstrong-generic-print-root *::before,
  body.printing-fitstrong-report #fitstrong-generic-print-root *::after{box-sizing:border-box!important}
  body.printing-fitstrong-report #fitstrong-generic-print-root img{max-width:100%!important;height:auto!important}
  body.printing-fitstrong-report #fitstrong-generic-print-root table{width:100%!important;max-width:100%!important;table-layout:auto!important}
  body.printing-fitstrong-report #fitstrong-generic-print-root th,
  body.printing-fitstrong-report #fitstrong-generic-print-root td{overflow-wrap:anywhere;word-break:normal}
}
