.wiki-search { max-width: 520px; margin-top: 18px; }
.wiki-layout { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 40px 0 90px; align-items: start; }
.wiki-layout > * { min-width: 0; }
.wiki-toc { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.wiki-toc a { color: var(--nw-dim); padding: 7px 12px; border-left: 2px solid var(--nw-line); font: 600 .9rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.wiki-toc a:hover { color: var(--nw-text); }
.wiki-toc a.on { color: var(--nw-yellow); border-left-color: var(--nw-yellow); }
@media (max-width: 900px) { .wiki-layout { grid-template-columns: 1fr; } .wiki-toc { position: static; grid-auto-flow: column; overflow-x: auto; max-height: none; } .wiki-toc a { border-left: 0; border-bottom: 2px solid var(--nw-line); white-space: nowrap; } }
.wiki-body section { margin-bottom: 64px; scroll-margin-top: calc(var(--header-h) + 20px); }
.wiki-body h2 { font-size: 2.2rem; border-bottom: 1px solid var(--nw-line); padding-bottom: 12px; margin-bottom: 18px; }
.wiki-body h3 { margin-top: 26px; color: var(--nw-cyan); font-size: 1.2rem; letter-spacing: .12em; }
.wiki-body p, .wiki-body li { color: #c3c7d6; }
.wiki-body .table td b { color: var(--nw-text); }
.ing { display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; white-space: nowrap; margin: 0 8px 4px 0; }
.ing i { font-style: normal; font-family: var(--font-mono); color: var(--nw-yellow); }
.q-dot { display: inline-block; width: 8px; height: 8px; background: var(--qc, #c9d1d9); margin-right: 6px; }
.callout { border-left: 3px solid var(--nw-cyan); background: var(--nw-raised); padding: 14px 18px; margin: 16px 0; color: #c3c7d6; }
.callout.warn { border-left-color: var(--nw-red); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card { border: 1px solid var(--nw-line); background: var(--nw-raised); padding: 16px; position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fc, var(--nw-yellow)); }
.card h4 { font-size: 1.15rem; margin: 0 0 6px; }
.card p { font-size: .9rem; margin: 0 0 8px; }
.card small { font: 600 .68rem/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--nw-dim); }
.cmd-list code, .wiki-body code { font-family: var(--font-mono); color: var(--nw-yellow); background: #0a0c14; padding: 2px 6px; border: 1px solid var(--nw-line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filters button { background: none; border: 1px solid var(--nw-line2); color: var(--nw-dim); font: 600 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; padding: 8px 10px; cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--nw-yellow); border-color: var(--nw-yellow); }
.hidden-by-search { display: none; }
.acc-loading { min-height: 30vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border: 2px solid var(--nw-line2); border-top-color: var(--nw-yellow); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card.has-img { padding-top: 0; overflow: hidden; }
.card-img { display: block; width: calc(100% + 32px); margin: 0 -16px 12px; aspect-ratio: 10 / 7; height: auto; object-fit: cover; border-bottom: 1px solid var(--nw-line); }
.race-thumb { float: left; width: 120px; height: 60px; object-fit: cover; margin: 2px 12px 2px 0; border: 1px solid var(--nw-line); }

/* official faction emblems */
.fac-card { position: relative; padding-right: 84px; }
.fac-card .wiki-fac { position: absolute; top: 14px; right: 14px; width: 56px; height: 56px; object-fit: contain; }
.fac-card .fac-ico-missing { display: none; }
