/* Shared content measure. Section backgrounds remain full width. */
:root {
  --content-max: 75rem;
  --max: var(--content-max);
  --page-gutter: clamp(18px, 3.2vw, 48px);
  --content-width: min(var(--content-max), calc(100% - 2 * var(--page-gutter)));
}

.container,
.site-chrome .header-inner,
.home-section.container,
.new-product-section.container,
.home-gateways.container,
.utility-page.container,
.footer-four,
.footer-bottom,
.global-editorial-inner,
.global-presence-page .gp-wrap,
.home-science[data-layout=open] {
  width: var(--content-width);
  margin-inline: auto;
}

.site-chrome .header-inner,
.home-section.container,
.new-product-section.container,
.home-gateways.container,
.utility-page.container {
  max-width: var(--content-max);
}

/* Plain desktop labels with even spacing; mobile disclosures stay intact. */
.site-chrome .desktop-nav.nav-left {
  justify-content: flex-start;
  gap: clamp(24px, 2vw, 32px);
}

.site-chrome .desktop-nav .nav-trigger {
  gap: 0;
}

.site-chrome .desktop-nav .nav-trigger > span[aria-hidden="true"] {
  display: none;
}

/* Nested containers use the width already established by their parent. */
.footer-four > .edition-note,
.about-background .page-section > .container {
  width: 100%;
}

/* The home opening fills the window; its text follows the content measure. */
.home-art-hero {
  background: #fbfcf9;
}

.home-art-hero > img {
  width: 100%;
  max-width: none;
  object-fit: cover;
}

.about-editorial-hero {
  background: var(--green, #0f302a);
}

.about-editorial-hero > img,
.corporate-editorial .ce-hero > img {
  max-width: var(--content-max);
  margin-inline: auto;
}

.home-art-hero[data-height=viewport] > img {
  height: 100vh;
  height: 100dvh;
}

/* Mobile browser chrome changes dvh in steps during a gesture. With cover,
   those layout changes look like a jumping zoom. A stable small viewport
   keeps the opening crop fixed; genuine orientation changes still reflow.
   No new animation: hero scrolling and reduced-motion behavior stay intact. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .home-art-hero[data-height=viewport] > img {
    height: 100vh;
    height: 100svh;
  }
}

.hero-message {
  left: max(var(--page-gutter), calc((100% - var(--content-max)) / 2 + 32px));
  right: var(--page-gutter);
}

/* One continuous feature, with an edge-to-edge product image. */
.new-product-section {
  gap: 0;
}

@media (min-width: 651px) {
  .new-product-section {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

/* Align the feature with the last two treatment cards, including their gap. */
@media (min-width: 901px) {
  .new-product-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, calc((100% - var(--home-card-gap)) / 2));
  }
}

.new-product-section .new-product-feature {
  padding: clamp(28px, 3vw, 40px) 0;
  gap: clamp(24px, 2vw, 32px);
  justify-content: center;
}

@media (max-width: 650px) {
  .new-product-section .new-product-feature {
    padding-top: 56px;
  }
}

.new-product-section .new-feature-intro,
.new-product-section .new-product-copy {
  width: 100%;
  padding-inline: clamp(20px, 2.4vw, 36px);
}

.new-product-section .new-feature-intro h2 {
  margin: 0;
}

.new-product-section .new-product-packshot {
  display: block;
  flex: none;
  width: 100%;
  max-width: none;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
}

.new-product-section .new-product-packshot > img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.home-gateways .gateway-image {
  aspect-ratio: 4 / 3;
}

.about-editorial-hero {
  max-height: 720px;
}

/* Alternating corporate rows size against their columns, not the monitor. */
.corporate-editorial .ce-row {
  width: var(--content-width);
  margin-inline: auto;
}

.corporate-editorial .ce-image {
  min-height: 0;
  aspect-ratio: 1;
}

.corporate-editorial .ce-copy {
  padding-inline: clamp(24px, 3vw, 48px);
}

.corporate-editorial .ce-copy-inner {
  max-width: 530px;
}

/* One stable composition for the globe and facts, inside a full-width field. */
.gp-atlas .gp-atlas-heading,
.gp-atlas .gp-atlas-footer {
  width: var(--content-width);
  margin-inline: auto;
}

.gp-atlas .gp-atlas-stage {
  width: 100%;
}

.gp-atlas .gp-atlas-footer {
  position: relative;
  height: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.gp-atlas .gp-atlas-footer .gp-motion-control {
  position: absolute;
  inset: auto 0 20px auto;
  z-index: 4;
}

@media (min-width: 701px) {
  .gp-atlas .gp-facts {
    right: max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
    width: clamp(250px, 30%, 360px);
  }
}

.gp-atlas:is(.is-reduced, :not(.is-ready)) .gp-facts {
  width: var(--content-width);
  margin-inline: auto;
}

@media (max-width: 700px) {
  .gp-atlas.is-ready:not(.is-reduced) .gp-facts {
    margin-inline: var(--page-gutter);
  }
}

@media (max-width: 699px) {
  .corporate-editorial .ce-copy,
  .corporate-editorial .ce-reverse .ce-copy {
    padding-inline: 0;
  }
}

/* Fit the history art to the screen width and crop vertically from its center. */
.corporate-editorial.ce-history .ce-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: clamp(330px, 38.14vw, 560px);
}

.corporate-editorial.ce-history .ce-hero > img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transform: translateY(-50%);
}

@media (max-width: 699px) {
  .corporate-editorial.ce-history .ce-hero {
    max-height: 400px;
  }
}

/* Match the mobile menu mark to the header search icon. */
.site-chrome .menu-open {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin-left: -11px;
}

.site-chrome .menu-open .menu-icon {
  display: block;
  width: 22px;
  height: 22px;
  margin-inline: auto;
}

/* The close control occupies the opening button's exact viewport position. */
.mobile-panel {
  padding-top: 0;
}

.mobile-panel .dialog-top {
  height: var(--menu-header-height, 85px);
  padding: 0;
}

.mobile-panel #menu-close {
  position: fixed;
  left: var(--menu-control-x, 7px);
  top: var(--menu-control-y, 20.5px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #fbfcf9;
  color: var(--green, #0f302a);
  z-index: 1;
}

.mobile-panel #menu-close svg {
  display: block;
  width: 22px;
  height: 22px;
}

.menu-active .site-chrome .menu-open .menu-icon {
  visibility: hidden;
}

/* Equal-height first-level rows with expanding, uncluttered submenus. */
.mobile-panel nav > .nav-item {
  display: block;
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.mobile-panel nav > .nav-item > .nav-trigger,
.mobile-panel nav > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 72px;
  min-height: 72px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}

.mobile-panel nav > a {
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.mobile-panel nav > .nav-item > .nav-trigger {
  border: 0;
}

.mobile-panel .nav-trigger > span[aria-hidden="true"] {
  display: none;
}

.mobile-panel .submenu {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.mobile-panel .mobile-submenu-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 20px;
  padding: 0 0 16px;
}

.mobile-panel .mobile-submenu-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-panel .submenu a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}

/* The overview link follows the category grid as its own final row. */
.mobile-panel .submenu .mobile-all-products{margin-top:24px;margin-bottom:16px;justify-content:flex-start}
.mobile-panel .mobile-submenu-columns{padding-bottom:0}

/* Mirror the search entrance while keeping the close control stationary. */
.mobile-panel{background:transparent;isolation:isolate}
.mobile-panel::before{content:"";position:fixed;top:0;left:0;width:inherit;max-width:100%;height:100dvh;background:#fbfcf9;z-index:-1}
.mobile-panel:not([hidden])::before,.mobile-panel:not([hidden])>nav{animation:menu-panel-in .28s cubic-bezier(.22,.61,.36,1) both}
.mobile-panel.is-closing::before,.mobile-panel.is-closing>nav{animation:menu-panel-out .3s cubic-bezier(.55,0,.75,.4) forwards}
@keyframes menu-panel-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@keyframes menu-panel-out{to{transform:translateX(-100%)}}

/* Keep the complete navigation through compact desktop widths. */
@media(min-width:780px) and (max-width:1199px){
 .site-chrome .header-inner{display:grid;grid-template-columns:minmax(0,1fr) 164px minmax(0,1fr);gap:18px;min-height:96px}
 .site-chrome .header-inner>.brand{grid-column:2;grid-row:1}
 .site-chrome .brand img{width:164px}
 .site-chrome .desktop-nav{display:flex;font-size:10px;white-space:nowrap}
 .site-chrome .desktop-nav.nav-left{grid-column:1;grid-row:1;gap:16px}
 .site-chrome .desktop-nav.nav-right{grid-column:3;grid-row:1;gap:16px;justify-content:flex-end}
 .site-chrome .nav-right>a{display:flex;font-size:10px}
 .site-chrome .nav-right>a:first-child{display:flex}
 .site-chrome .menu-open{display:none}
 .mobile-panel{display:none!important}
}

@media(min-width:780px) and (max-width:1199px){.site-chrome .desktop-nav.nav-right>a{display:flex!important}}

/* One responsive type size for both sides of the main navigation. */
.site-chrome{--header-nav-size:12px}
.site-chrome .desktop-nav.nav-left > .nav-item > .nav-trigger,
.site-chrome .desktop-nav.nav-right > a:not(.search-link){font-size:var(--header-nav-size)}
@media(min-width:780px) and (max-width:1199px){.site-chrome{--header-nav-size:11px}}
.site-chrome .nav-right .search-link > svg{transform:translateY(-2px)}

/* Space for the light header at the first homepage scroll landing. */
.portfolio-selection {
  --hero-landing-header: 72px;
  padding-top: calc(var(--hero-landing-header) + clamp(32px, 4vw, 56px));
}
@media (max-width: 650px) {
  .portfolio-selection { --hero-landing-header: 64px; }
}

/* Scoped November 11 modifications. Preserve the adjacent editorial image geometry. */
.new-product-section .new-product-feature{background:transparent;padding-left:var(--home-card-gap)}
.new-product-section .new-feature-intro,.new-product-section .new-product-copy{padding-inline:0}
.new-product-section .new-product-packshot{border:0;box-shadow:none;background:transparent}
@media(max-width:650px){.new-product-section .new-product-feature{padding-left:0}}
#registration-details{scroll-margin-top:100px}
#registration-details .bapc-registration-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:32px}
#site-search-results .site-search-result{display:flex;gap:24px;align-items:flex-start}
#site-search-results .search-result-thumbnail{flex:0 0 120px}
#site-search-results .search-result-thumbnail img{width:120px;height:100px;object-fit:contain;display:block}
#site-search-results .search-result-copy{min-width:0;flex:1}
@media(max-width:650px){#registration-details .bapc-registration-fields{grid-template-columns:1fr}#site-search-results .site-search-result{gap:16px}#site-search-results .search-result-thumbnail{flex-basis:76px}#site-search-results .search-result-thumbnail img{width:76px;height:76px}}

@media(prefers-reduced-motion:reduce){.mobile-panel::before,.mobile-panel>nav{animation:none!important}}
