/* LitWebTech Feed: the social timeline on /videos/ (videos and picture posts in one centred column of cards).
   Uses the site tokens (css/lw.css) and the kit (css/lw-kit.css). Phone: cards run edge to edge. Wider: a 620px column. */
.fd-page{position:relative;padding:var(--k-6) var(--gutter) var(--k-12s)}
.fd-intro,.fd-col{width:min(100%,620px);margin-inline:auto}
.fd-intro{padding-bottom:var(--k-4)}
.fd-intro h1{font-size:clamp(1.6rem,1.2rem + 1.6vw,2.25rem);margin-bottom:.4em}
.fd-intro .lead{font-size:var(--k-16);margin:0 0 var(--k-4)}

/* ---- filters: one row that scrolls sideways on a phone, wraps on wider screens */
.fd-chips{display:flex;flex-wrap:nowrap;align-items:center;gap:.4rem;margin:0 calc(var(--gutter) * -1);padding:.25rem var(--gutter);overflow-x:auto;scrollbar-width:none}
.fd-chips::-webkit-scrollbar{display:none}
.fd-chips__g{display:flex;flex:none;gap:.4rem}
.fd-chips__g+.fd-chips__g{padding-left:.5rem;border-left:1px solid var(--line-2)}
.fd-chips .chip{flex:none;min-height:40px;font-size:var(--k-14)}
.fd-chips .chip:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media (min-width:700px){.fd-chips{flex-wrap:wrap;overflow:visible;margin:0;padding:0}.fd-chips__g{flex-wrap:wrap}}

/* ---- the column of post cards */
.fd-col{display:grid;gap:var(--k-4)}
.fd-list,.fd-linked,.fd-foot{display:grid;gap:var(--k-4);min-width:0}
.fd-linked:empty,.fd-list:empty,.fd-foot:empty{display:none}
.fd-sentinel{height:1px}
.fd-card{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
.fd-card.is-here{border-color:var(--gold-line);box-shadow:0 0 0 1px var(--gold-line)}
/* Cards that start below the first screen are laid out and painted only when they come near. The size is a first
   guess for the scrollbar; once a card has been drawn the browser remembers its real size. */
.fd-far{content-visibility:auto;contain-intrinsic-size:auto none auto 720px}
.fd-flag{margin:0;padding:.45rem var(--k-4);border-bottom:1px solid var(--gold-line);background:var(--gold-soft);color:var(--gold);font:500 .7rem var(--font-mono);letter-spacing:.12em;text-transform:uppercase}
.fd-gone{margin:0;padding:var(--k-3) var(--k-4);border:1px solid var(--line-2);border-radius:var(--k-r-card);background:var(--surface);color:var(--ink-2);font-size:var(--k-14)}

.fd-h{display:flex;align-items:center;gap:.7rem;padding:var(--k-3) var(--k-4) var(--k-2)}
.fd-h img{flex:none;width:40px;height:40px;padding:6px;border-radius:50%;background:var(--gold-soft);border:1px solid var(--gold-line)}
.fd-h div{flex:1;min-width:0}
.fd-h b{display:block;font:600 var(--k-14)/1.2 var(--font-display);color:var(--ink)}
.fd-date{display:inline-flex;align-items:center;min-height:24px;font-size:var(--k-12);color:var(--ink-3);text-decoration:none}
.fd-date:hover{color:var(--gold);text-decoration:underline}
.fd-date:focus-visible,.fd-more:focus-visible,.fd-also a:focus-visible,.fd-src a:focus-visible,.fd-a:focus-visible{outline:2px solid var(--gold);outline-offset:1px;border-radius:6px}

.fd-tx{padding:0 var(--k-4) var(--k-3)}
.fd-tx h2{margin:0 0 .3rem;font:700 var(--k-18)/1.3 var(--font-display);color:var(--ink);text-wrap:balance}
.fd-tx h2:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
.fd-tx p{margin:0 0 .5rem;font-size:var(--k-16);line-height:1.55;color:var(--ink-2)}
.fd-tx:not(.is-open) .fd-p1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;overflow:hidden}
.fd-rest[hidden]{display:none}
.fd-more{min-height:28px;margin:0;padding:.15rem 0;border:0;background:none;color:var(--gold);font:600 var(--k-14)/1.2 var(--font-body);cursor:pointer}
.fd-more:hover{text-decoration:underline;text-underline-offset:3px}
.fd-src{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.fd-src span{font:500 .68rem var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.fd-src a{display:inline-flex;align-items:center;min-height:28px;padding:.2rem .6rem;border-radius:var(--k-r-pill);border:1px solid var(--gold-line);color:var(--gold);font-size:var(--k-12);text-decoration:none}
.fd-src a:hover{background:var(--gold-soft);color:#fff}

/* ---- media. The box holds its shape before anything has loaded: 9:16 for a video, 4:5 for a picture, then the
   real shape (--r is width divided by height, set by the script). It is never taller than most of the screen. */
.fd-media{display:grid;justify-items:center;background:#05070b;border-block:1px solid var(--line)}
.fd-box{--r:.5625;--cap:78vh;position:relative;width:min(100%,calc(var(--cap) * var(--r)));aspect-ratio:var(--r);overflow:hidden;background:#000}
.fd-pic{--r:.8;--cap:84vh}
@supports (height:1svh){.fd-box{--cap:78svh}.fd-pic{--cap:84svh}}
.fd-v video{display:block;width:100%;height:100%;object-fit:contain;background:#000}

/* the whole picture is the play and pause button */
.fd-tap{position:absolute;inset:0;z-index:1;display:grid;place-items:center;margin:0;padding:0;border:0;background:none;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.fd-tap:focus-visible,.fd-zoom:focus-visible,.fd-car__track:focus-visible{outline:2px solid var(--gold);outline-offset:-3px}
.fd-big{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:rgba(8,11,17,.62);border:1px solid rgba(255,255,255,.28);opacity:0;pointer-events:none}
.fd-big .k-ic{width:30px;height:30px;fill:currentColor;stroke-linejoin:round}
.fd-v.is-paused .fd-big{opacity:1}
@media (prefers-reduced-motion:no-preference){
  .fd-big{transition:opacity .18s}
  .fd-big.is-flash{animation:fd-flash .55s ease-out}
  .fd-v.is-paused .fd-big.is-flash{animation:none}
}
@keyframes fd-flash{0%{opacity:1;transform:scale(.86)}60%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.08)}}
.fd-snd{position:absolute;top:.6rem;right:.6rem;z-index:3;display:inline-flex;align-items:center;gap:.4rem;min-height:44px;min-width:44px;padding:.45rem .8rem;border-radius:var(--k-r-pill);border:1px solid rgba(255,255,255,.3);background:rgba(8,11,17,.7);color:#fff;font:600 var(--k-12)/1 var(--font-body);cursor:pointer}
.fd-snd .k-ic{width:20px;height:20px}
.fd-snd.is-on{padding:.45rem;justify-content:center;border-color:var(--gold-line);color:var(--gold)}
.fd-snd.is-on span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.fd-snd:hover{border-color:var(--gold)}
.fd-snd:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.fd-err{position:absolute;left:1rem;right:1rem;top:38%;z-index:2;margin:0;padding:.8rem 1rem;border-radius:var(--k-r-card);background:rgba(8,11,17,.9);border:1px solid var(--line-2);font-size:var(--k-14);text-align:center}
.fd-err[hidden]{display:none}
.fd-err a{color:var(--gold)}

/* thin progress bar that can be dragged; the hit area is 24px tall */
.fd-seek{position:absolute;left:0;right:0;bottom:0;z-index:3;width:100%;height:24px;margin:0;padding:0;background:none;-webkit-appearance:none;appearance:none;cursor:pointer;--p:0%}
.fd-seek::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--gold) var(--p),rgba(255,255,255,.3) var(--p))}
.fd-seek::-moz-range-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--gold) var(--p),rgba(255,255,255,.3) var(--p))}
.fd-seek::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;border:0;background:var(--gold-hi);opacity:0}
.fd-seek::-moz-range-thumb{width:14px;height:14px;border-radius:50%;border:0;background:var(--gold-hi);opacity:0}
.fd-seek:hover::-webkit-slider-thumb,.fd-seek:focus-visible::-webkit-slider-thumb,.fd-seek:active::-webkit-slider-thumb{opacity:1}
.fd-seek:hover::-moz-range-thumb,.fd-seek:focus-visible::-moz-range-thumb,.fd-seek:active::-moz-range-thumb{opacity:1}
.fd-seek:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;border-radius:4px}

/* a picture: the whole of it opens a larger view */
.fd-zoom{display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:none;cursor:zoom-in}
.fd-zoom img{display:block;width:100%;height:100%;object-fit:contain}
.fd-zoom.is-bad{cursor:default}
.fd-zoom.is-bad::after{content:"This picture could not be loaded.";position:absolute;inset:0;display:grid;place-items:center;padding:1rem;color:var(--ink-2);font-size:var(--k-14);text-align:center}
.fd-zoom.is-bad img{visibility:hidden}

/* several pictures: a native scroller with scroll snap, previous and next over its edges, a counter and dots */
.fd-car{display:grid;justify-items:center;width:100%;min-width:0}
.fd-car__track{position:absolute;inset:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:manipulation}
.fd-car__track::-webkit-scrollbar{display:none}
@media (prefers-reduced-motion:no-preference){.fd-car__track{scroll-behavior:smooth}}
.fd-car__s{position:relative;flex:0 0 100%;height:100%;scroll-snap-align:center;scroll-snap-stop:always}
.fd-car__ctl{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:0 .5rem;pointer-events:none}
.fd-car__b{pointer-events:auto;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(8,11,17,.72);color:#fff;cursor:pointer;touch-action:manipulation}
.fd-car__b .k-ic{width:22px;height:22px}
.fd-car__b:hover:not(:disabled){border-color:var(--gold);color:var(--gold)}
.fd-car__b:disabled{opacity:.3;cursor:default}
.fd-car__b:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.fd-car__n{position:absolute;top:.6rem;right:.6rem;z-index:2;padding:.3rem .6rem;border-radius:var(--k-r-pill);background:rgba(8,11,17,.72);border:1px solid rgba(255,255,255,.25);color:#fff;font:600 var(--k-12)/1 var(--font-body);pointer-events:none}
.fd-car__dots{display:flex;flex-wrap:wrap;justify-content:center;width:100%;padding:.35rem 0;background:var(--surface)}
.fd-car__d{display:grid;place-items:center;width:24px;height:24px;margin:0;padding:0;border:0;background:none;cursor:pointer;touch-action:manipulation}
.fd-car__d::before{content:"";width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.5)}
.fd-car__d[aria-current="true"]::before{width:18px;background:var(--gold)}   /* the current one is wider as well as gold */
.fd-car__d:hover::before{background:#fff}
.fd-car__d:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;border-radius:8px}

/* ---- like, comment, share, and where else the post is */
.fd-bar{display:flex;gap:.25rem;padding:.3rem var(--k-2)}
.fd-a{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:44px;min-width:0;padding:.4rem .5rem;border:0;border-radius:10px;background:none;color:var(--ink-2);font:500 var(--k-14) var(--font-body);cursor:pointer;-webkit-tap-highlight-color:transparent}
.fd-a:hover{background:var(--surface-2);color:#fff}
.fd-a .k-ic{width:19px;height:19px}
.fd-a b{font-weight:600;color:var(--ink)}
.fd-a b:empty{display:none}
.fd-a.is-on{color:var(--gold)}
.fd-a.is-on .k-ic{fill:var(--gold);stroke:var(--gold)}
.fd-a:disabled{opacity:.6}
@media (prefers-reduced-motion:no-preference){.fd-a.pop .k-ic{animation:fd-pop .4s cubic-bezier(.2,.9,.3,1.4)}}
@keyframes fd-pop{0%{transform:scale(.6)}100%{transform:scale(1)}}
.fd-also{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem .9rem;margin:0;padding:.35rem var(--k-4) .6rem;border-top:1px solid var(--line);font-size:var(--k-12);color:var(--ink-3)}
.fd-also a{display:inline-flex;align-items:center;min-height:24px;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
.fd-also a:hover{color:var(--gold)}

/* ---- loading, nothing yet, could not load, load more, and the end of the feed */
.fd-skel{position:relative;display:grid;gap:.6rem;padding:var(--k-4);overflow:hidden}
.fd-skel i{display:block;border-radius:8px;background:rgba(255,255,255,.08)}
.fd-skel__a{width:40px;height:40px;border-radius:50% !important}
.fd-skel__b{width:70%;height:18px}
.fd-skel__c{width:92%;height:14px}
.fd-skel__m{height:min(56vh,420px);margin:.2rem calc(var(--k-4) * -1) 0;border-radius:0 !important}
@media (prefers-reduced-motion:no-preference){
  .fd-skel::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(242,199,92,.07) 50%,transparent 70%);animation:fd-shine 1.6s linear infinite}
}
@keyframes fd-shine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.fd-msg,.fd-end,.fd-retry{display:grid;justify-items:center;gap:var(--k-3);padding:var(--k-6) var(--k-4);border:1px solid var(--line);border-radius:16px;text-align:center;background:radial-gradient(520px 320px at 50% 0%,rgba(242,199,92,.1),transparent 70%),var(--surface)}
.fd-msg h2,.fd-end h2{font-size:var(--k-22);margin:0}
.fd-msg p,.fd-end p,.fd-retry p{margin:0;max-width:40ch;color:var(--ink-2);font-size:var(--k-14)}
.fd-msg__a{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--k-2);max-width:none !important}
.fd-retry{padding:var(--k-4)}
.fd-foot__a{display:flex;justify-content:center;margin:0}
.fd-load{min-width:12rem}
.fd-end .follow-row{justify-content:center;margin-top:var(--k-2)}
.fd-end .follow-row .lbl{width:100%;margin:0 0 .2rem}

/* ---- comments: a sheet from the bottom on a phone, a panel at the side on wider screens */
.fd-sheet{width:100%;max-width:100%;max-height:82vh;margin:auto 0 0;padding:0;border:1px solid var(--line-2);border-bottom:0;border-radius:18px 18px 0 0;background:var(--surface);color:var(--ink)}
@supports (height:100dvh){.fd-sheet{max-height:82dvh}}
.fd-sheet[open]{display:flex;flex-direction:column}
.fd-sheet:modal,.fd-lb:modal{overscroll-behavior:contain}
.fd-sheet::backdrop{background:rgba(0,0,0,.55);overflow:hidden;overscroll-behavior:contain}
.fd-sheet__h{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--k-3);padding:var(--k-4) var(--k-4) var(--k-3);border-bottom:1px solid var(--line)}
.fd-sheet__h h2{font-size:var(--k-18);margin:0 0 .2rem}
.fd-sheet__h p{margin:0;font-size:var(--k-12);color:var(--ink-3)}
.fd-sheet__h form,.fd-lb__bar form{margin:0}
.fd-x{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid var(--line-2);background:var(--surface-2);color:var(--ink);cursor:pointer}
.fd-x:hover{border-color:var(--gold);color:var(--gold)}
.fd-x:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.fd-sheet__b{flex:1;min-height:12rem;overflow-y:auto;overscroll-behavior:contain;padding:0 var(--k-4) var(--k-6)}
.fd-sheet__b .cm{margin-top:var(--k-4)}
.fd-sheet__off{display:none;margin:var(--k-6) 0;color:var(--ink-2);font-size:var(--k-14)}
#community[hidden]+.fd-sheet__off{display:block}
@media (prefers-reduced-motion:no-preference){.fd-sheet[open]{animation:fd-up .22s ease-out}}
@keyframes fd-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@media (min-width:900px){
  .fd-sheet{margin:0 0 0 auto;width:min(440px,100%);height:100vh;max-height:100vh;border-radius:0;border:0;border-left:1px solid var(--line-2)}
  @supports (height:100dvh){.fd-sheet{height:100dvh;max-height:100dvh}}
  @media (prefers-reduced-motion:no-preference){.fd-sheet[open]{animation-name:fd-side}}
}
@keyframes fd-side{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}

/* ---- a picture opened larger */
.fd-lb{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;border:0;background:rgba(3,5,8,.95);color:#fff}
@supports (height:100dvh){.fd-lb{height:100dvh;max-height:100dvh}}
.fd-lb[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.fd-lb::backdrop{background:rgba(0,0,0,.6)}
.fd-lb__bar{display:flex;align-items:center;justify-content:space-between;gap:var(--k-3);min-height:60px;padding:.5rem .6rem}
.fd-lb__n{font:600 var(--k-14)/1 var(--font-body);color:#fff}
.fd-lb__n[hidden],.fd-lb__b[hidden]{display:none}
.fd-lb__stage{position:relative;display:grid;place-items:center;min-height:0;padding:0 .5rem .8rem}
.fd-lb__stage img{display:block;max-width:100%;max-height:calc(100vh - 60px - 1rem);width:auto;height:auto;object-fit:contain}
@supports (height:100dvh){.fd-lb__stage img{max-height:calc(100dvh - 60px - 1rem)}}
.fd-lb__b{position:absolute;top:50%;transform:translateY(-50%);z-index:1}
.fd-lb__b[data-lb="prev"]{left:.6rem}
.fd-lb__b[data-lb="next"]{right:.6rem}

/* The floating chat and WhatsApp buttons step aside only while they would cover a post's action bar (js/lw-videos.js sets the class). */
.fd-dodge .wa-float,.fd-dodge .lwc-fab,.fd-dodge .agent-fab{opacity:0;visibility:hidden;pointer-events:none}
@media (prefers-reduced-motion:no-preference){.wa-float,.lwc-fab,.agent-fab{transition:opacity .15s,visibility .15s,transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}}

@media (max-width:659px){
  /* phone: cards run edge to edge */
  .fd-col{width:auto;margin-inline:calc(var(--gutter) * -1)}
  .fd-card,.fd-msg,.fd-end,.fd-retry,.fd-gone{border-radius:0;border-inline:0}
  .fd-page{padding-top:var(--k-4)}
  .fd-intro .lead{font-size:var(--k-14)}
  .fd-a{font-size:.82rem;gap:.35rem}
}
@media (pointer:coarse){.fd-more,.fd-src a{min-height:36px}.fd-also a,.fd-date{min-height:32px}}
@media print{.fd-bar,.fd-chips,.fd-snd,.fd-seek,.fd-car__ctl,.fd-car__dots{display:none}}
