:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #e8e9e9;
  font-size: 13px;
}

* {
  box-sizing: border-box;
}
html {
  max-width: 100%;
}
body {
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
}
.institutional-bar {
  height: 6px;
  background: #17365d;
  border-bottom: 1px solid #0b203b;
}
.page {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 11px 14px 18px;
  background: #fafafa;
  border-left: 1px solid #aaa;
  border-right: 1px solid #aaa;
}
.site-header {
  border-bottom: 3px double #53677e;
  padding-bottom: 5px;
  margin-bottom: 5px;
}
.site-title {
  color: #17365d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-description {
  margin-top: 1px;
  color: #333;
  font-family: Georgia, 'Times New Roman', serif;
}
h1 {
  color: #17365d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  margin: 13px 0 7px;
}
h2 {
  color: #17365d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  margin-top: 19px;
  border-bottom: 1px solid #999;
  padding-bottom: 3px;
}
h3 {
  font-size: 15px;
}
a {
  color: #0645ad;
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid #17365d;
  outline-offset: 2px;
}
nav {
  padding: 4px 0 5px;
  border-bottom: 1px solid #aaa;
  margin-bottom: 7px;
}
nav span {
  color: #777;
  padding: 0 4px;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0 2px;
}
.search-form label {
  font-weight: bold;
}
input {
  border: 1px solid #555;
  border-radius: 0;
  padding: 3px 5px;
  width: min(540px, 70vw);
  font: inherit;
}
textarea {
  width: min(700px, 100%);
  min-height: 120px;
  resize: vertical;
  border: 1px solid #555;
  border-radius: 0;
  padding: 5px;
  font: inherit;
}
button {
  border: 1px solid #444;
  border-radius: 0;
  padding: 3px 10px;
  background: #e4e4e2;
  color: #111;
  font: inherit;
}
button:hover {
  background: #d6d6d6;
}
.compact-action {
  margin-left: 3px;
  padding: 1px 4px;
  color: #333;
  font-size: 10px;
  white-space: nowrap;
}
.record-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 5px 0;
}
.canonical-record-url {
  margin: 5px 0 9px;
  color: #444;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.canonical-record-url a {
  overflow-wrap: anywhere;
}
.leaderboard-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 7px 12px;
  border: 1px solid #999;
  background: #f1f3f5;
  padding: 7px;
  margin: 7px 0 5px;
}
.filter-field {
  display: grid;
  gap: 2px;
}
.filter-field label {
  font-weight: bold;
}
select {
  min-width: 170px;
  max-width: 280px;
  border: 1px solid #555;
  border-radius: 0;
  background: #fff;
  padding: 3px 5px;
  font: inherit;
}
.leaderboard-notice {
  margin: 5px 0 7px;
  color: #444;
  font-size: 11px;
}
.database-update {
  margin: 5px 0 7px;
  font-size: 11px;
  color: #444;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.table-scroll-notice {
  display: none;
  margin: 5px 0 2px;
  color: #555;
  font-size: 11px;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 7px 0 5px;
  font-size: 12px;
}
.registry-table {
  min-width: 900px;
}
.browse-table,
.reference-table {
  min-width: 680px;
}
.registry-table td:first-child,
.registry-table td:nth-child(5),
.registry-table td:nth-child(6),
.registry-table td:nth-child(7),
.registry-table td:last-child {
  white-space: nowrap;
}
th,
td {
  border: 1px solid #666;
  padding: 3px 5px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #d4d9dd;
  color: #15283d;
  font-weight: bold;
  white-space: nowrap;
}
.sort-link {
  color: inherit;
}
.source-link {
  font-weight: bold;
  white-space: nowrap;
}
tbody tr:nth-child(even) {
  background: #f3f3f1;
}
code,
pre {
  font-family: 'Courier New', Courier, monospace;
}
code {
  white-space: nowrap;
}
pre {
  max-width: 100%;
  overflow-x: auto;
  background: #f3f3f3;
  border: 1px solid #999;
  padding: 10px;
  line-height: 1.45;
}
.status-notice {
  display: inline-block;
  border: 1px solid #777;
  background: #f1f1f1;
  padding: 3px 6px;
  font-weight: bold;
}
.empty-state {
  padding: 14px 10px;
  color: #444;
  text-align: center;
}
.empty-state strong,
.empty-state span {
  display: block;
}
.empty-state span {
  margin: 3px 0 7px;
  font-weight: normal;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  margin: 5px 0 7px;
  font-size: 11px;
}
.pagination-summary {
  display: grid;
  gap: 2px;
}
.pagination-controls,
.page-jump {
  display: flex;
  align-items: center;
}
.pagination-controls {
  justify-content: flex-end;
  gap: 10px;
}
.pagination-links a + a {
  margin-left: 10px;
}
.page-jump {
  gap: 4px;
  margin: 0;
}
.page-number-input {
  width: 5.5em;
  padding: 2px 4px;
}
.record-metadata {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3px 12px;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  padding: 6px 0;
  max-width: 620px;
}
.wide-metadata {
  max-width: 900px;
}
.identifier {
  white-space: nowrap;
}
.overflow-value,
.overflow-value code {
  overflow-wrap: anywhere;
  white-space: normal;
}
.configuration-value {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.provenance-table {
  min-width: 680px;
}
.record-metadata dt,
.documentation dt {
  font-weight: bold;
}
.record-metadata dd {
  margin: 0;
}
.documentation {
  min-width: 0;
  max-width: 900px;
  line-height: 1.45;
}
.documentation section {
  scroll-margin-top: 10px;
}
.documentation dd {
  margin-bottom: 8px;
}
.contents {
  background: #f1f3f5;
  border: 1px solid #aaa;
  padding: 8px;
}
.site-footer {
  margin-top: 18px;
  color: #555;
  font-size: 11px;
}
.site-footer hr {
  border: 0;
  border-top: 1px solid #888;
  margin: 0 0 6px;
}
.footer-links {
  margin: 0 0 3px;
}
.footer-links span {
  color: #777;
  padding: 0 4px;
}
.feedback-form {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-top: 12px;
}
.form-field {
  display: grid;
  gap: 3px;
}
.form-field label,
.status-form label {
  font-weight: bold;
}
.form-field input {
  width: min(700px, 100%);
}
.form-field small,
.optional-label,
.admin-context {
  color: #555;
  font-weight: normal;
}
.form-error {
  border-left: 4px solid #8b1a1a;
  padding: 4px 7px;
  background: #f4eaea;
}
.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.admin-filters,
.status-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 7px 12px;
  border: 1px solid #999;
  background: #f1f3f5;
  padding: 7px;
  margin: 7px 0;
}
.feedback-admin-table {
  min-width: 800px;
}
.feedback-admin-table td:last-child {
  white-space: nowrap;
}
.feedback-message {
  max-width: 900px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  :root {
    font-size: 13px;
  }
  .page {
    padding: 8px 8px 14px;
    border: 0;
  }
  .site-title {
    font-size: 20px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    line-height: 1.35;
  }
  nav span {
    display: none;
  }
  .contents {
    display: block;
    line-height: 1.7;
  }
  .table-scroll-notice {
    display: block;
  }
  .record-metadata {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .record-metadata dd {
    margin-bottom: 5px;
  }
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .pagination-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .leaderboard-filters {
    align-items: stretch;
  }
  .filter-field {
    flex: 1 1 180px;
  }
  select {
    width: 100%;
    max-width: none;
  }
  .feedback-form input,
  .feedback-form textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 19px;
  }
  .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .search-form label {
    grid-column: 1 / -1;
  }
  .search-form input {
    min-width: 0;
    width: 100%;
    font-size: 16px;
    padding: 5px 6px;
  }
  .search-form button {
    min-height: 31px;
    padding: 5px 12px;
  }
}
