/* ═══════════════════════════════════════════
   DETAIL PAGES SCALE & LAYOUT (Project / Venture / Job)
   ═══════════════════════════════════════════ */

.detail-page-wrapper {
  padding-top: 100px; /* Standardized spacing for the fixed navbar */
  padding-bottom: 100px;
  background: var(--color-surface);
  min-height: 100vh;
}

/* 1. HEADER & BREADCRUMB */
.detail-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--alpha-5);
  line-height: 1;
}

.breadcrumb-custom {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-500);
}

.breadcrumb-custom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-custom a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  margin: 0 10px;
  opacity: 0.3;
}

.btn-exit-detail {
  width: 44px;
  height: 44px;
  border: 1px solid var(--alpha-10);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-exit-detail:hover {
  background: var(--color-signal);
  color: var(--color-surface);
  transform: rotate(90deg);
  border-color: var(--color-signal);
}

/* 2. HERO COMPONENT */
.detail-hero-media {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 21/9;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-hero-media:hover .detail-hero-img {
  transform: scale(1.05);
}

.detail-title {
  font-family: var(--font-body);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  margin-top: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.detail-lead {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--color-gray-700);
  max-width: 850px;
  line-height: 1.5;
  margin-bottom: 30px; /* Standardizing gap before sections */
}

/* 3. SECTION ARCHITECTURE */
.detail-section {
  margin-bottom: 60px;
}

.detail-section-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.detail-section-label::after {
  display: none; /* Removed the line to keep it clean and bold as requested */
}

.detail-text-block {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-gray-800);
  padding-left: 35px; /* Offset from the heading label */
}

/* 4. IMPACT TELEMETRY */
.impact-telemetry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin: 30px 0;
  padding: 30px;
  background: var(--color-gray-100);
  border: 1px solid var(--alpha-5);
  border-radius: 16px;
}

.impact-node {
  border-left: 1px solid var(--color-signal);
  padding-left: 24px;
}

.impact-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 10px;
}

.impact-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
}

/* 5. GALLERY SYSTEM */
.horizontal-gallery {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding-bottom: 30px;
  scroll-snap-type: x mandatory;
  margin: 40px 0;
}

.horizontal-gallery::-webkit-scrollbar {
  height: 4px;
}

.horizontal-gallery::-webkit-scrollbar-thumb {
  background: var(--color-primary);
}

.gallery-card {
  min-width: 450px;
  aspect-ratio: 4/3;
  background: var(--color-gray-200);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 6. TEAM ROSTER */
.team-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.roster-member {
  display: flex;
  align-items: center;
  gap: 15px;
}

.member-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
}

.member-meta v {
  display: block;
  font-weight: 700;
  font-size: 14px;
}

.member-meta s {
  display: block;
  font-size: 11px;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* 7. CTA / JOB BOARD SPECIFIC */
.job-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0;
  border-bottom: 1px solid var(--alpha-5);
  padding-bottom: 15px;
  margin-top: 0;
}

.job-meta-item {
  display: flex;
  flex-direction: column;
}

.job-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-gray-500);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.job-meta-value {
  font-weight: 700;
  font-size: 14px;
}

.apply-shelf {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: var(--color-surface);
  padding: 20px 0;
  border-top: 1px solid var(--alpha-10);
  z-index: 100;
  margin-top: 80px;
}

/* MOBILE ADAPTATION */
@media (max-width: 768px) {
  .detail-text-block {
    padding-left: 15px; /* Reduced indentation for mobile */
  }
  .detail-page-wrapper {
    padding-top: 40px;
  }
  .detail-hero-media {
    aspect-ratio: 16/9;
  }
  .gallery-card {
    min-width: 300px;
  }
  .impact-telemetry {
    padding: 30px;
    gap: 30px;
  }
  .apply-shelf .btn-teamup {
    width: 100%;
  }
}
