/* Announcement cards — render inside the home-page Announcements
 * section. Each card shows the full title + body and a Hide link.
 * Severity drives the left-border + icon color. */

.announcement-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-card {
    background: #ffffff;
    border-left: 4px solid #17a2b8;
    border-radius: 3px;
    padding: 20px 25px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.announcement-card--warning { border-left-color: #ffc107; }
.announcement-card--important { border-left-color: #dc3545; }

.announcement-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.announcement-card__header i { color: #17a2b8; font-size: 18px; }
.announcement-card--warning .announcement-card__header i { color: #ffc107; }
.announcement-card--important .announcement-card__header i { color: #dc3545; }

.announcement-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.announcement-card__body { color: #555; line-height: 1.55; }
.announcement-card__body p { margin: 0 0 10px; }
.announcement-card__body p:last-child { margin-bottom: 0; }
.announcement-card__body h3 {
    font-size: 15px;
    margin: 14px 0 6px;
    color: #333;
}
.announcement-card__body ul,
.announcement-card__body ol { margin: 0 0 10px 1.2em; }
.announcement-card__body a { color: #d4731a; font-weight: 600; }
.announcement-card__body code {
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

.announcement-card__dismiss {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
}
.announcement-card__dismiss a { color: #888; text-decoration: underline; }
.announcement-card__dismiss a:hover { color: #555; }

/* Legacy top-of-page bar styles kept below for reference but no
 * longer rendered — see git history if you want to bring the bar
 * back. */

.announcement-bar-stack {
    padding: 0;
}

.announcement-bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
    transition: background 0.15s ease;
}
.announcement-bar:hover { background: #c5e3eb; }

.announcement-bar--warning {
    border-left-color: #ffc107;
    background: #fff3cd;
    color: #856404;
}
.announcement-bar--warning:hover { background: #fbe9a8; }

.announcement-bar--important {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}
.announcement-bar--important:hover { background: #f1c4c8; }

.announcement-bar > summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    user-select: none;
}
.announcement-bar > summary::-webkit-details-marker { display: none; }
.announcement-bar > summary > i { flex: 0 0 auto; }

.announcement-bar__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-bar__chevron {
    transition: transform 0.15s ease;
    font-size: 14px;
}
.announcement-bar[open] > summary > .announcement-bar__chevron {
    transform: rotate(180deg);
}

.announcement-bar__body {
    padding: 12px 20px 18px 38px;
    line-height: 1.5;
    font-weight: normal;
}
.announcement-bar__body p { margin: 0 0 10px; }
.announcement-bar__body ul,
.announcement-bar__body ol { margin: 0 0 10px 1.2em; }
.announcement-bar__body a { color: inherit; text-decoration: underline; font-weight: 600; }
.announcement-bar__body code {
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

.announcement-bar__dismiss-hint {
    margin-top: 16px !important;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
    opacity: 0.85;
}
