/* E1002 portrait stand post: one card per design revision, plus the timeline. */

/* Prompts quoted from the build session */
blockquote {
  border-left: 3px solid #06b6d4;
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: #0d1b2a;
  font-size: 1.05rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Revision card */
.rev {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.75rem 0;
  background: #ffffff;
}

.rev-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.rev-head p {
  margin: 0;
}

.revno {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #0891b2;
  border-right: 1px solid #e2e8f0;
}

.rev-name {
  padding: 0.6rem 1rem;
  min-width: 0;
}

.rev-name h3 {
  margin: 0;
  font-size: 1.2rem;
}

.rev-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: #64748b;
}

.rev-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.rev-hero {
  background: #f8f8f8;
  border-right: 1px solid #e2e8f0;
}

.rev-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.rev-notes {
  padding: 1rem 1.1rem;
  min-width: 0;
  font-size: 0.95rem;
}

.rev-notes blockquote {
  font-size: 0.95rem;
  margin-top: 0;
}

.rev-notes ul {
  padding-left: 1.1em;
  margin-bottom: 0;
}

.rev-notes li + li {
  margin-top: 0.35rem;
}

.rev-notes .note {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

/* Strip of alternate views; clicking one swaps the large render */
.rev-views {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  border-top: 1px solid #e2e8f0;
}

.rev-views button {
  all: unset;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-right: 1px solid #e2e8f0;
}

.rev-views button:last-child {
  border-right: 0;
}

.rev-views img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f8f8f8;
  border-radius: 4px;
}

.rev-views span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: #64748b;
  text-align: center;
}

.rev-views button[aria-pressed="true"] {
  background: #f1f5f9;
}

.rev-views button[aria-pressed="true"] span {
  color: #0891b2;
}

.rev-views button:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: -2px;
}

/* First pass: never committed, so no renders */
.rev-missing {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1.75rem 0;
}

.rev-missing h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.rev-missing p:last-child {
  margin-bottom: 0;
}

/* Timeline */
.timeline {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 1.25rem 0;
}

.timeline table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
}

.timeline th,
.timeline td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #e2e8f0;
}

.timeline tr:last-child td {
  border-bottom: 0;
}

.timeline th {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.timeline td.when {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.timeline tr.group td {
  background: #f1f5f9;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

@media (max-width: 640px) {
  .rev-body {
    grid-template-columns: 1fr;
  }

  .rev-hero {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .rev-views {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rev-views button:nth-child(3n) {
    border-right: 0;
  }
}
