/* Partners hero dashboard: only what the site's classes don't cover.
   Card, badge, meter, rows and the big number are site classes
   (.wwm-mock, .wwm-tier-badge, .wwm-tier-meter, .wwm-status-row, .wwm-now). */
.wwm-pd {
  display: grid;
  gap: 16px;
  /* 100vw, not 100%: the hero grid sizes this column from its content,
     so a percentage resolves to 560px and overflows on phones. */
  width: min(560px, calc(100vw - 32px));
}

.wwm-pd-ctrl {
  display: grid;
  gap: 8px;
}

.wwm-pd-n {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wwm-pd-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 6px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mock-pos) 0 var(--pd-fill, 36%), var(--rule-2) var(--pd-fill, 36%) 100%);
  cursor: pointer;
}

.wwm-pd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 3px solid var(--on-brand);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.wwm-pd-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--on-brand);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.wwm-pd-range:focus-visible {
  outline: 2px solid var(--mock-pos);
  outline-offset: 4px;
}

.wwm-pd-ticks {
  position: relative;
  height: 14px;
  margin: 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.wwm-pd-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.wwm-pd-mock {
  max-width: none;
}

.wwm-pd-meter {
  width: 0;
  transition: width 0.35s ease;
}

.wwm-pd [data-pd="year"] {
  font-variant-numeric: tabular-nums;
}

.wwm-pd .wwm-tier-badge {
  transition: background-color 0.25s ease, color 0.25s ease;
}

.wwm-pd .is-pop {
  animation: wwm-pd-pop 0.5s ease;
}

@keyframes wwm-pd-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.wwm-pd-more {
  padding-top: 11px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .wwm-pd-meter, .wwm-pd .wwm-tier-badge { transition: none; }
  .wwm-pd .is-pop { animation: none; }
}
