.office-notices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
}

.office-notice.alert {
    --notice-ink: #14202b;
    --notice-accent: #0c4f3e;
    --notice-soft: #e7f3ee;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
    padding: 14px 16px;
    padding-inline-start: 18px;
    border: 1px solid #d7e6df;
    border-radius: 18px;
    background:
        linear-gradient(90deg, var(--notice-soft), rgba(255, 253, 248, 0) 88px),
        #fffdf8;
    box-shadow: 0 12px 32px rgba(12, 79, 62, 0.08);
    color: var(--notice-ink);
    overflow: hidden;
    animation: officeNoticeIn 0.35s ease;
}

[dir="rtl"] .office-notice.alert {
    background:
        linear-gradient(270deg, var(--notice-soft), rgba(255, 253, 248, 0) 88px),
        #fffdf8;
}

.office-notices > .office-notice.alert:last-child,
.office-notice.alert:last-child {
    margin-bottom: 0;
}

.office-notice.alert::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--notice-accent);
}

.office-notice--warning.alert {
    --notice-accent: #9a7430;
    --notice-soft: #f8f1e2;
    border-color: #eadcc0;
}

.office-notice--danger.alert {
    --notice-accent: #9d2c2c;
    --notice-soft: #fdecec;
    border-color: #f0d0d0;
}

.office-notice--info.alert {
    --notice-accent: #1d5c78;
    --notice-soft: #e7f3f8;
    border-color: #d0e3ec;
}

.office-notice__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--notice-accent);
    color: #fffdf8;
    font-size: 18px;
    box-shadow: 0 8px 16px rgba(12, 79, 62, 0.16);
}

.office-notice__copy {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
    text-align: start;
}

.office-notice__kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--notice-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.office-notice .btn-close {
    position: static;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    background-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(20, 32, 43, 0.12);
    opacity: 0.7;
}

.office-notice .btn-close:hover {
    opacity: 1;
    background-color: #f6f1e6;
}

.site-scroll:has(.page-intro) > .container.mt-3:has(.office-notice) .office-notice.alert,
.signin-panel .office-notice.alert,
#content .office-notice.alert {
    border-radius: 18px;
}

@keyframes officeNoticeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .office-notice.alert {
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
        border-radius: 16px;
    }

    .office-notice__icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 16px;
    }

    .office-notice__copy {
        font-size: 14px;
    }
}
