/* Akasha Wiki presentation. The archive data and routes live in wiki141. */
.wiki-body140 {
  --bg: #090b14;
  --panel: #141423;
  --ink: #f3eee4;
  --muted: #c4bccf;
  --gold: #e8c98f;
  --line: #5d4d66;
  --violet-wiki: #2a2240;
  --wiki-focus: #d4b8ff;
  color-scheme: dark;
  background: radial-gradient(ellipse at 53% 0%, #231936 0, var(--bg) 38rem);
}

.wiki-page140 {
  max-width: 1320px;
  padding: 20px clamp(16px, 4vw, 56px) 40px;
  margin-inline: auto;
}

.wiki-page140 > .back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
  color: var(--gold);
  text-decoration: none;
  font-size: .83rem;
  font-weight: 600;
}

.wiki-page140 > .back:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.wiki-header140 {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  min-height: 214px;
  gap: 0;
  padding: 0;
  border: 1px solid #806a58;
  border-top: 2px solid var(--gold);
  background: linear-gradient(115deg, #1b1427, #171425 50%, #0f101b);
}

.wiki-cover-copy142 {
  z-index: 1;
  align-self: center;
  padding: clamp(22px, 3.5vw, 48px);
}

.wiki-header140 h1 {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.45rem, 5.1vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.wiki-cover-copy142 p {
  max-width: 37ch;
  color: var(--ink);
  font-size: .96rem;
  line-height: 1.55;
}

.wiki-cover142 {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  margin: 0;
  padding: 10px 13px;
  overflow: hidden;
  isolation: isolate;
}

.wiki-cover142::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #171425, #17142528 35%, #17142500 71%, #17142552),
    linear-gradient(0deg, #10101ce8 1%, #10101c00 42%);
}

.wiki-cover142 img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(.82) brightness(.84);
}

.wiki-cover142 figcaption {
  justify-self: end;
  color: #fff5df;
  background: #100f19e8;
  border: 1px solid #e8c98f4d;
  padding: 5px 8px;
  font-size: .72rem;
  line-height: 1.35;
}

.wiki-hubs140 {
  gap: 1px;
  margin: 9px 0 15px;
  border: 1px solid var(--line);
  background: var(--line);
}

.wiki-hubs140 a,
.wiki-hubs140 a:nth-child(-n+2) {
  position: relative;
  align-content: center;
  gap: 4px;
  min-height: 70px;
  padding: 10px 14px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #151423;
}

.wiki-hubs140 a:hover,
.wiki-hubs140 a[aria-current="page"] {
  color: var(--gold);
  background: var(--violet-wiki);
  border-bottom-color: var(--gold);
  box-shadow: none;
}

.wiki-hubs140 strong {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.36rem);
}

.wiki-hubs140 span {
  font-size: .77rem;
  line-height: 1.4;
}

.wiki-search140 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 190px) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.wiki-search140 div {
  min-width: 0;
}

.wiki-search140 label,
.wiki-index140 label {
  font-size: .78rem;
  font-weight: 600;
}

.wiki-search140 input,
.wiki-search140 select,
.wiki-index140 select {
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #776783;
}

.wiki-search140 input::placeholder {
  color: #b6aec5;
}

.wiki-search140 .button,
#wiki-more140 {
  min-height: 44px;
  padding: 8px 18px;
  color: #1c1324;
  background: var(--gold);
  border: 1px solid var(--gold);
  font-size: .91rem;
  font-weight: 700;
}

.wiki-search140 .button:hover,
#wiki-more140:hover {
  background: #f5dfb2;
}

.wiki-version140 {
  margin: 9px 0 22px;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.5;
}

.wiki-browser140 {
  display: grid;
  grid-template-columns: clamp(170px, 19vw, 224px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 36px);
}

.wiki-browser140 > section,
.wiki-index140,
.wiki-index-selects142 > div {
  min-width: 0;
}

.wiki-index140 {
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.wiki-index140 h2 {
  margin: 0 6px 7px;
  font-size: 1.15rem;
  color: var(--gold);
}

.wiki-index140 button {
  min-height: 38px;
  padding: 7px 8px;
  font-size: .84rem;
  line-height: 1.4;
}

.wiki-index140 button:hover,
.wiki-index140 button[aria-pressed="true"] {
  background: var(--violet-wiki);
  color: var(--ink);
}

.wiki-index140 label {
  margin-top: 13px;
}

.wiki-index140 select {
  max-width: none;
  font-size: .8rem;
}

.wiki-results-heading140 {
  gap: 9px;
  border-bottom-color: var(--line);
}

.wiki-results-heading140 h2 {
  margin: 0;
  padding: 3px 0 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1.1;
}

.wiki-results-heading140 button {
  min-height: 44px;
  padding-inline: 7px;
}

.wiki-results-heading140 button:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

#wiki-status140 {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.wiki-row140 {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 13px 0;
}

.wiki-row140 .wiki-thumb140 {
  width: 64px;
  height: 64px;
  border: 1px solid #6d5b78;
  background: #1e192b;
}

.wiki-row140 .wiki-symbol140 {
  color: #bba6d5;
  font-size: 1.75rem;
}

.wiki-row140 h3 {
  margin: 2px 0;
  font-size: 1.28rem;
  overflow-wrap: anywhere;
}

.wiki-row140 p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.wiki-row140 .wiki-actions141 {
  color: var(--gold);
}

.wiki-kind140 {
  color: var(--gold);
  text-transform: none;
  letter-spacing: .03em;
  font-size: .77rem;
  line-height: 1.2;
}

.wiki-status-badge140 {
  margin-top: 3px;
  color: var(--muted);
  background: var(--panel);
  line-height: 1.4;
}

.wiki-cover142 :focus-visible,
.wiki-page140 a:focus-visible,
.wiki-page140 button:focus-visible,
.wiki-page140 input:focus-visible,
.wiki-page140 select:focus-visible,
.wiki-article140 section:focus {
  outline: 2px solid var(--wiki-focus);
  outline-offset: 3px;
}

.wiki-article140 {
  max-width: 1040px;
  padding: clamp(15px, 4vw, 44px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}

.wiki-article140 h1 {
  margin: 10px 0;
  color: var(--gold);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.wiki-article140 h2 {
  margin: 24px 0 12px;
  color: var(--ink);
  font-size: clamp(1.36rem, 3vw, 1.8rem);
}

.wiki-article140 .lede {
  color: var(--muted);
  line-height: 1.6;
}

.wiki-article140 section {
  scroll-margin-block: 16px;
}

.wiki-facts141 {
  margin: 18px 0;
  background: var(--bg);
}

.wiki-facts141 dd,
.wiki-facts141 dt {
  padding: 9px 13px;
}

.wiki-facts141 dd:last-of-type,
.wiki-facts141 dt:last-of-type {
  border-bottom: 0;
}

.wiki-contents141 {
  gap: 6px 14px;
  margin: 18px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid #ac8dc8;
  background: #1d1930;
}

.wiki-contents141 strong {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.wiki-contents141 a,
.wiki-related140 a,
.wiki-article140 figure a > span {
  min-height: 40px;
}

.wiki-article140 section ol {
  max-width: 86ch;
  margin: 12px 0;
  padding-left: 36px;
}

.wiki-article140 ol > li {
  margin-block: 12px;
  padding: 12px clamp(8px, 2vw, 18px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: #1a1729;
}

.wiki-article140 ol > li::marker {
  color: var(--gold);
  font-size: 1.05rem;
}

.wiki-article140 ol > li > h3 {
  margin: 0 0 5px;
  color: var(--ink);
}

.wiki-article140 ol > li > p {
  margin: 5px 0;
  line-height: 1.55;
}

.wiki-article140 figure {
  min-width: 0;
  margin: 16px 0;
}

.wiki-article140 figure img {
  max-height: 360px;
  background: var(--bg);
}

.wiki-article140 figcaption {
  max-width: 75ch;
  color: var(--muted);
  line-height: 1.5;
}

.wiki-article140 figure a > span {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
}

.wiki-related140 a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: var(--violet-wiki);
  overflow-wrap: anywhere;
}

.wiki-article140 th {
  background: var(--violet-wiki);
}

.wiki-guide-note140 {
  border-color: #ac8dc8;
  background: #2a2240a8;
}

@media (max-width: 840px) {
  .wiki-row140 {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .wiki-row140 .wiki-thumb140 {
    width: 56px;
    height: 56px;
  }
  .wiki-row140 > .wiki-status-badge140 {
    grid-column: auto;
    justify-self: end;
  }
}

@media (max-width: 680px) {
  .wiki-header140 { min-height: 170px; }
  .wiki-cover-copy142 { padding: 18px 12px 18px 16px; }
  .wiki-cover-copy142 p { font-size: .83rem; }
  .wiki-cover142 { padding: 6px; }
  .wiki-cover142 figcaption {
    max-width: 22ch;
    padding: 3px 5px;
    font-size: .64rem;
  }
  .wiki-hubs140 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-hubs140 a,
  .wiki-hubs140 a:nth-child(-n+2) { min-height: 58px; padding: 7px 10px; }
  .wiki-search140 { grid-template-columns: minmax(0, 1fr) auto; }
  .wiki-search140 > div:first-child { grid-column: 1 / -1; }
  .wiki-browser140 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wiki-index140 { margin: 0; padding: 10px; }
  #wiki-categories140 {
    display: flex;
    gap: 5px;
    padding: 5px 6px 9px;
    overflow-x: auto;
    scrollbar-color: #a68aba var(--bg);
  }
  .wiki-index140 button {
    width: auto;
    min-height: 44px;
    padding-inline: 10px;
    border: 1px solid var(--line);
    white-space: nowrap;
  }
  .wiki-index-selects142 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .wiki-index140 label { margin-top: 6px; }
  .wiki-contents141 { display: flex; }
}

@media (max-width: 440px) {
  .wiki-header140 { grid-template-columns: minmax(0, 1fr); }
  .wiki-cover-copy142 { padding: 16px; }
  .wiki-cover-copy142 p { max-width: 40ch; }
  .wiki-cover142 { min-height: 116px; }
  .wiki-cover142::after {
    background: linear-gradient(90deg, #17142564, #17142500 60%),
      linear-gradient(0deg, #10101c8c, #10101c00 68%);
  }
  .wiki-index-selects142 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-index-selects142 > div:last-child { grid-column: 1 / -1; }
  .wiki-row140 {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 3px;
  }
  .wiki-row140 .wiki-thumb140 { width: 52px; height: 52px; }
  .wiki-row140 > .wiki-status-badge140 {
    grid-column: 2;
    justify-self: start;
  }
  .wiki-facts141 { grid-template-columns: 92px minmax(0, 1fr); }
  .wiki-facts141 dd, .wiki-facts141 dt { padding-inline: 8px; }
  .wiki-article140 section ol { padding-left: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .wiki-body140 *,
  .wiki-body140 *::before,
  .wiki-body140 *::after {
    scroll-behavior: auto !important;
  }
}

