.records-page .wrap {
  width: min(100% - clamp(2rem, 8vw, 7rem), 68rem);
}

.records-content {
  padding-block: clamp(2rem, 6vw, 3.8rem) 4rem;
}

.records-heading h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2.15rem, 4.5vw, 3.25rem);
  font-weight: 650;
  line-height: 1.2;
}

.records-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.records-index {
  margin-block: 1.4rem 1.75rem;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.records-section {
  margin-block: 0 2.4rem;
}

.records-section h2 {
  margin-bottom: .72rem;
  font-size: clamp(1.28rem, 2.4vw, 1.72rem);
  letter-spacing: -.05em;
}

.records-count {
  margin-left: .35rem;
  color: var(--crimson);
  font-size: .83em;
  white-space: nowrap;
}

.records-section h3 {
  margin: 1rem 0 .5rem;
  color: var(--muted);
  font-size: .98rem;
  font-weight: 650;
}

.records-meta, .records-note {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.records-meta {
  margin: -.35rem 0 .68rem;
}

.records-note {
  margin-top: .55rem;
}

.records-table {
  table-layout: fixed;
  border-top: 1px solid var(--ink);
  font-size: .94rem;
  line-height: 1.48;
}

.records-table :is(th, td) {
  padding: .63rem .68rem;
  vertical-align: top;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.records-table thead th {
  color: var(--ink);
  background: var(--subtle);
  font-size: .85rem;
}

.records-table tbody td {
  color: var(--muted);
  font-size: .9rem;
}

.records-table th a, .records-table td a {
  text-decoration: underline #b27a8a;
  text-underline-offset: .16em;
}

.records-table a:hover {
  color: var(--crimson);
  text-decoration-color: currentColor;
}

.records-status {
  display: block;
  margin-top: .18rem;
  color: var(--crimson);
  font-size: .84rem;
}

.records-projects thead th:nth-child(2) { width: 23%; }
.records-projects thead th:nth-child(3) { width: 15%; }
.records-papers thead th:nth-child(2) { width: 29%; }
.records-papers thead th:nth-child(3) { width: 8%; }
.records-papers thead th:nth-child(4) { width: 13%; }
.records-preprints thead th:nth-child(2) { width: 18%; }
.records-conferences thead th:nth-child(2) { width: 33%; }
.records-conferences thead th:nth-child(3) { width: 13%; }
.records-patents thead th:nth-child(2) { width: 25%; }
.records-patents thead th:nth-child(3) { width: 16%; }

@media (max-width: 520px) {
  .records-index { gap: 0 .75rem; }
  .records-index a { font-size: .83rem; }
  .records-table :is(th, td) { padding: .57rem .35rem; font-size: .83rem; }
  .records-table tbody td { font-size: .83rem; }
  .records-table thead th, .records-status { font-size: .78rem; }
  .records-projects thead th:nth-child(2) { width: 33%; }
  .records-projects thead th:nth-child(3) { width: 22%; }
  .records-projects tbody td:last-child, .records-papers tbody td:nth-child(3) { white-space: nowrap; font-size: .78rem; }
  .records-papers thead th:nth-child(3) { width: 12%; }
  .records-papers thead th:nth-child(4), .records-conferences thead th:nth-child(3) { width: 17%; }
  .records-patents thead th:nth-child(3) { width: 19%; }
}

@page {
  size: A4;
  margin: 13mm;
}

@media print {
  .records-page .wrap { width: 100%; }
  .records-page .masthead, .records-index, .records-page .skip-link { display: none; }
  .records-content { padding: 0; }
  .records-heading, .records-section { margin-bottom: 1rem; }
  .records-heading h1 { font-size: 21pt; }
  .records-section h2 { font-size: 13pt; }
  .records-section :is(h2, h3, .records-meta) { break-after: avoid; }
  .records-table :is(th, td) { padding: .35rem; font-size: 8.5pt; }
  .records-table tr { break-inside: avoid; }
  .records-table a { text-decoration: none; }
}
