.wiki-page { background: #0d0914; color: #eee5f5; }
.wiki-shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 52px 0 80px; }
.wiki-heading { margin-bottom: 30px; }
.wiki-heading h1 { margin: 12px 0 18px; font: 500 clamp(2.1rem, 4.5vw, 4.3rem)/1.12 Cinzel, serif; overflow-wrap: anywhere; }
.wiki-heading h1 em { color: #e799ee; font-style: normal; }
.wiki-heading > p:not(.eyebrow) { color: #c7b8d4; line-height: 1.7; }
.wiki-home-heading { max-width: 760px; }
.wiki-count { display: inline-block; margin-top: 18px; padding: 8px 14px; border: 1px solid #714187; border-radius: 20px; color: #e9b2f1; font-size: .8rem; }
.wiki-notice { padding: 20px 24px; margin: 24px 0 30px; background: #20142b; border: 1px solid #654074; border-left: 3px solid #cf7bdc; border-radius: 8px; }
.wiki-notice strong { color: #f1cff6; font-size: .95rem; }
.wiki-notice p { color: #d1c0dc; font-size: .88rem; line-height: 1.8; margin: 8px 0; }
.wiki-notice a, .wiki-source-note a, .wiki-credits a { color: #efa6e2; text-decoration: underline; text-underline-offset: 3px; }
.wiki-notice > a { font-size: .86rem; }
.wiki-search { display: grid; grid-template-columns: minmax(0, 1fr) 235px auto; gap: 16px; align-items: end; }
.wiki-search label { display: block; margin-bottom: 8px; color: #ceb9dd; font-size: .82rem; }
.wiki-search input, .wiki-search select { width: 100%; min-width: 0; height: 48px; border: 1px solid #664578; border-radius: 6px; padding: 0 14px; background: #171020; color: #f6eefa; font: inherit; }
.wiki-search input::placeholder { color: #ab97b9; }
.wiki-search button { min-height: 48px; padding: 12px 24px; border: 0; border-radius: 6px; background: var(--neon-gradient); color: #fff; font: 700 .87rem Inter,sans-serif; cursor: pointer; }
.wiki-results { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 28px 0 18px; font-size: .82rem; color: #b5a3c4; }
.wiki-results a { color: #efa6e2; }
.wiki-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.wiki-card { display: flex; flex-direction: column; min-height: 205px; padding: 26px; border: 1px solid #412d52; border-radius: 10px; background: linear-gradient(140deg,#21152c,#15101e); transition: border-color .2s, transform .2s; }
.wiki-card:hover { border-color: #bb72dd; transform: translateY(-3px); }
.wiki-card-category { color: #e5a3e8; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.wiki-card h2 { color: #f2e5fa; font: 500 1.23rem/1.4 Cinzel,serif; margin: 16px 0 10px; }
.wiki-card p { margin: 0 0 24px; font-size: .8rem; color: #b4a0c5; line-height: 1.5; }
.wiki-card-open { display: flex; justify-content: space-between; margin-top: auto; color: #eaaeeb; font-size: .8rem; }
.wiki-source-note { margin: 34px 0 0; color: #bba9c9; font-size: .8rem; line-height: 1.8; }
.wiki-empty { padding: 30px 0; color: #d8c6e5; }
.wiki-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; color: #b5a2c3; font-size: .83rem; }
.wiki-breadcrumb a { color: #edadeb; }
.wiki-reading-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 44px; }
.wiki-sidebar { align-self: start; position: sticky; top: 24px; max-height: calc(100svh - 48px); overflow: auto; padding: 20px; border: 1px solid #422e52; border-radius: 8px; background: #15101e; }
.wiki-sidebar summary { cursor: pointer; font-size: .9rem; color: #ecd5f7; }
.wiki-sidebar h2 { font: 600 .72rem Inter,sans-serif; text-transform: uppercase; letter-spacing: .07em; margin: 26px 0 10px; color: #dd9de6; }
.wiki-sidebar a { display: block; font-size: .8rem; color: #bdaccb; line-height: 1.5; padding: 8px; border-radius: 4px; }
.wiki-sidebar a:hover, .wiki-sidebar a[aria-current="page"] { background: #33203e; color: #ffe4fa; }
.wiki-reading-main { min-width: 0; }
.wiki-reading-main .wiki-heading h1 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.wiki-article { color: #dbcede; font-size: .98rem; line-height: 1.85; overflow-wrap: anywhere; }
.wiki-article h2, .wiki-article h3, .wiki-article h4, .wiki-article h5, .wiki-article h6 { font-family: Cinzel,serif; font-weight: 500; color: #f5e6ff; line-height: 1.45; margin: 34px 0 15px; }
.wiki-article h2 { font-size: 1.55rem; border-bottom: 1px solid #4a315b; padding-bottom: 12px; }
.wiki-article h3 { font-size: 1.25rem; }
.wiki-article p { margin: 14px 0; }
.wiki-article ul, .wiki-article ol { padding-left: 26px; margin: 16px 0; }
.wiki-article li { margin: 7px 0; }
.wiki-article a { color: #efa6e2; text-decoration: underline; text-underline-offset: 3px; }
.wiki-article figure { margin: 18px 0; padding: 12px 16px; border: 1px dashed #674674; border-radius: 5px; background: #1a1123; font-size: .82rem; }
.wiki-article blockquote { border-left: 3px solid #a360b8; padding: 12px 22px; margin: 20px 0; background: #21152c; }
.wiki-article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 20px 0; }
.wiki-article th, .wiki-article td { border: 1px solid #50395f; padding: 10px 14px; }
.wiki-article pre { overflow-x: auto; background: #171020; padding: 16px; }
.wiki-credits { background: #171020; border: 1px solid #493257; border-radius: 8px; margin-top: 38px; padding: 24px; }
.wiki-credits h2 { font: 500 1.1rem Cinzel,serif; margin: 0 0 14px; }
.wiki-credits p { color: #c0aecb; font-size: .79rem; line-height: 1.85; margin: 10px 0; }
.wiki-back { display: inline-block; margin-top: 28px; }
@media(max-width:1000px) { .wiki-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .wiki-reading-layout { grid-template-columns: 195px minmax(0,1fr); gap: 26px; } .wiki-search { grid-template-columns: minmax(0,1fr) 200px; } .wiki-search button { grid-column: 1 / -1; } }
@media(max-width:700px) { .wiki-shell { width: calc(100% - 32px); padding-top: 32px; } .wiki-grid, .wiki-reading-layout, .wiki-search { grid-template-columns: 1fr; } .wiki-card { min-height: 180px; } .wiki-sidebar { position: static; max-height: 230px; } .wiki-notice { padding: 18px; } .wiki-reading-layout { gap: 28px; } .wiki-credits { padding: 18px; } }
@media(prefers-reduced-motion:reduce) { .wiki-card { transition: none; } .wiki-card:hover { transform: none; } }
.wiki-credits { text-align: left; }
.wiki-credits p { text-transform: none; letter-spacing: normal; }

/* Original guide media: local files, original order and responsive proportions. */
.wiki-article figure { max-width: 100%; padding: 10px; margin: 24px auto; border-style: solid; border-color: #493257; }
.wiki-article figure.mw-halign-left, .wiki-article figure.mw-halign-none { margin-left: 0; }
.wiki-article figure.mw-halign-right { margin-right: 0; }
.wiki-article img.wiki-media { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; }
.wiki-article a:has(> img) { display: block; }
.wiki-article figcaption { color: #cdb8da; font-size: .82rem; line-height: 1.6; margin-top: 8px; text-align: center; }
.wiki-article figcaption:empty { display: none; }
.wiki-article .wikia-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 18px; margin: 24px 0; }
.wiki-article .wikia-gallery-item { min-width: 0; padding: 10px; background: #1a1123; border: 1px solid #493257; border-radius: 6px; }
.wiki-article .wikia-gallery-item img { width: 100%; height: 185px; object-fit: contain; }
.wiki-article .lightbox-caption { margin-top: 10px; font-size: .85rem; text-align: center; color: #e8d7ef; }
.wiki-article .wiki-video { position: relative; display: block; }
.wiki-article .wiki-video-label { display: block; background: #33203e; padding: 10px 14px; margin-top: 8px; border-radius: 4px; text-align: center; color: #f9d9f3; font-size: .85rem; }
@media (max-width: 480px) { .wiki-article .wikia-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .wiki-article .wikia-gallery-item img { height: 145px; } }

.wiki-media-credits { margin-top: 18px; font-size: .8rem; color: #cfb9db; }
.wiki-media-credits summary { cursor: pointer; }
.wiki-media-credits ul { margin-top: 12px; padding-left: 20px; line-height: 1.9; }

/* Decay knowledge hub. */
.wiki-page [hidden] { display: none !important; }
.wiki-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.wiki-hero { position: relative; padding: 38px 42px; border: 1px solid #543065; border-radius: 18px; background: radial-gradient(ellipse at 88% 5%,#55245c70,transparent 48%),linear-gradient(125deg,#1f112e,#110c1b); box-shadow: 0 14px 65px #0003; }
.wiki-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: #c2a9ce; font-size: .75rem; }
.wiki-brand-label { color: #f1a7df; letter-spacing: .2em; font-weight: 700; }
.wiki-hero .wiki-heading { margin: 36px 0 30px; }
.wiki-hero .wiki-heading h1 { font-size: clamp(2.3rem,4.4vw,4.1rem); line-height: 1.12; }
.wiki-hero .wiki-heading h1 em { color: #ed9edc; }
.wiki-hero .wiki-heading p { color: #c8b7d2; margin-top: 20px; font-size: .95rem; }
.wiki-hero .wiki-search { grid-template-columns: minmax(0,1fr) 190px auto; gap: 12px; }
.wiki-input-wrap { position: relative; }
.wiki-input-wrap > span { position: absolute; left: 16px; top: 9px; font-size: 28px; color: #d9afed; pointer-events: none; }
.wiki-search .wiki-input-wrap input { padding-left: 48px; }
.wiki-hero .wiki-search input,.wiki-hero .wiki-search select { height: 56px; background: #0f0a18; border-color: #79508b; border-radius: 8px; font-size: .9rem; }
.wiki-hero .wiki-search button { height: 56px; border-radius: 8px; padding: 12px 26px; }
.wiki-search input:focus,.wiki-search select:focus,.wiki-article-search input:focus { outline: 2px solid #e6a2ee; outline-offset: 3px; }
#wiki-search-help { margin: 12px 0 18px; color: #bca6ca; font-size: .75rem; line-height: 1.6; }
.wiki-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .73rem; }
.wiki-popular > span { color: #bba4c8; margin-right: 4px; }
.wiki-popular a { border: 1px solid #5d3a6d; padding: 7px 12px; border-radius: 20px; color: #e6cbea; background: #281634; }
.wiki-popular a:hover { background: #422151; border-color: #d78edf; }
.wiki-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 44px 0 22px; }
.wiki-section-heading .eyebrow { margin-bottom: 10px; }
.wiki-section-heading h2,#wiki-results-title { color: #f0e4f5; font: 500 clamp(1.35rem,2.3vw,1.8rem) Cinzel,serif; }
.wiki-section-heading > a { color: #e9a5de; font-size: .8rem; }
.wiki-topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.wiki-topic { border: 1px solid #493057; padding: 24px; border-radius: 10px; background: #17101f; transition: border-color .15s; }
.wiki-topic:hover { border-color: #cf7ed7; background: #21142d; }
.wiki-topic-icon { display: block; margin-bottom: 16px; color: #e79be0; font-size: 26px; }
.wiki-topic h3 { font: 600 .99rem Inter,sans-serif; color: #eee0f4; margin-bottom: 10px; }
.wiki-topic p { color: #b6a2c3; font-size: .8rem; line-height: 1.5; margin-bottom: 22px; }
.wiki-topic > span:last-child { display: flex; justify-content: space-between; font-size: .76rem; color: #da9cdd; }
.wiki-start { margin: 28px 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 1px solid #765083; border-radius: 10px; background: linear-gradient(110deg,#2c193a,#1a1023); }
.wiki-start h2 { margin: 10px 0; font: 500 1.4rem Cinzel,serif; color: #f2ddf4; }
.wiki-start p { font-size: .85rem; color: #cbb6d6; line-height: 1.7; }
.wiki-start > a { flex-shrink: 0; border: 1px solid #c580d2; padding: 13px 18px; border-radius: 6px; color: #f4d9f7; font-size: .83rem; }
#wiki-results { scroll-margin-top: 28px; margin-top: 36px; }
.wiki-results { align-items: center; }
.wiki-results p { margin-top: 10px; }
.wiki-grid[aria-busy="true"] { opacity: .6; }
.wiki-card p { font-size: .83rem; line-height: 1.75; }
.wiki-empty { padding: 42px 24px; text-align: center; background: #1a1124; border: 1px dashed #694379; border-radius: 10px; }
.wiki-empty h3 { margin-bottom: 14px; color: #f1ddf7; }
.wiki-empty p { max-width: 540px; margin: 0 auto 20px; line-height: 1.7; }
.wiki-empty a { color: #eba2e7; }
.wiki-credits > summary,.wiki-server-note > summary { cursor: pointer; color: #baa8c6; font-size: .8rem; }
.wiki-home-credits { background: transparent; border: 0; border-top: 1px solid #392442; padding: 20px 0 0; }
.wiki-server-note { margin: 0 0 25px; padding: 14px 18px; border: 1px solid #493257; border-radius: 6px; }
.wiki-server-note p { color: #c9b7d3; line-height: 1.8; font-size: .84rem; padding-top: 12px; }
.wiki-server-note a { color: #eea3e4; }
.wiki-article-search { display: flex; gap: 10px; margin-bottom: 30px; }
.wiki-article-search input { min-width: 0; flex: 1; padding: 13px 16px; color: #eee0f5; background: #191022; border: 1px solid #684577; border-radius: 6px; font: inherit; }
.wiki-article-search button { border: 0; border-radius: 6px; background: #6a347a; color: #fff; padding: 12px 22px; cursor: pointer; }
@media(max-width:1000px) { .wiki-hero .wiki-search { grid-template-columns: minmax(0,1fr) 170px; } .wiki-hero .wiki-search button { grid-column: 1 / -1; } .wiki-start { align-items: start; flex-direction: column; } }
@media(max-width:700px) { .wiki-hero { padding: 25px 20px; border-radius: 12px; } .wiki-hero .wiki-search { grid-template-columns: minmax(0,1fr); } .wiki-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .wiki-topic { padding: 18px 15px; } .wiki-section-heading { align-items: start; flex-direction: column; } .wiki-start { padding: 24px; } .wiki-start > a { white-space: normal; } .wiki-hero .wiki-heading h1 { font-size: clamp(2rem,8vw,2.8rem); } }

.wiki-search-icon { position: absolute; left: 16px; top: 17px; color: #d9afed; pointer-events: none; }

/* Application-style navigation: a compact, expandable guide tree. */
.wiki-app-shell { width: min(1360px,calc(100% - 48px)); margin: 0 auto; padding: 38px 0 82px; display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 28px; align-items: start; }
.wiki-shell { width: auto; margin: 0; padding: 0; }
.wiki-navigation { position: sticky; top: 22px; overflow: auto; max-height: calc(100svh - 44px); border: 1px solid #4a2f5a; border-radius: 14px; background: linear-gradient(160deg,#1d1129,#100b18); box-shadow: 0 12px 36px #0003; }
.wiki-nav-brand { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; padding: 22px 21px 18px; border-bottom: 1px solid #452a54; }
.wiki-nav-brand > span { grid-row: span 2; display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:#6d397e; color:#f7c3f0; }
.wiki-nav-brand strong { color:#f4e6f7; font:600 1.05rem Cinzel,serif; }.wiki-nav-brand small { color:#ae97bc; font-size:.72rem; }
.wiki-nav-home { display:flex; align-items:center; gap:11px; margin:14px 12px 6px; padding:11px 12px; color:#d7c3e1; border-radius:7px; font-size:.84rem; }.wiki-nav-home:hover,.wiki-nav-home.is-active { color:#fff0fc; background:#392044; }
.wiki-nav-label { margin:21px 24px 10px; color:#a989bc; font-size:.66rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; }
.wiki-nav-tree details { margin:2px 12px; }.wiki-nav-tree summary { display:flex; align-items:center; gap:9px; padding:10px 11px; cursor:pointer; color:#d7c5df; font-size:.82rem; list-style:none; border-radius:7px; }.wiki-nav-tree summary::-webkit-details-marker { display:none; }.wiki-nav-tree summary:hover { background:#2c1937; }.wiki-nav-tree summary i { font-style:normal; color:#e5a5e4; font-size:1rem; width:17px; text-align:center; }.wiki-nav-tree summary b { margin-left:auto; min-width:20px; padding:2px 6px; border-radius:10px; background:#32203c; color:#ad91bc; text-align:center; font-size:.66rem; font-weight:500; }
.wiki-nav-children { display:grid; gap:2px; margin:0 0 8px 37px; border-left:1px solid #4d315b; padding:2px 0 3px 10px; }.wiki-nav-children a { padding:6px 8px; border-radius:5px; color:#ad9bb7; font-size:.74rem; line-height:1.25; }.wiki-nav-children a:hover,.wiki-nav-children a.is-active { color:#ffeafb; background:#512a5f; }.wiki-nav-children .wiki-nav-all { color:#e5a3e0; font-weight:600; }
.wiki-nav-footer { margin:18px 18px 16px; padding:13px 8px 0; border-top:1px solid #392346; color:#9c86aa; font-size:.72rem; }.wiki-nav-footer span { color:#e7ace2; font-weight:700; }
.wiki-workspace { min-width:0; }.wiki-workspace .wiki-hero { margin:0; }.wiki-workspace .wiki-reading-layout { grid-template-columns:210px minmax(0,1fr); gap:32px; }.wiki-menu-toggle { display:none; }
.wiki-workspace .wiki-breadcrumb { margin:5px 0 24px; }.wiki-workspace #wiki-results { margin-bottom:0; }.wiki-workspace .wiki-start { margin-top:24px; }
@media(max-width:1000px) { .wiki-app-shell { grid-template-columns:230px minmax(0,1fr); gap:20px; width:min(1240px,calc(100% - 32px)); }.wiki-nav-brand { padding:18px 15px; }.wiki-nav-label { margin-left:17px; }.wiki-workspace .wiki-reading-layout { grid-template-columns:1fr; }.wiki-workspace .wiki-sidebar { display:none; } }
@media(max-width:760px) { .wiki-app-shell { display:block; width:calc(100% - 28px); padding-top:20px; }.wiki-menu-toggle { display:flex; align-items:center; gap:9px; width:100%; margin-bottom:13px; padding:12px 14px; border:1px solid #634277; border-radius:8px; background:#1a1024; color:#eeddf4; font:600 .8rem Inter,sans-serif; cursor:pointer; }.wiki-navigation { display:none; position:static; max-height:60svh; margin-bottom:16px; }.wiki-nav-open .wiki-navigation { display:block; }.wiki-workspace .wiki-breadcrumb { font-size:.72rem; }.wiki-workspace .wiki-reading-layout { gap:0; }.wiki-workspace .wiki-hero { padding:25px 19px; }.wiki-topic-grid { grid-template-columns:1fr; } }

/* One permanent, high-contrast guide panel on desktop. */
@media(min-width:761px) {
    .wiki-navigation { position:fixed; top:222px; width:270px; max-height:calc(100svh - 242px); z-index:12; }
    .wiki-reading-layout { display:block !important; }
}
@media(min-width:761px) and (max-width:1000px) { .wiki-navigation { width:230px; } }
.wiki-navigation { border-color:#70498b; background:linear-gradient(165deg,#2a123d 0%,#170b29 44%,#0f081b 100%); box-shadow:0 18px 42px #25102d5c, inset 0 1px #ffffff1a; }
.wiki-nav-brand { position:relative; overflow:hidden; border-bottom-color:#784b91; background:linear-gradient(100deg,#3d1c55,#251034); }
.wiki-nav-brand::after { content:""; position:absolute; right:-20px; top:-60px; width:140px; height:140px; background:radial-gradient(circle,#f0b5ea38,transparent 67%); pointer-events:none; }
.wiki-nav-brand > span { background:linear-gradient(145deg,#ef75ca,#8356be); box-shadow:0 0 18px #ec74d87a; }.wiki-nav-brand strong { color:#fff4fc; letter-spacing:.02em; }.wiki-nav-brand small { color:#e0bce5; }
.wiki-nav-home { border:1px solid transparent; }.wiki-nav-home:hover,.wiki-nav-home.is-active { border-color:#c775cc8a; background:linear-gradient(90deg,#843d8c,#55265f); box-shadow:inset 3px 0 #ffd37a,0 5px 15px #1a072566; }
.wiki-nav-label { color:#f0b8dc; }.wiki-nav-tree summary { color:#f0d8f1; }.wiki-nav-tree summary:hover { background:#472055; }.wiki-nav-tree summary i { color:#ffd078; text-shadow:0 0 12px #f9a9448a; }.wiki-nav-tree summary b { color:#f8d7ef; background:#6a3978; }
.wiki-nav-children { border-left-color:#9864ab; }.wiki-nav-children a { color:#d9c0df; }.wiki-nav-children a:hover,.wiki-nav-children a.is-active { color:#fff; background:linear-gradient(90deg,#a54a99,#69317c); box-shadow:inset 3px 0 #ffd579,0 3px 11px #2d0d3f88; }.wiki-nav-children .wiki-nav-all { color:#ffd585; }
.wiki-current-guide { margin:15px 13px 8px; padding:14px 13px; border:1px solid #d38a56; border-radius:9px; background:linear-gradient(135deg,#4d233d,#2c1639); box-shadow:inset 0 1px #ffedb13d; }.wiki-current-guide p { margin:0 0 6px; color:#ffd787; font-size:.61rem; font-weight:700; letter-spacing:.12em; }.wiki-current-guide strong { display:block; color:#fff1d2; font:600 .89rem/1.3 Cinzel,serif; }.wiki-current-guide div { display:grid; gap:4px; margin-top:9px; }.wiki-current-guide a { color:#efd8e9; font-size:.7rem; line-height:1.3; }.wiki-current-guide a:hover { color:#ffd374; }
.wiki-nav-footer { border-top-color:#69427c; color:#d2b7da; }.wiki-nav-footer span { color:#ffd47f; }
.wiki-reading-main { padding:30px 34px 40px; border:1px solid #ead4ef; border-radius:14px; background:linear-gradient(145deg,#fffaff,#fff 60%,#fcf5ff); box-shadow:0 16px 38px #683d7417; }.wiki-reading-main .wiki-heading h1 { color:#4a205c; }.wiki-reading-main .wiki-heading > p:not(.eyebrow),.wiki-reading-main .wiki-article { color:#633d6e; }.wiki-reading-main .wiki-article h2,.wiki-reading-main .wiki-article h3,.wiki-reading-main .wiki-article h4 { color:#51255e; border-color:#ead2ed; }.wiki-reading-main .wiki-toc { border-color:#d7b1d8; background:#fbf2fb; }.wiki-reading-main .wiki-toc summary,.wiki-reading-main .wiki-toc a { color:#63316f; }
@media(max-width:760px) { .wiki-reading-main { padding:22px 18px 28px; border-radius:10px; }.wiki-current-guide { display:none; } }

/* Calm, full-height documentation workspace inspired by the UnderWorld layout. */
body.guide-page.wiki-page, body.guide-page.wiki-page main { background:#030712 !important; }
body.guide-page.wiki-page footer { display:none; }
body.guide-page.wiki-page main { min-height:calc(100vh - 76px); }
.wiki-page .wiki-app-shell { width:100%; max-width:none; min-height:calc(100vh - 76px); margin:0; padding:0; gap:0; grid-template-columns:260px minmax(0,1fr); background:#030712; }
.wiki-page .wiki-navigation { position:sticky !important; top:76px !important; align-self:start; width:auto !important; height:calc(100vh - 76px); max-height:calc(100vh - 76px); z-index:2; border:0; border-right:1px solid rgba(255,255,255,.07); border-radius:0; background:#090d16; box-shadow:none; }
.wiki-page .wiki-navigation { scrollbar-width:thin; scrollbar-color:#374151 #090d16; }
.wiki-page .wiki-navigation::-webkit-scrollbar { width:8px; }
.wiki-page .wiki-navigation::-webkit-scrollbar-track { background:#090d16; }
.wiki-page .wiki-navigation::-webkit-scrollbar-thumb { background:#374151; border:2px solid #090d16; border-radius:999px; }
.wiki-page .wiki-navigation::-webkit-scrollbar-thumb:hover { background:#4b5563; }
.wiki-page .wiki-nav-brand { display:flex; flex-direction:column; align-items:center; gap:7px; padding:28px 18px 23px; background:transparent; border-bottom:0; text-align:center; }.wiki-page .wiki-nav-brand::after { display:none; }.wiki-page .wiki-nav-brand > span { width:48px; height:48px; background:#172033; color:#d97706; box-shadow:none; font-size:1.2rem; }.wiki-page .wiki-nav-brand strong { color:#d97706; font:700 .95rem Inter,sans-serif; letter-spacing:.04em; }.wiki-page .wiki-nav-brand small { color:#657082; }
.wiki-page .wiki-nav-home { margin:4px 12px 12px; color:#9ca3af; border:0; border-radius:7px; }.wiki-page .wiki-nav-home:hover,.wiki-page .wiki-nav-home.is-active { background:#4c1d95; color:#fff; box-shadow:none; }
.wiki-page .wiki-nav-label { margin:14px 24px 8px; color:#596273; }.wiki-page .wiki-nav-tree details { margin:1px 11px; }.wiki-page .wiki-nav-tree summary { color:#aeb7c6; border-radius:7px; }.wiki-page .wiki-nav-tree summary:hover { color:#f3f4f6; background:#ffffff0d; }.wiki-page .wiki-nav-tree summary i { color:#9ca3af; text-shadow:none; }.wiki-page .wiki-nav-tree summary b { background:#1c2636; color:#9ca3af; }.wiki-page .wiki-nav-children { border-left:0; margin-left:19px; padding-left:10px; }.wiki-page .wiki-nav-children a { color:#8d98aa; }.wiki-page .wiki-nav-children a:hover,.wiki-page .wiki-nav-children a.is-active { color:#fff; background:#4c1d95; box-shadow:none; }.wiki-page .wiki-nav-children .wiki-nav-all { color:#d6b4ff; }.wiki-page .wiki-current-guide { border-color:#273449; background:#111827; box-shadow:none; }.wiki-page .wiki-current-guide p { color:#9ca3af; }.wiki-page .wiki-current-guide strong { color:#e5e7eb; font-family:Inter,sans-serif; }.wiki-page .wiki-current-guide a { color:#aeb7c6; }.wiki-page .wiki-current-guide a:hover { color:#fff; }.wiki-page .wiki-nav-footer { border-top-color:#1f2937; color:#6b7280; }.wiki-page .wiki-nav-footer span { color:#d97706; }
.wiki-page .wiki-workspace { grid-column:2; min-width:0; min-height:calc(100vh - 76px); padding:38px 54px 76px; background:linear-gradient(90deg,rgba(3,7,18,.94),rgba(3,7,18,.67)), url('/visual/bg.png') center/cover fixed; }
.wiki-page .wiki-breadcrumb { color:#718096; }.wiki-page .wiki-breadcrumb a { color:#b69ae1; }.wiki-page .wiki-reading-main { padding:34px 42px 48px; border:1px solid #202b3b; border-radius:10px; background:#0d1422eF; box-shadow:none; }.wiki-page .wiki-article-search input { border-color:#263247; background:#111827; color:#e5e7eb; }.wiki-page .wiki-article-search button { background:#4c1d95; }.wiki-page .wiki-reading-main .wiki-heading h1,.wiki-page .wiki-reading-main .wiki-article h2,.wiki-page .wiki-reading-main .wiki-article h3,.wiki-page .wiki-reading-main .wiki-article h4 { color:#f3f4f6; border-color:#273449; }.wiki-page .wiki-reading-main .wiki-heading > p:not(.eyebrow),.wiki-page .wiki-reading-main .wiki-article { color:#b9c2d0; }.wiki-page .wiki-reading-main .wiki-toc { border-color:#273449; background:#111827; }.wiki-page .wiki-reading-main .wiki-toc summary,.wiki-page .wiki-reading-main .wiki-toc a { color:#d4bdf4; }
.wiki-page .wiki-hero,.wiki-page .wiki-start,.wiki-page .wiki-topic,.wiki-page .wiki-card,.wiki-page .wiki-empty { background:#0d1422eF; border-color:#273449; box-shadow:none; }.wiki-page .wiki-hero { background:linear-gradient(120deg,#0d1422f2,#15102af0); }.wiki-page .wiki-heading h1,.wiki-page .wiki-section-heading h2,.wiki-page #wiki-results-title { color:#f3f4f6; }.wiki-page .wiki-heading > p:not(.eyebrow),.wiki-page .wiki-card p,.wiki-page .wiki-topic p { color:#aeb7c6; }.wiki-page .wiki-card h2,.wiki-page .wiki-topic h3,.wiki-page .wiki-start h2 { color:#e5e7eb; }.wiki-page .wiki-card:hover,.wiki-page .wiki-topic:hover { border-color:#4c1d95; background:#111827; }.wiki-page .wiki-start > a { border-color:#6d28d9; background:#4c1d95; }.wiki-page .wiki-search input,.wiki-page .wiki-search select { border-color:#273449; background:#111827; }.wiki-page .wiki-search button { background:#4c1d95; }
.wiki-page .wiki-homebar { display:grid; grid-template-columns:minmax(185px, .45fr) minmax(0,1fr); gap:26px; align-items:end; padding:28px 32px 22px; border:1px solid #273449; border-radius:9px; background:#0d1422ef; }.wiki-page .wiki-homebar-heading p { margin:0 0 7px; color:#9ca3af; font:700 .67rem Inter,sans-serif; letter-spacing:.12em; }.wiki-page .wiki-homebar-heading h1 { margin:0; color:#f3f4f6; font:600 2rem/1.05 Inter,sans-serif; letter-spacing:-.04em; }.wiki-page .wiki-homebar-heading span { display:block; margin-top:9px; color:#7d899b; font-size:.76rem; }.wiki-page .wiki-homebar .wiki-search { grid-template-columns:minmax(0,1fr) 170px auto; gap:10px; }.wiki-page .wiki-homebar #wiki-search-help { grid-column:2; margin:0; color:#788497; }.wiki-page .wiki-homebar .wiki-search-main label,.wiki-page .wiki-homebar .wiki-search label { color:#aeb7c6; }.wiki-page .wiki-homebar .wiki-search button { min-height:48px; background:#4c1d95; }
@media(max-width:1000px) { .wiki-page .wiki-homebar { grid-template-columns:1fr; }.wiki-page .wiki-homebar .wiki-search { grid-template-columns:minmax(0,1fr) 170px; }.wiki-page .wiki-homebar .wiki-search button { grid-column:1/-1; }.wiki-page .wiki-homebar #wiki-search-help { grid-column:auto; } }
@media(max-width:760px) { body.guide-page.wiki-page main { min-height:auto; }.wiki-page .wiki-app-shell { display:block; min-height:auto; padding:16px; }.wiki-page .wiki-workspace { min-height:auto; padding:0; background:none; }.wiki-page .wiki-navigation { position:static !important; height:auto; max-height:60svh; border:1px solid #1f2937; border-radius:8px; }.wiki-page .wiki-reading-main { padding:20px; }.wiki-page .wiki-menu-toggle { background:#111827; border-color:#273449; } }

/* Editorial status and article navigation. */
.wiki-review-date { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; }
.wiki-review-badge { display: inline-block; padding: 5px 9px; border-radius: 5px; border: 1px solid #826543; color: #f1d1a0; background: #332618; font-size: .7rem; }
.wiki-review-badge.confirmed { color: #b4e5c5; background: #15291f; border-color: #466e53; }
.wiki-review-badge.partial { color: #e4c5f0; background: #2b1937; border-color: #78528b; }
.wiki-review-panel { display: grid; gap: 12px; margin-bottom: 26px; }
.wiki-review-panel > div { border: 1px solid #4c355e; border-radius: 8px; padding: 18px 20px; background: #191120; }
.wiki-review-panel .wiki-confirmed { border-left: 3px solid #81bf98; }
.wiki-review-panel .wiki-pending { border-left: 3px solid #cda565; }
.wiki-review-panel h2 { font: 600 .87rem Inter,sans-serif; color: #e8dbf0; margin: 0 0 10px; }
.wiki-review-panel ul { padding-left: 18px; color: #ccbdd7; font-size: .82rem; line-height: 1.8; }
.wiki-review-panel p { color: #b8a4c7; font-size: .76rem; line-height: 1.7; margin-top: 10px; }
.wiki-toc { border: 1px solid #50365e; border-radius: 8px; margin: 22px 0 30px; padding: 18px 22px; background: #1b1225; }
.wiki-toc summary { cursor: pointer; color: #f0d5f5; font: 600 .9rem Inter,sans-serif; }
.wiki-toc ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.wiki-toc a { color: #d1b8df; font-size: .86rem; line-height: 1.5; }
.wiki-toc a:hover { color: #ffb4eb; text-decoration: underline; }
.wiki-toc .wiki-toc-level-3 { padding-left: 18px; }
.wiki-article h2,.wiki-article h3 { scroll-margin-top: 28px; }
.wiki-article [aria-haspopup="dialog"] { cursor: zoom-in; }
.wiki-related { border-top: 1px solid #4a3059; margin-top: 42px; padding-top: 30px; }
.wiki-related > h2 { font: 500 1.5rem Cinzel,serif; color: #f3dff9; margin-bottom: 22px; }
.wiki-related .wiki-card { min-height: 200px; padding: 20px; }
.wiki-related h3 { color: #f2e5fa; font: 500 1.08rem/1.4 Cinzel,serif; margin: 16px 0 10px; }
.wiki-related .wiki-grid { grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); }

/* Accessible in-page image viewer with native focus trapping and Escape. */
body.wiki-lightbox-open { overflow: hidden; }
.wiki-lightbox { margin: auto; width: min(1200px,96vw); max-width: 96vw; max-height: 94dvh; padding: 0; border: 1px solid #9362a7; border-radius: 10px; background: #100b18; color: #efdef9; box-shadow: 0 20px 100px #000b; }
.wiki-lightbox::backdrop { background: #050209e8; }
.wiki-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #4c315c; }
.wiki-lightbox-toolbar > div { display: flex; gap: 8px; }
.wiki-lightbox button { min-width: 44px; min-height: 44px; border: 1px solid #805593; border-radius: 6px; padding: 9px 14px; background: #2d193b; color: #f7e2fa; font: 500 .85rem Inter,sans-serif; cursor: pointer; }
.wiki-lightbox button:hover { background: #49235b; }
.wiki-lightbox button:disabled { opacity: .4; cursor: default; }
.wiki-lightbox-viewport { height: min(68dvh,800px); overflow: auto; padding: 12px; display: grid; place-items: center; }
.wiki-lightbox-viewport img { max-width: 100%; max-height: calc(68dvh - 24px); width: auto; height: auto; object-fit: contain; }
.wiki-lightbox.is-zoomed .wiki-lightbox-viewport { display: block; }
.wiki-lightbox.is-zoomed img { max-width: none; max-height: none; margin: 0 auto; }
.wiki-lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid #4c315c; }
.wiki-lightbox-bottom p { font-size: .8rem; color: #dac7e7; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
@media(max-width:700px) { .wiki-related .wiki-grid { grid-template-columns: 1fr; } .wiki-toc { padding: 17px; } .wiki-lightbox { width: 96vw; } .wiki-lightbox-toolbar { padding: 10px; } .wiki-lightbox-toolbar button { padding: 8px 10px; font-size: .75rem; } }
