/* The return control belongs to the real shared place-story page, not to
   the floating map detail dialog. The existing editorial UI remains intact. */
body.shared-entry #shared-view .course-return-nav {
  display:flex;
  justify-content:flex-start;
  max-width:720px;
  margin:18px auto 0;
  padding:0 clamp(10px, 3vw, 22px);
}
body.shared-entry #shared-view .course-return-nav__link {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 18px;
  border:2px solid #292536;
  border-radius:12px;
  background:#ffe888;
  color:#292536;
  font:900 14px/1.4 "Noto Sans KR", sans-serif;
  text-align:center;
  text-decoration:none;
  box-shadow:2px 3px 0 #292536;
}
body.shared-entry #shared-view .course-return-nav__link:hover {
  background:#ffdb53;
}
body.shared-entry #shared-view .course-return-nav__link:focus-visible {
  outline:3px solid #7653a0;
  outline-offset:3px;
}
@media (max-width:600px) {
  body.shared-entry #shared-view .course-return-nav {
    padding:0 12px;
    margin-top:12px;
  }
  body.shared-entry #shared-view .course-return-nav__link {
    width:100%;
  }
}

/* Paired "back to route" and "save this place" actions on the real story. */
body.shared-entry #shared-view .course-return-nav{flex-wrap:wrap;align-items:center;gap:10px}
body.shared-entry #shared-view button.course-return-nav__link{cursor:pointer;background:#e5f4ed;border-color:#457466;box-shadow:2px 3px 0 #457466}
body.shared-entry #shared-view button.course-return-nav__link:hover{background:#cbe9d9}
body.shared-entry #shared-view button.course-return-nav__link:disabled{opacity:.65;cursor:wait}
body.shared-entry #shared-view .course-return-save-status{font-size:12px;color:#3c6b56;font-weight:800}

/* Keep already-saved story locations visibly bookmarked, even disabled. */
body.shared-entry #shared-view button.course-return-nav__link.is-saved,
body.shared-entry #shared-view button.course-return-nav__link.is-saved:disabled{
  background:#ffeaf1!important;border-color:#d83b68!important;
  color:#a9234b!important;opacity:1!important;cursor:default!important;
}
body.shared-entry #shared-view button.course-return-nav__link.is-saved::before{
  content:none!important;display:none!important;
}

/* Story page preference controls fit beside the return-to-course link. */
body.shared-entry #shared-view .course-return-nav{flex-wrap:wrap;gap:10px;align-items:center}
body.shared-entry #shared-view button.course-return-nav__link.is-disliked{
  background:#edf1fb!important;border-color:#6682ba!important;
  color:#354b86!important;opacity:1!important;
}
body.shared-entry #shared-view .course-return-save-status{
  flex-basis:100%;font-weight:700;font-size:13px;
}
@media(max-width:600px){
  body.shared-entry #shared-view .course-return-nav button.course-return-nav__link{
    width:calc(50% - 5px);min-width:0;
  }
}
