/* Colours come from the site palette (styles.css); the muted tones are derived
   from it so the news pages follow any palette change. */
.news-intro,
.news-release,
.news-detail-meta,
.news-section,
.news-related,
.news-list,
.news-history,
.news-guide,
.news-more-link {
  --news-muted: rgba(233, 221, 197, 0.68);
  --news-body: rgba(233, 221, 197, 0.84);
}

@supports (color: color-mix(in srgb, red, blue)) {
  .news-intro,
  .news-release,
  .news-detail-meta,
  .news-section,
  .news-related,
  .news-list,
  .news-history,
  .news-guide,
  .news-more-link {
    --news-muted: color-mix(in srgb, var(--paper-warm) 68%, transparent);
    --news-body: color-mix(in srgb, var(--paper-warm) 86%, transparent);
  }
}

.news-intro h1 {
  max-width: 18ch;
}

.news-intro-compact {
  padding-bottom: 8px;
}

.news-intro-compact p {
  margin: 6px 0 0;
}

.news-updated {
  color: var(--news-muted);
  font-size: 0.9rem;
}

.news-notice,
.news-note {
  color: var(--news-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.news-release,
.news-detail-meta,
.news-section,
.news-related {
  min-width: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.news-release p,
.news-row-meta,
.news-row-updated,
.news-provenance,
.news-times dt,
.news-related li span {
  color: var(--news-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.news-release p:first-child,
.news-row-meta span {
  color: var(--gold-soft);
  letter-spacing: 0.12em;
}

.news-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.news-row {
  min-width: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}

.news-row-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}

.news-row h2,
.news-cluster h3,
.news-section h2,
.news-related h2 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
}

.news-row h2 a,
.news-section a,
.news-related a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--paper-warm);
}

.news-row p,
.news-cluster p,
.news-section p,
.news-section li,
.news-related li,
.news-empty {
  max-width: 72ch;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.news-row > p:not(.news-row-updated) {
  margin: 0;
  color: var(--news-body);
}

.news-row-updated {
  margin: 10px 0 0;
}

.news-empty {
  padding: 18px 0;
  color: var(--news-body);
}

.news-section ul,
.news-section ol,
.news-related ul,
.news-cluster ul {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.news-section li p {
  margin: 0;
}

.news-provenance {
  margin-top: 5px !important;
  overflow-wrap: anywhere;
}

.news-nowrap {
  white-space: nowrap;
}

.news-times {
  display: grid;
  gap: 8px 22px;
  margin: 16px 0 0;
}

.news-times div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0;
}

.news-times dt {
  color: var(--gold-soft);
}

.news-times dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.news-related-caveat {
  color: var(--news-muted);
  font-size: 0.9rem;
}

/* Reading guide: every method note and caveat, said once. */
.news-guide {
  min-width: 0;
  margin: 10px 0 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-block);
  padding: 0 14px;
}

.news-guide summary,
.news-month summary {
  cursor: pointer;
  padding: 10px 0;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
}

.news-guide ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  color: var(--news-body);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Focus cards */
.news-focus {
  border-top: 2px solid var(--gold-soft);
}

.news-cluster {
  min-width: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 1.5rem;
}

.news-cluster h3 {
  margin: 6px 0;
  font-size: 1.08rem;
}

.news-cluster h3 a {
  color: var(--paper-warm);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin: 0;
  color: var(--news-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.news-card-meta > * + *::before {
  content: "·";
  margin: 0 0.55em;
  color: var(--news-muted);
}

.news-topic {
  color: var(--gold-soft);
  letter-spacing: 0.08em;
}

.news-flag {
  color: var(--paper-warm);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-block);
  padding: 0 6px;
}

.news-card-source,
.news-cluster-related,
.news-member-title {
  margin: 2px 0 0;
  color: var(--news-muted);
  font-size: 0.88rem;
}

.news-cluster ul.news-members {
  gap: 6px;
  margin-top: 6px;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.news-members li {
  line-height: 1.7;
}

.news-members li > * + * {
  margin-left: 0.6em;
}

.news-members time {
  color: var(--news-muted);
  font-size: 0.82rem;
}

/* Compact lists: time | title | source */
.news-section h3.news-day,
.news-more h3 {
  margin: 18px 0 4px;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.news-section ul.news-compact,
.news-history ul.news-compact {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-compact li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0 10px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  line-height: 1.6;
}

.news-compact li:first-child {
  border-top: 0;
}

.news-compact-plain li {
  grid-template-columns: minmax(0, 1fr);
}

.news-compact time,
.news-time-empty {
  color: var(--news-muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.9;
}

.news-compact-plain li > time {
  display: none;
}

.news-compact-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-compact-body a {
  display: block;
  color: var(--paper-warm);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.news-src,
.news-updates {
  color: var(--news-muted);
  font-size: 0.82rem;
}

.news-updates {
  margin-left: 0.8em;
  color: var(--gold-soft);
}

/* History */
.news-history {
  min-width: 0;
  border-top: 1px solid var(--line-soft);
}

.news-month {
  border-bottom: 1px solid var(--line-soft);
}

.news-month summary {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.news-count {
  margin-left: 0.8em;
  color: var(--news-muted);
  font-size: 0.84rem;
  letter-spacing: 0;
}

.news-month .news-compact {
  margin-bottom: 8px;
}

.news-more-link {
  border-top: 1px solid var(--line-soft);
  padding: 14px 0 0;
}

.news-more-link a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--paper-warm);
}

@media (min-width: 768px) {
  .news-list,
  .news-section,
  .news-history {
    max-width: 58rem;
  }

  .news-row {
    padding: 26px 0;
  }

  .news-times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-compact li {
    grid-template-columns: 4.2rem minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .news-times div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .news-compact li {
    grid-template-columns: 3.1rem minmax(0, 1fr);
    gap: 0 8px;
  }
}
