/* ─────────────────────────────────────────────────────────
   johnmbarrios.com — paper-detail components
   Loaded AFTER site.css. Reuses the site design tokens
   (--ink, --yale, --blue, --rule, --serif, --mono …) so
   individual paper pages read as part of the main site.
   ───────────────────────────────────────────────────────── */

/* ── Body column ──
   Narrower measure than the 1080px site .wrap: paper pages are
   text-first, so we cap the reading column for comfortable line length. */
.paper-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

/* ── Action row (SSRN / NBER / PDF / Back) ──
   Reuses the site .entry-links pill family; this only tunes spacing. */
.paper-actions {
  margin: 0 0 2.6rem;
}

.paper-section + .paper-actions { margin-top: 2.6rem; }

/* Back-to-research link reads as a quiet ghost pill */
.paper-actions a.pill-back {
  color: var(--muted);
  border-style: dashed;
}
.paper-actions a.pill-back:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(29,99,216,0.04);
}

/* ── Sections ──
   Heading uses the site .section-label (mono kicker + hairline rule);
   body copy uses the site .prose rules. This only sets vertical rhythm. */
.paper-section { margin: 2.8rem 0; }
.paper-section:first-of-type { margin-top: 2.2rem; }

/* left-aligned to match the rest of the site (never justified) */
.paper-section .prose p { max-width: none; }

/* ── Key-finding cards ──
   Same visual family as the site .callout: soft ground, blue spine. */
.finding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.finding {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--yale);
  border-radius: 8px;
  padding: 1.15rem 1.3rem;
}

.finding h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.finding p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── Figures ── */
.paper-figure {
  margin: 1.7rem 0;
  padding: 1.4rem;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.paper-figure .fig-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.paper-figure .fig-note {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 60em;
}

.paper-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

/* ── Citation block ── */
.citation-box {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 1.2rem;
  overflow-wrap: break-word;
}
.citation-box em { font-style: italic; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .paper-main { padding: 2.2rem 1.25rem 3rem; }
  .finding-grid { grid-template-columns: 1fr; }
}
