:root {
  --ink: #1d1d1b;
  --muted: #66635f;
  --faint: #edeae5;
  --paper: #fff;
  --wash: #f7f5f1;
  --accent: #6c1727;
  --accent-dark: #4b101c;
  --graph-concept: #6c1727;
  --graph-instrument: #17665e;
  --graph-technology: #6a732f;
  --graph-case: #a05c1c;
  --graph-actor: #674f91;
  --graph-institution: #2f648d;
  --graph-legal-authority: #96444c;
  --measure: 46rem;
  --page: 90rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
}

p,
li {
  max-width: 75ch;
}

button,
input,
select,
textarea {
  font: inherit;
}

.visually-hidden {
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #d8d4ce;
  background: rgb(255 255 255 / 96%);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--page));
  min-height: 4.25rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto minmax(15rem, 22rem);
  align-items: center;
  gap: 2rem;
}

.wordmark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.site-nav a {
  min-height: 2.75rem;
  padding: 0.65rem 0;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
}

.site-nav .network-nav-tab {
  min-height: 2.35rem;
  margin: 0.2rem 0;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.site-nav .network-nav-tab:hover {
  background: var(--accent);
  color: white;
}

.site-search,
.home-search {
  position: relative;
}

.site-search input,
.home-search input {
  width: 100%;
  border: 1px solid #aaa49c;
  border-radius: 0;
  background: white;
  color: var(--ink);
}

.site-search input {
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
}

.search-popover,
.search-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(34rem, calc(100vw - 2rem));
  max-height: min(65vh, 38rem);
  overflow-y: auto;
  border: 1px solid #b9b3aa;
  background: white;
  box-shadow: 0 14px 35px rgb(25 22 19 / 14%);
}

.search-panel {
  right: auto;
  left: 0;
  width: 100%;
}

.search-result {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--faint);
  color: var(--ink);
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--wash);
  color: var(--ink);
}

.search-result strong,
.search-result span,
.search-result small {
  display: block;
}

.search-result strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.search-result span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-result small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.search-message {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-wrap {
  width: min(calc(100% - 2rem), var(--page));
  margin-right: auto;
  margin-left: auto;
}

.home-intro {
  padding: clamp(5rem, 11vw, 10rem) 1rem clamp(4.5rem, 9vw, 8rem);
  border-bottom: 1px solid #d8d4ce;
  background: var(--wash);
}

.home-intro-inner {
  width: min(100%, 70rem);
  margin: 0 auto;
}

.eyebrow,
.panel-kicker,
.entry-type {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-intro h1 {
  max-width: 16ch;
  margin: 0;
}

.home-subtitle {
  max-width: 52rem;
  margin: 1.15rem 0 0;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.3;
}

.dek {
  max-width: 52rem;
  margin: 1.35rem 0 2.5rem;
  color: #3d3b38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.home-search {
  max-width: 45rem;
}

.home-search label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-search input {
  padding: 1rem 1.1rem;
  font-size: 1rem;
}

.collection-status {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.compact-section {
  padding-top: 0;
}

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

.section-heading h2 {
  margin: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #cfcac2;
  border-left: 1px solid #cfcac2;
}

.category-card {
  min-height: 9rem;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #cfcac2;
  border-bottom: 1px solid #cfcac2;
  color: var(--ink);
  text-decoration: none;
}

.category-card:hover {
  background: var(--wash);
  color: var(--ink);
}

.category-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.category-card strong {
  color: var(--accent);
  font-size: 0.86rem;
}

.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.alphabet a {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid #bdb7af;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  text-decoration: none;
}

.alphabet a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.editorial-note {
  margin-bottom: 6rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-top: 1px solid #cfcac2;
  border-bottom: 1px solid #cfcac2;
}

.editorial-note h2,
.editorial-note p {
  margin-top: 0;
}

.updates-home {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  border-top: 1px solid #2e2c29;
  background: #1c1b19;
  color: #f0ede7;
}

.updates-home h2,
.updates-home h3 {
  color: white;
}

.updates-home .panel-kicker {
  color: #d9a9b2;
}

.updates-home-header {
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.updates-home-header h2,
.updates-home-header p {
  margin-top: 0;
}

.updates-home-header h2 {
  margin-bottom: 0.65rem;
}

.updates-home-header p:last-child {
  margin-bottom: 0;
  color: #c7c2ba;
}

.updates-home-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.button-link {
  padding: 0.75rem 1rem;
  border: 1px solid white;
  background: white;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  border-color: #d9a9b2;
  background: #d9a9b2;
  color: var(--ink);
}

.text-link {
  color: #f0ede7;
  font-size: 0.78rem;
}

.text-link:hover {
  color: white;
}

.updates-home-grid {
  padding-top: 2rem;
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.latest-release-card {
  min-height: 21rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid #8a3948;
  background: var(--accent);
}

.latest-release-card .update-date {
  margin: 0;
  color: #e8c8ce;
  font-size: 0.76rem;
}

.latest-release-card .update-version {
  margin: 0.45rem 0 2rem;
  color: white;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.latest-release-card h3 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.latest-release-card > p:not(.update-date, .update-version) {
  margin: 1.1rem 0 2rem;
  color: #f1dfe2;
}

.latest-release-card .update-type {
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recent-entry-heading {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.recent-entry-heading h3,
.recent-entry-heading p {
  margin: 0;
}

.recent-entry-heading h3 {
  font-size: 1.45rem;
}

.recent-entry-heading p {
  color: #a9a49d;
  font-size: 0.72rem;
}

.change-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.change-item {
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.25rem;
  border-top: 1px solid #d9d5cf;
}

.change-kind {
  padding-top: 0.2rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.change-item strong,
.change-item a {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
}

.change-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.updates-home .change-item {
  border-color: rgb(255 255 255 / 16%);
}

.updates-home .change-kind {
  color: #d9a9b2;
}

.updates-home .change-item strong,
.updates-home .change-item a {
  color: white;
}

.updates-home .change-item p {
  color: #aaa59d;
}

.updates-page-wrap {
  padding-bottom: 7rem;
}

.updates-page-header {
  padding: clamp(4rem, 8vw, 7rem) 0 4rem;
}

.updates-page-header h1 {
  max-width: 15ch;
  margin: 0;
}

.updates-page-header > p:not(.eyebrow) {
  max-width: 56rem;
  margin: 1.5rem 0 0;
  color: #45423e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.updates-status-grid {
  max-width: 62rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #cfcac2;
  border-left: 1px solid #cfcac2;
}

.updates-status-grid div {
  min-height: 7rem;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #cfcac2;
  border-bottom: 1px solid #cfcac2;
}

.updates-status-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.updates-status-grid strong {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.rss-link {
  margin-top: 1.3rem;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
}

.updates-timeline {
  border-bottom: 1px solid #cfcac2;
}

.update-record {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  border-top: 1px solid #cfcac2;
  scroll-margin-top: 6rem;
}

.update-record-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.update-record-meta time {
  color: var(--accent);
  font-weight: 700;
}

.update-record-body h2 {
  margin: 0;
}

.update-record-summary {
  margin: 1rem 0 0;
  color: #45423e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.update-record-counts {
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.update-record .change-list {
  margin-top: 1.5rem;
}

.breadcrumb {
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-bottom: 1px solid var(--faint);
  color: var(--muted);
  font-size: 0.76rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(16rem, 20rem);
  justify-content: space-between;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(3.5rem, 7vw, 7rem) 0 7rem;
}

.publication-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(16rem, 20rem);
  justify-content: space-between;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(3.5rem, 7vw, 7rem) 0 7rem;
}

.publication-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #cfcac2;
}

.publication-header h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
}

.publication-copy > p:first-child {
  color: #2a2927;
  font-size: 1.2rem;
  line-height: 1.7;
}

.publication-copy a[href] {
  overflow-wrap: anywhere;
}

.publication-sidebar [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.entry-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #cfcac2;
}

.entry-header h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
}

.entry-meta {
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.entry-meta span + span {
  padding-left: 1.2rem;
  border-left: 1px solid #bdb7af;
}

.context-notice {
  margin: 0 0 2rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--muted);
  background: var(--wash);
  color: var(--muted);
}

.context-notice p {
  margin: 0;
}

.entry-copy {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.75;
}

.entry-copy > p:first-child {
  color: #2a2927;
  font-size: 1.2rem;
  line-height: 1.7;
}

.entry-copy h2 {
  margin: 3.5rem 0 1.2rem;
  padding-top: 0.5rem;
  font-size: 1.75rem;
}

.entry-copy h3 {
  margin-top: 2.5rem;
}

.entry-copy li + li {
  margin-top: 0.55rem;
}

.entry-copy blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--accent);
  color: #4b4844;
}

.entry-copy code {
  padding: 0.08rem 0.25rem;
  background: var(--wash);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
}

.entry-copy a,
.entry-sidebar a,
.citation-text {
  overflow-wrap: anywhere;
}

.unresolved-link {
  border-bottom: 1px dotted #8b867f;
}

.entry-sidebar {
  position: sticky;
  top: 6.3rem;
  align-self: start;
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
  padding-left: 1.4rem;
  border-left: 1px solid #cfcac2;
  scrollbar-width: thin;
}

.entry-sidebar section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--faint);
}

.entry-sidebar h2 {
  margin: 0 0 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-sidebar ol,
.entry-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-sidebar li + li {
  margin-top: 0.55rem;
}

.entry-sidebar a,
.entry-sidebar li {
  color: #4e4b47;
  font-size: 0.79rem;
  line-height: 1.35;
}

.citation-panel {
  margin-top: 4.5rem;
  padding: 2rem;
  border: 1px solid #bdb7af;
  background: var(--wash);
}

.citation-panel h2 {
  margin: 0;
  font-size: 1.65rem;
}

.citation-text {
  margin: 1.2rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.citation-panel button {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 0.78rem;
}

.citation-panel button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.citation-action {
  min-height: 2.75rem;
  margin-left: 0.7rem;
  padding: 0.55rem 0.8rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.78rem;
  text-decoration: none;
}

.citation-action:hover {
  border-color: var(--accent);
  background: white;
  color: var(--accent);
}

.citation-credit {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.contribution-page-wrap {
  padding-bottom: 7rem;
}

.contribution-header {
  max-width: 58rem;
  padding: clamp(3.5rem, 7vw, 7rem) 0 4rem;
  border-bottom: 1px solid #cfcac2;
}

.contribution-header h1 {
  margin: 0;
}

.contribution-header > p:last-child {
  max-width: 50rem;
  margin-top: 1.5rem;
  color: #3d3b38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.contribution-layout {
  padding-top: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 50rem) minmax(16rem, 20rem);
  justify-content: space-between;
  gap: clamp(3rem, 8vw, 9rem);
}

.contribution-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 2.5rem 0;
  border: 0;
  border-top: 1px solid #cfcac2;
}

.contribution-form fieldset:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.contribution-form legend {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 0;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

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

.choice-card {
  min-height: 6.5rem;
  padding: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #aaa49c;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border: 2px solid var(--accent);
  padding: calc(1.1rem - 1px);
  background: var(--wash);
}

.choice-card input,
.check-row input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card small {
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.4;
}

.form-field + .form-field,
.form-grid + .form-field,
.form-field + .form-grid {
  margin-top: 1.4rem;
}

.form-field label {
  margin-bottom: 0.4rem;
  display: block;
  color: #262421;
  font-size: 0.84rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #8f8981;
  border-radius: 0;
  background: white;
  color: var(--ink);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border: 2px solid #a11717;
}

.field-help,
.privacy-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.optional {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.check-row {
  min-height: 2.75rem;
  padding: 0.55rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}

.check-row + .check-row {
  margin-top: 0.35rem;
}

.privacy-note {
  max-width: 64ch;
  margin-top: 1.2rem;
}

.form-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.form-actions button {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.primary-button:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.secondary-button {
  border: 1px solid var(--ink);
  background: white;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.form-status {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: var(--wash);
}

.form-status.is-error {
  border-color: #a11717;
  background: #fff3f1;
}

.form-status.is-success {
  border-color: #206b3b;
  background: #f0f8f2;
}

.contribution-aside {
  position: sticky;
  top: 6.3rem;
  align-self: start;
  padding-left: 1.4rem;
  border-left: 1px solid #cfcac2;
}

.contribution-aside h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.contribution-aside ol {
  padding-left: 1.2rem;
}

.contribution-aside li,
.contribution-aside p {
  color: #4e4b47;
  font-size: 0.82rem;
  line-height: 1.55;
}

.contribution-aside li + li {
  margin-top: 0.9rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.listing-page {
  padding-bottom: 6rem;
}

.listing-header {
  padding: clamp(3.5rem, 7vw, 7rem) 0 4rem;
  border-bottom: 1px solid #cfcac2;
}

.listing-header h1 {
  margin: 0;
}

.listing-header p:last-child {
  color: var(--muted);
}

.letter-section {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid #cfcac2;
  scroll-margin-top: 6rem;
}

.letter-section h2 {
  margin: 0;
  color: var(--accent);
  font-size: 2.7rem;
}

.letter-section ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 2rem;
  list-style: none;
}

.letter-section li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dotted #d3cec6;
}

.letter-section li a {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  text-decoration: none;
}

.letter-section li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.letter-section li span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.network-preview {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.network-preview-heading {
  margin-bottom: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 34rem);
  align-items: end;
  gap: 3rem;
}

.network-preview-heading h2,
.network-preview-heading p {
  margin-top: 0;
}

.network-preview-heading > p {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.network-preview-stage,
.network-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid #c6c0b7;
  background:
    radial-gradient(circle at 50% 50%, rgb(108 23 39 / 5%), transparent 48%),
    var(--wash);
}

.network-preview-stage {
  height: clamp(22rem, 42vw, 34rem);
}

.network-preview-stage canvas,
.network-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  touch-action: none;
  transition: opacity 180ms ease;
}

.network-preview-stage canvas.is-ready,
.network-stage canvas.is-ready {
  opacity: 1;
}

.network-loading {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.network-loading[hidden] {
  display: none;
}

.network-preview-action,
.network-selection-link {
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0.55rem 0.85rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.8rem;
  text-decoration: none;
}

.network-preview-action:hover,
.network-selection-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.network-page-wrap {
  padding-bottom: 6rem;
}

.network-page-header {
  max-width: 62rem;
  padding: clamp(3.5rem, 7vw, 6rem) 0 3rem;
}

.network-page-header h1 {
  margin: 0;
}

.network-page-header > p:last-child {
  max-width: 52rem;
  color: #3d3b38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.network-controls {
  margin-bottom: 1.4rem;
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: minmax(16rem, 1.5fr) repeat(4, minmax(9rem, 1fr));
  gap: 1rem;
  border-top: 1px solid #cfcac2;
  border-bottom: 1px solid #cfcac2;
}

.network-control label,
.network-category-filter legend {
  margin-bottom: 0.35rem;
  display: block;
  color: #34312e;
  font-size: 0.75rem;
  font-weight: 700;
}

.network-control input,
.network-control select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #918b83;
  border-radius: 0;
  background: white;
  color: var(--ink);
  font-size: 0.82rem;
}

.network-control-range {
  grid-column: span 2;
}

.network-control-range input {
  min-height: 2rem;
  padding: 0;
  accent-color: var(--accent);
}

.network-category-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  grid-column: 1 / -2;
  border: 0;
}

.network-category-filter > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.network-category-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  cursor: pointer;
}

.network-category-option input {
  accent-color: var(--accent);
}

.network-category-swatch {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--graph-concept);
}

.network-category-actor { background: var(--graph-actor); }
.network-category-case { background: var(--graph-case); }
.network-category-concept { background: var(--graph-concept); }
.network-category-institution { background: var(--graph-institution); }
.network-category-instrument { background: var(--graph-instrument); }
.network-category-legal-authority { background: var(--graph-legal-authority); }
.network-category-technology { background: var(--graph-technology); }

.network-reset,
.network-stage-tools button {
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
}

.network-reset:hover,
.network-stage-tools button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.network-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem);
  gap: 1.2rem;
}

.network-stage {
  height: clamp(38rem, 58vw, 54rem);
}

.network-stage canvas {
  cursor: grab;
}

.network-stage-tools {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  gap: 0.35rem;
}

.network-stage-tools button {
  min-width: 2.65rem;
  background: rgb(255 255 255 / 92%);
}

.network-count {
  position: absolute;
  right: 0.8rem;
  bottom: 0.7rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: rgb(255 255 255 / 88%);
  color: var(--muted);
  font-size: 0.72rem;
}

.network-selection {
  min-height: 11rem;
  padding: 1.4rem;
  align-self: start;
  border-top: 2px solid var(--accent);
  background: var(--wash);
}

.network-selection h3 {
  margin: 0;
  font-size: 1.45rem;
}

.network-selection-empty,
.network-selection-meta {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.entry-sidebar p {
  margin: 0;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--page));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid #cfcac2;
  color: var(--muted);
  font-size: 0.68rem;
}

.site-footer div {
  display: flex;
  gap: 1rem;
}

.site-footer span + span,
.site-footer .footer-editor,
.site-footer .footer-link {
  padding-left: 1rem;
  border-left: 1px solid #cfcac2;
}

.site-footer .footer-editor,
.site-footer .footer-link {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-editor:hover,
.site-footer .footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 64rem) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1.25rem;
    padding: 0.75rem 0;
  }

  .site-search {
    grid-column: 1 / -1;
  }

  .entry-layout,
  .publication-layout,
  .contribution-layout,
  .network-explorer {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .network-category-filter {
    grid-column: 1 / -1;
  }

  .entry-sidebar {
    position: static;
    max-height: none;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    border: 1px solid #d5d0c8;
  }

  .contribution-aside {
    position: static;
    padding: 1.2rem;
    border: 1px solid #d5d0c8;
  }

  .entry-sidebar section + section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

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

@media (max-width: 42rem) {
  .site-header {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: static;
  }

  .home-intro {
    padding-top: 4.5rem;
  }

  .category-grid,
  .editorial-note,
  .updates-home-header,
  .updates-home-grid,
  .network-preview-heading,
  .network-controls,
  .entry-sidebar,
  .letter-section,
  .letter-section ul,
  .choice-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .updates-home-actions {
    justify-content: flex-start;
  }

  .latest-release-card {
    min-height: 18rem;
  }

  .recent-entry-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .updates-status-grid,
  .update-record {
    grid-template-columns: 1fr;
  }

  .update-record {
    gap: 1.25rem;
  }

  .network-control-range,
  .network-category-filter {
    grid-column: 1;
  }

  .network-preview-stage {
    height: 24rem;
  }

  .network-stage {
    height: 34rem;
  }

  .network-stage-tools {
    top: 0.55rem;
    right: 0.55rem;
  }

  .network-count {
    right: 0.55rem;
    bottom: 0.5rem;
  }

  .category-card {
    min-height: 7rem;
  }

  .editorial-note {
    padding: 2rem 0;
    gap: 1rem;
  }

  .entry-meta,
  .site-footer,
  .site-footer div {
    flex-direction: column;
    gap: 0.35rem;
  }

  .entry-meta span + span,
  .site-footer span + span,
  .site-footer .footer-editor,
  .site-footer .footer-link {
    padding-left: 0;
    border-left: 0;
  }

  .entry-layout,
  .publication-layout,
  .contribution-layout {
    padding-top: 2.5rem;
  }

  .letter-section {
    gap: 1rem;
  }

  .letter-section ul {
    gap: 0.8rem;
  }

  .citation-action {
    margin-top: 0.7rem;
    margin-left: 0;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media print {
  @page {
    margin: 20mm;
  }

  body {
    color: #000;
    font-size: 10.5pt;
  }

  .site-header,
  .breadcrumb,
  .network-preview,
  .network-controls,
  .network-explorer,
  .entry-sidebar,
  .citation-panel button,
  .citation-action,
  .contribution-form,
  .contribution-aside,
  .site-footer {
    display: none;
  }

  .entry-layout {
    display: block;
    padding: 0;
  }

  .publication-layout {
    display: block;
    padding: 0;
  }

  .entry-header h1 {
    font-size: 30pt;
  }

  .publication-header h1 {
    font-size: 30pt;
  }

  .entry-copy {
    font-size: 10.5pt;
  }

  .entry-copy h2,
  .entry-copy h3 {
    break-after: avoid;
  }

  .entry-copy a {
    color: #000;
    text-decoration: none;
  }

  .entry-copy a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
  }

  .citation-panel {
    break-inside: avoid;
    background: none;
  }
}

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