/* Flock Press — Groups (0.8.41). Matches the dev
   design language: cream page, white cards, navy
   actions, slate accents. */
.fp-grp { max-width: 880px; margin: 0 auto; }
.fp-grp-flash { background: #e7f6ee; border: 1px solid #bfe6cf; color: #14532d; border-radius: 10px; padding: 10px 13px; font-size: 14px; margin-bottom: 12px; }
.fp-grp-headrow { display: flex; align-items: center; gap: 10px; }
.fp-grp-h { font-size: 22px; font-weight: 900; flex: 1; margin: 4px 0 10px; }
.fp-grp-sect { font-size: 16px; font-weight: 800; margin: 18px 2px 9px; }
.fp-grp-note { font-size: 14px; color: #6b7280; }
.fp-grp-meta { color: #6b7280; font-size: 12.5px; }
.fp-grp-name { font-weight: 800; font-size: 15.5px; color: #1f2937; text-decoration: none; }

.fp-grp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; font-weight: 700; border-radius: 999px; font-size: 13.5px; padding: 8px 16px; background: #1b3a8c; color: #fff; text-decoration: none; font-family: inherit; }
.fp-grp-btn-soft { background: #e8edf7; color: #1b3a8c; }
.fp-grp-btn-ghost { background: #fff; color: #374151; border: 1px solid #e2e0d8; }
.fp-grp-btn-joined { background: #e8edf7; color: #1b3a8c; cursor: default; }
.fp-grp-btn-danger { background: #b91c1c; color: #fff; }
.fp-grp-btn-sm { padding: 6px 12px; font-size: 12.5px; }
.fp-grp-btn-block { width: 100%; padding: 12px; font-size: 15px; }
form:has(> .fp-grp-btn) { display: inline; margin: 0; }

.fp-grp-search { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.fp-grp-search input[type="search"] { flex: 1 1 200px; border: 1px solid #e7e0d0; border-radius: 999px; padding: 10px 14px; font-size: 14px; background: #fff; }
.fp-grp-search select { border: 1px solid #e7e0d0; border-radius: 999px; padding: 9px 10px; font-size: 13.5px; background: #fff; }
.fp-grp-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.fp-grp-chip { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #e2e0d8; color: #374151; text-decoration: none; }
.fp-grp-chip.is-on { background: #1b3a8c; color: #fff; border-color: #1b3a8c; }

.fp-grp-yours { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(31,41,55,.07); padding: 4px 12px; }
.fp-grp-your { display: flex; gap: 11px; align-items: center; padding: 10px 2px; text-decoration: none; color: #1f2937; }
.fp-grp-your + .fp-grp-your { border-top: 1px solid #f3eee2; }
.fp-grp-your-main { flex: 1; display: flex; flex-direction: column; }
.fp-grp-your-name { font-weight: 700; font-size: 14.5px; }
.fp-grp-your-go { color: #9aa1ac; font-size: 18px; }

.fp-grp-gav { width: 44px; height: 44px; border-radius: 12px; color: #fff; font-weight: 900; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fp-grp-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(31,41,55,.08); margin-bottom: 11px; }
.fp-grp-cover { height: 132px; background-size: cover; background-position: center; position: relative; display: block; }
.fp-grp-cover-word { position: absolute; right: 12px; bottom: 6px; font-size: 30px; font-weight: 900; color: rgba(255,255,255,.35); }
.fp-grp-card-in { padding: 11px 12px 12px; }
.fp-grp-row { display: flex; align-items: center; gap: 10px; }
.fp-grp-card-main { flex: 1; min-width: 0; }

/* Single group */
.fp-grp-single .fp-grp-cover { height: 120px; border-radius: 14px; }
.fp-grp-ghead { display: flex; gap: 11px; align-items: center; margin-top: 10px; }
.fp-grp-ghead .fp-grp-gav { width: 52px; height: 52px; font-size: 20px; border-radius: 16px; }
.fp-grp-ghead-main { flex: 1; min-width: 0; }
.fp-grp-gname { font-size: 19px; font-weight: 900; margin: 0; line-height: 1.25; }
.fp-grp-joinrow { display: flex; align-items: center; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.fp-grp-joinrow-sp { flex: 1; }
.fp-grp-stack { display: inline-flex; }
.fp-grp-sav { width: 30px; height: 30px; border-radius: 50%; background: #37485c; color: #fff; font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fp-grp-stack .fp-grp-sav { border: 2px solid #fdf1e7; margin-left: -7px; }
.fp-grp-stack .fp-grp-sav:first-child { margin-left: 0; }
.fp-grp-sav-sm { width: 24px; height: 24px; font-size: 10.5px; }
.fp-grp-tabs { display: flex; gap: 7px; margin: 14px 0 12px; flex-wrap: wrap; }
.fp-grp-tab { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #e2e0d8; color: #374151; text-decoration: none; }
.fp-grp-tab.is-on { background: #1b3a8c; color: #fff; border-color: #1b3a8c; }

/* Composer + posts */
.fp-grp-composer { display: flex; gap: 10px; align-items: flex-start; }
.fp-grp-composer textarea { flex: 1; border: 1px solid #e7e0d0; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; background: #fffdf8; }
.fp-grp-composer-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.fp-grp-composer-sp { flex: 1; }
.fp-grp-photo { font-size: 13px; font-weight: 600; color: #1b3a8c; cursor: pointer; }
.fp-grp-photo input { font-size: 12px; }
.fp-grp-post { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(31,41,55,.08); padding: 12px; margin-bottom: 11px; }
.fp-grp-phead { display: flex; gap: 9px; align-items: center; }
.fp-grp-phead-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fp-grp-phead-main strong { font-size: 14px; }
.fp-grp-pin { font-size: 10.5px; font-weight: 800; color: #b45309; background: #fef3c7; padding: 2px 8px; border-radius: 999px; }
.fp-grp-pbody { font-size: 14px; line-height: 1.5; margin-top: 8px; }
.fp-grp-pbody p { margin: 0 0 8px; }
.fp-grp-pimg { width: 100%; height: auto; border-radius: 10px; margin-top: 6px; display: block; }
.fp-grp-pactions { display: flex; gap: 8px; align-items: center; margin-top: 9px; padding-top: 8px; border-top: 1px solid #f3eee2; flex-wrap: wrap; }
.fp-grp-pactions form { display: inline; margin: 0; }
.fp-grp-pact { background: none; border: none; cursor: pointer; font-size: 13px; font-weight: 600; color: #6b7280; padding: 4px 6px; font-family: inherit; }
.fp-grp-pact.is-on { color: #b91c1c; }
.fp-grp-pact-danger { color: #b91c1c; }
.fp-grp-pact-sp { flex: 1; }
.fp-grp-comments { margin-top: 8px; border-top: 1px solid #f3eee2; padding-top: 9px; }
.fp-grp-comment { display: flex; gap: 8px; margin-bottom: 8px; }
.fp-grp-comment-main { flex: 1; font-size: 13.5px; min-width: 0; }
.fp-grp-comment-main p { margin: 2px 0 0; line-height: 1.45; }
.fp-grp-comment-form { display: flex; gap: 8px; margin-top: 6px; }
.fp-grp-comment-form input[type="text"] { flex: 1; border: 1px solid #e7e0d0; border-radius: 999px; padding: 8px 13px; font-size: 13.5px; min-width: 0; }
.fp-grp-report { margin-top: 6px; }
.fp-grp-report > summary { font-size: 12px; color: #9aa1ac; cursor: pointer; }

/* Moderation queues */
.fp-grp-modq { background: #fff8e6; border: 1px solid #f3dfae; border-radius: 14px; padding: 11px 12px; margin-bottom: 11px; }
.fp-grp-modq-h { font-size: 14px; font-weight: 800; margin: 0 0 8px; }
.fp-grp-modq-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.fp-grp-modq-row + .fp-grp-modq-row { border-top: 1px solid #f3e5bd; }
.fp-grp-modq-main { flex: 1; font-size: 13.5px; min-width: 0; }
.fp-grp-modq-main p { margin: 3px 0 0; line-height: 1.45; }
.fp-grp-modq-row form { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }

/* Members */
.fp-grp-member { display: flex; gap: 10px; align-items: center; padding: 9px 0; flex-wrap: wrap; }
.fp-grp-member + .fp-grp-member { border-top: 1px solid #f3eee2; }
.fp-grp-member-main { flex: 1; display: flex; flex-direction: column; min-width: 120px; }
.fp-grp-member form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.fp-grp-member select { border: 1px solid #e7e0d0; border-radius: 8px; padding: 6px 8px; font-size: 13px; }

/* About */
.fp-grp-about { font-size: 14.5px; line-height: 1.55; margin-bottom: 10px; }
.fp-grp-facts { margin: 0; }
.fp-grp-fact { display: flex; gap: 12px; padding: 8px 0; }
.fp-grp-fact + .fp-grp-fact { border-top: 1px solid #f3eee2; }
.fp-grp-fact dt { width: 110px; flex: none; font-weight: 700; font-size: 13px; color: #374151; }
.fp-grp-fact dd { margin: 0; font-size: 13.5px; }

/* Forms (create + settings) */
.fp-grp-form { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(31,41,55,.08); padding: 14px 12px; }
.fp-grp-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #374151; }
.fp-grp-field input[type="text"], .fp-grp-field textarea, .fp-grp-field select { border: 1px solid #e7e0d0; border-radius: 11px; padding: 10px 12px; font-size: 14px; font-weight: 400; font-family: inherit; background: #fff; }
.fp-grp-radio { display: flex; gap: 10px; align-items: flex-start; border: 2px solid #e7e0d0; border-radius: 12px; padding: 11px 12px; cursor: pointer; font-weight: 400; }
.fp-grp-radio:has(input:checked) { border-color: #1b3a8c; background: #f4f7ff; }
.fp-grp-radio strong { display: block; font-size: 14px; }
.fp-grp-radio small { display: block; color: #6b7280; font-size: 12px; margin-top: 2px; line-height: 1.4; }
.fp-grp-check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1.45; }
.fp-grp-cancel { text-align: center; font-size: 13.5px; color: #6b7280; }
.fp-grp-danger { background: #fdf0f0; border: 1px solid #f2c9c9; border-radius: 14px; padding: 13px 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.fp-grp-band-links { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 4px; }

/* In-place interactions (0.8.54): comment delete control. */
.fp-grp-comment { position: relative; }
.fp-grp-comment form { margin-left: auto; flex: none; }
.fp-grp-cdel { appearance: none; background: none; border: 0; color: #b3261e; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 4px; }
.fp-grp-cdel:hover { text-decoration: underline; }
.fp-grp-pact.is-on { color: #1b3a8c; font-weight: 800; }

/* Multi-photo galleries + composer previews (0.8.58). */
.fp-gal{display:grid;gap:3px;border-radius:12px;overflow:hidden;margin:2px 0 4px}
.fp-gal img{width:100%;height:100%;object-fit:cover;display:block}
.fp-gal-1{grid-template-columns:1fr}
.fp-gal-2{grid-template-columns:1fr 1fr}
.fp-gal-2 img,.fp-gal-4 img{aspect-ratio:1/1}
.fp-gal-3{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.fp-gal-3 img{aspect-ratio:1/1}
.fp-gal-3 img:first-child{grid-row:1/3;aspect-ratio:auto;height:100%}
.fp-gal-4{grid-template-columns:1fr 1fr}
.fp-gal-more{position:relative;display:block}
.fp-gal-more img{aspect-ratio:1/1}
.fp-gal-more b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(10,15,25,.45);color:#fff;font-size:24px;font-weight:800}

.fp-grp-previews{display:flex;flex-wrap:wrap;gap:8px;padding:10px 2px 2px}
.fp-grp-previews[hidden]{display:none}
.fp-grp-prev{position:relative;width:64px;height:64px}
.fp-grp-prev img{width:64px;height:64px;object-fit:cover;border-radius:10px;display:block}
.fp-grp-prev-x{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#20312a;color:#fff;font-size:15px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.fp-grp-photoname{font-size:13px;color:#52637a;font-weight:600}

/* Full-screen photo viewer (1.0). */
.fp-viewer{position:fixed;inset:0;z-index:99990;background:rgba(8,12,20,.95);display:flex;align-items:center;justify-content:center}
.fp-viewer img{max-width:100%;max-height:100%;object-fit:contain;display:block;cursor:zoom-in;transition:transform .18s ease}
.fp-viewer-x{position:absolute;z-index:2;top:calc(12px + env(safe-area-inset-top));right:14px;width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.fp-viewer-p,.fp-viewer-n{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.fp-viewer-p{left:10px}
.fp-viewer-n{right:10px}
.fp-viewer-count{position:absolute;z-index:2;bottom:calc(16px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);color:#fff;font-size:14px;font-weight:700}
.fp-gal img,img.fp-grp-pimg{cursor:zoom-in}

/* 1.0.85 — Flocks page, app parity: member avatar
   stacks on rows and cards, the View all button,
   and the quiet not-joined line. */
.fp-grp-mstack { display: inline-flex; align-items: center; margin-top: 3px; }
.fp-grp-mav { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; margin-left: -7px; background: #eef1f6; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: #1b3a8c; }
.fp-grp-mav:first-child { margin-left: 0; }
.fp-grp-mav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-grp-viewall { display: block; margin: 10px auto 2px; padding: 9px 22px; font: inherit; font-size: 14px; font-weight: 700; color: #1b3a8c; background: #fff; border: 1.5px solid #1b3a8c; border-radius: 999px; cursor: pointer; min-height: 44px; }
.fp-grp-yours-more[hidden] { display: none; }
