/* Shared announcement components. All colors are local to this component. */
.site-announcement-system { color-scheme: dark; }
.site-announcement-banner { display: flex; align-items: flex-start; gap: 15px; width: min(1320px,calc(100% - 48px)); margin: 18px auto 0; padding: 15px 19px; border: 1px solid #5e4732; border-radius: 10px; background: linear-gradient(115deg,#2d231b,#211e1b); color: #ecdbc8; box-sizing: border-box; }
.site-announcement-banner > div { flex: 1; min-width: 0; }
.announcement-symbol { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border: 1px solid #725235; border-radius: 9px; color: #f9ad70; background: #3b2b1e; font-size: 20px; line-height: 1; }
.site-announcement-banner .announcement-title { display: block; margin: 0 0 4px; color: #f6d4b3; font-size: 13px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.announcement-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.site-announcement-banner .announcement-body { max-height: 130px; overflow-y: auto; font-size: 12px; line-height: 1.85; color: #c5b6a8; scrollbar-width: thin; scrollbar-color: #765237 transparent; }
.site-announcement-banner [data-announcement-open] { flex-shrink: 0; align-self: center; border: 1px solid #765237; border-radius: 6px; padding: 8px 12px; background: #3a2b20; color: #f2c49e; font: inherit; font-size: 11px; line-height: 1.7; cursor: pointer; }
.site-announcement-dialog { position: fixed; inset: 0; width: min(540px,calc(100vw - 32px)); max-width: 100%; max-height: min(720px,calc(100dvh - 48px)); margin: auto; padding: 25px 27px 23px; border: 1px solid #69503a; border-radius: 17px; background: radial-gradient(ellipse at 100% 0,#49302155,transparent 65%),#1b1c1c; color: #eee6dd; box-shadow: 0 28px 110px #0008; box-sizing: border-box; overflow: hidden; color-scheme: dark; }
.site-announcement-dialog[open],.announcement-preview-modal { display: flex; flex-direction: column; }
.site-announcement-dialog:not([open]):not(.announcement-preview-modal) { display: none; }
.site-announcement-dialog::backdrop { background: #080b10b0; backdrop-filter: blur(5px); }
.announcement-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; flex-shrink: 0; }
.announcement-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid #6b4d32; border-radius: 6px; background: #38291e; color: #eabc92; font-size: 10px; line-height: 1.7; letter-spacing: 1px; }
.announcement-dialog-head [data-announcement-close],.announcement-preview-close { display: grid; place-items: center; width: 31px; height: 31px; margin: -4px -6px 0 0; border: 1px solid #4a443e; border-radius: 50%; background: #282521; color: #baad9e; font-size: 22px; line-height: 1; cursor: pointer; }
.site-announcement-dialog > .announcement-title { margin: 0 0 17px; color: #f5ece2; font-size: 23px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; flex-shrink: 0; }
.announcement-dialog-body { min-height: 0; overflow-y: auto; padding-right: 5px; scrollbar-width: thin; scrollbar-color: #7a5a3b transparent; overscroll-behavior: contain; }
.announcement-dialog-body .announcement-body { color: #bfb4a9; font-size: 13px; line-height: 2; }
.announcement-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 21px; margin-top: 23px; border-top: 1px solid #41372e; flex-shrink: 0; }
.announcement-dialog-footer > span { color: #9b8b7c; font-size: 10px; line-height: 1.8; }
.announcement-confirm { display: inline-flex; align-items: center; justify-content: center; min-width: 99px; min-height: 40px; padding: 9px 18px; border: 1px solid #efaa77; border-radius: 7px; background: #eda369; color: #2b1b11; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.announcement-confirm:hover { background: #ffba88; }
.site-announcement-system button:focus-visible { outline: 2px solid #ffc68e; outline-offset: 4px; }
body.announcement-modal-open { overflow: hidden; }
@media(max-width:600px) {
  .site-announcement-banner { width: calc(100% - 30px); margin-top: 13px; padding: 13px; gap: 10px; flex-wrap: wrap; }
  .site-announcement-banner > div { flex-basis: calc(100% - 43px); }
  .site-announcement-banner [data-announcement-open] { margin-left: 43px; padding: 6px 11px; }
  .site-announcement-dialog { width: calc(100vw - 30px); max-height: calc(100dvh - 36px); padding: 22px 21px 20px; border-radius: 14px; }
  .site-announcement-dialog > .announcement-title { font-size: 21px; margin-bottom: 14px; }
  .announcement-dialog-head { margin-bottom: 18px; }
  .announcement-dialog-footer { flex-wrap: wrap; gap: 14px; padding-top: 17px; margin-top: 20px; }
  .announcement-dialog-footer > span { flex: 1; min-width: 135px; }
  .announcement-confirm { min-height: 43px; }
}
