* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.lang-switch a {
    color: #0066cc;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lang-switch a:hover {
    background-color: #f5f5f5;
    color: #0052a3;
}

.lang-switch a.active {
    color: #333;
    font-weight: 600;
}

/* Main Content */
main {
    min-height: calc(100vh - 400px);
}

article.content {
    font-size: 15px;
    line-height: 1.8;
}

article section {
    margin-bottom: 0;
}

/* Headings */
article h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 30px 0 15px 0;
    line-height: 1.4;
}

article h2:first-child {
    margin-top: 0;
}

article h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 20px 0 10px 0;
}

article h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 15px 0 8px 0;
}

/* Paragraphs */
article p {
    margin-bottom: 12px;
    color: #555;
    text-align: justify;
}

article p:last-child {
    margin-bottom: 0;
}

/* Lists */
article ul,
article ol {
    margin: 15px 0 15px 20px;
    padding-left: 20px;
}

article li {
    margin-bottom: 8px;
    color: #555;
}

article ul li {
    list-style-type: disc;
}

article ol li {
    list-style-type: decimal;
}

/* Strong and Emphasis */
article strong {
    font-weight: 600;
    color: #222;
}

article em {
    font-style: italic;
    color: #666;
}

/* Code and Pre */
article code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Monaco", "Menlo", "Consolas", monospace;
    font-size: 14px;
    color: #d63384;
}

article pre {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 15px 0;
}

article pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

/* Blockquote */
article blockquote {
    border-left: 4px solid #e0e0e0;
    padding-left: 15px;
    margin-left: 0;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

/* Tables */
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

article table th,
article table td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: left;
}

article table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #222;
}

article table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Links */
article a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

article a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Footer */
footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

footer p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 24px;
    }

    article h2 {
        font-size: 20px;
    }

    article h3 {
        font-size: 15px;
    }

    article p {
        font-size: 14px;
    }

    .lang-switch {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
    }

    header h1 {
        font-size: 20px;
    }

    article h2 {
        font-size: 18px;
    }

    article p {
        font-size: 13px;
        text-align: left;
    }

    article ul,
    article ol {
        margin-left: 15px;
        padding-left: 15px;
    }
}
