/*
 * News block of the coin wallet page (/wallets/{token}-wallet).
 *
 * The rows are the same stories the coin news page lists, so their typography and colors repeat the
 * news page values; the vertical rhythm follows the other sections of the coin page (128px between
 * sections on desktop, 64px on mobile).
 *
 * The site paints every anchor with the brand link colour (page.css: a{color:var(--elements-link)}),
 * so the headline and the source line carry their own rules: a story headline reads as ink and the
 * link colour stays reserved for controls, which is also how the news page lists its stories.
 */
.coin-news {
    margin-top: 128px;
}

/* Edge air: the `.container` of the coin page insets its content by 16px only, which presses the
 * headlines, the descriptions and the separating rules into the corners of the screen. The block takes
 * the rhythm of the redesigned pages instead - 40px on the wide screen, 32px down to a small tablet and
 * 20px on a phone. The rule is scoped to `.coin-news`, so the container of every other section stays 16px. */
.coin-news .container {
    padding-left: 40px;
    padding-right: 40px;
}

.coin-news__list {
    margin-top: 48px;
}

.coin-news__item {
    padding: 24px 0;
    border-bottom: 1px solid var(--separator-default);
}

.coin-news__item:first-child {
    padding-top: 0;
}

.coin-news__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.coin-news__item-title {
    display: inline-block;
    color: var(--elements-main);
}

.coin-news__item-title:hover {
    color: var(--elements-link);
    text-decoration: underline;
}

.coin-news__item-description {
    margin-top: 12px;
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: .25px;
    color: var(--elements-main);
}

.coin-news__item-meta {
    margin-top: 12px;
    color: var(--gray-default);
}

.coin-news__item-meta-link {
    text-decoration: none;
    color: inherit;
}

.coin-news__item-meta-link:hover {
    color: var(--elements-main);
}

.coin-news__button {
    margin-top: 48px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.coin-news__button .button {
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
}

@media (max-width: 768px) {
    .coin-news {
        margin-top: 64px;
    }

    .coin-news .container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .coin-news__list {
        margin-top: 32px;
    }

    .coin-news__item {
        padding: 16px 0;
    }

    .coin-news__item-description {
        font-size: 16px;
    }

    .coin-news__button {
        margin-top: 32px;
    }
}

@media (max-width: 560px) {
    .coin-news .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (pointer: coarse) {
    .coin-news__item-title:hover {
        color: var(--elements-main);
        text-decoration: none;
    }
}

/* Market mood chip (bullish / bearish) shown beside a headline when the story was rated; a neutral or
   unrated story renders nothing. The colours read as positive/negative rather than the brand accent so the
   mood stays legible in every locale. */
.news-sentiment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-inline-end: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}

.news-sentiment__icon {
    display: block;
    flex: none;
}

.news-sentiment--bullish {
    color: #15803d;
    background: rgba(22, 163, 74, .14);
}

.news-sentiment--bearish {
    color: #b91c1c;
    background: rgba(220, 38, 38, .14);
}
