/* Hyde Park Pharmacy — Mounjaro weight-loss predictor (SURMOUNT-1 trial average).
   C2: presents the published trial-average result with a consultation caveat — NOT a
   personal promise or eligibility claim. Brand palette (light card, dark readout). */

/* ---- Intro band: heading/copy beside a lifestyle image (fills the dead space) ---- */
.calc-intro {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 30px;
}
.calc-intro-copy { min-width: 0; }
.calc-intro-copy .head,
.calc-intro-copy .section-note { margin-bottom: 0; }
.calc-intro-media {
  position: relative; margin: 0;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 48px rgba(10, 46, 54, 0.18);
}
.calc-intro-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 22%; display: block;
}
/* soft brand wash + a quiet, non-claim trust chip for life */
.calc-intro-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 46, 54, 0.22) 100%);
  pointer-events: none;
}
.calc-intro-chip {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(4px);
  color: #0A2E36; font-size: 12.5px; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(10, 46, 54, 0.18);
}
.calc-intro-chip::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #c47556; flex-shrink: 0;
}
@media (max-width: 860px) {
  .calc-intro { grid-template-columns: 1fr; gap: 22px; }
  .calc-intro-media { aspect-ratio: 16 / 10; max-height: 340px; }
}

/* ---- Pair wrapper: two equal-width tools on desktop, stacked on mobile ---- */
.calc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 680px) { .calc-pair { grid-template-columns: 1fr; } }

/* ---- Solo predictor: one cohesive module (controls | result) ---- */
.wlp-solo { padding: 30px 30px 26px; }
.wlp-solo .wlp-solo-head { margin-bottom: 20px; }
.wlp-solo .wlp-solo-head h3 { margin-bottom: 4px; }
.wlp-solo .wlp-solo-head .wlp-sub { margin-bottom: 0; }
.wlp-solo .wlp-solo-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.wlp-solo .wlp-controls { min-width: 0; }
.wlp-solo .wlp-controls .wlp-slider { margin-bottom: 0; }
.wlp-solo .wlp-readout { margin-top: 0; }
@media (min-width: 760px) {
  .wlp-solo .wlp-solo-grid { grid-template-columns: 1.08fr 0.92fr; gap: 34px; align-items: stretch; }
  .wlp-solo .wlp-controls { display: flex; flex-direction: column; justify-content: center; }
  .wlp-solo .wlp-readout {
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 28px 30px;
  }
  .wlp-solo .wlp-rlabel { font-size: 15px; }
  .wlp-solo .wlp-rnum { font-size: 54px; }
}

/* ---- Predictor card (light) ---- */
.wlp {
  background: #fff; border: 1px solid #ece7dd; border-radius: 18px;
  padding: 26px 24px; box-shadow: 0 8px 28px rgba(10,46,54,0.08);
  display: flex; flex-direction: column;
}
.wlp h3 { font-family: 'Proxima Nova', sans-serif; color: #0A2E36; font-size: 20px; margin: 0 0 4px; font-weight: 700; }
.wlp-sub { color: #6b7280; font-size: 13.5px; line-height: 1.5; margin: 0 0 18px; }

/* unit toggle */
.wlp-toggle { display: inline-flex; background: #f5f4f0; border: 1px solid #e5e7eb; border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.wlp-toggle button {
  background: transparent; border: none; color: #374151;
  font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 20px;
  min-height: 44px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.wlp-toggle button.active { background: #0f5257; color: #FAF7F2; }

/* weight readout row */
.wlp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.wlp-label { font-size: 12.5px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.wlp-cur { font-family: 'Proxima Nova', sans-serif; font-size: 26px; font-weight: 700; color: #0A2E36; }
.wlp-unit { font-size: 14px; font-weight: 600; opacity: 0.55; margin-left: 2px; }

/* slider (JS sets inline gradient for fill) */
.wlp-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 999px;
  background: #e5e7eb; outline: none; margin: 6px 0 22px;
}
.wlp-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid #c47556; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.wlp-slider::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid #c47556; cursor: pointer;
}
.wlp-slider:focus-visible { outline: 2px solid #0f5257; outline-offset: 3px; }

/* result readout — dark card for impact (mirrors cc-readout) */
.wlp-readout {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #0A2E36 0%, #0f5257 100%);
  border-radius: 14px; padding: 20px 24px;
  box-shadow: 0 10px 26px rgba(10,46,54,0.22);
  margin-top: auto;
}
.wlp-rlabel { font-size: 14px; color: rgba(250,247,242,0.92); font-weight: 600; line-height: 1.3; }
.wlp-rnum { font-family: 'Proxima Nova', sans-serif; font-size: 40px; font-weight: 800; color: #e9a986; letter-spacing: -0.02em; white-space: nowrap; }
.wlp-note { font-size: 11.5px; color: #9ca3af; line-height: 1.5; margin: 14px 0 0; }

@media (max-width: 760px) { .wlp { padding: 22px 18px; } .wlp-rnum { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .wlp-slider { transition: none; } }
