/* The Peptide Index — report-specific styles */

/* Report page shell */
.report-page { background: var(--bg); }
.report-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.75rem 4rem;
}

/* Cover */
.report-cover {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  margin: 2.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.report-cover::before,
.report-cover::after { content: none; }
.cover-mark {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.report-cover h1 {
  color: white;
  margin-bottom: 1rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}
.cover-sub {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.cover-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.cover-stat { text-align: center; }
.cover-stat-num {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: white;
}
.cover-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-top: 0.4rem;
}
.cover-foot {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 1.5rem;
}

/* Summary sections */
.exec-summary,
.method-summary,
.starter-protocol,
.contested,
.sources-summary {
  margin: 2.5rem 0;
}
.exec-summary h2,
.method-summary h2,
.starter-protocol h2,
.contested h2,
.sources-summary h2 {
  border-left: 3px solid var(--primary);
  padding-left: 0.9rem;
  margin-bottom: 1rem;
}

/* Category sections */
.cat-section { margin: 3rem 0; }
.cat-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.cat-header h2 {
  margin: 0 0 0.5rem;
  border-left: none;
  padding-left: 0;
}
.cat-meta {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Peptide entry */
.peptide-entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.peptide-head { margin-bottom: 1.25rem; }
.peptide-head h2 {
  margin: 0 0 0.35rem;
  border-left: none;
  padding-left: 0;
  font-size: 1.85rem;
}
.peptide-sub {
  color: var(--text-3);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.peptide-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Grade badges */
.grade {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.grade-tractable { background: var(--primary-soft); color: var(--primary-darkest); }
.grade-plausible { background: var(--lavender-soft); color: var(--secondary-deep); }
.grade-speculative { background: rgba(189, 40, 70, 0.10); color: var(--warn); }
.grade-experimental { background: rgba(15, 20, 25, 0.08); color: var(--text-2); }

/* PEI block */
.pei-block { margin: 1.5rem 0; }
.pei-block h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--text-2);
}
.pei-total {
  font-size: 0.95rem;
  color: var(--text-2);
}
.pei-total strong { color: var(--text); font-weight: 700; }
.pei-of { color: var(--text-3); font-weight: 400; }

.pei-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 4.5rem;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.pei-row:last-of-type { border-bottom: none; }
.pei-label {
  font-size: 0.92rem;
  color: var(--text-2);
}
.pei-track {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.pei-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-deep) 100%);
  border-radius: 999px;
  min-width: 4px;
}
.pei-score {
  text-align: right;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pei-method-note {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}
.pei-method-note a { color: var(--primary-deep); }

/* Safety grid */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.safety-cell {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.safety-cell h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin: 0 0 0.5rem;
}
.safety-cell p {
  font-size: 0.92rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

/* Dose block */
.dose-block {
  background: linear-gradient(135deg, var(--primary-soft), var(--lavender-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.dose-block h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.dose-block p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.dose-block p:last-child { margin-bottom: 0; }

/* Sources line */
.sources {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.sources p { margin-bottom: 0.35rem; }
.sources p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 900px) {
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .report-shell { padding: 0 1.25rem 3rem; }
  .report-cover { padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); }
  .cover-stat-num { font-size: 2.25rem; }
  .cover-stats { gap: 1.25rem; }
  .peptide-entry { padding: 1.25rem; }
  .peptide-head h2 { font-size: 1.5rem; }
  .pei-row {
    grid-template-columns: 1fr 3.5rem;
    gap: 0.5rem 0.75rem;
  }
  .pei-track { grid-column: 1 / -1; }
  .safety-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .peptide-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .pei-row { grid-template-columns: 1fr 3rem; }
}
