/* ==========================================================================
   STANDALONE SMART PROJECT ARCHITECTURE & CASE STUDY PAGE (/project/:id)
   Harmonized with style.css tokens • Zero Box Clutter • Balanced Hero
   ========================================================================== */

:root {
  --p-emerald: #059669;
  --p-emerald-dark: #047857;
  --p-emerald-soft: #ecfdf5;
  --p-blue: #0284c7;
  --p-blue-soft: #f0f9ff;
  --p-text-main: #0f172a;
  --p-text-sec: #334155;
  --p-text-muted: #64748b;
  --p-border: #e2e8f0;
  --p-surface: #ffffff;
  --p-surface-alt: #f8fafc;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000;
  background: transparent;
}
.read-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #059669, #0284c7);
  transition: width 0.12s ease-out;
}

.project-page-wrap {
  padding-top: 5.4rem;
  padding-bottom: 4.5rem;
  min-height: calc(100vh - 120px);
  overflow-x: clip;
}

/* Pure Seamless Bidirectional Isolation — NO gray boxes, NO broken wrapping */
.bidi-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.bidi-code {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.84em;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.22);
  padding: 0.04rem 0.42rem;
  border-radius: 6px;
  margin: 0 0.12rem;
  line-height: 1.4;
}

/* Top Breadcrumb & Quick Actions Bar */
.proj-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.proj-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--p-text-muted);
  flex-wrap: wrap;
}
.proj-breadcrumb a {
  color: var(--p-text-sec);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
.proj-breadcrumb a:hover {
  color: var(--p-emerald);
}
.proj-breadcrumb .sep {
  opacity: 0.45;
  font-size: 0.75rem;
}
.proj-breadcrumb .current {
  color: var(--p-text-main);
  font-weight: 700;
}

.proj-quick-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.proj-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--p-border);
  color: var(--p-text-sec);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.proj-nav-pill:hover {
  border-color: var(--p-emerald);
  color: var(--p-emerald);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO BANNER — Full-Width Balanced Architecture Header (No Empty Gaps)
   ========================================================================== */
.proj-hero-banner {
  position: relative;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 15%, rgba(16, 185, 129, 0.22), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(2, 132, 199, 0.2), transparent 48%),
    linear-gradient(135deg, #091326 0%, #0f172a 58%, #062e26 100%);
  color: #f8fafc;
  padding: 1.65rem 1.85rem 1.55rem;
  box-shadow: 0 18px 40px -15px rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 1.15rem;
}

.proj-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Row 1: Unified Identity + Single Live CTA */
.proj-hero-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.proj-hero-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.ph-badge-cat {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.38);
}
.ph-badge-arch {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.32);
  font-family: var(--font-mono);
}

.proj-hero-cta {
  flex-shrink: 0;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ph-btn-live {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.5);
}
.ph-btn-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.65);
}

/* Identity Block (Icon + Wide Title + Subtitle) */
.proj-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  flex: 1;
  min-width: 280px;
}

.proj-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(2, 132, 199, 0.24));
  border: 1px solid rgba(16, 185, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #34d399;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.proj-hero-titles {
  flex: 1;
  min-width: 0;
}

.proj-hero-title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin: 0 0 0.45rem;
}

.proj-hero-title-en {
  display: inline-block;
  color: #6ee7b7;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.92em;
  margin-inline-start: 0.35rem;
}

.proj-hero-pattern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}
.proj-hero-pattern i {
  color: #34d399;
}

/* Row 3: 4 Uniform Telemetry Cards */
.proj-telemetry-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pt-metric-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}
.pt-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  flex-shrink: 0;
}
.pt-metric-card:nth-child(2) .pt-metric-icon {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}
.pt-metric-card:nth-child(3) .pt-metric-icon {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
}
.pt-metric-card:nth-child(4) .pt-metric-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}
.pt-metric-info {
  min-width: 0;
  flex: 1;
}
.pt-metric-info strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-metric-info span {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 0.18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SINGLE-ROW STICKY SECTION NAVIGATION BAR
   ========================================================================== */
.proj-sticky-nav {
  position: sticky;
  top: 66px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--p-border);
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.1);
  margin-bottom: 1.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.proj-sticky-nav::-webkit-scrollbar {
  display: none;
}

.proj-jump-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.pjump-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--p-text-sec);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.pjump-btn:hover {
  background: #f1f5f9;
  color: var(--p-text-main);
}
.pjump-btn.active {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}
.pjump-count {
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.08);
  color: var(--p-text-sec);
}
.pjump-btn.active .pjump-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ==========================================================================
   SECTION CARDS
   ========================================================================== */
.proj-section {
  background: #ffffff;
  border: 1px solid var(--p-border);
  border-radius: 18px;
  padding: 1.55rem 1.7rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 130px;
}
.proj-section.hidden-sec {
  display: none !important;
}

.psec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--p-border);
}

.psec-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.psec-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.psec-title-wrap h2 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--p-text-main);
  margin: 0;
}
.psec-title-wrap p {
  font-size: 0.81rem;
  color: var(--p-text-muted);
  margin: 0.15rem 0 0;
}

/* 1. Executive Summary & Tech Stack Section */
.exec-summary-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
.exec-summary-layout.has-dual {
  grid-template-columns: 1.15fr 0.85fr;
}

.exec-overview-card {
  background: #f8fafc;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
}
.exec-overview-card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--p-text-main);
  margin-bottom: 0.55rem;
}
.exec-overview-card-head i {
  color: #0284c7;
}
.exec-overview-text {
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--p-text-sec);
  margin: 0;
}

.exec-arch-callout {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(2, 132, 199, 0.05));
  border: 1px solid rgba(5, 150, 105, 0.22);
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.55rem;
}
.exec-arch-callout-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #059669;
}
.exec-arch-callout p {
  font-size: 0.91rem;
  line-height: 1.85;
  color: var(--p-text-main);
  font-weight: 500;
  margin: 0;
}

.exec-tech-strip {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--p-border);
}
.exec-tech-label {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--p-text-muted);
  margin-inline-end: 0.3rem;
}
.exec-tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--p-border);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--p-text-main);
}

/* 2. Adaptive Highlights / Engineering Innovations Grid */
.smart-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

.sh-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--p-border);
  transition: all 0.2s ease;
}
.sh-card:hover {
  background: #ffffff;
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.sh-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #059669, #0284c7);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.sh-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--p-text-main);
  margin: 0;
  font-weight: 500;
}

/* 3. Interactive Modules Encyclopedia */
.mod-explorer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--p-border);
}

.mod-search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}
.mod-search-box i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 0.8rem;
  color: var(--p-text-muted);
  font-size: 0.84rem;
}
.mod-search-box input {
  width: 100%;
  padding: 0.48rem 0.8rem;
  padding-inline-start: 2.15rem;
  border-radius: 9px;
  border: 1px solid var(--p-border);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.83rem;
  color: var(--p-text-main);
  outline: none;
  transition: border-color 0.2s;
}
.mod-search-box input:focus {
  border-color: #059669;
}

.mod-schema-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.mschema-chip {
  padding: 0.32rem 0.68rem;
  border-radius: 8px;
  border: 1px solid var(--p-border);
  background: #ffffff;
  color: var(--p-text-sec);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.mschema-chip:hover {
  border-color: #059669;
  color: #059669;
}
.mschema-chip.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.smart-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.smod-card {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--p-border);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.2s ease;
}
.smod-card:hover {
  border-color: rgba(2, 132, 199, 0.38);
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.1);
}
.smod-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--p-border);
}
.smod-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.smod-index {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.smod-head h3 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--p-text-main);
  margin: 0;
  line-height: 1.4;
}
.smod-schema {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 7px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
}
.smod-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.smod-features li {
  position: relative;
  padding-inline-start: 1.3rem;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--p-text-sec);
}
.smod-features li::before {
  content: '\e909';
  font-family: 'primeicons';
  position: absolute;
  inset-inline-start: 0;
  top: 0.25rem;
  font-size: 0.8rem;
  color: #059669;
}

/* 4. Smart Interactive Architecture Topology & Blueprint Section */
.arch-blueprint-viewer {
  margin-bottom: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--p-border);
  background: #0f172a;
  overflow: hidden;
}
.abv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.05rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.81rem;
  flex-wrap: wrap;
}
.abv-canvas {
  padding: 1rem;
  text-align: center;
  cursor: zoom-in;
  background: #ffffff;
}
.abv-canvas img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.synth-topology-box {
  border-radius: 15px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.05rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.stb-head-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #6ee7b7;
}
.stb-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem;
}
.stb-layer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.95rem;
}
.stb-layer-title {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.79rem;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 0.7rem;
}
.stb-layer:nth-child(2) .stb-layer-title {
  color: #6ee7b7;
}
.stb-layer:nth-child(3) .stb-layer-title {
  color: #fcd34d;
}
.stb-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.stb-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.79rem;
  color: #e2e8f0;
}
.stb-node code {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  direction: ltr;
  white-space: nowrap;
}

/* 5. Interactive IDE Folder Structure Tree */
.ide-tree-box {
  border-radius: 14px;
  background: #0b1120;
  border: 1px solid #1e293b;
  overflow: hidden;
  direction: ltr;
  text-align: left;
}
.ide-tree-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.05rem;
  background: #111827;
  border-bottom: 1px solid #1e293b;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.77rem;
}
.ide-dots {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}
.ide-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ide-dots span:nth-child(1) { background: #ef4444; }
.ide-dots span:nth-child(2) { background: #f59e0b; }
.ide-dots span:nth-child(3) { background: #10b981; }

.ide-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  cursor: pointer;
  transition: all 0.18s;
}
.ide-copy-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #34d399;
}

.ide-tree-lines {
  padding: 1rem 1.2rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #e2e8f0;
  overflow-x: auto;
}
.ide-line {
  display: flex;
  align-items: baseline;
  white-space: pre;
}
.ide-ln {
  display: inline-block;
  width: 2.2rem;
  color: #475569;
  user-select: none;
  font-size: 0.73rem;
  flex-shrink: 0;
}
.ide-folder {
  color: #38bdf8;
  font-weight: 600;
}
.ide-file {
  color: #e2e8f0;
}
.ide-comment {
  color: #34d399;
  font-style: italic;
}

/* 6. Other Engineered Systems Switcher Footer */
.other-systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}
.osys-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.05rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--p-border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.osys-card:hover {
  background: #ffffff;
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.osys-card.is-current {
  border-color: #059669;
  background: #ecfdf5;
}
.osys-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.osys-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--p-border);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.osys-top h4 {
  font-size: 0.89rem;
  font-weight: 800;
  color: var(--p-text-main);
  margin: 0;
  line-height: 1.38;
}
.osys-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--p-text-muted);
  font-weight: 600;
}

/* Lightbox */
.proj-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.proj-lightbox.open {
  display: flex;
}
.proj-lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.5rem;
}
.proj-lb-close {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Skeleton Loader */
.proj-skeleton {
  padding: 2rem 0;
}
.sk-line {
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skPulse 1.4s infinite;
  margin-bottom: 1rem;
}
.sk-w40 { width: 40%; }
.sk-w80 { width: 80%; }
.sk-lg { height: 38px; }
.sk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.sk-box {
  height: 110px;
  border-radius: 14px;
  background: #e2e8f0;
}
@keyframes skPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .proj-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .exec-summary-layout.has-dual,
  .smart-highlights-grid,
  .smart-modules-grid,
  .stb-layers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-page-wrap {
    padding-top: 4.8rem;
  }
  .proj-hero-banner {
    padding: 1.25rem 1.1rem;
  }
  .proj-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .proj-telemetry-grid {
    grid-template-columns: 1fr;
  }
  .proj-section {
    padding: 1.15rem 1rem;
  }
}
