.public-records {
  padding: clamp(32px, 5vw, 68px) 7% 72px;
  min-height: 65vh;
}

.records-intro,
.records-register {
  max-width: 76rem;
  margin-inline: auto;
}

.records-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.public-records h1 {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  margin: 12px 0;
}

.public-records p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.public-records .eyebrow,
.public-records .records-kind {
  color: var(--cyan);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.records-office-link,
.records-back,
.records-sources a,
.public-records-profile {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.public-records-profile {
  display: inline-block;
  margin: 0 0 1.25rem;
}

.records-register {
  padding-top: 28px;
}

.records-register h2,
.records-document h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0 0 14px;
}

.records-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-bottom: 12px;
}

.records-search .search {
  flex: 1 1 18rem;
  display: flex;
}

.records-search input {
  font-size: 1rem;
  width: 100%;
}

.records-search button {
  padding: 10px 0;
  color: var(--cyan);
}

.records-search button:disabled {
  opacity: .55;
}

.records-rows {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.records-rows li {
  padding: 20px clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.records-rows li + li {
  border-top: 0;
}

.records-rows h3,
.records-rows h4 {
  font: 500 1.75rem/1.15 'Barlow Condensed', sans-serif;
  margin: 6px 0;
}

.records-rows a:hover,
.records-rows a:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
}

.records-reader {
  max-width: 58rem;
  margin-inline: auto;
}

.records-document {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.records-document-header,
.records-document-body {
  padding: clamp(20px, 4vw, 42px);
}

.records-document-header {
  border-bottom: 1px solid var(--line);
}

.records-document-body h2 {
  margin-bottom: 5px;
}

.records-document-body h2:not(:first-child) {
  margin-top: 24px;
}

.records-sources {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

@media (max-width: 740px) {
  body > header nav .view-tab {
    white-space: normal;
  }
}

.records-chapter {
  padding: 36px 28px 28px;
}

.records-chapter .eyebrow {
  max-width: calc(100% - 32px);
}

.records-chapter h2 {
  margin: 12px 0 18px;
  font: 500 2.5rem/1.1 'Barlow Condensed', sans-serif;
}

.records-chapter .chapter-copy {
  padding: 0;
}

.records-chapter .chapter-copy p,
.records-chapter .chapter-copy li {
  font-size: 1rem;
}

.records-group {
  margin-top: 24px;
}

.records-group > h3 {
  margin: 0 0 10px;
  font: 500 1.625rem/1.2 'Barlow Condensed', sans-serif;
}

.records-group > h3 a,
.records-reader-nav a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.records-group > h3 a:hover {
  color: var(--cyan);
}

.records-reader-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

#publicRecordsAll:not([hidden]) {
  display: inline-block;
  margin-bottom: 10px;
}

body .records-document a.record-link,
.records-document .records-result-link a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.public-records .records-result-link {
  margin-top: 6px;
}
