:is(.tenant-layout, .blog-layout, .admin-shell__content):has(> .chronoa-demo-notice) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.chronoa-demo-notice {
  flex: none;
  margin-block-start: auto;
  padding: 12px 20px;
  border-block-start: 1px solid #d8d1c5;
  background: #eee9df;
  color: #31483f;
  font-size: 13px;
  line-height: 1.8;
}

.admin-shell__content:has(> .chronoa-demo-notice) > .admin-shell__main {
  padding-block-end: 24px;
}

.blog-layout--chronoa-test > .blog-layout__main,
.blog-layout--chronoa-test .blog-layout__main > :is(.blog-feed, .blog-detail, .blog-auth) {
  min-height: 0;
}

.blog-layout--chronoa-test > .public-locale-footer {
  flex-basis: auto;
  padding-block-end: 8px;
}

.blog-layout--chronoa-test > .chronoa-demo-notice {
  box-sizing: border-box;
  width: min(100%, var(--blog-content-max-width));
  margin-inline: auto;
}

/* Reserve space for existing fixed controls after the in-flow banner. */
.blog-layout--chronoa-test:has(.blog-bottom-nav) {
  padding-block-end: calc(88px + env(safe-area-inset-bottom));
}

@media (max-width: 1023px) {
  .admin-shell:has(> .admin-mobile-blog-nav) > .admin-shell__content:has(> .chronoa-demo-notice) {
    padding-block-end: calc(88px + env(safe-area-inset-bottom));
  }

  .admin-shell--post-editor > .admin-shell__content:has(> .chronoa-demo-notice) {
    padding-block-end: calc(132px + env(safe-area-inset-bottom));
  }
}
