/* Classic editorial list. Brand, typography and public shell belong to style.css. */
.np-main {
  --np-blue: var(--primary, #017DED);
  --np-title: var(--title, #292C33);
  --np-text: #606D80;
  --np-muted: #66758B;
  --np-rule: #E8EDF3;
  --np-paper: #FFFFFF;
  color: var(--np-title);
  background: #F4F6F8;
  padding: calc(var(--header-h, 70px) + 14px) 0 48px;
}
.np-main [hidden] { display: none !important; }
.np-container { width: min(1260px, calc(100% - 144px)); margin-inline: auto; }
.np-main :is(h1,h2,h3,p) { margin: 0; }
.np-main :is(ul,ol) { margin: 0; padding: 0; list-style: none; }
.np-main a { text-decoration: none; }
.np-main :is(a,button,input):focus-visible { outline: 2px solid var(--np-blue); outline-offset: 3px; }
.np-main :is(h1,h2,h3) { text-wrap: pretty; }
.np-main :is(.np-story h2,.np-story h3,.np-brief-list h3,.nw-portal-link) { overflow-wrap: anywhere; }
.np-sr-only,.np-search > label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.np-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  min-height: 20px; margin-bottom: 14px; color: var(--np-muted); font-size: 12px; line-height: 1.7;
}
.np-breadcrumb a:hover { color: var(--np-blue); }
.np-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: start; gap: 24px; min-width: 0; }

/* The archive is one continuous white paper surface, without stacked cards. */
.np-archive { min-width: 0; border: 1px solid #E5EAF0; border-radius: 5px; background: var(--np-paper); overflow: hidden; }
.np-list-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 19px 25px 15px;
}
.np-list-heading h1 { color: var(--np-title); font-size: 22px; line-height: 1.5; font-weight: 600; letter-spacing: -.025em; }
.np-count { flex: none; color: var(--np-muted); font-size: 12px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.np-nav {
  display: flex; align-items: stretch; gap: 28px; min-width: 0;
  padding-inline: 25px; border-bottom: 1px solid var(--np-rule); background: #fff;
}
.np-nav-link {
  position: relative; display: inline-flex; align-items: center; flex: none;
  min-height: 44px; padding-inline: 1px; color: var(--np-text); font-size: 14px; line-height: 1.7; font-weight: 500; white-space: nowrap;
  transition: color .18s;
}
.np-nav-link:hover,.np-nav-link[aria-current="page"] { color: var(--np-blue); }
.np-nav-link[aria-current="page"] { font-weight: 600; }
.np-nav-link[aria-current="page"]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--np-blue); }
.np-archive-list > li { padding: 23px 25px 24px; border-bottom: 1px solid var(--np-rule); }
.np-archive-list > li:last-child { border-bottom: 0; }
.np-story { display: grid; grid-template-columns: 180px minmax(0,1fr); align-items: start; gap: 22px; min-width: 0; }
.np-story-thumb { display: block; width: 180px; height: 124px; border-radius: 3px; background: #EEF3FA; overflow: hidden; }
.np-story-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.76,0,.24,1); }
.np-story-thumb:hover img { transform: scale(1.02); }
.np-story-copy { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.np-story :is(h2,h3) { order: 0; margin-top: -3px; color: var(--np-title); font-size: 18px; line-height: 1.6; font-weight: 600; letter-spacing: -.015em; }
.np-story :is(h2,h3) a { transition: color .18s; }
.np-story :is(h2,h3) a:hover { color: var(--np-blue); }
.np-excerpt { color: var(--np-text); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.np-story .np-excerpt {
  order: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  margin-top: 9px; overflow: hidden;
}
.np-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 11px;
  color: var(--np-muted); font-size: 12px; line-height: 1.8; font-variant-numeric: tabular-nums;
}
.np-story .np-meta { order: 2; margin-top: 10px; }
.np-meta > a { color: var(--np-blue); }
.np-meta > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.np-meta > span[aria-hidden="true"] { color: #9CA7B7; }
.np-views { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.np-meta .np-views { margin-left: auto; }
.np-mini-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 4px; min-height: 26px; color: var(--np-blue); font-size: 12px; line-height: 1.7; }
.np-story > .np-mini-link,.np-story-copy > .np-mini-link { order: 3; margin-top: 5px; }
.np-mini-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Text-only error/search fallbacks remain readable before a thumbnail loads. */
.np-story > :not(.np-story-thumb):not(.np-story-copy) { grid-column: 1 / -1; }
.np-empty { padding: 34px 25px; color: var(--np-text); font-size: 14px; line-height: 1.9; text-align: center; }
.np-empty a { color: var(--np-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Search replaces the archive rows inside the same paper, not another card. */
.np-search-results { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.np-search-results > .np-section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; padding: 18px 25px 15px; border-bottom: 1px solid var(--np-rule); }
.np-search-results > .np-section-head h2 { font-size: 18px; font-weight: 600; line-height: 1.6; }
.np-search-count { color: var(--np-muted); font-size: 12px; line-height: 1.8; }
.np-search-more { display: flex; justify-content: center; padding: 20px 25px 26px; border-top: 1px solid var(--np-rule); }
.np-search-more button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 8px 24px; border: 1px solid #D4DFED; border-radius: 4px; color: var(--np-blue); background: #F8FBFF; font-size: 13px; }
.np-search-more button:hover { border-color: var(--np-blue); background: #F0F6FF; }
.np-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; padding: 21px 25px 25px; border-top: 1px solid var(--np-rule); }
.np-pagination :is(a,button,span) { display: inline-flex; align-items: center; justify-content: center; min-width: 35px; min-height: 36px; padding: 5px 11px; border: 1px solid #E0E6EE; border-radius: 4px; color: var(--np-text); background: #fff; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.np-pagination a:hover,.np-pagination button:hover { color: var(--np-blue); border-color: var(--np-blue); }
.np-pagination [aria-current="page"] { color: #fff; border-color: var(--np-blue); background: var(--np-blue); font-weight: 600; }
.np-pagination [aria-disabled="true"] { pointer-events: none; color: #8A96A8; background: #F8FAFD; border-color: #EDF1F7; }
.np-pagination .np-pagination-ellipsis { min-width: 19px; padding-inline: 1px; border-color: transparent; }

/* Sidebar follows the same fine rules and compact headings as the reference. */
.np-sidebar { display: grid; align-items: start; gap: 18px; min-width: 0; }
.np-side-section { min-width: 0; padding: 18px 20px 19px; border: 1px solid #E5EAF0; border-radius: 5px; background: var(--np-paper); }
.np-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--np-rule); }
.np-section-head h2,.np-side-search > h2 { color: var(--np-title); font-size: 17px; line-height: 1.6; font-weight: 600; letter-spacing: -.015em; }
.np-section-head > a { flex: none; color: var(--np-muted); font-size: 12px; line-height: 1.7; }
.np-section-head > a:hover { color: var(--np-blue); }
.np-side-section > p { margin-top: 9px; color: var(--np-text); font-size: 12px; line-height: 1.8; }
.np-side-search > h2 { margin-bottom: 12px; }
.np-search {
  position: relative; display: flex; align-items: center; width: 100%; min-width: 0; height: 42px;
  border: 1px solid #D7E0EB; border-radius: 4px; background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.np-search:focus-within { border-color: var(--np-blue); box-shadow: 0 0 0 3px color-mix(in srgb,var(--np-blue) 8%,transparent); }
.np-search input { width: 100%; min-width: 0; height: 100%; padding: 0 9px 0 11px; border: 0; background: transparent; color: var(--np-title); font-size: 13px; outline: none; }
.np-search input::placeholder { color: var(--np-muted); }
.np-search input::-webkit-search-cancel-button { display: none; }
.np-search input:focus-visible { outline: none; }
.np-search button { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 36px; height: 36px; border-radius: 3px; }
.np-search .np-search-clear { min-width: 28px; color: var(--np-muted); font-size: 19px; }
.np-search .np-search-clear:hover { color: var(--np-blue); background: #F2F7FE; }
.np-search :is(button[type="submit"],.np-search-submit) { min-width: 38px; margin-right: 2px; color: #fff; background: var(--np-blue); font-size: 17px; }
.np-search :is(button[type="submit"],.np-search-submit):hover { background: var(--primary-hover, #0046E5); }
.np-brief-list li { padding-block: 12px 13px; border-bottom: 1px solid var(--np-rule); }
.np-brief-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.np-brief-list a { display: block; }
.np-brief-list h3 { color: var(--np-title); font-size: 14px; line-height: 1.75; font-weight: 500; transition: color .18s; }
.np-brief-list a:hover h3 { color: var(--np-blue); }
.np-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 5px; color: var(--np-muted); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.np-row-meta > span:first-child:not(.np-views) { color: var(--np-blue); }
.np-row-meta .np-views { margin-left: auto; }
.np-ranking-note { margin-top: 12px; color: var(--np-muted); font-size: 12px; line-height: 1.8; }
.np-main .nw-portal-item { padding-block: 12px 13px; }
.np-main .nw-portal-link { display: block; color: var(--np-title); font-size: 14px; line-height: 1.75; font-weight: 500; }
.np-main .nw-portal-link:hover { color: var(--np-blue); }
.np-main .nw-portal-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 7px; color: var(--np-muted); font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.np-main .nw-view-count { display: inline-flex; align-items: center; gap: 5px; color: var(--np-muted); font-size: 12px; white-space: nowrap; }
.np-main .nw-view-count .ph { font-size: 13px; }
.np-topic-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.np-topic-links a { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; min-height: 34px; padding: 6px 8px; border: 1px solid #E1E7F0; border-radius: 3px; color: var(--np-text); background: #F9FBFE; font-size: 12px; line-height: 1.7; }
.np-topic-links a:hover { color: var(--np-blue); border-color: #BDCEE8; background: #F1F7FF; }
.np-topic-links a > span:last-child { flex: none; color: var(--np-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.np-related-links { margin-top: 4px; }
.np-related-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding-block: 10px; border-bottom: 1px solid var(--np-rule); color: var(--np-text); font-size: 13px; line-height: 1.8; }
.np-related-links a:last-child { padding-bottom: 0; border-bottom: 0; }
.np-related-links a:hover { color: var(--np-blue); }
.np-channel { display: grid; grid-template-columns: minmax(0,1fr) 98px; align-items: center; gap: 14px; padding-top: 17px; }
.np-channel + .np-channel { margin-top: 17px; border-top: 1px solid var(--np-rule); }
.np-channel h3 { color: var(--np-title); font-size: 13px; line-height: 1.75; font-weight: 600; }
.np-channel p { margin-top: 5px; color: var(--np-text); font-size: 12px; line-height: 1.8; }
.np-channel .np-channel-label { margin: 0 0 3px; color: var(--np-muted); font-size: 11px; }
.np-channel a { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--np-blue); font-size: 12px; line-height: 1.8; }
.np-channel a:hover { text-decoration: underline; text-underline-offset: 3px; }
.np-qr { width: 98px; aspect-ratio: 1; border: 2px solid #fff; border-radius: 3px; background: #fff; }
.np-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.np-video-qr { position: relative; overflow: hidden; }
.np-video-qr img { position: absolute; width: 137.103448%; max-width: none; left: -19.310345%; top: -47.586207%; height: auto; object-fit: initial; }

@media (min-width:1600px) {
  .np-container { width: min(1260px,calc(100% - 144px)); }
}
@media (max-width:1199px) and (min-width:769px) {
  .np-container { width: calc(100% - 128px); }
  .np-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 20px; }
  .np-list-heading,.np-archive-list > li { padding-inline: 21px; }
  .np-nav { padding-inline: 21px; gap: 23px; }
  .np-story { grid-template-columns: 156px minmax(0,1fr); gap: 18px; }
  .np-story-thumb { width: 156px; height: 110px; }
  .np-story :is(h2,h3) { font-size: 17px; }
  .np-side-section { padding-inline: 17px; }
  .np-channel { grid-template-columns: minmax(0,1fr) 88px; gap: 11px; }
  .np-qr { width: 88px; }
}
@media (max-width:1000px) {
  .np-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .np-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .np-sidebar > .np-follow { grid-column: 1 / -1; }
  .np-follow { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
  .np-follow > .np-section-head { grid-column: 1 / -1; }
  .np-channel { grid-template-columns: minmax(0,1fr) 108px; padding-top: 18px; }
  .np-channel + .np-channel { margin-top: 0; padding-left: 22px; border-top: 0; border-left: 1px solid var(--np-rule); }
  .np-qr { width: 108px; }
  .np-search-results > .np-section-head { padding-inline: 21px; }
}
@media (max-width:768px) {
  .np-main { padding-top: calc(var(--header-h, 70px) + 11px); padding-bottom: 35px; }
  .np-container { width: calc(100% - 32px); }
  .np-breadcrumb { margin-bottom: 11px; font-size: 12px; }
  .np-list-heading { align-items: baseline; gap: 12px; padding: 16px 18px 12px; }
  .np-list-heading h1 { font-size: 21px; }
  .np-count { font-size: 11px; }
  .np-nav { gap: 24px; padding-inline: 18px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #D6E1F0 transparent; }
  .np-nav-link { min-height: 43px; font-size: 13px; }
  .np-archive-list > li { padding: 20px 18px 21px; }
  .np-story { grid-template-columns: 130px minmax(0,1fr); gap: 16px; }
  .np-story-thumb { width: 130px; height: 90px; }
  .np-story :is(h2,h3) { font-size: 16px; line-height: 1.65; }
  .np-story .np-excerpt { font-size: 13px; line-height: 1.85; }
  .np-story .np-meta { margin-top: 8px; }
  .np-pagination { justify-content: flex-start; gap: 6px; padding: 18px; }
  .np-pagination :is(a,button,span) { min-width: 33px; min-height: 36px; padding-inline: 10px; }
  .np-sidebar { gap: 17px; }
  /* Keep one real search form available before the reading list on narrow
     screens. Other sidebar utilities remain after the archive. */
  .np-sidebar { display: contents; }
  .np-layout > .np-archive { grid-column: 1; grid-row: 2; }
  .np-sidebar > .np-side-search { grid-column: 1; grid-row: 1; }
  .np-sidebar > .np-side-section:not(.np-side-search) { grid-column: 1; }
  .np-side-section { padding: 18px; }
  .np-channel h3 { font-size: 14px; }
  .np-channel p,.np-channel a { font-size: 12px; }
  .np-search-results > .np-section-head { padding: 17px 18px 14px; }
  .np-search-more { padding: 18px; }
}
@media (max-width:560px) {
  .np-story { grid-template-columns: 110px minmax(0,1fr); gap: 10px 14px; }
  .np-story-thumb { grid-column: 1; grid-row: 1; width: 110px; height: 74px; }
  .np-story-copy { display: contents; }
  .np-story-copy > :is(h2,h3) { grid-column: 2; grid-row: 1; align-self: start; margin-top: -3px; font-size: 16px; line-height: 1.65; }
  .np-story-copy > .np-excerpt { grid-column: 1 / -1; margin-top: 0; -webkit-line-clamp: 3; }
  .np-story-copy > .np-meta { grid-column: 1 / -1; margin-top: 0; font-size: 12px; gap: 4px 10px; }
  .np-story-copy > .np-mini-link { grid-column: 1 / -1; margin-top: 0; }
  .np-list-heading { flex-wrap: wrap; gap: 3px 12px; }
  .np-list-heading h1 { font-size: 21px; }
  .np-count { margin-left: auto; }
  .np-nav { gap: 21px; }
  .np-nav-link { font-size: 13px; }
  .np-archive-list > li { padding: 19px 16px 20px; }
  .np-meta .np-views { margin-left: auto; }
  .np-sidebar { grid-template-columns: minmax(0,1fr); }
  .np-sidebar > .np-follow { grid-column: auto; }
  .np-follow { display: block; }
  .np-channel { grid-template-columns: minmax(0,1fr) 112px; gap: 18px; }
  .np-channel + .np-channel { margin-top: 18px; padding-left: 0; border-left: 0; border-top: 1px solid var(--np-rule); }
  .np-qr { width: 112px; }
  .np-topic-links a { min-height: 37px; font-size: 13px; }
  .np-search { height: 43px; }
  .np-search input { font-size: 14px; }
  .np-related-links a { font-size: 14px; }
  .np-search-results > .np-section-head { display: block; }
  .np-search-count { margin-top: 5px; }
}
@media (prefers-reduced-motion:reduce) {
  .np-main *,.np-main *::before,.np-main *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .np-story-thumb:hover img { transform: none; }
}
@media (forced-colors:active) {
  .np-main :is(.np-archive,.np-side-section,.np-search,.np-pagination a,.np-topic-links a) { border: 1px solid CanvasText; }
  .np-nav-link[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -3px; }
}
