/* Wariatric V229 — strictly scoped RYGB visual accessibility correction.
   Never touch protected anatomy/brand/source art or other surgery hubs. */
body.wariatric-rygb-hub-active #rygbHub {
  --rygb-v229-ink: #153d45;
  --rygb-v229-secondary: #476c70;
  --rygb-v229-primary: #0f8176;
  --rygb-v229-line: #d5e9e4;
  --rygb-v229-surface: #f7fcfa;
  font-family: var(--w-font-family);
}
/* Text content: no minuscule 8-11px clinical copy in deep knowledge panels. */
body.wariatric-rygb-hub-active #rygbHub :is(
  .whb-intro,.whb-points,.whb-points li,.whb-block p,.whb-block li,
  .whb-deep p,.whb-deep li,.whb-local-faq details p,.whb-faq p,
  .whb-comp-body p,.whb-alert span,.whb-recovery-grid p,
  .whb-science-head p,.whb-evidence-body p,.whb-evidence-body li,
  .whb-source-card p,.whb-detail-grid p,.whb-section>p,
  .rygb-path-grid p,.rygb-nutrition-preview-grid p,.rygb-nutrition-preview-grid li
){font-size:var(--w-text-body);line-height:1.92!important;color:var(--rygb-v229-secondary)!important;letter-spacing:normal!important}
body.wariatric-rygb-hub-active #rygbHub :is(
  .whb-bank-copy b,.whb-section>h4,.whb-block h5,.whb-subhead,
  .whb-deep summary,.whb-local-faq details summary,.whb-faq summary,
  .whb-comp summary span,.whb-evidence summary b,.whb-evidence-body h6,
  .whb-science-head h4,.whb-source-card b
){font-size:var(--w-text-h4);line-height:1.75!important}
body.wariatric-rygb-hub-active #rygbHub :is(
  .whb-title>div>span,.whb-bank-copy small,.whb-bank-meta em,
  .whb-title-badges b,.whb-comp summary small,.whb-alert b,
  .whb-recovery-grid span,.whb-recovery-grid h5,
  .whb-evidence summary small,.whb-evidence summary em,
  .whb-source-card>span,.whb-source-card small,
  .whb-science-head>span,.whb-source-link
){font-size:var(--w-text-h4);line-height:1.65!important}
body.wariatric-rygb-hub-active #rygbHub :is(.whb-faq summary,.whb-deep summary,.whb-comp summary,.whb-evidence summary,.whb-local-faq summary){min-height:44px;align-items:center}
body.wariatric-rygb-hub-active #rygbHub .whb-table-wrap{overflow-x:auto;max-width:100%;overscroll-behavior-inline:contain}
body.wariatric-rygb-hub-active #rygbHub .whb-table-wrap table{font-size:var(--w-text-small);line-height:1.65!important;min-width:400px}
body.wariatric-rygb-hub-active #rygbHub .whb-table-wrap :is(th,td){padding:9px!important}
body.wariatric-rygb-hub-active #rygbHub .whb-bank-content{padding:clamp(10px,1.3vw,17px)!important}
body.wariatric-rygb-hub-active #rygbHub .whb-section{padding:clamp(11px,1.1vw,17px)!important;margin-bottom:11px!important}
body.wariatric-rygb-hub-active #rygbHub .whb-block{padding:12px!important}
body.wariatric-rygb-hub-active #rygbHub :is(.whb-deep-body,.whb-source-grid,.whb-detail-grid,.whb-comp-list){gap:10px!important}
body.wariatric-rygb-hub-active #rygbHub .whb-title{gap:14px;padding:17px!important}
body.wariatric-rygb-hub-active #rygbHub .whb-title h2{font-size:var(--w-text-h2)}
body.wariatric-rygb-hub-active #rygbHub .whb-title p{font-size:var(--w-text-body)}
/* Card geometry and readable icon labels: the verified image files remain original. */
body.wariatric-rygb-hub-active #rygbHub .slh-benefits{gap:10px!important;align-items:stretch!important}
body.wariatric-rygb-hub-active #rygbHub .slh-benefit{
  min-width:0!important;line-height:1.75!important;font-size:var(--w-text-small);
  text-align:center!important;padding:6px 3px!important;justify-content:flex-start!important;
}
body.wariatric-rygb-hub-active #rygbHub .slh-benefit .slh-icon{
  width:70px!important;height:70px!important;min-width:70px!important;min-height:70px!important;
  max-width:70px!important;max-height:70px!important;padding:5px!important;
  border-radius:16px!important;border-color:var(--rygb-v229-line)!important;
  background:#edf8f5!important;
}
body.wariatric-rygb-hub-active #rygbHub .slh-benefit .slh-icon img{
  width:100%!important;height:100%!important;object-fit:contain!important;
  object-position:center!important;transform:none!important;filter:none!important;
}
body.wariatric-rygb-hub-active #rygbHub .rygb-procedure-card strong{font-size:var(--w-text-small)}
body.wariatric-rygb-hub-active #rygbHub .rygb-procedure-card img{object-fit:contain!important;transform:none!important}
/* Modal can show full, uncropped, approved source by default or user-triggered larger view. */
body.wariatric-rygb-hub-active .rygb-v229-zoom-tools{
  display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;
  padding:9px 11px;border:1px solid var(--rygb-v229-line);border-radius:12px;
  background:var(--rygb-v229-surface);margin:0 0 8px;
}
body.wariatric-rygb-hub-active .rygb-v229-zoom-tools button{
  min-height:44px;appearance:none;border:1px solid #b8dcd3;border-radius:10px;
  background:#fff;color:var(--rygb-v229-ink);font:700 var(--w-text-small)/1.7 var(--w-font-family);
  padding:7px 13px;cursor:pointer;
}
body.wariatric-rygb-hub-active .rygb-v229-zoom-tools button[aria-pressed="true"]{
  background:#def3ec;color:#0d6159;border-color:#76b8a8;
}
body.wariatric-rygb-hub-active .rygb-v229-zoom-tools small{font-size:var(--w-text-small);color:#526f72}
body.wariatric-rygb-hub-active .rygb-v229-image-view{
  overflow:auto;max-width:100%;min-width:0;max-height:75dvh;overscroll-behavior:contain;
  scrollbar-gutter:stable;border-radius:12px;text-align:center;
}
body.wariatric-rygb-hub-active .rygb-v229-image-view>img{
  display:block!important;max-width:100%!important;width:100%!important;height:auto!important;
  object-fit:contain!important;object-position:center!important;
  transform:none!important;filter:none!important;margin-inline:auto;
}
body.wariatric-rygb-hub-active .rygb-v229-image-view[data-zoom="true"]>img{
  min-width:min(1312px,220vw)!important;max-width:none!important;width:min(1312px,220vw)!important;
  height:auto!important;max-height:none!important;
}
body.wariatric-rygb-hub-active .rygb-v229-image-view[data-zoom="true"]{
  background:#fff;border:1px solid var(--rygb-v229-line);
}
body.wariatric-rygb-hub-active :is(.rygb-v229-zoom-tools button,.whb-bank-head):focus-visible{
  outline:3px solid #117d70!important;outline-offset:3px!important;
}
body.wariatric-rygb-hub-active #rygbHub .whb-bank-head[aria-expanded="false"]+.whb-bank-collapse{visibility:hidden}
body.wariatric-rygb-hub-active #rygbHub .whb-bank-head[aria-expanded="true"]+.whb-bank-collapse{visibility:visible}
@media(max-width:760px){
  body.wariatric-rygb-hub-active #rygbHub .slh-benefits .slh-benefit{font-size:var(--w-text-small)}
  body.wariatric-rygb-hub-active #rygbHub .slh-benefit .slh-icon{
    width:66px!important;height:66px!important;min-width:66px!important;min-height:66px!important;
    max-width:66px!important;max-height:66px!important;
  }
  body.wariatric-rygb-hub-active #rygbHub .whb-detail-grid,
  body.wariatric-rygb-hub-active #rygbHub .whb-source-grid,
  body.wariatric-rygb-hub-active #rygbHub .whb-deep-body,
  body.wariatric-rygb-hub-active #rygbHub .whb-comp-list,
  body.wariatric-rygb-hub-active #rygbHub .whb-recovery-grid{grid-template-columns:minmax(0,1fr)!important}
  body.wariatric-rygb-hub-active .rygb-v229-zoom-tools{padding:7px;gap:6px}
  body.wariatric-rygb-hub-active .rygb-v229-zoom-tools button{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){
 body.wariatric-rygb-hub-active #rygbHub .whb-bank-collapse{transition:none!important}
}
