/* Member network: join flow + the table app */

.opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .8; }
textarea { resize: vertical; line-height: 1.5; }
.btn-sm { padding: 12px 18px; font-size: 11px; }
.pill { display: inline-block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 10px 14px; color: var(--clay); box-shadow: inset 0 0 0 1px var(--almond); }
.pill.ok { color: var(--herb); box-shadow: inset 0 0 0 1px var(--herb); }
.check { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.check input { width: 18px; height: 18px; }
button.top-cta { background: none; border: 0; font-family: inherit; color: inherit; cursor: pointer; }
.top.scrolled button.top-cta { background: var(--currant); color: var(--linen); }

/* ---------- Join ---------- */
.join { display: grid; min-height: 100svh; }
@media (min-width: 960px) { .join { grid-template-columns: 1fr 1.1fr; } }
.join-side { position: relative; overflow: hidden; background: var(--currant); color: var(--linen); padding: 120px var(--gutter) 56px; display: flex; align-items: flex-end; }
.join-side-copy { position: relative; z-index: 1; display: grid; gap: 28px; }
.join-side .eyebrow { color: var(--almond); }
.join-title { font-size: clamp(48px, 6vw, 88px); line-height: .95; letter-spacing: -.01em; max-width: 12ch; }
.join-title em { color: var(--almond); }
.join-steps { list-style: none; counter-reset: s; display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid rgba(183, 154, 136, .4); padding-top: 18px; }
.join-steps li { counter-increment: s; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(245, 239, 230, .5); }
.join-steps li::before { content: '0' counter(s) '  '; color: var(--almond); }
.join-steps li.on { color: var(--linen); }
.join-steps li.done { color: var(--almond); }
.join-main { padding: clamp(48px, 8vw, 120px) var(--gutter) 80px; display: flex; align-items: center; }
@media (min-width: 960px) { .join-main { padding-top: 130px; } }
.join-main .step { width: 100%; max-width: 620px; }
.step-h { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; margin: 12px 0 32px; }
.step-h em { color: var(--clay); }
.seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--almond); margin-bottom: 28px; }
.seg button { background: none; border: 0; font: inherit; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; padding: 14px 20px; cursor: pointer; color: var(--clay); }
.seg button.on { background: var(--cocoa); color: var(--linen); }
.insight { background: var(--herb); color: var(--linen); padding: 20px 22px; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.insight .eyebrow { color: var(--almond); display: block; margin-bottom: 6px; font-family: var(--sans); }

/* ---------- App shell ---------- */
.app { max-width: 1180px; margin: 0 auto; padding: 120px var(--gutter) 96px; }
.app-head { display: grid; gap: 28px; margin-bottom: 36px; }
@media (min-width: 900px) { .app-head { grid-template-columns: 1fr auto; align-items: end; } }
.app-title { font-size: clamp(48px, 7vw, 96px); line-height: .92; letter-spacing: -.01em; margin-top: 10px; }
.app-title em { color: var(--clay); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--almond); }
.tabs button { background: none; border: 0; font: inherit; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; padding: 14px 14px; cursor: pointer; color: var(--clay); position: relative; }
.tabs button.on { color: var(--cocoa); }
.tabs button.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--currant); }
.tabs button[disabled] { opacity: .35; cursor: not-allowed; }
.badge { display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 4px; background: var(--currant); color: var(--linen); font-size: 10px; letter-spacing: 0; border-radius: 999px; text-align: center; }
.panel { display: grid; gap: 28px; }
.panel-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.panel-bar input[type=search] { max-width: 420px; padding: 12px 14px; font-size: 16px; }
#pending { background: var(--currant); color: var(--linen); padding: clamp(28px, 5vw, 48px); display: grid; gap: 14px; margin-bottom: 36px; }
#pending h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1; }
#pending h2 em { color: var(--almond); }
#pending p { max-width: 56ch; }
#pending .caption { color: var(--almond); }
.empty { padding: 48px 0; border-top: 1px solid var(--almond); }
.empty-t { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin-bottom: 8px; }

/* avatars */
.av { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--almond); color: var(--cocoa); font-family: var(--serif); font-size: 18px; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-lg { width: 64px; height: 64px; font-size: 26px; }
.av-xl { width: 96px; height: 96px; font-size: 38px; }

/* ---------- For you ---------- */
.recs { display: grid; gap: 0; border-top: 1px solid var(--almond); }
.rec { display: grid; grid-template-columns: 40px 1fr; gap: 10px 20px; padding: 28px 0; border-bottom: 1px solid var(--almond); align-items: start; }
@media (min-width: 900px) { .rec { grid-template-columns: 56px 1.1fr 1.4fr auto; align-items: center; } }
.rec-n { font-size: 12px; letter-spacing: .2em; color: var(--clay); padding-top: 6px; }
.rec-who, .frow-who, .person-open { display: flex; gap: 16px; align-items: center; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rec-who > span:last-child, .frow-who > span:last-child { display: grid; }
.rec-name { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.rec-who:hover .rec-name, .frow-who:hover .rec-name { font-style: italic; color: var(--currant); }
.rec-head { font-size: 14px; color: var(--clay); }
.rec-why { font-size: 17px; grid-column: 2; }
.rec-ice { grid-column: 2; display: grid; gap: 2px; font-family: var(--serif); font-size: 20px; color: var(--currant); }
.rec-ice .eyebrow { font-family: var(--sans); font-style: normal; }
.rec-act { grid-column: 2; }
@media (min-width: 900px) {
  .rec-why, .rec-ice { grid-column: 3; }
  .rec-ice { grid-row: 2; }
  .rec-act { grid-column: 4; grid-row: 1 / span 2; }
  .rec-n, .rec-who { grid-row: 1 / span 2; }
}

/* ---------- Everyone ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: none; border: 1px solid var(--almond); font: inherit; font-size: 14px; padding: 6px 12px; color: var(--cocoa); cursor: pointer; }
span.chip { cursor: default; }
button.chip:hover, .chip.on { background: var(--cocoa); color: var(--linen); border-color: var(--cocoa); }
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.person { background: #fff; border: 1px solid rgba(183, 154, 136, .6); padding: 22px; display: grid; gap: 18px; align-content: space-between; transition: border-color .2s, transform .3s; }
.person:hover { border-color: var(--clay); transform: translateY(-2px); }
.person-open { flex-direction: column; align-items: flex-start; gap: 6px; }
.person-open .av { margin-bottom: 8px; }
.person-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.person-head { font-size: 15px; }
.person-tags { font-size: 12px; letter-spacing: .08em; color: var(--clay); }

/* ---------- Friends ---------- */
.rows-list { border-top: 1px solid var(--almond); margin-top: 10px; }
.frow { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--almond); }
.frow .rec-name { font-size: 24px; }
.frow-act { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- You ---------- */
.me-form { max-width: 760px; }
.me-photo { display: flex; align-items: center; gap: 20px; }
.me-photo label { cursor: pointer; }

/* ---------- Person sheet ---------- */
.sheet { margin: auto; border: 0; padding: 0; width: min(640px, calc(100% - 32px)); max-height: calc(100svh - 48px); background: var(--linen); color: var(--cocoa); box-shadow: 0 40px 80px -30px rgba(59, 39, 32, .6); }
.sheet::backdrop { background: rgba(59, 39, 32, .55); backdrop-filter: blur(4px); }
.sheet #sheet-body { padding: 40px 32px 32px; display: grid; gap: 22px; }
.sheet-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--clay); cursor: pointer; padding: 6px; }
.sheet-top { display: flex; gap: 20px; align-items: center; }
.sheet-top h2 { font-size: 40px; line-height: 1; }
.sheet-head { color: var(--clay); font-size: 15px; margin-top: 6px; }
.sheet-bio { font-size: 18px; }
.sheet-ask { display: grid; gap: 2px; font-family: var(--serif); font-size: 22px; color: var(--currant); }
.sheet-ask .eyebrow { font-family: var(--sans); font-style: normal; }
.sheet-sec { display: grid; gap: 8px; }
.sheet-act { border-top: 1px solid var(--almond); padding-top: 18px; }

/* ---------- Invite banner (join) ---------- */
.join-col { width: 100%; max-width: 620px; }
.join-main .step { max-width: none; }
.invite { background: var(--herb); color: var(--linen); padding: 22px 24px; margin-bottom: 36px; display: grid; gap: 10px; justify-items: start; }
.invite .eyebrow { color: var(--almond); }
.invite-t { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.invite-t em { color: var(--almond); }
.invite .caption { color: rgba(245, 239, 230, .8); }
.invite .btn-quiet { color: var(--linen); box-shadow: inset 0 0 0 1px rgba(245, 239, 230, .6); }

/* ---------- Dietary ---------- */
.diet { border: 0; border-top: 1px solid var(--almond); padding-top: 22px; display: grid; gap: 14px; }
.diet legend { font-family: var(--serif); font-size: 26px; padding: 0; margin-bottom: 4px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-block; border: 1px solid var(--almond); font-size: 14px; padding: 8px 14px; transition: background .2s, color .2s; }
.chip-check input:checked + span { background: var(--herb); border-color: var(--herb); color: var(--linen); }
.chip-check input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

/* ---------- Crews ---------- */
.my-crew { background: var(--cocoa); color: var(--linen); padding: clamp(28px, 5vw, 48px); display: grid; gap: 16px; }
.my-crew .eyebrow { color: var(--almond); }
.my-crew .caption { color: rgba(245, 239, 230, .75); max-width: 60ch; }
.crew-h { font-size: clamp(40px, 6vw, 72px); line-height: .95; }
.crew-h em { color: var(--almond); }
.crew-form, .crew-share { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.crew-form input, .crew-share input { flex: 1 1 260px; background: rgba(245, 239, 230, .08); color: var(--linen); border-color: rgba(183, 154, 136, .5); }
.crew-share input { font-size: 14px; }
.my-crew .btn-quiet { color: var(--linen); box-shadow: inset 0 0 0 1px rgba(183, 154, 136, .6); }
.my-crew .btn-quiet:hover { background: var(--linen); color: var(--cocoa); }
.my-crew .btn-currant { background: var(--linen); color: var(--currant); }
.crew-faces { display: flex; flex-wrap: wrap; gap: 14px; }
.face { background: none; border: 0; padding: 0; font: inherit; color: inherit; display: grid; justify-items: center; gap: 6px; cursor: pointer; font-size: 12px; }
.crew-faces.sm { gap: 0; }
.crew-faces.sm .face { margin-left: -10px; }
.crew-faces.sm .face:first-child { margin-left: 0; }
.crew-faces.sm .av { box-shadow: 0 0 0 3px var(--linen); }
.crew-faces .more { font-size: 13px; color: var(--clay); align-self: center; margin-left: 10px; }
.crews { border-top: 1px solid var(--almond); margin-top: 12px; }
.crew { display: grid; grid-template-columns: 44px 1fr; gap: 12px 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--almond); }
@media (min-width: 760px) { .crew { grid-template-columns: 64px 1fr auto; } }
.crew-n { font-size: 12px; letter-spacing: .2em; color: var(--clay); }
.crew h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; }
.crew.mine h3 { color: var(--currant); font-style: italic; }
.crew .crew-faces { grid-column: 2; }
@media (min-width: 760px) { .crew .crew-faces { grid-column: 3; } }

/* ---------- Tabs scroll on phones ---------- */
@media (max-width: 760px) { .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); } .tabs::-webkit-scrollbar { display: none; } .tabs button { flex: none; } }
.seg-sm { margin-bottom: 0; }
.seg-sm button { padding: 10px 16px; }
.seg button[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------- Feed ---------- */
.composer { display: grid; grid-template-columns: auto 1fr; gap: 16px; background: #fff; border: 1px solid rgba(183, 154, 136, .6); padding: 18px; }
.composer textarea { border: 0; padding: 6px 0; font-size: 18px; background: transparent; resize: none; }
.composer textarea:focus { outline: none; }
.composer-main { display: grid; gap: 12px; }
.composer-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid rgba(183, 154, 136, .5); padding-top: 12px; }
.composer-bar label { cursor: pointer; }
.composer-preview { position: relative; max-width: 260px; }
.composer-preview img { width: 100%; }
.composer-preview .x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--cocoa); color: var(--linen); cursor: pointer; font-size: 18px; line-height: 1; }
.feed { display: grid; gap: 18px; max-width: 720px; }
.post { background: #fff; border: 1px solid rgba(183, 154, 136, .6); display: grid; gap: 14px; padding: 20px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.who { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.who-name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.who:hover .who-name { font-style: italic; color: var(--currant); }
.post-time { font-size: 13px; color: var(--clay); }
.post-head .post-time { margin-left: auto; }
.post-del { background: none; border: 0; font: inherit; font-size: 12px; color: var(--clay); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.post-body { font-size: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-img { width: auto; justify-self: stretch; margin: 0 -20px; max-height: 640px; object-fit: cover; background: var(--almond); }
.post-acts { display: flex; gap: 4px; border-top: 1px solid rgba(183, 154, 136, .5); padding-top: 10px; }
.act { background: none; border: 0; font: inherit; font-size: 14px; color: var(--cocoa); padding: 8px 12px; cursor: pointer; }
.act:hover { background: rgba(183, 154, 136, .18); }
.act.on { color: var(--currant); font-weight: 500; }
.post-acts .act:last-child { margin-left: auto; }
.thread { display: grid; gap: 14px; border-top: 1px solid rgba(183, 154, 136, .5); padding-top: 14px; }
.comment { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.comment .av { width: 34px; height: 34px; font-size: 14px; }
.comment-who { font-size: 14px; font-weight: 500; }
.comment p { font-size: 16px; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { padding: 10px 12px; font-size: 16px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 3px; } }
.tile { border: 0; padding: 0; background: var(--almond); aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .1, 1); }
.tile:hover img { transform: scale(1.04); }
.viewer { margin: auto; border: 0; padding: 0; width: min(1000px, calc(100% - 24px)); max-height: calc(100svh - 24px); background: var(--cocoa); color: var(--linen); }
.viewer::backdrop { background: rgba(20, 12, 10, .85); }
.viewer .sheet-x { color: var(--linen); z-index: 2; }
.viewer-img { width: 100%; max-height: 76svh; object-fit: contain; background: #000; }
.viewer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; }
.viewer-meta .post-time { color: var(--almond); }
.viewer-meta .btn-quiet { color: var(--linen); box-shadow: inset 0 0 0 1px rgba(183, 154, 136, .6); }
.viewer-cap { padding: 0 20px 20px; }

/* ---------- Pass ---------- */
.pass-wrap { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .pass-wrap { grid-template-columns: minmax(300px, 400px) 1fr; } }
.pass-card { background: var(--currant); color: var(--linen); padding: 26px 26px 30px; display: grid; gap: 18px; justify-items: center; text-align: center; box-shadow: 0 30px 60px -34px rgba(59, 39, 32, .8); }
.pass-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.pass-top .eyebrow { color: var(--almond); }
.pass-mark { width: 52px; }
.pass-qr { background: var(--linen); padding: 14px; width: min(100%, 300px); aspect-ratio: 1; }
.pass-qr svg { width: 100%; height: 100%; display: block; }
.pass-qr svg path, .pass-qr svg rect[fill="black"] { fill: var(--cocoa); }
.pass-name { font-family: var(--serif); font-size: 34px; line-height: 1.05; }
.pass-status { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--almond); }
.pass-how { display: grid; gap: 16px; justify-items: start; }
.how { list-style: none; border-top: 1px solid var(--almond); width: 100%; }
.how li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--almond); }
.how b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.next-year { margin-top: 24px; background: var(--herb); color: var(--linen); padding: clamp(28px, 5vw, 48px); display: grid; gap: 16px; }
.next-year .eyebrow, .next-year .field label { color: var(--almond); }
.next-year .caption { color: rgba(245, 239, 230, .78); max-width: 58ch; }
.next-year input:not([type=checkbox]) { background: rgba(245, 239, 230, .08); color: var(--linen); border-color: rgba(183, 154, 136, .5); }
.next-year .btn-currant { background: var(--linen); color: var(--herb); }
.check.big { font-family: var(--serif); font-size: 26px; gap: 14px; }
.check.big input { width: 24px; height: 24px; accent-color: var(--currant); }

/* ---------- Scan page (connect.html) ---------- */
.scan-page { background: var(--currant); }
.scan { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 32px; padding: 48px var(--gutter); color: var(--linen); text-align: center; }
.scan-mark { width: 84px; }
.scan-body { display: grid; gap: 18px; justify-items: center; max-width: 520px; }
.scan-body .eyebrow { color: var(--almond); }
.scan-t { font-family: var(--serif); font-size: clamp(40px, 9vw, 64px); line-height: 1; }
.scan-t em { color: var(--almond); }
.scan-p { font-size: 17px; color: rgba(245, 239, 230, .82); }
.scan-who { display: flex; gap: 18px; align-items: center; text-align: left; background: rgba(245, 239, 230, .07); padding: 16px 20px; }
.scan-name { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.scan-acts { display: grid; gap: 10px; width: 100%; }
.scan-acts .btn { width: 100%; }
.scan .btn-quiet { color: var(--linen); box-shadow: inset 0 0 0 1px rgba(183, 154, 136, .6); }
.scan-home { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--almond); text-decoration: none; }
