/* v0.219.111 — FALLBACKS ARE LOad-BEARING, not decoration.
   Every var(--tsx-*) below carries the exact literal it replaced. --tsx-* is defined ONLY
   by app/theme_engine.php inside .ts-theme{}. orb.php is <body class="site orb-app"> and
   never sets $GLOBALS['ts_theme'], so ts_theme_head() never runs and --tsx-* DOES NOT EXIST
   on ORB. Without these fallbacks, linking this file into orb.php would make those
   declarations invalid at computed-value time: .fd-body would lose its colour, .fd-img's
   letterbox would go transparent, and .fd-post's border would fall back to currentColor —
   a dark line around every card. The fallback is the value ORB's inline copy has today, so
   ORB computes identically; .ts-theme pages still get the dark remap. --ts-white needs no
   fallback: brand.css defines it at :root, globally.
   ============================================================================ */
/* ============================================================================
   TRIPSORB — FEED CARD STYLES  assets/css/feed_card.css   (v0.219.100)

   The styles for app/feed_post.php's card, extracted from orb.php's inline <style>.

   WHY THIS FILE EXISTS: feed_post.php's markup lived in orb.php's <style> only, so any
   other page including the template got the markup with no styling — which is why
   hashtag.php, u.php and post.php each hand-rolled a dead read-only card instead.

   IMPORTANT — orb.php IS NOT TOUCHED. It keeps its own inline copy, so ORB cannot
   regress from this release; it is byte-for-byte the page it was. That duplication is
   deliberate and temporary: ORB should later drop its inline copy and link this file,
   but only as a change that can be verified against ORB directly. Shipping that here
   would risk the best page in the app for no immediate gain.

   Contents: only the rules whose selectors touch a class feed_post.php actually renders,
   derived mechanically rather than by eye. ORB-only chrome (composer, tabs, sidebars) is
   excluded, so this is safe to load on a page with its own layout.
   ============================================================================ */
/* tab pills: no vertical lift on hover (the scroll container would clip it); use a subtle shadow/colour instead */
.fd-tabs .btn{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease}
.fd-tabs .btn:hover{transform:none;box-shadow:0 2px 8px -3px rgba(20,33,61,.18)}
.fd-h .av-ring{display:inline-flex;padding:2.5px;border-radius:50%;background:linear-gradient(135deg,#FFB155,#FF5B41);flex:none}
.fd-h .av-ring>img,.fd-h .av-ring>div{border:2px solid #fff;box-sizing:border-box}
.fd-tabs>.btn{flex:0 0 auto;white-space:nowrap;padding:8px 15px !important;font-size:13.5px !important;height:auto !important;min-height:0 !important;border-radius:999px !important}
.fd-tabs>.btn i{font-size:15px !important}
.fs-card .btn{padding:6px 14px !important;font-size:var(--fs-sm);white-space:nowrap;max-width:100%}
.fs-card .btn{width:100%;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.fd-post-btn{width:100%;padding:11px !important;font-size:16px !important;font-weight:700 !important;border-radius:10px !important}
.fd-post{background:var(--ts-white);border:1px solid var(--tsx-line2, #f4efe7);border-radius:var(--r-xl);padding:16px 18px;margin-bottom:22px;overflow:hidden;box-shadow:0 1px 3px rgba(20,33,61,.04),0 12px 32px -20px rgba(20,33,61,.20);transition:box-shadow .28s ease,transform .28s ease}
.fd-post:hover{box-shadow:0 2px 5px rgba(20,33,61,.06),0 8px 18px rgba(20,33,61,.06),0 32px 58px -28px rgba(20,33,61,.55);transform:translateY(-2px)}
.fd-h{display:flex;align-items:center;gap:11px}
.fd-h>form{display:contents}
.fd-h>.btn-xs,.fd-h>form>.btn-xs{flex:none;align-self:center}
.fd-h .nm{font-family:var(--font-disp);font-weight:600;font-size:var(--fs-md);color:var(--ts-ink);line-height:1.25;letter-spacing:.1px}
.fd-h .mt{color:var(--ts-slate);font-size:var(--fs-xs);margin-top:1px}
.fd-body{margin:12px 0 0;color:var(--tsx-ink-3, #1f2733);line-height:1.6;white-space:pre-wrap;word-wrap:break-word;font-size:var(--fs-md)}
.fd-edit textarea{width:100%;border:1px solid var(--ts-line);border-radius:var(--r-md);padding:10px 12px;font-size:var(--fs-md);font-family:inherit;background:var(--ts-sand);box-sizing:border-box;resize:vertical;margin-top:var(--sp-10)}
.fd-edit textarea:focus{outline:none;border-color:var(--ts-coral);background:var(--ts-white)}
.ts-lc{display:none;margin:12px 0 0;border:1px solid var(--ts-line);border-radius:var(--r-lg);overflow:hidden;text-decoration:none;color:inherit;background:var(--ts-white)}
.ts-lc.on{display:block}
.ts-lc .lc-img{width:100%;max-height:180px;object-fit:cover;display:block;background:var(--ts-sand)}
.ts-lc .lc-tx{padding:11px 14px}
.ts-lc .lc-t{font-weight:700;color:var(--ts-ink);font-size:var(--fs-base);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ts-lc .lc-d{color:var(--ts-slate);font-size:var(--fs-sm);margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ts-lc .lc-host{color:var(--ts-slate);font-size:var(--fs-2xs);text-transform:uppercase;letter-spacing:.05em;margin-top:var(--sp-6)}
.fd-img{margin:14px -18px 0;overflow:hidden;background:var(--tsx-sand2, #faf6ef)}
.fd-img img{width:100%;display:block;max-height:600px;object-fit:cover}
.fd-carousel{position:relative;margin:14px -18px 0;background:var(--tsx-sand2, #faf6ef)}
.fd-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.fd-track::-webkit-scrollbar{display:none}
.fd-slide{flex:0 0 100%;scroll-snap-align:center}
.fd-slide img{width:100%;display:block;max-height:560px;object-fit:cover}
.fd-dots{position:absolute;bottom:11px;left:0;right:0;display:flex;justify-content:center;gap:var(--sp-6);pointer-events:none}
.fd-dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 0 2px rgba(0,0,0,.3);transition:background .2s}
.fd-dots span.on{background:#fff}
.fd-arrow{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;border:none;background:rgba(255,255,255,.88);color:var(--ts-ink);font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:3;box-shadow:0 2px 8px rgba(0,0,0,.25);transition:opacity .2s,background .15s;padding:0 0 3px}
.fd-arrow:hover{background:#fff}
.fd-prev{left:10px}
.fd-next{right:10px}
@media(hover:none){.fd-arrow{display:none}}
.fd-count{position:absolute;top:11px;right:15px;background:rgba(20,33,61,.72);color:#fff;font-size:var(--fs-xs);font-weight:600;padding:3px 9px;border-radius:var(--r-pill);pointer-events:none}
.tp-lab .ti{color:var(--ts-coral)}
.fd-shop{display:flex;align-items:center;gap:var(--sp-12);margin:10px 0 2px;border:1px solid var(--ts-line);border-radius:var(--r-lg);padding:var(--sp-10);text-decoration:none;background:var(--ts-white);transition:.15s}
.fd-shop:hover{border-color:var(--ts-coral);box-shadow:0 6px 18px -10px rgba(255,91,65,.4)}
.fd-shop-img{width:64px;height:64px;border-radius:var(--r-md);object-fit:cover;flex:none;background:var(--ts-sand)}
.fd-shop-ph{display:flex;align-items:center;justify-content:center;color:var(--ts-coral);font-size:26px}
.fd-shop-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.fd-shop-t{font-weight:700;color:var(--ts-ink);font-size:var(--fs-base);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fd-shop-p{color:var(--ts-slate);font-size:var(--fs-sm);font-weight:600}
.fd-shop-cta{flex:none;background:var(--ts-coral);color:#fff;font-size:var(--fs-sm);font-weight:700;padding:8px 14px;border-radius:var(--r-md);white-space:nowrap}
.fd-repost-tag{display:flex;align-items:center;gap:var(--sp-6);color:var(--ts-slate);font-size:var(--fs-xs);font-weight:600;margin-bottom:var(--sp-8)}
.fd-repost-tag i{color:var(--ts-lagoon-600,#0A9488)}
.fd-quote{display:block;border:1px solid var(--ts-line);border-radius:var(--r-lg);padding:12px 14px;margin:10px 0 2px;text-decoration:none;background:var(--ts-sand)}
.fd-quote:hover{border-color:var(--ts-coral)}
.fd-quote-gone{color:var(--ts-slate);font-size:var(--fs-sm);display:flex;align-items:center;gap:var(--sp-6)}
.fd-quote-h{display:flex;align-items:center;gap:7px;margin-bottom:var(--sp-6)}
.fd-quote-nm{font-weight:700;color:var(--ts-ink);font-size:var(--fs-sm)}
.fd-quote-hd{color:var(--ts-slate);font-size:var(--fs-xs)}
.fd-quote-b{color:var(--tsx-ink-2, #2b3447);font-size:var(--fs-base);line-height:1.5;white-space:pre-wrap;word-wrap:break-word}
.fd-quote-img{width:100%;max-height:280px;object-fit:cover;border-radius:var(--r-md);margin-top:var(--sp-8);display:block}
.fd-repost-box{flex:1 1 100%;width:100%;box-sizing:border-box;order:99;margin-top:var(--sp-10);padding-top:var(--sp-10);border-top:1px solid var(--ts-line)}
.fd-repost-box textarea{width:100%;border:1px solid var(--ts-line);border-radius:var(--r-md);padding:9px 12px;font:inherit;font-size:var(--fs-base);box-sizing:border-box;resize:vertical;min-height:52px;background:var(--ts-white)}
.fd-repost-box textarea:focus{outline:none;border-color:var(--ts-coral)}
.rx-wrap{position:relative;display:inline-block}
.rx-bar{position:absolute;bottom:100%;left:0;margin-bottom:var(--sp-8);display:none;gap:1px;background:var(--ts-white);border:1px solid var(--ts-line);border-radius:var(--r-pill);padding:4px 7px;box-shadow:0 10px 28px -8px rgba(20,33,61,.4);white-space:nowrap;z-index:60}
.rx-wrap.rx-open .rx-bar{display:flex}
.rx-bar form{display:inline;margin:0}
.rx-opt.on{background:var(--ts-coral-50,#FFF1ED)}
.rx-emoji{font-size:var(--fs-md);line-height:1;vertical-align:-1px}
.rx-cluster{font-size:var(--fs-sm);letter-spacing:-3px;margin-right:var(--sp-4)}
.fd-video{margin:10px 0 2px;border-radius:var(--r-lg);overflow:hidden;background:#000;border:1px solid var(--ts-line)}
.fd-video video{width:100%;max-height:560px;display:block;background:#000}
.fd-img,.fd-carousel{position:relative}
.rx-emoji{display:inline-block;animation:rxPop .38s cubic-bezier(.2,.8,.3,1.4)}
.fd-post{transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1),box-shadow .28s ease}
.fd-post.fd-pre{opacity:0;transform:translateY(16px)}
.fd-img img{width:100%;display:block;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.fd-img:hover img{transform:scale(1.03)}
.fd-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-8);margin-top:var(--sp-16);padding-top:var(--sp-14)}
.fd-bar>form{display:contents}
.fd-bar button,.fd-bar .lk{position:relative;display:inline-flex;align-items:center;gap:var(--sp-8);background:var(--ts-sand);border:1px solid transparent;cursor:pointer;color:var(--ts-ink);font-size:var(--fs-base);font-weight:700;padding:9px 15px;border-radius:var(--r-pill);font-family:inherit;box-shadow:0 1px 2px rgba(20,33,61,.05);transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .22s ease,transform .18s cubic-bezier(.2,.7,.2,1)}
.fd-bar button i,.fd-bar .lk i{font-size:19px;line-height:1;transition:transform .22s cubic-bezier(.2,.9,.3,1.35)}
.fd-bar button:hover,.fd-bar .lk:hover{background:var(--ts-white);border-color:var(--ts-line);box-shadow:0 8px 18px -8px rgba(20,33,61,.32);transform:translateY(-2px)}
.fd-bar button:hover i,.fd-bar .lk:hover i{transform:scale(1.12)}
.fd-bar button:active,.fd-bar .lk:active{transform:translateY(0) scale(.96);box-shadow:inset 0 2px 6px rgba(20,33,61,.14)}
.fd-bar .lk.on{background:linear-gradient(135deg,#fff1ed,#ffe1d8);color:var(--ts-coral);border-color:rgba(255,91,65,.28);box-shadow:0 5px 14px -6px rgba(255,91,65,.55)}
.fd-bar .lk.on:hover{background:linear-gradient(135deg,#ffe8e1,#ffd6ca)}
.fd-bar .lk.on i.ti-heart-filled{animation:likePop .45s cubic-bezier(.2,.9,.3,1.6)}
.fd-likes{font-weight:800;font-size:var(--fs-sm);color:var(--ts-ink);margin-top:var(--sp-12);letter-spacing:.01em}
.fd-viewall{display:inline-block;font-size:var(--fs-sm);color:var(--ts-slate);margin:2px 0 6px;text-decoration:none}
.fd-viewall:hover{color:var(--ts-ink)}
.fd-cm{margin-top:var(--sp-12);padding-top:var(--sp-12)}
.fd-cm .c{font-size:var(--fs-base);margin-bottom:var(--sp-6);color:var(--tsx-ink-3, #1f2733)}
.fd-cm .c b{color:var(--ts-ink)}
.fd-cf{display:flex;gap:var(--sp-8);margin-top:var(--sp-8)}
.fd-cf input{flex:1;border:1px solid var(--ts-line);border-radius:var(--r-xl);padding:9px 15px;font-size:var(--fs-base);font-family:inherit;background:var(--ts-sand)}
.fd-cf input:focus{outline:none;border-color:var(--ts-coral);background:var(--ts-white)}
details.fd-rep summary{cursor:pointer;color:var(--ts-slate);font-size:var(--fs-xs);list-style:none}
.fd-rep form{margin-top:var(--sp-8);background:var(--ts-sand);border-radius:var(--r-md);padding:var(--sp-10)}
.fd-rep select,.fd-rep textarea{width:100%;margin-bottom:var(--sp-6);padding:7px;border:1px solid var(--ts-line);border-radius:var(--r-sm);font-size:var(--fs-sm);font-family:inherit}
@media(max-width:600px){
  .fd-wrap{padding:12px 10px 96px}
  .fd-post{border-radius:var(--r-lg);padding:14px 15px;margin-bottom:var(--sp-14)}
  .fd-img{margin:12px -15px 0}
  /* v0.219.144 — carousel bleed re-matched to the 15px mobile card padding (was -18px, the
     desktop value, which left multi-photo posts 3px wider than their card on phones and
     leaked a navy strip past the right edge). See the note in orb.php's mobile block. */
  .fd-carousel{margin:14px -15px 0}
  .fd-body{font-size:var(--fs-md)}
  .fd-bar button,.fd-bar .lk{padding:11px 12px;font-size:var(--fs-md)}
  .fd-comp,.fd-trend{border-radius:var(--r-lg)}
}
@media(prefers-reduced-motion:reduce){.fd-post,.fd-img img,.fd-trend .tchip{transition:none!important;transform:none!important}}
.rail-link.on{background:var(--ts-coral-50);color:var(--ts-coral)}
.rail-link.on i{color:var(--ts-coral)}

/* ============================================================================
   v0.219.106 — RULES feed_post.php RENDERS THAT THIS FILE NEVER CARRIED.

   Derived mechanically, not by eye: every class feed_post.php emits, minus every
   selector already present above. The four gaps below were all real and all live
   on /hashtag since v0.219.101:

     .rx-opt (base)   — only `.rx-opt.on` was extracted. The six emoji reaction
                        buttons therefore rendered as default grey browser buttons
                        inside the reaction bar.
     .ts-poll/.tp-*   — feed_post.php line 127 calls ts_poll_render(). NONE of its
                        nine rules were extracted, so a poll post rendered unstyled.
     @keyframes       — rxPop is referenced by .rx-emoji (line 95 above) and likePop
                        by .lk.on i.ti-heart-filled (line 109). Neither was defined,
                        so both animations were silently inert.
     .dtap-heart      — the double-tap-to-like burst.

   Bodies taken from orb.php (400-410, 438-440, 446-448, 464) with the colour
   literals swapped for the tokens whose LIGHT VALUE IS THAT LITERAL, exactly as
   post.php's own <style> already had them:
     #fff     -> var(--ts-white)      (#FFFFFF light)
     #ffe0d6  -> var(--tsx-t-coral3, #ffe0d6)  (#ffe0d6 light)
   So light mode cannot move, and dark now remaps. orb.php is NOT touched and does
   not load this file; it keeps its inline copy.
   ============================================================================ */
.ts-poll{margin:12px 0 0;display:flex;flex-direction:column;gap:var(--sp-8)}
.tp-vote{width:100%;text-align:left;border:1.5px solid var(--ts-line);background:var(--ts-white);color:var(--ts-ink);border-radius:var(--r-md);padding:11px 14px;font-size:var(--fs-base);font-weight:600;font-family:inherit;cursor:pointer;transition:.15s}
.tp-vote:hover{border-color:var(--ts-coral);background:var(--ts-coral-50,#FFF1ED)}
.tp-row{position:relative;border:1px solid var(--ts-line);border-radius:var(--r-md);padding:11px 14px;overflow:hidden;display:flex;align-items:center;gap:var(--sp-8)}
.tp-row.mine{border-color:var(--ts-coral)}
.tp-fill{position:absolute;inset:0 auto 0 0;background:var(--ts-coral-50,#FFF1ED);z-index:0}
.tp-row.mine .tp-fill{background:var(--tsx-t-coral3, #ffe0d6)}
.tp-lab{position:relative;z-index:1;flex:1;font-size:var(--fs-base);font-weight:600;color:var(--ts-ink)}
.tp-pct{position:relative;z-index:1;font-weight:800;color:var(--ts-ink);font-size:var(--fs-sm)}
.tp-total{color:var(--ts-slate);font-size:var(--fs-xs);margin-top:1px}
.rx-opt{background:none;border:none;cursor:pointer;font-size:23px;line-height:1;padding:2px 4px;border-radius:50%;transition:transform .12s}
.rx-opt:hover{transform:scale(1.3)}
@keyframes rxPop{0%{transform:scale(.4)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
@keyframes likePop{0%{transform:scale(.4)}45%{transform:scale(1.35)}70%{transform:scale(.9)}100%{transform:scale(1)}}
@keyframes dtapPop{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}15%{opacity:1}45%{transform:translate(-50%,-50%) scale(1.06);opacity:1}100%{transform:translate(-50%,-50%) scale(1.4);opacity:0}}
.dtap-heart{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:92px;line-height:1;color:#fff;text-shadow:0 6px 22px rgba(255,91,65,.6);pointer-events:none;z-index:6;animation:dtapPop .82s cubic-bezier(.2,.8,.3,1) forwards}

/* The one rule that cannot be a token swap: .lk.on (line 107) is a pale coral
   GRADIENT, and a gradient has no single value to remap. orb_theme.php:106 solves
   it for ORB with a scoped dark override; this is that rule, verbatim, rescoped
   from .orb-app to .ts-theme. Only ts-theme pages load this file, so it cannot
   reach ORB, and the light-mode selector is untouched. */
.ts-theme[data-theme="dark"] .fd-bar .lk.on{background:linear-gradient(135deg,rgba(255,91,65,.22),rgba(255,91,65,.12)) !important;border-color:rgba(255,91,65,.4) !important}
.ts-theme[data-theme="dark"] .fd-bar .lk.on:hover{background:linear-gradient(135deg,rgba(255,91,65,.3),rgba(255,91,65,.18)) !important}
