:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #07111f;
  color: #edf6ff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(
      circle at 12% -10%,
      rgb(22 197 170 / 20%),
      transparent 36rem
    ),
    radial-gradient(
      circle at 100% 0%,
      rgb(72 109 255 / 17%),
      transparent 34rem
    ),
    #07111f;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.hero-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.eyebrow {
  margin-bottom: 10px;
  color: #48d7bd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro {
  max-width: 680px;
  margin-bottom: 0;
  color: #9db0c6;
  font-size: 1.08rem;
  line-height: 1.7;
}

.json-link {
  flex: 0 0 auto;
  border: 1px solid #2b4059;
  border-radius: 999px;
  color: #d8e8f8;
  padding: 10px 16px;
  text-decoration: none;
}

.json-link:hover {
  border-color: #48d7bd;
  color: #48d7bd;
}

.profile-link {
  color: #c9d8e7;
  text-decoration-color: #48627e;
  text-underline-offset: 3px;
}

.profile-link:hover {
  color: #48d7bd;
}

.metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.meta-card {
  min-height: 116px;
  border: 1px solid #1d3046;
  border-radius: 14px;
  background: rgb(12 27 44 / 78%);
  padding: 18px;
}

.meta-card span {
  display: block;
  margin-bottom: 12px;
  color: #768ca5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-card strong {
  display: block;
  overflow: hidden;
  color: #edf6ff;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-card small {
  display: block;
  margin-top: 6px;
  color: #8ba0b8;
}

.panel {
  margin-top: 20px;
  border: 1px solid #1d3046;
  border-radius: 18px;
  background: rgb(10 23 38 / 88%);
  box-shadow: 0 26px 80px rgb(0 0 0 / 22%);
  padding: 26px;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(180px, 4fr) 84px;
  align-items: center;
  gap: 16px;
}

.bar-label strong,
.bar-label small {
  display: block;
}

.bar-label strong {
  font-size: 0.88rem;
}

.bar-label small {
  margin-top: 3px;
  color: #7288a1;
  font-size: 0.7rem;
}

.bar-track {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #101f31;
}

.bar {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #22bca6, #5a75ff);
  box-shadow: 0 0 20px rgb(72 215 189 / 18%);
}

.bar-value {
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hint {
  margin: 0;
  color: #7288a1;
  font-size: 0.8rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  border-bottom: 1px solid #172a40;
  padding: 14px 12px;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  padding-left: 0;
  text-align: left;
}

th {
  color: #7188a2;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  color: #c9d8e7;
  font-size: 0.86rem;
}

td:first-child strong,
td:first-child small {
  display: block;
}

td:first-child small {
  max-width: 440px;
  margin-top: 4px;
  overflow: hidden;
  color: #7188a2;
  font-size: 0.72rem;
  text-overflow: ellipsis;
}

td[data-status='pass'] {
  color: #48d7bd;
}

td[data-status='skip'] {
  color: #e4bc67;
}

td[data-status='fail'] {
  color: #ff8b9d;
}

.methodology {
  max-width: 760px;
  padding: 58px 4px 10px;
}

.methodology p:last-child {
  margin-top: 16px;
  color: #8fa4bb;
  line-height: 1.75;
}

.empty,
.error {
  border: 1px solid #2b4059;
  border-radius: 12px;
  color: #9db0c6;
  padding: 18px;
}

.error {
  border-color: #7e2d3b;
  background: #2b121b;
  color: #ffb7c1;
}

@media (max-width: 780px) {
  main {
    width: min(100% - 24px, 1180px);
    padding-top: 42px;
  }

  .hero,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-links {
    justify-content: flex-start;
  }

  .metadata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bar-row {
    grid-template-columns: 1fr 72px;
  }

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
