.page-submissions {
  position: relative;

}

.page-submissions::after {
  content: "";
  display: table;
  clear: both;
}

/* Make the content column full width ONLY on static pages */
.page-static .col-md-8 {
  width: 100%;
  max-width: 1200px; /* optional cap */
}

/* Stop Bootstrap centring it */
.page-static .row.justify-content-md-center {
  justify-content: flex-start;
}

.page-submissions .alert-primary a,
.page-submissions .alert-primary a:visited,
.page-submissions .alert-primary a:hover,
.page-submissions .alert-primary a:active,
.page-submissions .alert-primary a:focus {
  color: #ffffff;
  text-decoration: underline; /* optional but recommended for accessibility */
}

.page-submissions h1,
.page-submissions h2,
.page-submissions h3,
.page-submissions h4 {
  color: #222;
}

.page-submissions h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e5e5e5;
}

.page-submissions h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700; 
}

.page-submissions h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 600; 
}

.page-submissions p,
.page-submissions li {
  line-height: 1.6;
}

.page-submissions a {
  color: #1e6bb8;
  text-decoration: none;
}

.page-submissions a:hover,
.page-submissions a:focus {
  text-decoration: underline;
}

.page-nav {
  background: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 3px;
  padding: 1rem 1rem 0.8rem;
  margin: 0 0 2rem 0;
}

.page-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #333;
}

.page-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-nav li {
  margin: 0 0 0.55rem 0;
}

.page-nav li:last-child {
  margin-bottom: 0;
}

.return-top {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.return-top a {
  color: #5a5a5a;
}

.submission-download {
  margin: 1rem 0 1.5rem;
  font-weight: 600;
}

.flowchart {
  margin: 1.5rem 0;
  text-align: center;
}

.flowchart img {
  max-width: 100%;
  height: auto;
  border: 1px solid #dddddd;
  background: #ffffff;
}

.page-tip {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #cfcfcf;
  background: #f8f8f8;
}

.page-submissions h2,
.page-submissions h3,
.page-submissions h4 {
  scroll-margin-top: 110px;
}

@media (min-width: 980px) {
  .page-nav {
    float: left;
    width: 240px;
    position: sticky;
    top: 1.5rem;
    margin-right: 2rem;
  }

  .page-submissions-content {
    margin-left: 280px;
  }
}

@media (max-width: 979px) {
  .page-nav {
    position: static;
    float: none;
    width: 100%;
  }

  .page-submissions-content {
    margin-left: 0;
  }
}