/* ──────────────────────────────────────────────────────────────────
   scribeswift.css
   Project-specific styles for the ScribeSwift portfolio page.
   Works alongside style.css, about.css, and project-page.css.
   ────────────────────────────────────────────────────────────────── */

/* ── Technology Stack Table ────────────────────────────────────── */

.ss-stack-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
}

.ss-stack-table thead tr {
  border-bottom: 1px solid var(--border-light);
}

.ss-stack-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 12px 0;
}

.ss-stack-table th + th {
  padding-left: 24px;
}

.ss-stack-table td {
  vertical-align: top;
  padding: 14px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.ss-stack-table td + td {
  padding-left: 24px;
}

/* Layer column — primary weight */
.ss-stack-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  width: 130px;
}

/* Technology column — code-style */
.ss-stack-table td:nth-child(2) {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: var(--accent);
  width: 280px;
}

/* Why column — muted rationale */
.ss-stack-table td:last-child {
  color: var(--text-muted);
  font-size: 13px;
}

.ss-stack-table tr:last-child td {
  border-bottom: none;
}

/* ── Pipeline Step Cards ────────────────────────────────────────── */

/* Overrides for the pipeline section (#pipeline) — gives the
   knowledge cards a cleaner, slightly larger feel for a flow context */
#how .knowledge__card-icon {
  color: var(--accent);
}

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

@media (max-width: 780px) {
  .ss-stack-table,
  .ss-stack-table tbody,
  .ss-stack-table tr,
  .ss-stack-table td {
    display: block;
  }

  .ss-stack-table thead {
    display: none;
  }

  .ss-stack-table td {
    padding: 6px 0;
    border-bottom: none;
    width: auto !important;
  }

  .ss-stack-table td:first-child {
    padding-top: 14px;
    font-size: 13px;
    white-space: normal;
  }

  .ss-stack-table td + td {
    padding-left: 0;
  }

  .ss-stack-table tr {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }

  .ss-stack-table tr:last-child {
    border-bottom: none;
  }
}
