:root {
  color-scheme: light;
  --ink: #23201d;
  --muted: #70685e;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #d8d0c3;
  --accent: #1f6f67;
  --accent-2: #9b432f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.58;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
}
.topbar .shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.95rem; }
.hero {
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 {
  line-height: 1.16;
  letter-spacing: 0;
}
h1 {
  max-width: 860px;
  margin: 10px 0 16px;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  font-weight: 700;
}
.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 34px 0 56px;
}
.card {
  min-height: 156px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.card h2, .card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}
.directory-table-wrap {
  padding: 0 0 56px;
  overflow-x: auto;
}
.directory-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.directory-table caption {
  margin-bottom: 12px;
  color: var(--muted);
  text-align: left;
  font-size: 0.92rem;
}
.directory-table th,
.directory-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.directory-table th {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.directory-table tr:last-child td { border-bottom: 0; }
.directory-table a { font-weight: 700; }
.directory-table .health-badge { margin-top: 0; }
.sort-control {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.sort-control::after {
  content: "↕";
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.85em;
}
.sort-control[data-sort-direction="ascending"]::after { content: "↑"; }
.sort-control[data-sort-direction="descending"]::after { content: "↓"; }
.directory-muted { color: var(--muted); }
.health-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f0e8;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.health-clear {
  border-color: #9ab8a8;
  background: #eef6f0;
  color: #285a3d;
}
.health-watch {
  border-color: #d7bd76;
  background: #fff8dd;
  color: #765a14;
}
.health-needs-review {
  border-color: #c98976;
  background: #fff0eb;
  color: #8a3724;
}
.health-list {
  margin: 6px 0 0;
  padding-left: 18px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding: 28px 0 12px;
}
.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.queue-list {
  display: grid;
  gap: 14px;
  padding: 18px 0 56px;
}
.queue-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.queue-item h2 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}
.queue-kind {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.queue-item p {
  margin: 0.25rem 0;
  color: var(--muted);
}
.queue-item code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  background: #eee8dd;
  padding: 0.08em 0.28em;
  border-radius: 4px;
}
.timeline-list {
  display: grid;
  gap: 0;
  padding: 30px 0 62px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}
.timeline-date {
  color: var(--accent-2);
  font-weight: 700;
}
.timeline-item h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}
.timeline-item p {
  margin: 0;
}
.timeline-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.timeline-meta code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  background: #eee8dd;
  padding: 0.08em 0.28em;
  border-radius: 4px;
}
.map-panel {
  margin: 28px 0 36px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.map-plot {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4ef;
}
.map-grid {
  stroke: rgba(35, 32, 29, 0.14);
  stroke-width: 0.12;
}
.map-marker circle {
  fill: var(--accent-2);
  stroke: #fff;
  stroke-width: 0.55;
}
.map-marker--organization circle {
  fill: var(--accent);
}
.map-marker--place circle {
  fill: var(--accent-2);
}
.map-marker--topic circle {
  fill: #6d5a8e;
}
.map-marker--civic-decision circle,
.map-marker--source-document circle {
  fill: #6f5d22;
}
.map-marker text {
  fill: #fff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 2.55px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}
.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.map-legend-swatch {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line);
}
.map-legend-swatch--organization {
  background: var(--accent);
}
.map-legend-swatch--place {
  background: var(--accent-2);
}
.map-legend-swatch--topic {
  background: #6d5a8e;
}
.map-legend-swatch--civic-decision,
.map-legend-swatch--source-document {
  background: #6f5d22;
}
.map-marker.is-hidden,
.directory-table tbody tr.is-hidden {
  display: none;
}
.map-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.change-paths {
  margin: 14px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.change-paths code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  background: #eee8dd;
  padding: 0.08em 0.28em;
  border-radius: 4px;
}
.search-panel {
  padding: 30px 0 56px;
}
.search-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.search-controls label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}
.search-controls input,
.search-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}
.search-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.search-result {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.search-result h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.search-result p {
  margin: 0;
  color: var(--muted);
}
.notice-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: var(--panel);
}
.notice strong {
  display: block;
  margin-bottom: 4px;
}
.notice p {
  margin: 0;
  color: var(--muted);
}
.notice ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.page {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: 48px;
  padding: 40px 0 64px;
  align-items: start;
}
main.article {
  min-width: 0;
}
.article h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
}
.article h2 {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 1.38rem;
}
.article h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.article p, .article li { font-size: 1.02rem; }
.article code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  background: #eee8dd;
  padding: 0.08em 0.28em;
  border-radius: 4px;
}
.image-gallery {
  display: grid;
  gap: 18px;
  margin: 0 0 30px;
}
.image-panel {
  margin: 0;
}
.image-panel img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.image-panel figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.94rem;
}
.image-caption {
  display: block;
  color: var(--ink);
}
.image-rights {
  margin-top: 4px;
}
.image-rights summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}
.image-rights-list {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 4px 12px;
  margin: 8px 0 0;
}
.image-rights-list dt {
  color: var(--ink);
  font-weight: 700;
}
.image-rights-list dd {
  margin: 0;
}
.source-note-panel {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.source-note-panel summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}
.source-note-list {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}
.source-note-list li {
  margin-top: 0.95rem;
}
.source-note-title {
  font-weight: 700;
}
.source-note-meta {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.source-note-meta code {
  font-size: 0.88em;
}
.disclosure {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.disclosure summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 700;
}
.disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}
.disclosure-body {
  padding: 0 16px 16px;
}
.disclosure-body h3 {
  margin-top: 1rem;
}
.sidebar {
  position: sticky;
  top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
}
.sidebar strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}
.sidebar-summary {
  margin: 0 0 12px;
  color: var(--muted);
}
.sidebar dl { margin: 0; }
.sidebar dt { margin-top: 12px; color: var(--ink); font-weight: 700; }
.sidebar dd { margin: 2px 0 0; }
.sidebar ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.sidebar li { margin-top: 3px; }
.toc-link-level-3 {
  margin-left: 12px;
}
.toc-link-level-4 {
  margin-left: 24px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 800px) {
  .topbar .shell { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .search-controls { grid-template-columns: 1fr; }
  .directory-table th,
  .directory-table td { padding: 10px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .page { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
