/* Article-specific surfaces. Archive, terminal and other page themes stay in pages.css. */
.news-story {
  --article-surface: #fff;
  --article-text: #263b50;
  --article-heading: #102640;
  --article-caption: #c4d2df;
  --article-link: #a83c08;
  background: #07182b;
}

.news-story__hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  color: #fff;
  background: #07182b;
}
.news-story__hero h1 {
  max-width: 20ch;
  color: #fff;
  font-size: clamp(2.7rem, 5.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}
.news-story__hero .section-kicker { color: #ff6a1a; }
.news-story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  margin-top: 1.75rem;
  color: #aebfd0;
  font-size: .9rem;
}

/* Only the photograph's frame is clipped and ratio-constrained; its caption is outside. */
.news-story__media {
  width: min(100% - 3rem, 76rem);
  margin: 0 auto;
}
.news-story__media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: .65rem;
  background: #102a43;
}
.news-story__media-frame picture,
.news-story__media-frame img { display: block; width: 100%; height: 100%; }
.news-story__media-frame img { object-fit: cover; object-position: center; }
.news-story__caption {
  margin: 0;
  padding: .85rem .25rem 0;
  color: var(--article-caption);
  font-size: .85rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.news-story__caption a { color: inherit; text-decoration: underline; }

/* The surface spans the viewport; the independent child controls reading measure. */
.news-story__reading-surface {
  position: relative;
  width: 100%;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  padding-block: clamp(3.5rem, 5vw, 4.5rem) clamp(4.5rem, 7vw, 7rem);
  background: var(--article-surface);
  color: var(--article-text);
  border-top: 1px solid #e1e8ef;
}
.news-story__body {
  width: min(100% - 3rem, 46rem);
  margin-inline: auto;
  color: var(--article-text);
  font-size: clamp(1.025rem, 1.1vw, 1.125rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.news-story__body > :first-child { margin-top: 0; }
.news-story__body > :last-child { margin-bottom: 0; }
.news-story__body p { margin: 0 0 1.5rem; }
.news-story__body h2 {
  max-width: none;
  margin: 3rem 0 1.1rem;
  color: var(--article-heading);
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: 1.22;
}
.news-story__body h3 {
  margin: 2.25rem 0 .85rem;
  color: #173a5e;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  line-height: 1.3;
}
.news-story__body ul, .news-story__body ol { margin: 0 0 1.75rem; padding-left: 1.4rem; }
.news-story__body li + li { margin-top: .65rem; }
.news-story__body a { color: var(--article-link); text-decoration: underline; text-underline-offset: .18em; }
.news-story__body a:focus-visible { outline: 3px solid var(--article-link); outline-offset: 4px; }
.news-story__body blockquote { margin: 1.75rem 0; padding: 1.25rem; border-left: 3px solid #52677e; background: #f5f8fb; }
.news-story__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.news-story__body th, .news-story__body td { padding: .75rem; border: 1px solid #d9e2eb; text-align: left; }
.news-story__body dt { font-weight: 700; }
.news-story__body dd { margin: .25rem 0 1.25rem; }

/* Ordinary editorial sections have no decorative borders. */
.news-story__sources {
  width: 100%;
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid #d9e2eb;
  border-radius: .6rem;
  background: #f5f8fb;
}
.news-story__sources h2 { margin-top: 0; }
.news-story__sources ul { margin-bottom: 0; }
.news-story__sources span { display: block; color: #52677e; font-size: .85rem; }
.news-story__body .news-story__disclaimer {
  width: 100%;
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #f05a16;
  background: #fff6f0;
  color: #4d3a30;
  font-size: .95rem;
  line-height: 1.65;
}

.news-story__wide { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.news-story__related { padding-block: clamp(3rem, 5vw, 5rem); background: #f3f6f9; color: #102640; }
.news-story__related > div > h2 { max-width: none; font-size: clamp(1.85rem, 3vw, 2.75rem); }
.news-story__related .section-kicker { color: #a83c08; }
.news-story__related .news-grid { grid-template-columns: 1fr; }
.news-story__related .news-card { padding: 0; }
.news-story__related h3 { margin-block: 1rem; color: #102640; font-size: clamp(1.2rem, 1.75vw, 1.5rem); line-height: 1.25; }
.news-story__related .news-story__related-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: #a83c08; font-size: .8rem; font-weight: 700; }
.news-story__related .news-card__link { color: #a83c08; text-decoration: underline; }
.news-story__reading-time { font-size: .85rem; }
.news-story__cta { padding-block: clamp(3rem, 5vw, 5rem); background: #07182b; color: #fff; }
.news-story__cta .news-story__wide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.news-story__cta h2 { max-width: none; margin-bottom: 1rem; font-size: clamp(1.85rem, 3vw, 2.75rem); }
.news-story__cta p { max-width: 42rem; color: #c4d2df; }
.news-story__cta .button { color: #fff; background: #a83c08; border-color: #a83c08; }
@media (min-width: 768px) { .news-story__related .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .news-story__related .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .news-story__hero .container, .news-story__media, .news-story__body, .news-story__wide { width: min(100% - 3rem, 46rem); }
  .news-story__hero h1 { font-size: clamp(2.35rem, 11vw, 3.5rem); line-height: 1.04; }
  .news-story__reading-surface { padding-block: 3rem 4rem; }
  .news-story__media-frame { border-radius: .45rem; }
  .news-story__caption { padding-top: .75rem; font-size: .82rem; }
  .news-story__cta .button { width: 100%; text-align: center; }
}
