/* ─── Brand quote font ───────────────────────────────────────────────────── */
@font-face {
  font-family: "Smoothy Pro Slanted";
  src: url("../assets/fonts/SmoothySlantedPro.woff2") format("woff2"),
       url("../assets/fonts/SmoothySlantedPro.woff")  format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Patient Profiles overlay ───────────────────────────────────────────── */

#pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: none;
  background: radial-gradient(120% 100% at 15% 20%, #3a0f28 0%, #0d0d14 60%);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#pp-overlay.open {
  display: block;
  opacity: 1;
}

.pp-close-btn {
  position: absolute;
  top: 16px;
  right: 74px;
  z-index: 5;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;

}

.pp-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.pp-view {
  position: relative;
  min-height: 100vh;
  padding: 140px 60px 80px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.pp-view.pp-visible {
  opacity: 1;
}

/* ─── Overview ───────────────────────────────────────────────────────────── */

.pp-view--overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pp-headline {
  color: #fff;
  font-family: "Open Sans";
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  margin: 0 0 20px;
}

.pp-subheadline {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(14px, 1.1vw, 18px);
  max-width: 720px;
  margin: 0 0 32px;
}

.pp-select-prompt {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 56px;
}

.pp-cards {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
  flex-wrap: wrap;
  justify-content: center;
}

.pp-card {
  position: relative;
  width: 220px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.pp-card-decor {
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--pp-accent);
  border-radius: 18px;
  transform: rotate(-6deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pp-card:hover .pp-card-decor {
  transform: rotate(-9deg) translate(2px, 2px);
}

.pp-card-inner {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 70px 20px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pp-card:hover .pp-card-inner {
  transform: translateY(-4px);
}

.pp-card-photo {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--pp-accent);
  object-fit: cover;
  background: #fff;
}

.pp-card-name {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--pp-accent);
}

.pp-card-rule {
  width: 40px;
  height: 2px;
  background: var(--pp-accent);
  opacity: 0.6;
  margin: 0 auto 14px;
}

.pp-card-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pp-accent);
}

/* ─── Detail ─────────────────────────────────────────────────────────────── */

.pp-view--detail {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 200px;
}

.pp-detail-photo-col {
  position: absolute;
  width: 40vw;
  bottom: 0vw;
  left: 12vw;
}

/* Sits behind .pp-detail-photo — a rotated color-block peeking out from
   behind the photo's edges, tinted to the current patient's accent color. */
.pp-detail-photo-rect {
  position: absolute;
  top: 50%;
  left: 1.5%;
  width: 72%;
  height: 50%;
  border-radius: 12px;
  background: var(--pp-accent);
  z-index: 2;
  transform: rotate(11deg);
}

.pp-detail-photo-old {
  position: relative;
  width: 90%;
  max-width: 560px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}
.pp-detail-photo {
  position: relative;
  width: 70%;
  max-width: 560px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  z-index: 0;
}


.pp-detail-disclaimer {
  position: absolute;
  right: 4.5vw;
  top: 35%;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
  white-space: pre-line;
  max-width: 160px;
}

.pp-detail-card {
  position: absolute;
  top: 52%;
  left: 5%;
  padding: 36px 40px 40px 40px;
  border-radius: 0 0 0 18px;
  color: #fff;
  width: 70%;
  z-index: 3;
}

.pp-detail-name {
  margin: 0 0 6px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
}

.pp-detail-subtitle {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
}

.pp-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pp-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.pp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #FC3B6E;
}

.pp-demographics-bullets.pp-bullets li::before {
  background: #fff;
}

.pp-detail-info-col {
  position: absolute;
  width: 45vw;
  left: 50vw;
  top: 50%;
  transform: translateY(-50%);
}

.pp-detail-info-col .pp-detail-info-line {
  display: flex;
  justify-content: space-between;
}

.pp-detail-info-col .pp-detail-info-div {
}

.pp-detail-info-div--1 {
  width: 40%;
}

.pp-detail-info-div--2 {
  width: 58%;
}

/* 6-month follow-up view: Clinical measures is hidden, so Lab results takes
   the full row width instead of sharing it 40/58. */
.pp-detail-info-line--single-col .pp-detail-info-div--2 {
  width: 100%;
}

.pp-detail-info-div.pp-detail-info-div--2 {

}


.pp-detail-info-col h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}

.pp-detail-info-col .pp-bullets {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
}



.pp-clinical-footnote {
  margin: -24px 0 24px;
  font-size: 11px;
  line-height: 1.5;
  color: #fff;
}

.pp-table {
  display: grid;
  border: 1px solid var(--pp-accent);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 36px;
}

.pp-table-cell {
  padding: 14px 18px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.pp-table-cell--lastcol {
  border-right: none;
}

.pp-table-cell--lastrow {
  border-bottom: none;
}

.pp-table-cell--label,
.pp-table-head {
  font-weight: 700;
}

.pp-table-head {
  background: rgba(255, 255, 255, 0.08);
}

/* ─── Nav arrows (prev / next patient) ───────────────────────────────────── */

.pp-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1.5px solid var(--pp-accent, var(--secondary));
  background: rgba(0, 0, 0, 0.2);
  color: var(--pp-accent, var(--secondary));
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: background 0.15s ease;
}

.pp-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.4);
}

.pp-nav-arrow.pp-nav-next { right: 24px; }
.pp-nav-arrow.pp-nav-prev { left: 24px; }

.pp-nav-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ─── Testimony (inline, under the lab table) ────────────────────────────── */

.pp-testimony-inline {
  margin-top: 15px;
}

.pp-testimony-inline__top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.pp-quote-mark {
  width: 34px;
  height: auto;
  flex-shrink: 0;
}

.pp-testimony-inline__rule {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.pp-testimony-inline__quote {
  font-family: "Smoothy Pro Slanted", "Caveat", cursive;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  color: #fff;
  margin: 0 0 20px;
}

.pp-testimony-inline__quote .pp-quote-dot {
  display: inline-block;
  transform: translateY(6px);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .pp-view--detail { grid-template-columns: 1fr; }
  .pp-nav-arrow { display: none; }
}
