

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--measured);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
}
.skip-link:focus {
  left: var(--s4);
  top: var(--s4);
  padding: var(--s2) var(--s4);
  background: var(--measured);
  color: #04110d;
  font-weight: 650;
  border-radius: var(--radius-sm);
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}



.mono { font-family: var(--mono); font-variant-ligatures: none; }

.eyebrow {
  font-size: var(--fs-xxs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 620;
}

.display {
  font-size: var(--fs-mega);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.h2 {
  font-size: var(--fs-xxl);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 660;
}

.h3 {
  font-size: var(--fs-xl);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 640;
}

.h4 {
  font-size: var(--fs-lg);
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.006em;
}

.lede { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.6; }
.sub  { color: var(--ink-2); }
.dim  { color: var(--ink-3); }
.faint{ color: var(--ink-4); }
.xs   { font-size: var(--fs-xs); }
.sm   { font-size: var(--fs-sm); }

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}



.shell {
  width: 100%;
  min-width: 0;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--s5);
}
@media (max-width: 640px) { .shell { padding-inline: var(--s4); } }

.stack > * + * { margin-top: var(--s4); }
.stack-2 > * + * { margin-top: var(--s2); }
.stack-6 > * + * { margin-top: var(--s6); }

.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; min-width: 0; }
.row-tight { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; min-width: 0; }
.spread { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); min-width: 0; }

.hr { height: 1px; background: var(--rule); border: 0; }




.datum {
  display: block;
  height: 14px;
  width: 100%;
  background-image:
    linear-gradient(to right, var(--rule) 0 1px, transparent 1px 100%),
    linear-gradient(to bottom, var(--rule-strong) 0 1px, transparent 1px 100%);
  background-size: 24px 6px, 100% 1px;
  background-repeat: repeat-x, no-repeat;
  background-position: 0 0, 0 0;
}



.panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.panel-pad { padding: var(--s5); }
@media (max-width: 640px) { .panel-pad { padding: var(--s4); } }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}



.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--st-absent);
  flex: none;
}
.status[data-code="complete"]::before,
.status[data-code="completed"]::before,
.status[data-code="measured"]::before,
.status[data-code="passed"]::before,
.status[data-code="admitted"]::before,
.status[data-code="evaluated"]::before { background: var(--st-complete); }
.status[data-code="partial"]::before          { background: var(--st-partial); }
.status[data-code="warning"]::before          { background: var(--st-warning); }
.status[data-code="unavailable"]::before      { background: var(--st-unavailable); }
.status[data-code="missing"]::before          { background: var(--st-missing); }
.status[data-code="absent"]::before           { background: var(--st-absent); }
.status[data-code="not_applicable"]::before   { background: var(--st-not-applicable); }
.status[data-code="not_supplied"]::before     { background: var(--st-absent); }
.status[data-code="not_evaluated"]::before    { background: var(--st-absent); }
.status[data-code="refused"]::before          { background: var(--st-refused); }
.status[data-code="not_evaluable"]::before    { background: var(--st-not-evaluable); }
.status[data-code="violated"]::before,
.status[data-code="fail"]::before             { background: var(--st-violated); }
.status[data-code="waived"]::before           { background: var(--st-waived); }

.status-strong { color: var(--ink); }



.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--fs-xxs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ink-2);
  background: var(--ground-2);
  white-space: nowrap;
}
.chip-accent { color: #05130f; background: var(--measured); border-color: var(--measured); }
.chip-warn   { color: #1a1204; background: var(--st-partial); border-color: var(--st-partial); }
.chip-bad    { color: #200606; background: var(--st-violated); border-color: var(--st-violated); }
.chip-synth  { color: #22091a; background: var(--st-refused); border-color: var(--st-refused); }



.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 10px var(--s4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-strong);
  background: var(--panel-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}
.btn:hover { background: var(--raised); border-color: var(--measured-dim); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--measured);
  border-color: var(--measured);
  color: #04110d;
}
.btn-primary:hover { background: #55e6c3; border-color: #55e6c3; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px var(--s3); font-size: var(--fs-xs); }




.trace {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  flex: none;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease);
}
.trace:hover, .trace:focus-visible {
  color: var(--measured);
  border-color: var(--measured-dim);
  background: var(--measured-wash);
}



.tbl-wrap { overflow-x: auto; }

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
table.tbl th, table.tbl td {
  text-align: left;
  padding: 9px var(--s3);
  border-bottom: 1px solid var(--rule-faint);
  white-space: nowrap;
}
table.tbl th {
  font-size: var(--fs-xxs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 650;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 2;
}
table.tbl td.n, table.tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tbody tr { transition: background var(--dur-1) var(--ease); }
table.tbl tbody tr:hover { background: var(--panel-2); }
table.tbl tbody tr[aria-selected="true"] { background: var(--measured-wash); }
table.tbl tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 0 var(--measured); }
table.tbl td.path { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; }
table.tbl td.path-tight { max-width: 24ch; overflow: hidden; text-overflow: ellipsis;
                          direction: rtl; text-align: left; }
table.tbl td.path-tight > * { direction: ltr; unicode-bidi: embed; }

.sortable { cursor: pointer; user-select: none; }
.sortable[aria-sort="descending"]::after { content: " \25BC"; color: var(--measured); }
.sortable[aria-sort="ascending"]::after  { content: " \25B2"; color: var(--measured); }



.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s4); font-size: var(--fs-sm); }
.kv dt { color: var(--ink-3); }
.kv dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.kv .mono { display: block; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }

.note {
  border-left: 2px solid var(--rule-strong);
  padding-left: var(--s3);
  color: var(--ink-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.note-warn { border-left-color: var(--st-partial); color: var(--ink-2); }
.note-synth { border-left-color: var(--st-refused); color: var(--ink-2); }

.sr-live {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}



.chip-id { text-transform: none; letter-spacing: 0.02em; font-family: var(--mono); font-weight: 500; }




table.tbl tbody tr[aria-selected="true"] { background: var(--select-wash); }
table.tbl tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 0 var(--select); }


.trace:hover, .trace:focus-visible {
  color: var(--ink);
  border-color: var(--rule-strong);
  background: var(--raised);
}

.chip-id { text-transform: none; letter-spacing: 0.02em; font-family: var(--mono); font-weight: 500; }
.chip-neutral { color: var(--ink-2); }

.swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }

.privacy { display: flex; flex-wrap: wrap; gap: var(--s2); }
.privacy .chip { text-transform: none; letter-spacing: 0.01em; font-weight: 500; }
.privacy-dot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

details.panel > summary { cursor: pointer; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "\25B8"; color: var(--ink-3); margin-left: auto; }
details.panel[open] > summary::after { content: "\25BE"; }


.preliminary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xxs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--st-partial);
  border: 1px solid rgba(243, 182, 74, 0.42);
  background: rgba(243, 182, 74, 0.08);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}


@media (max-width: 640px) {
  .spread { flex-wrap: wrap; }
  .kv { grid-template-columns: 1fr; }
  .chip, .preliminary {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .btn { min-height: 40px; max-width: 100%; white-space: normal; }
  .row .mono, .row-tight .mono {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }
}


@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  .btn, .chip, .panel, .trace, .preliminary { border-color: ButtonText; }
  [aria-current="page"], [aria-current="true"], [aria-selected="true"],
  [aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
  .status::before, .swatch, .privacy-dot {
    border: 1px solid CanvasText;
    forced-color-adjust: auto;
  }
}
