/* ──────────────────────────────────────────────────────────────────
   project-page.css
   Shared design system for all project pages.
   Works alongside style.css and about.css.
   All variables resolve against the tokens defined in style.css.
   ────────────────────────────────────────────────────────────────── */

/* ── Page Hero Layout ─────────────────────────────────────────── */

.pp-hero-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 4px;
}

.pp-hero-text {
  max-width: 600px;
}

.pp-hero-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Thesis — separator above, muted weight, subordinate to the intro */
.pp-hero-thesis {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.01em;
}

.pp-hero-badge {
  flex-shrink: 0;
  padding-top: 5px;
}

/* ── Section Intro ─────────────────────────────────────────────── */

/* Left-aligned lead-in paragraph above a section grid or list */
.pp-section-intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 40px;
}

/* ── Callout / Blockquote ──────────────────────────────────────── */

/* Thin accent-coloured left border; no background fill.
   Body text is italic and muted; final line is primary weight. */
.pp-callout {
  margin: 28px 0;
  padding: 0 0 0 24px;
  border-left: 2px solid rgba(56, 217, 150, 0.4);
}

.pp-callout p {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-secondary);
  font-style: italic;
}

.pp-callout p + p { margin-top: 10px; }

/* Final paragraph: conclusion / takeaway — primary, not italic */
.pp-callout p:last-child {
  color: var(--text-primary);
  font-weight: 500;
  font-style: normal;
}

/* ── How It Works — knowledge card readability override ───────── */

/* Both LegionTrap and AI Development OS use id="how" for their
   "How It Works" section. The base knowledge__card styles in style.css
   use 12.5px / --text-muted for descriptions, which is too small for
   a section that carries substantive explanatory text. This override
   applies to both project pages consistently. */
#how .knowledge__card-title {
  font-size: 15px;
  font-weight: 700;
}

#how .knowledge__card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: left;
}

/* ── Feature Card Grid ─────────────────────────────────────────── */

/* 2-column fixed — use for 4-card component or feature grids */
.pp-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Auto-fill — use for 6–8 card grids (roles, modules) */
.pp-card-grid--auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* 3-column — use for capability / feature grids */
.pp-card-grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Base card — panel background, hover lift */
.pp-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.pp-card:hover {
  border-color: var(--border-light);
  background: var(--bg-panel-hover);
}

/* Optional: small-caps label or sequential number */
.pp-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pp-card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Optional: focus/type line in accent colour */
.pp-card__sub {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.pp-card__body {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-secondary);
  text-align: left;
  flex: 1;
}

/* Optional: artifact list or constraint line — border-top separator */
.pp-card__footer {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* ── Item List ─────────────────────────────────────────────────── */

/* Used for: limitations, outcomes, change log items.
   Horizontal separators keep items readable without card overhead. */
.pp-item-list {
  list-style: none;
}

.pp-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.pp-item:first-child { padding-top: 0; }
.pp-item:last-child  { border-bottom: none; padding-bottom: 0; }

.pp-item__name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.pp-item__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  display: block;
}

/* ── Status Layout ─────────────────────────────────────────────── */

/* Two-column: status identity card left, detail right */
.pp-status-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: flex-start;
}

/* Left card — panel background, raised from page */
.pp-status-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pp-status-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pp-status-card__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pp-status-card__phase {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pp-status-card__detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
}

/* Right column */
.pp-status-right {
  display: flex;
  flex-direction: column;
}

/* Section label within the right column */
.pp-status-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

/* Space before a second label group (multiple lists in one right column) */
.focus__entries + .pp-status-label {
  margin-top: 24px;
}

/* Next milestone — accent-coloured for visual prominence */
.pp-milestone {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 20px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
}

.pp-milestone__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.pp-milestone__text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ── Prose List Styling ────────────────────────────────────────── */

/* Styled <ul> within about-prose narrative blocks.
   Keeps list items readable without leaving them visually unstyled. */
.about-prose ul {
  padding-left: 0;
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-prose li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.about-prose li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.8;
}

/* ── Projects grid — 2-column override (4-card layout) ───────── */

.projects__grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ── Table Wrapper ─────────────────────────────────────────────── */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .pp-hero-body {
    flex-direction: column;
    gap: 24px;
  }

  .pp-status-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pp-card-grid {
    grid-template-columns: 1fr;
  }

  .pp-card-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pp-card-grid--3col {
    grid-template-columns: 1fr;
  }

  .projects__grid--2col {
    grid-template-columns: 1fr;
  }

  .pp-milestone {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
