/* ==========================================================================
   News article (single.php) - page-specific layout
   Measured on reference/pages/Nieuwsbericht.png (1920 px).
   Copied from the prototype; every selector starts from a template class.
   The editor content sits in .article__content, below .article__header.
   ========================================================================== */

/* The article opens directly under the site header, as in the design. */
.article {
    padding-top: var(--section-y);
    padding-bottom: 0;
}

.article .article__date {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: var(--weight-light);
    color: var(--color-blue-text);
}

.article .article__header h1 {
    margin-bottom: 0;
}

.article .article__header + * {
    margin-top: var(--space-5);
}

/* Buttons of the article (a brochure download), below the copy. */
.article .article__buttons {
    margin-top: var(--space-6);
}

/* The column is narrower than the measure: keep the copy on the left. */
.article .article__content {
    margin-inline: 0;
}

/* One blank line between copy blocks, as in the design. */
.article .article__content > * + * {
    margin-top: var(--space-5);
}

.article .article__content > p + p {
    margin-top: 1.65em;
}

/* A heading in the copy has the run-in look of the design (bold, body
   size, directly on its paragraph). */
.article .article__content :is(h2, h3, h4) {
    font-size: inherit;
    font-weight: var(--weight-bold);
    line-height: var(--leading-body);
    margin-bottom: 0;
    text-wrap: wrap;
}

.article .article__content > :is(h2, h3, h4) + p {
    margin-top: 0;
}

.article .article__content img {
    height: auto;
}

.article .article__photo {
    aspect-ratio: 1208 / 1054;
}

/* the aside holds the 604 px photo of the render (x 1054 to 1657 at
   1920), on the right of the 622 px split column */
@media (min-width: 992px) {
    .article .article__aside {
        width: 100%;
        max-width: 37.75rem;
        justify-self: end;
    }
}

.article .article__cta {
    margin-top: var(--space-7);
}

.article .article__cta .btn-row {
    margin-top: var(--space-5);
}

@media (min-width: 992px) {
    /* Text under the photo is inset from the photo edge in the design. */
    .article .article__cta {
        padding-inline-start: clamp(1rem, -1rem + 3.1vw, 3.25rem);
    }
}

/* Related news: three cards, each fills its list item. */
.article-related .news-grid > li {
    display: flex;
}

.article-related .news-grid > li > .card {
    flex: 1;
}

.article-related .section-intro + * {
    margin-top: var(--space-7);
}
