/* Match Gallery's scenic blue veil and responsive outer frame, not its long text measure. */
body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
.page:is([data-route=about],[data-route=research],[data-route=books],[data-route=practice]){
  --scenic-inset:54px;
  width:min(1280px,calc(100% - 112px))!important;
  max-width:none!important;
  padding-top:0!important;
  padding-inline:var(--scenic-inset)!important;
}
body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
.page:is([data-route=about],[data-route=research],[data-route=books],[data-route=practice])
:is(.page-header.has-band-art){
  box-sizing:border-box;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:calc(100% + 2 * var(--scenic-inset));
  max-width:none;
  min-height:176px;
  margin:0 calc(-1 * var(--scenic-inset)) 32px;
  padding:32px var(--scenic-inset)!important;
  border-radius:11px 11px 0 0;
  background:#1443ac;
  background:linear-gradient(rgba(20,67,172,.78),rgba(20,67,172,.78)),var(--reading-scene,none) center/cover no-repeat;
  color:#fff;
  text-shadow:0 1px 2px #0004;
  align-content:center;
}
body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
.page:is([data-route=about],[data-route=research],[data-route=books],[data-route=practice])
.page-header.has-band-art > :not(band-art){position:relative;z-index:1}
body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
.page:is([data-route=about],[data-route=research],[data-route=books],[data-route=practice])
.page-header.has-band-art :is(h1,.eyebrow,a){color:#fff}
body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
.page[data-route=research] > .research-hero{margin-bottom:0}
body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
.page:is([data-route=about],[data-route=research],[data-route=books],[data-route=practice])
:is(.page-header.has-band-art,.research-hero)::after{content:none}
@media(max-width:900px){
  body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
  .page:is([data-route=about],[data-route=research],[data-route=books],[data-route=practice]){
    --scenic-inset:clamp(16px,6vw,24px);
    width:100%!important;
    margin-top:0!important;
    border:0!important;
    border-radius:0;
  }
  body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
  .page:is([data-route=about],[data-route=research],[data-route=books],[data-route=practice])
  .page-header.has-band-art{
    padding-block:24px!important;
    margin-bottom:26px;
    border-radius:0;
  }
}
@media(max-width:680px){
  body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
  .page.about-journey>.about-heading.has-band-art{flex-wrap:wrap!important;align-content:center;gap:12px}
  body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
  .page.about-journey>.about-heading.has-band-art .about-heading-links{
    position:relative;inset:auto;max-width:100%;transform:none;flex-wrap:wrap;
  }
  body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
  .page .page-header.has-band-art > band-art > .ba-svg{
    width:58%;height:96px;top:auto;right:0;bottom:0;
    transform:none;opacity:.48;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 55%);
    mask-image:linear-gradient(90deg,transparent,#000 55%);
  }
}

/* Use the reading panel, not viewport units, for the lower chapter bands.
   The viewport may include a scrollbar that the content box does not. */
@media(max-width:900px){
  body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
  .page:is([data-route=research],[data-route=practice])
  > :is(.research-teaching,.practice-future-sections){
    width:calc(100% + 2 * var(--scenic-inset))!important;
    max-width:none!important;
    margin-inline:calc(-1 * var(--scenic-inset))!important;
  }
}

/* Paint the desktop scenic Gallery frame above the blue band and the photos.
   The inset overlay has no effect on the existing photo grid width. */
@media(min-width:901px){
  body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
  .gallery-route #gallery{position:relative;isolation:isolate}
  body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc])
  .gallery-route #gallery::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:5;
    border:1px solid #ffffffe0;
    border-radius:inherit;
    pointer-events:none;
  }
}
