/* V2 channel: consolidated component rules and their responsive states. */
.channel-grid {
  container: chan/inline-size;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 38px 26px;
  margin-top: 22px;
}

.channel-grid > * {
  min-width: 0;
  grid-column: span 6;
}

.channel-grid:has(> :first-child:nth-last-child(odd)) > :first-child {
  grid-column: span 12;
}

@container chan (min-width:600px) {
  .channel-grid:has(> :first-child:nth-last-child(odd)) > :first-child {
    display: grid;
    grid-template-columns: minmax(0, min(400px, 45%)) minmax(0, 1fr);
    column-gap: 36px;
    align-items: start;
  }
}

@container chan (min-width:600px) {
  .channel-grid:has(> :first-child:nth-last-child(odd))
    > :first-child
    > .channel-block__head {
    grid-column: 1/-1;
  }
}

@container chan (min-width:600px) {
  .channel-grid:has(> :first-child:nth-last-child(odd))
    > :first-child
    .channel-feature {
    margin-top: 0;
  }
}

@container chan (min-width:600px) {
  .channel-grid:has(> :first-child:nth-last-child(odd))
    > :first-child
    .channel-feature
    .media {
    aspect-ratio: 16/10;
  }
}

@container chan (min-width:600px) {
  .channel-grid:has(> :first-child:nth-last-child(odd))
    > :first-child
    .channel-feature
    h3 {
    font-size: clamp(17px, 1.35vw, 20px);
  }
}

@container chan (min-width:600px) {
  .channel-grid:has(> :first-child:nth-last-child(odd))
    > :first-child
    .news-list {
    margin-top: 0;
  }
}

@container chan (min-width:600px) {
  .channel-grid:has(> :first-child:nth-last-child(odd))
    > :first-child
    .news-list
    a {
    padding: 11px 0;
    font-size: clamp(15px, 1.1vw, 16px);
  }
}

@container chan (max-width:479px) {
  .channel-grid > * {
    grid-column: span 12;
  }
}

.channel-block {
  container: blk/inline-size;
  min-width: 0;
}

.channel-block__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f5;
  margin-bottom: 1em;
}

.channel-block__head h2 {
  position: relative;
  min-width: 0;
  padding-left: 14px;
  color: var(--color-heading);
  font-size: clamp(18px, 1.4vw, 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-block__head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 17px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: var(--color-primary);
}

.channel-block__more {
  margin-left: auto;
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.channel-block__more:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}

.channel-feature {
  display: block;
  margin-top: 16px;
}

.channel-feature .media {
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
}

.channel-feature h3 {
  margin-top: 10px;
  color: var(--color-heading);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 650;
  line-height: 1.45;
  /* Reserve two lines even for short titles, aligning the lists below paired cards. */
  height: 2.9em;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s ease;
}

.channel-feature:hover h3 {
  color: var(--color-primary);
}

.channel-feature p {
  display: -webkit-box;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  /* Demo variants with summaries also keep a consistent two-line slot. */
  height: 3.2em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-feature--video .media {
  position: relative;
}

.channel-feature--video .media::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  font-size: 15px;
  transition: transform 0.2s ease;
}

.channel-feature--video:hover .media::after {
  transform: translate(-50%, -50%) scale(1.1);
}

.channel-block .news-list {
  margin-top: 8px;
}

.channel-block .news-list a {
  font-size: clamp(14px, 1.05vw, 15px);
}

@container blk (max-width:329px) {
  .channel-block__head {
    padding-bottom: 9px;
  }
}

@container blk (max-width:329px) {
  .channel-block__head h2 {
    font-size: 16px;
  }
}

@container blk (max-width:329px) {
  .channel-block__head h2::before {
    height: 15px;
  }
}

@container blk (max-width:329px) {
  .channel-block__more {
    font-size: 12px;
  }
}

@container blk (max-width:329px) {
  .channel-feature {
    margin-top: 14px;
  }
}

@container blk (max-width:329px) {
  .channel-feature .media {
    aspect-ratio: 4/3;
  }
}

@container blk (max-width:329px) {
  .channel-feature h3 {
    margin-top: 9px;
    font-size: 14px;
    min-height: 2.9em;
  }
}

@container blk (max-width:329px) {
  .channel-feature p {
    display: none;
  }
}

@container blk (max-width:329px) {
  .channel-block .news-list {
    margin-top: 2px;
  }
}

@container blk (max-width:329px) {
  .channel-block .news-list li:nth-child(n + 7) {
    display: none;
  }
}

@container blk (max-width:329px) {
  .channel-block .news-list time {
    display: none;
  }
}

@container blk (max-width:329px) {
  .channel-block .news-list a {
    display: block;
    overflow: hidden;
    padding: 7px 0;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

@container blk (max-width:329px) {
  .channel-block .news-list a::before {
    display: inline-block;
    margin: 0 7px 3px 0;
    vertical-align: middle;
  }
}

@media (max-width: 767px) {
  .channel-grid {
    margin-top: 14px;
  }
}
