/*
 * Reader page of one crypto news story (/wallets/news/{slug}).
 *
 * It keeps the spacing and the ink/green reading rules of the news list (news/v1/page.css + theme.css) and
 * caps the article to a readable measure. The body typography lives here so the parsed article reads like an
 * article, not like a list row. Colours follow the brand tokens the redesigned site already loads.
 */
.news-article {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
}

.news-article__title {
    margin: 0;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -.2px;
    color: var(--elements-main);
}

.news-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-default);
}

.news-article__date {
    white-space: nowrap;
}

.news-article__coin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px 4px 5px;
    border-radius: 999px;
    background: var(--separator-default);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    color: var(--elements-main);
    text-decoration: none;
}

/* The coin logo is a square brand image; clipping it to a circle keeps the chip tidy. */
.news-article__coin-icon {
    flex: none;
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}

.news-article__coin-icon img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.news-article__coin:hover {
    background: rgba(0, 0, 0, .08);
}

.news-article__media {
    margin: 28px 0 0;
    border: 1px solid var(--separator-default);
    border-radius: 20px;
    overflow: hidden;
}

.news-article__media img {
    display: block;
    width: 100%;
    height: auto;
}

.news-article__lede {
    margin: 24px 0 0;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.55;
    color: var(--elements-main);
}

/* Parsed article body. The markup comes from the source, so its elements are re-tuned to the site type. */
.news-article__body {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--elements-main);
    overflow-wrap: anywhere;
}

.news-article__body p {
    margin: 0 0 18px;
}

.news-article__body h2,
.news-article__body h3 {
    margin: 28px 0 12px;
    line-height: 1.3;
}

.news-article__body ul,
.news-article__body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.news-article__body li {
    margin-bottom: 8px;
}

.news-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.news-article__body blockquote {
    margin: 0 0 18px;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--separator-default);
    color: var(--gray-default);
}

.news-article__body a {
    color: var(--primary-default, #2563eb);
    text-decoration: underline;
}

/* More news rail: the other stories, so the reader keeps going without leaving the site. */
.news-article__more {
    max-width: 900px;
    margin: 56px auto 0;
}

.news-article__more-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--separator-default);
}

.news-article__all {
    white-space: nowrap;
    color: var(--primary-default, #2563eb);
    text-decoration: none;
}

.news-article__all:hover {
    text-decoration: underline;
}

.news-article__more-list {
    display: flex;
    flex-direction: column;
}

.news-mini {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--separator-default);
    color: inherit;
    text-decoration: none;
}

.news-mini__media {
    flex: none;
    width: 96px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--separator-default);
}

.news-mini__media img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.news-mini__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.news-mini__title {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: var(--elements-main);
}

.news-mini:hover .news-mini__title {
    text-decoration: underline;
}

.news-mini__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-default);
}

@media (max-width: 768px) {
    .news-article__title {
        font-size: 26px;
    }

    .news-article__media {
        border-radius: 14px;
    }

    .news-article__lede {
        font-size: 17px;
    }

    .news-article__more {
        margin-top: 40px;
    }

    .news-mini__media {
        width: 76px;
        height: 60px;
    }

    .news-mini__title {
        font-size: 16px;
    }
}
