/* CSS placed here will affect users of the Vector 2022 skin */

/* Sticky header tables */
@media all and (min-width: 1120px) {
	body.vector-sticky-header-visible .sticky-header > thead > tr:first-child,
	body.vector-sticky-header-visible .sticky-header > caption + tbody > tr:first-child,
	body.vector-sticky-header-visible .sticky-header > tbody:first-child > tr:first-child {
		top: 3.125rem;
	}
}

/* TOC colours */
.toccolours {
	font-size: 95%;
	background: #f8f9fa;
	border: 1px solid #a2a9b1;
	padding: 5px;
}

/* Standard changes */
#siteSub { display: block; }
.mw-sidebar-action { display: none; }
.mw-page-container { overflow: clip; }
.mw-logo-container { max-width: none; }
.mw-page-container, .mw-logo { min-width: 0; }
.cdx-thumbnail__image { background-color: #fff; }
#firstHeading > * { user-select: text; }
#firstHeading { user-select: none; }
#p-lang-btn.mw-portlet-empty {
	float: right;
	display: block;
}
img.mw-logo-wordmark {
	width: 160px !important;
	height: auto !important;
}
.mw-body-header::after,
.mw-body-subheader::after {
	display: table-row;
}
@media all and (max-width: 719px) {
	#p-vector-user-menu-overflow,
	#p-lang-btn .vector-menu-heading-label {
		display: none;
	}
	#p-search .mw-ui-button {
		padding-right: 0;
	}
}

/* Purge tab gadget */
.mw-ui-icon-vector-gadget-ca-purge {
	display: none;
}
.mw-ui-icon-vector-gadget-ca-purge + span {
	margin: 0 !important;
}

/* Width fixes */
:not(td) > table:is(.sortable, .wikitable, [border]):not(.mw-collapsed, .sticky-header) {
	width: auto !important;
	display: block !important;
	overflow: auto !important;
}
:not(td) > table:is(.sortable, .wikitable, [border]):not(.mw-collapsed, .sticky-header).jquery-tablesorter,
:not(td) > table:is(.sortable, .wikitable, [border]):not(.mw-collapsed, .sticky-header):not([width="99%"], [width="100%"], [style*="99%"], [style*="100%"]) {
	max-width: max-content !important;
	min-width: 150px !important;
}
:not(td) > table:is(.sortable, .wikitable, [border]):not(.mw-collapsed, .sticky-header):is([width="99%"], [width="100%"], [style*="99%"], [style*="100%"]) > tbody {
	display: table;
	width: calc(100% - 1px);
}
:not(td) > table[border]:not([style*="border-collapse"]):not(.mw-collapsed, .sticky-header):is([width="99%"], [width="100%"], [style*="99%"], [style*="100%"]) > tbody {
	width: 100%;
}
:not(td) > table:is(.wikitable, [border][style*="border-collapse"]):not(.mw-collapsed, .sticky-header) {
	border-width: 0 !important;
}
.mw-parser-output table:not(.mw-collapsed, .sticky-header) {
	min-width: 0 !important;
}
table:is(.sortable, .wikitable, [border]) img {
	min-width: 15px !important;
	max-width: 100% !important;
	height: auto !important;
}
