/* V1.4.44.196 — shared in-hub knowledge bank for Sleeve + RYGB */
.whb-wrap{margin-top:12px;direction:rtl;font-family:var(--w-font-family);color:var(--ink,#163f49)}
.whb-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 10px;padding:14px 17px;border:1px solid var(--line,#dbe9e6);border-radius:18px;background:linear-gradient(145deg,#fbfffe,#f0f9f7)}
.whb-title span{font-size:var(--w-text-small);font-weight:var(--w-weight-bold);color:var(--teal-dark,#177a73);letter-spacing:.02em}.whb-title h2{margin:3px 0 3px;font-size:var(--w-text-h2);line-height:1.6;color:var(--ink,#163f49)}.whb-title p{margin:0;color:var(--muted,#688184);font-size:var(--w-text-body);line-height:1.8}.whb-title-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-start}.whb-title-badges b{white-space:nowrap;font-size:var(--w-text-small);padding:6px 9px;border-radius:999px;border:1px solid var(--line,#dbe9e6);background:#fff;color:#517174}
.whb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}.whb-bank{border:1px solid var(--line,#dbe9e6);border-radius:17px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(13,65,72,.035);scroll-margin-top:92px}.whb-bank-head{appearance:none;width:100%;border:0;background:linear-gradient(145deg,#fff,#fbfefd);display:grid;grid-template-columns:47px minmax(0,1fr) auto;align-items:center;gap:11px;text-align:right;padding:12px 13px;cursor:pointer;color:inherit;font:inherit}.whb-bank-head:hover{background:#f6fbfa}.whb-bank-icon{width:47px;height:47px;border-radius:14px;display:grid;place-items:center;background:#edf8f5;border:1px solid #d8ece7;overflow:hidden}.whb-bank-icon img{display:block;width:27px;height:27px;object-fit:contain;image-rendering:auto}.whb-bank-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.whb-bank-copy b{font-size:var(--w-text-small);line-height:1.6;color:#173f49}.whb-bank-copy small{font-size:var(--w-text-small);line-height:1.65;color:#688184}.whb-bank-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;max-width:165px}.whb-bank-meta em{font-style:normal;font-size:var(--w-text-small);font-weight:var(--w-weight-bold);color:#57777a;background:#f0f7f5;border:1px solid #dfedeb;border-radius:999px;padding:4px 7px}.whb-bank-meta i{font-style:normal;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#eaf6f3;color:#197d75;font-size:var(--w-text-h4);transition:transform .24s ease}.whb-bank.is-open .whb-bank-meta i{transform:rotate(180deg)}
.whb-bank-collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s cubic-bezier(.22,.61,.36,1)}.whb-bank-collapse>div{min-height:0;overflow:hidden}.whb-bank.is-open .whb-bank-collapse{grid-template-rows:1fr}.whb-bank-content{border-top:1px solid var(--line,#dbe9e6);padding:10px;background:#fbfefd}
.whb-section{border:1px solid #dfebe8;background:#fff;border-radius:14px;padding:12px;margin:0 0 9px}.whb-section:last-child{margin-bottom:0}.whb-section>h4{font-size:var(--w-text-h4);margin:0 0 5px;color:#173f49}.whb-intro{margin:0 0 8px;font-size:var(--w-text-small);line-height:1.9;color:#58777a}.whb-points{margin:5px 0 8px;padding:0 20px 0 0;font-size:var(--w-text-small);color:#526f72;line-height:1.95}.whb-points li+li{margin-top:2px}.whb-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.whb-block{border:1px solid #e4efed;border-radius:11px;background:#fcfefe;padding:9px 10px;min-width:0}.whb-block h5{font-size:var(--w-text-h4);margin:0 0 4px;color:#245560}.whb-block p,.whb-block li{font-size:var(--w-text-body);line-height:1.9;color:#5c7679}.whb-block p{margin:0}.whb-block ul{margin:3px 0 0;padding:0 18px 0 0}.whb-subhead{font-size:var(--w-text-small);margin:10px 0 6px;color:#27665f}.whb-deep-list{margin-top:7px}.whb-deep,.whb-local-faq details,.whb-faq,.whb-comp,.whb-evidence{border:1px solid #e0ece9;border-radius:11px;background:#fbfefd;margin-bottom:6px;overflow:hidden}.whb-deep summary,.whb-comp summary,.whb-evidence summary,.whb-faq summary,.whb-local-faq summary{cursor:pointer;list-style:none}.whb-deep summary::-webkit-details-marker,.whb-comp summary::-webkit-details-marker,.whb-evidence summary::-webkit-details-marker,.whb-faq summary::-webkit-details-marker,.whb-local-faq summary::-webkit-details-marker{display:none}.whb-deep summary{display:flex;justify-content:space-between;gap:9px;padding:9px 10px;font-size:var(--w-text-small);font-weight:var(--w-weight-bold);color:#315f64}.whb-deep summary b{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#e9f6f3;color:#16877d}.whb-deep[open] summary b{transform:rotate(45deg)}.whb-deep-body{padding:0 8px 8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.whb-local-faq details summary,.whb-faq summary{padding:8px 10px;font-size:var(--w-text-small);font-weight:var(--w-weight-bold);color:#315f64}.whb-local-faq details p,.whb-faq p{margin:0;padding:0 10px 9px;font-size:var(--w-text-body);line-height:1.9;color:#5b7477}.whb-faq.is-red{border-color:#eed3ce;background:#fff9f7}
.whb-comp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.whb-comp{margin:0}.whb-comp summary{padding:9px 10px;display:flex;flex-direction:column;gap:2px}.whb-comp summary span{font-size:var(--w-text-small);font-weight:var(--w-weight-bold);color:#315b61}.whb-comp summary small{font-size:var(--w-text-small);color:#7a9193}.whb-comp.is-high{border-color:#edd0cb}.whb-comp.is-high summary{background:#fff8f6}.whb-comp-body{padding:0 10px 10px}.whb-comp-body>p{font-size:var(--w-text-body);line-height:1.85;color:#5b7477;margin:6px 0}.whb-alert{border-radius:10px;background:#fff1ee;border:1px solid #efd4ce;padding:8px;display:flex;flex-direction:column;gap:2px}.whb-alert b{font-size:var(--w-text-small);color:#a24d45}.whb-alert span{font-size:var(--w-text-small);line-height:1.75;color:#795d59}.whb-recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.whb-recovery-grid article{border:1px solid #e2eeeb;border-radius:11px;padding:9px;background:#fcfefe}.whb-recovery-grid span{font-size:var(--w-text-small);color:#1d7d73;font-weight:var(--w-weight-bold)}.whb-recovery-grid h5{font-size:var(--w-text-h4);margin:3px 0;color:#315f64}.whb-recovery-grid p{font-size:var(--w-text-body);line-height:1.8;color:#5b7477;margin:0}
.whb-science{background:linear-gradient(145deg,#fbfffe,#f7fbff)}.whb-science-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:7px}.whb-science-head h4{margin:0 0 2px;font-size:var(--w-text-h4)}.whb-science-head p{margin:0;font-size:var(--w-text-body);line-height:1.7;color:#6a8184}.whb-science-head>span{white-space:nowrap;font-size:var(--w-text-small);font-weight:var(--w-weight-bold);background:#eaf5ff;color:#416f9c;border-radius:999px;padding:5px 8px}.whb-evidence summary{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:8px 10px}.whb-evidence summary>span{min-width:0;display:flex;flex-direction:column;gap:1px}.whb-evidence summary b{font-size:var(--w-text-small);line-height:1.55;color:#315660}.whb-evidence summary small{font-size:var(--w-text-small);color:#809496}.whb-evidence summary em{font-style:normal;font-size:var(--w-text-small);font-weight:var(--w-weight-bold);padding:4px 6px;border-radius:999px;background:#edf6ff;color:#426f98}.whb-evidence-body{padding:0 10px 10px}.whb-evidence-body p,.whb-evidence-body li{font-size:var(--w-text-body);line-height:1.85;color:#5c7478}.whb-evidence-body p{margin:4px 0}.whb-evidence-body h6{font-size:var(--w-text-h4);margin:7px 0 2px;color:#315f64}.whb-evidence-body ul{padding:0 17px 0 0;margin:2px 0}.whb-source-link{display:inline-flex;margin-top:6px;text-decoration:none;border:1px solid #dbe9f5;border-radius:9px;padding:5px 8px;font-size:var(--w-text-small);font-weight:var(--w-weight-bold);color:#3f6e98;background:#f4f9ff}.whb-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px}.whb-source-card{display:flex;flex-direction:column;gap:2px;border:1px solid #e1ece9;border-radius:10px;padding:8px 9px;text-decoration:none;background:#fff;min-width:0}.whb-source-card>span{font-size:var(--w-text-small);color:#1b7d73;font-weight:var(--w-weight-bold)}.whb-source-card b{font-size:var(--w-text-small);line-height:1.55;color:#345d63}.whb-source-card small{font-size:var(--w-text-small);color:#849496}.whb-source-card p{font-size:var(--w-text-body);line-height:1.7;color:#657d80;margin:3px 0 0}.whb-table-wrap{overflow:auto;margin-top:4px}.whb-table-wrap table{width:100%;border-collapse:collapse;font-size:var(--w-text-small)}.whb-table-wrap th,.whb-table-wrap td{border:1px solid #e1ece9;padding:5px;text-align:right;vertical-align:top}.whb-table-wrap th{background:#f0f8f6;color:#315f64}
@media(max-width:900px){.whb-grid{grid-template-columns:1fr}.whb-detail-grid,.whb-comp-list,.whb-recovery-grid,.whb-source-grid{grid-template-columns:1fr 1fr}.whb-title{align-items:flex-start}.whb-title-badges{display:none}}
@media(max-width:560px){.whb-title{padding:12px;display:block}.whb-title h2{font-size:var(--w-text-h2)}.whb-bank-head{grid-template-columns:47px minmax(0,1fr) 28px;padding:10px}.whb-bank-icon{width:47px;height:47px}.whb-bank-icon img{width:27px;height:27px}.whb-bank-meta em{display:none}.whb-bank-meta{width:28px}.whb-detail-grid,.whb-deep-body,.whb-comp-list,.whb-recovery-grid,.whb-source-grid{grid-template-columns:1fr}.whb-bank-content{padding:7px}.whb-section{padding:9px}.whb-science-head{display:block}.whb-science-head>span{display:inline-flex;margin-top:5px}}
@media(prefers-reduced-motion:reduce){.whb-bank-collapse,.whb-bank-meta i{transition:none!important}}
/* RYGB image framing gate — source pixels stay untouched; only display geometry changes. */
body.wariatric-rygb-hub-active .rygb-hub .slh-anatomy{min-height:0!important;aspect-ratio:1312/1199!important;padding:7px!important;display:grid!important;place-items:center!important;background:#f7fbfa!important}
body.wariatric-rygb-hub-active .rygb-hub .slh-anatomy>img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;background:#fff!important;border-radius:14px!important;image-rendering:auto!important}
body.wariatric-rygb-hub-active #slhAnatomyModal .slh-modal-anatomy{width:min(1180px,calc(100vw - 24px))!important;height:min(92dvh,900px)!important;max-height:92dvh!important}
body.wariatric-rygb-hub-active #slhAnatomyModal .slh-modal-body{display:grid!important;place-items:center!important;padding:10px!important;overflow:hidden!important}
body.wariatric-rygb-hub-active #slhAnatomyModal .slh-anatomy-modal-img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0 auto!important;background:#fff!important;image-rendering:auto!important}
body.wariatric-rygb-hub-active .rygb-topology-modal{width:min(1280px,calc(100vw - 28px))!important;height:min(90dvh,860px)!important;max-height:90dvh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body.wariatric-rygb-hub-active .rygb-topology-layout{display:grid;grid-template-columns:minmax(260px,.62fr) minmax(0,1.55fr);gap:10px;min-height:0;flex:1;padding:10px 12px 12px;direction:rtl}
body.wariatric-rygb-hub-active .rygb-topology-layout .rygb-path-grid{grid-template-columns:1fr!important;align-content:start;margin:0!important;overflow:auto;min-height:0;padding-left:2px}
body.wariatric-rygb-hub-active .rygb-topology-layout .rygb-topology-image{min-width:0;min-height:0;height:100%;padding:6px!important;background:#fff!important;overflow:hidden!important}
body.wariatric-rygb-hub-active .rygb-topology-layout .rygb-topology-image img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;box-shadow:none!important;background:#fff!important;image-rendering:auto!important}
@media(max-width:820px){body.wariatric-rygb-hub-active .rygb-topology-modal{height:94dvh!important;max-height:94dvh!important}body.wariatric-rygb-hub-active .rygb-topology-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);padding:7px}body.wariatric-rygb-hub-active .rygb-topology-layout .rygb-path-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:30dvh}body.wariatric-rygb-hub-active .rygb-topology-layout .rygb-topology-image img{max-height:100%!important}}
@media(max-width:520px){body.wariatric-rygb-hub-active .rygb-topology-layout .rygb-path-grid{grid-template-columns:1fr!important;max-height:34dvh}}
