MediaWiki:Common.css: Difference between revisions

From Wizards and Warlords
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1,544: Line 1,544:


.ww-navbox > .mw-collapsible-content {
.ww-navbox > .mw-collapsible-content {
display: flex;
flex-direction: column;
clear: both;
clear: both;
margin: 0;
margin: 0;
Line 1,598: Line 1,600:
.ww-navbox p {
.ww-navbox p {
margin: 0;
margin: 0;
}
.ww-navbox > .mw-collapsible-content > p:empty,
.ww-navbox > .mw-collapsible-content > p:has(> br:only-child) {
display: none;
}
}



Revision as of 23:50, 14 June 2026

/* This style is loaded on all media. */

/* Hide the content of the TOC when the checkbox is checked. */
/* stylelint-disable-next-line selector-class-pattern */
.toctogglecheckbox:checked ~ ul {
	display: none;
}

.wiz-grid {
	outline: 5px solid red !important;
}

.wiz-grid-item {
	width: 100%;
}

.wiz-grid-item img {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.wiz-grid-text {
	margin-top: 8px;
}

/* TOC PAGE DIV */
/* ------------ */
/* Wrap __TOC__ in <div class="toc-page">...</div> to float it right. */
.toc-page #toc,
.toc-page .toc {
	float: right;
	width: max-content;
	min-width: 220px;
	max-width: 320px;
	margin: 0 0 16px 24px;
	clear: right;
	font-size: 0.95em;
	box-sizing: border-box;
	padding: 16px 24px;
	border: 1px solid var(--wiz-content-border, #ff942d);
	background: var(--wiz-panel-solid-background, #0f0f0f);
	color: var(--wiz-text, #d2d2d2);
}

.toc-page #toc:has(.toctogglecheckbox:checked),
.toc-page .toc:has(.toctogglecheckbox:checked) {
	width: fit-content;
	min-width: 0;
	padding: 12px 16px;
}

.toc-page #toc .toctitle,
.toc-page .toc .toctitle {
	margin: 0 0 10px;
	color: var(--wiz-text, #d2d2d2);
	text-align: center;
}

.toc-page #toc:has(.toctogglecheckbox:checked) .toctitle,
.toc-page .toc:has(.toctogglecheckbox:checked) .toctitle {
	margin: 0;
	line-height: 1.4;
}

.toc-page #toc .toctitle h2,
.toc-page .toc .toctitle h2 {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--wiz-text, #d2d2d2);
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
}

.toc-page #toc .toctoggle,
.toc-page .toc .toctoggle {
	color: var(--wiz-text, #d2d2d2);
	font-size: 12px;
}

.toc-page #toc .toctoggle a,
.toc-page .toc .toctoggle a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.toc-page #toc ul,
.toc-page .toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc-page #toc li,
.toc-page .toc li {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.35;
}

.toc-page #toc > ul > li,
.toc-page .toc > ul > li {
	padding: 2px 0;
}

.toc-page #toc li ul,
.toc-page .toc li ul {
	margin-left: 12px;
	padding-left: 10px;
	border-left: 1px dotted var(--wiz-content-border, #ff942d);
}

.toc-page #toc li li,
.toc-page .toc li li {
	margin-left: 0;
	padding: 2px 0;
	border-left: 0;
}

.toc-page #toc .toclevel-3,
.toc-page #toc .toclevel-4,
.toc-page #toc .toclevel-5,
.toc-page #toc .toclevel-6,
.toc-page .toc .toclevel-3,
.toc-page .toc .toclevel-4,
.toc-page .toc .toclevel-5,
.toc-page .toc .toclevel-6 {
	display: none !important;
}

.toc-page #toc .tocnumber,
.toc-page .toc .tocnumber {
	display: none;
}

.toc-page #toc a,
.toc-page .toc a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.toc-page #toc a:hover,
.toc-page .toc a:hover {
	color: #ffd37a;
	text-decoration: none;
}

/* Intro text shown only while a MediaWiki collapsible section is closed. */
.wizlords-collapsed-hint {
	display: none;
	margin: 0;
	padding: 6px 0 6px;
	color: var(--wiz-text, #d2d2d2);
	font-style: italic;
}

.wizlords-collapsed-hint-section.mw-collapsed > .wizlords-collapsed-hint {
	display: block;
}

.wizlords-collapsed-hint-section:not(.mw-collapsed) > .wizlords-collapsed-hint {
	display: none;
}

.wizlords-collapsed-hint-section ul {
	margin: 6px 0 12px;
	padding-left: 28px;
	list-style: disc outside;
}

.wizlords-collapsed-hint-section li {
	display: list-item;
	margin: 0 0 3px;
	list-style: disc outside;
}

.wizlords-collapsed-hint-section li::marker {
	color: var(--wiz-text, #d2d2d2);
}

/* Keeps a real wiki heading available for the TOC without showing it on the page. */
.wizlords-toc-only-heading {
	position: absolute;
	width: 1px;
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
}

.wizlords-toc-only-heading .mw-heading,
.wizlords-toc-only-heading h2,
.wizlords-toc-only-heading h3,
.wizlords-toc-only-heading h4 {
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.wizlords-toc-only-heading .mw-editsection {
	display: none;
}

/* Reusable article sections that can be collapsed to keep long pages compact. */
.wizlords-collapsible-section {
	margin: 18px 0;
	padding: 8px 14px;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
	background: #1f1e1e;
}

.wizlords-toc-only-heading + .wizlords-collapsible-section {
	margin-top: 10px;
}

.wizlords-collapsible-section:has(+ .wizlords-toc-only-heading) {
	margin-bottom: 10px;
}

.wizlords-collapsible-section-title {
	padding: 0;
	border-bottom: 1px solid var(--wiz-content-border, #ff942d);
	color: var(--wiz-heading, #e7e1d4);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 24px;
	font-weight: normal;
	line-height: 30px;
}

.wizlords-collapsible-section .mw-collapsible-content {
	padding: 6px 0 0;
}

.wizlords-collapsible-section .mw-collapsible-content > p:first-child {
	margin-top: 0;
}

.wizlords-collapsible-section .mw-collapsible-content > p:last-child {
	margin-bottom: 0;
}

.wizlords-collapsible-section-subheading {
	margin: 14px 0 8px;
	color: var(--wiz-heading, #e7e1d4);
	font-size: 18px;
	font-weight: bold;
	line-height: 1.3;
}

.wizlords-collapsible-section-subsubheading {
	margin: 12px 0 6px;
	color: var(--wiz-heading, #e7e1d4);
	font-weight: bold;
	line-height: 1.3;
}

.wizlords-collapsible-section-divider {
	width: 80%;
	height: 1px;
	margin: 18px auto 14px;
	background: var(--wiz-race-table-divider-colour, #9d7531);
}

.wizlords-collapsible-section > .mw-collapsible-toggle {
	margin: 11px 0 0 0;
	color: var(--wiz-text, #d2d2d2) !important;
}

.wizlords-collapsible-section > .mw-collapsible-toggle .mw-collapsible-text,
.wizlords-collapsible-section > .mw-collapsible-toggle a {
	color: var(--wiz-link, #ff942d) !important;
}

.wizlords-collapsible-section-bottom-toggle {
	margin: 8px 0 0;
	padding: 0;
	text-align: right;
	color: var(--wiz-text, #d2d2d2) !important;
	cursor: pointer;
}

.wizlords-collapsible-section-bottom-toggle span,
.wizlords-collapsible-section-bottom-toggle a {
	color: var(--wiz-link, #ff942d) !important;
}

/* RACE TABLE */
/* ---------- */
.wikitable.wizlords-race-table,
.wizlords-race-table {
	--wiz-race-table-border-width: 1px;
	--wiz-race-table-border-colour: #4d4d4d;
	--wiz-race-table-divider-colour: #9d7531;
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	border: var(--wiz-race-table-border-width) solid var(--wiz-race-table-border-colour) !important;
	background: var(--wiz-content-background, #222);
	color: var(--wiz-text, #d2d2d2);
}

.wikitable.wizlords-race-table tr,
.wizlords-race-table tr {
	border-color: var(--wiz-race-table-border-colour) !important;
}

.wikitable.wizlords-race-table th,
.wikitable.wizlords-race-table td,
.wizlords-race-table th,
.wizlords-race-table td {
	padding: 5px 8px;
	border: var(--wiz-race-table-border-width) solid var(--wiz-race-table-border-colour) !important;
	background: #1f1e1e;
	vertical-align: middle;
}

.wizlords-race-table th {
	color: var(--wiz-heading, #e7e1d4) !important;
	text-align: center;
	font-weight: bold;
}

.wikitable.wizlords-race-table td.race-name,
.wizlords-race-table td.race-name {
	background: #171717 !important;
	text-align: center;
	font-weight: bold;
	white-space: nowrap;
}

.wizlords-race-table .race-icon {
	display: block;
	width: 100px;
	height: 100px;
	margin: 0 auto 6px;
	object-fit: contain;
}

.wikitable.wizlords-race-table td.subculture,
.wizlords-race-table td.subculture {
	background: #171717 !important;
	text-align: center;
	font-weight: bold;
	vertical-align: middle;
}

.wizlords-race-table .subculture-icon {
	display: block;
	width: 45px;
	height: 45px;
	margin: 4px auto 4px;
	object-fit: contain;
}

.wizlords-race-table .race-bonus,
.wizlords-race-table .subculture-bonus {
	min-width: 280px;
}

.wizlords-race-table ul {
	margin: 0;
	padding-left: 20px;
	list-style: disc outside;
}

.wizlords-race-table li {
	display: list-item;
	margin: 0 0 3px;
	list-style: disc outside;
}

.wizlords-race-table li::marker {
	color: var(--wiz-text, #d2d2d2);
}

.wizlords-race-table .race-divider td {
	height: 8px;
	padding: 0;
	border: var(--wiz-race-table-border-width) solid var(--wiz-race-table-divider-colour) !important;
	background: var(--wiz-race-table-divider-colour);
}

/* RACES LANDING PAGE */
/* ------------------ */
.wizlords-races-landing {
	max-width: 100%;
}

.wizlords-races-landing .race-note {
	margin: 14px 0 18px;
	font-style: italic;
}

.wizlords-races-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px 44px;
	margin: 26px auto 24px;
	max-width: 860px;
}

.wizlords-race-link {
	display: block;
	width: 120px;
	text-align: center;
	text-decoration: none;
}

.wizlords-race-link img {
	display: block;
	width: 100px;
	height: 100px;
	margin: 0 auto 8px;
	object-fit: contain;
	border: 0;
	background: transparent;
	transition: transform 120ms ease, filter 120ms ease;
}

.wizlords-race-label,
.wizlords-race-label a {
	display: block;
	color: var(--wiz-link, #ff942d);
	font-weight: bold;
	line-height: 1.3;
	text-decoration: none;
}

.wizlords-race-link:hover img {
	filter: brightness(1.15);
	transform: translateY(-2px);
}

.wizlords-race-link:hover .wizlords-race-label,
.wizlords-race-link:hover .wizlords-race-label a {
	color: #ffd37a;
	text-decoration: none;
}

/* RACE DETAIL PAGES */
/* ----------------- */
.wizlords-race-page {
	max-width: 100%;
}

.wizlords-race-page .hatnote {
	margin: 4px 0 18px;
	padding-left: 18px;
	color: var(--wiz-text, #d2d2d2);
	font-style: italic;
}

.toc-page .hatnote {
	margin: 14px 0 10px;
	padding-left: 18px;
	color: var(--wiz-text, #d2d2d2);
	font-style: italic;
}

.toc-page .hatnote + h2,
.toc-page .hatnote + .mw-heading2 {
	margin-top: 12px !important;
}

.wizlords-race-page .hatnote a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.toc-page .hatnote a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.wizlords-race-intro {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 18px 0 24px;
}

.wizlords-race-intro-icon {
	flex: 0 0 auto;
}

.wizlords-race-intro-icon img {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: contain;
	border: 0;
	background: transparent;
}

.wizlords-race-quote {
	position: relative;
	margin: 0;
	padding: 0 34px;
	color: var(--wiz-text, #d2d2d2);
	font-size: 16px;
	font-style: italic;
	line-height: 1.6;
}

.wizlords-race-quote::before,
.wizlords-race-quote::after {
	position: absolute;
	color: #555;
	font-size: 42px;
	line-height: 1;
}

.wizlords-race-quote::before {
	content: "\201C";
	left: 0;
	top: -6px;
}

.wizlords-race-quote::after {
	content: "\201D";
	right: 0;
	bottom: -18px;
}

.wizlords-race-quote-source {
	margin-top: 8px;
	text-align: right;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
}

.wizlords-culture-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin: 18px auto 24px;
}

.wizlords-culture-card {
	display: flex;
	flex-direction: column;
	grid-column: span 2;
	min-height: 100%;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
	background: #171717;
}

.wizlords-culture-grid.cultures-2 .wizlords-culture-card:nth-child(1),
.wizlords-culture-grid.cultures-4 .wizlords-culture-card:nth-child(1),
.wizlords-culture-grid.cultures-4 .wizlords-culture-card:nth-child(3) {
	grid-column: 2 / span 2;
}

.wizlords-culture-grid.cultures-2 .wizlords-culture-card:nth-child(2),
.wizlords-culture-grid.cultures-4 .wizlords-culture-card:nth-child(2),
.wizlords-culture-grid.cultures-4 .wizlords-culture-card:nth-child(4) {
	grid-column: 4 / span 2;
}

.wizlords-culture-grid.cultures-5 .wizlords-culture-card:nth-child(4) {
	grid-column: 2 / span 2;
}

.wizlords-culture-grid.cultures-5 .wizlords-culture-card:nth-child(5) {
	grid-column: 4 / span 2;
}

.wizlords-culture-grid.cultures-7 .wizlords-culture-card:nth-child(7) {
	grid-column: 3 / span 2;
}

.wizlords-culture-card-header {
	padding: 16px 12px 12px;
	text-align: center;
	border-bottom: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
}

.wizlords-culture-card-header img {
	display: block;
	width: 250px;
	height: 250px;
	max-width: 100%;
	margin: 0 auto 10px;
	object-fit: contain;
	border: 0;
	background: transparent;
}

.wizlords-culture-card-title,
.wizlords-culture-card-title a {
	color: var(--wiz-link, #ff942d);
	font-size: 16px;
	font-weight: bold;
	line-height: 1.25;
	text-decoration: none;
}

.wizlords-culture-card-body {
	flex: 1 1 auto;
	padding: 12px;
	background: #1f1e1e;
}

.wizlords-culture-card-body p {
	margin: 0 0 12px;
	font-style: italic;
	line-height: 1.55;
}

.wizlords-culture-separator {
	width: 110px;
	height: 1px;
	margin: 14px auto 12px;
	background: var(--wiz-race-table-divider-colour, #9d7531);
}

.wizlords-shared-classes {
	display: table;
	width: auto;
	min-width: 330px;
	margin: 16px auto 22px;
	padding: 10px 28px;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
	background: #171717;
}

.wizlords-shared-classes-title {
	margin-bottom: 5px;
	color: var(--wiz-heading-colour, #f2ead7);
	font-weight: bold;
	text-align: center;
}

.wizlords-shared-classes ul {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(5, auto);
	grid-auto-columns: max-content;
	column-gap: 42px;
	width: max-content;
	margin: 2px auto 0;
	padding-left: 0;
	list-style: disc outside;
}

.wizlords-shared-classes li {
	display: list-item;
	margin: 0 0 3px;
	margin-left: 18px;
	break-inside: avoid;
}

.wizlords-shared-classes.classes-8 ul {
	grid-template-rows: repeat(4, auto);
}

.wizlords-shared-classes.classes-9 ul {
	grid-template-rows: repeat(5, auto);
}

.wizlords-shared-classes.classes-4 ul {
	grid-template-rows: repeat(4, auto);
}

.wizlords-shared-classes.classes-9-three ul {
	grid-template-rows: repeat(3, auto);
}

.wizlords-class-compare {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 12px;
	margin: 16px auto 22px;
}

.wizlords-class-compare .wizlords-shared-classes {
	margin: 0;
	min-width: 0;
}

.wizlords-shared-classes a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.wizlords-shared-classes a:hover {
	color: #ffd37a;
	text-decoration: none;
}

.wizlords-culture-classes {
	margin-top: 12px;
	font-weight: bold;
}

.wizlords-culture-known-for,
.wizlords-culture-suggested-class {
	margin-top: 10px;
	line-height: 1.45;
}

.wizlords-culture-suggested-class a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.wizlords-culture-class-note {
	margin-top: 6px;
	line-height: 1.45;
}

.wizlords-culture-card-body ul {
	margin: 4px 0 0;
	padding-left: 28px;
	list-style: disc outside;
}

.wizlords-culture-card-body li {
	display: list-item;
	margin: 0 0 3px;
}

.wizlords-culture-card-body a,
.wizlords-culture-row-classes a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.wizlords-culture-card-body a:hover,
.wizlords-culture-row-classes a:hover {
	color: #ffd37a;
	text-decoration: none;
}

.wizlords-culture-list {
	margin: 18px 0 24px;
}

.wizlords-culture-row {
	padding: 20px 0 24px;
	border-bottom: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
}

.wizlords-culture-row-feature {
	display: grid;
	grid-template-columns: 150px 1px minmax(0, 1fr) 300px;
	align-items: center;
	gap: 22px;
	margin: 10px 0 18px;
}

.wizlords-culture-row-icon img {
	display: block;
	width: 150px;
	height: 150px;
	object-fit: contain;
	border: 0;
	background: transparent;
}

.wizlords-culture-row-divider {
	width: 1px;
	height: 150px;
	background: var(--wiz-race-table-border-colour, #4d4d4d);
}

.wizlords-culture-row-title,
.wizlords-culture-row-title a {
	color: var(--wiz-heading, #e7e1d4);
	font-size: 18px;
	font-weight: bold;
	line-height: 1.3;
	text-decoration: none;
}

.wizlords-culture-row-description {
	position: relative;
	margin: 0;
	padding: 0 34px;
	color: var(--wiz-text, #d2d2d2);
	font-size: 16px;
	font-style: italic;
	line-height: 1.6;
}

.wizlords-culture-row-description::before,
.wizlords-culture-row-description::after {
	position: absolute;
	color: #555;
	font-size: 42px;
	line-height: 1;
}

.wizlords-culture-row-description::before {
	content: "\201C";
	left: 0;
	top: -6px;
}

.wizlords-culture-row-description::after {
	content: "\201D";
	right: 0;
	bottom: -18px;
}

.wizlords-culture-appearance {
	box-sizing: border-box;
	width: 300px;
	padding: 4px;
	border: 1px solid var(--wiz-race-table-divider-colour, #9d7531);
	background: #171717;
}

.wizlords-culture-appearance img {
	display: block;
	width: 300px;
	height: 138px;
	object-fit: cover;
	border: 0;
	background: transparent;
}

.wizlords-culture-appearance-caption {
	margin-top: 4px;
	color: var(--wiz-text, #d2d2d2);
	font-size: 12px;
	line-height: 1.3;
}

.wizlords-page-image {
	box-sizing: border-box;
	width: min(450px, 100%);
	padding: 6px;
	border: 1px solid var(--wiz-content-border, #ff942d);
	background: #171717;
}

.wizlords-page-image p {
	margin: 0;
	padding: 0;
}

.wizlords-page-image span,
.wizlords-page-image a {
	display: block;
}

.wizlords-page-image.right {
	float: right;
	margin: 0 0 16px 24px;
}

.wizlords-page-image.left {
	float: left;
	margin: 0 24px 16px 0;
}

.wizlords-page-image img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 2 / 1;
	height: auto;
	object-fit: cover;
	border: 1px solid var(--wiz-content-border, #ff942d);
	background: transparent;
}

.wizlords-page-image-caption {
	margin-top: 7px;
	padding: 0 4px;
	color: var(--wiz-text, #d2d2d2);
	font-size: 12px;
	line-height: 1.3;
}

.wizlords-culture-row-classes {
	color: var(--wiz-text, #d2d2d2);
	font-size: 14px;
}

.wizlords-culture-class-list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(130px, max-content);
	grid-template-rows: repeat(4, auto);
	gap: 4px 18px;
	margin: 6px 0 0;
	padding-left: 28px;
	list-style: disc outside;
}

.wizlords-culture-class-list li {
	display: list-item;
	margin: 0;
	padding: 0;
}

.wizlords-culture-class-list li::marker {
	color: var(--wiz-text, #d2d2d2);
}

@media (max-width: 1100px) {
	.wiz-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 700px) {
	.wiz-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* CLASS OVERVIEW PAGE */
/* ------------------- */
.wizlords-classes-page {
	max-width: 100%;
}

.wizlords-classes-page ul {
	list-style: disc outside;
	padding-left: 28px;
}

.wizlords-classes-page li {
	display: list-item;
}

.wizlords-class-category-table {
	width: auto;
	min-width: 520px;
	max-width: 680px;
	margin: 18px auto 24px;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d) !important;
	background: #171717;
	color: var(--wiz-text, #d2d2d2);
	border-collapse: collapse;
	table-layout: auto;
}

.wizlords-class-category-table th,
.wizlords-class-category-table td {
	min-width: 150px;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d) !important;
	vertical-align: top;
}

.wizlords-class-category-table th {
	padding: 8px 18px !important;
	background: #1f1e1e !important;
	color: var(--wiz-heading, #e7e1d4) !important;
	font-size: 18px;
	text-align: center;
}

.wizlords-class-category-icon {
	margin: 0 0 6px;
	text-align: center;
}

.wizlords-class-category-icon img {
	display: inline-block;
	width: 110px;
	height: 110px;
	object-fit: contain;
}

.wizlords-class-category-table td {
	padding: 8px 18px 10px 12px !important;
	background: #171717 !important;
}

.wizlords-class-category-table tr:first-child {
	border-bottom: 0;
}

.wizlords-class-category-table ul {
	margin: 0;
	padding-left: 22px;
	list-style: disc outside;
}

.wizlords-class-category-table li {
	display: list-item;
	margin: 0 0 3px;
}

.wizlords-class-category-name {
	color: var(--wiz-link, #ff942d);
	font-weight: bold;
}

.wizlords-class-category-table a,
.wizlords-class-card a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.wizlords-class-card-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin: 16px auto 24px;
}

.wizlords-class-card {
	grid-column: span 2;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
	background: #171717;
	display: flex;
	flex-direction: column;
	scroll-margin-top: 90px;
}

.wizlords-class-card-grid.cards-5 .wizlords-class-card:nth-child(4),
.wizlords-class-card-grid.cards-4 .wizlords-class-card:nth-child(1),
.wizlords-class-card-grid.cards-4 .wizlords-class-card:nth-child(3) {
	grid-column: 2 / span 2;
}

.wizlords-class-card-grid.cards-5 .wizlords-class-card:nth-child(5),
.wizlords-class-card-grid.cards-4 .wizlords-class-card:nth-child(2),
.wizlords-class-card-grid.cards-4 .wizlords-class-card:nth-child(4) {
	grid-column: 4 / span 2;
}

.wizlords-class-card-title {
	padding: 0 12px 10px;
	color: var(--wiz-link, #ff942d);
	font-weight: bold;
	font-size: 18px;
	line-height: 1.25;
	text-align: center;
}

.wizlords-class-card-icon {
	padding: 18px 12px 8px;
	text-align: center;
}

.wizlords-class-card-icon img {
	display: inline-block;
	width: 250px;
	height: 250px;
	object-fit: contain;
}

.wizlords-class-card-body {
	padding: 12px;
	background: #1f1e1e;
	line-height: 1.5;
	flex: 1 1 auto;
}

.wizlords-class-card-summary {
	font-style: italic;
}

.wizlords-class-card-divider {
	width: 55%;
	height: 1px;
	margin: 14px auto 12px;
	background: var(--wiz-race-table-divider-colour, #9d7531);
}

.wizlords-class-card-rules {
	color: var(--wiz-text, #d2d2d2);
}

.wizlords-class-card-rules div {
	margin: 0 0 4px;
}

/* MAGIC PAGE */
/* ---------- */
.wizlords-magic-used-by {
	margin: 4px 0 14px;
	padding-left: 18px;
	color: var(--wiz-text, #d2d2d2);
	font-style: italic;
}

.wizlords-magic-intro {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 12px 0 18px;
}

.wizlords-magic-intro-icon {
	flex: 0 0 auto;
}

.wizlords-magic-intro-icon img {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.wizlords-magic-quote {
	padding-left: 20px;
	border-left: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
	color: var(--wiz-text, #d2d2d2);
	font-style: italic;
	line-height: 1.55;
}

.wizlords-section-divider {
	width: 55%;
	height: 1px;
	margin: 22px auto 18px;
	background: var(--wiz-race-table-divider-colour, #9d7531);
}

.wikitable.wizlords-magic-table,
.wizlords-magic-table {
	width: auto;
	min-width: 520px;
	max-width: 680px;
	margin: 16px 0 18px;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d) !important;
	border-collapse: collapse;
	background: #171717;
	color: var(--wiz-text, #d2d2d2);
}

.wikitable.wizlords-magic-table th,
.wikitable.wizlords-magic-table td,
.wizlords-magic-table th,
.wizlords-magic-table td {
	padding: 8px 18px !important;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d) !important;
	background: #171717 !important;
}

.wikitable.wizlords-magic-table th,
.wizlords-magic-table th {
	background: #1f1e1e !important;
	color: var(--wiz-heading, #e7e1d4) !important;
	text-align: center;
}

.wikitable.wizlords-reward-table,
.wizlords-reward-table {
	min-width: 0;
	max-width: none;
	width: auto;
}

.wikitable.wizlords-reward-table th,
.wikitable.wizlords-reward-table td,
.wizlords-reward-table th,
.wizlords-reward-table td {
	white-space: nowrap;
}

.wikitable.wizlords-reward-table th:nth-child(2),
.wikitable.wizlords-reward-table td:nth-child(2),
.wizlords-reward-table th:nth-child(2),
.wizlords-reward-table td:nth-child(2) {
	text-align: center;
}

.wikitable.wizlords-example-table caption,
.wizlords-example-table caption {
	color: var(--wiz-heading, #e7e1d4);
	font-weight: bold;
	text-align: center;
}

.wikitable.wizlords-example-table caption .mw-collapsible-toggle,
.wizlords-example-table caption .mw-collapsible-toggle {
	color: var(--wiz-text, #d2d2d2) !important;
}

.wikitable.wizlords-example-table caption .mw-collapsible-toggle .mw-collapsible-text,
.wizlords-example-table caption .mw-collapsible-toggle .mw-collapsible-text,
.wikitable.wizlords-example-table caption .mw-collapsible-toggle a,
.wizlords-example-table caption .mw-collapsible-toggle a {
	color: var(--wiz-link, #ff942d) !important;
}

.wikitable.wizlords-example-table th,
.wikitable.wizlords-example-table td,
.wizlords-example-table th,
.wizlords-example-table td {
	text-align: center;
}

.wikitable.wizlords-reputation-table,
.wizlords-reputation-table {
	width: 100%;
	max-width: none;
}

.wikitable.wizlords-reputation-table.mw-collapsed,
.wizlords-reputation-table.mw-collapsed {
	width: 520px;
	min-width: 520px;
	max-width: 100%;
}

.wikitable.wizlords-reputation-table caption,
.wizlords-reputation-table caption {
	white-space: nowrap;
}

.wikitable.wizlords-reputation-table th:nth-child(1),
.wikitable.wizlords-reputation-table td:nth-child(1),
.wikitable.wizlords-reputation-table th:nth-child(2),
.wikitable.wizlords-reputation-table td:nth-child(2),
.wizlords-reputation-table th:nth-child(1),
.wizlords-reputation-table td:nth-child(1),
.wizlords-reputation-table th:nth-child(2),
.wizlords-reputation-table td:nth-child(2) {
	width: 120px;
	white-space: nowrap;
}

.wikitable.wizlords-reputation-table th:nth-child(3),
.wikitable.wizlords-reputation-table td:nth-child(3),
.wizlords-reputation-table th:nth-child(3),
.wizlords-reputation-table td:nth-child(3) {
	text-align: left;
}

.wizlords-indented-note {
	margin: 8px 0 14px 28px;
	color: var(--wiz-text, #d2d2d2);
}

.wizlords-spellbook {
	margin: 18px 0 28px;
	border: 1px solid var(--wiz-spellbook-colour, var(--wiz-link, #ff942d));
	background: #1f1e1e;
}

.wizlords-spellbook-arcane {
	--wiz-spellbook-colour: #c141d3;
	--wiz-spell-card-divider-colour: #d66be3;
}

.wizlords-spellbook-divine {
	--wiz-spellbook-colour: #089cc0;
	--wiz-spell-card-divider-colour: #19c4eb;
}

.wizlords-spellbook-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 18px;
	color: var(--wiz-heading, #e7e1d4);
	font-size: 24px;
	font-weight: bold;
	text-align: center;
}

.wizlords-spellbook-title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.wizlords-spellbook-title-icon img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.wizlords-spellbook > .mw-collapsible-toggle {
	margin: 14px 18px 0 0;
	color: var(--wiz-text, #d2d2d2) !important;
}

.wizlords-spellbook > .mw-collapsible-toggle .mw-collapsible-text,
.wizlords-spellbook > .mw-collapsible-toggle a {
	color: var(--wiz-link, #ff942d) !important;
}

.wizlords-spellbook-bottom-toggle {
	margin: 16px 0 0;
	padding: 0;
	text-align: right;
	color: var(--wiz-text, #d2d2d2) !important;
	cursor: pointer;
}

.wizlords-spellbook-bottom-toggle span,
.wizlords-spellbook-bottom-toggle a {
	color: var(--wiz-link, #ff942d) !important;
}

.wizlords-spellbook .mw-collapsible-content {
	padding: 0 18px 20px;
}

.wizlords-spell-category-heading {
	position: relative;
	margin: 0 0 3px;
	padding: 0;
	color: var(--wiz-heading, #e7e1d4);
	font-size: 18px;
	font-weight: bold;
	line-height: 1.3;
}

.wizlords-spell-category-description {
	margin: 0 0 12px;
	color: var(--wiz-text, #d2d2d2);
	font-style: italic;
	font-weight: bold;
}

.wizlords-spell-card-grid + .wizlords-spell-category-heading {
	margin-top: 0;
	padding-top: 26px;
}

.wizlords-spell-card-grid + .wizlords-spell-category-heading::before {
	content: "";
	position: absolute;
	top: 0;
	left: 10%;
	width: 80%;
	height: 1px;
	background: var(--wiz-spellbook-colour);
}

.wizlords-spell-card-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin: 16px auto 26px;
}

.wizlords-servant-rules {
	margin: 16px 0 18px;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
	background: #171717;
	color: var(--wiz-text, #d2d2d2);
}

.wizlords-servant-rules-title {
	padding: 12px 16px 4px;
	color: var(--wiz-spellbook-colour);
	font-size: 18px;
	font-weight: bold;
	line-height: 1.25;
	text-align: center;
}

.wizlords-servant-rules-hint {
	display: none;
	padding: 0 16px 12px;
	color: var(--wiz-text, #d2d2d2);
	font-style: italic;
	text-align: center;
}

.wizlords-servant-rules.mw-collapsed .wizlords-servant-rules-hint {
	display: block;
}

.wizlords-servant-rules:not(.mw-collapsed) .wizlords-servant-rules-hint {
	display: none;
}

.wizlords-servant-rules > .mw-collapsible-toggle {
	margin: 12px 16px 0 0;
	color: var(--wiz-text, #d2d2d2) !important;
}

.wizlords-servant-rules > .mw-collapsible-toggle .mw-collapsible-text,
.wizlords-servant-rules > .mw-collapsible-toggle a {
	color: var(--wiz-link, #ff942d) !important;
}

.wizlords-servant-rules-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	padding: 0 16px 16px;
}

.wizlords-servant-rules-section {
	line-height: 1.45;
}

.wizlords-servant-rules-section ul {
	margin: 6px 0 0;
	padding-left: 22px;
	list-style: disc outside;
}

.wizlords-servant-rules-section li {
	display: list-item;
	margin: 0 0 3px;
}

.wizlords-spell-card {
	grid-column: span 2;
	border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d);
	background: #171717;
	color: var(--wiz-text, #d2d2d2);
}

.wizlords-spell-card-grid.cards-1 .wizlords-spell-card:nth-child(1) {
	grid-column: 3 / span 2;
}

.wizlords-spell-card-grid.cards-2 .wizlords-spell-card:nth-child(1),
.wizlords-spell-card-grid.cards-4 .wizlords-spell-card:nth-child(1),
.wizlords-spell-card-grid.cards-4 .wizlords-spell-card:nth-child(3) {
	grid-column: 2 / span 2;
}

.wizlords-spell-card-grid.cards-2 .wizlords-spell-card:nth-child(2),
.wizlords-spell-card-grid.cards-4 .wizlords-spell-card:nth-child(2),
.wizlords-spell-card-grid.cards-4 .wizlords-spell-card:nth-child(4) {
	grid-column: 4 / span 2;
}

.wizlords-spell-card-grid.cards-5 .wizlords-spell-card:nth-child(4) {
	grid-column: 2 / span 2;
}

.wizlords-spell-card-grid.cards-5 .wizlords-spell-card:nth-child(5) {
	grid-column: 4 / span 2;
}

.wizlords-spell-card-title {
	padding: 12px;
	color: var(--wiz-spellbook-colour, var(--wiz-link, #ff942d));
	font-size: 18px;
	font-weight: bold;
	line-height: 1.25;
	text-align: center;
}

.wizlords-spell-card-meta {
	padding: 0 12px;
	line-height: 1.45;
}

.wizlords-spell-card-meta ul {
	margin: 4px 0 0;
	padding-left: 22px;
	list-style: disc outside;
}

.wizlords-spell-card-meta li {
	display: list-item;
	margin: 0 0 3px;
}

.wizlords-spell-card-divider {
	width: 55%;
	height: 1px;
	margin: 14px auto 12px;
	background: var(--wiz-spell-card-divider-colour, var(--wiz-race-table-divider-colour, #9d7531));
}

.wizlords-spell-card-section {
	padding: 0 12px 12px;
	line-height: 1.45;
}

.wizlords-spell-card-section ul {
	margin: 6px 0 0;
	padding-left: 22px;
	list-style: disc outside;
}

.wizlords-spell-card-section li {
	display: list-item;
	margin: 0 0 3px;
}

.wizlords-spell-card-body {
	padding: 0 12px 14px;
	line-height: 1.45;
}

/* WIZLORDS NAVBOX */
/* --------------- */
.ww-navbox {
	clear: both;
	width: 100%;
	margin: 24px auto 12px;
	padding: 3px;
	border: 1px solid var(--wiz-content-border, #ff942d);
	background: #1f1e1e;
	color: var(--wiz-text, #d2d2d2);
	font-size: 88%;
	line-height: 1.5;
	text-align: center;
	box-sizing: border-box;
}

.ww-navbox-title {
	padding: 4px 10px 5px;
	background: #1a1a1a;
	color: var(--wiz-link, #ff942d);
	font-size: 16px;
	font-weight: bold;
	line-height: 1.35;
	text-align: center;
}

.ww-navbox > .mw-collapsible-toggle {
	position: relative;
	z-index: 2;
	float: right;
	margin: 4px 8px 0 0;
	color: var(--wiz-text, #d2d2d2) !important;
	font-weight: bold;
}

.ww-navbox > .mw-collapsible-toggle .mw-collapsible-text,
.ww-navbox > .mw-collapsible-toggle a {
	color: var(--wiz-link, #ff942d) !important;
	text-decoration: none;
}

.ww-navbox > .mw-collapsible-content {
	display: flex;
	flex-direction: column;
	clear: both;
	margin: 0;
	padding: 0;
}

.ww-navbox-row {
	display: flex;
	margin: 0;
	border-top: 2px solid var(--wiz-content-background, #222);
	border-left: 2px solid var(--wiz-content-background, #222);
	border-right: 2px solid var(--wiz-content-background, #222);
	line-height: 1.5;
}

.ww-navbox-row:first-of-type {
	border-top: 2px solid var(--wiz-content-background, #222);
}

.ww-navbox-row:last-of-type {
	border-bottom: 2px solid var(--wiz-content-background, #222);
}

.ww-navbox-row:nth-child(odd) {
	background: #222;
}

.ww-navbox-row:nth-child(even) {
	background: #252525;
}

.ww-navbox-group {
	flex: 0 0 143px;
	width: 143px;
	padding: 4px 10px;
	border-right: 2px solid var(--wiz-content-background, #222);
	background: #1a1a1a;
	color: var(--wiz-link, #ff942d);
	font-weight: bold;
	text-align: right;
	box-sizing: border-box;
	white-space: normal;
	overflow-wrap: anywhere;
}

.ww-navbox-list {
	flex: 1;
	padding: 4px 10px;
	text-align: left;
	box-sizing: border-box;
	background: inherit;
}

.ww-navbox p {
	margin: 0;
}

.ww-navbox > .mw-collapsible-content > p:empty,
.ww-navbox > .mw-collapsible-content > p:has(> br:only-child) {
	display: none;
}

.ww-navbox a {
	color: var(--wiz-link, #ff942d) !important;
	font-weight: bold;
	text-decoration: none;
}

.ww-navbox a:hover {
	color: #ffd37a !important;
	text-decoration: none;
}

@media (max-width: 900px) {
	.wizlords-class-card-grid,
	.wizlords-spell-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wizlords-servant-rules-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wizlords-class-card,
	.wizlords-class-card-grid.cards-5 .wizlords-class-card:nth-child(4),
	.wizlords-class-card-grid.cards-5 .wizlords-class-card:nth-child(5),
	.wizlords-class-card-grid.cards-4 .wizlords-class-card:nth-child(1),
	.wizlords-class-card-grid.cards-4 .wizlords-class-card:nth-child(2),
	.wizlords-class-card-grid.cards-4 .wizlords-class-card:nth-child(3),
	.wizlords-class-card-grid.cards-4 .wizlords-class-card:nth-child(4),
	.wizlords-spell-card,
	.wizlords-spell-card-grid.cards-1 .wizlords-spell-card:nth-child(1),
	.wizlords-spell-card-grid.cards-2 .wizlords-spell-card:nth-child(1),
	.wizlords-spell-card-grid.cards-2 .wizlords-spell-card:nth-child(2),
	.wizlords-spell-card-grid.cards-4 .wizlords-spell-card:nth-child(1),
	.wizlords-spell-card-grid.cards-4 .wizlords-spell-card:nth-child(2),
	.wizlords-spell-card-grid.cards-4 .wizlords-spell-card:nth-child(3),
	.wizlords-spell-card-grid.cards-4 .wizlords-spell-card:nth-child(4),
	.wizlords-spell-card-grid.cards-5 .wizlords-spell-card:nth-child(4),
	.wizlords-spell-card-grid.cards-5 .wizlords-spell-card:nth-child(5) {
		grid-column: auto;
	}
}

@media (max-width: 620px) {
	.wizlords-class-card-grid,
	.wizlords-spell-card-grid {
		grid-template-columns: 1fr;
	}

	.wizlords-servant-rules-grid {
		grid-template-columns: 1fr;
	}
}