/* LENZARYA RC422 — REAL DEVICE SHELL & CONTENT DENSITY */
:root{
  --lz422-mobile-header-gap:7px;
  --lz422-mobile-header-height:64px;
  --lz422-mobile-header-bottom:calc(env(safe-area-inset-top,0px) + var(--lz422-mobile-header-gap) + var(--lz422-mobile-header-height));
}
.rc422-human-text-card{
  display:block;
  min-width:0;
  border:1px solid rgba(255,255,255,.085);
  border-radius:20px;
  background:linear-gradient(145deg,#0e151f,#0a1018);
  color:#fff;
  text-decoration:none;
  padding:15px;
}
.rc422-human-text-card .rc396-person{margin:0 0 12px}
.rc422-human-text-card>p{
  margin:0;
  color:#eef2f8;
  font-size:.92rem;
  line-height:1.45;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.rc422-human-text-card>footer{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:14px;
  color:#8893a6;
  font-size:.67rem;
}
.rc422-human-text-card>footer time{margin-left:auto}

@media(max-width:760px){
  /* A solid shell plate sits behind the fixed topbar so scrolled content never
     remains visually readable through the header. The header itself stays fixed. */
  body.nx-app-shell:not(.rc416-live-page):not(.lz398-messages-page):not(.lz-messages-page)::before{
    content:"";
    position:fixed;
    z-index:8700;
    pointer-events:none;
    inset:0 0 auto;
    height:calc(var(--lz422-mobile-header-bottom) + 9px);
    background:linear-gradient(180deg,#060913 0%,#060913 82%,rgba(6,9,19,.96) 90%,rgba(6,9,19,0) 100%);
  }
  body.nx-app-shell:not(.rc416-live-page) .nx-world-topbar{
    top:max(var(--lz422-mobile-header-gap),env(safe-area-inset-top,0px))!important;
    height:var(--lz422-mobile-header-height)!important;
  }
  body.nx-app-shell:not(.rc416-live-page) #nxMain{
    padding-top:calc(var(--lz422-mobile-header-bottom) + 17px)!important;
  }
  html{scroll-padding-top:calc(var(--lz422-mobile-header-bottom) + 18px)!important}

  /* Discovery's own sticky filter bar must begin below the real global topbar. */
  .lz402-channelbar{
    top:calc(var(--lz422-mobile-header-bottom) + 9px)!important;
    z-index:24!important;
  }

  /* Short, readable mobile search instead of a clipped sentence. */
  .lz402-search input{
    min-width:0!important;
    text-overflow:ellipsis;
  }

  /* Text-only posts have no media canvas anywhere on the home channels. */
  .rc396-human-grid:has(.rc422-human-text-card){
    align-items:start;
  }
  .rc422-human-text-card{
    grid-column:1/-1;
    padding:14px;
    border-radius:18px;
  }

  /* Creator growth reason remains on one line on common phone widths. */
  .lz402-creator-card{flex-basis:154px}
  .lz402-creator-card>small{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* Keep section headings and their secondary copy away from shell edges. */
  .lz402-section-head{scroll-margin-top:calc(var(--lz422-mobile-header-bottom) + 20px)}
}

@media(max-width:390px){
  :root{--lz422-mobile-header-height:62px}
  .rc422-human-text-card{padding:13px}
  .lz402-creator-card{flex-basis:150px}
}
