/* ============================================================
   CRCGS — RESEARCH PAPERS PAGE — research-papers.css
   Prefix: crcgs-rp-
   Variables + reset scoped to .crcgs-rp-root — fully isolated.
   Base palette matches about.html; bronze/olive-gold accent
   for an academic, scholarly feel.
   ============================================================ */

.crcgs-rp-root *,
.crcgs-rp-root *::before,
.crcgs-rp-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.crcgs-rp-root {
  --rp-navy:        #1D3461;
  --rp-navy-deep:   #111F3D;
  --rp-navy-mid:    #243a6e;
  --rp-gold:        #D4A84A;
  --rp-bronze:      #8C6D2F;
  --rp-bronze-light:#C9A36B;
  --rp-cream:       #F5EDE0;
  --rp-warm-white:  #FDFAF5;
  --rp-pearl:       #FAFAF7;
  --rp-text:        #1A1A2E;
  --rp-muted:       #6B7280;
  --rp-border:      #ddd0b8;
  --rp-border-lt:   #ece5d5;
  --rp-transition:  0.3s cubic-bezier(0.4,0,0.2,1);

  font-family: 'Spectral', Georgia, serif;
  color: var(--rp-text);
  background: var(--rp-warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.crcgs-rp-root h1, .crcgs-rp-root h2, .crcgs-rp-root h3 { font-family: 'Cormorant Garamond', Georgia, serif; }
.crcgs-rp-root a:focus-visible,
.crcgs-rp-root button:focus-visible { outline: 2px solid var(--rp-bronze); outline-offset: 3px; }

.crcgs-rp-section-head { margin-bottom: 2.2rem; }
.crcgs-rp-section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rp-bronze);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.crcgs-rp-section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 300; color: var(--rp-navy); }
.crcgs-rp-section-title em { font-style: italic; color: var(--rp-navy-mid); }

.crcgs-rp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.9rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--rp-transition);
  white-space: nowrap;
}
.crcgs-rp-btn-primary { background: var(--rp-bronze); color: var(--rp-warm-white); border-color: var(--rp-bronze); }
.crcgs-rp-btn-primary:hover { background: var(--rp-bronze-light); color: var(--rp-navy-deep); transform: translateY(-2px); }

.crcgs-rp-js .crcgs-rp-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.crcgs-rp-js .crcgs-rp-reveal.crcgs-rp-visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════
   HERO  (left-aligned, compact, no vh)
════════════════════════════════════════════════════════════ */
.crcgs-rp-hero {
  position: relative;
  overflow: hidden;
  background: var(--rp-navy);
  padding: 80px clamp(20px, 6vw, 80px) 56px;
}
.crcgs-rp-hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,163,107,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,163,107,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.crcgs-rp-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 70% at 85% 15%, rgba(201,163,107,.13) 0%, transparent 65%);
  pointer-events: none;
}
.crcgs-rp-hero-inner { max-width: 680px; position: relative; z-index: 2; }
.crcgs-rp-hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rp-bronze-light);
  font-weight: 700;
  margin-bottom: 1rem;
}
.crcgs-rp-hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 400;
  color: var(--rp-warm-white);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.crcgs-rp-hero-title em { font-style: italic; font-weight: 600; color: var(--rp-bronze-light); }
.crcgs-rp-hero-sub {
  font-size: 1rem;
  color: rgba(253,250,245,.7);
  max-width: 52ch;
  line-height: 1.8;
  font-weight: 300;
}

/* ════════════════════════════════════════════════════════════
   PAPERS LIST
════════════════════════════════════════════════════════════ */
.crcgs-rp-list-section { background: var(--rp-warm-white); padding: 3.5rem clamp(20px, 6vw, 80px); }
.crcgs-rp-list-inner { max-width: 860px; margin: 0 auto; }

.crcgs-rp-paper {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.3rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--rp-border-lt);
}
.crcgs-rp-paper:first-child { padding-top: 0; }
.crcgs-rp-paper:last-child { border-bottom: none; }
.crcgs-rp-paper-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--rp-bronze-light);
  line-height: 1.3;
}
.crcgs-rp-paper-tag {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rp-bronze);
  margin-bottom: 0.5rem;
}
.crcgs-rp-paper-title { font-size: 1.16rem; font-weight: 600; color: var(--rp-navy); line-height: 1.4; margin-bottom: 0.4rem; }
.crcgs-rp-paper-authors { font-size: 0.82rem; color: var(--rp-muted); font-style: italic; margin-bottom: 0.7rem; }
.crcgs-rp-paper-abstract { font-size: 0.9rem; color: var(--rp-text); line-height: 1.7; font-weight: 300; margin-bottom: 0.8rem; }
.crcgs-rp-paper-link {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rp-navy-mid);
  text-decoration: none;
  border: 1px solid var(--rp-border);
  padding: 0.55rem 1rem;
  display: inline-block;
  transition: var(--rp-transition);
}
.crcgs-rp-paper-link:hover { border-color: var(--rp-bronze); color: var(--rp-bronze); }

/* ════════════════════════════════════════════════════════════
   CLOSING CTA
════════════════════════════════════════════════════════════ */
.crcgs-rp-closing {
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(201,163,107,.12) 0%, transparent 60%), var(--rp-navy-deep);
  padding: 3.2rem clamp(20px, 6vw, 80px);
  text-align: center;
  border-top: 3px solid var(--rp-bronze);
}
.crcgs-rp-closing-inner { max-width: 580px; margin: 0 auto; }
.crcgs-rp-closing-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; color: var(--rp-warm-white); margin-bottom: 0.8rem; }
.crcgs-rp-closing-title em { font-style: italic; color: var(--rp-bronze-light); }
.crcgs-rp-closing-sub { font-size: 0.92rem; color: rgba(253,250,245,.62); font-weight: 300; margin-bottom: 1.6rem; }
.crcgs-rp-closing-ctas { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .crcgs-rp-hero { padding: 64px clamp(20px,5vw,48px) 44px; }
  .crcgs-rp-list-section, .crcgs-rp-closing { padding: 3rem clamp(20px,5vw,48px); }
}

@media (max-width: 600px) {
  .crcgs-rp-hero { padding: 56px 20px 36px; }
  .crcgs-rp-hero-title { font-size: 2rem; }
  .crcgs-rp-hero-sub { font-size: 0.9rem; }

  .crcgs-rp-list-section, .crcgs-rp-closing { padding: 2.4rem 20px; }
  .crcgs-rp-paper { grid-template-columns: 1fr; gap: 0.5rem; }
  .crcgs-rp-paper-num { font-size: 1.3rem; }
  .crcgs-rp-paper-title { font-size: 1.04rem; }
  .crcgs-rp-section-title { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .crcgs-rp-root * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .crcgs-rp-reveal, .crcgs-rp-js .crcgs-rp-reveal { opacity: 1 !important; transform: none !important; }
}
