/* Florenda: public pages of channels and posts (no sign-in needed). Header, footer and buttons come from landing.css and fds.css. */
.pb-main { padding-top: 28px; }
.pb-main section { margin-top: clamp(32px, 5vw, 48px); }
.pb-main h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 680; margin-bottom: 16px; }
.pb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--fd-muted); font-size: 14px; }
.pb-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--fd-text-2); }
.pb-crumbs a:hover { color: var(--fd-text); text-decoration: underline; }
.pb-crumbs i { font-style: normal; opacity: .6; }
.pb-head { max-width: 760px; margin-top: 14px; }
.pb-head h1, .pb-channel h1, .pb-article h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 720; text-wrap: balance; }
.pb-head p { margin-top: 14px; color: var(--fd-text-2); font-size: 17px; text-wrap: pretty; }
.pb-meta { color: var(--fd-muted); font-size: 14px; }
.pb-meta a { color: var(--fd-text-2); }
.pb-meta a:hover { color: var(--fd-text); text-decoration: underline; }

.pb-chans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pb-chans--one { grid-template-columns: minmax(0, 1fr); }
.pb-chan { display: flex; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--fd-line); border-radius: var(--fd-r); background: var(--fd-surface); transition: border-color .16s ease, background .16s ease; }
.pb-chan:hover { border-color: var(--fd-line-2); background: var(--fd-raised); }
.pb-chan img { flex: none; border-radius: 12px; }
.pb-chan-txt { display: grid; gap: 2px; min-width: 0; align-content: start; }
.pb-chan-txt b { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.pb-chan-txt small { color: var(--fd-muted); font-size: 13.5px; }
.pb-chan-txt span { margin-top: 4px; color: var(--fd-text-2); font-size: 15px; line-height: 1.45; }

.pb-channel { margin-top: 14px; overflow: hidden; border: 1px solid var(--fd-line); border-radius: var(--fd-r-lg); background: var(--fd-surface); }
.pb-cover { display: block; width: 100%; height: auto; aspect-ratio: 6 / 1; min-height: 88px; object-fit: cover; background: var(--fd-bg-2); }
.pb-channel-in { display: flex; gap: 18px; padding: clamp(18px, 3vw, 28px); }
.pb-ava { flex: none; border-radius: 16px; background: var(--fd-raised); }
.pb-channel-txt { min-width: 0; }
.pb-channel .pb-meta { margin-top: 8px; }
.pb-desc { margin-top: 12px; max-width: 720px; color: var(--fd-text-2); font-size: 16.5px; text-wrap: pretty; }
.pb-live { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 12px; color: var(--fd-text-2); font-size: 15px; }
.pb-live b { color: var(--fd-muted); font-weight: 650; }
.pb-live.is-on b { color: var(--fd-ok); }
.pb-live code { font: 600 14px var(--fd-mono); overflow-wrap: anywhere; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.pb-posts { display: grid; gap: 12px; }
.pb-post { padding: clamp(18px, 3vw, 24px); border: 1px solid var(--fd-line); border-radius: var(--fd-r); background: var(--fd-surface); }
.pb-post h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; font-weight: 660; }
.pb-post h3 a:hover { color: var(--fd-accent-ink); }
.pb-post .pb-meta { margin-top: 4px; }
.pb-post > p:not(.pb-meta) { margin-top: 10px; color: var(--fd-text-2); font-size: 15.5px; }
.pb-post--note h3 { font-size: 17px; }
.pb-text { margin-top: 12px; color: var(--fd-text-2); font-size: 16px; overflow-wrap: anywhere; }
.pb-text p { margin-top: 10px; }
.pb-text p:first-child { margin-top: 0; }
.pb-text ul, .pb-text ol { margin: 10px 0 0; padding-left: 22px; }
.pb-text ul { list-style: disc; }
.pb-text ol { list-style: decimal; }
.pb-text li + li { margin-top: 4px; }
.pb-text a { color: var(--fd-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.pb-photo { display: block; width: 100%; height: auto; margin-top: 14px; border-radius: var(--fd-r-sm); background: var(--fd-bg-2); }

.pb-article { max-width: 760px; margin-top: 14px; }
.pb-article .pb-meta { margin-top: 14px; }
.pb-by { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; vertical-align: middle; }
.pb-by img { border-radius: 7px; }
.pb-article .pb-text { margin-top: 18px; font-size: 17px; }
.pb-article .pb-text p { margin-top: 14px; }
.pb-article .pb-text p:first-child { margin-top: 0; }
.pb-more { display: grid; gap: 4px; max-width: 760px; }
.pb-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fd-accent-ink); }
.pb-more a:hover { text-decoration: underline; }

.pb-rail { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-rail a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--fd-line); border-radius: var(--fd-r-sm); background: var(--fd-surface); color: var(--fd-text-2); font-size: 14.5px; font-weight: 550; transition: color .16s ease, border-color .16s ease; }
.pb-rail a:hover { color: var(--fd-text); border-color: var(--fd-line-2); }
.pb-rail img { border-radius: 6px; }

.pb-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--fd-line); border-radius: var(--fd-r-lg); background: var(--fd-surface); }
.pb-cta > div:first-child { flex: 1 1 420px; min-width: 0; }
.pb-main .pb-cta h2 { margin-bottom: 6px; }
.pb-cta p { color: var(--fd-text-2); font-size: 16px; text-wrap: pretty; }
.pb-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 760px) {
    .pb-chans { grid-template-columns: minmax(0, 1fr); }
    .pb-channel-in { flex-direction: column; gap: 12px; }
    .pb-cta-btns .fd-btn, .pb-actions .fd-btn { flex: 1 1 100%; }
}
@media (max-width: 640px) {
    /* on phones the header keeps the channels link: landing.css hides .ld-link there */
    .pb-body .ld-link[href="/communities"] { display: inline-flex; padding: 0 8px; }
}

.pb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; color: var(--fd-text-2); font-size: 15px; }
