/* Announcement presentation (static rules only; theme colors live in theme.css) */
.announcement-widget{position:relative;z-index:65;display:flex;align-items:center;justify-content:center;min-height:38px;padding:7px 35px;background:var(--theme-announcement-bg,#25376b);color:var(--theme-announcement-text,#fff);font-size:13px;font-weight:650;text-align:center}
.announcement-widget.ann-bg-gradient{background:linear-gradient(95deg,var(--theme-announcement-bg,#25376b),var(--primary,#4056d6))}
.announcement-widget.ann-compact{min-height:29px;padding-block:4px}.announcement-widget.ann-large{min-height:56px;padding-block:14px}
.announcement-widget.ann-align-left{text-align:left;justify-content:flex-start}.announcement-widget.ann-align-right{text-align:right;justify-content:flex-end}
.ann-viewport{width:100%;overflow:hidden}.ann-track{display:flex;width:100%;align-items:center;justify-content:inherit}.ann-item{flex:0 0 100%;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px}
.ann-align-left .ann-item{justify-content:flex-start}.ann-align-right .ann-item{justify-content:flex-end}
.ann-item a{color:inherit;text-decoration:none}.ann-item a:hover{text-decoration:underline}.ann-full{display:flex;align-items:center;gap:8px;width:100%;justify-content:inherit}
.ann-dismiss{position:absolute;right:9px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:inherit;cursor:pointer;padding:7px;border-radius:6px}
.ann-dismiss:hover{background:rgba(255,255,255,.15)}.ann-scroll-sticky{position:sticky;top:0}
.announcement-widget.ann-marquee,.theme-ann-live.ann-marquee{padding-inline:0}
.ann-marquee .ann-viewport{min-width:0;width:100%;overflow:hidden}
.ann-marquee .ann-track{width:max-content;justify-content:flex-start;gap:4rem;will-change:transform}
.ann-marquee .ann-item{flex:0 0 auto;width:max-content;justify-content:flex-start;padding-inline:0;white-space:nowrap}
.ann-marquee .ann-full{width:auto}
.ann-slides .ann-item{display:none}.ann-slides .ann-item.ann-active{display:flex}
.ann-scroll-hide.ann-hidden{transform:translateY(-105%);transition:transform .2s}
@media(min-width:821px){.ann-no-desktop{display:none}}
@media(max-width:820px){.ann-no-mobile{display:none}}
@media(prefers-reduced-motion:reduce){.announcement-widget .ann-track{animation:none!important}.ann-scroll-hide.ann-hidden{transform:none}}
.theme-announcement-editor{grid-column:1/-1;border:1px solid #e1e7f0;border-radius:10px;padding:20px;background:#fff;display:grid;gap:12px}
.theme-announcement-editor h3{margin:0;font-size:18px}.theme-announcement-editor>p{margin:0 0 5px;color:#8290a8;font-size:13px}
.theme-announcement-editor details{border:1px solid #e3e9f2;border-radius:9px;overflow:hidden}
.theme-announcement-editor summary{padding:15px;background:#f9fbff;font-size:14px;font-weight:750;cursor:pointer}
.theme-ann-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px}
.theme-ann-grid label{display:grid;gap:6px;font-size:13px;font-weight:650;color:#586982}
.theme-ann-pair{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.theme-ann-grid input:not([type=checkbox]),.theme-ann-grid select{width:100%;min-height:41px;border:1px solid #dce4ef;border-radius:8px;padding:9px 12px;background:#fff;color:#243652}
.theme-ann-grid .theme-ann-check{display:flex;gap:9px}.theme-ann-live{padding:14px;text-align:center;border-radius:8px;background:var(--theme-announcement-bg,#25376b);color:#fff}
@media(max-width:850px){.theme-ann-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.theme-ann-grid,.theme-ann-pair{grid-template-columns:1fr}}

/* Sticky announcement and header should remain separate rather than overlap. */
body:has(>.ann-scroll-sticky) .site-header{top:38px}
body:has(>.ann-scroll-sticky.ann-compact) .site-header{top:29px}
body:has(>.ann-scroll-sticky.ann-large) .site-header{top:56px}
@media(min-width:821px){body:has(>.ann-no-desktop) .site-header{top:0}}
@media(max-width:820px){body:has(>.ann-no-mobile) .site-header{top:0}}

.theme-ann-items{display:grid;gap:10px;padding:14px}
.theme-ann-entry{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 38px;align-items:end;gap:12px;padding:12px;background:#fbfcff;border:1px solid #e4eaf4;border-radius:9px}
.theme-ann-entry label{display:grid;gap:6px;color:#5e6e86;font-size:13px;font-weight:650}
.theme-ann-entry input{min-height:41px;width:100%;padding:10px;border:1px solid #d9e2ef;border-radius:8px;background:#fff;font-size:14px}
.theme-ann-remove{min-height:40px;border:1px solid #f1d1d8;border-radius:8px;color:#bd4658;background:#fff;cursor:pointer}
.theme-ann-remove:hover{background:#fff1f3}
.theme-ann-add{justify-self:start;margin:0 14px 15px;border:1px solid #cbd6f4;background:#f0f3ff;color:#4356bc;padding:10px 14px;border-radius:8px;cursor:pointer;font-weight:700}
.theme-ann-grid .theme-ann-check{display:inline-flex;flex-direction:row;gap:10px;align-items:center;justify-content:flex-start;padding:9px 12px;border:1px solid #e0e6ef;background:#fbfcff;border-radius:8px;min-height:42px}
.theme-ann-grid .theme-ann-check input[type=checkbox]{appearance:auto;width:17px;height:17px;min-height:0;accent-color:#4056d6;flex:none}
.theme-ann-grid .theme-ann-check span{font-size:13px}
.theme-ann-icon-wrap{position:relative;display:grid;align-content:start;gap:7px}
.theme-ann-icon-wrap>label{font-size:13px;font-weight:650;color:#586982}
.theme-ann-icon-trigger{min-height:41px;display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:1px solid #dce4ef;border-radius:8px;cursor:pointer;color:#354a70}
.theme-ann-icon-modal[hidden]{display:none!important}
.theme-ann-icon-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:50px;background:rgba(15,23,42,.55)}
.theme-ann-icon-dialog{display:flex;flex-direction:column;width:100%;height:100%;min-width:0;max-height:100%;overflow:hidden;border-radius:8px;background:#fff;color:#101828;box-shadow:0 25px 70px rgba(0,0,0,.2);font:inherit}
.theme-ann-icon-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:20px 22px;border-bottom:1px solid #e6eaf0}
.theme-ann-icon-header h3{margin:0;font-size:18px;line-height:1.5}.theme-ann-icon-header p{margin:5px 0 0;color:#7b8798;font-size:13px}
.theme-ann-icon-close{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:1px solid #dce3ee;border-radius:5px;background:#fff;color:#101828;cursor:pointer}
.theme-ann-icon-search{display:flex;align-items:center;gap:10px;flex:none;margin:17px 22px;padding:0 12px;border:1px solid #dce3ee;border-radius:5px}
.theme-ann-icon-search>i{color:#98a2b3}.theme-ann-icon-search input{width:100%;min-width:0;flex:1;height:43px;padding:0;border:0;outline:0;background:#fff;color:#243652;font:inherit;font-size:14px;box-shadow:none}
.theme-ann-icon-search:focus-within{border-color:#6475ee;box-shadow:0 0 0 2px #eef2ff}
.theme-ann-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));align-content:start;gap:12px;flex:1 1 auto;min-height:0;padding:12px 24px 24px;overflow-y:auto;overscroll-behavior:contain}
.theme-ann-icon-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:92px;padding:10px 8px;border:1px solid #e1e7f0;border-radius:5px;background:#fff;color:#394b7e;font:inherit;cursor:pointer}
.theme-ann-icon-option i{font-size:22px}.theme-ann-icon-option span{max-width:100%;overflow:hidden;color:#667085;font-size:11px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}
.theme-ann-icon-option:hover,.theme-ann-icon-option.is-selected{border-color:#6475ee;background:#eef2ff}
.theme-ann-icon-option:focus-visible,.theme-ann-icon-close:focus-visible,.theme-ann-icon-cancel:focus-visible{outline:2px solid #6475ee;outline-offset:2px}
.theme-ann-icon-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:13px 22px;border-top:1px solid #e6eaf0;color:#667085;font-size:13px}
.theme-ann-icon-cancel{padding:8px 15px;border:1px solid #dce3ee;border-radius:5px;background:#fff;color:#101828;font:inherit;cursor:pointer}
.theme-ann-icon-empty{grid-column:1/-1;padding:30px 0;color:#667085;text-align:center}
@media(max-width:760px){.theme-ann-icon-modal{padding:12px}.theme-ann-icon-dialog{height:calc(100dvh - 24px)}.theme-ann-icon-header{padding:14px}.theme-ann-icon-search{margin:12px}.theme-ann-icon-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 12px 12px}.theme-ann-icon-option{min-height:76px}.theme-ann-icon-footer{padding:12px 14px}}
@media(max-width:680px){.theme-ann-entry{grid-template-columns:1fr 38px}.theme-ann-entry label:first-child{grid-column:1/-1}.theme-ann-entry label:nth-child(2){grid-column:1}}
