/* /news list + article (2026-11-18): same look as /home - white cards with soft shadows, full-bleed photo on top, brand blue, no hard borders.
   Own file (loaded after pixelia-modern.css) so edits there can't wipe it. */

/* search + category pills + pagination: brand blue instead of the old cyan */
.content-canvas .nw-search .news-search-input { box-shadow: 0 14px 30px -22px rgba(20, 70, 160, .55), inset 0 0 0 1px #e8eef8; }
.content-canvas .nw-search .news-search-input:focus { box-shadow: 0 16px 30px -20px rgba(20, 70, 160, .6), inset 0 0 0 2px var(--px-btn-blue); }
.content-canvas .nw-tabs .news-category-tab { box-shadow: inset 0 0 0 1px #e1eaf7; }
.content-canvas .nw-tabs .news-category-tab:hover { background: #eef4fc; color: var(--px-blue-2, #2276d0); }
.content-canvas .nw-tabs .news-category-tab.active { background: var(--px-btn-blue); color: #fff; box-shadow: none; }
.content-canvas .news-pagination a, .content-canvas .news-pagination .current { border-radius: 999px; box-shadow: inset 0 0 0 1px #e1eaf7; transition: background .15s, color .15s; }
.content-canvas .news-pagination a:hover { background: #eef4fc; color: var(--px-blue-2, #2276d0); }
.content-canvas .news-pagination .current { background: var(--px-btn-blue); color: #fff; box-shadow: none; }
.content-canvas .news-search-summary { margin: 0 0 14px; color: #6b7b92; }

/* list: even 3-column grid like the home news section */
.nt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nt { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; color: var(--px-ink); text-decoration: none;
  box-shadow: 0 14px 30px -20px rgba(20, 70, 160, .55), inset 0 0 0 1px #e8eef8; transition: transform .2s, box-shadow .2s; }
.nt:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(20, 70, 160, .65), inset 0 0 0 1px #cfe0f7; }
.nt-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe8f5; }
.nt-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nt:hover .nt-img img { transform: scale(1.04); }
.nt-img .px-tag { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }
.nt-img .nf-new { position: absolute; right: 12px; top: 12px; padding: 4px 11px; border-radius: 999px; background: #ee6aaa; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nt-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 4px; flex: 1; }
.nt-date { color: #7b8aa3; font-size: 12px; }
.nt-t { font-size: 17px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #5b6b84; font-size: 13.5px; line-height: 1.5; }
.nt-by { display: flex; align-items: center; gap: 8px; padding: 12px 18px 16px; color: #3a4b66; font-size: 13px; }
.nt-by > img { width: 28px; height: 28px; border-radius: 50%; background: #dfe8f5; image-rendering: pixelated; }
.nt-by > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-stats { display: inline-flex; gap: 12px; margin-left: auto; color: #7a8aa3; }
.nt-stat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.nt-stat svg { fill: none; stroke: currentColor; }
.nt-like { cursor: pointer; }
.nt-like.is-liked { color: #e0538f; }
.nt-like.is-liked svg { fill: currentColor; }
@media (max-width: 1000px) { .nt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nt-grid { grid-template-columns: 1fr; } }

/* article page */
.nw-layout { max-width: 1160px; padding: 0 16px; box-sizing: border-box; gap: 22px; }
.nw-box { padding: 0; border: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 38px -26px rgba(20, 70, 160, .65), inset 0 0 0 1px #e6eefa; }
.nw-article.nw-box { gap: 0; }
.nw-article .nw-back { position: absolute; z-index: 2; top: 16px; left: 16px; border: 0; background: rgba(255, 255, 255, .92); color: var(--px-ink); font-weight: 600; box-shadow: 0 8px 18px -10px rgba(10, 30, 80, .6); }
.nw-article { position: relative; }
.nw-layout .nw-cover { height: clamp(200px, 30vw, 340px); border: 0; border-radius: 0; }
.nw-article .nw-meta, .nw-article .nw-lead, .nw-article .nw-body { margin-left: 32px; margin-right: 32px; width: auto; }
.nw-article .nw-meta { margin-top: 22px; }
.nw-article .nw-tag { border-radius: 999px; }
.nw-article .nw-lead { margin-top: 14px; font-size: 19px; font-weight: 500; color: var(--px-ink); }
.nw-article .nw-body { margin-top: 18px; margin-bottom: 34px; font-size: 16.5px; color: #33425b; max-width: 68ch; }
.nw-side h2 { font-size: 20px; color: var(--px-ink); }
.nw-side-item { padding: 10px; border: 0; border-radius: 18px; box-shadow: 0 14px 30px -22px rgba(20, 70, 160, .55), inset 0 0 0 1px #e8eef8; transition: transform .2s, box-shadow .2s; }
.nw-side-item:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(20, 70, 160, .65), inset 0 0 0 1px #cfe0f7; }
.nw-side-img { width: 92px; border-radius: 12px; }
.nw-all { border: 0; background: #fff; color: var(--px-ink); font-weight: 700; box-shadow: inset 0 0 0 1px #e1eaf7; }
.nw-all:hover { background: #eef4fc; color: var(--px-blue-2, #2276d0); }

/* ---- categories (2026-11-18): one fixed colour per category (same on the tab, the tag on cards, /home), instead of colours by card position ---- */
.cat-0 { --cat: #2276d0; } .cat-1 { --cat: #e0538f; } .cat-2 { --cat: #7c5ce0; } .cat-3 { --cat: #1fa65a; } .cat-4 { --cat: #e8921c; } .cat-5 { --cat: #139fb8; } .cat-6 { --cat: #6b7b92; }
.px-tag[class*="cat-"] { background: var(--cat); }
.content-canvas .nw-tabs { gap: 10px; margin-bottom: 26px; }
.content-canvas .nw-tabs .news-category-tab { gap: 8px; min-height: 42px; padding: 0 20px; font-size: 14px; }
.content-canvas .nw-tabs .news-category-tab[class*="cat-"]::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--cat); flex: none; }
.content-canvas .nw-tabs .news-category-tab[class*="cat-"]:hover { background: #fff; color: var(--cat); box-shadow: inset 0 0 0 2px var(--cat); }
.content-canvas .nw-tabs .news-category-tab[class*="cat-"].active { background: var(--cat); color: #fff; box-shadow: 0 10px 18px -12px var(--cat); }
.content-canvas .nw-tabs .news-category-tab[class*="cat-"].active::before { background: #fff; }
.content-canvas .nw-tabs .news-category-tab:not([class*="cat-"]).active { background: var(--px-ink); }

/* formatted article text (src/lib/article-markup.ts) */
.nw-body.nw-rich { white-space: normal; }
.nw-rich > :first-child { margin-top: 0; }
.nw-rich > :last-child { margin-bottom: 0; }
.nw-rich p, .nw-rich ul, .nw-rich ol, .nw-rich blockquote, .nw-rich figure { margin: 0 0 1em; }
.nw-rich h2, .nw-rich h3 { color: var(--px-ink); line-height: 1.3; margin: 1.5em 0 .5em; }
.nw-rich h2 { font-size: 1.4em; }
.nw-rich h3 { font-size: 1.15em; }
.nw-rich ul, .nw-rich ol { padding-left: 1.4em; }
.nw-rich ul { list-style: disc; }
.nw-rich ol { list-style: decimal; }
.nw-rich li { margin: .25em 0; }
.nw-rich strong { font-weight: 700; color: var(--px-ink); }
.nw-rich a { color: #1769d6; text-decoration: underline; }
.nw-rich blockquote { padding: 12px 18px; border-left: 4px solid #3f8cff; border-radius: 0 12px 12px 0; background: #eef5ff; }
.nw-rich figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; }
.nw-rich figcaption { margin-top: 6px; text-align: center; font-size: .85em; opacity: .75; }
.nw-rich hr { border: 0; border-top: 1px solid #dbe5f4; margin: 1.6em 0; }
