/**
 * Full news article page — editorial reading layout
 */

.news-article-page {
  min-height: 100vh;
  background: #f8fafc;
  margin-top: -0.35rem;
}

.news-article-page__not-found {
  color: #334155;
  margin: 0 0 0.75rem;
}

.news-article-page__back {
  color: #072f7a;
}

.news-article-page__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 0.75rem;
  color: #475569;
}

.news-article-page__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(7, 47, 122, 0.15);
  border-top-color: #072f7a;
  border-radius: 50%;
  animation: news-article-spin 0.85s linear infinite;
}

@keyframes news-article-spin {
  to {
    transform: rotate(360deg);
  }
}

.news-article-page__toolbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.65rem 0;
}

/* Editorial column: centered grid rails on large screens; readable max width */
.news-article__wrapper {
  width: 100%;
}

.news-article-page,
.news-article-page__article,
.news-article__wrapper,
.news-article__container,
.news-article-page__hero {
  max-width: 100%;
  min-width: 0;
}

.news-article-page {
  overflow-x: clip;
}

.news-article__container {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.news-article__container--toolbar {
  padding-top: 0;
  padding-bottom: 0;
}

.news-article__container--section {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

.news-article__content {
  font-size: 1.05rem;
  line-height: 1.75;
}

@media (min-width: 900px) {
  .news-article__wrapper {
    display: grid;
    /* Editorial column — comfortable reading measure (~720–780px cap) */
    grid-template-columns: 1fr minmax(min(100%, 680px), 780px) 1fr;
  }

  .news-article__container {
    grid-column: 2;
  }
}

@media (min-width: 1200px) {
  .news-article__wrapper {
    grid-template-columns: 1fr minmax(720px, 780px) 1fr;
  }
}

/* Prevent rare horizontal spill on small viewports (wide layouts collapse to full width) */
@media (max-width: 899px) {
  .news-article-page__body {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    overflow-y: visible;
  }
}

.news-article-page__back {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #072f7a;
  text-decoration: none;
}

.news-article-page__back:hover {
  text-decoration: underline;
}

.news-article-page__not-found {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #475569;
}

.news-article-page__header-block {
  margin-bottom: 1.5rem;
}

.news-article-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.news-article-page__badge {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #072f7a;
  background: rgba(7, 47, 122, 0.08);
}

.news-article-page__date {
  font-size: 0.88rem;
  color: #64748b;
}

.news-article-page__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #072f7a;
}

.news-article-page__author {
  margin: 0;
  font-size: 0.92rem;
  color: #64748b;
}

.news-article-page__excerpt {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #475569;
}

.news-article-page__hero {
  margin: 0 0 1.75rem;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.news-article-page__hero-open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.news-article-page__hero-open:focus-visible {
  outline: 2px solid #072f7a;
  outline-offset: 2px;
}

.news-article-page__hero-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mix-blend-mode: normal;
}

.news-article-page__hero-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0f172a;
  opacity: 1;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mix-blend-mode: normal;
}

.news-article-page__highlights {
  margin: 0 0 1.5rem;
  padding: 0.65rem 0.85rem 0.65rem 1.35rem;
  border-radius: 8px;
  border-left: 3px solid #f95709;
  background: rgba(7, 47, 122, 0.05);
  color: #1e293b;
  font-size: 0.92rem;
  line-height: 1.45;
  list-style-position: outside;
}

.news-article-page__highlights li {
  margin-bottom: 0.35rem;
  color: #1e293b;
}

/* globals.css sets light text on span/li — key points sit on a light panel */
.news-article-page__highlights .linkified-text,
.news-article-page__highlights li span {
  color: #1e293b;
  margin-bottom: 0;
  line-height: inherit;
  font-size: inherit;
}

.news-article-page__highlights li:last-child {
  margin-bottom: 0;
}

.news-article-page__body {
  margin-bottom: 2rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  overflow-y: visible;
}

.news-article-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.news-article-page__tag {
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  background: rgba(100, 116, 139, 0.12);
}

.news-article-page__cta {
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  text-align: center;
}

.news-article-page__cta-label {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
}

.news-article-page__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  background: #ffd35c;
  color: #0e0e10;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.news-article-page__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 211, 92, 0.35);
}
