.project-page {
  background: #000;
  color: #fff;
  min-height: 100vh;
  width: 100%;
}

a {
  color: #c594f0;
}

/* --- Hero Section (Centered Content Axis) --- */
.project-hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: center; /* Centers horizontal container alignment */
  padding: 60px 24px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px; /* Aligns with centered main layout width boundary */
  margin: 0 auto;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.meta-badge {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 4px 12px;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: bold;
  margin: 20px 0;
}

.project-title {
  font-size: clamp(2rem, 6vw, 3.8rem);
  letter-spacing: 10px;
  text-transform: uppercase;
  font-weight: 200;
  margin-bottom: 30px;
}

.project-meta-strip {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.meta-item .label {
  display: block;
  font-family: monospace;
  font-size: 0.6rem;
  color: #444;
  letter-spacing: 2px;
}

.meta-item .value {
  font-size: 1rem;
  letter-spacing: 2px;
}

/* --- Single Column Centered Wrapper --- */
.project-body-wrapper {
  max-width: 800px; /* Constrains reading track width to center the view */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 60px 24px;
}

/* --- Tactical Parameters (Top Horizontal Layout) --- */
.tactical-sidebar {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Places info and telemetry side by side */
  gap: 20px;
  width: 100%;
}

.sidebar-box {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
}

/* Made Main Headers Bigger and Bold */
.sidebar-box h3 {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.sidebar-box ul.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Keeps labels normal weight */
.sidebar-box li {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: normal;
}

.sidebar-box span {
  color: #444;
  margin-right: 8px;
}

/* Restores data value fields to default weight context */
.sidebar-box .info-value {
  color: #fff;
  font-weight: normal;
}

/* Telemetry data elements simplified */
.stat-row {
  display: block;
}

.stat-label {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: normal;
  letter-spacing: 1px;
  color: #ccc;
}

/* --- Markdown Typography --- */
.markdown-content {
  line-height: 1.8;
  color: #ccc;
  font-size: 1.1rem;
  width: 100%;
}

.markdown-content h2 {
  color: #fff;
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin: 40px 0 20px;
  border-left: 3px solid #fff;
  padding-left: 20px;
}

.markdown-content p {
  margin-bottom: 25px;
}

.markdown-content ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.markdown-content li {
  margin-bottom: 10px;
}

/* --- Markdown Images & Media Elements (FIXED DIMENSIONS) --- */
.markdown-content img {
  display: block;
  width: 100%;
  max-width: 800px;

  /* Hard mathematical ceiling fixes vertical layout stretching */
  height: auto !important;
  max-height: 450px !important;
  aspect-ratio: 16 / 9 !important;

  object-fit: contain !important; /* Shows whole image without cropping */
  background: rgba(
    255,
    255,
    255,
    0.02
  ); /* Letterboxes empty sides for portrait shapes */
  margin: 2.5rem auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Markdown Blockquotes ( > syntax ) --- */
.markdown-content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: rgba(197, 148, 240, 0.08);
  border-left: 4px solid #c594f0 !important;
  position: relative;
}

/* Force the "Note:" label to match the theme */
.markdown-content blockquote::before {
  display: block;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: bold;
  color: #c594f0 !important;
  margin-bottom: 8px;
  letter-spacing: 2px;
  font-style: normal;
}

/* TARGET ALL TEXT INSIDE THE BLOCKQUOTE TO MAKE IT SMALLER AND PURPLE-TINTED */
.markdown-content blockquote,
.markdown-content blockquote p,
.markdown-content blockquote li {
  font-size: 0.95rem !important;
  font-style: italic;
  color: #dcbdf7 !important;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 650px) {
  .tactical-sidebar {
    grid-template-columns: 1fr; /* Stacks parameters vertically on small displays */
  }

  .project-meta-strip {
    gap: 20px;
    flex-wrap: wrap;
  }
}
