:root {
  --paper: #f4f7fb;
  --surface: #fff;
  --ink: #111827;
  --muted: #5f6b7a;
  --blue: #075ea8;
  --blue-dark: #003f73;
  --line: #cad5e2;
  --pale: #edf3f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.48 Arial,
    "Helvetica Neue",
    sans-serif;
}
.site-header {
  padding: 28px clamp(18px, 4vw, 64px) 24px;
  border-bottom: 4px solid var(--blue);
  background: var(--surface);
}
.brand-lockup {
  max-width: 1280px;
  margin: auto;
}
.eyebrow {
  font:
    700 10px Arial,
    sans-serif;
  letter-spacing: 0.14em;
  color: var(--blue-dark);
}
h1,
h2,
h3 {
  margin: 4px 0;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 15px;
}
.site-header p {
  margin: 4px 0 0;
  color: var(--muted);
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 24px clamp(18px, 4vw, 64px) 52px;
}
nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}
nav button:hover {
  background: var(--pale);
  color: var(--blue-dark);
}
nav button.active {
  border-bottom-color: var(--blue);
  color: var(--blue-dark);
}
article,
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 2px #0b2f4d0d;
}
article {
  padding: 18px;
  margin-bottom: 18px;
  min-width: 0;
}
article > h2 {
  margin: 0 0 14px;
}
.subsection {
  margin-top: 28px;
}
input,
select,
button {
  border: 1px solid #9fb1c4;
  border-radius: 2px;
  padding: 8px 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
button {
  font-weight: 700;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
button:hover {
  background: var(--blue-dark);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button.secondary {
  background: #fff;
  color: var(--blue-dark);
  border-color: #9fb1c4;
}
button.secondary:hover {
  background: var(--pale);
}
button.link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue-dark);
  text-align: left;
}
button.link:hover {
  text-decoration: underline;
}
a {
  color: var(--blue-dark);
}
:focus-visible {
  outline: 3px solid #168bd455;
  outline-offset: 2px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-title h2 {
  margin: 0;
}
.overview-heading {
  align-items: baseline;
}
.muted,
small {
  color: var(--muted);
}
.muted {
  font-size: 12px;
  margin: 4px 0 14px;
}
#freshness {
  text-align: right;
  font-size: 11px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric {
  padding: 16px;
}
.metric > span {
  font-size: 11px;
  color: var(--muted);
}
.metric > strong {
  display: block;
  font-size: clamp(21px, 2.4vw, 29px);
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 7px 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.metric > small {
  font-size: 10px;
}
.metric > button {
  display: block;
  font-size: 11px;
  margin-top: 10px;
}
.two {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
td,
th {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--pale);
  color: #415064;
  font:
    700 10px Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
tbody tr:hover {
  background: #f7fafd;
}
td .sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.number {
  white-space: nowrap;
}
.badge {
  display: inline-block;
  background: var(--pale);
  color: #415064;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 5px;
  font-size: 10px;
  white-space: nowrap;
}
.flag {
  color: #8a560e;
}
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  padding: 12px;
  background: var(--pale);
  border: 1px solid var(--line);
}
.filters label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  min-width: 110px;
}
.filters label:first-child {
  flex: 1;
  min-width: 220px;
}
.filters input,
.filters select {
  width: 100%;
  font-size: 12px;
  min-height: 34px;
}
.filters button {
  font-size: 12px;
  min-height: 34px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 14px;
}
.pagination button + button {
  margin-left: 7px;
}
.empty {
  color: var(--muted);
  padding: 18px 0;
  margin: 0;
}
.bar-row {
  display: grid;
  grid-template-columns: 78px 1fr 120px;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  font-size: 11px;
}
.bar-row > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bar-track {
  height: 9px;
  background: var(--pale);
}
.bar-fill {
  height: 100%;
  background: var(--blue);
}
.mix-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 12px;
}
.mix-row:last-child {
  border-bottom: 0;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.profile {
  border: 1px solid var(--line);
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
}
.profile:hover {
  background: var(--pale);
  border-color: var(--blue);
}
.profile strong {
  display: block;
  overflow-wrap: anywhere;
}
.profile small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 400;
}
.error {
  color: #8a1c1c;
  padding: 12px;
  border: 1px solid #e1baba;
  background: #fff7f7;
}
dialog {
  width: min(1160px, 96vw);
  max-height: 92vh;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--surface);
}
dialog::backdrop {
  background: #092f4c88;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
#detail-content > h2 {
  font-size: 24px;
}
#detail-content h3 {
  margin: 24px 0 10px;
}
.detail-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 22px;
  margin: 18px 0;
}
.field {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.field > strong {
  font-size: 11px;
  color: var(--muted);
}
.field > p {
  margin: 4px 0;
  font-size: 13px;
}
.field details {
  font-size: 11px;
  color: var(--muted);
}
.field summary {
  font-weight: 400;
}
details > summary {
  cursor: pointer;
  font-weight: 700;
}
details > .table-wrap,
details > table {
  margin-top: 14px;
}
.source-section {
  margin: 18px 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.source-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0;
  font-size: 12px;
}
.document-text {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 55vh;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font:
    12px/1.6 Arial,
    "Helvetica Neue",
    sans-serif;
  overflow-wrap: anywhere;
}
.timeline p {
  font-size: 12px;
  margin: 8px 0;
}
.record-flags {
  font-size: 11px;
  color: #8a560e;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-heading {
    display: block;
  }
  #freshness {
    display: block;
    margin: 5px 0 0;
    text-align: left;
  }
}
@media (max-width: 540px) {
  main {
    padding: 18px 14px 36px;
  }
  .site-header {
    padding: 22px 18px 20px;
  }
  article {
    padding: 14px;
  }
  .section-title {
    gap: 8px;
  }
  .section-title > button {
    font-size: 11px;
  }
  .filters label {
    flex: 1;
    min-width: 125px;
  }
  .filters label:first-child {
    min-width: 100%;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .bar-row {
    grid-template-columns: 72px 1fr 105px;
    gap: 7px;
    font-size: 10px;
  }
  .metric {
    padding: 13px;
  }
  .metric > strong {
    font-size: 22px;
  }
  .pagination {
    align-items: start;
  }
  dialog {
    padding: 16px;
  }
  .detail-fields {
    gap: 0 14px;
  }
  td,
  th {
    padding: 8px 7px;
  }
}
