/* A club's embed (src/clubpages.js embedPage), the page a club's website frames through /w.js or an iframe. It lands on
   sites we have never seen, so it carries its own sheet: system font, px sizes, the market's brand as the club color.
   The markup is the widget mockup's (mockups/club-widget/widget.css, 2026-11-23). */
html,body{margin:0;background:transparent}
body.cwb{font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1f2329;-webkit-font-smoothing:antialiased}
.cw{--cw:var(--brand);background:#fff;border:1px solid #e3e5e8;border-radius:14px;overflow:hidden;text-align:left;container-type:inline-size}
.cw *{box-sizing:border-box}
.cw a{text-decoration:none;color:inherit}
.cw img{display:block;max-width:100%}
.cw-hd{display:flex;align-items:center;gap:11px;padding:12px 14px;border-top:4px solid var(--cw);border-bottom:1px solid #eceef1}
.cw-bdg{width:36px;height:36px;border-radius:9px;background:var(--cw);color:#fff;font-weight:800;font-size:12.5px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.cw-ti{display:flex;flex-direction:column;min-width:0;flex:1}
.cw-ti b{font-size:15.5px;font-weight:800;letter-spacing:-.01em;line-height:1.25}
.cw-ti span{font-size:12px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cw-all{font-size:12.5px;font-weight:700;color:var(--cw);white-space:nowrap;padding:7px 10px;border:1px solid color-mix(in srgb,var(--cw) 35%,#fff);border-radius:8px}
.cw-sample{margin:12px 14px 0;padding:8px 11px;border-radius:9px;background:#fdf6e7;border:1px solid #f0dfb8;color:#7a4f0b;font-size:12px;line-height:1.4}
.cw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px;padding:14px}
.cw-t{display:flex;flex-direction:column;border:1px solid #e6e7ea;border-radius:11px;overflow:hidden;background:#fff;transition:box-shadow .15s,transform .15s;min-width:0}
.cw-t:hover{box-shadow:0 6px 18px rgba(20,22,26,.08);transform:translateY(-1px)}
.cw-ph{position:relative;aspect-ratio:4/3;background:#eceef2;overflow:hidden}
.cw-ph img{width:100%;height:100%;object-fit:cover}
.cw-ph .noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#9aa0aa;font-size:12px}
.cw-deal{position:absolute;left:7px;top:7px;height:20px;padding:0 7px;border-radius:6px;background:#1f9254;color:#fff;font-size:10.5px;font-weight:700;display:flex;align-items:center}
.cw-bd{display:flex;flex-direction:column;gap:2px;padding:8px 10px 10px;min-width:0}
.cw-pr{font-size:16px;font-weight:800;letter-spacing:-.01em}
.cw-nm{font-size:12.5px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.cw-by{font-size:11.5px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cw-ft{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:11px 14px;border-top:1px solid #eceef1;background:#fafbfc}
.cw-sell{display:inline-flex;align-items:center;height:34px;padding:0 13px;border-radius:9px;background:var(--cw);color:#fff !important;font-size:13px;font-weight:700;white-space:nowrap}
.cw-join{font-size:12.5px;font-weight:600;color:#4b525b;text-decoration:underline !important;text-underline-offset:2px}
.cw-pw{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:11px;color:#9aa0aa;white-space:nowrap}
.cw-pw img:nth-of-type(1){height:18px;width:auto}
.cw-pw img:nth-of-type(2){height:11px;width:auto}
.cw-empty{display:flex;flex-direction:column;gap:4px;padding:28px 18px;text-align:center;color:#6b7280;font-size:13px}
.cw-empty b{color:#1f2329;font-size:14px}

/* List: a sidebar on a club site is 250 to 320px wide */
.cw-is-list .cw-grid{grid-template-columns:1fr;gap:0;padding:4px 12px}
.cw-is-list .cw-t{flex-direction:row;align-items:center;gap:10px;border:0;border-bottom:1px solid #eceef1;border-radius:0;padding:9px 0}
.cw-is-list .cw-t:last-child{border-bottom:0}
.cw-is-list .cw-t:hover{box-shadow:none;transform:none}
.cw-is-list .cw-ph{width:76px;flex:0 0 76px;border-radius:8px}
.cw-is-list .cw-deal{display:none}
.cw-is-list .cw-bd{padding:0}
.cw-is-list .cw-pr{font-size:14px}
.cw-is-list .cw-nm{min-height:0}
.cw-is-list .cw-all{display:none}

/* Strip: one row that scrolls sideways, for a home page band */
.cw-is-strip .cw-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:160px;overflow-x:auto;scroll-snap-type:x mandatory}
.cw-is-strip .cw-t{scroll-snap-align:start}

/* a narrow host: the footer stacks, the sell button fills */
@container (max-width:340px){
  .cw-ft{flex-direction:column;align-items:stretch}
  .cw-sell{justify-content:center}
  .cw-pw{margin:0 auto}
  .cw-hd .cw-ti span{display:none}
}
@container (max-width:440px){
  .cw-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
  .cw-is-list .cw-grid{grid-template-columns:1fr;gap:0;padding:4px 12px}
  .cw-is-strip .cw-grid{grid-template-columns:none}
}
