/*
Theme Name: WEB 3.5 Paradigma.website
Author URI: https://paradigma.website
Author: Paradigma.website
Version: 3.5
Description: Разработано с любовью в Paradigma.website
Text Domain: Paradigma.website
*/

.articles-typical__content {
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.articles-typical__content h1,
.articles-typical__content h2,
.articles-typical__content h3,
.articles-typical__content h4,
.articles-typical__content h5,
.articles-typical__content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.3;
}

.articles-typical__content h1:first-child,
.articles-typical__content h2:first-child,
.articles-typical__content h3:first-child,
.articles-typical__content h4:first-child,
.articles-typical__content h5:first-child,
.articles-typical__content h6:first-child {
    margin-top: 0;
}

/* Абзацы */
.articles-typical__content p {
    margin-top: 1em;
    margin-bottom: 1em;
}

.articles-typical__content p:first-child {
    margin-top: 0;
}

.articles-typical__content p:last-child {
    margin-bottom: 0;
}

.articles-typical__content ul,
.articles-typical__content ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 2em;
}

.articles-typical__content li {
    margin-bottom: 0.5em;
}

.articles-typical__content li:last-child {
    margin-bottom: 0;
}

.articles-typical__content ul ul,
.articles-typical__content ul ol,
.articles-typical__content ol ul,
.articles-typical__content ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.articles-typical__content table {
    width: 100%;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    border-collapse: collapse;
}

.articles-typical__content th,
.articles-typical__content td {
    padding: 0.75em 1em;
    border: 1px solid #ddd;
    text-align: left;
}

.articles-typical__content th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.articles-typical__content tr:nth-child(even) {
    background-color: #f9f9f9;
}

.articles-typical__content blockquote {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1em 1.5em;
    border-left: 4px solid #ddd;
    background-color: #f9f9f9;
    font-style: italic;
}

.articles-typical__content blockquote p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.articles-typical__content blockquote p:first-child {
    margin-top: 0;
}

.articles-typical__content blockquote p:last-child {
    margin-bottom: 0;
}

.articles-typical__content blockquote blockquote {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.articles-typical__content hr {
    margin-top: 2em;
    margin-bottom: 2em;
    border: 0;
    border-top: 1px solid #ddd;
}

.articles-typical__content img {
    max-width: 100%;
    height: auto;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.articles-typical__content a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid;
}

.articles-typical__content a:hover {
    opacity: 0.8;
}

.articles-typical__content code {
    padding: 0.2em 0.4em;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.articles-typical__content pre {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow-x: auto;
}

.articles-typical__content pre code {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}