/* XGR.Network News hub and article pages */

.news-main {
  width: min(1180px, calc(100% - 40px));
}

.news-lang-copy { display: none; }
html[lang="en"] .news-lang-en,
html[lang="de"] .news-lang-de { display: block; }

.news-hero,
.news-roadmap-intro {
  margin-bottom: 28px;
}

.news-hero .section-title,
.news-roadmap-intro .section-title {
  max-width: 850px;
  font-size: clamp(1.9rem, 2.6vw, 2.65rem);
}

.news-hero .muted,
.news-roadmap-intro .muted {
  max-width: 780px;
  font-size: 1.04rem;
}

.news-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.news-latest {
  margin-bottom: 28px;
}

.news-section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.news-section-heading h2 {
  margin: 0 0 12px;
  color: var(--xgr-text);
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.news-section-heading p {
  margin: 0;
  color: var(--xgr-muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--xgr-border);
  box-shadow: var(--xgr-shadow-card);
}

.news-card--featured {
  grid-column: 1 / -1;
  grid-template-columns: 190px minmax(0, 1fr);
}

.news-card__media {
  display: block;
  min-height: 0;
  height: 100%;
  max-height: 190px;
  background: #f3f6f1;
}

.news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* Generic XGR brand art is useful as OG/metadata fallback, but not as visible news imagery. */
.news-card__media:has(img[src^="/Graphics/"]) {
  display: none;
}

.news-card:has(.news-card__media img[src^="/Graphics/"]) {
  grid-template-columns: 1fr;
}

.news-card__body,
.news-card--featured .news-card__body {
  padding: 20px 22px;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
  color: var(--xgr-green-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.news-card__meta time {
  color: var(--xgr-muted);
}

.news-card h3 {
  margin: 0 0 8px;
  color: var(--xgr-text);
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.news-card--featured h3 {
  font-size: clamp(1.3rem, 1.65vw, 1.6rem);
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--xgr-green-700);
}

.news-card p {
  margin: 0 0 12px;
  color: var(--xgr-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--xgr-green-800);
  font-weight: 900;
  text-decoration: none;
}

.news-read-more:hover {
  text-decoration: underline;
}

/* Article pages */

.news-article-main {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 76px;
}

.news-article {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--xgr-border);
  box-shadow: var(--xgr-shadow-soft);
}

.news-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px clamp(24px, 5vw, 50px) 0;
  color: var(--xgr-muted);
  font-size: 0.9rem;
}

.news-breadcrumbs a {
  color: var(--xgr-green-700);
  text-decoration: none;
}

.news-article__header {
  padding: clamp(28px, 4vw, 46px);
  padding-bottom: 0;
}

.news-article__category {
  margin: 0 0 14px;
  color: var(--xgr-green-700);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.news-article__header h1 {
  max-width: 780px;
  margin: 0;
  color: var(--xgr-text);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.048em;
}

.news-article__deck {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--xgr-muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.62;
}

.news-article__meta {
  margin: 16px 0 0;
  color: var(--xgr-muted);
  font-size: 0.92rem;
}

.news-article__meta a {
  font-weight: 800;
  text-decoration: none;
}

.news-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.news-article__tags span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--xgr-green-800);
  background: rgba(47, 143, 63, 0.08);
  border: 1px solid rgba(47, 143, 63, 0.14);
  font-size: 0.76rem;
  font-weight: 800;
}

.news-article__figure {
  overflow: hidden;
  max-width: 680px;
  margin: 24px auto 0;
  border-radius: 16px;
  background: #f7f9f5;
  border: 1px solid var(--xgr-border);
}

.news-article__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.news-article__figure:has(img[src^="/Graphics/"]) {
  display: none;
}

.news-article__body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 48px);
  color: var(--xgr-text);
}

.news-article__body > :first-child { margin-top: 0; }
.news-article__body > :last-child { margin-bottom: 0; }

.news-article__body p,
.news-article__body li {
  color: var(--xgr-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.news-article__body h2 {
  margin: 34px 0 12px;
  color: var(--xgr-text);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.news-article__body h3 {
  margin: 26px 0 10px;
  color: var(--xgr-text);
  font-size: 1.2rem;
}

.news-article__body ul,
.news-article__body ol {
  padding-left: 1.35rem;
}

.news-related,
.news-publisher-box {
  max-width: 720px;
  margin: 0 auto 30px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(47, 143, 63, 0.06);
  border: 1px solid rgba(47, 143, 63, 0.13);
}

.news-related h2 {
  margin: 0 0 12px;
  font-size: 1.16rem;
}

.news-related ul {
  margin: 0;
  padding-left: 1.25rem;
}

.news-related li {
  margin: 6px 0;
}

.news-publisher-box {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.news-publisher-box > strong {
  display: block;
  color: var(--xgr-text);
  font-size: 1.05rem;
}

.news-publisher-box p {
  margin: 8px 0 0;
  color: var(--xgr-muted);
}

.news-publisher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
}

.news-publisher-links a {
  font-weight: 800;
  text-decoration: none;
}

/* Editorial information */

.editorial-main {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 76px;
}

.editorial-section {
  margin-top: 24px;
}

.editorial-section h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.editorial-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.editorial-facts .databox {
  min-height: 132px;
}

@media (max-width: 820px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card,
  .news-card--featured {
    grid-column: auto;
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .news-card:has(.news-card__media img[src^="/Graphics/"]) {
    grid-template-columns: 1fr;
  }

  .news-card__media {
    max-height: 150px;
  }

  .editorial-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .news-main,
  .news-article-main,
  .editorial-main {
    width: min(100% - 22px, 480px);
  }

  .news-hero__links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-hero__links .btn {
    width: 100%;
  }

  .news-card,
  .news-card--featured {
    grid-template-columns: 1fr;
  }

  .news-card__media {
    height: 145px;
    max-height: 145px;
  }

  .news-card__body,
  .news-card--featured .news-card__body {
    padding: 18px;
  }

  .news-article__header {
    padding: 24px;
    padding-bottom: 0;
  }

  .news-article__header h1 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .news-article__figure {
    margin-top: 18px;
    border-radius: 12px;
  }

  .news-article__figure img {
    max-height: 220px;
  }

  .news-article__body {
    padding: 28px 24px;
  }

  .news-related,
  .news-publisher-box {
    margin-left: 24px;
    margin-right: 24px;
  }
}

/* Compact archive list */
.news-archive-block {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--xgr-border);
}

.news-archive-heading {
  max-width: 760px;
  margin-bottom: 10px;
}

.news-archive-heading h2 {
  margin: 0 0 10px;
  color: var(--xgr-text);
  font-size: clamp(1.5rem, 1.9vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.news-archive-heading p:last-child {
  margin: 0;
  color: var(--xgr-muted);
}

.news-archive-list {
  margin-top: 22px;
  border-top: 1px solid var(--xgr-border);
}

.news-archive-item {
  display: grid;
  grid-template-columns: minmax(145px, 0.32fr) minmax(0, 1fr) 42px;
  gap: 22px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--xgr-border);
}

.news-archive-item__meta {
  display: grid;
  gap: 5px;
  color: var(--xgr-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.news-archive-item__meta span {
  color: var(--xgr-green-700);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-archive-item__copy h3 {
  margin: 0 0 6px;
  color: var(--xgr-text);
  font-size: clamp(1.03rem, 1.35vw, 1.22rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.news-archive-item__copy h3 a {
  color: inherit;
  text-decoration: none;
}

.news-archive-item__copy h3 a:hover {
  color: var(--xgr-green-700);
}

.news-archive-item__copy p {
  margin: 0;
  color: var(--xgr-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.news-archive-item__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--xgr-green-800);
  background: rgba(47, 143, 63, 0.07);
  border: 1px solid rgba(47, 143, 63, 0.13);
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 820px) {
  .news-archive-item {
    grid-template-columns: 1fr 36px;
    gap: 10px 14px;
  }

  .news-archive-item__meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

@media (max-width: 520px) {
  .news-archive-block {
    margin-top: 34px;
    padding-top: 26px;
  }

  .news-archive-item {
    padding: 17px 0;
  }

  .news-archive-item__copy p {
    display: none;
  }
}
