/**
 * Article highlight: a box that breaks the body text. Fact box, summary,
 * tip, notice. Colors come from the palette wrapper on the same container.
 *
 * globalClass: article-highlight   (+ wrapper-alternate-color | wrapper-extra-color)
 *
 * Variants:
 *   (none)                     padded box in the palette colors
 *   article-highlight--summary "Lyhyesti": the key points at the start of an
 *                              article; small label + list
 *   article-highlight--tip     a slim box with an accent bar on the left
 *   article-highlight--wide    breaks out of the column (alignwide)
 *
 * Structure:
 *   .article-highlight.gb-container.wrapper-extra-color [.article-highlight--summary]
 *     (p.article-highlight-label) + any blocks: heading, paragraph, list, button
 *
 * Tuning: --article-highlight-padding (32px, 40px from 768px),
 *   --article-highlight-radius (12px)
 *
 * Chain animations: the box animates as one element; leave it off inside
 * articles unless the writer wants it.
 */

:root {
    --article-highlight-padding: 32px;
    --article-highlight-radius: 12px;
}

.article-highlight {
    margin: 2em 0;
    padding: var(--article-highlight-padding);
    border-radius: var(--article-highlight-radius);
    font-size: 0.95em;
}

.article-highlight > :first-child {
    margin-top: 0;
}

.article-highlight > :last-child {
    margin-bottom: 0;
}

.article-highlight h2,
.article-highlight h3,
.article-highlight h4 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.25rem;
}

.article-highlight-label {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-clr);
}

.article-highlight ul,
.article-highlight ol {
    margin-bottom: 0;
}

.article-highlight li + li {
    margin-top: 0.4em;
}

/* Summary: key points at the start */
.article-highlight--summary {
    margin-top: 0;
}

.article-highlight--summary ul {
    margin-left: 1.1em;
}

/* Tip: slim with an accent bar */
.article-highlight--tip {
    padding: 20px 24px;
    border-left: 4px solid var(--accent-clr);
    border-radius: 0 var(--article-highlight-radius) var(--article-highlight-radius) 0;
}

@media only screen and (min-width: 768px) {
    :root {
        --article-highlight-padding: 40px;
    }
}
