/*
 * Note
 *
 * One component for supplementary information (docs/ui-design-consistency-plan.md,
 * 3.3): section intros, the calculation hint, the price scale explanation and the
 * result notes. Info icon + light Jena blue background, flat, no side bar.
 * Status messages (errors, success) are Bootstrap alerts, not notes.
 *
 * <div class="jena-note">
 *     <span class="jena-note-icon">{% include '@App/_partials/_icon.html.twig' with {name: 'info-circle'} %}</span>
 *     <div class="jena-note-body"><p>…</p></div>
 * </div>
 *
 * .jena-note-sm  smaller text (explanations next to data, e.g. the price scale)
 *
 * Field help under a single input is not a note: it is plain small text
 * (.jena-help in forms.css) so a long form does not fill up with boxes.
 */

.jena-note {
    display: flex;
    gap: var(--jena-space-sm);
    align-items: flex-start;
    padding: var(--jena-space-sm) var(--jena-space-md);
    color: var(--jena-color-text-primary-default);
    text-align: start;
    background-color: var(--jena-color-bg-note);
    border-radius: var(--jena-border-radius-sm);
}

.jena-note-sm {
    font-size: var(--jena-font-size-sm);
}

/* Icon sized to the text and aligned with its first line */
.jena-note-icon {
    flex: 0 0 auto;
    font-size: 1.125em;
    line-height: var(--jena-line-height-base);
    color: var(--jena-color-text-brand-link);
}

.jena-note-body {
    min-width: 0;
}

.jena-note-body > p,
.jena-note-body > :last-child {
    font-size: inherit;
}

.jena-note-body > :last-child {
    margin-bottom: 0;
}
