/* Inner-page proportions follow the approved Capabilities page.
   Homepage composition and Capabilities itself keep their existing styles. */
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) {
  --page-gutter:var(--atlas-inner-gutter);
  --page-spacing:var(--atlas-inner-spacing);
  --page-inset:max(var(--page-gutter),calc(50% - 35rem));
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(h1,h2,h3) {overflow-wrap:break-word;min-width:0}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) h1 {
  font-size:var(--atlas-inner-title)!important;line-height:var(--atlas-inner-title-leading)!important;
  max-width:100%;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) h2 {
  font-size:var(--atlas-inner-section-title)!important;line-height:1.25!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) h3 {
  font-size:var(--atlas-inner-card-title)!important;line-height:1.35!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) .eyebrow {
  font-size:.75rem!important;line-height:1.5!important;letter-spacing:.08em!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) > .section-pad,
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page.section-pad {
  padding-inline:var(--page-inset)!important;
  padding-block:var(--page-spacing)!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.service-hero,.detail-visual-hero,.application-detail-hero,.vehicle-hero) {
  min-height:0!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.application-detail-hero .hero-inner,.vehicle-hero > div) {
  box-sizing:border-box;width:100%;max-width:none;margin-inline:0;
  padding:var(--page-spacing) var(--page-inset)!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) .breadcrumbs {
  align-items:center;
  margin:0 0 2rem!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) .breadcrumbs a {
  display:inline-flex;align-items:center;min-height:2.75rem;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.service-hero,.application-detail-hero) .service-lead {
  max-width:58ch;margin:0 0 2rem!important;font-size:1.125rem!important;
}
/* Editorial galleries use the same content edges as their surrounding sections. */
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) > .elevator-photo-section {
  padding:var(--page-spacing) var(--page-inset)!important;
}
/* Match the reference hero's spacing and call-to-action typography. */
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) > :is(.service-hero,.detail-visual-hero) {
  padding-block:var(--atlas-inner-hero-spacing)!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.application-detail-hero .hero-inner,.vehicle-hero > div) {
  padding-block:var(--atlas-inner-hero-spacing)!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) .hero-actions {
  display:flex;align-items:center;flex-wrap:wrap;gap:1rem 2rem;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) .hero-actions .text-link {
  display:inline-flex;align-items:center;min-height:2.75rem;
  font-size:1rem!important;font-weight:400!important;
  color:inherit;text-decoration:underline;text-underline-offset:.25em;
}
@media(max-width:37.5rem) {
  html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) {
    --page-gutter:1.125rem;--page-spacing:2.5rem;
  }
  html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) .hero-actions {
    align-items:flex-start;flex-direction:column;gap:.75rem;
  }
}

/* Keep hero breadcrumbs legible against photography in every locale. */
html#atlas-site body:not(.home-page) main :is(.service-hero,.application-detail-hero,.vehicle-hero) .breadcrumbs {
  align-items:center;
}
html#atlas-site body:not(.home-page) main :is(.service-hero,.application-detail-hero,.vehicle-hero) .breadcrumbs [aria-current="page"] {
  color:var(--atlas-off-white,#F4F3EE)!important;
}
html#atlas-site body:not(.home-page) main :is(.service-hero,.application-detail-hero,.vehicle-hero) .breadcrumbs [aria-hidden="true"] {
  color:var(--atlas-bronze-light,#C6A16D)!important;
}

/* Complete pages share one content boundary, including lower sections that
   never used the legacy section-pad class. Backgrounds remain full width. */
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) > :is(section,nav) {
  box-sizing:border-box;
  width:100%;max-width:100%;min-width:0;margin-inline:0;
  padding-left:max(var(--page-gutter),calc(50% - 35rem))!important;
  padding-right:max(var(--page-gutter),calc(50% - 35rem))!important;
  padding-block:var(--page-spacing)!important;
}
/* These photo heroes have their own content wrapper; apply the inset once. */
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) > :is(.application-detail-hero,.vehicle-hero) {
  padding:0!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) > :is(.service-hero,.detail-visual-hero) {
  padding-block:var(--atlas-inner-hero-spacing)!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :where(section,article,div,figure,form,nav,fieldset) {
  min-width:0;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :where(h1,h2,h3,h4,p,li,dt,dd,a,strong,span) {
  overflow-wrap:anywhere;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(h1,h2,h3,h4,.library-card-title,.hero-service-title) {
  font-family:var(--display)!important;font-weight:600!important;
  letter-spacing:-.025em!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(h3,.library-card-title,.hero-service-title) {
  font-size:var(--atlas-inner-card-title)!important;line-height:1.35!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) p:not(.eyebrow):not(.service-lead) {
  font-family:var(--sans)!important;font-size:1rem!important;line-height:1.65!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(img,video,iframe,svg) {max-width:100%}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(input,select,textarea,button,.button) {min-width:0;max-width:100%}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.button,button) {white-space:normal;overflow-wrap:anywhere}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(pre,div:has(>table)) {max-width:100%;overflow-x:auto}
/* Replace viewport-wide column gaps with the reference page's content rhythm. */
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.application-story,.application-plan,.service-overview,.project-checklist,.contact,.library-sample-review .sample-review-body) {
  gap:clamp(2rem,4vw,3rem)!important;
}
@media(max-width:60rem) {
  html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.application-story,.application-plan,.service-overview,.project-checklist,.contact,.library-sample-review .sample-review-body,.service-directory-grid) {
    grid-template-columns:minmax(0,1fr)!important;gap:1.75rem!important;
  }
  html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.application-scope-grid,.scope-grid,.finish-directions .scope-grid) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:40rem) {
  html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.application-scope-grid,.scope-grid,.finish-directions .scope-grid,.related-services nav) {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) > nav {
  padding-block:.75rem!important;
}
html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page.search-page {
  width:100%;max-width:calc(70rem + var(--page-gutter) + var(--page-gutter));
  margin-inline:auto;padding-inline:var(--page-gutter)!important;
}
@media(max-width:60rem) {
  html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.workspace-grid,.studio-workbench) {
    grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;
  }
  html#atlas-site body:not(.home-page):not(.atlas-draft-page) main.atlas-unified-page:not(.capabilities-content) :is(.workspace-grid,.studio-workbench) > * {
    grid-area:auto!important;
  }
}
