/* Reference-specific modules inherit the AI4GOOD semantic tokens. */
.news-index { background: var(--soft); padding-bottom: 72px; }
.news-index .wrap { max-width: 1120px; }
.news-heading { padding-block: 24px 32px; background: var(--page); }
.news-hero-stage { display: grid; place-items: center; min-height: 320px; }
.news-heading h1, html[lang="en"] .news-heading h1 { margin: 0; max-width: 100%; font-size: clamp(48px, 5.4vw, 72px); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; text-align: center; }
.news-title-composition { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.news-title-mask { display: block; padding-block: .1em; }
.news-title-word { display: block; color: var(--ink); }
html[lang="en"] .news-title-composition { column-gap: .24em; }
.news-title-lead { display: inline-flex; align-items: center; gap: .24em; }
.news-title-icons { position: relative; display: inline-block; flex: none; width: .96em; height: .96em; color: var(--brand); }
.news-title-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.news-title-icon-care { color: #ed6040; }
.news-title-icon-network { color: #299764; }
.news-title-icon.is-hidden { visibility: hidden; opacity: 0; }
.news-title-icon .capability-icon { display: block; width: .9em; height: .9em; margin: 0; stroke-width: 2.5; }
.news-index .news-section { padding-top: var(--heading-gap); padding-bottom: 0; }
.news-section > .section-heading { margin-bottom: 32px; }
.news-section > .section-heading h2 { font-size: 32px; line-height: 1.25; letter-spacing: -.03em; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.news-card { min-width: 0; }
.news-card > a { display: flex; flex-direction: column; height: 100%; padding: 14px; background: var(--page); border-radius: var(--panel-radius); }
.news-card-image { flex: none; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-media); border-radius: var(--surface-radius); }
.news-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 360ms cubic-bezier(.16,1,.3,1); }
.news-card > a:is(:hover, :focus-visible) .news-card-image img { transform: scale(1.055); }
.news-card-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; width: 100%; padding: 18px 4px 4px; }
.news-card time, .article-heading time { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.news-card time, .news-card-meta { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.news-card h3 { width: 100%; max-width: none; font-size: 20px; line-height: 1.4; letter-spacing: -.015em; text-wrap: wrap; overflow-wrap: anywhere; }
.news-card-copy > time { margin-top: auto; padding-top: 10px; }
.news-editorial .news-card-image { aspect-ratio: 16 / 9; }
.news-card > a:is(:hover, :focus-visible) h3 { color: var(--link-text); }
.news-portal { display: grid; grid-template-columns: 1fr 1fr; width: 100vw; margin-inline: calc(50% - 50vw); margin-top: 48px; background: var(--page); }
.news-section > .section-heading + .news-portal,
.news-section > .news-grid:empty + .news-portal { margin-top: 0; }
.news-portal figure { position: relative; min-height: clamp(360px, 36vw, 480px); }
.news-portal img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.news-portal-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 4.5vw, 72px); }
.news-portal h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.25; letter-spacing: -.025em; }
.news-portal p { max-width: 460px; color: var(--muted); margin-block: 20px 28px; }
.news-portal:hover h3 { color: var(--link-text); }
.news-portal .button { transform: none; }
.news-portal:is(:hover, :focus-visible) .button { background: var(--action-hover); }
#partners .news-portal { margin-top: 0; }
.news-event { padding: 32px; background: var(--page); border-radius: var(--panel-radius); }
.news-event + .news-event { margin-top: 32px; }
.news-event-heading { position: relative; margin-bottom: 28px; padding-right: 130px; }
.news-event-label { color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.news-event-heading .news-event-label { position: absolute; top: 0; right: 0; margin: 0; text-align: right; }
.news-event-heading h3 { font-size: 28px; line-height: 1.3; letter-spacing: -.025em; }
.news-event-description { max-width: 720px; margin-top: 12px; color: var(--muted); }
.news-event-gallery { --gallery-height: 300px; min-width: 0; }
.news-event-photos { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; overscroll-behavior-x: contain; }
.news-event-photos figure { flex: 0 0 auto; width: calc(var(--gallery-height) * var(--photo-ratio)); max-width: 90%; min-width: 0; scroll-snap-align: start; }
.news-event-photos a { display: block; height: var(--gallery-height); overflow: hidden; background: var(--surface-media); border-radius: var(--surface-radius); }
.news-event-photos img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.news-event-photos figcaption { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 12px; }
#event-1 .news-event-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
#event-1 .news-event-photos figure { width: auto; max-width: none; }
#event-1 .news-event-photos a { height: auto; aspect-ratio: 3 / 2; }
#event-1 .news-event-photos img { object-fit: cover; }
.news-event-gallery .card-rail-controls { margin-top: 20px; }
.news-event-gallery .card-rail-controls button { color: var(--ink); background: var(--soft); }
.news-event-gallery .card-rail-controls button:not(:disabled):hover { background: var(--border-subtle); }
.news-event-report { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--border-subtle); padding-top: 24px; margin-top: 24px; }
.news-event-report span { font-size: 16px; font-weight: 600; }
.news-event-report svg { width: 12px; height: 12px; }
.news-event-report time { flex: none; color: var(--muted); font-size: 13px; }
.news-event-report:hover span { color: var(--link-text); }
.news-event-detail { padding: 0; overflow: hidden; }
.news-event-detail > a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; min-height: 320px; color: inherit; }
.news-event-detail > a > img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.news-event-detail-copy { padding: clamp(28px, 4vw, 64px); }
.news-event-detail-copy h3 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; }
.news-event-detail-copy > p:not(.news-event-label) { margin-top: 18px; color: var(--muted); }
.news-event-detail-copy .text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; }
.news-event-detail > a:is(:hover, :focus-visible) .text-link { color: var(--link-text); }
.news-article { padding-block: 72px var(--section-space); }
.article-heading { max-width: 900px; }
.article-heading h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.35; letter-spacing: -.035em; margin-block: 20px 56px; }
.article-body { width: min(720px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.article-body { font-size: 19px; line-height: 1.9; overflow-wrap: anywhere; }
.article-body > * + * { margin-top: 28px; }
.article-body p:empty { display: none; }
.article-body a { color: var(--link-text); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { display: block; max-width: 100%; width: auto; height: auto; margin-inline: auto; }
.article-body figure { margin-block: 40px; }
.article-body hr { border: 0; border-top: 1px solid var(--border-subtle); margin-block: 40px; }
.news-index[id], .news-section[id] { scroll-margin-top: 0; }
.news-index .news-section + .news-section { padding-top: var(--section-space); }
.news-portal-card, .news-ecosystem-portal { width: 100%; margin-inline: 0; overflow: hidden; border-radius: var(--panel-radius); }
.news-portal-card { grid-template-columns: 1fr 1fr; }
.news-portal-card figure { min-height: 340px; aspect-ratio: auto; }
.news-portal-card .news-portal-copy { padding: 28px 32px 36px; }
.news-portal-card p { margin-block: 12px 22px; }
.news-ecosystem-portal { margin-top: 0; }
.ecosystem-preview-art { position: relative; min-height: 380px; overflow: hidden; background: var(--soft); }
.news-index .story-cards .case-link { background: var(--page); }
@media(max-width: 1050px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .news-card h3 { font-size: 18px; }
}
@media(max-width: 850px) {
  .news-portal figure { min-height: 340px; }
  .news-event-heading { padding-right: 120px; }
  .news-event-gallery { --gallery-height: 280px; }
  .news-event-detail > a { grid-template-columns: 1fr; }
  .news-event-detail > a > img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
@media(max-width: 600px) {
  .news-section > .section-heading { margin-bottom: 24px; }
  .news-index { padding-bottom: 48px; }
  .news-heading { padding-block: 24px; }
  .news-heading h1, html[lang="en"] .news-heading h1 { font-size: clamp(36px, 9vw, 44px); }
  .news-hero-stage { min-height: 224px; }
  .news-section > .section-heading h2 { font-size: 28px; }
  .news-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-card h3 { font-size: 16px; }
  .news-event-detail-copy .text-link { margin-top: 26px; }
  .news-portal { grid-template-columns: 1fr; margin-top: 32px; }
  .news-portal figure { min-height: 0; aspect-ratio: 3 / 2; }
  .news-portal-copy { padding: 32px var(--gutter) 40px; }
  .news-portal h3 { font-size: 28px; }
  .news-event { padding: 20px; }
  .news-event + .news-event { margin-top: 24px; }
  .news-event-heading h3 { font-size: 24px; }
  .news-event-heading { padding-right: 0; padding-top: 28px; }
  .news-event-heading .news-event-label { right: auto; left: 0; text-align: left; }
  .news-event-gallery { --gallery-height: 210px; }
  .news-event-photos { gap: 16px; }
  #event-1 .news-event-photos { grid-template-columns: 1fr; }
  .news-event-report { flex-direction: column; align-items: start; gap: 10px; }
  .news-article { padding-top: 44px; }
  .article-heading h1 { margin-bottom: 40px; }
  .article-body { font-size: 17px; }
  .news-index .news-section + .news-section { padding-top: 64px; }
  .news-portal-card { grid-template-columns: 1fr; }
  .news-portal-card figure { min-height: 0; aspect-ratio: 4 / 3; }
  .ecosystem-preview-art { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) { .news-card-image img { transition: none; } .news-card > a:is(:hover, :focus-visible) .news-card-image img { transform: none; } }
