/* Round Rock SC identity: club photography, private player portraits and
   purposeful red accents within GoPlay's shared blue and white interface. */
:root { --club-red: #c9253d; --club-red-dark: #a91e33; --club-rose: #fff1f3; }
.sidebar-club { background: #fffafb; border-color: #f0e2e6; box-shadow: inset 3px 0 0 var(--club-red); }
.sidebar-club:hover { background: #fff3f5; }
.sidebar .side-link[aria-current='page'] { background: var(--club-rose); color: #ac263b; }
.sidebar .side-link[aria-current='page'] .icon { color: var(--club-red); }
.gp-mobile-link[aria-current='page'], .gp-mobile-link.is-selected { color: var(--club-red); background: var(--club-rose); }
.gp-home-summary .gp-home-metric:first-child .gp-home-metric-icon { color: #bf3449; background: #fff0f3; }

/* Program covers keep their space while photos load or are unavailable. */
.gp-program-cover { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #193854; border-radius: 12px; }
.gp-program-image { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.gp-program-image[hidden] { display: none; }
.gp-program-image-fallback { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 20px; color: #e8edf6; background: linear-gradient(120deg, #17344f, #263449 65%, #713342); }
.gp-program-image-fallback > img { width: 42px; height: 49px; object-fit: contain; flex: none; }
.gp-program-image-fallback > span { font-size: .875rem; font-weight: 600; line-height: 1.5; letter-spacing: .015em; }
.gp-program-cover.is-fallback { box-shadow: inset 0 -3px 0 #c9253d; }

/* Initials remain useful before a family chooses a photo. Images are private,
   short-lived signed URLs; this component never accepts a public profile URL. */
.gp-portrait { position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: none; width: 52px; height: 60px; overflow: hidden; border: 1px solid #e8dfe5; border-radius: 12px; background: linear-gradient(145deg, #fff4f3, #f4e8ec); color: #aa3549; vertical-align: middle; }
.gp-portrait::after { content: ""; position: absolute; z-index: -1; right: -15%; bottom: -38%; width: 85%; height: 90%; border: 1px solid #c9253d12; border-radius: 50%; box-shadow: 0 0 0 12px #c9253d05; }
.gp-portrait-initials { font: 650 1rem/1 var(--sans); letter-spacing: -.035em; }
.gp-portrait--small { width: 36px; height: 40px; border-radius: 9px; }
.gp-portrait--small .gp-portrait-initials { font-size: .75rem; }
.gp-portrait--large { width: 88px; height: 108px; border-radius: 14px; }
.gp-portrait--large .gp-portrait-initials { font-size: 1.5rem; }
.gp-portrait--hero { width: 108px; height: 128px; border-radius: 14px; }
.gp-portrait--hero .gp-portrait-initials { font-size: 1.875rem; }
.gp-portrait-image { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: 0; }
.gp-portrait.has-photo .gp-portrait-image { opacity: 1; }
.gp-portrait.has-photo .gp-portrait-initials { visibility: hidden; }

/* The image chooser uses the native file control, visible validation and a
   local preview. Keeping actions outside the preview makes it keyboard usable. */
.gp-photo-editor { display: grid; gap: 22px; min-width: 0; }
.gp-photo-editor-intro { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 22px; }
.gp-photo-editor-preview { width: 108px; height: 128px; overflow: hidden; border-radius: 14px; background: #f5eef1; }
.gp-photo-selected { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.gp-photo-editor-intro h3 { margin: 0 0 9px; font: 650 1.1875rem/1.4 var(--sans); color: var(--ink); letter-spacing: -.025em; overflow-wrap: anywhere; }
.gp-photo-editor-intro p { margin: 0 0 12px; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.gp-photo-private { display: inline-flex; align-items: center; gap: 6px; color: #6d7e93; font-size: .75rem; line-height: 1.5; }
.gp-photo-private > .icon { width: 13px; height: 13px; }
.gp-photo-editor input[type='file'] { width: 100%; max-width: 100%; padding: 12px; background: #f8faff; border: 1px solid #dce4ef; border-radius: 10px; font-size: .8125rem; color: #617188; }
.gp-photo-editor input[type='file']::file-selector-button { border: 1px solid #d3deed; border-radius: 7px; margin-right: 12px; padding: 9px 11px; background: #fff; color: #375777; font: 600 .8125rem/1.5 var(--sans); cursor: pointer; }
.gp-photo-editor input[type='file']::file-selector-button:hover { background: #eef4ff; }
.gp-photo-editor .form-status { margin: 0; font-size: .875rem; line-height: 1.6; }
.gp-photo-editor .form-status:empty { display: none; }
.gp-photo-editor-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.gp-photo-editor-actions > .actions { margin-left: auto; }
.gp-photo-editor .gp-photo-remove { color: #a83548; font-size: .8125rem; }
.gp-photo-editor .btn-primary { background: var(--club-red); border-color: var(--club-red); }
.gp-photo-editor .btn-primary:hover:not(:disabled) { background: var(--club-red-dark); border-color: var(--club-red-dark); }
.gp-photo-editor :disabled { cursor: wait; }
.gp-photo-editor .btn-primary:disabled { cursor: default; }

/* Compact images help staff recognize programs without making tables bulky. */
.gp-staff-program-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.gp-staff-program-identity > .gp-staff-program-cover { width: 64px; height: 50px; aspect-ratio: auto; border-radius: 8px; flex: none; }
.gp-staff-program-cover .gp-program-image-fallback { padding: 8px; }
.gp-staff-program-cover .gp-program-image-fallback > img { width: 24px; height: 28px; }
.gp-staff-program-cover .gp-program-image-fallback > span { display: none; }
.gp-staff-program-identity > .gp-cell-link { min-width: 0; }
.gp-staff-program-detail-cover { max-height: 240px; aspect-ratio: 2.4 / 1; margin-bottom: 22px; }

@media (max-width: 650px) {
  .gp-photo-editor { gap: 20px; }
  .gp-photo-editor-intro { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .gp-photo-editor-preview, .gp-photo-editor-preview .gp-portrait { width: 88px; height: 108px; }
  .gp-photo-editor-intro h3 { font-size: 1.0625rem; }
  .gp-photo-editor-actions > .actions { width: 100%; }
  .gp-photo-editor-actions .actions > .btn { flex: 1; min-height: 44px; }
  .gp-staff-program-detail-cover { aspect-ratio: 2 / 1; }
}
@media print {
  .gp-photo-editor-actions { display: none; }
}

/* New-system notice and waitlist planning groups */
.gp-launch-notice { display:flex; align-items:flex-start; gap:10px; padding:12px clamp(16px,2.5vw,36px); background:#eef5ff; color:#294769; border-bottom:1px solid #d8e6f8; font-size:.8125rem; line-height:1.55; }
.gp-launch-notice > .icon { flex:0 0 auto; margin-top:2px; width:18px; height:18px; }
.gp-launch-notice strong { font-weight:700; }
.gp-launch-notice a { color:#174da1; font-weight:650; text-decoration:underline; text-underline-offset:2px; }
.gp-waitlist-team-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr)); gap:12px; }
.gp-waitlist-team-card { display:flex; flex-direction:column; gap:5px; align-items:flex-start; padding:16px; min-width:0; border:1px solid #dce5f1; border-radius:12px; background:#fff; color:#172b4d; text-align:left; font:inherit; cursor:pointer; }
.gp-waitlist-team-card:hover { border-color:#8daee4; background:#f8faff; }
.gp-waitlist-team-card[aria-pressed="true"] { border-color:#2563eb; box-shadow:0 0 0 1px #2563eb; background:#f1f6ff; }
.gp-waitlist-team-card:focus-visible { outline:3px solid #6c9cf2; outline-offset:2px; }
.gp-waitlist-team-label { font-size:.875rem; font-weight:700; color:#35557d; }
.gp-waitlist-team-card strong { font-size:1.8rem; font-weight:700; line-height:1.2; }
.gp-waitlist-team-caption,.gp-waitlist-team-card small { font-size:.75rem; color:#5f6e83; }
.gp-waitlist-team-split { display:flex; flex-wrap:wrap; gap:6px 12px; width:100%; margin-top:7px; padding-top:9px; border-top:1px solid #e1e8f2; font-size:.75rem; font-weight:650; }
@media print { .gp-launch-notice {display:none!important} }

/* Clearly identify the players who can apply for a program or package. */
.gp-eligible-players { margin-top:12px; padding:12px; border:1px solid #d7e9e1; border-radius:11px; background:#f4faf7; min-width:0; }
.gp-eligible-title { display:flex; align-items:center; gap:7px; color:#22664b; font-size:.75rem; line-height:1.3; }
.gp-eligible-title .icon { width:15px;height:15px;flex-shrink:0; }
.gp-eligible-title > span:last-child { margin-left:auto; font-weight:700; }
.gp-eligible-list { display:grid; gap:7px; margin-top:10px; }
.gp-eligible-player { display:flex; align-items:center; gap:9px; padding:7px 9px; background:#fff; border:1px solid #e0ece6; border-radius:8px; min-width:0; }
.gp-eligible-player > div:last-child { min-width:0; display:grid; gap:3px; }
.gp-eligible-player strong { font-size:.875rem; color:#172b4d; overflow-wrap:anywhere; line-height:1.25; }
.gp-eligible-player small { font-size:.7rem; color:#5f6e83; }
.gp-eligible-player .gp-eligible-package { font-size:.8125rem; color:#22664b; line-height:1.4; }
.gp-rec-package-summary { padding:16px; background:#f4faf7; border:1px solid #cfe5da; border-radius:10px; }
.gp-rec-package-summary strong { font-size:1rem; color:#173a2b; }
.gp-rec-package-summary p { margin:6px 0; }
.gp-rec-package-summary small { font-size:.875rem; line-height:1.5; color:#526579; }
.gp-rec-package-options > h3 { margin-bottom:8px; }
.gp-rec-package-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:18px; }
.gp-rec-package-card { min-width:0; padding:18px; background:#fff; border:1px solid #dbe3ed; border-radius:12px; }
.gp-rec-package-card.is-eligible { border-color:#8ec5ae; box-shadow:0 0 0 1px #cfe9de; }
.gp-rec-package-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.gp-rec-package-top h4 { margin:0; font-size:1rem; line-height:1.45; }
.gp-rec-package-top > strong { font-size:1.125rem; color:#172b4d; white-space:nowrap; }
.gp-rec-package-card > .btn { margin-top:14px; width:100%; }
.gp-rec-package-card > small { color:#617086; font-size:.875rem; }
.gp-rec-registration-package { font-size:.9375rem; font-weight:650; color:#22664b; margin:7px 0; }
@media(max-width:600px) { .gp-rec-package-grid { grid-template-columns:1fr; } }


/* Account confirmation and email-link actions: independent full-width rows. */
.auth-panel-inner .auth-confirm-actions { display:flex; flex-direction:column; align-items:stretch; gap:10px; margin-top:20px; width:100%; }
.auth-panel-inner .auth-confirm-actions > button { display:flex; justify-content:center; align-items:center; width:100%; min-height:44px; margin:0; padding:10px 16px; white-space:normal; text-align:center; line-height:1.4; box-sizing:border-box; }
.auth-panel-inner .auth-confirm-actions > .btn-text + .btn-text { margin:0; }
