/* Billionaires Digest: the "Save your team" box on the Play home (index.html), unsubscribe.html, privacy.html and
   terms.html. Uses the v2 tokens (assets/v2/tokens.css), so light and dark themes come for free. */

/* no odds or matchup lines on the waitlist / privacy / unsubscribe pages (the scores ticker shows play-money lines) */
.v2-ticker { display: none !important; }

.wl-main { padding-bottom: var(--s6); }
.wl-main .v2-wrap { max-width: 760px; }

/* hero */
.wl-hero { padding: var(--s3) 0 var(--s2); }
.wl-kick {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-ink); margin-bottom: var(--s0);
}
.wl-h {
  font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase;
  font-size: var(--fs-3xl); line-height: .98; letter-spacing: .005em; color: var(--text); margin: 0 0 var(--s1);
}
.wl-sub { font-size: var(--fs-lg); line-height: 1.4; color: var(--text); margin-bottom: var(--s2); max-width: 46ch; }

.wl-invite {
  background: var(--info-tint); color: var(--info-ink); border-left: 4px solid var(--info-ink);
  border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s0) var(--s1); font-weight: 600; margin-bottom: var(--s1);
}
.wl-invite strong { color: var(--text); }

/* the card that holds every form state */
.wl-card {
  background: var(--card); color: var(--text); border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: var(--s2);
}
.wl-card__h { font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase; font-size: var(--fs-xl); line-height: 1.05; margin-bottom: var(--s1); }
.wl-note { color: var(--text); line-height: 1.45; }
.wl-note a, .wl-hint a, .wl-foot a, .wl-legal a:not(.v2-btn), .wl-agree a, .wl-check a { color: var(--link); }
.wl-hint { font-size: var(--fs-sm); color: var(--text-muted); margin: var(--s0) 0 0; }
.wl-label { display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 6px; }

.wl-form__row, .wl-link__row { display: flex; gap: var(--s0); align-items: stretch; }
.wl-input { flex: 1 1 auto; min-width: 0; font-size: 16px; }   /* 16px: no zoom on iOS */
.wl-input[aria-invalid="true"] { border-color: var(--negative); }
.wl-go { flex: 0 0 auto; }
.wl-link__input { flex: 1 1 auto; min-width: 0; font-size: 15px; background: var(--surface-2); }

.wl-msg { font-size: var(--fs-sm); color: var(--text-muted); margin: var(--s0) 0 0; min-height: 1em; }
.wl-msg:empty { margin: 0; min-height: 0; }
.wl-msg--bad { color: var(--negative); font-weight: 600; }
.wl-msg--ok { color: var(--positive); font-weight: 600; }

.wl-pos { font-size: var(--fs-lg); margin-bottom: var(--s1); }
.wl-pos__n { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-2xl); color: var(--brand-ink); }
.wl-link { margin-bottom: var(--s1); }

.wl-sub { border-top: 1px solid var(--line); margin-top: var(--s2); padding-top: var(--s2); }
.wl-sub__h { font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase; font-size: var(--fs-lg); margin-bottom: var(--s0); }

/* captain grid: painted portraits or the grey silhouette, never photos */
.wl-cap__grid { list-style: none; margin: var(--s1) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s0); }
.wl-cap__b {
  width: 100%; min-height: var(--tap); display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text);
  cursor: pointer; font-size: var(--fs-xs); font-weight: 600; line-height: 1.15; text-align: center;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.wl-cap__b:hover { border-color: var(--text); }
.wl-cap__b[aria-pressed="true"] { border-color: var(--positive); background: var(--positive-tint); box-shadow: inset 0 0 0 1px var(--positive); }
.wl-cap__b[disabled] { cursor: progress; opacity: .7; }
.wl-cap__name { overflow-wrap: anywhere; }
.wl-face { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: var(--surface-2); flex: 0 0 auto; }
.wl-face img { width: 100%; height: 100%; object-fit: cover; }
.wl-face__ini { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 20px; color: var(--text-muted); }

.wl-stats { margin: var(--s1) 0 0; font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }

/* "Also send me The Billionaire Brief" (unticked by default) and the terms line under the email form */
.wl-check { display: flex; align-items: flex-start; gap: 10px; margin: var(--s1) 0 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--text); cursor: pointer; }
.wl-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.wl-check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wl-agree { margin-top: var(--s0); }

/* the "Save your team" section on the Play home, right under the hero */
.wl-save { margin: var(--s2) 0; }
/* hidden until config/launch.json "emailSignup" is true: assets/waitlist.js then adds .wl-email-on to <html>.
   Hidden by default (not after a check), so the page never flashes an empty box or leaves a gap. */
html:not(.wl-email-on) .wl-save { display: none; }
.wl-save__head { margin: 0 auto var(--s1); max-width: 760px; text-align: center; }
.wl-save__h { font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase; font-size: var(--fs-xl); line-height: 1.05; margin: 0 0 6px; color: var(--text); }
.wl-save__p { margin: 0; color: var(--text-muted); line-height: 1.45; max-width: 60ch; margin-left: auto; margin-right: auto; }
.wl-save .wl-card, .wl-save .wl-invite { max-width: 760px; margin-left: auto; margin-right: auto; }
.hm-hero__kick [data-wl-season] { white-space: nowrap; }

/* how it works */
.wl-how { margin-top: var(--s3); }
.wl-how__list { margin: var(--s1) 0 0; padding-left: 1.3em; line-height: 1.5; }
.wl-how__list li { margin-bottom: var(--s0); }

/* today's stories */
.wl-news { margin-top: var(--s4); }
.wl-news__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s1); border-bottom: 2px solid var(--text); padding-bottom: var(--s0); }
.wl-more { font-weight: 700; color: var(--link); white-space: nowrap; }
.wl-news__date { margin: var(--s0) 0 0; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.wl-news__list { list-style: none; margin: 0; padding: 0; }
.wl-story { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wl-story__h { display: block; font-weight: 700; font-size: var(--fs-md); line-height: 1.3; color: var(--text); text-decoration: none; }
.wl-story__h:hover { text-decoration: underline; }
.wl-story__meta { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .02em; }

.wl-foot { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }

/* privacy / unsubscribe pages */
.wl-legal { max-width: 720px; }
.wl-legal h1 { font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase; font-size: var(--fs-2xl); line-height: 1; margin: var(--s2) 0 var(--s1); }
.wl-legal h2 { font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase; font-size: var(--fs-lg); margin: var(--s2) 0 var(--s0); }
.wl-legal p, .wl-legal li { line-height: 1.55; }
.wl-legal ul { padding-left: 1.3em; margin: 0 0 var(--s1); }
.wl-legal .wl-card { margin-top: var(--s1); }

@media (max-width: 767px) {
  .wl-hero { padding-top: var(--s1); }
  .wl-card { padding: var(--s1); }
  .wl-form__row { flex-direction: column; }
  .wl-go { width: 100%; }
  .wl-link__row { flex-wrap: wrap; }
  .wl-link__input { flex-basis: 100%; }
  .wl-link__row .v2-btn { flex: 1 1 0; }
  .wl-cap__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .wl-cap__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .wl-cap__b { transition: none; }
}
