
.nwp {
  --page-gutter: clamp(16px, 5vw, 104px);
  --h1-font-size: clamp(40px, 55px + 1.25vw, 60px);
  --pebble-8: hsla(0, 0%, 93%, 0.08);
  --pebble-80: hsla(0, 0%, 93%, 0.8);
  --color-surface: hsla(0, 0%, 93%, 0.05);
  --color-border: var(--pebble-20);
  --tab-hover-bg: hsla(0, 0%, 100%, 0.15);
  --color-button-text-primary: var(--charcoal);
  --font-display: var(--font-montra), sans-serif;
  --radius-md: 8px;
  --radius-lg: 12px;

  padding: calc(var(--header-height) + 40px) var(--page-gutter) 80px;
  max-width: 1440px;
  margin-inline: auto;
  color: var(--color-text-primary);
  font-size: 16px;
}
.nwp a {
  color: inherit;
  text-decoration: none;
}
.nwp button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.nwp h1,
.nwp h2,
.nwp h3,
.nwp p {
  margin: 0;
}
.nwp :focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.nwp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nwp-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  column-gap: 40px;
  row-gap: 12px;
}
.nwp-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--h1-font-size);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.nwp-desc {
  max-width: 44ch;
  color: var(--pebble-80);
  line-height: 1.45;
  padding-bottom: 6px;
}

.nwp-pills {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--page-gutter));
  padding-inline: var(--page-gutter);
  padding-block: 4px;
}
.nwp-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--pebble-80);
  transition: background-color 0.2s;
}
.nwp-pill:hover {
  background: var(--tab-hover-bg);
}
.nwp .nwp-pill[aria-current="page"] {
  background: var(--color-text-primary);
  border-color: transparent;
  color: var(--color-button-text-primary);
  font-weight: 600;
}

.nwp-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.nwp-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--pebble-5) center / cover no-repeat;
  border: 1px solid var(--pebble-10);
  border-radius: var(--radius-md);
}
.nwp-thumb-poster {
  position: relative;
  overflow: hidden;
}
.nwp-thumb-poster::before,
.nwp-thumb-poster::after {
  content: "";
  position: absolute;
  background-image: inherit;
  background-position: center;
  background-repeat: no-repeat;
}
.nwp-thumb-poster::before {
  inset: -24px;
  background-size: cover;
  filter: blur(18px) brightness(0.5);
}
.nwp-thumb-poster::after {
  inset: 8% 0;
  background-size: contain;
}
.nwp-lead,
.nwp-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 0.2s;
}
.nwp-lead:hover,
.nwp-card:hover {
  background: var(--pebble-8);
}
.nwp-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 6px 2px;
  flex: 1;
  min-width: 0;
}
.nwp-lead .nwp-body {
  padding: 4px 14px 6px;
  gap: 12px;
}
.nwp-kicker {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pebble-50);
  font-weight: 500;
}
.nwp-kicker time {
  text-transform: none;
  letter-spacing: 0;
}
.nwp-kicker span + time::before {
  content: "·";
  margin-right: 10px;
}
.nwp-title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--pebble);
  text-wrap: pretty;
}
.nwp-lead .nwp-title {
  font-size: clamp(22px, 1.2vw + 12px, 30px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nwp-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.nwp-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nwp-title a:focus-visible {
  outline: none;
}
.nwp-title a:focus-visible::after {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.nwp-excerpt {
  color: var(--pebble-80);
  line-height: 1.5;
  max-width: 68ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nwp-card .nwp-excerpt {
  display: none;
}
.nwp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: auto;
}
.nwp-chip {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 16px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--pebble-10);
  color: var(--pebble-80);
  font-weight: 500;
}
.nwp .nwp-chip:hover {
  background: var(--pebble-20);
  color: var(--pebble);
}
.nwp-meta:has(.nwp-plus) .nwp-chip {
  max-width: calc(100% - 40px);
}
.nwp-plus {
  margin-left: -6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pebble-50);
}
.nwp-via {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 300;
  color: var(--pebble-50);
  min-width: 0;
}
.nwp-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -8px;
}
.nwp-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  min-width: 36px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--pebble-50);
}
.nwp button.nwp-act:hover,
.nwp a.nwp-act:hover {
  background: var(--pebble-10);
  color: var(--pebble);
}
.nwp button.nwp-act[aria-pressed="true"] {
  color: var(--pebble);
}
.nwp-more {
  margin-left: auto;
}
.nwp-sidecol {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.nwp-side {
  flex-direction: row;
  align-items: flex-start;
}
.nwp-side .nwp-thumb {
  width: 42%;
  flex: none;
}
.nwp-side .nwp-body {
  padding: 0;
  gap: 8px;
  align-self: stretch;
}
.nwp-side .nwp-meta {
  margin-top: 0;
}

.nwp-day {
  margin-top: 48px;
}
.nwp-dayhead {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.nwp-dayhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pebble-10);
}
.nwp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
}
.nwp-sk-grid {
  margin-top: 48px;
}
.nwp-sk .nwp-thumb,
.nwp-bar {
  background: var(--pebble-8);
  border-color: transparent;
  animation: nwp-pulse 1.4s ease-in-out infinite;
}
.nwp-bar {
  display: block;
  height: 12px;
  border-radius: 6px;
}
.nwp-bar.w30 {
  width: 30%;
}
.nwp-bar.w90 {
  width: 90%;
  height: 16px;
}
.nwp-bar.w70 {
  width: 70%;
  height: 16px;
}
.nwp-bar.w40 {
  width: 40%;
  height: 24px;
  border-radius: var(--radius-full);
}
@keyframes nwp-pulse {
  50% {
    opacity: 0.5;
  }
}

.nwp-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}
.nwp-end:empty {
  display: none;
}
.nwp-btn {
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nwp .nwp-btn {
  border: 1px solid var(--color-border);
}
.nwp-btn:hover {
  background: var(--tab-hover-bg);
}
.nwp-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
}
.nwp-btn[aria-disabled="true"]:hover {
  background: none;
}
.nwp-endnote {
  font-size: 12px;
  color: var(--pebble-50);
}
.nwp-panel {
  align-self: stretch;
  margin-top: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.nwp-end .nwp-panel {
  margin-top: 0;
}
.nwp-panel h2,
.nwp-panel-title {
  font-size: 18px;
  font-weight: 600;
}
.nwp-panel p {
  color: var(--pebble-80);
  font-size: 14px;
  max-width: 46ch;
  line-height: 1.5;
}
.nwp .nwp-fresh {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: var(--color-text-primary);
  color: var(--color-button-text-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px hsla(271, 45%, 9%, 0.35);
  animation: nwp-fresh-in 0.2s ease-out;
}
@keyframes nwp-fresh-in {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
}

@media (max-width: 1023px) {
  .nwp-top {
    grid-template-columns: 1fr;
  }
  .nwp-sidecol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nwp-side {
    flex-direction: column;
  }
  .nwp-side .nwp-thumb {
    width: auto;
  }
  .nwp-side .nwp-actions {
    margin-top: auto;
  }
  .nwp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .nwp {
    padding-top: calc(var(--header-height) + 24px);
  }
  .nwp-head {
    grid-template-columns: 1fr;
  }
  .nwp-desc {
    font-size: 14px;
    padding: 0;
  }
  .nwp-pills {
    margin-top: 16px;
  }
  .nwp-top {
    margin-top: 20px;
    gap: 12px;
  }
  .nwp-lead {
    padding: 8px;
  }
  .nwp-lead .nwp-body {
    padding: 2px 6px 0;
  }
  .nwp-lead .nwp-title {
    font-size: 22px;
  }
  .nwp-sidecol {
    display: flex;
    gap: 0;
  }
  .nwp-day {
    margin-top: 32px;
  }
  .nwp-dayhead {
    margin-bottom: 4px;
  }
  .nwp-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nwp-side,
  .nwp-grid .nwp-card {
    flex-direction: row;
    align-items: flex-start;
    background: none;
    border-radius: 0;
    padding: 14px 0;
    gap: 12px;
    border-bottom: 1px solid var(--pebble-10);
  }
  .nwp-side:hover,
  .nwp-grid .nwp-card:hover {
    background: none;
  }
  .nwp-side .nwp-thumb,
  .nwp-grid .nwp-thumb {
    width: 120px;
    flex: none;
  }
  .nwp-side .nwp-body,
  .nwp-grid .nwp-body {
    padding: 0;
    gap: 6px;
  }
  .nwp-grid .nwp-actions,
  .nwp-grid .nwp-via,
  .nwp-side .nwp-actions,
  .nwp-side .nwp-via {
    display: none;
  }
  .nwp-card .nwp-title a::after {
    border-radius: 0;
  }
  .nwp-lead:hover {
    background: var(--color-surface);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nwp-pill,
  .nwp-lead,
  .nwp-card {
    transition: none;
  }
  .nwp-sk .nwp-thumb,
  .nwp-bar,
  .nwp .nwp-fresh {
    animation: none;
  }
}
