:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #171817;
  --muted: #596361;
  --quiet: #737a77;
  --line: #dddcd6;
  --line-strong: #c8c7c0;
  --blue: #31566d;
  --blue-soft: #edf3f5;
  --rust: #7a4f3a;
  --sage: #53675f;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: "Open Sans", Arial, sans-serif; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; padding: .7rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }
.preview-note { padding: 8px 20px; background: #f0efe9; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }

.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), 1256px);
  min-height: 92px;
  height: 92px;
  margin: 16px auto 0;
  padding: 0;
  border-bottom: 1px solid #d9d8d2;
}
.archive-brand {
  color: #1d1d1a;
  font: 400 25px/1 Georgia, "Times New Roman", serif;
  text-decoration: none;
}
.archive-header-nav { display: flex; align-items: center; margin-left: auto; }
.archive-header-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #23445d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}
.archive-header a:hover, .archive-header a:focus-visible {
  color: #173f5f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0 0; color: var(--quiet); font-size: 13px; }
.breadcrumb a { color: var(--quiet); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

.record-head { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 72px; align-items: end; padding: 46px 0 40px; border-bottom: 1px solid var(--line-strong); }
.eyebrow, .section-label { margin: 0 0 12px; color: var(--sage); font-size: 12px; font-weight: 750; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: 0; }
h1 { max-width: 820px; font-size: 52px; line-height: 1.04; overflow-wrap: anywhere; }
h2 { font-size: 29px; line-height: 1.16; }
h3 { font-size: 20px; line-height: 1.3; }
.lede { max-width: 760px; margin: 20px 0 0; color: var(--muted); font: 400 20px/1.5 Georgia, "Times New Roman", serif; }
.head-facts { margin: 0; }
.head-facts div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.head-facts dt { color: var(--quiet); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.head-facts dd { min-width: 0; margin: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.status-mark { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--sage); vertical-align: 1px; }

.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; }
.record-main, .record-aside { min-width: 0; }
.section { padding: 34px 0 38px; border-bottom: 1px solid var(--line); }
.section > p:not(.section-label):not(.section-intro) { max-width: 760px; color: var(--muted); font: 400 18px/1.6 Georgia, "Times New Roman", serif; }
.section-intro { max-width: 720px; margin: 13px 0 20px; color: var(--muted); line-height: 1.55; }
.editorial-boundary { margin-top: 20px; padding-left: 16px; border-left: 2px solid var(--line-strong); }

.name-table-wrap { overflow-x: auto; }
.name-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.name-table th { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line-strong); color: var(--quiet); font-size: 11px; text-align: left; text-transform: uppercase; }
.name-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.4; vertical-align: top; }
.name-table td:first-child { width: 43%; color: var(--ink); font: 400 17px/1.35 Georgia, "Times New Roman", serif; }

.connection-row { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr); gap: 30px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.connection-row:first-of-type { margin-top: 16px; border-top: 1px solid var(--line); }
.connection-row div span { display: block; margin-top: 4px; color: var(--quiet); font-size: 12px; }
.connection-name { color: var(--ink); font: 400 19px/1.3 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.connection-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.document-list { margin: 18px 0 0; padding: 0; list-style: none; }
.document-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.document-list li:first-child { border-top: 1px solid var(--line); }
.document-image { width: 88px; min-height: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; }
.document-image img { display: block; width: auto; height: auto; max-width: 88px; max-height: 104px; border: 1px solid #d5d1c9; }
.document-id { margin: 0 0 7px; color: var(--quiet); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.certainty-label { display: inline-block; margin-left: 9px; padding-left: 9px; border-left: 1px solid var(--line-strong); color: var(--rust); font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.document-list h3 a { color: var(--ink); overflow-wrap: anywhere; }
.document-list div > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.complete-evidence-actions { padding-top: 24px; }
.primary-action { display: inline-flex; min-height: 42px; align-items: center; padding: 0 16px; border: 1px solid var(--blue); color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-action:hover { background: var(--blue); color: #fff; }
.complete-document-list { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.complete-document-list summary, .methodology summary { display: flex; align-items: center; gap: 12px; padding: 20px 0; color: var(--blue); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.complete-document-list summary::-webkit-details-marker, .methodology summary::-webkit-details-marker { display: none; }
.complete-document-list summary span, .methodology summary span { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink); }
.complete-document-list[open] summary span, .methodology[open] summary span { transform: rotate(45deg); }
.complete-document-list ol { margin: 0 0 22px 34px; padding: 0 20px 0 26px; }
.complete-document-list li { padding: 8px 0; color: var(--muted); line-height: 1.45; }
.complete-document-list li span { display: block; color: var(--quiet); font-size: 11px; font-weight: 700; text-transform: uppercase; }

.source-list { margin: 18px 0 0; padding-left: 26px; }
.source-list li { margin: 0; padding: 0 0 16px 5px; color: var(--muted); line-height: 1.5; }
.source-list li::marker { color: var(--blue); font-weight: 700; }
.source-list span { display: block; margin-top: 3px; color: var(--quiet); font-size: 13px; }

.record-aside { position: sticky; top: 20px; }
.aside-section { padding: 32px 0 34px; border-bottom: 1px solid var(--line-strong); }
.aside-section h2 { font-size: 24px; }
.aside-section > p:not(.section-label):not(.verified):not(.related-status) { color: var(--muted); font-size: 14px; line-height: 1.55; }
.external-record { padding: 18px 0 4px; border-bottom: 1px solid var(--line); }
.external-record:last-child { border-bottom: 0; }
.external-scheme { margin: 0; color: var(--quiet); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.external-id { display: inline-block; margin-top: 6px; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.verified { margin: 11px 0 0; color: var(--sage); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.related-status { margin: 11px 0 0; color: var(--blue); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.related-status .status-mark { background: var(--blue); }
.aside-section sup { margin-left: 3px; }
.identifier-list { margin: 14px 0 0; }
.identifier-list dt { margin-top: 14px; color: var(--quiet); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.identifier-list dd { margin: 4px 0 0; font: 400 18px/1.35 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.machine-data ul { margin: 14px 0 0; padding-left: 19px; }
.machine-data li { margin: 9px 0; font-size: 14px; }

.methodology { border-bottom: 1px solid var(--line-strong); }
.methodology > div { padding: 0 0 25px 34px; color: var(--muted); font: 400 16px/1.58 Georgia, "Times New Roman", serif; }
.methodology p { max-width: 740px; }
.archive-footer {
  display: block;
  width: min(calc(100% - 40px), 1256px);
  margin: 48px auto 24px;
  padding: 25px 0 32px;
  border-top: 1px solid #d9d8d2;
  color: #1d1d1a;
}
.archive-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.archive-footer-identity { display: flex; flex-direction: column; gap: 5px; }
.archive-footer-brand { color: #1d1d1a; font: 400 18px/1.2 Georgia, "Times New Roman", serif; text-decoration: none; }
.archive-footer-subtitle { color: #706f68; font-size: 12px; line-height: 1.55; }
.archive-footer-nav { display: flex; align-items: center; gap: 24px; margin: 2px 0 0 auto; }
.archive-footer-nav a { display: inline-flex; align-items: baseline; gap: 4px; color: #23445d; font-size: 13px; font-weight: 700; line-height: 1.6; text-decoration: none; white-space: nowrap; }
.archive-footer a:hover, .archive-footer a:focus-visible { color: #173f5f; text-decoration: underline; text-underline-offset: 3px; }

.preview-index { padding: 70px 0; }
.preview-index > .lede { margin-bottom: 42px; }
.preview-index ol { margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.preview-index li { display: grid; grid-template-columns: 250px minmax(220px, .7fr) minmax(280px, 1fr); gap: 32px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.preview-index li p { margin: 0; color: var(--quiet); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.preview-index li h2 { font-size: 25px; }
.preview-index li span { color: var(--muted); line-height: 1.55; }

@media (max-width: 900px) {
  .record-head { grid-template-columns: 1fr; gap: 26px; }
  .head-facts { max-width: 520px; }
  .record-layout { grid-template-columns: 1fr; gap: 0; }
  .record-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-bottom: 1px solid var(--line-strong); }
  .aside-section { border-bottom: 0; }
  .preview-index li { grid-template-columns: 180px minmax(180px, .7fr) minmax(260px, 1fr); gap: 22px; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .archive-header { min-height: 84px; height: 84px; }
  .archive-brand { font-size: 23px; }
  .archive-header-nav a { font-size: 13px; }
  .breadcrumb { padding-top: 18px; }
  .record-head { padding: 34px 0 30px; }
  h1 { font-size: 38px; }
  h2 { font-size: 26px; }
  .lede { font-size: 18px; }
  .record-aside { grid-template-columns: 1fr; gap: 0; }
  .record-layout { display: flex; flex-direction: column; }
  .record-main, .record-aside { display: contents; }
  .identity-section { order: 1; }
  .external-authority-section { order: 2; }
  .archival-identifier-section { order: 3; }
  .record-period { order: 4; }
  .names-section { order: 5; }
  .connections-section { order: 6; }
  .documents-section { order: 7; }
  .sources-section { order: 8; }
  .machine-data { order: 9; }
  .methodology { order: 10; }
  .aside-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .connection-row { grid-template-columns: 1fr; gap: 8px; }
  .document-list li { grid-template-columns: 70px minmax(0, 1fr); gap: 15px; }
  .document-image { width: 68px; min-height: 0; }
  .document-image img { max-width: 68px; max-height: 84px; }
  .name-table { min-width: 0; }
  .name-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .name-table, .name-table tbody, .name-table tr, .name-table td { display: block; width: 100%; }
  .name-table tr { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .name-table td, .name-table td:first-child { padding: 3px 0; border: 0; }
  .name-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--quiet); font: 700 10px/1.3 "Open Sans", Arial, sans-serif; text-transform: uppercase; }
  .complete-document-list ol { margin-left: 22px; padding-left: 22px; }
  .archive-footer { margin-top: 40px; padding: 24px 0 30px; }
  .archive-footer-inner { flex-direction: column; gap: 22px; }
  .archive-footer-nav { flex-wrap: wrap; gap: 12px 22px; margin: 0; }
  .preview-index { padding: 42px 0; }
  .preview-index li { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 380px) {
  .archive-header, .archive-footer { width: calc(100% - 32px); }
  .archive-brand { font-size: 21px; }
}

@media print {
  .preview-note, .skip-link, .archive-header-nav, .machine-data { display: none; }
  .shell { width: 100%; }
  .record-aside { position: static; }
  .complete-document-list > ol { display: none; }
  a { color: #000; text-decoration: none; }
}
