
/* Palette, type and spacing follow the ldes.tech stylesheet so the generated
   report reads as part of the same site. */
:root {
  color-scheme: light;
  --primary: #5252cf;
  --primary-dark: #3d3da3;
  --primary-light: #6d67e4;
  --primary-rgb: 82, 82, 207;
  --accent: #15a88a;
  --text: #2b2b33;
  --bg: #fff;
  --line: #e3e3f2;
  --hairline: #eee;
  --muted: #666;
  --quiet-text: #4a4a55;
  --wash: #f5f5fc;
  --wash-strong: #ececf9;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'Fira Mono', 'Courier New', monospace;
  --pass: #157f48;
  --fail: #bf3535;
  --warn: #8a6100;
  --neutral: #6b6b78;
}

html { font-size: 16px; box-sizing: border-box; max-width: 100%; overflow-x: hidden; }
*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  max-width: 100%;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); text-decoration: underline; }
code { font-family: var(--font-mono); overflow-wrap: anywhere; }

/* Top navigation */
.topnav {
  width: 100%;
  background: var(--primary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 2.4rem; filter: brightness(0) invert(1); }
.topnav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.topnav ul a {
  display: inline-block;
  color: white;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
}
.topnav ul a:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; }

/* Hero header */
header.site-header {
  background: var(--wash);
  color: var(--primary);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
header.site-header h1 { font-size: 2.2rem; font-weight: 700; margin: 0 0 0.5rem; letter-spacing: 0.02em; }
header.site-header p.tagline {
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0 auto;
  max-width: 42rem;
  opacity: 0.95;
}
header.site-header p.timestamp { margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--quiet-text); }

/* Main content */
.container { max-width: 1080px; margin: auto; padding: 1rem 1.25rem; }
section { margin: 2.5rem 0; }
h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 1rem; }
h3 { color: var(--primary-dark); font-size: 1.1rem; margin: 2rem 0 0.75rem; }
.section-intro { color: var(--quiet-text); max-width: 62rem; }

/* Badges */
.legend, .counts { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1rem 0; }
.badge {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge--passed { background: var(--pass); }
.badge--failed { background: var(--fail); }
.badge--advisory { background: var(--primary-light); }
.badge--cantTell { background: var(--warn); }
.badge--inapplicable, .badge--untested { background: var(--neutral); }

/* Data tables */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0 2rem;
}
table.data-table th, table.data-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
}
table.data-table thead th { background: var(--primary); color: white; font-weight: 700; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tbody th[scope="row"] { font-weight: 700; color: var(--primary-dark); }
table.claims { margin-bottom: 1rem; }

/* Software overview */
.overview-table tbody tr { cursor: pointer; }
.overview-table tbody tr:hover { background: var(--wash); }
.software-link { font-weight: 700; }
.software-meta { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.earl-link { display: block; margin-top: 0.35rem; font-size: 0.82rem; font-weight: 700; }

/* Client sections */
.client {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 2rem 0;
  background: #fff;
  box-shadow: none;
}
.client[open] { padding-bottom: 1.25rem; }
.client__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.4rem;
  cursor: pointer;
  list-style: none;
}
.client__heading::-webkit-details-marker { display: none; }
.client__heading:hover { background: var(--wash); }
.client[open] > .client__heading { border-bottom: 1px solid var(--line); background: var(--wash); }
.client h2 { margin: 0; font-size: 1.4rem; }
.client h2 a { color: var(--primary); }
.revision { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; }
.score { margin: 0; text-align: right; }
.score strong { display: block; font-size: 2rem; line-height: 1.1; color: var(--primary); font-weight: 700; }
.score .score__of { font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.score .score__unknown { font-size: 1.2rem; color: var(--warn); }
.score .score__label { font-size: 0.78rem; color: var(--muted); }
.availability { margin: 1rem 0; padding: 0.6rem 0.8rem; border-radius: 4px; font-size: 0.85rem; }
.availability--ready { color: #0f5c33; background: #e7f7ee; }
.availability--missing { color: #744c00; background: #fff3cd; }
.legacy-note { color: var(--muted); font-size: 0.85rem; }
.machine-links { margin: 0.5rem 0 0; font-size: 0.85rem; }
.machine-links a { font-weight: 700; margin-right: 1rem; }
.client > .availability,
.client > .table-wrap,
.client > .counts,
.client > .machine-links,
.client > h3,
.client > .toggle-all,
.client > .group,
.client > .legacy-note,
.client > .empty { margin-left: 1.4rem; margin-right: 1.4rem; }

/* Collapsed group panels */
.toggle-all {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
}
.toggle-all:hover { background: var(--wash-strong); color: var(--primary-dark); }
details.group {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: #fff;
}
details.group > summary {
  cursor: pointer;
  padding: 0.7rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  list-style: none;
}
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
details.group[open] > summary::before { transform: rotate(45deg); }
details.group > summary:hover { background: var(--wash); }
details.group[open] > summary { border-bottom: 1px solid var(--line); }
.group__name { font-weight: 700; color: var(--primary-dark); }
.group__meta { color: var(--muted); font-size: 0.82rem; }
details.group .table-wrap { padding: 0 1rem; }
details.group table.data-table { border: none; margin: 0.75rem 0; }

/* Test rows */
.test-title { font-weight: 700; }
.test-id { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.75rem; }
.test-desc { margin: 0.4rem 0; color: var(--quiet-text); font-size: 0.85rem; max-width: 46rem; }
.test-iri { font-family: var(--font-mono); font-size: 0.78rem; }
.outcome {
  display: inline-block;
  min-width: 6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: white;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--neutral);
}
.outcome--passed { background: var(--pass); }
.outcome--failed { background: var(--fail); }
.outcome--advisory { background: var(--primary-light); }
.outcome--cantTell { background: var(--warn); }
.level {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.diagnostics summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: 0.82rem; }
pre {
  max-width: 34rem;
  max-height: 14rem;
  overflow: auto;
  margin: 0.5rem 0 0;
  padding: 0.6rem;
  white-space: pre-wrap;
  background: rgba(var(--primary-rgb), 0.06);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Dereferenced test target */
.is-target { background: #f0fbf8; }
.is-target > td:first-child { box-shadow: inset 0.2rem 0 0 var(--accent); }
.client.is-target { box-shadow: inset 0.25rem 0 0 var(--accent); }

/* Method note */
.method {
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary-light);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
  background: var(--wash);
}
.method h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.method p { margin: 0; color: var(--quiet-text); }

.empty { padding: 1.25rem; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); }

footer {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 2rem 1rem;
  text-align: center;
  background: white;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
footer p { margin: 0; }
footer a { color: var(--primary); }

@media (max-width: 640px) {
  header.site-header { padding: 2.5rem 1rem; }
  header.site-header h1 { font-size: 1.7rem; }
  header.site-header p.tagline { font-size: 1.05rem; }
  .client__heading { flex-direction: column; }
  .score { text-align: left; }
  table.data-table th, table.data-table td { padding: 0.6rem 0.7rem; }
}
