/* The existing design system derives button, link, icon and focus colors
   from these palette tokens. */
:root {
  --site-brand: #2F59B6;
  --hds-color-core-brand-25: #f4f7fe;
  --hds-color-core-brand-25A: #6086db18;
  --hds-color-core-brand-50: #eaf0fd;
  --hds-color-core-brand-50A: #6086db30;
  --hds-color-core-brand-75: #e0eafa;
  --hds-color-core-brand-100: #d5e2f9;
  --hds-color-core-brand-100A: #5279ce45;
  --hds-color-core-brand-200: #b8cdf4;
  --hds-color-core-brand-300: #97b5ee;
  --hds-color-core-brand-400: #7599e3;
  --hds-color-core-brand-400A: #5279cebf;
  --hds-color-core-brand-500: #4e77ce;
  --hds-color-core-brand-600: var(--site-brand);
  --hds-color-core-brand-700: #23478f;
  --hds-color-core-brand-800: #193666;
  --hds-color-core-brand-900: #142950;
  --hds-color-core-brand-925: #13264a;
  --hds-color-core-brand-950: #10213d;
  --hds-color-core-brand-975: #0c1a34;
  --hds-color-core-brandDark-25: #f4f7fe;
  --hds-color-core-brandDark-50: #eaf0fd;
  --hds-color-core-brandDark-75: #dce8fc;
  --hds-color-core-brandDark-100: #d1e0fb;
  --hds-color-core-brandDark-200: #b8cdf4;
  --hds-color-core-brandDark-300: #97b5ee;
  --hds-color-core-brandDark-400: #7599e3;
  --hds-color-core-brandDark-500: #527dce;
  --hds-color-core-brandDark-600: var(--site-brand);
  --hds-color-core-brandDark-700: #23478f;
  --hds-color-core-brandDark-800: #193666;
  --hds-color-core-brandDark-900: #172e5a;
  --hds-color-core-brandDark-925: #142950;
  --hds-color-core-brandDark-950: #10213d;
  --hds-color-core-brandDark-975: #0c1a34;
  --hds-color-core-brandDark-700A: #2f59b6b2;
  --hds-color-core-brandDark-800A: #23478f80;
  --hds-color-core-brandDark-925A: #2f59b633;
}

/* Keep the hero lettering above the animated wave in its own paint layer. */
.hero-section-container .hero-section__layout {
  position: relative;
  z-index: 2;
}

.hero-section-container .hero-section__title--single {
  color: #3d6483;
  user-select: text;
}

.hero-section-container .hero-section__background {
  pointer-events: none;
}

.hero-section-container .single-wave {
  filter: grayscale(1) sepia(.76) hue-rotate(177deg) saturate(2.35);
}

.stats-section.stats-section--time-night {
  --stats-border-color: #7698d4;
  --stats-option-selected-background: var(--site-brand);
}

.stats-section .stats-animation-gradient__gradient--night {
  background: radial-gradient(1655px 1133px at 50% calc(100% + 69px),
    #eef5ff 1%, #6288dc 29%, #2f59b6 46%, #23458f 63%, #192f64 79%, #122349 100%);
}

.stats-section .data-viz__canvas {
  filter: hue-rotate(-24deg);
}

header.navigation {
  position: sticky;
  top: 0;
  z-index: 20;
}

header.navigation[data-stuck] {
  background-color: var(--hds-color-surface-bg-quiet, #fcfdfe);
  box-shadow: 0 1px 0 rgba(64, 89, 112, .14), 0 6px 20px rgba(15, 23, 66, .05);
}

header.navigation[data-stuck] .navigation-item__sign-in {
  color: var(--hds-color-action-text-solid, #2F59B6);
  background: var(--hds-color-surface-bg-quiet, #fcfdfe);
  box-shadow: inset 0 0 0 1px var(--hds-color-border-default, #e0e9f2);
}

header.navigation[data-stuck] .navigation-item__sign-in__mask {
  display: none;
}

header.navigation[data-stuck] .navigation-button-measure {
  opacity: 1;
}

html[data-navigation-stuck] .hds-navigation-menu__overlay {
  --navigation-announcement-offset: 0px;
}

html:has(.hds-navigation-menu__overlay),
html:has(.hds-navigation-menu__overlay) body {
  overflow: visible;
  height: auto;
  padding-right: 0;
}

html {
  scroll-padding-top: 85px;
}

.modular-solutions-bento__layout.solutions-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hds-space-core-200);
}

.modular-solutions-bento__layout.solutions-summary-grid .modular-solutions-bento-card {
  align-items: flex-start;
  width: 100%;
  min-height: 0;
  max-height: none;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  padding: var(--hds-space-core-500) var(--hds-space-core-400);
  border: 1px solid var(--hds-color-border-default, #e0e9f2);
  border-radius: var(--hds-space-core-radius-md);
  background: var(--hds-color-surface-bg-quiet, #fcfdfe);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.solutions-summary-grid .modular-solutions-bento-card:is(:hover, :focus-visible) {
  border-color: var(--hds-color-action-text-solid, #2F59B6);
  box-shadow: 0 3px 12px rgba(29, 25, 70, .07);
}

.solutions-summary-grid .modular-solutions-bento-card__text {
  position: static;
  display: grid;
  gap: var(--hds-space-core-100);
  width: 100%;
  max-width: none;
  padding: 0;
  color: var(--hds-color-heading-solid);
  transform: none;
}

.solutions-summary-grid .modular-solutions-bento-card__title {
  line-height: 1.35;
  padding-inline-end: var(--hds-space-core-500);
}

.solutions-summary-description {
  margin: 0;
  color: var(--hds-color-text-soft);
}

.solutions-summary-grid .modular-solutions-bento-card__dialog-entry {
  top: var(--hds-space-core-400);
  right: var(--hds-space-core-300);
  bottom: auto;
  left: auto;
  z-index: 1;
}

.bento-dialog .bento-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hds-space-core-200);
  padding: 0;
  margin: 0;
  list-style: none;
}

.bento-dialog .bento-metric {
  display: grid;
  align-content: start;
  gap: var(--hds-space-core-150);
  padding: var(--hds-space-core-300);
  border: 1px solid var(--hds-color-border-default, #e0e9f2);
  border-radius: var(--hds-space-core-radius-md);
}

.bento-dialog .bento-metric__value {
  display: block;
  color: var(--hds-color-action-text-solid, #2F59B6);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.bento-dialog .bento-metric__description {
  margin: 0;
  color: var(--hds-color-text-soft);
}

.home-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hds-space-core-500) var(--hds-space-core-200);
}

.home-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--hds-color-border-default, #e0e9f2);
  border-radius: var(--hds-space-core-radius-md);
  overflow: hidden;
}

.home-news-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #f3f5f9;
}

.home-news-card__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hds-space-core-150);
  padding: var(--hds-space-core-300);
}

.home-news-card__copy :where(h3, p) {
  margin: 0;
}

.home-news-card__copy .hds-link {
  margin-block-start: auto;
}

.home-company .home-company-content {
  display: grid;
  gap: var(--hds-space-core-500);
}

.home-company--values,
.home-company--careers {
  background-color: #f4f7fe;
}

.home-company-intro {
  display: grid;
  gap: var(--hds-space-core-150);
  max-width: 50rem;
}

.home-company-intro h2,
.home-company-intro h3,
.home-company-intro p,
.home-company-topic h3,
.home-company-topic p {
  margin: 0;
}

.home-company-intro h2 {
  color: var(--site-brand);
}

.home-company-topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hds-space-core-200);
}

.home-company-topic {
  display: grid;
  align-content: start;
  gap: var(--hds-space-core-125, 10px);
  padding: var(--hds-space-core-300);
  border: 1px solid #dbe5f3;
  border-top: 2px solid var(--site-brand);
  border-radius: var(--hds-space-core-radius-md);
  background: var(--hds-color-surface-bg-quiet, #fcfdfe);
}

.home-slogan {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--hds-space-core-500) 0;
  border-block-start: var(--hds-canary-dashed-border, 1px dashed #dbe5f3);
}

.home-slogan h2 {
  margin: 0;
}

@media (min-width: 640px) {
  .modular-solutions-bento__layout.solutions-summary-grid,
  .bento-dialog .bento-metrics,
  .home-news-grid,
  .home-company-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-dialog .bento-metrics--1 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 940px) {
  .modular-solutions-bento__layout.solutions-summary-grid,
  .bento-dialog .bento-metrics--3,
  .home-news-grid,
  .home-company-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-company--values .home-company-topics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .footer .footer-links-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--hds-space-core-500);
    padding-block: var(--hds-space-core-500);
  }

  .footer .footer-links-section__content {
    grid-column: auto;
    min-width: 0;
    padding-block-end: 0;
  }

  .footer .footer-links-block__item {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

.navigation-menu-home-link.site-logo,
.article-logo.site-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-logo > img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(170px, 29vw);
  max-height: 34px;
  object-fit: contain;
}

.navigation-menu-home-link.site-logo--custom > svg {
  display: none;
}

#latest-news { scroll-margin-top: 78px; }
[data-site-hidden] { display: none !important; }
