/*
 * Oncology Physio Research Hub — Public Stylesheet
 * Version: 1.0.0
 *
 * Imports Google Fonts, defines design tokens, and styles all
 * public-facing components: cards, search, filters, single page.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  --oprh-primary:       #1a6fa8;
  --oprh-primary-dark:  #0f4f7d;
  --oprh-primary-light: #4e97c7;
  --oprh-accent:        #00b09b;
  --oprh-accent-dark:   #007f6e;
  --oprh-teal:          #17a2b8;
  --oprh-bg:            #f8fafc;
  --oprh-surface:       #ffffff;
  --oprh-surface-2:     #f1f5f9;
  --oprh-border:        #e2e8f0;
  --oprh-text:          #1e293b;
  --oprh-text-muted:    #64748b;
  --oprh-text-light:    #94a3b8;
  --oprh-success:       #10b981;
  --oprh-warning:       #f59e0b;
  --oprh-error:         #ef4444;
  --oprh-purple:        #8b5cf6;
  --oprh-shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --oprh-shadow:        0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --oprh-shadow-lg:     0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --oprh-radius:        12px;
  --oprh-radius-sm:     8px;
  --oprh-radius-lg:     18px;
  --oprh-transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --oprh-font:          'Inter', system-ui, sans-serif;
  --oprh-font-serif:    'Merriweather', Georgia, serif;
  --oprh-gradient-primary: linear-gradient(135deg, #1a6fa8 0%, #0f4f7d 100%);
  --oprh-gradient-accent:  linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
  --oprh-gradient-hero:    linear-gradient(160deg, #0f4f7d 0%, #1a6fa8 40%, #17a2b8 100%);
}

/* ============================================================
   Global Reset Inside Plugin
   ============================================================ */
.oprh-research-hub,
.oprh-news-hub,
.oprh-featured-hub,
.oprh-single-page {
  font-family: var(--oprh-font);
  color: var(--oprh-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Search Bar
   ============================================================ */
.oprh-search-bar {
  background: var(--oprh-surface);
  border: 1px solid var(--oprh-border);
  border-radius: var(--oprh-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--oprh-shadow-sm);
}

/* Input + button grouped as a flex row */
.oprh-search-input-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1rem;
  border: 2px solid var(--oprh-border);
  border-radius: var(--oprh-radius-sm);
  background: #f8fafc;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.oprh-search-input-wrap:focus-within {
  border-color: var(--oprh-primary) !important;
  box-shadow: 0 0 0 4px rgba(26,111,168,.12) !important;
  background: #ffffff !important;
}

/* ---- Input field ---- */
.oprh-research-hub .oprh-search-input,
.oprh-research-hub .oprh-search-input.form-control {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--oprh-font) !important;
  font-size: 1rem !important;
  color: #1e293b !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transition: none !important;
  -webkit-appearance: none;
}

/* Prevent black background on focus / active / typing */
.oprh-research-hub .oprh-search-input:focus,
.oprh-research-hub .oprh-search-input:active,
.oprh-research-hub .oprh-search-input:focus-visible,
.oprh-research-hub .oprh-search-input.form-control:focus,
.oprh-research-hub .oprh-search-input.form-control:active {
  color: #1e293b !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Browser autofill override (Chrome / Edge / Safari) */
.oprh-research-hub .oprh-search-input:-webkit-autofill,
.oprh-research-hub .oprh-search-input:-webkit-autofill:hover,
.oprh-research-hub .oprh-search-input:-webkit-autofill:focus,
.oprh-research-hub .oprh-search-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100px #ffffff inset !important;
  -webkit-text-fill-color: #1e293b !important;
  caret-color: #1e293b !important;
}

/* Firefox autofill */
.oprh-research-hub .oprh-search-input:autofill {
  background: transparent !important;
  color: #1e293b !important;
}

/* ---- Search button (icon outside input) ---- */
.oprh-search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  border: none;
  border-left: 1px solid var(--oprh-border);
  background: #f1f5f9;
  color: var(--oprh-primary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}

.oprh-search-btn:hover {
  background: var(--oprh-primary);
  color: #ffffff;
}

.oprh-search-btn:focus-visible {
  outline: 2px solid var(--oprh-primary);
  outline-offset: -2px;
}

.oprh-filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.oprh-filter-row .form-select {
  flex: 1;
  min-width: 180px;
  border: 2px solid var(--oprh-border);
  border-radius: var(--oprh-radius-sm);
  padding: 0.625rem 1rem;
  font-family: var(--oprh-font);
  color: var(--oprh-text);
  background: var(--oprh-bg);
  transition: var(--oprh-transition);
}

.oprh-filter-row .form-select:focus {
  border-color: var(--oprh-primary);
  box-shadow: 0 0 0 4px rgba(26,111,168,.12);
}

/* ============================================================
   Results Meta
   ============================================================ */
.oprh-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  color: var(--oprh-text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   Card Components
   ============================================================ */
.oprh-card {
  background: var(--oprh-surface);
  border: 1px solid var(--oprh-border);
  border-radius: var(--oprh-radius);
  box-shadow: var(--oprh-shadow-sm);
  transition: var(--oprh-transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.oprh-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--oprh-shadow-lg);
  border-color: var(--oprh-primary-light);
}

/* Card Header */
.oprh-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.oprh-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.oprh-topic-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(26,111,168,.1) 0%, rgba(23,162,184,.1) 100%);
  color: var(--oprh-primary);
  border: 1px solid rgba(26,111,168,.25);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--oprh-transition);
}

.oprh-topic-tag:hover {
  background: var(--oprh-primary);
  color: white;
  border-color: var(--oprh-primary);
  text-decoration: none;
}

.oprh-card-date {
  font-size: 0.78rem;
  color: var(--oprh-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Card Body */
.oprh-card-body {
  padding: 0.5rem 1.25rem 1rem;
  flex: 1;
}

.oprh-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  color: var(--oprh-text);
}

.oprh-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--oprh-transition);
}

.oprh-card-title a:hover {
  color: var(--oprh-primary);
}

.oprh-card-authors,
.oprh-card-journal,
.oprh-card-source {
  font-size: 0.82rem;
  color: var(--oprh-text-muted);
  margin: 0.25rem 0;
}

.oprh-label-icon {
  margin-right: 0.25rem;
}

.oprh-card-summary {
  margin-top: 0.75rem;
}

.oprh-card-summary p {
  font-size: 0.88rem;
  color: var(--oprh-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Key Findings in card */
.oprh-key-findings {
  margin-top: 1rem;
  padding: 0.875rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 3px solid var(--oprh-primary);
  border-radius: 0 var(--oprh-radius-sm) var(--oprh-radius-sm) 0;
}

.oprh-findings-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--oprh-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.oprh-findings-text {
  font-size: 0.82rem;
  color: var(--oprh-text);
  line-height: 1.6;
}

.oprh-findings-text p,
.oprh-findings-text ul {
  margin: 0;
}

/* Card Footer */
.oprh-card-footer {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-top: auto;
  border-top: 1px solid var(--oprh-border);
}

/* ============================================================
   Buttons
   ============================================================ */
.oprh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--oprh-radius-sm);
  font-family: var(--oprh-font);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--oprh-transition);
  white-space: nowrap;
}

.oprh-btn-primary {
  background: var(--oprh-gradient-primary);
  color: #fff;
  border-color: transparent;
}

.oprh-btn-primary:hover {
  background: var(--oprh-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,111,168,.35);
  text-decoration: none;
}

.oprh-btn-outline {
  background: transparent;
  color: var(--oprh-primary);
  border-color: var(--oprh-primary);
}

.oprh-btn-outline:hover {
  background: var(--oprh-primary);
  color: #fff;
  text-decoration: none;
}

.oprh-btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

.oprh-btn-ghost:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
  text-decoration: none;
}

/* Read Summary button — purple, theme-override hardened */
.oprh-research-hub .oprh-btn.read-summary-btn,
.oprh-featured-hub .oprh-btn.read-summary-btn,
a.oprh-btn.read-summary-btn {
  background: #6f42c1 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #6f42c1 !important;
  text-decoration: none !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.oprh-research-hub .oprh-btn.read-summary-btn:hover,
.oprh-research-hub .oprh-btn.read-summary-btn:focus,
.oprh-featured-hub .oprh-btn.read-summary-btn:hover,
.oprh-featured-hub .oprh-btn.read-summary-btn:focus,
a.oprh-btn.read-summary-btn:hover,
a.oprh-btn.read-summary-btn:focus {
  background: #5a32a3 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #5a32a3 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(111,66,193,.35) !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* Full Paper button — same purple scheme as Read Summary, theme-override hardened */
.oprh-research-hub .oprh-btn.full-paper-btn,
.oprh-featured-hub .oprh-btn.full-paper-btn,
.oprh-news-hub .oprh-btn.full-paper-btn,
.oprh-single-page .oprh-btn.full-paper-btn,
a.oprh-btn.full-paper-btn {
  background: #6f42c1 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #6f42c1 !important;
  text-decoration: none !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.oprh-research-hub .oprh-btn.full-paper-btn:hover,
.oprh-research-hub .oprh-btn.full-paper-btn:focus,
.oprh-featured-hub .oprh-btn.full-paper-btn:hover,
.oprh-featured-hub .oprh-btn.full-paper-btn:focus,
.oprh-news-hub .oprh-btn.full-paper-btn:hover,
.oprh-news-hub .oprh-btn.full-paper-btn:focus,
.oprh-single-page .oprh-btn.full-paper-btn:hover,
.oprh-single-page .oprh-btn.full-paper-btn:focus,
a.oprh-btn.full-paper-btn:hover,
a.oprh-btn.full-paper-btn:focus {
  background: #5a32a3 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #5a32a3 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(111,66,193,.35) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.oprh-btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

.oprh-btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

/* ============================================================
   News Card specific
   ============================================================ */
.oprh-news-header {
  background: linear-gradient(135deg, rgba(0,176,155,.08) 0%, rgba(150,201,61,.08) 100%);
  border-bottom: 1px solid rgba(0,176,155,.15);
}

.oprh-news-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--oprh-accent-dark);
  background: rgba(0,176,155,.12);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
}

/* ============================================================
   Featured Hero Card
   ============================================================ */
.oprh-featured-hero-card {
  background: var(--oprh-gradient-hero);
  border: none;
  border-radius: var(--oprh-radius-lg);
  box-shadow: var(--oprh-shadow-lg);
  padding: 0;
}

.oprh-featured-hero-card:hover {
  transform: none;
}

.oprh-hero-content {
  padding: 3rem;
  color: #fff;
}

.oprh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.oprh-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.oprh-hero-meta .oprh-topic-tag {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.oprh-hero-meta .oprh-card-date {
  color: rgba(255,255,255,.8);
}

.oprh-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #fff;
}

.oprh-hero-title a {
  color: inherit;
  text-decoration: none;
}

.oprh-hero-authors,
.oprh-hero-journal {
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.oprh-hero-summary {
  color: rgba(255,255,255,.9);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 1rem 0;
  max-width: 800px;
}

.oprh-hero-findings {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--oprh-radius-sm);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  color: rgba(255,255,255,.95);
  font-size: 0.88rem;
}

.oprh-hero-findings strong {
  color: #fff;
}

.oprh-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ============================================================
   Load More
   ============================================================ */
.oprh-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.oprh-load-more-btn {
  padding: 0.75rem 2.5rem;
  background: transparent;
  border: 2px solid var(--oprh-primary);
  border-radius: 40px;
  color: var(--oprh-primary);
  font-family: var(--oprh-font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--oprh-transition);
}

.oprh-load-more-btn:hover {
  background: var(--oprh-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,111,168,.3);
}

.oprh-load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   Empty State
   ============================================================ */
.oprh-empty-message {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--oprh-text-muted);
}

.oprh-empty-message span {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
}

.oprh-empty-message p {
  font-size: 1rem;
  margin: 0;
}

/* ============================================================
   Single Paper Page
   ============================================================ */
.oprh-single-hero {
  background: var(--oprh-gradient-hero);
  padding: 3.5rem 0;
  margin-bottom: 3rem;
}

.oprh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,.7);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.oprh-breadcrumb a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: var(--oprh-transition);
}

.oprh-breadcrumb a:hover {
  color: #fff;
}

.oprh-single-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.oprh-single-meta-bar .oprh-topic-tag {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.oprh-single-title {
  font-family: var(--oprh-font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.oprh-single-authors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.oprh-meta-item {
  color: rgba(255,255,255,.9);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.oprh-single-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.oprh-doi-badge {
  color: rgba(255,255,255,.75);
  font-size: 0.82rem;
}

.oprh-doi-badge a {
  color: rgba(255,255,255,.9);
}

/* Single Content */
.oprh-single-content {
  padding-bottom: 4rem;
}

/* AI Summary Banner */
.oprh-ai-summary-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid rgba(26,111,168,.2);
  border-radius: var(--oprh-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.oprh-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--oprh-primary);
  color: #fff;
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.oprh-ai-model {
  background: rgba(255,255,255,.2);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.72rem;
}

.oprh-summary-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--oprh-text);
}

/* Insights Grid */
.oprh-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.oprh-insight-card {
  border-radius: var(--oprh-radius);
  padding: 1.5rem;
  box-shadow: var(--oprh-shadow-sm);
}

.oprh-insight-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.875rem;
}

.oprh-insight-card p,
.oprh-insight-card ul {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  color: var(--oprh-text);
}

.oprh-insight-findings  { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-left: 4px solid var(--oprh-warning); }
.oprh-insight-findings h3 { color: #92400e; }

.oprh-insight-clinical  { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-left: 4px solid var(--oprh-success); }
.oprh-insight-clinical h3 { color: #065f46; }

.oprh-insight-patient   { background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%); border-left: 4px solid var(--oprh-purple); }
.oprh-insight-patient h3 { color: #581c87; }

.oprh-insight-limitations { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border-left: 4px solid var(--oprh-warning); }
.oprh-insight-limitations h3 { color: #9a3412; }

/* Abstract */
.oprh-abstract-section {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--oprh-surface-2);
  border-radius: var(--oprh-radius);
  border: 1px solid var(--oprh-border);
}

.oprh-abstract-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--oprh-text);
}

.oprh-abstract-text {
  font-family: var(--oprh-font-serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--oprh-text-muted);
}

/* Citation */
.oprh-citation-section {
  background: var(--oprh-surface);
  border: 1px solid var(--oprh-border);
  border-radius: var(--oprh-radius);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--oprh-shadow-sm);
}

.oprh-citation-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.oprh-citation-dl {
  margin: 0;
}

.oprh-citation-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--oprh-border);
  font-size: 0.88rem;
}

.oprh-citation-row:last-child {
  border-bottom: none;
}

.oprh-citation-row dt {
  font-weight: 600;
  color: var(--oprh-text-muted);
}

.oprh-citation-row dd {
  margin: 0;
  color: var(--oprh-text);
  word-break: break-word;
}

/* Related Papers */
.oprh-related-section {
  margin-top: 3rem;
}

.oprh-related-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--oprh-text);
}

.oprh-related-card {
  border-radius: var(--oprh-radius);
}

.oprh-related-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.oprh-related-title a {
  color: var(--oprh-text);
  text-decoration: none;
  transition: var(--oprh-transition);
}

.oprh-related-title a:hover {
  color: var(--oprh-primary);
}

.oprh-related-summary {
  font-size: 0.82rem;
  color: var(--oprh-text-muted);
  margin: 0.5rem 0 0;
}

/* ============================================================
   Loading Spinner
   ============================================================ */
.oprh-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 0.75rem;
  color: var(--oprh-text-muted);
}

.oprh-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--oprh-border);
  border-top-color: var(--oprh-primary);
  border-radius: 50%;
  animation: oprh-spin 0.7s linear infinite;
}

@keyframes oprh-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .oprh-hero-content  { padding: 1.75rem; }
  .oprh-hero-title    { font-size: 1.4rem; }
  .oprh-single-hero   { padding: 2rem 0; }
  .oprh-insights-grid { grid-template-columns: 1fr; }
  .oprh-filter-row    { flex-direction: column; }
  .oprh-filter-row .form-select { width: 100%; }
  .oprh-citation-row  { grid-template-columns: 1fr; }
  .oprh-citation-row dt { margin-bottom: 0; }
}

@media (max-width: 480px) {
  .oprh-card-footer   { flex-direction: column; }
  .oprh-btn           { width: 100%; justify-content: center; }
  .oprh-single-actions { flex-direction: column; }
}
