/* Public shell, landing pages, catalog and product detail.
   Primary routes: every shared shell, /, /products/ and /products/<slug>/. */

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

body[data-page="home"] {
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

body[data-page="home"] .page-shell {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
}

body[data-page="product-detail"] .page-shell {
  padding-top: 0;
}

body[data-page="home"] .site-header {
  border-bottom: 0;
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo-symbol {
  display: block;
  width: auto;
  height: 27px;
  max-width: 133px;
  object-fit: contain;
}

.nav-links {
  /* The sub-tab panel resolves against the shared header and spans its width. */
  z-index: 2;
  align-self: stretch;
  display: flex;
  gap: 20px;
  align-items: center;
  font-weight: 650;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--brand-dark);
}

.nav-links span {
  color: var(--brand-dark);
  font-size: var(--fs-xs);
  font-weight: 850;
}

.header-account,
.nav-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions {
  gap: var(--icon-action-gap);
}

.auth-state {
  display: flex;
  align-items: center;
  gap: var(--icon-action-gap);
}

.header-welcome {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h-md);
  max-width: 210px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.header-welcome strong {
  min-width: 0;
  overflow: hidden;
  margin-left: 4px;
  color: var(--ink);
  font-weight: 850;
  text-overflow: ellipsis;
}

.cart-nav-link,
.header-notification-link {
  position: relative;
}

.header-icon-button {
  width: var(--control-h-md);
  padding: 0;
  flex: 0 0 var(--control-h-md);
}

.header-icon-label-button {
  padding-inline: 12px;
}

.header-action-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.header-action-icon-mypage {
  -webkit-mask-image: url("../img/icons/circle-user-round.svg?v=ui10-12");
  mask-image: url("../img/icons/circle-user-round.svg?v=ui10-12");
}

.header-action-icon-cart {
  -webkit-mask-image: url("../img/icons/shopping-cart.svg");
  mask-image: url("../img/icons/shopping-cart.svg");
}

.header-action-icon-notification {
  -webkit-mask-image: url("../img/icons/bell.svg");
  mask-image: url("../img/icons/bell.svg");
}

.header-action-icon-inquiry {
  -webkit-mask-image: url("../img/icons/mail.svg");
  mask-image: url("../img/icons/mail.svg");
}

.header-action-icon-logout {
  -webkit-mask-image: url("../img/icons/log-out.svg");
  mask-image: url("../img/icons/log-out.svg");
}

.header-action-icon-ops {
  -webkit-mask-image: url("../img/icons/panels-top-left.svg");
  mask-image: url("../img/icons/panels-top-left.svg");
}

.header-action-icon-signup {
  -webkit-mask-image: url("../img/icons/user-round-plus.svg");
  mask-image: url("../img/icons/user-round-plus.svg");
}

.header-action-icon-login {
  -webkit-mask-image: url("../img/icons/log-in.svg");
  mask-image: url("../img/icons/log-in.svg");
}

.cart-count-badge,
.notification-count-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: #c91536;
  color: var(--text-inverse);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  animation: cart-count-blink 1.25s ease-in-out infinite;
}

.header-icon-button .cart-count-badge,
.header-icon-button .notification-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;
}

@keyframes cart-count-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.48;
    transform: scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-count-badge,
  .notification-count-badge {
    animation: none;
  }
}

.button.header-icon-disabled,
.button.header-icon-disabled:hover {
  pointer-events: none;
  background: var(--surface);
  cursor: default;
  opacity: 0.55;
}

.menu-button {
  display: none;
  width: var(--control-h-md);
  min-height: var(--control-h-md);
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  color: var(--ink);
  font-size: 0;
  cursor: pointer;
}

.menu-button::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("../img/icons/menu.svg") center / contain no-repeat;
  mask: url("../img/icons/menu.svg") center / contain no-repeat;
}

/* Shared buttons: .button is the pill primary, .secondary the white variant, .danger the destructive one. The cart count badge lives here too.
*/
.button,
.button-link.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: var(--control-h-md);
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--brand-dark);
  color: var(--text-inverse);
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.2;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #0c5a42;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--brand-soft);
}

.button.danger {
  background: var(--danger);
  color: var(--text-inverse);
}

.button.danger:hover {
  background: #7c2335;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 7px 12px;
  font-weight: 760;
  font-size: var(--fs-md);
}

/* Landing hero banner and section headings.
*/
.hero {
  padding: 76px 0 48px;
}

.hero-banner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 92px 0 24px;
  background: #edf2ef;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 250, 248, 0.96) 0%, rgba(247, 250, 248, 0.88) 37%, rgba(247, 250, 248, 0.28) 72%),
    linear-gradient(180deg, rgba(247, 250, 248, 0.06), rgba(247, 250, 248, 0.18));
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 120px;
  background: linear-gradient(180deg, rgba(247, 250, 248, 0), var(--bg));
  pointer-events: none;
}

.hero-banner-media {
  position: absolute;
  inset: 0;
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 1.8s ease;
}

.hero-banner-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-banner-content {
  position: relative;
  z-index: 3;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
}

.hero-banner-slides {
  position: relative;
  min-height: 0;
}

.hero-banner-slide {
  --hero-primary: #17324D;
  --hero-accent: #b54708;
  --hero-cta: #158f86;
  --hero-cta-hover: #0e736c;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  max-width: 620px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
  pointer-events: none;
}

.hero-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  pointer-events: auto;
}

.hero-banner-slide--food {
  --hero-primary: #17324D;
  --hero-accent: #b54708;
  --hero-cta: #119c91;
  --hero-cta-hover: #0c7c74;
  max-width: 760px;
}

.hero-banner-slide--food .hero-banner-copy {
  width: min(100%, 720px);
}

.hero-banner-slide--food .hero-banner-primary .hero-banner-line {
  white-space: nowrap;
}

.hero-banner-copy {
  width: min(100%, 580px);
}

.hero-banner-headline {
  margin: 0;
  /*font-size: clamp(1.85rem, 2.15vw, 2.4rem); */
  font-size: clamp(2rem, 3vw, 4rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: 0;
}

.hero-banner-primary,
.hero-banner-accent,
.hero-banner-line {
  display: block;
}

.hero-banner-primary {
  color: var(--hero-primary);
}

.hero-banner-accent {
  margin-top: 24px;
  color: var(--hero-accent);
}

.hero-banner-accent strong {
  font-weight: 700;
}

.hero-banner-cta.button {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 230px;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding-inline: 16px;
  border-radius: 7px;
  background: var(--hero-cta);
  font-size: 0.8rem;
  font-weight: 400;
}

.hero-banner-cta.button:hover {
  background: var(--hero-cta-hover);
}

.hero-banner-dots {
  position: relative;
  z-index: 4;
  align-self: end;
  justify-self: start;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 20px;
  margin-top: 12px;
}

.hero-banner-dot {
  width: 42px;
  height: 4px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(34, 67, 55, 0.28);
  cursor: pointer;
}

.hero-banner-dot.is-active {
  background: var(--brand-dark);
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner-slide,
  .hero-banner-image {
    transition: none;
  }
}

@media (min-width: 641px) {
  .hero-banner::before {
    background:
      linear-gradient(90deg, rgba(247, 250, 248, 0.78) 0%, rgba(247, 250, 248, 0.52) 30%, rgba(247, 250, 248, 0.08) 58%, rgba(247, 250, 248, 0) 76%),
      linear-gradient(180deg, rgba(247, 250, 248, 0.02), rgba(247, 250, 248, 0.08));
  }

  .hero-banner-image {
    object-fit: cover;
    object-position: right center;
  }
}

.section {
  padding: 58px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section .lead {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
}

.service-flow {
  padding-top: 18px;
}

.home-featured-services {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section h2.home-section-title,
.products-page-title h1.home-section-title,
.bioinfo-hub-header h1.home-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--decorated-section-title-size);
  font-weight: 700;
  line-height: 1.2;
}

.home-section-title::before {
  width: 8px;
  height: 1.1em;
  flex: 0 0 8px;
  border-radius: 2px;
  background: var(--decorated-section-title-bar);
  content: "";
}

/* Step-by-step usage guide on the landing page.
*/
.step-strip {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  grid-template-rows: auto 48px auto;
  gap: 12px 14px;
  align-items: stretch;
  width: 80%;
  margin: 0 auto;
}

.step-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.step-card--1 {
  grid-area: 1 / 1;
}

.step-card--2 {
  grid-area: 1 / 3;
}

.step-card--3 {
  grid-area: 3 / 1;
}

.step-card--4 {
  grid-area: 3 / 3;
}

.step-card-copy {
  display: grid;
  row-gap: 12px;
  min-height: 0;
  padding: 20px 22px 12px;
}

.step-card-heading {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 20px;
}

.step-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-top: auto;
  object-fit: cover;
  background: var(--brand-soft);
}

.step-card-label {
  display: block;
  margin: 0;
  color: var(--brand-dark);
  font-size: var(--fs-sm);
  font-weight: 900;
  white-space: nowrap;
}

.step-card h3 {
  margin: 0;
  font-size: var(--fs-ti2);
  line-height: 1.25;
}

.step-card-body {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-lg);
}

.step-card-body p {
  margin: 0;
}

.step-card-body p + p {
  margin-top: 10px;
}

.step-flow-arrow {
  position: relative;
  z-index: 10;
  align-self: center;
  justify-self: center;
  width: 32px;
  height: 36px;
  overflow: visible;
}

.step-flow-arrow::before,
.step-flow-arrow::after {
  position: absolute;
  display: block;
  background: var(--brand);
  content: "";
}

.step-flow-arrow::before {
  top: 12px;
  left: 0;
  width: 23px;
  height: 12px;
  border-radius: 2px 0 0 2px;
}

.step-flow-arrow::after {
  top: 0;
  right: 0;
  width: 10px;
  height: 36px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.step-flow-arrow--1 {
  grid-area: 1 / 2;
}

.step-flow-arrow--2 {
  grid-area: 2 / 2;
  transform: rotate(135deg);
}

.step-flow-arrow--3 {
  grid-area: 3 / 2;
}

.landing-carousel {
  display: grid;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
}

.landing-carousel-arrow {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.landing-carousel-arrow-icon {
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.landing-carousel-arrow-prev .landing-carousel-arrow-icon {
  -webkit-mask-image: url("../img/icons/chevron-left-bold.svg");
  mask-image: url("../img/icons/chevron-left-bold.svg");
}

.landing-carousel-arrow-next .landing-carousel-arrow-icon {
  -webkit-mask-image: url("../img/icons/chevron-right-bold.svg");
  mask-image: url("../img/icons/chevron-right-bold.svg");
}

.landing-carousel .step-strip,
.landing-carousel .product-rail {
  min-width: 0;
}

.icon-button {
  width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.icon-button:disabled:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Product card grid on the landing and product list pages.
*/
.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 42%);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
}

.product-rail .product-card {
  scroll-snap-align: start;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: none;
}

.product-thumbnail-frame {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-thumbnail-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.product-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px;
}

.product-card-title {
  display: -webkit-box;
  min-height: calc(2 * 1.25em);
  max-height: calc(2 * 1.25em);
  overflow: hidden;
  margin: 0;
  font-size: var(--fs-ti);
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-card-title a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.product-card-summary {
  display: -webkit-box;
  min-height: calc(3 * 1.5em);
  max-height: calc(3 * 1.5em);
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Site footer: company details and policy links.
*/
.footer {
  margin-top: 70px;
  padding: 42px 0;
  background: #102d26;
  color: #d9eee7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.footer a {
  display: block;
  color: #bdd9cf;
  margin: 8px 0;
}

.footer h3,
.footer h4 {
  color: var(--text-inverse);
  margin-top: 0;
}

.company-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  color: #9bbdb2;
  font-size: 0.92rem;
}

.company-list li {
  margin: 4px 0;
}

/* Public content pages (about / magazine / contact), ported from the draft source. */
.page-title {
  padding: 56px 0 24px;
}

.page-title h1 {
  margin: 0 0 10px;
  font-size: clamp(calc(2.2rem - 5px), calc(5vw - 5px), calc(4rem - 5px));
  line-height: 1.05;
  letter-spacing: 0;
}

.products-page-title h1 {
  font-size: clamp(calc(2.0125rem - 5px), calc(5vw - 8px), calc(3.8125rem - 5px));
}

.page-title p {
  max-width: 760px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: none;
}

.card h3 {
  margin: 12px 0 8px;
  font-size: var(--fs-ti);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.content-page {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  padding: 32px;
  box-shadow: none;
}

.content-page h2 {
  margin-top: 32px;
}

.content-page h2:first-child {
  margin-top: 0;
}

/* Legal documents (terms / privacy), ported from the draft source. */
/* Legal document pages and the list filter chips.
*/
.legal-doc h2 {
  font-size: var(--fs-ti);
  line-height: 1.35;
  letter-spacing: 0;
}

.legal-doc h3 {
  margin: 22px 0 8px;
  font-size: var(--fs-lg);
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 22px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.legal-doc table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
}

.legal-doc th,
.legal-doc td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.legal-doc tr:last-child td {
  border-bottom: 0;
}

.legal-doc th:last-child,
.legal-doc td:last-child {
  border-right: 0;
}

.legal-note {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #f0dfbc;
  border-radius: var(--radius-xl);
  background: var(--warning-soft);
  color: #69522a;
}

/* Product-list carousel reuses the same cards and rail as the landing page. */
.product-catalog-carousel {
  position: relative;
}

.product-catalog-carousel .product-rail {
  min-width: 0;
}

.product-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.product-carousel-arrow-prev {
  left: -56px;
}

.product-carousel-arrow-next {
  right: -56px;
}

@media (max-width: 900px) {
  .product-catalog-carousel .product-rail {
    grid-auto-columns: 100%;
  }

  .product-carousel-arrow-prev {
    left: -12px;
  }

  .product-carousel-arrow-next {
    right: -12px;
  }

  .product-carousel-arrow {
    top: 30%;
  }
}

/* Product detail page (draft product-detail.html): purchase panel + detail sections. */
.product-top-section {
  margin-inline: calc(50% - 50vw);
  padding: 38px 0 46px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.product-detail-page {
  --product-purchase-summary-width: 240px;
  --product-action-grid-width: 232px;
  --product-purchase-controls-gap: 16px;
  --product-detail-sticky-top: 73px;
}

.product-purchase-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 40px;
  align-items: center;
  max-width: 848px;
}

@media (min-width: 901px) {
  .product-purchase-layout {
    --product-gallery-width: 324px;
    --product-purchase-column-gap: 24px;

    width: 100%;
    max-width: calc(
      var(--product-gallery-width) + var(--product-purchase-column-gap) + var(--product-purchase-summary-width) +
        var(--product-purchase-controls-gap) + var(--product-action-grid-width)
    );
    column-gap: var(--product-purchase-column-gap);
    justify-content: start;
  }

  .product-purchase-layout-asymmetric {
    grid-template-columns:
      minmax(0, var(--product-gallery-width))
      minmax(
        0,
        calc(
          var(--product-purchase-summary-width) + var(--product-purchase-controls-gap) +
            var(--product-action-grid-width)
        )
      );
  }

  .product-purchase-panel {
    width: calc(
      var(--product-purchase-summary-width) + var(--product-purchase-controls-gap) +
        var(--product-action-grid-width)
    );
  }

  .quantity-control {
    width: 96px;
    grid-template-columns: 24px minmax(40px, 1fr) 24px;
  }
}

.product-gallery,
.product-purchase-panel {
  min-width: 0;
}

.product-main-image-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.product-main-image-button img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: var(--surface);
}

.product-thumbnail-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.product-thumbnail-slide[hidden] {
  display: none;
}

.product-thumbnail-slider-control,
.product-thumbnail-slider-dots {
  display: none;
}

.product-thumbnail-slider.is-enhanced .product-thumbnail-slider-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(34, 34, 34, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  transform: translateY(-50%);
  cursor: pointer;
}

.product-thumbnail-slider.is-enhanced .product-thumbnail-slider-previous {
  left: 12px;
}

.product-thumbnail-slider.is-enhanced .product-thumbnail-slider-next {
  right: 12px;
}

.product-thumbnail-slider-control span {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.product-thumbnail-slider-previous span {
  -webkit-mask-image: url("../img/icons/chevron-left.svg");
  mask-image: url("../img/icons/chevron-left.svg");
}

.product-thumbnail-slider-next span {
  -webkit-mask-image: url("../img/icons/chevron-right.svg");
  mask-image: url("../img/icons/chevron-right.svg");
}

.product-thumbnail-slider.is-enhanced .product-thumbnail-slider-dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.product-thumbnail-slider-dots button {
  width: 9px;
  height: 9px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(34, 34, 34, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.product-thumbnail-slider-dots button[aria-current="true"] {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.product-thumbnail-slider:focus-visible {
  outline: 3px solid rgba(0, 139, 139, 0.35);
  outline-offset: 3px;
}

.product-purchase-panel h1 {
  margin: 0 0 14px;
  font-size: var(--fs-ti);
  line-height: 1.18;
  letter-spacing: 0;
}

.product-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 650;
}

.product-rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  color: #9a650f;
  font-size: var(--fs-sm);
}

.product-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.product-rating-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask: url("../img/icons/star.svg") center / contain no-repeat;
  mask: url("../img/icons/star.svg") center / contain no-repeat;
}

.product-rating-summary strong {
  font-weight: 700;
}

.product-rating-value {
  font-size: var(--fs-lg);
}

.product-rating-recent {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.2;
}

.product-rating-recent .product-rating-value {
  font-weight: 700;
}

.product-rating-line .product-review-more-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--brand-dark);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.product-rating-line .product-review-more-action:hover,
.product-rating-line .product-review-more-action:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

.product-review-more-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask: url("../img/icons/eye.svg") center / contain no-repeat;
  mask: url("../img/icons/eye.svg") center / contain no-repeat;
}

.product-price-box {
  padding: 0 0 12px;
  font-size: var(--fs-sm);
}

.product-price-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

.product-price-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.product-price-label {
  color: var(--muted);
  font-weight: 400;
}

.product-price-divider {
  color: var(--cc-bar);
  font-weight: 400;
}

.product-normal-price {
  color: var(--muted);
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.product-sale-price {
  color: #8b1a2a;
  font-size: var(--fs-lg);
  font-weight: 700;
}

.product-card .product-rating-line {
  margin: 0 0 6px;
}

.product-card .product-rating-summary {
  white-space: nowrap;
}

.product-card .product-price-box {
  margin: auto 0 4px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.product-card .product-price-line {
  flex-wrap: wrap;
  row-gap: 5px;
}

.product-card .product-normal-price {
  font-weight: 400;
}

/* Compact purchase metadata below the price line. */
.product-info-lines {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  font-size: var(--fs-sm);
}

.product-info-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: 5px;
  margin: 0;
}

.product-info-line--delivery {
  align-items: center;
}

.product-info-label,
.product-delivery-copy {
  font-weight: 400;
}

.product-info-label {
  color: var(--muted);
}

.product-reward-points {
  color: var(--ink);
  font-weight: 700;
}

.product-delivery-copy {
  color: #000;
}

/* Purchase actions and the compact quantity/payment panel. */
.product-purchase-controls {
  display: flex;
  align-items: stretch;
  gap: var(--product-purchase-controls-gap);
  width: 100%;
}

.product-purchase-slot {
  min-width: 0;
  width: 100%;
}

.product-detail-mobile-purchase {
  display: none;
}

.product-mobile-purchase-dialog {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: min(80vh, 520px);
  margin: auto 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
  color: var(--ink);
}

.product-mobile-purchase-dialog::backdrop {
  background: rgba(20, 31, 28, 0.5);
}

.product-mobile-purchase-dialog-panel {
  max-height: min(80vh, 520px);
  padding: 16px max(16px, env(safe-area-inset-left)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  overflow-y: auto;
}

.product-mobile-purchase-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.product-mobile-purchase-dialog-head h2 {
  margin: 0;
  font-size: var(--fs-md);
}

.product-mobile-purchase-dialog-close {
  display: grid;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.product-mobile-purchase-dialog-close span {
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("../img/icons/cancel.svg") center / contain no-repeat;
  mask: url("../img/icons/cancel.svg") center / contain no-repeat;
}

body.product-purchase-dialog-open {
  overflow: hidden;
}

.product-purchase-summary-row {
  display: flex;
  flex: 0 0 var(--product-purchase-summary-width);
  width: var(--product-purchase-summary-width);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.quantity-control {
  display: grid;
  grid-template-columns: 24px minmax(28px, 1fr) 24px;
  gap: 4px;
  min-width: 0;
}

.quantity-control button,
.quantity-control input {
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1;
}

.quantity-control button {
  cursor: pointer;
}

.quantity-control button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.product-payment-total {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.product-payment-total strong {
  color: #8b1a2a;
  font-size: var(--fs-lg);
  font-weight: 700;
}

@media (min-width: 641px) {
  .product-payment-total {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
  }
}

.product-action-grid {
  display: grid;
  flex: 0 0 var(--product-action-grid-width);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: var(--product-action-grid-width);
  margin: 0;
}

.purchase-actions,
.secondary-product-actions {
  display: contents;
}

.purchase-actions > :first-child {
  grid-column: 1 / -1;
}

.product-action-grid form {
  display: grid;
  min-width: 0;
  margin: 0;
}

.product-purchase-slot--mobile-sheet .product-purchase-controls {
  display: grid;
  gap: 12px;
}

.product-purchase-slot--mobile-sheet .product-purchase-summary-row,
.product-purchase-slot--mobile-sheet .product-action-grid {
  width: 100%;
  flex: none;
}

.product-purchase-slot--mobile-sheet .product-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-purchase-slot--mobile-sheet .purchase-actions > :first-child {
  grid-column: auto;
}

.product-purchase-slot--mobile-sheet .secondary-product-actions {
  display: none;
}

.product-action-button,
.product-action-button:hover {
  min-height: 34px;
  min-width: 0;
  padding: 0 6px;
  gap: 5px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: #111111;
  font-size: var(--fs-sm);
  font-weight: 400;
  white-space: nowrap;
}

.product-action-button:hover {
  background: var(--brand-soft);
}

.product-action-button-primary,
.product-action-button-primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: var(--text-inverse);
}

.product-action-button-primary:hover {
  background: #0c5a42;
}

.product-action-button-cart,
.product-action-button-cart:hover {
  border-color: #5ebd00;
  background: #7cfc00;
  color: #000;
}

.product-action-button-cart:hover {
  background: #70e500;
}

.product-action-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.product-action-icon-buy {
  -webkit-mask-image: url("../img/icons/credit-card.svg");
  mask-image: url("../img/icons/credit-card.svg");
}

.product-action-icon-cart {
  -webkit-mask-image: url("../img/icons/shopping-cart.svg");
  mask-image: url("../img/icons/shopping-cart.svg");
}

.product-action-icon-wishlist {
  -webkit-mask-image: url("../img/icons/star.svg");
  mask-image: url("../img/icons/star.svg");
}

.review-highlight-section {
  padding: 38px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.review-highlight-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.featured-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.featured-review-card,
.review-item,
.qna-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 16px;
}

.detail-section .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-section {
  padding-top: 0;
}

.detail-content,
.product-detail-copy,
.product-detail-description-shell {
  min-width: 0;
}

#detail-description.product-detail-copy {
  padding: 0;
  overflow: hidden;
  border-radius: 0;
}

.product-detail-description-fallback {
  padding: 32px;
}

@media (min-width: 901px) {
  .detail-section .detail-layout {
    max-width: 836px;
  }

  .detail-tabs-direct-menu,
  .product-detail-description-shell {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }
}

.detail-tabs-shell {
  position: sticky;
  top: var(--product-detail-sticky-top);
  z-index: 5;
  margin-bottom: 0;
}

.detail-tabs-shell .detail-tabs {
  position: static;
  margin-bottom: 0;
}

.detail-tabs {
  position: sticky;
  top: var(--product-detail-sticky-top);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 16px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
}

.detail-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.2;
}

.detail-tabs a:hover {
  background: transparent;
  color: var(--brand-dark);
}

.detail-tabs [aria-current="location"] {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

#product-order,
.product-detail-copy {
  scroll-margin-top: 104px;
}

#detail-reviews,
#detail-qna {
  border-radius: 0;
  font-size: var(--fs-sm);
}

#detail-reviews {
  margin-bottom: 10px;
}

.review-list,
.qna-list {
  display: grid;
  gap: 12px;
}

.review-item p,
.qna-list p,
.product-detail-copy p {
  color: var(--muted);
}

.qna-list summary {
  cursor: pointer;
  font-weight: 850;
}

.feedback-section-head,
.feedback-row-meta,
.feedback-row-actions,
.feedback-form-actions,
.feedback-login-prompt,
.qna-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-section-head {
  margin-bottom: 16px;
}

.feedback-section-title {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px 8px;
}

.feedback-section-head h2 {
  font-size: var(--fs-ti);
  line-height: 1.35;
  letter-spacing: 0;
}

.feedback-section-divider {
  color: var(--cc-bar);
  font-size: var(--fs-sm);
  font-weight: 400;
}

.feedback-rating-star {
  color: var(--accent-amber);
}

.feedback-section-head h2,
.feedback-section-head p,
.feedback-row-meta,
.review-item p,
.qna-thread-body p,
.qna-answer p {
  margin: 0;
}

.feedback-section-head p,
.feedback-row-meta span,
.qna-list summary > span:last-child,
.qna-answer span {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.product-feedback-compose-action {
  flex: 0 0 32px;
}

.product-feedback-compose-icon {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.product-feedback-compose-icon-write {
  -webkit-mask-image: url("../img/icons/pencil.svg");
  mask-image: url("../img/icons/pencil.svg");
}

.modal-dialog.product-feedback-compose-dialog {
  width: min(620px, calc(100vw - 40px));
  max-width: 620px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: var(--fs-sm);
  text-align: left;
}

.product-feedback-compose-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.product-feedback-compose-dialog-head h2 {
  margin: 0;
  font-size: var(--fs-ti);
  line-height: 1.35;
  letter-spacing: 0;
}

.order-card-icon-action.product-feedback-compose-close {
  flex: 0 0 32px;
  border-color: #ff82ab;
  color: #ff82ab;
}

.order-card-icon-action.product-feedback-compose-close:hover,
.order-card-icon-action.product-feedback-compose-close:focus-visible {
  border-color: #db7093;
  background: #fff0f5;
  color: #db7093;
}

.product-feedback-compose-dialog-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--icon-action-gap);
}

.product-feedback-compose-confirm {
  cursor: pointer;
}

.product-feedback-compose-confirm-icon,
.product-feedback-compose-close-icon {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
}

.product-feedback-compose-confirm-icon {
  -webkit-mask: url("../img/icons/circle-check.svg?v=ui10-12") center / contain no-repeat;
  mask: url("../img/icons/circle-check.svg?v=ui10-12") center / contain no-repeat;
}

.product-feedback-compose-close-icon {
  -webkit-mask: url("../img/icons/cancel.svg") center / contain no-repeat;
  mask: url("../img/icons/cancel.svg") center / contain no-repeat;
}

.product-feedback-compose-dialog .product-feedback-form,
.product-feedback-compose-dialog .feedback-login-prompt {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-feedback-compose-dialog > .empty-state {
  margin: 0;
}

.feedback-notice,
.feedback-login-prompt,
.product-feedback-form {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7faf8;
}

.feedback-notice {
  color: var(--brand-dark);
  font-weight: 800;
}

.feedback-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr);
  gap: 12px;
}

.product-review-rating-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.product-review-rating-line,
.product-review-body-label,
.product-question-body-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-review-rating-label,
.product-review-body-label label,
.product-question-body-label label,
.product-feedback-compose-dialog .inline-check {
  padding: 0;
  font-size: inherit;
  font-weight: 400;
}

.product-review-star-rating {
  display: inline-flex;
  width: fit-content;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.product-review-star-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.product-review-star-rating label {
  color: #b8c1bd;
  cursor: pointer;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.product-review-star-rating input:checked ~ label,
.product-review-star-rating label:hover,
.product-review-star-rating label:hover ~ label {
  color: #e79d18;
}

.product-review-star-rating input:focus-visible + label {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.product-review-deadline {
  margin: 0;
}

.product-review-body-label output,
.product-question-body-label output {
  color: var(--muted);
  font-size: inherit;
  font-weight: 400;
}

.product-review-body-label output.is-over-limit,
.product-question-body-label output.is-over-limit {
  color: var(--danger);
}

.product-feedback-form textarea,
.compact-feedback-form textarea {
  resize: vertical;
}

.feedback-form-actions {
  justify-content: flex-end;
}

.review-item {
  display: grid;
  gap: 10px;
  border-radius: var(--radius-sm);
}

.feedback-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
}

.feedback-pagination a {
  color: var(--brand-dark);
  font-weight: 800;
}

.qna-list details {
  border-radius: var(--radius-sm);
}

.qna-list summary > span:last-child {
  font-weight: 400;
}

.qna-list details.notification-target-focus {
  outline: 3px solid rgba(25, 118, 97, 0.34);
  outline-offset: 2px;
  background-color: rgba(225, 244, 238, 0.45);
  scroll-margin-top: 7rem;
}

.qna-list summary {
  align-items: flex-start;
}

.qna-summary-copy {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.feedback-status {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.feedback-status.danger {
  border-color: #d9a2ab;
  color: #9f1831;
}

.qna-thread-body,
.qna-answer,
.compact-feedback-form,
.feedback-row-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.qna-answer {
  display: grid;
  gap: 6px;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
}

.compact-feedback-form {
  display: grid;
  gap: 8px;
}

.feedback-row-actions {
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .feedback-login-prompt,
  .qna-list summary {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-login-prompt .button {
    width: 100%;
  }
}

/* Sapiens Bio company story. */
body[data-page="about-company"] .page-shell,
body[data-page="about-story"] .page-shell {
  width: 100%;
  max-width: none;
  padding-block: 0;
  padding-inline: 0;
}

body[data-page="about-company"] .footer,
body[data-page="about-story"] .footer {
  margin-top: 0;
}

body[data-page="about-company"],
body[data-page="about-story"] {
  word-break: keep-all;
  overflow-wrap: break-word;
}

body[data-page="bioinfo"] {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.bioinfo-hub {
  padding: 56px 0 clamp(72px, 9vw, 128px);
  background: #f6f7f4;
  color: var(--ink);
}

.bioinfo-hub-rail {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.bioinfo-hub-header {
  max-width: 820px;
  margin-bottom: clamp(32px, 4.4vw, 56px);
}

.bioinfo-hub-header h1 {
  margin: 0 0 18px;
  color: #0d4331;
  font-size: clamp(24px, 2.8vw, 36.8px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.3;
}

.bioinfo-hub-header p {
  margin: 0;
  color: #46524c;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.8;
}

.bioinfo-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
}

.bioinfo-topic-card {
  display: grid;
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: center;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid #dbe4dd;
  border-radius: 6px;
  background: #fff;
}

.bioinfo-topic-thumbnail {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1ee;
}

.bioinfo-topic-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bioinfo-topic-copy h2 {
  margin: 0 0 12px;
  color: #0d4331;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.bioinfo-topic-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.bioinfo-topic-copy h2 a:hover {
  color: var(--brand-dark);
}

.bioinfo-topic-copy p {
  margin: 0;
  color: #46524c;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.7;
}

body[data-page="bio-cognitive"],
body[data-page="bio-cognitive-detail"],
body[data-page="bio-allergy"],
body[data-page="bio-allergy-detail"] {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.cognitive-page-title {
  background: #f6f7f4;
}

.cognitive-page-title h1 {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--decorated-section-title-size);
  line-height: 1.2;
}

body[data-page="bio-cognitive"] .cognitive-page-title,
body[data-page="bio-allergy"] .cognitive-page-title {
  padding-bottom: 6px;
}

body[data-page="bio-cognitive"] .cognitive-page-title .container,
body[data-page="bio-allergy"] .cognitive-page-title .container {
  display: grid;
  gap: 8px;
}

body[data-page="bio-cognitive"] .cognitive-page-title .container::after,
body[data-page="bio-allergy"] .cognitive-page-title .container::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
}

body[data-page="bio-cognitive"] .cognitive-page-title h1,
body[data-page="bio-allergy"] .cognitive-page-title h1 {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

body[data-page="bio-cognitive"] .cognitive-page-title h1::before,
body[data-page="bio-allergy"] .cognitive-page-title h1::before {
  content: "";
  width: 8px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--decorated-section-title-bar);
}

.cognitive-page-heading-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cognitive-page-heading-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: var(--icon-action-gap);
  align-items: center;
}

.cognitive-title-service-action,
.cognitive-title-bioinfo-action,
.cognitive-title-nav-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-inverse);
  text-decoration: none;
}

.cognitive-title-service-action::before,
.cognitive-title-service-action::after,
.cognitive-title-bioinfo-action::before,
.cognitive-title-bioinfo-action::after,
.cognitive-title-nav-action::before,
.cognitive-title-nav-action::after {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
}

.cognitive-title-service-action::before,
.cognitive-title-bioinfo-action::before,
.cognitive-title-nav-action::before {
  content: "";
  top: calc(100% + 3px);
  right: 10px;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #25282c;
  border-left: 5px solid transparent;
  transform: translateY(-2px);
}

.cognitive-title-service-action::after,
.cognitive-title-bioinfo-action::after,
.cognitive-title-nav-action::after {
  content: attr(data-tooltip);
  top: calc(100% + 8px);
  right: 0;
  padding: 5px 8px;
  border-radius: 4px;
  background: #25282c;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateY(-2px);
}

.cognitive-title-service-action:hover::before,
.cognitive-title-service-action:hover::after,
.cognitive-title-service-action:focus-visible::before,
.cognitive-title-service-action:focus-visible::after,
.cognitive-title-bioinfo-action:hover::before,
.cognitive-title-bioinfo-action:hover::after,
.cognitive-title-bioinfo-action:focus-visible::before,
.cognitive-title-bioinfo-action:focus-visible::after,
.cognitive-title-nav-action:hover::before,
.cognitive-title-nav-action:hover::after,
.cognitive-title-nav-action:focus-visible::before,
.cognitive-title-nav-action:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.cognitive-title-service-action {
  gap: 2px;
  width: auto;
  min-width: 40px;
  padding: 0 9px;
  background: #158f86;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cognitive-title-service-action:hover,
.cognitive-title-service-action:focus-visible {
  background: #0e736c;
}

.cognitive-title-action-label {
  display: inline-block;
  letter-spacing: 0;
}

.cognitive-title-bioinfo-action {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.cognitive-title-nav-action {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.cognitive-title-bioinfo-action:hover,
.cognitive-title-bioinfo-action:focus-visible,
.cognitive-title-nav-action:hover,
.cognitive-title-nav-action:focus-visible {
  background: var(--brand-soft);
}

.cognitive-title-nav-action.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.cognitive-title-action-icon {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.cognitive-title-action-icon-service {
  width: 15px;
  height: 15px;
  -webkit-mask-image: url("../img/icons/chevron-right.svg");
  mask-image: url("../img/icons/chevron-right.svg");
}

@media (max-width: 640px) {
  .cognitive-title-service-action {
    gap: 2px;
    min-height: 36px;
    padding: 0 7px;
    font-size: 0.6875rem;
  }

  .cognitive-title-service-action .cognitive-title-action-icon {
    width: 13px;
    height: 13px;
  }

  body[data-page="bio-cognitive"] .cognitive-page-title h1,
  body[data-page="bio-allergy"] .cognitive-page-title h1 {
    gap: 6px;
    letter-spacing: 0;
  }
}

.cognitive-title-action-icon-bioinfo {
  -webkit-mask-image: url("../img/icons/list.svg");
  mask-image: url("../img/icons/list.svg");
}

.cognitive-title-action-icon-previous {
  -webkit-mask-image: url("../img/icons/chevron-left.svg");
  mask-image: url("../img/icons/chevron-left.svg");
}

.cognitive-title-action-icon-next {
  -webkit-mask-image: url("../img/icons/chevron-right.svg");
  mask-image: url("../img/icons/chevron-right.svg");
}

.cognitive-title-action-icon-parent {
  -webkit-mask-image: url("../img/icons/list.svg");
  mask-image: url("../img/icons/list.svg");
}

body[data-page="bio-cognitive-detail"] .cognitive-page-title,
body[data-page="bio-allergy-detail"] .cognitive-page-title {
  padding-bottom: 6px;
}

body[data-page="bio-cognitive-detail"] .cognitive-page-title .container,
body[data-page="bio-allergy-detail"] .cognitive-page-title .container {
  display: grid;
  gap: 8px;
  max-width: 940px;
}

body[data-page="bio-cognitive-detail"] .cognitive-page-title .container::after,
body[data-page="bio-allergy-detail"] .cognitive-page-title .container::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
}

body[data-page="bio-cognitive-detail"] .cognitive-page-title h1,
body[data-page="bio-allergy-detail"] .cognitive-page-title h1 {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: var(--fs-ti);
}

body[data-page="bio-cognitive-detail"] .cognitive-page-title h1::before,
body[data-page="bio-allergy-detail"] .cognitive-page-title h1::before {
  content: "";
  width: 8px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, #165f45 0 50%, #80601d 50% 100%);
}

.cognitive-detail-title-number {
  flex: 0 0 auto;
  color: #cd1076;
  font-weight: 800;
}

.cognitive-detail-title-text {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 640px) {
  body[data-page="bio-cognitive-detail"] .cognitive-page-title .container,
  body[data-page="bio-allergy-detail"] .cognitive-page-title .container {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 8px;
  }

  body[data-page="bio-cognitive-detail"] .cognitive-breadcrumb,
  body[data-page="bio-allergy-detail"] .cognitive-breadcrumb {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    margin-bottom: 0;
  }

  body[data-page="bio-cognitive-detail"] .cognitive-detail-heading-row,
  body[data-page="bio-allergy-detail"] .cognitive-detail-heading-row {
    display: contents;
  }

  body[data-page="bio-cognitive-detail"] .cognitive-detail-heading-row h1,
  body[data-page="bio-allergy-detail"] .cognitive-detail-heading-row h1 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
  }

  body[data-page="bio-cognitive-detail"] .cognitive-detail-heading-actions,
  body[data-page="bio-allergy-detail"] .cognitive-detail-heading-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  body[data-page="bio-cognitive-detail"] .cognitive-page-title .container::after,
  body[data-page="bio-allergy-detail"] .cognitive-page-title .container::after {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

.cognitive-index-section,
.cognitive-detail-section {
  background: #f6f7f4;
}

.cognitive-index-section {
  padding-top: 12px;
}

.cognitive-detail-section {
  padding-top: 24px;
}

.cognitive-lecture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cognitive-lecture-card {
  min-width: 0;
  border: 1px solid #dbe4dd;
  border-radius: 6px;
  background: #fff;
}

.cognitive-lecture-card a {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 100%;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.cognitive-lecture-card a:hover h2 {
  color: var(--brand-dark);
}

.cognitive-lecture-number {
  flex: 0 0 34px;
  width: 34px;
  display: block;
  color: #cd1076;
  font-size: var(--fs-ti);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.cognitive-lecture-card h2 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: #0d4331;
  font-size: var(--fs-ti);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

.cognitive-lecture-card h2::before {
  content: "";
  position: absolute;
  top: 0.16em;
  bottom: 0.16em;
  left: 0;
  width: 1px;
  background: #dbe4dd;
}

.cognitive-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #6b756f;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cognitive-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.cognitive-breadcrumb a:hover {
  color: var(--brand-dark);
}

.cognitive-detail-title h1 {
  min-width: 0;
}

.cognitive-lecture-page {
  max-width: 940px;
  margin-inline: auto;
  border-radius: 6px;
  box-shadow: none;
}

.cognitive-lecture-body {
  color: #2f3933;
  font-size: var(--fs-sm);
}

.cognitive-lecture-body h2 {
  margin: 44px 0 14px;
  color: #0d4331;
  font-size: calc(var(--fs-sm) + 2px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.38;
}

.cognitive-lecture-body h2:first-child {
  margin-top: 0;
}

.cognitive-lecture-body p,
.cognitive-lecture-body li {
  color: #3e4a43;
  font-size: var(--fs-sm);
  line-height: 1.9;
}

.cognitive-lecture-body p {
  margin: 0 0 18px;
}

.cognitive-lecture-lead {
  padding: 18px 20px;
  border-left: 3px solid #d7b97d;
  background: #f7f9f5;
}

.cognitive-lecture-body ul,
.cognitive-lecture-body ol {
  margin: 0 0 22px;
  padding-left: 1.35em;
}

.cognitive-lecture-body li + li {
  margin-top: 8px;
}

.cognitive-lecture-table-wrap {
  max-width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid #dbe4dd;
  border-radius: 6px;
}

.cognitive-lecture-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.cognitive-lecture-table-wide {
  min-width: 860px;
}

.cognitive-lecture-table th,
.cognitive-lecture-table td {
  padding: 12px 14px;
  border-right: 1px solid #dbe4dd;
  border-bottom: 1px solid #dbe4dd;
  color: #3e4a43;
  font-size: var(--fs-sm);
  line-height: 1.55;
  text-align: left;
  vertical-align: middle;
}

.cognitive-lecture-table tr > :last-child {
  border-right: 0;
}

.cognitive-lecture-table tbody tr:last-child > * {
  border-bottom: 0;
}

.cognitive-lecture-table thead th {
  background: #165f45;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.cognitive-lecture-table tbody th {
  background: #f1f6f2;
  color: #0d4331;
  font-weight: 800;
  text-align: center;
}

.cognitive-lecture-table tbody tr:nth-child(even) td {
  background: #f7f9f5;
}

.cognitive-lecture-table .cognitive-lecture-table-principles {
  padding: 16px 18px;
  text-align: left;
}

.cognitive-lecture-table-principles ul {
  margin: 0;
  padding-left: 1.3em;
}

.cognitive-lecture-table-principles li {
  color: #fff;
  line-height: 1.65;
}

.cognitive-lecture-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid #165f45;
  background: #f1f6f2;
}

.cognitive-lecture-body blockquote p {
  margin: 0;
  color: #0d4331;
  font-weight: 700;
}

.cognitive-lecture-divider {
  border: 0;
  border-top: 1px solid #dbe4dd;
  margin: 30px 0;
}

.cognitive-lecture-figure {
  margin: 34px 0;
}

.cognitive-lecture-figure img {
  display: block;
  width: min(100%, 820px);
  height: auto;
  margin-inline: auto;
  border: 1px solid #dbe4dd;
  border-radius: 6px;
  background: #fff;
}

.cognitive-lecture-figure figcaption {
  display: grid;
  gap: 6px;
  max-width: 820px;
  margin: 12px auto 0;
  color: #5c6861;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.cognitive-lecture-figure figcaption strong {
  color: #0d4331;
}

.cognitive-lecture-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
}

.cognitive-lecture-nav .button {
  min-width: 84px;
}

.cognitive-lecture-nav .button.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.company-story {
  --company-green: #165f45;
  --company-green-dark: #0d4331;
  --company-gold: #80601d;
  --company-paper: #f6f7f4;
  --company-title-size: clamp(22.4px, 2.8vw, 36.8px);
  --company-kicker-size: clamp(24px, 2.5vw, 36px);
  color: var(--ink);
}

.company-story-rail {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.company-story-hero {
  position: relative;
  height: clamp(280px, 24vw, 370px);
  overflow: hidden;
  background: #eef1ee;
}

.company-story-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.company-story-hero-copy {
  position: absolute;
  top: clamp(18px, 2.2vw, 32px);
  left: max(24px, calc((100vw - 1460px) / 2));
  width: min(620px, 42vw);
  transform: none;
}

.company-story-eyebrow {
  margin: 0 0 14px;
  color: var(--company-gold);
  font-size: var(--company-kicker-size);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.company-story-headline {
  max-width: 21ch;
  margin: 0;
  color: var(--company-green-dark);
  font-size: var(--company-title-size);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.3;
}

.company-story-foundation {
  padding: clamp(72px, 9vw, 132px) 0;
  background: #fff;
}

.company-story-foundation-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.35fr);
  gap: clamp(44px, 8vw, 116px);
  align-items: start;
}

.company-story-quote {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding-top: 18px;
  border-top: 3px solid var(--company-gold);
  color: var(--company-green-dark);
  font-size: var(--company-title-size);
  font-weight: 800;
  line-height: 1.4;
}

.company-story-prose p,
.company-story-bridge-copy > p:not(.company-story-eyebrow),
.company-story-closing-copy > p:not(.company-story-eyebrow) {
  margin: 0;
  color: #46524c;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.85;
}

.company-story-prose {
  grid-column: 2;
  grid-row: 1;
}

.company-story-prose p + p,
.company-story-bridge-copy > p + p,
.company-story-closing-copy > p + p {
  margin-top: 22px;
}

body[data-page="about-story"] .company-story-bridge-copy > p + p {
  margin-top: 34px;
}

.company-story-bridge {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--company-paper);
}

.company-story-bridge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.company-story-bridge-figure {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
}

.company-story-bridge-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-story-bridge-copy h2 {
  max-width: 17ch;
  margin: 0 0 24px;
  color: var(--company-green-dark);
  font-size: var(--company-title-size);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.3;
}

.company-story-closing {
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--company-green-dark);
}

.company-story-closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.company-story-closing .company-story-eyebrow {
  color: #d7b97d;
}

.company-story-closing h2 {
  max-width: 27ch;
  margin: 0;
  color: #fff;
  font-size: var(--company-title-size);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.45;
}

body[data-page="about-story"] .company-story-closing h2 {
  margin-bottom: 24px;
}

.company-story-closing-copy > p:not(.company-story-eyebrow) {
  color: #d7e3dd;
}

.company-story-closing-figure {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e7ebe8;
}

.company-story-closing-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .bioinfo-hub-rail {
    width: min(100% - 36px, 680px);
  }

  .bioinfo-topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cognitive-lecture-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-story-rail {
    width: min(100% - 36px, 680px);
  }

  .company-story-hero {
    height: 300px;
  }

  .company-story-hero-image {
    object-position: 48% center;
    opacity: 0.5;
  }

  .company-story-hero-copy {
    top: 20px;
    left: 18px;
    width: calc(100% - 36px);
    transform: none;
  }

  .company-story-headline {
    max-width: 18ch;
  }

  .company-story-foundation-grid,
  .company-story-bridge-grid,
  .company-story-closing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-story-prose,
  .company-story-quote {
    grid-column: auto;
    grid-row: auto;
  }

  .company-story-foundation-grid {
    gap: 42px;
  }

  .company-story-bridge-grid {
    gap: 38px;
  }

  .company-story-closing-grid {
    gap: 38px;
  }

  .company-story-bridge-copy h2 {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .bioinfo-topic-card {
    grid-template-columns: minmax(92px, 108px) minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
  }

  .bioinfo-topic-copy h2 {
    margin-bottom: 8px;
  }

  .cognitive-lecture-card a {
    padding: 18px;
  }

  .cognitive-lecture-page {
    padding: 22px 18px;
  }

  .cognitive-lecture-table-wrap {
    margin-inline: -2px;
  }

  .cognitive-lecture-nav {
    justify-content: stretch;
  }

  .cognitive-lecture-nav .button {
    min-width: 0;
    flex: 1;
  }

  .company-story-hero {
    height: 280px;
  }

  .company-story-hero-copy {
    top: 14px;
  }

  .company-story-eyebrow {
    margin-bottom: 10px;
  }

  .company-story-foundation,
  .company-story-bridge,
  .company-story-closing {
    padding-block: 64px;
  }
}

/* Public top-level navigation sub-tabs. */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav-item > a {
  position: relative;
}

.nav-item > a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-item:hover > a::after,
.nav-item:focus-within > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: var(--brand-dark);
}

.nav-sub {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  z-index: 1;
  width: max-content;
  min-width: 176px;
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  background: var(--surface);
  box-shadow: none;
  opacity: 0;
  transform: translateX(-50%);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0s linear 0.16s;
}

.nav-sub-inner {
  display: flex;
  width: auto;
  margin: 0;
  padding: 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.nav-item.has-sub:hover > .nav-sub,
.nav-item.has-sub:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav-item.has-sub.is-dismissed > .nav-sub {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-sub a {
  display: block;
  margin-left: -10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--brand-dark);
  text-decoration: none;
  white-space: nowrap;
}

.nav-sub a:hover,
.nav-sub a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-sub a[aria-current="page"] {
  color: var(--brand-dark);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .nav-sub {
    transition: none;
  }
}

@media (max-width: 900px) {
  .nav-item,
  .nav-links {
    display: block;
    align-self: auto;
  }

  .site-header.is-nav-enhanced .nav-links {
    display: none;
  }

  .site-header.is-nav-enhanced .nav-links.is-open {
    display: block;
  }

  .nav-sub {
    position: static;
    width: auto;
    min-width: 0;
    border-bottom: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-sub-inner {
    width: auto;
    margin: 0;
    padding: 2px 0 6px 12px;
  }

  .nav-sub a {
    margin-left: 0;
    padding: 6px 8px;
    font-size: 0.94em;
  }
}
