.cw-news-page {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.cw-news-page *, .cw-news-page *::before, .cw-news-page *::after {
  box-sizing: border-box;
}

.cw-news-shell {
  width: min(69rem, calc(100% - clamp(2rem, 7vw, 6rem)));
  margin-inline: auto;
}

.cw-news-skip {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 5;
  padding: .4rem .8rem;
  background: var(--cw-raised);
  transform: translateY(-200%);
}

.cw-news-skip:focus-visible {
  transform: none;
}

.cw-news-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(168, 206, 240, 0.14);
  background: linear-gradient(180deg, rgba(11, 16, 26, 0.88), rgba(8, 12, 20, 0.84));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 12px 32px rgba(2, 6, 14, 0.38);
}

.cw-news-header .cw-news-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  min-height: 4.3rem;
  padding-block: .55rem;
}

html[data-crypto-winter] .cw-news-brand {
  color: #f4f8ff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

.cw-news-nav, .cw-news-languages, .cw-news-footer .cw-news-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .55rem;
}

.cw-news-header :is(nav a, .cw-news-brand), .cw-news-footer a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
}

.cw-news-header nav a {
  padding: 0 .75rem;
  border-radius: 999px;
  color: #cddbeb;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

.cw-news-header nav a:hover {
  background: rgba(168, 206, 240, 0.10);
  color: #ffffff;
}

html[data-crypto-winter] .cw-news-header nav a[aria-current] {
  background: rgba(255, 173, 114, 0.14);
  color: var(--cw-accent-hover);
  text-decoration: none;
}

.cw-news-hero {
  margin-block: clamp(1.2rem, 4vw, 2.8rem) 0;
  padding: clamp(1.4rem, 4.5vw, 3.2rem);
  border: 1px solid rgba(174, 213, 243, 0.30);
  border-radius: 24px;
  background:
    linear-gradient(100deg, rgba(12, 19, 31, 0.90) 26%, rgba(12, 19, 31, 0.25) 100%),
    url("/chain-assets/crypto-winter/frost-edge.png") right top / min(85%, 38rem) auto no-repeat,
    radial-gradient(ellipse at 92% 0, rgba(92, 152, 212, 0.44) 0%, #0d1522 72%);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.22), 0 22px 54px rgba(2, 6, 14, 0.46);
}

.cw-news-hero h1 {
  max-width: 24ch;
  margin: 0;
  color: #f6faff;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  letter-spacing: -.035em;
  line-height: 1.16;
}

.cw-news-hero p {
  max-width: 44rem;
  margin: .85rem 0 0;
  color: #b7c9df;
}

.cw-news-section {
  padding-block: clamp(1.5rem, 4vw, 2.6rem);
  scroll-margin-block-start: 1rem;
}

.cw-news-section + .cw-news-section {
  border-top: 1px solid var(--cw-line);
}

.cw-news-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.28;
}

.cw-news-section > p {
  color: var(--cw-muted);
}

.cw-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cw-news-list li {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid rgba(168, 206, 240, 0.18);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(22, 33, 50, 0.80), rgba(13, 19, 30, 0.94) 80%);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.12), 0 10px 28px rgba(2, 6, 14, 0.28);
  overflow-wrap: anywhere;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cw-news-list li:is(:hover, :focus-within) {
  border-color: rgba(174, 213, 243, 0.44);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.22), 0 16px 36px rgba(4, 12, 26, 0.46);
  transform: translateY(-2px);
}

.cw-news-list li > a, .cw-news-list h3 {
  display: block;
  margin: .35rem 0 0;
  color: #f3f7ff;
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.48;
}

.cw-news-list li .cw-news-topic {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(168, 206, 240, 0.20);
  background: rgba(168, 206, 240, 0.08);
  color: #9fd0fb;
  font-size: .78rem;
}

.cw-news-list li :is(time, .cw-news-topic) {
  color: var(--cw-muted);
  font-size: .86rem;
}

.cw-news-list li p {
  margin: .35rem 0 0;
  color: var(--cw-muted);
  font-size: .94rem;
}

.cw-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .75rem;
}

.cw-news-search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
}

.cw-news-search label {
  display: grid;
  gap: .25rem;
}

.cw-news-search label:first-child {
  flex: 1 1 16rem;
}

.cw-news-search :is(input, select, button) {
  min-height: 2.65rem;
  max-width: 100%;
  border: 1px solid var(--cw-line-strong);
  border-radius: .5rem;
  padding: .4rem .7rem;
  font: inherit;
}

.cw-news-search input {
  width: 100%;
}

.cw-news-search button {
  cursor: pointer;
}

.cw-news-search button:hover {
  border-color: var(--cw-accent);
}

.cw-news-footer {
  border-top: 1px solid var(--cw-line);
}

.cw-news-footer .cw-news-shell {
  min-height: 4.2rem;
  padding-block: .55rem;
}

@media (max-width: 640px) {
  .cw-news-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw-news-header .cw-news-shell {
    gap: .15rem 1rem;
  }

  .cw-news-languages {
    flex: 1 1 100%;
  }
}
