/* The page of a whitepaper: its cover next to its title & teaser (stacked on
   mobile). */

section.whitepaper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--section-gap);
    align-items: center;
}

section.whitepaper .cover {
    width: 100%;
    max-width: 24rem;
    justify-self: center;
}

section.whitepaper .date {
    color: var(--color-content-2);
    font-size: var(--font-size-small);
}

section.whitepaper .teaser {
    max-width: var(--font-max-width);
}

section.whitepaper .note {
    color: var(--color-content-2);
    font-size: var(--font-size-small);
}

/* Spaced like the whitepaper form. */
section.whitepaper .whitepaper-download {
    margin: 2rem 0;
}

section.whitepaper .whitepaper-download button {
    padding: 0.75rem 1.5rem;
    border: 0;
    background: var(--color-brand-gradient);
    color: var(--color-content-branded);
    font: inherit;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

@media screen and (width >= 768px) {
    section.whitepaper:has(.cover) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}
