:root {
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --paper: oklch(98.9% 0.002 250);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(96.4% 0.004 245);
  --ink: oklch(20% 0.014 250);
  --ink-2: color-mix(in oklab, var(--ink) 74%, var(--paper));
  --ink-3: color-mix(in oklab, var(--ink) 50%, var(--paper));
  --rule: color-mix(in oklab, var(--ink) 14%, transparent);
  --rule-strong: color-mix(in oklab, var(--ink) 30%, transparent);
  --accent: oklch(45% 0.13 256);
  --green: oklch(48% 0.12 152);
  --danger: oklch(54% 0.18 31);
  --shadow: 0 22px 70px color-mix(in oklab, var(--ink) 18%, transparent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-sans);
}

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

button,
a,
input,
textarea,
select {
  outline-color: color-mix(in oklab, var(--accent) 70%, white);
}

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

button {
  min-height: 44px;
  cursor: pointer;
}

.wiki-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--rule-strong);
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  backdrop-filter: blur(14px);
}

.wiki-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.wiki-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
}

.wiki-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.wiki-search__field {
  position: relative;
}

.wiki-search__results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  box-shadow: 0 18px 40px rgb(0 0 0 / 12%);
}

.wiki-search__results[hidden] {
  display: none;
}

.wiki-search__result {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.wiki-search__result:last-child {
  border-bottom: 0;
}

.wiki-search__result:hover,
.wiki-search__result:focus-visible {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}

.wiki-search__result strong {
  font-size: 15px;
}

.wiki-search__result small {
  color: var(--ink-3);
  font-size: 12px;
}

.wiki-search__empty {
  padding: 12px;
  color: var(--ink-3);
  font-size: 13px;
}

.related-row--unlinked {
  opacity: 0.72;
  cursor: default;
}

.related-row__pending {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow,
.wiki-search__label,
.wiki-search span,
.page-form label > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.wiki-search input,
.page-form input,
.page-form textarea,
.page-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 11px;
}

.wiki-search input {
  font-size: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wiki-shell {
  display: grid;
  grid-template-columns: minmax(218px, 272px) minmax(0, 1fr) minmax(260px, 344px);
  min-height: calc(100vh - 62px);
}

.wiki-left-rail,
.wiki-right-rail {
  min-width: 0;
  padding: 22px 18px;
  background: var(--paper);
}

.wiki-left-rail {
  border-right: 1px solid var(--rule);
}

.wiki-right-rail {
  border-left: 1px solid var(--rule);
}

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.rail-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rail-count {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.rail-section,
.page-list,
.page-form,
.fact-card {
  display: grid;
  gap: 12px;
}

.rail-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.rail-section:last-child {
  border-bottom: 0;
}

.rail-section--current {
  padding-top: 0;
}

.page-list {
  padding: 16px 0 6px;
}

.page-list button,
.recent-change {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  line-height: 1.2;
}

.page-list button:hover,
.page-list button:focus-visible,
.page-list button.is-active,
.recent-change:hover,
.recent-change:focus-visible {
  border-color: var(--rule-strong);
  background: color-mix(in oklab, var(--accent) 7%, var(--surface));
}

.page-list__title,
.recent-change strong {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.page-list__type {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-list button span:not(.page-list__title):not(.page-list__type),
.recent-change span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.current-article-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.current-article-card__title {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.15;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.current-article-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.42;
}

.current-article-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.current-article-card dl div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  background: var(--paper);
}

.current-article-card dt {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.current-article-card dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.search-home {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(86px, 16vh, 150px) 0 72px;
}

.search-home__logo {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.search-home__mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.search-home__logo span:last-child {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  line-height: 0.98;
}

.search-home__form {
  width: min(640px, 100%);
}

.search-home__field {
  min-width: 0;
}

.search-home__field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: 0 10px 34px color-mix(in oklab, var(--ink) 9%, transparent);
  font-size: 17px;
}

.search-home__field input:focus {
  border-color: var(--accent);
}

.search-home__results {
  display: grid;
  gap: 1px;
  width: min(680px, 100%);
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--rule);
  box-shadow: var(--shadow);
}

.search-home__results[hidden] {
  display: none;
}

.search-result {
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 80px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
  background: color-mix(in oklab, var(--accent) 7%, var(--surface));
}

.search-result__rank {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.search-result img,
.search-result__thumb {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-3);
  object-fit: cover;
  font-family: var(--font-serif);
  font-size: 28px;
}

.search-result__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.search-result__body strong,
.search-result__body small,
.search-result__body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__body strong {
  font-size: 16px;
}

.search-result__body small {
  color: var(--ink-2);
  font-size: 13px;
}

.search-result__body span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.search-result__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
  max-width: 170px;
}

.search-result__tags em {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 11px;
  font-style: normal;
}

.search-home__empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: var(--surface);
}

.search-home__empty strong {
  font-size: 15px;
}

.search-home__empty span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.wiki-main {
  min-width: 0;
  padding: 32px clamp(24px, 5vw, 72px) 80px;
  background: var(--surface);
}

.article-pane {
  max-width: 78ch;
}

.anchor-sentinel {
  display: block;
  height: 0;
  scroll-margin-top: 86px;
}

.article-tabs {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 40px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.article-tabs__group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.article-tabs__group--tools {
  justify-content: flex-end;
}

.article-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.article-tabs a[aria-current="page"],
.article-tabs a.is-current {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.article-pane h1 {
  margin: 8px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.article-summary {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.tag-disclosure {
  margin: 0 0 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.tag-disclosure summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.tag-disclosure summary::-webkit-details-marker {
  display: none;
}

.tag-disclosure summary:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent) 70%, white);
  outline-offset: 3px;
}

.tag-disclosure__label,
.tag-disclosure__count {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-disclosure__strip {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tag-disclosure__strip::-webkit-scrollbar {
  display: none;
}

.tag-disclosure__count::after {
  content: " +";
  color: var(--accent);
}

.tag-disclosure[open] .tag-disclosure__count::after {
  content: " -";
}

.tag-disclosure__panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 12px;
}

.tag-pill,
.tag-option,
.fact-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
}

.tag-option,
a.tag-pill {
  text-decoration: none;
}

.tag-option:hover,
.tag-option:focus-visible,
a.tag-pill:hover,
a.tag-pill:focus-visible,
.fact-card__chips a:hover,
.fact-card__chips a:focus-visible {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 7%, var(--surface));
}

.tag-page__breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tag-page__breadcrumb a {
  color: inherit;
}

.tag-page__results {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.tag-pill--empty,
.tag-option--empty {
  color: var(--ink-3);
}

.lead-media figcaption,
.media-tile figcaption {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.42;
}

.media-tile figcaption span {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
}

.article-body {
  display: grid;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.68;
}

.article-body h2,
.article-body h3 {
  margin: 26px 0 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-sans);
  line-height: 1.18;
  scroll-margin-top: 86px;
}

.article-body h2 {
  font-size: 28px;
}

.article-body h3 {
  font-size: 22px;
}

.article-body p,
.article-body ul {
  margin: 0;
}

.article-body ul {
  padding-left: 24px;
}

.source-snapshot,
.article-section {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
  scroll-margin-top: 86px;
}

.source-snapshot {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  background: color-mix(in oklab, var(--paper) 64%, var(--surface));
  padding: 18px;
  border: 1px solid var(--rule-strong);
}

.source-snapshot h2,
.article-section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.14;
}

.source-snapshot dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.source-snapshot dl div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
  background: var(--surface);
}

.source-snapshot dt {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-snapshot dd {
  margin: 0;
  font-weight: 700;
}

.ledger-section ol {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.ledger-section li {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-section li > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.ledger-section strong {
  font-size: 14px;
}

.ledger-section span,
.ledger-section small {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ledger-section p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.media-tile {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}

.media-tile img,
.media-tile video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--ink);
}

.media-tile--video {
  grid-column: span 2;
}

.media-tile--video video {
  max-height: 440px;
  object-fit: contain;
}

.related-list {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid var(--rule);
}

.related-row {
  display: grid;
  grid-template-columns: 36px 74px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 90px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.related-row:hover,
.related-row:focus-visible {
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}

.related-row__number {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.related-row img,
.related-row__thumb {
  width: 74px;
  height: 58px;
  border: 1px solid var(--rule);
  object-fit: cover;
  background: color-mix(in oklab, var(--accent) 12%, var(--paper));
}

.related-row strong,
.related-row small {
  display: block;
}

.related-row small {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.35;
}

.related-row__arrow {
  color: var(--accent);
  transition: transform 150ms cubic-bezier(.22, 1, .36, 1);
}

.related-row:hover .related-row__arrow,
.related-row:focus-visible .related-row__arrow {
  transform: translate(3px, -3px);
}

.notes-section ol,
.citation-section ol,
.external-section ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.55;
}

.notes-section li,
.citation-section li,
.external-section li {
  padding-left: 4px;
}

.notes-section sup {
  color: var(--accent);
  font-weight: 700;
}

.citation-section cite,
.citation-section small,
.external-section span {
  color: var(--ink-2);
}

.citation-section cite::before,
.citation-section span::before,
.citation-section small::before,
.external-section span::before {
  content: " ";
}

.cite-page-section p {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}

.category-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid var(--rule-strong);
  background: var(--surface-2);
  font-size: 13px;
  scroll-margin-top: 86px;
}

.category-bar strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-bar div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-bar a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--rule);
  background: var(--surface);
  text-decoration: none;
}

.link-preview-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  pointer-events: none;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
}

.link-preview-popover[hidden] {
  display: none;
}

.link-preview-popover[data-has-image="false"] {
  grid-template-columns: minmax(0, 1fr);
}

.link-preview-popover__body {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.link-preview-popover img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  background: var(--surface-2);
  border-left: 1px solid var(--rule);
}

.link-preview-popover strong,
.link-preview-popover span {
  display: block;
}

.link-preview-popover span {
  color: var(--ink-2);
}

.fact-card {
  gap: 0;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.fact-card__lead {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-bottom: 1px solid var(--rule);
}

.fact-card__lead img {
  width: 92px;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  object-fit: cover;
  background: var(--surface-2);
}

.fact-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.08;
}

.fact-card p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
}

.fact-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--rule);
}

.fact-card__grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 64px;
  padding: 10px;
  background: var(--paper);
}

.fact-card dt {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact-card dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fact-card__chips,
.fact-card__schema {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px;
  border-top: 1px solid var(--rule);
}

.fact-card__chips span,
.fact-card__chips a,
.fact-card__schema span,
.fact-card__schema a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  text-decoration: none;
}

.fact-card__schema span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact-card__schema a:hover,
.fact-card__schema a:focus-visible {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 7%, var(--surface));
}

.fact-card__meta {
  padding: 0 12px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.pulse-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}

.pulse-row span {
  color: var(--ink-3);
  font-weight: 700;
}

.pulse-row strong {
  justify-self: end;
}

.contents-list {
  display: grid;
  gap: 3px;
}

.contents-list a {
  min-height: 38px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.25;
}

.contents-list a:hover,
.contents-list a:focus-visible,
.contents-list a.is-active {
  border-left-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 7%, transparent);
}

.contents-list a.is-active {
  color: var(--ink);
  font-weight: 700;
}

.contents-link--level-3 {
  grid-template-columns: 40px minmax(0, 1fr);
  padding-left: 18px;
  font-size: 13px;
}

.contents-list__number {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.contents-list a.is-active .contents-list__number {
  color: var(--accent);
}

.page-form label {
  display: grid;
  gap: 6px;
}

.page-form textarea {
  resize: vertical;
}

.page-form button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
}

.page-form button:hover,
.page-form button:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 13px;
}

.form-status.is-error {
  color: var(--danger);
}

.empty-state {
  display: grid;
  gap: 14px;
  padding: 64px 0;
}

.empty-state h1 {
  margin: 0;
}

.mobile-wiki-bar,
.mobile-panel-scrim {
  display: none;
}

@media (min-width: 1181px) {
  .wiki-left-rail,
  .wiki-right-rail {
    position: sticky;
    top: 62px;
    align-self: start;
    max-height: calc(100vh - 62px);
    overflow: auto;
  }
}

@media (max-width: 1180px) {
  .wiki-shell {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  }

  .wiki-right-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .rail-section {
    border-bottom: 0;
    padding: 0;
  }

  .rail-section--form {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 64px;
  }

  body.has-mobile-panel {
    overflow: hidden;
  }

  .wiki-topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .wiki-search {
    grid-template-columns: 1fr;
  }

  .wiki-shell {
    display: block;
    min-height: auto;
  }

  .wiki-main {
    padding: 22px 16px 88px;
  }

  .article-tabs {
    overflow-x: auto;
    gap: 18px;
    justify-content: flex-start;
  }

  .article-tabs__group {
    flex: 0 0 auto;
  }

  .article-pane h1 {
    font-size: clamp(36px, 12vw, 58px);
  }

  .article-body {
    font-size: 18px;
  }

  .source-snapshot {
    grid-template-columns: 1fr;
    padding: 14px;
  }

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

  .commons-graph-section {
    padding: 14px;
  }

  .commons-graph-workspace {
    min-height: 470px;
    height: 62vh;
  }

  .commons-graph-controls {
    top: 8px;
    left: 8px;
    width: min(230px, calc(100% - 16px));
    max-height: calc(100% - 16px);
  }

  .commons-graph-controls__body {
    max-height: 300px;
  }

  .commons-graph-node-panel {
    top: auto;
    right: 8px;
    bottom: 42px;
    left: 8px;
    width: auto;
    max-height: 42%;
  }

  .commons-graph-meta {
    bottom: 8px;
    font-size: 10px;
  }

  .commons-graph__canvas {
    min-width: 620px;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-tile--video {
    grid-column: auto;
  }

  .related-row {
    grid-template-columns: 28px 58px minmax(0, 1fr);
    min-height: 78px;
  }

  .related-row img,
  .related-row__thumb {
    width: 58px;
    height: 48px;
  }

  .related-row__arrow {
    display: none;
  }

  .category-bar {
    grid-template-columns: 1fr;
  }

  .wiki-left-rail,
  .wiki-right-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 64px;
    z-index: 45;
    display: block;
    max-height: min(72vh, 720px);
    overflow: auto;
    padding: 18px 16px 22px;
    border: 1px solid var(--rule-strong);
    border-bottom: 0;
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateY(calc(100% + 72px));
    transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
  }

  .wiki-left-rail.is-mobile-open,
  .wiki-right-rail.is-mobile-open {
    transform: translateY(0);
  }

  .rail-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }

  .rail-section--form {
    border-top: 0;
  }

  .page-list {
    padding-bottom: 12px;
  }

  .mobile-panel-scrim {
    position: fixed;
    inset: 0 0 64px;
    z-index: 40;
    display: block;
    background: color-mix(in oklab, var(--ink) 18%, transparent);
  }

  .mobile-panel-scrim[hidden] {
    display: none;
  }

  .mobile-wiki-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    min-height: 64px;
    border-top: 1px solid var(--rule-strong);
    background: var(--surface);
  }

  .mobile-wiki-bar button {
    border: 0;
    border-right: 1px solid var(--rule);
    background: var(--surface);
    color: var(--ink-2);
    font-weight: 700;
  }

  .mobile-wiki-bar button:last-child {
    border-right: 0;
  }

  .mobile-wiki-bar button.is-active {
    color: var(--surface);
    background: var(--ink);
  }
}

.wiki-shell {
  display: block;
  min-height: calc(100vh - 62px);
}

body.is-home .wiki-topbar,
body.is-home .wiki-floating-menu,
body.is-home .floating-menu-scrim {
  display: none;
}

body.is-home .wiki-shell {
  min-height: 100vh;
}

body.is-home .wiki-main {
  min-height: 100vh;
  align-items: center;
  padding: 0 24px;
}

body.is-home .article-pane {
  width: min(760px, 100%);
}

.wiki-left-rail,
.wiki-right-rail,
.mobile-wiki-bar,
.mobile-panel-scrim {
  display: none !important;
}

.wiki-main {
  display: flex;
  justify-content: center;
  padding: 32px clamp(20px, 5vw, 78px) 132px;
}

.article-pane {
  width: min(82ch, 100%);
  max-width: none;
}

.floating-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: color-mix(in oklab, var(--ink) 10%, transparent);
}

.floating-menu-scrim[hidden] {
  display: none;
}

.wiki-floating-menu {
  position: fixed;
  right: clamp(12px, 3vw, 32px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.floating-menu-panel,
.floating-menu-toggle {
  pointer-events: auto;
}

.floating-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.floating-menu-toggle:hover,
.floating-menu-toggle:focus-visible,
.wiki-floating-menu.is-open .floating-menu-toggle {
  background: var(--accent);
  border-color: var(--accent);
}

.floating-menu-toggle__icon {
  display: grid;
  gap: 4px;
  width: 20px;
}

.floating-menu-toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 160ms cubic-bezier(.22, 1, .36, 1), opacity 160ms cubic-bezier(.22, 1, .36, 1);
}

.wiki-floating-menu.is-open .floating-menu-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.wiki-floating-menu.is-open .floating-menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.wiki-floating-menu.is-open .floating-menu-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.floating-menu-panel {
  width: min(720px, calc(100vw - 24px));
  max-height: min(70vh, 680px);
  overflow: auto;
  border: 1px solid var(--rule-strong);
  background: color-mix(in oklab, var(--surface) 97%, var(--paper));
  box-shadow: var(--shadow);
}

.floating-menu-panel[hidden] {
  display: none;
}

.floating-menu-panel__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-strong);
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px);
}

.floating-menu-panel__head strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.1;
}

.floating-menu-panel__body {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(300px, 1.18fr);
  gap: 1px;
  background: var(--rule);
}

.floating-menu-section {
  min-width: 0;
  padding: 16px;
  border: 0;
  background: var(--paper);
}

.floating-menu-section.rail-section--toc {
  background: var(--surface);
}

body.has-floating-menu {
  overflow: hidden;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .search-home {
    gap: 18px;
    padding: 68px 0 48px;
  }

  .search-home__mark {
    width: 58px;
    height: 58px;
    font-size: 14px;
  }

  .search-result {
    grid-template-columns: 28px 46px minmax(0, 1fr);
    min-height: 74px;
  }

  .search-result img,
  .search-result__thumb {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .search-result__tags {
    display: none;
  }

  .wiki-topbar {
    position: sticky;
  }

  .wiki-main {
    padding: 22px 16px 112px;
  }

  .wiki-floating-menu {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .floating-menu-panel {
    width: 100%;
    max-height: calc(100dvh - 92px);
  }

  .floating-menu-panel__body {
    grid-template-columns: 1fr;
  }

  .floating-menu-toggle {
    justify-self: end;
    min-width: 56px;
    padding: 0 16px;
  }

  .floating-menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media print {
  .wiki-topbar,
  .wiki-left-rail,
  .wiki-right-rail,
  .mobile-wiki-bar,
  .mobile-panel-scrim,
  .wiki-floating-menu,
  .floating-menu-scrim,
  .article-tabs {
    display: none;
  }

  .wiki-shell,
  .wiki-main {
    display: block;
    padding: 0;
  }
}

.commons-graph-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--rule-strong);
  background: color-mix(in oklab, var(--paper) 72%, var(--surface));
}

.commons-graph__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.commons-graph__header h2 {
  margin-top: 3px;
}

.commons-graph__header span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.commons-graph-workspace {
  position: relative;
  min-height: 460px;
  height: min(620px, 68vh);
  border: 1px solid var(--rule);
  background: var(--surface);
  overflow: hidden;
}

.commons-graph-canvas {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--ink);
  cursor: grab;
  touch-action: none;
}

.commons-graph-canvas:active {
  cursor: grabbing;
}

.commons-graph-canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.commons-graph-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: min(246px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: color-mix(in oklab, var(--surface) 94%, white);
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.12);
}

.commons-graph-controls__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  user-select: none;
}

.commons-graph-controls__head span,
.commons-graph-row span,
.commons-graph-meta {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.commons-graph-controls__head button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.commons-graph-controls__head button.is-collapsed {
  transform: rotate(-90deg);
}

.commons-graph-controls__body {
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: 430px;
  overflow: auto;
  padding: 0 10px 10px;
}

.commons-graph-controls__body[hidden] {
  display: none;
}

.commons-graph-controls input[type="search"] {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 7px 9px;
  font: inherit;
}

.commons-graph-controls input[type="search"]:focus {
  outline: 2px solid color-mix(in oklab, var(--accent) 58%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.commons-graph-results,
.commons-graph-groups {
  display: grid;
  gap: 4px;
}

.commons-graph-results[hidden] {
  display: none;
}

.commons-graph-results p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
}

.commons-graph-results button,
.commons-graph-node-panel__links button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.commons-graph-results button:hover,
.commons-graph-results button:focus-visible,
.commons-graph-node-panel__links button:hover,
.commons-graph-node-panel__links button:focus-visible {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  color: var(--accent);
}

.commons-graph-results button span:last-child,
.commons-graph-node-panel__links button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commons-graph-group {
  display: grid;
  grid-template-columns: 14px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
}

.commons-graph-group input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
}

.commons-graph-group span:not(.commons-graph-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commons-graph-group small {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.commons-graph-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--node-color, var(--accent));
}

.commons-graph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.commons-graph-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--rule-strong);
}

.commons-graph-toggle button {
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
}

.commons-graph-toggle button:last-child {
  border-right: 0;
}

.commons-graph-toggle button.is-active {
  background: var(--accent);
  color: var(--surface);
}

.commons-graph-recenter,
.commons-graph-node-panel__open {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.commons-graph-recenter:hover,
.commons-graph-recenter:focus-visible,
.commons-graph-node-panel__open:hover,
.commons-graph-node-panel__open:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.commons-graph-node-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: min(312px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 13px;
  border: 1px solid var(--rule);
  background: color-mix(in oklab, var(--surface) 96%, white);
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.14);
}

.commons-graph-node-panel[hidden] {
  display: none;
}

.commons-graph-node-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.commons-graph-node-panel__head strong {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.commons-graph-node-panel__head button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-3);
  cursor: pointer;
  flex: 0 0 auto;
}

.commons-graph-node-panel__meta,
.commons-graph-node-panel__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.commons-graph-node-panel__meta span:not(.commons-graph-dot),
.commons-graph-node-panel__tags span,
.commons-graph-node-panel__ghost {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commons-graph-node-panel__image {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--surface-2);
}

.commons-graph-node-panel p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.commons-graph-node-panel__tags span {
  padding: 3px 6px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
}

.commons-graph-node-panel__links {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.commons-graph-node-panel__links > span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commons-graph-meta {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: none;
}

.commons-graph__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commons-graph__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commons-graph__legend-item span {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: currentColor;
}

.commons-graph__legend-item--current {
  color: #101820;
}

.commons-graph__legend-item--tag {
  color: #2f6fb3;
}

.commons-graph__legend-item--linked-page {
  color: #20785e;
}

.commons-graph__legend-item--shared-tag-page {
  color: #9f6f00;
}

.commons-graph__legend-item--backlink-page {
  color: #6d43a8;
}

.commons-graph__legend-item--needs-link {
  color: #b84727;
}

.commons-graph__frame {
  overflow-x: auto;
  border: 1px solid var(--rule);
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--rule) 36%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in oklab, var(--rule) 36%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 32px 32px;
}

.commons-graph__canvas {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

.commons-graph__edge {
  stroke: var(--rule-strong);
  stroke-width: 1.35;
  stroke-linecap: round;
}

.commons-graph__edge--tag {
  stroke: #2f6fb3;
  stroke-dasharray: 2 6;
}

.commons-graph__edge--see-also {
  stroke: #20785e;
}

.commons-graph__edge--shared-tag {
  stroke: #9f6f00;
  stroke-dasharray: 5 5;
}

.commons-graph__edge--backlink {
  stroke: #6d43a8;
}

.commons-graph__edge--needs-link {
  stroke: #b84727;
  stroke-dasharray: 3 5;
}

.commons-graph__node {
  color: var(--ink);
  text-decoration: none;
}

.commons-graph__node circle {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 1.6;
  transition: fill 150ms cubic-bezier(.22, 1, .36, 1), stroke-width 150ms cubic-bezier(.22, 1, .36, 1);
}

.commons-graph__node-label {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  text-transform: uppercase;
}

.commons-graph__node--current circle {
  fill: var(--ink);
}

.commons-graph__node--tag circle {
  fill: #dcecff;
  stroke: #2f6fb3;
}

.commons-graph__node--linked-page circle {
  fill: #dff4eb;
  stroke: #20785e;
}

.commons-graph__node--shared-tag-page circle {
  fill: #fff0cc;
  stroke: #9f6f00;
}

.commons-graph__node--backlink-page circle {
  fill: #eee4ff;
  stroke: #6d43a8;
}

.commons-graph__node--needs-link circle {
  fill: #ffe3d6;
  stroke: #b84727;
}

.commons-graph__node.wiki-link-preview:hover circle,
.commons-graph__node.wiki-link-preview:focus-visible circle {
  fill: color-mix(in oklab, var(--accent) 10%, var(--surface));
  stroke-width: 2.4;
}
