/* Layout-only overrides: keep the site navigation unchanged. */
.main,
main {
  background:
    linear-gradient(90deg, rgba(4, 120, 87, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #f6fbf7 0%, #ffffff 42%, #f6fbf7 100%);
  background-size:
    72px 100%,
    auto;
}

.main .container-xl,
main > section > .container,
main > section > .container-xl {
  max-width: 1160px;
}

.portal-nav.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 2140 !important;
}

.portal-nav .navbar-brand img,
.navbar-brand img[src="/assets/logo.png"] {
  object-fit: contain;
  max-width: 132px;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.main > .hero,
main > .hero-news {
  position: relative;
  overflow: hidden;
}

.main > .hero::after,
main > .hero-news::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(44vw, 420px);
  height: min(44vw, 420px);
  background: linear-gradient(
    135deg,
    rgba(4, 120, 87, 0.16),
    rgba(220, 38, 38, 0.08)
  );
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  pointer-events: none;
}

.main > .inner-hero {
  min-height: auto;
  padding-top: clamp(3rem, 6vw, 5.5rem) !important;
  padding-bottom: clamp(2rem, 5vw, 4.25rem) !important;
  background: linear-gradient(
    135deg,
    rgba(230, 244, 234, 0.96),
    rgba(255, 255, 255, 0.98) 58%,
    rgba(246, 251, 247, 0.96)
  );
}

.main > .inner-hero .container-xl {
  position: relative;
  z-index: 1;
}

.main > .inner-hero .breadcrumb {
  display: inline-flex;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #d5e5d9;
  border-radius: 8px;
}

.main > .inner-hero .row.align-items-center {
  align-items: stretch !important;
}

.main > .inner-hero .col-lg-7,
.main > .inner-hero .col-lg-5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main > .inner-hero .col-lg-7 {
  padding: clamp(1.25rem, 3vw, 2.3rem);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d5e5d9;
  border-left: 5px solid #047857;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(4, 120, 87, 0.08);
}

.main > .inner-hero .inner-hero-visual {
  height: 100%;
  min-height: 320px;
  border-radius: 8px !important;
  transform: translateY(28px);
  box-shadow: 0 22px 54px rgba(18, 32, 22, 0.13);
}

.main > .inner-hero .inner-hero-img {
  height: 100%;
  min-height: 320px;
}

body.page-home .hero-carousel {
  min-height: auto;
  padding-top: 1.25rem !important;
  padding-bottom: 3.25rem !important;
  background: linear-gradient(180deg, #f6fbf7, #ffffff);
}

body.page-home .hero-carousel .container-xl {
  max-width: 1280px;
}

body.page-home .hero-carousel-wrap {
  border-radius: 8px !important;
  min-height: 560px;
  box-shadow: 0 24px 60px rgba(4, 120, 87, 0.14);
}

body.page-home .hero-carousel-wrap .carousel-item {
  min-height: 560px;
}

body.page-home .hero-carousel-wrap .hero-carousel-text {
  left: clamp(1rem, 4vw, 4rem);
  right: auto;
  bottom: clamp(1.5rem, 4vw, 4rem);
  width: min(720px, calc(100% - 2rem));
  padding: 0;
}

.main > .section,
.main .peer-market-band,
main > .section-news {
  position: relative;
  padding-top: clamp(2.75rem, 6vw, 5.5rem) !important;
  padding-bottom: clamp(2.75rem, 6vw, 5.5rem) !important;
}

.main > .section:nth-of-type(odd),
main > .section-news:nth-of-type(odd) {
  background: linear-gradient(90deg, #ffffff 0%, #f6fbf7 100%) !important;
}

.main > .section:nth-of-type(even),
main > .section-news:nth-of-type(even) {
  background: linear-gradient(90deg, #e6f4ea 0%, #ffffff 66%) !important;
}

.main .section > .container-xl,
main > .section-news > .container {
  position: relative;
  z-index: 1;
}

.main .section > .container-xl::before,
main > .section-news > .container::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 1.35rem;
  background: #047857;
  border-radius: 999px;
}

.main .media-story-centered > .container-xl::before {
  margin-right: auto;
  margin-left: auto;
}

.main .media-story-centered .section-kicker,
.main .media-story-centered h2,
.main .media-story-centered .section-lede {
  text-align: center;
}

.main .media-story-centered .section-lede {
  margin-right: auto;
  margin-left: auto;
}

.main .article-card.card {
  border-radius: 8px !important;
  border-left: 5px solid #047857 !important;
  box-shadow: 0 18px 42px rgba(4, 120, 87, 0.09) !important;
}

.main .brand-card,
.main .spotlight-card,
.main .eeat-card,
.main .support-card,
.main .team-quote,
.main .portal-table-wrap,
.main .payment-rail,
main .news-panel,
main .article-card {
  border-radius: 8px !important;
}

.main .row.g-4 > [class*="col-"]:nth-child(2n) .brand-card,
.main .row.g-4 > [class*="col-"]:nth-child(2n) .spotlight-card,
.main .row.g-4 > [class*="col-"]:nth-child(2n) .eeat-card,
.main .row.g-4 > [class*="col-"]:nth-child(2n) .article-card {
  margin-top: 1.35rem;
}

.main .row.g-4 > [class*="col-"]:nth-child(3n) .brand-card,
.main .row.g-4 > [class*="col-"]:nth-child(3n) .spotlight-card,
.main .row.g-4 > [class*="col-"]:nth-child(3n) .eeat-card,
.main .row.g-4 > [class*="col-"]:nth-child(3n) .article-card {
  margin-top: 0.55rem;
}

.main .article-card.card > .article-header-img {
  height: 280px;
}

.main .payment-rail,
.main .provider-strip,
.main .support-banner {
  border-left: 5px solid #dc2626;
}

main .hero-news {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(120deg, #e6f4ea 0%, #ffffff 56%, #f6fbf7 100%);
}

main .hero-news .news-panel {
  max-width: 820px;
  margin-left: auto;
}

main .section-news .row {
  align-items: stretch;
}

.portal-footer {
  border-top: 1px solid #d5e5d9 !important;
  background:
    linear-gradient(90deg, rgba(4, 120, 87, 0.08), transparent 35%), #ffffff !important;
}

.portal-footer > .container-xl {
  max-width: 1180px;
}

.portal-footer .footer-brand + p {
  max-width: 520px;
}

@media (min-width: 992px) {
  .main
    .section:nth-of-type(2n)
    .row.align-items-center
    > [class*="col-"]:first-child {
    order: 2;
  }

  .main
    .section:nth-of-type(2n)
    .row.align-items-center
    > [class*="col-"]:last-child {
    order: 1;
  }

  .main .article-card.card:has(> .article-header-img) {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    align-items: stretch;
  }

  .main .article-card.card:has(> .article-header-img) > .article-header-img {
    height: 100%;
    min-height: 340px;
  }

  .portal-footer .row {
    align-items: start !important;
  }
}

@media (max-width: 991.98px) {
  .main > .inner-hero .inner-hero-visual {
    transform: none;
  }

  body.page-home .hero-carousel-wrap,
  body.page-home .hero-carousel-wrap .carousel-item {
    min-height: 500px;
  }

  .main .row.g-4 > [class*="col-"] .brand-card,
  .main .row.g-4 > [class*="col-"] .spotlight-card,
  .main .row.g-4 > [class*="col-"] .eeat-card,
  .main .row.g-4 > [class*="col-"] .article-card {
    margin-top: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .main > .inner-hero .col-lg-7 {
    padding: 1rem;
  }

  body.page-home .hero-carousel-wrap,
  body.page-home .hero-carousel-wrap .carousel-item {
    min-height: 540px;
  }

  body.page-home .hero-carousel-wrap .hero-carousel-text {
    bottom: 2rem;
  }
}
