/* Scoped to the wiki: keep existing tabs, searches and content intact. */
/* Stable category columns for the main wiki navigation only. */
body.wiki-theme .nav-tabs.wiki-category-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px 12px!important;align-items:stretch}
body.wiki-theme .wiki-category-nav>li{grid-column:var(--category);grid-row:var(--slot)}
body.wiki-theme .wiki-category-nav .nav-link{padding:10px 8px!important;font-size:11px;min-height:42px}
@media(max-width:767px){body.wiki-theme .nav-tabs.wiki-category-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.wiki-theme .wiki-category-nav>li{grid-column:var(--mobile-category);grid-row:var(--mobile-slot)}}
body.wiki-theme .wiki-category-nav>li:nth-child(4){--category:4;--slot:1;--mobile-category:2;--mobile-slot:11}
body.wiki-theme .wiki-category-nav>li:nth-child(8){--category:4;--slot:2;--mobile-category:2;--mobile-slot:12}
body.wiki-theme .wiki-category-nav>li:nth-child(12){--category:4;--slot:3;--mobile-category:2;--mobile-slot:13}
body.wiki-theme .wiki-category-nav>li:nth-child(16){--category:4;--slot:4;--mobile-category:2;--mobile-slot:14}
body.wiki-theme .wiki-category-nav>li:nth-child(20){--category:4;--slot:5;--mobile-category:2;--mobile-slot:15}
body.wiki-theme .wiki-category-nav>li:nth-child(24){--category:4;--slot:6;--mobile-category:2;--mobile-slot:16}
body.wiki-theme .wiki-category-nav>li:nth-child(28){--category:4;--slot:7;--mobile-category:2;--mobile-slot:17}
body.wiki-theme .wiki-category-nav>li:nth-child(29){--category:1;--slot:7;--mobile-category:1;--mobile-slot:7}
body.wiki-theme .wiki-category-nav>li:nth-child(3){--category:3;--slot:1;--mobile-category:1;--mobile-slot:11}
body.wiki-theme .wiki-category-nav>li:nth-child(7){--category:3;--slot:2;--mobile-category:1;--mobile-slot:12}
body.wiki-theme .wiki-category-nav>li:nth-child(11){--category:3;--slot:3;--mobile-category:1;--mobile-slot:13}
body.wiki-theme .wiki-category-nav>li:nth-child(15){--category:3;--slot:4;--mobile-category:1;--mobile-slot:14}
body.wiki-theme .wiki-category-nav>li:nth-child(19){--category:3;--slot:5;--mobile-category:1;--mobile-slot:15}
body.wiki-theme .wiki-category-nav>li:nth-child(23){--category:3;--slot:6;--mobile-category:1;--mobile-slot:16}
body.wiki-theme .wiki-category-nav>li:nth-child(27){--category:3;--slot:7;--mobile-category:1;--mobile-slot:17}
body.wiki-theme .wiki-category-nav>li:nth-child(1){--category:1;--slot:1;--mobile-category:1;--mobile-slot:1}
body.wiki-theme .wiki-category-nav>li:nth-child(14){--category:1;--slot:2;--mobile-category:1;--mobile-slot:2}
body.wiki-theme .wiki-category-nav>li:nth-child(17){--category:1;--slot:3;--mobile-category:1;--mobile-slot:3}
body.wiki-theme .wiki-category-nav>li:nth-child(18){--category:1;--slot:4;--mobile-category:1;--mobile-slot:4}
body.wiki-theme .wiki-category-nav>li:nth-child(21){--category:1;--slot:5;--mobile-category:1;--mobile-slot:5}
body.wiki-theme .wiki-category-nav>li:nth-child(26){--category:1;--slot:6;--mobile-category:1;--mobile-slot:6}
body.wiki-theme .wiki-category-nav>li:nth-child(30){--category:1;--slot:8;--mobile-category:1;--mobile-slot:8}
body.wiki-theme .wiki-category-nav>li:nth-child(31){--category:1;--slot:9;--mobile-category:1;--mobile-slot:9}
body.wiki-theme .wiki-category-nav>li:nth-child(5){--category:2;--slot:1;--mobile-category:2;--mobile-slot:1}
body.wiki-theme .wiki-category-nav>li:nth-child(9){--category:2;--slot:2;--mobile-category:2;--mobile-slot:2}
body.wiki-theme .wiki-category-nav>li:nth-child(2){--category:2;--slot:3;--mobile-category:2;--mobile-slot:3}
body.wiki-theme .wiki-category-nav>li:nth-child(6){--category:2;--slot:4;--mobile-category:2;--mobile-slot:4}
body.wiki-theme .wiki-category-nav>li:nth-child(10){--category:2;--slot:5;--mobile-category:2;--mobile-slot:5}
body.wiki-theme .wiki-category-nav>li:nth-child(13){--category:2;--slot:6;--mobile-category:2;--mobile-slot:6}
body.wiki-theme .wiki-category-nav>li:nth-child(22){--category:2;--slot:7;--mobile-category:2;--mobile-slot:7}
body.wiki-theme .wiki-category-nav>li:nth-child(25){--category:2;--slot:8;--mobile-category:2;--mobile-slot:8}
body.wiki-theme{--wiki-gold:#d9b578;--wiki-muted:#aaa69d;--wiki-line:#38332c;background:radial-gradient(ellipse at 70% 0,#29231b 0,transparent 65%),#111211!important;color:#e8e4dc!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;font-size:14px;line-height:1.6}
body.wiki-theme .nk-wrap,body.wiki-theme .nk-content,body.wiki-theme .nk-content-wrap,body.wiki-theme .nk-content-body,body.wiki-theme .block-start-store{background:transparent!important}
body.wiki-theme .nk-header{background:#151613f5!important;border-bottom:1px solid var(--wiki-line)!important;box-shadow:none!important;backdrop-filter:blur(12px)}
body.wiki-theme .nk-aside{background:#191a18!important;border:1px solid var(--wiki-line);border-radius:12px;padding:20px 14px}
body.wiki-theme .card,body.wiki-theme .card-bordered,body.wiki-theme .modal-content,body.wiki-theme .dropdown-menu{background:#191a18!important;color:#e8e4dc!important;border:1px solid var(--wiki-line)!important;border-radius:12px;box-shadow:none}
body.wiki-theme .card .card{background:#1e1f1b!important}
body.wiki-theme .card-inner{padding:22px}
body.wiki-theme h1,body.wiki-theme h2,body.wiki-theme h3,body.wiki-theme h4,body.wiki-theme h5,body.wiki-theme h6{font-family:Georgia,"Times New Roman",serif!important;color:#e8dcc5!important;letter-spacing:0;font-weight:400;line-height:1.3}
body.wiki-theme h4{font-size:27px}body.wiki-theme h5{font-size:22px}
body.wiki-theme .nk-menu-link,body.wiki-theme .nk-menu-text,body.wiki-theme .lead-text,body.wiki-theme .dropdown-item{color:#c9c3b8!important}
body.wiki-theme .nk-menu-link:hover,body.wiki-theme .nk-menu-item.active>.nk-menu-link,body.wiki-theme .nk-menu-link.active{color:var(--wiki-gold)!important;background:#30291e!important;border-radius:6px}
body.wiki-theme .nav-tabs{border-bottom:1px solid var(--wiki-line)!important;gap:6px;padding:10px 0 18px;flex-wrap:wrap!important}
body.wiki-theme .nav-tabs .nav-link{width:auto!important;min-width:110px;border:1px solid var(--wiki-line)!important;border-radius:7px!important;background:#20211e!important;color:#bdb7ad!important;padding:10px 15px!important;margin:0!important;font-size:12px;transition:background .15s,border-color .15s}
body.wiki-theme .nav-tabs .nav-link:after{display:none!important}
body.wiki-theme .nav-tabs .nav-link.active,body.wiki-theme .nav-tabs .nav-link:hover{background:#332c20!important;border-color:var(--wiki-gold)!important;color:#ebd0a5!important}
body.wiki-theme .wiki-item-category-nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px!important;align-items:stretch;justify-content:stretch!important;padding:12px!important;margin:0!important}
body.wiki-theme .wiki-item-category-nav>.nav-item{min-width:0;margin:0!important;padding:0!important}
body.wiki-theme .wiki-item-category-nav input.btn{width:100%!important;min-width:0;margin:0!important;padding:8px 6px;font-size:12px;line-height:1.3;white-space:normal}
@media(max-width:1199px){body.wiki-theme .wiki-item-category-nav{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:991px){body.wiki-theme .wiki-item-category-nav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:767px){body.wiki-theme .wiki-item-category-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:479px){body.wiki-theme .wiki-item-category-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.wiki-theme .table{color:#d0cbc1!important;background:transparent!important;border-color:var(--wiki-line)!important;font-size:13px}
body.wiki-theme .table th,body.wiki-theme .table td{border-color:var(--wiki-line)!important;padding:13px 16px;vertical-align:middle}
body.wiki-theme .table thead th,body.wiki-theme .thead-dark th{background:#24251f!important;color:#e0c59c!important;font-size:11px;letter-spacing:.7px;border-bottom:1px solid #685438!important}
body.wiki-theme .table-striped tbody tr:nth-of-type(odd){background:#ffffff03!important}
body.wiki-theme .table tbody tr:hover{background:#d9b57809!important}
body.wiki-theme input:not([type=checkbox]):not([type=radio]),body.wiki-theme select,body.wiki-theme textarea,body.wiki-theme .form-control{background:#111310!important;color:#eee8df!important;border:1px solid #454139!important;border-radius:6px!important}
body.wiki-theme input:focus,body.wiki-theme select:focus{border-color:var(--wiki-gold)!important;box-shadow:0 0 0 2px #d9b57825!important}
body.wiki-theme .btn-primary{background:#d6ab66!important;border-color:#d6ab66!important;color:#17140e!important;border-radius:6px;font-weight:600}
body.wiki-theme .btn-primary:hover{background:#edc783!important}
body.wiki-theme .modal-header,body.wiki-theme .modal-footer,body.wiki-theme hr{border-color:var(--wiki-line)!important}
body.wiki-theme .modal-header .close{color:#e8e4dc!important;text-shadow:none}
body.wiki-theme .bg-lighter,body.wiki-theme .bg-light{background:#20211e!important}
body.wiki-theme .nk-content-body p{color:#bcb6ab}
body.wiki-theme .nk-content-body a:not(.btn):not(.nav-link){color:#d9b578}
body.wiki-theme .table-responsive{scrollbar-color:#685438 #191a18}
body.wiki-theme .wiki-intro{text-align:left!important;padding:30px!important}
body.wiki-theme .wiki-intro .eyebrow{color:var(--wiki-gold);font-size:10px;letter-spacing:2.5px;margin:0 0 10px}
body.wiki-theme .wiki-intro h5{font-size:34px;margin-bottom:14px}
body.wiki-theme img{max-width:100%;height:auto}
body.wiki-theme #MONSTERLIST table td:first-child img{width:auto!important;height:auto!important;max-width:none!important}
body.wiki-theme .wiki-backstories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
body.wiki-theme .wiki-background{padding:18px;border:1px solid var(--wiki-line);background:#20211e;border-radius:8px}
body.wiki-theme .wiki-background h6{color:#ebd0a5!important;font-size:18px}
body.wiki-theme .wiki-background p{font-size:13px;margin:0}
body.wiki-theme .skillpoints-help{position:relative;text-decoration:underline dotted;text-underline-offset:3px;cursor:help!important;color:#ebd0a5}
body.wiki-theme .skillpoints-help:hover::after,body.wiki-theme .skillpoints-help:focus::after{content:attr(title);position:absolute;z-index:20;left:0;bottom:calc(100% + 8px);width:220px;padding:10px;background:#111310;border:1px solid #88714e;border-radius:6px;color:#e8e4dc;font:12px/1.5 system-ui;pointer-events:none}
@media(max-width:767px){body.wiki-theme .card-inner{padding:14px}body.wiki-theme .nav-tabs .nav-link{min-width:0;font-size:11px;padding:9px 11px!important}body.wiki-theme .wiki-intro{padding:20px!important}body.wiki-theme .wiki-intro h5{font-size:28px}body.wiki-theme .wiki-backstories{grid-template-columns:1fr}body.wiki-theme .table{font-size:12px}}
body.wiki-theme .nav-tabs{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));margin:0!important;padding:12px!important}
body.wiki-theme .nav-tabs .nav-item{width:auto!important;margin:0!important;padding:0!important}
body.wiki-theme .nav-tabs .nav-link{width:100%!important;min-width:0!important;height:100%;display:flex;align-items:center;gap:5px}
@media(max-width:767px){body.wiki-theme .nav-tabs{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px!important}}
