/* News & Views: the listing page and the posts themselves. Measure, type scale and
 * link treatment come from base.css. */

/* Keeps the footer down the page when a stream is short. */
main {
  min-height: 52vh;
}

h1 {
  margin: 0 0 20px;
}

main p {
  margin: 0 0 1.35em;
}

.post-date {
  margin: 0 0 1.6em;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Listing ---------- */
.post-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.post-list-section + .post-list-section {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid #dfe3e5;
}

.post-list-section h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* A light panel per card. #f5f7f8 is the same tint as the footer, so the page keeps
 * to two greys rather than introducing a third. */
.post-list-item {
  padding: 22px 24px;
  border-radius: 10px;
  background: #f5f7f8;
}

/* Cards carry their own bounds now, so they sit closer together than bare text did. */
.post-list-item + .post-list-item {
  margin-top: 14px;
}

.post-list-item .post-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: 0 0 6px;
}

/* Where an item was published, on cards that link off-site. */
.post-list-source {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.post-list-source::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  margin-right: 10px;
  background: #cdd4d8;
  vertical-align: -0.05em;
}

.post-list-title a.external::after {
  content: " ↗";
  font-size: 0.8em;
  text-decoration: none;
}

.post-list-title {
  margin: 0 0 8px;
}

.post-list-title a {
  color: inherit;
}

.post-list-summary {
  margin: 0;
  color: var(--muted);
}

.post-list-empty {
  margin-top: 40px;
  color: var(--muted);
}

/* ---------- A single post ---------- */
.post h2 {
  margin: 44px 0 16px;
}

.post > :last-child {
  margin-bottom: 0;
}

.post-back {
  margin-top: 56px;
  padding-top: 1.6em;
  border-top: 1px solid #dfe3e5;
}
