/* The artifact's own scaffolding around component specimens on the
 * building-block pages (UI elements, composite components). Colours only
 * through the chrome tokens; the specimens themselves use app.css. */

.sp-page {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 40px 16px 64px;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--c-font);
}
.sp-wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.sp-intro { display: flex; flex-direction: column; gap: 8px; }
.sp-intro h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; }
.sp-intro p { margin: 0; max-width: 72ch; font-size: 15px; line-height: 1.5; color: var(--c-fg-2); }

.sp-section { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sp-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.sp-head h2 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-head p { margin: 0; max-width: 80ch; font-size: 14px; line-height: 1.5; color: var(--c-fg-2); }
.sp-loc { font: 12px/1.5 var(--c-font-mono); color: var(--c-fg-3); overflow-wrap: anywhere; }

.sp-sub { margin: 8px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-fg-3); }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.sp-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.sp-cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-width: 0; padding: 16px;
  background: var(--c-panel); border: 1px solid var(--c-line); border-radius: var(--c-radius);
}
.sp-cell--stretch { align-items: stretch; }
.sp-cell--surface { background: var(--nt-anchors-aweigh, #293241); }
.sp-cap { font: 12px/1.4 var(--c-font-mono); color: var(--c-fg-3); overflow-wrap: anywhere; }
.sp-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--c-fg-2); }

.sp-scroll { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--c-radius); background: var(--c-panel); }
.sp-matrix { border-collapse: collapse; min-width: 100%; }
.sp-matrix th, .sp-matrix td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: middle; }
.sp-matrix tr:last-child th, .sp-matrix tr:last-child td { border-bottom: 0; }
.sp-matrix thead th { font: 12px var(--c-font-mono); color: var(--c-fg-3); font-weight: 400; white-space: nowrap; }
.sp-matrix tbody th { font: 12px var(--c-font-mono); color: var(--c-fg-3); font-weight: 400; white-space: nowrap; }

.sp-flag, .sp-absent, .sp-ok {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: var(--c-radius-pill);
  font: 600 12px/1.6 var(--c-font); white-space: nowrap;
}
.sp-flag { background: var(--c-reconstructed-soft); color: var(--c-reconstructed); }
.sp-absent { background: var(--c-pending-soft); color: var(--c-fg-2); }
.sp-ok { background: var(--c-captured-soft); color: var(--c-captured); }

.sp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border: 1px solid var(--c-line); border-radius: var(--c-radius); background: var(--c-panel); }
.sp-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; border-top: 1px solid var(--c-line); }
.sp-list li:first-child { border-top: 0; }
.sp-list strong { font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.sp-box { min-height: 40px; min-width: 40px; display: grid; place-items: center; padding: 8px 12px; border: 1px dashed var(--c-accent); border-radius: 8px; background: var(--c-accent-soft); color: var(--c-accent); font: 600 12px var(--c-font-mono); }
.sp-demo { width: 100%; outline: 1px dashed var(--c-line); outline-offset: 4px; }
