/* Wikipedia Vector skin CSS */

/* Simple Header Styles */
.simple-header {
    background: #eaecf0;
    padding: 12px 0;
    position: relative;
    z-index: 1;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.header-link {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-link:hover {
    opacity: 0.8;
}

.wikipedia-wordmark {
    height: 20px;
    max-width: 120px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(38%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(93%) contrast(87%);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Lato, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    background-color: #f8f9fa;
}

/* Page layout */

#content {
    margin: 0 auto;
    padding: 1.5em 1.5em 3em 1.5em;
    background: #fff;
    color: #222;
    position: relative;
    z-index: 10;
    max-width: 1000px;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.6;
}

/* Old sidebar styles (hidden) */
#mw-panel {
    display: none;
}

/* Header navigation */
#mw-head {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    left: 10em;
}

#p-personal {
    position: absolute;
    top: 0.33em;
    right: 0.75em;
    z-index: 100;
}

#p-personal h3 {
    display: none;
}

#p-personal ul {
    list-style: none;
    margin: 0;
    padding-left: 10em;
}

#p-personal li {
    line-height: 1.125em;
    float: left;
    margin-left: 0.75em;
    margin-top: 0.5em;
    font-size: 0.75em;
    white-space: nowrap;
}

#p-personal a {
    color: #0645ad;
    text-decoration: none;
}

#p-personal a:hover {
    text-decoration: underline;
}

/* Navigation tabs */
#left-navigation {
    position: absolute;
    left: 0;
    top: 2.5em;
}

#right-navigation {
    position: absolute;
    right: 0;
    top: 2.5em;
}

.vectorTabs {
    float: left;
    height: 2.5em;
    background-color: #f6f6f6;
    padding-left: 1px;
}

.vectorTabs ul {
    list-style: none;
    background-color: #e8e8e8;
}

.vectorTabs li {
    float: left;
    line-height: 1.125em;
    display: inline-block;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f3f3f3;
    white-space: nowrap;
    cursor: pointer;
}

.vectorTabs li.selected {
    background-color: #fff;
}

.vectorTabs li a {
    display: inline-block;
    padding: 1.25em 0.8em 0.4em;
    color: #0645ad;
    cursor: pointer;
    font-size: 0.8em;
    text-decoration: none;
}

.vectorTabs li a:hover {
    text-decoration: underline;
}

/* Search box */
#p-search {
    float: left;
    margin-right: 0.5em;
    margin-left: 0.5em;
}

#p-search h3 {
    display: none;
}

#simpleSearch {
    position: relative;
    min-height: 1px;
    color: #000;
    background-color: #fff;
}

#searchInput {
    color: #000;
    direction: ltr;
    border: 0;
    background: transparent;
    padding: 0.3125em 0 0.3125em 0.5em;
    font-size: 0.8125em;
    width: 20em;
    outline: 0;
}

.searchButton {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.65em;
    height: 100%;
    cursor: pointer;
    text-indent: -99999px;
    line-height: 1;
    border: 0;
    background-color: transparent;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjIgMTIuM0w3LjMgOC40Qzc4LjYgNy41IDkuNSA2LjMgOS41IDRDOS41IDEuOCA3LjcgMCA1LjUgMFMxLjUgMS44IDEuNSA0czEuOCA0IDQgNGMxLjMgMCAyLjUtMC42IDMuMy0xLjRsMy45IDMuOWMwLjIgMC4yIDAuNSAwLjIgMC43IDBzMC4yLTAuNSAwLTAuN3pNNS41IDcuNUM0IDcuNSAyLjUgNiAyLjUgNFM0IDUuNSA1LjUgMC41UzcgMi41IDcgNEE3IDcuNSA3LjUgMCA3LjUgMCA1LjV6IiBmaWxsPSIjMDAwMDAwIi8+Cjwvc3ZnPg==');
    background-repeat: no-repeat;
    background-position: center;
}

/* Content area */
#firstHeading {
    margin: 0;
    padding: 0;
    color: #000;
    font-family: "Linux Libertine", Georgia, Times, serif;
    font-size: 2.125em;
    font-weight: normal;
    line-height: 1.25;
    padding-bottom: 0.25em;
    margin-bottom: 0.6em;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 0.25em;
    overflow: hidden;
}

#siteSub {
    font-size: 84%;
    color: #54595d;
    margin-top: -0.3em;
    margin-bottom: 1.2em;
}

/* Article content */
.mw-parser-output {
    line-height: 1.6;
}

.mw-parser-output p {
    margin: 0.5em 0 1em 0;
    line-height: 1.6;
}

.mw-parser-output p:first-of-type {
    margin-top: 0;
}

.mw-parser-output h2 {
    font-family: "Linux Libertine", Georgia, Times, serif;
    line-height: 1.3;
    margin-bottom: 0.5em;
    padding: 0;
    font-size: 1.5em;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 0.25em;
    margin-top: 1.2em;
    overflow: hidden;
}

.mw-parser-output h3 {
    font-family: "Linux Libertine", Georgia, Times, serif;
    line-height: 1.3;
    margin-bottom: 0.3em;
    padding: 0;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 1em;
}

.mw-parser-output a {
    color: #0645ad;
    text-decoration: none;
}

.mw-parser-output a:hover {
    text-decoration: underline;
}

.mw-parser-output a:visited {
    color: #0b0080;
}

/* Lists in article content */
.mw-parser-output ul {
    margin-left: 1.6em;
    margin-top: 0.3em;
    margin-bottom: 0.5em;
    list-style-type: disc;
}

.mw-parser-output ol {
    margin-left: 1.6em;
    margin-top: 0.3em;
    margin-bottom: 0.5em;
    list-style-type: decimal;
}

.mw-parser-output li {
    margin-bottom: 0.1em;
}

/* Table of contents */
.toc {
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    display: inline-block;
    padding: 20px;
    margin: 1em 0 1em 0;
    font-size: 95%;
    clear: both;
}

.toc .toctitle h2 {
    border: none;
    font-size: 100%;
    margin: 0 0 0.3em 0;
    color: #000;
    padding: 0;
    font-family: sans-serif;
    font-weight: bold;
}

.toc ul {
    list-style-type: none;
    list-style-image: none;
    margin-left: 0;
    padding: 0;
    text-align: left;
}

.toc li {
    margin: 0.2em 0;
    padding: 0;
    line-height: 1.4;
}

.toc .tocnumber {
    color: #202122;
    margin-right: 0.5em;
    font-weight: normal;
}

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

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

/* Hatnote */
.hatnote {
    font-style: italic;
    padding: 5px 7px;
    color: #000;
    margin: 0.5em 0;
    background: #f8f9fa;
    border-left: 3px solid #36c;
}

/* Navigation panels */
.portal {
    margin: 0 0.6em 0 0.7em;
    padding: 0.25em 0;
    direction: ltr;
    background-position: 0 0.25em;
    background-repeat: no-repeat;
}

.portal h3 {
    font-size: 0.75em;
    color: #4d4d4d;
    font-weight: normal;
    margin: 0.5em 0 0 0.25em;
    padding: 0.25em 0 0.25em 0.25em;
    cursor: default;
    border: none;
}

.portal .body {
    margin: 0 0 0 1.25em;
    padding-top: 0;
}

.portal .body ul {
    list-style: none;
    list-style-image: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.portal .body li {
    line-height: 1.125em;
    margin: 0;
    padding: 0.25em 0;
    font-size: 0.75em;
}

.portal .body li a {
    color: #0645ad;
    text-decoration: none;
}

.portal .body li a:hover {
    text-decoration: underline;
}

/* Categories */
.catlinks {
    background-color: #f8f9fa;
    padding: 5px;
    margin-top: 1em;
    clear: both;
}

.catlinks ul {
    display: inline;
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
    list-style-image: none;
    vertical-align: middle;
}

.catlinks li {
    display: inline-block;
    line-height: 1.15em;
    padding: 0 0.25em;
    border-left: 1px solid #a2a9b1;
    margin: 0.125em 0;
    zoom: 1;
}

.catlinks li:first-child {
    padding-left: 0.25em;
    border-left: none;
}

/* References */
.reflist {
    font-size: 90%;
    margin-bottom: 0.5em;
}

.reflist ol {
    margin-left: 3em;
}

/* Navigation boxes */
.navbox {
    width: 100%;
    margin: auto;
    clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
}

.navbox-title {
    background: #ccccff;
    text-align: center;
    font-size: 110%;
    font-weight: bold;
    padding: 2px;
}

/* Footer */
#footer {
    margin-left: 10em;
    margin-top: 0;
    padding: 1.25em;
    direction: ltr;
    background-color: #eaecf0;
    border-top: 1px solid #a2a9b1;
}

#footer ul {
    list-style: none;
    list-style-image: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#footer li {
    margin: 0;
    padding: 0;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    color: #000;
    font-size: 0.7em;
}

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

#footer a:hover {
    text-decoration: underline;
}

/* Hide checkbox for TOC toggle */
.toctogglecheckbox {
    display: none;
}

/* Responsive adjustments for simple header */
@media screen and (min-width: 768px) {
    .header-container {
        padding: 0 24px;
    }
}

@media screen and (max-width: 767px) {
    /* Mobile-specific adjustments */
    #content {
        margin-left: 0;
        padding: 16px;
    }
    
    #mw-panel {
        display: none;
    }
    
    #footer {
        margin-left: 0;
        padding: 16px;
    }
    
    /* Make content full width on mobile */
    .mw-body {
        margin: 0;
        padding: 0;
    }
    
    /* Improve mobile readability */
    .firstHeading {
        font-size: 1.8em;
        line-height: 1.3;
        margin: 0.5em 0;
    }
    
    /* Mobile-friendly paragraphs */
    .mw-parser-output p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 1em;
    }
}

/* Upload Modal Styles */
.upload-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.upload-modal-content {
    background-color: #fff;
    margin: 5% auto;
    border: 1px solid #a2a9b1;
    border-radius: 0.5em;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.upload-modal-header {
    padding: 1em;
    background-color: #f8f9fa;
    border-bottom: 1px solid #a2a9b1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.5em 0.5em 0 0;
}

.upload-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #000;
}

.upload-close {
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.upload-close:hover {
    color: #000;
}

.upload-modal-body {
    padding: 1.5em;
}

.upload-area {
    border: 2px dashed #a2a9b1;
    border-radius: 0.5em;
    padding: 2em;
    text-align: center;
    background-color: #f8f9fa;
    margin-bottom: 1em;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0645ad;
    background-color: #f0f8ff;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.upload-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #0645ad;
    margin-bottom: 0.5em;
}

.upload-subtext {
    font-size: 0.9em;
    color: #666;
}

#imageInput {
    display: none;
}

.upload-preview {
    border: 1px solid #a2a9b1;
    border-radius: 0.5em;
    padding: 1em;
    margin-bottom: 1em;
    background-color: #f8f9fa;
}

.upload-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 0.25em;
    margin-bottom: 0.5em;
}

.preview-info p {
    margin: 0.25em 0;
    font-size: 0.9em;
    color: #333;
}

.upload-actions {
    display: flex;
    gap: 1em;
    justify-content: flex-end;
    margin-top: 1em;
}

.upload-btn {
    background-color: #0645ad;
    color: white;
    border: none;
    padding: 0.75em 1.5em;
    border-radius: 0.25em;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background-color: #0057a3;
}

.cancel-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #a2a9b1;
    padding: 0.75em 1.5em;
    border-radius: 0.25em;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #e9ecef;
}

.upload-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1em;
    border-radius: 0.25em;
    margin-top: 1em;
}

.upload-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1em;
    border-radius: 0.25em;
    margin-top: 1em;
}

.uploaded-image-preview {
    margin-top: 1em;
    text-align: center;
}

.uploaded-image-preview img {
    border: 1px solid #a2a9b1;
    border-radius: 0.25em;
}

/* Mobile adjustments for upload modal */
@media screen and (max-width: 768px) {
    .upload-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .upload-area {
        padding: 1em;
    }
    
    .upload-icon {
        font-size: 2em;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .upload-btn, .cancel-btn {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .noprint, .upload-modal {
        display: none;
    }
    
    #content {
        margin-left: 0;
        border: none;
    }
    
    #footer {
        margin-left: 0;
    }
}