/**
 * Текст статьи блога на сайте.
 * В tailwind.v4.css для ul/ol задано list-style:none — здесь возвращаем оформление списков и типографику.
 */
.blog-article .blog-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #44403c;
}

.blog-article .blog-content > * + * {
    margin-top: 1em;
}

.blog-article .blog-content h2 {
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 700;
    color: #1c1917;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

.blog-article .blog-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    color: #1c1917;
    margin-top: 1.5em;
    margin-bottom: 0.45em;
}

.blog-article .blog-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #292524;
    margin-top: 1.25em;
    margin-bottom: 0.35em;
}

.blog-article .blog-content p {
    margin: 0 0 1em;
}

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

.blog-article .blog-content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 0.75em 0 1em;
}

.blog-article .blog-content ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin: 0.75em 0 1em;
}

.blog-article .blog-content li {
    margin: 0.35em 0;
}

.blog-article .blog-content ul ul,
.blog-article .blog-content ol ol,
.blog-article .blog-content ul ol,
.blog-article .blog-content ol ul {
    margin: 0.4em 0;
}

.blog-article .blog-content blockquote {
    border-left: 4px solid #fdba74;
    padding: 0.25em 0 0.25em 1em;
    margin: 1em 0;
    color: #57534e;
    font-style: italic;
}

.blog-article .blog-content a {
    color: #c2410c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article .blog-content a:hover {
    color: #9a3412;
}

.blog-article .blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1em 0;
}

.blog-article .blog-content hr {
    border: 0;
    border-top: 1px solid #e7e5e4;
    margin: 1.5em 0;
}

.blog-article .blog-content pre {
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.9em;
    margin: 1em 0;
}

.blog-article .blog-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: #f5f5f4;
    padding: 0.15em 0.35em;
    border-radius: 0.25rem;
}

.blog-article .blog-content pre code {
    background: transparent;
    padding: 0;
}

/* Кнопки из HTML-режима: достаточно аккуратного вида по умолчанию */
.blog-article .blog-content button[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0.5rem 1rem;
    margin: 0.35em 0.35em 0.35em 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    background: #ea580c;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.blog-article .blog-content button[type="button"]:hover {
    background: #c2410c;
}

.blog-article .blog-content button[type="button"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* «Поделиться» на обложке — как .photo-action-btn на странице товара */
.blog-cover-actions .photo-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-cover-actions .photo-action-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

/* Статья без обложки: card-шаринг (в каталоге стили в catalog.css) */
.blog-article-share-bar .card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #78716c;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.blog-article-share-bar .card-action-btn:hover {
    background: #fff;
    color: #ea580c;
    transform: scale(1.05);
}

.blog-article-share-bar .share-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 160px;
    z-index: 30;
}

.blog-article-share-bar .share-menu.active {
    display: block;
}

.blog-article-share-bar .share-menu a,
.blog-article-share-bar .share-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    color: #57534e;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.blog-article-share-bar .share-menu a:hover,
.blog-article-share-bar .share-menu button:hover {
    background: #f5f5f4;
}
