/* ============================================================================
   HotelTRS noticeboard - rules content.css does not already carry.

   content.css owns the feed card itself (lifted from the old <style> block).
   What lives here is everything the rework added: the rich-text editor sizing
   that used to be an id-scoped <style> block inside the compose modal, the
   audience tree, and the shared expandable-markup wrapper.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   EXPANDABLE RICH TEXT (shared - also used by the tourist guide grid)
   ---------------------------------------------------------------------------- */

/* The fragment is arbitrary staff-authored HTML. .trs-richtext-readonly (components.css)
   already clips it and neutralises author colours; an inline image still has to fit the
   card it lands in. */
.trs-expandable-markup img {
    max-width: 100%;
    height: auto;
}

.trs-expandable-toggle {
    padding-left: 0;
    padding-right: 0;
    font-size: var(--trs-text-sm);
}

/* ----------------------------------------------------------------------------
   FEED CARD - the pieces the rework added on top of content.css
   ---------------------------------------------------------------------------- */

.noticeboard-card-titlebar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--trs-space-2);
}

.noticeboard-card-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--trs-space-2);
    min-width: 0;
}

.noticeboard-card-title {
    margin-bottom: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.noticeboard-pin-icon {
    color: var(--trs-text-primary);
}

.noticeboard-card-audience {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--trs-space-1);
    margin-top: var(--trs-space-2);
    font-size: var(--trs-text-sm);
    color: var(--trs-text-secondary);
}

/* ----------------------------------------------------------------------------
   COMPOSE MODAL - audience tree
   ---------------------------------------------------------------------------- */

.notice-audience-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--trs-space-2);
}

.notice-audience-list {
    max-height: 22rem;
    overflow-y: auto;
    border: 1px solid var(--trs-border);
    border-radius: var(--trs-radius-sm);
    background: var(--trs-surface);
}

.notice-audience-group {
    border-bottom: 1px solid var(--trs-border);
}

.notice-audience-group:last-child {
    border-bottom: 0;
}

.notice-audience-role {
    display: flex;
    align-items: center;
    gap: var(--trs-space-2);
    padding: var(--trs-space-2) var(--trs-space-3);
}

.notice-audience-role-label {
    flex: 1 1 auto;
    min-width: 0;
}

.notice-audience-count {
    font-size: var(--trs-text-sm);
    color: var(--trs-text-secondary);
}

.notice-audience-children {
    padding: 0 var(--trs-space-3) var(--trs-space-2) var(--trs-space-8);
    background: var(--trs-surface-sunken);
}

.notice-audience-child {
    padding: var(--trs-space-1) 0;
}

.notice-audience-empty {
    padding: var(--trs-space-2) 0;
    font-size: var(--trs-text-sm);
    color: var(--trs-text-muted);
}

/* ----------------------------------------------------------------------------
   COMPOSE MODAL - existing attachments
   ---------------------------------------------------------------------------- */

.notice-attachment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--trs-space-2);
    padding: var(--trs-space-1) 0;
}

.notice-attachment-name {
    min-width: 0;
    word-break: break-all;
}
