/* features/static/features/css/front/notes.css */
/* Notes use the shared card from features-common.css (.fx-card …).
   Only note-specific details live here.
   Removed: the global ".btn-primary { … !important }" that recoloured every
   primary button on the page (restaurant, booking) whenever notes were enabled. */

.note-description {
    overflow-wrap: anywhere;
}

.note-description p {
    margin-bottom: 0.6rem;
}

.note-hero img {
    transition: transform .4s ease;
}

.note-card:hover .note-hero img {
    transform: scale(1.02);
}

/* "Color theme" chosen in the dashboard: the note's accent (start border, thumbnail, chips, open chevron).
   Fixed shades, not Bootstrap's: the card's own theme overrides --primary-color, and "Blue" must stay blue.
   Shades are dark enough for the coloured chip text to stay readable on its pale background. */
.note-color--primary   { --fx-accent: #0d6efd; }
.note-color--success   { --fx-accent: #198754; }
.note-color--warning   { --fx-accent: #a16207; }
.note-color--danger    { --fx-accent: #dc3545; }
.note-color--info      { --fx-accent: #0e7490; }
.note-color--secondary { --fx-accent: #6c757d; }
.note-color--dark      { --fx-accent: #212529; }

.note-color {
    --fx-accent-soft: color-mix(in srgb, var(--fx-accent) 10%, #fff);  /* re-derived from the note's accent */
}

.fx-card.note-card.note-color {  /* beats .fx-card.is-featured / .is-pinned, which tint the whole border */
    border-inline-start: 4px solid var(--fx-accent);
}
