/* ==========================================================================
   LOCUS-SF: City Pipeline · Investor Signal Atlas Stylesheet
   Sleek iOS-Grade Tactile Studio · Forward-Looking Demand & Momentum Radar
   ========================================================================== */

:root {
  --pipe-amber: #f59e0b;
  --pipe-amber-dark: #d97706;
  --pipe-orange: #ea580c;
  --pipe-amber-gradient: linear-gradient(135deg, #ffb800 0%, #ff7a00 100%);
  --pipe-amber-gradient-hover: linear-gradient(135deg, #ffc21a 0%, #ff881a 100%);
  --pipe-amber-shadow: 0 4px 16px rgba(255, 122, 0, 0.32), 0 2px 6px rgba(255, 184, 0, 0.2);
  --pipe-amber-shadow-hover: 0 8px 24px rgba(255, 122, 0, 0.42), 0 3px 8px rgba(255, 184, 0, 0.28);

  --pipe-emerald: #10b981;
  --pipe-emerald-dark: #059669;
  --pipe-emerald-bg: #ecfdf5;
  --pipe-emerald-border: rgba(16, 185, 129, 0.25);

  --pipe-blue: #3b82f6;
  --pipe-blue-dark: #2563eb;
  --pipe-blue-bg: #eff6ff;
  --pipe-blue-border: rgba(59, 130, 246, 0.25);

  --pipe-slate-900: #0f172a;
  --pipe-slate-800: #1e293b;
  --pipe-slate-700: #334155;
  --pipe-slate-600: #475569;
  --pipe-slate-500: #64748b;
  --pipe-slate-400: #94a3b8;
  --pipe-slate-200: #e2e8f0;
  --pipe-slate-100: #f1f5f9;
  --pipe-slate-50: #f8fafc;

  --pipe-card-bg: #ffffff;
  --pipe-card-border: rgba(226, 232, 240, 0.9);
  --pipe-card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --pipe-card-shadow-hover: 0 14px 34px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --pipe-card-radius: 22px;
}

body[data-page="city-pipeline"] {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.pipeline-page-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 20px 32px 80px;
  box-sizing: border-box;
}

.pipeline-site-shell {
  max-width: 1640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --------------------------------------------------------------------------
   Hero Ribbon: Architectural Strategic Radar Header
   -------------------------------------------------------------------------- */
.pipe-hero-ribbon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 42px;
  gap: 36px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 60%, #fffdf5 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-top: 3.5px solid #f59e0b;
  border-radius: 24px;
  box-shadow: var(--pipe-card-shadow);
  overflow: hidden;
}

.pipe-hero-ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(226, 232, 240, 0.5) 39px 40px),
              repeating-linear-gradient(90deg, transparent 0 39px, rgba(226, 232, 240, 0.5) 39px 40px);
  mask-image: radial-gradient(circle at 85% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.pipe-hero-ribbon::after {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  right: -80px;
  top: -130px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(245, 158, 11, 0.04), 0 0 0 120px rgba(245, 158, 11, 0.02);
  pointer-events: none;
}

.pipe-hero-copy {
  position: relative;
  min-width: 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}

.pipe-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pipe-live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  color: #b45309;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipe-live-beacon::before {
  content: '';
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  animation: pipeBeaconPulse 2s infinite ease-in-out;
}

@keyframes pipeBeaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.pipe-hero-location {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pipe-hero-copy h1 {
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0;
}

.pipe-hero-copy h1 span {
  display: inline-block;
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pipe-hero-copy p {
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.pipe-hero-actions {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 18px;
  min-width: 380px;
  z-index: 1;
}

.pipe-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.pipe-hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.pipe-hero-stats strong {
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.pipe-hero-stats span {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pipe-hero-links {
  display: flex;
  gap: 10px;
}

/* User's Exact Amber-Orange Pill Button Style */
.btn-pipe-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pipe-amber-gradient);
  color: #ffffff !important;
  border: none;
  border-radius: 9999px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
  padding: 11px 22px;
  min-height: 42px;
  text-decoration: none;
  box-shadow: var(--pipe-amber-shadow);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn-pipe-primary:hover {
  background: var(--pipe-amber-gradient-hover);
  box-shadow: var(--pipe-amber-shadow-hover);
  transform: translateY(-1.5px) scale(1.015);
  color: #ffffff !important;
}

.btn-pipe-primary:active {
  transform: translateY(0.5px) scale(0.99);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

.btn-pipe-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 750;
  padding: 11px 18px;
  min-height: 42px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-pipe-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   Interactive Master Control Dock (Dual Lens + Filters)
   -------------------------------------------------------------------------- */
.pipe-control-dock {
  background: #ffffff;
  border: 1px solid var(--pipe-card-border);
  border-radius: var(--pipe-card-radius);
  padding: 20px 24px;
  box-shadow: var(--pipe-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipe-dock-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* iOS-Grade Segmented Lens Switcher */
.pipe-segment-bar {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9999px;
  gap: 4px;
  border: 1px solid #e2e8f0;
}

.pipe-segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.pipe-segment-btn:hover {
  color: #0f172a;
}

.pipe-segment-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.pipe-segment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.pipe-segment-btn.is-active .pipe-segment-badge {
  background: #fffbeb;
  color: #b45309;
}

.pipe-segment-btn[data-lens="investment_gap"].is-active .pipe-segment-badge {
  background: #ecfdf5;
  color: #059669;
}

.pipe-segment-btn[data-lens="future_project"].is-active .pipe-segment-badge {
  background: #eff6ff;
  color: #2563eb;
}

/* Search Bar */
.pipe-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.pipe-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.pipe-search-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 16px 8px 38px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipe-search-input:focus {
  background: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.pipe-search-input::placeholder {
  color: #94a3b8;
}

/* Category Filter Chips */
.pipe-dock-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.pipe-sector-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pipe-sector-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-right: 4px;
}

.pipe-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pipe-chip:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.pipe-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}

.pipe-active-meta {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.pipe-active-meta strong {
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   Featured Lead Spotlight Card
   -------------------------------------------------------------------------- */
.pipe-spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: 32px;
  padding: 26px;
  border-radius: var(--pipe-card-radius);
  background: #ffffff;
  border: 1px solid var(--pipe-card-border);
  box-shadow: 0 10px 32px -4px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition: all 0.25s ease;
}

.pipe-spotlight-card.is-gap {
  border-left: 5px solid #10b981;
}

.pipe-spotlight-card.is-project {
  border-left: 5px solid #3b82f6;
}

.pipe-spotlight-media-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  background: #0f172a;
}

.pipe-spotlight-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pipe-spotlight-card:hover .pipe-spotlight-img {
  transform: scale(1.03);
}

.pipe-spotlight-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.pipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pipe-badge.is-featured {
  background: rgba(15, 23, 42, 0.85);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.pipe-badge.is-category {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.pipe-spotlight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #ffffff;
  z-index: 2;
}

.pipe-spotlight-loc {
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Spotlight Content Side */
.pipe-spotlight-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.pipe-spotlight-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipe-partner-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipe-partner-pill {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 9999px;
}

.pipe-partner-pill.is-gap {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.pipe-partner-pill.is-project {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.pipe-partner-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.pipe-spotlight-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.pipe-spotlight-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* Dual Metric Pill Row */
.pipe-metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pipe-metric-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.pipe-metric-label {
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.pipe-metric-value {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 750;
  color: #0f172a;
}

/* Market Thesis Callout */
.pipe-thesis-box {
  padding: 14px 18px;
  background: #f8fafc;
  border-left: 3.5px solid #d97706;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #334155;
}

.pipe-thesis-box strong {
  color: #0f172a;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* Guardrail / Avoidance Warning */
.pipe-guardrail-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  font-size: 11.5px;
  color: #92400e;
  font-weight: 600;
}

.pipe-guardrail-strip svg {
  width: 16px;
  height: 16px;
  color: #d97706;
  flex-shrink: 0;
}

/* Spotlight Actions */
.pipe-spotlight-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Section Containers: Investor Gaps & Momentum Pipeline
   -------------------------------------------------------------------------- */
.pipe-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pipe-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #e2e8f0;
}

.pipe-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pipe-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pipe-kicker.is-gap {
  color: #059669;
}

.pipe-kicker.is-project {
  color: #2563eb;
}

.pipe-section-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0;
}

.pipe-section-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.pipe-section-badge {
  font-size: 11px;
  font-weight: 750;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

/* --------------------------------------------------------------------------
   Collection Cards Grid (3 Columns)
   -------------------------------------------------------------------------- */
.pipe-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.pipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: var(--pipe-card-radius);
  background: #ffffff;
  border: 1px solid var(--pipe-card-border);
  box-shadow: var(--pipe-card-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.pipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pipe-card-shadow-hover);
  border-color: rgba(245, 158, 11, 0.4);
}

.pipe-card.is-gap {
  border-top: 3.5px solid #10b981;
}

.pipe-card.is-project {
  border-top: 3.5px solid #3b82f6;
}

.pipe-card-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pipe-card-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pipe-tag-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pipe-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pipe-tag.is-sector {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.pipe-tag.is-not-present {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.pipe-tag.is-under-supplied {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pipe-tag.is-stage-planned {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.pipe-tag.is-stage-approved {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.pipe-tag.is-stage-construction {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.pipe-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.pipe-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pipe-card:hover .pipe-card-thumb {
  transform: scale(1.05);
}

.pipe-card-location-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pipe-card-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}

.pipe-card-summary {
  font-size: 12.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.pipe-card-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
}

.pipe-card-specs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pipe-card-specs span {
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.pipe-card-specs strong {
  font-size: 12px;
  font-weight: 750;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Avoidance pill inside card */
.pipe-card-avoidance {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  background: #fffdf5;
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  font-size: 11px;
  color: #92400e;
  line-height: 1.45;
}

.pipe-card-avoidance svg {
  width: 14px;
  height: 14px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Card Actions */
.pipe-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.btn-card-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-primary.is-amber {
  background: var(--pipe-amber-gradient);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.25);
}

.btn-card-primary.is-amber:hover {
  background: var(--pipe-amber-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.35);
}

.btn-card-primary.is-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-card-primary.is-blue:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-card-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-card-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   Executive Inspector Modal / Dialog
   -------------------------------------------------------------------------- */
.pipe-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pipe-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pipe-modal-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipe-modal-backdrop.is-open .pipe-modal-card {
  transform: scale(1) translateY(0);
}

.pipe-modal-hero {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0f172a;
  overflow: hidden;
  flex-shrink: 0;
}

.pipe-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pipe-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
  z-index: 3;
}

.pipe-modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: scale(1.08);
}

.pipe-modal-scroll {
  padding: 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pipe-modal-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pipe-modal-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0;
}

.pipe-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pipe-modal-stat {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pipe-modal-stat span {
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.pipe-modal-stat strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.pipe-modal-prose {
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.pipe-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 32px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.pipe-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: #ffffff;
  border: 1.5px dashed #e2e8f0;
  border-radius: var(--pipe-card-radius);
  gap: 12px;
}

.pipe-empty-icon {
  width: 48px;
  height: 48px;
  color: #cbd5e1;
}

.pipe-empty-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.pipe-empty-copy {
  font-size: 13px;
  color: #64748b;
  max-width: 420px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .pipe-hero-ribbon {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px;
    gap: 24px;
  }
  .pipe-hero-actions {
    width: 100%;
    min-width: 0;
  }
  .pipe-spotlight-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pipe-spotlight-media-wrap {
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  .pipeline-page-shell {
    padding: 16px 18px 60px;
  }
  .pipe-card-grid {
    grid-template-columns: 1fr;
  }
  .pipe-dock-topline {
    flex-direction: column;
    align-items: stretch;
  }
  .pipe-search-wrap {
    max-width: none;
  }
  .pipe-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pipe-hero-ribbon {
    padding: 20px;
    border-radius: 18px;
  }
  .pipe-hero-copy h1 {
    font-size: 24px;
  }
  .pipe-segment-bar {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .pipe-metrics-row {
    grid-template-columns: 1fr;
  }
  .pipe-modal-card {
    border-radius: 20px;
  }
  .pipe-modal-scroll {
    padding: 20px;
  }
  .pipe-modal-footer {
    padding: 14px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-pipe-primary, .btn-pipe-secondary {
    justify-content: center;
  }
}
