/* Work page, phones only: three cards per group, the rest behind one "See N more" (markup from scripts/render-work.mjs).
   Desktop never sees the button, so desktop keeps the Stories fold and every other card as before. */
.ph-more { display: none; }
@media (max-width: 767px) {
  /* Gated on .js: without the script there is no way to open the fold, so nothing hides. */
  .js .wgroup:not(.ph-open) .ph-fold,
  .js .wgroup:not(.ph-open) .more-work { display: none; }
  .js .wgroup:not(.ph-open) .ph-more {
    display: flex; align-items: center; gap: 12px; min-height: 44px; width: 100%;
    margin: clamp(24px, 6vw, 32px) 0 0; padding: 0; border: 0; background: none; color: var(--stone); cursor: pointer; text-align: left;
  }
  .ph-more::after { content: "+"; flex: none; font-size: 1.5em; font-weight: 400; line-height: 1; letter-spacing: 0; }
  .ph-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
  /* Opened: the Stories fold joins the grid as if it were one list, its own summary goes. */
  .wgroup.ph-open .more-work > summary { display: none; }
  .wgroup.ph-open .more-work { margin-top: 0; }
  .wgroup.ph-open .more-work > .cards { margin-top: clamp(32px, 4vw, 56px); }
}
