/* HealthAndLife 1.35.153: article media and table reading on narrow screens.
   Scoped to article content. Decorative hero backgrounds and interactive calculators retain their layouts. */
#main-content :where(.article-body,.prose,.nab-main) :where(figure,picture,video,canvas,iframe) {
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
}
#main-content :where(.article-body,.prose,.nab-main) :where(img,video,canvas,iframe) {
  max-inline-size:100%;
}
/* CMS media can contain author-provided inline fixed widths. */
#main-content :where(.article-body,.prose,.nab-main) img:not([class*="icon"]) {
  box-sizing:border-box;
  min-width:0!important;
  max-width:100%!important;
  height:auto;
}
@media (max-width:860px) {
  #main-content :where(.article-body,.prose,.nab-main) figure {
    margin-inline:0;
    width:auto;
  }
}
@media (max-width:767px) {
  #main-content :where(.article-body,.prose,.nab-main) figure {
    margin-inline:0;
    width:auto;
  }
  #main-content :where(.article-body,.prose,.nab-main) picture,
  #main-content :where(.article-body,.prose,.nab-main) picture > img {
    display:block;
    max-width:100%;
    min-width:0;
    height:auto;
  }
  #main-content .prl-page .prl-hero__grid {
    grid-template-columns:minmax(0,1fr);
    min-width:0;
    max-width:100%;
  }
  #main-content .prl-page .prl-hero__visual {
    box-sizing:border-box;
    width:min(100%,100vw - 24px);
    max-width:100%;
    min-width:0;
    margin-inline:auto;
  }
  #main-content .prl-page .prl-hero__visual > img {
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    height:auto;
  }
  /* Mobile data cards are built only for ordinary non-interactive tables without merged cells. */
  #main-content .hal-original-table {display:none!important;}
  #main-content .hal-mobile-data-cards {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:11px;
    width:100%;
    max-width:100%;
    min-width:0;
    margin:15px 0 20px;
    box-sizing:border-box;
  }
  #main-content .hal-mobile-data-cards__caption,
  #main-content .hal-mobile-data-card {
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
    border:1px solid #dce5d7;
    border-radius:16px;
    background:#fffefa;
    padding:15px 16px;
    margin:0;
  }
  #main-content .hal-mobile-data-cards__caption {font-weight:700;color:#3f5943;}
  #main-content .hal-mobile-data-card__title {
    color:#3b533e;
    font-weight:750;
    font-size:1rem;
    line-height:1.4;
    margin-bottom:11px;
    overflow-wrap:anywhere;
  }
  #main-content .hal-mobile-data-card__row {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:3px;
    min-width:0;
    padding:10px 0;
    border-top:1px solid #e7ebe3;
  }
  #main-content .hal-mobile-data-card__row:last-child {padding-bottom:0;}
  #main-content .hal-mobile-data-card__label {
    display:block;
    color:#63765f;
    font-weight:700;
    font-size:.78rem;
    line-height:1.4;
    overflow-wrap:anywhere;
  }
  #main-content .hal-mobile-data-card__value {
    min-width:0;
    color:#34463a;
    font-size:.94rem;
    line-height:1.55;
    overflow-wrap:anywhere;
  }
  #main-content .hal-mobile-data-card__value > :first-child {margin-top:0;}
  #main-content .hal-mobile-data-card__value > :last-child {margin-bottom:0;}
}
@media (min-width:768px) {
  #main-content .hal-mobile-data-cards {display:none!important;}
}

/* Wide 3D editorial diagrams show the full scene instead of cropping to a scrollable strip. */
@media (max-width:860px) {
  #main-content :where(.tg-lipid-flow__viewport,.tg-insulin-flow__viewport,.sp-axis-figure__viewport) {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
  }
  #main-content :where(.tg-lipid-flow__viewport,.tg-insulin-flow__viewport,.sp-axis-figure__viewport) > img {
    display:block;
    box-sizing:border-box;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    object-fit:contain;
  }
  #main-content .sp-axis-figure__mobile-note {display:none;}
}
/* The child growth SVG is a chart, not a horizontally scrolling content strip. */
@media (max-width:767px) {
  #main-content .cg-growth-chart {
    max-width:100%;
    min-width:0;
    overflow-x:visible;
  }
  #main-content .cg-growth-chart svg {
    display:block;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto;
  }
}
