/*
  Player profiles (P2.9): the public profile (BOARD H1-P4-PlayerProfile-Phone), the player page a
  family sets up (BOARD H1-P2-ProfileSetup-Phone) and the admin's Profiles queue (BOARD
  H1-P2-AdminProfiles-Phone).

  Loaded by those pages only, before h1.css (extra stylesheets come first), so a rule here that must
  beat a library class names its wrapper. Same rules as h1.css: square, nothing under 12px, no
  filter, no blur, 44px targets. Surface colors come from the --h1-* properties the shells set.
*/

/* ---------- The public profile ---------- */

.h1-pf-hero {
  background: var(--gzs-raised);
}

.h1-pf-hero .h1-photo {
  margin: 0;
  max-height: 420px;
}

.h1-pf-about {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 20px var(--gzs-gutter-public) 24px;
}

.h1-pf-eyebrow {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 10px 4px 0;
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h1-fg);
}

.h1-pf-kicker {
  flex: none;
  width: 20px;
  height: 3px;
  background: var(--h1-outline);
}

.h1-pf-name {
  margin: 10px 0 0;
  font-family: var(--gzs-font-display);
  font-size: 56px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
  overflow-wrap: anywhere;
}

.h1-pf-facts {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
}

.h1-pf-tile {
  box-sizing: border-box;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  background: var(--gzs-raised);
  border: 2px solid var(--h1-outline);
  font-family: var(--gzs-font-display);
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--h1-fg-strong);
}

.h1-pf-tile-md {
  width: 64px;
  height: 64px;
  font-size: 26px;
}

.h1-pf-facts-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h1-pf-label {
  margin: 0;
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-pf-position {
  font-family: var(--gzs-font-display);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--h1-fg-strong);
  overflow-wrap: anywhere;
}

.h1-pf-registered {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 3px 8px;
  border: 1px solid var(--h1-outline);
  font-family: var(--gzs-font-body);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--h1-fg);
}

.h1-pf-why {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.h1-pf-quote {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--h1-fg-bright);
  overflow-wrap: anywhere;
}

.h1-pf-back {
  margin-top: 24px;
}

.h1-pf-about .h1-pf-club-link {
  align-self: center;
  margin-top: 4px;
}

/* ---------- Season stats on the public profile (P3.8, the leaders style of BOARD H1-P4-Standings-Phone) ---------- */

.h1-band.h1-pf-stats {
  padding-top: 32px;
  padding-bottom: 24px;
}

.h1-pf-stats-in {
  display: flex;
  flex-direction: column;
}

.h1-pf-stats-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-pf-stats-mark {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--h1-outline);
}

.h1-pf-stats-h {
  margin: 10px 0 0;
  font-family: var(--gzs-font-display);
  font-size: 40px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
}

.h1-pf-stats-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--h1-outline);
}

.h1-pf-stat {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 72px;
  border-bottom: 1px solid var(--h1-line);
}

.h1-pf-stat-pair {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.h1-pf-stat-num {
  font-family: var(--gzs-font-display);
  font-size: 40px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--h1-fg-strong);
}

.h1-pf-stat-unit {
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-pf-stats-note {
  margin: 14px 0 0;
  font-family: var(--gzs-font-body);
  font-size: 13px;
  line-height: 18px;
  color: var(--h1-fg-2);
}

/* ---------- The player page a family sets up ---------- */

.h1-pf-lead {
  margin-top: 12px;
  color: var(--h1-fg-2);
}

.h1-pf-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.h1-pf-photo-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.h1-pf-file-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h1-pf-file {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  font-family: var(--gzs-font-body);
  font-size: 15px;
  color: var(--h1-fg);
}

.h1-pf-added {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.h1-pf-own {
  box-sizing: border-box;
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 2px solid var(--h1-outline);
  background: var(--gzs-raised);
}

.h1-pf-added-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--gzs-font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--h1-fg);
}

.h1-pf-shown {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--h1-fg-2);
}

.h1-pf-consent {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--h1-card-bg);
  border: 2px solid var(--h1-outline);
}

.h1-pf-consent-head {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.h1-pf-consent-title {
  margin: 0;
  font-family: var(--gzs-font-display);
  font-size: 18px;
  line-height: 22px;
  font-weight: 800;
  color: var(--h1-fg-strong);
}

.h1-pf-consent-text {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--h1-fg);
}

.h1-pf-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.h1-pf-preview {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px var(--gzs-gutter-public);
}

.h1-pf-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.h1-pf-preview-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.h1-pf-preview-club {
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-pf-preview-name {
  font-family: var(--gzs-font-display);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
}

.h1-pf-preview-note {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--h1-fg-2);
}

.h1-pf-body .h1-pf-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.h1-pf-card-title {
  margin: 0;
}

.h1-pf-card-text {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--h1-fg-2);
}

.h1-pf-sent {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h1-pf-sent-why {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h1-pf-sent-label {
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-pf-sent-text {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--h1-fg);
  overflow-wrap: anywhere;
}

.h1-pf-url {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--gzs-font-mono);
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* ---------- The admin's Profiles queue ---------- */

.h1-pa {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.h1-pa-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h1-pa-head .h1-body {
  color: var(--h1-fg-2);
}

.h1-pa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.h1-pa .h1-pa-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.h1-pa-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.h1-pa-photo {
  box-sizing: border-box;
  flex: none;
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--h1-line-strong);
  background: var(--gzs-surface-alt);
}

.h1-pa-photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-style: dashed;
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-pa-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h1-pa-name {
  margin: 0;
  font-family: var(--gzs-font-display);
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
  color: var(--h1-fg-strong);
}

.h1-pa-sub,
.h1-pa-when {
  font-family: var(--gzs-font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--h1-fg-2);
}

.h1-pa-shown {
  font-family: var(--gzs-font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--h1-fg);
}

.h1-pa-minor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h1-pa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h1-pa-minor-text,
.h1-pa-note {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--h1-fg);
}

.h1-pa-why {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h1-pa-quote {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--h1-fg);
  overflow-wrap: anywhere;
}

.h1-pa-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.h1-pa-inline {
  margin: 0;
}

.h1-pa-sendback {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.h1-pa-all {
  margin: 4px 0 0;
}

.h1-pa-still {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid var(--h1-line-strong);
  color: var(--h1-fg);
  text-decoration: none;
}

.h1-pa-still-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--gzs-font-body);
  font-size: 15px;
  line-height: 20px;
}

.h1-pa-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.h1-pa-done {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h1-pa-done-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--h1-row-line);
}

.h1-pa-done-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--h1-row-line);
}

.h1-pa-done-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--gzs-font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--h1-fg-2);
}

.h1-pa-done-text strong {
  font-size: 15px;
  color: var(--h1-fg-strong);
}

@media (min-width: 1024px) {
  .h1-pa-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h1-pf-about,
  .h1-pf-stats-in {
    max-width: 720px;
  }
}
