/* A news item (NewsPostPage): the text in the reading column, beside it a column of share, latest news and the
   market's prices; under the text on narrower screens. The prices box stays in view while the text scrolls. */
.np-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-bottom: 56px; }
.np-main { min-width: 0; }
.np-aside { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; }

.np-box { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.np-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.np-box-title {
  font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .08em; margin: 0 0 14px;
}
.np-box-head .np-box-title { margin: 0; }
.np-box-head .see-all { font-size: 12.5px; }

.np-share { display: flex; flex-wrap: wrap; gap: 8px; }
.np-share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; min-width: 40px;
  padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.np-share-btn svg { width: 19px; height: 19px; flex: none; }
.np-share-btn--wa { color: #25D366; }
.np-share-btn--tg { color: #229ED9; }
.np-share-btn--fb { color: #1877F2; }
.np-share-copy { flex: 1; white-space: nowrap; }
.np-share-copy i { font-size: 16px; }
.np-share-copy.is-done { color: var(--accent); border-color: var(--accent); }
@media (hover:hover) and (pointer:fine) {
  .np-share-btn:hover { border-color: currentColor; }
  .np-share-copy:hover { border-color: var(--accent); color: var(--accent); }
}

.np-news { list-style: none; margin: 0; padding: 0; }
.np-news li + li { border-top: 1px solid var(--line-soft); }
.np-news-item { display: flex; gap: 12px; padding: 12px 0; color: var(--ink); }
.np-news li:first-child .np-news-item { padding-top: 0; }
.np-news li:last-child .np-news-item { padding-bottom: 0; }
.np-news-item img, .np-news-ph {
  flex: none; width: 72px; height: 56px; border-radius: 9px; object-fit: cover; background: var(--paper);
}
.np-news-ph { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink-3); }
.np-news-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.np-news-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.np-news-text time { font-size: 12px; color: var(--ink-3); }
@media (hover:hover) and (pointer:fine) {
  .np-news-item:hover .np-news-title { color: var(--accent); }
}

.np-market { position: sticky; top: 90px; overflow: hidden; }
.np-market::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.np-market-icon {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--paper); border: 1px solid var(--line); font-size: 21px; color: var(--accent);
}
.np-market h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); margin: 14px 0 8px; }
.np-market p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 16px; }
.np-market-cta { width: 100%; justify-content: center; }
.np-market-links { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 6px; }
.np-market-links a {
  display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); transition: color .15s;
}
.np-market-links a i { font-size: 17px; color: var(--ink-3); transition: color .15s; }
@media (hover:hover) and (pointer:fine) {
  .np-market-links a:hover, .np-market-links a:hover i { color: var(--accent); }
}

@media (max-width: 1080px) {
  .np-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .np-aside { max-width: 760px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
  .np-market { position: relative; top: auto; }
}
