
/* Approved illustrated silhouettes are alpha masks, so they inherit the archive's companion accent cleanly. */
.beta582-companion-raster{
  display:block;
  background:currentColor;
  -webkit-mask-image:var(--companion-mask);
  mask-image:var(--companion-mask);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}
.beta582-companion-raster::before,.beta582-companion-raster::after{content:none!important}

/* Quest cards should use the available desktop width instead of forming an unnecessarily long vertical column. */
#threads .thread-arc-grid{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;
  align-items:start;
}
#threads .thread-workspace.view-arcs .thread-card>p{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
}
#threads .thread-workspace.view-arcs .thread-card{
  align-self:start;
}
@media(max-width:700px){
  #threads .thread-arc-grid{grid-template-columns:1fr!important}
}

/*
  v13.11.0's scroll-preservation shim used a min-height lock.
  It is useful only during the two-frame tab switch; previously the lock
  survived afterwards, so a tall Threads page could leave a large blank
  tail in a short section. Keep it only while the switch is actively held.
*/
html:not(.tab-switch-stable) .tab-panel.tab-scroll-held{
  min-height:0!important;
}
body .tab-panel[hidden]{
  min-height:0!important;
  height:0!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
