/* Classic post body (title, meta, content). Loaded after archive.css. The dv-* part styles the plain markup of
   the posts converted from the Divi builder (deploy/clean/convert.php): defaults here, per-module settings come
   from the post meta roc_post_css, attached to the page. */

@font-face { font-family: "Poppins"; font-weight: 400; src: url("../fonts/Poppins-400-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 500; src: url("../fonts/Poppins-500-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 600; src: url("../fonts/Poppins-600-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; src: url("../fonts/Poppins-400-italic-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: italic; src: url("../fonts/Poppins-600-italic-latin.woff2") format("woff2"); font-display: swap; }

.post-single__title {
    padding-bottom: 10px;
    font-family: var(--font-regular);
    font-size: 33px;
    font-weight: 500;
    line-height: 1.3;
    color: #000;
}

.post-single {
    margin-bottom: 27px;
    padding-bottom: 25px;
}

.post-single__thumb {
    display: block;
    width: 100%;
    height: auto;
}

.post-single__body {
    overflow-wrap: break-word;
}

.post-single__body img {
    max-width: 100%;
    height: auto;
}

.post-single__body a {
    color: var(--color-rust);
}

/* Plain posts: body text of the site. */
.post-single__body p {
    padding-bottom: 1em;
}

.post-single__body p:last-of-type {
    padding-bottom: 0;
}

/* Posts converted from the Divi builder (their whole body is dv-section elements). */
.dv-section {
    padding: 54px 0;
    font-family: "Poppins", var(--font-fallback);
    color: var(--color-navy);
}

.dv-row {
    padding: 33px 0;
}

@media (max-width: 1500px) {
    .dv-row { padding: 2% 0; }
}

@media (max-width: 980px) {
    .dv-row { padding: 30px 0; }
}

/* Live scales the rows of builder content to 80% between 1025 and 1500px wide (site-wide rule, kept so the
   text sizes match live in that band). */
@media (min-width: 1025px) and (max-width: 1500px) {
    .dv-row {
        zoom: 0.8;
    }
}

.dv-column > :last-child {
    margin-bottom: 0;
}

.dv-text {
    margin-bottom: 2.75%;
    font-family: "Poppins", var(--font-fallback);
    color: var(--color-navy);
}

.dv-text ul {
    padding: 0 0 23px 16px;
    list-style: disc;
    line-height: 26px;
}

.dv-text b {
    font-weight: 600;
}

.dv-text strong {
    font-family: var(--font-bold);
    font-weight: 900;
}

/* Divi heading scale: 33, 28, 24, 20, 18, 16px, black, medium weight. */
.post-single__body :is(h1, h2, h3, h4, h5, h6) {
    padding-bottom: 10px;
    font-family: var(--font-regular);
    font-weight: 500;
    line-height: 1.3;
    color: #000;
}

.post-single__body h1 { font-size: 33px; }

.post-single__body h2 { font-size: 28px; }

.post-single__body h3 { font-size: 24px; }

.post-single__body h4 { font-size: 20px; }

.post-single__body h5 { font-size: 18px; }

.post-single__body h6 { font-size: 16px; }

.dv-image {
    margin-bottom: 2.75%;
    line-height: 0;
}

.dv-image img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.dv-image--center { text-align: center; }

.dv-image--right { text-align: right; }

.dv-image--full img { width: 100%; }

.dv-divider--space { height: 23px; }

hr.dv-divider {
    border: 0;
    height: 0;
    margin: 0;
}

.dv-blurb {
    margin-bottom: 30px;
}

@media (max-width: 980px) {
    .dv-text,
    .dv-image { margin-bottom: 30px; }
}

/* Single post pages show titles and meta in black (the archives use the indigo). The meta line is the date alone
   (no category links, DIGITAL-328), in line with the title instead of the archive rows' 10% indent. */
.posts-page--single .post-row__meta {
    margin-inline: 0;
    padding-inline: 0;
    color: #000;
}

/* No sidebar (DIGITAL-328): the main column keeps its 74% width of the 1140px row, centred, without the
   gutter that kept it off the sidebar. Stacked screens (980px and below) use the full row as before. */
.posts-page--single .posts-page__row {
    justify-content: center;
}

.posts-page--single .posts-page__main {
    padding-right: 0;
}
