/* The "What's new" page (news.html). */
.news-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.news-entry {
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
}
.news-entry time {
  color: var(--muted);
  font-size: 14px;
}
.news-entry h3 {
  margin: 4px 0 8px;
}
.news-older-title {
  margin: 32px 0 8px;
}
.news-month {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
}
.news-month > summary {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
}
.news-month .news-list {
  margin-top: 8px;
}
.news-entry:target {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Release notes: highlights, parts, lists and pictures. */
.news-highlights {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.news-part {
  margin: 16px 0 0;
}
.news-part h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--tq-accent-text);
}
.news-part h5 {
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-lines {
  margin: 0;
  padding-left: 20px;
}
.news-lines li {
  margin: 4px 0;
  max-width: 72ch;
}
.news-known h4 {
  color: var(--tq-warn);
}
.news-pictures {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.news-pictures li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(100%, 240px);
  font-size: 12px;
  color: var(--muted);
}
.news-picture {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: zoom-in;
}
.news-picture img {
  display: block;
  width: 100%;
  height: auto;
}
.news-lightbox {
  max-width: min(96vw, 1200px);
  max-height: 96vh;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}
.news-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
}
.news-lightbox p {
  margin: 8px 0;
}
/* A phone: one column, full-width pictures. */
@media (max-width: 600px) {
  .news-pictures li {
    width: 100%;
  }
}
/* An ultra-wide screen: keep lines readable and put the parts side by side. */
@media (min-width: 1600px) {
  .news-entry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
  .news-entry > time,
  .news-entry > h3,
  .news-entry > .news-highlights,
  .news-entry > p,
  .news-pictures {
    grid-column: 1 / -1;
  }
}
