/* ---------- RESET & GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f6f6f6;
    font-family: 'Georgia', 'Times New Roman', 'Linux Libertine', serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #202122;
}

/* main wiki container (vector-like grid) */
.wiki-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    background: #f6f6f6;
}

/* ---------- SIDEBAR (navigation, tools) ---------- */
.wiki-sidebar {
    flex: 0 0 260px;
    background: #f8f9fa;
    border-right: 1px solid #eaecf0;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
}

.wiki-sidebar h3 {
    font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 1rem 0 0.5rem 0;
    color: #4a4a4a;
    border-bottom: 1px solid #c8ccd1;
    padding-bottom: 0.25rem;
}

.wiki-sidebar ul {
    list-style: none;
    margin: 0 0 1rem 0;
}

.wiki-sidebar li {
    margin: 0.4rem 0;
}

.wiki-sidebar a {
    text-decoration: none;
    color: #0645ad;
}

.wiki-sidebar a:hover {
    text-decoration: underline;
}

.edit-note {
    background: #e9ecef;
    border-left: 3px solid #3366cc;
    padding: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* ---------- MAIN CONTENT (mw-body) ---------- */
.mw-body {
    flex: 1;
    background: white;
    border: 1px solid #a7d7f9;
    border-top: none;
    margin: 1rem 1rem 1rem 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.mw-body-header {
    padding: 1.2rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid #eaecf0;
}

.mw-body-header h1 {
    font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 0.2rem;
    margin-bottom: 0.2rem;
}

.mw-body-content {
    padding: 1.5rem;
}

/* standard content wrapper */
.mw-parser-output {
    max-width: 100%;
}

/* ----- INFobox (classic right-floating table) ----- */
.infobox {
    float: right;
    clear: right;
    width: 280px;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0 0 1rem 1.5rem;
    padding: 0.2rem;
}

.infobox caption {
    font-weight: bold;
    font-size: 1.1rem;
    background: #eaecf0;
    padding: 0.4rem;
    text-align: center;
}

.infobox th, .infobox td {
    border: 1px solid #c8ccd1;
    padding: 0.3rem 0.6rem;
    vertical-align: top;
    text-align: left;
}

.infobox th {
    background: #eaecf0;
    width: 35%;
    font-weight: bold;
}

.infobox td {
    background: #ffffff;
}

.infobox-image {
    text-align: center;
    background: #fff;
}

/* ----- WIKITABLE (bordered, striped) ----- */
.wikitable {
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
}

.wikitable th, .wikitable td {
    border: 1px solid #a2a9b1;
    padding: 0.3rem 0.6rem;
}

.wikitable th {
    background: #eaecf0;
    font-weight: bold;
    text-align: center;
}

.wikitable caption {
    text-align: left;
    font-weight: bold;
    margin-bottom: 0.4rem;
}

/* ----- THUMBNAIL & IMAGE FLOATING ----- */
.thumb {
    float: left;
    margin: 0 1rem 0.8rem 0;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 3px;
    max-width: 100%;
}

.thumbinner {
    width: auto;
    background: #f8f9fa;
    text-align: center;
}

.thumbcaption {
    font-size: 0.8rem;
    padding: 0.3rem;
    text-align: center;
}

.tright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.8rem;
}

.tleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.8rem;
}

/* ----- NOTES ----- */
.hatnote {
    font-style: italic;
    font-size: 0.85rem;
    border-left: 3px solid #36c;
    padding-left: 1rem;
    margin-bottom: 1rem;
    color: #404244;
}

.warnnote {
    font-style: italic;
    font-size: 0.85rem;
    border-left: 3px solid rgb(220, 220, 0);
    padding-left: 1rem;
    margin-bottom: 1rem;
    color: #404244;
}

/* ----- TABLE OF CONTENTS (toc) ----- */
.toc {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    display: inline-block;
    padding: 0.7rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.toc h2 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: inline-block;
    border: none;
}

.toc ul {
    list-style: none;
    padding-left: 1rem;
}

.toc li {
    margin: 0.2rem 0;
}

/* ----- CATLINKS (categories footer) ----- */
.catlinks {
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    padding: 0.5rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    clear: both;
}

.catlinks a {
    color: #0645ad;
}

/* ----- EDIT / ADMIN NOTE ----- */
.edit-server-note {
    font-size: 0.75rem;
    background: #fef6e7;
    border: 1px solid #fc3;
    padding: 0.4rem;
    margin-top: 1rem;
    text-align: center;
    border-radius: 4px;
}

/* links */
a {
    color: #0645ad;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:visited {
    color: #0b0080;
}

/* headings */
h2, h3, h4 {
    font-family: 'Helvetica Neue', sans-serif;
    border-bottom: 1px solid #eaecf0;
    margin: 1rem 0 0.5rem 0;
}

h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

/* responsive */
@media (max-width: 760px) {
    .wiki-sidebar {
    flex: 0 0 100%;
    border-right: none;
    border-bottom: 1px solid #c8ccd1;
    }
    .mw-body {
    margin: 0 0.5rem 0.5rem 0.5rem;
    }
    .infobox {
    float: none;
    margin: 1rem auto;
    width: 100%;
    }
}

/* pic */
.pic-fit {
    width: 100%;
}

.pic-fit-50 {
    width: 50%;
    margin-left: 25%;
}

/* misc */
.plainlinks {
    background: none;
}
.mw-indicators {
    float: right;
}
hr {
    margin: 1rem 0;
}

.anti {
    text-decoration: overline;
}