/* ---------- News panel ---------- */
.news-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(24px);
  animation: rise 0.7s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
}
.news-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.news-title-text { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.more-headlines {
  margin-top: 12px; background: none; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted-2); font-size: 11.5px; font-weight: 600;
  padding: 7px 16px; font-family: var(--font-body);
  transition: all 0.22s; -webkit-tap-highlight-color: transparent;
}
.more-headlines:hover { color: var(--accent); border-color: rgba(56,189,248,0.5); }
.news-summary { font-size: 13.5px; color: var(--muted-2); line-height: 1.8; margin-bottom: 14px; }
.news-headlines { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.news-headlines li {
  font-size: 12.5px; color: var(--muted); padding: 4px 0 4px 14px;
  border-left: 2px solid rgba(56,189,248,0.3); line-height: 1.6;
  opacity: 0; transform: translateX(-10px);
  animation: slideIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.news-headlines li.linked { cursor: pointer; }
.news-headlines li.linked:hover { color: var(--text); border-color: var(--accent); transform: translateX(4px) !important; }
.news-headlines li.linked::after { content: " ↗"; color: var(--accent); font-size: 10px; opacity: 0; transition: opacity 0.25s; }
.news-headlines li.linked:hover::after { opacity: 1; }
.no-news { font-size: 13px; color: var(--muted); font-style: italic; line-height: 1.7; }
.no-news code { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); background: rgba(56,189,248,0.08); padding: 2px 6px; border-radius: 6px; font-style: normal; }

/* ---------- Article modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(3,5,10,0.7); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(620px, 100%); max-height: 78vh; overflow-y: auto;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.modal-title { font-family: var(--font-disp); font-size: 16px; font-weight: 700; line-height: 1.45; }
.modal-close {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--muted-2); border-radius: 10px; cursor: pointer;
  width: 32px; height: 32px; font-size: 13px; flex-shrink: 0;
  transition: all 0.2s;
}
.modal-close:hover { color: var(--text); border-color: var(--border-hi); transform: rotate(90deg); }
.modal-body { font-size: 13.5px; color: var(--muted-2); line-height: 1.85; white-space: pre-line; margin-bottom: 18px; }
.modal-loader { display: flex; gap: 6px; padding: 18px 0; }
.modal-loader span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: bounceDot 1.1s ease-in-out infinite;
}
.modal-loader span:nth-child(2) { animation-delay: 0.15s; }
.modal-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounceDot { 40% { transform: translateY(-8px); opacity: 0.5; } }
.modal-link {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  text-decoration: none; border-bottom: 1px dashed rgba(56,189,248,0.4);
  transition: border-color 0.2s;
}
.modal-link:hover { border-bottom-style: solid; }
