:root {
  --ps-ivory: #f3eee5;
  --ps-ivory-light: #f8f4ed;
  --ps-navy: #11274b;
  --ps-red: #b7272d;
  --ps-muted: #777b82;
  --ps-line: rgba(17, 39, 75, 0.16);
}

.psd,
.bic {
  color: var(--ps-navy);
  overflow: clip;
}

.psd {
  position: relative;
  margin-top: 5rem;
  background-color: var(--ps-ivory);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#product-science-root[data-product="k1"] .psd {
  background-image: url("../img/Formulations/kuralife-k1-product-science-background-16x9.png");
}

#product-science-root[data-product="k2"] .psd {
  background-image: url("../img/Formulations/kuralife-k2-product-science-background-16x9.png");
}

#product-science-root[data-product="k3"] .psd {
  background-image: url("../img/Formulations/kuralife-k3-product-science-background-16x9.png");
}

#product-science-root[data-product="k4"] .psd {
  background-image: url("../img/Formulations/kuralife-k4-product-science-background-16x9.png");
}

#product-science-root[data-product="k5"] .psd {
  background-image: url("../img/Formulations/kuralife-k5-product-science-background-16x9.png");
}

#product-science-root[data-product="k6"] .psd {
  background-image: url("../img/Formulations/kuralife-k6-product-science-background-16x9.png");
}

#product-science-root[data-product="k7"] .psd {
  background-image: url("../img/Formulations/kuralife-k7-product-science-background-16x9.png");
}

#product-science-root[data-product="k8"] .psd {
  background-image: url("../img/Formulations/kuralife-k8-product-science-background-16x9.png");
}

#product-science-root[data-product="k9"] .psd {
  background-image: url("../img/Formulations/kuralife-k9-product-science-background-16x9.png");
}

#product-science-root[data-product="k10"] .psd {
  background-image: url("../img/Formulations/kuralife-k10-product-science-background-16x9.png");
}

.psd::before {
  content: none;
}

.psd__container,
.bic__container {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.psd__container {
  padding: clamp(86px, 9vw, 142px) 0 clamp(48px, 6vw, 82px);
}

.psd__grid {
  display: grid;
  grid-template-columns: minmax(0, 570px);
  gap: clamp(42px, 7vw, 108px);
  align-items: center;
}

.psd__copy {
  position: relative;
  z-index: 1;
}

.psd__eyebrow,
.bic__eyebrow,
.psd-index__label,
.psd__spec dt,
.bic-row__facts dt {
  margin: 0;
  font-family: "DM Sans", "Plus Jakarta Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.psd__eyebrow,
.bic__eyebrow,
.psd-index__label {
  color: var(--ps-red);
}

.psd__title {
  max-width: 720px;
  margin: 18px 0 20px;
  color: var(--ps-navy);
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(3.4rem, 6vw, 6.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.psd__accent {
  display: block;
  width: 62px;
  height: 2px;
  margin-bottom: 30px;
  background: var(--ps-red);
}

.psd__description {
  max-width: 680px;
  margin: 0;
  color: rgba(17, 39, 75, 0.72);
  font-size: clamp(1.03rem, 1.4vw, 1.22rem);
  line-height: 1.72;
}

.psd__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(42px, 5vw, 64px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--ps-line);
}

.psd__spec {
  min-width: 0;
  margin: 0;
  padding: 0 22px;
}

.psd__spec:first-child {
  padding-left: 0;
}

.psd__spec + .psd__spec {
  border-left: 1px solid var(--ps-line);
}

.psd__spec dt,
.bic-row__facts dt {
  color: rgba(17, 39, 75, 0.62);
}

.psd__spec dd {
  margin: 9px 0 0;
  color: var(--ps-navy);
  font-family: "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.psd__media {
  display: none;
}

.psd__media::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 4%;
  bottom: 3%;
  height: 12%;
  border-radius: 50%;
  background: rgba(17, 39, 75, 0.15);
  filter: blur(28px);
}

.psd__media img {
  display: block;
  width: 100%;
  max-height: 570px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(17, 39, 75, 0.09));
}

.psd-index {
  margin-top: clamp(62px, 8vw, 104px);
  padding-top: 24px;
  border-top: 1px solid var(--ps-line);
}

.psd-index__rail {
  display: flex;
  gap: clamp(24px, 3.2vw, 48px);
  margin-top: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.psd-index__rail::-webkit-scrollbar {
  display: none;
}

.psd-index__link {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0 13px;
  color: #96989d;
  font-family: "DM Sans", "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  transition: color 220ms ease;
}

.psd-index__link:hover,
.psd-index__link:focus-visible,
.psd-index__link.is-active {
  color: var(--ps-navy);
}

.psd-index__link:focus-visible,
.bic-row__button:focus-visible {
  outline: 2px solid var(--ps-red);
  outline-offset: 5px;
}

.psd-index__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--ps-red);
  transition: width 220ms ease;
}

.psd-index__link.is-active::after {
  width: 32px;
}

.psd-index__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: transparent;
}

.psd-index__link.is-active .psd-index__dot {
  background: var(--ps-red);
}

.bic {
  background: var(--ps-ivory-light);
}

.bic__container {
  padding: clamp(82px, 9vw, 138px) 0 clamp(96px, 10vw, 150px);
}

.bic__header {
  max-width: 760px;
  margin-bottom: clamp(54px, 7vw, 92px);
}

.bic__title {
  margin: 15px 0 22px;
  color: var(--ps-navy);
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(3.4rem, 6vw, 6.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.bic__title em {
  color: var(--ps-red);
  font-weight: 400;
}

.bic__intro {
  max-width: 610px;
  margin: 0;
  color: rgba(17, 39, 75, 0.66);
  font-size: 1.08rem;
  line-height: 1.65;
}

.bic__list {
  border-top: 1px solid var(--ps-line);
}

.bic-row {
  border-bottom: 1px solid var(--ps-line);
}

.bic-row__heading {
  margin: 0;
}

.bic-row__button {
  display: grid;
  grid-template-columns: 64px minmax(220px, 1.15fr) minmax(260px, 0.85fr) 32px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ps-navy);
  text-align: left;
  cursor: pointer;
}

.bic-row__number {
  color: var(--ps-red);
  font-family: "DM Sans", "Plus Jakarta Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.bic-row__name {
  min-width: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.05;
}

.bic-row__function {
  color: rgba(17, 39, 75, 0.58);
  font-family: "DM Sans", "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color 220ms ease;
}

.bic-row__button:hover .bic-row__function,
.bic-row.is-open .bic-row__function {
  color: var(--ps-navy);
}

.bic-row__symbol {
  justify-self: end;
  color: var(--ps-red);
  font-family: "DM Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 300;
}

.bic-row__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 0s linear 260ms;
}

.bic-row.is-open .bic-row__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.bic-row__panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  min-height: 0;
  overflow: hidden;
}

.bic-row__description {
  padding: 6px clamp(36px, 6vw, 86px) 42px 82px;
}

.bic-row__description p {
  max-width: 720px;
  margin: 0;
  color: rgba(17, 39, 75, 0.72);
  font-size: 1rem;
  line-height: 1.7;
}

.bic-row__notice {
  margin-top: 14px !important;
  color: var(--ps-red) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bic-row__facts {
  margin: 0 0 42px;
  padding: 6px 0 0 clamp(28px, 4vw, 54px);
  border-left: 1px solid var(--ps-line);
}

.bic-row__facts div + div {
  margin-top: 24px;
}

.bic-row__facts dd {
  margin: 8px 0 0;
  color: rgba(17, 39, 75, 0.75);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .psd__grid {
    grid-template-columns: minmax(0, 570px);
    gap: 34px;
  }

  .psd__specs {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .psd__spec,
  .psd__spec:first-child {
    padding: 14px 0;
  }

  .psd__spec + .psd__spec {
    border-top: 1px solid var(--ps-line);
    border-left: 0;
  }

  .bic-row__button {
    grid-template-columns: 52px minmax(190px, 1fr) minmax(220px, 0.85fr) 28px;
  }
}

@media (max-width: 767px) {
  .psd {
    background-position: 28% center;
  }

  .psd__container,
  .bic__container {
    width: min(100% - 30px, 620px);
  }

  .psd__grid {
    grid-template-columns: 1fr;
  }

  .psd__media {
    grid-row: 2;
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .psd__media img {
    max-height: 420px;
  }

  .psd__specs {
    margin-top: 30px;
  }

  .psd-index {
    margin-top: 54px;
  }

  .bic-row__button {
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    gap: 12px;
    min-height: 76px;
  }

  .bic-row__number {
    grid-row: 1 / span 2;
  }

  .bic-row__name {
    overflow-wrap: anywhere;
  }

  .bic-row__function {
    grid-column: 2;
    font-size: 0.84rem;
  }

  .bic-row__symbol {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .bic-row__panel-inner {
    grid-template-columns: 1fr;
  }

  .bic-row__description {
    padding: 6px 0 26px 54px;
  }

  .bic-row__facts {
    margin: 0 0 34px 54px;
    padding: 24px 0 0;
    border-top: 1px solid var(--ps-line);
    border-left: 0;
  }
}

@media (max-width: 430px) {
  .psd__title,
  .bic__title {
    font-size: clamp(2.85rem, 14vw, 4rem);
  }

  .bic-row__name {
    font-size: 1.45rem;
  }

  .bic-row__description,
  .bic-row__facts {
    margin-left: 0;
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psd-index__link,
  .psd-index__link::after,
  .bic-row__function,
  .bic-row__panel {
    transition: none;
  }
}
