/* Keep the primary header identical to the homepage when used with the
   legacy page shell's older global styles. */
.header.homepage-header {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    z-index: auto;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header.homepage-header .container {
    width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

.header.homepage-header .navbar-brand img.logo {
    width: auto;
    height: 35px;
}

/* Bootstrap's button values used by the homepage. These explicit values
   prevent the legacy page styles from changing the button height or padding. */
.header.homepage-header .d-flex > .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: "Creato Display", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    border-width: 1px;
    border-radius: 0.375rem;
}

/* The legacy shell used this offset for its fixed header. The homepage
   header participates in normal document flow, so that offset is no longer
   needed. */
.mainCon .topSpace {
    margin-top: 0 !important;
}

@media (min-width: 576px) {
    .header.homepage-header .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .header.homepage-header .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .header.homepage-header .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    /* Compensate for the 15px inner gutter on both sides of the header. */
    .header.homepage-header .container { max-width: 1275px; }
}

@media (min-width: 1400px) {
    .header.homepage-header .container { max-width: 1350px; }
}
