.news-page {
  --news-deep: var(--purple-deep);
}

.news-page .hero,
.news-page .page-hero,
.news-page .article-hero {
  color: #fff;
  background: var(--purple);
  overflow: hidden;
  position: relative;
}

.news-page .hero::after,
.news-page .article-hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -180px;
  top: -270px;
  border: 68px solid var(--cyan);
  border-radius: var(--radius-round);
}

.news-page .hero {
  display: flex;
  align-items: center;
  padding: clamp(24px, 6vh, 54px) 0;
  min-height: min(calc(50vh - var(--nav-height)), calc(var(--hero-max-height) / 2));
  min-height: min(calc(50svh - var(--nav-height)), calc(var(--hero-max-height) / 2));
}

.news-page .page-hero,
.news-page .article-hero {
  padding: 54px 0 70px;
}

.news-page .hero-grid,
.news-page .newsletter-grid,
.news-page .article-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 45px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.news-page .hero h1,
.news-page .page-hero h1,
.news-page .article-hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: var(--text-display);
  line-height: .98;
}

.news-page .hero p:not(.eyebrow),
.news-page .page-hero p:not(.eyebrow),
.news-page .article-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--on-dark);
  font-size: var(--text-lead);
}

.news-page .eyebrow,
.news-page .meta {
  color: var(--purple);
}

/* .eyebrow already gets its label treatment from the global rule in
   components.css; .meta has no such base styling anywhere, so without this
   it was rendering as plain purple body text instead of a distinct
   metadata label. */
.news-page .meta {
  display: inline-block;
  margin-bottom: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.news-page .hero .eyebrow,
.news-page .page-hero .eyebrow,
.news-page .article-hero .eyebrow {
  color: var(--cyan);
}

.news-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.news-page .headline-box,
.news-page .feature-card,
.news-page .article,
.news-page .edition,
.news-page .gallery-item {
  border: 1px solid var(--line);
  background: #fff;
}

.news-page .headline-box {
  padding: 22px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.news-page .headline-box small,
.news-page .headline-box h2 {
  color: var(--purple);
}

.news-page .headline-box small {
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.news-page .headline-box h2 {
  margin: 10px 0;
  font-size: var(--text-xl);
  line-height: 1.12;
}

.news-page .headline-box p,
.news-page .feature-card p,
.news-page .article p,
.news-page .edition p,
.news-page .gallery-item p {
  color: var(--muted);
}

.news-page main > section:not(.hero):not(.page-hero):not(.article-hero):not(.nlx-hero):not(.nlx-archive):not(.nmx-section):not(.nmx-band):not(.nmx-cta):not(.stx-story):not(.stx-recap):not(.stx-more):not(.stx-fold-section):not(.stx-write):not(.nle-edition) {
  padding: 76px 0;
}

.news-page .heading,
.news-page .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.news-page .heading > p,
.news-page .section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.news-page main h2 {
  max-width: 760px;
  margin: 0;
  color: var(--news-deep);
  font-size: var(--text-h2);
  line-height: 1.08;
}

.news-page h3 {
  margin: 0 0 10px;
  color: var(--news-deep);
  font-size: var(--text-lg);
  line-height: 1.18;
}

.news-page .feature-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}

.news-page .feature-card,
.news-page .article,
.news-page .edition,
.news-page .gallery-item {
  transition: transform .18s, box-shadow .18s;
}

.news-page .feature-card:hover,
.news-page .feature-card:focus-visible,
.news-page .article:hover,
.news-page .article:focus-visible,
.news-page .edition:hover,
.news-page .edition:focus-visible,
.news-page .gallery-item:hover,
.news-page .gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Story card title = the card's link (template-parts/card-news.php):
   colour change on hover, no underline. */
.article-title {
  color: inherit;
  transition: color .18s;
}

.article:hover .article-title,
.article-title:focus-visible {
  color: var(--purple);
}

/* Reusable photo treatment: pass only the image via the --photo custom
   property inline (style="--photo:url('...')"); the gradient, sizing and
   position live here once so every photo card stays in sync and content
   edits never touch more than a single value. */
.news-page .visual-placeholder--photo {
  opacity: 1;
  background-image: linear-gradient(0deg, rgba(20, 10, 45, .88), rgba(20, 10, 45, .1) 60%), var(--photo);
  background-size: cover;
  background-position: center;
}

.news-page .feature-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  color: #fff;
  background-image: linear-gradient(0deg, rgba(20, 10, 45, .9), rgba(20, 10, 45, .25) 55%), var(--photo);
  background-size: cover;
  background-position: center;
}

.news-page .feature-card .meta {
  color: var(--cyan);
}

.news-page .feature-card h3 {
  color: #fff;
}

.news-page .feature-card p {
  color: var(--on-dark);
}

.news-page .feature-card .link,
.news-page .article .link,
.news-page .edition .link {
  display: block;
  margin-top: auto;
  padding-top: 22px;
  font-weight: 700;
}

.news-page .feature-card .link {
  color: #fff;
}

.news-page .article .link,
.news-page .edition .link {
  color: var(--purple);
}

.news-page .mini-list {
  display: grid;
  gap: 10px;
}

.news-page .mini-story {
  display: block;
  padding: 20px;
  border-left: 4px solid var(--orange);
  background: var(--mist);
}

.news-page .mini-story h3 {
  margin-bottom: 5px;
  font-size: var(--text-lead);
}

.news-page .mini-story p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
}

.news-page .newsletter-band {
  color: #fff;
  background: var(--news-deep);
}

/* Eyebrows on dark surfaces are cyan, as in every other dark band. */
.news-page .newsletter-band .eyebrow {
  color: var(--cyan);
}

.news-page .band,
.news-page .cta {
  color: #fff;
  background: var(--purple);
}

.news-page .newsletter-band h2,
.news-page .band h2,
.news-page .cta h2 {
  color: #fff;
}

.news-page .newsletter-band p:not(.eyebrow),
.news-page .band p:not(.eyebrow),
.news-page .cta p:not(.eyebrow) {
  color: var(--on-dark);
}

/* Light variant: keeps a page-level closing band/cta from fusing visually
   with the dark footer CTA directly beneath it (same fix as .cta--light on
   the Learning pages). */
.news-page .band--light,
.news-page .cta--light {
  color: var(--ink);
  background: var(--mist);
}

.news-page .band--light h2,
.news-page .cta--light h2 {
  color: var(--news-deep);
}

.news-page .band--light p:not(.eyebrow),
.news-page .cta--light p:not(.eyebrow) {
  color: var(--muted);
}

.news-page .cover,
.news-page .cover-placeholder,
.news-page .visual-placeholder {
  display: grid;
  align-content: end;
  min-height: 250px;
  padding: 25px;
  color: #fff;
  background: var(--purple);
  border: 1px solid rgba(255, 255, 255, .3);
}

/* No cover image exists for the newsletter PDF, so rather than a flat
   placeholder block this reuses the brand's decorative ring (already used
   on .tile) to make it read as a deliberate cover treatment, not an
   unfinished one. */
.news-page .cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.news-page .cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -90px;
  border: 32px solid rgba(5, 191, 224, .18);
  border-radius: var(--radius-round);
}

.news-page .cover strong,
.news-page .cover-placeholder strong {
  color: var(--cyan);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.news-page .cover h3,
.news-page .cover-placeholder h3 {
  margin: 16px 0 0;
  color: #fff;
  font-size: var(--text-3xl);
}

.news-page .placeholder-note {
  display: block;
  margin-top: 20px;
  color: var(--on-dark-soft);
  font-size: var(--text-sm);
}

.news-page .story-grid,
.news-page .list-grid,
.news-page .edition-grid,
.news-page .gallery {
  display: grid;
  gap: 16px;
}

.news-page .list-grid {
  grid-template-columns: repeat(2, 1fr);
}

.news-page .article {
  display: flex;
  flex-direction: column;
}

.news-page .visual-placeholder {
  min-height: 100%;
  align-content: center;
  text-align: center;
  color: var(--purple);
  background: var(--mist);
  border: 0;
  border-right: 1px solid var(--line);
  font-size: var(--text-sm);
  font-weight: 700;
}

/* Story thumbnails: the img's own width:100%;height:100% (set inline)
   can't reliably resolve inside this box's grid/align-content centering,
   so it was rendering at its natural aspect ratio and leaving mist-coloured
   gaps above and below. Positioning it absolutely against a relatively
   positioned box guarantees an edge-to-edge fill regardless of the row's
   resolved height or the image's own aspect ratio. position:relative is
   harmless on the text-only placeholders ("170", "Q3") since they have no
   absolutely positioned children to be affected by it. */
.news-page .article .visual-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.news-page .article .visual-placeholder img {
  position: absolute;
  inset: 0;
}

.news-page .article-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.news-page .article-body p {
  margin: 0;
}

.news-page .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.news-page .filter {
  padding: 8px 13px;
  border: 1px solid var(--line);
  color: var(--purple);
  font-size: var(--text-md);
  font-weight: 700;
}

.news-page .filter.active {
  color: #fff;
  background: var(--purple);
}

.news-page .edition-grid {
  grid-template-columns: repeat(2, 1fr);
}

.news-page .edition {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px;
}

.news-page .edition .cover-placeholder {
  min-height: 185px;
  padding: 16px;
}

.news-page .edition .cover-placeholder h3 {
  font-size: var(--text-lg);
}

.news-page .edition-body {
  display: flex;
  flex-direction: column;
}

.news-page .edition-body p {
  margin: 0;
}

.news-page .edition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
}

.news-page .edition-actions .button {
  padding: 9px 12px;
  font-size: var(--text-sm);
}

.news-page .pdf-placeholder {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.news-page .crumbs {
  margin-bottom: 34px;
  color: var(--on-dark);
  font-size: var(--text-md);
}

.news-page .crumbs a {
  color: #fff;
  text-decoration: underline;
}

.news-page .article-layout {
  /* Override the shared hero-grid ratio: the sidebar only ever holds a few
     lines of metadata, while the article body runs long, so a fixed slim
     rail (rather than a proportional ~57/43 split) keeps the two columns
     visually balanced regardless of how long the article gets. */
  grid-template-columns: 200px 1fr;
  align-items: start;
  padding-top: 76px;
  padding-bottom: 76px;
}

.news-page .article-layout aside {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  color: var(--purple);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.news-page .article-body-copy {
  max-width: 700px;
}

.news-page .article-body-copy p {
  margin-top: 0;
  color: var(--muted);
  font-size: var(--text-base); /* long-form reading: the site's body size */
}

.news-page .article-body-copy h2 {
  margin: 34px 0 12px;
  font-size: var(--text-2xl);
}

.news-page .callout {
  margin: 28px 0;
  padding: 24px;
  border-left: 5px solid var(--orange);
  color: var(--purple);
  background: var(--mist);
  font-size: var(--text-lg);
  font-weight: 700;
}

.news-page .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.news-page .related-link {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--purple);
  font-weight: 700;
}

/* Story-to-story navigation (chapter-news / newsletter detail pages) */
.news-page .story-pager {
  border-top: 1px solid var(--line);
  background: var(--mist);
}

.news-page .story-pager .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.news-page .pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  max-width: 320px;
}

.news-page .pager-link:hover, .news-page .pager-link:focus-visible {
  background: #fff;
  box-shadow: 0 10px 22px rgba(50, 16, 109, .08);
}

.news-page .pager-link.next {
  grid-column: 3;
  margin-left: auto;
  text-align: right;
}

.news-page .pager-label {
  color: var(--purple);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}

.news-page .pager-title {
  color: var(--purple-deep);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.3;
}

.news-page .pager-all {
  grid-column: 2;
  color: var(--muted);
  font-weight: 700;
  font-size: var(--text-sm);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .news-page .story-pager .wrap {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .news-page .pager-link, .news-page .pager-link.next {
    grid-column: 1;
    max-width: none;
    margin-left: 0;
    text-align: left;
  }

  .news-page .pager-all {
    grid-column: 1;
    order: -1;
    padding-bottom: 6px;
  }
}

.news-page .gallery {
  grid-template-columns: repeat(3, 1fr);
}

.news-page .gallery-item {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  color: #fff;
  background: var(--news-deep);
}

.news-page .gallery-item .visual-placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
  color: #fff;
  background: var(--purple);
  opacity: .35;
  border: 0;
}

.news-page .gallery-item {
  position: relative;
  overflow: hidden;
}

.news-page .gallery-item > *:not(.visual-placeholder) {
  position: relative;
  z-index: 1;
}

.news-page .gallery-item h3 {
  color: #fff;
  font-size: var(--text-lg);
}

.news-page .gallery-item p {
  margin: 0;
  color: var(--on-dark);
}

.news-page .band,
.news-page .cta {
  text-align: center;
}

.news-page .band h2,
.news-page .cta h2 {
  margin: auto;
}

@media (max-width: 900px) {
  .news-page .hero-grid,
  .news-page .newsletter-grid,
  .news-page .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news-page .article-layout aside {
    position: static;
  }

  .news-page .headline-box {
    max-width: 600px;
  }

  .news-page .feature-grid {
    grid-template-columns: 1fr;
  }

  .news-page .list-grid,
  .news-page .edition-grid {
    grid-template-columns: 1fr;
  }

  .news-page .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .news-page .hero {
    padding: 56px 0 68px;
  }

  .news-page .hero h1,
  .news-page .page-hero h1,
  .news-page .article-hero h1 {
    font-size: var(--text-4xl);
  }

  .news-page .heading,
  .news-page .section-heading {
    display: block;
  }

  .news-page .heading > p,
  .news-page .section-heading > p {
    margin-top: 14px;
  }

  .news-page .edition {
    grid-template-columns: 1fr;
  }

  .news-page .edition .cover-placeholder {
    min-height: 160px;
  }

  .news-page .gallery,
  .news-page .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Half-height hero variant (plain page-hero / article-hero pages only, not the news-media.html hero-grid) */
.news-page .page-hero--half,
.news-page .article-hero--half {
  display: flex;
  align-items: center;
  padding: clamp(24px, 6vh, 54px) 0;
  min-height: min(calc(50vh - var(--nav-height)), calc(var(--hero-max-height) / 2));
  min-height: min(calc(50svh - var(--nav-height)), calc(var(--hero-max-height) / 2));
}

.news-page .article-hero--half::after {
  width: 320px;
  height: 320px;
  right: -110px;
  top: -170px;
  border-width: 44px;
}

.news-page .page-hero--half h1,
.news-page .article-hero--half h1 {
  font-size: var(--text-h1);
}

.news-page .page-hero--half p:not(.eyebrow),
.news-page .article-hero--half p:not(.eyebrow) {
  font-size: var(--text-base);
}

@media (max-width: 620px) {
  .news-page .page-hero--half h1,
  .news-page .article-hero--half h1 {
    font-size: var(--text-3xl);
  }
}

/* Tighter hero for the individual news-detail / newsletter-detail pages, scoped to article-hero--half only */
.news-page .article-hero--half {
  padding: clamp(18px, 4vh, 32px) 0;
}

.news-page .article-hero--half .crumbs {
  margin-bottom: 18px;
}

.news-page .article-hero--half h1 {
  margin: 0 0 14px;
  font-size: var(--text-h1-long);
}

.news-page .article-hero--half p:not(.eyebrow) {
  font-size: var(--text-base);
}

.news-page .article-hero--half .actions {
  margin-top: 12px;
}

@media (max-width: 620px) {
  .news-page .article-hero--half h1 {
    font-size: var(--text-2xl);
  }
}

/* news-media.html's own two-column hero (featured-edition card), scaled to match the half-height treatment */
.news-page .hero::after {
  width: 320px;
  height: 320px;
  right: -110px;
  top: -170px;
  border-width: 44px;
}

.news-page .hero h1 {
  font-size: var(--text-h1);
}

.news-page .hero p:not(.eyebrow) {
  font-size: var(--text-base);
}

@media (max-width: 620px) {
  .news-page .hero h1 {
    font-size: var(--text-3xl);
  }
}

/* Pre-existing bug fix: .news-page .hero p:not(.eyebrow) (3 classes) matches the headline-box's own
   paragraph since it's nested inside .hero, and beats .news-page .headline-box p (2 classes) on
   specificity, turning its text the hero's light lavender instead of the card's dark grey. */
.news-page .headline-box p:not(.eyebrow) {
  color: var(--muted);
}

/* ==========================================================================
   News listings (page-chapter-news.php, page-news-media.php): the parts the
   static pages set with inline styles.
   ========================================================================== */

/* Listing pages (News & Media, Chapter News): three cards per row, two on
   tablets, one on phones. Newsletter sections keep two (narrower column). */
.news-page .list-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Rounded corners, uniform with the Events pages (the static news pages were
   square): cards 14px like event cards, filter tabs pill-shaped like the
   Events filters, small boxes 7-12px. Photos follow the card's corners. */
.news-page .article,
.news-page .headline-box,
.news-page .gallery-item,
.news-page .feature-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-page .filter {
  border-radius: var(--radius-pill);
}

.news-page .mini-story,
.news-page .related-link,
.news-page .news-empty,
.news-page .callout,
.news-page .article-body-copy blockquote {
  border-radius: var(--radius-lg);
}

.news-page .news-pagination a,
.news-page .news-pagination span {
  border-radius: var(--radius-sm);
}

/* The card body fills the card, so "Read story →" lines up across a row. */
.news-page .article .article-body {
  flex: 1;
}

@media (max-width: 1000px) {
  .news-page .list-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .news-page .list-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* "Show whole picture" cards (covers, infographics): the whole image, centred,
   over a blurred copy of itself that fills the 16:9 box. */
.news-page .article .visual-placeholder--whole .card-image-backdrop {
  transform: scale(1.2);
  filter: blur(18px) saturate(1.1);
  opacity: .85;
}

/* Sized to the picture itself (not the box), 10px from the edges, so its own corners are rounded. */
.news-page .article .visual-placeholder--whole .card-image-whole {
  margin: auto;
  width: auto;
  height: auto;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  border-radius: var(--radius-picture);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25));
}

/* Story card photo fills its 16:9 box. */
.news-page .article .visual-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* No photo: the source's logo, centred and uncropped. The Chapter logo is
   white, so it sits on purple; the PMI logo is made for light backgrounds. */
.news-page .article .visual-placeholder--logo {
  display: grid;
  place-items: center;
  background: var(--purple);
}

.news-page .article .visual-placeholder--logo.is-pmi {
  background: #fff;
}

.news-page .article .visual-placeholder--logo img {
  position: static;
  width: 58%;
  max-width: 260px;
  height: auto;
  max-height: 60%;
  object-fit: contain;
}

.news-page .article-body h3 {
  margin-top: 4px;
}

/* Hub hero card is a link (newsletter edition or latest story). */
.news-page a.headline-box {
  display: block;
  transition: transform .18s;
}

.news-page a.headline-box:hover,
.news-page a.headline-box:focus-visible {
  transform: translateY(-3px);
}

/* Topic / source tabs are links. */
.news-page a.filter:hover {
  border-color: var(--purple);
}

.news-page .band .actions,
.news-page .cta .actions {
  justify-content: center;
}

.news-page .cover--image {
  padding: 0;
  border: 0;
  background: none;
}

.news-page .cover--image img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

.news-page .news-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: var(--mist);
}

.news-page .news-empty a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
}

.news-page .news-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.news-page .news-pagination a,
.news-page .news-pagination span {
  display: block;
  min-width: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  color: var(--purple);
  font-weight: 700;
  text-align: center;
}

.news-page .news-pagination a:hover {
  border-color: var(--purple);
}

.news-page .news-pagination .current {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}

.news-page .news-pagination .dots {
  border-color: transparent;
}

/* ==========================================================================
   Newsletters (archive-newsletter.php, single-newsletter.php).
   ========================================================================== */

/* Covers are A4 pages (210 × 297). The featured edition (Newsletters page
   and News & Media) gets a page-sized column instead of the wider half of
   the band. Uploaded covers sit uncropped at the top of a white page: a
   full-page cover fills it; the old site's square thumbnails of the page
   top keep their logo and title whole. */
.news-page .newsletter-band .newsletter-grid {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 48px;
}

.news-page .newsletter-band .cover {
  aspect-ratio: 210 / 297;
  min-height: 0;
  height: auto;
}

.news-page .newsletter-band .cover--image {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.news-page .newsletter-band .cover--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  box-shadow: none;
}

/* Archive: editions grouped by year; a quarter label replaces the cover
   (the covers share one template, so the quarter is what tells them apart). */
.news-page .edition-years {
  display: grid;
  gap: 34px;
}

.news-page .edition-year-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  color: var(--news-deep);
  font-size: var(--text-xl);
}

.news-page .edition-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}

.news-page .edition-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.news-page .edition-label {
  display: grid;
  place-content: center;
  gap: 2px;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  background: var(--purple);
  color: #fff;
  line-height: 1;
  text-align: center;
}

.news-page .edition-label b {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.news-page .edition-label span {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
}

/* Darker brand tones keep the white text readable. */
.news-page .edition-item.is-q1 .edition-label { background: var(--cyan-ink); } /* Darker than --cyan-deep: the small year text needs 4.5:1. */
.news-page .edition-item.is-q2 .edition-label { background: var(--purple); }
.news-page .edition-item.is-q3 .edition-label { background: var(--orange-deep); }
.news-page .edition-item.is-q4 .edition-label { background: var(--purple-deep); }

.news-page .edition-item-body h4 {
  margin: 2px 0 6px;
  font-size: var(--text-base);
  line-height: 1.25;
}

.news-page .edition-item-body h4 a {
  color: var(--news-deep);
}

.news-page .edition-item-body h4 a {
  transition: color .18s;
}

.news-page .edition-item-body h4 a:hover,
.news-page .edition-item-body h4 a:focus-visible {
  color: var(--purple);
}

.news-page .edition-item-body p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
}

.news-page .edition-item .edition-actions {
  padding-top: 10px;
}

/* Archive list: quiet grey text links (the title is the main link);
   brand purple on hover. */
.news-page .edition-item .edition-actions {
  gap: 6px 22px;
}

.news-page .edition-link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: color .18s;
}

.news-page .edition-link small {
  font-weight: 500;
}

.news-page .edition-link:hover,
.news-page .edition-link:focus-visible {
  color: var(--purple);
}

@media (max-width: 900px) {
  .news-page .newsletter-band .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .news-page .newsletter-band .cover {
    width: min(100%, 220px);
  }
}

/* PDF size on buttons: "Download PDF (2 MB)". */
.news-page .button small {
  font-weight: 600;
  opacity: .8;
}

/* Edition page side rail: cover and PDF link in normal case. */
.news-page .newsletter-rail-cover {
  margin-top: 22px;
}

.news-page .newsletter-rail-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.news-page .newsletter-rail-pdf {
  display: inline-block;
  margin-top: 16px;
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-page .newsletter-online {
  margin-top: 34px;
}

.news-page .article-body-copy > .newsletter-online:first-child {
  margin-top: 0;
}

/* ==========================================================================
   News article (single.php): the parts the static news-detail pages set with
   inline styles, plus the newsletter-style sections from inc/news.php.
   ========================================================================== */

.news-page .article-hero .wrap {
  position: relative;
  z-index: 1;
}

/* Fact chips under the title: "Date June 14, 2026". */
.news-page .article-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.news-page .article-facts li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-xl);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}

.news-page .article-facts li span {
  color: var(--cyan);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Side rail: people and partner cards in normal case (the rail is a label). */
.news-page .article-people {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.news-page .article-people li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-page .article-people img,
.news-page .article-person-initials {
  flex-shrink: 0;
  width: var(--ds-icon-sm);
  height: var(--ds-icon-sm);
  border-radius: var(--radius-round);
  object-fit: cover;
}

.news-page .article-person-initials {
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}

.news-page .article-people a,
.news-page .article-people b {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

.news-page .article-people a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.news-page .article-people small {
  display: block;
  color: var(--muted);
  font-size: .8em;
  line-height: 1.35;
}

.news-page .article-partner {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.news-page .article-partner small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: var(--text-2xs);
}

.news-page .article-partner a,
.news-page .article-partner > div {
  display: grid;
  gap: 4px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

/* Wide logos are held by the width, square ones (LAU, MUBS) by the height. */
.news-page .article-partner img {
  max-width: 140px;
  max-height: 88px;
  width: auto;
  height: auto;
  margin-bottom: 6px;
  object-fit: contain;
}

.news-page .article-partner b {
  color: var(--ink);
  font-weight: 700;
}

.news-page .article-partner span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.news-page .article-partner a:hover b {
  color: var(--purple);
  text-decoration: underline;
}

/* The body's first element (a heading, image or paragraph) starts level with
   the side rail: headings keep their top space only between sections. */
.news-page .article-body-copy > :first-child {
  margin-top: 0;
}

/* Highlighted quote (News details → Header), styled like the event pages'. */
.news-page .article-body-copy .article-quote {
  margin: 0 0 30px;
  padding: 22px 26px;
  border-left: 7px solid var(--cyan);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--mist);
}

.news-page .article-body-copy .article-quote p {
  margin: 0;
  color: var(--purple-deep);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
}

.news-page .article-body-copy .article-quote cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 700;
}

/* Body: lead image, images, quotes and galleries from the editor. */
.news-page .article-lead-image,
.news-page .article-body-copy .wp-block-image {
  margin: 0 0 28px;
}

.news-page .article-body-copy img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.news-page .article-lead-image img {
  display: block;
  width: 100%;
}

.news-page .article-body-copy figcaption,
.news-page .article-body-copy .wp-caption-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.news-page .article-body-copy blockquote {
  margin: 28px 0;
  padding: 24px;
  border-left: 5px solid var(--orange);
  background: var(--mist);
}

.news-page .article-body-copy blockquote p {
  margin: 0;
  color: var(--purple);
  font-size: var(--text-lg);
  font-weight: 700;
}

.news-page .article-body-copy blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--text-md);
  font-style: normal;
}

/* WordPress galleries ([gallery] / Gallery block). Selectors are scoped to
   the article so the News & Media hub's .gallery-item tiles never apply. */
.news-page .article-body-copy .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 28px;
}

.news-page .article-body-copy .gallery-columns-1 { grid-template-columns: 1fr; }
.news-page .article-body-copy .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.news-page .article-body-copy .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.news-page .article-body-copy .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.news-page .article-body-copy .gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

.news-page .article-body-copy .gallery-item {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  transition: none;
}

.news-page .article-body-copy .gallery-item:hover {
  transform: none;
  box-shadow: none;
}

.news-page .article-body-copy .gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.news-page .article-body-copy .gallery-size-thumbnail .gallery-item img {
  aspect-ratio: 1;
}

.news-page .article-body-copy .gallery br {
  display: none;
}

/* Long name lists in a story (e.g. certification achievers): columns, no bullets. */
.news-page .article-body-copy h3 {
  margin: 26px 0 10px;
  color: var(--news-deep);
  font-size: var(--text-lg);
}

.news-page .article-body-copy .name-columns {
  columns: 3;
  column-gap: 24px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.news-page .article-body-copy .name-columns li {
  break-inside: avoid;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .news-page .article-body-copy .name-columns {
    columns: 2;
  }
}

@media (max-width: 520px) {
  .news-page .article-body-copy .name-columns {
    columns: 1;
  }
}

/* Sections after the body (hide when empty; see single.php). */
.news-page .article-block {
  margin: 34px 0 0;
}

.news-page .article-block > h2 {
  margin-top: 0;
}

.news-page .article-takeaways {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--cyan);
  border-radius: var(--radius-lg);
  background: #fff;
}

.news-page .article-takeaways ul {
  margin: 0;
  padding-left: 1.2em;
}

.news-page .article-takeaways li {
  margin: 8px 0;
  color: var(--muted);
}

.news-page .article-takeaways li::marker {
  color: var(--cyan-deep);
}

.news-page .article-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-page .article-themes li {
  padding: 7px 13px;
  border-radius: var(--radius-xl);
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--purple-deep);
  font-size: var(--text-sm);
  font-weight: 700;
}

.news-page .article-why {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--purple-deep);
  color: #fff;
}

.news-page .article-why .eyebrow,
.news-page .article-why h2 {
  color: #fff;
}

.news-page .article-why h2 {
  margin: 6px 0 12px;
}

.news-page .article-why p {
  color: var(--on-dark);
}

.news-page .article-why p:last-child {
  margin-bottom: 0;
}

.news-page .article-learn-more {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.news-page .article-learn-more p {
  margin: 0 0 14px;
}

.news-page .article-host {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  background: #fff;
}

.news-page .article-host p {
  margin: 0 0 16px;
}

@media (max-width: 620px) {
  .news-page .article-body-copy .gallery-columns-4,
  .news-page .article-body-copy .gallery-columns-5,
  .news-page .article-body-copy .gallery-columns-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-page .article-takeaways,
  .news-page .article-why,
  .news-page .article-learn-more,
  .news-page .article-host {
    padding: 20px;
  }
}
/* Chapter in Action (page-chapter-in-action.php): photo count, closing links. */
.news-page .gallery-count {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(20, 10, 45, .72);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}

.news-page .gallery-more {
  margin: 28px 0 0;
  color: var(--muted);
}

.news-page .gallery-more a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-page .band-actions {
  justify-content: center;
  margin-top: 24px;
}

/* The gallery tile's placeholder rule (background + .35 opacity) outranks the
   shared photo treatment; restore it for photo tiles. */
.news-page .gallery-item .visual-placeholder--photo {
  opacity: 1;
  background-image: linear-gradient(0deg, rgba(20, 10, 45, .88), rgba(20, 10, 45, .1) 60%), var(--photo);
  background-size: cover;
  background-position: center;
}
