/* CSS placed here will affect users of the mobile site */

/* Standard changes */
.main-menu-mask {
	z-index: 1000000 !important;
}
#mw-mf-page-left,
.sidebar-inner, .dropdown {
	z-index: 2000000 !important;
}
.overlay {
	z-index: 3000000 !important;
}
.overlay.media-viewer .image-wrapper .image,
.ve-ui-overlay-global, .mw-notification-area, .drawer {
	z-index: 4000000 !important;
}
.ve-ui-mwSaveDialog-visualDiffFeedback {
	max-width: none !important;
}
#mw-content-container,
body.skin-minerva #content {
	overflow-x: clip !important;
}
.mw-notification, .toast {
	margin-bottom: 120px !important;
}
.overlay-header {
	overflow: hidden !important;
}
.overlay-header h2 span {
	max-width: 250px !important;
}
.overlay-header .mw-ui-anchor,
.overlay-header .mw-ui-button {
	height: 48px !important;
}
.mediawiki .overlay-header .submit {
	color: var(--color-inverted, #fff);
	background-color: var(--background-color-progressive, #36c);
}
.overlay .license {
	margin-top: 0 !important;
}
.overlay .save-panel {
	max-width: 993.3px !important;
	margin: auto !important;
}
.overlay .collapsible-block,
.overlay .actions .cdx-button {
	display: block !important;
}
.overlay-content {
	background: #fff !important;
}
.editor-overlay .overlay-content {
	width: 100% !important;
}
.media-viewer .overlay-content {
	background: none !important;
	padding: 0 !important;
}
.media-viewer .image-details {
	min-height: 58px !important;
}
.media-viewer div.image img {
	background: #fff url(https://wiki.gallery/images/checker.svg) !important;
}
.editor-container .anonwarning {
	margin: 16px 0 0 !important;
}
.cdx-message, .mw-message-box, .messagebox,
.errorbox, .warningbox, .successbox {
	font-size: 90% !important;
	padding: 6px 12px !important;
}
:is(.cdx-message, .mw-message-box, .messagebox,
.errorbox, .warningbox, .successbox) a.external {
	padding-right: 0 !important;
	background-image: none !important;
}
body.mediawiki.porple :is(table, section div, .cdx-message) p {
	font-size: inherit;
}
body.page-Main_Page :is(#firstHeading, #catlinks) {
	display: none !important;
}
h2.mw-mf-title-wrapper {
	text-align: center !important;
}
.mw-mf-history-wrap-link {
	display: inline !important;
	margin: 0 !important;
}
.mw-mf-diff-info > * {
	padding: 0 !important;
}
a.mw-mf-user-link:hover, .mw-mf-user:hover {
	text-decoration: none;
}
body.mediawiki a.mw-mf-user-link, .mw-mf-user {
	color: #54595D !important;
}
a.mw-mf-user-link {
	font-weight: bold;
	position: relative;
	top: 2px;
}
h2.list-header {
	color: #fff !important;
	font-weight: bold !important;
}
.ns-special .content-header {
	border-bottom: none !important;
}
.ns-special .pre-content, .ns-special .mw-body form {
	background: transparent !important;
}
.editButtons #wpCaptchaWord {
	margin-top: 2.5px;
}
.mw-checkuser-paging-links {
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 4px 2px !important;
}
.mw-checkuser-paging-links-form {
	display: inline-block;
}
.mw-special-Contact #wpCaptchaWord {
	border: 1px solid #a2a9b1;
}
#userlogin2 .htmlform-tip {
	margin: 0 !important;
}
#signupstart + #userloginForm .warningbox {
	display: none !important;
}
#whosonline .mw-userlink::before {
	display: inline !important;
}
.ns-special #bodyContent .watermark {
	text-align: center;
}
.ns-special #bodyContent .watermark img {
	height: 72px !important;
}
.secondary-action {
	border-left: 1px solid #EAECF0 !important;
}
.page-summary:last-of-type {
	border-bottom: 0 !important;
}
.section-heading {
	clear: left !important;
}
html {
	font-size: 15px !important;
}
body table {
	border-collapse: separate;
}
.mediawiki table,
.mediawiki .col-begin table {
	font-size: 90%;
}
.mediawiki table table,
.mediawiki .col-begin table table {
	font-size: 100%;
}
.mediawiki .mw-parser-output table,
.mediawiki .mw-parser-output .wikitable {
	margin-top: 0.5em;
	margin-bottom: 0.75em;
}
.mediawiki .mw-parser-output table table {
	margin: 0;
}
table[border][style*="border-collapse"] {
	border-width: 0 !important;
}
.mediawiki :is(.content, .mw-body-content) img {
	max-width: 100% !important;
	height: auto !important;
}
.mw-parser-output table img,
table .lazy-image-placeholder {
	min-width: 15px !important;
}
table .lazy-image-placeholder {
	width: auto !important;
}
.lazy-image-placeholder {
	max-width: 100% !important;
}
.mw-content-ltr .toc ul {
	text-align: left;
}
[style*="float"]:has(#toc) {
	margin-bottom: 0 !important;
}
@media all and (max-width: 719px) {
	#toc:not(:has(.toclevel-2)) {
		display: none;
	}
	.mediawiki :is(figure, .thumb) {
		width: auto !important;
	}
	.mediawiki :is(figure, .thumb, .thumbinner) {
		overflow: auto !important;
	}
	#content .mw-indicators img {
		height: 20px !important;
		width: auto !important;
	}
	.thumbimage {
		text-align: center;
	}
	ul.gallery {
		text-align: center;
		margin-left: auto !important;
		margin-right: auto !important;
	}
	#wpEmail {
		margin-bottom: 6px;
	}
	#mw-input-captchaWord {
		margin-top: 9px;
	}
	.captcha-box #question {
		text-align: center;
	}
	.g-recaptcha {
		margin-top: 12px;
	}
	.mediawiki table {
		min-width: 0 !important;
	}
	.mediawiki table > tbody {
		width: 100%;
		display: table;
	}
	.mediawiki table.wikitable:not([style*="border-collapse"]) {
		border-collapse: collapse;
		border-width: 0 !important;
	}
	:is(.mw-parser-output, section) > table[style*="inline-block"] {
		display: block !important;
	}
	body.mediawiki .mw-parser-output table:is(.sortable, .wikitable, [border]) table {
		width: 100% !important;
		display: table !important;
	}
	body.mediawiki.mobile table:is(.wikitable, [border][style*="border-collapse"]) > tbody {
		width: calc(100% - 1px);
	}
	table:not(.infobox) table:not(.wikitable) tr > *, :not(td) > table:not(.infobox, .wikitable) tr > * {
		width: auto !important;
	}
	.infobox > tbody > tr > :not([colspan]):first-child:has(+ td:not([colspan]):last-child) {
		min-width: 6em !important;
	}
	.mediawiki :is(.content, .mw-body-content) table, body.mediawiki .infobox {
		float: none !important;
		width: auto !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}
	.mediawiki :is(.content, .mw-body-content) table.wikitable {
		min-width: 65% !important;
	}
	body.mediawiki .infobox {
		display: block !important;
		margin: 15px 0 15.75px !important;
	}
}
@media all and (min-width: 720px) {
	li.gallerycaption {
		text-align: unset;
	}
	body.mediawiki .infobox {
		float: right !important;
		clear: right !important;
		max-width: 315px !important;
		margin: 0 0 7px 15px !important;
	}
	section:not(#mf-section-0) .infobox + .infobox,
	section:not(#mf-section-0) .infobox + :is(link, style) + .infobox {
		clear: none !important;
	}
	.mediawiki table.wikitable:not(.sticky-header):not([style*="border-collapse"]) {
		border-collapse: collapse;
		border-width: 0 !important;
	}
	:not(td) > table:is(.sortable, .wikitable, .mw-json, [border]):not(.mw-collapsed, .sticky-header, [style*="float"], [style*="inline-block"]) {
		display: block;
		width: auto !important;
		overflow: auto !important;
	}
	:not(td) > table:is(.sortable, .wikitable, [border]):not(.mw-collapsed, .sticky-header):not([width="99%"], [width="100%"], [style*="99%"], [style*="100%"]) {
		min-width: 150px;
		max-width: max-content;
	}
	: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%;
	}
}
.mediawiki .infobox {
	padding: 4px !important;
	font-size: 85% !important;
	font-family: inherit !important;
}
.mediawiki .infobox tr:not(:first-of-type) {
	vertical-align: top;
}
.mediawiki .infobox tr > * {
	padding: 2px;
}
.mediawiki .infobox table {
	width: 100% !important;
}
.gallery {
	margin: 0.8em 0 0 !important;
	padding: 0 !important;
}
.in-block + .gallery {
	margin-top: 0.6em !important;
}
.gallery + .gallery {
	margin-top: 0 !important;
}
.gallerybox, .gallerybox div {
	max-width: 100% !important;
}
.gallerybox .thumb {
	margin: 0 !important;
}
.gallerytext p {
	font-size: 90% !important;
	margin: 0.4em 0 0.6em !important;
}
.center {
	text-align: center;
}
.center * {
	margin-left: auto;
	margin-right: auto;
}
.mw-parser-output .floatleft {
	padding: 0 !important;
	max-width: 45% !important;
	margin: 0.5em 1em 0.5em 0 !important;
}
.mw-parser-output .floatright {
	padding: 0 !important;
	max-width: 45% !important;
	margin: 0.5em 0 0.5em 1em !important;
}
.mw-parser-output ol.references {
	font-size: 90% !important;
	margin: 0 !important;
}
.drawer .reference-text div,
.mw-parser-output ol.references div {
	display: inline;
}
.drawer .reference-text span,
.mw-parser-output ol.references span {
	line-height: 1;
}
.client-js #mw-subcategories ul {
	padding-left: 0;
}
.ns-subject:not(.ns-110) dl {
	font-size: 95%;
	margin-bottom: 0.5em;
}
.ns-subject:not(.ns-110) dl dl {
	font-size: 100%;
}
.content.talk-section dd,
:is(.ns-talk, .ns-110) dd {
	margin-top: 0.25em !important;
	margin-left: 0.25em !important;
}
.content.talk-section :is(dl, dl dt),
:is(.ns-talk, .ns-110) :is(dl, dl dt) {
	margin-left: 0 !important;
}
.content.talk-section p + dl,
:is(.ns-talk, .ns-110) p + dl {
	margin-top: -0.5em !important;
}
.content.talk-section dl + dl,
:is(.ns-talk, .ns-110) dl + dl {
	margin-top: -0.25em !important;
}
dl dd {
	overflow: visible !important;
}
textarea {
	width: 100% !important;
}
#mw-createaccount-cta {
	text-align: center;
}
#mw-htmlform-description :is(input, select) {
	width: 100%;
	border: 1px solid #a2a9b1;
}
#mw-upload-form .mw-htmlform-submit-buttons {
	display: block;
	margin-top: 20px;
}
#mw-upload-form > fieldset:first-of-type,
#mw-upload-form > fieldset:last-of-type {
	margin-top: 15px;
}
#wpSourceTypeurl {
	margin-top: 10px;
}
.mw-htmlform-field-HTMLTextField,
.mw-htmlform-field-HTMLTextAreaField {
	margin-bottom: 2.5px;
}
.mw-htmlform-field-HTMLCheckField {
	margin-top: 2.5px;
}
.htmlform-tip.mw-htmlform-hide-if {
	margin-bottom: 0;
}
.mw-upload-editlicenses {
	display: none;
}
label[for="wpUploadFile"]::after {
	content: " ";
}
label[for="wpUploadFileURL"]::after {
	content: " ";
}
pre {
	background: #F8F9FA;
	margin: 0.5em 0;
}
code {
	background: #F9F9F9;
	border: none !important;
	padding: 0 !important;
}
small {
	font-size: 85% !important;
}
big {
	font-size: 115% !important;
}
blockquote p:last-of-type {
	margin-bottom: 0.5em;
}
ul#filetoc {
	text-align: center;
	background: #fcfcfc;
	border: 1px solid #eee;
	margin: 1em 0 !important;
	padding: 0.625em 0.875em !important;
}
ul#filetoc li {
	display: inline;
	padding: 0 1em;
}
.mw-ui-button {
	max-width: none;
}
.mw-ui-icon-element {
	color: transparent !important;
}
:is(#p-tb, .page-summary) .mw-ui-icon {
	overflow: visible !important;
}
body.skin-timeless #bodyContent h2:not(#mw-toc-heading, .collapsible-heading) {
	display: block;
}
.client-js .skin-timeless .section-heading .indicator {
	padding-top: 6px;
	padding-bottom: 2px;
}
body.skin-timeless.mw-special-Contributions .content-header {
	margin-bottom: 2em;
}
body.skin-timeless.mw-special-Contributions h2.list-header {
	margin: 0 !important;
}
body.skin-timeless.mw-special-Contributions .list-thumb p {
	margin-top: 0.7em !important;
}
body.skin-timeless.mw-special-Contributions .page-list h3 {
	margin-top: 0.25em !important;
}
body.skin-timeless .mw-parser-output ol.references {
	padding-left: 0 !important;
	margin-left: 1.6em !important;
}
body.skin-timeless .mw-headline {
	margin-left: 0;
}

/* Mobile diffs */
table.diff {
	display: block;
	overflow: auto;
	border-spacing: 1px;
}
table.diff > tbody {
	width: 100%;
	display: table !important;
}
.diff td.diff-marker {
	padding: 0;
}
.diff td div {
	padding: 0 0.1em;
}
.diff tr, .diff td {
	display: revert;
}
.diffchange {
	font-weight: normal;
}
.diff-addedline .diffchange,
.diff-deletedline .diffchange {
	padding: 1px 0;
}
.ve-init-mw-diffPage-diffMode {
	margin-top: 0;
	text-align: center;
}
[data-diff-action="none"] {
	z-index: 0;
	opacity: 1;
}
#mw-mf-diffarea {
	padding: 0;
}
.skin-timeless #mw-mf-diffarea {
	padding-bottom: 2em;
}
@media all and (max-width: 719px) {
	.diff-context, .diff-addedline, .diff-deletedline {
		font-size: 10px;
	}
}
@media all and (max-width: 1339px) {
	.diff-context, .diff-addedline, .diff-deletedline {
		min-width: 32vw;
		min-height: 18px;
	}
}

/* Recent changes options */
body.skin-minerva .rcoptions hr,
body.skin-minerva .rcoptions legend,
label[for="tagfilter"], input#tagfilter,
#tagfilter ~ .mw-input-with-label {
	display: none !important;
}
.rcoptions .mw-label {
	vertical-align: top;
	padding-top: 4px;
}
.rcoptions .mw-input-with-label {
	display: inline-flex;
}
.mw-special-Recentchanges .rcoptions .mw-recentchanges-table {
	width: max-content;
	font-size: 100% !important;
}
.mw-special-Recentchanges .rcoptions :is(td.mw-input, select, input) {
	width: 100%;
	margin: 0 !important;
}
body.skin-minerva .tagfilterForm input.mw-ui-button {
	padding: 5px 10px 3.25px;
}
body.skin-minerva .namespaceForm select#namespace {
	padding: 0.25em;
}

/* Enhanced recent changes */
table.mw-changeslist-line {
	border: 0;
	border-spacing: 0;
	word-wrap: anywhere;
	display: table !important;
	margin: 0 !important;
}
table.mw-changeslist-line tr > * {
	padding: 0;
	vertical-align: top;
}
table.mw-enhanced-rc td.mw-enhanced-rc-nested {
	padding-left: 1em;
}
td.mw-enhanced-rc {
	white-space: nowrap;
	font-family: monospace,monospace;
}
.mw-enhanced-rc-time {
	font-family: monospace,monospace;
}
.mw-enhanced-rc .collapsible-expander {
	float: none;
}
.client-nojs .mw-enhancedchanges-arrow-space {
	display: none;
}
.mw-enhancedchanges-arrow {
	padding-top: 2px;
}
.mw-enhancedchanges-arrow-space {
	width: 15px;
	height: 15px;
	display: inline-block;
}
.mw-enhanced-watched .mw-enhanced-rc-time {
	font-weight: bold;
}
span.changedby {
	font-size: 95%;
}

/* Navboxes */
.mobile .navbox {
	width: 100% !important;
	font-size: 85% !important;
}
.mobile .navbox .navbox {
	font-size: 100% !important;
}
.mobile .navbox-section {
	clear: both !important;
	margin-top: 15px !important;
}
.skin-timeless .navbox-section {
	padding-top: 1.25em !important;
}
.mobile .navbox-section > * {
	margin: 0 auto !important;
}
.mobile .navbox-section:empty {
	display: none !important;
}
.mobile .navbox table:only-child {
	width: 100%;
}
.mobile .navbox tr > * {
	width: auto !important;
	font-size: 100% !important;
	white-space: normal !important;
	padding-right: 2px;
	padding-left: 2px;
}
.mobile .navbox :is(p, hr) {
	margin: 0.1em 0 !important;
}
.mobile .navbox tr:first-child th {
	font-size: 110% !important;
	padding-left: 4px !important;
	padding-right: 4px !important;
}
.mobile .navbox tr:first-child th span,
.mobile .navbox:not(.multi) .navbox tr:first-child th {
	font-size: 100% !important;
}
.client-nojs section:nth-last-of-type(2) > .navbox {
	display: none !important;
}
@media all and (max-width: 719px) {
	.client-js :is(.navbox.mw-collapsible, .navbox .mw-collapsible):not(.mw-made-collapsible) tr:not(:has(th:only-child)) {
		display: none !important;
	}
}

/* OOUI */
@media all and (max-width: 850px) {
	.mw-widget-selectWithInputWidget .oo-ui-dropdownInputWidget,
	.mw-widget-complexTitleInputWidget .mw-widget-namespaceInputWidget {
		max-width: none !important;
	}
	.mw-widget-selectWithInputWidget .oo-ui-textInputWidget {
		max-width: none !important;
		margin-top: 0.5em !important;
	}
}
body.skin-minerva .mw-widget-complexTitleInputWidget .mw-widget-namespaceInputWidget {
	margin-bottom: 0.5em;
}

/* Editing interface */
.mw-editTools {
	display: none;
}
.editOptions {
	margin: 0.5em 0;
}

/* Video widget */
@media all and (max-width: 719px) {
	.autoResize { margin: 0 auto !important; }
	.videoWidget { display: block !important; }
}
@media all and (min-width: 720px) {
	.videoWidget.tleft {
		float: left;
		margin-right: 1.4em;
	}
	.videoWidget.tright {
		float: right;
		margin-left: 1.4em;
	}
}

/* Echo extension */
.mw-echo-ui-notificationsInboxWidget-sidebar,
.mw-echo-ui-notificationsInboxWidget-cell-placeholder,
.mw-echo-ui-notificationsInboxWidget-main-toolbar-settings {
	display: none !important;
}
