body.homepage {
  --page-gutter: 24px;
}

/* Hide the left-hand table of contents */
.bs-sidebar,
.navbar-expand-md.bs-sidebar,
.container .row > .col-md-3 {
  display: none !important;
}

/* Header bar styling (Bootstrap 5 nav) */
.navbar.fixed-top {
  background-color: rgb(34, 59, 128) !important;
  border-color: rgb(34, 59, 128) !important;
  background-image: none !important;
  --bs-navbar-color: #fff;
  --bs-navbar-hover-color: #fff;
  --bs-navbar-brand-color: #fff;
  --bs-navbar-brand-hover-color: #fff;
}

.navbar.fixed-top .container,
.navbar.fixed-top .container-fluid {
  max-width: none;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.navbar.fixed-top .navbar-brand,
.navbar.fixed-top .nav-link {
  color: #fff !important;
}

/* Hide the search box in the top bar */
#navbar-collapse .nav-link[data-bs-target="#mkdocs_search_modal"],
#navbar-collapse .fa-search,
#navbar-collapse .nav.navbar-nav.ms-md-auto {
  display: none !important;
}

/* Let the main column consume the full row width */
.homepage > .container > .row {
  margin-left: 0;
  margin-right: 0;
}

.container .row > .col-md-9 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 12px var(--page-gutter) 0;
}

/* Remove the default width cap on the page body container */
.homepage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.homepage > .container {
  flex: 1 0 auto;
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.generator-page {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.generator-page__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #51607b;
}

.generator-page__frame {
  width: 100%;
  min-height: 960px;
  border: 1px solid #d6deeb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 38, 94, 0.08);
}

footer.col-md-12 {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  margin: 0;
  padding: 0 24px;
  background: #fff;
  border-top: 1px solid #e4e8f0;
}

footer.col-md-12 hr {
  display: none;
}

footer.col-md-12 p {
  margin: 0;
  color: #69758b;
}

@media (max-width: 767px) {
  body.homepage {
    --page-gutter: 16px;
  }

  .container .row > .col-md-9 {
    padding: 8px var(--page-gutter) 0;
  }

  .generator-page__lead {
    font-size: 14px;
  }

  .generator-page__frame {
    min-height: 820px;
    border-radius: 10px;
  }

  footer.col-md-12 {
    height: 64px;
    padding: 0 16px;
  }
}
