/* ============================================
   RESEARCH — Scholarly Article Styling
   Extends rahulwaghmare-theme.css
   Uses the same 3-column app-shell layout
   ============================================ */

/* ── Paper Content Area (center panel) ──────── */

.paper-content {
  overflow-y: auto;
  padding-top: 3rem;
}

/* ── Paper Listing ──────────────────────────── */

.paper-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

/* ── Back Link (individual paper pages) ─────── */

.paper-back-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--light);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.paper-back-link:hover {
  color: var(--ink);
}

/* ── Scholarly Article Page ─────────────────── */
/* Styles below are for individual paper pages (research/{slug}.html).
   They have no matching HTML today but are intentionally kept
   for when papers are published. See .github/copilot-instructions.md. */

.scholarly-article {
  padding-bottom: 3rem;
}

.paper-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.paper-author {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.paper-affiliation {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--light);
  margin-bottom: 0.15rem;
}

.paper-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.paper-download {
  margin-bottom: 2rem;
}

.paper-download a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  transition: background var(--transition), border-color var(--transition);
}

.paper-download a:hover {
  background: var(--hover-bg);
  border-color: var(--ink);
  opacity: 1;
}

/* ── Paper Sections ─────────────────────────── */

.paper-section {
  margin-bottom: 2rem;
}

.paper-section h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.paper-section p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 0.85rem;
}

.paper-section p strong {
  font-weight: 600;
}

.paper-section p em {
  font-style: italic;
}

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

.paper-references ol {
  list-style: none;
  counter-reset: ref-counter;
  padding-left: 0;
}

.paper-references li {
  counter-increment: ref-counter;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.65rem;
  padding-left: 2rem;
  position: relative;
}

.paper-references li::before {
  content: "[" counter(ref-counter) "]";
  position: absolute;
  left: 0;
  color: var(--light);
  font-size: 0.82rem;
}

.paper-references li em {
  font-style: italic;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 768px) {
  .paper-content {
    padding-top: 2rem;
  }

  .paper-title {
    font-size: 1.4rem;
  }

  .paper-section h2 {
    font-size: 1rem;
  }

  .paper-section p {
    font-size: 0.95rem;
  }

  .paper-references li {
    font-size: 0.82rem;
  }
}
