/* Narrow, additive fixes found during the full-site viewport review. */
html body main .confocal-scroll {width:100%!important;max-width:100%;min-width:0;margin-inline:0!important;transform:none!important;overflow-x:auto;overscroll-behavior-x:contain;}
.wiki-math-scroll {display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
.wiki-math-scroll > math {display:block;min-width:max-content;max-width:none!important;overflow:visible;}
.wiki-math-scroll:focus-visible {outline:2px solid var(--dogma-blue,#216A9E);outline-offset:3px;}
@media(max-width:700px) {
 main:has(#organization) .dogma-rich-hero h1 {font-size:clamp(30px,9vw,60px)!important;}
}

/* These two pages use interruptible proximity stops, not mandatory page locking. */
html[data-reading-snap] {scroll-snap-type:none!important;}
html[data-reading-snap] .members-snap-panel {scroll-snap-align:none;scroll-snap-stop:normal;}
html[data-reading-snap-state="aligning"] {scroll-behavior:auto!important;}
html[data-reading-snap="members"] #team-photo {min-height:100svh;}

/* Keep the original large ship; avoid expensive blur on the full-size artwork. */
body.members-page:not(.education-page) #team-hero {isolation:isolate;contain:paint;}
body.members-page:not(.education-page) #team-hero .bg-logo-wrap {
 width:min(145.5vw,1164px,160.05svh);height:auto;max-width:none;will-change:auto;
}
body.members-page:not(.education-page) #team-hero .bg-logo-single {
 width:100%;height:auto;max-height:none;object-fit:contain;
}
body.members-page:not(.education-page) #team-hero[data-hero-exited="true"] {visibility:visible;pointer-events:none;}
body.members-page:not(.education-page) #navbar {isolation:isolate;z-index:1000;}
@media(max-width:768px) {
 body.members-page:not(.education-page) #team-hero .bg-logo-wrap {width:min(145.5vw,1164px,160.05svh);height:auto;}
}
body.members-page:not(.education-page) #team-hero[data-hero-exited="true"] :is(.frame-layer,.bg-logo-wrap) {will-change:auto;}

/* Display mathematics centers when it fits; an overlong formula scrolls locally. */
html body main .wiki-math-scroll {width:100%;min-width:0;text-align:center;padding-block:12px;overflow-y:hidden;}
html body main .wiki-math-scroll>:is(math,mjx-container[display="true"]) {
 display:block;width:max-content!important;min-width:max-content;max-width:none!important;margin:0 auto!important;text-align:center!important;
}
html body main :is(.model-equation,.progress3-equation) {text-align:center;justify-content:center;}

/* A compact sequence table, not a full-column band with an empty right half. */
html body main #measurement-adaptor-title {font-size:13px!important;line-height:1.6!important;font-weight:650;margin:18px 0 8px;text-align:left;white-space:nowrap;}
html body main #figure-measurement-55-1>.progress3-figure {width:min(100%,700px)!important;max-width:100%;margin-inline:auto!important;}
html body main .wetlab-source-content .progress3-image-group>.progress3-caption,
html body main .wetlab-source-content .progress3-image-group>.progress3-caption p {text-align:center!important;}
html body main #measurement-adaptor-matching-table {width:max-content;max-width:100%;margin-block:18px 22px;overflow-x:auto;}
html body main #measurement-adaptor-matching-table > table.wetlab-adaptor-table {width:max-content;min-width:0!important;max-width:100%;table-layout:auto;}
html body main #measurement-adaptor-matching-table > table.wetlab-adaptor-table :is(th,td):first-child {width:auto;min-width:90px;padding-right:24px;}
html body main #measurement-adaptor-matching-table td:last-child {width:34ch;}
html body main #measurement-adaptor-matching-table :is(.adaptor-sequence,.adaptor-trna-end) {font-family:var(--wiki-font-code,'Fira Code',Consolas,monospace);}
html body main #figure-measurement-55-9>.progress3-figure>.progress3-caption {display:block;width:100%;margin:10px 0 0!important;text-align:center;clear:none;}
html body main #figure-measurement-55-9>.progress3-figure>.progress3-caption p {font-size:13px!important;line-height:1.65!important;text-align:center!important;margin:0!important;}
html body main #figure-measurement-55-10 {clear:both;}
@media(max-width:1000px) {html body main #measurement-adaptor-title {white-space:normal;}}
@media(max-width:600px) {
 html body main #measurement-adaptor-title {white-space:normal;}
 html body main #measurement-adaptor-matching-table {width:100%;}
 html body main #measurement-adaptor-matching-table > table.wetlab-adaptor-table {display:block;width:100%;}
 html body main #measurement-adaptor-matching-table caption {display:block;width:100%;max-width:100%;}
 html body main #measurement-adaptor-matching-table .wetlab-adaptor-table,
 html body main #measurement-adaptor-matching-table :is(tbody,tr,td) {display:block;width:100%;max-width:100%;}
 html body main #measurement-adaptor-matching-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
 html body main #measurement-adaptor-matching-table tr {margin-bottom:12px;}
 html body main #measurement-adaptor-matching-table td:first-child {padding:10px 12px 4px;border-bottom:0;}
 html body main #measurement-adaptor-matching-table td:last-child {width:100%;padding:4px 12px 12px;overflow:auto;}
 html body main #measurement-adaptor-matching-table .adaptor-pairing {font-size:clamp(11px,3.25vw,14px)!important;}
 html body main #measurement-adaptor-matching-table :is(.adaptor-sequence,.adaptor-trna-end) {font-size:clamp(11px,3.25vw,14px)!important;line-height:1.7;}
}



/* Team opening: bound SVG painting and suppress browser pull-to-refresh. */
html:has(body.members-page:not(.education-page)) {overscroll-behavior-y:none;}
body.members-page:not(.education-page) #team-hero {height:100svh;opacity:1!important;}
body.members-page:not(.education-page) #team-hero .team-frame-scene {position:absolute;inset:0;width:100%;height:100%;z-index:9;overflow:hidden;pointer-events:none;}
body.members-page:not(.education-page) #team-hero .hero-title {filter:none;}
body.members-page:not(.education-page) #team-hero .bg-logo-single {filter:none;}
