@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Roboto:wght@400;500&display=swap');

:root {
  /* HostPapa brand palette */
  --bg: #182C3A;       /* Deep Navy */
  --panel: #18214D;    /* Royal Navy */
  --panel-border: #4A5868; /* Grey 600 */
  --text: #F4F6F8;     /* Grey 50 */
  --text-dim: #8896A6; /* Grey 400 */
  --accent: #1FB3AF;   /* Teal — links, interactive elements */
  --cta: #A5BE00;      /* Lime Green — reserved for primary actions/highlights */
  --pass: #A5BE00;
  --fail: #ef5b5b;
  --partial: #f0b429;
  --pending: #8896A6;
  --na: #4A5868;
  --cannot-verify: #8896A6;
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font: var(--font-body);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

header.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1.25rem;
}

header.site-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
}

header.site-header .subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
}

nav.crumbs {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
nav.crumbs a { color: var(--accent); text-decoration: none; }
nav.crumbs a:hover { text-decoration: underline; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1rem;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-card .label {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--panel-border);
  border-radius: 10px;
  padding: 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filters select, .filters input {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  overflow: hidden;
}

table.scroll-wrap { display: block; overflow-x: auto; }

th, td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--panel-border);
  vertical-align: top;
}

th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  background: var(--panel);
}

tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.pass { background: rgba(165,190,0,0.18); color: var(--pass); }
.badge.fail { background: rgba(239,91,91,0.15); color: var(--fail); }
.badge.partial { background: rgba(240,180,41,0.15); color: var(--partial); }
.badge.pending { background: rgba(136,150,166,0.2); color: var(--text-dim); }
.badge.na { background: rgba(74,88,104,0.35); color: var(--text-dim); }
.badge.cannot-verify { background: rgba(136,150,166,0.15); color: var(--cannot-verify); border: 1px dashed rgba(136,150,166,0.4); }

.id-cell { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; color: var(--accent); }

footer {
  color: var(--text-dim);
  font-size: 0.78rem;
  border-top: 1px solid var(--panel-border);
  padding-top: 1rem;
  margin-top: 3rem;
}

.evidence-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.evidence-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.evidence-card .meta {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.evidence-card .field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  margin-top: 0.6rem;
}

.evidence-card .media {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.evidence-card .media img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
}

.evidence-card .no-evidence {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-style: italic;
}

.run-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.run-history-list li {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.run-history-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.run-history-list a:hover { text-decoration: underline; }

.run-history-list .run-counts {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
