/* News list + article styles. */

.news-toolbar {
  margin-top: var(--sp-4);
}

.news-card {
  position: relative;
}

.news-card .card__more {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--accent-news);
  margin-top: var(--sp-2);
}

.news-card:hover .card__more {
  text-decoration: underline;
}


/* --- News Article Page --------------------------------------- */

/* White theme for the article view as seen in Image 2 */
.theme-article-white {
  background-color: var(--c-white);
  color: var(--color-text);
}

.container--article {
  max-width: 900px;
  /* From original CSS: --article-max-width: 900px */
  margin: auto;
}

/* Header removed in favor of minimalist entry */

.article__head {
  margin-top: 0;
  margin-bottom: var(--sp-7);
  text-align: center;
  width: 130%;
  margin-left: -15%;
}

.article__meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-7);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--sp-4);
  gap: var(--sp-4);
}

.article__meta,
.article__source-inline,
.article__connect-inline {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-subtle);
  font-size: var(--fs-sm);
  margin: 0;
  white-space: nowrap;
  line-height: 1;
  height: 24px;
  /* Fixed height for all containers to ensure shared center */
}

.article__source-inline a {
  color: var(--color-text);
  text-decoration: underline;
}

.article__connect-inline {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--color-text);
  font-size: var(--fs-sm);
  text-align: center;
}

.article__connect-inline:hover {
  color: var(--accent-news);
}

.news-article-page h1 {
  text-align: center;
  margin-inline: auto;
}

.news-page h1 {
  text-align: left;
  margin-inline: 0;
}



.article__title {
  font-size: clamp(1.4rem, 6vw, 3.2rem);
}



.article__lead {
  margin-top: var(--sp-4);
  max-width: 740px;
  margin-inline: auto;
}

.article__figure {
  margin: 25px auto;
  /* From original CSS: margin-top/bottom: 25px */
  max-width: 900px;
}

.article__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--image-border-radii);
  display: block;
}

.article__caption {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--sp-3);
  line-height: var(--lh-base);
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.article__caption a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
}

.article__caption a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.article__body {
  max-width: 740px;
  /* From original CSS: max-width: 740px */
  margin: auto;
  text-align: left;
  /* Keep text readable */
}

.prose {
  /* From original CSS: font-size: 1.2rem, line-height: 1.4 */
  font-size: 1.2rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: var(--sp-4);
}

.prose a {
  text-decoration: underline;
}

.article__footer {
  margin-top: var(--sp-7);
  text-align: center;
}

.article__back-link {
  color: var(--color-text-subtle);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}

.article__back-link:hover {
  color: var(--color-text);
  text-decoration: underline;
}

@media screen and (max-width: 1024px) {
  /* .article__title handled by h1 */
  .article__head {
    width: 100%;
    margin-left: 0;
  }
  /* From original CSS @media */
}

/* --- Layout tweaks ------------------------------------------- */

/* On news pages, especially articles, we want the content to meet the footer. */
.footer {
  margin-top: 0;
}

/* Ensure the white wrapper fills the main area even on short articles 
   This uses a standard approach: we assume main is a flex container 
   (defined in base.css) or we just make it one here for these pages. */
#main {
  display: flex;
  flex-direction: column;
}

.theme-article-white {
  flex: 1;
}