/* assets/css/news_pane.css — News reader pane (REQUIREMENTS_NEWS_PANE_20261119.md) */

.news-pane-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none; /* toggled by .is-open */
  align-items: center; justify-content: center;
}
.news-pane-modal.is-open { display: flex; }

.news-pane-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}

.news-pane-dialog {
  position: relative;
  background: #fff; color: #1a1a1a;
  width: min(820px, 94vw); max-height: 90vh;
  border-radius: 10px; box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; overflow: hidden;
}

.news-pane-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid #e5e5e5;
  background: #f7f7f7;
}
.news-pane-title {
  flex: 1; font-size: .95rem; font-weight: 600; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-pane-controls { display: flex; gap: 6px; flex-shrink: 0; }
.news-pane-btn {
  font: inherit; font-size: .85rem; cursor: pointer;
  padding: 5px 10px; border: 1px solid #ccc; border-radius: 6px;
  background: #fff; color: #333;
}
.news-pane-btn:hover { background: #eee; }
.news-pane-close { border-color: transparent; font-size: 1rem; line-height: 1; }

.news-pane-body-wrap {
  flex: 1; overflow: auto; padding: 22px 26px 32px;
}
.news-pane-spinner {
  color: #666; font-size: 1rem; padding: 40px 0; text-align: center;
}
.news-pane-body { display: none; }
.news-pane-modal.is-open .news-pane-body { display: block; }

/* Download bar — sits directly above the rendered article, hidden
   until the article body has loaded and is visible. */
.news-pane-download-bar {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #eef4fb;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  text-align: center;
}
.news-pane-download-bar[hidden] { display: none; }
.news-pane-download-btn {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: 8px 18px; border: 1px solid #2a6dbb; border-radius: 6px;
  background: #2a6dbb; color: #fff;
}
.news-pane-download-btn:hover { background: #1f5a9d; border-color: #1f5a9d; }

.news-pane-error {
  padding: 32px 8px; color: #933; font-size: .95rem; text-align: center;
}
.news-pane-error a { color: #06c; }

/* Reader article content (cleaned HTML injected from cache) */
.news-pane-body .nr-article { font-family: Georgia, "Times New Roman", serif; line-height: 1.6; color: #1a1a1a; }
.news-pane-body .nr-header { margin-bottom: 14px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.news-pane-body .nr-headline { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.25; }
.news-pane-body .nr-byline { font-size: .9rem; color: #555; font-style: italic; }
.news-pane-body .nr-date { display: block; font-size: .85rem; color: #777; margin-top: 4px; }
.news-pane-body .nr-body p { margin: 0 0 14px; font-size: 1.02rem; }
.news-pane-body .nr-body h2,
.news-pane-body .nr-body h3,
.news-pane-body .nr-body h4 { margin: 22px 0 10px; line-height: 1.3; font-family: inherit; }
.news-pane-body .nr-body h2 { font-size: 1.2rem; }
.news-pane-body .nr-body h3 { font-size: 1.08rem; }
.news-pane-body .nr-body ul,
.news-pane-body .nr-body ol { margin: 0 0 14px; padding-left: 24px; }
.news-pane-body .nr-body blockquote {
  margin: 0 0 14px; padding: 6px 16px; border-left: 3px solid #ccc; color: #444;
}
.news-pane-body .nr-body figure { margin: 0 0 16px; }
.news-pane-body .nr-body figcaption { font-size: .82rem; color: #777; margin-top: 4px; }
.news-pane-body .nr-body img { max-width: 100%; height: auto; border-radius: 4px; }
.news-pane-body .nr-body a { color: #06c; }
.news-pane-body .nr-body pre {
  background: #f4f4f4; padding: 12px; border-radius: 6px; overflow: auto;
  font-size: .85rem; white-space: pre-wrap;
}

/* Mobile: near-full-screen sheet (Q9) */
@media (max-width: 720px) {
  .news-pane-dialog { width: 100vw; max-height: 100vh; border-radius: 0; }
  .news-pane-body-wrap { padding: 16px; }
  .news-pane-title { font-size: .82rem; }
}
