/* Family registration wizard, registration landing and My Family portal (registration workstream).
   Uses the tokens from style.css; nothing here overrides the public shell. */

/* ---------- landing ---------- */
.reg-season-card { border-top: 4px solid var(--ink); }
.reg-facts { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .92rem; }
.reg-facts li { display: flex; gap: .6rem; padding: .25rem 0; align-items: baseline; }
.reg-facts i { color: var(--grey-dark); width: 16px; text-align: center; flex: none; }

/* ---------- wizard ---------- */
.reg-section { padding-bottom: 7rem; }
.reg-summary { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.reg-summary li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .82rem; display: flex; gap: .45rem; align-items: center; }
.reg-summary li.is-late { border-color: var(--hl-dark); color: var(--hl-deep); font-weight: 700; }
.reg-summary i { color: var(--grey-dark); }
.wiz-progress { height: 6px; background: var(--paper-dark); border-radius: 999px; overflow: hidden; }
.wiz-progress-bar { height: 100%; background: var(--hl); border-radius: 999px; transition: width .25s ease; }
.wiz-progress-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: .4rem 0 .75rem; }
.wiz-panel { padding: 1.25rem; }
@media (min-width: 768px) { .wiz-panel { padding: 2rem; } }
.wiz-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); padding: .65rem 0 calc(.65rem + env(safe-area-inset-bottom)); }
.wiz-nav .btn { min-height: 52px; font-size: 1rem; }
.wiz-nav #wizBack { min-width: 104px; }
.wiz-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.wiz-tabs button { min-height: 48px; border: 0; background: #fff; font-weight: 700; color: var(--ink); }
.wiz-tabs button.active { background: var(--ink); color: #fff; }

.ath-list { display: grid; gap: .6rem; margin-bottom: .75rem; }
.ath-card { position: relative; display: block; margin: 0 0 .6rem; cursor: pointer; }
.ath-list .ath-card { margin: 0; }
.ath-card input { position: absolute; left: 1rem; top: 1.05rem; width: 1.35em; height: 1.35em; accent-color: var(--ink); }
.ath-card .ath-body { display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem .85rem 3rem; background: #fff; min-height: 56px; }
.ath-card input:checked + .ath-body { border-color: var(--ink); box-shadow: 0 0 0 .2rem rgba(242, 96, 12, .22); }
.ath-card input:focus-visible + .ath-body { outline: 3px solid var(--hl); outline-offset: 2px; }
.ath-card .ath-name { display: block; font-weight: 700; color: var(--ink); }
.ath-card .ath-meta { display: block; color: var(--muted); font-size: .85rem; }
.ath-card.is-done { cursor: default; }
.ath-card.is-done .ath-body { background: var(--paper); }
.ath-card .badge-mm { margin-top: .35rem; }
.add-athlete .add-form { display: none; border: 2px dashed var(--grey-light); border-radius: var(--radius); padding: 1rem; margin-top: .25rem; }
.add-athlete.open .add-form { display: block; }
.add-athlete.open #addToggle { display: none; }

.pick-grid.one { grid-template-columns: 1fr; }
.pick-card.is-off { cursor: not-allowed; }
.pick-card.is-off .pick-body { background: var(--paper); opacity: .7; }
.pick-card .pick-title .badge-mm { vertical-align: middle; margin-left: .35rem; }
.wiz-panel .pick-card .pick-body { display: block; }
.wiz-panel .pick-card .pick-title, .wiz-panel .pick-card .pick-meta { display: block; }

.waiver-box { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: var(--paper); font-size: .9rem; margin-bottom: 1rem; }
.waiver-box h3, .waiver-box h2, .waiver-box h4 { font-size: 1.05rem; margin: .5rem 0 .35rem; }
.consent-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .75rem; }
.consent-card .consent-who { font-weight: 800; text-transform: uppercase; font-family: var(--font-head); letter-spacing: .03em; margin-bottom: .5rem; }
.consent-card .form-check { padding: .35rem 0 .35rem 2rem; min-height: 44px; }
.consent-card .form-check-input { margin-left: -2rem; }
.sig-input { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-size: 1.25rem; }

.fee-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: .75rem; }
.fee-athlete { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.fee-name { font-weight: 800; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.fee-name span { font-weight: 600; color: var(--muted); font-size: .85rem; }
.fee-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; padding-top: .3rem; }
.fee-row small { color: var(--muted); }
.fee-row.late { color: var(--hl-deep); }
.fee-row.disc { color: var(--ok); }
.fee-row.wait { color: var(--muted); }
.fee-total { display: flex; justify-content: space-between; padding: .85rem 1rem; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.15rem; }
.aid-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; background: var(--paper); }
.done-list { list-style: none; padding: 0; margin: 1rem 0; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); }
.done-list li { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.done-list li:last-child { border-bottom: 0; }
.payment-note { background: var(--paper); border-left: 5px solid var(--ink); border-radius: var(--radius); padding: .85rem 1rem; }

/* ---------- My Family (portal) ---------- */
.fam-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%; display: flex; flex-direction: column; }
.fam-card h3 { font-size: 1.45rem; text-transform: uppercase; margin: 0; }
.fam-card .fam-meta { color: var(--muted); font-size: .88rem; }
.fam-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0 .75rem; }
.fam-chip { background: var(--paper); border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 700; }
.fam-chip.warn { background: #fff1e6; color: var(--hl-deep); }
.reg-row { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.reg-row:last-child { border-bottom: 0; }
.reg-row .reg-title { font-weight: 800; }
.reg-row .reg-sub { color: var(--muted); font-size: .88rem; }
.reg-row .reg-side { text-align: right; }
.reg-row .reg-actions { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; }
.reg-row .reg-actions .btn { min-height: 44px; }
.badge-st { display: inline-block; border-radius: 999px; padding: .15rem .65rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.badge-st.pending { background: #fff1e6; color: var(--hl-deep); }
.badge-st.paid, .badge-st.committed { background: #e3f4ea; color: #14633a; }
.badge-st.waitlist, .badge-st.registered, .badge-st.attended { background: var(--paper-dark); color: var(--ink); }
.badge-st.offered { background: var(--ink); color: #fff; }
.badge-st.withdrawn, .badge-st.refunded, .badge-st.declined, .badge-st.not_selected { background: #f1f1f1; color: var(--grey-dark); }
.offer-banner { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.offer-banner .btn { min-height: 44px; }
.roster-table td, .roster-table th { vertical-align: top; padding: .65rem .5rem; }
.roster-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .6rem; background: #fff; }
.roster-card .rc-name { font-weight: 800; }
.roster-card a { word-break: break-word; }
.commit-letter { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; max-height: 55vh; overflow-y: auto; }
.portal-modal .modal-footer .btn, .portal-modal .btn-close { min-height: 44px; }
.pref-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); min-height: 52px; }
.pref-row:last-child { border-bottom: 0; }
.pref-row .form-check-input { width: 2.6em; height: 1.4em; }
