.wiki-main { padding: 22px 0 42px; }
.wiki-heading { margin-bottom: 12px; }
.wiki-heading .eyebrow { margin-bottom: 4px; }
.wiki-heading h1 { font-size: clamp(32px, 4vw, 48px); }
.wiki-layout { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); min-height: 480px; border: 1px solid rgba(177, 128, 30, .5); background: rgba(10, 13, 16, .84); }
.wiki-sidebar { border-right: 1px solid var(--line); background: rgba(16, 19, 24, .94); }
.wiki-tree { padding: 6px 0 12px; }
.wiki-tree-item { --wiki-depth: 0; }
.wiki-tree-row { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; min-height: 34px; padding: 0 8px 0 calc(5px + var(--wiki-depth) * 13px); }
.wiki-tree-toggle, .wiki-tree-link { border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.wiki-tree-toggle { width: 24px; height: 24px; padding: 0; color: var(--muted); font-size: 14px; transition: transform .16s ease; }
.wiki-tree-item.is-open > .wiki-tree-row .wiki-tree-toggle { transform: rotate(90deg); }
.wiki-tree-toggle.is-empty { visibility: hidden; }
.wiki-tree-link { min-width: 0; padding: 7px 5px; overflow: hidden; color: #c9cdd2; font-size: 12px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.wiki-tree-link:hover, .wiki-tree-link.is-active { color: var(--gold-light); }
.wiki-tree-children { display: none; }
.wiki-tree-item.is-open > .wiki-tree-children { display: block; }
.wiki-article { min-width: 0; padding: 12px clamp(20px, 3vw, 34px) clamp(20px, 3vw, 34px); }
.wiki-article h2 { margin: 0 0 10px; font-family: "Arial Black", Arial, sans-serif; font-size: clamp(26px, 4vw, 40px); line-height: 1; text-transform: uppercase; }
.wiki-content { max-width: 820px; color: #d8dce0; font-size: 14px; line-height: 1.62; }
.wiki-content h3 { margin: 20px 0 8px; color: var(--text); font-family: "Arial Black", Arial, sans-serif; font-size: 18px; text-transform: uppercase; }
.wiki-content p { margin: 0 0 10px; white-space: pre-line; }
.wiki-content ul { margin: 0 0 12px; padding-left: 20px; }
.wiki-content li { margin: 4px 0; }
.wiki-loading, .wiki-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 12px; }
.wiki-faction-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 116px; margin: 14px 0; overflow: hidden; border: 1px solid rgba(177, 128, 30, .48); background: linear-gradient(115deg, rgba(29, 33, 38, .96), rgba(13, 16, 20, .92)); }
.wiki-faction-card-visual { display: grid; min-height: 116px; place-items: center; overflow: hidden; border-right: 1px solid rgba(177, 128, 30, .32); background: rgba(5, 7, 9, .7); }
.wiki-faction-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.wiki-faction-card-mark { width: 30px; height: 30px; border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(225, 162, 42, .2); transform: rotate(45deg); }
.wiki-faction-card-copy { align-self: center; padding: 16px 18px; }
.wiki-faction-card-label { display: block; margin-bottom: 6px; color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.wiki-faction-card-copy h4 { margin: 0; color: var(--text); font: 900 19px/1.1 "Arial Black", Arial, sans-serif; text-transform: uppercase; }
.wiki-faction-card-copy p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.wiki-faction-card.is-missing { display: block; min-height: 0; padding: 12px 14px; border-color: rgba(174, 178, 184, .28); }
.wiki-faction-card.is-missing p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .wiki-layout { grid-template-columns: 1fr; } .wiki-sidebar { border-right: 0; border-bottom: 1px solid var(--line); } .wiki-tree { max-height: 260px; overflow: auto; } .wiki-article { padding: 18px 14px 28px; } .wiki-faction-card { grid-template-columns: 86px minmax(0, 1fr); } .wiki-faction-card-visual { min-height: 104px; } .wiki-faction-card-copy { padding: 13px 14px; } }
