/* Scope every rule to the announcement. Existing pages keep their geometry. */
dialog.home-announcement{width:min(620px,calc(100% - 32px));max-width:620px;max-height:min(82vh,820px);max-height:min(82dvh,820px);padding:0;border:1px solid #d9e7e3;border-radius:26px;color:var(--ink);background:#fff;box-shadow:0 30px 100px #103b3d38,0 1px 0 #fff inset;overflow:hidden;animation:announcement-enter .2s ease-out}
dialog.home-announcement[open]{display:flex;flex-direction:column}
dialog.home-announcement::backdrop{background:rgba(17,42,43,.34);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.home-announcement .announcement-heading{display:flex;align-items:center;gap:16px;padding:26px 28px 23px;background:linear-gradient(130deg,#eef8f4,#f8fbfa 75%,#fff);border-bottom:1px solid #e5eeeb;flex:none}
.home-announcement .announcement-emblem{display:grid;place-items:center;width:48px;height:48px;flex:none;border:1px solid #cbe2dc;border-radius:16px;background:linear-gradient(145deg,#fff,#e2f2eb);color:var(--teal);box-shadow:0 5px 15px #087c8009}
.home-announcement .announcement-label{font-size:10px;letter-spacing:.14em;font-weight:650;color:var(--teal);margin-bottom:5px}
.home-announcement .announcement-heading h2{font-size:24px;line-height:1.3;letter-spacing:-.025em;margin:0}
.home-announcement .announcement-heading-text{min-width:0;flex:1}
.home-announcement .announcement-close{display:grid;place-items:center;width:44px;height:44px;min-height:44px;flex:none;padding:0;border-radius:12px;border:1px solid #dce8e4;background:#ffffffb3;color:#617471;font-size:24px;font-weight:400;line-height:1}
.home-announcement .announcement-close:hover{background:#fff;color:var(--deep)}
.home-announcement .announcement-body{padding:27px 30px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}
.home-announcement .announcement-actions{display:flex;justify-content:flex-end;padding:18px 28px;border-top:1px solid #e7efec;background:#fafcfb;flex:none}
.home-announcement .announcement-actions .button{min-width:112px;width:auto}
.announcement-rich{font-family:var(--font);font-size:16px;line-height:1.85;overflow-wrap:anywhere;word-break:normal;unicode-bidi:plaintext;color:var(--ink);letter-spacing:normal;max-width:100%}
.announcement-rich :is(p,div,blockquote,ul,ol){margin-block:0 14px}
.announcement-rich :last-child{margin-bottom:0}
.announcement-rich :is(h2,h3,h4){margin:0 0 16px;line-height:1.45;letter-spacing:normal}
.announcement-rich h2{font-size:24px}.announcement-rich h3{font-size:21px}.announcement-rich h4{font-size:18px}
.announcement-rich :is(ul,ol){padding-inline-start:1.7em}.announcement-rich li{margin:5px 0}
.announcement-rich blockquote{border-inline-start:3px solid #b8d8d0;padding-inline-start:16px;color:var(--muted)}
.announcement-rich a{text-decoration:underline;text-underline-offset:3px}
.announcement-rich :is(strong,b){font-weight:700}
.announcement-fallback{margin:24px auto;padding:20px 24px;border:1px solid var(--line);border-radius:20px;background:#f4faf7}
.announcement-fallback>summary{cursor:pointer;font-size:20px;font-weight:650;color:var(--deep);padding:2px 0}
.announcement-fallback[open]>.announcement-rich{margin-top:18px}
html:has(dialog.home-announcement[open]){overflow:hidden;scrollbar-gutter:stable}
@keyframes announcement-enter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:480px){dialog.home-announcement{width:calc(100% - 24px);max-height:86vh;max-height:86dvh;border-radius:22px}.home-announcement .announcement-heading{padding:21px 18px;gap:12px}.home-announcement .announcement-emblem{width:42px;height:42px;border-radius:14px}.home-announcement .announcement-heading h2{font-size:21px}.home-announcement .announcement-body{padding:22px 20px}.home-announcement .announcement-actions{padding:16px 20px}.announcement-rich{font-size:15px}}
@media(prefers-reduced-motion:reduce){dialog.home-announcement{animation:none}}

.home-announcement .announcement-emblem .icon{width:23px;height:23px}
