/**
 * /news landing bands — Press Releases (light) and In the News (dark).
 * Editorial feature cards (no media) in a 3-up grid, plus a "view all" pill.
 * Everything is scoped to .sc-news-bands so nothing leaks into the theme.
 */

.sc-news-bands {
  --sc-color-eyebrow: #f4762d;
  --sc-color-text: #ffffff;
  --sc-color-accent: #3495ef;
  --sc-color-border: #06a1eb;
  --sc-news-list-shell: 1140px;
  --sc-news-list-section-pad-y: clamp(2.5rem, 6vw, 4rem);
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

/* ---- Bands --------------------------------------------------------------- */

.sc-news-list-section {
  padding: var(--sc-news-list-section-pad-y) 1rem;
}

.sc-news-list-section--light {
  background: #F2F2F2;
  color: #111b26;
}

.sc-news-list-section--dark {
  background: #0d1520;
  color: #fff;
}

.sc-news-list-section__shell {
  max-width: var(--sc-news-list-shell);
  margin: 0 auto;
}

.sc-news-list-section__kicker {
  margin: 0 0 0.35rem;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.sc-news-list-section__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
}

.sc-news-list-section__grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .sc-news-list-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.sc-news-list-section__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  opacity: 0.75;
}

.sc-news-list-section__actions {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

/* ---- "View all" pill ----------------------------------------------------- */

.sc-news-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--sc-color-border);
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sc-news-list-section--light .sc-news-list-btn:hover,
.sc-news-list-section--light .sc-news-list-btn:focus-visible {
  background: #111b26;
  border-color: #111b26;
  color: #fff;
}

.sc-news-list-section--dark .sc-news-list-btn:hover,
.sc-news-list-section--dark .sc-news-list-btn:focus-visible {
  background: var(--sc-color-border);
  color: #0d1520;
}

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

.sc-feature-card {
  --sc-card-border: var(--sc-color-border);
  --sc-card-radius: 24px;
  --sc-card-bg: rgba(17, 27, 38, 0.5);
  --sc-card-eyebrow: var(--sc-color-eyebrow);
  --sc-card-text: var(--sc-color-text);
  --sc-card-link: var(--sc-card-border);
  --sc-card-link-hover: var(--sc-color-eyebrow);
  --sc-card-chevron: var(--sc-color-accent);
  --sc-card-pad: clamp(1rem, 1.45vw, 1.25rem);
  --sc-card-eyebrow-size: clamp(0.875rem, 1.15vw, 1.125rem);
  --sc-card-cta-size: clamp(1rem, 1.25vw, 1.25rem);
  --sc-card-chevron-size: 2.625rem;

  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 2px solid var(--sc-card-border);
  border-radius: var(--sc-card-radius);
  background: transparent;
  color: var(--sc-card-text);
  overflow: hidden;
}

.sc-feature-card--light {
  --sc-card-bg: #ffffff;
  --sc-card-text: #111b26;
  --sc-card-chevron: var(--sc-color-border);
}

.sc-feature-card__surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: calc(var(--sc-card-radius) - 2px);
  background-color: var(--sc-card-bg);
  pointer-events: none;
}

.sc-feature-card > :not(.sc-feature-card__surface) {
  position: relative;
  z-index: 1;
}

.sc-feature-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box;
  padding: var(--sc-card-pad);
}
.sc-news--light .sc-news__grid--feature .sc-feature-card__eyebrow{
  color:#000;
}
.sc-feature-card__eyebrow {
  margin: 0 0 0.65rem;
  font-size: var(--sc-card-eyebrow-size);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sc-card-eyebrow);
}

.sc-feature-card__eyebrow-sep {
  opacity: 0.65;
  font-weight: 600;
  padding: 0 0.2rem;
}

.sc-feature-card__headline {
  flex: 1;
  min-height: 0;
  margin: 0.5rem 0 0;
  font-size: clamp(1.4rem, 2.2vw, 1.69rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sc-card-text);
}

/* Minimum, not fixed: a longer title grows the card (and its row) instead of
   overflowing; shorter ones still line up at this height. */
.sc-news-list-card {
  height: 100%;
  min-height: clamp(18rem, 28vw, 22rem);
}

/* "Read More >" pinned to the bottom-right of the card */
.sc-feature-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: var(--sc-card-cta-size);
  font-weight: 700;
  line-height: 1.25;
  color: var(--sc-card-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

/* The whole card is the click target, not just the link text. */
.sc-feature-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sc-feature-card__chevron {
  display: inline-flex;
  width: var(--sc-card-chevron-size);
  height: var(--sc-card-chevron-size);
  flex-shrink: 0;
  color: var(--sc-card-chevron);
  line-height: 0;
}

.sc-feature-card__chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sc-feature-card__cta:hover,
.sc-feature-card__cta:hover .sc-feature-card__chevron,
.sc-feature-card:hover .sc-feature-card__cta,
.sc-feature-card:hover .sc-feature-card__chevron {
  color: var(--sc-card-link-hover);
}

.sc-feature-card__cta:focus-visible {
  outline: 2px solid var(--sc-card-link);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Editors only: posts that are not public yet. */
.sc-feature-card__badge {
  align-self: flex-start;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--sc-color-eyebrow);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Post thumbnail as the card background (In the News) -------------------
   --sc-card-bg-image is the post's Directus thumbnail. A dark overlay sits over
   it so the white title and orange eyebrow stay legible on any image; a post
   without an image keeps the plain card. */

.sc-feature-card--thumb .sc-feature-card__surface {
  background-image: var(--sc-card-bg-image);
  background-size: cover;
  background-position: center;
}

.sc-feature-card--thumb .sc-feature-card__surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 21, 32, 0.84) 0%, rgba(13, 21, 32, 0.74) 55%, rgba(13, 21, 32, 0.9) 100%);
}

/* ---- /news/in-the-news listing: the same card in the listing grid ------------ */

.sc-news__grid--feature {
  gap: 1.25rem;
}

.sc-news__grid--feature > .sc-feature-card[hidden] {
  display: none;
}

/* The listing's `.sc-news a { color: inherit }` would turn the CTA white; keep the
   card's own link colours (blue, orange on hover) as on the /news landing. */
.sc-news .sc-feature-card__cta {
  color: var(--sc-card-link);
}

.sc-news .sc-feature-card__cta:hover,
.sc-news .sc-feature-card:hover .sc-feature-card__cta {
  color: var(--sc-card-link-hover);
}

/* ---- Section nav on /news (Press Releases | In the News) ---------------------
   In-page anchors to the bands below it. It sticks under the fixed site header
   while the bands scroll; news-anchors.js sets --sc-news-header-h to the header's
   height and moves aria-current to the link of the band in view. */

.sc-news-tabs {
  /* position: sticky; */
  top: var(--sc-news-header-h, 0px);
  z-index: 10; /* under the site header (#headerWrap, 99) */
  background: #fff;
  border-bottom: 1px solid #d9dee5;
  padding-top: 10px;
}

/* A link lands the band just under the header and this nav. */
.sc-news-list-section {
  scroll-margin-top: calc(var(--sc-news-header-h, 0px) + var(--sc-news-nav-h, 0px));
}

/* Focused by news-anchors.js after a jump, for screen readers; no ring needed. */
.sc-news-list-section:focus {
  outline: none;
}

/* Same container as the page title in the banner above (.sc-news__shell in
   insights.css), so the first link starts exactly where "News" starts. */
.sc-news-tabs__list {
  display: flex;
  gap: 2rem;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.sc-news-tabs__list li {
  margin: 0;
  padding: 0;
}

.sc-news-tabs__tab {
  display: block;
  white-space: nowrap;
  text-decoration: none;
  appearance: none;
  margin: 0;
  /* The 3px indicator is a top border; the padding gives it back so the label sits
     where it did and the tab keeps its height. */
  padding: calc(1rem - 3px) 0 calc(0.85rem + 3px);
  border: 0;
  border-top: 5px solid transparent;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: #5b6573;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sc-news-tabs__tab:hover,
.sc-news-tabs__tab:focus {
  color: #111b26;
  text-decoration: none;
}

.sc-news-tabs__tab[aria-current="true"] {
  font-weight: 700;
  color: #111b26;
  border-top-color: var(--sc-color-border);
}

.sc-news-tabs__tab:focus-visible {
  outline: 2px solid var(--sc-color-border);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 700px) {
  .sc-news-tabs__list {
    width: min(100% - 32px, 1200px);
  }
}

@media (max-width: 480px) {
  .sc-news-tabs__list {
    gap: 1.25rem;
  }
}

/* The "date | type" line is black on the Press Releases section of /news. Scoped to
   that section's band (landing.php), so the same card keeps its orange line in
   In the News, on /news/press-releases and in the post-page strip. */
#press-releases .sc-feature-card__eyebrow {
  color: #000;
}
