/* 파일: 뉴스 리더 오버레이·홈/뉴스 공통. 설명( rss-loader 가 .news-reader-overlay 를 제어. ) */
.news-reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.news-reader-overlay.is-open {
  display: flex;
}

.news-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 28, 0.72);
  backdrop-filter: blur(4px);
}

.news-reader-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid rgba(47, 143, 95, 0.28);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(31, 47, 38, 0.2);
  padding: 24px 22px 20px;
  color: #2a4033;
}

.news-reader-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f0f8f3;
  color: #2a4033;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.news-reader-close:hover {
  background: rgba(79, 158, 255, 0.25);
}

.news-reader-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 10px;
  padding-right: 40px;
  font-size: 12px;
  color: var(--gray-400, #9aa8c4);
}

.news-reader-source {
  font-weight: 600;
  color: var(--accent, #4f9eff);
}

.news-reader-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.news-reader-title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: #1f2f26;
  letter-spacing: -0.02em;
}

.news-reader-related-wrap {
  flex: 0 0 auto;
  max-width: min(46%, 240px);
  margin: 4px 0 0;
  align-self: center;
}

.news-reader-related-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
}

.news-related-pill {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 118px;
  padding: 5px 11px;
  border-radius: 999px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.news-related-pill:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.news-related-pill.up {
  background: rgba(255, 107, 107, 0.22);
  color: #c62828;
}

.news-related-pill.down {
  background: rgba(100, 149, 237, 0.24);
  color: #1565c0;
}

.news-related-pill.flat {
  background: rgba(120, 130, 140, 0.16);
  color: #4a5568;
}

.news-related-loading {
  font-size: 12px;
  color: var(--gray-400, #9aa8c4);
  padding: 4px 0;
}

.news-reader-lead {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-300, #c5d0e5);
  margin-bottom: 20px;
  white-space: pre-wrap;
}

.news-reader-image-wrap {
  margin: 6px 0 16px;
}

.news-reader-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(79, 158, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.news-reader-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  max-height: 220px;
  padding: 20px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(47, 143, 95, 0.35);
  background: linear-gradient(160deg, #eef5f1 0%, #e2ebe5 50%, #d5e4dc 100%);
  text-align: center;
  box-sizing: border-box;
}

.news-reader-image-placeholder-graphic {
  width: 52px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid rgba(47, 143, 95, 0.28);
  background: rgba(255, 255, 255, 0.65);
  position: relative;
  flex-shrink: 0;
}

.news-reader-image-placeholder-graphic::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 8px;
  border-radius: 3px;
  background: rgba(47, 143, 95, 0.18);
}

.news-reader-image-placeholder-label {
  font-size: 13px;
  font-weight: 700;
  color: #4a6658;
  line-height: 1.4;
  max-width: 28em;
}

.news-reader-image-placeholder-source {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400, #9aa8c4);
}

.news-reader-digest-section {
  margin-bottom: 20px;
  padding: 16px 14px;
  border-radius: 12px;
  background: rgba(79, 158, 255, 0.08);
  border: 1px solid rgba(79, 158, 255, 0.2);
}

.news-reader-digest-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent, #4f9eff);
}

.news-reader-digest {
  font-size: 14px;
  line-height: 1.7;
  color: #30483a;
  white-space: pre-wrap;
}

.news-reader-digest.is-muted {
  color: var(--gray-400, #9aa8c4);
  font-size: 13px;
}

.news-reader-original {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #4f9eff);
  text-decoration: none;
}

.news-reader-original:hover {
  text-decoration: underline;
}

.news-card.news-card--interactive {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}

.news-card.news-card--interactive:focus-visible {
  outline: 2px solid var(--accent, #4f9eff);
  outline-offset: 2px;
}

button.slide-read-more {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--accent, #4f9eff);
  font-weight: 600;
  padding: 0;
}

button.slide-read-more:hover {
  text-decoration: underline;
}
