:root {
  --moscow-pool-notice-height: 3.125rem;
}

.moscow-pool-access {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  box-sizing: border-box;
  place-items: center;
  block-size: var(--moscow-pool-notice-height);
  padding: 0.25rem 0.875rem;
  background: #efd28a;
  color: #23190d;
  text-align: center;
}

.moscow-pool-access p {
  margin: 0;
  color: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}

.moscow-pool-access strong {
  display: inline-block;
  color: inherit;
  font-weight: 800;
}

.moscow-pool-access ~ #root header.fixed.top-0 {
  top: var(--moscow-pool-notice-height);
}

@media (max-width: 29rem) {
  :root {
    --moscow-pool-notice-height: 3.75rem;
  }
}

/* Keep the mobile menu and its backdrop below the offset site header. */
.moscow-pool-access ~ #root .fixed.inset-0.top-16,
.moscow-pool-access ~ #root .fixed.right-0.top-16 {
  top: calc(4rem + var(--moscow-pool-notice-height));
}

.moscow-pool-access ~ #root .fixed.right-0.top-16 {
  bottom: 0;
  height: auto;
}

@media (min-width: 768px) {
  .moscow-pool-access ~ #root .fixed.inset-0.top-16,
  .moscow-pool-access ~ #root .fixed.right-0.top-16 {
    top: calc(5rem + var(--moscow-pool-notice-height));
  }
}
