/*
 * Insights (insights/): one design for every article and the index (surveyor, 4 Oct 2026),
 * on the shared marketing design system (marketing.css: tokens, header, footer, cards). This
 * file holds only the reading layout: a comfortable measure for long text, the header
 * photograph, the gallery and the close. Structure: insight_helpers.php and partials/insights/.
 */

/* Photographs: every one cropped with its own focus (set per photo in insight_helpers.php). */
.insight-photo { margin: 0; overflow: hidden; border-radius: var(--mk-radius); background: var(--mk-surface-tone); }
.insight-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--insight-focus, 50% 50%); }

/* Article: back link, category, title, subtitle, byline, header photo, sections, gallery, close.
   The text column is about 70 characters wide (640px); the photographs are wider. */
.article { max-width: calc(960px + 2 * var(--mk-gutter)); margin: 0 auto; padding: 40px var(--mk-gutter) clamp(56px, 7vw, 96px); }
.article__back { max-width: 640px; margin: 0 auto 36px; font-size: 15px; }
.article__back .mk-arrow-link { text-decoration: none; }
.article__back .mk-arrow-link:hover { text-decoration: underline; }
.article__header { max-width: 640px; margin: 0 auto; }
.article h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.article__subtitle { margin-top: 14px; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; font-weight: 400; color: var(--mk-muted); text-wrap: balance; }
.article__meta { margin-top: 20px; font-size: 14px; color: var(--mk-subtle); }
.article__photo { margin: 40px 0 0; aspect-ratio: 16 / 9; }
.article__body { max-width: 640px; margin: 48px auto 0; }
.article__body p { font-size: 18.5px; line-height: 1.75; color: var(--mk-text); text-wrap: pretty; }
.article__body p + p, .article__body ul + p, .article__body p + ul { margin-top: 20px; }
.article__body .lead { font-size: 21px; line-height: 1.6; color: var(--mk-ink); }
.article__body h2 { margin: 52px 0 16px; font-size: clamp(24px, 2.8vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--mk-ink); text-wrap: balance; }
.article__body ul { margin-left: 22px; display: grid; gap: 8px; font-size: 18.5px; line-height: 1.65; color: var(--mk-text); }
.article__body a { color: var(--mk-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article__body a:hover { text-decoration-thickness: 2px; }
.article__body strong { color: var(--mk-ink); }
.article__body .pull { margin-top: 32px; padding-left: 20px; border-left: 3px solid var(--mk-ink); font-size: 22px; line-height: 1.45; font-weight: 700; color: var(--mk-ink); }
.article__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.article__gallery .insight-photo { aspect-ratio: 4 / 3; }
.article__close { max-width: 640px; margin: 48px auto 0; padding: 32px 0 0; border-top: 1px solid var(--mk-line); text-align: center; }
.article__close p { font-size: 20px; font-weight: 700; color: var(--mk-ink); }
.article__close .tagline { margin-top: 6px; font-size: 17px; font-weight: 400; color: var(--mk-muted); }
.insight-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* After the article: more insights. */
.insight-related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.insight-related__head h2 { margin-bottom: 0; }
.insight-related .mk-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

/* Index. */
.insights-index__list { padding-bottom: clamp(64px, 8vw, 112px); }
.insights-index .mk-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 56px 40px; }

@media (max-width: 640px) {
    .article { padding-top: 28px; }
    .article__back { margin-bottom: 24px; }
    .article__body p, .article__body ul { font-size: 17.5px; }
    .article__body .lead { font-size: 19px; }
    .article__gallery { grid-template-columns: minmax(0, 1fr); }
    .insight-actions { flex-direction: column; align-items: stretch; }
}
@media print {
    .article__back, .article__close, .insight-related { display: none !important; }
}
