/* ambassadors.css — the public leaderboard (/ambassadors), direction 2. */

.wg-amb { max-width: 640px; margin: 0 auto; padding: 8px 0 32px; }
.wg-amb-h1 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 4px; }
.wg-amb-h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.wg-amb-sub { color: var(--wg-muted); font-size: 0.9rem; margin: 0 0 14px; }

/* Podium: drawn 2, 1, 3 so the winner stands in the middle and a little taller. */
.wg-amb-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin: 6px 0 12px; }
.wg-amb-p { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--wg-surface); border-radius: 16px; padding: 12px 6px 14px; text-decoration: none; color: inherit; transition: transform .25s var(--wg-ease-spring, ease); }
.wg-amb-p:hover { transform: translateY(-2px); }
.wg-amb-p.is-first { background: var(--wg-tint); border: 1px solid var(--wg-border-soft); padding-top: 18px; }
.wg-amb-rk { font-size: 0.72rem; font-weight: 700; color: var(--wg-faint); }
.wg-amb-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--wg-tint); display: grid; place-items: center; font-weight: 800; color: var(--wg-color-ink); margin: 4px 0 6px; flex: none; }
.wg-amb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-amb-p.is-first .wg-amb-av { width: 54px; height: 54px; }
.wg-amb-nm { font-weight: 700; font-size: 0.9rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-amb-ct { font-size: 0.76rem; color: var(--wg-muted); }
.wg-amb-n { font-size: 1.35rem; font-weight: 800; color: var(--wg-color-ink); line-height: 1; margin-top: 6px; }
.wg-amb-p.is-first .wg-amb-n { font-size: 1.7rem; }
.wg-amb-l { font-size: 0.7rem; color: var(--wg-muted); }

/* Chips: month / all time / cities. Links, not buttons: the page needs no script. */
.wg-amb-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin: 6px 0 4px; }
.wg-amb-chips::-webkit-scrollbar { display: none; }
.wg-amb-chips .wg-chip { flex: none; display: inline-block; background: var(--wg-surface); color: var(--wg-text); border-radius: 999px; padding: 6px 12px; font-size: 0.8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.wg-amb-chips .wg-chip.is-on { background: var(--wg-color-ink); color: var(--wg-on-brand); }

.wg-amb-months { display: flex; align-items: center; justify-content: center; gap: 14px; font-weight: 700; font-size: 0.9rem; margin: 6px 0 4px; }
.wg-amb-mv { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--wg-surface); color: var(--wg-text); text-decoration: none; font-size: 1.2rem; }
.wg-amb-mv.is-off { opacity: .35; }

.wg-amb-list { list-style: none; margin: 4px 0 0; padding: 0; }
.wg-amb-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--wg-border-soft); }
.wg-amb-rank { width: 22px; flex: none; color: var(--wg-faint); font-weight: 700; font-size: 0.85rem; }
.wg-amb-av-s { width: 36px; height: 36px; margin: 0; }
.wg-amb-who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.wg-amb-who .wg-amb-nm { text-decoration: none; color: inherit; }
.wg-amb-who .wg-amb-ct { width: 100%; }
.wg-amb-who .wg-badge { margin-left: 0; }
.wg-amb-n-s { font-size: 1.05rem; margin: 0; }

.wg-amb-totals { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 18px 0 4px; }
.wg-amb-totals div { background: var(--wg-surface); border-radius: 14px; padding: 12px 6px; text-align: center; }
.wg-amb-totals b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--wg-color-ink); line-height: 1; }
.wg-amb-totals span { font-size: 0.72rem; color: var(--wg-muted); }

.wg-amb-rising { list-style: none; margin: 0; padding: 0; }
.wg-amb-rising li { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--wg-border-soft); font-size: 0.9rem; }
.wg-amb-rising a { color: inherit; text-decoration: none; font-weight: 600; }
.wg-amb-rising b { color: var(--wg-color-ink); }

.wg-amb-cta { margin-top: 22px; background: var(--wg-raised); border: 1px solid var(--wg-border-soft); border-radius: 18px; padding: 14px 16px 16px; }
.wg-amb-cta .wg-amb-h2 { margin-top: 0; }
.wg-amb-steps { list-style: none; margin: 0; padding: 0; counter-reset: amb; }
.wg-amb-steps li { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; margin-top: 10px; counter-increment: amb; }
.wg-amb-steps li::before { content: counter(amb); grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--wg-tint); color: var(--wg-color-ink); font-weight: 800; font-size: 0.82rem; display: grid; place-items: center; }
.wg-amb-steps b { font-size: 0.92rem; }
.wg-amb-steps span { font-size: 0.82rem; color: var(--wg-muted); }
.wg-amb-share { display: block; width: 100%; margin-top: 14px; text-align: center; }
.wg-amb-hint { font-size: 0.78rem; color: var(--wg-muted); text-align: center; margin: 8px 0 0; }

@media (min-width: 700px) {
  .wg-amb-h1 { font-size: 1.8rem; }
  .wg-amb-podium { gap: 12px; }
}

.wg-feed-empty { text-align: center; color: var(--wg-muted); padding: 32px 0; }

/* The viewer's own row and card are the only ones with a full name and a link; a tint says "this is you". */
.wg-amb-p.is-me { outline: 2px solid var(--wg-color); outline-offset: -2px; }
.wg-amb-row.is-me { background: var(--wg-tint); border-radius: 12px; padding-left: 8px; padding-right: 8px; }
