:root {
  --wiki-ink: #111112;
  --wiki-paper: #efefef;
  --wiki-soft: #e7e7e7;
  --wiki-line: rgba(0, 0, 0, 0.18);
  --wiki-line-soft: rgba(0, 0, 0, 0.11);
  --wiki-muted: rgba(0, 0, 0, 0.61);
}

.wiki-type-fields {
  padding: 1rem;
  border: 1px solid rgba(33, 45, 51, .2);
  background: rgba(255, 255, 255, .42);
}

.wiki-type-fields[hidden] { display: none; }
.wiki-type-fields-heading { margin: 0 0 .75rem; font: 700 .75rem/1.2 var(--sans, Arial, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.wiki-type-fields > p:last-child { margin-bottom: 0; color: var(--wiki-muted); }
.wiki-tag-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.wiki-tag-list a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.wiki-association-empty { color: #70777a; font-style: italic; line-height: 1.5; }

.wiki-create-shell,
.wiki-tag-shell { max-width: 1180px; margin: 0 auto; padding: 9rem 1.5rem 5rem; }
.wiki-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.wiki-create-grid > a { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; min-height: 180px; padding: 1.35rem; border: 1px solid rgba(28,43,50,.22); background: rgba(248,249,246,.8); color: inherit; text-decoration: none; }
.wiki-create-grid > a:hover { transform: translateY(-2px); border-color: rgba(28,43,50,.55); }
.wiki-create-grid span { grid-row: 1 / 3; align-self: start; min-width: 2.6rem; font: 700 1.1rem/1 var(--sans, Arial, sans-serif); }
.wiki-create-grid h2 { margin: 0; }
.wiki-create-grid p { grid-column: 2; margin: .45rem 0 0; }

.wiki-missing-card { max-width: 780px; padding: 2rem; border: 1px solid rgba(28,43,50,.22); background: rgba(248,249,246,.88); }
.wiki-tag-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.wiki-tag-waiting { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(28,43,50,.18); }
.wiki-tag-waiting [data-tag-records] { display: grid; gap: .5rem; }

.character-related-records { display: grid; gap: .65rem; margin: 1.25rem 0; }
.character-related-records a { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: .2rem 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(28,43,50,.18); color: inherit; text-decoration: none; }
.character-related-records span { grid-row: 1 / 3; font: 700 .72rem/1.4 var(--sans, Arial, sans-serif); letter-spacing: .08em; }
.character-related-records small { color: var(--wiki-muted); text-transform: capitalize; }

@media (max-width: 760px) {
  .wiki-create-grid { grid-template-columns: 1fr; }
  .wiki-create-shell, .wiki-tag-shell { padding-top: 7rem; }
  .character-related-records a { grid-template-columns: 1fr; }
  .character-related-records span { grid-row: auto; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.wiki-page {
  min-height: 100vh;
  margin: 0;
  color-scheme: light;
  background: var(--wiki-paper);
  color: var(--wiki-ink);
  font-family: var(--sans, Arial, Helvetica, sans-serif);
}

.wiki-page-geometry {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.72;
  overflow: hidden;
}

.wiki-page > main {
  position: relative;
  z-index: 1;
}

.wiki-document-main,
.wiki-shell,
.wiki-editor-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 164px 0 88px;
}

.wiki-document-main { width: min(1160px, calc(100% - 48px)); }

.wiki-message {
  margin: 0;
  padding: 18px 20px;
  border-left: 2px solid #111;
  background: rgba(255, 255, 255, 0.52);
  line-height: 1.55;
}

.wiki-message[data-tone="error"] { border-color: #87362f; background: #f5e4e2; }
.wiki-message[data-tone="success"] { border-color: #2f6242; background: #e4eee7; }

/* Document page */
.wiki-document-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  justify-content: center;
  align-items: start;
  gap: clamp(40px, 4vw, 64px);
}

.wiki-document { min-width: 0; }

.wiki-document-heading {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--wiki-line);
}

.wiki-kicker {
  margin: 0 0 18px;
  color: var(--wiki-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.wiki-document h1,
.wiki-hero h1,
.wiki-editor-top h1 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.wiki-document h1 {
  max-width: 780px;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(38px, 3.4vw, 49px);
  line-height: 0.98;
  text-transform: uppercase;
}

.wiki-summary {
  max-width: none;
  margin: 16px 0 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 14.5px;
  line-height: 1.55;
}

.wiki-summary:empty { display: none; }

.wiki-meta {
  margin: 22px 0 0;
  color: var(--wiki-muted);
  font-size: 13px;
  line-height: 1.5;
}

.wiki-document-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 20px;
}

.wiki-document-actions a,
.wiki-document-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
}

.wiki-document-actions a:hover,
.wiki-document-actions button:hover,
.wiki-document-actions a:focus-visible,
.wiki-document-actions button:focus-visible { border-bottom-color: currentColor; }

.wiki-document-actions .wiki-edit-action {
  min-width: 146px;
  padding: 0 28px;
  background: #111112;
  color: #fff;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  text-decoration: none;
}

.wiki-document-actions .wiki-edit-action:hover,
.wiki-document-actions .wiki-edit-action:focus-visible { background: #2a2a2c; border-bottom-color: transparent; }

.wiki-content {
  max-width: none;
  padding-top: 8px;
  font-family: var(--sans, Arial, Helvetica, sans-serif);
  font-size: 14.5px;
  line-height: 1.56;
}

.wiki-content > * { max-width: none; }
.wiki-content > table,
.wiki-content > pre,
.wiki-content > blockquote,
.wiki-content > .wiki-image { max-width: 100%; }

.wiki-content h1,
.wiki-content h2,
.wiki-content h3,
.wiki-content h4 {
  margin: 1.05em 0 0.24em;
  color: #151516;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.018em;
  scroll-margin-top: 118px;
}

.wiki-content h1 { font-size: 2em; }
.wiki-content h2 { font-size: 1.68em; }
.wiki-content h3 { font-size: 1.35em; }
.wiki-content h4 { font-size: 1.08em; font-weight: 700; }
.wiki-content p { margin: 0.35em 0 1em; }
.wiki-content ul,
.wiki-content ol { margin: 0.4em 0 1.1em; padding-left: 1.45em; }
.wiki-content li + li { margin-top: 0.2em; }

.wiki-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wiki-content blockquote {
  margin: 1.2em 0;
  padding: 14px 18px 14px 54px;
  border-left: 2px solid #171718;
  background: rgba(0, 0, 0, 0.035);
  color: rgba(0, 0, 0, 0.72);
}

.wiki-content pre,
.wiki-source {
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141415;
  color: #f2f2f2;
  font: 14px/1.58 Consolas, "SFMono-Regular", monospace;
}

.wiki-content code {
  padding: 0.12em 0.34em;
  background: rgba(0, 0, 0, 0.07);
  font: 0.9em Consolas, "SFMono-Regular", monospace;
}

.wiki-content hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--wiki-line);
}

.wiki-content table {
  width: 100%;
  margin: 0.75em 0 1.25em;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.wiki-content th,
.wiki-content td {
  padding: 6px 11px;
  border: 1px solid var(--wiki-line);
  text-align: left;
  vertical-align: top;
}

.wiki-content th { background: rgba(0, 0, 0, 0.045); font-weight: 700; }
.wiki-content caption { padding: 0 0 9px; color: var(--wiki-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }

.wiki-content ul ul,
.wiki-content ul ol,
.wiki-content ol ul,
.wiki-content ol ol { margin: .35em 0 .2em; }

.wiki-definition-list { margin: 1.2em 0; }
.wiki-definition-list dt { margin-top: .75em; font-weight: 700; }
.wiki-definition-list dd { margin: .2em 0 .65em 1.5em; padding-left: 1em; border-left: 1px solid var(--wiki-line); }

.wiki-nowiki { padding: .08em .24em; background: rgba(0, 0, 0, .045); font-family: Consolas, "SFMono-Regular", monospace; white-space: pre-wrap; }
.wiki-nowiki-block { white-space: pre-wrap; }

.wiki-template-callout,
.wiki-template-related,
.wiki-template-quote {
  display: flex;
  gap: .75em;
  margin: .85em 0;
  padding: .8em 1em;
  border-left: 3px solid #334c58;
  background: rgba(51, 76, 88, .08);
}
.wiki-template-callout > strong { flex: 0 0 auto; }
.wiki-template--warning { border-left-color: #87362f; background: rgba(135, 54, 47, .09); }
.wiki-template--tip { border-left-color: #527149; background: rgba(82, 113, 73, .09); }
.wiki-template-quote { display: grid; border-left-color: #171718; }
.wiki-template-quote cite { color: var(--wiki-muted); font-size: .88em; }
.wiki-template-related { display: block; border-left-color: rgba(0, 0, 0, .3); background: rgba(0, 0, 0, .035); }
.wiki-template-unknown { padding: .12em .35em; border: 1px dashed rgba(135, 54, 47, .5); color: #87362f; font-family: Consolas, "SFMono-Regular", monospace; font-size: .9em; }
.wiki-template-kbd { padding: .12em .42em; border: 1px solid rgba(0, 0, 0, .28); border-bottom-width: 2px; background: rgba(255, 255, 255, .55); font: .86em Consolas, "SFMono-Regular", monospace; }
.wiki-template-citation-needed { color: #87362f; font-size: .72em; }

.wiki-math { display: inline-flex; max-width: 100%; vertical-align: -.12em; }
.wiki-math math { font-size: 1.08em; }
.wiki-math--display { display: block; overflow-x: auto; margin: 1.25em 0; padding: .5em 0; text-align: center; }
.wiki-math--display math { margin: 0 auto; font-size: 1.22em; }

.wiki-visual-editor [contenteditable="false"] { cursor: default; user-select: text; }

.wiki-content .wiki-image {
  width: min(var(--wiki-image-width, 70%), 100%);
  margin: 1.35em auto 1.6em;
}

.wiki-content .wiki-image img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.045);
  box-shadow: 0 18px 42px rgba(20, 20, 22, 0.13);
}

.wiki-content .wiki-image figcaption {
  margin-top: 8px;
  color: var(--wiki-muted);
  font-size: 12px;
  line-height: 1.45;
}

.wiki-content .wiki-image--left { float: left; clear: left; margin: 0.35em 24px 1.25em 0; }
.wiki-content .wiki-image--right { float: right; clear: right; margin: 0.35em 0 1.25em 24px; }
.wiki-content .wiki-image--full { width: 100%; }

.wiki-cite {
  margin-left: 0.08em;
  font: 600 0.72em/1 var(--sans, Arial, Helvetica, sans-serif);
  vertical-align: super;
}

.wiki-cite a { text-decoration: none; }
.wiki-cite a:hover,
.wiki-cite a:focus-visible { text-decoration: underline; }

.wiki-references {
  max-width: 100%;
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--wiki-line);
}

.wiki-references ol {
  margin: 0.8em 0 0;
  padding-left: 2.2em;
  font-size: 0.9em;
  line-height: 1.55;
}

.wiki-references li { padding-left: 0.35em; }
.wiki-reference-backlinks { display: inline-block; min-width: 1.9em; margin-left: -2.25em; }
.wiki-reference-backlink { margin-right: 0.24em; font-weight: 700; text-decoration: none; }
.wiki-reference-missing { color: #87362f; font-style: italic; }

.wiki-source { margin-top: 30px; white-space: pre-wrap; }

.wiki-history {
  margin-top: 38px;
  padding-top: 6px;
  border-top: 1px solid var(--wiki-line);
}

.wiki-history h2 {
  font-family: var(--serif, Georgia, serif);
  font-size: 28px;
  font-weight: 400;
}

.wiki-history-item {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--wiki-line-soft);
  font-size: 13px;
  line-height: 1.45;
}

.wiki-history-item a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.wiki-document-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--wiki-line);
  color: var(--wiki-muted);
  font-size: 12px;
}

.wiki-document-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.wiki-document-rail {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 0;
  color: rgba(0, 0, 0, 0.76);
  font-size: 13px;
}

.wiki-document-rail section {
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--wiki-line);
}

.wiki-document-rail h2 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wiki-document-rail p { margin: 0; line-height: 1.55; }
.wiki-document-rail p a { color: inherit; text-underline-offset: .2em; }

.wiki-toc { display: grid; gap: 8px; }
.wiki-toc a { color: inherit; line-height: 1.35; }
.wiki-toc a:hover,
.wiki-toc a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.wiki-toc a[data-level="3"] { padding-left: 12px; color: var(--wiki-muted); }

.wiki-facts { display: grid; gap: 8px; margin: 0; }
.wiki-facts div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; }
.wiki-facts dt { margin: 0; }
.wiki-facts dd { margin: 0; font-weight: 600; }

.wiki-print-action {
  width: 100%;
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  color: #111;
  font: inherit;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.wiki-print-action:hover,
.wiki-print-action:focus-visible { background: #111; color: #fff; }

.wiki-page-attachments { clear: both; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--wiki-line); }
.wiki-page-attachments h2 { margin: 0 0 16px; font: 600 12px/1 var(--sans, Arial, sans-serif); letter-spacing: .16em; text-transform: uppercase; }
.wiki-page-attachments > div, .wiki-source-attachments > div { display: grid; gap: 8px; }
.wiki-page-attachments a, .wiki-source-attachments a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--wiki-line); background: rgba(255,255,255,.45); color: inherit; text-decoration: none; }
.wiki-page-attachments a:hover, .wiki-page-attachments a:focus-visible { background: #fff; border-color: #111; }
.wiki-page-attachments span { color: var(--wiki-muted); font-size: 10px; letter-spacing: .08em; }
.wiki-source-attachments button { min-height: 42px; width: max-content; padding: 0 18px; border: 0; background: #111; color: #fff; font: 700 10px/1 var(--sans, Arial, sans-serif); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.wiki-attachment-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: stretch; }
.wiki-attachment-editor-row > a { min-width: 0; }
.wiki-attachment-editor-row > a strong, .wiki-attachment-editor-row > a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-attachment-editor-row > button { min-width: 82px; }
.wiki-attachment-editor-row > .wiki-attachment-delete, .wiki-delete-page { background: transparent; color: #8a2019; border: 1px solid rgba(138,32,25,.42); }
.wiki-attachment-editor-row > .wiki-attachment-delete:hover, .wiki-attachment-editor-row > .wiki-attachment-delete:focus-visible, .wiki-delete-page:hover, .wiki-delete-page:focus-visible { background: #8a2019; color: #fff; }
.wiki-editor-actions .wiki-delete-page { margin-right: auto; }
@media (max-width: 640px) { .wiki-attachment-editor-row { grid-template-columns: 1fr 1fr; } .wiki-attachment-editor-row > a { grid-column: 1 / -1; } }

/* Document archive index */
.wiki-index-shell { width: min(1160px, calc(100% - 48px)); padding-top: 188px; }

.wiki-index-grid {
  display: grid;
  grid-template-columns: minmax(0, 860px) 220px;
  align-items: start;
  gap: 80px;
}

.wiki-index-main { min-width: 0; }

.wiki-index-intro {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--wiki-line);
}

.wiki-index-intro h1 {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(48px, 5vw, 66px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.wiki-index-intro > p:not(.wiki-kicker) {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--wiki-muted);
  font-size: 15px;
  line-height: 1.58;
}

.wiki-index-actions {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 44px;
  margin-top: 30px;
}

.wiki-create-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.wiki-create-document {
  padding-inline: 28px;
  white-space: nowrap;
}

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

.wiki-search input,
.wiki-list-tools select,
.wiki-editor-form input,
.wiki-editor-form textarea,
.wiki-editor-form select {
  width: 100%;
  min-height: 46px;
  padding: 11px 15px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.58);
  color: #111;
  font: 500 14px/1.45 var(--sans, Arial, sans-serif);
}

.wiki-search input:focus-visible,
.wiki-list-tools select:focus-visible,
.wiki-editor-form input:focus-visible,
.wiki-editor-form textarea:focus-visible,
.wiki-editor-form select:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 4px 0 0 #111;
}

.wiki-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  cursor: pointer;
}

.wiki-button:hover,
.wiki-button:focus-visible { background: #2d2d2f; }

.wiki-list-tools {
  display: flex;
  align-items: center;
  min-height: 70px;
  color: var(--wiki-muted);
  font-size: 13px;
}

.wiki-list-tools label { display: flex; align-items: center; gap: 12px; }
.wiki-list-tools select { width: auto; min-width: 180px; background: rgba(255, 255, 255, 0.46); }

.wiki-table-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

.wiki-document-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: rgba(0, 0, 0, 0.8);
  font-size: 13px;
}

.wiki-document-table th {
  padding: 0 12px 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  color: rgba(0, 0, 0, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.wiki-document-table th:nth-child(1) { width: 112px; }
.wiki-document-table th:nth-child(2) { width: 280px; }
.wiki-document-table th:nth-child(3) { width: 106px; }
.wiki-document-table th:nth-child(4) { width: 102px; }
.wiki-document-table th:nth-child(5) { width: 130px; }

.wiki-document-table[data-page-type="document"] th:nth-child(1) { width: 18%; }
.wiki-document-table[data-page-type="document"] th:nth-child(2) { width: 33%; }
.wiki-document-table[data-page-type="document"] th:nth-child(3) { width: 12%; }
.wiki-document-table[data-page-type="document"] th:nth-child(4) { width: 10%; }
.wiki-document-table[data-page-type="document"] th:nth-child(5) { width: 15%; }
.wiki-document-table[data-page-type="document"] th:nth-child(6) { width: 12%; }

.wiki-document-table[data-page-type="operational_unit"] th:nth-child(1) { width: 112px; }
.wiki-document-table[data-page-type="operational_unit"] th:nth-child(2) { width: 280px; }
.wiki-document-table[data-page-type="operational_unit"] th:nth-child(3) { width: 106px; }
.wiki-document-table[data-page-type="operational_unit"] th:nth-child(4) { width: auto; }

.wiki-document-table[data-page-type="narrative"] th:nth-child(1) { width: 320px; }
.wiki-document-table[data-page-type="narrative"] th:nth-child(2) { width: 106px; }
.wiki-document-table[data-page-type="narrative"] th:nth-child(3) { width: 102px; }
.wiki-document-table[data-page-type="narrative"] th:nth-child(4) { width: 130px; }
.wiki-document-table[data-page-type="narrative"] th:nth-child(5) { width: auto; }

.wiki-document-table td {
  height: 47px;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--wiki-line-soft);
  vertical-align: middle;
}

.wiki-document-table td:last-child { font-size: 12px; white-space: nowrap; }
.wiki-document-table[data-page-type="document"] th:first-child,
.wiki-document-table[data-page-type="document"] td:first-child { white-space: nowrap; }
.wiki-document-table[data-page-type="document"] td:last-child {
  overflow-wrap: anywhere;
  white-space: normal;
}

.wiki-document-table tbody tr:hover { background: rgba(255, 255, 255, 0.34); }
.wiki-document-table a { color: inherit; text-decoration: none; }
.wiki-document-table a:hover,
.wiki-document-table a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.wiki-index-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  color: var(--wiki-muted);
  font-size: 12px;
}

.wiki-index-footer p { margin: 0; }
.wiki-empty { margin: 0; padding: 26px 0; border-bottom: 1px solid var(--wiki-line); color: var(--wiki-muted); }

.wiki-mail-entry {
  display: grid;
  grid-template-columns: 118px minmax(180px, .8fr) minmax(260px, 1.35fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  margin-top: 26px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0,0,0,.26);
  background: rgba(255,255,255,.36);
  color: #111;
  text-decoration: none;
}
.wiki-mail-entry > span { color: var(--wiki-muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.wiki-mail-entry > strong { font: 400 20px/1.15 Georgia, 'Times New Roman', serif; }
.wiki-mail-entry > small { color: var(--wiki-muted); font-size: 11px; line-height: 1.45; }
.wiki-mail-entry > b { padding: 12px 21px; background: #111; color: #fff; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.wiki-mail-entry:hover,
.wiki-mail-entry:focus-visible { background: rgba(255,255,255,.7); outline: 0; }

.wiki-index-rail {
  position: sticky;
  top: 126px;
  color: rgba(0, 0, 0, 0.74);
  font-size: 13px;
}

.wiki-index-rail section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--wiki-line); }
.wiki-index-rail h2 { margin: 0 0 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.wiki-index-rail p { margin: 0 0 16px; line-height: 1.48; }
.wiki-index-rail p:last-child { margin-bottom: 0; }

.wiki-activity article { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--wiki-line-soft); }
.wiki-activity a { display: block; margin-bottom: 4px; color: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.wiki-activity a:hover,
.wiki-activity a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.wiki-activity p { margin: 0; font-size: 12px; line-height: 1.42; }

.wiki-activity-all {
  min-height: 42px;
  padding: 0 24px;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  color: #111;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  cursor: pointer;
}

.wiki-activity-all:hover,
.wiki-activity-all:focus-visible { background: #111; color: #fff; }

/* Editor */
.wiki-editor-shell { width: min(1280px, calc(100% - 48px)); }
.wiki-editor-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--wiki-line); }
.wiki-editor-top h1 { font-size: clamp(46px, 6vw, 72px); line-height: 0.98; }
.wiki-editor-top > a { text-decoration: underline; text-underline-offset: 4px; }
.wiki-editor-record-preview {
  display: grid;
  grid-template-columns: 1.05fr 2fr 0.85fr 0.78fr 1fr 1.15fr;
  margin: -4px 0 26px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.28);
}
.wiki-editor-record-preview > div { min-width: 0; padding: 13px 14px 14px; }
.wiki-editor-record-preview > div + div { border-left: 1px solid rgba(0, 0, 0, 0.08); }
.wiki-editor-record-preview span,
.wiki-editor-record-preview strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-editor-record-preview span { margin-bottom: 7px; color: var(--wiki-muted); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.wiki-editor-record-preview strong { color: rgba(0, 0, 0, 0.8); font-size: 12px; font-weight: 600; }
.wiki-editor-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr); gap: 28px; }
.wiki-editor-fields,
.wiki-preview-panel { min-width: 0; }
.wiki-editor-fields { display: grid; gap: 16px; }
.wiki-advanced-settings { border-top: 1px solid var(--wiki-line); border-bottom: 1px solid var(--wiki-line); }
.wiki-advanced-settings > summary { padding: 14px 0; color: rgba(0,0,0,.68); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.wiki-advanced-settings[open] > summary { margin-bottom: 16px; }
.wiki-advanced-settings > .wiki-editor-metadata-grid { margin-bottom: 16px; }
.wiki-revision-settings > label { margin-bottom: 16px; }
.wiki-editor-form label { display: grid; gap: 7px; color: rgba(0, 0, 0, 0.68); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.wiki-editor-form label small { color: var(--wiki-muted); font-size: 11px; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-transform: none; }
.wiki-body-length { margin: -9px 0 0; color: var(--wiki-muted); font-size: 11px; line-height: 1.45; }
.wiki-body-length[data-tone="long"] { color: #725716; }
.wiki-body-length[data-tone="error"] { color: #87362f; font-weight: 700; }
.wiki-editor-metadata-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wiki-editor-metadata-grid > label { align-self: start; align-content: start; }
.wiki-editor-metadata-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wiki-editor-metadata-grid--document { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 761px) {
  .wiki-editor-metadata-grid--document > label { grid-template-rows: 32px 46px auto; }
}
.wiki-editor-meta-field { display: grid; align-content: start; gap: 7px; color: rgba(0, 0, 0, 0.68); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.wiki-editor-form .wiki-inline-check { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--wiki-muted); font-size: 10px; font-weight: 500; letter-spacing: .02em; text-transform: none; cursor: pointer; }
.wiki-editor-form .wiki-inline-check input { width: 15px; min-height: 15px; height: 15px; margin: 0; padding: 0; accent-color: #111; }
.wiki-editor-form input:disabled { background: rgba(0, 0, 0, .055); color: rgba(0, 0, 0, .45); }
.wiki-editor-form textarea[name="body"] { min-height: 490px; resize: vertical; font: 14px/1.58 Consolas, monospace; }
.wiki-editor-mode { display: flex; gap: 7px; }
.wiki-editor-mode button {
  min-height: 38px;
  padding: 0 19px;
  border: 0;
  background: rgba(0, 0, 0, 0.07);
  color: #111;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  cursor: pointer;
}
.wiki-editor-mode button.is-active { background: #111; color: #fff; }
.wiki-toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--wiki-line); border-bottom: 1px solid var(--wiki-line); }
.wiki-toolbar-group { display: flex; flex-wrap: wrap; gap: 5px; }
.wiki-toolbar button { min-height: 34px; padding: 0 14px; border: 0; background: rgba(0, 0, 0, 0.08); color: #111; font: inherit; font-size: 12px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); cursor: pointer; }
.wiki-toolbar button:hover,
.wiki-toolbar button:focus-visible { background: #111; color: #fff; }
.wiki-syntax-help { border-bottom: 1px solid var(--wiki-line); }
.wiki-syntax-help > summary { padding: 12px 0; color: rgba(0, 0, 0, .68); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.wiki-syntax-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; padding: 7px 0 18px; }
.wiki-syntax-help h2 { margin: 0 0 9px; font: 600 11px/1.3 var(--sans, Arial, sans-serif); letter-spacing: .1em; text-transform: uppercase; }
.wiki-syntax-help dl { margin: 0; }
.wiki-syntax-help dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.wiki-syntax-help dt { color: rgba(0, 0, 0, .68); font-size: 11px; font-weight: 700; }
.wiki-syntax-help dd { margin: 0; color: var(--wiki-muted); font-size: 11px; line-height: 1.55; }
.wiki-syntax-help code { padding: .08em .28em; background: rgba(0, 0, 0, .06); color: #111; font: .95em Consolas, "SFMono-Regular", monospace; }
.wiki-syntax-help > p { margin: 0 0 17px; color: var(--wiki-muted); font-size: 11px; }
.wiki-editor-actions { display: flex; align-items: center; gap: 14px; color: var(--wiki-muted); font-size: 12px; }
.wiki-visual-field { display: grid; gap: 7px; }
.wiki-visual-field > span { color: rgba(0, 0, 0, 0.68); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.wiki-visual-editor {
  min-height: 490px;
  max-width: none;
  padding: 22px 24px;
  outline: 0;
  background: rgba(255, 255, 255, 0.58);
}
.wiki-visual-editor:focus-visible { background: rgba(255, 255, 255, 0.9); box-shadow: inset 4px 0 0 #111; }
.wiki-visual-editor:empty::before { content: "Start writing…"; color: rgba(0, 0, 0, 0.36); }
.wiki-visual-editor > :first-child { margin-top: 0; }
.wiki-preview-panel { position: sticky; top: 120px; max-height: calc(100vh - 150px); overflow: auto; padding-left: 28px; border-left: 1px solid var(--wiki-line); }
.wiki-preview-panel > p { margin: 0 0 18px; color: var(--wiki-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; }
.wiki-preview-panel .wiki-content { padding-top: 0; }

.wiki-image-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: rgba(242, 242, 240, 0.98);
  color: #111;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.wiki-image-dialog::backdrop { background: rgba(10, 10, 12, 0.58); backdrop-filter: blur(4px); }
.wiki-image-dialog form { display: grid; gap: 17px; padding: 30px; }
.wiki-image-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--wiki-line); }
.wiki-image-dialog header p { margin: 0 0 5px; color: var(--wiki-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.17em; }
.wiki-image-dialog h2 { margin: 0; font: 400 34px/1.05 var(--serif, Georgia, serif); }
.wiki-image-dialog label { display: grid; gap: 7px; color: rgba(0, 0, 0, 0.68); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.wiki-image-dialog label span { color: var(--wiki-muted); font-weight: 400; text-transform: none; }
.wiki-image-dialog input,
.wiki-image-dialog select {
  width: 100%;
  min-height: 46px;
  padding: 11px 15px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.62);
  color: #111;
  font: 500 14px/1.45 var(--sans, Arial, sans-serif);
}
.wiki-image-dialog input:focus-visible,
.wiki-image-dialog select:focus-visible { background: #fff; box-shadow: inset 4px 0 0 #111; }
.wiki-image-settings { display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 12px; }
.wiki-image-help { margin: -3px 0 0; color: var(--wiki-muted); font-size: 12px; line-height: 1.5; }
.wiki-image-dialog header button,
.wiki-image-dialog-actions > button:first-child { padding: 8px 10px; border: 0; background: rgba(0, 0, 0, 0.07); color: #111; cursor: pointer; }
.wiki-image-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 4px; }

@media (max-width: 1280px) {
  .wiki-document-main,
  .wiki-shell,
  .wiki-editor-shell { padding-top: 190px; }
}

@media (max-width: 1200px) {
  .wiki-index-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 40px; }
}

@media (max-width: 1100px) {
  .wiki-index-grid { grid-template-columns: 1fr; }
  .wiki-index-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
  .wiki-index-rail section { min-width: 0; }
}

@media (max-width: 900px) {
  .wiki-document-grid,
  .wiki-index-grid,
  .wiki-editor-form { grid-template-columns: 1fr; }
  .wiki-document-rail { position: static; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .wiki-index-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .wiki-document-rail section { min-width: 0; }
  .wiki-index-rail section { min-width: 0; }
  .wiki-content { max-width: none; }
  .wiki-content .wiki-image--left,
  .wiki-content .wiki-image--right { float: none; width: 100%; margin: 1.25em 0; }
  .wiki-preview-panel { position: static; max-height: none; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--wiki-line); }
  .wiki-editor-record-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wiki-editor-record-preview > div:nth-child(4) { border-left: 0; }
  .wiki-editor-record-preview > div:nth-child(n + 4) { border-top: 1px solid rgba(0, 0, 0, 0.08); }
}

@media (max-width: 760px) {
  .wiki-document-main,
  .wiki-shell,
  .wiki-editor-shell { width: min(100% - 36px, 680px); padding-top: 164px; }
  .wiki-document h1 { font-size: clamp(34px, 9vw, 50px); }
  .wiki-document-actions { gap: 8px 18px; }
  .wiki-document-actions .wiki-edit-action { min-width: 0; }
  .wiki-document-rail { grid-template-columns: 1fr; }
  .wiki-index-rail { grid-template-columns: 1fr; }
  .wiki-index-actions { grid-template-columns: 1fr; gap: 10px; }
  .wiki-create-document { width: 100%; }
  .wiki-search { grid-template-columns: 1fr; }
  .wiki-document-table,
  .wiki-document-table tbody,
  .wiki-document-table tr,
  .wiki-document-table td { display: block; width: 100%; }
  .wiki-document-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .wiki-document-table tr { padding: 14px 0; border-bottom: 1px solid var(--wiki-line); }
  .wiki-document-table td { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; height: auto; padding: 5px 0; border: 0; }
  .wiki-document-table td::before { content: attr(data-label); color: var(--wiki-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
  .wiki-index-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .wiki-history-item { grid-template-columns: 1fr; gap: 5px; }
  .wiki-document-footer,
  .wiki-editor-top,
  .wiki-editor-actions { align-items: flex-start; flex-direction: column; }
  .wiki-image-settings { grid-template-columns: 1fr; }
  .wiki-image-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .wiki-image-dialog-actions .wiki-button { width: 100%; }
  .wiki-mail-entry { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .wiki-mail-entry > span,
  .wiki-mail-entry > small { grid-column: 1; }
  .wiki-mail-entry > b { grid-column: 2; grid-row: 1 / span 3; }
  .wiki-editor-record-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-editor-metadata-grid { grid-template-columns: 1fr; }
  .wiki-syntax-help-grid { grid-template-columns: 1fr; }
  .wiki-editor-record-preview > div:nth-child(odd) { border-left: 0; }
  .wiki-editor-record-preview > div:nth-child(n + 3) { border-top: 1px solid rgba(0, 0, 0, 0.08); }
}

@media print {
  .site-header,
  .wiki-page-geometry,
  .wiki-document-actions,
  .wiki-document-rail,
  .skip-link { display: none !important; }
  .wiki-page { background: #fff; }
  .wiki-document-main { width: 100%; padding: 0; }
  .wiki-document-grid { display: block; }
  .wiki-content { max-width: none; }
}

/* Reading sizes and space for complete document titles. */
.wiki-page-geometry { opacity: .45; }
.wiki-document-table { font-size: 15px; }
.wiki-document-table th, .wiki-index-rail h2, .wiki-document-rail h2 { font-size: 12px; }
.wiki-document-table td:last-child, .wiki-activity a, .wiki-index-rail, .wiki-document-rail, .wiki-toc a { font-size: 14px; }
.wiki-activity p, .wiki-index-footer { font-size: 13px; }
.wiki-content { font-size: 17px; line-height: 1.7; }
.wiki-content p { max-width: 78ch; }
.wiki-math--display { overflow-y: hidden; padding-block: .8em; }
.wiki-math-error { color: #8f2727; background: #fff1f0; padding: .35em .5em; overflow-wrap: anywhere; }
.wiki-math-error-label { font: 600 14px/1.5 Arial, sans-serif; }
.wiki-list-tools select { min-width: 240px; }
.wiki-document-table[data-page-type="document"] th:nth-child(2) { width: 37%; }
.wiki-document-table[data-page-type="document"] th:nth-child(3) { width: 10%; }
.wiki-document-table[data-page-type="document"] th:nth-child(4) { width: 8%; }
@media (min-width: 761px) and (max-width: 1280px) {
  .wiki-content :is(h1,h2,h3), .wiki-content [id] { scroll-margin-top: 166px; }
}
@media (max-width: 760px) {
  .wiki-document-table td::before { font-size: 12px; letter-spacing: .04em; }
  .wiki-document-table[data-page-type="document"] td:first-child { white-space: normal; overflow-wrap: anywhere; }
  .wiki-list-tools select { min-width: 0; max-width: 100%; }
}
