/*
 * The news list page (components/NewsPage.tsx), 2026-11-04. The old theme drew it from an Elementor archive template
 * (featured row + tabbed 4-column grid with numbered pages); here: the featured news as large picture cards with
 * the title on a dark fade, then category tabs and the home page's news cards (home.css), 12 at a time.
 */

.acm-np {
}

.acm-np-sec {
  max-width: calc(1320px + 10px);
  margin: 0 auto;
  padding: 0 5px;
}
.acm-np-sec + .acm-np-sec {
  margin-top: 56px;
}
.acm-np-sec:first-of-type {
  margin-top: 20px;
}
.acm-np-sec--list {
  margin-bottom: 90px;
}
.acm-np .acm-np-title {
  padding: 0 10px;
}

/* featured: large cards, the title over a dark fade at the bottom */
.acm-np-feat {
  display: grid;
  grid-template-columns: repeat(var(--np-cols, 3), minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0 10px;
  list-style: none;
}
.acm-np-feat li {
  display: flex;
}
.acm-np .acm-np-feat__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--acm-ink);
  color: #fff;
  text-decoration: none;
}
.acm-np-feat__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.acm-np-feat__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 40, 0.88) 0%, rgba(8, 10, 40, 0.45) 40%, rgba(8, 10, 40, 0) 70%);
}
.acm-np-feat__card:hover img {
  transform: scale(1.05);
}
.acm-np-feat__card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.acm-np-feat__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 20px;
}
.acm-np-feat__body time {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  opacity: 0.85;
}
/* the dots at the bottom right, as far from the right edge as from the bottom (user 2026-11-05); the title keeps
   clear of them */
.acm-np-feat__more {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  line-height: 0;
}
/* the dot row has 2px of side padding and is 24px tall: this puts the dots themselves on the corner gap */
.acm-np-feat__more .acm-dots {
  translate: 2px 8.5px;
}
.acm-np-feat__body {
  padding-right: 64px;
}
.acm-np-feat__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* tabs */
.acm-np-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 10px;
}

/* the home page's grid, inside this page's own width */
.acm-np .acm-np-grid {
  max-width: none;
  margin: 0;
  padding: 0;
}

.acm-np-moreRow {
  display: flex;
  justify-content: center;
  margin-top: 46px;
}
.acm-np .acm-np-moreBtn {
  padding: 12px 28px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  background: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.acm-np .acm-np-moreBtn:hover {
  background: var(--accent);
  color: #fff;
}
.acm-np-moreBtn span {
  font-weight: 500;
  opacity: 0.75;
}
.acm-np-empty {
  padding: 0 10px;
  font-family: var(--font-body);
  color: #666;
}

@media (max-width: 1024px) {
  .acm-np-feat {
    gap: 14px;
  }
  .acm-np-feat__title {
    font-size: 16px;
  }
  .acm-np-feat__body {
    padding: 16px;
  }
  .acm-np-feat__body {
    padding-right: 56px;
  }
  .acm-np-feat__more {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 767px) {
  .acm-np-sec {
    padding: 0 10px;
  }
  .acm-np-sec + .acm-np-sec {
    margin-top: 44px;
  }
  .acm-np-sec--list {
    margin-bottom: 56px;
  }
  /* featured: one card under another, a little wider than tall */
  .acm-np-feat {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .acm-np .acm-np-feat__card {
    aspect-ratio: 16 / 10;
  }
  .acm-np-feat__title {
    font-size: 17px;
  }
  .acm-np-tabs {
    justify-content: center;
  }
}
