/* ==========================================================================
   News — final handoff (final_news.dc.html, 2026-10-30). Prefix nws-.
   List: one tile, a paged grid of cards. Article: the article tile beside a
   More news tile, stacked at 1024px and below. Both end on the CTA tile.
   ========================================================================== */

.nws-stack {
  display: flex;
  flex-direction: column;
  gap: var(--ffb-bento-gap);
}

/* ---------- Shared: image well, stretched link ---------- */

/* LinkedIn images at their own 1.91:1, never cropped — they carry text near
   the edges. */
.nws-media {
  display: block;
  aspect-ratio: var(--ffb-news-ratio);
  overflow: hidden;
  background: var(--ffb-news-well);
}

.nws-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Only the headline is a link; its ::after covers the card. */
.nws-link,
.nws-link:hover {
  color: inherit;
}

.nws-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.nws-link:focus-visible {
  outline: none;
}

.nws-link:focus-visible::after {
  outline: 2px solid var(--ffb-focus);
  outline-offset: 2px;
}

/* ---------- List ---------- */

.nws-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid var(--ffb-hairline);
  border-radius: var(--ffb-r-bento);
  background: #ffffff;
}

.nws-list__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 32px;
  margin-bottom: 20px;
}

.nws-list__eyebrow {
  grid-column: 1 / -1;
  letter-spacing: 0.14em;
}

.nws-list__title {
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.04;
  color: var(--ffb-navy-deep);
}

.nws-pager {
  display: flex;
  gap: 10px;
}

.nws-pager__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ffb-outline-border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ffb-navy-deep);
  transition: border-color var(--ffb-t-fast) ease, color var(--ffb-t-fast) ease;
}

a.nws-pager__btn:hover {
  border-color: var(--ffb-blue);
  color: var(--ffb-blue);
}

.nws-pager__btn.is-off {
  opacity: 0.4;
}

.nws-pager__btn svg {
  width: 20px;
  height: 20px;
}

.nws-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 840px) {
  .nws-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nws-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nws-empty {
  font-size: 18px;
  color: var(--ffb-nav-link);
}

/* ---------- Card ---------- */

.nws-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  color: var(--ffb-navy-deep);
  transition: background var(--ffb-t-ui) ease, color var(--ffb-t-ui) ease;
}

.nws-card:hover,
.nws-card:has(.nws-link:focus-visible) {
  background: var(--ffb-card-hover-cool);
  color: var(--ffb-blue);
}

.nws-card .nws-media img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nws-card:hover .nws-media img {
  transform: scale(1.06);
}

.nws-card__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
  padding: 0 18px;
  border-left: 1px solid var(--ffb-hairline);
}

.nws-card__date {
  font-weight: 500;
  font-size: var(--ffb-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ffb-text-muted);
}

.nws-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-family: var(--ffb-jakarta);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: inherit;
  text-wrap: pretty;
}

/* ---------- Article + More news ---------- */

.nws-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ffb-bento-gap);
}

@media (min-width: 1025px) {
  .nws-detail {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.nws-article {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 3.4vw, 52px);
  border: 1px solid var(--ffb-hairline);
  border-radius: var(--ffb-r-bento);
  background: #ffffff;
}

.nws-article__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nws-article__date {
  font-weight: 600;
  font-size: 15px;
  color: var(--ffb-blue);
}

.nws-article__title {
  margin-bottom: 20px;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.1;
  color: var(--ffb-navy-deep);
  text-wrap: balance;
}

.nws-article__media {
  margin-bottom: 20px;
}

/* The editor's markup, rebuilt by ffb_news_html(): p, lists, h2, strong, em,
   links. */
.nws-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ffb-text-article);
  text-wrap: pretty;
}

.nws-body ul,
.nws-body ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 1.4em;
}

.nws-body ul {
  list-style: disc;
}

.nws-body ol {
  list-style: decimal;
}

.nws-body li > * + * {
  margin-top: 12px;
}

.nws-body h2 {
  font-size: 25px;
  line-height: 1.2;
}

.nws-body strong {
  font-weight: 600;
}

.nws-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nws-more {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--ffb-icon-well-border);
  border-radius: var(--ffb-r-bento);
  background: var(--ffb-glance-tile);
}

.nws-more__title {
  margin-bottom: 10px;
  letter-spacing: 0.14em;
}

.nws-more__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nws-more__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 -10px;
  padding: 10px;
  border-radius: var(--ffb-r-tile);
  color: var(--ffb-navy-deep);
  transition: background var(--ffb-t-fast) ease;
}

.nws-more__item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ffb-blue);
}

.nws-more__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nws-more__date {
  font-weight: 600;
  font-size: 13px;
  color: var(--ffb-nav-link);
}

.nws-more__name {
  font-family: var(--ffb-jakarta);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  text-wrap: pretty;
}

/* The design's outlined "All news" pill, moved under the list (Keith). */
.nws-more__all {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin-top: 16px;
  padding: 0 20px;
  border: 1px solid var(--ffb-outline-border);
  border-radius: var(--ffb-r-pill);
  background: #ffffff;
  font-family: var(--ffb-poppins);
  font-weight: 600;
  font-size: 15px;
  color: var(--ffb-navy-deep);
  white-space: nowrap;
  transition: border-color var(--ffb-t-fast) ease, color var(--ffb-t-fast) ease;
}

.nws-more__all:hover {
  border-color: var(--ffb-blue);
  color: var(--ffb-blue);
}

.nws-more__all svg {
  flex: none;
  width: 16px;
  height: 16px;
}
