/* ==========================================================
   ZiFPIM News — publication front page
   Image-led newsroom hierarchy; article publishing remains CMS-owned.
   ========================================================== */

.news-index-cms {
  --news-paper: #f7f5ef;
  --news-ink: #262525;
  --news-grey: #515251;
  --news-blue: #3558A7;
  --news-gold: #E2A814;
  --news-rule: rgba(38, 37, 37, .2);
  background: var(--news-paper);
  color: var(--news-ink);
}

.news-index-cms .zf-news-index {
  width: min(92vw, 1440px);
  margin: 0 auto;
}

/* Masthead ------------------------------------------------ */
.zf-news-masthead {
  padding: 1cm 0 1.45rem;
  border-bottom: 1.5px solid var(--news-ink);
}

.zf-news-masthead__title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(5rem, 9.2vw, 8.9rem);
  line-height: .83;
  letter-spacing: -.075em;
  font-weight: 800;
  color: var(--news-ink);
}

.zf-news-masthead__title span { color: var(--news-gold); }

.zf-news-masthead__strap {
  display: flex;
  align-items: baseline;
  gap: 1.4rem 2.2rem;
  max-width: 1120px;
  margin-top: 1.1rem;
}

.zf-news-masthead__strap strong {
  flex: 0 0 auto;
  font-size: .75rem;
  line-height: 1.45;
  letter-spacing: -.01em;
  font-weight: 800;
  color: var(--news-ink);
}

.zf-news-masthead__strap p {
  max-width: 680px;
  margin: 0;
  padding-left: 2.2rem;
  border-left: 1px solid var(--news-rule);
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.6;
  color: var(--news-grey);
}

/* News desk ------------------------------------------------ */
.zf-news-desk {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, .95fr);
  gap: clamp(1.5rem, 3vw, 3.4rem);
  padding: 1cm 0 clamp(4rem, 7vw, 7rem);
}

.zf-news-lead { min-width: 0; }

.zf-news-lead__media {
  display: block;
  color: inherit;
  text-decoration: none;
}

.zf-news-lead__figure {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #dedbd3;
}

.zf-news-lead__figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.zf-news-lead__media:hover img,
.zf-news-lead__media:focus-visible img { transform: scale(1.025); }

.zf-news-lead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  margin-top: 1.05rem;
  font-size: .68rem;
  line-height: 1;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 800;
}

.zf-news-lead__meta span:first-child { color: var(--news-blue); }
.zf-news-lead__meta time,
.zf-news-lead__meta span:last-child { color: #777672; }

.zf-news-lead h2 {
  max-width: 920px;
  margin: .8rem 0 0;
  font-size: clamp(2rem, 3.35vw, 3.45rem);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 800;
}

.zf-news-lead h2.is-long-title { font-size: clamp(1.85rem, 2.95vw, 3.05rem); }
.zf-news-lead h2.is-very-long-title { font-size: clamp(1.7rem, 2.55vw, 2.7rem); }

.zf-news-lead__deck {
  max-width: 800px;
  margin: 1rem 0 0;
  font-size: clamp(.96rem, 1.08vw, 1.08rem);
  line-height: 1.65;
  color: var(--news-grey);
}

.zf-news-lead__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--news-rule);
  font-size: .72rem;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: #70706c;
}

.zf-news-lead__read {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--news-blue);
  text-decoration: none;
  font-weight: 800;
}

.zf-news-lead__read b { transition: transform .25s ease; }
.zf-news-lead__read:hover b,
.zf-news-lead__read:focus-visible b { transform: translate(3px,-3px); }

/* Latest stack -------------------------------------------- */
.zf-news-latest {
  align-self: start;
  min-width: 0;
}

.zf-news-latest__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1.5px solid var(--news-ink);
}

.zf-news-latest__head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
}

.zf-news-latest__head span {
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--news-blue);
  font-weight: 800;
}

.zf-news-latest__list { display: grid; }

.zf-news-mini {
  display: grid;
  grid-template-columns: clamp(105px, 9.5vw, 145px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--news-rule);
}

.zf-news-mini__media {
  display: block;
  aspect-ratio: 1.15 / 1;
  overflow: hidden;
  border-radius: 9px;
  background: #dedbd3;
}

.zf-news-mini__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.zf-news-mini:hover .zf-news-mini__media img { transform: scale(1.035); }

.zf-news-mini__content { min-width: 0; }

.zf-news-mini__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  margin-bottom: .5rem;
  font-size: .58rem;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: #7a7975;
  font-weight: 700;
}

.zf-news-mini__meta span:first-child { color: var(--news-blue); }

.zf-news-mini h3 {
  margin: 0;
  font-size: clamp(.98rem, 1.15vw, 1.22rem);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 800;
}

.zf-news-mini h3 a { color: inherit; text-decoration: none; }
.zf-news-mini h3 a:hover,
.zf-news-mini h3 a:focus-visible { color: var(--news-blue); }

.zf-news-mini__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: .55rem 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--news-grey);
}

.newsroom-single-story .zf-news-desk { grid-template-columns: 1fr; }
.newsroom-single-story .zf-news-latest { display: none; }

/* Recent stories grid ------------------------------------- */
.zf-news-archive {
  padding: clamp(2.2rem, 4vw, 4rem) 0 clamp(5rem, 8vw, 8rem);
  border-top: 1.5px solid var(--news-ink);
}

.zf-news-archive__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
}

.zf-news-archive__kicker {
  display: block;
  margin-bottom: .45rem;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--news-blue);
  font-weight: 800;
}

.zf-news-archive__head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.1vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 800;
}

.zf-news-archive__count {
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #777672;
  font-weight: 800;
}

.zf-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem);
}

.zf-news-card { min-width: 0; }

.zf-news-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 11px;
  background: #dedbd3;
}

.zf-news-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.zf-news-card:hover .zf-news-card__media img { transform: scale(1.025); }

.zf-news-card__meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .8rem;
  font-size: .6rem;
  line-height: 1.25;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: #767570;
  font-weight: 700;
}

.zf-news-card__meta span:first-child { color: var(--news-blue); }

.zf-news-card h3 {
  margin: .5rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 800;
}

.zf-news-card h3 a { color: inherit; text-decoration: none; }
.zf-news-card h3 a:hover,
.zf-news-card h3 a:focus-visible { color: var(--news-blue); }

.zf-news-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: .55rem 0 0;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--news-grey);
}

.newsroom-media__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--news-ink);
  color: var(--news-paper);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Responsive ---------------------------------------------- */
@media (max-width: 980px) {
  .zf-news-desk {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .zf-news-latest__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.4rem;
  }

  .zf-news-mini { grid-template-columns: 125px minmax(0,1fr); }
  .zf-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


@media (max-width: 860px) {
  .news-index-cms .zf-news-index {
    padding-top: 76px;
  }
}

@media (max-width: 680px) {
  .news-index-cms .zf-news-index { width: min(90vw, 1440px); }

  .zf-news-masthead { padding-top: 1cm; padding-bottom: 1.1rem; }
  .zf-news-masthead__title { font-size: clamp(4.2rem, 23vw, 7rem); }
  .zf-news-masthead__strap { align-items: flex-start; flex-direction: column; gap: .55rem; margin-top: .9rem; }
  .zf-news-masthead__strap p { padding-left: 0; border-left: 0; font-size: .9rem; line-height: 1.55; }

  .zf-news-desk { padding-top: 1.5rem; padding-bottom: 4rem; }
  .zf-news-lead__figure { aspect-ratio: 1.25 / 1; border-radius: 9px; }
  .zf-news-lead h2,
  .zf-news-lead h2.is-long-title,
  .zf-news-lead h2.is-very-long-title { font-size: clamp(1.75rem, 8.1vw, 2.45rem); }
  .zf-news-lead__footer { align-items: flex-start; flex-direction: column; }

  .zf-news-latest__list { grid-template-columns: 1fr; }
  .zf-news-mini { grid-template-columns: 108px minmax(0, 1fr); }
  .zf-news-mini__excerpt { display: none; }

  .zf-news-archive__head { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .zf-news-grid { grid-template-columns: 1fr; gap: 2rem; }
  .zf-news-card__media { aspect-ratio: 1.35 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .zf-news-lead__figure img,
  .zf-news-mini__media img,
  .zf-news-card__media img,
  .zf-news-lead__read b { transition: none !important; }
}

/* ==========================================================
   ZiFPIM News v7 — publication desk beneath the global ZiFPIM header
   The oversized News masthead is intentionally removed.
   ========================================================== */

.news-index-cms .zf-news-index {
  padding-top: 92px;
}

.zf-news-masthead {
  padding-top: 1cm;
  padding-bottom: clamp(1.25rem, 2vw, 1.8rem);
}

/* Keep the masthead commanding, but stop it overpowering the newsroom below. */
.zf-news-masthead__title {
  font-size: clamp(5.25rem, 8.35vw, 8rem);
  line-height: .86;
}

.zf-news-masthead__strap {
  width: min(100%, 1060px);
  margin-top: clamp(1rem, 1.6vw, 1.4rem);
}

.zf-news-masthead__strap strong {
  max-width: 285px;
  line-height: 1.35;
}

.zf-news-masthead__strap p {
  max-width: 650px;
}

/* Bring the newsroom closer to the masthead and align both columns cleanly. */
.zf-news-desk {
  padding-top: clamp(2rem, 3vw, 3rem);
}

.zf-news-latest__head {
  min-height: 34px;
}

/* With a single supporting story, let it become a proper secondary feature
   rather than leaving one tiny horizontal row in a mostly empty column. */
.zf-news-latest[data-supporting-count="1"] .zf-news-mini {
  grid-template-columns: 1fr;
  gap: .9rem;
  padding-top: 1.05rem;
}

.zf-news-latest[data-supporting-count="1"] .zf-news-mini__media {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

.zf-news-latest[data-supporting-count="1"] .zf-news-mini h3 {
  font-size: clamp(1.3rem, 1.75vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.zf-news-latest[data-supporting-count="1"] .zf-news-mini__excerpt {
  display: block;
  -webkit-line-clamp: 3;
  font-size: .86rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .zf-news-masthead__title {
    font-size: clamp(4.8rem, 13vw, 7.2rem);
  }

  /* Once Latest Stories moves below the lead, compact rows work better again. */
  .zf-news-latest[data-supporting-count="1"] .zf-news-mini {
    grid-template-columns: minmax(150px, 30vw) minmax(0, 1fr);
    gap: 1.2rem;
  }

  .zf-news-latest[data-supporting-count="1"] .zf-news-mini__media {
    aspect-ratio: 1.25 / 1;
  }
}

@media (max-width: 680px) {
  .zf-news-masthead {
    padding-top: 1cm;
  }

  .zf-news-masthead__title {
    font-size: clamp(4rem, 21vw, 6.15rem);
    line-height: .86;
  }

  .zf-news-masthead__strap {
    gap: .7rem;
  }

  .zf-news-masthead__strap strong {
    max-width: 32ch;
  }

  .zf-news-latest[data-supporting-count="1"] .zf-news-mini {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: .9rem;
  }

  .zf-news-latest[data-supporting-count="1"] .zf-news-mini__media {
    aspect-ratio: 1.1 / 1;
  }

  .zf-news-latest[data-supporting-count="1"] .zf-news-mini h3 {
    font-size: 1rem;
    line-height: 1.17;
  }

  .zf-news-latest[data-supporting-count="1"] .zf-news-mini__excerpt {
    display: none;
  }
}


/* V13 — Minimal newsroom lists */
.zf-news-latest__head {
  align-items: center;
}

.zf-news-latest__head span,
.zf-news-archive__count {
  display: none !important;
}

.zf-news-latest__list {
  display: grid;
}

.zf-news-latest .zf-news-mini {
  display: block !important;
  padding: 1rem 0 !important;
  border-bottom: 1px solid var(--news-rule);
}

.zf-news-latest .zf-news-mini h3 {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.22rem) !important;
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 800;
}

.zf-news-latest .zf-news-mini h3 a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.zf-news-latest .zf-news-mini h3 a:hover,
.zf-news-latest .zf-news-mini h3 a:focus-visible {
  color: var(--news-blue);
  transform: translateX(3px);
}

.zf-news-archive__more {
  display: flex;
  justify-content: center;
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.zf-news-load-more {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--news-ink);
  background: transparent;
  color: var(--news-ink);
  padding: .75rem 0 .55rem;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.zf-news-load-more span {
  display: inline-block;
  margin-left: .5rem;
  transition: transform .2s ease;
}

.zf-news-load-more:hover span,
.zf-news-load-more:focus-visible span {
  transform: translateY(3px);
}

.zf-news-load-more[hidden] { display: none !important; }


/* V14 — Minimal latest stories: image + headline only */
.zf-news-latest .zf-news-mini {
  display: grid !important;
  grid-template-columns: clamp(108px, 34%, 138px) minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start;
  padding: 1rem 0 !important;
  border-bottom: 1px solid var(--news-rule);
}

.zf-news-latest .zf-news-mini__media {
  display: block !important;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #dedbd3;
}

.zf-news-latest .zf-news-mini__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.zf-news-latest .zf-news-mini__media:hover img,
.zf-news-latest .zf-news-mini__media:focus-visible img {
  transform: scale(1.035);
}

.zf-news-latest .zf-news-mini__content {
  min-width: 0;
}

.zf-news-latest .zf-news-mini h3 {
  margin: 0;
  font-size: clamp(.98rem, 1.15vw, 1.18rem) !important;
  line-height: 1.16;
  letter-spacing: -.035em;
  font-weight: 800;
}

@media (max-width: 720px) {
  .zf-news-latest .zf-news-mini {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: .85rem !important;
  }
}


/* V15 — Lead story metadata + clickable headline refinement */
.zf-news-lead__meta {
  gap: .55rem 0;
  margin-top: 1.05rem;
  color: #74736f;
}

.zf-news-lead__meta > * {
  display: inline-flex;
  align-items: center;
  color: #74736f !important;
}

.zf-news-lead__meta > *:not(:last-child)::after {
  content: "·";
  margin: 0 .72rem;
  color: #b5b2aa;
}

.zf-news-lead__meta time {
  color: var(--news-blue) !important;
}

.zf-news-lead__title-link {
  color: inherit;
  text-decoration: none;
  transition: color .22s ease;
}

.zf-news-lead__title-link:hover,
.zf-news-lead__title-link:focus-visible {
  color: var(--news-blue);
}

.zf-news-lead__title-link:focus-visible {
  outline: 2px solid var(--news-gold);
  outline-offset: 5px;
}

.zf-news-lead__footer {
  justify-content: flex-end;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
}

.zf-news-lead__read {
  position: relative;
  min-height: 44px;
  padding: .78rem 1rem .78rem 1.12rem;
  border: 1px solid #2d2c29;
  color: #2d2c29;
  background: transparent;
  font-size: .72rem;
  letter-spacing: .075em;
  text-transform: uppercase;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.zf-news-lead__read::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--news-gold);
}

.zf-news-lead__read b {
  font-size: .95rem;
  font-weight: 500;
}

.zf-news-lead__read:hover,
.zf-news-lead__read:focus-visible {
  color: #fff;
  background: var(--news-ink);
  border-color: var(--news-ink);
}

@media (max-width: 720px) {
  .zf-news-lead__meta {
    gap: .5rem 0;
  }

  .zf-news-lead__meta > *:not(:last-child)::after {
    margin: 0 .55rem;
  }

  .zf-news-lead__footer {
    align-items: stretch;
  }

  .zf-news-lead__read {
    justify-content: space-between;
    width: 100%;
  }
}
