/* Announcements Plus: styles taken from the supportsystem announcement pages */

/* Modern list pages: Client contacts (admin/clients), Projects, Tasks.
   Same hero / KPI language as the dashboard and Contracts pages. */

.ml-page { --ml-ink: #0f172a; --ml-muted: #64748b; --ml-line: #e7ecf3; padding-bottom: 40px !important; }
/* Same grey behind the whole page, so no white strip shows under short pages or at other zoom levels */
body:has(.ml-page) { background: #f4f4f5; }
#wrapper:has(.ml-page) { min-height: 100vh; }

/* Hero */
.ml-hero {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    overflow: hidden; margin-bottom: 18px; padding: 26px 30px; border-radius: 20px; color: #fff;
    background:
        radial-gradient(circle at 88% -20%, rgba(255,255,255,.22) 0, transparent 45%),
        radial-gradient(circle at 10% 130%, rgba(124,58,237,.45) 0, transparent 50%),
        linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #4f46e5 100%);
    box-shadow: 0 12px 32px rgba(30,58,138,.25);
    animation: ml-rise .45s ease-out both;
}
.ml-hero::before, .ml-hero::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
    background: rgba(255,255,255,.08); animation: ml-float 9s ease-in-out infinite;
}
.ml-hero::before { width: 220px; height: 220px; right: 18%; top: -120px; }
.ml-hero::after { width: 140px; height: 140px; right: -40px; bottom: -70px; animation-delay: -4s; }
.ml-hero > * { position: relative; z-index: 1; }
.ml-hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.ml-hero-eyebrow i { margin-right: 5px; }
.ml-hero-title { margin: 6px 0 0; font-size: 26px; font-weight: 800; color: #fff; }
.ml-hero-sub { margin: 6px 0 0; color: rgba(255,255,255,.82); max-width: 560px; }
.ml-hero-sub a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ml-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ml-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.ml-hero-stat {
    min-width: 96px; padding: 10px 14px; border-radius: 14px; text-align: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(4px);
}
.ml-hero-stat b { display: block; font-size: 22px; line-height: 1.1; color: #fff; }
.ml-hero-stat span { font-size: 11.5px; color: rgba(255,255,255,.78); white-space: nowrap; }
.ml-hero-stat.is-alert { background: rgba(244,63,94,.28); border-color: rgba(254,205,211,.45); }
.ml-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ml-hero-actions .btn { border-radius: 10px; font-weight: 600; transition: transform .15s ease, background .15s ease; }
.ml-hero-actions .btn:hover { transform: translateY(-1px); }
.ml-hero-actions .btn i { margin-right: 5px; }
.ml-hero-actions .btn.ml-icon-only i { margin-right: 0; }
.ml-btn-light { background: #fff; border: 1px solid #fff; color: #1d4ed8 !important; font-weight: 700 !important; }
.ml-btn-light:hover, .ml-btn-light:focus { background: #eff6ff; border-color: #eff6ff; }
.ml-btn-ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff !important; }
.ml-btn-ghost:hover, .ml-btn-ghost:focus { background: rgba(255,255,255,.22); }

/* KPI cards */
.ml-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ml-kpi {
    position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; overflow: hidden;
    border: 1px solid var(--ml-line); border-radius: 16px; background: #fff; text-align: left; color: inherit;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    animation: ml-rise .45s ease-out both;
}
.ml-kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); opacity: 0; transition: opacity .18s ease; }
button.ml-kpi, a.ml-kpi { cursor: pointer; text-decoration: none !important; }
.ml-kpi:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,.08); border-color: color-mix(in srgb, var(--c) 35%, #e7ecf3); }
.ml-kpi:hover::after, .ml-kpi.is-active::after { opacity: 1; }
.ml-kpi.is-active { border-color: var(--c); box-shadow: 0 0 0 3px var(--soft), 0 10px 24px rgba(15,23,42,.06); }
.ml-kpi:focus { outline: none; }
.ml-kpi-icon {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--soft); color: var(--c); font-size: 17px; transition: transform .25s ease;
}
.ml-kpi:hover .ml-kpi-icon { transform: scale(1.08) rotate(-6deg); }
.ml-kpi-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ml-kpi-label { color: var(--ml-muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-kpi-value { margin-top: 2px; color: var(--ml-ink); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ml-kpi-hint { color: #94a3b8; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-kpi-bar { display: block; height: 4px; margin-top: 6px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.ml-kpi-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.ml-kpis > :nth-child(2) { animation-delay: .04s; } .ml-kpis > :nth-child(3) { animation-delay: .08s; }
.ml-kpis > :nth-child(4) { animation-delay: .12s; } .ml-kpis > :nth-child(5) { animation-delay: .16s; }
.ml-kpis > :nth-child(6) { animation-delay: .2s; }  .ml-kpis > :nth-child(n+7) { animation-delay: .24s; }

/* Table card */
.ml-panel { padding: 22px; border: 1px solid var(--ml-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); animation: ml-rise .5s .1s ease-out both; }
.ml-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.ml-panel-head h4 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ml-ink); }
.ml-panel-head p { margin: 4px 0 0; color: var(--ml-muted); font-size: 13px; }
.ml-panel-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ml-panel .table > thead > tr > th { padding: 11px 10px; border-bottom: 1px solid #eef2f7 !important; background: #f8fafc; color: var(--ml-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ml-panel .table > tbody > tr > td { padding: 12px 10px; border-top-color: #f1f5f9 !important; vertical-align: middle; }
.ml-panel .table > tbody > tr { transition: background .15s ease; }
.ml-panel .table > tbody > tr:hover > td { background: #f8fafc; }
.ml-panel .table > tbody > tr > td a { color: var(--ml-ink); font-weight: 600; }
.ml-panel .table > tbody > tr > td a:hover { color: #1d4ed8; }
.ml-panel .table .row-options a { color: var(--ml-muted); font-weight: 500; }
.ml-panel .label { padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.ml-panel .dataTables_filter input, .ml-panel .dataTables_length select { border-color: #e2e8f0; border-radius: 10px; }
.ml-panel .btn-default { border-color: #e2e8f0; border-radius: 10px; }
.ml-panel .pagination > li > a, .ml-panel .pagination > li > span { margin: 0 2px; border: 0; border-radius: 8px !important; color: #475569; }
.ml-panel .pagination > .active > a, .ml-panel .pagination > .active > span { background: #2563eb; color: #fff; }
.ml-panel .panel-table-full { margin: 0; }

/* Tasks kanban keeps its board, just under the hero */
.ml-page .kan-ban-tab { padding-top: 4px; }

@keyframes ml-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ml-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 10px); } }
@media (prefers-reduced-motion: reduce) {
    .ml-hero, .ml-kpi, .ml-panel, .ml-hero::before, .ml-hero::after { animation: none; }
    .ml-kpi, .ml-kpi-icon { transition: none; }
}
@media (max-width: 767px) {
    .ml-hero { padding: 20px; }
    .ml-hero-title { font-size: 21px; }
    .ml-hero-right { align-items: stretch; width: 100%; }
    .ml-hero-stat { flex: 1; min-width: 0; }
    .ml-hero-actions { justify-content: flex-start; }
    .ml-panel { padding: 16px; }
    .ml-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ml-kpi { padding: 12px; gap: 10px; align-items: flex-start; }
    .ml-kpi-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
    .ml-kpi-label, .ml-kpi-hint { white-space: normal; }
}


/* ---------- Announcements ---------- */
.an-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.an-tab { border: 1px solid #e2e8f0; background: #fff; color: #475569; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; transition: all .15s ease; }
.an-tab span { margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11.5px; }
.an-tab:hover { border-color: #93c5fd; color: #1d4ed8; }
.an-tab.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
.an-tab.is-active span { background: rgba(255,255,255,.22); color: #fff; }
.an-search { position: relative; width: 260px; }
.an-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; }
.an-search input { height: 36px; padding-left: 34px; border-color: #e2e8f0; border-radius: 10px; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.an-card { position: relative; display: flex; flex-direction: column; padding: 18px 18px 14px 20px; border: 1px solid var(--ml-line); border-radius: 16px; background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; animation: ml-rise .45s ease-out both; overflow: hidden; }
.an-card { --ann: #16a34a; }
.an-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: color-mix(in srgb, var(--ann) 35%, #fff); }
.an-card.is-unread::before { background: var(--ann); }
.an-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,23,42,.08); border-color: #dbe4f0; }
.an-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.an-date { color: #94a3b8; font-size: 12px; font-weight: 600; }
.an-new { padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ann) 12%, #fff); color: var(--ann); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.an-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.an-title a { color: var(--ml-ink); }
.an-title a:hover { color: #1d4ed8; }
.an-excerpt { flex: 1; margin: 0 0 12px; color: #64748b; font-size: 13px; line-height: 1.55; }
.an-audience { display: flex; gap: 6px; flex-wrap: wrap; }
.an-audience-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.an-audience-row .an-audience { flex: 1; min-width: 0; }
/* LIVE badge on announcements showing now (the dot flashes, see .so-live-dot) */
.an-live { flex: none; display: inline-flex; align-items: center; padding: 4px 11px 4px 9px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.an-live .so-live-dot { margin-right: 6px; }
.an-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 600; }
.an-chip-staff { background: #eef2ff; color: #4338ca; }
.an-chip-portal { background: #ecfdf5; color: #047857; }
.an-chip-ended { background: #fef2f2; color: #b91c1c; }
.an-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.an-author { color: #94a3b8; font-size: 12px; }
.an-actions { display: flex; gap: 4px; }
.an-actions a { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #64748b; transition: background .15s ease, color .15s ease; }
.an-actions a:hover { background: #eff6ff; color: #1d4ed8; }
.an-actions a.an-del:hover { background: #fff1f2; color: #e11d48; }
.an-none { margin: 20px 0 6px; text-align: center; color: #94a3b8; }
.an-empty { padding: 40px 20px; text-align: center; }
.an-empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #eff6ff; color: #2563eb; font-size: 26px; animation: ml-float 5s ease-in-out infinite; }
.an-empty h4 { margin: 0 0 6px; font-weight: 700; color: var(--ml-ink); }
.an-empty p { margin: 0 0 16px; color: #64748b; }


/* ---------- Add / Edit Announcement ---------- */
.anf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.anf-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }
.anf-side .ml-panel { padding: 18px; }
.anf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.anf-head b { display: block; color: var(--ml-ink); font-size: 15px; }
.anf-head small { color: #94a3b8; font-size: 12px; }
.anf-step { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: #eff6ff; color: #2563eb; font-weight: 800; font-size: 13px; }
.anf-main .form-control { height: 42px; border-color: #e2e8f0; border-radius: 10px; font-size: 15px; }
.anf-main .form-control:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.anf-main .control-label { color: #334155; font-weight: 600; }
.anf-main .tox-tinymce { border-color: #e2e8f0 !important; border-radius: 12px !important; min-height: 380px; }
/* Who sees it: 3 switches in a row under the subject */
.anf-toggles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 2px 0 18px; }
.anf-toggles .anf-toggle-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
@media (max-width: 991px) { .anf-toggles { grid-template-columns: 1fr; } }
/* Repeat: segmented choice + date fields */
.anf-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #f1f5f9; }
.anf-seg label { margin: 0; cursor: pointer; }
.anf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.anf-seg span { display: block; padding: 7px 4px; border-radius: 9px; text-align: center; color: #64748b; font-size: 12.5px; font-weight: 600; transition: all .15s ease; }
.anf-seg label.is-on span { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.anf-repeat-fields { margin-top: 10px; }
.anf-label { display: block; margin: 0 0 6px; color: #475569; font-size: 12px; font-weight: 600; }
.anf-ends { margin-top: 12px; }
.anf-ends-input { position: relative; display: block; }
.anf-ends-input .form-control { padding-right: 34px; }
.anf-clear { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); margin-top: 2px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
    background: #f1f5f9; color: #64748b; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.anf-clear[hidden] { display: none; }
.anf-clear:hover { background: #fee2e2; color: #dc2626; }
.anf-ended { margin: 0 0 12px; }
.anf-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.anf-row .form-control { width: 100%; min-width: 0; }
.anf-row label { margin: 0; color: #475569; font-size: 12px; font-weight: 600; }
.anf-row label small { color: #94a3b8; font-weight: 500; }
.anf-row .form-control { height: 36px; margin-top: 4px; padding: 4px 8px; border-color: #e2e8f0; border-radius: 9px; font-size: 12.5px; }
.anf-note { margin: 10px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.anf-note i { margin-right: 3px; }
.anf-repeat-summary { padding: 8px 10px; border-radius: 9px; background: #eff6ff; color: #1e3a8a; }
.anf-warn { padding: 8px 10px; border-radius: 9px; background: #fff7ed; color: #9a3412; }
.anf-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: #334155; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.anf-tag { background: #f1f5f9 !important; color: #334155 !important; }
.anf-toggle { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 12px; border: 1px solid #e7ecf3; border-radius: 12px;
    cursor: pointer; font-weight: 400; transition: border-color .15s ease, background .15s ease; }
.anf-toggle:hover { border-color: #bfdbfe; }
.anf-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.anf-toggle-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; transition: all .15s ease; }
.anf-toggle-text { flex: 1; min-width: 0; line-height: 1.25; }
.anf-toggle-text b { display: block; color: var(--ml-ink); font-size: 13.5px; font-weight: 600; }
.anf-toggle-text small { color: #94a3b8; font-size: 12px; }
.anf-switch { position: relative; flex: 0 0 36px; width: 36px; height: 20px; border-radius: 999px; background: #cbd5e1; transition: background .2s ease; }
.anf-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.anf-toggle:has(input:checked) { border-color: #93c5fd; background: #f8fbff; }
.anf-toggle:has(input:checked) .anf-toggle-icon { background: #2563eb; color: #fff; }
.anf-toggle input:checked ~ .anf-switch { background: #2563eb; }
.anf-toggle input:checked ~ .anf-switch::after { transform: translateX(16px); }
.anf-toggle input:focus-visible ~ .anf-switch { box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
/* Colour picker under the switches (the Preview card shows the tag, so its own preview is hidden) */
/* Colour | Preview | Shows to | Schedule - one row under the switches */
.anf-info { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; margin: 0 0 18px; }
.anf-info-col { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.anf-info-label { display: block; margin-bottom: 7px; color: #334155; font-size: 13px; font-weight: 600; }
.anf-info .anf-where { margin: 0; }
.anf-info .anf-where em { font-size: 12.5px; }
.anf-info .anf-chip { max-width: 100%; }
.anf-preview-panel { padding: 14px !important; }
@media (max-width: 1399px) { .anf-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .anf-info { grid-template-columns: 1fr; } }
.anf-color .so-ann-color-field { margin: 0; }
.anf-color .so-ann-color-field > .control-label { color: #334155; font-weight: 600; }
.anf-color .so-ann-preview { display: none; }
.anf-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; border-radius: 12px; background: #f8fafc; border: 1px dashed #e2e8f0; }
.anf-preview-label { color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.anf-preview-label i { color: var(--ann, #16a34a); }
.anf-chip { --ann: #16a34a; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 30px; padding: 0 12px; border-radius: 999px;
    background: var(--ann); color: #fff; font-size: 12.5px; font-weight: 600; animation: anfFlash 1.6s ease-in-out infinite; }
.anf-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anf-chip i { font-size: 10px; }
.anf-chip-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: anfBlink 1s steps(2, start) infinite; }
@keyframes anfFlash { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ann) 55%, transparent); background: var(--ann); } 50% { box-shadow: 0 0 0 7px transparent; background: color-mix(in srgb, var(--ann) 78%, #fff); } }
@keyframes anfBlink { to { visibility: hidden; } }
.anf-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 14px; color: #64748b; font-size: 12.5px; }
.anf-where span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-weight: 600; font-size: 12px; }
.anf-where span + span { background: #ecfdf5; color: #047857; }
.anf-where em { color: #e11d48; font-style: normal; font-weight: 600; }
.anf-save { height: 40px; border-radius: 10px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .anf-chip, .anf-chip-dot { animation: none; } }
@media (max-width: 1199px) { .anf-grid { grid-template-columns: 1fr; } .anf-side { position: static; } }


/* Announcement form: "only these people" pickers */
.anf-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: -6px 0 18px; }
.anf-people .anf-label small { color: #94a3b8; font-weight: 500; }
.anf-people .bootstrap-select > .dropdown-toggle { height: 40px; border-color: #e2e8f0; border-radius: 10px; }
@media (max-width: 767px) { .anf-people { grid-template-columns: 1fr; } }


/* Announcements: small tags that open on click */
.so-ann { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.so-ann-label { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.so-ann-label i { color: #16a34a; animation: soAnnShake 2.4s ease-in-out infinite; transform-origin: 30% 50%; }
/* Green tags that flash (glow pulse + blinking dot) so new announcements get noticed */
/* --ann = the announcement's own colour (set per tag; green by default) */
.so-ann-chip {
    --ann: #16a34a;
    display: inline-flex; align-items: center; gap: 7px; max-width: 340px; height: 32px; padding: 0 12px;
    border: 1px solid var(--ann); border-radius: 999px; background: var(--ann); color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease;
    animation: soAnnFlash 1.6s ease-in-out infinite;
}
.so-ann-chip:hover { transform: translateY(-1px); filter: brightness(.92); }
.so-ann-chip.is-open { background: #fff; border-color: var(--ann); color: var(--ann); animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ann) 18%, transparent); }
.so-ann-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-ann-chip i.fa-chevron-down { font-size: 10px; transition: transform .2s ease; }
.so-ann-chip.is-open i.fa-chevron-down { transform: rotate(180deg); }
.so-ann-chip .so-ann-new { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: 0 0 8px; animation: soAnnBlink 1s steps(2, start) infinite; }
.so-ann-chip.is-open .so-ann-new { background: var(--ann); animation: none; }
@keyframes soAnnFlash {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ann) 55%, transparent); background: var(--ann); }
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ann) 0%, transparent); background: color-mix(in srgb, var(--ann) 78%, #fff); }
}
@keyframes soAnnBlink { to { visibility: hidden; } }
@keyframes soAnnShake { 0%, 70%, 100% { transform: rotate(0); } 75%, 85% { transform: rotate(-12deg); } 80%, 90% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .so-ann-chip, .so-ann-chip .so-ann-new, .so-ann-label i { animation: none; } }
.so-ann-body {
    --ann: #16a34a;
    flex-basis: 100%; display: none; position: relative; padding: 14px 16px 12px 18px; border: 1px solid color-mix(in srgb, var(--ann) 30%, #fff); border-radius: 14px;
    background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); animation: soAnnOpen .2s ease-out;
}
.so-ann-body.is-open { display: block; }
.so-ann-body::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ann); }
.so-ann-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.so-ann-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.so-ann-head small { display: block; margin-top: 2px; color: #94a3b8; font-size: 12px; }
.so-ann-tools { display: flex; gap: 4px; flex-shrink: 0; }
.so-ann-tools a { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px; color: #64748b; font-size: 12px; font-weight: 600; }
.so-ann-tools a:hover { background: color-mix(in srgb, var(--ann) 10%, #fff); color: var(--ann); }
.so-ann-text { margin-top: 8px; color: #334155; font-size: 13.5px; line-height: 1.6; }
.so-ann-text > :last-child { margin-bottom: 0; }
@keyframes soAnnOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }


/* Announcements list: green flashing dot on the ones that are live now */
.so-live-dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:#22c55e; margin-right:8px; vertical-align:1px; box-shadow:0 0 0 0 rgba(34,197,94,.6); animation:soLivePulse 1.6s infinite; }
@keyframes soLivePulse { 0% { box-shadow:0 0 0 0 rgba(34,197,94,.55); opacity:1; } 50% { opacity:.55; } 70% { box-shadow:0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow:0 0 0 0 rgba(34,197,94,0); opacity:1; } }
@media (prefers-reduced-motion: reduce) { .so-live-dot { animation:none; } }
/* Hero text stays white on the blue header (the theme's heading colour must not override it) */
html body .ml-hero .ml-hero-title,
html body .ml-hero h1, html body .ml-hero h2, html body .ml-hero h3 { color: #ffffff !important; }
html body .ml-hero .ml-hero-eyebrow, html body .ml-hero .ml-hero-eyebrow i { color: rgba(255, 255, 255, .85) !important; }
html body .ml-hero .ml-hero-sub { color: rgba(255, 255, 255, .9) !important; }
html body .ml-hero .ml-hero-stat b { color: #ffffff !important; }
html body .ml-hero .ml-hero-stat span { color: rgba(255, 255, 255, .85) !important; }
