/* 뉴스/시황 카드뉴스 — 피드쏠 화면과 같은 톤 */

.news-briefing-page,
#news-card-container.news-briefing-stack {
  --ink: #222;
  --muted: #6b7280;
  --line: #e8eef4;
  --accent: #3b9feb;
  --card: #fff;
}

.news-briefing-page {
  --max: 540px;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 40px;
  color: var(--ink);
}

.news-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.news-masthead-kicker {
  display: none;
}

.news-masthead h1,
.news-masthead h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.news-admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.briefing-datebar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.briefing-datebar .briefing-nav {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.briefing-datebar .briefing-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.briefing-date-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: 2px 0;
}

.briefing-date-chips::-webkit-scrollbar {
  display: none;
}

.briefing-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}

.briefing-chip small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  margin: 0 0 2px;
}

.briefing-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.briefing-chip.is-active small {
  color: rgba(255, 255, 255, 0.85);
}

.briefing-hero {
  display: block;
  margin: 0 auto 10px;
  max-width: var(--max);
}

.briefing-hero-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.briefing-hero-date {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
}

.ai-disclaimer,
#aiDisclaimer {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.briefing-hero-meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
}

.briefing-hero-meta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.news-card-carousel {
  position: relative;
  margin: 0 auto;
  max-width: var(--max);
}

.news-card-deck {
  position: relative;
}

.news-card-deck::before,
.news-card-deck::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 100%;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 0;
}

.news-card-deck::before {
  top: 8px;
  transform: scale(0.98);
  opacity: 0.7;
}

.news-card-deck::after {
  top: 16px;
  transform: scale(0.96);
  opacity: 0.4;
}

.news-card-slide {
  position: relative;
  z-index: 1;
  min-height: 400px;
  padding: 26px 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-card-slide.is-enter {
  opacity: 0.35;
  transform: translateX(12px);
}

.news-card-kicker,
.news-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

/* 장수 워터마크 — 테두리 악센트 대신 */
.news-card-index {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  pointer-events: none;
  letter-spacing: -0.06em;
}

.news-card-brand {
  display: none;
}

.news-card-issue {
  margin-left: auto;
  font-size: 13px;
  color: #9ca3af;
  font-weight: 700;
}

.news-card-source {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1d6fbf;
  border-radius: 4px;
  padding: 3px 8px;
}

.news-card-slide h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 16px;
}

.news-card-slide p.news-card-body {
  font-size: 15px;
  line-height: 1.75;
  color: #4b5563;
  margin: 0;
  flex: 1;
  word-break: keep-all;
}

.news-card-slide .news-briefing-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.news-briefing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.news-briefing-source {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.news-briefing-search {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  border-radius: 999px;
  padding: 6px 12px;
}

.news-briefing-search.is-grounded {
  background: var(--accent);
  color: #fff;
}

.news-card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #374151;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.news-card-nav.is-prev {
  left: -14px;
}

.news-card-nav.is-next {
  right: -14px;
}

.news-card-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.news-card-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}

.news-card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #d1d5db;
  cursor: pointer;
}

.news-card-dot.is-active {
  background: var(--accent);
  width: 18px;
  border-radius: 999px;
}

.news-card-bar,
.news-card-hint,
.news-card-slide-top,
.news-card-progress {
  display: none;
}

.news-briefing-empty {
  text-align: center;
  padding: 48px 16px;
  color: #9ca3af;
  font-size: 14px;
}

.news-briefing-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 16px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.news-briefing-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}

.news-briefing-body h5 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  line-height: 1.4;
}

.news-briefing-body p {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 10px;
  line-height: 1.65;
}

#news-card-container.news-briefing-stack {
  display: block;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 20px;
}

.video-post-section {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.video-post-section h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #374151;
}

.video-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
  cursor: pointer;
}

.video-post-item:hover {
  border-color: #cfe6fb;
}

.video-post-title {
  font-weight: 600;
  color: #1f2937;
}

.video-post-meta {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .news-card-slide {
    min-height: 360px;
    padding: 22px 18px 18px;
  }

  .news-card-slide h3 {
    font-size: 20px;
  }

  .briefing-hero-date {
    font-size: 18px;
  }

  .news-card-nav.is-prev {
    left: -4px;
  }

  .news-card-nav.is-next {
    right: -4px;
  }

  .news-briefing-card {
    grid-template-columns: 28px 1fr;
  }
}