/* NEWS_CARDS_V1 (2026-11-05): ChatGPT-style news digest cards under the answer's opening paragraph. Uses only the chat's own
   tokens (--bg-*, --brd-*, --tx-*, --r) so the warm-stone light theme and the charcoal dark theme both follow. */
.nc-wrap { margin: 14px 0 12px; }
.nc-sec { margin: 0 0 6px; }
.nc-sec-h { display: flex; align-items: center; gap: 7px; margin: 18px 0 10px; font-size: 1.02rem; font-weight: 650; color: var(--tx); letter-spacing: -.005em; }
.nc-sec:first-child .nc-sec-h { margin-top: 6px; }
.nc-ico { width: 17px; height: 17px; color: #e2574c; flex-shrink: 0; }

.nc-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--brd); }
.nc-sec-h + .nc-item { border-top: 0; padding-top: 4px; }
.nc-img { position: relative; flex: 0 0 auto; display: block; overflow: hidden; border-radius: 12px; background: var(--bg-3); }
.nc-img-tall { width: 132px; aspect-ratio: 4 / 5; }
.nc-img-sq { width: 108px; aspect-ratio: 1 / 1; }
/* absolute fill: a percentage height does not resolve on a box whose height comes from aspect-ratio (the image sat at the top) */
/* the class matters: the chat has ".m-txt img:not([class]) { height:auto; object-fit:contain }" which beat a plain ".nc-img img" */
.nc-img img.nc-im { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; border-radius: 0; }
.nc-img.nc-img-fail { display: none; }   /* a thumbnail that failed to load simply disappears */
.nc-body { flex: 1 1 auto; min-width: 0; }

.nc-tag { display: inline-block; margin: 0 0 5px; padding: 1px 9px; border-radius: 999px; font-size: .68rem; font-weight: 600; line-height: 1.6; letter-spacing: .01em; }
.nc-t-red   { background: rgba(226, 87, 76, .16);  color: #e2574c; }
.nc-t-amber { background: rgba(224, 158, 48, .17); color: #c98a1d; }
.nc-t-blue  { background: rgba(70, 130, 220, .16); color: #4a85d6; }
.nc-t-green { background: rgba(70, 168, 110, .16); color: #3f9d66; }
.nc-t-gray  { background: var(--bg-3); color: var(--tx-2); }

.nc-title { margin: 0; font-size: .98rem; font-weight: 650; line-height: 1.35; color: var(--tx); }
/* the chat's global ".m-txt a" link style (underline + border) must not apply to card titles and chips */
.m-txt .nc-title a, .nc-title a { color: inherit; text-decoration: none; border: 0; background: none; }
.m-txt .nc-title a:hover, .nc-title a:hover { text-decoration: underline; text-underline-offset: 2px; }
.nc-date { margin: 2px 0 6px; font-size: .74rem; color: var(--tx-3); }
.nc-sum { margin: 0 0 8px; font-size: .9rem; line-height: 1.55; color: var(--tx-2); }

.nc-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 9px; border: 1px solid var(--brd-2); border-radius: 999px;
  background: var(--bg-2); color: var(--tx-2); font-size: .7rem; line-height: 1.5; text-decoration: none; vertical-align: middle; white-space: nowrap; }
.m-txt .nc-chip { text-decoration: none; border: 1px solid var(--brd-2); }
.nc-chip:hover { background: var(--bg-3); color: var(--tx); }
.nc-chip-l { overflow: hidden; text-overflow: ellipsis; }
.nc-chip-n { color: var(--tx-3); }

.nc-viral { margin: 2px 0 6px; padding-left: 20px; }
.nc-viral li { margin: 0 0 8px; font-size: .9rem; line-height: 1.55; color: var(--tx-2); }

@media (max-width: 640px) {
  .nc-item { gap: 12px; }
  .nc-img-tall { width: 92px; }
  .nc-img-sq { width: 78px; }
  .nc-title { font-size: .94rem; }
  .nc-sum { font-size: .86rem; }
}
