:root{color-scheme:light dark;font-family:Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.5;--bg: #f4f6f9;--surface: #ffffff;--text: #1a2332;--muted: #5c6b7f;--border: #d8e0ea;--accent: #1e5a8e;--accent-soft: #e8f1fa;--radius: 12px;--shadow: 0 1px 2px rgb(26 35 50 / 6%), 0 8px 24px rgb(26 35 50 / 6%)}@media(prefers-color-scheme:dark){:root{--bg: #0f141c;--surface: #171e28;--text: #e8edf4;--muted: #9aa8bc;--border: #2a3544;--accent: #6eb3f7;--accent-soft: #1a2a3d;--shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 8px 24px rgb(0 0 0 / 25%)}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}a{color:var(--accent)}.layout{max-width:56rem;margin:0 auto;padding:1.5rem 1.25rem 3rem}.site-header{margin-bottom:1.5rem}.site-header h1{margin:.35rem 0 .5rem;font-size:clamp(1.5rem,4vw,2rem);font-weight:650;letter-spacing:-.02em}.header-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}.lang-switch{display:flex;gap:.35rem}.eyebrow{margin:0;font-size:.9rem;font-weight:500}.eyebrow a{text-decoration:none}.eyebrow a:hover{text-decoration:underline}.lede,.muted{color:var(--muted)}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem 1.35rem}.panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.badge{display:inline-block;font-size:.8rem;padding:.2rem .55rem;border:1px solid var(--border);border-radius:6px;background:var(--accent-soft);color:var(--text)}.badge.subtle{background:transparent}.coalition-block{margin-bottom:1.5rem;padding:1rem 1rem .25rem;border-radius:var(--radius);border:1px solid var(--border)}.coalition-block--allies{background:color-mix(in srgb,#1e5a8e 6%,var(--surface))}.coalition-block--axis{background:color-mix(in srgb,#8b3a3a 6%,var(--surface))}.coalition-title{margin:0 0 .75rem;font-size:.95rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.faction-picker{display:flex;flex-direction:column;gap:1rem;margin-bottom:1rem}.coalition-chips{display:grid;grid-template-columns:minmax(7.25rem,auto) minmax(0,1fr);align-items:center;column-gap:.65rem;row-gap:.5rem;padding:.65rem .75rem;border-radius:10px;border:1px solid var(--border);background:var(--bg)}.coalition-chips .chip-row{margin-bottom:0;align-items:center}.coalition-chips--allies{border-left:3px solid #3d7ab8}.coalition-chips--axis{border-left:3px solid #a85c5c}.coalition-chip-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);min-width:4.5rem}.coalition-chip-label--select{margin:0;padding:.35rem .5rem;border:1px solid transparent;border-radius:999px;background:transparent;font:inherit;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);cursor:pointer;min-height:2.25rem;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:.35rem;width:100%;line-height:1.15}.coalition-chip-emblems{display:inline-flex;align-items:center;gap:.12rem;flex-shrink:0}.coalition-chip-text{text-align:center}.coalition-chips .chip{min-height:2.25rem;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;line-height:1.15}.chip--with-emblem{gap:.4rem;padding:.35rem .7rem .35rem .45rem;white-space:nowrap}.coalition-chip-label--select:hover{color:var(--accent);border-color:var(--border)}.coalition-chip-label--select.active{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 45%,var(--border));background:color-mix(in srgb,var(--accent) 12%,var(--bg))}.coalition-chip-label--select.partial{border-style:dashed;border-color:color-mix(in srgb,var(--accent) 35%,var(--border));color:color-mix(in srgb,var(--accent) 70%,var(--muted))}.faction-grid{list-style:none;padding:0;margin:0 0 1.5rem;display:grid;gap:.85rem;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr))}.faction-card{display:flex;flex-direction:column;align-items:center;gap:.65rem;padding:1rem;border:1px solid var(--border);border-radius:var(--radius);text-decoration:none;color:inherit;background:var(--bg);transition:border-color .15s,transform .15s}.faction-card:hover{border-color:var(--accent);transform:translateY(-2px)}.faction-card-text{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.15rem}.faction-banner{display:flex;align-items:center;gap:.5rem;font-weight:600}.chip-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.chip-row--faction-all{margin-bottom:.35rem}.text-link{font-weight:600;text-decoration:none;color:var(--accent)}.text-link:hover{text-decoration:underline}.chip{border:1px solid var(--border);background:var(--bg);color:inherit;padding:.4rem .75rem;border-radius:999px;cursor:pointer;font:inherit;font-size:.9rem;transition:background .12s,border-color .12s}.chip:hover{border-color:var(--accent)}.chip.active{border-color:var(--accent);background:var(--accent-soft);font-weight:600}.search{display:block;margin:1rem 0}.search input{width:100%;max-width:26rem;padding:.55rem .75rem;font:inherit;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:inherit}.unit-card-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.unit-card{display:flex;align-items:center;gap:.85rem;padding:.65rem .75rem;border:1px solid var(--border);border-radius:10px;text-decoration:none;color:inherit;background:var(--bg);transition:border-color .12s,background .12s}.unit-card:hover{border-color:var(--accent);background:var(--accent-soft)}.unit-card-media{display:flex;flex-direction:column;align-items:center;gap:.2rem;flex-shrink:0}.unit-card-body{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1;width:100%}.unit-card-title{font-weight:600}.mono{font-family:ui-monospace,Cascadia Mono,monospace;font-size:.8rem;color:var(--muted)}.faction-emblem{object-fit:contain;display:block}.faction-emblem--xs{width:22px;height:22px}.faction-emblem--sm{width:28px;height:28px}.faction-emblem--md{width:40px;height:40px}.faction-emblem--lg{width:72px;height:72px}.unit-portrait{object-fit:contain;display:block;background:#0000000a;border-radius:8px}@media(prefers-color-scheme:dark){.unit-portrait{background:#ffffff0f}}.unit-portrait--sm{width:56px;height:40px;flex-shrink:0}.unit-portrait--md{width:72px;height:52px}.unit-portrait--lg{width:120px;height:84px}.img-fallback{display:inline-flex;align-items:center;justify-content:center;background:var(--border);color:var(--muted);border-radius:8px;font-size:.85rem}.emblem-fallback,.portrait-fallback{font-weight:600}.unit-hero{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:flex-start;margin:1rem 0 1.25rem;padding:1rem;border-radius:var(--radius);background:var(--bg);border:1px solid var(--border)}.unit-hero-text h2{margin:.35rem 0 .25rem;font-size:1.5rem}.unit-hero-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.spec-section table{width:100%;border-collapse:collapse;font-size:.92rem;margin-bottom:1.25rem}.spec-section th,.spec-section td{border:1px solid var(--border);padding:.4rem .55rem;vertical-align:top;text-align:left}.spec-section th[scope=row]{font-weight:600;width:28%;background:var(--bg)}.raw-json{overflow:auto;max-height:70vh;font-size:.75rem;border:1px solid var(--border);border-radius:8px;padding:.75rem;background:var(--bg)}.error{color:#c62828}@media(prefers-color-scheme:dark){.error{color:#ff8a80}}.empty{color:var(--muted);font-style:italic}.site-footer{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--border);font-size:.88rem;color:var(--muted)}.footer-meta{margin-top:.35rem;font-size:.82rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.tag-list{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0}.tag-list li{padding:.3rem .55rem;border:1px solid var(--border);border-radius:6px;font-size:.88rem;background:var(--bg)}.raw-toggle{display:flex;align-items:center;gap:.5rem;margin:1rem 0;font-size:.92rem}.breadcrumb{font-size:.9rem;margin-bottom:.5rem}h2{font-size:1.1rem;margin:1.25rem 0 .65rem;font-weight:650}h2:first-child{margin-top:0}.spec-section h3{font-size:.95rem;margin:0 0 .5rem;color:var(--muted);font-weight:600;text-transform:lowercase}.stat-controls{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;margin:1rem 0;align-items:flex-end}.stat-control{display:flex;flex-direction:column;gap:.35rem;font-size:.88rem}.stat-control select{min-width:8rem;padding:.4rem .5rem;border-radius:6px;border:1px solid var(--border);background:var(--bg);color:inherit}.stat-control-hint{margin:0;font-size:.82rem;flex:1 1 12rem;align-self:center}.stat-bar-wrap{display:grid;gap:.35rem;width:100%;font-size:.88rem}.stat-bar-wrap--sm{font-size:.8rem}.stat-bar-wrap--list-compare{display:grid;grid-template-columns:minmax(0,1fr) 3.25rem 2.75rem;align-items:center;gap:.45rem .5rem}.stat-bar-wrap--list-compare .stat-bar-track{grid-column:1;grid-row:1;width:100%;min-width:0}.stat-bar-wrap--list-compare .stat-bar-value--compare{grid-column:2;grid-row:1;text-align:right;font-size:.88rem}.stat-bar-wrap--list-compare .stat-bar-share--compare{grid-column:3;grid-row:1;text-align:right}.stat-bar-wrap--sm:not(.stat-bar-wrap--list-compare){grid-template-columns:1fr;grid-template-rows:auto auto;align-items:stretch;gap:.25rem .5rem}.stat-bar-wrap--sm:not(.stat-bar-wrap--list-compare) .stat-bar-label{grid-column:1 / -1}.stat-bar-wrap--sm:not(.stat-bar-wrap--list-compare) .stat-bar-head{grid-column:1 / -1}.stat-bar-wrap--sm:not(.stat-bar-wrap--list-compare) .stat-bar-track{grid-column:1 / -1;width:100%}.stat-bar-wrap--sm:not(.stat-bar-wrap--list-compare) .stat-bar-value--inline{grid-column:2;grid-row:2}.stat-bar-wrap--md{grid-template-columns:auto 1fr auto;align-items:center;gap:.45rem .65rem}.stat-bar-wrap--md .stat-bar-track{grid-column:2}.stat-bar-wrap--md .stat-bar-value--inline{grid-column:1;font-weight:650;font-size:.95rem;min-width:3rem}.stat-bar-wrap--md .stat-bar-share--inline{grid-column:3;min-width:2.75rem;text-align:right}.stat-bar-wrap--lg{gap:.45rem;padding:.35rem 0;display:flex;flex-direction:column}.stat-bar-wrap--lg .stat-bar-track{width:100%}.stat-bar-head{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem}.stat-bar-numbers{display:flex;align-items:baseline;gap:.5rem;flex-shrink:0}.stat-bar-label{color:var(--muted);font-size:.9rem;font-weight:600}.stat-bar-track{height:16px;border-radius:8px;background:color-mix(in srgb,var(--border) 55%,var(--bg));overflow:hidden;box-shadow:inset 0 1px 2px color-mix(in srgb,var(--border) 80%,transparent)}.stat-bar-wrap--lg .stat-bar-track{height:20px;border-radius:10px}.stat-bar-wrap--sm .stat-bar-track{height:12px}.stat-bar-fill{height:100%;border-radius:inherit;min-width:0;transition:width .25s ease}.stat-bar-fill--visible{min-width:3px}.stat-bar-fill--low{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 45%,#3d5a80),color-mix(in srgb,var(--accent) 70%,#6b8cae))}.stat-bar-fill--mid{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 65%,#c9a227),color-mix(in srgb,var(--accent) 85%,#e8c547))}.stat-bar-fill--high{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 75%,#c45c26),color-mix(in srgb,var(--accent) 95%,#ff8c42))}.stat-bar-value{font-variant-numeric:tabular-nums;font-weight:650;font-size:1.05rem;line-height:1.2}.stat-bar-share{font-variant-numeric:tabular-nums;font-size:.82rem;font-weight:600;color:var(--muted)}.stat-bar-wrap--empty .stat-bar-track{opacity:.45}.stat-bar-group{display:flex;flex-direction:column;gap:.65rem}.stat-bar-group--detail{gap:.85rem}.combat-stats-panel{margin:1rem 0 1.25rem;padding:1rem;border:1px solid var(--border);border-radius:var(--radius)}.combat-stats-panel h3{margin:0 0 .75rem;font-size:1rem}.unit-card--with-stat .stat-bar-wrap--sm{margin-top:.35rem}@media(min-width:40rem){.unit-card-list--compare .unit-card--with-stat{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,14rem);grid-template-rows:auto auto;column-gap:.85rem;row-gap:.1rem;align-items:center}.unit-card-list--compare .unit-card--with-stat>.unit-card-media{grid-row:1 / 3;align-self:center}.unit-card-list--compare .unit-card--with-stat .unit-card-body{display:contents}.unit-card-list--compare .unit-card--with-stat .unit-card-title{grid-column:2;grid-row:1}.unit-card-list--compare .unit-card--with-stat .mono{grid-column:2;grid-row:2}.unit-card-list--compare .unit-card--with-stat .stat-bar-wrap--list-compare{grid-column:3;grid-row:1 / 3;align-self:center;width:14rem;max-width:100%}}
