/* LogicalHope.com recreation: Divi full-width white page. Header (logo left),
   content in Divi's 80% / 1080px container, dark footer bar at the bottom. */

.lh-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
    color: #666;
}

/* --- Header --- */
.lh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    padding: 0 32px 0 30px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

.lh-logo-link {
    display: inline-block;
    line-height: 0;
}

/* Divi sizes the logo to 54% of the 66px header. */
.lh-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 60vw;
}

/* --- Content --- */
.lh-main {
    flex: 1 0 auto;
}

.lh-content {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 58px 0 54px;
}

.lh-title {
    margin: 0 0 10px;
    padding-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #333;
}

.lh-title strong {
    font-weight: 700;
}

/* The body comes from WordPress as markup, so it is styled with ::deep. */
.lh-body p {
    margin: 0;
    padding-bottom: 1em;
}

.lh-body a {
    color: #2ea3f2;
    text-decoration: none;
}

.lh-body a:hover {
    text-decoration: underline;
}

/* --- Footer bar --- */
.lh-footer {
    background: #171717;
    color: #666;
    padding: 15px 30px 5px;
    min-height: 44px;
    font-size: 14px;
}

@media (max-width: 980px) {
    .lh-content {
        width: 90%;
        padding-top: 40px;
    }
}

/* ---- Headings in posts ---- */
.lh-body h2 {
    margin: 1.5em 0 0.6em;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #333;
}

.lh-body h3 {
    margin: 1.3em 0 0.5em;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.lh-body :is(h4, h5, h6) {
    margin: 1em 0 0.4em;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

/* ---- Header and footer line up with the content column (80% / 1080px, 90% under 980px) ---- */
.lh-header,
.lh-footer {
    padding-left: max(10%, calc((100% - 1080px) / 2));
    padding-right: max(10%, calc((100% - 1080px) / 2));
}

@media (max-width: 980px) {
    .lh-header,
    .lh-footer {
        padding-left: 5%;
        padding-right: 5%;
    }
}
