:root {
    --wiki-blue: #0645ad;
    --wiki-blue-hover: #0b0080;
    --wiki-border: #a2a9b1;
    --wiki-bg: #ffffff;
    --wiki-bg-gray: #f8f9fa;
    --wiki-text: #202122;
    --wiki-muted: #54595d;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    font-size: 19px;
    line-height: 1.7;
    color: var(--wiki-text);
    background: var(--wiki-bg);
    width: 100%;
    overflow-x: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid var(--wiki-border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wiki-text);
}

.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container img {
    height: 32px;
    display: block;
}

.logo-container span {
    font-size: 12px;
    color: var(--wiki-muted);
    font-family: sans-serif;
}

.search-box {
    display: flex;
    border: 1px solid var(--wiki-border);
    background: #fff;
}

.search-box input {
    border: none;
    padding: 6px 8px;
    width: 420px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    border: none;
    border-left: 1px solid var(--wiki-border);
    background: var(--wiki-bg-gray);
    padding: 0 12px;
    font-weight: bold;
    cursor: pointer;
}

.announcement-banner {
    background: var(--wiki-bg-gray);
    border-bottom: 1px solid var(--wiki-border);
    padding: 8px 16px;
    font-size: 15px;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.sidebar-left {
    width: 240px;
    padding-top: 20px;
    font-family: sans-serif;
    font-size: 15px;
    flex-shrink: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 70px;
}

.sidebar-title {
    font-size: 13px;
    color: var(--wiki-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--wiki-border);
    margin: 16px 0 8px;
    padding-bottom: 4px;
}

.sidebar-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-left li {
    margin: 6px 0;
}

.sidebar-left a {
    color: var(--wiki-blue);
    text-decoration: none;
}

.sidebar-left a:hover {
    text-decoration: underline;
}

.mw-body {
    flex: 1;
    padding: 24px 48px;
    border-left: 1px solid var(--wiki-border);
    border-right: 1px solid var(--wiki-border);
    min-height: 100vh;
    background: #fff;
}

.vector-article-toolbar {
    display: flex;
    justify-content: space-between;
    font-family: sans-serif;
    font-size: 14px;
    border-bottom: 1px solid var(--wiki-border);
    margin-bottom: 16px;
}

.vector-article-toolbar a {
    color: var(--wiki-blue);
    text-decoration: none;
    margin-right: 12px;
}

.vector-article-toolbar a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--wiki-blue);
}

.firstHeading {
    font-size: 2.2em;
    font-weight: normal;
    border-bottom: 1px solid var(--wiki-border);
    margin: 0 0 16px;
    padding-bottom: 6px;
}

h2 {
    font-size: 1.7em;
    font-weight: normal;
    border-bottom: 1px solid var(--wiki-border);
    margin-top: 32px;
}

.atuacao-info {
    background-color: #f0f4f8;
    border-left: 5px solid var(--wiki-blue);
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
    font-weight: bold;
}

.warning-box {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--wiki-bg-gray);
    border: 1px solid var(--wiki-border);
    font-size: 16px;
    font-family: sans-serif;
    margin: 16px 0;
}

.image-floated {
    float: right;
    width: 240px;
    margin: 0 0 16px 20px;
    border: 1px solid var(--wiki-border);
    background: var(--wiki-bg-gray);
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-family: sans-serif;
}

.image-floated img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

pre {
    background: var(--wiki-bg-gray);
    border: 1px solid var(--wiki-border);
    padding: 15px;
    font-size: 16px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', monospace;
}

.dynamic-content {
    display: none;
}

.dynamic-content.active {
    display: block;
}

.hello-card {
    margin-bottom: 30px;
}

.sidebar-right {
    width: 260px;
    padding-top: 20px;
    font-family: sans-serif;
    font-size: 14px;
}

.appearance-box {
    border: 1px solid var(--wiki-border);
    padding: 12px;
    background: #fff;
    position: sticky;
    top: 70px;
}

.lang-icon-small {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
}

body.dark-mode {
    background: #101418;
    color: #eaecf0;
}

body.dark-mode .mw-body,
body.dark-mode .vector-header,
body.dark-mode .appearance-box,
body.dark-mode .sidebar-left {
    background: #1a1d21;
}

body.dark-mode a {
    color: #8ab4f8;
}

body.dark-mode .atuacao-info {
    background-color: #262c33;
    color: #8ab4f8;
}

.main-footer {
    margin-top: 50px;
    padding: 40px 16px;
    background-color: var(--wiki-bg-gray);
    border-top: 1px solid var(--wiki-border);
    font-family: sans-serif;
    clear: both;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--wiki-muted);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--wiki-blue);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-logos {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

body.dark-mode .main-footer {
    background-color: #1a1d21;
    border-color: #3c4043;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 10px;
    }

    .search-box input {
        width: 250px;
    }

    .mw-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .logo-container span, 
    .user-links {
        display: none; 
    }

    .vector-header {
        height: auto;
        padding: 10px;
        flex-wrap: wrap;
    }

    .header-center {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .search-box {
        width: 100% !important;
    }

    .search-box input {
        width: 100%;
    }

    .container {
        flex-direction: column;
    }

    .sidebar-left {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 56px);
        background: var(--wiki-bg);
        z-index: 2000;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        padding: 20px;
        overflow-y: auto;
        display: block !important;
    }

    body.dark-mode .sidebar-left {
        background: #1a1d21;
    }

    .sidebar-left.active {
        left: 0;
    }

    .sidebar-right {
        display: none;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1500;
    }

    .menu-overlay.active {
        display: block;
    }

    .mw-body {
        width: 100%;
        border: none;
        padding: 15px;
        margin: 0;
    }

    .firstHeading {
        font-size: 1.6em;
    }

    .image-floated {
        float: none;
        width: 100% !important;
        max-width: 100%;
        margin: 10px 0 !important;
        padding: 15px;
    }

    .image-floated img {
        width: auto;
        max-width: 120px;
        height: auto;
    }

    .footer-links {
        justify-content: center;
        gap: 10px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-logos {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 17px;
    }

    .menu-btn {
        font-size: 20px;
    }

    .logo-container img {
        height: 28px;
    }
}