/*
 * Sites-only complete banner boundary lock.
 * At the compact desktop range the approved homepage naturally expands beyond
 * the viewport-derived minimum. Give every public page the same full banner
 * length, centred composition and media boundary.
 */
/* Wide desktop uses the approved homepage's fixed 996px banner boundary.
 * Do not derive this from viewport height: tall browser windows otherwise make
 * some topic pages visibly longer than the homepage. */
@media (min-width:1500px){
  html body[class][class][class][class][class][class][class] main>section:first-child{
    height:996px!important;
    min-height:996px!important;
    max-height:996px!important;
    padding:48px 44px!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  html body[class][class][class][class][class][class][class] main>section:first-child>.wrap,
  html body[class][class][class][class][class][class][class] main>section:first-child>div.wrap,
  html body[class][class][class][class][class][class][class] main>section:first-child :is(
    .hero-grid,.industry-hero-grid,.database-hero-grid,.pricing-hero-grid,
    .resources-hero-grid,.about-hero-grid,.offset-led,.contact-hero-grid,
    .access-layout
  ){
    height:900px!important;
    min-height:900px!important;
    max-height:900px!important;
  }
}

/* Standard desktop uses the approved 808px boundary. */
@media (min-width:1301px) and (max-width:1499px){
  html body[class][class][class][class][class][class][class] main>section:first-child{
    height:808px!important;
    min-height:808px!important;
    max-height:808px!important;
    padding:46px 44px!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  html body[class][class][class][class][class][class][class] main>section:first-child>.wrap,
  html body[class][class][class][class][class][class][class] main>section:first-child>div.wrap,
  html body[class][class][class][class][class][class][class] main>section:first-child :is(
    .hero-grid,.industry-hero-grid,.database-hero-grid,.pricing-hero-grid,
    .resources-hero-grid,.about-hero-grid,.offset-led,.contact-hero-grid,
    .access-layout
  ){
    height:716px!important;
    min-height:716px!important;
    max-height:716px!important;
  }
}

/* About retained a 286px page-local action group while the approved desktop
 * header allocates 250px. Lock the group at every desktop width. */
@media (min-width:981px){
  html body.about-topic-page header.canonical-header .nav-actions{
    width:250px!important;
    min-width:250px!important;
    max-width:250px!important;
    flex:0 0 250px!important;
  }
}

@media (min-width:981px) and (max-width:1499px){
  html body.about-topic-page header.site-nav.canonical-header{
    display:flex!important;
    gap:22px!important;
  }

  html body.about-topic-page header.canonical-header .nav-links{
    flex:1 1 auto!important;
    width:auto!important;
  }

}

@media (min-width:981px) and (max-width:1300px){
  html body[class][class][class][class][class][class][class] main>section:first-child{
    height:850px!important;
    min-height:850px!important;
    max-height:850px!important;
    padding:46px 44px!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  html body[class][class][class][class][class][class][class] main>section:first-child>.wrap,
  html body[class][class][class][class][class][class][class] main>section:first-child>div.wrap{
    width:100%!important;
    max-width:1544px!important;
    height:758px!important;
    min-height:758px!important;
    max-height:758px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    transform:none!important;
  }

  html body[class][class][class][class][class][class][class] main>section:first-child :is(
    .hero-grid,.industry-hero-grid,.database-hero-grid,.pricing-hero-grid,
    .resources-hero-grid,.about-hero-grid,.offset-led,.contact-hero-grid,
    .access-layout
  ){
    height:758px!important;
    min-height:758px!important;
    max-height:758px!important;
    align-items:center!important;
  }

  html body[class][class][class][class][class][class][class] main>section:first-child :is(
    .promo-hero-panel,.saas-hero-proof,.industry-hero-card,.db-media.hero-db,
    .calc-media-card,.offset-media,.pricing-visual,.resources-visual-card,
    .about-visual-card,.contact-form,.access-card.login-card
  ){
    align-self:center!important;
    box-sizing:border-box!important;
  }
}

/* The header surface spans the browser while its contents remain on the
 * approved centred 1544px grid. */
@media (min-width:1500px){
  html body header.site-nav.canonical-header{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:max(44px,calc((100vw - 1544px)/2 + 44px))!important;
    padding-right:max(44px,calc((100vw - 1544px)/2 + 44px))!important;
    background:#fff!important;
  }
}
