@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root,
:root[data-color-scheme="light"] {
  color-scheme: light;
  --background: rgb(250, 245, 233);
  --modal-background: rgb(255, 252, 244);
  --text-color: rgb(20, 72, 65);
  --primary-color: rgb(20, 72, 65);
  --secondary-color: rgb(241, 232, 214);
  --accent-color: rgb(20, 90, 72);
  --button-text-color: rgb(255, 254, 249);
  --border-color: rgb(194, 180, 153);
  --focus-color: rgb(30, 100, 76);
  --muted-text-color: rgb(91, 105, 96);
  --success-color: rgb(20, 90, 72);
  --warning-color: rgb(129, 83, 25);
  --danger-color: rgb(125, 49, 40);
  --shadow-color: rgba(10, 35, 31, .12);
  --archive-canvas: rgb(250, 245, 233);
  --archive-paper: rgb(255, 252, 244);
  --archive-paper-strong: rgb(255, 254, 248);
  --archive-reading-inset: var(--archive-canvas);
  --archive-heading-surface: var(--archive-canvas);
  --archive-ink: rgb(20, 72, 65);
  --archive-title: var(--archive-ink);
  --archive-copy: rgb(52, 60, 55);
  --archive-opening-copy: var(--archive-copy);
  --archive-muted: rgb(91, 105, 96);
  --archive-line: rgb(194, 180, 153);
  --archive-line-soft: rgba(98, 75, 40, .18);
  --archive-frame: rgb(20, 72, 65);
  --archive-chrome: rgb(18, 45, 38);
  --archive-bronze: rgb(129, 83, 25);
  --archive-brass: rgb(206, 141, 40);
  --archive-gold-ink: var(--seal-gold);
  --archive-label-ink: var(--archive-verdigris);
  --archive-highlight-ink: var(--archive-ink);
  --archive-verdigris: rgb(20, 90, 72);
  --archive-evergreen: rgb(20, 72, 65);
  --archive-action: rgb(206, 141, 40);
  --archive-action-ink: rgb(24, 27, 26);
  --archive-action-hover: rgb(225, 168, 75);
  --archive-rule-accent: rgb(240, 230, 222);
  --archive-on-dark: rgb(240, 230, 222);
  --archive-shadow: rgba(10, 35, 31, .16);
  --archive-shadow-deep: rgba(10, 35, 31, .28);
  --seal-green: rgb(20, 72, 65);
  --seal-gold: rgb(206, 141, 40);
  --seal-ivory: rgb(240, 230, 222);
  --site-max-width: 78rem;
  --site-reading-width: 47rem;
  --site-radius: .22rem;
  --page-title-size: clamp(1.5rem, 3vw, 2.375rem);
  --section-title-size: 2rem;
  --card-title-size: 1.375rem;
  --detail-title-size: 1.1875rem;
  --display-face: "Source Serif 4", Georgia, serif;
  --brand-face: var(--display-face);
  --body-face: var(--utility-face);
  --utility-face: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --body-copy-size: 1.1875rem;
  font-family: var(--body-face);
  font-synthesis: none;
  font-optical-sizing: auto;
}

:root[data-color-scheme="dark"] {
  color-scheme: dark;
  --background: rgb(28, 29, 30);
  --modal-background: rgb(43, 45, 46);
  --text-color: rgb(248, 249, 250);
  --primary-color: rgb(52, 55, 57);
  --secondary-color: rgb(52, 55, 57);
  --accent-color: rgb(238, 240, 242);
  --button-text-color: rgb(28, 29, 30);
  --border-color: rgb(113, 119, 124);
  --focus-color: rgb(231, 198, 133);
  --muted-text-color: rgb(202, 206, 209);
  --success-color: rgb(158, 194, 173);
  --warning-color: rgb(222, 190, 132);
  --danger-color: rgb(218, 131, 113);
  --shadow-color: rgba(0, 0, 0, .42);
  --archive-canvas: rgb(28, 29, 30);
  --archive-paper: rgb(43, 45, 46);
  --archive-paper-strong: rgb(52, 55, 57);
  --archive-heading-surface: var(--archive-canvas);
  --archive-ink: rgb(248, 249, 250);
  --archive-title: rgb(255, 255, 255);
  --archive-copy: rgb(238, 240, 242);
  --archive-opening-copy: var(--archive-title);
  --archive-muted: rgb(202, 206, 209);
  --archive-line: rgb(113, 119, 124);
  --archive-line-soft: rgb(76, 82, 86);
  --archive-frame: rgb(75, 81, 85);
  --archive-chrome: rgb(34, 37, 39);
  --archive-bronze: rgb(221, 224, 226);
  --archive-brass: rgb(198, 169, 117);
  --archive-verdigris: rgb(215, 222, 225);
  --archive-highlight-ink: var(--seal-gold);
  --archive-evergreen: rgb(238, 240, 242);
  --archive-action: rgb(241, 243, 244);
  --archive-action-hover: rgb(255, 255, 255);
  --archive-rule-accent: rgb(244, 245, 246);
  --archive-on-dark: rgb(248, 249, 250);
  --archive-shadow: rgba(0, 0, 0, .34);
  --archive-shadow-deep: rgba(0, 0, 0, .58);
}

@media (prefers-color-scheme: dark) {
:root:not([data-color-scheme]) {
    color-scheme: dark;
    --background: rgb(28, 29, 30);
    --modal-background: rgb(43, 45, 46);
    --text-color: rgb(248, 249, 250);
    --primary-color: rgb(52, 55, 57);
    --secondary-color: rgb(52, 55, 57);
    --accent-color: rgb(238, 240, 242);
    --button-text-color: rgb(28, 29, 30);
    --border-color: rgb(113, 119, 124);
    --focus-color: rgb(231, 198, 133);
    --muted-text-color: rgb(202, 206, 209);
    --success-color: rgb(158, 194, 173);
    --warning-color: rgb(222, 190, 132);
    --danger-color: rgb(218, 131, 113);
    --shadow-color: rgba(0, 0, 0, .42);
    --archive-canvas: rgb(28, 29, 30);
    --archive-paper: rgb(43, 45, 46);
    --archive-paper-strong: rgb(52, 55, 57);
    --archive-heading-surface: var(--archive-canvas);
    --archive-ink: rgb(248, 249, 250);
    --archive-title: rgb(255, 255, 255);
    --archive-copy: rgb(238, 240, 242);
    --archive-opening-copy: var(--archive-title);
    --archive-muted: rgb(202, 206, 209);
    --archive-line: rgb(113, 119, 124);
    --archive-line-soft: rgb(76, 82, 86);
    --archive-frame: rgb(75, 81, 85);
    --archive-chrome: rgb(34, 37, 39);
    --archive-bronze: rgb(221, 224, 226);
    --archive-brass: rgb(198, 169, 117);
    --archive-verdigris: rgb(215, 222, 225);
    --archive-highlight-ink: var(--seal-gold);
    --archive-evergreen: rgb(238, 240, 242);
    --archive-action: rgb(241, 243, 244);
    --archive-action-hover: rgb(255, 255, 255);
    --archive-rule-accent: rgb(244, 245, 246);
    --archive-on-dark: rgb(248, 249, 250);
    --archive-shadow: rgba(0, 0, 0, .34);
    --archive-shadow-deep: rgba(0, 0, 0, .58);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 5rem;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--archive-canvas);
  color: var(--archive-ink);
  font-family: var(--body-face);
  font-size: var(--body-copy-size);
  line-height: 1.65;
  text-rendering: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--archive-bronze);
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}

a:hover {
  text-decoration-color: currentColor;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code,
pre,
kbd,
samp {
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

code {
  padding: .08em .28em;
  border: 1px solid var(--archive-line-soft);
  background: var(--secondary-color);
  color: var(--archive-ink);
  font-size: .95em;
}

strong,
b {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
p,
li,
dd {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  color: var(--archive-ink);
  font-family: var(--display-face);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  color: var(--archive-title);
  font-size: var(--page-title-size);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: pretty;
  overflow-wrap: normal;
}

h2 {
  font-size: var(--section-title-size);
  letter-spacing: normal;
}

h3 {
  color: var(--archive-highlight-ink);
  font-size: var(--card-title-size);
  font-weight: 700;
}

h4 {
  font-size: var(--detail-title-size);
  font-weight: 600;
}

h1 code,
h2 code,
h3 code,
h4 code {
  font-size: inherit;
}

:focus-visible {
  outline: .2rem solid var(--focus-color);
  outline-offset: .22rem;
}

.archive-masthead :focus-visible,
.archive-footer :focus-visible,
.code-figure :focus-visible {
  outline-color: var(--archive-brass);
}

[id] {
  scroll-margin-top: 12.5rem;
}

.skip-link {
  min-height: 2.75rem;
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  display: inline-flex;
  align-items: center;
  padding: .55rem .9rem;
  border: 2px solid var(--archive-brass);
  background: var(--archive-paper-strong);
  color: var(--archive-ink);
  box-shadow: .3rem .3rem 0 var(--archive-frame);
  font-family: var(--utility-face);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-190%);
}

.skip-link:focus {
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  z-index: 30;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 2.75rem;
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border: 1px solid var(--archive-brass);
  border-radius: var(--site-radius);
  background: var(--archive-paper-strong);
  color: var(--archive-ink);
  box-shadow: none;
  font-family: var(--utility-face);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.back-to-top:hover {
  background: var(--archive-action);
  color: var(--archive-action-ink);
}

.back-to-top[hidden] {
  display: none;
}

.site-shell,
.masthead-inner {
  width: min(calc(100% - 2rem), var(--site-max-width));
  margin-inline: auto;
}

/* Polished floor stone and brass inlays from the banner frame both themes. */
.archive-masthead,
.archive-footer {
  --archive-chrome: rgb(215, 201, 178);
  --archive-chrome-surface:
    radial-gradient(ellipse at 16% 86%, rgba(156, 131, 94, .22), transparent 48%),
    radial-gradient(ellipse at 82% 12%, rgba(255, 251, 237, .64), transparent 56%),
    linear-gradient(116deg, rgba(180, 155, 116, .18) 4%, rgba(251, 241, 220, .66) 35%, rgba(241, 227, 201, .3) 49%, rgba(171, 146, 109, .16) 68%, rgba(247, 236, 214, .46) 94%);
  --archive-chrome-ink: rgb(49, 39, 29);
  --archive-chrome-muted: rgb(76, 62, 47);
  --archive-brass: rgb(86, 61, 26);
  --archive-chrome-inlay: rgb(151, 115, 60);
  --archive-bronze: var(--archive-brass);
}

.archive-masthead::after,
.archive-footer::before {
  position: absolute;
  left: 6%;
  right: 6%;
  height: .6rem;
  pointer-events: none;
  content: "";
}

.archive-masthead::after {
  bottom: .15rem;
  border-bottom: 1px solid var(--archive-chrome-inlay);
  border-radius: 0 0 50% 50%;
}

.archive-footer::before {
  top: .4rem;
  border-top: 1px solid var(--archive-chrome-inlay);
  border-radius: 50% 50% 0 0;
}

.archive-masthead {
  position: sticky;
  z-index: 40;
  top: 0;
  border-top: .22rem solid var(--archive-chrome-inlay);
  border-bottom: 1px solid var(--archive-chrome-inlay);
  background-color: var(--archive-chrome);
  background-image: var(--archive-chrome-surface);
  color: var(--archive-chrome-ink);
  box-shadow: none;
}

.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  justify-items: start;
  padding-block: .85rem .65rem;
}

.site-brand {
  min-height: 2.75rem;
  min-width: 0;
  display: inline-flex;
  gap: .85rem;
  align-items: center;
  color: var(--archive-chrome-ink);
  text-decoration: none;
}

.site-seal {
  width: 3.5rem;
  height: 3.5rem;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  color: var(--archive-chrome-ink);
  font-family: var(--brand-face);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.brand-copy small {
  margin: 0;
  color: var(--archive-chrome-muted);
  font-family: var(--utility-face);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.primary-nav {
  --bookmark-height: 1.5rem;
  --bookmark-top: -1px;
  width: min(100%, 52rem);
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.25rem, 1vw, .75rem);
  align-items: stretch;
  justify-self: center;
}

.primary-nav a {
  min-height: 3.75rem;
  display: inline-flex;
  position: relative;
  flex-direction: column;
  gap: .15rem;
  align-items: center;
  justify-content: center;
  padding: .45rem .5rem;
  border: 1px solid rgba(49, 39, 29, .25);
  border-bottom: .18rem solid transparent;
  border-radius: .3rem .3rem 0 0;
  color: var(--archive-chrome-ink);
  font-family: var(--utility-face);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-volume {
  color: var(--archive-brass);
  font-family: var(--utility-face);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-title {
  font-family: var(--utility-face);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--archive-chrome-ink);
}

.primary-nav a:hover {
  background: rgba(255, 250, 239, .6);
}

.primary-nav a[aria-current="page"] {
  border-color: var(--seal-green);
  background: rgb(255, 250, 239);
}

/* A small ribbon marks the current volume without covering its title. */
.primary-nav a[aria-current="page"]::before,
.primary-nav a[aria-current="page"]::after {
  position: absolute;
  top: var(--bookmark-top);
  right: .65rem;
  width: .85rem;
  height: var(--bookmark-height);
  background: var(--seal-gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  content: "";
  pointer-events: none;
}

.primary-nav a[aria-current="page"]::after {
  top: calc(var(--bookmark-top) + 2px);
  right: calc(.65rem + 2px);
  width: calc(.85rem - 4px);
  height: calc(var(--bookmark-height) - 5px);
  background: var(--seal-green);
}

.masthead-actions {
  display: flex;
  gap: .65rem;
  align-items: center;
  justify-self: end;
}

.masthead-actions .nav-parent {
  min-height: 2.75rem;
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  justify-content: center;
  padding: .5rem .7rem;
  border: 1px solid var(--archive-brass);
  border-radius: var(--site-radius);
  background: rgba(255, 250, 239, .5);
  color: var(--archive-brass);
  font-family: var(--utility-face);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.masthead-actions .nav-parent:hover {
  background: var(--archive-brass);
  color: var(--archive-chrome);
}

.theme-toggle {
  min-height: 2.75rem;
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  padding: .5rem .7rem;
  border: 1px solid rgba(49, 39, 29, .35);
  border-radius: var(--site-radius);
  background: transparent;
  color: var(--archive-chrome-ink);
  font-family: var(--utility-face);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgb(255, 250, 239);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.theme-toggle[hidden],
.theme-toggle[data-target-scheme="light"] .theme-moon,
.theme-toggle[data-target-scheme="dark"] .theme-sun {
  display: none;
}

/* A green book spine with gold edges frames each major reading section. */
.threshold-section,
.finding-aid-section,
.institution-section,
.collection-explorer,
.chapter {
  --section-gutter: clamp(1rem, 2.5vw, 1.75rem);
  --section-spine-width: 1.125rem;
  position: relative;
  padding: var(--section-gutter);
  border: 1px solid var(--archive-line);
  border-left: var(--section-spine-width) solid var(--seal-green);
  background: var(--archive-paper);
}

:is(.threshold-section, .finding-aid-section, .institution-section, .collection-explorer, .chapter)::before {
  position: absolute;
  inset-block: -1px;
  left: calc(-1 * var(--section-spine-width));
  width: var(--section-spine-width);
  border-left: 1px solid var(--seal-gold);
  border-right: 2px solid var(--seal-gold);
  background: var(--seal-green);
  content: "";
  pointer-events: none;
}

.section-intro,
.explorer-intro,
.chapter-heading {
  margin: calc(-1 * var(--section-gutter)) calc(-1 * var(--section-gutter)) 0;
  padding: 1.15rem var(--section-gutter);
  border-bottom: 1px solid var(--archive-line);
  background: var(--archive-heading-surface);
}

.home-hero {
  padding-block: clamp(1.15rem, 3vw, 2.7rem) 0;
}

.knowledge-hall {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--archive-frame);
  outline: 1px solid var(--archive-brass);
  outline-offset: .35rem;
  background: var(--archive-chrome);
  box-shadow: none;
}

.knowledge-hall::after {
  position: absolute;
  inset: .55rem;
  border: 1px solid rgba(240, 230, 222, .28);
  content: "";
  pointer-events: none;
}

.knowledge-hall img {
  width: 100%;
  aspect-ratio: 3.6 / 1;
  object-fit: cover;
  object-position: center;
}

.hero-register {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.accession-line,
.folio-label,
.slip-label,
.record-number,
.chapter-heading p,
.volume-index p {
  margin: 0;
  color: var(--archive-label-ink);
  font-family: var(--utility-face);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-hero h1,
.section-intro h2,
.explorer-intro h2 {
  scroll-margin-top: 15rem;
}

.plaque-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.plaque {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .62rem 1rem;
  border: 1px solid var(--archive-bronze);
  border-radius: var(--site-radius);
  background: var(--archive-paper-strong);
  color: var(--archive-ink);
  font-family: var(--utility-face);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.plaque:hover {
  background: var(--archive-brass);
  color: var(--archive-chrome);
  transform: translateY(-1px);
}

.plaque-primary {
  border-color: var(--archive-action);
  background: var(--archive-action);
  color: var(--archive-action-ink);
}

.plaque-primary:hover {
  border-color: var(--archive-action-hover);
  background: var(--archive-action-hover);
  color: var(--archive-action-ink);
}

.catalog-slip {
  position: relative;
  margin-top: 0;
  padding: 1.45rem 1.5rem 1.6rem;
  border: 1px solid var(--archive-line);
  border-top: 2px solid var(--seal-gold);
  background: var(--archive-canvas);
}

.catalog-slip h2 {
  margin: .5rem 0 0;
}

.catalog-slip > p:not(.slip-label) {
  margin: .8rem 0 0;
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
}

.catalog-slip dl {
  display: grid;
  gap: .42rem;
  margin: 1.2rem 0 0;
}

.catalog-slip dl div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: .75rem;
}

.catalog-slip dt,
.catalog-slip dd {
  margin: 0;
  font-family: var(--utility-face);
  font-size: .9375rem;
}

.catalog-slip dt {
  color: var(--archive-label-ink);
  font-weight: 600;
  text-transform: uppercase;
}

.catalog-slip dd {
  color: var(--archive-ink);
  font-weight: 600;
}

.threshold-section,
.finding-aid-section,
.institution-section {
  margin-top: 2rem;
}

.institution-section {
  margin-bottom: 2rem;
}

.section-intro {
  max-width: none;
}

.section-intro h2 {
  margin: .55rem 0 0;
}

.section-intro > p:last-child {
  max-width: 70ch;
  margin: 1rem 0 0;
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
}

.principle-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.principle-ledger article {
  min-width: 0;
  padding: 1.65rem 1.35rem 1.8rem;
  border-right: 1px solid var(--archive-line);
  background: transparent;
}

.principle-ledger article:last-child {
  border-right: 0;
}

.principle-ledger article > span {
  color: var(--archive-label-ink);
  font-family: var(--display-face);
  font-size: 1.5rem;
}

.principle-ledger h3 {
  margin: .75rem 0 0;
}

.principle-ledger p {
  margin: .65rem 0 0;
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
}

.finding-aid-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.finding-aid-list li {
  border-bottom: 1px solid var(--archive-line);
}

.finding-aid-list li:last-child {
  border-bottom: 0;
}

.finding-aid-list a {
  min-height: 5.75rem;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) 2.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1rem .7rem;
  text-decoration: none;
  transition: background-color 140ms ease, padding 140ms ease;
}

.finding-aid-list a:hover {
  padding-inline: 1rem .4rem;
  background: var(--archive-paper);
}

.finding-aid-list strong,
.finding-aid-list small {
  display: block;
}

.finding-aid-list strong {
  color: var(--archive-highlight-ink);
  font-family: var(--display-face);
  font-size: var(--card-title-size);
  font-weight: 600;
}

.finding-aid-list small {
  margin-top: .2rem;
  color: var(--archive-copy);
  font-family: var(--body-face);
  font-size: var(--body-copy-size);
}

.record-arrow {
  color: var(--seal-gold);
  font-size: 1.45rem;
  text-align: right;
}

.institution-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.institution-index li {
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  position: relative;
  align-items: flex-start;
  padding: .9rem 1rem .9rem 2.2rem;
  border-bottom: 1px solid var(--archive-line);
  background: transparent;
  font-size: var(--body-copy-size);
}

.institution-index strong {
  color: var(--archive-highlight-ink);
  font-weight: 600;
}

.institution-index li > span {
  color: var(--archive-copy);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.institution-index li::before {
  width: .42rem;
  height: .42rem;
  position: absolute;
  top: calc(.9rem + .825em - .21rem);
  left: 1rem;
  border: 2px solid var(--seal-gold);
  background: var(--seal-green);
  content: "";
  transform: rotate(45deg);
}

.margin-link {
  margin: .75rem 0 0;
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
  text-align: left;
}

.margin-link + .margin-link {
  margin-top: .5rem;
}

.margin-link a {
  color: var(--archive-evergreen);
  font-weight: 600;
}

.margin-link a,
.sample-next a {
  text-decoration-color: var(--seal-gold);
}

.volume-main {
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}

.breadcrumbs {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--archive-muted);
  font-family: var(--utility-face);
  font-size: .9375rem;
  font-weight: 600;
}

.breadcrumbs a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.volume-header {
  --cover-frame: clamp(2rem, 3vw, 2.5rem);
  --section-gutter: .75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  padding: var(--section-gutter);
  /* Repeat complete lattice units along the four sides and leave the center unpainted. */
  border: var(--cover-frame) solid transparent;
  border-image: url("../assets/kumiko-frame.svg") 72 / 1 / 0 round;
  background: var(--archive-paper-strong);
}

.volume-header .breadcrumbs {
  grid-column: 1;
  grid-row: 1;
  flex-wrap: wrap;
  margin-bottom: .75rem;
  color: var(--archive-opening-copy);
}

.volume-header .breadcrumbs a {
  position: relative;
  min-height: 0;
}

.volume-header .breadcrumbs a::before {
  /* Keep a full touch target without adding empty space above the text. */
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 2.75rem;
  margin-top: -1.375rem;
  content: "";
}

.volume-header .accession-line {
  grid-column: 1;
  justify-self: start;
  padding: .5rem .8rem;
  border-bottom: 1px solid var(--seal-gold);
  background: var(--seal-green);
  color: var(--seal-ivory);
}

.volume-header h1 {
  grid-column: 1 / -1;
  margin: 1.35rem 0 0;
  letter-spacing: -.025em;
}

.volume-header > p:not(.accession-line) {
  grid-column: 1 / -1;
  max-width: 49rem;
  margin: 1.2rem 0 0;
  color: var(--archive-opening-copy);
  font-size: clamp(1.1875rem, 1.75vw, 1.25rem);
  font-weight: 500;
}

.volume-header .page-action {
  grid-column: 1 / -1;
  justify-self: start;
  gap: .65rem;
  margin-top: 1.25rem;
}

@media (min-width: 56rem) {
  .volume-header > p:not(.accession-line) {
    /* Match the cover height and action position across the opening panels. */
    min-block-size: 3lh;
  }
}

.volume-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.volume-index {
  position: sticky;
  top: 12rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--archive-line);
  border-top: .22rem solid var(--archive-rule-accent);
  background: var(--archive-paper);
}

.volume-index ol {
  display: grid;
  gap: .1rem 1.5rem;
  margin: .7rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: volume-index;
}

.volume-index li {
  border-bottom: 1px solid var(--archive-line-soft);
  counter-increment: volume-index;
}

.volume-index a {
  min-height: 2.75rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  padding-block: .4rem;
  color: var(--archive-copy);
  font-family: var(--display-face);
  font-size: var(--body-copy-size);
  font-weight: 600;
  text-decoration: none;
}

.volume-index ol a::before,
.chapter-heading > span {
  display: grid;
  place-items: center;
  justify-self: center;
  background: url("../assets/section-ribbon.svg") center / 100% 100% no-repeat;
  color: var(--seal-ivory);
  font-family: var(--utility-face);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  letter-spacing: normal;
}

.volume-index ol a::before {
  width: 2rem;
  height: 2.625rem;
  padding-bottom: .375rem;
  content: counter(volume-index, decimal-leading-zero);
  font-size: 1.125rem;
}

.volume-index a:hover {
  color: var(--archive-ink);
}

[data-section-browser] .volume-index a {
  padding-inline: .5rem;
  border-left: 3px solid transparent;
}

[data-section-browser] .volume-index ol a {
  height: 100%;
}

[data-section-browser] .volume-index a[aria-current="location"] {
  border-left-color: var(--archive-ink);
  background: var(--archive-canvas);
  color: var(--archive-ink);
}

[data-section-browser] .volume-index a.see-all-sections {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-width: 8rem;
  margin-top: 1rem;
  padding: .6rem 1rem;
  border: 1px solid var(--archive-ink);
  border-radius: .2rem;
  background: var(--archive-ink);
  color: var(--archive-canvas);
  font-family: var(--utility-face);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
}

[data-section-browser] .volume-index a.see-all-sections:hover {
  background: var(--archive-copy);
  text-decoration: underline;
  text-underline-offset: .18em;
}

[data-section-browser] .volume-index a.see-all-sections[aria-current="location"]:not(:focus-visible) {
  outline: 2px solid var(--archive-ink);
  outline-offset: 3px;
}

.see-all-sections svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

[data-section-browser] .see-all-sections::before {
  content: none;
}

[data-section-browser] .volume-index a.see-all-sections[hidden],
[data-section-browser] [data-reading-section][hidden] {
  display: none;
}

[data-section-browser][data-section-view="single"] [data-reading-section] {
  margin-top: 0;
}

.section-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  max-width: 58rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--archive-line);
}

.section-pagination[hidden],
.section-pagination a[hidden] {
  display: none;
}

.section-pagination a {
  display: flex;
  grid-row: 1;
  flex-direction: column;
  gap: .25rem;
  min-height: 2.75rem;
  padding-block: .85rem;
  text-decoration: none;
}

.section-progress {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding-block: .85rem;
  color: var(--archive-muted);
  font-family: var(--utility-face);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
  white-space: nowrap;
}

.section-pagination a:hover strong {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.section-pagination span {
  color: var(--archive-muted);
  font-family: var(--utility-face);
  font-size: 1rem;
}

.section-pagination strong {
  color: var(--archive-ink);
  font-family: var(--display-face);
  font-size: var(--body-copy-size);
  line-height: 1.35;
}

.section-pagination .section-previous {
  grid-column: 1;
}

.section-pagination .section-next {
  grid-column: 3;
  text-align: right;
}

.home-section-browser {
  margin-block: 2rem;
}

.home-section-browser .volume-index {
  position: static;
}

.home-section-browser .volume-index ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-section-browser .volume-content {
  margin-top: 2rem;
}

.home-section-browser .volume-content > section:first-child {
  margin-top: 0;
}

.volume-content {
  min-width: 0;
}

.chapter {
  max-width: 58rem;
}

.chapter > :last-child {
  margin-bottom: 0;
}

.chapter + .chapter {
  margin-top: 2rem;
}

.chapter-heading {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: .35rem 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.chapter-heading > div {
  display: contents;
}

.chapter-heading p,
.chapter-heading h2 {
  grid-column: 2;
}

.chapter-heading > span {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 2.75rem;
  height: 3.5rem;
  padding-bottom: .5rem;
  text-align: center;
  font-size: 1.5rem;
}

.chapter-heading h2 {
  margin: 0;
}

.chapter > p:not(.folio-label) {
  max-width: var(--site-reading-width);
  color: var(--archive-copy);
}

.book-spread,
.profile-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
  border: var(--spread-rule-width, 1px) solid var(--archive-line);
  background: var(--archive-frame);
  box-shadow: none;
}

.folio,
.profile-leaf {
  min-width: 0;
  position: relative;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border-right: var(--spread-rule-width, 1px) solid var(--archive-line);
  background: var(--archive-paper-strong);
}

.folio:last-child,
.profile-leaf:last-child {
  border-right: 0;
}

.folio-accent,
.profile-leaf:nth-child(even) {
  background: var(--archive-paper-strong);
}

.profile-spread {
  --spread-rule-width: 2px;
}

.profile-spread,
.profile-spread > .profile-leaf {
  border-color: var(--seal-gold);
}

.profile-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.profile-heading h3 {
  color: var(--archive-gold-ink);
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-symbol {
  width: 4rem;
  height: 4rem;
  color: var(--seal-gold);
  fill: rgb(20, 72, 65);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.profile-symbol-detail {
  fill: none;
  stroke: currentColor;
}

.folio h3,
.profile-leaf h3 {
  margin: .5rem 0 0;
}

.indexed-list {
  display: grid;
  gap: .65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: indexed-list;
}

.indexed-list li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: .55rem;
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
  counter-increment: indexed-list;
}

.indexed-list li::before {
  color: var(--archive-label-ink);
  content: counter(indexed-list, decimal-leading-zero);
  font-family: var(--utility-face);
  font-size: .875rem;
  font-weight: 600;
}

.setup-sequence {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.setup-sequence > li {
  padding-left: .4rem;
}

.setup-sequence > li::marker {
  color: var(--archive-label-ink);
  font-family: var(--utility-face);
  font-weight: 600;
}

.setup-sequence h3,
.release-review h3 {
  margin: 0 0 .5rem;
}

.setup-sequence p,
.release-review p {
  max-width: 68ch;
  margin: 0;
  color: var(--archive-copy);
}

.build-specimen .code-figure {
  box-shadow: none;
}

.publication-record {
  display: grid;
  gap: 1.75rem;
  margin: 1.5rem 0;
}

.publication-record > div {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.3fr);
  gap: 1.5rem;
}

.publication-record dt {
  color: var(--archive-highlight-ink);
  font-family: var(--display-face);
  font-size: var(--card-title-size);
  font-weight: 600;
  line-height: 1.35;
}

.publication-record dd {
  margin: 0;
  color: var(--archive-copy);
}

.release-review {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 45rem) {
  .publication-record > div {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
}

.dependency-register,
.step-register,
.license-register,
.request-list {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--archive-line);
  list-style: none;
}

.dependency-register > li,
.step-register > li,
.license-entry,
.request-list > li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: .85rem 1rem;
  padding: 1.25rem .5rem;
  border-bottom: 1px solid var(--archive-line);
}

.dependency-register > li > span,
.step-register > li > span,
.request-list > li::before {
  color: var(--archive-label-ink);
  font-family: var(--utility-face);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.dependency-register strong,
.step-register strong,
.step-register h3,
.request-list strong {
  color: var(--archive-highlight-ink);
  font-family: var(--display-face);
  font-size: var(--card-title-size);
  font-weight: 700;
}

.dependency-register p,
.step-register p,
.request-list p {
  grid-column: 2;
  margin: -.45rem 0 0;
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
}

.request-list {
  counter-reset: request-list;
}

.request-list > li {
  counter-increment: request-list;
}

.request-list > li::before {
  content: counter(request-list, decimal-leading-zero);
}

.marginalia,
.case-boundary,
.boundary-box {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--archive-line);
  border-left: .28rem solid var(--seal-gold);
  background: var(--archive-paper);
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
}

.marginalia strong,
.case-boundary strong,
.boundary-box strong {
  color: var(--archive-ink);
}

.marginalia-warning,
.case-boundary,
.boundary-box.warning {
  border-left-color: var(--archive-rule-accent);
}

.collection-explorer {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.explorer-intro h2 {
  margin: .5rem 0;
}

.explorer-intro > p:last-child {
  margin: 0;
  color: var(--archive-copy);
}

.purpose-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--archive-line);
}

.purpose-tabs a,
.record-tabs a {
  min-width: 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: .8rem .25rem;
  color: var(--archive-copy);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.purpose-tabs a {
  border-bottom: .2rem solid transparent;
}

.purpose-tabs a[aria-selected="true"] {
  border-bottom-color: var(--seal-gold);
  color: var(--archive-ink);
}

.purpose-tabs a:hover,
.record-tabs a:hover {
  color: var(--archive-ink);
  text-decoration: underline;
}

.sample-collection {
  padding-top: 1.5rem;
}

.collection-explorer [hidden] {
  display: none;
}

.sample-heading h3 {
  margin: .3rem 0;
}

.sample-heading > p:last-child {
  margin: 0;
  color: var(--archive-copy);
}

.reading-desk {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 3fr);
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1.25rem;
  align-items: start;
}

.record-tabs {
  display: grid;
  gap: .3rem;
}

.record-tabs a {
  gap: .5rem;
  border-left: .2rem solid transparent;
  padding: .8rem .85rem;
}

.record-tabs a[aria-selected="true"] {
  border-left-color: var(--seal-gold);
  background: var(--archive-paper);
  color: var(--archive-ink);
}

.sample-reader {
  min-width: 0;
}

.sample-sheet {
  min-height: 24rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-top: .2rem solid var(--seal-gold);
  background: var(--archive-canvas);
  color: var(--archive-copy);
}

.sample-sheet + .sample-sheet {
  margin-top: 1rem;
}

.sample-sheet[role="tabpanel"] {
  margin-top: 0;
}

.sample-type {
  margin: 0 0 .65rem;
  color: var(--archive-label-ink);
  font-size: 1rem;
}

.sample-sheet h4 {
  margin: 0 0 1rem;
  font-size: var(--card-title-size);
}

.sample-sheet > p:not(.sample-type) {
  max-width: 65ch;
  margin: .8rem 0;
}

.sample-sheet :last-child {
  margin-bottom: 0;
}

.sample-sheet ul,
.sample-sheet ol {
  display: grid;
  gap: .65rem;
  padding-left: 1.25rem;
}

.sample-sheet li::marker {
  color: var(--archive-label-ink);
}

.sample-facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.sample-facts dt {
  color: var(--archive-ink);
  font-weight: 600;
}

.sample-facts dd {
  margin: .15rem 0 0;
}

.sample-note,
.explorer-note {
  color: var(--archive-muted);
  font-size: 1rem;
}

.sample-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  margin-top: 1rem;
}

.sample-next a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
}

.sample-next a:first-child {
  font-weight: 600;
}

.explorer-note {
  max-width: 80ch;
  margin: .75rem 0 0;
}

@media (max-width: 45rem) {
  .purpose-tabs {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .purpose-tabs a {
    padding-block: .65rem;
  }

  .reading-desk {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .record-tabs {
    gap: .1rem;
  }

  .record-tabs a {
    padding-block: .55rem;
  }

  .sample-sheet {
    min-height: 0;
  }
}

.case-register {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.25rem;
  border-top: 1px solid var(--archive-line);
}

.architecture-volume .volume-layout {
  display: block;
  max-width: 58rem;
  margin-inline: auto;
  padding-top: 1.5rem;
}

.architecture-volume .volume-index {
  position: static;
  margin-bottom: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.architecture-volume .volume-index ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: .25rem;
}

.architecture-volume .chapter-heading > span,
.architecture-volume .chapter-heading h2 {
  grid-row: 1;
}

.architecture-volume .chapter-lead {
  margin: .9rem 0 1.25rem;
}

.ownership-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ownership-overview article {
  min-width: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--archive-line);
}

.ownership-overview h3 {
  margin: 0;
}

.ownership-overview ul {
  display: grid;
  gap: .55rem;
  margin: .9rem 0 0;
  padding-left: 1.1rem;
  color: var(--archive-copy);
  line-height: 1.5;
}

.ownership-overview li::marker {
  color: var(--seal-gold);
}

.reference-details {
  margin-top: 1rem;
  border-top: 1px solid var(--archive-line);
}

.reference-details > summary {
  min-height: 2.75rem;
  padding: .85rem .3rem;
  color: var(--archive-ink);
  font-family: var(--utility-face);
  font-size: var(--body-copy-size);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.reference-details > summary::marker {
  color: var(--seal-gold);
}

.reference-details > summary:hover {
  color: var(--archive-evergreen);
}

.reference-details[open] > summary {
  border-bottom: 1px solid var(--archive-line-soft);
}

.reference-details .detail-content {
  padding: 1.25rem .3rem .25rem;
  color: var(--archive-copy);
}

.detail-content > :first-child,
.detail-content header > :first-child {
  margin-top: 0;
}

.responsibility-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.responsibility-comparison h3 {
  margin: 0;
}

.connection-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.connection-map > li {
  position: relative;
  display: grid;
  align-items: center;
  padding: 1.25rem .75rem;
  border-top: .18rem solid var(--seal-gold);
  background: var(--archive-reading-inset);
  text-align: center;
  line-height: 1.5;
}

.connection-map strong {
  color: var(--archive-highlight-ink);
  font-family: var(--utility-face);
  font-size: var(--body-copy-size);
  font-weight: 600;
}

.connection-map > li:not(:last-child)::after {
  position: absolute;
  inset-block: 0;
  right: -1.75rem;
  display: grid;
  width: 1.5rem;
  align-items: center;
  color: var(--seal-gold);
  content: "\2192";
  font-size: 1.5rem;
}

.architecture-volume .connection-note {
  max-width: 100%;
  margin: 1rem 0;
}

.contract-catalog .reference-details {
  margin-top: 0;
}

.contract-catalog .reference-details:last-child {
  border-bottom: 1px solid var(--archive-line);
}

.architecture-notice {
  padding: 1rem 1.25rem;
  border-left: .2rem solid var(--archive-rule-accent);
  background: var(--archive-reading-inset);
  color: var(--archive-copy);
}

.architecture-notice p {
  margin: 0;
}

.architecture-notice p + p {
  margin-top: .65rem;
}

.architecture-notice strong {
  color: var(--archive-ink);
}

.architecture-volume .trust-ledger {
  border-top: 0;
}

.architecture-volume .trust-ledger dt {
  color: var(--archive-ink);
  font-family: var(--utility-face);
  font-size: var(--body-copy-size);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.trust-ledger dd ul {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding-left: 1.1rem;
}

.trust-ledger li::marker {
  color: var(--seal-gold);
}

.publication-summary {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

.publication-summary dt {
  color: var(--archive-highlight-ink);
  font-weight: 600;
}

.publication-summary dd {
  margin: .2rem 0 0;
  color: var(--archive-copy);
}

.case-file {
  min-width: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--archive-line);
}

.case-file h3 {
  margin: .55rem 0 0;
}

.case-file > p,
.case-use p {
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
}

.definition-ledger,
.mapping-list {
  margin: 2rem 0 0;
  border-top: 1px solid var(--archive-line);
}

.definition-ledger > div,
.mapping-list > div {
  display: grid;
  grid-template-columns: minmax(8rem, .34fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem .4rem;
  border-bottom: 1px solid var(--archive-line);
}

.definition-ledger dt,
.definition-ledger dd,
.mapping-list dt,
.mapping-list dd {
  margin: 0;
}

.definition-ledger dt,
.mapping-list dt {
  color: var(--archive-label-ink);
  font-family: var(--utility-face);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.definition-ledger dd,
.mapping-list dd {
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
}

.case-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
  align-items: start;
  padding-bottom: 0;
}

.case-heading .record-number {
  overflow-wrap: normal;
  white-space: nowrap;
}

.case-heading h3 {
  max-width: none;
  margin-top: .15rem;
}

.case-heading > p:last-child {
  max-width: 66ch;
  margin: .1rem 0 0;
  color: var(--archive-copy);
}

.case-use {
  margin-top: 1rem;
}

.case-use h4 {
  margin: .9rem 0 .25rem;
}


.case-details {
  margin-top: .3rem;
  border-top: 0;
}

.case-details > summary {
  padding: .45rem 0;
}

.case-details .detail-content {
  padding: 1rem 0 .25rem;
}

.case-details .case-use {
  margin-top: 0;
}

.case-details .case-use h4,
.case-details .case-boundary h4 {
  margin: 0 0 .5rem;
}

.case-details .case-use ul {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding-left: 1.2rem;
}

.case-details .case-boundary {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--archive-line-soft);
  background: transparent;
}

.case-details .case-boundary p {
  margin: 0;
}

.capability-matrix {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  background: var(--archive-paper);
  font-size: var(--body-copy-size);
}

.capability-matrix th,
.capability-matrix td {
  padding: .8rem;
  border: 1px solid var(--archive-line);
  text-align: left;
  vertical-align: top;
}

.capability-matrix th {
  background: var(--archive-frame);
  color: var(--archive-on-dark);
  font-family: var(--utility-face);
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.capability-matrix td {
  color: var(--archive-copy);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.code-figure {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--seal-gold);
  background: var(--archive-chrome);
  box-shadow: .45rem .45rem 0 var(--archive-line-soft);
}

.code-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  padding: .72rem .9rem;
  border-bottom: 1px solid rgba(240, 230, 222, .22);
  color: rgba(240, 230, 222, .72);
  font-family: var(--utility-face);
  font-size: .875rem;
}

.code-figure figcaption strong {
  color: var(--archive-on-dark);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.code-figure pre {
  max-height: 32rem;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  color: var(--archive-on-dark);
  font-size: 1rem;
  line-height: 1.6;
  tab-size: 2;
}

.code-figure code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.license-register {
  gap: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
}

.license-entry {
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  padding: 1.4rem 0;
  border: 0;
  border-bottom: 1px solid var(--archive-line);
  background: transparent;
}

.license-entry:first-child {
  padding-top: 0;
}

.license-entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.license-entry > :first-child {
  color: var(--archive-label-ink);
  font-family: var(--utility-face);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.license-entry h3 {
  margin: 0;
}

.license-entry p {
  max-width: var(--site-reading-width);
  margin: 0;
  color: var(--archive-copy);
  font-size: var(--body-copy-size);
}

.license-entry .plaque {
  width: fit-content;
  min-width: min(12.5rem, 100%);
  max-width: 100%;
  justify-self: start;
  margin-top: .35rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
}

.contact-panel {
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-panel h3 {
  margin: 0;
}

.contact-panel p {
  max-width: 48rem;
  color: var(--archive-copy);
}

.contact-panel .folio-label {
  color: var(--archive-label-ink);
}

.archive-footer {
  position: relative;
  padding-block: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  border-top: .22rem solid var(--archive-chrome-inlay);
  background-color: var(--archive-chrome);
  background-image: var(--archive-chrome-surface);
  color: var(--archive-chrome-ink);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: stretch;
}

.footer-inner > div {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  align-items: baseline;
}

.footer-inner strong {
  color: var(--archive-chrome-ink);
  font-family: var(--display-face);
  font-size: 1.3rem;
  font-weight: 600;
}

.footer-inner p {
  margin: 0;
  color: var(--archive-chrome-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.footer-inner nav {
  width: 100%;
  display: flex;
  gap: .15rem 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.footer-inner nav::after {
  /* Reserve only the last row's corner for the floating Back to top control. */
  content: "";
  flex: 1 0 9rem;
  min-height: 2.75rem;
}

.footer-inner a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--archive-chrome-ink);
  font-family: var(--utility-face);
  font-size: .9375rem;
  font-weight: 600;
}

@media (max-width: 68rem) {
  .home-hero h1,
  .section-intro h2,
  .explorer-intro h2 {
    scroll-margin-top: 5rem;
  }

  :root {
    --section-title-size: 1.75rem;
  }

  [id] {
    scroll-margin-top: 1.5rem;
  }

  .archive-masthead {
    position: static;
  }
}

@media (max-width: 64rem) {
  .volume-layout {
    grid-template-columns: 1fr;
  }

  .volume-index {
    position: static;
    padding: .8rem 1rem;
  }

  .volume-index ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 45rem) {
  .section-pagination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }

  .section-progress {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }

  .section-pagination a {
    grid-row: 2;
  }

  .section-pagination .section-next {
    grid-column: 2;
  }

  .primary-nav {
    --bookmark-height: .85rem;
    --bookmark-top: -.25rem;
    width: min(100%, 32rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .primary-nav a {
    flex: 0 1 calc((100% - clamp(.25rem, 1vw, .75rem)) / 2);
    flex-direction: row;
    gap: .45rem;
    min-height: 3rem;
    padding: .5rem .35rem;
  }

  .nav-volume-prefix {
    display: none;
  }

  .nav-title {
    font-size: var(--body-copy-size);
  }
}

@media (max-width: 50rem) {
  .principle-ledger,
  .ownership-overview,
  .book-spread,
  .profile-spread,
  .responsibility-comparison,
  .case-register,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .principle-ledger article,
  .folio,
  .profile-leaf {
    border-right: 0;
    border-bottom: var(--spread-rule-width, 1px) solid var(--archive-line);
  }

  .principle-ledger article:last-child,
  .folio:last-child,
  .profile-leaf:last-child {
    border-bottom: 0;
  }

  .institution-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .volume-index ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 35rem) {
  .connection-map {
    grid-template-columns: 1fr;
  }

  .connection-map > li:not(:last-child)::after {
    inset-block: auto;
    top: 100%;
    right: calc(50% - .75rem);
    height: 2rem;
    content: "\2193";
  }

  :root {
    --section-title-size: 1.5rem;
  }

  .site-shell,
  .masthead-inner {
    width: min(calc(100% - 1.2rem), var(--site-max-width));
  }

  .brand-copy small {
    display: none;
  }

  .site-brand {
    gap: .5rem;
  }

  .site-seal {
    width: 3rem;
    height: 3rem;
  }

  .brand-copy strong {
    font-size: 1.35rem;
  }

  .masthead-actions {
    flex-direction: column;
    gap: .5rem;
    align-items: stretch;
  }

  .theme-toggle-suffix {
    display: none;
  }

  .knowledge-hall {
    outline-offset: .2rem;
  }

  .finding-aid-list a {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
  }

  .finding-aid-list .record-number {
    grid-column: 1 / -1;
  }

  .institution-index,
  [data-section-browser] .volume-index ol {
    grid-template-columns: 1fr;
  }

  .chapter-heading {
    column-gap: .7rem;
  }

  .definition-ledger > div,
  .mapping-list > div {
    grid-template-columns: 1fr;
  }

  .dependency-register > li,
  .step-register > li,
  .request-list > li {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .plaque-row {
    align-items: stretch;
    flex-direction: column;
  }

  .plaque {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  h1 {
    color: CanvasText;
  }

  .archive-masthead,
  .archive-footer {
    --archive-chrome: Canvas;
    --archive-chrome-surface: none;
    --archive-chrome-inlay: CanvasText;
    --archive-chrome-ink: CanvasText;
    --archive-chrome-muted: CanvasText;
    --archive-brass: CanvasText;
    --archive-bronze: LinkText;
  }

  .profile-symbol {
    fill: Canvas;
    stroke: CanvasText;
  }

  .profile-symbol-detail {
    stroke: CanvasText;
  }

  .architecture-volume {
    --archive-reading-inset: Canvas;
  }

  :root {
    --archive-canvas: Canvas;
    --archive-paper: Canvas;
    --archive-paper-strong: Canvas;
    --archive-ink: CanvasText;
    --archive-copy: CanvasText;
    --archive-opening-copy: CanvasText;
    --archive-muted: CanvasText;
    --archive-line: CanvasText;
    --archive-line-soft: CanvasText;
    --archive-frame: Canvas;
    --archive-chrome: Canvas;
    --archive-bronze: LinkText;
    --archive-brass: CanvasText;
    --archive-verdigris: LinkText;
    --archive-evergreen: LinkText;
    --archive-action: ButtonFace;
    --archive-action-ink: ButtonText;
    --archive-action-hover: ButtonFace;
    --archive-rule-accent: CanvasText;
    --archive-on-dark: CanvasText;
  }

  body,
  .archive-masthead,
  .section-intro,
  .explorer-intro,
  .chapter-heading,
  .catalog-slip,
  .volume-header,
  .ownership-overview article,
  .connection-map > li,
  .architecture-notice,
  .principle-ledger article,
  .finding-aid-list a,
  .institution-index li,
  .volume-index,
  .folio,
  .profile-leaf,
  .case-file,
  .marginalia,
  .case-boundary,
  .boundary-box,
  .code-figure,
  .license-entry,
  .contact-panel,
  .back-to-top,
  .archive-footer {
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  .knowledge-hall::after,
  .archive-masthead::after,
  .archive-footer::before,
  .catalog-slip::before,
  .institution-index li::before {
    display: none;
  }

  .primary-nav a[aria-current="page"] {
    border-color: CanvasText;
    border-bottom: .2rem solid CanvasText;
  }

  .plaque,
  .site-seal {
    forced-color-adjust: auto;
  }
}

@media (forced-colors: active), print {
  :root,
  :root[data-color-scheme],
  :root:not([data-color-scheme]) {
    --archive-gold-ink: CanvasText;
    --archive-label-ink: CanvasText;
    --archive-highlight-ink: CanvasText;
    --seal-gold: CanvasText;
  }

  .profile-spread,
  .profile-spread > .profile-leaf {
    border-color: currentColor;
  }

  .volume-header {
    border: 1px solid currentColor;
    border-image: none;
  }

  .volume-header .accession-line {
    background: none;
    color: inherit;
    border-color: currentColor;
  }

  .volume-index ol a::before,
  .chapter-heading > span {
    background: none;
    color: inherit;
  }

  :is(.volume-header, .threshold-section, .finding-aid-section, .institution-section, .collection-explorer, .chapter) {
    border-left-width: 1px;
    border-left-color: currentColor;
  }

  :is(.threshold-section, .finding-aid-section, .institution-section, .collection-explorer, .chapter)::before,
  .primary-nav a[aria-current="page"]::before,
  .primary-nav a[aria-current="page"]::after {
    display: none;
  }
}

@media print {
  [data-section-browser] [data-reading-section][hidden] {
    display: block;
  }

  [data-section-browser][data-section-view="single"] [data-reading-section] + [data-reading-section] {
    margin-top: 2rem;
  }

  .profile-symbol {
    fill: none;
    stroke: rgb(0, 0, 0);
  }

  .profile-symbol-detail {
    stroke: rgb(0, 0, 0);
  }

  .collection-explorer [hidden] {
    display: block;
  }

  .collection-explorer .purpose-tabs,
  .collection-explorer .record-tabs,
  .collection-explorer .sample-next {
    display: none;
  }

  .collection-explorer .reading-desk {
    display: block;
  }

  .collection-explorer .sample-sheet {
    min-height: 0;
    margin-top: 1rem;
    break-inside: avoid;
  }

  .architecture-volume {
    --archive-reading-inset: rgb(255, 255, 255);
  }

  @page {
    margin: .7in;
  }

  :root,
  :root[data-color-scheme="dark"] {
    color-scheme: light;
    --archive-gold-ink: rgb(0, 0, 0);
    --archive-label-ink: rgb(0, 0, 0);
    --archive-highlight-ink: rgb(0, 0, 0);
    --seal-gold: rgb(0, 0, 0);
    --archive-canvas: rgb(255, 255, 255);
    --archive-paper: rgb(255, 255, 255);
    --archive-paper-strong: rgb(255, 255, 255);
    --archive-heading-surface: rgb(255, 255, 255);
    --archive-ink: rgb(0, 0, 0);
    --archive-title: rgb(0, 0, 0);
    --archive-copy: rgb(0, 0, 0);
    --archive-muted: rgb(45, 45, 45);
    --archive-line: rgb(95, 95, 95);
    --archive-line-soft: rgba(0, 0, 0, .14);
    --archive-frame: rgb(0, 0, 0);
    --archive-chrome: rgb(0, 0, 0);
    --archive-bronze: rgb(30, 30, 30);
    --archive-brass: rgb(30, 30, 30);
    --archive-verdigris: rgb(20, 20, 20);
    --archive-evergreen: rgb(20, 20, 20);
    --archive-action: rgb(20, 20, 20);
    --archive-rule-accent: rgb(20, 20, 20);
    --archive-on-dark: rgb(255, 255, 255);
  }

  .archive-masthead,
  .archive-footer,
  .volume-index,
  .section-pagination,
  .page-action,
  .plaque-row,
  .margin-link,
  .back-to-top,
  .skip-link {
    display: none;
  }

  body {
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    font-size: 10pt;
  }

  h1 {
    color: rgb(0, 0, 0);
  }

  .site-shell {
    width: 100%;
  }

  .knowledge-hall,
  .book-spread,
  .profile-spread,
  .catalog-slip,
  .code-figure {
    box-shadow: none;
  }

  .hero-register,
  .volume-layout,
  .principle-ledger,
  .book-spread,
  .profile-spread,
  .responsibility-comparison,
  .case-register,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .chapter,
  .catalog-slip,
  .principle-ledger article,
  .finding-aid-list li,
  .folio,
  .profile-leaf,
  .case-file,
  .license-entry,
  .contact-panel,
  .code-figure {
    break-inside: avoid;
  }

  .chapter + .chapter {
    break-before: page;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-family: var(--utility-face);
    font-size: .75em;
    font-weight: 400;
  }

  .knowledge-hall a[href]::after,
  .site-brand[href]::after {
    content: "";
  }
}
