/* =========================================================
   PetoFast Community — uses the PetoFast theme tokens
   (--o, --pk, --t, --y, --cream, --ink, --mut, --line, --r…).
   Fallbacks keep it usable with another theme.
   ========================================================= */
.pfc-app, .pfc-home {
	--pfc-o: var(--o, #ff7a1a);
	--pfc-od: var(--o-d, #e5620a);
	--pfc-pk: var(--pk, #ff5c8a);
	--pfc-t: var(--t, #14b8a6);
	--pfc-y: var(--y, #ffc93c);
	--pfc-bg: var(--cream, #fff8ee);
	--pfc-card: var(--card, #fff);
	--pfc-ink: var(--ink, #2b2118);
	--pfc-mut: var(--mut, #7a6a5c);
	--pfc-line: var(--line, #f0e2cf);
	--pfc-r: var(--r, 16px);
	--pfc-head: var(--head, "Baloo 2", system-ui, sans-serif);
	--pfc-body: var(--body, "Nunito", system-ui, sans-serif);
	--pfc-tab: 0px;
}
.pfc-app { padding: 12px 0 110px; }
.pfc-shell { max-width: 640px; margin: 0 auto; padding: 0 14px; }
.pfc-app .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.pfc-i { width: 22px; height: 22px; flex: none; }
.pfc-h { font: 800 19px/1.2 var(--pfc-head); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.pfc-h-count { color: var(--pfc-mut); font-weight: 700; }
.pfc-sub { margin: 0; color: var(--pfc-mut); font-size: 14px; line-height: 1.4; }

/* ---------- Top bar ---------- */
.pfc-top { display: flex; align-items: center; gap: 10px; padding: 6px 0 14px; }
.pfc-top-txt { flex: 1; min-width: 0; }
.pfc-title { font: 800 26px/1.1 var(--pfc-head); margin: 0; color: var(--pfc-ink); }
.pfc-top-act { display: flex; align-items: center; gap: 4px; }
.pfc-iconbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--pfc-ink); cursor: pointer; text-decoration: none; }
.pfc-iconbtn:hover { background: rgba(255, 122, 26, .1); color: var(--pfc-ink); }
.pfc-back { margin-left: -8px; }
.pfc-dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--pfc-pk); color: #fff; font: 800 11px/18px var(--pfc-body); text-align: center; animation: pfc-pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.pfc-me { display: inline-flex; text-decoration: none; }
.pfc-signin { font-weight: 800; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--pfc-card); border: 2px solid var(--pfc-line); color: var(--pfc-ink); }

/* ---------- Avatars & badges ---------- */
.pfc-av { --h: 22; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: hsl(var(--h) 95% 88%); color: hsl(var(--h) 70% 30%); font: 800 17px/1 var(--pfc-head); }
.pfc-av.is-sm { width: 32px; height: 32px; font-size: 14px; }
.pfc-av.is-lg { width: 84px; height: 84px; font-size: 36px; box-shadow: 0 0 0 4px var(--pfc-card), 0 0 0 6px var(--pfc-o); }
.pfc-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font: 800 11px/1.5 var(--pfc-body); vertical-align: 2px; background: rgba(20, 184, 166, .14); color: #0d7d71; }
.pfc-badge-team { background: rgba(255, 122, 26, .15); color: var(--pfc-od); }
.pfc-badge-rescue { background: rgba(255, 92, 138, .14); color: #c42a5a; }

/* ---------- Composer prompt ---------- */
.pfc-composer { display: grid; grid-template-columns: auto 1fr; gap: 10px 10px; align-items: center; background: var(--pfc-card); border: 1px solid var(--pfc-line); border-radius: var(--pfc-r); padding: 12px; margin-bottom: 14px; }
.pfc-composer-btn { text-align: left; border: 2px solid var(--pfc-line); background: var(--pfc-bg); border-radius: 999px; padding: 10px 16px; font: 700 15px var(--pfc-body); color: var(--pfc-mut); cursor: pointer; }
.pfc-composer-btn:hover { border-color: var(--pfc-o); }
.pfc-composer-quick { grid-column: 1 / -1; display: flex; gap: 6px; border-top: 1px dashed var(--pfc-line); padding-top: 10px; }
.pfc-composer-quick button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; padding: 8px; border-radius: 10px; font: 800 14px var(--pfc-body); color: var(--pfc-ink); cursor: pointer; }
.pfc-composer-quick button:hover { background: var(--pfc-bg); }
.pfc-composer-quick .pfc-i { width: 20px; height: 20px; color: var(--pfc-t); }
.pfc-join { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--pfc-r); background: var(--pfc-ink); color: #fff; text-decoration: none; }
.pfc-join:hover { color: #fff; }
.pfc-join strong { display: block; font: 800 17px/1.2 var(--pfc-head); color: var(--pfc-y); }
.pfc-join span span, .pfc-join > span:last-child { font-size: 14px; }
.pfc-join-paws { display: flex; gap: 2px; }
.pfc-join-paws .pfc-paw { width: 22px; height: 22px; fill: var(--pfc-o); }
.pfc-join-paws .pfc-paw:last-child { transform: translateY(-8px) rotate(14deg); opacity: .7; }

/* ---------- Pets of the week ---------- */
.pfc-potw { margin: 0 -14px 12px; padding: 0 14px; }
.pfc-potw-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.pfc-potw-row::-webkit-scrollbar { display: none; }
.pfc-potw-item { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--pfc-ink); scroll-snap-align: start; }
.pfc-ring { position: relative; display: block; width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--pfc-o), var(--pfc-pk), var(--pfc-y), var(--pfc-o)); }
.pfc-ring img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--pfc-bg); }
.pfc-ring.is-top::after { content: "👑"; position: absolute; top: -10px; right: -4px; font-size: 20px; transform: rotate(18deg); }
.pfc-potw-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 12px var(--pfc-body); }
.pfc-potw-paws { display: inline-flex; align-items: center; gap: 2px; font: 800 11px var(--pfc-body); color: var(--pfc-mut); }
.pfc-potw-paws .pfc-paw { width: 12px; height: 12px; fill: var(--pfc-o); }

/* ---------- Filters ---------- */
.pfc-filters { position: sticky; top: var(--pfc-sticky, 0px); z-index: 20; margin: 0 -14px 12px; padding: 8px 14px 6px; background: var(--pfc-bg); }
.pfc-chiprow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; align-items: center; }
.pfc-chiprow::-webkit-scrollbar { display: none; }
.pfc-chiprow-sm { margin-top: 4px; }
.pfc-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 999px; background: var(--pfc-card); border: 1.5px solid var(--pfc-line); font: 800 14px/1.2 var(--pfc-body); color: var(--pfc-ink); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pfc-chip:hover { border-color: var(--pfc-o); color: var(--pfc-ink); }
.pfc-chip.is-on { background: var(--pfc-ink); border-color: var(--pfc-ink); color: #fff; }
.pfc-chip.is-pet { padding: 5px 10px; font-size: 17px; }
.pfc-chip.is-pet.is-on { background: rgba(255, 122, 26, .16); border-color: var(--pfc-o); color: var(--pfc-ink); }
.pfc-sort { margin-left: auto; flex: none; display: inline-flex; background: var(--pfc-card); border: 1.5px solid var(--pfc-line); border-radius: 999px; padding: 2px; }
.pfc-sort a { padding: 5px 10px; border-radius: 999px; font: 800 12px var(--pfc-body); color: var(--pfc-mut); text-decoration: none; white-space: nowrap; }
.pfc-sort a.is-on { background: var(--pfc-o); color: #fff; }
.pfc-taghead { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 201, 60, .25); font: 800 18px var(--pfc-head); }
.pfc-taghead a { font: 800 14px var(--pfc-body); }

/* ---------- Card ---------- */
.pfc-feed { display: grid; gap: 14px; }
.pfc-card { background: var(--pfc-card); border: 1px solid var(--pfc-line); border-radius: var(--pfc-r); overflow: hidden; }
.pfc-card.is-new { animation: pfc-drop .5s cubic-bezier(.2, 1.2, .4, 1); }
.pfc-card.is-gone { transition: opacity .25s, transform .25s; opacity: 0; transform: scale(.96); }
.pfc-card-head { display: flex; align-items: center; gap: 8px; padding: 12px 8px 8px 12px; }
.pfc-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pfc-ink); }
.pfc-who:hover { color: var(--pfc-ink); }
.pfc-who-txt { min-width: 0; line-height: 1.25; }
.pfc-who-txt strong { font-weight: 800; }
.pfc-who-txt small { display: block; color: var(--pfc-mut); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfc-kind { flex: none; padding: 3px 10px; border-radius: 999px; font: 800 12px/1.5 var(--pfc-body); background: rgba(255, 201, 60, .3); color: #7a5300; }
.pfc-k-question .pfc-kind { background: rgba(20, 184, 166, .15); color: #0d7d71; }
.pfc-more { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; color: var(--pfc-mut); cursor: pointer; }
.pfc-more:hover { background: var(--pfc-bg); }
.pfc-more .pfc-i { width: 20px; }
.pfc-pending { margin: 0 12px 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 201, 60, .22); font-size: 13px; font-weight: 700; }
.pfc-text { padding: 0 14px 10px; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.pfc-k-question .pfc-text { font: 700 18px/1.4 var(--pfc-head); }
.pfc-k-tip .pfc-text { margin: 0 12px 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 201, 60, .16); border-left: 4px solid var(--pfc-y); }
.pfc-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.pfc-tag { font-weight: 800; color: var(--pfc-od); text-decoration: none; }

/* Photos: one swipeable strip, double-tap to give a paw */
.pfc-media { position: relative; background: #f6ece0; user-select: none; -webkit-user-select: none; }
.pfc-media-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pfc-media-track::-webkit-scrollbar { display: none; }
.pfc-shot { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.pfc-shot img { display: block; width: 100%; height: auto; max-height: 560px; aspect-ratio: auto; object-fit: cover; }
.pfc-media[data-count]:not([data-count="1"]) .pfc-shot img { aspect-ratio: 4 / 5; height: 100%; }
.pfc-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pfc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: width .2s, background .2s; }
.pfc-dots i.is-on { width: 16px; border-radius: 4px; background: #fff; }
.pfc-burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pfc-burst-paw { width: 110px; height: 110px; fill: #fff; opacity: 0; filter: drop-shadow(0 6px 18px rgba(229, 98, 10, .55)); }
.pfc-burst.is-go .pfc-burst-paw { animation: pfc-bigpaw .9s cubic-bezier(.2, 1.4, .4, 1) forwards; }

/* Actions */
.pfc-actions { display: flex; align-items: center; gap: 4px; padding: 6px 8px; }
.pfc-act, .pfc-pawbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; background: none; border-radius: 999px; font: 800 14px var(--pfc-body); color: var(--pfc-mut); text-decoration: none; cursor: pointer; }
.pfc-act:hover, .pfc-pawbtn:hover { background: var(--pfc-bg); color: var(--pfc-ink); }
.pfc-share { margin-left: auto; }
.pfc-solved { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 184, 166, .14); color: #0d7d71; font: 800 12px var(--pfc-body); }
.pfc-solved .pfc-i { width: 15px; height: 15px; }

/* The paw button — the one big moment */
.pfc-pawwrap { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; }
.pfc-paw { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: fill .2s, stroke .2s; }
.pfc-pawbtn.is-on { color: var(--pfc-od); }
.pfc-pawbtn.is-on .pfc-paw { fill: var(--pfc-o); stroke: var(--pfc-o); }
.pfc-pawbtn.is-pop .pfc-pawwrap > .pfc-paw { animation: pfc-stomp .5s cubic-bezier(.3, 1.8, .5, 1); }
.pfc-count { display: inline-block; min-width: 1ch; }
.pfc-count.is-roll { animation: pfc-roll .35s ease-out; }
.pfc-mini { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px; fill: var(--pfc-o); stroke: none; pointer-events: none; animation: pfc-fly .7s ease-out forwards; }
.pfc-mini:nth-child(odd) { fill: var(--pfc-pk); }
.pfc-mini:nth-child(3n) { fill: var(--pfc-y); }

/* ---------- Replies (post page) ---------- */
.pfc-replies { margin-top: 18px; }
.pfc-replylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pfc-reply { display: flex; gap: 10px; align-items: flex-start; }
.pfc-reply.is-new { animation: pfc-drop .45s cubic-bezier(.2, 1.2, .4, 1); }
.pfc-reply > a { text-decoration: none; }
.pfc-reply-body { flex: 1; min-width: 0; background: var(--pfc-card); border: 1px solid var(--pfc-line); border-radius: 4px 16px 16px 16px; padding: 9px 13px; }
.pfc-reply.is-helpful .pfc-reply-body { border: 2px solid var(--pfc-t); background: #f2fdfb; }
.pfc-reply-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 14px; }
.pfc-reply-head small { color: var(--pfc-mut); font-size: 12px; margin-left: auto; }
.pfc-op { font: 800 11px var(--pfc-body); color: var(--pfc-od); }
.pfc-reply p { margin: 3px 0 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.pfc-helpful-flag { display: flex; align-items: center; gap: 4px; color: #0d7d71; font: 800 13px var(--pfc-body) !important; }
.pfc-helpful-flag .pfc-i { width: 16px; height: 16px; }
.pfc-reply-tools { display: flex; gap: 12px; margin-top: 4px; }
.pfc-reply-tools button { border: 0; background: none; padding: 2px 0; font: 800 12px var(--pfc-body); color: var(--pfc-mut); cursor: pointer; }
.pfc-reply-tools button[data-pfc-helpful] { color: #0d7d71; }
.pfc-noreplies, .pfc-note { font-size: 14px; color: var(--pfc-mut); }
.pfc-note { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--pfc-card); border: 1px dashed var(--pfc-line); }
.pfc-note a { font-weight: 800; }

.pfc-replybar { position: fixed; z-index: 65; left: 0; right: 0; bottom: var(--pfc-tab); display: flex; align-items: flex-end; gap: 8px; max-width: 640px; margin: 0 auto; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--pfc-card); border-top: 1px solid var(--pfc-line); box-shadow: 0 -8px 24px rgba(120, 60, 0, .07); }
.pfc-replybar textarea { flex: 1; min-height: 40px; max-height: 140px; resize: none; padding: 9px 14px; border: 2px solid var(--pfc-line); border-radius: 20px; font: 600 15px/1.4 var(--pfc-body); color: var(--pfc-ink); background: var(--pfc-bg); }
.pfc-replybar textarea:focus { outline: none; border-color: var(--pfc-o); }
.pfc-send { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pfc-o); color: #fff; cursor: pointer; transition: transform .15s; }
.pfc-send svg { width: 20px; height: 20px; }
.pfc-send:active { transform: scale(.9); }
.pfc-send:disabled { opacity: .5; }
.pfc-replybar.is-guest { justify-content: center; font-weight: 800; text-decoration: none; color: var(--pfc-od); }
.pfc-view-post .pfc-fab { display: none; }

.pfc-more-posts { margin-top: 26px; }
.pfc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pfc-grid-item { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f6ece0; }
.pfc-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfc-grid-item span { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: rgba(43, 33, 24, .6); color: #fff; font: 800 11px var(--pfc-body); }
.pfc-grid-item .pfc-paw { width: 12px; height: 12px; fill: #fff; stroke: none; }

/* ---------- Profile ---------- */
.pfc-profile { text-align: center; background: var(--pfc-card); border: 1px solid var(--pfc-line); border-radius: var(--pfc-r); padding: 24px 16px 18px; margin-bottom: 14px; }
.pfc-profile-name { font: 800 24px/1.2 var(--pfc-head); margin: 14px 0 2px; }
.pfc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 6px; }
.pfc-stats div { display: flex; flex-direction: column-reverse; }
.pfc-stats dt { font-size: 12px; color: var(--pfc-mut); font-weight: 700; }
.pfc-stats dd { margin: 0; font: 800 22px/1.2 var(--pfc-head); }
.pfc-petlist { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; padding: 0; }
.pfc-petlist li { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 800 13px var(--pfc-body); }
.pfc-petlist img, .pfc-petemoji { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 26px; background: var(--pfc-bg); border: 2px solid var(--pfc-line); }
.pfc-profile .pf-btn { margin-top: 8px; }

/* ---------- Activity ---------- */
.pfc-notes { list-style: none; margin: 0; padding: 0; background: var(--pfc-card); border: 1px solid var(--pfc-line); border-radius: var(--pfc-r); overflow: hidden; }
.pfc-notes li + li { border-top: 1px solid var(--pfc-line); }
.pfc-notes a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--pfc-ink); text-decoration: none; }
.pfc-notes a:hover { background: var(--pfc-bg); }
.pfc-notes .is-new a { background: rgba(255, 122, 26, .07); }
.pfc-note-ico { font-size: 22px; }
.pfc-note-txt { flex: 1; min-width: 0; font-weight: 700; line-height: 1.35; }
.pfc-note-txt small { display: block; font-weight: 600; color: var(--pfc-mut); font-size: 12px; }
.pfc-note-img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }

/* ---------- Empty, loader, FAB, toast ---------- */
.pfc-empty { text-align: center; padding: 34px 16px; color: var(--pfc-mut); font-weight: 700; }
.pfc-empty-paw .pfc-paw { width: 56px; height: 56px; fill: rgba(255, 122, 26, .18); stroke: none; }
.pfc-loader { display: flex; justify-content: center; gap: 10px; padding: 22px 0; visibility: hidden; }
.pfc-loader.is-on { visibility: visible; }
.pfc-loader .pfc-paw { width: 18px; height: 18px; fill: var(--pfc-o); stroke: none; opacity: .2; }
.pfc-loader.is-on .pfc-paw { animation: pfc-walk 1.2s infinite; }
.pfc-loader.is-on .pfc-paw:nth-child(2) { animation-delay: .2s; transform: translateY(-6px) rotate(10deg); }
.pfc-loader.is-on .pfc-paw:nth-child(3) { animation-delay: .4s; }
.pfc-end { text-align: center; color: var(--pfc-mut); font-weight: 700; font-size: 14px; padding: 16px 0; }

.pfc-fab { position: fixed; z-index: 66; left: 50%; bottom: calc(var(--pfc-tab) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 999px; background: var(--pfc-o); color: #fff; font: 800 15px var(--pfc-body); white-space: nowrap; box-shadow: 0 10px 24px rgba(229, 98, 10, .4); cursor: pointer; transition: background .15s; }
.pfc-fab:hover { background: var(--pfc-od); color: #fff; }
.pfc-fab .pfc-i { width: 20px; height: 20px; }
.pfc-view-activity .pfc-fab { display: none; }
.pfc-only-sm { display: none; }

.pfc-toast { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--pfc-tab) + 90px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 999px; background: var(--pfc-ink); color: #fff; font: 800 14px var(--pfc-body); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: pfc-toast .3s ease-out; text-align: center; }

/* ---------- Bottom sheets ---------- */
.pfc-sheet { position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-end; justify-content: center; }
.pfc-sheet[hidden] { display: none; }
.pfc-sheet-bg { position: absolute; inset: 0; background: rgba(43, 33, 24, .5); animation: pfc-fade .2s; }
.pfc-sheet-panel { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--pfc-card); border-radius: 24px 24px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); animation: pfc-up .32s cubic-bezier(.2, 1.1, .4, 1); overscroll-behavior: contain; }
.pfc-sheet.is-closing .pfc-sheet-panel { animation: pfc-down .2s ease-in forwards; }
.pfc-sheet.is-closing .pfc-sheet-bg { animation: pfc-fade .2s reverse forwards; }
.pfc-grab { display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--pfc-line); margin: 2px auto 10px; }
.pfc-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pfc-sheet h2 { font: 800 21px/1.2 var(--pfc-head); margin: 0 0 8px; }
.pfc-sheet-head h2 { margin: 0; }
.pfc-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }

.pfc-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--pfc-bg); margin-bottom: 12px; }
.pfc-seg label { flex: 1; }
.pfc-seg input, .pfc-chip input, .pfc-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pfc-seg span { display: block; text-align: center; padding: 8px 4px; border-radius: 999px; font: 800 14px var(--pfc-body); cursor: pointer; transition: background .15s, color .15s; }
.pfc-seg input:checked + span { background: var(--pfc-card); color: var(--pfc-od); box-shadow: 0 2px 8px rgba(120, 60, 0, .1); }
.pfc-seg input:focus-visible + span, .pfc-chip input:focus-visible + span, .pfc-radio input:focus-visible + span { outline: 3px solid var(--pfc-o); outline-offset: 2px; }
.pfc-compose textarea { width: 100%; min-height: 110px; resize: vertical; border: 2px solid var(--pfc-line); border-radius: 14px; padding: 12px 14px; font: 600 16px/1.5 var(--pfc-body); color: var(--pfc-ink); background: var(--pfc-bg); }
.pfc-compose textarea:focus { outline: none; border-color: var(--pfc-o); background: #fff; }
.pfc-previews { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.pfc-previews:empty { display: none; }
.pfc-prev { position: relative; flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; animation: pfc-pop .3s cubic-bezier(.3, 1.6, .5, 1); }
.pfc-prev img { width: 100%; height: 100%; object-fit: cover; }
.pfc-prev button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(43, 33, 24, .7); color: #fff; cursor: pointer; padding: 0; }
.pfc-prev button .pfc-i { width: 14px; height: 14px; }
.pfc-addphoto { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 14px; border-radius: 999px; border: 2px dashed var(--pfc-line); font: 800 14px var(--pfc-body); cursor: pointer; color: var(--pfc-ink); }
.pfc-addphoto:hover, .pfc-addphoto:focus-within { border-color: var(--pfc-t); }
.pfc-addphoto .pfc-i { color: var(--pfc-t); }
.pfc-pets { border: 0; padding: 0; margin: 14px 0 0; }
.pfc-pets legend { font: 800 14px var(--pfc-body); margin-bottom: 6px; padding: 0; }
.pfc-pets .pfc-chiprow { flex-wrap: wrap; }
.pfc-chip input:checked + span { color: var(--pfc-od); }
.pfc-chip:has(input:checked) { border-color: var(--pfc-o); background: rgba(255, 122, 26, .1); }
.pfc-addpet { display: inline-block; margin-top: 6px; font: 800 13px var(--pfc-body); }
.pfc-formerr { margin: 10px 0 0; color: #c42a2a; font-weight: 700; font-size: 14px; }
.pfc-counter { font-size: 12px; color: var(--pfc-mut); font-weight: 700; }
.pfc-submit { min-width: 120px; }
.pfc-submit:disabled { opacity: .55; cursor: wait; }

.pfc-menu { display: grid; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.pfc-menu button { text-align: left; border: 0; background: none; padding: 14px 8px; border-radius: 12px; font: 800 16px var(--pfc-body); color: var(--pfc-ink); cursor: pointer; }
.pfc-menu button:hover { background: var(--pfc-bg); }
.pfc-menu .is-danger { color: #c42a2a; }
.pfc-menu .is-quiet { text-align: center; color: var(--pfc-mut); }
.pfc-menu [hidden] { display: none; }
.pfc-radio { display: block; position: relative; }
.pfc-radio span { display: block; padding: 12px 14px; margin-bottom: 6px; border-radius: 12px; border: 2px solid var(--pfc-line); font-weight: 700; cursor: pointer; }
.pfc-radio input:checked + span { border-color: var(--pfc-o); background: rgba(255, 122, 26, .08); }
.pfc-linkbtn { border: 0; background: none; font: 800 15px var(--pfc-body); color: var(--pfc-mut); cursor: pointer; }
body.pfc-locked { overflow: hidden; }

/* ---------- Home section ---------- */
.pfc-home-row { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.pfc-home-row::-webkit-scrollbar { display: none; }
.pfc-home-row > a { scroll-snap-align: start; border-radius: var(--pfc-r); text-decoration: none; height: 280px; }
.pfc-home-cta { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px; background: var(--pfc-o); color: #fff; position: relative; overflow: hidden; }
.pfc-home-cta:hover { color: #fff; background: var(--pfc-od); }
.pfc-home-cta strong { font: 800 24px/1.1 var(--pfc-head); }
.pfc-home-cta span:last-child { font-size: 14px; font-weight: 700; opacity: .92; }
.pfc-home-cta-paw { position: absolute; top: 18px; right: -14px; }
.pfc-home-cta-paw .pfc-paw { width: 120px; height: 120px; fill: rgba(255, 255, 255, .22); stroke: none; transform: rotate(-16deg); }
.pfc-home-q { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--pfc-card); border: 2px solid var(--pfc-t); color: var(--pfc-ink); }
.pfc-home-q:hover { color: var(--pfc-ink); }
.pfc-home-q-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(20, 184, 166, .15); color: #0d7d71; font: 800 12px var(--pfc-body); }
.pfc-home-q-text { flex: 1; font: 700 17px/1.35 var(--pfc-head); overflow: hidden; }
.pfc-home-q-by { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--pfc-mut); }
.pfc-home-q-btn { align-self: stretch; background: var(--pfc-t); }
.pfc-home-q:hover .pfc-home-q-btn { background: #0f9d8e; }
.pfc-home-tile { position: relative; overflow: hidden; background: #f6ece0; }
.pfc-home-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pfc-home-tile:hover img { transform: scale(1.04); }
.pfc-home-tile-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(43, 33, 24, .7)); color: #fff; font: 800 14px var(--pfc-body); }
.pfc-home-tile-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfc-home-tile-paws { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.pfc-home-tile-paws .pfc-paw { width: 15px; height: 15px; fill: #fff; stroke: none; }

/* ---------- Laptop: three columns ---------- */
.pfc-side { display: none; }
.pfc-av.is-md { width: 64px; height: 64px; font-size: 28px; box-shadow: 0 0 0 3px var(--pfc-card), 0 0 0 5px var(--pfc-o); }
.pfc-box { background: var(--pfc-card); border: 1px solid var(--pfc-line); border-radius: var(--pfc-r); padding: 16px; }
.pfc-box-h { font: 800 17px/1.2 var(--pfc-head); margin: 0 0 12px; }
.pfc-mecard { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pfc-mecard-link { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--pfc-ink); text-decoration: none; }
.pfc-mecard-link .pfc-av { margin: 4px 0 8px; }
.pfc-mecard strong { font: 800 19px/1.2 var(--pfc-head); }
.pfc-mecard small { font-size: 13px; color: var(--pfc-mut); font-weight: 600; }
.pfc-mecard .pfc-join-paws .pfc-paw { width: 34px; height: 34px; fill: var(--pfc-o); stroke: none; }
.pfc-ministats { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 4px; padding-top: 12px; border-top: 1px solid var(--pfc-line); }
.pfc-ministats div { display: flex; flex-direction: column-reverse; }
.pfc-ministats dt { font-size: 11.5px; font-weight: 700; color: var(--pfc-mut); }
.pfc-ministats dd { margin: 0; font: 800 18px/1.2 var(--pfc-head); }
.pfc-wide { width: 100%; margin-top: 10px; }
.pfc-wide .pfc-i { width: 18px; height: 18px; }
.pfc-nav { display: flex; flex-direction: column; padding: 8px; }
.pfc-nav-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; font-weight: 800; color: var(--pfc-ink); text-decoration: none; }
.pfc-nav-item:hover { background: var(--pfc-bg); color: var(--pfc-ink); }
.pfc-nav-item.is-on { background: rgba(255, 122, 26, .1); color: var(--pfc-od); }
.pfc-nav-n { min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center; font-size: 12px; background: var(--pfc-bg); }
.pfc-nav-n.is-teal { background: rgba(20, 184, 166, .15); color: #0d6d63; }
.pfc-nav-n.is-pink { background: var(--pfc-pk); color: #fff; }
.pfc-nav-sep { height: 1px; margin: 6px 4px; background: var(--pfc-line); }
.pfc-chipwrap { display: flex; flex-wrap: wrap; gap: 6px; }
.pfc-chipwrap .pfc-chip { padding: 6px 12px; font-size: 13px; }
.pfc-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pfc-rank a { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 12px; color: var(--pfc-ink); text-decoration: none; }
.pfc-rank a:hover { background: var(--pfc-bg); }
.pfc-rank-n { width: 16px; font: 800 14px var(--pfc-head); color: var(--pfc-mut); }
.pfc-rank-n.is-top { color: var(--pfc-od); }
.pfc-ring.is-sm { width: 46px; height: 46px; padding: 2px; flex: none; }
.pfc-ring.is-sm img { border-width: 2px; }
.pfc-ring.is-sm.is-top::after { top: -9px; right: -6px; font-size: 15px; }
.pfc-rank-name { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfc-rank-paws { font: 800 12.5px var(--pfc-body); color: var(--pfc-mut); }
.pfc-help { border: 2px solid var(--pfc-t); }
.pfc-help-q { display: block; padding: 10px 0; border-top: 1px solid var(--pfc-line); color: var(--pfc-ink); text-decoration: none; font-weight: 700; line-height: 1.35; }
.pfc-help-q:first-of-type { border-top: 0; padding-top: 0; }
.pfc-help-q:hover { color: var(--pfc-od); }
.pfc-help-q span { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 800; color: #0d6d63; }
.pfc-tagchip { padding: 5px 11px; border-radius: 999px; background: rgba(255, 122, 26, .1); color: #b34a00; font: 800 13px var(--pfc-body); text-decoration: none; }
.pfc-tagchip:hover { background: rgba(255, 122, 26, .2); color: #b34a00; }
.pfc-vetbox { background: var(--pfc-ink); border-color: var(--pfc-ink); color: #fff; }
.pfc-vetbox .pfc-box-h { color: var(--pfc-y); margin-bottom: 6px; }
.pfc-vetbox p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }

@media (min-width: 1100px) {
	.pfc-app { padding-top: 20px; }
	.pfc-layout { display: grid; grid-template-columns: 250px minmax(0, 640px) 300px; justify-content: center; align-items: start; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
	.pfc-layout > .pfc-shell { max-width: none; margin: 0; padding: 0; }
	.pfc-side { display: flex; flex-direction: column; gap: 16px; }
	.pfc-side-l { position: sticky; top: calc(var(--pfc-sticky, 0px) + 16px); }
	/* What the side columns now show, the centre column drops. */
	.pfc-layout .pfc-potw, .pfc-layout .pfc-join, .pfc-layout .pfc-me, .pfc-layout .pfc-signin { display: none; }
	.pfc-layout .pfc-filters { position: static; margin: 0 0 12px; padding: 0; background: none; }
	.pfc-layout .pfc-filters .pfc-chiprow:first-child, .pfc-layout .pfc-filters .pfc-chip.is-pet { display: none; }
	.pfc-layout .pfc-filters .pfc-chiprow-sm { margin: 0; justify-content: flex-end; }
	.pfc-layout .pfc-profile { margin-top: 0; }
	.pfc-fab { display: none; }
	.pfc-title { font-size: 30px; }
}

/* ---------- Phones ---------- */
@media (max-width: 782px) {
	.pfc-only-sm { display: inline-grid; }
	body.pf-tabpost .pfc-fab { display: none; } /* the theme's bottom menu has the Post button */
	.pfc-app, .pfc-home { --pfc-tab: var(--tabbar, 64px); }
	.pfc-app { padding-top: 6px; }
	.pfc-shell { padding: 0 10px; }
	.pfc-potw, .pfc-filters { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; }
	.pfc-title { font-size: 22px; }
	.pfc-card { border-radius: 14px; }
	.pfc-home-row { grid-auto-columns: 62vw; }
	.pfc-home-row > a { height: 250px; }
	.pfc-view-post .pf-footer { padding-bottom: 80px; }
	.pfc-sheet-panel { border-radius: 20px 20px 0 0; }
	body.pfc-page .pf-tabbar { z-index: 67; }
}
@media (min-width: 783px) {
	.pfc-sheet { align-items: center; }
	.pfc-sheet-panel { border-radius: 24px; padding-bottom: 20px; }
	.pfc-grab { display: none; }
	.pfc-replybar { position: sticky; bottom: 0; border: 1px solid var(--pfc-line); border-radius: 20px 20px 0 0; }
}

/* ---------- Motion ---------- */
@keyframes pfc-stomp { 0% { transform: scale(1); } 35% { transform: scale(1.55) rotate(-12deg); } 65% { transform: scale(.9) rotate(4deg); } 100% { transform: scale(1); } }
@keyframes pfc-fly { 0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); opacity: 0; } }
@keyframes pfc-bigpaw { 0% { opacity: 0; transform: scale(.2) rotate(-25deg); } 30% { opacity: .95; transform: scale(1.15) rotate(6deg); } 55% { transform: scale(.95) rotate(0); } 80% { opacity: .95; } 100% { opacity: 0; transform: scale(1.05) translateY(-30px); } }
@keyframes pfc-roll { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pfc-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes pfc-drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pfc-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pfc-down { to { transform: translateY(100%); } }
@keyframes pfc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pfc-toast { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pfc-walk { 0%, 100% { opacity: .2; } 30% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.pfc-app *, .pfc-home * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.pfc-mini, .pfc-burst { display: none; }
}
