/* Clubs (src/clubpages.js): For Clubs at /clubs and a club's page at /club/<id>. The panel, setbox and chip recipes are
   tokens.css; this sheet is the page's own shape. */
.clubs{padding-top:26px;padding-bottom:70px}
.chero{max-width:760px}
.chero h1{font-size:30px;line-height:1.15;margin-top:8px}
.clead{margin-top:10px;font-size:16px;line-height:1.6;color:#3a3f47}
.cdemo{display:inline-block;margin-top:10px;font-size:14px;font-weight:700;color:var(--brand-ink)}
.chow{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.chow li{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px 16px;box-shadow:var(--shadow)}
.chow .cn{width:24px;height:24px;border-radius:50%;background:var(--ink);color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;margin-bottom:6px}
.chow b{font-size:15px}
.chow span:last-child{font-size:13px;line-height:1.5;color:var(--muted)}
/* the steps on the left, the live preview on the right; the two columns' first boxes start on one line */
.clayout{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:22px;align-items:start;margin-top:26px}
.clubs .panel + .panel{margin-top:18px}
.clubs .panelhead{justify-content:flex-start}
.clubs .panelhead h2{flex:1}
.stepn{width:22px;height:22px;border-radius:50%;background:var(--ink);color:#fff;font-size:11.5px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.cside{position:sticky;top:calc(var(--stick-top, 64px) + 12px)}
.cshot{background:repeating-linear-gradient(45deg,#f1f2f4 0 10px,#eceef1 10px 20px);padding:14px}
.cshot iframe{display:block;width:100%;height:640px;border:0;background:transparent}
/* step 1: the finder, and the picked club */
.cfind label{display:block;font-size:13px;font-weight:600;margin:0 0 6px}
.cfind input{width:100%;height:42px;padding:0 12px;border:1px solid var(--line-2);border-radius:var(--r-btn);background:#fff;font:inherit;font-size:15px}
.cfind input:focus{outline:0;border-color:var(--ring);box-shadow:0 0 0 3px rgba(174,180,190,.35)}
.cres{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.cres:empty{display:none}
.cres button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}
.cres button:hover{border-color:var(--hover-line)}
.cres button b{font-size:14px}
.cres button span{font-size:12px;color:var(--muted)}
.cres .cnone{font-size:13px;color:var(--muted);padding:4px 2px}
.cnote{margin-top:10px;font-size:12.5px;line-height:1.55;color:var(--muted)}
.cnote a{color:var(--brand-ink);font-weight:600}
.cpk{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.cpkt{display:flex;flex-direction:column;min-width:0;flex:1 1 220px}
.cpkt b{font-size:15.5px}
.cpkt span{font-size:12.5px;color:var(--muted)}
.cbdg{width:56px;height:56px;border-radius:13px;background:var(--brand);color:#fff;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.cbdg.sm{width:40px;height:40px;border-radius:10px;font-size:13.5px}
/* step 3: folder tabs over the panes (the house folder tab) */
.ctabs{display:flex;gap:4px;padding:0 14px;background:#F8F8F8;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.ctab{position:relative;top:1px;height:40px;padding:0 13px;margin-top:8px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;background:transparent;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;white-space:nowrap}
.ctab.on{background:#fff;border-color:var(--line);color:var(--ink)}
.cpane{display:none;padding:16px;background:#fff}
.cpane.on{display:block}
.csteps2{margin:0 0 14px;padding:0 0 0 20px;font-size:13.5px;line-height:1.7}
.ccode{position:relative;background:#11151b;border-radius:11px}
.ccode pre{margin:0;padding:14px 86px 14px 16px;color:#e6e9ee;font:12.5px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-all}
.ccopy{position:absolute;top:10px;right:10px;height:30px;padding:0 12px;border-radius:8px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font:600 12px/1 Inter,sans-serif;cursor:pointer;white-space:nowrap}
.ccopy:disabled,.ccopy.off{opacity:.4;cursor:default;pointer-events:none}
/* the link tab: Preview (the club's hosted page, a new tab) beside Copy */
.ccopy.cpv{right:76px;display:inline-flex;align-items:center;text-decoration:none}
.ccode.wide2 pre{padding-right:160px}
.calt{margin-top:14px;font-size:12.5px;color:var(--muted)}
.calt summary{cursor:pointer;font-weight:600;color:var(--ink);margin-bottom:10px}
.cneed{margin:0 16px 14px;padding:9px 12px;border-radius:9px;background:var(--warn-bg);border:1px solid var(--warn-line);color:var(--warn);font-size:12.5px;font-weight:600}
.cpass{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between;padding:13px 16px;border-top:1px solid var(--line);background:#F8F8F8;font-size:13px}
/* step 4: the club's current rule is the selected box */
.cmode .set-h{font-size:13px;letter-spacing:0;text-transform:none;color:var(--ink)}
.cmode .set-note{font-size:12.5px}
.cmode.on{background:rgba(var(--brand-rgb),.07);border-color:rgba(var(--brand-rgb),.5)}
.cfaq{max-width:720px;margin-top:30px}
.cfaq h3{margin:18px 0 4px}
.cfaq p{font-size:14.5px;line-height:1.6;color:#3a3f47}
@media (max-width:980px){
  .clayout{grid-template-columns:minmax(0,1fr)}   /* minmax: a plain 1fr took the folder tabs' whole width on a phone */
  .cside{position:static;order:-1}
  .cshot iframe{height:520px}
}
@media (max-width:720px){
  .chero h1{font-size:24px}
  .chow{grid-template-columns:1fr}
}

/* ---- a club's page ---- */
.clubpg{padding-top:24px;padding-bottom:60px}
.chead{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.cht{flex:1 1 260px;min-width:0}
.cline{margin-top:4px;font-size:13px;color:var(--muted)}
.cline a{color:var(--brand-ink);font-weight:600;text-decoration:none}
.ckpis{display:flex;gap:10px}
.ckpi{background:var(--brand-soft);border:1px solid var(--brand-line);border-radius:11px;padding:8px 14px;min-width:108px;display:flex;flex-direction:column}
.ckpi b{font-size:20px;font-weight:800;line-height:1.15}
.ckpi span{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-ink)}
.cband{margin-top:18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;font-size:13.5px;line-height:1.5;box-shadow:var(--shadow)}
.cband > div:first-child{flex:1 1 320px}
.cacts{display:flex;gap:8px;flex-wrap:wrap}
.cofc{flex:1 1 100%;font-size:12.5px;color:var(--muted)}
.cofc a{color:var(--brand-ink);font-weight:600}
.clubpg .sec{margin-top:26px}
.clubpg .sec .sh{margin-bottom:12px}
