/* =============================================================================
   Alert.css — GitHub-style callout boxes produced by AlertProcessor.
   Markup: .wiki-alert.wiki-alert--{note|tip|important|warning|caution}
   ============================================================================= */

.wiki-alert {
    --wiki-alert-color: #3b82f6;
    margin: calc(1.25 * var(--behnke-basic)) 0;
    padding: calc(0.6 * var(--behnke-basic)) var(--behnke-basic);
    border-left: 4px solid var(--wiki-alert-color);
    border-radius: calc(0.4 * var(--behnke-basic));
    background: color-mix(in srgb, var(--wiki-alert-color) 8%, transparent);
}

.wiki-alert__title {
    display: flex;
    align-items: center;
    gap: 0.45em;
    margin: 0 0 calc(0.35 * var(--behnke-basic));
    font-weight: 600;
    font-size: var(--behnke-normal-font-size);
    color: var(--wiki-alert-color);
}

.wiki-alert__icon {
    flex-shrink: 0;
}

.wiki-alert__body > :first-child { margin-top: 0; }
.wiki-alert__body > :last-child  { margin-bottom: 0; }

/* Keep nested paragraph text in the normal body colour, not the accent. */
.wiki-alert__body {
    color: var(--behnke-black, #1f2937);
}

/* ── Per-type accents ──────────────────────────────────────────────────────── */

.wiki-alert--note      { --wiki-alert-color: #3b82f6; } /* blue   */
.wiki-alert--tip       { --wiki-alert-color: #16a34a; } /* green  */
.wiki-alert--important { --wiki-alert-color: #8b5cf6; } /* purple */
.wiki-alert--warning   { --wiki-alert-color: #d97706; } /* amber  */
.wiki-alert--caution   { --wiki-alert-color: #dc2626; } /* red    */

/* Slightly stronger tint in dark contrast mode if present. */
html[data-ax-contrast="dark"] .wiki-alert {
    background: color-mix(in srgb, var(--wiki-alert-color) 18%, transparent);
}
