/* Shared folders: who's in them, invite links, and other cooks' recipes. */
@layer pages {
  .avatar {
    width: 32px;
    height: 32px;
    flex: none;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font: 700 13px var(--sans);
  }
  .avatar--sm { width: 22px; height: 22px; font-size: 11px; }

  .shared-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
  .nav__shared { display: inline-flex; color: var(--muted); vertical-align: middle; }
  .filter-chip .avatar { margin-left: -6px; }

  .recipe-card__by { color: var(--muted); }

  .tile__shared {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(35, 30, 25, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
  }

  .share-folder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; align-items: start; }
  .share-folder__link { display: flex; gap: 8px; flex-wrap: wrap; }
  .share-folder__link .input { flex: 1 1 220px; min-width: 0; }
  .share-folder__members { display: flex; flex-direction: column; margin: 0; padding: 0; }
  .share-folder__member { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
  .share-folder__member:last-child { border-bottom: 0; }
  .share-folder__name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .share-folder__member form { margin: 0; }
  @media (hover: hover) and (pointer: fine) {
    .share-folder__send { display: none; }
  }

  .join-folder { max-width: 560px; margin: 24px auto; }

  .shared-recipe-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    background: var(--amber-soft);
    color: var(--amber-ink);
  }
  .shared-recipe-bar__text { flex: 1 1 260px; }
  .shared-recipe-bar form { margin: 0; }
  /* A recipe opened from its share link; signed out, it sits on the landing page's layout. */
  .landing .shared-link { padding: 28px var(--landing-pad) 64px; display: flex; flex-direction: column; gap: 24px; }
  .shared-link__invite { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 12px; }
  .shared-recipe-source { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 28px; }
}
