/* chatter.css - the group landing shell: Facebook-group structure (cover,
   square logo, tabs for Chat / Members / Wall of fame / Rules) with Discord
   density inside the chat. Mobile-first single column with tabs; at 960px it
   becomes Discord's three columns (channels | stream | members+events+gallery).
   Shared by every group page (studio, coaches, later events/seasons).
   Full page mode (CHATTER_TOPICS_SPEC 4.6, 2026-11-04): under 768px, while a Topic is open (.l9-st.is-topic,
   set by chatter.js from l9gc:topic), the page's own shell (beta line, cover, identity row, tabs, faces strip)
   goes with the app frame so the Topic header is the first thing on the screen.
   Compressed landing page (Terence, 2026-11-08): on a phone the beta line, the tabs row and the faces strip are
   gone on the Topic list too, so the list sits right under the identity row. Members, Wall of fame and Rules
   are reached from the desktop sidebar links; on a phone the page is the Topic list.
   Cover photo (Terence, 2026-11-09): hidden on the phone too, so the Topics come first; shown on a computer,
   set by a moderator from the pod Edit sheet (exp_chat_group.cover_url). */
.l9-st { max-width: 1100px; margin: 0 auto; }
/* Beta line: one small muted line above the cover (Terence, 2026-11-02: much smaller, far less attention). */
.l9-st-beta { color: var(--l9-text-muted); padding: 6px 14px 4px; display: flex; align-items: center; gap: 8px; font-size: .7rem; line-height: 1.3; }
.l9-st-beta b { color: var(--l9-accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .62rem; flex: 0 0 auto; }
.l9-st-cover { height: 150px; background: var(--l9-surface-2) center/cover no-repeat; position: relative; }
.l9-st-cover:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0) 35%, rgba(14,14,14,.9) 100%); }
.l9-st-id { display: flex; align-items: flex-end; gap: 12px; padding: 0 14px; margin-top: -30px; position: relative; z-index: 1; }
.l9-st-logo { width: 64px; height: 64px; border-radius: 14px; background: #000; border: 2px solid var(--l9-bg); box-shadow: 0 0 0 1px var(--l9-border); display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; flex: 0 0 64px; }
.l9-st-logo img { width: 100%; height: 100%; object-fit: contain; }
.l9-st-idt { padding-bottom: 4px; min-width: 0; }
.l9-st-name { font-family: var(--l9-font-heading); font-size: 1.45rem; text-transform: uppercase; letter-spacing: .03em; color: var(--l9-text); line-height: 1.05; }
.l9-st-handle { color: var(--l9-text-muted); font-size: .82rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.l9-st-local { background: var(--l9-accent); color: #0E0E0E; font-weight: 700; font-size: .66rem; padding: 2px 8px; border-radius: 999px; text-transform: capitalize; }
.l9-st-count { color: var(--l9-accent); font-weight: 700; font-size: .82rem; margin-top: 3px; letter-spacing: .01em; }
.l9-st-invite { margin-left: auto; align-self: flex-end; margin-bottom: 8px; background: var(--l9-accent); color: #0E0E0E; border: none; border-radius: 999px; font: inherit; font-weight: 700; font-size: .78rem; padding: 7px 12px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.l9-st-invite.is-done { background: var(--l9-surface-2); color: var(--l9-text); }
/* Invite sheet: bottom sheet, never a native popup. */
.l9-st-inv-ov { position: fixed; inset: 0; z-index: 99996; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.l9-st-inv { width: 100%; max-width: 460px; background: var(--l9-surface); border: 1px solid var(--l9-border); border-radius: 18px 18px 0 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); max-height: 78vh; overflow: auto; }
.l9-st-inv-head { display: flex; align-items: center; justify-content: space-between; }
.l9-st-inv-head b { font-family: var(--l9-font-heading); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; color: var(--l9-text); }
.l9-st-inv-head button { background: none; border: none; color: var(--l9-text-muted); font: inherit; font-weight: 700; cursor: pointer; }
.l9-st-inv-sub { color: var(--l9-text-muted); font-size: .82rem; margin: 2px 0 12px; }
.l9-st-inv-q { width: 100%; box-sizing: border-box; background: var(--l9-surface-2); border: 1px solid var(--l9-border); border-radius: 12px; color: var(--l9-text); font: inherit; padding: 10px 12px; }
.l9-st-inv-list { display: flex; flex-direction: column; margin-top: 8px; }
.l9-st-inv-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--l9-border); }
.l9-st-inv-row img, .l9-st-inv-row .i { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 38px; background: var(--l9-surface-2); }
.l9-st-inv-row .i { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #D4A64A, #8f6f2b); color: #0E0E0E; font-weight: 800; }
.l9-st-inv-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.l9-st-inv-who b { color: var(--l9-text); font-size: .92rem; font-weight: 700; }
.l9-st-inv-who span { color: var(--l9-text-muted); font-size: .78rem; }
.l9-st-inv-btn { background: var(--l9-accent); color: #0E0E0E; border: none; border-radius: 999px; font: inherit; font-weight: 700; font-size: .8rem; padding: 7px 14px; cursor: pointer; }
.l9-st-inv-state { color: var(--l9-text-muted); font-size: .78rem; font-weight: 700; }
.l9-st-inv-hint { color: var(--l9-text-muted); font-size: .84rem; padding: 14px 2px; }
.l9-st-inv-fr { display: inline-block; margin-left: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .04em; color: var(--l9-text-muted); background: var(--l9-surface-2); padding: 2px 6px; border-radius: 999px; vertical-align: middle; }
.l9-st-inv-fr.is-friend { color: #0E0E0E; background: var(--l9-accent); }
.l9-st-inv-coach { display: inline-block; margin-left: 6px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; color: var(--l9-accent); vertical-align: middle; }
/* Wall of fame: the add tile sits first in the grid; each media tile carries its poster. */
.l9-st-addphoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 1; border: 1px dashed var(--l9-accent); border-radius: 6px; text-decoration: none; background: var(--l9-surface-2); }
.l9-st-addphoto b { font-family: var(--l9-font-heading); font-size: 1.6rem; color: var(--l9-accent); line-height: 1; }
.l9-st-addphoto span { font-size: .66rem; font-weight: 700; color: var(--l9-text); text-align: center; padding: 0 6px; }
.l9-st-gallery .w { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 5px; padding: 4px 6px; font-size: .62rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.7)); }
.l9-st-gallery .w img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.l9-st-manage { display: inline-block; margin-top: 10px; color: var(--l9-accent); font-weight: 700; font-size: .85rem; text-decoration: none; }
/* Header join state, moderator controls, leave, inline notice. Never native popups. */
.l9-st-joinwrap { margin-left: auto; align-self: flex-end; margin-bottom: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.l9-st-joinnote { color: var(--l9-text-muted); font-size: .74rem; }
.l9-st-joinwrap .l9-st-invite { margin-left: 0; margin-bottom: 0; }
.l9-st-modcard { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.l9-st-modrm, .l9-st-modbtn { background: transparent; border: 1px solid var(--l9-border); color: var(--l9-text-muted); border-radius: 999px; font: inherit; font-size: .66rem; font-weight: 700; padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.l9-st-modrm:disabled, .l9-st-modbtn:disabled { opacity: .45; cursor: default; }
.l9-st-modbtn { margin-left: 6px; }
/* Inside a members-grid card the control sits UNDER the face and fits the card width. */
.l9-st-modbtn-card { margin-left: 0; width: 100%; box-sizing: border-box; white-space: normal; padding: 4px 6px; font-size: .64rem; }
.l9-st-inv-row .l9-st-modbtn { margin-left: 0; }
.l9-st-modhint { color: var(--l9-text-muted); font-size: .78rem; margin-top: 8px; }
/* Moderator edit of the pod's name and handle: a chip by the handle and a bottom sheet. */
.l9-st-podedit { background: transparent; border: 1px solid var(--l9-border); color: var(--l9-text-muted); border-radius: 999px; font: inherit; font-size: .66rem; font-weight: 700; padding: 2px 8px; cursor: pointer; }
.l9-st-podedit-lg { display: inline-block; margin: 12px 8px 0 0; font-size: .8rem; padding: 7px 14px; }
.l9-st-pe-f { display: block; margin-top: 12px; }
.l9-st-pe-f > span { display: block; color: var(--l9-text); font-size: .82rem; font-weight: 700; margin-bottom: 5px; }
.l9-st-pe-f > small { display: block; color: var(--l9-text-muted); font-size: .74rem; margin-top: 4px; }
.l9-st-pe-at { display: flex; align-items: center; gap: 6px; }
.l9-st-pe-at > b { color: var(--l9-text-muted); }
.l9-st-pe-err { color: #E5484D; font-size: .8rem; margin-top: 10px; min-height: 1em; }
.l9-st-pe-act { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.l9-st-pe-act .l9-st-leave { margin-top: 0; }
.l9-st-leave { display: inline-block; margin-top: 12px; background: transparent; border: 1px solid var(--l9-border); color: var(--l9-text-muted); border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 700; padding: 7px 14px; cursor: pointer; }
.l9-st-toast { margin: 8px 14px 0; padding: 8px 12px; background: var(--l9-surface-2); border-left: 2px solid var(--l9-accent); color: var(--l9-text); font-size: .85rem; border-radius: 0 8px 8px 0; }
.l9-st-toast[hidden] { display: none; }
/* Cover: stacked banner layers cross-fading under the existing dark gradient (::after). */
.l9-st-cover { overflow: hidden; }
/* Cover photo field in the pod Edit sheet (2026-11-09): a preview the size of the phone cover, the two
   actions under it. No photo = the surface colour, the same as the cover itself. */
.l9-st-pe-cover { height: 110px; border-radius: 10px; background: var(--l9-surface-2) center/cover no-repeat; border: 1px solid var(--l9-border); }
.l9-st-pe-cvact { display: flex; gap: 8px; margin-top: 8px; }
.l9-st-pe-cvact .l9-st-podedit { margin: 0; }
/* Moderator toggle on a wall tile. */
.l9-st-bannerbtn { position: absolute; right: 5px; top: 5px; z-index: 2; background: rgba(0,0,0,.65); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font: inherit; font-size: .6rem; font-weight: 800; letter-spacing: .03em; padding: 3px 7px; cursor: pointer; }
.l9-st-bannerbtn.is-on { background: var(--l9-accent); color: #0E0E0E; border-color: var(--l9-accent); }
.l9-st-bannerbtn:disabled { opacity: .5; }
.l9-st-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--l9-border); overflow-x: auto; position: sticky; top: 0; background: var(--l9-bg); z-index: 5; }
.l9-st-tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--l9-text-muted); font: inherit; font-weight: 700; font-size: .85rem; padding: 8px 10px; cursor: pointer; white-space: nowrap; }
.l9-st-tab.is-on { color: var(--l9-text); border-bottom-color: var(--l9-accent); }
.l9-st-left, .l9-st-right { display: none; }
.l9-st-sh { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--l9-text-muted); font-weight: 700; padding: 14px 12px 6px; }
.l9-st-strip { display: flex; gap: 10px; padding: 10px 12px 2px; overflow-x: auto; }
.l9-st-face { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; width: 58px; text-decoration: none; }
.l9-st-face img, .l9-st-face .i { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--l9-surface-2); }
.l9-st-face .i { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #D4A64A, #8f6f2b); color: #0E0E0E; font-weight: 800; font-size: .9rem; }
.l9-st-face span { font-size: .68rem; color: var(--l9-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58px; }
.l9-st-face .c { color: var(--l9-accent); font-size: .58rem; font-weight: 800; letter-spacing: .06em; }
.l9-st-events { padding: 4px 12px; display: flex; flex-direction: column; }
.l9-st-ev { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--l9-border); }
.l9-st-evd { width: 46px; flex: 0 0 46px; text-align: center; background: var(--l9-surface-2); border-radius: 10px; padding: 5px 0; }
.l9-st-evd b { display: block; font-family: var(--l9-font-heading); font-size: 1.15rem; color: var(--l9-text); line-height: 1; }
.l9-st-evd span { font-size: .6rem; color: var(--l9-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.l9-st-evt { flex: 1; min-width: 0; }
.l9-st-evt b { display: block; color: var(--l9-text); font-size: .92rem; }
.l9-st-evt span { color: var(--l9-text-muted); font-size: .78rem; }
.l9-st-evg { color: var(--l9-text-muted); font-size: .74rem; white-space: nowrap; }
.l9-st-empty { color: var(--l9-text-muted); font-size: .85rem; padding: 12px; }
.l9-st-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; padding: 12px; }
.l9-st-members .l9-st-face { width: auto; }
.l9-st-members .l9-st-face img, .l9-st-members .l9-st-face .i { width: 64px; height: 64px; }
.l9-st-members .l9-st-face span { max-width: 84px; }
.l9-st-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 6px; }
.l9-st-gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--l9-surface-2); border-radius: 6px; position: relative; }
.l9-st-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l9-st-gallery .b { position: absolute; left: 6px; top: 6px; background: var(--l9-accent); color: #0E0E0E; font-size: .58rem; font-weight: 800; padding: 2px 6px; border-radius: 999px; letter-spacing: .06em; }
.l9-st-about { padding: 12px; display: flex; flex-direction: column; gap: 16px; }
.l9-st-about h3 { margin: 0 0 4px; font-family: var(--l9-font-heading); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; color: var(--l9-text); }
.l9-st-about p { margin: 0; color: var(--l9-text); font-size: .92rem; line-height: 1.5; }
.l9-st-mods { display: flex; gap: 10px; flex-wrap: wrap; }
/* Desktop Topic list (CHATTER_TOPICS_SPEC 4.2, WhatsApp rows): face, title, the latest line, the unread count. */
.l9-st-chans { display: flex; flex-direction: column; }
.l9-st-chan { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 6px; min-height: 56px; box-sizing: border-box; color: var(--l9-text-muted); cursor: pointer; border-radius: 10px; }
.l9-st-chan.is-on { background: var(--l9-surface-2); }
.l9-st-chan:hover { background: var(--l9-surface-2); }
.l9-st-chan.is-closed { opacity: .55; }
.l9-st-chan img, .l9-st-chan .i { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; background: var(--l9-surface-2); }
.l9-st-chan .i { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #D4A64A, #8f6f2b); color: #0E0E0E; font-weight: 800; font-size: .8rem; }
.l9-st-chan img.logo { background: #000; object-fit: contain; padding: 7px; box-sizing: border-box; }
.l9-st-chan .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.l9-st-chan .t b { color: var(--l9-text); font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l9-st-chan .t span { font-size: .76rem; color: var(--l9-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l9-st-chan.is-unread .t span { color: var(--l9-text); }
.l9-st-chan .t span svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; vertical-align: -2px; margin-right: 3px; }
.l9-st-chan .n { flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--l9-accent); color: #0E0E0E; font-size: .66rem; font-weight: 800; line-height: 18px; text-align: center; }
.l9-st-links { display: flex; flex-direction: column; }
.l9-st-link { padding: 7px 12px; margin: 0 6px; color: var(--l9-text-muted); font-size: .9rem; font-weight: 600; cursor: pointer; border-radius: 8px; }
.l9-st-link.is-on { color: var(--l9-text); background: var(--l9-surface-2); }
.l9-st .l9-gc { max-width: none; }
.l9-st-rmembers { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px; }
.l9-st-rmembers img, .l9-st-rmembers .i { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--l9-surface-2); }
.l9-st-rmembers .i { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #D4A64A, #8f6f2b); color: #0E0E0E; font-weight: 800; font-size: .8rem; }
.l9-st-rgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 12px; }
.l9-st-rgallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
@media (min-width: 960px) {
    .l9-st-cover { height: 220px; border-radius: 0 0 16px 16px; }
    .l9-st-logo { width: 80px; height: 80px; flex-basis: 80px; padding: 10px; }
    .l9-st-name { font-size: 1.9rem; }
    .l9-st-tabs { display: none; }
    .l9-st-body { display: grid; grid-template-columns: 230px minmax(0, 1fr) 270px; border-top: 1px solid var(--l9-border); margin-top: 14px; }
    .l9-st-left, .l9-st-right { display: block; }
    .l9-st-left { border-right: 1px solid var(--l9-border); }
    .l9-st-right { border-left: 1px solid var(--l9-border); }
    .l9-st-main { min-width: 0; }
    .l9-st .l9-gc-rail { display: none; }
    .l9-st .l9-gc { max-height: calc(100vh - 140px); overflow: auto; }
    .l9-st .l9-gc-comp, .l9-st .l9-gc-joinbar, .l9-st .l9-gc-closedline { bottom: 0; }
    .l9-st .l9-gc-top { top: 0; }
    .l9-st-strip { display: none; }
    .l9-st-right .l9-st-ev { padding: 8px 0; }
}
/* Phone: the beta line, tabs and faces strip never show (compressed landing page, 2026-11-08); the cover and the
   identity row stay on the Topic list and go with the app frame while a Topic is open (full page mode, spec 4.6). */
@media (max-width: 767.98px) {
    .l9-st-beta, .l9-st-tabs, .l9-st-strip { display: none; }
    /* The cover photo goes on the phone too (Terence, 2026-11-09): the Topic list sits right under the
       identity row. The row loses its overlap onto the cover it no longer has. */
    .l9-st-cover { display: none; }
    .l9-st-id { margin-top: 0; padding-top: 12px; }
    .l9-st.is-topic .l9-st-cover, .l9-st.is-topic .l9-st-id { display: none; }
    /* l9.portal.css pads .l9-st-body 10px; with the frame gone the Topic header is the top edge of the screen, so no gutter. */
    .l9-st.is-topic .l9-st-body { padding: 0; }
}
