/* Additive styles for structured news-article body blocks (headings, lists,
   figures, tables, notes). Existing posts that use only paragraph strings
   are unchanged. Load on /news/ only, after /css/styles.css. */

.news-post-body h3.news-subhead {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.32rem);
  font-weight: 700;
  color: var(--charcoal);
  margin: 1.85em 0 .7em;
  letter-spacing: -.01em;
}
.news-post-body h3.news-subhead:first-child { margin-top: .2em; }

.news-list-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-text);
  margin: 1.15em 0 .35em;
}

.news-post-body ul.news-list {
  margin: 0 0 1.15em;
  padding: 0 0 0 1.2rem;
}
.news-post-body ul.news-list li {
  margin: 0 0 .32em;
  color: var(--ink);
}

.news-post-figure {
  margin: 1.35em 0 1.65em;
  border-radius: 12px;
  overflow: hidden;
  background: #16181D;
  border: 1px solid var(--line);
}
.news-post-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.news-post-figure figcaption {
  font-size: .88rem;
  line-height: 1.45;
  color: var(--muted);
  padding: .7rem 1rem .85rem;
  background: var(--cream);
}

.news-table-wrap {
  overflow-x: auto;
  margin: 1.15em 0 1.5em;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.news-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: var(--white);
}
.news-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
  padding: .75rem 1rem .15rem;
}
.news-table th,
.news-table td {
  border-bottom: 1px solid var(--line);
  padding: .6rem .75rem;
  text-align: left;
  vertical-align: top;
}
.news-table th {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 0;
}
.news-table tbody tr:nth-child(even) { background: #FAF7F0; }
.news-table tbody tr:last-child td { border-bottom: 0; }
.news-table td:last-child {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-text);
}

.news-note {
  margin: 1.7em 0 1.3em;
  padding: 1rem 1.15rem;
  background: #FAF7F0;
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}


/* Module list: 1 column on phones, 2 columns from 640 px. */
.news-modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 2.25rem;
  margin: 0.35em 0 1.35em;
}
.news-modules .news-list-label {
  margin-top: 1em;
}
.news-modules-group:nth-child(1) .news-list-label,
.news-modules-group:nth-child(2) .news-list-label {
  margin-top: 0.2em;
}
.news-modules .news-list {
  margin-bottom: 0.35em;
}
@media (min-width: 640px) {
  .news-modules {
    grid-template-columns: 1fr 1fr;
  }
  .news-modules-group:nth-child(1) .news-list-label,
  .news-modules-group:nth-child(2) .news-list-label {
    margin-top: 0.2em;
  }
}

/* Modules graphic is a 2-col card that is too small on phones; the text
   list immediately after it is the readable source on small screens. */
@media (max-width: 639px) {
  .news-post-figure.news-hide-phone {
    display: none;
  }
}
