/* FitK knowledge-platform skin
   Loaded after the legacy stylesheet so the existing application logic remains intact. */

:root {
  --wiki-bg: #0f1115;
  --wiki-surface: #15181d;
  --wiki-surface-raised: #1a1e24;
  --wiki-surface-soft: #12151a;
  --wiki-line: #303640;
  --wiki-line-soft: #242a33;
  --wiki-text: #f3f4f6;
  --wiki-muted: #a9b0ba;
  --wiki-faint: #777f8c;
  --wiki-link: #79a7ff;
  --wiki-link-hover: #a9c6ff;
  --wiki-red: #e33a40;
  --wiki-red-dark: #b8171e;
  --wiki-green: #70c696;
  --wiki-serif: Georgia, "Times New Roman", serif;
  --wiki-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wiki-header-height: 74px;
  --wiki-content-width: 1220px;
  --wiki-safe-top: env(safe-area-inset-top, 0px);
  --wiki-safe-right: env(safe-area-inset-right, 0px);
  --wiki-safe-bottom: env(safe-area-inset-bottom, 0px);
  --wiki-safe-left: env(safe-area-inset-left, 0px);
}

html {
  scroll-behavior: smooth;
}

body.wiki-site {
  min-width: 0;
  color: var(--wiki-text);
  background:
    radial-gradient(circle at 76% -10%, rgba(58, 88, 138, 0.1), transparent 32rem),
    var(--wiki-bg);
  font-family: var(--wiki-ui);
}

body.wiki-site::before,
body.wiki-site::after {
  display: none;
}

body.wiki-site a {
  color: var(--wiki-link);
}

body.wiki-site a:hover {
  color: var(--wiki-link-hover);
}

.wiki-skip-link {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff !important;
  background: var(--wiki-red);
  border-radius: 4px;
  transform: translateY(-140%);
}

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

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

/* Global header */

body.wiki-site .site-header.wiki-global-header {
  position: sticky;
  z-index: 1100;
  top: 0;
  min-height: calc(var(--wiki-header-height) + var(--wiki-safe-top));
  padding: var(--wiki-safe-top) 0 0;
  border: 0;
  border-bottom: 1px solid var(--wiki-line-soft);
  background: rgba(15, 17, 21, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.wiki-site .site-header.wiki-global-header::after {
  display: none;
}

body.wiki-site .wiki-global-header .navbar {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  gap: 18px;
  width: 100%;
  max-width: none;
  min-height: var(--wiki-header-height);
  margin: 0;
  padding-top: 0;
  padding-right: max(clamp(18px, 3vw, 42px), var(--wiki-safe-right));
  padding-bottom: 0;
  padding-left: max(clamp(18px, 3vw, 42px), var(--wiki-safe-left));
}

body.wiki-site .wiki-global-header .menu-toggle {
  position: relative;
  display: none;
  align-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 9px;
  color: var(--wiki-muted);
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
}

body.wiki-site .wiki-global-header .menu-toggle:hover {
  border-color: var(--wiki-line);
  background: var(--wiki-surface);
}

body.wiki-site .wiki-global-header .menu-toggle span {
  width: 100%;
  height: 2px;
  background: currentColor;
}

body.wiki-site .wiki-global-header .menu-toggle,
body.wiki-site .wiki-global-header .wiki-wordmark,
body.wiki-site .wiki-global-header .header-actions {
  order: 0;
}

body.wiki-site .wiki-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--wiki-text) !important;
  text-decoration: none;
}

body.wiki-site .wiki-wordmark .site-logo-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.05);
}

body.wiki-site .wiki-wordmark-copy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 0;
  width: auto;
  line-height: 1;
}

body.wiki-site .wiki-wordmark-copy > span,
body.wiki-site .wiki-wordmark-copy > strong {
  color: var(--wiki-text);
  font-family: var(--wiki-serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

body.wiki-site .wiki-wordmark-copy > strong {
  color: #fff;
  font-weight: 700;
}

body.wiki-site .wiki-wordmark-copy small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: var(--wiki-muted);
  font-family: var(--wiki-serif);
  font-size: 0.69rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

body.wiki-site .wiki-global-header .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
  margin: 0 0 0 18px;
  padding: 0;
}

body.wiki-site .wiki-global-header .nav-links > li > a {
  padding: 9px 10px;
  color: var(--wiki-muted);
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
}

body.wiki-site .wiki-global-header .nav-links > li > a:hover {
  color: var(--wiki-text);
  background: var(--wiki-surface);
}

body.wiki-site .wiki-global-header .nav-mobile-account {
  display: none;
}

body.wiki-site .wiki-global-header .nav-submenu {
  border-color: var(--wiki-line);
  background: var(--wiki-surface-raised);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

body.wiki-site .wiki-global-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

body.wiki-site .wiki-global-header .site-search {
  min-width: 42px;
}

body.wiki-site .wiki-global-header .site-search-field input {
  color: var(--wiki-text);
  border-color: var(--wiki-line);
  background: var(--wiki-surface);
}

body.wiki-site .wiki-global-header .site-search-toggle,
body.wiki-site .wiki-global-header .login-button,
body.wiki-site .wiki-global-header .profile-trigger {
  color: var(--wiki-text);
  border-color: var(--wiki-line);
  background: var(--wiki-surface);
  border-radius: 4px;
}

body.wiki-site .wiki-global-header .login-button:hover,
body.wiki-site .wiki-global-header .profile-trigger:hover {
  border-color: #525b69;
  background: var(--wiki-surface-raised);
}

/* Shared knowledge shell */

.wiki-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(30px, 4vw, 64px);
  width: min(1580px, 100%);
  margin: 0 auto;
  padding-top: 0;
  padding-right: max(clamp(20px, 3.2vw, 52px), var(--wiki-safe-right));
  padding-bottom: 0;
  padding-left: max(clamp(20px, 3.2vw, 52px), var(--wiki-safe-left));
}

.wiki-rail {
  position: sticky;
  top: calc(var(--wiki-header-height) + var(--wiki-safe-top) + 22px);
  align-self: start;
  max-height: calc(100vh - var(--wiki-header-height) - var(--wiki-safe-top) - 44px);
  max-height: calc(100dvh - var(--wiki-header-height) - var(--wiki-safe-top) - 44px);
  padding: 24px 18px 30px 0;
  overflow: auto;
  border-right: 1px solid var(--wiki-line-soft);
  scrollbar-width: thin;
}

.wiki-rail-section {
  display: grid;
  gap: 3px;
  margin-bottom: 24px;
}

.wiki-rail-section strong {
  margin: 0 0 7px 10px;
  color: var(--wiki-faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wiki-rail-section a {
  display: block;
  padding: 7px 10px;
  color: var(--wiki-muted) !important;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  font-size: 0.84rem;
  font-weight: 550;
  text-decoration: none;
}

.wiki-rail-section a:hover,
.wiki-rail-section a.is-active {
  color: var(--wiki-text) !important;
  border-left-color: var(--wiki-red);
  background: linear-gradient(90deg, rgba(227, 58, 64, 0.13), transparent);
}

.wiki-rail-note {
  margin: 18px 10px 0;
  padding-top: 18px;
  color: var(--wiki-faint);
  border-top: 1px solid var(--wiki-line-soft);
  font-size: 0.72rem;
  line-height: 1.6;
}

.wiki-main {
  min-width: 0;
  padding-bottom: 76px;
}

/* Home */

.wiki-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
  min-height: 610px;
  padding: clamp(64px, 8vw, 112px) 0 clamp(54px, 7vw, 90px);
  overflow: hidden;
  border-bottom: 1px solid var(--wiki-line);
}

.wiki-home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 10%, rgba(121, 167, 255, 0.045)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, 0.025) 49px 50px);
  mask-image: linear-gradient(90deg, transparent, #000 32%);
}

.wiki-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--wiki-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wiki-kicker > span {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--wiki-red);
}

.wiki-home-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-family: var(--wiki-serif);
  font-size: clamp(3.5rem, 6vw, 6.4rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.wiki-home-hero h1 em {
  color: var(--wiki-link);
  font-weight: 400;
}

.wiki-home-hero-copy > p:not(.wiki-kicker) {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--wiki-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.wiki-home-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  max-width: 690px;
  margin-top: 34px;
  padding-left: 15px;
  border: 1px solid #3b424e;
  border-radius: 4px;
  background: rgba(21, 24, 29, 0.88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.wiki-home-search:focus-within {
  border-color: var(--wiki-link);
  box-shadow: 0 0 0 2px rgba(121, 167, 255, 0.18);
}

.wiki-home-search svg {
  width: 20px;
  fill: none;
  stroke: var(--wiki-muted);
  stroke-width: 1.8;
}

.wiki-home-search input {
  min-width: 0;
  padding: 16px 14px;
  color: var(--wiki-text);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.wiki-home-search input::placeholder {
  color: #747d8a;
}

.wiki-home-search button {
  align-self: stretch;
  min-width: 78px;
  color: #fff;
  border: 0;
  border-left: 1px solid #3b424e;
  background: #252b34;
  font: 700 0.84rem var(--wiki-ui);
  cursor: pointer;
}

.wiki-home-search button:hover {
  background: #313946;
}

.wiki-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
}

.wiki-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  color: #fff !important;
  border: 1px solid var(--wiki-red);
  border-radius: 4px;
  background: var(--wiki-red-dark);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.wiki-primary-action:hover {
  background: var(--wiki-red);
}

.wiki-text-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wiki-link) !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.wiki-text-action span {
  transition: transform 0.16s ease;
}

.wiki-text-action:hover span {
  transform: translateX(4px);
}

.wiki-home-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 28px 24px;
}

.wiki-orbit-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: min(280px, 23vw);
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1;
}

.wiki-orbit-mark::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(121, 167, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(121, 167, 255, 0.06);
}

.wiki-orbit-mark img {
  width: 45%;
  height: 45%;
  object-fit: contain;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.08) drop-shadow(0 12px 25px rgba(0, 0, 0, 0.35));
}

.wiki-orbit {
  position: absolute;
  border: 1px solid rgba(169, 198, 255, 0.34);
  border-radius: 50%;
}

.wiki-orbit-one {
  inset: 2% 17%;
  transform: rotate(34deg);
}

.wiki-orbit-two {
  inset: 17% 2%;
  transform: rotate(-22deg);
}

.wiki-orbit-one::after,
.wiki-orbit-two::after {
  content: "";
  position: absolute;
  top: 48%;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wiki-red);
  box-shadow: 0 0 16px rgba(227, 58, 64, 0.8);
}

.wiki-hero-stat {
  display: grid;
  justify-items: center;
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
}

.wiki-hero-stat strong {
  color: #fff;
  font-family: var(--wiki-serif);
  font-size: 2.5rem;
  font-weight: 400;
}

.wiki-hero-stat span {
  color: var(--wiki-muted);
  font-size: 0.74rem;
}

.wiki-hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--wiki-line);
}

.wiki-hero-stat-grid span {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--wiki-faint);
  font-size: 0.7rem;
}

.wiki-hero-stat-grid span + span {
  border-left: 1px solid var(--wiki-line);
}

.wiki-hero-stat-grid strong {
  color: var(--wiki-text);
  font-size: 1rem;
}

.wiki-topic-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--wiki-line-soft);
  scrollbar-width: none;
}

.wiki-topic-strip::-webkit-scrollbar {
  display: none;
}

.wiki-topic-strip > span {
  padding-right: 12px;
  color: var(--wiki-faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wiki-topic-strip a {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: var(--wiki-muted) !important;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
}

.wiki-topic-strip a:hover {
  color: var(--wiki-text) !important;
  border-color: var(--wiki-line);
  background: var(--wiki-surface);
}

.wiki-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 18px;
  padding: 38px 0 18px;
}

.wiki-featured-panel,
.wiki-recent-panel {
  min-width: 0;
  border: 1px solid var(--wiki-line);
  background: var(--wiki-surface-soft);
}

.wiki-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wiki-line);
  background: #171a20;
}

.wiki-panel-heading > span {
  color: var(--wiki-text);
  font-family: var(--wiki-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.wiki-panel-heading > a {
  color: var(--wiki-link) !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.wiki-featured-empty {
  display: grid;
  align-content: center;
  min-height: 310px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.92), rgba(15, 17, 21, 0.62)),
    radial-gradient(circle at 84% 26%, rgba(121, 167, 255, 0.14), transparent 25rem);
}

.wiki-featured-empty h2,
.wiki-featured-content h2 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-family: var(--wiki-serif);
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 400;
  line-height: 1.05;
}

.wiki-featured-empty > p:not(.wiki-kicker),
.wiki-featured-content > p {
  max-width: 680px;
  margin: 20px 0;
  color: var(--wiki-muted);
  line-height: 1.7;
}

.wiki-featured-empty > a,
.wiki-featured-content > a {
  width: max-content;
  color: var(--wiki-link) !important;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.wiki-featured-content {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 310px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  background: #101216;
}

.wiki-featured-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.98) 0%, rgba(11, 13, 16, 0.83) 52%, rgba(11, 13, 16, 0.25) 100%),
    var(--featured-image, none) center / cover no-repeat;
}

.wiki-featured-content > * {
  position: relative;
  z-index: 1;
}

.wiki-featured-content .wiki-featured-meta {
  margin: 0 0 13px;
  color: #a9c6ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wiki-recent-list {
  display: grid;
  min-height: 310px;
}

.wiki-recent-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 18px 16px;
  color: inherit !important;
  border-bottom: 1px solid var(--wiki-line-soft);
  text-decoration: none;
}

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

.wiki-recent-item:hover {
  background: var(--wiki-surface-raised);
}

.wiki-recent-index {
  color: #667181;
  font-family: var(--wiki-serif);
  font-size: 1.75rem;
  line-height: 1;
}

.wiki-recent-item strong {
  display: block;
  color: var(--wiki-text);
  font-family: var(--wiki-serif);
  font-size: 1rem;
  line-height: 1.25;
}

.wiki-recent-item span:not(.wiki-recent-index) {
  display: block;
  margin-top: 6px;
  color: var(--wiki-faint);
  font-size: 0.7rem;
}

.wiki-empty-copy {
  align-self: center;
  margin: 0;
  padding: 28px;
  color: var(--wiki-faint);
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
}

.wiki-home-section {
  padding: 66px 0 22px;
}

.wiki-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--wiki-line);
}

.wiki-section-heading h2 {
  margin: 0;
  color: var(--wiki-text);
  font-family: var(--wiki-serif);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
}

.wiki-section-heading > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--wiki-faint);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: right;
}

body.wiki-site .home-blog-feed,
body.wiki-site .home-blog-feed .home-hero-posts,
body.wiki-site .home-wiki-posts {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.wiki-site .home-blog-feed .home-hero-posts .home-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

body.wiki-site .home-category-tile {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: 76px;
  align-items: center;
  min-height: 78px;
  color: var(--wiki-text);
  border: 1px solid var(--wiki-line-soft);
  border-radius: 3px;
  background: var(--wiki-surface);
  text-align: left;
  overflow: hidden;
}

body.wiki-site .home-category-tile:hover {
  color: #fff;
  border-color: #4c5665;
  background: var(--wiki-surface-raised);
  box-shadow: none;
  transform: translateY(-1px);
}

body.wiki-site .home-category-image {
  width: 76px;
  height: 76px;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04);
}

body.wiki-site .home-category-tile strong {
  display: block;
  min-height: 0;
  padding: 0 14px;
  color: inherit;
  font-family: var(--wiki-serif);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.wiki-atlas-callout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
  margin-top: 70px;
  padding: clamp(44px, 6vw, 78px);
  border: 1px solid var(--wiki-line);
  background:
    linear-gradient(135deg, rgba(121, 167, 255, 0.04), transparent 44%),
    #12151a;
}

.wiki-atlas-callout h2 {
  margin: 0;
  color: #fff;
  font-family: var(--wiki-serif);
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  font-weight: 400;
  line-height: 1.02;
}

.wiki-atlas-callout > div:last-child > p:not(.wiki-kicker) {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--wiki-muted);
  line-height: 1.75;
}

.wiki-atlas-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid #303a48;
  background:
    radial-gradient(circle at center, rgba(121, 167, 255, 0.09), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.025) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.025) 32px),
    #0e1116;
}

.wiki-atlas-axis {
  position: absolute;
  display: block;
  background: rgba(121, 167, 255, 0.28);
}

.wiki-atlas-axis-x {
  right: 10%;
  left: 10%;
  height: 1px;
}

.wiki-atlas-axis-y {
  top: 8%;
  bottom: 8%;
  width: 1px;
}

.wiki-atlas-body {
  position: relative;
  width: 112px;
  height: 280px;
  border: 1px solid rgba(227, 58, 64, 0.55);
  border-radius: 50% 50% 42% 42% / 18% 18% 65% 65%;
  background: linear-gradient(90deg, rgba(227, 58, 64, 0.2), rgba(121, 167, 255, 0.12), rgba(227, 58, 64, 0.2));
  box-shadow: 0 0 50px rgba(227, 58, 64, 0.12);
}

.wiki-atlas-body::before {
  content: "";
  position: absolute;
  top: -42px;
  left: 50%;
  width: 55px;
  height: 55px;
  border: 1px solid rgba(227, 58, 64, 0.55);
  border-radius: 50%;
  transform: translateX(-50%);
}

.wiki-atlas-body span {
  position: absolute;
  left: 50%;
  width: 80%;
  height: 1px;
  background: rgba(121, 167, 255, 0.45);
  transform: translateX(-50%);
}

.wiki-atlas-body span:nth-child(1) { top: 20%; }
.wiki-atlas-body span:nth-child(2) { top: 35%; }
.wiki-atlas-body span:nth-child(3) { top: 50%; }
.wiki-atlas-body span:nth-child(4) { top: 65%; }
.wiki-atlas-body span:nth-child(5) { top: 80%; }

.wiki-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wiki-latest-grid .post-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  min-height: 150px;
  padding: 13px;
  color: var(--wiki-text) !important;
  border: 1px solid var(--wiki-line-soft);
  border-radius: 3px;
  background: var(--wiki-surface);
  text-decoration: none;
}

.wiki-latest-grid .post-card:hover {
  border-color: #4d5868;
  background: var(--wiki-surface-raised);
  transform: none;
}

.wiki-latest-grid .post-cover {
  grid-row: 1 / 4;
  width: 116px;
  height: 124px;
  object-fit: cover;
  border-radius: 2px;
}

.wiki-latest-grid .post-card > span {
  align-self: end;
  color: var(--wiki-link);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wiki-latest-grid .post-card h3 {
  margin: 5px 0;
  color: var(--wiki-text);
  font-family: var(--wiki-serif);
  font-size: 1.1rem;
  line-height: 1.2;
}

.wiki-latest-grid .post-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--wiki-faint);
  font-size: 0.72rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wiki-latest-grid > .empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px;
  color: var(--wiki-faint);
  border: 1px dashed var(--wiki-line);
  background: var(--wiki-surface-soft);
  text-align: center;
}

/* Footer */

body.wiki-site .wiki-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding-top: 30px;
  padding-right: max(clamp(22px, 4vw, 58px), var(--wiki-safe-right));
  padding-bottom: calc(30px + var(--wiki-safe-bottom));
  padding-left: max(clamp(22px, 4vw, 58px), var(--wiki-safe-left));
  color: var(--wiki-faint);
  border-top: 1px solid var(--wiki-line);
  background: #0c0e11;
}

.wiki-footer > div {
  display: grid;
}

.wiki-footer > div strong {
  color: var(--wiki-text);
  font-family: var(--wiki-serif);
  font-size: 1.2rem;
}

.wiki-footer > div span {
  margin-top: 3px;
  font-size: 0.65rem;
}

.wiki-footer p {
  margin: 0;
  font-size: 0.72rem;
}

.wiki-footer nav {
  display: flex;
  gap: 15px;
}

.wiki-footer nav a {
  color: var(--wiki-muted) !important;
  font-size: 0.72rem;
  text-decoration: none;
}

/* Article shell and Wikipedia-style controls */

.wiki-article-shell {
  width: min(1650px, 100%);
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  gap: clamp(24px, 3vw, 46px);
}

body[data-article-width="wide"].wiki-site .wiki-article-shell {
  width: 100%;
  max-width: none;
  grid-template-columns: 180px minmax(0, 1fr) 170px;
  gap: clamp(18px, 2vw, 30px);
}

.wiki-article-aside {
  position: sticky;
  top: calc(var(--wiki-header-height) + 25px);
  align-self: start;
  max-height: calc(100vh - var(--wiki-header-height) - 48px);
  padding-top: 24px;
  overflow: auto;
}

.wiki-article-aside strong {
  display: block;
  margin-bottom: 11px;
  padding-bottom: 9px;
  color: var(--wiki-text);
  border-bottom: 1px solid var(--wiki-line);
  font-family: var(--wiki-serif);
  font-size: 0.95rem;
}

.wiki-article-aside a,
.wiki-article-aside button {
  display: block;
  width: 100%;
  padding: 6px 0;
  color: var(--wiki-muted);
  border: 0;
  background: transparent;
  font: 500 0.76rem/1.35 var(--wiki-ui);
  text-align: left;
  text-decoration: none;
}

.wiki-article-aside a:hover,
.wiki-article-aside button:hover {
  color: var(--wiki-link);
}

.wiki-rail .wiki-rail-toc {
  position: static;
  display: block;
  width: auto;
  max-height: none;
  margin: 8px 0 0;
  padding: 18px 10px 0;
  overflow: visible;
  color: var(--wiki-muted);
  border: 0;
  border-top: 1px solid var(--wiki-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wiki-rail .wiki-rail-toc .toc-heading {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.wiki-rail .wiki-rail-toc .toc-heading strong {
  color: var(--wiki-text);
  font-family: var(--wiki-serif);
  font-size: 0.92rem;
}

.wiki-rail .wiki-rail-toc .toc-link {
  padding: 5px 0;
  color: var(--wiki-muted) !important;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  line-height: 1.35;
}

.wiki-rail .wiki-rail-toc .toc-link:hover {
  color: var(--wiki-link) !important;
}

.wiki-rail .wiki-rail-toc .toc-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 3px;
}

.wiki-rail .wiki-rail-toc .toc-toggle,
.wiki-rail .wiki-rail-toc .toc-toggle-spacer {
  width: 14px;
  min-height: 24px;
  padding: 0;
  color: var(--wiki-faint);
  border: 0;
  background: transparent;
  font-size: 0.68rem;
}

.wiki-rail .wiki-rail-toc .toc-children {
  margin-left: 17px;
}

.wiki-article-aside .article-appearance {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  color: var(--wiki-muted);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wiki-article-aside .article-appearance fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.wiki-article-aside .article-appearance legend {
  margin-bottom: 6px;
  color: var(--wiki-faint);
  font-size: 0.68rem;
}

.wiki-article-aside .article-appearance label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
}

.wiki-article-aside .article-text-stepper-controls {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--wiki-line);
  border-radius: 3px;
}

.wiki-article-aside .article-text-stepper-controls button {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0;
  color: var(--wiki-text);
  text-align: center;
}

.wiki-article-aside .article-text-stepper-controls span {
  text-align: center;
}

.wiki-article-main {
  min-width: 0;
  padding: 34px 0 80px;
}

.wiki-article-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--wiki-line);
}

.wiki-tab-group {
  display: flex;
  min-width: 0;
}

.wiki-tab-group a,
.wiki-tab-group button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: -1px;
  padding: 8px 10px;
  color: var(--wiki-link);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: 650 0.78rem var(--wiki-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.wiki-tab-group .is-active {
  color: var(--wiki-text);
  border-bottom-color: var(--wiki-text);
}

.wiki-tab-group button:hover,
.wiki-tab-group a:hover {
  color: var(--wiki-text);
  background: var(--wiki-surface);
}

body.wiki-site .article-reading-layout.wiki-article-reading-layout {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.wiki-site .article-page.wiki-article-page.section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 30px 0 0;
}

.wiki-article-page .eyebrow {
  margin: 0 0 8px;
  color: var(--wiki-faint);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.wiki-article-page .article-title-row {
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--wiki-line);
}

.wiki-article-page #article-title {
  margin: 0;
  color: #fff;
  font-family: var(--wiki-serif);
  font-size: var(--article-title-size, clamp(2.4rem, 4.2vw, 4.35rem));
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.wiki-article-page .article-summary {
  margin: 20px 0 0;
  padding: 0;
  color: #d5d9df;
  border: 0;
  font-family: var(--wiki-serif);
  font-size: var(--article-summary-size, 1.15rem);
  line-height: 1.62;
}

.wiki-article-page .article-meta {
  margin: 22px 0 28px;
  padding: 12px 0;
  border-top: 1px solid var(--wiki-line-soft);
  border-bottom: 1px solid var(--wiki-line-soft);
}

.wiki-article-page .article-author-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wiki-article-page .article-meta-label {
  display: none;
}

.wiki-article-page .article-person-avatar {
  width: 34px;
  height: 34px;
}

.wiki-article-page .article-person-text strong {
  color: var(--wiki-text);
  font-size: 0.76rem;
}

.wiki-article-page .article-person-id {
  color: var(--wiki-faint);
  font-size: 0.68rem;
}

.wiki-article-page .article-meta-actions {
  display: flex;
  gap: 5px;
}

.wiki-article-page .article-quick-button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--wiki-muted);
  border: 1px solid var(--wiki-line);
  border-radius: 3px;
  background: var(--wiki-surface);
  font-size: 0.7rem;
}

.wiki-article-page .article-quick-button:hover,
.wiki-article-page .article-quick-button#edit-post {
  color: var(--wiki-text);
  border-color: #4e5867;
}

.wiki-article-page .article-body {
  color: #e5e7eb;
  font-family: var(--wiki-serif);
  font-size: var(--article-text-size, 1.06rem);
  line-height: 1.82;
}

.wiki-article-page .article-body > p:first-child {
  font-size: inherit;
}

.wiki-article-page .article-body h2 {
  margin: 2.15em 0 0.65em;
  padding-bottom: 0.22em;
  color: #fff;
  border-bottom: 1px solid var(--wiki-line);
  font-family: var(--wiki-serif);
  font-size: var(--article-h2-size, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.wiki-article-page .article-body h3 {
  margin: 1.8em 0 0.55em;
  color: #f4f5f6;
  font-family: var(--wiki-serif);
  font-size: var(--article-h3-size, 1.45rem);
  font-weight: 700;
}

.wiki-article-page .article-body a {
  color: var(--wiki-link);
}

.wiki-article-page .article-body blockquote {
  margin: 1.5em 0;
  padding: 13px 18px;
  color: #d8dce2;
  border-left: 3px solid var(--wiki-link);
  background: rgba(121, 167, 255, 0.06);
}

.wiki-article-page .article-body table {
  border-collapse: collapse;
  color: var(--wiki-text);
  font-family: var(--wiki-ui);
  font-size: 0.78rem;
}

.wiki-article-page .article-body th,
.wiki-article-page .article-body td {
  padding: 8px 10px;
  border: 1px solid #48515d;
}

.wiki-article-page .article-body th {
  background: #20252c;
}

.wiki-article-page .references {
  margin-top: 3rem;
}

.wiki-article-page .references ol {
  padding-left: 1.8rem;
  font-family: var(--wiki-ui);
  font-size: 0.78rem;
  line-height: 1.65;
}

.wiki-article-page .article-tags {
  margin-top: 40px;
  padding: 16px;
  border: 1px solid var(--wiki-line);
  background: var(--wiki-surface);
}

.wiki-article-page .article-tags h2 {
  margin: 0 0 10px;
  font-family: var(--wiki-serif);
  font-size: 1.1rem;
}

.wiki-article-page .article-tag {
  color: var(--wiki-link);
  border-color: var(--wiki-line);
  background: transparent;
}

/* Inline visual editor */

body.wiki-site .article-inline-editor {
  position: sticky;
  z-index: 700;
  top: calc(var(--wiki-header-height) + var(--wiki-safe-top) + 2px);
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid #48515f;
  border-radius: 3px;
  background: #171b21;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

body.wiki-site .article-inline-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 7px;
  border-bottom: 1px solid var(--wiki-line);
  background: #111419;
}

body.wiki-site .article-inline-toolbar button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--wiki-muted);
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font-size: 0.72rem;
}

body.wiki-site .article-inline-toolbar button:hover {
  color: #fff;
  border-color: var(--wiki-line);
  background: var(--wiki-surface-raised);
}

body.wiki-site .article-inline-toolbar button:disabled {
  color: #555e6a;
  cursor: not-allowed;
  opacity: 0.55;
}

body.wiki-site .article-inline-toolbar button.is-primary {
  margin-left: auto;
  color: #fff;
  border-color: var(--wiki-red);
  background: var(--wiki-red-dark);
}

body.wiki-site .article-inline-panel,
body.wiki-site .article-inline-note,
body.wiki-site .article-inline-editor > .form-note {
  margin: 0;
  padding: 14px;
}

body.wiki-site .article-inline-panel {
  border-bottom: 1px solid var(--wiki-line);
  background: var(--wiki-surface-raised);
}

body.wiki-site .article-inline-panel .anatomy-atlas-results {
  display: grid;
  gap: 8px;
  max-height: 330px;
  margin-top: 12px;
  overflow: auto;
}

body.wiki-site .article-inline-panel .anatomy-atlas-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--wiki-line);
  background: #111419;
}

body.wiki-site .article-inline-panel .anatomy-atlas-result div {
  min-width: 0;
}

body.wiki-site .article-inline-panel .anatomy-atlas-result span,
body.wiki-site .article-inline-panel .anatomy-atlas-result small {
  display: block;
  color: var(--wiki-faint);
  font-size: 0.66rem;
}

body.wiki-site .article-inline-panel .anatomy-atlas-result strong {
  display: block;
  margin: 3px 0;
  color: var(--wiki-text);
  font-family: var(--wiki-serif);
}

body.wiki-site .article-inline-panel .anatomy-atlas-result p {
  margin: 3px 0 0;
  color: var(--wiki-muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

body.wiki-site .article-inline-panel .anatomy-atlas-result button.is-primary,
body.wiki-site .article-inline-panel [data-inline-insert-external-model] {
  min-height: 34px;
  padding: 6px 10px;
  color: #fff;
  border: 1px solid var(--wiki-red);
  border-radius: 3px;
  background: var(--wiki-red-dark);
}

body.wiki-site .article-inline-panel input,
body.wiki-site .article-inline-panel textarea,
body.wiki-site .article-inline-note textarea {
  color: var(--wiki-text);
  border-color: #434c59;
  background: #101318;
}

body.wiki-site .article-body.is-inline-editing {
  min-height: 260px;
  padding: 22px;
  outline: 2px solid rgba(121, 167, 255, 0.62);
  outline-offset: 4px;
  background: rgba(121, 167, 255, 0.025);
}

body.wiki-site .article-body.is-inline-editing > *:hover {
  outline: 1px dashed rgba(121, 167, 255, 0.42);
  outline-offset: 3px;
}

body.wiki-site .article-body.is-inline-editing .is-inline-object-selected {
  outline: 2px solid var(--wiki-link);
  outline-offset: 4px;
}

.inline-object-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
  padding: 8px;
  color: var(--wiki-muted);
  border: 1px solid var(--wiki-line);
  background: var(--wiki-surface-raised);
  font: 600 0.72rem var(--wiki-ui);
}

.inline-object-actions button {
  margin-left: auto;
  min-height: 32px;
  padding: 5px 10px;
  color: #fff;
  border: 1px solid #8e252a;
  border-radius: 3px;
  background: #58171b;
}

.inline-object-actions button + button {
  margin-left: 0;
}

/* Full editor */

.wiki-editor-main {
  width: min(1460px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.wiki-editor-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 17px;
  border-bottom: 1px solid var(--wiki-line);
}

.wiki-editor-topline h1 {
  margin: 0;
  color: #fff;
  font-family: var(--wiki-serif);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 400;
}

.wiki-editor-topline p {
  max-width: 560px;
  margin: 0;
  color: var(--wiki-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

body.wiki-site .editor-layout.wiki-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 0 0;
}

body.wiki-site .wiki-editor {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.wiki-site .wiki-editor > label,
body.wiki-site .wiki-editor .editor-summary-panel > label,
body.wiki-site .wiki-editor .editor-meta-row label,
body.wiki-site .wiki-editor .editor-content-header > label {
  color: var(--wiki-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.wiki-site .wiki-editor input,
body.wiki-site .wiki-editor textarea,
body.wiki-site .wiki-editor select {
  color: var(--wiki-text);
  border-color: #424b57;
  border-radius: 3px;
  background: var(--wiki-surface);
}

body.wiki-site #editor-title {
  padding: 12px 0;
  color: #fff;
  border: 0;
  border-bottom: 1px solid var(--wiki-line);
  border-radius: 0;
  background: transparent;
  font-family: var(--wiki-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

body.wiki-site .compact-wiki-toolbar {
  position: sticky;
  z-index: 600;
  top: calc(var(--wiki-header-height) + var(--wiki-safe-top) + 2px);
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 7px;
  border: 1px solid #424b57;
  border-radius: 3px 3px 0 0;
  background: #111419;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

body.wiki-site .compact-wiki-toolbar button {
  min-height: 34px;
  color: var(--wiki-muted);
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
}

body.wiki-site .compact-wiki-toolbar button:hover {
  color: #fff;
  border-color: var(--wiki-line);
  background: var(--wiki-surface-raised);
}

body.wiki-site .wiki-canvas {
  min-height: 650px;
  padding: clamp(24px, 4vw, 54px);
  color: #e5e7eb;
  border: 1px solid #424b57;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  background: #12151a;
  font-family: var(--wiki-serif);
  font-size: 1.04rem;
  line-height: 1.78;
}

body.wiki-site .wiki-canvas:focus {
  outline: 2px solid rgba(121, 167, 255, 0.58);
  outline-offset: 1px;
}

body.wiki-site .wiki-note {
  position: sticky;
  top: calc(var(--wiki-header-height) + 24px);
  align-self: start;
  padding: 18px;
  color: var(--wiki-muted);
  border: 1px solid var(--wiki-line);
  border-radius: 3px;
  background: var(--wiki-surface-soft);
  box-shadow: none;
}

body.wiki-site .wiki-note h2 {
  margin: 0 0 12px;
  color: var(--wiki-text);
  font-family: var(--wiki-serif);
  font-size: 1.15rem;
}

body.wiki-site .wiki-note p {
  font-size: 0.72rem;
  line-height: 1.65;
}

body.wiki-site .reference-panel,
body.wiki-site .link-panel,
body.wiki-site .media-panel,
body.wiki-site .video-panel,
body.wiki-site .table-panel,
body.wiki-site .anatomy-embed-panel,
body.wiki-site .anatomy-atlas-panel,
body.wiki-site .anatomy-template-panel {
  border: 1px solid #46505e;
  border-radius: 3px;
  background: #181c22;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.4);
}

.anatomy-source-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wiki-line);
}

#anatomy-atlas-panel > label,
#anatomy-atlas-panel > input,
#anatomy-atlas-panel > .anatomy-inline-check,
#anatomy-atlas-panel > .form-note {
  margin-right: 14px;
  margin-left: 14px;
}

#anatomy-atlas-panel > input {
  width: calc(100% - 28px);
  margin-bottom: 12px;
}

#anatomy-atlas-panel > .anatomy-inline-check {
  margin-bottom: 9px;
}

.anatomy-embed-panel > .anatomy-help {
  margin: 14px;
}

.anatomy-source-tabs button {
  min-height: 36px;
  padding: 7px 11px;
  color: var(--wiki-muted);
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
}

.anatomy-source-tabs button.is-active {
  color: #fff;
  border-color: var(--wiki-line);
  background: #242a33;
}

.anatomy-source-pane[hidden] {
  display: none !important;
}

.anatomy-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}

.anatomy-option-grid .is-wide {
  grid-column: 1 / -1;
}

.anatomy-layer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid var(--wiki-line);
  background: #111419;
}

.anatomy-layer-options label,
.anatomy-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--wiki-muted);
  font-size: 0.75rem;
}

.anatomy-help {
  margin: 8px 0 0;
  color: var(--wiki-faint);
  font-size: 0.7rem;
  line-height: 1.55;
}

.anatomy-embed-panel > .anatomy-inline-check,
.anatomy-embed-panel > #insert-anatomy-embed,
.anatomy-embed-panel > .form-note {
  margin: 0 14px 14px;
}

/* 3D article cards */

body.wiki-site .article-anatomy-embed {
  margin: 2rem 0;
  border: 1px solid #48525f;
  border-radius: 3px;
  background: #111419;
}

body.wiki-site .article-anatomy-stage {
  height: var(--anatomy-stage-height, 460px);
  min-height: var(--anatomy-stage-height, 460px);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(121, 167, 255, 0.08), transparent 45%),
    #0d1014;
}

body.wiki-site .article-anatomy-stage canvas {
  height: var(--anatomy-stage-height, 460px);
  min-height: var(--anatomy-stage-height, 460px);
}

body.wiki-site .wiki-anatomy-template > .article-anatomy-embed {
  width: 100%;
  margin: 0;
  border-radius: 3px 3px 0 0;
}

body.wiki-site .wiki-anatomy-template > .wiki-anatomy-card {
  color: var(--wiki-text);
  border-color: var(--wiki-line);
  border-left-color: var(--wiki-line);
  background: var(--wiki-surface);
}

body.wiki-site .wiki-anatomy-template > .wiki-anatomy-card > span {
  color: var(--wiki-text);
  border-color: var(--wiki-line);
  background: #20252c;
}

body.wiki-site .wiki-anatomy-template > .wiki-anatomy-card h2,
body.wiki-site .wiki-anatomy-template > .wiki-anatomy-card dt {
  color: var(--wiki-text);
}

body.wiki-site .wiki-anatomy-template > .wiki-anatomy-card > p,
body.wiki-site .wiki-anatomy-template > .wiki-anatomy-card dd {
  color: var(--wiki-muted);
}

body.wiki-site .wiki-anatomy-template > .wiki-anatomy-card dl,
body.wiki-site .wiki-anatomy-template > .wiki-anatomy-card dl div {
  border-color: var(--wiki-line);
}

body.wiki-site .article-anatomy-toolbar {
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(82, 93, 108, 0.8);
  border-radius: 3px;
  background: rgba(16, 19, 24, 0.9);
  backdrop-filter: blur(12px);
}

body.wiki-site .article-anatomy-toolbar button,
body.wiki-site .article-anatomy-toolbar a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--wiki-muted);
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font: 650 0.66rem var(--wiki-ui);
  pointer-events: auto;
  text-decoration: none;
}

body.wiki-site .article-anatomy-status.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.wiki-site .article-anatomy-status.is-warning {
  border-color: rgba(251, 191, 36, 0.52);
  color: #fde68a;
}

body.wiki-site .article-anatomy-status.is-error {
  border-color: rgba(239, 68, 68, 0.58);
  color: #fecaca;
}

body.wiki-site .article-anatomy-toolbar button:hover,
body.wiki-site .article-anatomy-toolbar button.is-active,
body.wiki-site .article-anatomy-toolbar a:hover {
  color: #fff;
  border-color: #4c5665;
  background: #242a33;
}

body.wiki-site .article-anatomy-embed figcaption {
  padding: 11px 14px;
  color: var(--wiki-muted);
  border-top: 1px solid var(--wiki-line);
  background: var(--wiki-surface);
  font-family: var(--wiki-ui);
  font-size: 0.72rem;
}

/* Responsive */

@media (max-width: 1260px) {
  body.wiki-site .wiki-global-header .menu-toggle {
    display: grid;
  }

  body.wiki-site .wiki-global-header .nav-links {
    display: none;
  }

  body.wiki-site .wiki-global-header .nav-links.is-open,
  body.wiki-site .wiki-global-header .nav-links.is-closing {
    position: fixed;
    top: calc(var(--wiki-header-height) + var(--wiki-safe-top) + 8px);
    right: max(14px, var(--wiki-safe-right));
    left: max(14px, var(--wiki-safe-left));
    width: auto;
    max-width: none;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - var(--wiki-header-height) - var(--wiki-safe-top) - 24px);
    max-height: calc(100dvh - var(--wiki-header-height) - var(--wiki-safe-top) - var(--wiki-safe-bottom) - 24px);
    margin: 0;
    padding: 10px;
    overflow: auto;
    border: 1px solid var(--wiki-line);
    border-radius: 4px;
    background: rgba(20, 23, 28, 0.98);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
  }

  body.wiki-site .wiki-global-header .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.wiki-site .wiki-global-header .nav-links.is-closing {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateY(-12px) scale(0.985);
    transition:
      opacity 0.24s ease,
      transform 0.28s ease;
  }

  body.wiki-site .wiki-global-header .nav-links.is-open > li {
    opacity: 1;
    transform: none;
  }

  body.wiki-site .wiki-global-header .nav-links.is-closing > li {
    pointer-events: none;
  }

  body.wiki-site .wiki-global-header .nav-links.is-open > li > a,
  body.wiki-site .wiki-global-header .nav-links.is-closing > li > a,
  body.wiki-site .wiki-global-header .nav-links.is-open > li > button,
  body.wiki-site .wiki-global-header .nav-links.is-closing > li > button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
  }

  body.wiki-site .wiki-global-header .nav-links > li > button {
    color: var(--wiki-muted);
    border: 0;
    border-radius: 4px;
    background: transparent;
    font: 600 0.84rem var(--wiki-ui);
    text-align: left;
    cursor: pointer;
  }

  body.wiki-site .wiki-global-header .nav-links > li > button:hover,
  body.wiki-site .wiki-global-header .nav-links > li > button:focus-visible {
    color: var(--wiki-text);
    background: var(--wiki-surface);
  }

  body.wiki-site .wiki-global-header .nav-links .nav-submenu {
    position: static;
    display: none;
    margin: 2px 0 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    box-shadow: none;
  }

  body.wiki-site .wiki-global-header .nav-links .nav-dropdown.is-expanded .nav-submenu {
    display: grid;
    max-height: 320px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.wiki-site .wiki-global-header .nav-dropdown > a::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-left: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
  }

  body.wiki-site .wiki-global-header .nav-dropdown.is-expanded > a::after {
    transform: rotate(225deg);
  }

  body.wiki-site .wiki-global-header .navbar {
    grid-template-columns: auto minmax(180px, auto) minmax(0, 1fr);
  }

  body.wiki-site .wiki-global-header .header-actions {
    grid-column: 3;
  }

  .wiki-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
  }

  .wiki-article-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }

  body[data-article-width="wide"].wiki-site .wiki-article-shell {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 30px;
  }

  .wiki-article-tools {
    display: none;
  }

  .wiki-home-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(200px, 0.45fr);
    gap: clamp(26px, 3vw, 40px);
  }

  .wiki-home-hero-panel {
    min-width: 0;
    max-width: 100%;
    padding-inline: 0;
  }

  .wiki-orbit-mark {
    width: min(210px, 100%);
    min-width: 0;
    max-width: 100%;
  }

  .wiki-hero-stat-grid {
    max-width: 100%;
  }

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

@media (max-width: 980px) {
  :root {
    --wiki-header-height: 66px;
  }

  body.wiki-site .wiki-global-header .navbar {
    min-height: var(--wiki-header-height);
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding-right: max(14px, var(--wiki-safe-right));
    padding-left: max(14px, var(--wiki-safe-left));
  }

  body.wiki-site .wiki-global-header .header-actions {
    grid-column: auto;
  }

  body.wiki-site .wiki-wordmark .site-logo-image {
    width: 40px;
    height: 40px;
  }

  body.wiki-site .wiki-wordmark-copy > span,
  body.wiki-site .wiki-wordmark-copy > strong {
    font-size: 1.35rem;
  }

  body.wiki-site .wiki-wordmark-copy small {
    display: none;
  }

  .wiki-shell,
  .wiki-article-shell {
    display: block;
    width: 100%;
    padding-right: max(clamp(18px, 4vw, 38px), var(--wiki-safe-right));
    padding-left: max(clamp(18px, 4vw, 38px), var(--wiki-safe-left));
  }

  .wiki-rail,
  .wiki-article-aside {
    display: none;
  }

  .wiki-home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 72px;
  }

  .wiki-home-hero-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 28px;
    justify-items: start;
    width: min(620px, 100%);
    padding: 22px 0 0;
  }

  .wiki-orbit-mark {
    grid-row: 1 / 3;
    width: 190px;
    min-width: 190px;
  }

  .wiki-hero-stat {
    align-self: end;
    justify-items: start;
  }

  .wiki-hero-stat-grid {
    align-self: start;
  }

  .wiki-editorial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.wiki-site .home-blog-feed .home-hero-posts .home-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-atlas-callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wiki-atlas-visual {
    min-height: 300px;
  }

  body.wiki-site .editor-layout.wiki-editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.wiki-site .wiki-note {
    position: static;
  }

  .wiki-editor-topline {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 700px) {
  body.wiki-site .wiki-global-header .navbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body.wiki-site .wiki-wordmark .site-logo-image {
    width: 36px;
    height: 36px;
  }

  body.wiki-site .wiki-wordmark-copy > span,
  body.wiki-site .wiki-wordmark-copy > strong {
    font-size: 1.18rem;
  }

  body.wiki-site .wiki-global-header .login-button,
  body.wiki-site .wiki-global-header .profile-menu {
    display: none;
  }

  body.wiki-site .wiki-global-header .nav-mobile-account {
    display: block;
  }

  body.wiki-site .wiki-global-header .site-search {
    margin-left: auto;
  }

  .wiki-home-hero {
    padding-top: 54px;
  }

  .wiki-home-hero h1 {
    font-size: clamp(3rem, 15vw, 4.35rem);
  }

  .wiki-home-hero-copy > p:not(.wiki-kicker) {
    font-size: 0.96rem;
  }

  .wiki-home-search {
    grid-template-columns: 20px minmax(0, 1fr);
    padding-left: 12px;
  }

  .wiki-home-search button {
    grid-column: 1 / -1;
    min-height: 44px;
    border-top: 1px solid #3b424e;
    border-left: 0;
  }

  body.wiki-site .editor-actions {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  body.wiki-site .editor-actions .btn {
    width: 100%;
    min-height: 48px;
    flex: 0 0 auto;
  }

  .wiki-home-hero-panel {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .wiki-orbit-mark {
    grid-row: auto;
    width: 210px;
  }

  .wiki-hero-stat {
    justify-items: center;
  }

  .wiki-hero-stat-grid {
    max-width: 330px;
  }

  .wiki-section-heading {
    display: grid;
    align-items: start;
  }

  .wiki-section-heading > p {
    text-align: left;
  }

  body.wiki-site .home-blog-feed .home-hero-posts .home-post-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wiki-atlas-callout {
    margin-top: 50px;
    padding: 28px 20px;
  }

  .wiki-latest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wiki-latest-grid .post-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .wiki-latest-grid .post-cover {
    width: 92px;
    height: 112px;
  }

  body.wiki-site .wiki-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .wiki-article-main {
    padding-top: 20px;
  }

  .wiki-article-tabs {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .wiki-article-tabs .wiki-tab-group {
    width: max-content;
  }

  .wiki-article-page #article-title {
    font-size: min(var(--article-title-size, 2.65rem), 2.65rem);
  }

  .wiki-article-page .article-summary {
    font-size: 1.02rem;
  }

  .wiki-article-page .article-author-card {
    align-items: flex-start;
  }

  .wiki-article-page .article-meta-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.wiki-site .article-inline-editor {
    top: calc(var(--wiki-header-height) + var(--wiki-safe-top));
    max-height: calc(100vh - var(--wiki-header-height) - var(--wiki-safe-top) - var(--wiki-safe-bottom));
    max-height: calc(100dvh - var(--wiki-header-height) - var(--wiki-safe-top) - var(--wiki-safe-bottom));
    overflow: auto;
  }

  body.wiki-site .article-inline-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  body.wiki-site .article-inline-toolbar button {
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
  }

  body.wiki-site .article-inline-toolbar button.is-primary {
    margin-left: 0;
  }

  body.wiki-site .compact-wiki-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  body.wiki-site .compact-wiki-toolbar button {
    flex: 0 0 auto;
    min-height: 44px;
  }

  body.wiki-site .wiki-canvas {
    min-height: 520px;
    padding: 24px 18px;
  }

  .anatomy-option-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .anatomy-option-grid .is-wide {
    grid-column: auto;
  }

  body.wiki-site .article-anatomy-stage {
    height: auto;
    min-height: 0;
  }

  body.wiki-site .article-anatomy-stage canvas {
    height: min(var(--anatomy-stage-height, 390px), 70vh);
    min-height: min(var(--anatomy-stage-height, 390px), 70vh);
  }
}

@media (max-width: 390px) {
  body.wiki-site .wiki-wordmark-copy > span,
  body.wiki-site .wiki-wordmark-copy > strong {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  body.wiki-site .wiki-global-header .navbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .wiki-shell,
  .wiki-article-shell {
    padding-right: max(14px, var(--wiki-safe-right));
    padding-left: max(14px, var(--wiki-safe-left));
  }

  .wiki-home-hero h1 {
    font-size: 3rem;
  }

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

  .wiki-primary-action,
  .wiki-text-action {
    justify-content: center;
  }

  .wiki-featured-empty,
  .wiki-featured-content {
    padding: 27px 20px;
  }

  .wiki-featured-empty h2,
  .wiki-featured-content h2 {
    font-size: 1.85rem;
  }

  .wiki-latest-grid .post-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .wiki-latest-grid .post-cover {
    grid-row: auto;
    width: 100%;
    height: 160px;
  }

  .wiki-article-page #article-title {
    font-size: min(var(--article-title-size, 2.25rem), 2.25rem);
  }

  .wiki-article-page .article-author-card {
    display: grid;
  }

  .wiki-article-page .article-meta-actions {
    justify-content: flex-start;
  }
}

@media print {
  .wiki-global-header,
  .wiki-rail,
  .wiki-article-aside,
  .wiki-article-tabs,
  .wiki-footer {
    display: none !important;
  }

  .wiki-shell,
  .wiki-article-shell {
    display: block;
    width: 100%;
    padding: 0;
  }
}
