.wk-crumb { font-size: .9rem; margin: 0 0 .5rem; }
.wiki-workspace .dw-home-search{max-width:850px;margin:0 0 22px}
.wiki-workspace .dw-home-search label{display:block;font-weight:600;font-size:.95rem;margin-bottom:9px;color:#d7dfd9}
.wiki-workspace .dw-home-search>div{display:flex;gap:8px}
.wiki-workspace .dw-home-search input{flex:1;min-width:0;width:100%;min-height:52px;background:#0e1517;color:#edf0ed;border:1px solid #71817b;padding:12px 14px;font:inherit}
.wiki-workspace .dw-home-search button{flex-shrink:0;min-height:52px;padding:10px 20px;background:#e3bd7b;color:#18201f;border:1px solid #e3bd7b;font:inherit;font-weight:700}
@media(max-width:420px){.wiki-workspace .dw-home-search input{padding:10px;font-size:.9rem}.wiki-workspace .dw-home-search button{padding:10px 12px}}
.dw-pagination{display:flex;align-items:center;gap:16px;margin:10px 0;font-size:.9rem}
.wiki-workspace .dw-advanced{flex:0 1 auto;border:0;padding:0;margin:0;align-self:center;background:none}
.wiki-workspace .dw-advanced summary{font-size:.9rem;cursor:pointer;white-space:nowrap;padding:10px;color:#e3bd7b}
.wiki-workspace .dw-advanced>div{display:flex;gap:12px;flex-wrap:wrap;padding:12px 0 0}
.wiki-workspace .dw-advanced[open]{flex-basis:100%;order:2}
.wiki-workspace .dw-advanced label{flex-basis:180px}
.wiki-workspace .dw-mobile-sort{display:none}
@media(max-width:650px){.wiki-workspace .dw-mobile-sort{display:flex;gap:10px;align-items:center;margin:12px 0}.wiki-workspace .dw-mobile-sort select{min-width:0;flex:1}}
.wiki-workspace .dw-icon-placeholder{display:inline-block;width:30px;height:30px;vertical-align:middle;margin-right:10px;flex-shrink:0;visibility:hidden}
.wiki-workspace table:not(:has(img.dw-icon)) .dw-icon-placeholder,.wiki-workspace .dw-unit-heading>.dw-icon-placeholder{display:none}
/* Player reference: restrained military colours, readable tables and fixed control geometry. */
body.wiki-workspace[data-ws-site=dawnofwar4]{--ws-bg:#121719;--ws-panel:#192124;--ws-border:#354246;--ws-ink:#edf0ed;--ws-muted:#b2bebc;--ws-accent:#e3bd7b!important;background:#121719;color:var(--ws-ink);font-family:"Segoe UI",system-ui,sans-serif;font-size:16px;line-height:1.55}
.wiki-workspace[data-ws-site=dawnofwar4] .ws-header{background:#151c1e;border-color:#354246}
.wiki-workspace[data-ws-site=dawnofwar4] .ws-sidebar{background:#151c1e;border-color:#354246}
.wiki-workspace[data-ws-site=dawnofwar4] .ws-search-open{background:#111718;border-color:#60706e}
.wiki-workspace[data-ws-site=dawnofwar4] main{max-width:none;padding:28px 32px 60px;min-width:0}
.wiki-workspace[data-ws-site=dawnofwar4] h1{font-size:clamp(1.65rem,2.4vw,2.15rem);line-height:1.2;letter-spacing:-.025em;margin:10px 0 22px;max-width:35ch}
.wiki-workspace[data-ws-site=dawnofwar4] h2{font-size:1.3rem;line-height:1.3;margin:32px 0 14px;letter-spacing:0}
.wiki-workspace[data-ws-site=dawnofwar4] h3{font-size:1.05rem;line-height:1.4}
.wiki-workspace[data-ws-site=dawnofwar4] a{color:var(--ws-accent);text-underline-offset:3px}
.wiki-workspace[data-ws-site=dawnofwar4] a:hover{color:#fff0cc}
.wiki-workspace[data-ws-site=dawnofwar4] :focus-visible{outline:2px solid #fff0cc;outline-offset:3px}
.wiki-workspace[data-ws-site=dawnofwar4] [hidden]{display:none!important}
.wiki-workspace .dw-lead{font-size:1.05rem;max-width:76ch;color:#dae1dd}
.wiki-workspace .dw-launch{color:#cad3cf;font-size:.95rem}
.wiki-workspace .dw-preview{border-left:3px solid #e3bd7b;padding:10px 15px;background:#24231d;color:#e7d5ad;max-width:76ch;font-size:.92rem}
.wiki-workspace .dw-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:18px 0}
.wiki-workspace .dw-toolbar p{font-size:.85rem;color:var(--ws-muted);margin:0}
.wiki-workspace .dw-mode{display:flex;align-items:center;gap:10px;font-weight:600}
.wiki-workspace .dw-mode select{min-width:240px}
.wiki-workspace .dw-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px;background:#1a2225;border:1px solid #3c494c;margin:18px 0 10px;border-radius:3px}
.wiki-workspace .dw-filters label{display:flex;flex-direction:column;gap:5px;font-size:.85rem;color:#d0dad5;max-width:100%;flex:1 1 150px;min-width:0}
.wiki-workspace .dw-filters .dw-grow{flex:2 1 220px}
.wiki-workspace .dw-filters input,.wiki-workspace .dw-filters select{width:100%;background:#101719;border-color:#61706f;color:#eef1ec;font-size:.92rem;min-height:42px}
.wiki-workspace .dw-filters .dw-check{flex:1 1 190px;flex-direction:row;align-items:center;min-height:42px;gap:9px}
.wiki-workspace .dw-check input{width:18px;flex-shrink:0}
.wiki-workspace .dw-result-count,.wiki-workspace .dw-note{font-size:.85rem;color:var(--ws-muted);margin:10px 0}
.wiki-workspace .dw-table-wrap{max-width:100%;overflow:auto;border:1px solid #394649;border-radius:3px;scrollbar-color:#6b7773 #172022;margin:12px 0 24px}
.wiki-workspace table.dw-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.9rem;line-height:1.45;margin:0;background:#161e20;color:var(--ws-ink)}
.wiki-workspace .dw-table caption{text-align:left;padding:11px 14px;font-size:.85rem;color:#bac7bf;background:#1d282a;border-bottom:1px solid #3a484a;font-weight:500}
.wiki-workspace .dw-table th,.wiki-workspace .dw-table td{border:0;border-bottom:1px solid #303c3e;text-align:left;padding:12px 14px;vertical-align:top;font-variant-numeric:tabular-nums;white-space:normal}
.wiki-workspace .dw-table thead th{background:#233033;color:#d7dfd9;position:sticky;top:0;z-index:2;font-size:.82rem;font-weight:600;white-space:nowrap}
.wiki-workspace .dw-table thead button{font:inherit;color:inherit;background:none;border:0;border-radius:0;padding:0;min-height:28px;text-align:left;white-space:nowrap}
.wiki-workspace .dw-table th[aria-sort=ascending] button,.wiki-workspace .dw-table th[aria-sort=descending] button{color:#f1ce8e}
.wiki-workspace .dw-table tbody th{font-weight:600;min-width:180px;color:#e9ece5}
.wiki-workspace .dw-table tbody tr:nth-child(even){background:#192225}
.wiki-workspace .dw-table tbody tr:hover{background:#253336}
.wiki-workspace .dw-table tbody tr:last-child>*{border-bottom:0}
.wiki-workspace .dw-table td:empty::after{content:"Not listed";color:#a5b0aa}
.wiki-workspace .dw-table small{display:block;color:var(--ws-muted);font-weight:400;max-width:45ch}
.wiki-workspace .dw-tech{display:inline-block;border:1px solid #4c615a;background:#1b2c28;padding:3px 6px;font-size:.8rem;color:#d2dfd5}
.wiki-workspace .dw-table-hint{display:none}
.wiki-workspace .dw-unit-table{min-width:1600px}
.wiki-workspace .dw-unit-table tbody th{position:sticky;left:0;z-index:1;background:#1b2729;min-width:210px;max-width:250px;border-right:1px solid #455252}
.wiki-workspace .dw-table-wrap:has(.dw-unit-table){max-height:75vh}
.wiki-workspace .dw-icon{width:48px;height:48px;object-fit:contain;vertical-align:middle;margin-right:10px;background:#11191b;border-radius:2px}
.wiki-workspace .dw-unit-heading{display:flex;align-items:flex-start;gap:20px;max-width:900px;margin-bottom:20px}
.wiki-workspace .dw-unit-heading>.dw-icon{width:96px;height:96px;flex-shrink:0;margin:0}
.wiki-workspace .dw-unit-meta{margin:0 0 8px;font-size:.9rem;color:var(--ws-muted)}
.wiki-workspace .dw-description p{margin:4px 0;font-size:.92rem;max-width:70ch}
.wiki-workspace .dw-stat-block{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid #485551;border-bottom:1px solid #485551;margin:20px 0 12px;background:#1b2426}
.wiki-workspace .dw-stat-block>div{padding:14px 18px;border-right:1px solid #344241;min-width:0;position:relative}
.wiki-workspace .dw-stat-block dt{font-size:.82rem;color:#becac3;border:0;padding:0}
.wiki-workspace .dw-stat-block dd{font-size:1.45rem;font-weight:600;color:#f1f3e9;margin:1px 0 6px;padding:0;border:0}
.wiki-workspace .dw-stat-block .dw-rate-detail{grid-column:1/-1}
.wiki-workspace .dw-stat-block .dw-rate-detail dd{font-size:1rem;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
.wiki-workspace .dw-stat-track{height:3px;background:#384746}
.wiki-workspace .dw-stat-track span{display:block;height:3px;background:var(--faction-colour,#dfb977)}
.wiki-workspace [data-faction=space-marines]{--faction-colour:#ef9286}
.wiki-workspace [data-faction=orks]{--faction-colour:#b2d278}
.wiki-workspace [data-faction=necrons]{--faction-colour:#75dbc2}
.wiki-workspace [data-faction=adeptus-mechanicus]{--faction-colour:#e8b16d}
.wiki-workspace [data-faction=astra-militarum]{--faction-colour:#bcc497}
.wiki-workspace .dw-faction-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
.wiki-workspace .dw-faction-directory section{padding:0 0 16px;border-top:3px solid var(--faction-colour);min-width:0}
.wiki-workspace .dw-faction-directory section h2{margin:16px 0 8px}
.wiki-workspace .dw-faction-directory section h2 a{color:var(--faction-colour)}
.wiki-workspace .dw-faction-directory p{font-size:.92rem}
.wiki-workspace .dw-task-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.wiki-workspace .dw-task-list li{padding:12px 0;border-bottom:1px solid #3a4645;min-width:0}
.wiki-workspace .dw-task-list a{font-weight:600}
.wiki-workspace .dw-facts{margin:16px 0;max-width:900px}
.wiki-workspace .dw-facts>div{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;border-top:1px solid #384744;padding:13px 0}
.wiki-workspace .dw-facts dt{font-weight:600;padding:0;border:0}
.wiki-workspace .dw-facts dd{margin:0;padding:0;border:0;color:#d0d9d1}
.wiki-workspace .dw-compact-list{padding-left:20px;max-width:90ch}
.wiki-workspace .dw-compact-list li{margin:8px 0}
.wiki-workspace .dw-colour-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:0 20px}
.wiki-workspace .dw-colour-list>div{display:flex;align-items:center;gap:12px;border-bottom:1px solid #384443;padding:12px 0;font-size:.88rem;text-transform:capitalize}
.wiki-workspace .dw-swatch{width:48px;height:35px;border:1px solid #7c8780;flex-shrink:0}
.wiki-workspace .dw-alias{scroll-margin-top:100px}
.wiki-workspace .dw-commanders>section{border-top:2px solid var(--faction-colour,#657772);padding-top:10px;margin-top:24px}
@media(max-width:1050px){.wiki-workspace[data-ws-site=dawnofwar4] main{padding:24px}.wiki-workspace .dw-stat-block{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
 .wiki-workspace[data-ws-site=dawnofwar4] main{padding:18px 14px 40px}
 .wiki-workspace .dw-faction-directory,.wiki-workspace .dw-task-list{grid-template-columns:1fr}
 .wiki-workspace .dw-stat-block{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wiki-workspace .dw-stat-block>div{padding:12px}
 .wiki-workspace .dw-facts>div{grid-template-columns:1fr;gap:4px}
 .wiki-workspace .dw-filters{gap:10px;padding:12px}
 .wiki-workspace .dw-filters label{flex-basis:calc(50% - 10px)}
 .wiki-workspace .dw-filters .dw-grow{flex-basis:100%}
 .wiki-workspace .dw-mode{width:100%}.wiki-workspace .dw-mode select{min-width:0;flex:1}
 .wiki-workspace .dw-unit-heading{gap:12px}.wiki-workspace .dw-unit-heading>.dw-icon{width:70px;height:70px}
 .wiki-workspace .dw-table{min-width:0}
 .wiki-workspace .dw-table:not(.dw-unit-table):has(thead th:nth-child(4)){min-width:650px}
 .wiki-workspace .dw-table:not(.dw-unit-table) tbody th{position:sticky;left:0;z-index:1;background:#1b2729;border-right:1px solid #455252;max-width:200px}
 .wiki-workspace .dw-table:not(.dw-unit-table) thead th:first-child{left:0;z-index:3}
 .wiki-workspace .dw-table:not(.dw-unit-table):has(thead th:nth-child(4)) .dw-table-hint{display:block;font-size:.75rem;color:#aebdb7;margin-top:3px}
 .wiki-workspace .dw-table-wrap:has(.dw-unit-table){max-height:none;border:0;overflow:visible}
 .wiki-workspace table.dw-unit-table{display:block;min-width:0;background:none}
 .wiki-workspace .dw-unit-table caption{display:block;background:none;padding:0 0 10px;border:0}
 .wiki-workspace .dw-unit-table thead{display:none}
 .wiki-workspace .dw-unit-table tbody{display:block}
 .wiki-workspace .dw-unit-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #4d5d57;border-left:3px solid var(--faction-colour);border-radius:3px;margin-bottom:16px;background:#1a2426!important;overflow:hidden}
 .wiki-workspace .dw-unit-table tbody th{grid-column:1/-1;position:static;min-width:0;max-width:none;background:#263432;border:0;border-bottom:1px solid #47564f;padding:12px;font-size:1.05rem}
 .wiki-workspace .dw-unit-table td{display:block;padding:8px 12px;min-width:0;font-size:.9rem;border-bottom:1px solid #34433e;overflow-wrap:anywhere}
 .wiki-workspace .dw-unit-table td::before{content:attr(data-label);display:block;color:#b0beb4;font-size:.76rem;margin-bottom:3px}
 .wiki-workspace .dw-unit-table td[data-label="Tech requirement"],.wiki-workspace .dw-unit-table td[data-label="Cost"]{grid-column:1/-1}
 .wiki-workspace .dw-colour-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
 .wiki-workspace .dw-colour-list>div{font-size:.8rem;gap:8px}.wiki-workspace .dw-swatch{width:35px}
}
.wk-crumb a { color: inherit; }
.wk-home-links { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); padding: 0; list-style: none; }
.wk-home-links a { display: block; padding: .75rem 1rem; border: 1px solid color-mix(in srgb, var(--ws-accent) 40%, transparent); border-radius: .5rem; text-decoration: none; }
.wk-patch time { opacity: .8; }
.wk-feedback { margin-top: 2rem; }
.wk-footer { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; padding: 2rem 1rem; }
body.wiki-workspace { --ws-accent: #ef9a8e !important; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: #13191e; padding: .6rem 1rem; }
.skip:focus { top: .5rem; }
.wiki-workspace .wk-table th { font-size: .94rem; }
.wiki-workspace .wk-table td, .wiki-workspace .wk-table th { padding: .7rem .8rem; }
.wk-preview { border-left: 3px solid var(--ws-accent); padding: .55rem .8rem; background: color-mix(in srgb, var(--ws-accent) 8%, transparent); font-size: .94rem; }
.wk-table-wrap { overflow-x: auto; margin: 1rem 0 1.8rem; max-width: 100%; }
.wk-table { border-collapse: collapse; width: 100%; font-size: .96rem; }
.wk-table caption { text-align: left; font-weight: 650; margin-bottom: .65rem; }
.wk-table th, .wk-table td { text-align: left; vertical-align: top; padding: .75rem .8rem; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); line-height: 1.55; }
.wk-table thead { background: color-mix(in srgb, var(--ws-accent) 8%, transparent); }
.wk-table th[scope="row"] { font-weight: 600; }
.wk-table tbody tr:target { background: color-mix(in srgb, var(--ws-accent) 17%, transparent); }
.wk-role { display: block; font-size: .88rem; opacity: .8; margin-top: .15rem; }
.wk-filters { display: flex; gap: .8rem; align-items: end; flex-wrap: wrap; margin: 1.4rem 0 .5rem; }
.wk-filters label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.wk-filters input, .wk-filters select, .wk-filters button { min-height: 44px; font: inherit; padding: .55rem .7rem; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 4px; color: inherit; background: var(--ws-bg, #121618); max-width: 100%; }
.wk-filters button { cursor: pointer; }
.wk-grow { flex: 1 1 15rem; }
.wk-jump { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92rem; margin: 1.4rem 0; }
.wk-panel { max-width: 650px; margin: 2rem 0; }
.wk-panel img { width: 100%; height: auto; display: block; }
.wk-panel figcaption { font-size: .85rem; margin-top: .5rem; opacity: .8; }
.wk-facts { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: .8rem 1.2rem; }
.wk-facts dt { font-weight: 650; }
.wk-facts dd { margin: 0; line-height: 1.6; }
.wk-leader { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding: .1rem 0 .8rem; }
.wk-leader h3 { margin-bottom: .25rem; }
.wk-leader p { margin: .4rem 0; }
.wk-directory { padding-left: 1.2rem; line-height: 2; }
tr[hidden] { display: none; }
@media (max-width: 650px) {
  .wk-table th, .wk-table td { padding: .65rem .55rem; }
  .wk-table { font-size: .92rem; }
  .wk-roster { min-width: 0; table-layout: fixed; display: block; }
  .wk-roster caption, .wk-roster tbody { display: block; width: 100%; }
  .wk-roster thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wk-roster tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(7rem, 38%); border-bottom: 1px solid var(--ws-border); padding: .8rem 0; gap: .4rem .7rem; }
  .wiki-workspace .wk-roster td, .wiki-workspace .wk-roster th { min-width: 0; padding: .25rem .3rem; border: 0; background: transparent; overflow-wrap: anywhere; }
  .wk-roster td:nth-child(3), .wk-roster td:nth-child(4) { grid-column: 1 / -1; }
  .wk-roster td:nth-child(4) { font-size: .86rem; }
  .wk-roster tbody tr[hidden] { display: none; }
  .wk-filters label { flex: 1 1 100%; min-width: 0; }
  .wk-filters button { width: 100%; }
  .wk-facts { display: block; }
  .wk-facts dt { margin-top: 1rem; }
  .wk-facts dd { margin-top: .3rem; }
}

/* Compact rule tables keep formulas and small numeric comparisons readable. */
@media(max-width:650px){
 .wiki-workspace table.dw-table.dw-rule-compact{min-width:0;table-layout:fixed;width:100%}
 .wiki-workspace .dw-rule-compact th,.wiki-workspace .dw-rule-compact td{min-width:0;padding:10px 8px;overflow-wrap:anywhere;white-space:normal}
 .wiki-workspace .dw-rule-compact thead th{white-space:normal}
 .wiki-workspace .dw-rule-compact tbody th{min-width:0}
 .wiki-workspace .dw-rule-compact th:first-child{width:34%}
}

/* Dawn of War IV: Grenze display, Saira interface, blackened steel and brass. */
@font-face{font-family:Grenze;src:url(/fonts/grenze.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Saira;src:url(/fonts/saira.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Grenze fallback";src:local("Georgia");size-adjust:94.2994%;ascent-override:116.6497%;descent-override:40.2972%;line-gap-override:0%}
@font-face{font-family:"Saira fallback";src:local("Arial");size-adjust:98.3503%;ascent-override:115.4038%;descent-override:44.6364%;line-gap-override:0%}
body.wiki-workspace[data-ws-site=dawnofwar4]{--ws-bg:#101112;--ws-panel:#181b1d;--ws-border:#49433a;--ws-ink:#e8e5dc;--ws-muted:#bbb6a8;--ws-accent:#d9b76e!important;--bg:var(--ws-bg);--panel:var(--ws-panel);--line:var(--ws-border);--ink:var(--ws-ink);--text:var(--ws-ink);--muted:var(--ws-muted);--accent:var(--ws-accent);font-family:Saira,"Saira fallback","Liberation Sans",sans-serif;background:#101112;font-variant-numeric:tabular-nums;line-height:1.55}
body.wiki-workspace[data-ws-site=dawnofwar4] h1,body.wiki-workspace[data-ws-site=dawnofwar4] h2,body.wiki-workspace[data-ws-site=dawnofwar4] h3,body.wiki-workspace[data-ws-site=dawnofwar4] .ws-game{font-family:Grenze,"Grenze fallback",serif;font-weight:600;letter-spacing:.025em;color:#eee8d9;line-height:1.12}
body.wiki-workspace[data-ws-site=dawnofwar4] h1{font-size:clamp(2rem,3vw,2.8rem)}
body.wiki-workspace[data-ws-site=dawnofwar4] h2{font-size:1.8rem;padding-bottom:10px;border-bottom:1px solid #62543b;margin:30px 0 16px}
body.wiki-workspace[data-ws-site=dawnofwar4] h3{font-size:1.3rem}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-game{font-size:24px}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-game small{font:400 11px Saira,sans-serif;letter-spacing:.14em;color:#bbb6a8}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-header{background:#141617;border-color:#726044;box-shadow:0 2px 12px #0009}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-sidebar{background:#141617 url(/img/game/menu-texture.webp) center/auto 100%;border-color:#49433a}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-sidebar a{font-family:Saira,sans-serif;color:#ddd5c3!important;border-radius:0}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-sidebar a[aria-current=page]{background:#363126!important;box-shadow:inset 3px 0 #d9b76e}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-sidebar h3{font-family:Saira,sans-serif;color:#b8ab8f;font-size:11px;letter-spacing:.14em}
body.wiki-workspace[data-ws-site=dawnofwar4] main{padding:22px 28px 60px;max-width:1500px}
body.wiki-workspace[data-ws-site=dawnofwar4] button,body.wiki-workspace[data-ws-site=dawnofwar4] input,body.wiki-workspace[data-ws-site=dawnofwar4] select{font-family:Saira,sans-serif;border-radius:0;color:#e8e5dc;background:#151718;border-color:#76664c;min-height:40px}
body.wiki-workspace[data-ws-site=dawnofwar4] button{cursor:pointer}
body.wiki-workspace[data-ws-site=dawnofwar4] :focus-visible{outline:2px solid #f5d88e;outline-offset:3px}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-search-open{background:#101112;border-color:#716146}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-ad{background:#141617;border-color:#39372f}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table,body.wiki-workspace[data-ws-site=dawnofwar4] .dw-stat-block{background:#181b1d}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table thead th,body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table caption{background:#282721;color:#e8dfc9;border-color:#63563d}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table tbody tr:nth-child(even){background:#1c1e1e}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table tbody tr:hover{background:#302d24}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table tbody th{background:transparent;color:#e8e5dc}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table td,body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table th{border-color:#3a3b35;padding:10px 12px}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table td:empty::after{content:"–";color:#aaa696}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-table-wrap{border-color:#62543b;border-radius:0}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-filters{background:#1b1d1c;border-color:#514a3d;border-radius:0;margin:12px 0 6px;padding:12px}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-filters input,body.wiki-workspace[data-ws-site=dawnofwar4] .dw-filters select{background:#111314;border-color:#6b604a}
.dw-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.wiki-workspace .dw-cost{display:inline-flex;gap:10px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#f2e9ce;align-items:center;font-size:14px}
.wiki-workspace .dw-cost>span{display:inline-flex;gap:4px;align-items:center}
.wiki-workspace img.dw-resource{width:20px;height:20px;object-fit:contain;margin:0}
.wiki-workspace img.dw-card-art{width:124px;height:206px;max-width:100%;object-fit:contain;display:block;margin:0 auto;flex-shrink:0}
.wiki-workspace img.dw-faction-symbol{width:36px;height:36px;object-fit:contain;display:inline-block;vertical-align:middle;margin:0 8px 0 0}
.wiki-workspace [data-faction=space-marines]{--faction-colour:#d68673;--faction-dark:#352422}
.wiki-workspace [data-faction=orks]{--faction-colour:#c6af61;--faction-dark:#302c1c}
.wiki-workspace [data-faction=necrons]{--faction-colour:#72d7a3;--faction-dark:#182b23}
.wiki-workspace [data-faction=adeptus-mechanicus]{--faction-colour:#de9279;--faction-dark:#33211d}
.wiki-workspace .dw-home-hero{height:310px;position:relative;overflow:hidden;margin:0 0 18px;border:1px solid #77603e;background:#1c2022}
.wiki-workspace .dw-hero-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 46%}
.wiki-workspace .dw-home-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#080b0de6,transparent 90%),linear-gradient(0deg,#090c0dc9,transparent 55%);pointer-events:none}
.wiki-workspace .dw-hero-content{position:relative;z-index:1;padding:20px 30px;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-home-hero h1{margin:0 0 18px;display:flex;align-items:end;gap:18px;max-width:none;font-size:1.9rem;text-shadow:0 2px 8px #000}
.wiki-workspace .dw-home-logo{width:185px;height:160px;object-fit:contain}
.wiki-workspace .dw-home-search{width:100%;max-width:540px;margin:0}
.wiki-workspace .dw-home-search input{background:#101313e8;border-color:#96825b;min-height:46px}
.wiki-workspace .dw-home-search button{background:#a8894d;color:#0e1112;border-color:#c5aa70;min-height:46px;padding:8px 18px}
.wiki-workspace .dw-faction-panels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.wiki-workspace .dw-faction-panel{display:block;background:linear-gradient(0deg,#171919,var(--faction-dark));border:1px solid #66563c;border-top:3px solid var(--faction-colour);text-decoration:none;overflow:hidden;transition:border-color .15s}
.wiki-workspace .dw-faction-panel:hover{border-color:#d9b76e}
.wiki-workspace .dw-faction-label{display:flex;align-items:center;padding:10px 8px;color:#ede5d3;font-family:Grenze,serif;font-size:1.25rem;min-height:58px;line-height:1.05}
.wiki-workspace .dw-faction-cards{display:flex;justify-content:center;gap:4px;padding:0 8px 10px;overflow:hidden}
.wiki-workspace .dw-faction-cards img{width:calc((100% - 8px)/3);height:auto;max-width:124px;margin:0}
.wiki-workspace .dw-home-commanders{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}
.wiki-workspace .dw-home-commanders>a{min-width:0;text-decoration:none;background:#1b1d1c;border-bottom:2px solid var(--faction-colour);padding:10px 4px 12px;text-align:center}
.wiki-workspace .dw-home-commanders img{height:auto;max-height:206px;object-fit:contain;width:100%;max-width:124px}
.wiki-workspace .dw-home-commanders span{display:block;font:600 1.1rem/1.15 Grenze,serif;color:#eee6d5;margin-top:10px}
.wiki-workspace .dw-home-more{text-align:right;font-size:14px}
.wiki-workspace .dw-home-maps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.wiki-workspace .dw-home-maps>a{display:block;min-width:0;text-decoration:none;background:#1b1d1c;border:1px solid #514a3d}
.wiki-workspace .dw-home-maps>a:hover{border-color:#e7c37b}
.wiki-workspace .dw-home-maps img{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover}
.wiki-workspace .dw-home-maps span{display:block;font:600 1.2rem/1.15 Grenze,serif;color:#eee6d5;padding:10px 12px 0}
.wiki-workspace .dw-home-maps small{display:block;font-size:12px;color:#bbb6a8;padding:3px 12px 11px}
@media(max-width:650px){.wiki-workspace .dw-home-maps{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
@media(min-width:1001px){.wiki-workspace .dw-home-commanders a[href$="/technoarcheologist/"] span{font-size:.86rem;padding-top:3px}}
.wiki-workspace a.dw-unit-card[href$="/technoarcheologist/"] h3{font-size:1.02rem}
.wiki-workspace .dw-browse-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.wiki-workspace .dw-browse-tiles>a{display:flex;align-items:center;min-height:110px;gap:14px;padding:12px 18px;background:#1d201f;border:1px solid #514a3d;text-decoration:none;font:600 1.4rem Grenze,serif;color:#e7d8b8}
.wiki-workspace .dw-browse-tiles img{width:84px;height:84px;object-fit:contain;background:transparent;margin:0}
.wiki-workspace .dw-browse-tiles img.dw-browse-photo{object-fit:cover;border:1px solid #514a3d}
.wiki-workspace .dw-latest{border-top:1px solid #62543b;padding-top:18px;font-size:14px}
.wiki-workspace .dw-reference-paths{display:flex;gap:16px;flex-wrap:wrap;padding:20px;border:1px solid #62543b;background:#20221e}
.wiki-workspace .dw-unit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px}
.wiki-workspace .dw-roster-group>h2{display:flex;align-items:center;border-color:var(--faction-colour)}
.wiki-workspace a.dw-unit-card{display:flex;flex-direction:column;text-decoration:none;background:#1b1e1e;border:1px solid #524b3e;border-top:2px solid var(--faction-colour);color:#e8e5dc;min-width:0;padding:12px 10px}
.wiki-workspace a.dw-unit-card:hover{border-color:#e7c37b;background:#252722}
.wiki-workspace .dw-card-picture{height:206px;display:flex;justify-content:center;align-items:center;margin-bottom:12px}
.wiki-workspace .dw-card-copy h3{margin:0 0 6px;font-size:1.25rem;min-height:2.25em;color:#eee2c7}
.wiki-workspace .dw-card-role{font-size:12px;color:#bbb6a8;line-height:1.4;margin:0 0 10px;min-height:2.8em}
.wiki-workspace .dw-card-copy dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 0;padding:10px 0 0;border-top:1px solid #4a483d}
.wiki-workspace .dw-card-copy dl>div{min-width:0}
.wiki-workspace .dw-card-copy dt{font-size:11px;color:#bbb6a8;padding:0;border:0}
.wiki-workspace .dw-card-copy dd{margin:0;font-size:17px;font-variant-numeric:tabular-nums;padding:0;border:0}
.wiki-workspace .dw-view-controls{display:flex;gap:8px;margin:12px 0}
.wiki-workspace .dw-view-controls button[aria-pressed=true]{background:#b4985f;color:#111;border-color:#dbc28e}
.wiki-workspace .dw-unit-heading>.dw-card-art{margin:0;width:124px;height:206px}
.wiki-workspace .dw-unit-heading{border-top:3px solid var(--faction-colour);padding:18px;background:linear-gradient(110deg,var(--faction-dark),#191c1c);max-width:none;align-items:center}
.wiki-workspace .dw-unit-heading .dw-faction-symbol{width:44px;height:44px}
.wiki-workspace .dw-header-stats{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0;color:#e8dfc8;font-size:14px}
.wiki-workspace .dw-faction-banner{position:relative;height:200px;overflow:hidden;border:1px solid #62543b;border-left:4px solid var(--faction-colour);background:#1c201f;display:flex;align-items:center;padding:24px;gap:20px}
.wiki-workspace .dw-faction-banner .dw-banner-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.45}
.wiki-workspace .dw-faction-banner .dw-faction-symbol{position:relative;width:110px;height:145px}
.wiki-workspace .dw-faction-banner p{position:relative;font:600 2.4rem Grenze,serif;color:#f4e8d0;text-shadow:0 2px 8px #000}
@media(min-width:1100px){body.wiki-workspace .dw-unit-table{min-width:0;table-layout:fixed;font-size:12px}body.wiki-workspace .dw-unit-table th,body.wiki-workspace .dw-unit-table td{padding:8px 5px;min-width:0;max-width:none;overflow-wrap:anywhere;position:static}body.wiki-workspace .dw-unit-table thead th,body.wiki-workspace .dw-unit-table thead button{white-space:normal;font-size:11px}body.wiki-workspace .dw-unit-table th:first-child{width:145px}body.wiki-workspace .dw-unit-table th:nth-child(6){width:112px}body.wiki-workspace .dw-unit-table td:nth-child(6){white-space:nowrap}body.wiki-workspace .dw-unit-table .dw-cost{font-size:12px;gap:5px}body.wiki-workspace .dw-unit-table .dw-resource{width:16px;height:16px}body.wiki-workspace .dw-unit-table .dw-icon{width:30px;height:40px;float:left;margin-right:5px}body.wiki-workspace .dw-unit-table th:nth-child(3),body.wiki-workspace .dw-unit-table td:nth-child(3),body.wiki-workspace .dw-unit-table th:nth-child(4),body.wiki-workspace .dw-unit-table td:nth-child(4){display:none}body.wiki-workspace .dw-unit-table th:nth-child(5){width:135px}}
@media(max-width:1000px){.wiki-workspace .dw-home-commanders{grid-template-columns:repeat(4,minmax(0,1fr))}.wiki-workspace .dw-faction-panels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body.wiki-workspace[data-ws-site=dawnofwar4] main{padding:14px 12px 40px}.wiki-workspace .dw-home-hero{height:230px;margin-bottom:10px}.wiki-workspace .dw-hero-content{padding:15px}.wiki-workspace .dw-home-logo{width:132px;height:114px}.wiki-workspace .dw-home-hero h1{gap:12px;margin-bottom:14px!important;font-size:1.45rem!important}.wiki-workspace .dw-hero-background{object-position:62% 50%}.wiki-workspace .dw-home-search input{font-size:12px;min-height:42px;padding:9px 8px}.wiki-workspace .dw-home-search button{font-size:12px;min-height:42px;padding:8px 11px}.wiki-workspace .dw-faction-panels{gap:8px}.wiki-workspace .dw-faction-label{padding:7px 5px;min-height:40px;font-size:1.05rem}.wiki-workspace .dw-faction-label img{width:25px;height:25px;margin-right:4px}.wiki-workspace .dw-faction-cards{padding:0 5px 7px;gap:3px;height:105px}.wiki-workspace .dw-faction-cards img{width:calc((100% - 6px)/3);height:100%;object-fit:contain}.wiki-workspace .dw-home-commanders{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.wiki-workspace .dw-home-commanders span{font-size:.95rem}.wiki-workspace .dw-home-commanders>a{padding:7px 3px}.wiki-workspace .dw-browse-tiles{grid-template-columns:1fr 1fr;gap:8px}.wiki-workspace .dw-browse-tiles>a{padding:10px;flex-direction:column;gap:8px;text-align:center;font-size:1.2rem}.wiki-workspace .dw-browse-tiles img{width:65px;height:65px}.wiki-workspace .dw-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wiki-workspace a.dw-unit-card{padding:10px 8px}.wiki-workspace .dw-card-copy h3{font-size:1.2rem}.wiki-workspace .dw-card-copy dd{font-size:15px}.wiki-workspace .dw-card-copy dt{font-size:10px}.wiki-workspace .dw-unit-heading{padding:12px;gap:12px;align-items:flex-start}.wiki-workspace .dw-unit-heading>.dw-card-art{width:124px;height:206px;max-width:40%}.wiki-workspace .dw-unit-heading .dw-description{font-size:13px}.wiki-workspace .dw-unit-heading .dw-description p{font-size:13px}.wiki-workspace .dw-unit-meta{font-size:12px}.wiki-workspace .dw-header-stats{gap:8px;font-size:12px}.wiki-workspace .dw-unit-heading .dw-faction-symbol{width:30px;height:30px}.wiki-workspace .dw-faction-banner{height:150px;padding:14px}.wiki-workspace .dw-faction-banner .dw-faction-symbol{width:65px;height:100px}.wiki-workspace .dw-faction-banner p{font-size:1.8rem}.wiki-workspace .dw-card-copy .dw-cost{gap:6px;font-size:12px}.wiki-workspace .dw-card-copy img.dw-resource{width:17px;height:17px}}

body.wiki-workspace[data-ws-site=dawnofwar4] .ws-sidebar section>h2{font:400 11px/1.4 Saira,sans-serif;letter-spacing:.13em;margin:24px 0 8px;padding-bottom:8px;color:#c3b491;border-color:#514a3d}
.wiki-workspace .dw-home-commanders span{overflow-wrap:anywhere}

@media(max-width:650px){
body.wiki-workspace table.dw-table.dw-family-table{display:block;width:100%;min-width:0;background:transparent}
.wiki-workspace .dw-family-table caption{display:block}.wiki-workspace .dw-family-table thead{display:none}.wiki-workspace .dw-family-table tbody{display:block}
.wiki-workspace .dw-family-table tr{display:grid;grid-template-columns:1fr 1fr;gap:0;border-bottom:1px solid #5b503a;padding:10px 0}
body.wiki-workspace .dw-family-table tr>th{grid-column:1/-1;position:static;max-width:none;min-width:0;padding:4px 10px 8px;background:transparent!important;border:0;display:flex;align-items:center;gap:8px;font-size:15px}
body.wiki-workspace .dw-family-table tr>td{border:0;padding:4px 10px;overflow-wrap:anywhere;min-width:0;font-size:13px}
.wiki-workspace .dw-family-table td::before{content:attr(data-label);display:block;font-size:10px;color:#bbb6a8}
.wiki-workspace .dw-family-table td:nth-child(5),.wiki-workspace .dw-family-table td:nth-child(6),.wiki-workspace .dw-family-table td[data-label="Requires"]{grid-column:1/-1}
.wiki-workspace .dw-family-table .dw-description p{font-size:13px;margin:3px 0}.wiki-workspace .dw-family-table img.dw-icon{float:none;flex-shrink:0;width:48px;height:48px;object-fit:contain;background:transparent}
}

.wiki-workspace .dw-table-wrap{contain:inline-size;isolation:isolate}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-filters{border-width:2px;border-image:url(/img/game/9bae3116d0c4f95444dd.webp) 18 30 / 2px stretch}


.wiki-workspace .dw-cost>span{position:relative}.dw-sr{left:0;top:0}
@media(max-width:650px){.wiki-workspace .dw-home-commanders{grid-template-columns:repeat(2,minmax(0,1fr))}.wiki-workspace .dw-home-commanders img{width:124px;height:206px}.wiki-workspace .dw-home-commanders span{font-size:1.15rem}}
@media(max-width:360px){.wiki-workspace .dw-card-copy .dw-cost{gap:4px;font-size:11px}.wiki-workspace .dw-card-copy img.dw-resource{width:14px;height:14px}.wiki-workspace .dw-card-copy .dw-cost>span{gap:3px}}
.wiki-workspace .dw-card-copy{overflow-wrap:anywhere;min-width:0}

[data-faction=space-marines]{--faction-hud:url(/img/game/d9164c464c1ebe0112d8.webp)}
[data-faction=orks]{--faction-hud:url(/img/game/e2e367011b5e5b497740.webp)}
[data-faction=necrons]{--faction-hud:url(/img/game/49b6aa3ec0721b0b3e64.webp)}
[data-faction=adeptus-mechanicus]{--faction-hud:url(/img/game/b7567d79b627b70626ee.webp)}

.wiki-workspace .dw-unit-heading{position:relative;isolation:isolate}
.wiki-workspace .dw-unit-heading::after{content:"";position:absolute;inset:0 8px 0 auto;width:150px;background:var(--faction-hud) right center / contain no-repeat;opacity:.13;z-index:-1;pointer-events:none}
.wiki-workspace .dw-unit-card:not(:has(.dw-card-picture)){grid-column:1/-1;max-width:750px}
.wiki-workspace .dw-unit-card:not(:has(.dw-card-picture)) .dw-card-copy h3,.wiki-workspace .dw-unit-card:not(:has(.dw-card-picture)) .dw-card-role{min-height:0}

body.wiki-workspace[data-ws-site=dawnofwar4] .ws-dialog,body.wiki-workspace[data-ws-site=dawnofwar4] .ws-compare-bar{background:#181b1d;border-color:#76664c;border-radius:0}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-search-dialog li a:hover,body.wiki-workspace[data-ws-site=dawnofwar4] .ws-search-dialog li a:focus{background:#302d24}
body.wiki-workspace[data-ws-site=dawnofwar4] .ws-search-dialog li p{color:#ddd5c3}
body.wiki-workspace[data-ws-site=dawnofwar4] .gamedb-account-menu>div,body.wiki-workspace[data-ws-site=dawnofwar4] .ws-comment-thread{border-radius:0}
body.wiki-workspace[data-ws-site=dawnofwar4] footer{background:#141617;border-top:1px solid #49433a}

/* Native Army Painter artwork, grouped by the game's faction and icon categories. */
body.wiki-workspace main:has(.dw-painter) .ws-page-sections{position:sticky;top:72px;z-index:3;padding:10px;background:#151918;border-block:1px solid #655a44}
.wiki-workspace .dw-painter-faction{scroll-margin-top:80px;margin-bottom:38px}
.wiki-workspace .dw-painter-faction>h2{scroll-margin-top:170px;border-bottom:2px solid var(--faction-colour,#b69a63);padding-bottom:8px}
.wiki-workspace .dw-painter-faction>h3{margin:18px 0 10px;font-size:1.25rem}
.wiki-workspace .dw-painter figure{margin:0;min-width:0}
.wiki-workspace .dw-painter-schemes{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.wiki-workspace .dw-painter-schemes figure{background:#1b1e1e;border:1px solid #524b3e;border-top:2px solid var(--faction-colour,#b69a63)}
.wiki-workspace .dw-painter-schemes img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.wiki-workspace .dw-painter figcaption{color:#e8e5dc;font-size:15px;text-align:center;padding:7px 5px;line-height:1.25}
.wiki-workspace .dw-painter-decals{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px}
.wiki-workspace .dw-painter-decals figure{background:#292b29;border:1px solid #4e4a3f;padding:8px;display:flex;align-items:center;justify-content:center;flex-direction:column}
.wiki-workspace .dw-painter-decals img{display:block;width:100%;height:90px;object-fit:contain;filter:url(#dw-decal-tone)}
@media(max-width:650px){body.wiki-workspace main:has(.dw-painter) .ws-page-sections{top:68px}.wiki-workspace .dw-painter-schemes{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wiki-workspace .dw-painter-decals{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.wiki-workspace .dw-painter-decals figure{padding:5px}.wiki-workspace .dw-painter-decals img{height:72px}.wiki-workspace .dw-painter figcaption{font-size:14px}}

/* Portrait-led unit and faction reference pages. */
.wiki-workspace .dw-unit-heading{display:grid;grid-template-columns:minmax(180px,270px) minmax(0,1fr);gap:28px;padding:24px 28px;border-bottom:1px solid #62543b}
.wiki-workspace .dw-unit-portrait{min-width:0;display:grid;place-items:center;align-self:center}
.wiki-workspace .dw-header-art{max-width:100%;width:auto;height:290px;object-fit:contain}
.wiki-workspace .dw-unit-portrait .dw-card-art{width:124px;height:206px;margin:0}
.wiki-workspace .dw-unit-intro{min-width:0}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-unit-intro h1{font-size:clamp(2rem,3.2vw,3rem);margin:6px 0 20px;max-width:none;overflow-wrap:anywhere}
.wiki-workspace .dw-unit-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wiki-workspace .dw-header-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0 20px;padding:14px 0;border-top:1px solid #62543b;border-bottom:1px solid #62543b}
.wiki-workspace .dw-header-stats>div{min-width:0}.wiki-workspace .dw-header-stats>div>span{display:block;font-size:11px;color:#bbb6a8}.wiki-workspace .dw-header-stats strong{font-size:19px;font-weight:400;display:block}
.wiki-workspace .dw-header-stats [data-header-value=cost]{grid-column:span 1}
.wiki-workspace .dw-header-stats>div:has([data-header-value=cost]){grid-column:span 2}
.wiki-workspace .dw-header-stats .dw-cost{font-size:17px}
.wiki-workspace .dw-requirement-details{font-size:13px;margin:8px 0 28px;padding:10px 14px;border:1px solid #514a3d;color:#ccc4b2}
.wiki-workspace .dw-requirement-details summary{cursor:pointer;color:#d9b76e}
.wiki-workspace .dw-requirement-details h3{font-size:1.1rem;margin:14px 0 6px}
.wiki-workspace .dw-requirement-details ul{margin:5px 0 8px;padding-left:20px}
.wiki-workspace .dw-faction-banner{height:230px;background:linear-gradient(95deg,var(--faction-dark),#161a19);gap:20px;isolation:isolate;margin-bottom:18px}
.wiki-workspace .dw-faction-banner::after{content:"";position:absolute;inset:0 0 0 auto;width:250px;background:var(--faction-hud) center/140px auto no-repeat;opacity:.14;z-index:-1}
.wiki-workspace .dw-banner-character{position:absolute;right:0;top:0;width:235px;height:100%;object-fit:cover;object-position:center 25%;opacity:.65;z-index:-1;mask-image:linear-gradient(90deg,transparent,#000 35%)}
.wiki-workspace .dw-faction-banner .dw-faction-symbol{width:100px;height:150px;flex-shrink:0}
.wiki-workspace .dw-faction-banner p{margin:0 0 12px;font-size:2.8rem}
.wiki-workspace .dw-faction-banner span{font-size:13px;color:#ddd3bd}
.wiki-workspace .dw-faction-page .dw-roster-group>h2{display:none}
.wiki-workspace .dw-structure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wiki-workspace .dw-structure-card{padding:16px;border:1px solid #514a3d;border-top:2px solid var(--faction-colour);background:#1b1e1d;min-width:0;overflow-wrap:anywhere}
.wiki-workspace .dw-structure-card h3{margin:0 0 12px;display:flex;align-items:center;gap:8px;font-size:1.3rem}
.wiki-workspace .dw-structure-card .dw-icon{width:64px;height:64px;background:transparent;flex-shrink:0}
.wiki-workspace .dw-structure-produces{font-size:14px;margin:8px 0;line-height:1.65}
.wiki-workspace .dw-structure-produces>span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#bbb6a8;margin-bottom:3px}
.wiki-workspace .dw-unlock-table th:first-child{width:32%}
@media(max-width:650px){
.wiki-workspace .dw-unit-heading{grid-template-columns:124px minmax(0,1fr);gap:12px;padding:14px 10px;align-items:start}
.wiki-workspace .dw-header-art{width:124px;height:210px}.wiki-workspace .dw-unit-portrait .dw-card-art{max-width:124px}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-unit-intro h1{font-size:1.85rem;line-height:1.04;margin:4px 0 12px}
.wiki-workspace .dw-unit-meta{font-size:11px;gap:4px}.wiki-workspace .dw-unit-meta .dw-faction-symbol{width:26px;height:26px;margin:0}
.wiki-workspace .dw-header-stats{grid-template-columns:1fr 1fr;gap:10px 8px;margin:10px 0;padding:10px 0}
.wiki-workspace .dw-header-stats strong{font-size:16px}.wiki-workspace .dw-header-stats>div>span{font-size:10px}.wiki-workspace .dw-header-stats .dw-cost{font-size:12px;gap:6px}.wiki-workspace .dw-header-stats .dw-resource{width:16px;height:16px}
.wiki-workspace .dw-unit-heading .dw-description p{font-size:12px;line-height:1.5}
.wiki-workspace .dw-faction-banner{height:180px;gap:10px;padding:14px 10px}.wiki-workspace .dw-faction-banner .dw-faction-symbol{width:65px;height:100px}.wiki-workspace .dw-faction-banner p{font-size:2rem;line-height:1.05;margin:0 0 10px}.wiki-workspace .dw-faction-banner span{font-size:11px}.wiki-workspace .dw-banner-character{width:150px;opacity:.45}
.wiki-workspace .dw-structure-grid{grid-template-columns:1fr}.wiki-workspace .dw-unlock-table tbody th{min-width:0;position:static!important;background:transparent!important}.wiki-workspace .dw-unlock-table th:first-child{width:40%}.wiki-workspace .dw-unlock-table td,.wiki-workspace .dw-unlock-table th{padding:9px!important;font-size:12px;overflow-wrap:anywhere}
}
@media(max-width:360px){.wiki-workspace .dw-unit-heading{grid-template-columns:105px minmax(0,1fr);gap:10px}.wiki-workspace .dw-unit-portrait .dw-card-art,.wiki-workspace .dw-header-art{width:105px;height:auto;max-height:210px}.wiki-workspace .dw-header-stats .dw-cost{font-size:11px;gap:4px}.wiki-workspace .dw-header-stats .dw-resource{width:13px;height:13px}body.wiki-workspace[data-ws-site=dawnofwar4] .dw-unit-intro h1{font-size:1.55rem}}

.wiki-workspace .dw-unit-heading{grid-template-columns:150px minmax(0,1fr)}
.wiki-workspace .dw-unit-portrait .dw-header-art{position:absolute;right:10px;top:0;height:100%;max-height:310px;width:260px;max-width:36%;object-fit:contain;opacity:.15;z-index:-1;pointer-events:none}
.wiki-workspace .dw-header-stats>div:has([data-header-value=cost]){grid-column:auto}
@media(max-width:650px){.wiki-workspace .dw-unit-heading{grid-template-columns:124px minmax(0,1fr)}.wiki-workspace .dw-unit-portrait{align-self:start}.wiki-workspace .dw-unit-portrait .dw-header-art{width:170px;max-width:45%;right:0;opacity:.1}.wiki-workspace .dw-header-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 6px}.wiki-workspace .dw-header-stats>div:has([data-header-value=cost]){grid-column:1/-1}.wiki-workspace .dw-header-stats strong{font-size:15px}}
@media(max-width:360px){.wiki-workspace .dw-unit-heading{grid-template-columns:105px minmax(0,1fr)}}

.wiki-workspace .dw-wargear-weapons{margin:8px 0 0;font-size:13px;padding:0;border:0;background:transparent}
.wiki-workspace .dw-wargear-weapons summary{cursor:pointer;color:#d9b76e;font-size:12px}
.wiki-workspace .dw-wargear-weapons dl{margin:8px 0}
.wiki-workspace .dw-wargear-weapons dl>div{padding:7px 0;border-top:1px solid #514a3d}
.wiki-workspace .dw-wargear-weapons dt{padding:0;border:0;font-weight:600;font-size:13px}
.wiki-workspace .dw-wargear-weapons dd{padding:0;border:0;margin:3px 0 0;color:#ccc4b2;font-size:12px;line-height:1.6}

.wiki-workspace .dw-unit-heading:has(.dw-unit-portrait:empty){grid-template-columns:1fr}.wiki-workspace .dw-unit-portrait:empty{display:none}

body.wiki-workspace[data-ws-site=dawnofwar4] .dt-shell{--dt-line:#62543b;--dt-muted:#bbb6a8;--dt-panel:#181b1d;--dt-green:#b8d09b;--dt-accent:#d9b76e;color:#e8e5dc}
body.wiki-workspace[data-ws-site=dawnofwar4] :is(.dt-unit-card,.dt-picker,.dt-rule,.dt-notes,.dt-damage-result,.dt-pick){background:#1b1e1d;border-color:#62543b;border-radius:0}
body.wiki-workspace[data-ws-site=dawnofwar4] .dt-tool-nav a{border-radius:0}
body.wiki-workspace[data-ws-site=dawnofwar4] .bp{--bp-panel:#181b1d;--bp-line:#62543b;--bp-muted:#bbb6a8;--bp-accent:#d9b76e;--bp-needed:#e2b873;--bp-unlocked:#b8d09b;color:#e8e5dc}

@media(max-width:650px){.wiki-workspace .dw-unit-choices .dw-table-hint,.wiki-workspace .dw-unit-choices td:empty{display:none}.wiki-workspace .dw-unit-choices .dw-description{max-width:none}}

@media(max-width:650px){
body.wiki-workspace[data-ws-site=dawnofwar4] main table.dw-table.dw-family-table{min-width:0!important;width:100%!important}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-family-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-family-table tr>th{grid-column:1/-1;width:auto!important;max-width:none!important;position:static!important;white-space:normal!important}
body.wiki-workspace[data-ws-site=dawnofwar4] .dw-family-table .dw-table-hint{display:none!important}
}

/* phone lists: a field with no value is left out instead of showing its label over a dash */
@media(max-width:650px){.wiki-workspace .dw-family-table td:empty{display:none}}
