/* The Sales Stage: progress features (pitch passport, benchmark chart, wall of
   yeses). Loaded after app.css on account.html and admin.html, and after
   styles.css on index.html. Used with assets/js/progress.js. */

/* ---------- Pitch passport ---------- */

.pp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  max-width: 500px;
}

.pp-stamp {
  position: relative;
  display: grid;
  place-content: center;
  gap: 8px;
  aspect-ratio: 1;
  padding: 14%;
  text-align: center;
  color: color-mix(in srgb, var(--bone) 22%, transparent);
}

.pp-stamp.is-earned {
  color: var(--orange);
  transform: rotate(var(--tilt, 0deg));
}

.pp-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pp-name {
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--faint);
}

.pp-stamp.is-earned .pp-name {
  color: var(--bone);
}

.pp-date {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.pp-stamp.is-earned .pp-date {
  color: var(--orange);
}

.pp-note {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pp-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.pp-mini-marks {
  display: flex;
  gap: 6px;
}

.pp-mini-marks span {
  position: relative;
  width: 24px;
  height: 24px;
  color: color-mix(in srgb, var(--bone) 22%, transparent);
}

.pp-mini-marks span.is-earned {
  color: var(--orange);
}

.pp-mini-marks span.is-earned::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--orange);
}

.pp-mini p {
  color: var(--muted);
  font-size: 14px;
}

.pp-mini b {
  color: var(--bone);
}

@media (max-width: 420px) {
  .pp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Semester benchmark chart ---------- */

.bm-latest {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.bm-latest b {
  color: var(--bone);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.bm-latest small {
  display: block;
  color: var(--faint);
  font-size: 12.5px;
}

.bm-chart {
  width: 100%;
  min-height: 210px;
}

.bm-svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.bm-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.bm-axis {
  fill: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bm-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.bm-area {
  fill: color-mix(in srgb, var(--orange) 10%, transparent);
}

.bm-dot {
  fill: var(--app-card, #1b1b1b);
  stroke: var(--orange);
  stroke-width: 2.5;
}

.bm-dot.is-last {
  fill: var(--orange);
}

.bm-value {
  fill: var(--bone);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.bm-change {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.bm-change.is-up {
  color: var(--orange);
}

#benchmark-chart:not(:empty) {
  margin-bottom: 18px;
}

/* ---------- Yeses (dashboards) ---------- */

.yes-count {
  justify-self: end;
  font-size: 12px;
}

.app-row .yes-delete {
  margin-top: 4px;
  color: var(--faint);
  font-size: 12.5px;
}

.app-row .yes-delete:hover {
  color: var(--orange);
}

.yes-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 10px;
}

.yes-admin-note {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Wall of yeses (home page) ---------- */

.yes-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0 clamp(2rem, 6vw, 5rem);
  margin-top: clamp(4rem, 10vh, 6rem);
  padding: 0;
  list-style: none;
}

.yes-wall li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.yes-wall .yes-mark {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--orange);
  transform: translateY(0.15em);
}

.yes-wall p {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-wrap: pretty;
}

.yes-wall p span {
  color: var(--faint);
  font-weight: 400;
  letter-spacing: -0.01em;
}
