/* ── Eval paper detail page ──────────────────────────────── */
/* Clean, minimal layout inspired by the demo design,
   adapted to the paperflow navy/maroon system.            */

* { margin: 0; padding: 0; box-sizing: border-box; }

.eval-paper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0c1220;
  color: #e2e8f0;
  line-height: 1.5;
}

/* ── Background grid ──────────────────────────────────────── */

.eval-paper .bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(169, 28, 33, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 28, 33, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* ── Site header ──────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 16px;
  border-bottom: 1px solid rgba(169, 28, 33, 0.15);
  max-width: 960px;
  margin: 0 auto;
}

.header-logo {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-logo span {
  color: #d4393f;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #ffffff;
}

/* ── Main content ─────────────────────────────────────────── */

.eval-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 16px 2.5rem;
}

/* ── Breadcrumb ──────────────────────────────────────────── */

.eval-breadcrumb-bar {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 16px;
}

.breadcrumb {
  display: inline-block;
  font-size: 0.85rem;
  line-height: normal;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.breadcrumb:hover {
  color: #f47171;
}

/* ── Paper header ─────────────────────────────────────────── */

.paper-header {
  margin-bottom: 16px;
}

.paper-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: normal;
  margin-bottom: 0.25rem;
}

.paper-title .count {
  font-weight: 400;
  color: #94a3b8;
}

.paper-audiences {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.paper-audiences .badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-ewg  { background: rgba(20,184,166,0.12);  color: #14b8a6; border: 1px solid rgba(20,184,166,0.25); }
.badge-lewg { background: rgba(110,168,254,0.12); color: #6ea8fe; border: 1px solid rgba(110,168,254,0.25); }
.badge-cwg  { background: rgba(240,160,80,0.12);  color: #f0a050; border: 1px solid rgba(240,160,80,0.25); }
.badge-lwg  { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }
.badge-sg   { background: rgba(138,154,168,0.08); color: #8a9aa8; border: 1px solid rgba(138,154,168,0.15); }
.badge-wg21 { background: rgba(148,163,184,0.10); color: #94a3b8; border: 1px solid rgba(148,163,184,0.20); }
.badge-unknown { background: rgba(100,116,139,0.10); color: #64748b; border: 1px solid rgba(100,116,139,0.18); }

.paper-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
}

.paper-link:hover {
  color: #f47171;
}

.paper-authors {
  font-size: 14px;
  color: #94a3b8;
}

/* ── Summary / abstract ───────────────────────────────────── */

.paper-summary {
  font-size: 14px;
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ── Findings list ────────────────────────────────────────── */

.findings-heading {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: #f47171;
  padding: 1px 8px;
  letter-spacing: 0.02em;
}

.findings-heading-zero {
  background: #22c55e;
}

.findings-list {
  list-style: none;
  border-left: 2px solid #f47171;
  padding-left: 16px;
  margin-bottom: 32px;
}

.findings-list li {
  padding-top: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.6;
}

.finding-loc {
  color: #f47171;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 13px;
}

.finding-ref {
  color: #f47171;
  font-size: 12px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.finding-ref:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── References section ───────────────────────────────────── */

.references {
  border-top: 1px solid #2a3550;
  padding-top: 16px;
  margin-bottom: 24px;
}

.references h3 {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.ref-item {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  line-height: 1.5;
}

.ref-num {
  color: #f47171;
  font-weight: 600;
}

.ref-chars {
  color: #64748b;
}

.ref-text {
  color: #4a5568;
  font-style: italic;
}

/* ── Eval summary ─────────────────────────────────────────── */

.eval-summary {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
  line-height: 1.6;
}

.eval-summary strong {
  color: #e2e8f0;
}

/* ── Pipeline note ────────────────────────────────────────── */

.pipeline-note {
  padding: 16px;
  border: 1px solid #2a3550;
  border-radius: 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.pipeline-note strong {
  color: #94a3b8;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 16px;
  border-top: 1px solid rgba(169, 28, 33, 0.15);
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: underline;
}

/* ── Mobile ───────────────────────────────────────────────── */

@media (max-width: 600px) {
  .site-header {
    padding: 1rem 12px;
  }

  .eval-breadcrumb-bar {
    padding: 12px 12px 0;
  }

  .eval-content {
    padding: 0 12px 32px;
  }

  .paper-title {
    font-size: 17px;
  }
}
