/* News feeds — homepage cards and the News page index.
   Only AA-safe palette pairings: --contrast 6.54:1 and --darkblue 12.96:1 on
   white, --accent 15.29:1 for body, white 12.96:1 on --darkblue, white 6.91:1
   on --contrast-3. --lightblue / --lightgreen / --contrast-2 are never used
   for text on light backgrounds. */

/* ------------------------------------------------------------ card grid */
.gxnf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gxnf-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background-color: var(--base-3);
  border: 1px solid rgba(0, 55, 64, 0.12);
}

.gxnf-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gxnf-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.5rem;
}

.gxnf-card__kicker {
  margin: 0 0 0.5rem;
  color: var(--contrast);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gxnf-card__title {
  margin: 0 0 0.4rem;
  color: var(--darkblue);
  font-size: 1.1875rem;
  line-height: 1.25;
}

.gxnf-card__date {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8125rem;
}

.gxnf-card__excerpt {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Pinned to the card bottom so buttons line up across a row. */
.gxnf-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--contrast);
  border-radius: 22px;
  color: var(--contrast);
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
  background-color: transparent;
}

.gxnf-card__cta:hover,
.gxnf-card__cta:focus-visible {
  background-color: var(--contrast);
  color: #fff;
}

.gxnf-card__arrow {
  transition: transform 160ms ease;
}

.gxnf-card__cta:hover .gxnf-card__arrow {
  transform: translateX(3px);
}

/* ------------------------------------------ Important Notices highlight */
.gxnf-notices {
  margin: 0 0 3.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 22px;
  background-color: var(--darkblue);
  border-left: 8px solid var(--contrast-3);
}

.gxnf-notices__heading {
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.gxnf-notices__flag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 11px;
  background-color: var(--contrast-3);
  color: #fff;                       /* 6.91:1 */
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gxnf-lead__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.15;
}

.gxnf-lead__title a {
  color: #fff;                       /* 12.96:1 on darkblue */
  text-decoration: none;
}

.gxnf-lead__title a:hover,
.gxnf-lead__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gxnf-lead__date {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.875rem;
}

.gxnf-lead__excerpt {
  margin: 0 0 1.5rem;
  max-width: 70ch;
  color: #fff;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.gxnf-lead__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.4rem;
  border-radius: 22px;
  background-color: #fff;
  color: var(--darkblue);            /* 12.96:1 */
  font-weight: 800;
  text-decoration: none;
}

.gxnf-lead__cta:hover,
.gxnf-lead__cta:focus-visible {
  background-color: var(--lightgreen);
  color: var(--darkblue);            /* 8.11:1 */
}

.gxnf-notices__more {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.gxnf-notices__more li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  padding: 0.45rem 0;
}

.gxnf-notices__more a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.gxnf-notices__more a:hover,
.gxnf-notices__more a:focus-visible {
  border-bottom-color: #fff;
}

.gxnf-notices__more time {
  color: #fff;
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------- others */
.gxnf-others__heading {
  margin: 0 0 1.5rem;
  color: var(--darkblue);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

/* -------------------------------------------------------- focus rings */
.gxnf-card__cta:focus-visible,
.gxnf-lead__cta:focus-visible,
.gxnf-lead__title a:focus-visible,
.gxnf-notices__more a:focus-visible {
  outline: 3px solid var(--contrast);
  outline-offset: 3px;
}

.gxnf-lead__cta:focus-visible,
.gxnf-lead__title a:focus-visible,
.gxnf-notices__more a:focus-visible {
  outline-color: #fff;
}

@media (max-width: 1024px) {
  .gxnf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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