/* Junk drawer: same plain type, colors and links as the other public pages.
   This area is full width, NOT constrained by the site's .shell. */

.junk-space {
  position: relative;
  width: 100%;
  min-height: var(--junk-height, 900px);
  margin: 12px 0 0;
}

/* Position each thing anywhere across the page. No cards, frame, or backdrop. */
.junk-item {
  position: absolute;
  top: var(--y, 0px);
  left: var(--x, 0%);
  width: min(var(--w, 220px), calc(100vw - 32px));
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

.junk-item p { margin: 0 0 5px; }
.junk-item figure, .junk-item figcaption { margin: 0; }
.junk-item img, .junk-item video, .junk-item iframe { display: block; max-width: 100%; height: auto; }
.junk-item figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.junk-item audio { display: block; width: 100%; margin: 5px 0; }
.junk-item pre { max-width: 100%; overflow-x: auto; }
.junk-item details p { margin-top: 6px; }
.junk-item summary { cursor: pointer; }

/* Keep the footer close to the bottom of the scattered area. */
.page-junk-drawer .junk-footer-shell { margin-top: 0; }

/* Narrow viewports: the scattered items become readable rows instead of overlapping. */
@media (max-width: 1050px) {
  .junk-space {
    position: static;
    width: calc(100% - 36px);
    min-height: 0;
    max-width: 740px;
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 58px 35px;
  }
  .junk-item {
    position: static;
    width: min(100%, var(--w, 220px));
  }
}

@media (max-width: 640px) {
  .junk-space { grid-template-columns: 1fr; gap: 42px; }
}
