.hungary-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}.hungary-stats-grid h2{font-size:27px}.hungary-stats-grid .rankings-table-wrap{margin-top:14px}#rankings .hungary-stats-grid th,#rankings .hungary-stats-grid td{padding:14px 12px}.stats-percent{position:relative;min-width:85px;font-weight:700;color:var(--gold)}.stats-bar{display:block;position:absolute;bottom:3px;left:0;height:3px;background:var(--gold);opacity:.65}.hungary-stats-grid tfoot{border-top:2px solid var(--gold);background:#e3e8d9;font-weight:700}@media(max-width:1050px){.hungary-stats-grid{grid-template-columns:1fr}}

#disposition-stats{margin-top:48px;padding-top:28px;border-top:1px solid var(--gold)}#disposition-stats .hungary-stats-grid th,#disposition-stats .hungary-stats-grid td{padding:14px 12px}

/* Keep the lower statistics tables consistent with the faction tables above. */
#disposition-stats table{width:100%;border-collapse:collapse;background:var(--panel);font-size:15px}
#disposition-stats caption{text-align:left;padding:16px 20px;font-size:13px;color:var(--muted)}
#disposition-stats th,#disposition-stats td{text-align:left;padding:18px 20px;border-bottom:1px solid var(--line)}
#disposition-stats thead th{background:#e3e8d9;color:#245b69;font-size:12px;text-transform:uppercase;letter-spacing:.7px;line-height:1.5}
#disposition-stats tbody th{font-weight:600}
#disposition-stats tbody tr:nth-child(even){background:#f2f0e4}
#disposition-stats tbody tr:hover{background:#e3e8d9}
#disposition-stats :focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.hungary-matchups{margin-top:44px;padding-top:30px;border-top:1px solid var(--line)}
.hungary-matchups>h2{margin:0 0 12px;font-size:30px}
.hungary-matchups>p,.matchup-panel>p{color:var(--muted);font-size:14px;line-height:1.7;max-width:960px}
.matchup-panel{margin-top:28px;padding:26px;background:var(--panel);border:1px solid var(--line)}
.matchup-panel h3{margin:0 0 16px;font-size:27px}
.matchup-controls{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:24px 0}
.matchup-controls label{min-width:0}
.matchup-specific-side{display:grid;gap:18px;min-width:0}
.matchup-specific-side select:disabled{opacity:.55;cursor:not-allowed}
.matchup-controls select{width:100%;min-width:0;padding:15px 16px;font-size:15px}
.matchup-panel .matchup-result{max-width:none;margin:0;padding:22px 24px;background:#e3e8d9;border-left:3px solid var(--gold);color:var(--text);font-size:18px;line-height:1.8}
.matchup-panel .matchup-fact{max-width:none;margin:22px 0 0;padding:16px 20px;border:1px solid #84917d;background:#f2f0e4;color:#70551b;font-size:13px;line-height:1.7}
.matchup-dispositions .rankings-table-wrap{margin-top:24px}
#disposition-stats .matchup-matrix{table-layout:fixed;min-width:800px}
#disposition-stats .matchup-matrix thead th:first-child{width:170px}
#disposition-stats .matchup-matrix td,#disposition-stats .matchup-matrix thead th:not(:first-child){text-align:center}
#disposition-stats .matchup-matrix td{padding:22px 12px;border-left:1px solid var(--line)}
.matchup-rate{display:block;color:var(--gold);font-size:23px;font-weight:700;font-variant-numeric:tabular-nums}
.matchup-matrix small{display:block;margin-top:7px;color:var(--muted);font-size:12px;font-weight:400;white-space:nowrap}
.matchup-empty{color:var(--muted)}
#stats-period-filter{padding:24px;margin:28px 0;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--gold)}
#stats-period-filter h2{margin:0 0 12px}
#stats-period-filter p{color:var(--muted);font-size:13px;line-height:1.7}
.stats-period-shortcuts{display:flex;gap:12px;margin:20px 0}
.stats-period-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
#stats-period-filter button{padding:14px 18px;background:#fffdf5;border:1px solid #84917d;color:var(--text);text-align:left;font:inherit;cursor:pointer}
#stats-period-filter button[aria-pressed=true]{background:#e3e8d9;border-color:var(--gold);box-shadow:inset 0 3px var(--gold)}
#stats-period-filter button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#stats-period-filter small{display:block;color:var(--muted);font-size:12px;margin-top:8px}
@media(max-width:750px){.stats-period-buttons{grid-template-columns:1fr 1fr}}
@media(max-width:450px){.stats-period-buttons{grid-template-columns:1fr}}
.matchup-result>p{margin:0}
.matchup-result-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;padding-bottom:20px;border-bottom:1px solid #84917d}
.matchup-result-heading>div{min-width:0}
.matchup-result-heading>div:last-child{text-align:right}
.matchup-result-heading small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-bottom:5px}
.matchup-result-heading strong{display:block;font-size:22px;line-height:1.35;overflow-wrap:anywhere}
.matchup-result-heading>span{font-size:12px;letter-spacing:2px;color:var(--gold)}
.matchup-summary{display:grid;grid-template-columns:minmax(160px,1fr) 2fr;gap:28px;align-items:center;padding:26px 0}
.matchup-primary-stat strong{display:block;font-size:48px;line-height:1.1;color:var(--gold);font-variant-numeric:tabular-nums}
.matchup-primary-stat span{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:9px}
.matchup-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0}
.matchup-counts>div{border-left:1px solid #84917d;padding-left:18px}
.matchup-counts dt{font-size:12px;color:var(--muted)}
.matchup-counts dd{margin:5px 0 0;font-size:30px;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums}
.matchup-result .matchup-result-note{border-top:1px solid #84917d;padding-top:14px;font-size:12px;line-height:1.6;color:var(--muted)}
@media(max-width:750px){.matchup-summary{grid-template-columns:1fr;gap:22px}.matchup-result-heading{gap:12px}.matchup-result-heading strong{font-size:18px}.matchup-primary-stat strong{font-size:40px}.matchup-counts{gap:10px}.matchup-counts>div{padding-left:10px}.matchup-counts dd{font-size:25px}}
.matchup-matrix .matchup-axis-label{margin:0 0 6px;font-size:10px;color:var(--gold);letter-spacing:1px}
.matchup-matrix .matchup-owner{white-space:normal;color:var(--text);font-size:11px;line-height:1.4}
#disposition-stats .matchup-matrix tbody th{border-right:2px solid var(--gold);background:#e3e8d9}
@media(max-width:650px){.matchup-panel{padding:18px 14px}.matchup-controls{grid-template-columns:1fr;gap:16px}.matchup-panel .matchup-result{padding:16px;font-size:16px}.hungary-matchups{margin-top:30px}.matchup-panel h3{font-size:24px}}

#disposition-stats .matchup-matrix td.matchup-mirror{background:#e4e5e1;color:#717872;box-shadow:inset 0 0 0 1px #d4d7d1}#disposition-stats .matchup-matrix .matchup-mirror .matchup-rate{color:#747c76;font-size:22px;font-weight:600}#disposition-stats .matchup-matrix .matchup-mirror small{color:#717872}
