/* News list + detail — NUWM news templates. */

/* theme-default uses overflow-x:hidden on html/body, which breaks position:sticky.
   clip keeps horizontal bleed clipped without creating a scroll container. */
html:has(.nl-grid, .nw-grid, .pg-layout),
body.nu-site:has(.nl-grid, .nw-grid, .pg-layout) {
  overflow-x: clip;
}

/* ---------- list ---------- */
.nl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
  padding-bottom: 56px;
}

.nu-main .nl-title {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.nl-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
}

.nl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.nl-card .img {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--navy-tint);
  aspect-ratio: 16 / 9;
}

.nl-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.nl-card:hover .img img {
  transform: scale(1.03);
}

.nl-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}

.nl-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--navy-tint);
  color: var(--navy);
}

.nl-type.ann {
  background: var(--cyan);
  color: #fff;
}

.nl-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nl-card-actions a {
  color: var(--gray);
  text-decoration: none;
  line-height: 1;
}

.nl-card-actions a:hover {
  color: var(--navy);
}

.nl-card-actions a.is-danger:hover {
  color: #b42318;
}

.nl-card-actions .is-on {
  color: #1f7a3f;
}

.nu-main .nl-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}

.nl-card h3 a {
  color: inherit;
  text-decoration: none;
}

.nl-card h3 a:hover {
  color: var(--cyan);
}

.nl-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}

.nl-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  transition: gap 0.15s;
  margin-top: auto;
  text-decoration: none;
}

.nl-more:hover {
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.nl-more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nl-empty {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--navy-tint-2);
  padding: 28px 22px;
  color: var(--gray);
  font-size: 15px;
}

.nl-empty p {
  margin: 0;
}

.nw-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  background: var(--cyan);
  width: 0;
  z-index: 1200;
  pointer-events: none;
}

.nw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
  padding-bottom: 56px;
}

.nw-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.nw-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: 3px 7px;
  border-radius: 6px;
}

.nw-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.nu-main .nw-title {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.14;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

.nw-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0px 0 8px;

}

.nw-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nw-author .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.nw-author .av svg {
  width: 20px;
  height: 20px;
}

.nw-author .n {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.nw-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nw-actions a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  text-decoration: none;
  transition: 0.15s;
}

.nw-actions a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.nw-actions a.is-danger {
  color: #b42318;
}

.nw-actions a.is-danger:hover {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.nw-hero {

  border-radius: var(--r);
  overflow: hidden;
  background: var(--navy-tint);
}

.nw-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.nw-body {
  margin-top: 28px;
}

.nw-body > *:first-child {
  margin-top: 0;
}

.nw-body p {
  margin: 0 0 22px;
  text-wrap: pretty;
}

.nw-body a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.nw-body a:hover {
  color: var(--navy);
}

.nu-main .nw-body h2,
.nu-main .nw-body h3,
.nu-main .nw-body h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
  margin: 34px 0 14px;
}

.nu-main .nw-body h2 {
  font-size: 26px;
}

.nu-main .nw-body h3 {
  font-size: 22px;
}

.nu-main .nw-body h4 {
  font-size: 19px;
}

.nw-body ul,
.nw-body ol {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.nw-body li {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.nw-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 12px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.nw-body ol {
  counter-reset: nw-ol;
}

.nw-body ol li {
  counter-increment: nw-ol;
}

.nw-body ol li::before {
  content: counter(nw-ol);
  position: absolute;
  left: 0;
  top: 11px;
  width: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.nw-body blockquote {
  margin: 34px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--cyan);
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  color: var(--navy);
  background: transparent;
}

.nw-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  margin: 8px 0 26px;
}

.nw-body figure {
  margin: 8px 0 26px;
}

.nw-body figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
}

.nw-foot {
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.nw-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.nw-backlink:hover {
  color: var(--cyan);
  text-decoration: none;
}

.nw-backlink svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nu-doclist{
  margin-bottom: 10px;
}
.nw-side {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 22px;
  z-index: 2;
}

.nw-box {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}

.nw-box-h {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nw-box-h a {
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.nw-box-h a:hover {
  color: var(--navy);
}

.nw-box-h a svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nw-cats {
  display: flex;
  gap: 8px;
  padding: 0 18px 18px;
  flex-wrap: wrap;
}

.nu-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nu-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  text-decoration: none;
}

.nu-chip.is-on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.nu-chip.is-on:hover {
  color: #fff;
}

.nw-ann {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 13px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.nw-ann:hover {
  background: var(--navy-tint-2);
  text-decoration: none;
}

.nw-ann img,
.nw-ann .ph {
  width: 84px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--navy-tint);
  display: block;
}

.nw-ann .ph {
  flex: 0 0 auto;
}

.nw-ann .t {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nw-ann:hover .t {
  color: var(--cyan);
}

.nw-ann .d {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1080px) {
  .nl-grid,
  .nw-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nw-side {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 700px) {
  .nl-list {
    grid-template-columns: 1fr;
  }

  .nu-main .nl-title,
  .nu-main .nw-title {
    font-size: 30px;
  }

  .nw-body {
    font-size: 17px;
  }

  .nw-body blockquote {
    font-size: 19px;
  }
}
