/* vue:one_element article — детальная страница статьи */
.article-detail {
    padding: 4px 0 8px;
}

.article-detail__inner {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 26px 34px 30px;
}

/* Мета: дата и просмотры */
.article-detail__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #99a3ae;
}

.article-detail__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Обложка */
.article-detail__img {
    margin: 18px 0 22px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f7fa;
}

.article-detail__img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Типографика текста статьи */
.article-detail__text {
    font-size: 16.5px;
    line-height: 1.75;
    color: #3c434e;
    /* длинные URL в тексте переносятся, а не растягивают страницу на мобильных */
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.article-detail__text h2 {
    position: relative;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
    color: #212120;
    margin: 30px 0 14px;
    padding-left: 14px;
}

.article-detail__text h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: #f7811b;
}

.article-detail__text h3 {
    font-size: 19px;
    font-weight: 700;
    color: #212120;
    margin: 24px 0 10px;
}

.article-detail__text p {
    margin: 0 0 15px;
}

.article-detail__text ul,
.article-detail__text ol {
    margin: 0 0 18px;
    padding-left: 4px;
    list-style: none;
}

.article-detail__text ul li,
.article-detail__text ol li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
}

.article-detail__text ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f7811b;
    opacity: 0.85;
}

.article-detail__text ol {
    counter-reset: article-ol;
}

.article-detail__text ol li {
    counter-increment: article-ol;
}

.article-detail__text ol li::before {
    content: counter(article-ol);
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fdeee0;
    color: #e56b06;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.article-detail__text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-detail__text a {
    color: #005bff;
}

.article-detail__text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
    font-size: 15px;
}

/* Широкие таблицы: горизонтальная прокрутка внутри контейнера,
   чтобы не ломать вёрстку страницы на смартфонах */
.article-table-box {
    margin: 0 0 18px;
}

.article-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-table-wrap table {
    margin: 0;
    min-width: 480px;
}

.article-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.article-table-wrap::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 3px;
}

.article-table-wrap::-webkit-scrollbar-thumb {
    background: #c8d0d9;
    border-radius: 3px;
}

/* Подсказка «таблицу можно прокрутить» — только на смартфонах */
.article-table-hint {
    display: none;
}

@media (max-width: 767px) {
    .article-table-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0 0 6px;
        font-size: 12px;
        color: #99a3ae;
        transition: opacity 0.3s ease;
    }

    .article-table-hint::before {
        content: "";
        width: 16px;
        height: 10px;
        flex: 0 0 auto;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M4.5 1 1 5l3.5 4M11.5 1 15 5l-3.5 4M1 5h14' stroke='%2399a3ae' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* после первой прокрутки таблицы подсказка исчезает */
    .article-table-box.is-scrolled .article-table-hint {
        opacity: 0;
    }
}

.article-detail__text th,
.article-detail__text td {
    border: 1px solid #e9ecef;
    padding: 9px 12px;
    text-align: left;
}

.article-detail__text th {
    background: #f5f7fa;
    font-weight: 600;
}

/* Метки */
.article-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.article-detail__tag {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 15px;
    background: #f5f7fa;
    color: #5b6470;
    font-size: 13px;
}

/* Источник */
.article-detail__source {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #99a3ae;
}

.article-detail__source a {
    color: #005bff;
}

@media (max-width: 767px) {
    .article-detail__inner {
        padding: 16px 15px 20px;
    }

    .article-detail__text {
        font-size: 15.5px;
    }

    .article-detail__text h2 {
        font-size: 19px;
        margin-top: 24px;
    }
}
