/* =========================================================
   MediaWiki Vector Skin Clone for wiki.efir51.ru
   Pixel-perfect Wikipedia / MediaWiki Vector aesthetic
   ========================================================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #f6f6f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Nimbus Sans L", Arial, "Liberation Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #202122;
}

a {
  color: #0645ad;
  text-decoration: none;
}
a:visited {
  color: #0b0080;
}
a:hover {
  text-decoration: underline;
}
a.new {
  color: #ba0000;
}
a.extiw, a.external {
  color: #3366cc;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #000;
  background: none;
  font-weight: normal;
  margin: 0;
  padding-top: 0.5em;
  padding-bottom: 0.17em;
  font-family: "Linux Libertine", "Georgia", "Times", serif;
}
h1 {
  font-size: 1.8em;
  border-bottom: 1px solid #a2a9b1;
  margin-bottom: 0.25em;
  padding-bottom: 0.2em;
}
h2 {
  font-size: 1.5em;
  border-bottom: 1px solid #a2a9b1;
  margin-top: 1em;
  margin-bottom: 0.25em;
}
h3 {
  font-size: 1.2em;
  font-weight: bold;
  font-family: sans-serif;
  margin-top: 0.8em;
}
h4 {
  font-size: 1em;
  font-weight: bold;
  font-family: sans-serif;
}

p {
  margin: 0.5em 0 1em 0;
}

/* Edit section links [править | править код] */
.mw-editsection {
  font-family: sans-serif;
  font-size: small;
  font-weight: normal;
  margin-left: 1em;
  vertical-align: baseline;
  user-select: none;
}
.mw-editsection a {
  color: #0645ad;
}

/* Main Layout */
#mw-page-base {
  height: 5em;
  background-color: #fbfbfb;
  background-image: linear-gradient(to bottom, #fff 50%, #f6f6f6 100%);
  border-bottom: 1px solid #a7d7f9;
}

#mw-head-base {
  margin-top: -5em;
  margin-left: 10em;
  height: 5em;
}

#content {
  margin-left: 11em;
  padding: 1.25em 2em 1.5em 2em;
  background: #ffffff;
  border: 1px solid #a7d7f9;
  border-right-width: 0;
  border-top-width: 0;
  min-height: 85vh;
}

#siteSub {
  font-size: 92%;
  color: #54595d;
  margin-bottom: 0.5em;
}

#contentSub {
  font-size: 84%;
  line-height: 1.2em;
  margin: 0 0 1.4em 1em;
  color: #54595d;
}

/* Indicators */
.mw-indicators {
  float: right;
  line-height: 1.6;
  font-size: 0.875rem;
}
.badge-featured {
  display: inline-block;
  padding: 2px 8px;
  background: #fdf2d0;
  border: 1px solid #ecc94b;
  border-radius: 3px;
  font-size: 11px;
  color: #744210;
  font-weight: bold;
}

/* Top header & user bar */
#mw-head {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
}

#p-personal {
  position: absolute;
  top: 0.33em;
  right: 1em;
  font-size: 0.75em;
  white-space: nowrap;
}
#p-personal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#p-personal li {
  display: inline-block;
  margin-left: 0.75em;
  color: #54595d;
}
#p-personal li a {
  color: #0645ad;
}

/* Left & Right Tabs (Namespaces and Views) */
#left-navigation {
  position: absolute;
  left: 11em;
  top: 2.5em;
  margin-bottom: -1px;
}
#right-navigation {
  position: absolute;
  right: 1em;
  top: 2.5em;
  display: flex;
  align-items: flex-end;
}

.vectorTabs {
  float: left;
  height: 2.5em;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0, #fff 100%);
  padding: 0;
  margin: 0;
}
.vectorTabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vectorTabs li {
  float: left;
  line-height: 1.125em;
  display: block;
  height: 2.5em;
  margin: 0;
  padding: 0;
  background-color: #f6f6f6;
  background-image: linear-gradient(to top, #eceeed 0, #fff 100%);
  border: 1px solid #a7d7f9;
  border-bottom: 0;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  margin-right: -1px;
}
.vectorTabs li.selected {
  background: #ffffff;
  border-bottom: 1px solid #ffffff;
  margin-bottom: -1px;
  padding-bottom: 1px;
}
.vectorTabs li a {
  display: inline-block;
  height: 2.5em;
  padding-left: 0.7em;
  padding-right: 0.7em;
  color: #0645ad;
  cursor: pointer;
  font-size: 0.8125em;
  line-height: 2.5em;
  text-decoration: none;
}
.vectorTabs li.selected a {
  color: #202122;
  font-weight: bold;
}

/* Search Box */
#p-search {
  margin-left: 0.5em;
  position: relative;
}
#simpleSearch {
  display: flex;
  border: 1px solid #a2a9b1;
  background: #fff;
  border-radius: 2px;
  height: 2.15em;
}
#searchInput {
  border: none;
  padding: 0.2em 0.5em;
  font-size: 0.8125em;
  width: 14em;
  outline: none;
}
#searchButton {
  border: none;
  background: #f8f9fa;
  border-left: 1px solid #a2a9b1;
  padding: 0 0.6em;
  cursor: pointer;
  color: #54595d;
}
#searchButton:hover {
  background: #eaf3ff;
  color: #0645ad;
}

/* Sidebar Panel */
#mw-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 11em;
  padding-top: 1em;
  padding-left: 0.5em;
}

#p-logo {
  display: block;
  width: 10em;
  margin: 0 auto 1.5em auto;
  text-align: center;
  text-decoration: none;
}
.logo-icon {
  font-size: 42px;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.logo-title {
  font-family: "Linux Libertine", "Georgia", serif;
  font-size: 1.15em;
  font-weight: bold;
  color: #000;
  display: block;
  letter-spacing: 0.05em;
}
.logo-sub {
  font-size: 9px;
  color: #54595d;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal {
  margin: 0 0.6em 1.25em 0.6em;
  padding: 0;
}
.portal h3 {
  font-size: 0.75em;
  color: #54595d;
  font-weight: normal;
  margin: 0;
  padding: 0.25em 0;
  cursor: default;
  border-bottom: 1px solid #c8ccd1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.portal .body {
  margin: 0.3em 0 0 0;
  padding: 0;
}
.portal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portal li {
  line-height: 1.45em;
  margin: 0 0 0.25em 0;
  font-size: 0.78em;
}
.portal li a {
  color: #0645ad;
}

/* MediaWiki Notice Box */
.mw-notice {
  background-color: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 0.75em 1em;
  margin: 1em 0;
  font-size: 0.9em;
  border-left: 5px solid #36c;
  border-radius: 2px;
}

/* MediaWiki Infobox */
table.infobox {
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  color: #000;
  margin: 0.5em 0 1em 1em;
  padding: 0.2em;
  float: right;
  clear: right;
  font-size: 88%;
  line-height: 1.5em;
  width: 23em;
  border-spacing: 3px;
}
table.infobox th {
  vertical-align: top;
  text-align: left;
  padding: 0.25em 0.5em;
}
table.infobox td {
  vertical-align: top;
  padding: 0.25em 0.5em;
}
table.infobox caption {
  font-size: 125%;
  font-weight: bold;
  padding: 0.3em 0;
  text-align: center;
  background-color: #b0c4de;
  border-radius: 2px;
  margin-bottom: 3px;
  font-family: sans-serif;
}
.infobox-subheader {
  text-align: center;
  font-size: 90%;
  font-style: italic;
  background: #eaecf0;
  padding: 4px;
}
.infobox-image {
  text-align: center;
  background: #fff;
  padding: 10px;
  border: 1px solid #eaecf0;
}
.infobox-image-box {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #0b1a28, #183850);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5fe3d0;
}
.infobox-image-box .icon {
  font-size: 40px;
}
.infobox-image-box .label {
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #fff;
  font-size: 13px;
  margin-top: 4px;
}
.infobox-section-header {
  background-color: #eaecf0;
  text-align: center;
  font-weight: bold;
}

/* Table of Contents (TOC) */
.toc {
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  padding: 7px;
  font-size: 95%;
  display: table;
  margin-top: 1em;
  margin-bottom: 1.5em;
  border-radius: 2px;
  min-width: 250px;
}
.toctitle {
  text-align: center;
  direction: ltr;
  font-weight: bold;
  padding-bottom: 4px;
  border-bottom: 1px solid #eaecf0;
  margin-bottom: 6px;
}
.toctogglelink {
  font-size: 80%;
  font-weight: normal;
  margin-left: 0.5em;
  cursor: pointer;
}
.toc ul {
  list-style-type: none;
  list-style-image: none;
  margin: 0;
  padding-left: 0;
  text-align: left;
}
.toc ul ul {
  margin: 0 0 0 1.5em;
}
.tocnumber {
  color: #202122;
  margin-right: 0.5em;
}
.toctext {
  color: #0645ad;
}

/* Tables in content */
table.wikitable {
  background-color: #f8f9fa;
  color: #202122;
  margin: 1em 0;
  border: 1px solid #a2a9b1;
  border-collapse: collapse;
  font-size: 92%;
}
table.wikitable th, table.wikitable td {
  border: 1px solid #a2a9b1;
  padding: 0.4em 0.7em;
}
table.wikitable th {
  background-color: #eaecf0;
  text-align: center;
}

/* Quote and callout boxes */
blockquote {
  border-left: 4px solid #eaecf0;
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #54595d;
  font-style: italic;
  background: #fcfcfc;
}

.timeline-box {
  background: #fdfdfd;
  border: 1px solid #c8ccd1;
  border-left: 4px solid #36c;
  padding: 10px 15px;
  margin: 1em 0;
}
.timeline-item {
  margin-bottom: 10px;
}
.timeline-date {
  font-weight: bold;
  color: #224b8f;
}

/* Code and tech snippets */
code {
  background-color: #f8f9fa;
  color: #202122;
  border: 1px solid #eaecf0;
  border-radius: 2px;
  padding: 1px 4px;
  font-family: monospace, monospace;
  font-size: 0.9em;
}

pre {
  background-color: #f8f9fa;
  color: #202122;
  border: 1px solid #a2a9b1;
  padding: 1em;
  overflow: auto;
  font-family: monospace, monospace;
  font-size: 0.85em;
  line-height: 1.4;
}

/* Interactive Tabs Panels (View Source, History, Talk) */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Wikitext Source Editor View */
.wikitext-box {
  width: 100%;
  height: 480px;
  font-family: monospace;
  font-size: 13px;
  padding: 10px;
  border: 1px solid #a2a9b1;
  background: #fff;
  color: #111;
  line-height: 1.5;
  resize: vertical;
}

/* History log */
.history-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}
.history-item {
  padding: 8px 10px;
  border-bottom: 1px solid #eaecf0;
  font-size: 90%;
}
.history-item:hover {
  background: #fbfbfb;
}
.history-date {
  color: #0645ad;
  font-weight: bold;
}
.history-user {
  color: #202122;
  font-weight: bold;
}
.history-bytes {
  color: #006400;
  font-size: 85%;
}
.history-comment {
  color: #54595d;
  font-style: italic;
}

/* Categories Bar (#catlinks) */
#catlinks {
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  padding: 5px 8px;
  margin-top: 2em;
  clear: both;
  font-size: 88%;
}
#catlinks a {
  color: #0645ad;
}

/* Footer (#footer) */
#footer {
  margin-left: 11em;
  margin-top: 0;
  padding: 1.25em 2em;
  direction: ltr;
  font-size: 0.75em;
  color: #54595d;
  border-top: 1px solid #a2a9b1;
  background: #f6f6f6;
}
#footer-info {
  list-style: none;
  margin: 0;
  padding: 0;
}
#footer-info li {
  margin-bottom: 0.5em;
}
#footer-places {
  list-style: none;
  margin: 0.75em 0 0 0;
  padding: 0;
}
#footer-places li {
  display: inline-block;
  margin-right: 1.5em;
}
#footer-places a {
  color: #0645ad;
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
  #mw-panel {
    position: static;
    width: 100%;
    padding: 10px;
    background: #eaecf0;
    display: none;
  }
  #mw-panel.show-mobile {
    display: block;
  }
  #content, #footer {
    margin-left: 0;
    padding: 15px;
    border-left: 0;
  }
  #left-navigation {
    position: static;
    margin-top: 10px;
  }
  #right-navigation {
    position: static;
    margin-top: 10px;
    float: none;
    flex-wrap: wrap;
  }
  table.infobox {
    float: none;
    width: 100%;
    margin: 1em 0;
  }
  #p-personal {
    position: static;
    text-align: right;
    padding: 5px 10px;
  }
}
