*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  background: #f6f8fa;
  color: #24292f;
  line-height: 1.5;
}

/* ── Navigation ── */
.site-header {
  background: #24292f;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
}
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-title {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.site-title:hover { color: #ccc; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}
.container-wide { max-width: 1400px; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 13px;
  color: #656d76;
  margin-bottom: 16px;
}
.breadcrumb a { color: #0969da; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Page headers ── */
h1 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
h2 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }

.run-header { margin-bottom: 24px; }
.run-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 13px;
  color: #656d76;
}

/* ── Status badges ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.status-success  { background: #dafbe1; color: #1a7f37; }
.status-failure  { background: #ffebe9; color: #cf222e; }
.status-cancelled { background: #f6f8fa; color: #656d76; border: 1px solid #d0d7de; }
.status-pending  { background: #fff8c5; color: #9a6700; }

/* ── External link ── */
.external-link { color: #0969da; text-decoration: none; font-size: 13px; }
.external-link:hover { text-decoration: underline; }

/* ── Landing page table ── */
.runs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  overflow: hidden;
}
.runs-table th {
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
  padding: 10px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #656d76;
}
.runs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.runs-table tr:last-child td { border-bottom: none; }
.runs-table tr:hover td { background: #f6f8fa; }

.run-date a { color: #0969da; text-decoration: none; font-weight: 500; }
.run-date a:hover { text-decoration: underline; }

/* ── Suite chips (landing page) ── */
.suite-cells { display: flex; flex-wrap: wrap; gap: 8px; }
.suite-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
}
.suite-name { font-weight: 600; }
.suite-counts { display: flex; gap: 4px; }
.count-success { color: #1a7f37; }
.count-failure { color: #cf222e; }
.count-pending { color: #9a6700; }

/* ── Matrix chips (job details + run table) ── */
.matrix-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.matrix-chip {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}
.matrix-key { color: #656d76; }
.matrix-val { color: #24292f; font-weight: 600; }

/* ── Run details page ── */
.suite-section {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}
.suite-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
  font-size: 16px;
}
.suite-summary { font-size: 13px; font-weight: 400; }

.jobs-table {
  width: 100%;
  border-collapse: collapse;
}
.jobs-table th {
  padding: 8px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #656d76;
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
}
.jobs-table td {
  padding: 8px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.jobs-table tr:last-child td { border-bottom: none; }
.jobs-table tr:hover td { background: #f6f8fa; }

.job-name { font-size: 13px; }
.artifact-indicator { margin-left: 6px; }

.jobs-table a { color: #0969da; text-decoration: none; }
.jobs-table a:hover { text-decoration: underline; }

/* ── Job details page ── */
.pod-section {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 16px;
}
.pod-heading { margin-bottom: 12px; }

.events-details { margin-bottom: 12px; }
.events-details summary {
  cursor: pointer;
  color: #0969da;
  font-size: 13px;
  user-select: none;
  margin-bottom: 4px;
}
.events-details summary:hover { text-decoration: underline; }
.events-pre {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  padding: 12px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 6px;
}

.container-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.container-link {
  display: inline-block;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  padding: 3px 10px;
  color: #0969da;
  text-decoration: none;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}
.container-link:hover { background: #e1e4e8; text-decoration: none; }

/* ── Test results summary ── */
.test-summary {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}
.test-summary-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
  font-size: 16px;
}
.test-summary-counts {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
}
.test-results-table {
  width: 100%;
  border-collapse: collapse;
}
.test-results-table th {
  padding: 8px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #656d76;
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
}
.test-results-table td {
  padding: 7px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.test-results-table tr:last-child td { border-bottom: none; }
.test-results-table tr:hover td { background: #f6f8fa; }
.test-name {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}
.test-duration { color: #656d76; font-size: 12px; }

/* ── Logs page ── */
.log-pod { color: #656d76; }
.log-sep { margin: 0 6px; color: #d0d7de; }
.log-container { color: #24292f; }

.log-pre {
  background: #24292f;
  color: #e6edf3;
  border-radius: 6px;
  padding: 20px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin-top: 16px;
}
.log-line {
  display: block;
  padding-left: 2em;
  text-indent: -2em;
}

/* ── Misc ── */
.empty { color: #656d76; font-style: italic; margin-top: 8px; }
