Template:Party/styles.css

.party-grid { display:grid; grid-auto-columns: 1fr; grid-gap: 4px; }

.party-name { grid-row: 1; margin: auto; }

.party-grid .wikitable { width: 100%; margin: auto; }

.party-grid .wikitable td { vertical-align: bottom; }

.unit-party-tag { display: inline-block; margin: 2px; padding: 2px 4px; background: #ccc; }

@media (min-width: 850px) { .party-name { grid-row: 1; grid-column-start: 1; grid-column-end: 4; }	.party-leader { grid-row: 2; grid-column-start: 1; grid-column-end: 2; }	.party-main-1 { grid-row: 2; grid-column-start: 2; grid-column-end: 3; }	.party-main-2 { grid-row: 2; grid-column-start: 3; grid-column-end: 4; } }