/* Типографіка для статей */
.article-content {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1a1a;
}

.article-content h2 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: #111;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #10b981;
}

.article-content h3 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #333;
}

.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #444;
}

.article-content p {
    margin: 1.25rem 0;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #10b981;
    background: linear-gradient(to right, #f0fdf4, transparent);
    font-style: italic;
    color: #374151;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin: 0.5rem 0;
}

.article-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
}

.article-content th {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.article-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-content tr:hover td {
    background: #f9fafb;
}

.article-content code {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background: #f3f4f6;
    border-radius: 4px;
}

.article-content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 8px;
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* CKEditor специфічні структури */
.article-content figure {
    margin: 2rem 0;
    text-align: center;
}

.article-content figure.image {
    margin: 2rem auto;
    max-width: 100%;
}

.article-content figure.image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.article-content figure.table {
    margin: 2rem 0;
    overflow-x: auto;
}

.article-content figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

/* Media embeds */
.article-content oembed,
.article-content .media-embed,
.article-content iframe {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    border-radius: 0.5rem;
}

.article-content iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    min-height: 400px;
    border: none;
}

.article-content video,
.article-content audio {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    border-radius: 0.5rem;
}

.article-content video {
    max-height: 600px;
}

.article-content strong {
    font-weight: 700;
    color: #111;
}

.article-content a {
    color: #059669;
    text-decoration: underline;
    text-decoration-color: #a7f3d0;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #047857;
    text-decoration-color: #059669;
}

.article-content hr {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

/* Ліда */
.article-lead {
    font-size: 1.375rem;
    line-height: 1.6;
    color: #374151;
    font-weight: 400;
}

/* Інфобокс */
.article-infobox {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border: 1px solid #fde047;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

/* Drop cap */
.drop-cap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    font-weight: 700;
    color: #059669;
}

/* TOC (Table of Contents) */
.article-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.article-toc-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.article-toc ol {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0;
}

.article-toc li {
    margin: 0.35rem 0;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.article-toc li.toc-h3 {
    list-style: none;
    padding-left: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.article-toc a {
    color: #059669;
    text-decoration: none;
}

.article-toc a:hover {
    text-decoration: underline;
    color: #047857;
}

/* Sources / E-E-A-T block */
.article-sources {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.article-sources-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.article-sources ol {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0;
}

.article-sources li {
    font-size: 0.875rem;
    color: #374151;
    margin: 0.4rem 0;
    word-break: break-word;
}

.article-sources a {
    color: #059669;
    text-decoration: underline;
    text-decoration-color: #a7f3d0;
    text-underline-offset: 2px;
}

.article-sources a:hover {
    color: #047857;
}

/* Адаптивність */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
    }

    .article-content iframe {
        min-height: 250px;
    }
}
