.wiki {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #000000;
}

.wiki a {
    color: #002bb8;
    text-decoration: none;
}

.wiki a:visited {
    color: #5a3696;
}

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

.wiki-redlink,
.wiki a.wiki-redlink {
    color: #ba0000;
    cursor: help;
}

.wiki-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

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

.wiki .wiki-logo {
    color: #000000;
}

.wiki .wiki-logo:hover {
    text-decoration: none;
}

.wiki-logo-title {
    display: block;
    font-family: "Times New Roman", Times, serif;
    font-size: 30px;
    line-height: 1.1;
}

.wiki-logo-tagline {
    display: block;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 14px;
    color: #404040;
}

.wiki-tabs {
    display: flex;
    gap: 4px;
    padding-left: 10px;
    margin-bottom: -1px;
    position: relative;
}

.wiki-tab {
    background-color: #ffffff;
    border: 1px solid #aaaaaa;
    border-bottom: none;
    padding: 2px 12px;
    font-size: 13px;
    text-transform: lowercase;
    color: #002bb8;
}

.wiki-tab.selected {
    font-weight: bold;
    padding-bottom: 3px;
}

.wiki-page {
    background-color: #ffffff;
    border: 1px solid #aaaaaa;
    padding: 12px 20px 20px 20px;
}

.wiki-title {
    font-size: 28px;
    font-weight: normal;
    text-align: left;
    margin: 0;
    padding-bottom: 2px;
    border-bottom: 1px solid #aaaaaa;
}

.wiki-subtitle {
    font-size: 12px;
    color: #404040;
    margin: 4px 0 14px 0;
}

.wiki-body p {
    font-size: 14px;
    margin: 0.4em 0 0.8em 0;
}

.wiki-body h2 {
    clear: right;
    font-size: 21px;
    font-weight: normal;
    margin: 1.2em 0 0.4em 0;
    padding-bottom: 2px;
    border-bottom: 1px solid #aaaaaa;
    overflow: hidden;
}

.wiki-body h3 {
    font-size: 16px;
    margin: 1em 0 0.3em 0;
}

.wiki-footer {
    clear: both;
    margin-top: 30px;
    padding-top: 6px;
    border-top: 1px solid #aaaaaa;
    font-size: 11px;
    color: #404040;
}

.wiki-infobox {
    float: right;
    clear: right;
    width: 260px;
    margin: 0 0 12px 16px;
    background-color: #f9f9f9;
    border: 1px solid #aaaaaa;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.4;
}

.wiki-infobox caption {
    font-size: 16px;
    font-weight: bold;
    padding: 6px 4px;
}

.wiki-infobox th,
.wiki-infobox td {
    padding: 4px 6px;
    vertical-align: top;
    text-align: left;
    border-top: 1px solid #dddddd;
}

.wiki-infobox th {
    width: 38%;
}

.wiki-infobox .infobox-image {
    text-align: center;
    border-top: none;
}

.wiki-infobox .infobox-image img {
    width: 100%;
    height: auto;
    border: 1px solid #cccccc;
}

.wiki-infobox .infobox-caption {
    display: block;
    font-size: 11px;
    color: #404040;
    margin-top: 2px;
}

.wiki-thumb {
    float: right;
    clear: right;
    width: 200px;
    margin: 4px 0 12px 16px;
    padding: 3px;
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
}

.wiki-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #cccccc;
    box-sizing: border-box;
}

.wiki-thumb img.wiki-thumb-native {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border: none;
}

.wiki-thumb-caption {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    color: #404040;
    padding: 3px 2px 0 2px;
}

.wiki-table {
    margin: 6px 0 12px 0;
    background-color: #f9f9f9;
    border: 1px solid #aaaaaa;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}

.wiki-table caption {
    font-weight: bold;
    padding: 4px;
}

.wiki-table th,
.wiki-table td {
    padding: 4px 8px;
    border: 1px solid #aaaaaa;
    vertical-align: top;
    text-align: left;
}

.wiki-table th {
    background-color: #eaecf0;
    text-align: center;
}

.wiki-toc {
    display: inline-block;
    background-color: #f9f9f9;
    border: 1px solid #aaaaaa;
    padding: 6px 14px 8px 10px;
    margin: 6px 0 10px 0;
    font-size: 13px;
}

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

.wiki-toc ol {
    margin: 0;
    padding-left: 22px;
}

.wiki-box {
    border: 1px solid;
    margin-bottom: 14px;
    overflow: hidden;
}

.wiki-box h2 {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    padding: 3px 8px;
    border-bottom: 1px solid;
}

.wiki-box-body {
    padding: 6px 10px 8px 10px;
}

.wiki-box.green {
    background-color: #f5fffa;
    border-color: #cef2e0;
}

.wiki-box.green h2 {
    background-color: #cef2e0;
    border-color: #a3bfb1;
}

.lore-loading {
    color: #404040;
    font-style: italic;
    padding: 10px 0;
}

.lore-hourglass {
    display: inline-block;
    font-style: normal;
    margin-right: 6px;
    animation: lore-spin 1s steps(4) infinite;
}

@keyframes lore-spin {
    to { transform: rotate(360deg); }
}

.lore-content {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.lore-content.visible {
    opacity: 1;
}

.lore-content h3 {
    margin-top: 0.2em;
}

.lore-note {
    font-size: 11px;
    color: #404040;
    font-style: italic;
}

.wiki-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.wiki-side {
    flex: 0 0 150px;
    margin-top: 25px;
}

.wiki-main {
    flex: 1;
    min-width: 0;
}

.wiki-portlet h5 {
    font-size: 12px;
    font-weight: normal;
    text-transform: lowercase;
    margin: 0;
    padding: 0 8px;
    display: inline-block;
    background-color: #ffffff;
    border: 1px solid #aaaaaa;
    border-bottom: none;
}

.wiki-portlet-body {
    background-color: #ffffff;
    border: 1px solid #aaaaaa;
    padding: 4px 6px 6px 6px;
    font-size: 13px;
}

.wiki-portlet-body ul {
    list-style: square;
    margin: 0;
    padding-left: 18px;
    color: #002bb8;
}

.wiki-portlet-body li {
    margin: 3px 0;
}

.wiki-portlet-body .wiki-nav-group {
    list-style: none;
    margin-left: -18px;
    margin-top: 8px;
    color: #000000;
}

.wiki-portlet-body .wiki-nav-group ul {
    padding-left: 30px;
}

.wiki-portlet .wiki-current {
    font-weight: bold;
}

.wiki-portlet h5 ~ h5 {
    margin-top: 12px;
}

.wiki-media-entry {
    overflow: hidden;
    margin-bottom: 10px;
}
