/* My Good Neighbors: styles for the home timeline and group pages (community switcher, feed tabs, composer, tappable post cards, group header). */
.cswitch{position:relative;flex:1;min-width:0}
.cswitch summary{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-height:44px;margin-left:-6px;padding:4px 10px 4px 6px;border-radius:14px;list-style:none;cursor:pointer;transition:background-color .12s}
.cswitch summary:hover,.cswitch[open] summary{background:var(--bg-2)}
.cswitch summary::-webkit-details-marker{display:none}
.cswitch .bar-title{min-width:0;font-size:20px}
.cswitch summary .i-s{flex:none;color:var(--fg-3);transition:transform .15s}
.cswitch[open] summary .i-s{transform:rotate(180deg)}
.cmark{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:var(--nude);color:#7a5a3d;box-shadow:inset 0 0 0 1px rgba(122,90,61,.12)}
.cmark svg{width:18px;height:18px}
.cmark-nude{background:var(--bg-2);color:var(--fg-2);box-shadow:inset 0 0 0 1px var(--line)}
.citem[aria-current] .cmark{background:var(--bg)}
.cmenu{position:absolute;left:-6px;top:calc(100% + 6px);z-index:10;display:grid;gap:2px;width:min(320px,calc(100vw - 20px));padding:6px;border-radius:20px;background:var(--bg);box-shadow:0 0 0 1px var(--line),0 18px 44px -14px rgba(27,26,24,.3)}
.cmenu-label{padding:8px 10px 4px;font-size:var(--fs-xs);font-weight:650;letter-spacing:.02em;color:var(--fg-3)}
.citem{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 10px;border-radius:14px}
.citem:hover{background:var(--bg-2)}
.citem[aria-current]{background:var(--nude)}
.citem .cmark{width:38px;height:38px;border-radius:12px}
.citem .row-text{line-height:1.3}
.citem .row-title{font-size:var(--fs-lg);font-weight:600}
.citem>.i-m{margin-left:auto;color:var(--fg)}
.cnew{margin-left:auto;flex:none;padding:2px 8px;border-radius:999px;background:var(--fg);color:var(--bg);font-size:var(--fs-2xs);font-weight:700}
.citem-add{margin-top:4px;box-shadow:inset 0 1px 0 var(--line);border-radius:0 0 14px 14px}
.citem-add .cmark{background:var(--bg-2);color:var(--fg-2)}
.citem-add .row-title{font-weight:550;color:var(--fg-2)}
.bar-btn-dot{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background:var(--fg);box-shadow:0 0 0 2px var(--bg-2)}
.composer{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line)}
.composer-field{flex:1;min-width:0;display:flex;align-items:center;height:40px;padding:0 16px;border-radius:999px;background:var(--bg-2);color:var(--fg-3);font-size:var(--fs-md);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.composer-field:hover{background:var(--bg-3);color:var(--fg-2)}
.post{position:relative}
.post-open{position:absolute;inset:0;z-index:0}
.post-open:focus-visible{outline-offset:-3px;border-radius:0}
.post :is(a:not(.post-open),button,details,.media){position:relative;z-index:1}
.post:has(.post-open:hover){background:#fcfbfa}
.post h2.post-title{font:inherit;font-size:var(--fs-xl);font-weight:650;letter-spacing:-.01em;line-height:1.3}
.see-more{font-weight:600;color:var(--fg-2)}
.see-more:hover{text-decoration:underline}
.pmenu{align-self:flex-start;margin:-2px -6px 0 0}
.pmenu summary{list-style:none;cursor:pointer}
.pmenu summary::-webkit-details-marker{display:none}
.pmenu[open] .post-more{background:var(--bg-2);color:var(--fg)}
.pmenu-list{position:absolute;right:0;top:calc(100% + 4px);z-index:10;width:220px;padding:6px;border-radius:16px;background:var(--bg);box-shadow:0 0 0 1px var(--line),0 16px 40px -12px rgba(27,26,24,.28)}
.pmenu-item{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 10px;border:0;border-radius:10px;background:none;font-size:var(--fs-md);font-weight:500;text-align:left}
.pmenu-item:hover{background:var(--bg-2)}
.pmenu-item .i{width:19px;height:19px;color:var(--fg-2)}
.pmenu-danger,.pmenu-danger .i{color:var(--red)}
.liked{display:flex;align-items:center;gap:8px;font-size:var(--fs-sm);color:var(--fg-3)}
.liked b{font-weight:600;color:var(--fg-2)}
.liked-faces{display:flex}
.liked-faces .av{width:20px;height:20px;margin-right:-6px;box-shadow:0 0 0 2px var(--bg)}
.liked-faces .av:last-child{margin-right:0}
.caught{display:grid;justify-items:center;gap:4px;padding:22px 16px 18px;border-top:1px solid var(--line);text-align:center}
.caught-ic{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--nude);margin-bottom:4px}
.caught b{font-size:var(--fs-lg);font-weight:650}
.caught span{font-size:var(--fs-sm);color:var(--fg-3)}
.older{display:flex;justify-content:center;padding:14px 16px 4px;border-top:1px solid var(--line)}
.post:has(.post-open:active){background:var(--bg-2)}
