/* SRI presentation is maintained in native Investa style 12: Custom CSS.
 * The complete source-matched CSS is versioned in the private SRI task rollback.
 */

/* Keep the footer divider below the complete contact and search content. */
.vcs-site-sri #sp-bottom::after {
  top: auto !important;
  bottom: 0 !important;
}

/* Separate the footer search field and button at every screen size. */
.vcs-site-sri #sp-bottom .mod-finder__search {
  gap: 12px;
}
.vcs-site-sri #sp-bottom .mod-finder__search > .btn {
  margin-left: 0;
}

/* Give desktop dropdown labels enough room, including nested panels. */
@media (min-width: 992px) {
  .vcs-site-sri #sp-header .sp-megamenu-parent .sp-dropdown {
    width: 340px !important;
    max-width: calc(100vw - 32px);
  }
  .vcs-site-sri #sp-header .sp-megamenu-parent > li:nth-last-child(-n+2) > .sp-dropdown-main {
    left: auto !important;
    right: 0 !important;
  }
  .vcs-site-sri #sp-header .sp-dropdown .sp-menu-item > a {
    white-space: normal;
  }
}

/* Article photographs: a consistent 500px desktop width, right aligned with natural text wrapping. */
.vcs-site-sri .article-details { display:flow-root; }
.vcs-site-sri .article-details .article-body { display:flow-root; }
.vcs-site-sri .article-details .article-body :is(p,li,h2,h3,h4) { text-align:left !important; clear:none !important; }
.vcs-site-sri .article-details .article-body :is(.vcs-editorial-photo,.sri-source-image),
.vcs-site-sri .article-details .article-body > figure:has(img),
.vcs-site-sri .article-details .article-body .sri-photo-gallery:where(:not(:has(img[src*="SRI_Locations_Map"]))):where(:not(:has(img[src*="SRI-Process-Picture"]))){
 float:right !important; clear:right; width:500px !important; max-width:calc(100% - 24px) !important;
 margin:0 0 24px 24px !important; min-width:0; box-sizing:border-box;
}
.vcs-site-sri .article-details .article-body .sri-photo-gallery { grid-template-columns:minmax(0,1fr) !important; }
.vcs-site-sri .article-details .article-body .sri-photo-gallery:has(> figure:only-child) { grid-template-columns:minmax(0,1fr) !important; }
.vcs-site-sri .article-details .article-body figure:has(img) { width:500px !important; min-width:0; max-width:100% !important; justify-self:end; box-sizing:border-box; }
.vcs-site-sri .article-details .article-body figure img { display:block; width:100% !important; max-width:100% !important; height:auto !important; margin:0 0 0 auto !important; }
/* Keep Joomla lead photos in the same flow as article text. */
.vcs-site-sri .article-details .article-media-wrapper:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) { float:right; width:500px; max-width:calc(100% - 30px); margin:0 15px 24px 24px; }
.vcs-site-sri .article-details .article-media-wrapper:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) .container { width:100%; max-width:100%; padding:0; }
.vcs-site-sri .article-details .article-media-wrapper:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) figure { float:none !important; margin:0 !important; }
.vcs-site-sri .article-details .article-media-wrapper:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) img { width:100%; height:auto; }
.vcs-site-sri .article-details:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) .article-body { display:block; }
.vcs-site-sri .article-details .bottom-section { clear:both; }
/* Preserve the explicitly requested full-width plant collage. */
.vcs-site-sri.itemid-438 .article-details .article-body figure:has(img[src*="3-pix-plant-1200px"]) { float:none !important; clear:both; width:100% !important; max-width:100% !important; margin:24px 0 !important; }
/* The process diagram is centered after all copy in the native article. */
.vcs-site-sri:is(.itemid-455,.itemid-492) .article-details .article-body .sri-photo-gallery:has(img[src*="SRI-Process-Picture"]) { float:none !important; clear:both; width:1126px !important; max-width:100% !important; margin:24px auto 0 !important; display:grid !important; }
.vcs-site-sri:is(.itemid-455,.itemid-492) .article-details .article-body figure:has(img[src*="SRI-Process-Picture"]) { width:100% !important; }
/* Pack Room: retain each section's two photos together. */
.vcs-site-sri.itemid-458 .article-details .sri-pack-section { display:flow-root; margin-bottom:32px; }
.vcs-site-sri.itemid-458 .article-details .article-body .sri-photo-gallery { float:none !important; clear:both; width:1024px !important; max-width:100% !important; margin:24px 0 0 auto !important; display:grid !important; gap:24px !important; }
@media(min-width:1200px) { .vcs-site-sri.itemid-458 .article-details .article-body .sri-photo-gallery { grid-template-columns:repeat(2,minmax(0,500px)) !important; } }
/* Locations: map above the two location groups; one column on small screens. */
.vcs-site-sri.itemid-463 .article-details .article-body { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:24px 48px; }
.vcs-site-sri.itemid-463 .article-details .article-body > * { grid-column:1/-1 !important; }
.vcs-site-sri.itemid-463 .article-details .article-body > .sri-location-group { grid-column:auto !important; min-width:0; }
.vcs-site-sri.itemid-463 .article-details .article-body .sri-photo-gallery:has(img[src*="SRI_Locations_Map"]) { float:none !important; width:605px !important; max-width:100% !important; margin:0 auto 24px !important; }
.vcs-site-sri.itemid-463 .article-details .article-body figure:has(img[src*="SRI_Locations_Map"]) { width:605px !important; }
/* Stack photos when a wrapped column would leave too little room for text. */
@media(max-width:991px) {
 .vcs-site-sri .article-details .article-body :is(.vcs-editorial-photo,.sri-source-image),
 .vcs-site-sri .article-details .article-body > figure:has(img),
 .vcs-site-sri .article-details .article-body .sri-photo-gallery:where(:not(:has(img[src*="SRI_Locations_Map"]))):where(:not(:has(img[src*="SRI-Process-Picture"]))) { float:none !important; max-width:100% !important; margin:16px 0 24px auto !important; }
 .vcs-site-sri .article-details .article-media-wrapper:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) { float:none; width:500px; max-width:100%; margin:16px 0 24px auto; }
 .vcs-site-sri .article-details .article-body .sri-photo-gallery { grid-template-columns:minmax(0,1fr) !important; }
}
@media(max-width:767px) {
 .vcs-site-sri.itemid-463 .article-details .article-body { grid-template-columns:minmax(0,1fr) !important; }
}

/* Align these stacked lead photographs with their article text container. */
@media(max-width:991px) {
 .vcs-site-sri:is(.itemid-439,.itemid-470,.itemid-440,.itemid-441) .article-details .article-media-wrapper:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) { width:500px; max-width:calc(100% - 30px); margin:16px 15px 24px auto; }
}
@media(min-width:576px) and (max-width:767px) {
 .vcs-site-sri:is(.itemid-439,.itemid-470,.itemid-440,.itemid-441) .article-details .article-media-wrapper:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) { margin-right:calc((100% - 510px) / 2); }
}
@media(min-width:768px) and (max-width:991px) {
 .vcs-site-sri:is(.itemid-439,.itemid-470,.itemid-440,.itemid-441) .article-details .article-media-wrapper:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) { margin-right:calc((100% - 690px) / 2); }
}

@media(min-width:992px) and (max-width:1199px) {
 .vcs-site-sri:is(.itemid-439,.itemid-470,.itemid-440,.itemid-441) .article-details .article-media-wrapper:has(.article-full-image):where(:not(:has(img[src*="UDI-Symbols"]))) { margin-right:calc((100% - 930px) / 2); }
}

/* Keep each publication preview with its own heading, abstract and existing PDF link. */
.vcs-site-sri.itemid-466 .article-details .article-body > .sri-publication { display:flow-root; clear:both; margin:0 0 24px; }
.vcs-site-sri.itemid-466 .article-details .article-body .sri-publication > figure.sri-photo { float:right !important; clear:right; width:500px !important; max-width:calc(100% - 24px) !important; margin:0 0 20px 24px !important; }
.vcs-site-sri.itemid-466 .article-details .article-body .sri-publication > hr { clear:both !important; margin:24px 0 0; }
@media(max-width:991px) { .vcs-site-sri.itemid-466 .article-details .article-body .sri-publication > figure.sri-photo { float:none !important; max-width:100% !important; margin:16px 0 24px auto !important; } }
/* Match Contact's hero placement and footer search shape to the rest of SRI. */
.vcs-site-sri.com-contact.view-contact #sp-main-body { padding-top:0; }
.vcs-site-sri.com-contact #sp-bottom .mod-finder__search .btn { border-radius:999px !important; }

/* Keep closed off-canvas navigation out of the keyboard focus sequence. */
.vcs-site-sri:not(.offcanvas-active) .offcanvas-menu { visibility:hidden; }
.vcs-site-sri.offcanvas-active .offcanvas-menu { visibility:visible; }

/* Let nested menu rows contain padded links and their keyboard focus outlines. */
.vcs-site-sri .offcanvas-menu .offcanvas-inner .sp-module ul ul > li > a { display:block !important; }
.vcs-site-sri .offcanvas-menu .offcanvas-inner .sp-module ul ul > li:has(> button[aria-expanded]) > a { display:flex !important; align-items:center; box-sizing:border-box; min-height:44px; margin-right:34px; }
.vcs-site-sri .offcanvas-menu .offcanvas-inner .sp-module ul ul > li > button[aria-expanded] { top:0 !important; transform:none !important; }


/* Diane review — 2026-10-30. Scoped additions; existing template customizations retained. */
body.vcs-site-sri .article-details .article-body p,
body.vcs-site-sri .sri-product-card p { text-align:justify !important; }
body.vcs-site-sri.itemid-438 .article-details .article-body figure:has(img[src*="3-pix-plant-1200px"]) { margin:0.5rem 0 1.5rem !important; }
body.vcs-site-sri.itemid-467 .article-details .article-body > figure.sri-udi-glossary { float:none !important; clear:both; width:581px !important; max-width:100% !important; margin:1rem 0 !important; }
body.vcs-site-sri.itemid-466 .article-details .article-body .sri-publication > figure.sri-photo { float:right !important; width:150px !important; max-width:40% !important; margin:0 0 1rem 1.5rem !important; }
body.vcs-site-sri .article-details .article-body .sri-media-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1.5rem; align-items:start; clear:both; margin:1.5rem 0; }
body.vcs-site-sri .article-details .article-body .sri-media-copy { min-width:0; }
body.vcs-site-sri .article-details .article-body .sri-media-copy > :first-child { margin-top:0; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo { float:none !important; clear:none !important; min-width:0; max-width:100% !important; margin:0 !important; justify-self:end; }
body.vcs-site-sri .article-details .article-body .sri-photo-pair { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; width:100% !important; max-width:100% !important; clear:both; float:none !important; margin:1rem 0 !important; align-items:start; }
body.vcs-site-sri .article-details .article-body .sri-photo-pair > figure.sri-detail-photo { justify-self:start; }
body.vcs-site-sri .article-details .article-body figure.sri-instrument-banner { float:none !important; clear:both; width:100% !important; max-width:100% !important; margin:0 0 1.5rem !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-150 { width:150px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-200 { width:200px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-232 { width:232px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-240 { width:240px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-250 { width:250px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-269 { width:269px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-272 { width:272px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-300 { width:300px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-306 { width:306px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-307 { width:307px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-350 { width:350px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-351 { width:351px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-355 { width:355px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-400 { width:400px !important; }
body.vcs-site-sri .article-details .article-body figure.sri-detail-photo.sri-photo-500 { width:500px !important; }
@media(max-width:767px) {
 body.vcs-site-sri .article-details .article-body .sri-media-row { grid-template-columns:minmax(0,1fr); gap:1rem; }
 body.vcs-site-sri .article-details .article-body .sri-media-row > figure.sri-detail-photo { justify-self:center; }
 body.vcs-site-sri .article-details .article-body .sri-photo-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:479px) { body.vcs-site-sri .article-details .article-body .sri-photo-pair { grid-template-columns:minmax(0,1fr); } }

/* Source-size photo pairs and stable shared-card alignment. */
body.vcs-site-sri .article-details .article-body .sri-photo-pair.sri-basins-pair { width:517px !important; margin:0 !important; }
body.vcs-site-sri .article-details .article-body .sri-photo-pair.sri-pack-pair { width:726px !important; }
body.vcs-site-sri .article-details .article-body .sri-photo-pair.sri-fulfillment-pair { width:816px !important; }
body.vcs-site-sri .sri-surgical-cards .sri-product-card > .btn { margin-top:auto !important; }
body.vcs-site-sri .sri-surgical-cards .sri-mayo-card-title { white-space:nowrap; }
body.vcs-site-sri .article-details .article-body:has(> .sri-about-lead) > figure:has(img[src*="3-pix-plant-1200px"]) { float:none !important; clear:both; width:100% !important; max-width:100% !important; margin:0.5rem 0 1.5rem !important; }
@media(min-width:768px) and (max-width:991px) { body.vcs-site-sri .article-details .article-body .sri-media-row { grid-template-columns:minmax(0,1fr); gap:1rem; } body.vcs-site-sri .article-details .article-body .sri-media-row > figure.sri-detail-photo { justify-self:center; } }
@media(min-width:992px) and (max-width:1199px) { body.vcs-site-sri .sri-surgical-cards { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }

/* QA: prevent portrait card images growing to 540px on narrow screens. */
body.vcs-site-sri .sri-surgical-cards .sri-product-card > img { width:auto !important; height:200px !important; max-width:100% !important; object-fit:contain !important; align-self:center; margin:0 auto 1rem; }
body.vcs-site-sri .sri-testimonials p,
body.vcs-site-sri #sp-bottom .sp-module-content > p { text-align:justify !important; }
