/* Men in Motion — Register your club (views/register-club.php).
   Loaded after auth.css, which draws the banner, rail and lifted card (the
   Join page's layout). This sheet is what the club form needs beyond it: the
   gate, fieldsets, the live preview, the keyboard-reachable file input and
   the submitted screen. Everything is scoped to .club-reg. */

/* applying-as banner */
.club-reg .who { display: flex; align-items: center; gap: 12px; background: var(--ok-bg); border: 1px solid #bfe3cd; border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; font-size: 14px; color: #145c37; }
.club-reg .who b { color: #0f3f26; }
.club-reg .who .avatar { background: var(--ok); }
.club-reg .invite { margin: 0 0 14px; }

/* A row of fields lines up by its labels: a hint or an error under one
   field must not stretch its neighbours' controls. */
.club-reg .row2, .club-reg .row3 { align-items: start; }
.club-reg .tin input { max-width: 320px; }
.club-reg .nw { white-space: nowrap; }

/* step sub-headings */
.club-reg .sub-h { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* fieldsets that are .field groups (club type, declarations) */
.club-reg fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.club-reg fieldset.field > legend { font-size: 13.5px; font-weight: 700; color: var(--navy-900); padding: 0; margin-bottom: 8px; }
/* The required star, as auth.css draws it on a <label>, for the legend and the upload's label. */
.club-reg .types:has(:required) > legend::after, .club-reg .doc-field:has(:required) > .lbl::after { content: " *"; color: var(--bad); font-weight: 700; }
.club-reg .types .choices { margin-bottom: 0; }
.club-reg .types .err { margin-top: 6px; }
.club-reg .school-note { margin-bottom: 16px; }
.club-reg .dup-live .alert { margin: -6px 0 16px; }

/* listing + live preview */
.club-reg .split-prev { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.club-reg .prev-lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.club-reg .prev-note { margin: 10px 0 0; }
.club-reg .club { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.club-reg .club .top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.club-reg .club .nm { min-width: 0; font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--navy-900); line-height: 1.2; margin: 0; }
.club-reg .club .type { flex-shrink: 0; font-size: 11.5px; font-weight: 700; background: var(--blue-100); color: var(--blue-600); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.club-reg .club .ver { font-size: 13px; font-weight: 600; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.club-reg .club .ver svg { width: 15px; height: 15px; flex-shrink: 0; }
.club-reg .club .meta { font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.club-reg .club .join { background: var(--sand); border-radius: 10px; padding: 9px 11px; font-size: 13px; color: #5a4a26; }
.club-reg .club .join b { color: #3d300f; }
.club-reg .club .foot { font-size: 12px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 8px; display: flex; justify-content: space-between; }
.club-reg .club .foot .em { font-weight: 700; color: var(--blue-600); }
.club-reg .counter { font-size: 12px; color: var(--ink-3); text-align: right; }

/* contacts */
.club-reg .officer { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.club-reg .officer .avatar { background: var(--ok); }
.club-reg .officer .tx { flex: 1; min-width: 0; }
.club-reg .officer b { display: block; font-size: 14.5px; color: var(--navy-900); }
.club-reg .officer small { color: var(--ink-3); }
.club-reg .officer .role-pick { margin: 0; min-width: 170px; gap: 4px; }
.club-reg .officer .role-pick > label { font-size: 12.5px; }
.club-reg .add-off { border: 1.5px dashed #c9d4e6; border-radius: 14px; padding: 16px; background: #fbfcfe; }
.club-reg .add-off .field { margin-bottom: 0; }
.club-reg .add-off .row3 { row-gap: 14px; }   /* stacked on a phone, the three fields still need air */
.club-reg .add-off .off-h { font-family: var(--body); font-size: 14.5px; font-weight: 700; color: var(--navy-900); }
.club-reg .add-off .off-sub { font-size: 13.5px; color: var(--ink-2); margin: 2px 0 12px; }
.club-reg .school-one { margin-bottom: 4px; }
.club-reg .doc-field { margin-top: 18px; }
.club-reg .doc-field > .lbl { font-size: 13.5px; font-weight: 700; color: var(--navy-900); }

/* The file input stays in the tab order (app.css hides it with display:none,
   which no keyboard can reach); the drop zone shows its focus. */
.club-reg .drop { position: relative; }
.club-reg .drop input[type=file] { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.club-reg .drop:focus-within { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.club-reg .drop:hover { border-color: var(--blue-600); }
.club-reg .drop b { overflow-wrap: anywhere; }
.club-reg .drop[aria-busy="true"] { cursor: progress; }
.club-reg .field.invalid .drop { border-color: #e48a80; }

/* the two declarations */
.club-reg .attest { margin-top: 18px; gap: 0; }
.club-reg .attest > label.check { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.club-reg .attest .err { margin-top: -4px; }

/* what a club needs (step 1, and the signed-out gate) */
.club-reg .need-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.club-reg .need-list li { display: flex; gap: 9px; align-items: flex-start; }
.club-reg .need-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--ok); }
.club-reg .need-box { margin-bottom: 22px; }
.club-reg .need-box > div { min-width: 0; }

/* submitted: the outcome centred, the road ahead left-aligned under it */
.club-reg .done h2 { margin-bottom: 6px; }
.club-reg .done .ref-l { margin: 0; font-size: 14px; color: var(--ink-3); }
.club-reg .ref { display: inline-block; font: 700 16px var(--body); letter-spacing: .04em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; margin: 8px 0 18px; }
.club-reg .done-p { margin: 0 auto 22px; max-width: 54ch; color: var(--ink-2); }
.club-reg .done .timeline { max-width: 520px; margin: 0 auto 24px; text-align: left; }
.club-reg .done-act { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* the gate (signed out, join unfinished, with the desk, not verified) */
.club-reg .gate > .alert { margin-bottom: 4px; }
.club-reg .club-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; font-size: 14px; color: var(--ink-2); }
.club-reg .facts-h { font: 700 15px var(--body); color: var(--navy-900); }
.club-reg .facts-h span { font-weight: 500; color: var(--ink-3); }
.club-reg .gate-foot { justify-content: flex-end; flex-wrap: wrap; }
.club-reg .soon { color: var(--ink-3); background: var(--bg-soft); cursor: default; }
.club-reg .soon:hover { color: var(--ink-3); border-color: var(--line-strong); }
.club-reg .soon i { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; }

@media (max-width: 760px) {
  .club-reg .split-prev, .club-reg .club-facts { grid-template-columns: 1fr; }
  .club-reg .officer { flex-wrap: wrap; }
  .club-reg .officer .role-pick { flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 640px) {
  /* auth.css stacks the wizard's two buttons; the gate's and the done screen's stack too. */
  .club-reg .gate-foot, .club-reg .done-act { flex-direction: column-reverse; align-items: stretch; }
  .club-reg .form-actions .btn-primary-lg, .club-reg .form-actions .btn-ghost-lg { white-space: normal; text-align: center; }
}
