/* DES-2a post card additions. The card itself uses the v2.3.21 shell classes (.card .ch .av .who .more .menu .txt
   .media .grid3 .counts .rx .abar .cmt .reply .tag) from the page's own <style>. This file only adds what the design
   has no rule for (2 and 4 photo grids, the four-reaction strip, the badge, the initials disc, the Preview tag) and
   undoes #social's generic button/paragraph rules inside the card on community-feed.html. FRDM tokens only. */
.fd-card .fd-ini{display:grid;place-items:center;background:linear-gradient(135deg,#d9bd68,#8f6f22);color:#18181b;font:700 14px var(--ui)}
.fd-card .who b a.fd-name{color:var(--ink);text-decoration:none;min-height:0;display:inline}
.fd-card .who b a.fd-name:hover{text-decoration:underline}
.fd-badge{display:inline-flex;vertical-align:-3px;margin-left:4px}.fd-badge svg{width:16px;height:16px;fill:var(--brand);stroke:var(--on-brand);stroke-width:1.6}
.fd-card .fd-preview{margin-left:6px;vertical-align:2px}
.fd-card .fd-text{white-space:pre-line;overflow-wrap:anywhere}
.fd-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin-top:12px;overflow:hidden}
.fd-grid img{width:100%;height:100%;min-height:0;object-fit:cover;display:block}
.fd-grid.n2{height:300px}.fd-grid.n4{height:360px;grid-template-rows:1fr 1fr}
.fd-card .media img{max-height:560px}
.fd-reacts{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:0 8px;padding:4px 0;border-top:1px solid var(--line)}
.fd-card .fd-reacts button{border:0;border-radius:8px;min-height:44px;padding:0 4px;gap:6px;color:var(--ink-2);background:transparent;font:600 13px var(--ui)}
.fd-card .fd-reacts button:hover{background:var(--card-2);color:var(--ink)}
.fd-card .fd-reacts button .fd-n{font:500 12px var(--mono);color:var(--ink-3)}
.fd-card .fd-reacts button[aria-pressed=true]{color:var(--accent-ink);background:color-mix(in srgb,var(--accent) 12%,transparent)}
.fd-card .fd-reacts button[aria-pressed=true] svg{fill:var(--accent);stroke:var(--accent)}
.fd-card .fd-reacts button[aria-pressed=true] .fd-n{color:var(--accent-ink)}
.fd-card .rx .fd-sup{background:#2e6b55}
.fd-card .fd-abar{grid-template-columns:repeat(2,1fr)}
.fd-card .fd-cc{border:0;min-height:32px;padding:0 4px;font-size:13px;color:var(--ink-3);background:transparent}
.fd-card .cmt.fd-reply{padding-left:56px}
.fd-card .fd-when{color:var(--ink-3);font-size:12px}
.fd-card .fd-pending{padding:8px 16px 14px;color:var(--ink-3);font-size:13px}
.fd-is-pending{opacity:.8}
/* community-feed.html renders inside #social, whose generic rules would flatten the designed card. */
#social .fd-card{padding:0;border-radius:12px}
#social .fd-card p{margin:0;line-height:1.45}
#social .fd-card .txt p{margin-top:0}
#social .fd-card .abar button,#social .fd-card .more>button,#social .fd-card .menu button,#social .fd-card .seemore,#social .fd-card .reply button{background:transparent;border:0;color:var(--ink-2);padding:0 4px}
#social .fd-card .menu button{padding:0 12px;width:100%;justify-content:flex-start}
#social .fd-card .who a.fd-name{min-height:0;display:inline;color:var(--ink)}
#social .fd-card .fd-reacts button{background:transparent;border:0;color:var(--ink-2);padding:0 4px;border-radius:8px}
#social .fd-card .fd-reacts button[aria-pressed=true]{color:var(--accent-ink);background:color-mix(in srgb,var(--accent) 12%,transparent);border-color:transparent}
#social .fd-card .reply input{padding:0 16px;border-radius:999px;background:transparent}
@media(max-width:600px){.fd-reacts{margin:0 4px}.fd-card .fd-reacts button{flex-direction:column;gap:0;font-size:11px;height:52px}.fd-grid.n2{height:220px}.fd-grid.n4{height:280px}}
