/* =========================================================
   TRANS-NZOIA AHP — Project Detail Page Stylesheet
   Full redesign: hero, facts, description, progress,
   timeline stepper, gallery lightbox, sidebar
   ========================================================= */

/* ---------------------------------------------------------
   0. PAGE TOP OFFSET (navbar + ticker)
   --------------------------------------------------------- */
.pd-hero {
  padding-top: calc(var(--navbar-height) + 40px);
}

/* Shared breadcrumb utilities */
.breadcrumb { display:flex; align-items:center; gap:var(--space-2); margin-bottom:var(--space-6); flex-wrap:wrap; }
.breadcrumb-link { font-family:var(--font-heading); font-size:12px; font-weight:var(--weight-medium); color:rgba(255,255,255,0.55); text-decoration:none; transition:color var(--transition-fast); }
.breadcrumb-link:hover { color:var(--lime); }
.breadcrumb-sep { font-size:9px; color:rgba(255,255,255,0.3); }
.breadcrumb-current { font-family:var(--font-heading); font-size:12px; font-weight:var(--weight-semibold); color:var(--lime); max-width:260px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.text-lime { color:var(--lime); }

/* ---------------------------------------------------------
   1. HERO
   --------------------------------------------------------- */
.pd-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.pd-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--neutral-900);
}

.pd-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,31,5,0.30) 0%,
    rgba(10,31,5,0.65) 40%,
    rgba(10,31,5,0.95) 100%
  );
}

.pd-hero .container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-16);
  padding-bottom: 0;
}

/* Hero content */
.pd-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-bottom: 3.5rem;
}

.pd-hero-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.pd-badge--active   { background: rgba(34,197,94,0.90); color: #fff; }
.pd-badge--planning { background: rgba(245,158,11,0.90); color: #fff; }
.pd-badge--completed { background: rgba(14,165,233,0.90); color: #fff; }
.pd-badge--watch { background: rgba(239,68,68,0.90); color: #fff; }
.pd-badge--con {
  background: rgba(159,232,112,0.12);
  color: var(--lime);
  border: 1px solid rgba(159,232,112,0.30);
}
.pd-badge--date {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.12);
}

.pd-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw + 1rem, 4.6rem);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 860px;
}

.pd-hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 6px 4px;
  width: fit-content;
  max-width: 100%;
}

.pd-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  padding: 2px 14px;
  border-right: 1px solid rgba(255,255,255,0.10);
}

.pd-hero-meta-item:last-child { border-right: none; }

.pd-hero-meta-item i {
  font-size: 11px;
  color: var(--lime);
}

/* Hero % completion block — glassmorphism pill container */
.pd-hero-pct-wrap {
  margin-top: var(--space-4);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(159,232,112,0.18);
  border-radius: 1rem;
  padding: 1.25rem 1.75rem;
  width: fit-content;
  min-width: 280px;
}

.pd-hero-pct {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.pd-hero-pct-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: var(--weight-extrabold);
  color: var(--lime);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pd-hero-pct-sign {
  font-size: 0.6em;
  color: var(--lime-muted);
}

.pd-hero-pct-lbl {
  font-family: var(--font-heading);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  align-self: center;
}

.pd-hero-pct-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pd-hero-pct-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-400), var(--lime));
  border-radius: var(--radius-full);
  transition: width 1.6s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 10px rgba(159,232,112,0.4);
}

/* ---------------------------------------------------------
   2. BODY LAYOUT
   --------------------------------------------------------- */
.pd-body {
  background: #f5f7f2;
  padding: var(--space-10) 0 var(--space-18);
}

.pd-body-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* ---------------------------------------------------------
   3. FACTS STRIP  —  3×2 grid
   --------------------------------------------------------- */
.pd-facts-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.pd-fact {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  min-height: 160px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-fact:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22,51,0,0.09);
}

.pd-fact-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  font-size: 14px;
  flex-shrink: 0;
}

.pd-fact-lbl {
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: var(--weight-bold);
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.pd-fact-val {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: var(--weight-extrabold);
  color: var(--neutral-900);
  line-height: 1.3;
  overflow-wrap: anywhere;
  margin-top: auto;
}

/* ---------------------------------------------------------
   4. SECTION SHARED ATOMS
   --------------------------------------------------------- */
.pd-section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.pd-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: var(--weight-extrabold);
  color: var(--neutral-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-5);
  overflow-wrap: anywhere;
}

.pd-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 2vw, var(--space-8));
  margin-bottom: var(--space-6);
  min-width: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

/* ---------------------------------------------------------
   5. DESCRIPTION
   --------------------------------------------------------- */
.pd-description-text {
  font-size: 15px;
  color: var(--neutral-600);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  max-width: 68ch;
  overflow-wrap: anywhere;
}

.pd-desc-meta-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-100);
}

.pd-desc-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--neutral-700);
  padding: var(--space-4);
  background: var(--white);
  border-bottom: 1px solid var(--neutral-50);
  transition: background 0.15s;
}

.pd-desc-meta-item:last-child { border-bottom: none; }
.pd-desc-meta-item:hover { background: rgba(34,80,14,0.03); }

.pd-desc-meta-item i {
  color: var(--primary-500);
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

.pd-desc-meta-item strong {
  display: block;
  font-size: 9px;
  color: var(--lime-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
  font-weight: var(--weight-bold);
}

.pd-desc-meta-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pd-current-milestone {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(34,80,14,0.04);
  border: 1px solid rgba(34,80,14,0.10);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--neutral-700);
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin-top: var(--space-5);
}

.pd-current-milestone i {
  color: var(--lime-muted);
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   6. CONSTRUCTION PROGRESS
   --------------------------------------------------------- */
.pd-progress-bar-wrap {
  margin-top: var(--space-5);
  margin-bottom: var(--space-6);
}

.pd-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.pd-progress-lbl {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--neutral-500);
}

.pd-progress-pct {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--weight-extrabold);
  color: var(--primary-700);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pd-progress-track {
  height: 20px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.pd-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-600) 0%, var(--lime) 100%);
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  box-shadow: 0 0 12px rgba(159,232,112,0.35);
}

.pd-progress-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 11.5px;
  color: var(--neutral-400);
  margin-top: var(--space-3);
  padding: 8px 12px;
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
}

.pd-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-6);
  margin-top: var(--space-4);
  border-top: 2px solid var(--neutral-100);
}

.pd-mini-stat {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 120px;
  min-width: 0;
}

.pd-mini-stat:hover { 
  box-shadow: 0 6px 16px rgba(22,51,0,0.09);
  transform: translateY(-2px);
  background: var(--white);
}

.pd-mini-stat-val {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: var(--weight-extrabold);
  color: var(--primary-700);
  letter-spacing: -0.02em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.pd-mini-stat-lbl {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.4;
  margin-top: auto;
}

/* ---------------------------------------------------------
   7. TIMELINE STEPPER
   --------------------------------------------------------- */
.pd-timeline {
  position: relative;
  margin-top: var(--space-6);
  padding-left: 56px;
}

.pd-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-200), var(--neutral-100));
  z-index: 0;
}

.pd-tl-item {
  position: relative;
  padding-bottom: var(--space-7);
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.pd-tl-item:last-child { padding-bottom: 0; }

/* Spine column */
.pd-tl-spine {
  position: absolute;
  left: -52px;
  top: 0;
  width: 40px;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.pd-tl-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--neutral-200);
  background: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: transparent;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.pd-tl-item.is-done .pd-tl-dot {
  background: var(--primary-600);
  box-shadow: 0 0 0 2px rgba(34,80,14,0.2);
  color: #fff;
}

/* Done: draw the connecting line in lime above the dot */
.pd-tl-item.is-done + .pd-tl-item .pd-tl-spine::before,
.pd-tl-item.is-done::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 22px;
  width: 2px;
  height: calc(100% - 22px);
  background: var(--primary-400);
  z-index: 0;
}

.pd-tl-item.is-current .pd-tl-dot {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(159,232,112,0.25), 0 0 0 7px rgba(159,232,112,0.08);
  color: var(--primary-900);
  animation: tl-pulse 2.4s ease-in-out infinite;
}

@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(159,232,112,0.25), 0 0 0 7px rgba(159,232,112,0.08); }
  50%       { box-shadow: 0 0 0 6px rgba(159,232,112,0.35), 0 0 0 12px rgba(159,232,112,0.06); }
}

/* Content */
.pd-tl-content {
  flex: 1;
  min-width: 0;
  padding-right: var(--space-2);
}

.pd-tl-date {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--neutral-400);
  margin-bottom: var(--space-1);
  letter-spacing: 0.04em;
}

.pd-tl-item.is-done .pd-tl-date  { color: var(--primary-500); }
.pd-tl-item.is-current .pd-tl-date { color: var(--lime-muted); }

.pd-tl-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: var(--weight-bold);
  color: var(--neutral-500);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.pd-tl-item.is-done .pd-tl-label    { color: var(--neutral-700); }
.pd-tl-item.is-current .pd-tl-label { color: var(--neutral-900); font-size: 15px; }

.pd-tl-badge {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  background: var(--lime);
  color: var(--primary-900);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  vertical-align: middle;
}

.pd-timeline-empty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-lg);
  color: var(--neutral-500);
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.55;
}

.pd-timeline-empty i {
  color: var(--primary-500);
}

/* ---------------------------------------------------------
   8. PHOTO GALLERY + LIGHTBOX
   --------------------------------------------------------- */
.pd-gallery {
  margin-top: var(--space-6);
}

/* Featured image — full width */
.pd-gallery-featured {
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/7;
  background: var(--neutral-100);
  cursor: pointer;
  border: none;
  padding: 0;
  margin-bottom: var(--space-5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.pd-gallery-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.pd-gallery-featured:hover img { transform: scale(1.03); }

/* Static 2-col thumbnail grid */
.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.pd-gallery-item {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--neutral-100);
  cursor: pointer;
  border: none;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pd-gallery-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}

.pd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pd-gallery-item:hover img { transform: scale(1.04); }

/* Overlay for featured + thumbnails */
.pd-gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,31,5,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, opacity 0.3s ease;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  border-radius: inherit;
}

.pd-gallery-featured:hover .pd-gallery-item-overlay,
.pd-gallery-item:hover .pd-gallery-item-overlay {
  background: rgba(10,31,5,0.38);
  opacity: 1;
}

.pd-gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-14) var(--space-8);
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--neutral-400);
  font-size: 2rem;
  margin-top: var(--space-4);
}

.pd-gallery-empty p {
  font-size: 14px;
  font-family: var(--font-heading);
  line-height: 1.6;
}

/* Lightbox */
.pd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pd-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.pd-lb-img-wrap {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-lb-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  display: block;
}

.pd-lb-close {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.pd-lb-close:hover { background: rgba(255,255,255,0.20); }

.pd-lb-prev,
.pd-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.pd-lb-prev { left: var(--space-5); }
.pd-lb-next { right: var(--space-5); }
.pd-lb-prev:hover, .pd-lb-next:hover { background: rgba(255,255,255,0.22); }

.pd-lb-caption {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   9. SIDEBAR — redesigned
   --------------------------------------------------------- */
.pd-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 40px + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.pd-sidebar-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  min-width: 0;
}

.pd-sidebar-card-title {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--neutral-100);
}

/* Contractor card with avatar */
.pd-sb-contractor {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  align-items: flex-start;
  row-gap: var(--space-5);
}

.pd-sb-con-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: rgba(34,80,14,0.09);
  border: 1px solid rgba(34,80,14,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pd-sb-con-info { grid-column: 2; }

.pd-sb-agency {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--neutral-500);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--neutral-50);
}

.pd-sb-agency i { color: var(--primary-400); font-size: 11px; }

.pd-contractor-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: var(--weight-bold);
  color: var(--neutral-900);
  margin-bottom: var(--space-2);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.pd-contractor-role-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  background: rgba(34,80,14,0.08);
  color: var(--primary-600);
  border: 1px solid rgba(34,80,14,0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

/* Project Info rows */
.pd-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-sidebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 12.5px;
  padding: 11px var(--space-3);
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--neutral-100);
  min-width: 0;
}

.pd-sidebar-row:last-child { border-bottom: none; }

.pd-sidebar-row.is-alt { background: var(--primary-50); }

.pd-sidebar-row-lbl {
  color: var(--neutral-500);
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: var(--weight-medium);
  min-width: 88px;
}

.pd-sidebar-row-val {
  color: var(--neutral-900);
  font-weight: var(--weight-bold);
  text-align: right;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Status badge inside sidebar */
.pd-sb-status {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: var(--weight-bold);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.pd-sb-status--active   { background: rgba(34,197,94,0.12); color: #16a34a; }
.pd-sb-status--planning { background: rgba(245,158,11,0.12); color: #d97706; }
.pd-sb-status--completed { background: rgba(14,165,233,0.12); color: #0284c7; }
.pd-sb-status--watch { background: rgba(239,68,68,0.12); color: #dc2626; }

/* Mini progress bar in completion row */
.pd-sb-pct {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--weight-extrabold);
  color: var(--primary-700);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pd-sb-mini-bar {
  height: 6px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  margin-top: 6px;
  overflow: hidden;
}

.pd-sb-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--lime));
  border-radius: var(--radius-full);
  box-shadow: 0 0 6px rgba(159,232,112,0.3);
}

.pd-sb-link {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: var(--weight-semibold);
}

.pd-sb-link:hover { text-decoration: underline; }

/* Apply CTA card */
.pd-apply-card {
  background: var(--primary-800);
  border: none;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.pd-apply-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: rgba(159,232,112,0.12);
  border: 1px solid rgba(159,232,112,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--lime);
  margin: 0 auto var(--space-4);
}

.pd-apply-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: var(--weight-bold);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.pd-apply-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-5);
  line-height: 1.65;
}

.pd-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--weight-bold);
  background: var(--lime);
  color: var(--primary-900);
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.pd-apply-btn:hover {
  background: var(--lime-bright);
  transform: translateY(-1px);
}

/* Related links as row cards */
.pd-related-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pd-related-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-100);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.pd-related-link:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.07); }

.pd-related-link:hover {
  background: var(--neutral-50);
  border-color: var(--primary-200);
}

.pd-related-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(34,80,14,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  font-size: 12px;
  flex-shrink: 0;
}

.pd-related-link span {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--neutral-700);
  min-width: 0;
  overflow-wrap: anywhere;
}

.pd-related-arrow {
  font-size: 10px;
  color: var(--neutral-300);
  transition: color 0.18s, transform 0.18s;
}

.pd-related-link:hover .pd-related-arrow {
  color: var(--primary-500);
  transform: translateX(2px);
}

.pd-related-projects {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pd-related-project {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--space-4);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-lg);
  background: var(--neutral-50);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.pd-related-project:hover {
  background: var(--white);
  border-color: var(--primary-200);
  transform: translateY(-1px);
}

.pd-related-project-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--weight-bold);
  color: var(--neutral-900);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pd-related-project-meta {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--neutral-500);
}

/* ---------------------------------------------------------
   10. NOT FOUND
   --------------------------------------------------------- */
.pd-not-found {
  padding: var(--space-20) 0;
}

.pd-not-found-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.pd-not-found-icon {
  font-size: 4rem;
  color: var(--neutral-200);
}

.pd-not-found h1,
.pd-not-found h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: var(--weight-bold);
  color: var(--neutral-600);
}

.pd-not-found p {
  font-size: 15px;
  color: var(--neutral-400);
}

/* ---------------------------------------------------------
   11. SECTION CARD WRAPPERS (applied via HTML class)
   --------------------------------------------------------- */
.pd-description,
.pd-progress-section,
.pd-timeline-section {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 2vw, var(--space-8));
  margin-bottom: var(--space-5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  min-width: 0;
}

.pd-gallery-section {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 2vw, var(--space-8));
  margin-bottom: var(--space-5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}

/* ---------------------------------------------------------
   12. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .pd-body-inner { grid-template-columns: 1fr 300px; gap: var(--space-7); }
  .pd-facts-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .pd-body-inner { grid-template-columns: 1fr; }
  .pd-sidebar { position: relative; top: auto; }
}

@media (max-width: 767px) {
  .pd-hero { min-height: 72vh; }
  .pd-hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .pd-facts-strip { grid-template-columns: repeat(2, 1fr); }
  .pd-mini-stats { grid-template-columns: repeat(2, 1fr); }
  .pd-body { padding: var(--space-8) 0 var(--space-14); }
  .pd-fact { min-height: 150px; }
  .pd-sidebar-row {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-1);
  }
  .pd-sidebar-row-val {
    text-align: left;
  }
  .pd-sb-contractor { grid-template-columns: 1fr; }
  .pd-sb-con-avatar { display: none; }
  .pd-sb-con-info { grid-column: 1; }
  .pd-gallery-grid { grid-template-columns: 1fr; }
  .pd-gallery-featured { aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  .pd-facts-strip,
  .pd-mini-stats {
    grid-template-columns: 1fr;
  }

  .pd-card,
  .pd-description,
  .pd-progress-section,
  .pd-timeline-section,
  .pd-gallery-section {
    padding: var(--space-5);
  }

  .pd-fact,
  .pd-mini-stat,
  .pd-sidebar-card {
    padding: var(--space-5);
  }

  .pd-timeline {
    padding-left: 44px;
  }

  .pd-tl-spine {
    left: -44px;
  }
}
