/* Shared page frame for every imported website page. */
html {
  min-height: 100%;
  background: #d8011e;
}

body {
  width: calc(100% - 64px);
  max-width: 1280px;
  min-height: calc(100vh - 64px);
  margin: 32px auto;
  background: #fff;
  box-shadow:
    0 24px 70px rgba(62, 0, 9, 0.36),
    0 4px 18px rgba(62, 0, 9, 0.2);
  container: site / inline-size;
}

/* Navigation responds to the page width, rather than the outer canvas. */
@container site (min-width: 1241px) {
  .hdr-row {
    gap: 24px !important;
    flex-wrap: nowrap !important;
  }

  .navlinks {
    gap: 20px !important;
    font-size: 17px !important;
  }
}

@container site (max-width: 1240px) {
  .navlinks {
    display: none !important;
  }

  .mnav {
    display: block !important;
  }

  .hdr-row {
    justify-content: space-between;
    gap: 16px !important;
  }
}

.ck {
  left: max(56px, calc((100vw - 1280px) / 2 + 24px)) !important;
}

/* Frosted glass lets the hero color show through the floating stats bar. */
.stats {
  position: relative;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.2)
  ) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 0;
  box-shadow: 0 18px 44px rgba(90, 0, 10, 0.12) !important;
}

.stats > div {
  border-left: 0 !important;
}

.stats,
.stats > div > div {
  color: #fff !important;
}

@media (max-width: 700px) {
  body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    box-shadow: none;
  }

  .ck {
    left: 12px !important;
  }
}
