/* Wikipedia-style CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    font-size: 14px;
    line-height: 1.6;
    color: #202122;
    background: #f6f6f6;
}

.wiki-header {
    background: #fff;
    border-bottom: 1px solid #a7d7f9;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wiki-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wiki-logo h2 {
    font-size: 1.2em;
    font-weight: normal;
    color: #000;
}

.wiki-logo img {
    width: 40px;
    height: 40px;
}

.wiki-nav {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
}

.wiki-nav a {
    color: #0645ad;
    text-decoration: none;
}

.wiki-nav a:hover {
    text-decoration: underline;
}

.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #a7d7f9;
    border-top: none;
    padding: 20px 30px;
    min-height: 100vh;
}

.page-title {
    font-size: 1.8em;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-family: 'Linux Libertine', 'Georgia', serif;
}

.intro-text {
    margin-bottom: 20px;
}

.intro-text p {
    margin-bottom: 10px;
}

/* Table of Contents */
.toc {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 10px 15px;
    display: inline-block;
    margin: 10px 0 20px 0;
    font-size: 0.95em;
}

.toc-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.toc ol {
    padding-left: 20px;
}

.toc li {
    margin: 3px 0;
}

.toc a {
    color: #0645ad;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Section Headings */
h2.section-heading {
    font-size: 1.5em;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
    margin: 25px 0 10px 0;
    padding-bottom: 3px;
    font-family: 'Linux Libertine', 'Georgia', serif;
}

h3.subsection-heading {
    font-size: 1.2em;
    font-weight: bold;
    margin: 15px 0 8px 0;
}

/* Infobox */
.infobox {
    float: right;
    clear: right;
    margin: 0 0 15px 20px;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    padding: 5px;
    width: 300px;
    font-size: 0.9em;
}

.infobox-title {
    background: #ccccff;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    font-size: 1.1em;
}

.infobox-image {
    text-align: center;
    padding: 5px;
}

.infobox-image img {
    max-width: 280px;
    height: auto;
}

.infobox-caption {
    text-align: center;
    font-size: 0.85em;
    color: #555;
    padding: 3px 5px;
}

.infobox table {
    width: 100%;
    border-collapse: collapse;
}

.infobox td {
    padding: 4px 6px;
    border-top: 1px solid #ddd;
    vertical-align: top;
}

.infobox td:first-child {
    font-weight: bold;
    width: 40%;
}

/* Content Tables */
.wikitable {
    border-collapse: collapse;
    margin: 15px 0;
    width: 100%;
    font-size: 0.9em;
}

.wikitable th, .wikitable td {
    border: 1px solid #a2a9b1;
    padding: 6px 10px;
    text-align: left;
}

.wikitable th {
    background: #eaecf0;
    font-weight: bold;
}

.wikitable tr:nth-child(even) {
    background: #f8f9fa;
}

/* Thumbnail images */
.thumb {
    border: 1px solid #c8ccd1;
    margin: 5px 0 10px 20px;
    padding: 3px;
    background: #f8f9fa;
    float: right;
    clear: right;
    max-width: 250px;
}

.thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbcaption {
    font-size: 0.85em;
    color: #555;
    padding: 4px;
    line-height: 1.4;
}

/* Links */
a {
    color: #0645ad;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin: 5px 0 10px 25px;
}

li {
    margin: 3px 0;
}

/* Bold */
b, strong {
    font-weight: bold;
}

/* Categories */
.categories {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #a2a9b1;
    font-size: 0.85em;
}

.categories a {
    color: #0645ad;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* References */
.references {
    font-size: 0.85em;
}

.references ol {
    padding-left: 25px;
}

/* Footer */
.wiki-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: 0.8em;
    color: #555;
    text-align: center;
}
