/* Co-op landing page (co-op.html). Reuses the recipe sharing step UIs (share.css, share.js). */

.co-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 1.25rem; border-radius: 12px; border: 1px solid #00796a; background: #00796a; color: #fff; font: 600 .95rem/1.2 var(--sans); text-decoration: none; transition: background-color .15s, border-color .15s; }
.co-btn:hover { background: #00665a; border-color: #00665a; }
.co-btn.ghost { background: #fff; color: #00796a; border-color: #c8e6e1; }
.co-btn.ghost:hover { background: var(--brand-tint); }
.co-btn:focus-visible { outline: 2px solid #00796a; outline-offset: 2px; }

/* The problem: one product, four spellings. */
.co-lists { margin: 3rem 0 0; }
.co-lists figcaption { margin: 1.25rem 0 0; color: var(--fg-muted); font-size: .95rem; }
.co-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.co-list { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 16px; display: grid; gap: 8px; align-content: start; }
.co-lh { display: flex; align-items: center; gap: .5rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); font: 600 .9rem var(--display); }
.co-li { padding: 8px 10px; border-radius: 9px; font-size: .85rem; line-height: 1.3; }
.co-li.hit { background: #fdf3e1; color: #7a4f00; box-shadow: inset 0 0 0 1px #f1d9a8; font-weight: 500; }
.co-li.sk { padding: 4px 10px; }
.co-li.sk i { display: block; height: 7px; border-radius: 4px; background: #e9eaeb; }
.co-lists .u-av, .co-hub .u-av { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e9eaeb; color: #5c5f5d; font: normal 600 9px/1 var(--sans); }
.co-lists .u-av.mv, .co-hub .u-av.mv { background: #00ab93; color: #fff; }

/* The idea: the catalog in the middle, member districts around it. */
.co-hub { position: relative; width: 100%; max-width: 440px; aspect-ratio: 400 / 320; margin: 0 auto; }
.co-hub-l { position: absolute; inset: 0; width: 100%; height: 100%; }
.co-hub-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #c8e6e1; border-radius: 14px; background: #fff; box-shadow: 0 18px 36px -22px rgba(0, 60, 55, .45); white-space: nowrap; }
.co-hub-c b { display: block; font: 600 .95rem/1.2 var(--display); }
.co-hub-c span:not(.rs-tile) { display: block; font-size: .75rem; color: var(--fg-muted); }
.co-hub-n { position: absolute; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 500; white-space: nowrap; }
.co-hub-n.n1 { left: 0; top: 4%; } .co-hub-n.n2 { right: 0; top: 4%; } .co-hub-n.n3 { left: 0; bottom: 4%; } .co-hub-n.n4 { right: 0; bottom: 4%; }

/* Three moments: cards on the white page, no gradient. */
.co-steps li { background: #fff; }

.co-cnt { margin: 0 12px 6px !important; font-size: 10px; color: var(--n50); min-height: 14px; }
.co-cnt span { display: none; }
.co-m1 .co-cnt .c0 { display: inline; }
.co-m1 .u-ar { margin: 0 12px 4px; }
.co-m1 .u-ar .wait { visibility: hidden; }
.co-m1.k1 .u-ar .wait { visibility: visible; }
.co-m1 .u-ar .rev { display: none; align-items: center; gap: 6px; font-size: 9.5px; min-width: 0; white-space: nowrap; width: 100%; padding: 3px 8px; border: 1px solid #f1d9a8; border-radius: 4px; background: #fdf3e1; color: #7a4f00; animation: u-pop .35s cubic-bezier(.22,1,.36,1); }
.co-m1 .u-ar .rev > .ti { color: var(--orange); font-size: 13px; }
.co-m1 .u-ar .rev small { display: block; font-size: 8.5px; color: #9a6a10; }
.co-m1 .u-ar .rev .car { margin-left: auto; font-size: 10px; color: #9a6a10; }
.co-m1 .u-act { margin: 6px 12px 0; padding-top: 8px; }
.co-m1.k2 .co-cnt .c0 { display: none; } .co-m1.k2 .co-cnt .c1 { display: inline; }
.co-m1.k3 .co-cnt .c1 { display: none; } .co-m1.k3 .co-cnt .c2 { display: inline; }
.co-m1.k4 .co-cnt .c2 { display: none; } .co-m1.k4 .co-cnt .c3 { display: inline; }
.co-m1.k5 .co-cnt .c3 { display: none; } .co-m1.k5 .co-cnt .c4 { display: inline; }
.co-m1.k6 .co-cnt .c4 { display: none; } .co-m1.k6 .co-cnt .c4r { display: inline; color: #9a6a10; }
.co-m1.k8 .co-cnt .c4r { display: none; } .co-m1.k8 .co-cnt .c5 { display: inline; }
.co-m1.k2 .a1 .wait, .co-m1.k3 .a2 .wait, .co-m1.k4 .a3 .wait, .co-m1.k5 .a4 .wait, .co-m1.k6 .a5 .wait, .co-m1.k8 .a5 .rev { display: none; }
.co-m1.k2 .a1 .ok, .co-m1.k3 .a2 .ok, .co-m1.k4 .a3 .ok, .co-m1.k5 .a4 .ok, .co-m1.k8 .a5 .ok { display: inline-flex; }
.co-m1.k6 .a5 .rev { display: inline-flex; }
.co-m1.k8 .a5 .rev { display: none; }
.co-m1.k2 .a1, .co-m1.k3 .a2, .co-m1.k4 .a3, .co-m1.k5 .a4, .co-m1.k8 .a5 { border-color: #cfe7e2; }
.co-m1.k6 .a5 { border-color: #f1d9a8; }
.co-m1.k7 .a5 { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(0,171,147,.15); }
.co-m1.k8 .a5 { box-shadow: none; }
.co-m1 .u-btn.go { opacity: .45; }
.co-m1.k8 .u-btn.go { opacity: 1; }
.co-m1.k9 .u-btn.go { background: var(--teal-dd); transform: scale(.96); }
.co-m1.k8 .u-toast, .co-m1.k9 .u-toast { opacity: 0; transform: translateY(10px); }
.co-m1.k10 .u-toast { opacity: 1; transform: none; }

/* Moment 2: publish to every member, all at once. */
.co-items { margin: 4px 12px 0; display: grid; gap: 6px; }
.co-it { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--n90); border-radius: 6px; background: #fff; }
.co-it .ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--teal-t); color: var(--teal-dd); }
.co-it .nm { flex: 1; min-width: 0; font-weight: 500; font-size: 10.5px; line-height: 1.25; }
.co-it small, .co-pi small { display: block; font-weight: 400; font-size: 9px; color: var(--n50); }
.co-it .pb { display: none; }
.co-pub { position: absolute; right: 12px; bottom: 12px; }
.co-m2 .pbtn { transition: background-color .2s, transform .12s; }
.co-m2.k1 .pbtn { background: var(--teal-dd); }
.co-m2.k2 .pbtn { transform: scale(.96); }
.co-m2.k3 .u-scrim, .co-m2.k3 .u-dlg { opacity: 1; transform: none; }
.co-dlg { top: 22px; }
.co-mem { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--n95); font-size: 10.5px; }
.co-mem > span:first-child { display: flex; align-items: center; gap: 8px; }
.co-mem.more { color: var(--n50); border-bottom: none; }
.co-mem .u-av { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--n90); color: var(--n40); font: normal 600 7px/1 "Inter", sans-serif; }
.co-mem .u-av.mv { background: var(--teal); color: #fff; }
.co-mem .s { position: relative; width: 16px; height: 16px; display: grid; place-items: center; }
.co-mem .sp, .co-mem .ck { position: absolute; }
.co-mem .sp { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--teal-t); border-top-color: var(--teal); animation: u-spin .7s linear infinite; visibility: hidden; }
.co-mem .ck { color: var(--green); font-size: 14px; display: none; }
.co-sum { margin-top: 8px !important; font-size: 10px; color: var(--n50); }
.co-sum .m1 { display: none; color: var(--n10); }
.co-m2.k4 .co-mem .sp { visibility: visible; }
.co-m2.k5 .co-mem .sp { display: none; }
.co-m2.k5 .co-mem .ck { display: block; animation: u-pop .35s cubic-bezier(.22,1,.36,1) backwards; }
.co-m2.k5 .co-mem:nth-child(3) .ck { animation-delay: .06s; }
.co-m2.k5 .co-mem:nth-child(4) .ck { animation-delay: .12s; }
.co-m2.k5 .co-mem:nth-child(5) .ck { animation-delay: .18s; }
.co-m2.k5 .co-mem:nth-child(6) .ck { animation-delay: .24s; }
.co-m2.k6 .co-sum .m0 { display: none; }
.co-m2.k6 .co-sum .m1 { display: inline; }
.co-m2.k7 .u-dlg, .co-m2.k7 .u-scrim { opacity: 0; }
.co-m2.k7 .co-it .dr { display: none; }
.co-m2.k7 .co-it .pb { display: inline-block; }
.co-m2.k7 .u-toast { opacity: 1; transform: none; }

/* Moment 3: a member pulls the shared items in. */
.co-pull { margin: 4px 12px 0; display: grid; gap: 6px; }
.co-pi { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--n90); border-radius: 6px; background: #fff; transition: border-color .25s, background-color .25s; }
.co-pi .ck { flex: none; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--n80); color: #fff; font-size: 9px; transition: background-color .15s, border-color .15s; }
.co-pi .ck .ti { font-size: 10px; opacity: 0; }
.co-pi .nm { flex: 1; min-width: 0; font-weight: 500; font-size: 10.5px; line-height: 1.25; }
.co-pi .nw { background: #e8f0fb; color: #1d4e9e; }
.co-m3 .co-pi .ip { display: none; }
.co-m3.k1 .p1 .ck, .co-m3.k2 .p2 .ck, .co-m3.k3 .p3 .ck { background: var(--teal); border-color: var(--teal); }
.co-m3.k1 .p1 .ck .ti, .co-m3.k2 .p2 .ck .ti, .co-m3.k3 .p3 .ck .ti { opacity: 1; }
.co-m3.k1 .p1, .co-m3.k2 .p2, .co-m3.k3 .p3 { border-color: #cfe7e2; background: #f6fbfa; }
.co-total { margin: 10px 12px 0 !important; font-size: 10.5px; color: var(--n40); }
.co-total b { font-weight: 600; color: var(--n10); }
.co-total .t1 { display: none; }
.co-m3 .u-act { margin: 8px 12px 0; padding-top: 8px; }
.co-m3 .u-btn.go { opacity: .45; }
.co-m3.k4 .u-btn.go { opacity: 1; }
.co-m3.k5 .u-btn.go { background: var(--teal-dd); transform: scale(.96); }
.co-m3.k6 .co-pi .nw { display: none; }
.co-m3.k6 .co-pi .ip { display: inline-flex; align-items: center; gap: 3px; }
.co-m3.k6 .co-total .t0 { display: none; }
.co-m3.k6 .co-total .t1 { display: inline; }
.co-m3.k7 .u-toast { opacity: 1; transform: none; }
.co-m3 .u-av, .co-m3 .u-crumb .u-av { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 4px; border-radius: 50%; background: var(--n90); color: var(--n40); font: normal 600 7px/1 "Inter", sans-serif; }
.co-m3 .u-chip { display: inline-flex; align-items: center; white-space: nowrap; }
.co-m3 .u-head, .co-m2 .u-head { padding-bottom: 6px; }
.co-m3 .u-head .u-chip, .co-m2 .u-head .u-chip { margin-left: auto; }
.co-m2 .u-chip.dr { background: var(--n95); color: var(--n40); }

/* Proof */
.co-proof { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.co-proof-t h2 { margin: .75rem 0 .75rem; font: 600 clamp(1.8rem, 3.6vw, 2.7rem)/1.12 var(--display); letter-spacing: -.025em; max-width: 18ch; }
.co-proof-t p:last-child { margin: 0; color: var(--fg-muted); font-size: 1.1rem; line-height: 1.55; max-width: 40ch; }
.co-proof-n { min-width: 0; }
.co-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.co-nums b { display: block; font: 600 clamp(2rem, 4.5vw, 3.2rem)/1 var(--display); letter-spacing: -.03em; color: var(--fg-base); }
.co-nums .a b { color: #00796a; }
.co-nums span { display: block; margin-top: 6px; font-size: .9rem; color: var(--fg-muted); }
.co-bar { display: flex; height: 14px; margin-top: 1.5rem; border-radius: 999px; overflow: hidden; background: #e9eaeb; gap: 3px; }
.co-bar i { display: block; height: 100%; }
.co-bar .a { background: #00ab93; border-radius: 999px; }
.co-bar .h { background: #b8bcc2; border-radius: 999px; }

.co-alt { font-size: .9rem !important; max-width: none !important; }
@media (min-width: 1180px) { .co-alt { white-space: nowrap; } }
.co-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr 1fr; }
  .co-proof { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-hub-n { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .co-mem .sp { animation: none; }
}

/* Hero: the Long Island Co-op Catalog, live. */
.co-hero { align-items: center; }
.co-cat { min-width: 0; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -36px rgba(0, 60, 55, .4); overflow: hidden; font-size: .82rem; }
.co-cat-bar { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: #fafbfb; color: var(--fg-muted); font-size: .75rem; }
.co-cat-bar i { width: 8px; height: 8px; border-radius: 50%; background: #dfe2e1; }
.co-cat-bar span { margin-left: .5rem; } .co-cat-bar b { font-weight: 400; margin: 0 .2rem; }
.co-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem .75rem; }
.co-cat-head h4 { margin: 0; font: 600 1.05rem/1.2 var(--display); }
.co-cat-head p { margin: .2rem 0 0; color: var(--fg-muted); font-size: .75rem; }
.co-cat em, .co-run em { font-style: normal; }
.co-cat-av { display: flex; flex: none; }
.co-cat-av em { flex: none; }
.co-cat em.mv, .co-cat-row .stk em.mv { background: #00ab93; color: #fff; }
.co-cat-av em, .co-cat-row .stk em { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eceeed; color: #4a4f4d; font: normal 600 9px/1 var(--sans); letter-spacing: .02em; box-shadow: 0 0 0 2px #fff; }
.co-cat-av em + em { margin-left: -4px; }
.co-cat-row .stk { display: flex; flex: none; }
.co-cat-row .stk em { width: 24px; height: 24px; font-size: 8.5px; }
.co-cat-row .stk em + em { margin-left: -3px; }
.co-cat-av em.more { background: #e5f4f1; color: #00796a; }
.co-cat-th, .co-cat-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1.1fr); gap: .75rem; align-items: center; padding: 8px 1rem; }
.co-cat-th { border-block: 1px solid var(--border); background: #fafbfb; color: var(--fg-muted); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.co-cat-row { border-bottom: 1px solid #f0f1f1; transition: background-color .6s; }
.co-cat-row .nm { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-cat-row .pk { color: var(--fg-muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-cat-row .us { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.co-cat-row .us b { font-weight: 600; font-variant-numeric: tabular-nums; }
.co-cat-row .of { color: var(--fg-muted); font-size: .72rem; }
.co-cat-row.add { animation: co-add 1.6s ease-out; }
.co-cat-row.rem { animation: co-rem 1.6s ease-out; }
.co-cat-row.add .us b { color: #00796a; } .co-cat-row.rem .us b { color: #b4452f; }
.co-cat-row.add .stk em:first-child { animation: u-pop .4s cubic-bezier(.22,1,.36,1); }
@keyframes co-add { 0%, 30% { background: #e3f5f1; } 100% { background: #fff; } }
@keyframes co-rem { 0%, 30% { background: #fbebe7; } 100% { background: #fff; } }

/* In practice: the estimate, and the matching run. */
.co-est { display: grid; gap: 10px; margin-top: 1.5rem; }
.co-est p { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: 0 !important; padding: 12px 1rem; border: 1px solid var(--border); border-radius: 12px; color: var(--fg-muted); font-size: 1rem !important; max-width: none !important; }
.co-est p.g { border-color: #c8e6e1; background: #f2faf8; }
.co-est .k { flex: none; min-width: 5.5rem; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.co-est b { font: 600 1.25rem/1.2 var(--display); color: var(--fg-base); }
.co-est .g b { color: #00796a; }
.co-run { margin-bottom: 0; border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; cursor: pointer; }
.co-run-bar { display: flex; justify-content: space-between; gap: 1rem; padding: 8px 12px; border-bottom: 1px solid var(--border); background: #fafbfb; font-size: .75rem; color: var(--fg-muted); }
.co-run-t { font-variant-numeric: tabular-nums; color: var(--fg-base); font-weight: 500; }
.co-run-view { position: relative; height: 270px; overflow: hidden; }
.co-run-view::before, .co-run-view::after { content: ""; position: absolute; left: 0; right: 0; height: 36px; z-index: 1; pointer-events: none; }
.co-run-view::before { top: 0; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.co-run-view::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }
.co-run-list { filter: url(#co-mblur); will-change: transform; }
.co-run-list .r { display: flex; justify-content: space-between; gap: 1rem; padding: 0 12px; height: 30px; align-items: center; border-bottom: 1px solid #f0f1f1; font-size: .8rem; }
.co-run-list .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-run-list .s { flex: none; font-size: .7rem; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: #e3f5f1; color: #00796a; }
.co-run-list .h .s { background: #fdf3e1; color: #7a4f00; }
.co-run-foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 12px; border-top: 1px solid var(--border); }
.co-run-foot b { display: block; font: 600 2.2rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.co-run-pct b { color: #00796a; }
.co-run-foot span { display: block; margin-top: 4px; font-size: .8rem; color: var(--fg-muted); }
.co-run-cnt { text-align: right; }
.co-run.done .co-run-pct b { animation: u-pop .5s cubic-bezier(.22,1,.36,1); }

@media (max-width: 900px) {
  .hero.co-hero { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .co-cat-th, .co-cat-row { grid-template-columns: minmax(0, 1fr) auto; }
  .co-cat-th span:nth-child(2), .co-cat-row .pk { display: none; }
  .co-cat-row .of, .co-cat-row .stk { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .co-toast { animation: none; transition: none; }
}
.co-est p { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: .5rem; row-gap: .2rem; align-items: baseline; }
.co-est .d { grid-column: 2; font-size: .9rem; }
.co-run-foot span span { display: inline; margin: 0; font-size: inherit; font-variant-numeric: tabular-nums; }

/* Hero: district activity as cards floating over the catalog. */
.co-cat-wrap { position: relative; min-width: 0; }
.co-toasts { position: absolute; z-index: 3; top: 92px; left: -36px; width: min(300px, 80%); display: grid; gap: 10px; pointer-events: none; }
.co-toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0, 50, 45, .35), 0 2px 6px rgba(0, 0, 0, .04); font-size: .8rem; line-height: 1.3; animation: co-toast-in .5s cubic-bezier(.22, 1, .36, 1); transition: opacity .4s, transform .4s; }
.co-toast.out { opacity: 0; transform: translateX(-24px) scale(.96); }
.co-toast em { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eceeed; color: #4a4f4d; font: normal 600 10px/1 var(--sans); }
.co-toast em.mv { background: #00ab93; color: #fff; }
.co-toast .tx { min-width: 0; flex: 1; }
.co-toast .tx b { display: block; font-weight: 600; color: var(--fg-base); }
.co-toast .tx span { display: block; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-toast > .ti { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; }
.co-toast.add > .ti { background: #e3f5f1; color: #00796a; }
.co-toast.rem > .ti { background: #fbebe7; color: #b4452f; }
@keyframes co-toast-in { from { opacity: 0; transform: translateX(-28px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .co-toasts { left: 12px; } }
@media (max-width: 520px) { .co-toasts { top: 120px; left: 10px; width: calc(100% - 20px); } .co-toast:nth-child(n+3) { display: none; } }

/* New Haven photo: small, in the left column under the numbers */
