/* LUB Shakthi — member feed.
 * Loaded on top of lub.css, which supplies the tokens and the member shell.
 */

/* Cards lift in as they are scrolled to. JS adds .is-in; the reduced-motion
 * block at the foot of this file shows everything at once instead. */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}

/* ─────────────────────────────────────────────── filters */

.feed-filters { margin-bottom: 16px; }
.feed-search {
    display: flex; align-items: center; gap: 10px; background: #fff;
    border: 1px solid var(--line); border-radius: 999px; padding: 0 16px;
    box-shadow: var(--shadow); margin-bottom: 10px;
}
.feed-search .material-symbols-outlined { color: var(--ink-3); font-size: 20px; }
.feed-search input { border: 0; background: transparent; padding: 12px 0; flex: 1; min-height: 0; }
.feed-search input:focus { outline: 0; }

.feed-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.feed-chips::-webkit-scrollbar { display: none; }
.feed-chip {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
    padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
    transition: border-color .18s, color .18s, transform .18s, background .18s;
}
.feed-chip .material-symbols-outlined { font-size: 16px; }
.feed-chip:hover { border-color: var(--brand-200); color: var(--brand-deep); transform: translateY(-1px); }
.feed-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ─────────────────────────────────────────────── the post */

.post {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
    box-shadow: var(--shadow); margin-bottom: 16px; transition: box-shadow .2s;
}
.post:hover { box-shadow: var(--shadow-2); }
.post.is-official { border-color: var(--brand-200); background: linear-gradient(#FFFCF8, #fff 120px); }

.post-head { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px 10px; }
.post-who { flex: 1; min-width: 0; }
.post-who .n {
    font-weight: 700; font-size: 14.5px; letter-spacing: -.01em;
    display: flex; align-items: center; gap: 5px;
}
.post-who .m {
    font-size: 12px; color: var(--ink-3);
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.verified { color: var(--brand); display: inline-flex; }
.verified .material-symbols-outlined { font-size: 16px; font-variation-settings: "FILL" 1; }
.chip.tiny { padding: 1px 7px; font-size: 10.5px; }

.post-menu { position: relative; flex: none; }
.post-menu summary {
    list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 9px;
    display: grid; place-items: center; color: var(--ink-3); transition: background .15s, color .15s;
}
.post-menu summary::-webkit-details-marker { display: none; }
.post-menu summary:hover { background: var(--bg); color: var(--ink); }
.menu-sheet {
    position: absolute; right: 0; top: 36px; z-index: 20; min-width: 212px;
    background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
    box-shadow: var(--shadow-2); padding: 6px;
    animation: menuIn .18s cubic-bezier(.22,1,.36,1);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.menu-sheet form { margin: 0; }
.menu-item {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    background: 0; border: 0; cursor: pointer; font-family: inherit; font-size: 13.5px;
    color: var(--ink-2); padding: 10px 12px; border-radius: 9px; transition: background .14s;
}
.menu-item:hover { background: var(--bg); }
.menu-item .material-symbols-outlined { font-size: 18px; }
.menu-item.danger { color: var(--red); }
.menu-item.danger:hover { background: var(--red-bg); }

/* ─────────────────────────────────────────────── requirement / offer */

.trade { margin: 0 16px 12px; border-radius: 14px; padding: 14px 16px; border: 1px solid; }
.trade.requirement { background: #EFF6FF; border-color: #BFDBFE; }
.trade.offer { background: #ECFDF5; border-color: #A7F3D0; }

/* Job work reads as its own thing, not as a variety of goods. */
.trade.is-service.requirement { background: #F5F3FF; border-color: #DDD6FE; }
.trade.is-service.offer { background: #FFF7ED; border-color: #FED7AA; }
.trade.is-service.requirement .trade-pill { color: #6D28D9; }
.trade.is-service.offer .trade-pill { color: #C2410C; }
.trade.is-closed { opacity: .66; }
.trade-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.trade-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.trade.requirement .trade-pill { color: #1D4ED8; }
.trade.offer .trade-pill { color: #047857; }
.trade-pill .material-symbols-outlined { font-size: 16px; }
.trade-product { font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; }
.trade-facts { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0 0; }
.trade-facts div { min-width: 0; }
.trade-facts dt {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-3); font-weight: 700;
}
.trade-facts dd { margin: 1px 0 0; font-size: 13.5px; font-weight: 600; }

.post-body {
    padding: 0 16px 13px; font-size: 14.5px; line-height: 1.6;
    white-space: pre-wrap; word-break: break-word;
}

/* Once the body is rendered through the Tagger the line breaks are real
   <br> elements, and pre-wrap on top of them doubles every one. */
.post-body.is-rich { white-space: normal; }

/* Highlighted, not merely coloured.
 *
 * Saffron text alone was too quiet against a dark body at 14.5px — a member
 * scanning the feed could not see at a glance that they had been named, or
 * that a post was filed under a subject. A faint tinted ground behind each
 * one makes both findable without turning the sentence into a row of
 * buttons: the tint is 6% of the colour, not a chip.
 *
 * Two different tints, because they are two different things. A name is
 * about a person, a tag is about a subject, and a reader should be able to
 * tell which is which before reading either. */
.tag-link, .mention-link {
    font-weight: 650;
    border-radius: 5px;
    padding: 1px 4px;
    margin: 0 -1px;
    transition: background .14s, color .14s;
    /* So a name that wraps keeps its ground on both lines rather than
       losing it on the second. */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.mention-link { color: #1D4ED8; background: #EFF6FF; }
.mention-link:hover { background: #DBEAFE; color: #1E40AF; }

.tag-link { color: var(--brand-deep); background: var(--brand-50); }
.tag-link:hover { background: var(--brand-100); }

/* Inside a comment bubble, which already sits on a tinted ground, the
   highlight would be a block on a block. The weight and the colour carry
   it there instead. */
.bubble .tag-link, .bubble .mention-link { background: 0; padding: 0; margin: 0; }
.bubble .tag-link:hover, .bubble .mention-link:hover { text-decoration: underline; }

/* ── one subject ──────────────────────────────────────────────────────── */

.tag-head { display: flex; align-items: center; gap: 14px; }
.tag-head h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.tag-head .sub { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.tag-hash {
    width: 46px; height: 46px; flex: none; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--brand-100); color: var(--brand-deep);
    font-size: 24px; font-weight: 800;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 11px; border-radius: 999px;
    background: var(--bg); border: 1px solid var(--line);
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.tag-chip:hover { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-deep); }
.tag-chip span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── @ while you type ─────────────────────────────────────────────────── */

/* Positioned from JavaScript against the caret's own line, so it is fixed:
   the composer and the comment sheet both clip their contents. */
.atpop {
    position: fixed; z-index: 97;
    width: 272px; max-height: 268px; overflow-y: auto;
    background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
    box-shadow: 0 12px 34px rgba(17,24,39,.2);
    padding: 4px 0;
}
.atpop-row {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 11px; cursor: pointer; width: 100%;
    background: 0; border: 0; font-family: inherit; text-align: left;
}
.atpop-row:hover, .atpop-row.is-on { background: var(--brand-50); }
.atpop-row .avatar { width: 28px; height: 28px; font-size: 10.5px; flex: none; }
.atpop-row .grow { min-width: 0; }
.atpop-row .n {
    display: block; font-size: 13px; font-weight: 650; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.atpop-row .d {
    display: block; font-size: 11px; color: var(--ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.atpop-none { padding: 12px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* ─────────────────────────────────────────────── media */

/* A mosaic, not a carousel.
 *
 * The carousel showed one photograph and hid the rest behind a swipe nobody
 * makes on a desktop — so a member who posted four views of a casting was
 * posting one. The layouts below are the ones every member already reads all
 * day in another feed, and they fit several photographs into the height of
 * one.
 *
 * One photograph keeps its own shape and is not cropped: a drawing or a
 * nameplate is the message, and a square crop of it loses the message. Two or
 * more are cropped to fit, because a mosaic of mismatched shapes is a mess
 * and every one of them opens full size on a tap.
 */
.media { position: relative; background: #0B0D12; overflow: hidden; }

/* `min-height: 0` as well as `min-width`.
 *
 * A grid item's automatic minimum is its content's min-content size, and for
 * an <img> that is the photograph's own height. So a 1200px-tall poster in a
 * "1fr" row made the row 1200px tall, the cell grew to match, and `cover`
 * had nothing left to crop — which is why a four-up mosaic of posters ran
 * off the bottom of the screen instead of fitting in a square. */
.media-cell {
    position: relative; margin: 0; overflow: hidden;
    min-width: 0; min-height: 0;
}
.media-cell img, .media-cell video { width: 100%; height: 100%; display: block; }
.media-cell img[data-zoom] { cursor: zoom-in; }

/* Every cell is filled, whatever shape the photograph is.
 *
 * `contain` left a band of empty colour around anything that did not match
 * its frame, which on a feed of phone photographs was most of them. The
 * frame itself is held between 4:5 and 1.91:1 in the markup, so the crop is
 * never more than that window costs — and a tap opens the whole picture. */
.media-cell img, .media-cell video { object-fit: cover; }

/* `width: 100%` is load-bearing, on both of the boxes below.
 *
 * `aspect-ratio` fills in whichever dimension is free. Given only a
 * max-height it does the arithmetic the other way round — it shrinks the
 * *width* to keep the ratio — so a 776px column got a 588px block of photos
 * with 188px of empty card beside it. With the width stated outright it is
 * no longer the free dimension: the ratio sets the height, max-height clamps
 * that height, and the crop lands on the photographs where it belongs. */

/* --- one: its own shape, within reason --- */
.media.is-single .media-cell { width: 100%; max-height: 620px; }
.media.is-compact .media-cell { width: 100%; max-height: 220px; aspect-ratio: 16 / 9; }

/* A video is the exception: a cropped video cannot be opened uncropped the
   way a photograph can, and cutting the top off somebody's machine is worse
   than a band of black either side of it. */
.media.is-single video { object-fit: contain; background: #000; }

/* --- several: a grid --- */
.media.is-grid {
    display: grid; gap: 2px;
    /* Roughly a square overall, which is what keeps a post with four photos
       from taking over the whole feed. */
    width: 100%;
    aspect-ratio: 1.05;
    max-height: 620px;
}

/* Every track is minmax(0, …) for the reason above: a bare `1fr` is
   `minmax(auto, 1fr)` and refuses to shrink below the image inside it. */

/* two side by side */
.media.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); aspect-ratio: 2; }

/* one large, two stacked beside it */
.media.n-3 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
}
.media.n-3 .media-cell:first-child { grid-row: span 2; }

/* two by two */
.media.n-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* two over three — and the fifth carries the count of the rest */
.media.n-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1.1fr) minmax(0, 1fr);
}
.media.n-5 .media-cell:nth-child(1),
.media.n-5 .media-cell:nth-child(2) { grid-column: span 3; }
.media.n-5 .media-cell:nth-child(3),
.media.n-5 .media-cell:nth-child(4),
.media.n-5 .media-cell:nth-child(5) { grid-column: span 2; }

/* A label over the last tile, not a lid: the photograph under it still
   opens, and the viewer pages on through the ones it is counting. */
.media-more {
    position: absolute; inset: 0; pointer-events: none;
    display: grid; place-items: center;
    background: rgba(11,13,18,.46);
    color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.02em;
}

/* On a phone a three-up mosaic is three stamps. The first photograph takes
   the full width and the rest share the row beneath it. */
@media (max-width: 560px) {
    .media.is-grid { aspect-ratio: 1; }
    .media.n-3 { grid-template-columns: 1fr 1fr; }
    .media.n-3 .media-cell:first-child { grid-row: auto; grid-column: span 2; }
    .media.n-5 { grid-template-rows: 1.2fr 1fr; }
    .media-more { font-size: 21px; }
}

/* ─────────────────────────────────────────────── quoted reshare */

.post-quote {
    display: block; margin: 0 16px 13px; border: 1px solid var(--line-2);
    border-radius: 14px; overflow: hidden; color: inherit;
    transition: background .15s, border-color .15s;
}
.post-quote:hover { background: var(--bg); border-color: var(--ink-3); }
.pq-who { display: flex; align-items: center; gap: 8px; padding: 11px 13px 4px; font-size: 13px; font-weight: 600; }
.pq-who .m { color: var(--ink-3); font-weight: 400; }
.pq-body { padding: 0 13px 11px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* ─────────────────────────────────────────────── tally + actions */

.post-tally {
    display: flex; align-items: center; gap: 12px; padding: 10px 16px;
    font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line);
}
.post-tally .grow { flex: 1; }

/* The tally is two buttons now, not two labels: a count of likes that cannot
   be opened is a number with the interesting half missing. They are styled
   back down to looking like text, because they are still a tally. */
.tally-likes, .tally-link {
    display: inline-flex; align-items: center; gap: 5px;
    background: 0; border: 0; padding: 0; cursor: pointer;
    font-family: inherit; font-size: 12.5px; color: var(--ink-3);
}
.tally-likes:hover, .tally-link:hover { color: var(--brand-deep); text-decoration: underline; }
.tally-likes .heart {
    width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #FB7185, #E11D48); color: #fff;
}
.tally-likes .material-symbols-outlined { font-size: 11px; }
.tally-likes .heart .material-symbols-outlined { text-decoration: none; }

.post-acts { display: flex; border-top: 1px solid var(--line); }
.post-acts .act-form { flex: 1; display: flex; margin: 0; }
.act {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 6px; border: 0; background: 0; cursor: pointer; font-family: inherit;
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    transition: background .15s, color .15s;
}
.act:last-child { border-radius: 0 0 var(--r-xl) 0; }
.act:hover { background: var(--bg); }
.act .material-symbols-outlined { font-size: 19px; transition: transform .2s; }
.act:hover .material-symbols-outlined { transform: scale(1.12); }
.act.is-on { color: #E11D48; }

/* The heart kicks when it is switched on. */
.act.pop .material-symbols-outlined { animation: heartPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes heartPop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.45); }
    60%  { transform: scale(.92); }
    100% { transform: scale(1); }
}

.post-drawer {
    padding: 12px 16px 14px; border-top: 1px solid var(--line); background: #FCFCFD;
    animation: drawerIn .22s cubic-bezier(.22,1,.36,1);
}
@keyframes drawerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.post-drawer textarea { width: 100%; font-family: inherit; font-size: 13.5px; padding: 10px 12px; }
.drawer-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }

/* ── sharing outward ──────────────────────────────────────────────────────
 *
 * Sharing to the chapter and sharing to the rest of the world are two
 * different acts, so they are two blocks with a rule between them rather
 * than one row of six buttons where the first is a form submit and the
 * others open new windows.
 *
 * The marks are each platform's own, used to point at that platform — the
 * use their brand guidelines describe. They sit in neutral grey until they
 * are hovered, which keeps the row one row instead of five logos arguing.
 */
.share-out {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line);
}
.share-out-label {
    font-size: 11px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--ink-3);
}
.share-icons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.share-ico {
    width: 36px; height: 36px; flex: none;
    border: 1px solid var(--line-2); border-radius: 50%;
    background: #fff; color: var(--ink-2); cursor: pointer;
    display: grid; place-items: center;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.share-ico:hover { transform: translateY(-2px); color: #fff; }
.share-ico .material-symbols-outlined { font-size: 19px; }

.share-ico.is-wa:hover   { background: #25D366; border-color: #25D366; }
.share-ico.is-fb:hover   { background: #1877F2; border-color: #1877F2; }
.share-ico.is-x:hover    { background: #000;    border-color: #000; }
.share-ico.is-li:hover   { background: #0A66C2; border-color: #0A66C2; }
.share-ico.is-tg:hover   { background: #26A5E4; border-color: #26A5E4; }
.share-ico.is-mail:hover { background: var(--ink-2); border-color: var(--ink-2); }
.share-ico.is-copy:hover,
.share-ico.is-more:hover { background: var(--brand); border-color: var(--brand); }

/* "Copied" has to be said somewhere, and there is no room for a word. */
.share-ico.is-done {
    background: #16A34A; border-color: #16A34A; color: #fff; transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .share-ico, .share-ico:hover { transform: none; transition: none; }
}

/* ─────────────────────────────────────────────── comments */

.comment-form { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.comment-form .grow { flex: 1; min-width: 0; }
.comment-form textarea {
    width: 100%; font-family: inherit; font-size: 14px; padding: 10px 14px;
    border-radius: 18px; resize: none; min-height: 0; overflow: hidden;
}
.comment { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.comment .grow { flex: 1; min-width: 0; }
.comment.is-reply { margin: 12px 0 0 6px; }
.bubble { background: var(--bg); border-radius: 16px; padding: 9px 14px; display: inline-block; max-width: 100%; }
.c-who { font-size: 13px; font-weight: 700; display: flex; align-items: baseline; gap: 7px; }
.c-who .m { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.c-body { font-size: 13.5px; line-height: 1.55; margin-top: 1px; word-break: break-word; }
.c-acts { display: flex; gap: 14px; padding: 5px 0 0 14px; }
.c-acts form { margin: 0; }
.c-acts button {
    background: 0; border: 0; padding: 0; cursor: pointer; font-family: inherit;
    font-size: 11.5px; font-weight: 700; color: var(--ink-3);
}
.c-acts button:hover { color: var(--brand-deep); text-decoration: underline; }

.comment-list { display: block; }

/* ─────────────────────────────────────────────── the sheets
 *
 * Comments and likes open over the feed rather than on a page of their own.
 * Losing your place in a feed to read three comments, and then having to
 * find your way back to where you were, is the single most annoying thing a
 * feed can do — and the post's own page still exists for a direct link or a
 * middle click, because the button under them is still an anchor.
 */
/* ── the bottom of the feed ───────────────────────────────────────────
 *
 * There is no page number. The sentinel sits below the last post and asks
 * for the next twelve when it comes within 600px of the viewport, so the
 * posts are usually already there by the time the member reaches them —
 * which is the whole point of doing it this way rather than with a button.
 */
.feed-end {
    display: flex; align-items: center; justify-content: center;
    padding: 26px 0 34px;
}
.feed-spin { display: flex; gap: 6px; }
.feed-spin span {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand-200);
    animation: feedPulse 1.1s ease-in-out infinite;
}
.feed-spin span:nth-child(2) { animation-delay: .14s; }
.feed-spin span:nth-child(3) { animation-delay: .28s; }
@keyframes feedPulse {
    0%, 70%, 100% { transform: scale(.7); background: var(--brand-200); }
    35% { transform: scale(1); background: var(--brand); }
}
@media (prefers-reduced-motion: reduce) {
    .feed-spin span { animation: none; }
}

.feed-done {
    text-align: center; padding: 22px 0 34px;
    font-size: 12.5px; color: var(--ink-3);
}

body.has-sheet { overflow: hidden; }

.sheet {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(12,16,24,.55);
    display: grid; place-items: center; padding: 24px;
    animation: fadeIn .16s ease;
}
/* `transform: none` is not decoration.
 *
 * The site's reduced-motion block squashes every animation to 0.001s with
 * !important. An entry animation that ends in a transform-free state is
 * therefore cut off at its first frame — translateY(100%) — and because its
 * fill mode is none there is nothing to fall back to except the element's
 * own transform. Without one declared, the phone sheet opened fully off the
 * bottom of the screen. */
.sheet-card {
    background: #fff; border-radius: 14px; width: 100%;
    box-shadow: 0 24px 70px rgba(12,16,24,.3);
    display: flex; flex-direction: column; overflow: hidden;
    transform: none;
    animation: sheetRise .22s cubic-bezier(.22,1,.36,1);
}
.sheet-card.is-tall { max-width: 620px; max-height: min(86vh, 820px); }

@keyframes sheetRise {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.sheet-head {
    display: flex; align-items: center; gap: 10px; flex: none;
    padding: 13px 14px 12px 18px; border-bottom: 1px solid var(--line);
}
.sheet-head strong { font-size: 16px; letter-spacing: -.01em; flex: 1; }

.sheet-open, .sheet-x {
    width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%;
    background: var(--bg); color: var(--ink-2); cursor: pointer;
    display: grid; place-items: center;
}
.sheet-open:hover, .sheet-x:hover { background: var(--line); color: var(--ink); }
.sheet-open .material-symbols-outlined,
.sheet-x .material-symbols-outlined { font-size: 19px; }

.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 18px; }
.sheet-wait {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 36px 16px; font-size: 13px; color: var(--ink-3);
}
.sheet-wait .material-symbols-outlined { font-size: 26px; color: var(--line-2); }

/* The post the thread belongs to, so the fourth comment still has something
   to be a comment on once the card behind is covered. */
.sheet-post {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 13px; margin-bottom: 16px;
    background: var(--bg); border-radius: 12px;
}
.sheet-post .grow { min-width: 0; }
.sheet-post .n { font-size: 13px; font-weight: 700; }
.sheet-post .n .m { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.sheet-post .d {
    font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── who liked it ─────────────────────────────────────────────────────
 *
 * A small panel hung off the count, not a dialog with the feed dimmed
 * behind it. Six names do not need the whole window, and taking somebody's
 * place in the feed away to show them is a poor trade.
 *
 * Positioned from JavaScript against the button, so it is `fixed` — a card
 * in the feed has `overflow: hidden`, and an absolutely positioned panel
 * inside one is a panel with its bottom half cut off.
 */
.likepop {
    position: fixed; z-index: 96;
    width: 252px; max-height: 320px;
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
    box-shadow: 0 12px 34px rgba(17,24,39,.2);
    overflow: hidden;
    animation: sheetIn .14s cubic-bezier(.22,1,.36,1);
}

.likepop-head {
    display: flex; align-items: center; gap: 7px; flex: none;
    padding: 9px 12px 8px; border-bottom: 1px solid var(--line);
}
.likepop-head strong { font-size: 12.5px; font-weight: 700; }
.likepop-heart {
    width: 17px; height: 17px; border-radius: 50%; flex: none;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #FB7185, #E11D48);
}
.likepop-heart .material-symbols-outlined { font-size: 10px; }

.likepop-list { overflow-y: auto; padding: 4px 0; }

.like-row {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 12px; color: inherit;
}
.like-row:hover { background: var(--bg); }
.like-row:hover .n { color: var(--brand-deep); }
.like-row .avatar { width: 26px; height: 26px; font-size: 10px; flex: none; }
.like-row .grow { min-width: 0; }
.like-row .n {
    display: block; font-size: 12.5px; font-weight: 650; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.like-row .d {
    display: block; font-size: 11px; color: var(--ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.like-more, .like-none {
    font-size: 11.5px; color: var(--ink-3); padding: 8px 12px; text-align: center;
}

/* On a phone it sits across the bottom, where a 252px panel pinned under a
   button near the right edge would hang off the screen. */
@media (max-width: 520px) {
    .likepop {
        left: 10px !important; right: 10px;
        top: auto !important; bottom: calc(var(--mbot-h, 60px) + 10px);
        width: auto; max-height: 50vh;
    }
}

/* On a phone the sheet is the screen, pinned to the bottom edge where a
   thumb is, rather than a small card floating in the middle of it. */
@media (max-width: 620px) {
    .sheet { padding: 0; place-items: end stretch; }
    .sheet-card {
        border-radius: 16px 16px 0 0;
        max-width: none !important; max-height: 88vh !important;
        animation: sheetUp .24s cubic-bezier(.22,1,.36,1);
    }
    @keyframes sheetUp {
        from { transform: translateY(100%); }
        to { transform: none; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .sheet, .sheet-card { animation: none; }
}

/* ─────────────────────────────────────────────── lightbox */

.lightbox {
    position: fixed; inset: 0; z-index: 90; background: rgba(8,10,14,.93);
    display: grid; place-items: center; padding: 28px;
    animation: fadeIn .2s ease; cursor: zoom-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 100%; max-height: 100%; border-radius: 8px; cursor: default;
    animation: zoomIn .28s cubic-bezier(.22,1,.36,1);
}
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lb-close {
    position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: 0;
    border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
    display: grid; place-items: center; transition: background .15s, transform .15s;
}
.lb-close:hover { background: rgba(255,255,255,.26); transform: rotate(90deg); }

.lb-step {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff;
    display: grid; place-items: center; transition: background .15s;
}
.lb-step:hover { background: rgba(255,255,255,.28); }
.lb-step .material-symbols-outlined { font-size: 28px; }
.lb-step.prev { left: 18px; }
.lb-step.next { right: 18px; }

.lb-count {
    position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,.14); color: #fff;
    font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
    .lb-step { width: 40px; height: 40px; }
    .lb-step.prev { left: 8px; }
    .lb-step.next { right: 8px; }
}

@media (max-width: 520px) {
    .act span:not(.material-symbols-outlined) { font-size: 12px; }
    .trade-facts { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .post, .feed-chip, .act .material-symbols-outlined { transition: none; }
}
