/* An open comparison on the site's ivory canvas, with a soft gold feature column. */
.bw-difference {
  --bw-difference-gold: var(--pp-prime-gold);
  padding: clamp(72px, 8vw, 120px) 0;
  background: #f7f4ed;
  scroll-margin-top: calc(var(--pp-header-height) + 24px);
}

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

.bw-difference-heading {
  text-align: center;
}

body.blood-work-page main .bw-difference-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 clamp(20px, 2.2vw, 30px);
  color: var(--bw-difference-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-difference-kicker::before,
.bw-difference-kicker::after {
  content: '';
  flex: 0 0 clamp(28px, 3.6vw, 58px);
  height: 1px;
  background: currentColor;
}

body.blood-work-page main .bw-difference-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-wrap: balance;
}

.bw-difference-title span {
  color: var(--bw-difference-gold);
}

.bw-difference-comparison {
  --bw-feature-width: 44%;
  --bw-provider-width: 28%;
  --bw-table-head-height: 104px;
  position: relative;
  isolation: isolate;
  margin-top: clamp(38px, 4.6vw, 64px);
  background: transparent;
}

/* Match the lightly outlined, rounded panels used elsewhere on the site. */
.bw-difference-comparison::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: var(--bw-feature-width);
  width: var(--bw-provider-width);
  border: 1px solid rgba(var(--pp-gold-rgb), 0.38);
  border-radius: 24px;
  background: linear-gradient(155deg, #fbf8ef, #f3eddf);
  box-shadow: 0 12px 34px rgba(var(--pp-gold-rgb), 0.055);
}

.bw-difference-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--pp-prime-navy);
  font-family: inherit;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.45;
}

.bw-difference-feature-col {
  width: var(--bw-feature-width);
}

.bw-difference-provider-col {
  width: var(--bw-provider-width);
}

.bw-difference-table th,
.bw-difference-table td {
  position: relative;
  vertical-align: middle;
  text-align: center;
  overflow-wrap: break-word;
}

.bw-difference-table thead th {
  height: var(--bw-table-head-height);
  padding: 24px;
  font-size: 1rem;
  font-weight: 500;
}

.bw-difference-table thead th:last-child {
  color: #59656e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 400;
}

.bw-difference-table thead th:first-child {
  padding-left: clamp(24px, 2.8vw, 36px);
  color: #6a736f;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: left;
  text-transform: uppercase;
}

.bw-difference-table tbody th,
.bw-difference-table tbody td {
  height: 66px;
  padding: 17px 24px;
}

.bw-difference-table tbody th {
  padding-left: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  text-align: left;
}

.bw-difference-table thead th::after,
.bw-difference-table tbody tr:not(:last-child) > *::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(var(--pp-gold-rgb), 0.17);
}

.bw-difference-table thead th:nth-child(2)::after,
.bw-difference-table tbody tr:not(:last-child) > :nth-child(2)::after {
  right: 20px;
  left: 20px;
  background: rgba(var(--pp-gold-rgb), 0.2);
}

.bw-difference-table tr > :nth-child(2) {
  color: var(--pp-prime-navy);
}

.bw-difference-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bw-difference-brand-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
}

/* Show only the existing logo's circular P within its 490px square at (530, 100). */
.bw-difference-brand-mark img {
  position: absolute;
  top: -20.408163%;
  left: -108.163265%;
  display: block;
  width: 313.469388%;
  max-width: none;
  height: auto;
}

.bw-difference-brand-name {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1rem, 1.55vw, 1.375rem);
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.bw-difference-check,
.bw-difference-cross {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  vertical-align: middle;
}

.bw-difference-check {
  color: #916c30;
}

.bw-difference-cross {
  color: #586874;
}

.bw-difference-check svg,
.bw-difference-cross svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.1;
}

.bw-difference-standard {
  color: #586874;
  font-size: clamp(0.875rem, 1.12vw, 1rem);
}

body.blood-work-page main .bw-difference-note {
  max-width: 740px;
  margin: 24px auto 0;
  color: #61707a;
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

.bw-difference-cta {
  display: flex;
  gap: 18px;
  width: min(100%, 280px);
  min-height: 60px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  background: var(--bw-navy);
  color: var(--pp-warm-ivory);
  font-size: 0.875rem;
}

.bw-difference-cta:hover,
.bw-difference-cta:focus-visible {
  background: #203d52;
  border-color: var(--pp-prime-gold);
  color: var(--pp-warm-ivory);
  box-shadow: var(--pp-cta-shadow-hover);
}

.bw-difference-cta:focus-visible {
  outline: 2px solid var(--pp-prime-gold);
  outline-offset: 5px;
}

.bw-difference-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  .bw-difference-table thead th:nth-child(2) {
    padding-inline: 12px;
  }

  .bw-difference-brand {
    flex-direction: column;
    gap: 7px;
  }

  .bw-difference-brand-mark {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  .bw-difference {
    padding-block: 72px;
  }

  body.blood-work-page main .bw-difference-kicker {
    gap: 12px;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
  }

  body.blood-work-page main .bw-difference-title {
    font-size: clamp(2.15rem, 7.5vw, 3rem);
  }

  .bw-difference-comparison {
    --bw-feature-width: 40%;
    --bw-provider-width: 30%;
    --bw-table-head-height: 96px;
  }

  .bw-difference-comparison::before {
    border-radius: 18px;
    box-shadow: none;
  }

  .bw-difference-table {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .bw-difference-table thead th {
    padding: 18px 9px;
    font-size: 0.8125rem;
  }

  .bw-difference-table thead th:last-child {
    font-size: 1rem;
  }

  .bw-difference-table thead th:first-child {
    padding-left: 14px;
    font-size: 0.5625rem;
    line-height: 1.65;
    letter-spacing: 0.1em;
  }

  .bw-difference-table thead th:nth-child(2) {
    padding-inline: 4px;
  }

  .bw-difference-brand-name {
    font-size: clamp(0.5625rem, 2.8vw, 1rem);
  }

  .bw-difference-table tbody th,
  .bw-difference-table tbody td {
    height: 66px;
    padding: 15px 10px;
  }

  .bw-difference-table tbody th {
    padding-left: 14px;
    padding-right: 12px;
  }

  .bw-difference-table thead th::after,
  .bw-difference-table tbody tr:not(:last-child) > *::after {
    right: 0;
    left: 0;
  }

  .bw-difference-table thead th:nth-child(2)::after,
  .bw-difference-table tbody tr:not(:last-child) > :nth-child(2)::after {
    right: 10px;
    left: 10px;
  }

  .bw-difference-standard {
    font-size: 0.8125rem;
  }

  .bw-difference-check,
  .bw-difference-cross {
    width: 24px;
    height: 24px;
  }

  .bw-difference-check svg,
  .bw-difference-cross svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 380px) {
  .bw-difference-table,
  .bw-difference-standard {
    font-size: 0.75rem;
  }

  .bw-difference-table tbody th {
    padding-inline: 10px;
  }
}
