/* OFFSCRPT Tea: the composer's pieces. The page itself is built from Home's pieces (app.css) plus a few of its own below. */
/* the composer's topic chips and photo strip */
.cp-tops{display:flex;flex-wrap:wrap;gap:6px}
.cp-tops button{height:34px;padding:0 13px;border-radius:999px;border:1px solid var(--ap-line);background:var(--ap-bg);color:var(--ap-ink);font:500 13px/1 var(--ui);cursor:pointer}
.cp-tops button[aria-pressed=true]{background:#2f8bff;border-color:#2f8bff;color:#fff}
.cp-pics{display:flex;gap:8px}
.cp-pics img{width:72px;height:90px;object-fit:cover;border-radius:16px}
.cp-pics:empty{display:none}
.cp-n{font-size:12px;color:var(--ap-mute);text-align:right;margin-top:-8px}
.cp-rules{font-size:12.5px;color:var(--ap-ink2);padding:10px 12px;border-radius:14px;background:color-mix(in srgb,#2f8bff 10%,var(--ap-bg))}

@media (min-width:701px){
  .ap-tea .ap-main{width:min(100%,1000px)}
  .tea{display:grid;grid-template-columns:minmax(0,600px) 320px;gap:40px;justify-content:center}
  .tea-side{display:grid;align-content:start;gap:16px;position:sticky;top:28px}
  .tea-sort,.tea .sqs{margin-inline:0;padding-inline:0}
  .tea-fab{right:max(24px,calc((100vw - var(--side) - 1000px) / 2 + 24px));bottom:28px}
  .tea-top{display:none}
  .tz-stack{height:360px}
}
@media (min-width:701px) and (max-width:1000px){.tea{grid-template-columns:minmax(0,600px)}.tea-side{display:none}}

/* ===================== fixes: avatars on the rail, long words, the desktop Home ===================== */
/* the rail's avatar is a block, so its ring no longer shows as slivers beside the photo */
.rr-av .ig-av,.rr-av .ap-av{display:grid!important;place-items:center;box-sizing:border-box;padding:2px;overflow:hidden}
.rr-av .ig-av img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;border:0}
/* heavy uppercase headlines wrap long words instead of running out of the card */
.lv-t,.fc-t,.adc-t,.rl-ad .rl-cap h2{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
.lv-t{font-size:clamp(19px,5.4vw,23px)}

@media (min-width:701px){
  /* rows that scroll sideways fade out at the edge instead of stopping in a hard cut */
  .ap .sqs,.ap .lvs{-webkit-mask:linear-gradient(90deg,#000 calc(100% - 56px),transparent);mask:linear-gradient(90deg,#000 calc(100% - 56px),transparent);padding-right:56px}
  .ap-home .ap-main{width:min(100%,600px)}
  .fd-main{width:min(100%,560px)}
  .lv{width:228px}
  .lv-t{font-size:21px}
  .fc-t{font-size:30px}
  .fc-m .ph{aspect-ratio:4/4.6}
  .hd h2{font-size:18px}
}
@media (min-width:1160px){
  .ap-home .ap-main{width:min(100%,1000px);padding-top:32px}
  .fd{grid-template-columns:minmax(0,560px) 330px;gap:56px}
  .fd-side{top:32px;padding-top:6px}
  .fs-row b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
/* Tea's round + only where there's no side column with its own button */
@media (min-width:1001px){.tea-fab{display:none}}

/* ===================== desktop Home: a grid of cards that fills the screen, the side column stays in view ===================== */
@media (min-width:900px){
  .ap-home .ap-main{width:min(100%,980px);padding:32px 32px 60px}
  .fd-main{width:100%}
  .fcs{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
  .fcs .fc{display:flex;flex-direction:column}
  .fcs .fc-m{flex:1;display:flex}
  .fcs .fc-m .ph{flex:1;aspect-ratio:4/5;height:auto}
  .fcs .fc-t{font-size:clamp(20px,1.7vw,25px);-webkit-line-clamp:4}
  .fcs .fc-who small{display:none}
  .fcs .adc{min-height:0;height:100%;border-radius:26px}
  .fcs .hm-tea{grid-column:1/-1}
  .lv{width:236px}
}
@media (min-width:1160px){
  .ap-home .ap-main{width:min(100%,1340px)}
  .fd{grid-template-columns:minmax(0,1fr) 340px;gap:44px;align-items:start}
  .fd-side{align-self:start;position:sticky;top:32px;max-height:calc(100dvh - 48px);overflow-y:auto;scrollbar-width:none;padding-bottom:12px}
  .fd-side::-webkit-scrollbar{display:none}
}
@media (min-width:1560px){
  .fcs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lv{width:250px}
}
@media (min-width:900px){.fcs{grid-auto-flow:row dense}.fcs .fc-who .fol-s{display:none}.fcs .fc-who{right:66px}}
