/*
Theme Name: Redox Additional Styles
Description: Custom overrides loaded after style.css.
*/

/* ── 상세 섹션 기본 숨김 ── */
.service-modal-wrapper {
  display: none !important;
}

/* ── 모달 오버레이 ── */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.service-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── 모달 카드 ── */
.service-modal-card {
  position: relative;
  width: 92%;
  max-width: 620px;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  background: #eaf0f7;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  /* background-image: url(/wp-content/uploads/2026/04/service-modal-card-bg.png); */
  padding: 100px 33px 38px 33px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.service-modal-card01 {
  background-image: url(/wp-content/uploads/2026/04/Group-111.png);
}

.service-modal-card02 {
  background-image: url(/wp-content/uploads/2026/04/Group-112.png);
}

.service-modal-card03 {
  background-image: url(/wp-content/uploads/2026/04/Group-113.png);
}

.service-modal-card04 {
  background-image: url(/wp-content/uploads/2026/04/Group-114.png);
}

.service-modal-overlay.is-open .service-modal-card {
  transform: translateY(0) scale(1);
}

/* ── 닫기 버튼 ── */
.service-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.service-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ── 헤더 (다크 네이비 + 커브) ── */
.service-modal-header {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #15294d 100%);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  display: none;
}

.service-modal-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  background: #eaf0f7;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ── 바디 ── */
.service-modal-content {
  position: relative;
  z-index: 2;
  text-align: center;
  overflow-y: auto;
  flex: 1;
  text-align: left;
}

.service-modal-image {
  margin: 0 0 20px;
}

.service-modal-image.is-hidden {
  display: none;
}

.service-modal-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.service-modal-subtitle {
  margin-bottom: 10px;
  color: #fff;
  font-family: Pretendard;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  width: 50%;
}

.service-modal-title {
  color: #fff !important;
  font-family: Paperlogy !important;
  font-size: 36px;
  font-style: normal;
  font-weight: 600 !important;
  line-height: normal;
  padding-bottom: 42px;
}

.service-modal-text,
.service-modal-text * {
  color: #fff !important;
  font-family: Paperlogy;
  font-size: 18px !important;
  font-style: normal;
  font-weight: 400;
  line-height: 22px !important;
}

.service-modal-text {
  text-align: left;
  margin: 0;
}

.service-modal-text p {
  margin: 0 0 12px !important;
}

.service-modal-text p:last-child {
  margin-bottom: 0 !important;
}

/* bottom dot navigation */
.service-modal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 50px;
}

.service-modal-dot {
  width: 44px;
  height: 5px;
  border: none;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  opacity: 0.8;
  transition:
    width 0.2s,
    background-color 0.2s,
    opacity 0.2s;
}

.service-modal-dot:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.7);
}

.service-modal-dot.is-active {
  opacity: 1;
  background: #fff;
}

/* Pharmology demo graph */
.pharmology-graph-item {
  --graph-axis-height: 220px;
  --graph-label-height: 40px;
  --graph-card-border: #a5b1c4;
  --graph-grid: rgba(21, 31, 52, 0.14);
  --graph-axis: rgba(21, 31, 52, 0.58);
  --graph-text: #11141d;
  --graph-subtle: #7e848f;
  --graph-accent: #2148cb;
  --graph-light-bar: linear-gradient(180deg, #a4a4a7 0%, #87878a 100%);
  --graph-dark-bar: linear-gradient(180deg, #47474b 0%, #232326 100%);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.pharmology-graph-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px) clamp(22px, 3vw, 38px);
  border: 1px solid var(--graph-card-border);
  background: linear-gradient(
    180deg,
    rgba(245, 248, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.98) 22%,
    #fff 100%
  );
  box-shadow: 0 24px 70px rgba(18, 26, 43, 0.06);
}

.pharmology-graph-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(34, 72, 203, 0.08),
      transparent 32%
    ),
    linear-gradient(90deg, rgba(34, 72, 203, 0.03), transparent 22%);
  pointer-events: none;
}

.pharmology-graph-card__header,
.pharmology-graph-card__metrics,
.pharmology-graph-panel__title,
.pharmology-graph-panel__chart {
  position: relative;
  z-index: 1;
}

.pharmology-graph-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 3vw, 42px);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.pharmology-graph-card__marker {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 2px;
  background: var(--graph-accent);
  box-shadow: 0 0 0 8px rgba(33, 72, 203, 0.08);
}

.pharmology-graph-card__title {
  margin: 0;
  color: var(--graph-text);
  font-family: Paperlogy, sans-serif;
  font-size: clamp(28px, 2vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.pharmology-graph-card__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.pharmology-graph-panel {
  opacity: 0;
  transform: translateY(22px);
}

.pharmology-graph-panel__title {
  margin: 0 0 24px;
  color: var(--graph-text);
  font-family: Paperlogy, sans-serif;
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-align: center;
}

.pharmology-graph-panel__chart {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 14px;
  align-items: end;
}

.pharmology-graph-panel__ticks {
  position: relative;
  height: calc(var(--graph-axis-height) + var(--graph-label-height));
}

.pharmology-graph-panel__tick {
  position: absolute;
  right: 0;
  bottom: calc(
    var(--graph-label-height) +
      (var(--tick-position) * var(--graph-axis-height) / 100)
  );
  color: var(--graph-subtle);
  font-family: Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  transform: translateY(50%);
}

.pharmology-graph-panel__unit {
  position: absolute;
  left: 0;
  bottom: 0;
  color: var(--graph-subtle);
  font-family: Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pharmology-graph-panel__plot {
  position: relative;
  height: calc(var(--graph-axis-height) + var(--graph-label-height));
}

.pharmology-graph-panel__plot::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: var(--graph-label-height);
  left: 0;
  height: 2px;
  background: var(--graph-axis);
}

.pharmology-graph-panel__grid-line {
  position: absolute;
  right: 0;
  bottom: calc(
    var(--graph-label-height) +
      (var(--grid-position) * var(--graph-axis-height) / 100)
  );
  left: 0;
  height: 1px;
  background: var(--graph-grid);
}

.pharmology-graph-panel__bars {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
}

.pharmology-graph-bar-group {
  width: min(44%, 76px);
  height: 100%;
  display: grid;
  grid-template-rows: var(--graph-axis-height) var(--graph-label-height);
}

.pharmology-graph-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pharmology-graph-bar {
  width: clamp(30px, 70%, 42px);
  height: var(--bar-height);
  border-radius: 3px 3px 0 0;
  transform: scaleY(0);
  transform-origin: center bottom;
  box-shadow: 0 8px 20px rgba(20, 25, 41, 0.1);
  will-change: transform;
}

.pharmology-graph-bar--light {
  background: var(--graph-light-bar);
}

.pharmology-graph-bar--dark {
  background: var(--graph-dark-bar);
}

.pharmology-graph-bar-label {
  align-self: end;
  color: var(--graph-subtle);
  font-family: Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.pharmology-graph-item.is-visible .pharmology-graph-card__header {
  opacity: 1;
  transform: translateY(0);
}

.pharmology-graph-item.is-visible .pharmology-graph-panel {
  animation: pharmologyGraphPanelIn 0.65s ease forwards;
  animation-delay: var(--panel-delay, 0s);
}

.pharmology-graph-item.is-visible .pharmology-graph-bar {
  animation: pharmologyGraphBarGrow 1s cubic-bezier(0.2, 1, 0.22, 1) forwards;
  animation-delay: var(--bar-delay, 0s);
}

@keyframes pharmologyGraphPanelIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pharmologyGraphBarGrow {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@media (max-width: 1100px) {
  .pharmology-graph-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pharmology-graph-item {
    --graph-axis-height: 180px;
    --graph-label-height: 36px;
  }

  .pharmology-graph-card {
    padding: 24px 18px;
  }

  .pharmology-graph-card__header {
    gap: 12px;
    margin-bottom: 26px;
  }

  .pharmology-graph-card__metrics {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .pharmology-graph-panel__title {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .pharmology-graph-panel__chart {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 10px;
  }

  .pharmology-graph-panel__tick,
  .pharmology-graph-panel__unit,
  .pharmology-graph-bar-label {
    font-size: 11px;
  }

  .pharmology-graph-bar {
    width: clamp(24px, 46%, 34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pharmology-graph-card__header,
  .pharmology-graph-panel,
  .pharmology-graph-bar {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* History intro sections */
.st-history-hero {
  --history-max-width: 1320px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: #0d1320;
  color: #fff;
  isolation: isolate;
}

.st-history-hero::before,
.st-history-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.st-history-hero::before {
  background-image: var(
    --history-hero-image,
    linear-gradient(145deg, #0c1524 0%, #17273e 55%, #0a111d 100%)
  );
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.st-history-hero::after {
  background:
    linear-gradient(
      135deg,
      rgba(22, 38, 64, 0.64) 0%,
      rgba(10, 16, 27, 0.16) 38%,
      rgba(10, 16, 27, 0.78) 100%
    ),
    linear-gradient(180deg, rgba(5, 9, 16, 0.08) 0%, rgba(5, 9, 16, 0.44) 100%);
}

.st-history-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--history-max-width), calc(100% - 40px));
  margin: 0 auto;
}

.st-history-hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: min(900px, 100%);
}

.st-history-hero--align-center .st-history-hero__content {
  margin: 0 auto;
  text-align: center;
}

.st-history-hero--align-left .st-history-hero__content {
  text-align: left;
}

.st-history-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  color: #fff;
  font-family: "Noto Sans KR";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 3.06px;
}

.st-history-hero__title {
  margin: 0;
  text-wrap: balance;
  color: #fff !important;
  font-family: Paperlogy !important;
  font-size: 120px;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 143px;
  letter-spacing: -4.5px;
}
.st-history-hero__title {
  text-indent: -0.07em;
}

.st-history-hero__subtitle {
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #fff;
  font-family: "Noto Sans KR";
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.st-history-hero__copy {
  margin-top: 6px;
}

.st-history-hero__copy p {
  margin: 0;
  color: #fff;
  font-family: "Noto Sans KR";
  font-size: 23px;
  font-style: normal;
  font-weight: 400;
  line-height: 42px;
  letter-spacing: -0.69px;
}

.st-history-hero__copy p + p {
  margin-top: 14px;
}

.st-history-lead {
  padding: clamp(56px, 8vw, 120px) 0;
  background: #fff;
}

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

.st-history-lead--align-center .st-history-lead__inner {
  text-align: center;
}

.st-history-lead--align-left .st-history-lead__inner {
  text-align: left;
}

.st-history-lead__eyebrow {
  margin: 0 0 12px;
  color: #5b6474;
  font-family: Pretendard, sans-serif;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-history-lead__title {
  margin: 0;
  color: #11141d;
  font-family: Paperlogy, sans-serif;
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.st-history-lead__copy {
  width: min(980px, 100%);
  margin: clamp(20px, 3vw, 30px) auto 0;
}

.st-history-lead--align-left .st-history-lead__copy {
  margin-left: 0;
}

.st-history-lead__copy p {
  margin: 0;
  color: #273140;
  font-family: Pretendard, sans-serif;
  font-size: clamp(20px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.st-history-lead__copy p + p {
  margin-top: 16px;
}

.st-history-lead__copy strong {
  color: #1739b7;
  font-weight: 700;
}

/* Reusable history cards */
.st-history {
  --history-max-width: 1320px;
  --history-inline-start: max(
    16px,
    calc((100vw - var(--history-max-width)) / 2)
  );
  --history-card-overlay: linear-gradient(
    180deg,
    rgba(246, 130, 44, 0.12) 0%,
    rgba(246, 130, 44, 0.88) 100%
  );
  --history-card-fallback:
    radial-gradient(
      circle at top right,
      rgba(255, 181, 121, 0.2),
      transparent 30%
    ),
    linear-gradient(145deg, #101826 0%, #18253a 54%, #0d1320 100%);
  margin: 0;
  padding: clamp(56px, 9vw, 120px) 0;
  overflow: hidden;
}

.st-history__inner {
  width: min(var(--history-max-width), calc(100% - 32px));
  margin: 0 auto;
}

.st-history__head {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.st-history__eyebrow {
  margin: 0 0 10px;
  color: #4c5564;
  font-family: Pretendard, sans-serif;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.st-history__title {
  margin: 0;
  color: #111 !important;
  font-family: Paperlogy !important;
  font-size: clamp(34px, 5vw, 68px) !important;
  font-weight: 700 !important;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.st-history__carousel {
  overflow: visible;
  padding-bottom: 38px;
}

.st-history__track {
  align-items: stretch;
}

.st-history__card {
  position: relative;
  min-height: clamp(460px, 54vw, 700px);
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(17, 20, 29, 0.08);
  background: #0f1724;
  color: #fff;
  box-shadow: 0 24px 60px rgba(12, 18, 32, 0.12);
  isolation: isolate;
}

.st-history.is-enhanced .st-history__card {
  cursor: pointer;
}

.st-history__card::before,
.st-history__card::after {
  content: "";
  position: absolute;
  inset: 0;
  transition:
    opacity 0.35s ease,
    transform 0.45s ease;
}

.st-history__card::before {
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 16, 27, 0.22) 0%,
      rgba(10, 16, 27, 0.72) 100%
    ),
    var(--history-card-image, var(--history-card-fallback));
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.st-history__card::after {
  background: var(--history-card-overlay);
  opacity: 0;
}

.st-history__surface {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(28px, 3vw, 38px);
}

.st-history__toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  display: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.st-history__toggle::before,
.st-history__toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.st-history__toggle::after {
  transform: rotate(90deg);
}

.st-history__meta {
  max-width: min(80%, 420px);
}

.st-history__card-eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-family: Pretendard, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.st-history__year {
  margin: 0;
  letter-spacing: -0.06em;
  color: #fff;
  font-family: Paperlogy;
  font-size: 96px;
  font-style: normal;
  font-weight: 800;
  line-height: 98px;
}

.st-history__card-title {
  margin: 32px 0 0;
  letter-spacing: -0.04em;
  word-break: keep-all;
  color: #fff !important;
  font-family: Paperlogy !important;
  font-size: 28px;
  font-style: normal;
  font-weight: 600 !important;
  line-height: normal;
}

.st-history__details {
  margin-top: auto;
  padding-top: 62px;
}

.st-history__copy,
.st-history__list {
  margin: 0;
}

.st-history__list {
  padding: 0;
  list-style: none;
}

.st-history__list-item {
  color: #fff;
  font-family: Paperlogy;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.st-history__list-item::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.8;
}
.st-history__list-item {
  position: relative;
  padding-left: 18px;
}

.st-history__list-item::before {
  top: 0.55em;
  left: 0;
}

.st-history__list-item + .st-history__list-item {
  margin-top: 14px;
}

.st-history__copy--rich ul,
.st-history__copy--rich ol {
  margin: 0;
  padding-left: 18px;
}

.st-history__copy--rich li,
.st-history__copy--rich p {
  color: #fff;
  font-family: Pretendard, sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.st-history__copy--rich li + li,
.st-history__copy--rich p + p {
  margin-top: 14px;
}

.st-history__scrollbar {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  height: 3px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(17, 20, 29, 0.12);
}

.st-history__scrollbar .swiper-scrollbar-drag {
  border-radius: 999px;
  background: #11141d;
}

.st-history.is-enhanced .st-history__toggle {
  display: inline-flex;
}

.st-history.is-enhanced .st-history__card:not(.is-open)::after {
  opacity: 0;
}

.st-history.is-enhanced .st-history__card.is-open::after {
  opacity: 1;
}

.st-history.is-enhanced .st-history__card:hover::before {
  transform: scale(1.05);
}

.st-history.is-enhanced .st-history__card .st-history__details {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.st-history.is-enhanced .st-history__card:not(.is-open) .st-history__details {
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
}

.st-history.is-enhanced .st-history__card.is-open .st-history__toggle {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
}

.st-history.is-enhanced .st-history__card.is-open .st-history__toggle::after {
  opacity: 0;
  transform: rotate(0deg);
}

.st-history.is-pinned-history .st-history__carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding-bottom: 0;
}

.st-history.is-pinned-history .st-history__inner {
  width: 100%;
  max-width: none;
}

.st-history.is-pinned-history .st-history__head {
  width: min(var(--history-max-width), calc(100% - 32px));
  margin-inline: auto;
}

.st-history.is-pinned-history .st-history__track {
  width: max-content;
  gap: clamp(16px, 1.8vw, 24px);
  padding-left: var(--history-inline-start);
  padding-right: clamp(20px, 4vw, 48px);
  transition: none !important;
  will-change: transform;
}

.st-history.is-pinned-history .st-history__card {
  flex: 0 0 clamp(320px, 29vw, 420px);
  width: clamp(320px, 29vw, 420px);
}

.st-history.is-pinned-history .st-history__scrollbar {
  display: none;
}

@media (max-width: 1024px) {
  .st-history__surface {
    padding: 28px;
  }

  .st-history__meta {
    max-width: 88%;
  }

  .st-history__details {
    padding-top: 28px;
  }
}

@media (max-width: 767px) {
  .st-history-hero {
    min-height: auto;
    padding: 104px 0 72px;
  }

  .st-history-hero__inner {
    width: min(var(--history-max-width), calc(100% - 24px));
  }

  .st-history-hero__content {
    gap: 14px;
  }

  .st-history-hero__eyebrow {
    font-size: 13px;
    letter-spacing: 1.8px;
    line-height: 1.4;
  }

  .st-history-hero__title {
    font-size: clamp(48px, 18vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.08em;
    text-indent: -0.04em;
    overflow-wrap: anywhere;
  }

  .st-history-hero__subtitle {
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1.35;
  }

  .st-history-hero__copy p {
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: -0.02em;
  }

  .st-history-lead__copy p {
    line-height: 1.55;
  }

  .st-history {
    padding: 72px 0;
  }

  .st-history__inner {
    width: min(var(--history-max-width), calc(100% - 20px));
  }

  .st-history__carousel {
    padding-bottom: 26px;
  }

  .st-history__card {
    min-height: 520px;
    border-radius: 24px;
  }

  .st-history.is-enhanced .st-history__card.is-open {
    min-height: 0;
  }

  .st-history__surface {
    padding: 22px;
  }

  .st-history.is-enhanced .st-history__card.is-open .st-history__surface {
    min-height: 520px;
  }

  .st-history__toggle {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .st-history__toggle::before,
  .st-history__toggle::after {
    width: 16px;
  }

  .st-history__meta {
    max-width: calc(100% - 56px);
  }

  .st-history__details {
    padding-top: 24px;
  }

  .st-history__year {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .st-history__card-title {
    margin-top: 22px;
    font-size: clamp(21px, 6.2vw, 25px);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .st-history__list-item {
    font-size: 17px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .st-history__copy--rich li,
  .st-history__copy--rich p {
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .st-history__list-item + .st-history__list-item,
  .st-history__copy--rich li + li,
  .st-history__copy--rich p + p {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .st-history-hero {
    padding: 92px 0 64px;
  }

  .st-history__card {
    min-height: 500px;
    border-radius: 20px;
  }

  .st-history__surface {
    padding: 20px;
  }

  .st-history.is-enhanced .st-history__card.is-open .st-history__surface {
    min-height: 500px;
  }

  .st-history__meta {
    max-width: calc(100% - 52px);
  }
}

/* Pharmology product shortcode */
.pharmology-products-shortcode {
  --products-surface: #ffffff;
  --products-surface-soft: #f4f4ef;
  --products-surface-alt: #ece9e1;
  --products-border: rgba(17, 17, 17, 0.12);
  --products-text: #121418;
  --products-muted: #676a72;
  --products-accent: var(--primary, #2f5cff);
  --products-shadow: 0 28px 80px rgba(13, 18, 28, 0.08);
  color-scheme: light;
  position: relative;
  overflow: hidden;
  color: var(--products-text);
}

.pharmology-products-shortcode::before,
.pharmology-products-shortcode::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

/* .pharmology-products-shortcode::before {
  top: -140px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(47, 92, 255, 0.14), transparent 70%);
} */

.pharmology-products-shortcode::after {
  bottom: -180px;
  left: -150px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(17, 17, 17, 0.08), transparent 72%);
}

.pharmology-products-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.pharmology-products-hero {
  display: grid;
  gap: 28px 54px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--products-border);
  background: #fff;
  box-shadow: var(--products-shadow);
}

.pharmology-products-shortcode .section-heading {
  margin-bottom: 0;
}

.pharmology-products-shortcode .section-heading .section-title,
.pharmology-products-shortcode .section-heading .sub-heading,
.pharmology-products-shortcode .rr-btn-underline,
.pharmology-products-shortcode .rr-btn-underline span,
.pharmology-products-shortcode .pharmology-products-search__input,
.pharmology-products-shortcode .pharmology-products-sort__select {
  color: var(--products-text);
}
.pharmology-products-shortcode .section-heading .section-title {
  color: #000;
  font-family: Paperlogy;
  font-size: 46px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.pharmology-products-shortcode .section-heading .sub-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-transform: uppercase;
  color: #000;
  font-family: Paperlogy;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.9px;
}

.pharmology-products-shortcode .section-heading .sub-heading::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.pharmology-products-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.pharmology-products-hero__description {
  margin: 0;
  max-width: 520px;
  color: #444;
  font-family: Pretendard;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
}

.pharmology-products-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.pharmology-products-hero__actions .rr-btn-underline {
  color: var(--products-accent);
}
.pharmology-products-hero__actions span {
  color: #000;
  font-family: Pretendard;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.9px;
}
.pharmology-products-metrics {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pharmology-products-metric-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 24px 26px;
  border: 1px solid var(--products-border);
  background: rgba(255, 255, 255, 0.88);
}

.pharmology-products-metric-card strong {
  font-family: var(--font_bdogrotesk, var(--rr-ff-heading, sans-serif));
  font-size: clamp(34px, 3vw, 52px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.06em;
  color: var(--products-text);
}

.pharmology-products-metric-card span {
  color: var(--products-muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pharmology-products-toolbar {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.7fr);
}

.pharmology-products-search,
.pharmology-products-sort {
  display: grid;
  gap: 10px;
}

.pharmology-products-search__label,
.pharmology-products-sort__label {
  color: var(--products-muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pharmology-products-search__input,
.pharmology-products-sort__select {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid var(--products-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--products-text);
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pharmology-products-sort__select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.pharmology-products-search__input:focus,
.pharmology-products-sort__select:focus {
  outline: none;
  border-color: rgba(47, 92, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 92, 255, 0.09);
  transform: translateY(-1px);
}

.pharmology-products-filters,
.pharmology-products-refine {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pharmology-products-filter,
.pharmology-products-chip {
  appearance: none;
  border: 1px solid var(--products-border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--products-text);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pharmology-products-filter:hover,
.pharmology-products-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.3);
}

.pharmology-products-filter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 16px;
}

.pharmology-products-filter span {
  font-size: 14px;
  font-weight: 500;
}

.pharmology-products-filter strong {
  font-size: 12px;
  color: var(--products-muted);
}

.pharmology-products-filter.is-active {
  background: var(--products-text);
  border-color: var(--products-text);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.18);
}

.pharmology-products-filter.is-active strong {
  color: rgba(255, 255, 255, 0.72);
}

.pharmology-products-chip {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--products-muted);
}

.pharmology-products-chip.is-active {
  background: rgba(47, 92, 255, 0.08);
  border-color: rgba(47, 92, 255, 0.22);
  color: var(--products-accent);
}

.pharmology-products-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 6px;
}

.pharmology-products-results__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--products-muted);
  font-size: 15px;
}

.pharmology-products-results__copy strong {
  color: var(--products-text);
  font-weight: 700;
}

.pharmology-products-results__copy em {
  font-style: normal;
  color: var(--products-accent);
}

.pharmology-products-results .rr-btn-underline {
  padding: 0;
  border: 0;
  background: transparent;
}

.pharmology-products-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pharmology-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--products-border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 60px rgba(13, 18, 28, 0.06);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.pharmology-product-card[hidden] {
  display: none !important;
}

.pharmology-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 92, 255, 0.22);
  box-shadow: 0 28px 70px rgba(13, 18, 28, 0.12);
}

.pharmology-product-card__media {
  position: relative;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  /* background:
    linear-gradient(
      180deg,
      rgba(239, 239, 234, 0.85),
      rgba(226, 225, 219, 0.95)
    ),
    radial-gradient(
      circle at top right,
      rgba(47, 92, 255, 0.16),
      transparent 38%
    ); */
}

.pharmology-product-card__media img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  /* opacity: 0.72; */
  transition: transform 0.45s ease;
}

.pharmology-product-card:hover .pharmology-product-card__media img {
  transform: scale(1.04);
}

.pharmology-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  padding: 24px 24px 26px;
}

.pharmology-product-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pharmology-product-card__eyebrow {
  text-transform: uppercase;
  color: #444;
  font-family: "Instrument Sans";
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0%;
}

.pharmology-product-card__price {
  white-space: nowrap;
  color: #222;
  text-align: right;
  font-family: "Instrument Sans";
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.pharmology-product-card__title {
  margin: 0;
  font-family: var(--font_bdogrotesk, var(--rr-ff-heading, sans-serif));
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.pharmology-product-card__summary {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: #444;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.pharmology-product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pharmology-product-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--products-border);
  background: #fbf6f2;
  color: #555;
  text-align: center;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.pharmology-product-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--products-border);
}

.pharmology-product-card__footer-label {
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: #666;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
}

.pharmology-product-card__footer-text {
  margin: 0;
  color: #222;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
}

.pharmology-products-empty {
  padding: clamp(34px, 5vw, 60px);
  border: 1px dashed rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.pharmology-products-empty h3 {
  margin: 0 0 10px;
  font-family: var(--font_bdogrotesk, var(--rr-ff-heading, sans-serif));
  font-size: clamp(30px, 3vw, 44px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.pharmology-products-empty p {
  margin: 0;
  color: var(--products-muted);
  font-size: 15px;
}

@media (max-width: 1199px) {
  .pharmology-products-hero {
    grid-template-columns: 1fr;
  }

  .pharmology-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .pharmology-products-metrics,
  .pharmology-products-toolbar {
    grid-template-columns: 1fr;
  }

  .pharmology-products-metric-card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .pharmology-products-shortcode::before,
  .pharmology-products-shortcode::after {
    display: none;
  }

  .pharmology-products-shell {
    gap: 22px;
  }

  .pharmology-products-hero {
    padding: 24px 20px;
  }

  .pharmology-products-grid {
    grid-template-columns: 1fr;
  }

  .pharmology-products-filter {
    width: 100%;
    justify-content: space-between;
  }

  .pharmology-products-results {
    align-items: flex-start;
    flex-direction: column;
  }

  .pharmology-product-card__body {
    padding: 20px 18px 22px;
  }

  .pharmology-product-card__title {
    font-size: 24px;
  }
}
