/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #f5f5f5;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
.site-header {
  text-align: center;
  padding: 32px 0 16px;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 24px;
}

.site-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111;
}

.tagline {
  font-size: 0.875rem;
  color: #666;
  margin-top: 4px;
}

/* ===== Briefing Title ===== */
.briefing-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

/* ===== News Card ===== */
.news-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ===== Summary ===== */
.card-summary p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ===== Verification Tag ===== */
.card-verification {
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.tag--verified {
  background-color: #dcfce7;
  color: #166534;
}

.tag--unconfirmed {
  background-color: #fef3c7;
  color: #92400e;
}

.tag--misleading {
  background-color: #fecaca;
  color: #991b1b;
}

.verification-reason {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}

.evidence-list {
  list-style: none;
  margin-top: 6px;
}

.evidence-list li {
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.evidence-list li::before {
  content: "📎 ";
}

/* ===== Evidence Toggle ===== */
.evidence-toggle {
  margin-top: 8px;
}

.evidence-toggle summary {
  font-size: 0.8rem;
  color: #2563eb;
  cursor: pointer;
  font-weight: 500;
}

.evidence-toggle summary:hover {
  text-decoration: underline;
}

.evidence-toggle[open] summary {
  margin-bottom: 6px;
}

.search-widget {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

/* ===== Sources ===== */
.card-sources h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.source-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-list li a {
  font-size: 0.8rem;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 4px;
  color: #444;
}

.source-list li a:hover {
  background: #e0e0e0;
  text-decoration: none;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 24px 0 40px;
  border-top: 1px solid #e5e5e5;
  margin-top: 24px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 12px;
}

.support-link {
  display: inline-block;
  font-size: 0.85rem;
  background: #fbbf24;
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.support-link:hover {
  background: #f59e0b;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  body {
    padding: 0 12px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .news-card {
    padding: 16px;
    border-radius: 8px;
  }

  .card-headline {
    font-size: 1rem;
  }
}
