/* Page host: Communications / System hub wrap the workspace in .jbf-body.announcements-tab-body */
.announcements-tab-body {
    padding: 8px 32px 16px;
    min-height: 0;
}

.announcements-tab-body .ann-workspace {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* xs/sm tier (≤ --bp-md = 768). 767.98 mirrors --bp-md; @media can't deref vars. */
@media (max-width: 767.98px) {
    .announcements-tab-body {
        padding: 8px 16px 12px;
    }
}

/* Inline "New announcement" toolbar above the table */
.ann-workspace .ann-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    flex-shrink: 0;
}

/* Side-panel edit form (rendered inside JbfRightPanel via PaginatedTable.PanelAddContent) */
.ann-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Title input: force the raw <input> to fill the panel column.
   rz-textbox has its own default width (~12.5rem) that beats w-100 at normal
   specificity, so we take the class up to rz-textbox + own class = 0,2,0. */
.ann-edit-form .ann-title-input {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.ann-date-pinned-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 20px;
}

.ann-date-field {
    flex: 0 0 auto;
}

.ann-date-picker {
    width: 9.25rem;
    max-width: 100%;
}

.ann-pinned-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
}

.ann-pinned-label {
    font-size: 14px;
    color: #35474e;
    user-select: none;
}

/* Rich-text preview surface used on dashboards (not the manage workspace) */
.ann-preview-html {
    font-size: 14px;
    line-height: 1.5;
    color: #35474e;
}

.ann-preview-html img {
    max-width: 100%;
    height: auto;
}

.dashboard-announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-announcement-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.dashboard-announcement-list li:last-child {
    border-bottom: none;
}

.dashboard-announcement-title {
    font-weight: 600;
    color: #021922;
    margin-bottom: 4px;
}

.dashboard-announcement-meta {
    color: #808c91;
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 6px;
}

.dashboard-announcement-body {
    margin-top: 0;
    margin-bottom: 4px;
}

.dashboard-announcement-body.ann-preview-html {
    font-size: 13px;
}

.dashboard-announcement-summary {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 13px;
}

.dashboard-announcement-summary--clamped {
    max-height: 5.5rem;
    overflow: hidden;
    position: relative;
}

.dashboard-announcement-readmore {
    font-size: 12px;
    margin-top: 2px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* "Show For" audience picker - inline checkbox row. Typography inherits from
   the default label styles so the five options match other Radzen checkboxes
   on the form (e.g. "Pinned", or the rules-engine panels). */
.ann-edit-form .ann-audience-checks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

/* ── Row-click preview panel ───────────────────────────────────────────────
   Read-only view of an announcement inside the right panel. Edit + Delete
   actions live in the panel header via PanelHeaderActions, so this body only
   needs layout + typography. Matches the tone of the dashboard card preview
   without copy-pasting its scoped styles. */
.ann-preview-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ann-preview-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Flex eats the whitespace between <span> items, so the " · " separators
       visually collide with the date/audience text. Use gap for consistent
       spacing between every meta chip (date, separator dot, audience label,
       separator dot, pinned indicator). */
    gap: 0 6px;
    font-size: 13px;
    color: #808c91;
}

.ann-preview-meta-sep {
    color: #c2cbcf;
}

.ann-preview-pinned {
    color: #35474e;
    font-weight: 600;
}

.ann-preview-pinned i {
    margin-right: 4px;
}

.ann-preview-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ann-preview-section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #808c91;
    font-weight: 600;
}

.ann-preview-empty {
    font-size: 13px;
    color: #808c91;
    font-style: italic;
}

/* ── PageContentZone admin discovery overlay ──────────────────────────────
   Only the admin render-branch in PageContentZone.razor emits the
   .pcz-admin-target wrapper (FSC Admin / System Admin only); non-admin
   users never see this UI and these rules never apply to them.

   At rest the overlay is invisible -- zero visual cost on real pages.
   On hover, every zone exposes:
     - a 2px dashed plum outline that shows the zone's bounds, and
     - a small corner chip (anchored INSIDE the box at top-right, so it
       survives any ancestor overflow:hidden) showing the zone's
       "Page → DisplayName" so admins can correlate the live zone with
       the FSC Library / Page Content grid grouping.

   Empty + no-fallback zones show a faint dashed placeholder (.pcz-admin-empty)
   so the zone is still discoverable; the placeholder isn't rendered for
   non-admin users (no .pcz-admin-target wrapper => this branch never fires
   in their tree). */
.pcz-admin-target {
    position: relative;
    transition: outline-color 0.15s ease;
}

.pcz-admin-target:hover {
    outline: 2px dashed var(--cum-primary, #7d5b81);
    outline-offset: -2px;
    border-radius: 4px;
}

.pcz-admin-target::before {
    content: attr(data-pcz-label);
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 9px;
    background: var(--cum-primary, #7d5b81);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 0 4px 0 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.pcz-admin-target:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.pcz-admin-target--loading {
    opacity: 0.6;
}

.pcz-admin-empty {
    border: 1px dashed rgba(125, 91, 129, 0.35);
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 12px;
    color: rgba(125, 91, 129, 0.85);
    background: rgba(125, 91, 129, 0.04);
    text-align: center;
    font-style: italic;
}

/* Read more link rendered by PageContentZone when both Summary and Body
   are authored. Mirrors .dashboard-announcement-readmore visually (same
   plum link, same compact size) so the dashboard feed and the page-content
   strip read as the same family of components. Tight margin-top leaves the
   summary's natural bottom rhythm intact. */
.pcz-readmore {
    margin-top: 6px;
    color: var(--cum-primary, #7d5b81);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.pcz-readmore:hover {
    color: #5a4360;
}

.pcz-summary {
    /* Inherit the announcements rich-text rhythm so HTML pasted from the
       authoring rich-text editor renders consistent with dashboard cards. */
    margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   PageContentZone card frame.
   Renders ONLY when an admin authored a Title on the row; otherwise the
   zone emits content "naked" (no card chrome) so a banner / strip can sit
   flush against host-page layout. The visual vocabulary -- pink centered
   title bar, hairline divider, white card on a light shadow -- is
   intentionally identical to the event-landing .evl-card / .evl-card__title
   pair (Web/wwwroot/css/event-landing.css) so PageContent zones, the
   public Event Landing 2x2 grid, and the dashboard cards (which now use
   the same .dashboard-section-title-accent underline treatment) all read
   as one family of components instead of three near-misses.

   Color tokens are duplicated rather than referenced (event-landing.css
   scopes --pl-card-border / --pl-text-default to that page only) so the
   frame ports correctly to any page hosting a PageContentZone.
   ────────────────────────────────────────────────────────────────────── */
.pcz-card {
    background: #ffffff;
    border: 1px solid #e6e8e9;
    border-radius: 12px;
    padding: 0; /* padding lives on .pcz-card__title and .pcz-card__body */
    color: #021922;
    line-height: 1.55;
    font-size: 15px;
    overflow: hidden; /* clips the title bar's bottom border to the rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pcz-card__title {
    padding: 12px 22px;
    font-size: 18px;
    font-weight: 600;
    color: #D23C77;
    text-align: center;
    border-bottom: 1px solid #e6e8e9;
    letter-spacing: 0.005em;
}

.pcz-card__body {
    padding: 16px 22px 20px;
}

/* xs/sm tier breakpoint mirrors --bp-md (768px). Media queries can't deref CSS
   vars so the literal is duplicated from the rest of the responsive surface. */
@media (max-width: 767.98px) {
    .pcz-card__title { padding: 10px 18px; font-size: 14.5px; }
    .pcz-card__body  { padding: 14px 18px 16px; }
}
