/* research-report.css — Styles for long-form research reports (e.g. AI Writing Fingerprints)
   Scoped under .research-report to avoid collisions with site.css */

/* Push content below fixed site-header */

.research-report {
  padding-top: 80px;
  --rr-bg: #0e0e0e;
  --rr-surface: #161616;
  --rr-surface2: #1e1e1e;
  --rr-border: #2a2a2a;
  --rr-text: #d8d4cc;
  --rr-text-dim: #7a7670;
  --rr-accent: #e8c547;
  --rr-accent2: #c47a4a;
  --rr-red: #e05a4a;
  --rr-green: #5ab87a;
  --rr-blue: #5a9ae0;
  --rr-purple: #9a7ae0;

  background: var(--rr-bg);
  color: var(--rr-text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
}

.research-report:not(.hub-header) .site-header.scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(232, 197, 71, 0.12);
}

/* ---------- Page header ---------- */

.research-report .page-header {
  border-bottom: 1px solid var(--rr-border);
  padding: 48px 0 36px;
  margin-bottom: 0;
}

.research-report .page-header--hub .rr-container {
  text-align: center;
}

.research-report .rr-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

.research-report .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rr-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.research-report h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  color: #f0ece4;
  margin-bottom: 20px;
}

.research-report .subtitle {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--rr-text-dim);
  font-weight: 300;
  max-width: 620px;
  line-height: 1.7;
  margin: 0 0 32px;
}

.research-report .page-header--hub .subtitle {
  margin: 0 auto 32px;
  text-align: center;
}

.research-report .meta-row {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rr-border);
  flex-wrap: wrap;
}

.research-report .meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.research-report .meta-key {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--rr-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research-report .meta-val {
  font-size: 13px;
  color: var(--rr-text);
}

/* ---------- Table of contents ---------- */

.research-report .toc-section {
  background: var(--rr-surface);
  border-bottom: 1px solid var(--rr-border);
  padding: 24px 0;
}

.research-report .toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.research-report .toc-item {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rr-text-dim);
  padding: 8px 12px;
  border: 1px solid var(--rr-border);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.research-report .toc-item:hover {
  color: var(--rr-accent);
  border-color: var(--rr-accent);
  background: rgba(232,197,71,0.05);
}

.research-report .toc-num {
  color: var(--rr-accent);
  min-width: 20px;
}

/* ---------- Main content ---------- */

.research-report main {
  padding: 56px 0;
}

.research-report section {
  margin-bottom: 72px;
}

.research-report .section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rr-border);
}

.research-report .section-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rr-accent);
  background: rgba(232,197,71,0.08);
  border: 1px solid rgba(232,197,71,0.2);
  padding: 4px 10px;
  border-radius: 2px;
  margin-top: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.research-report h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: #f0ece4;
  line-height: 1.2;
}

.research-report h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-text-dim);
  margin: 32px 0 12px;
}

.research-report h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: #f0ece4;
  margin: 24px 0 10px;
}

.research-report p {
  margin-bottom: 16px;
  color: var(--rr-text);
}

/* ---------- Model cards ---------- */

.research-report .model-card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}

.research-report .model-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rr-border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.research-report .model-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

.research-report .badge-openai { background: rgba(90,154,224,0.12); color: var(--rr-blue); border: 1px solid rgba(90,154,224,0.2); }
.research-report .badge-anthropic { background: rgba(196,122,74,0.12); color: var(--rr-accent2); border: 1px solid rgba(196,122,74,0.2); }
.research-report .badge-google { background: rgba(90,184,122,0.12); color: var(--rr-green); border: 1px solid rgba(90,184,122,0.2); }
.research-report .badge-meta { background: rgba(154,122,224,0.12); color: var(--rr-purple); border: 1px solid rgba(154,122,224,0.2); }
.research-report .badge-china { background: rgba(224,90,74,0.12); color: var(--rr-red); border: 1px solid rgba(224,90,74,0.2); }
.research-report .badge-open { background: rgba(90,154,224,0.07); color: #8aa8cc; border: 1px solid rgba(90,154,224,0.15); }

.research-report .model-name {
  font-size: 16px;
  font-weight: 500;
  color: #f0ece4;
}

.research-report .model-card-body {
  padding: 20px;
}

/* ---------- Tell boxes & word tags ---------- */

.research-report .tell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

@media (max-width: 600px) {
  .research-report .tell-grid { grid-template-columns: 1fr; }
}

.research-report .tell-box {
  background: var(--rr-surface2);
  border: 1px solid var(--rr-border);
  border-radius: 4px;
  padding: 14px;
}

.research-report .tell-box-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--rr-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.research-report .word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.research-report .word-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--rr-border);
  color: var(--rr-accent);
  background: rgba(232,197,71,0.04);
}

.research-report .word-tag.structural {
  color: var(--rr-blue);
  background: rgba(90,154,224,0.04);
  border-color: rgba(90,154,224,0.2);
}

.research-report .word-tag.rhetorical {
  color: var(--rr-purple);
  background: rgba(154,122,224,0.04);
  border-color: rgba(154,122,224,0.2);
}

.research-report .word-tag.punctuation {
  color: var(--rr-accent2);
  background: rgba(196,122,74,0.04);
  border-color: rgba(196,122,74,0.2);
}

/* ---------- Callouts ---------- */

.research-report .callout {
  border-left: 3px solid var(--rr-accent);
  background: rgba(232,197,71,0.04);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

.research-report .callout.research {
  border-left-color: var(--rr-blue);
  background: rgba(90,154,224,0.04);
}

.research-report .callout.warning {
  border-left-color: var(--rr-red);
  background: rgba(224,90,74,0.04);
}

.research-report .callout p:last-child { margin-bottom: 0; }

.research-report .callout-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--rr-accent);
}

.research-report .callout.research .callout-label { color: var(--rr-blue); }
.research-report .callout.warning .callout-label { color: var(--rr-red); }

/* ---------- Comparison table ---------- */

.research-report .comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 24px 0;
}

.research-report .comparison-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-text-dim);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rr-border);
  background: var(--rr-surface2);
}

.research-report .comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rr-border);
  vertical-align: top;
  line-height: 1.5;
}

.research-report .comparison-table tr:last-child td {
  border-bottom: none;
}

.research-report .comparison-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ---------- Dots & score pills ---------- */

.research-report .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}

.research-report .dot-openai { background: var(--rr-blue); }
.research-report .dot-anthropic { background: var(--rr-accent2); }
.research-report .dot-google { background: var(--rr-green); }
.research-report .dot-meta { background: var(--rr-purple); }
.research-report .dot-china { background: var(--rr-red); }
.research-report .dot-open { background: #8aa8cc; }

.research-report .score-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  align-items: center;
  flex-wrap: wrap;
}

.research-report .score-pill {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid;
}

.research-report .score-high { color: var(--rr-red); border-color: rgba(224,90,74,0.3); background: rgba(224,90,74,0.06); }
.research-report .score-med { color: var(--rr-accent); border-color: rgba(232,197,71,0.3); background: rgba(232,197,71,0.06); }
.research-report .score-low { color: var(--rr-green); border-color: rgba(90,184,122,0.3); background: rgba(90,184,122,0.06); }

/* ---------- Timeline ---------- */

.research-report .evolution-timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--rr-border);
  margin: 20px 0;
}

.research-report .timeline-item {
  margin-bottom: 24px;
  position: relative;
}

.research-report .timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rr-accent);
  border: 2px solid var(--rr-bg);
}

.research-report .timeline-model {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rr-accent);
  margin-bottom: 4px;
}

.research-report .timeline-body {
  font-size: 13.5px;
  color: var(--rr-text);
  line-height: 1.6;
}

/* ---------- Inline elements ---------- */

.research-report blockquote {
  border-left: 2px solid var(--rr-border);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--rr-text-dim);
  font-style: italic;
  font-size: 14px;
}

.research-report .source-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--rr-text-dim);
  margin-top: 4px;
}

.research-report .divider {
  border: none;
  border-top: 1px solid var(--rr-border);
  margin: 40px 0;
}

.research-report main ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.research-report main li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.research-report strong {
  font-weight: 500;
  color: #f0ece4;
}

.research-report em {
  font-style: italic;
  color: var(--rr-text-dim);
}

.research-report code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--rr-surface2);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--rr-accent);
}

/* ---------- Report-specific footer ---------- */

.research-report .report-footer {
  border-top: 1px solid var(--rr-border);
  padding: 32px 0;
  margin-top: 24px;
}

.research-report .report-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.research-report .report-footer .footer-brand {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rr-text-dim);
}

.research-report .report-footer .footer-brand strong {
  color: var(--rr-accent);
}
