/* ============================================
   CODHZ Long-Form Page Template
   Shared by research.html, apply.html, generative-sociology.html, labs.html
   (labs.html uses the "labs-" prefix for the same pattern; both are targeted)
   ============================================ */

.pg-body, .labs-body { background: #fff; }
.pg-inner, .labs-inner { max-width: 740px; margin: 0 auto; }

.pg-hero-content, .labs-hero-content {
  max-width: calc(740px + 4rem);
  margin: 0 auto;
  padding: 10rem 2rem 4rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.pg-section, .labs-section {
  padding: 3.5rem 2rem;
  background: #fff;
}
.pg-section h2, .labs-section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: #2B2D42;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pg-section p, .labs-section p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.pg-section p:last-child, .labs-section p:last-child { margin-bottom: 0; }
.pg-section p em, .labs-section p em { color: #2B2D42; font-style: italic; }

.pg-label, .labs-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D90429;
  margin-bottom: 0.8rem;
}

/* Cards */
.pg-card, .labs-card {
  padding: 1.6rem 1.8rem;
  background: #fff;
  border: 1px solid rgba(141,153,174,0.12);
  border-radius: 14px;
  margin-bottom: 1rem;
  transition: all 0.35s ease;
  box-shadow: 0 1px 3px rgba(43,45,66,0.03);
}
.pg-card:hover, .labs-card:hover {
  border-color: rgba(141,153,174,0.25);
  box-shadow: 0 6px 24px rgba(43,45,66,0.06);
  transform: translateY(-1px);
}
.pg-card:last-child, .labs-card:last-child { margin-bottom: 0; }
.pg-grid .pg-card, .labs-grid .labs-card { margin-bottom: 0; }
.pg-card h3, .labs-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: #2B2D42;
  margin-bottom: 0.5rem;
}
.pg-card p, .labs-card p {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.75;
  margin-bottom: 0;
}
.pg-card-number, .labs-card-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: #D90429;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.pg-grid, .labs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

/* Accent box */
.pg-accent, .labs-accent {
  margin: 2rem 0;
  padding: 1.6rem 1.8rem;
  background: #FAFBFC;
  border-left: 3px solid #2B2D42;
  border-radius: 4px 14px 14px 4px;
  box-shadow: 0 1px 3px rgba(43,45,66,0.03);
}
.pg-accent p, .labs-accent p {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 0.6rem;
}
.pg-accent p:last-child, .labs-accent p:last-child { margin-bottom: 0; }
.pg-accent-label, .labs-accent-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D90429;
  margin-bottom: 0.8rem;
}

/* Links */
.pg-link, .labs-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #D90429;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 0;
  transition: all 0.25s ease;
}
.pg-link:hover, .labs-link:hover { gap: 0.5rem; }

/* Nav back */
.pg-nav-back, .labs-nav-back {
  padding: 4rem 2rem;
  background: #FAFBFC;
}

/* Smooth slide */
.pg-body .reveal, .labs-body .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pg-body .reveal.visible, .labs-body .reveal.visible { opacity: 1; transform: translateY(0); }
.pg-body .reveal:nth-child(2), .labs-body .reveal:nth-child(2) { transition-delay: 0.08s; }
.pg-body .reveal:nth-child(3), .labs-body .reveal:nth-child(3) { transition-delay: 0.16s; }
.pg-body .reveal:nth-child(4), .labs-body .reveal:nth-child(4) { transition-delay: 0.24s; }
