/* VQkit right-hand, vertically scrolling news ticker */
:root { --vq-news-width: 288px; }
#vq-news-panel { position: fixed; z-index: 90; right: 18px; top: 90px; width: var(--vq-news-width); max-height: min(70vh, 530px); background: #fff; border: 1px solid #d9e6f4; box-shadow: 0 4px 18px rgba(13,38,75,.1); border-radius: 12px; overflow: hidden; font-family: inherit; color: #20324c; }
#vq-news-panel .vq-news-head { display:flex; align-items:center; gap:8px; padding:14px; background:#f5faff; border-bottom:1px solid #d5e8fb; font-weight:700; }
#vq-news-panel .vq-news-live { width:8px;height:8px;border-radius:50%;background:#1bbd7e;box-shadow:0 0 0 3px #dcf9ec; }
#vq-news-panel .vq-news-window { height:350px; overflow:hidden; position:relative; mask-image:linear-gradient(to bottom,transparent,black 6%,black 94%,transparent); }
#vq-news-panel .vq-news-track { animation:vq-news-roll 32s linear infinite; will-change:transform; }
#vq-news-panel:hover .vq-news-track, #vq-news-panel:focus-within .vq-news-track { animation-play-state:paused; }
#vq-news-panel .vq-news-item { display:block; padding:13px 15px; text-decoration:none; color:inherit; border-bottom:1px solid #e7eef6; min-height:82px; box-sizing:border-box; }
#vq-news-panel .vq-news-item:hover, #vq-news-panel .vq-news-item:focus-visible { background:#edf6ff; outline-offset:-2px; }
#vq-news-panel .vq-news-date { color:#657b96; font-size:12px; display:block; margin-bottom:4px; }
#vq-news-panel .vq-news-title { color:#123860; font-size:14px; font-weight:700; display:block; line-height:1.35; }
#vq-news-panel .vq-news-summary { display:block; font-size:12px; line-height:1.45; margin-top:4px; }
#vq-news-panel .vq-news-footer { padding:9px 14px; text-align:center; font-size:11px; color:#64748b; background:#f8fafc; border-top:1px solid #e7eef6; }
/* The track contains two identical sets of cards: translate by half for seamless loop. */
@keyframes vq-news-roll { from { transform: translateY(0); } to { transform:translateY(-50%); } }
@media (prefers-reduced-motion:reduce) { #vq-news-panel .vq-news-track { animation:none; } #vq-news-panel .vq-news-window { overflow-y:auto; } #vq-news-panel .vq-news-track .vq-news-repeat { display:none; } }
/* Wide desktop: reserve space for the panel. */
@media (min-width: 1450px) {
  body:has(#vq-news-panel) .wy-nav-content-wrap { margin-right: 320px; }
  body:has(#vq-news-panel) .wy-nav-content { max-width: none; }
}
/* Standard desktop: smaller panel and corresponding right-column gap. */
@media (min-width: 1200px) and (max-width: 1449px) {
  :root { --vq-news-width: 248px; }
  #vq-news-panel { right: 12px; }
  body:has(#vq-news-panel) .wy-nav-content-wrap { margin-right: 276px; }
  body:has(#vq-news-panel) .wy-nav-content { max-width: none; }
}
/* Narrow screens: hide the panel rather than cover documentation. */
@media (max-width: 1199px) {
  #vq-news-panel { display: none; }
}
