/* ==========================================================================
   pages/community.css — "community" page group (2026-11 rebuild)

   Pages:  rounds.html, round-details.html, create-round.html       (Coynitt-Rounds.dc.html
                                                                      LIST / DETAIL / CREATE look)
           harambee.html, harambee-details.html, create-harambee.html (Coynitt-Harambee.dc.html
                                                                      LIST / CAMPAIGN / CREATE look)
           harambee-public.html                                       (public /h/:id page)

   Rounds and Harambee are waitlist only (founder decision D0). These styles carry the look of
   the prototypes' screens; the pages hold the not-yet-open state, never a create, contribute
   or pay-out flow. Loaded after coynitt.css; uses its tokens. Prefixes: community- (shared),
   rounds-, harambee-. Light + dark come from the tokens; every block works at 390px.
   ========================================================================== */

/* ── Page head (prototype LIST header) ──────────────────────────────────── */
.community-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px}
.community-head .cy-lede{margin-top:10px}
.community-title-sub--round{color:var(--deep)}
.community-title-sub--harambee{color:var(--coral)}

/* Mono glass chips: the prototype's alias chips (CHAMA · KENYA) and detail status pills. */
.community-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.community-chips--end{margin-top:0;justify-content:flex-end}
.community-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:var(--glass);border:1px solid var(--glassBd);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-family:var(--mono);font-size:11px;letter-spacing:.08em;color:var(--soft);text-transform:uppercase;white-space:nowrap}
.community-chip--honey{background:var(--honeyTint);border-color:var(--honeyBd);color:#9A6A00}
[data-theme="dark"] .community-chip--honey{color:var(--honey)}
/* Sans status pill on cards (prototype "4 days left" pill). */
.community-pill{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(245,192,76,.2);color:#B7791F;font-size:11px;font-weight:800;white-space:nowrap;flex-shrink:0}
[data-theme="dark"] .community-pill{color:var(--honey)}

/* ── Card grid (prototype listCols: 3 columns, 2 below 1240px, 1 below 820px) ── */
.community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:30px;align-items:stretch}
.community-span-2{grid-column:span 2}
@media (max-width:1239px){.community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-span-2{grid-column:1 / -1}}
@media (max-width:819px){.community-grid{grid-template-columns:1fr}}

/* Glass card (prototype round / campaign card: 22px pad, radius 28, glassSm). */
.community-card{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:14px;padding:22px;border-radius:28px;background:var(--glass);border:1px solid var(--glassBd);-webkit-backdrop-filter:var(--blurSm);backdrop-filter:var(--blurSm);box-shadow:var(--glassSm);color:var(--ink);text-align:left}
.community-card > *{position:relative}
.community-card__top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.community-card__kicker{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--blueSoft)}
.community-card__kicker--coral{color:var(--coral)}
.community-card__kicker--mute{color:var(--mute)}
/* Dark: the prototype's blueSoft kicker is under 3:1 on the dark glass; lift it for legibility. */
[data-theme="dark"] .community-card__kicker:not(.community-card__kicker--coral):not(.community-card__kicker--mute){color:var(--mute)}
.community-card__title{font-size:19px;font-weight:800;letter-spacing:-.02em;line-height:1.1;margin-top:6px}
.community-card__meta{font-size:12.5px;color:var(--soft);margin-top:4px;line-height:1.5;max-width:56ch;text-wrap:pretty}
.community-card__meta + .community-card__meta{margin-top:8px}
.community-card__foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:auto}
.community-card__status{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:#B7791F}
[data-theme="dark"] .community-card__status{color:var(--honey)}
.community-card__link{font-size:12.5px;font-weight:700;color:var(--deep)}
.community-card__link:hover{color:var(--teal)}
.community-card__link--coral{color:var(--coral)}
.community-card__link--coral:hover{color:var(--coral);opacity:.85}

/* Concept card: text on the left, illustration on the right (stacks on narrow widths). */
.community-concept{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:center}
.community-concept__text{display:flex;flex-direction:column;gap:14px;min-width:0;height:100%}
.community-concept__art{display:grid;place-items:center;min-width:0}
@media (max-width:1023px){.community-concept{grid-template-columns:1fr}.community-concept__art{order:-1}}

/* Dashed waitlist card (prototype "Start a new round" / "Start a harambee" tile). */
.community-add{min-height:190px;border-radius:28px;border:1.5px dashed var(--fieldBd);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px;color:var(--soft);text-align:center;transition:border-color .2s,color .2s}
.community-add:hover{color:var(--ink)}
.community-add--round:hover{border-color:var(--blueSoft)}
.community-add--harambee{min-height:200px}
.community-add--harambee:hover{border-color:var(--coral)}
.community-add__icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:rgba(18,68,120,.12);color:var(--blueSoft)}
.community-add--harambee .community-add__icon{background:var(--coralTint);color:var(--coral)}
.community-add__title{font-weight:700;font-size:14px}
.community-add__sub{font-size:12px;font-family:var(--mono);letter-spacing:.02em}

/* "How it works" tiles (prototype: 16/18 pad, radius 22, glassIn). */
.community-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:28px}
.community-tile{padding:16px 18px;border-radius:22px;background:var(--glassIn);border:1px solid var(--glassBd)}
.community-tile__k{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--blueSoft)}
.community-tile__k--coral{color:var(--coral)}
[data-theme="dark"] .community-tile__k:not(.community-tile__k--coral){color:var(--mute)}
.community-tile__t{font-weight:800;font-size:14px;margin-top:6px}
.community-tile__d{font-size:12.5px;color:var(--soft);margin-top:4px;line-height:1.5}

/* Detail / create header row: back pill left, status chips right (prototype DETAIL top bar). */
.community-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.community-kicker-top{margin-top:22px}
.community-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:22px;margin-top:28px;align-items:stretch}
@media (max-width:719px){.community-detail-grid{grid-template-columns:1fr;gap:16px;margin-top:22px}}
.community-col{display:flex;flex-direction:column;gap:14px;min-width:0}
.community-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}
@media (max-width:719px){.community-actions{justify-content:stretch}.community-actions > *{flex:1}}

/* ── Rounds: concept circle (prototype payout circle, illustration only) ── */
/* Six neutral members on a dashed track. No names, amounts, order or status: Rounds is not open. */
.rounds-circle{position:relative;width:100%;max-width:var(--circle,420px);aspect-ratio:1 / 1;margin:0 auto}
.rounds-circle--sm{--circle:236px}
.rounds-circle > svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;display:block}
.rounds-circle__track{fill:none;stroke:var(--line);stroke-width:1.2;stroke-dasharray:3 6}
.rounds-circle__arcs{fill:none;stroke:var(--tint2);stroke-width:14;stroke-linecap:round}
.rounds-circle__node{position:absolute;transform:translate(-50%,-50%);width:var(--node,52px);height:var(--node,52px);border-radius:50%;display:grid;place-items:center;color:#fff;border:3px solid var(--bg);box-shadow:0 10px 22px -12px rgba(16,38,66,.55)}
.rounds-circle--sm .rounds-circle__node{--node:38px;border-width:2px}
.rounds-circle__node svg{width:46%;height:46%}
.rounds-circle__node:nth-of-type(1){left:50%;top:12.5%;background:var(--av1)}
.rounds-circle__node:nth-of-type(2){left:82.476%;top:31.25%;background:var(--av2)}
.rounds-circle__node:nth-of-type(3){left:82.476%;top:68.75%;background:var(--av3)}
.rounds-circle__node:nth-of-type(4){left:50%;top:87.5%;background:var(--av5)}
.rounds-circle__node:nth-of-type(5){left:17.524%;top:68.75%;background:var(--av4)}
.rounds-circle__node:nth-of-type(6){left:17.524%;top:31.25%;background:var(--av2)}
.rounds-circle__center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:50%;text-align:center}
.rounds-circle__k{font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--mute)}
.rounds-circle__big{font-size:clamp(26px,3vw,38px);font-weight:800;letter-spacing:-.04em;line-height:1;margin-top:6px}
.rounds-circle__sub{font-size:12px;color:var(--soft);margin-top:6px}
.rounds-circle--sm .rounds-circle__k{font-size:9px;letter-spacing:.12em}
.rounds-circle--sm .rounds-circle__big{font-size:22px;margin-top:4px}
.rounds-circle-card{position:relative;overflow:hidden;display:grid;place-items:center;padding:26px;border-radius:32px;background:var(--glass);border:1px solid var(--glassBd);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--glassSh);min-height:440px}
.rounds-circle-card::before{content:"";position:absolute;width:360px;height:360px;border-radius:999px;background:radial-gradient(circle,rgba(27,84,144,.22),transparent 70%);top:-140px;left:-120px;pointer-events:none}
@media (max-width:719px){.rounds-circle-card{min-height:0;padding:22px 16px;border-radius:26px}.rounds-circle{--node:44px}}

/* Blue "next payout" panel look (prototype DETAIL right column), used for the waitlist panel. */
.rounds-panel{position:relative;overflow:hidden;padding:22px;border-radius:28px;color:#FDF6EC;background:var(--gradRound);box-shadow:var(--shRound)}
.rounds-panel::before{content:"";position:absolute;width:200px;height:200px;border-radius:999px;background:radial-gradient(circle,rgba(116,214,219,.35),transparent 70%);top:-70px;right:-60px;pointer-events:none}
.rounds-panel > *{position:relative}
.rounds-panel__k{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:#B9F0F2}
.rounds-panel__head{display:flex;align-items:center;gap:14px;margin-top:10px}
.rounds-panel__icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);border:3px solid rgba(255,255,255,.5);flex-shrink:0}
.rounds-panel__title{font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.rounds-panel__sub{font-size:13px;opacity:.8;margin-top:3px}
.rounds-panel__note{display:flex;align-items:flex-start;gap:10px;margin-top:16px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);font-size:13px;line-height:1.5;color:rgba(253,246,236,.9)}
.rounds-panel__note .cy-dot{margin-top:6px}
.rounds-panel__foot{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}
.rounds-panel__disabled{padding:10px 14px;border-radius:999px;font-size:12px;font-weight:700;color:rgba(253,246,236,.72);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);cursor:not-allowed}
.community-price{font-size:12.5px}

/* ── Harambee: campaign hero (prototype CAMPAIGN dark card) ─────────────── */
.harambee-hero{position:relative;overflow:hidden;padding:28px;border-radius:32px;color:#FDF6EC;background:var(--gradHarambee);box-shadow:0 40px 90px -44px rgba(10,27,49,.8)}
.harambee-hero::before{content:"";position:absolute;width:300px;height:300px;border-radius:999px;background:radial-gradient(circle,rgba(255,138,101,.4),transparent 70%);bottom:-120px;right:-80px;pointer-events:none}
.harambee-hero::after{content:"";position:absolute;width:260px;height:260px;border-radius:999px;background:radial-gradient(circle,rgba(116,214,219,.25),transparent 70%);top:-120px;left:-60px;pointer-events:none}
.harambee-hero > *{position:relative;z-index:1}
.harambee-hero__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:22px;align-items:center}
.harambee-hero__k{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:#FFC9B5}
.harambee-hero__title{font-size:clamp(28px,3.4vw,40px);font-weight:800;letter-spacing:-.035em;line-height:1.02;margin-top:8px;overflow-wrap:anywhere}
.harambee-hero__story{font-size:14px;line-height:1.55;color:rgba(253,246,236,.8);margin-top:12px;max-width:52ch;white-space:pre-line;overflow-wrap:anywhere}
.harambee-hero__meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:16px;font-size:12.5px;color:rgba(253,246,236,.75)}
.harambee-hero__meta strong{color:#FDF6EC}
.harambee-hero__bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14)}
.harambee-hero__big{font-size:clamp(30px,3.6vw,44px);font-weight:800;letter-spacing:-.045em;line-height:1}
.harambee-hero__small{display:block;font-size:14px;color:rgba(253,246,236,.72);margin-top:6px}
.harambee-hero__btns{display:flex;gap:8px;flex-wrap:wrap}
.harambee-hero .cy-skeleton{background:linear-gradient(100deg,rgba(255,255,255,.08) 35%,rgba(255,255,255,.18) 50%,rgba(255,255,255,.08) 65%);background-size:220% 100%}
/* Ring (prototype "78% FUNDED" ring, shown empty: nothing can be given). */
.harambee-ring{position:relative;width:200px;height:200px;margin:0 auto}
.harambee-ring > svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}
.harambee-ring__track{fill:none;stroke:rgba(255,255,255,.14);stroke-width:14}
.harambee-ring__center{position:absolute;inset:0;display:grid;place-items:center;text-align:center}
.harambee-ring__icon{width:44px;height:44px;margin:0 auto;border-radius:50%;display:grid;place-items:center;background:rgba(255,138,101,.22);color:#FFC9B5}
.harambee-ring__label{font-family:var(--mono);font-size:11px;letter-spacing:.1em;color:rgba(253,246,236,.7);margin-top:10px;text-transform:uppercase}
.harambee-ring--glass .harambee-ring__track{stroke:var(--line)}
.harambee-ring--glass .harambee-ring__icon{background:var(--coralTint);color:var(--coral)}
.harambee-ring--glass .harambee-ring__label{color:var(--mute)}
.harambee-ring--sm{width:168px;height:168px}
/* Hero buttons (prototype WhatsApp + cream "Give" pills). */
.harambee-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:999px;font-weight:800;font-size:14px;line-height:1.2;white-space:nowrap;transition:transform .2s var(--ease),opacity .2s}
.harambee-btn:hover:not(:disabled){transform:translateY(-2px)}
.harambee-btn--wa{background:#25D366;color:#fff}
.harambee-btn--wa:hover{color:#fff}
.harambee-btn--cream{background:#FDF6EC;color:#102A49}
.harambee-btn--cream:hover{color:#102A49}
.harambee-btn:disabled{opacity:.62;cursor:not-allowed}
@media (max-width:719px){.harambee-hero{padding:22px;border-radius:26px}.harambee-hero__btns,.harambee-hero__btns > *{width:100%}}

/* Share targets (prototype share sheet rows). */
.harambee-share{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.harambee-share__row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:16px;background:var(--glassIn);border:1px solid var(--glassBd);text-align:left;color:var(--ink);transition:transform .2s var(--ease)}
.harambee-share__row:hover{transform:translateY(-1px);color:var(--ink)}
.harambee-share__glyph{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:12px;flex-shrink:0}
.harambee-share__glyph--wa{background:#25D366}
.harambee-share__glyph--x{background:#102A49}
[data-theme="dark"] .harambee-share__glyph--x{background:var(--blueSoft)}
.harambee-share__glyph--em{background:var(--gradTeal)}
.harambee-share__glyph--copy{background:var(--av2)}
.harambee-share__label{display:block;font-weight:700;font-size:14px}
.harambee-share__sub{display:block;font-size:12px;color:var(--soft);overflow-wrap:anywhere}

/* ── Public campaign page (/h/:id) ─────────────────────────────────────── */
.harambee-public{position:relative;z-index:1;min-height:100vh;display:flex;justify-content:center;padding:28px 24px 40px}
.harambee-public__wrap{width:100%;max-width:720px;display:flex;flex-direction:column;gap:16px}
.harambee-public__brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.harambee-public__brand img{height:26px;width:auto}
.harambee-public__foot{margin-top:18px;padding-top:16px;border-top:1px solid var(--line2);display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12px;color:var(--mute);line-height:1.5}
.harambee-public__foot nav{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.harambee-public__foot a{color:var(--soft);font-weight:600}
.harambee-public__foot a:hover{color:var(--deep)}
@media (max-width:719px){.harambee-public{padding:16px 16px 32px}}
/* Preview-only example strip (harambee.html; class names pinned by main's compliance guard) */
.visual.glass-card{display:inline-flex;align-items:center;gap:8px;margin:26px 0 0;padding:8px 14px;border-radius:999px;background:var(--honeyTint);border:1px solid var(--honeyBd);font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.home-section{margin-top:22px}
