/* November 11: only the requested header, homepage spacing, link lines,
   footer heading gaps, search typography, internal type and history rows. */
:root {
  --edge-gutter: clamp(18px, 2vw, 32px);
  --history-title-size: 40px;
  --history-section-size: 21px;
  --history-body-size: 15px;
  --history-body-leading: 1.6;
  --history-intro-size: 15px;
  --history-intro-leading: 1.6;
}
/* The same outer measure brackets equal navigation columns and the home copy. */
.site-chrome .header-inner {
  width: calc(100% - 2 * var(--edge-gutter));
  max-width: none;
  grid-template-columns: minmax(0,1fr) 204px minmax(0,1fr);
}
.site-chrome .desktop-nav {align-items:center;line-height:1.6}
.site-chrome .desktop-nav.nav-left,
.site-chrome .desktop-nav.nav-right {gap:clamp(16px,2vw,32px)}
.site-chrome .desktop-nav.nav-right {justify-content:flex-end}
.site-chrome .desktop-nav > .nav-item > .nav-trigger {
  min-height:44px;line-height:1.6;padding:0 0 var(--link-line-gap);
}
.site-chrome .desktop-nav > a {min-height:44px;line-height:1.6}
.site-chrome .nav-right .search-link > svg {transform:translateY(-2px)}
/* Preserve the existing treatment-link offset as the one line-spacing token. */
:root {--link-line-gap:4px}
.hero-message .link-label::after,
.cta .link-label::after,
.text-link .link-label::after,
.ce-link .link-label::after,
.image-card .link-label::after,
.editorial-inline-link.link-label::after,
.link-always::after {transform:scaleX(1)}
/* Scope width/section rhythm to the landing page; internal measures are retained. */
body:has(.home-art-hero) {
  --home-content-gutter:clamp(24px,3.5vw,56px);
  --home-space:clamp(72px,5.4vw,80px);
  --heading-gap:16px;
  --home-gap:16px;
  --home-card-gap:clamp(12px,1.2vw,20px);
}
body:has(.home-art-hero) #main > :is(.home-section,.new-product-section,.home-gateways).container {
  width:calc(100% - 2 * var(--home-content-gutter));max-width:none;
  padding-block:0;margin-block:0 var(--home-space);
}
body:has(.home-art-hero) #main > .portfolio-selection.container {
  padding-top:var(--home-space);
}
.hero-message {left:var(--home-content-gutter);right:var(--home-content-gutter)}
.home-section .section-head {margin:0 0 var(--heading-gap)}
.home-section .section-head h2,
.new-product-section .new-feature-intro h2 {
  font-family:var(--font-headline);font-size:clamp(23px,1.9vw,30px);
  font-weight:400;line-height:1.25;letter-spacing:-.025em;
  color:var(--green);text-transform:none;margin:0;max-width:none;
}
.portfolio-selection .portfolio-action {margin-top:var(--heading-gap)}
.new-product-section.container {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--home-card-gap);align-items:center;background:transparent;
}
.new-product-section .new-product-feature {
  display:flex;flex-direction:column;align-items:stretch;
  justify-content:center;padding:0;gap:var(--heading-gap);background:transparent;
}
.new-product-section .new-product-panel {
  display:flex;flex-direction:column;aspect-ratio:auto;min-height:0;
  padding:0;gap:var(--heading-gap);background:#fbfcf9;
}
.new-product-section .new-feature-intro {padding:0;width:100%;margin:0}
.new-product-section .new-product-packshot {
  display:flex;align-items:flex-start;justify-content:flex-start;flex:0 0 auto;min-height:0;
  width:100%;max-width:none;padding:0;margin:0;aspect-ratio:auto;
  background:transparent;border:0;
}
.new-product-section .new-product-packshot > img {
  display:block;width:100%;height:auto;max-height:none;
  max-width:none;object-fit:contain;
}
.new-product-section .new-product-copy {padding:0;width:100%;margin-top:0;text-align:center}
.new-product-section .new-product-copy h3 {margin:0 0 8px}
.new-product-section .new-product-copy p {margin:0 auto}
.new-product-section .functional-product-link {
  display:block;width:fit-content;margin:12px auto 0;align-self:center;min-height:0;font-size:12px;line-height:1.6;
}
/* Individual links retain their compact six-pixel rhythm. */
footer .footer-four nav h3 {margin-bottom:24px}
/* Shared typographic levels copied from the existing Our History styles.
   No layout, content, control styling, image or animation changes here. */
#main:not(:has(.home-art-hero)) h1,
.search-panel #search-panel-title {
  font-family:var(--font-headline);font-size:var(--history-title-size);
  font-weight:400;line-height:1.2;letter-spacing:-.025em;color:var(--green);
}
#main:not(:has(.home-art-hero)) h2 {
  font-family:var(--font-headline);font-size:var(--history-section-size);
  font-weight:400;line-height:1.2;letter-spacing:-.025em;
  color:var(--green);text-transform:uppercase;
}
#main:not(:has(.home-art-hero)) :is(h3,h4,h5,h6) {
  font-family:var(--font-label);font-size:15px;font-weight:500;
  line-height:1.45;letter-spacing:0;color:var(--green);
}
#main:not(:has(.home-art-hero)) :is(p,li,dd,address),
#main:not(:has(.home-art-hero)) .copy {
  font-family:var(--font-body);font-size:var(--history-body-size);
  font-weight:400;line-height:var(--history-body-leading);color:var(--muted);
}
#main:not(:has(.home-art-hero)) :is(.lead,.utility-lead,.ce-deck),
#main:not(:has(.home-art-hero)) :is(.lead,.ce-intro) > p,
.search-panel #search-panel-help {
  font-family:var(--font-body);font-size:var(--history-intro-size);
  font-weight:400;line-height:var(--history-intro-leading);color:var(--muted);
}
#main:not(:has(.home-art-hero)) :is(p.eyebrow,p.ce-kicker,.eyebrow,.ce-kicker,.map-section-title,.gp-atlas-eyebrow) {
  font-family:var(--font-label);font-size:10px;font-weight:400;
  line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);
}
.search-panel #search-panel-title {text-align:left;margin:0 0 12px;max-width:none}
.search-panel #search-panel-help {text-align:left;margin:0 0 24px;max-width:none}
.search-panel .bnc-search-form {margin-left:0;margin-right:0;width:100%}
/* Rows touch exactly; the grid stretches each photograph to its paired copy. */
.corporate-editorial.ce-history .ce-row {
  margin-block:0;padding-block:0;row-gap:0;align-items:stretch;
}
.corporate-editorial.ce-history .ce-row .ce-image {
  align-self:stretch;aspect-ratio:auto;min-height:0;
}
.corporate-editorial.ce-history .ce-copy {min-height:calc(min(var(--content-max), 100vw - 2 * var(--page-gutter)) / 2)}
@media (min-width:1024px) and (max-width:1199px) {
  .site-chrome .header-inner {grid-template-columns:minmax(0,1fr) 164px minmax(0,1fr)}
  .site-chrome .desktop-nav.nav-left,.site-chrome .desktop-nav.nav-right {gap:16px}
}
@media (max-width:1023px) {
  .site-chrome .header-inner {grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr)}
}
@media (max-width:699px) {
  :root {--history-title-size:28px;--history-section-size:18px;--history-body-size:16px;--history-body-leading:1.5;--history-intro-size:14px;--history-intro-leading:1.5}
  #main:not(:has(.home-art-hero)) h2 {line-height:1.12}
  .corporate-editorial.ce-history .ce-row {grid-template-columns:repeat(2,minmax(0,1fr))}
  .corporate-editorial.ce-history .ce-row .ce-copy {grid-column:2;grid-row:1;min-height:0;padding:24px 12px}
  .corporate-editorial.ce-history .ce-row .ce-image {grid-column:1;grid-row:1;aspect-ratio:auto}
  .corporate-editorial.ce-history .ce-row.ce-reverse .ce-copy {grid-column:1}
  .corporate-editorial.ce-history .ce-row.ce-reverse .ce-image {grid-column:2}
}
@media (max-width:650px) {
  .site-chrome .header-inner {grid-template-columns:minmax(0,1fr) 160px minmax(0,1fr)}
  body:has(.home-art-hero) {--heading-gap:16px;--home-space:64px}
  .home-section .section-head h2,.new-product-section .new-feature-intro h2 {font-size:24px}
  .new-product-section.container {grid-template-columns:minmax(0,1fr)}
  .new-product-section .new-product-panel {aspect-ratio:auto;min-height:0;padding:0}
  .new-product-section .new-product-packshot > img {max-height:none;height:auto}
}

/* November 12: category lines share the existing Essentials hover animation.
   Only the two category groups change; their image hover rules are retained. */
:is(#treatment-goals,#product-categories) .link-label::after {
  transform:scaleX(0);background:#fff;
}
:is(#treatment-goals,#product-categories) a:is(:hover,:focus-visible) .link-label::after {
  transform:scaleX(1);
}

/* Exact desktop home alignment: move only the two navigation groups.
   Reuse the hero's existing inset; the header grid and logo stay untouched. */
@media (min-width:1024px) {
  body:has(.home-art-hero) .site-chrome .desktop-nav.nav-left {
    position:relative;
    left:calc(var(--home-content-gutter) - var(--edge-gutter));
  }
  body:has(.home-art-hero) .site-chrome .desktop-nav.nav-right {
    position:relative;
    right:calc(var(--home-content-gutter) - var(--edge-gutter));
  }
}
