/* xf-joinflow.css. STAGING. Join flow design review 2 Dec 2026, bundle (a): fixes that do not depend on the December offer.
   Loaded after xf.css on /join/, /join/details/, /join/payment/ and the three club pages. Join pages carry body.xf-jf.
   Values from xf-tokens.css v2 (Nova D1 to D17) and DESIGN-TOKENS.md. Each rule names its review item.
   Not done here, on purpose: the InterV font swap (L1). The only InterV file in the estate is a 48KB subset cut for the
   Nike page; a full licensed file has to be sourced first (Ibex). */

/* Visually hidden, still read out */
.xf-vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- B9: one green per view. The header JOIN ONLINE links to the page you are on. ---------- */
body.xf-jf .xfh-join{display:none!important}

/* ---------- B6: fields at 16px (no iOS zoom on focus, D8) with a 3:1 edge (D5, WCAG 1.4.11) ---------- */
body.xf-jf .fld,body.xf-jf input.fld,body.xf-jf select.fld,body.xf-jf textarea.fld{font-size:16px;border-color:#8E8E8C;border-width:1px}
body.xf-jf .fld:hover{border-color:#55554F}

/* ---------- L3: one error colour (interim #B3261E, Nova to pick the token), errors tied to fields ---------- */
body.xf-jf{--xf-err:#B3261E}
body.xf-jf .formmsg--bad,body.xf-jf .req{color:var(--xf-err)}
body.xf-jf .formmsg.bad{border-left-color:var(--xf-err)}
body.xf-jf .fld--bad,body.xf-jf .fld[aria-invalid="true"]{border-color:var(--xf-err);border-width:2px}
body.xf-jf .fld-err{margin:6px 0 0;font-size:14px;line-height:1.45;font-weight:600;color:var(--xf-err)}
body.xf-jf .err-sum{margin:0 0 18px;padding:14px 16px;border:2px solid var(--xf-err);border-radius:4px;background:#fff}
body.xf-jf .err-sum h2{margin:0 0 6px;font-size:16px;font-weight:600;color:var(--xf-err)}
body.xf-jf .err-sum ul{margin:0;padding-left:20px;font-size:15px;line-height:1.5}
body.xf-jf .err-sum a{color:var(--black);font-weight:600}

/* ---------- L2: labels on the 12px/600/0.06em label token; only "Optional" is marked ---------- */
body.xf-jf .fldlabel{font-size:12px;font-weight:600;letter-spacing:.06em;color:#55554F;margin:16px 0 6px}
/* the tag goes; the word stays for screen readers (the inputs also carry required) */
body.xf-jf .req{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.xf-jf .opt{font-size:12px;letter-spacing:.06em;font-weight:600;padding:2px 6px;vertical-align:1px}
body.xf-jf .form-need{margin:0 0 4px;font-size:14px;color:#55554F}

/* ---------- L1: buttons on the token sizes (D1 15px/600, D2 0 32px, D3 52px, 48px under 600px) ---------- */
/* column-gap keeps the space in "Join and pay £5.00" (text and .pay-amt are separate flex items) (Ibex 2) */
body.xf-jf .btn{font-size:15px;font-weight:600;letter-spacing:.08em;min-height:52px;padding:0 32px;display:flex;align-items:center;justify-content:center;column-gap:.3em;flex-wrap:wrap}
body.xf-jf .btn.photopick{display:inline-flex;width:auto}
body.xf-jf .camctl .btn{width:auto;padding:0 18px;min-height:44px}
@media (max-width:600px){body.xf-jf .btn{min-height:48px}}

/* ---------- B4: disabled = light band D14 state, not a faded green; the reason sits under it ---------- */
body.xf-jf .btn[disabled]{opacity:1;background:#E9E9E7;color:#55554F;border-color:#E9E9E7;cursor:not-allowed}
body.xf-jf .btn[disabled]:hover{background:#E9E9E7}
/* shown and hidden by xf-joinflow.js from the ticks themselves (Ibex 3, Cain 2) */
body.xf-jf .pay-why{margin:8px 0 0;font-size:14px;line-height:1.45;color:#55554F}

/* B3: the trust row and the Direct Debit Guarantee placeholder are out of this cut (Ibex 1, Mastiff B-C1 (b)). */

/* ---------- L4: display H1 on the --fs-h1 scale (48px at 375) ---------- */
body.xf-jf h1.disp{font-size:48px}
@media (min-width:760px){body.xf-jf h1.disp{font-size:64px}}
@media (min-width:1100px){body.xf-jf h1.disp{font-size:75px}}
/* L4: no 12px body copy in the flow; 13px small floor, 14px for the notes that carry terms */
body.xf-jf .paynote,body.xf-jf .joinform p.m,body.xf-jf .camnote{font-size:14px;line-height:1.5}
body.xf-jf .daybox .line{font-size:14px}
body.xf-jf .daybox .conc summary,body.xf-jf .daybox .conc-b p{font-size:14px}

/* ---------- L5: step tracker. Active circle black (green kept for its four uses); 28px circles; mobile shows the current label only ---------- */
body.xf-jf .steptrack .stepnum{width:28px;height:28px;font-size:13px}
body.xf-jf .steptrack li.current .stepnum{background:var(--black);border-color:var(--black);color:var(--off)}
body.xf-jf .steptrack .steplabel{font-size:13px}
@media (max-width:600px){
 body.xf-jf .steptrack li:not(.current) .steplabel{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}

/* ---------- L6: on mobile the payment summary comes before the Direct Debit box ---------- */
@media (max-width:819px){
 body.xf-jf--pay .joingrid{display:flex;flex-direction:column}
 body.xf-jf--pay .joingrid>.daybox{order:-1;margin-top:0}
}

/* ---------- L7: tap targets. Inline links keep their line box but get a 44px hit area; camera button 44px ---------- */
body.xf-jf .check a,body.xf-jf .consent-note a,body.xf-jf .m a{display:inline-block;padding:12px 0;margin:-12px 0}

/* ---------- L8: club as three chips (D12). The native select stays in the page, hidden, so every existing script still reads it ---------- */
body.xf-jf .clubchips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 4px;padding:0;border:0}
body.xf-jf .clubchips legend{display:block;width:100%;padding:0;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#55554F;margin:16px 0 6px}
body.xf-jf .clubchip{position:relative;flex:1 1 0;min-width:0}
body.xf-jf .clubchip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
body.xf-jf .clubchip span{display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 12px;border:1px solid #8E8E8C;border-radius:4px;background:#fff;font-size:15px;font-weight:600;color:var(--black);text-align:center}
body.xf-jf .clubchip input:checked+span{background:var(--black);border-color:var(--black);color:var(--off)}
body.xf-jf .clubchip input:focus-visible+span{outline:2px solid var(--black);outline-offset:2px}
body.xf-jf .clubchips.is-bad .clubchip span{border-color:var(--xf-err);border-width:2px}
body.xf-jf .js-chips #j-club{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}
body.xf-jf .js-chips label[for="j-club"]{display:none}

/* ---------- L9: date of birth as three number fields; password rules as a live checklist ---------- */
body.xf-jf .dob3{margin:0;padding:0;border:0;min-width:0}
body.xf-jf .dob3-row{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:8px}
body.xf-jf .dob3 legend{padding:0;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#55554F;margin:16px 0 6px}
body.xf-jf .dob3 label{display:block;font-size:13px;color:#55554F;margin:0 0 4px}
body.xf-jf .js-dob3 #c-dob{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}
body.xf-jf .js-dob3 label[for="c-dob"]{display:none}
body.xf-jf .pwrules{list-style:none;margin:8px 0 0;padding:0;font-size:14px;line-height:1.5;color:#55554F}
body.xf-jf .pwrules li{position:relative;padding-left:22px}
body.xf-jf .pwrules li::before{content:"";position:absolute;left:2px;top:.45em;width:10px;height:10px;border:1.5px solid #8E8E8C;border-radius:50%}
body.xf-jf .pwrules li.ok{color:var(--black)}
body.xf-jf .pwrules li.ok::before{background:var(--black);border-color:var(--black)}

/* ---------- L12: the Direct Debit box is a quiet solid hairline, not a dashed placeholder ---------- */
body.xf-jf .payframe.paylocked{border-style:solid;border-color:#C7C7C5}

/* ---------- Club pages. B8 (non offer part) and L10: tier card drift ---------- */
/* B8: disc markers, not dash glyphs. (Buttons already sit at the card foot in a browser: measured in the 2 Dec Chromium
   captures. The uneven buttons in the review's M7 came from the WeasyPrint render, so no change is made for that.) */
.xfc-tier__inc li::before{width:6px;height:6px;border-radius:50%;top:calc(.7em)}
@media (min-width:601px){.xfc-tier{padding:24px}}
.xfc-tier__name{font-size:20px}
.xfc-tier__badge{letter-spacing:.10em}

/* Nova, 3 Dec 2026 (ref: nova-join-rhythm). Join form vertical rhythm on the 8px scale, 44px check rows, ink ticks.
   Laurence, from his iPhone: "dob is tight to the line above". Cause: the margin sat on the DOB legend, and a legend
   inside a fieldset does not take a top margin, so the gap under Mobile was 0px. The margin now sits on the fieldset.
   Rhythm: field group 16, label to field 8, helper text 8 under its field, checks 8 apart and 16 after text,
   button 24 after the last check. !important only where the pages carry inline margin styles (6px, 10px, 14px). */
body.xf-jf .joinform .fldlabel{margin:16px 0 8px!important}
body.xf-jf .dob3{margin:16px 0 0}
body.xf-jf .dob3 legend{float:left;width:100%;margin:0 0 8px}
body.xf-jf .dob3 legend+*{clear:both}
body.xf-jf .joinform p.m{margin-top:8px!important}
body.xf-jf .joinform .pwrules{margin:8px 0 0}
body.xf-jf .joinform .check{min-height:44px;padding:8px 0;box-sizing:border-box;margin-top:8px!important}
body.xf-jf .joinform p.m+.check,body.xf-jf .joinform .dec-terms+.check{margin-top:16px!important}
body.xf-jf .check input{accent-color:#0A0A0A}
body.xf-jf #pay-join,body.xf-jf #join-continue{margin-top:24px!important}
