/* What We Test: open editorial layout with a separate, fixed-ratio artwork. */
.bw-markers {
  --bw-markers-gold: var(--pp-prime-gold);
  position: relative;
  container-type: inline-size;
  /* Match the homepage services section rhythm. */
  padding: clamp(72px, 8vw, 120px) 0;
  background: #f7f4ed;
  scroll-margin-top: calc(var(--pp-header-height) + 24px);
}

.bw-markers-shell {
  width: min(calc(100% - 2 * var(--pp-page-gutter)), 1440px);
  margin-inline: auto;
}

.bw-markers-heading {
  width: min(100%, 1040px);
  margin-inline: auto;
  text-align: center;
}

body.blood-work-page main .bw-markers-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  /* Match the peptides introduction label-to-title spacing. */
  margin: 0 0 clamp(20px, 2.2vw, 30px);
  color: var(--bw-markers-gold);
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bw-markers-kicker::before,
.bw-markers-kicker::after {
  content: "";
  flex: 0 0 clamp(36px, 3.6vw, 58px);
  height: 1px;
  background: currentColor;
}

body.blood-work-page main .bw-markers-title {
  margin: 0;
  color: var(--pp-prime-navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}

.bw-markers-title span {
  display: block;
  color: var(--bw-markers-gold);
}

body.blood-work-page main .bw-markers-description {
  width: min(100%, 960px);
  /* Keep the established heading-to-copy spacing. */
  margin: clamp(24px, 3vw, 38px) auto 0;
  color: var(--pp-prime-navy);
  /* Match the hero subheader's inherited font and responsive typography. */
  font-family: inherit;
  font-size: clamp(16px, 1.3cqw, 20px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
  text-wrap: pretty;
}

/* Natural spacing with a progressively shorter desktop statement. */
.bw-markers-description-line {
  display: block;
}

.bw-markers-layout {
  --bw-marker-row-height: clamp(44px, 4.2vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 4vw, 64px);
  /* Match the peptides introduction heading-to-content spacing. */
  margin-top: clamp(24px, 3vw, 38px);
}

/* The category reel sits beside the artwork without controlling its height. */
.bw-markers-list {
  grid-column: 1;
  align-self: center;
  min-width: 0;
  width: 100%;
  max-width: 480px;
}

.bw-marker-reel {
  position: relative;
}

.bw-marker-reel-window {
  position: relative;
}

.bw-marker-reel-track {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
}

body.blood-work-page main .bw-marker-reel-item {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  height: var(--bw-marker-row-height);
  margin: 0;
  padding: 0;
  color: var(--pp-prime-navy);
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bw-marker-reel-item::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--bw-markers-gold), rgba(var(--pp-gold-rgb), 0.12));
  opacity: 0;
  transition: opacity 420ms ease;
}

.bw-marker-reel.is-enhanced .bw-marker-reel-window {
  height: calc(var(--bw-marker-row-height) * 6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%, #000 68%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 68%, transparent);
}

.bw-marker-reel.is-enhanced .bw-marker-reel-window::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: calc(var(--bw-marker-row-height) * 2.5);
  left: 1px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--bw-markers-gold);
  transform: translateY(-50%);
}

.bw-marker-reel.is-enhanced .bw-marker-reel-track {
  will-change: transform;
}

.bw-marker-reel.is-enhanced .bw-marker-reel-item {
  opacity: 0.42;
  transition: color 420ms ease, opacity 420ms ease;
}

body.blood-work-page main .bw-marker-reel-item.is-current {
  color: var(--bw-markers-gold);
  opacity: 1;
}

.bw-marker-reel-item.is-current::after {
  opacity: 1;
}

body.blood-work-page main .bw-marker-reel-copy {
  display: none;
}

body.blood-work-page main .bw-marker-reel.is-enhanced .bw-marker-reel-copy {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .bw-marker-reel-item,
  .bw-marker-reel-item::after {
    transition: none !important;
  }
}

.bw-markers-art {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  width: min(100%, clamp(320px, 30vw, 440px));
  max-width: 440px;
  margin: 0;
}

.bw-markers-art a {
  display: block;
  border-radius: 18px;
  cursor: zoom-in;
}

.bw-markers-art a:focus-visible {
  outline: 2px solid var(--bw-markers-gold);
  outline-offset: 8px;
}

.bw-markers-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
}

@media (max-width: 1100px) {
  body.blood-work-page main .bw-markers-description {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    text-wrap: balance;
  }

  .bw-markers-description-line {
    display: inline;
  }
}

@media (max-width: 800px) {
  .bw-markers {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  body.blood-work-page main .bw-markers-title {
    max-width: none;
    font-size: clamp(2.35rem, 6.2vw, 3.7rem);
  }

  .bw-markers-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 28px;
  }

  .bw-markers-list:empty {
    display: none;
  }

  .bw-markers-art {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: min(100%, 400px);
    max-width: 400px;
  }
}

@media (max-width: 560px) {
  .bw-markers-art {
    width: min(100%, 320px);
    max-width: 320px;
  }
}

@media (max-width: 400px) {
  body.blood-work-page main .bw-markers-title {
    font-size: clamp(2rem, 9.6vw, 2.35rem);
  }
}
