/* Extend only to the Twenty Twelve article paper edges, including its gutters. */
@media screen {
  body.nostatrip-article-navigation #nostatrip-shared-header > #ntsh-site-nav {
    --ntsh-article-page-gutter: 1.714285714rem;
    isolation: isolate;
  }

  body.nostatrip-article-navigation #nostatrip-shared-header > #ntsh-site-nav::before {
    content: "";
    position: absolute;
    inset: -1px calc(-18px - var(--ntsh-article-page-gutter));
    z-index: -1;
    background: #fff;
    pointer-events: none;
  }
}

@media screen and (min-width: 960px) {
  body.nostatrip-article-navigation #nostatrip-shared-header > #ntsh-site-nav {
    --ntsh-article-page-gutter: 2.857142857rem;
  }
}

/* On phones the brand row is sticky and the menu is an independent dropdown. */
@media screen and (max-width: 740px), screen and (orientation: landscape) and (min-width: 480px) and (max-width: 1024px) and (max-height: 500px) {
  body.nostatrip-article-navigation #nostatrip-shared-header {
    isolation: isolate;
  }

  body.nostatrip-article-navigation #nostatrip-shared-header::before {
    content: "";
    position: absolute;
    inset: 0 0 -1px;
    z-index: -1;
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax);
    pointer-events: none;
  }

  body.nostatrip-article-navigation #nostatrip-shared-header > #ntsh-site-nav::before {
    content: none;
  }
}
