﻿

/* Desktop-only Core Products tab interaction.
   Scope is limited to the homepage tab list with .codex-core-products-tabs. */
@media screen and (min-width: 1025px) {
  .index-products:has(.codex-core-products-tabs) > .top.l-container {
    width: clamp(890px, 92.70833333333334vw, 3560px);
  }

  .index-products:has(.codex-core-products-tabs) > .bottom.l-container {
    margin-top: 0 !important;
  }

  .index-products:has(.codex-core-products-tabs) .products-banner {
    margin-top: 0 !important;
  }

  .index-products-hd.codex-core-products-tabs {
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: var(--size-70);
    border-bottom: 1px solid rgba(13, 26, 45, 0.12);
  }

  .index-products-hd.codex-core-products-tabs:has(> li:nth-child(1).active) { --core-tab-index: 0; }
  .index-products-hd.codex-core-products-tabs:has(> li:nth-child(2).active) { --core-tab-index: 1; }
  .index-products-hd.codex-core-products-tabs:has(> li:nth-child(3).active) { --core-tab-index: 2; }
  .index-products-hd.codex-core-products-tabs:has(> li:nth-child(4).active) { --core-tab-index: 3; }
  .index-products-hd.codex-core-products-tabs:has(> li:nth-child(1):hover) { --core-tab-index: 0; }
  .index-products-hd.codex-core-products-tabs:has(> li:nth-child(2):hover) { --core-tab-index: 1; }
  .index-products-hd.codex-core-products-tabs:has(> li:nth-child(3):hover) { --core-tab-index: 2; }
  .index-products-hd.codex-core-products-tabs:has(> li:nth-child(4):hover) { --core-tab-index: 3; }

  .index-products-hd.codex-core-products-tabs::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 25%;
    height: 3px;
   background: linear-gradient(
90deg,
transparent 0%,
rgba(0, 129, 186, 0.96) 14%,
rgba(0, 129, 186, 0.96) 86%,
transparent 100%
);
    transform: translateX(calc(var(--core-tab-index, 0) * 100%));
    transition: transform 0.42s cubic-bezier(0.25, 0.74, 0.22, 0.99);
    pointer-events: none;
  }

  .index-products-hd.codex-core-products-tabs > li {
    width: 100%;
    min-width: 0;
    margin: 0;
    opacity: 1 !important;
    transform: none !important;
  }

  .index-products-hd.codex-core-products-tabs > li > a {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 72px;
    padding: 12px 14px 16px;
    overflow: hidden;
    color: #111;
    background: transparent;
    transition:
      transform 0.24s cubic-bezier(0.25, 0.74, 0.22, 0.99),
      color 0.24s cubic-bezier(0.25, 0.74, 0.22, 0.99);
  }

  .index-products-hd.codex-core-products-tabs > li > a::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 12px;
    top: 12px;
    bottom: 0;
    background:
      radial-gradient(ellipse at 22% 44%, rgba(49, 103, 191, 0.2), rgba(49, 103, 191, 0.1) 34%, rgba(49, 103, 191, 0) 72%),
      linear-gradient(90deg, rgba(49, 103, 191, 0.105), rgba(49, 103, 191, 0.042) 58%, rgba(49, 103, 191, 0) 86%),
      linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(49, 103, 191, 0.06));
    opacity: 0;
    transform: translateY(4px) scaleX(0.94);
    transform-origin: left center;
    transition:
      opacity 0.24s cubic-bezier(0.25, 0.74, 0.22, 0.99),
      transform 0.24s cubic-bezier(0.25, 0.74, 0.22, 0.99);
    pointer-events: none;
  }

  .index-products-hd.codex-core-products-tabs > li:hover > a,
  .index-products-hd.codex-core-products-tabs > li.active > a {
    color: #08214a;
    transform: translateY(-4px);
  }

  .index-products-hd.codex-core-products-tabs > li:hover > a::before {
    opacity: 0.82;
    transform: translateY(0) scaleX(1);
  }

  .index-products-hd.codex-core-products-tabs > li.active > a::before {
    opacity: 1;
    transform: translateY(0) scaleX(1);
  }

  .index-products-hd.codex-core-products-tabs .icon {
    width: 54px;
    height: 54px;
    margin: 0;
    flex: 0 0 54px;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0.42;
    transition:
      opacity 0.24s cubic-bezier(0.25, 0.74, 0.22, 0.99),
      transform 0.28s cubic-bezier(0.25, 0.74, 0.22, 0.99);
  }

  .index-products-hd.codex-core-products-tabs .icon img {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
  }

  .index-products-hd.codex-core-products-tabs > li:nth-child(1) .icon img { transform: scale(0.98); }
  .index-products-hd.codex-core-products-tabs > li:nth-child(2) .icon img { transform: scale(1.22); }
  .index-products-hd.codex-core-products-tabs > li:nth-child(3) .icon img { transform: scale(1.08); }
  .index-products-hd.codex-core-products-tabs > li:nth-child(4) .icon img { transform: scale(1.08); }

  .index-products-hd.codex-core-products-tabs > li:hover .icon,
  .index-products-hd.codex-core-products-tabs > li.active .icon {
    opacity: 1;
    transform: translateY(-2px);
  }

  .index-products-hd.codex-core-products-tabs .name {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
	padding-top:12px;
    white-space: normal;
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
    color: inherit;
    text-align: center;
  }

  .index-products-hd.codex-core-products-tabs > li:nth-child(3) .name {
    max-width: 100%;
  }
}

}

}
