/**
 * Full run index page — shares masthead with issue evidence reports.
 */
@import url("./styles-shared.css");

.run-body {
  flex: 1;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

.run-intro {
  margin: 1rem -1.5rem 2.5rem;
  border: 1px solid var(--theme-light-auxiliary);
  border-radius: 0.375rem;
  background: var(--theme-light-neutral);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.run-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 2rem;
  align-items: center;
  background: var(--primary);
  color: var(--theme-light-neutral);
  padding: 2rem 1.75rem;
}

.run-hero-content {
  min-width: 0;
}

.run-hero h1 {
  color: var(--theme-light-neutral);
  font-size: 1.625rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.run-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.55;
}

.run-seal {
  width: 5rem;
  height: 5rem;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.run-seal-inner {
  text-align: center;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.report--run-attention .run-seal {
  border-color: rgba(255, 200, 200, 0.9);
  background: rgba(231, 76, 60, 0.2);
}

.run-spec-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--theme-light-auxiliary);
  background: var(--theme-light-neutral);
}

.run-spec-row {
  padding: 0.875rem 1rem 1rem;
  border-right: 1px solid var(--theme-light-auxiliary);
  text-align: center;
}

.run-spec-row:last-child {
  border-right: none;
}

.run-spec-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-medium-auxiliary);
  margin-bottom: 0.375rem;
  text-align: center;
}

.run-spec-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--theme-dark-neutral);
}

.run-spec-value--release {
  font-size: 1rem;
}

.run-spec-value--pass {
  color: var(--theme-success);
}

.run-spec-value--fail {
  color: var(--theme-error);
}

.run-section {
  padding: 0;
}

.section-kicker {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.run-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.run-lead {
  font-size: 0.875rem;
  color: var(--theme-medium-auxiliary);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.run-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--theme-light-neutral);
  border: 1px solid var(--theme-medium-neutral);
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.run-table th,
.run-table td {
  border: 1px solid var(--theme-light-auxiliary);
  padding: 0.625rem 0.75rem;
  text-align: left;
}

.run-table th {
  background: var(--bg-body);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-medium-auxiliary);
}

.run-table tr.highlight {
  background: #e8f5ec;
}

.run-table tr.highlight td:first-child {
  border-left: 3px solid var(--primary);
}

.badge-pass {
  color: var(--theme-success);
  font-weight: 700;
}

.badge-fail {
  color: var(--theme-error);
  font-weight: 700;
}

.badge-partial {
  color: var(--theme-warning);
  font-weight: 700;
}

.badge-skip {
  color: var(--theme-muted);
  font-weight: 600;
}

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  margin: 1rem 0 0;
}

@media print {
  .back-link {
    display: none;
  }

  .run-table {
    box-shadow: none;
  }
}
