/* News cards and the article page.
 *
 * Loaded only by /news/ and its permalinks. Every value here is one the site
 * already uses — the #111 panels from .current-production and the membership
 * table, Anton for headings, #fdcb01 for accents, white body copy at weight 300 —
 * so the cards read as part of the page rather than bolted onto it.
 *
 * The ported front.css styles bare `h2` and `main p` very specifically, so each
 * rule below resets the padding/margin it would otherwise inherit. Classes beat
 * element selectors, so these win without needing !important.
 */

.news-list {
  list-style: none;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin: 0;
  padding: 0;
}

.news-card {
  position: relative;          /* anchor for the stretched link below */
  display: flex;
  flex-direction: column;
  background: #111;
  border-radius: 5px;
  padding: 25px;
  margin: 0;
}

.news-card-date,
.news-article-date {
  color: #fdcb01;
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 140%;
  margin: 0 0 10px;
  padding: 0;
}

.news-card-title {
  font-size: 26px;
  line-height: 122%;
  margin: 0 0 15px;
  padding: 0;
}

.news-card-title a { color: #fff; }
.news-card-title a:hover { color: #fdcb01; }

/* ONE link per card, stretched over the whole box: a click anywhere — the date,
   the excerpt, the "Read more" line — opens the article, while the tab order
   still has exactly one stop per card instead of three. */
.news-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
}

.news-card-excerpt {
  font-size: 17px;
  font-weight: 300;
  line-height: 165%;
  margin: 0;
  padding: 0;
}

/* margin-top:auto pins this to the bottom, so cards of unequal text still line
   their footers up across the row. */
.news-card-more {
  margin: auto 0 0;
  padding: 18px 0 0;
  color: #fdcb01;
  font-size: 15px;
  font-weight: 400;
}

/* ---- the article itself ---- */

/* The ported front.css resets `ol,ul{list-style:none}` site-wide. That is correct
   for the nav, the footer and the box grids — lists used as LAYOUT — but a list
   inside an article is prose, and without markers it reads as a run of
   disconnected lines. Restore them here and nowhere else: news.css is loaded only
   on the news pages, so the rest of the ported site is untouched. */
.entry-content ul,
.entry-content ol {
  list-style: disc outside;
  padding-left: 24px;
  margin: 0 0 25px;
}
.entry-content ol { list-style: decimal outside; }
.entry-content li {
  display: list-item;
  margin: 0 0 8px;
  padding: 0;
}

.news-article-back {
  margin: 35px 0 0;
  padding: 0;
  font-size: 16px;
}

.news-article-back a { color: #fdcb01; }
.news-article-back a:hover { color: #fff; }

@media all and (max-width: 800px) {
  .news-list { gap: 20px; }
  .news-card { padding: 20px; }
  .news-card-title { font-size: 22px; }
  .news-card-excerpt { font-size: 16px; }
}
