/*
 * laplace-report.css
 * Scoped styles for the AutoResearch@Home report.
 * All rules scoped under .laplace-report so they don't affect site chrome.
 * Element selectors use .prose .laplace-report to beat the blog layout's .prose rules.
 */


/* ============================================
 * CONTAINER & BASE
 * ============================================ */
.laplace-report {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1c1917;
}

.laplace-report *,
.laplace-report *::before,
.laplace-report *::after {
  box-sizing: border-box;
}

/* ============================================
 * LAYOUT
 * ============================================ */
.laplace-report .article-container {
  max-width: none;
  margin: 0 auto;
  padding: 0 0 3rem;
}

/* ============================================
 * TYPOGRAPHY - HEADINGS
 * ============================================ */
.prose .laplace-report h1,
.prose .laplace-report h2,
.prose .laplace-report h3,
.prose .laplace-report h4 {
  font-family: 'Crimson Pro', Georgia, serif;
  color: #1c1917;
  letter-spacing: 0;
  line-height: 1.3;
}

.prose .laplace-report h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.prose .laplace-report h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #c9a227;
}

.prose .laplace-report h2[id] {
  scroll-margin-top: 100px;
}

.prose .laplace-report h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #3f3a36;
}

.prose .laplace-report h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #5b544f;
}

/* ============================================
 * TYPOGRAPHY - BODY
 * ============================================ */
.prose .laplace-report p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #3f3a36;
  line-height: 1.7;
  font-size: 1.05rem;
}

.prose .laplace-report strong {
  font-weight: 600;
  color: #1c1917;
}

.prose .laplace-report em {
  font-style: italic;
}

.prose .laplace-report a {
  color: #c9a227;
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 39, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
  border-bottom: none;
}

.prose .laplace-report a:hover {
  text-decoration-color: #c9a227;
  color: #c9a227;
}

/* ============================================
 * ARTICLE HEADER
 * ============================================ */
.laplace-report .article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
}

.laplace-report .article-header .subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9a227;
  margin-bottom: 1rem;
  display: block;
}

.laplace-report .article-header .dateline {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #7a736e;
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

/* ============================================
 * METRIC CARD
 * ============================================ */
.laplace-report .metric-card {
  background: #f7f5f0;
  border: 1px solid #ebe9e0;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.laplace-report .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.laplace-report .metric-item {
  text-align: center;
}

.laplace-report .metric-value {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #1c1917;
  display: block;
  line-height: 1.3;
}

.laplace-report .metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a736e;
  margin-top: 0.25rem;
  display: block;
}

.laplace-report .metric-highlight {
  border-top: 2px solid #c9a227;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  text-align: center;
}

.laplace-report .metric-highlight .metric-value {
  font-size: 1.5rem;
  color: #9a7b1a;
}

/* ============================================
 * SECTION DIVIDERS
 * ============================================ */
.prose .laplace-report hr {
  border: none;
  border-top: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #c9a227, transparent);
  margin: 3rem 0;
}

.laplace-report .divider-ornament {
  text-align: center;
  margin: 3rem 0;
  color: #c9a227;
  font-size: 1.25rem;
  letter-spacing: 0.5em;
}

/* ============================================
 * CALLOUTS / BLOCKQUOTES
 * ============================================ */
.prose .laplace-report blockquote,
.laplace-report .callout {
  border-left: 4px solid #c9a227;
  background: rgba(201, 162, 39, 0.06);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
  font-style: normal;
  color: inherit;
}

.prose .laplace-report blockquote p:last-child,
.laplace-report .callout p:last-child {
  margin-bottom: 0;
}

.laplace-report .callout-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7b1a;
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================
 * TABLES
 * ============================================ */
.laplace-report .table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.prose .laplace-report table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.prose .laplace-report thead th {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b544f;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #c9a227;
  white-space: nowrap;
}

.prose .laplace-report tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #ebe9e0;
  color: #3f3a36;
  vertical-align: top;
}

.laplace-report tbody tr:nth-child(even) {
  background: rgba(247, 245, 240, 0.6);
}

.laplace-report tbody tr:hover {
  background: rgba(201, 162, 39, 0.06);
}

/* Featured table (Final Recipe) */
.laplace-report .table-featured {
  border: 2px solid #c9a227;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.laplace-report .table-featured table {
  margin: 0;
}

.laplace-report .table-featured thead th {
  background: rgba(201, 162, 39, 0.1);
  border-bottom-color: #c9a227;
}

.laplace-report .table-featured tbody td:first-child {
  font-weight: 500;
  color: #1c1917;
}

/* ============================================
 * LISTS
 * ============================================ */
.prose .laplace-report ul,
.prose .laplace-report ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  color: #3f3a36;
}

.prose .laplace-report li {
  margin-bottom: 0.5rem;
  color: #3f3a36;
}

.prose .laplace-report li strong {
  color: #1c1917;
}

.prose .laplace-report li > ul,
.prose .laplace-report li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ============================================
 * BPB TIMELINE
 * ============================================ */
.prose .laplace-report .timeline {
  margin: 1.5rem 0 2rem;
  padding-left: 0;
  list-style: none;
}

.prose .laplace-report .timeline li {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(235, 233, 224, 0.5);
  font-size: 0.875rem;
  align-items: baseline;
  margin-bottom: 0;
}

.laplace-report .timeline li:last-child {
  border-bottom: none;
}

.laplace-report .timeline-time {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  color: #7a736e;
  flex-shrink: 0;
  min-width: 3.5rem;
}

.laplace-report .timeline-bpb {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-weight: 700;
  color: #9a7b1a;
  flex-shrink: 0;
  min-width: 4rem;
}

.laplace-report .timeline-desc {
  color: #3f3a36;
}

/* ============================================
 * AGENT PROFILE CARDS
 * ============================================ */
.laplace-report .agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.laplace-report .agent-card {
  background: #fdfcf8;
  border: 1px solid #ebe9e0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.laplace-report .agent-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.laplace-report .agent-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.laplace-report .agent-name {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1c1917;
}

.laplace-report .agent-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9a227;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.laplace-report .agent-stats {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.laplace-report .agent-stat {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #7a736e;
}

.laplace-report .agent-stat strong {
  color: #3f3a36;
  font-weight: 600;
}

.laplace-report .phase-label {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.laplace-report .phase-1 { background: rgba(201, 162, 39, 0.15); color: #9a7b1a; }
.laplace-report .phase-2 { background: rgba(124, 77, 255, 0.12); color: #6b3ed9; }
.laplace-report .phase-3 { background: rgba(47, 133, 90, 0.12); color: #2f855a; }

.laplace-report .agent-contributions {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #5b544f;
  line-height: 1.55;
}

.laplace-report .agent-contributions p {
  margin: 0 0 0.5rem;
}

.laplace-report .agent-contributions-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a736e;
  margin-bottom: 0.25rem;
  margin-top: 0.5rem;
}

.laplace-report .agent-contributions ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.laplace-report .agent-contributions li {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

/* ============================================
 * FINDINGS TABLE
 * ============================================ */
.laplace-report .findings-table td:nth-child(1) {
  text-align: center;
  color: #5b544f;
  font-size: 0.8rem;
  white-space: nowrap;
  width: 2.5rem;
}

.laplace-report .findings-table td:nth-child(2) {
  font-weight: 600;
  color: #c9a227;
  white-space: nowrap;
  font-size: 0.85rem;
  width: 7rem;
}

.laplace-report .finding-number {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  color: #c9a227;
  margin-right: 0.35rem;
}

/* ============================================
 * CODE
 * ============================================ */
.prose .laplace-report code {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85em;
  background: #f7f5f0;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: none;
  color: #1c1917;
}

/* ============================================
 * PRINT STYLES
 * ============================================ */
@media print {
  .laplace-report .article-container {
    max-width: 100%;
    padding: 0;
  }
  .prose .laplace-report h2 {
    page-break-after: avoid;
    border-bottom-color: #000;
  }
  .prose .laplace-report h3 {
    page-break-after: avoid;
  }
  .laplace-report .metric-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .laplace-report .table-featured {
    box-shadow: none;
  }
  .prose .laplace-report table {
    page-break-inside: avoid;
  }
  .laplace-report .agent-card {
    page-break-inside: avoid;
  }
  .prose .laplace-report blockquote,
  .laplace-report .callout {
    background: none;
    border-left-color: #000;
  }
}

/* ============================================
 * RESPONSIVE
 * ============================================ */
@media (max-width: 640px) {
  .laplace-report .article-container {
    padding: 0;
  }
  .laplace-report .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .laplace-report .metric-value {
    font-size: 1.35rem;
  }
  .laplace-report .metric-label {
    font-size: 0.65rem;
  }
  .prose .laplace-report table {
    font-size: 0.8rem;
  }
  .prose .laplace-report thead th,
  .prose .laplace-report tbody td {
    padding: 0.5rem 0.6rem;
  }
  .laplace-report .timeline li {
    flex-wrap: wrap;
  }
  .prose .laplace-report h2 {
    margin-top: 3rem;
  }
  .laplace-report .agent-grid {
    grid-template-columns: 1fr;
  }
}
