/* ============================================================
   PsychLine.in — Research Page
   Aligned with the site-wide design system (shared.css tokens)
   ============================================================ */

/* ── PAGE-SPECIFIC OVERRIDES ── */
.hl-research {
  --r-teal: #1a6b6b;
  --r-teal-mid: #2a8585;
  --r-teal-pale: #e8f4f4;
  --r-teal-faint: #f2fafa;
  --r-amber: #c97f2e;
  --r-amber-pale: #fdf3e7;
  --r-purple: #6b52c8;
  --r-purple-pale: #f3f0ff;
}

/* ── HERO ── */
.r-hero {
  padding: 100px 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  position: relative;
}
.r-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,107,107,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.r-hero > * { position: relative; z-index: 1; }
.r-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--r-teal);
  background: none;
  padding: 0 0 8px 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(26,107,107,0.3);
  margin-bottom: 28px;
}
.r-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
  letter-spacing: -0.8px;
  padding: 0;
}
.r-hero h1 em {
  font-style: italic;
  color: var(--r-teal);
}
.r-hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 480px;
}
.r-hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.r-hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--r-teal);
  line-height: 1;
}
.r-hero-stat-label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.r-hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.r-hero-visual-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-left: 4px;
}
.r-focus-pill {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background .2s, padding-left .2s;
}
.r-focus-pill:first-of-type {
  border-top: none;
}
.r-focus-pill:hover {
  background: var(--r-teal-faint);
  padding-left: 12px;
}
.r-focus-icon {
  width: 38px;
  height: 38px;
  background: var(--r-teal-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.r-focus-pill:hover .r-focus-icon {
  background: var(--r-teal);
  transform: scale(1.08);
}
.r-focus-text strong {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.r-focus-text span {
  display: block;
  font-size: .73rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── SECTION SHARED ── */
.r-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 60px;
}
.r-section-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}
.r-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.5px;
  padding: 0;
}
.r-section-title em {
  font-style: italic;
  color: var(--r-teal);
}
.r-section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 100%;
  line-height: 1.7;
  margin-bottom: 48px;
}
.r-section-header {
  margin-bottom: 48px;
}
.r-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── STATUS LABELS ── */
.r-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 20px;
  width: fit-content;
  border-radius: 0;
  background: none;
  border: none;
}
/* coloured left rule instead of pill */
.r-status-submission {
  color: var(--r-amber);
  border-left: 2px solid var(--r-amber);
  padding-left: 10px;
}
.r-status-active {
  color: var(--r-teal);
  border-left: 2px solid var(--r-teal);
  padding-left: 10px;
}
.r-status-exploring {
  color: var(--r-purple);
  border-left: 2px solid var(--r-purple);
  padding-left: 10px;
}
.r-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: r-blink 2s ease-in-out infinite;
}
@keyframes r-blink { 0%,100%{opacity:1}50%{opacity:.35} }

/* ── RESEARCH CARDS ── */
.r-research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.r-research-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.r-research-card:hover {
  border-color: var(--r-teal-mid);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}
.r-card-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  transition: color .25s;
}
.r-research-card:hover .r-card-number { color: var(--r-teal-pale); }
.r-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
}
.r-card-authors {
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 16px;
}
.r-card-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 24px;
}
.r-card-desc strong { font-weight: 600; color: var(--text); }
.r-rq-list {
  list-style: none;
  margin: 10px 0 16px;
  padding: 0;
}
.r-rq-list li {
  font-size: .85rem;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--r-teal-faint);
  border-radius: 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.r-rq-list li::before {
  content: '↳';
  color: var(--r-teal);
  flex-shrink: 0;
  font-weight: 600;
}
.r-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.r-card-tag {
  font-size: .72rem;
  font-weight: 400;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  letter-spacing: 0.01em;
}
/* dot separator between tags */
.r-card-tag + .r-card-tag::before {
  content: '·';
  margin-right: 16px;
  opacity: 0.4;
}

/* ── PUBLICATIONS ── */
.r-pubs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.r-pub-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.r-pub-item:hover {
  border-color: var(--r-teal-mid);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}
.r-pub-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--r-teal);
  min-width: 48px;
  flex-shrink: 0;
  padding-top: 2px;
}
.r-pub-content { flex: 1; }
.r-pub-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}
.r-pub-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.r-pub-title a:hover {
  border-color: var(--r-teal);
  color: var(--r-teal);
}
.r-pub-meta {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.r-pub-journal { font-style: italic; }
.r-pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  background: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}
.r-badge-peer { color: var(--r-teal); }
.r-badge-thesis { color: var(--r-amber); }
.r-badge-chapter { color: var(--r-purple); }
.r-scholar-box {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--r-teal-faint);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.r-scholar-box-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.r-scholar-box a {
  font-size: .82rem;
  color: var(--r-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,107,107,.3);
  transition: border-color .2s;
}
.r-scholar-box a:hover { border-color: var(--r-teal); }

/* ── TEAM ── */
.r-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.r-team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.r-team-card:hover {
  border-color: var(--r-teal-mid);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}
.r-team-avatar {
  width: 64px;
  height: 64px;
  background: var(--r-teal-pale);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--r-teal);
}
.r-team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.r-team-role {
  font-size: .78rem;
  color: var(--muted);
}
.r-team-founder {
  border-color: var(--r-teal);
  background: var(--r-teal-faint);
}
.r-team-founder .r-team-avatar {
  background: var(--r-teal);
  color: white;
}
.r-team-placeholder {
  border-style: dashed;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}
.r-team-placeholder-icon {
  font-size: 2rem;
  color: var(--border);
}
.r-team-placeholder-text {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.r-team-placeholder-text a {
  color: var(--r-teal);
  text-decoration: none;
  font-weight: 600;
}
.r-team-placeholder-text a:hover { color: var(--primary); }

/* ── FUNDING ── */
.r-funding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.r-funding-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.r-funding-card:hover {
  border-color: var(--r-teal-mid);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}
.r-funding-org {
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
  margin-bottom: 6px;
}
.r-funding-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--r-teal);
  margin-bottom: 6px;
}
.r-funding-note {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── COLLABORATION BAND ── */
.r-collab-band {
  background: var(--r-teal);
  color: white;
  padding: 80px 60px;
}
.r-collab-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.r-collab-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.r-collab-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.r-collab-title em {
  font-style: italic;
  color: rgba(255,255,255,.75);
}
.r-collab-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  max-width: 560px;
}
.r-collab-areas {
  display: flex;
  gap: 0 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
}
.r-collab-area {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 400;
  padding: 4px 0;
  border-radius: 0;
}
.r-collab-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.r-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--r-teal);
  font-family: 'Raleway', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.r-btn-primary:hover {
  background: var(--bg);
  transform: translateY(-2px);
  color: var(--r-teal);
}
.r-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,.85);
  font-family: 'Raleway', sans-serif;
  font-size: .875rem;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.r-btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  color: white;
}

/* ── RESEARCH AS A SERVICE ── */
.r-raas-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.r-raas-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 480px;
}
.r-raas-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r-raas-list li {
  font-size: .9rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.r-raas-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--r-teal);
  font-size: .8rem;
}
.r-raas-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--r-teal);
  color: white;
  font-size: .9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  margin-top: 20px;
}
.r-raas-btn:hover {
  background: var(--r-teal-mid);
  transform: translateY(-2px);
  color: white;
}
.r-raas-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}
.r-raas-stat {
  background: white;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r-raas-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--r-teal);
  line-height: 1;
}
.r-raas-stat-label {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── PUBLICATIONS SHOW MORE ── */
.r-pubs-hidden {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.r-pubs-hidden.r-pubs-open {
  max-height: 2000px;
  opacity: 1;
}
/* strong fade overlay */
.r-pubs-fade {
  position: relative;
  margin-top: -140px;
  height: 160px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 45%, #ffffff 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.r-pubs-fade--open {
  opacity: 0;
  margin-top: 0;
  height: 0;
  overflow: hidden;
}
.r-pubs-toggle-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.r-pubs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--r-teal);
  color: var(--r-teal);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  pointer-events: all;
}
.r-pubs-toggle:hover {
  background: var(--r-teal);
  color: white;
}
.r-pubs-toggle-arrow { font-size: .85rem; }
.r-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.r-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .r-hero { grid-template-columns: 1fr; gap: 40px; padding: 72px 24px 60px; }
  .r-hero::before { display: none; }
  .r-section { padding: 60px 24px; }
  .r-collab-band { padding: 60px 24px; }
  .r-research-grid { grid-template-columns: 1fr; }
  .r-team-grid { grid-template-columns: repeat(2, 1fr); }
  .r-collab-inner { grid-template-columns: 1fr; }
  .r-collab-cta { flex-direction: row; }
  .r-funding-grid { grid-template-columns: 1fr 1fr; }
  .r-section-title { font-size: 2rem; }
  .r-raas-inner { grid-template-columns: 1fr; gap: 40px; }
  .r-raas-desc { max-width: 100%; }
}
@media (max-width: 520px) {
  .r-team-grid { grid-template-columns: 1fr; }
  .r-funding-grid { grid-template-columns: 1fr; }
  .r-pub-item { flex-direction: column; gap: 8px; }
  .r-collab-cta { flex-direction: column; }
}
