/* Public announcement bell and the combined Watchlists navigation. */
/* Desktop-only subtle dividers make the top-level links easier to scan.
   No literal hyphens or pseudo elements inside the dropdown/mobile menu. */
@media(min-width:1351px) {
  .site-header .main-nav > a:not(:first-child)::before,
  .site-header .main-nav > .watchlists-menu > summary::before {
    content:"";
    position:absolute;
    top:50%;
    left:-10px;
    width:1px;
    height:13px;
    background:#a79bb659;
    transform:translateY(-50%);
    pointer-events:none;
  }
}

.site-header { position:relative; z-index:25; }
/* Reserve room for account names without splitting desktop navigation labels. */
@media(min-width:1251px) {
  .site-header { gap:18px; padding-inline:max(28px,calc((100vw - 1440px)/2)); }
  .site-header .main-nav { flex-shrink:0; }
  .site-header .main-nav > a { white-space:nowrap; }
}
@media(min-width:1251px) and (max-width:1500px) {
  .site-header { flex-wrap:wrap; }
  .site-header .header-actions { margin-left:auto; }
  .site-header > .main-nav { order:4; flex-basis:100%; justify-content:center; }
}
.site-header .main-nav { gap:clamp(10px,1.35vw,21px); }
.watchlists-menu { position:relative; color:var(--muted); font-size:.95rem; font-weight:400; line-height:1.5; }
.watchlists-menu>summary { position:relative; cursor:pointer; display:flex; align-items:center; gap:5px; min-height:0; padding:12px 0; font:inherit; list-style:none; white-space:nowrap; }
.watchlists-menu>summary::-webkit-details-marker { display:none; }
.watchlists-menu>summary .watchlists-chevron { display:grid; place-items:center; width:12px; height:12px; flex:none; transition:transform .16s ease; }
.watchlists-menu>summary .watchlists-chevron svg { display:block; width:12px; height:12px; }
.watchlists-menu[open]>summary .watchlists-chevron { transform:rotate(180deg); }
.watchlists-menu[open]>summary, .watchlists-menu>summary:hover { color:var(--text); }
.watchlists-menu:has([aria-current="page"])>summary { color:var(--text); }
.watchlists-submenu { position:absolute; z-index:36; top:calc(100% + 23px); left:0; min-width:210px; display:grid; gap:2px; padding:9px; border:1px solid #675475; border-radius:10px; background:#24202f; box-shadow:0 16px 32px #000a; }
.site-header .main-nav .watchlists-submenu > a { display:flex; align-items:center; box-sizing:border-box; width:100%; min-height:44px; margin:0; padding:10px 13px; border:0; border-radius:7px; background:transparent; color:var(--muted); font-size:.9rem; font-weight:400; line-height:1.5; text-align:left; white-space:nowrap; cursor:pointer; transition:background-color .15s ease, color .15s ease; }
.site-header .main-nav .watchlists-submenu > a:is(:hover,:focus-visible),
.site-header .main-nav .watchlists-submenu > a[aria-current="page"] { background:#57364f; color:#fff4fa; box-shadow:inset 3px 0 0 #ff85be; }
.site-header .main-nav .watchlists-submenu > a:focus-visible { outline:2px solid #ffc7e3; outline-offset:-2px; }
.site-header .main-nav .watchlists-submenu > a[aria-current="page"]::after { display:none; }
.notification-center { position:relative; display:flex; align-items:center; flex-shrink:0; }
.notification-trigger { position:relative; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); }
.notification-trigger:hover, .notification-trigger[aria-expanded="true"] { border-color:#ed96c0; color:#ffd0e6; }
.notification-count { position:absolute; top:-7px; right:-7px; min-width:20px; height:20px; padding:0 4px; display:grid; place-items:center; border-radius:20px; background:#ff85be; color:#19131a; font-size:.68rem; font-weight:850; box-shadow:0 0 0 2px #101216; }
.notification-popover { position:absolute; z-index:42; top:calc(100% + 13px); right:0; width:min(400px,calc(100vw - 24px)); max-height:min(590px,calc(100dvh - 105px)); overflow:auto; scrollbar-width:thin; scrollbar-color:#bc79a0 #1b1e29; padding:17px; border:1px solid #785671; border-radius:13px; background:#1d202b; color:#f5edf4; box-shadow:0 20px 55px #000d; }
/* WebKit/Chromium use a subtle dark track with a pink scroll thumb. */
.notification-popover::-webkit-scrollbar { width:9px; }
.notification-popover::-webkit-scrollbar-track { background:#1b1e29; border-radius:12px; }
.notification-popover::-webkit-scrollbar-thumb { background:#bc79a0; border:2px solid #1b1e29; border-radius:12px; }
.notification-popover::-webkit-scrollbar-thumb:hover { background:#f2a3cd; }
.notification-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.notification-heading h2 { margin:0; font-size:1.15rem; }
.notification-heading button { padding:7px 0; background:transparent; color:#ffbedc; font-size:.76rem; font-weight:750; }
.notification-heading button:disabled { opacity:.5; }
.notification-intro { margin:5px 0 14px; color:#b8bdc9; font-size:.78rem; }
.notification-messages { display:grid; gap:9px; }
.notification-message { display:grid; gap:5px; padding:13px; border:1px solid #3f4656; border-radius:9px; background:#252b39; }
.notification-message.is-unread { background:#352638; border-color:#d788b1; }
.notification-message:hover { background:#393245; border-color:#ffbadd; }
.notification-message strong { line-height:1.4; font-size:.92rem; }
.notification-meta { color:#f3b4d2; font-size:.72rem; font-weight:750; }
.notification-summary { color:#c6cbda; font-size:.81rem; line-height:1.5; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.notification-action { color:#ffbddc; font-size:.78rem; font-weight:750; }
.notification-view-news { display:block; margin-top:13px; padding:10px; text-align:center; color:#ffe3f1; border:1px solid #a86c90; border-radius:8px; background:#56334c; font-size:.84rem; font-weight:700; }
@media(max-width:1250px) {
  /* The hamburger already expands; show both Watchlists links directly instead of a nested menu. */
  .site-header .main-nav .watchlists-menu { grid-column:1/-1; }
  .site-header .main-nav .watchlists-menu>summary { display:none; }
  .site-header .main-nav .watchlists-submenu { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 16px; min-width:0; padding:0; margin:0; border:0; border-radius:0; background:none; box-shadow:none; }
  .site-header .main-nav .watchlists-submenu > a { min-width:0; min-height:48px; padding:12px; font-size:.95rem; white-space:normal; }
}
@media(max-width:600px) {
  .notification-popover { position:fixed; top:85px; left:12px; right:12px; width:auto; max-height:min(520px,calc(100dvh - 105px)); }
}
@media(max-width:340px) { .site-header .brand-copy { display:none; } }
@media(prefers-reduced-motion:reduce) { .watchlists-menu>summary .watchlists-chevron, .site-header .main-nav .watchlists-submenu > a { transition:none; } }

.notification-message { min-width:0; text-align:left; color:inherit; font:inherit; overflow-wrap:anywhere; }
.notification-server .notification-summary { display:block; white-space:pre-wrap; -webkit-line-clamp:unset; }

/* Ten server announcements per page, with discreet accessible paging controls. */
.notification-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:4px; }
.notification-page-count { color:#c6cbda; font-size:.73rem; text-align:center; }
.notification-page-button { min-width:70px; min-height:36px; padding:7px 10px; border:1px solid #a86c90; border-radius:8px; background:#56334c; color:#ffe3f1; font-size:.8rem; font-weight:700; cursor:pointer; }
.notification-page-button:not(:disabled):is(:hover,:focus-visible) { border-color:#ffbadd; background:#6b405a; }
.notification-page-button:focus-visible { outline:2px solid #ffbadd; outline-offset:2px; }
.notification-page-button:disabled { opacity:.42; cursor:default; }
